| | |
| | | stripe |
| | | emptyText="暂无更多数据"> |
| | | <uni-tr> |
| | | <uni-th align="center">司机</uni-th> |
| | | <uni-th align="center">产品</uni-th> |
| | | <uni-th align="center">车牌号</uni-th> |
| | | <uni-th align="center">产品</uni-th> |
| | | <uni-th align="center">司机</uni-th> |
| | | <uni-th align="center">手机号</uni-th> |
| | | <uni-th align="center">空车出场 </uni-th> |
| | | <uni-th align="center">操作</uni-th> |
| | | </uni-tr> |
| | | <uni-tr v-for="(item, index) in driverBillOfLoadingData" |
| | | :key="item.id"> |
| | | <uni-td align="center">{{ item.driver }}</uni-td> |
| | | <uni-td align="center">{{ item.productName || '' }}</uni-td> |
| | | <uni-td align="center">{{ item.carNo || '' }}</uni-td> |
| | | <uni-td align="center">{{ item.productNames || '' }}</uni-td> |
| | | <uni-td align="center">{{ item.driver }}</uni-td> |
| | | <uni-td align="center">{{ item.phone || '' }}</uni-td> |
| | | <uni-td align="center">{{ item.isEmptyCar?item.isEmptyCar=='0'?'否':'是':'否'}}</uni-td> |
| | | <uni-td><u-button text="检查" |
| | | type="primary" |
| | | @click="yuYueBtnClick(item)"></u-button></uni-td> |
| | |
| | | </view> |
| | | </u-popup> |
| | | <tab-bar :current="1"></tab-bar> |
| | | <view class="logoutModel"> |
| | | <u-modal :show="logoutShow" |
| | | :title="logoutTitle" |
| | | showCancelButton |
| | | :content="logoutContent" |
| | | @confirm="logoutConfirm" |
| | | @cancel="logoutCancel"></u-modal> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | isAllSelected:false, |
| | | form:{}, |
| | | carNo:'', |
| | | logoutShow: false, |
| | | logoutTitle: '提示', |
| | | logoutContent: '是否检查完毕', |
| | | previewImageSrc:"", |
| | | ClickLoading:false |
| | | } |
| | | }, |
| | |
| | | this.init(); |
| | | }, |
| | | methods: { |
| | | logoutConfirm() { |
| | | |
| | | uni.showLoading({ title: '加载中...' }); |
| | | this.$reqPost('addCheckLog',{ |
| | | carNo:this.form.carNo, |
| | | taskId:this.form.id, |
| | | taskcode:this.form.code, |
| | | }, 'json').then(res => { |
| | | if (res.code === 0) { |
| | | uni.$u.toast('检查成功') |
| | | this.form={} |
| | | this.ClickLoading = false; |
| | | this.TaskCoalList() |
| | | this.logoutShow = false; |
| | | } else { |
| | | uni.$u.toast(res.msg ? res.msg : '检查失败') |
| | | this.logoutShow = false; |
| | | } |
| | | }) |
| | | }, |
| | | logoutCancel() { |
| | | this.logoutShow = false; |
| | | }, |
| | | yuYueBtnClick(item){ |
| | | if(item.inspectedResult){ |
| | | this.inspectData=JSON.parse(item.inspectedResult) |
| | | this.form=item |
| | | this.show = true; |
| | | }else{ |
| | | this.inspectData=[] |
| | | this.form=item |
| | | uni.showLoading({ title: '加载中...' }); |
| | | this.$reqPost('addCheckLog',{ |
| | | carNo:this.form.carNo, |
| | | taskId:this.form.id, |
| | | taskcode:this.form.code, |
| | | }, 'json').then(res => { |
| | | if (res.code === 0) { |
| | | uni.$u.toast('检查成功') |
| | | this.form={} |
| | | this.ClickLoading = false; |
| | | this.show = false; |
| | | this.TaskCoalList() |
| | | } else { |
| | | uni.$u.toast(res.msg ? res.msg : '检查失败') |
| | | } |
| | | }) |
| | | } |
| | | this.logoutShow = true; |
| | | this.inspectData=[] |
| | | this.form=item |
| | | }, |
| | | selectionChange(items){ |
| | | const allIds = this.inspectData.map(item => item); |