| | |
| | | <template> |
| | | <view class="main_app"> |
| | | <view class="main_content"> |
| | | <view class="title" @click="showPlatformgroup = true" |
| | | >{{ platformGroup.name |
| | | }}<u-icon |
| | | <view class="title" @click="showPlatformgroup = true" >{{ platformGroup.name||''}} |
| | | <u-icon |
| | | name="arrow-down" |
| | | size="20" |
| | | class="ml12" |
| | | color="#999999" |
| | | ></u-icon |
| | | ></view> |
| | | ></u-icon> |
| | | </view> |
| | | <view class="input_wrap"> |
| | | <u-icon name="search" class="mr12" size="19" color="#999999" /> |
| | | <input |
| | |
| | | type="text" |
| | | placeholder="搜索车辆牌照" |
| | | placeholder-class="placeholder9" |
| | | confirm-type="search" |
| | | @confirm="handleQuery" |
| | | /> |
| | | </view> |
| | |
| | | </view> |
| | | <!-- --> |
| | | <view class="dataList"> |
| | | <view class="item" v-for="item in platformLineUpList" :key="item.id"> |
| | | <view class="item" v-for="item,i in platformLineUpList" :key="i"> |
| | | <view class="head"> |
| | | <view v-if="item.carCodeFront" class="code"> |
| | | <text>{{ item.carCodeFront.slice(0, 1) }}</text> |
| | |
| | | <text>·</text> |
| | | <text>{{ item.carCodeFront.slice(2) }}</text> |
| | | </view> |
| | | <view class="status" v-if="item.signDate" |
| | | >签到时间:{{ item.signDate.slice(11, 16) }}</view |
| | | > |
| | | <!-- <view class="status green" v-if="item.status == 2">月台等待</view > --> |
| | | <view class="status green" v-if="item.status == 2">等待叫号</view > |
| | | <view class="status" v-if="item.status == 3">入园等待</view > |
| | | <view class="status" v-if="item.status == 7">转移中</view > |
| | | </view> |
| | | <view class="line" v-if="item.billCode"> |
| | | <text class="label">运输单号</text> |
| | |
| | | <text class="value">{{ item.contractNum }}</text> |
| | | <text class="primaryColor" @click="subDetail(item)">预约详情</text> |
| | | </view> |
| | | <view class="line line2" v-if="item.billCode && item.wmsContractNum"> |
| | | <text class="label">合同单号</text> |
| | | <text class="value">{{ item.wmsContractNum }}</text> |
| | | </view> |
| | | <view class="line"> |
| | | <text class="label">驾驶员</text> |
| | | <text class="value" |
| | |
| | | </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.type != 4"> |
| | | <view class="line" v-if="item.carrierName"> |
| | | <text class="label">运输公司</text> |
| | | <text class="value">{{ item.carrierName }}</text> |
| | | </view> |
| | | <!-- <view class="btns"> |
| | | <view class="btn active">入园</view> |
| | | </view> --> |
| | | <view class="line"> |
| | | <text class="label primaryColor">签到时间</text> |
| | | <text class="value primaryColor" v-if="item.signDate">{{ item.signDate.slice(5, 16) }}</text> |
| | | </view> |
| | | <view class="btns"> |
| | | <view class="btn active" @click="jiaji(item.id)">加急</view> |
| | | <view class="btn active1" @click="backSignin(item.id)">退回签到</view> |
| | | </view> |
| | | </view> |
| | | <view v-if="platformLineUpList.length == 0" class="empty_wrap"> |
| | | <image src="@/static/default_nodata@2x.png" /> |
| | |
| | | <view class="value">{{ wmsInfo.carrierName }}</view> |
| | | </view> |
| | | </view> |
| | | <view class="separate"></view> |
| | | <!-- <view class="separate"></view> --> |
| | | <view class="contract_wrap"> |
| | | <view class="contract_list" v-for="item in wmsInfo.wmsJobContractVOList"> |
| | | <view class="title">合同号:{{ item.contractCode }}</view> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { platformLineUpPage, getPlatformGroupList, wmsJobDetail } from '@/api' |
| | | import { platformLineUpPage, getPlatformGroupList, wmsJobDetail,jobUrge,backToWatiSign } from '@/api' |
| | | export default { |
| | | data() { |
| | | return { |
| | | windowTop: 24, |
| | | windowTop: 24, |
| | | showDetail: false, |
| | | showPlatformgroup: false, |
| | | capacity: 10, |
| | |
| | | }, |
| | | onReachBottom() { |
| | | if(this.total > this.platformLineUpList.length){ |
| | | this.page ++ |
| | | this.getList() |
| | | }else{ |
| | | uni.showToast({ |
| | | title:'暂无更多数据', |
| | | icon: 'none' |
| | | }) |
| | | } |
| | | }, |
| | | methods: { |
| | |
| | | }).then(res => { |
| | | if (res.data) { |
| | | this.platformLineUpList = [...this.platformLineUpList, ...res.data.records || []] |
| | | this.platformLineUpList.forEach(item => { |
| | | if(item.wmsContractNum){ |
| | | item.wmsContractNum = item.wmsContractNum.split(',').join(',') |
| | | } |
| | | }) |
| | | this.total = res.data.total || 0 |
| | | } |
| | | }) |
| | |
| | | this.platformLineUpList = [] |
| | | this.getList() |
| | | }, |
| | | jiaji(id){ |
| | | uni.showModal({ |
| | | content: `确认加急吗?`, |
| | | success: (res) => { |
| | | if (res.confirm) { |
| | | jobUrge({ id:id }).then(res => { |
| | | this.showToast('加急成功') |
| | | this.handleQuery() |
| | | }) |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | backSignin(id){ |
| | | uni.showModal({ |
| | | content: `确认退回签到吗?该操作后司机需要重新签到!`, |
| | | success: (res) => { |
| | | if (res.confirm) { |
| | | backToWatiSign({ id:id }).then(res => { |
| | | this.showToast('退回签到成功') |
| | | this.handleQuery() |
| | | }) |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | platConfirm(e) { |
| | | const index = e.indexs[0] |
| | | this.platformGroup = this.platformGroupList[index] |
| | |
| | | font-size: 30rpx; |
| | | color: $uni-color-primary; |
| | | } |
| | | .green{ |
| | | color: #00BA67; |
| | | } |
| | | } |
| | | .line { |
| | | display: flex; |
| | | margin-bottom: 20rpx; |
| | | .label { |
| | | width: 144rpx; |
| | | flex-shrink: 0; |
| | | color: #666666; |
| | | } |
| | | .value { |
| | |
| | | border: 1rpx solid #999999; |
| | | margin-left: 20rpx; |
| | | } |
| | | .active1{ |
| | | width: 140rpx; |
| | | background-color: #cb0000; |
| | | color: #fff; |
| | | border-color: #cb0000; |
| | | } |
| | | .active { |
| | | background-color: $uni-color-primary; |
| | | color: #fff; |
| | |
| | | } |
| | | } |
| | | } |
| | | .line2{ |
| | | margin-right: -30rpx; |
| | | padding-right: 0; |
| | | } |
| | | </style> |