| | |
| | | </view>
|
| | | <view class="line">
|
| | | <text class="label">总运输量</text>
|
| | | <text class="value">{{ item.totalNum }}万支</text>
|
| | | <text class="value">{{ item.totalNum || item.ioQty}}万支</text>
|
| | | </view>
|
| | | <view class="line" v-if="item.carrierName">
|
| | | <text class="label">运输公司</text>
|
| | |
| | | </view>
|
| | | <view class="line">
|
| | | <text class="label">总运输量</text>
|
| | | <text class="value">{{ item.totalNum }}万支</text>
|
| | | <text class="value">{{ item.totalNum || item.ioQty }}万支</text>
|
| | | </view>
|
| | | <view class="line" v-if="item.carrierName">
|
| | | <text class="label">运输公司</text>
|
| | |
| | | <view class="transform_list">
|
| | | <view class="line" @click="transformPlatClick(item)" v-for="item in TransferList"
|
| | | :key="item.id">
|
| | | <view class="name">{{ item.name }}</view>
|
| | | <view class="name">{{ item.name || item.platformName}}</view>
|
| | | <view class="status" :class="{ green: item.workStatus == 1 }">({{ item.workStatus == 0 ? "空闲" : "作业中" }})
|
| | | </view>
|
| | | <image v-if="transformPlatId == item.id" src="@/static/ic_select@2x.png" class="checked" />
|
| | |
| | | },
|
| | | methods: { |
| | | getTransferList() { |
| | | getPlatformWorkData({ |
| | | platformId: this.activePlatform.id |
| | | getPlatformGroupList({ |
| | | queryData: 1, |
| | | queryType: 1 |
| | | }).then(res => { |
| | | console.log('res.data', res.data); |
| | | if(res.data && res.data.platformJobList){ |
| | | this.TransferList = res.data.platformJobList |
| | | const platformGroupList = res.data || [] |
| | | if (platformGroupList.length > 0) { |
| | | const { activePlatformGroup } = this |
| | | const temp = platformGroupList.find(i => i.id === activePlatformGroup.id) |
| | | this.TransferList = temp.platformList || [] |
| | | } |
| | | }) |
| | | },
|
| | |
| | | this.getPlatformTask() |
| | | this.timer = setInterval(() => { |
| | | this.getPlatformTask() |
| | | }, 60 * 1000)
|
| | | }, 120 * 1000)
|
| | | }
|
| | | }
|
| | | })
|
| | | },
|
| | | getPlatformTask() { |
| | | uni.showLoading({title:"加载中..."})
|
| | | getPlatformTask() {
|
| | | getPlatformWorkData({
|
| | | platformId: this.activePlatform.id
|
| | | }).then(res => { |
| | | uni.hideLoading()
|
| | | }).then(res => {
|
| | | this.platformTaskInfo = res.data
|
| | | this.circulInitTaskList()
|
| | | setInterval(() => {
|
| | | this.circulInitTaskList()
|
| | | }, 1000)
|
| | | }, () => { |
| | | uni.hideLoading() |
| | | })
|
| | | },
|
| | | circulInitTaskList() {
|
| | |
| | | flex-wrap: wrap;
|
| | |
|
| | | .item {
|
| | | width: 210rpx;
|
| | | height: 80rpx;
|
| | | display: flex;
|
| | | justify-content: center;
|
| | | align-items: center;
|
| | | width: 220rpx;
|
| | | height: 80rpx; |
| | | line-height: 80rpx; |
| | | text-align: center;
|
| | | background: #ffffff;
|
| | | border-radius: 8rpx;
|
| | | border: 1rpx solid #999999;
|
| | | font-size: 30rpx;
|
| | | color: #222222;
|
| | | margin-bottom: 20rpx;
|
| | | margin-right: 30rpx;
|
| | |
|
| | | margin-bottom: 15rpx;
|
| | | margin-right: 15rpx;
|
| | | white-space: nowrap; |
| | | overflow: hidden; |
| | | text-overflow: ellipsis;
|
| | | &:nth-of-type(3n) {
|
| | | margin-right: 0;
|
| | | }
|