diff --git a/pages/monitor/index.vue b/pages/monitor/index.vue index 18abb11..a412bf7 100644 --- a/pages/monitor/index.vue +++ b/pages/monitor/index.vue @@ -196,43 +196,31 @@ -

{{item.pyaAreaCode}}({{item.totalLaneAmout}}/{{item.totalSeatAmout}})

+

{{item.pyaAreaCode}}区({{item.useSeatAmount}}/{{item.totalSeatAmount}})

车道
- -

车位总数: - - - 车位 -

-

使用: - - - 车位 -

-

剩余: - - - 车位 -

-

可停放车辆: - - - 辆 -

-

已停放车辆: - - - 辆 -

+ + + {{ ite }}道 (空道) + - + + + + + {{ ite.spmName }}/{{ ite.vvyName }} + {{ ite.brdName }} + {{ ite.amount }}辆 + {{ ite.lane }}道 + + + +
@@ -265,7 +253,7 @@
@@ -949,7 +937,8 @@ // 获取左侧堆场列表 getDc() { uni.request({ - url: `${this.$local}/api/yardGoods/monitor/goods/manage/page?displayFlag=0&pamId=${this.portObj.portId}&vvyId=${this.vvyId}&brdId=${this.brdId}&potId=${this.potId}&spmId=${this.shipId}&vinCode=${this.vinCode}&workStatuss=${this.workId}&size=100`, + url: `${this.$local}/api/yardGoods/monitor/v2/yard/list?displayFlag=0&pamId=${this.portObj.portId}&vvyId=${this.vvyId}&brdId=${this.brdId}&potId=${this.potId}&spmId=${this.shipId}&vinCode=${this.vinCode}&workStatuss=${this.workId}&size=100`, + // url: `${this.$local}/api/yardGoods/monitor/goods/manage/page?displayFlag=0&pamId=${this.portObj.portId}&vvyId=${this.vvyId}&brdId=${this.brdId}&potId=${this.potId}&spmId=${this.shipId}&vinCode=${this.vinCode}&workStatuss=${this.workId}&size=100`, header: { 'Content-Type': 'application/json', //自定义请求头信息 'Authorization': `Bearer ${this.loginObj.access_token}` @@ -957,7 +946,7 @@ method: 'GET', //请求方式,必须为大写 success: (res) => { if (res.data.status == "200") { - this.dcList = res.data.data.records + this.dcList = res.data.data this.dcId = this.dcList[0].pymId this.dcName = this.dcList[0].pymName this.getSurvey() @@ -977,7 +966,8 @@ // 获取右侧区域数据 getQy() { uni.request({ - url: `${this.$local}/api/yardGoods/monitor/region/statistics?spmId=${this.shipId}&vvyId=${this.vvyId}&pymId=${this.dcId}&displayFlag=0&brdId=${this.brdId}&potId=${this.potId}&vinCode=${this.vinCode}&workStatuss=${this.workId}&size=1000`, + url: `${this.$local}/api/yardGoods/monitor/v2/region/page?spmId=${this.shipId}&vvyId=${this.vvyId}&pymId=${this.dcId}&displayFlag=0&brdId=${this.brdId}&potId=${this.potId}&vinCode=${this.vinCode}&workStatuss=${this.workId}&size=1000`, + // url: `${this.$local}/api/yardGoods/monitor/region/statistics?spmId=${this.shipId}&vvyId=${this.vvyId}&pymId=${this.dcId}&displayFlag=0&brdId=${this.brdId}&potId=${this.potId}&vinCode=${this.vinCode}&workStatuss=${this.workId}&size=1000`, header: { 'Content-Type': 'application/json', //自定义请求头信息 'Authorization': `Bearer ${this.loginObj.access_token}` @@ -986,24 +976,13 @@ success: (res) => { if (res.statusCode == 200) { this.qyList = res.data.data.records + // console.log(this.qyList); this.qyList.forEach(v => { - if (v.remainSeatAmout == null) { - this.$set(v, "remainSeatAmout", 0) + if (v.totalSeatAmount == null) { + this.$set(v, "totalSeatAmount", 0) } - if (v.stopGoodsAmout == null) { - this.$set(v, "stopGoodsAmout", 0) - } - if (v.totalLaneAmout == null) { - this.$set(v, "totalLaneAmout", 0) - } - if (v.totalSeatAmout == null) { - this.$set(v, "totalSeatAmout", 0) - } - if (v.unparkGoodsAmout == null) { - this.$set(v, "unparkGoodsAmout", 0) - } - if (v.useSeatAmout == null) { - this.$set(v, "useSeatAmout", 0) + if (v.useSeatAmount == null) { + this.$set(v, "useSeatAmount", 0) } if (v.carStatisticsList != null) { v.carStatisticsList.forEach(e => { @@ -1332,16 +1311,60 @@ height: 180px; overflow: scroll; padding: 5px 8px; - - .dataList { + .empty { display: flex; - flex-wrap: wrap; - - p { - margin-right: 10px; - font-size: 12px; - color: #666666; - } + width: 100%; + padding: 8px 6px; + background: #E1E5ED; + align-items: center; + justify-content: center; + .dataList { + + } + } + .data { + font-size: 12px; + .dataList { + width: 100%; + padding: 8px 9px; + background: white; + margin-top: 6px; + display: flex; + align-items: center; + position: relative; + .goOut { + color: #FF6B3B; + border: 1px solid #FF6B3B; + border-radius: 50%; + padding: 3px; + font-size: 8px; + } + .advance { + color: #2CC68B; + border: 1px solid #2CC68B; + border-radius: 50%; + padding: 3px; + font-size: 8px; + } + .spmName { + margin-left: 10px; + width:77px; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + } + .brdName { + margin-left: 12px; + width:50px; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + } + .lane { + position: absolute; + right: 9px; + } + } } .boxJd { diff --git a/pages/monitor/place.vue b/pages/monitor/place.vue index 3b68abe..b525f90 100644 --- a/pages/monitor/place.vue +++ b/pages/monitor/place.vue @@ -32,6 +32,8 @@ 有计划
+ @@ -44,63 +46,52 @@ - 车位总数:{{lineData.totalSeatAmout}}车位 - 使用车位:{{lineData.useSeatAmout}}车位 - 剩余车位:{{lineData.remainSeatAmout}}车位 - 虚拟场位:{{lineData.virtuaSeatAmout}}车位 - 可停放车辆:{{lineData.unparkGoodsAmout}}辆 - 已停放车辆:{{lineData.stopGoodsAmout}}辆 + 车位总数:{{lineData.totalSeatAmount}}车位 + 使用车位:{{lineData.useSeatAmount}}车位 + 剩余车位:{{lineData.remainSeatAmount}}车位 + 虚拟场位:{{lineData.virtualSeatAmount}}车位 + + 已停放车辆:{{lineData.stopGoodsAmount}}辆 - + -