|
|
|
@ -6,9 +6,12 @@
|
|
|
|
|
<view> |
|
|
|
|
配载批次:{{details.pageInfo.carsNo}} |
|
|
|
|
</view> |
|
|
|
|
<view class="butlur" @click="showsdqs"> |
|
|
|
|
<view class="butlur" v-if="Number(details.pageType) !== 2" @click="showsdqs"> |
|
|
|
|
录入包条码 |
|
|
|
|
</view> |
|
|
|
|
<view class="butlur" v-else @click="showsdqs"> |
|
|
|
|
录入托盘码 |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view> |
|
|
|
|
<view>司机名称:{{details.pageInfo.driverName}}</view> |
|
|
|
@ -62,6 +65,7 @@
|
|
|
|
|
<jp-virtual-list code="id" class="h100" :refresher="false" :data="datalist" ref="search"> |
|
|
|
|
<template v-slot="{ list }"> |
|
|
|
|
<view v-for="item in list" :key="item.orderCode" :id="item.orderCode" :ref="item.orderCode"> |
|
|
|
|
<template v-if="Number(orderStatus) !== 3"> |
|
|
|
|
<PullDownBox> |
|
|
|
|
<template #title> |
|
|
|
|
<view class="contenbx1"> |
|
|
|
@ -144,6 +148,31 @@
|
|
|
|
|
</block> |
|
|
|
|
</template> |
|
|
|
|
</PullDownBox> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<template v-else> |
|
|
|
|
<view class="abnormal"> |
|
|
|
|
<view class="flex-c-sb" style="zoom: 0.9;"> |
|
|
|
|
<view class="flex1"> |
|
|
|
|
包条码: {{item.scanCode}} |
|
|
|
|
</view> |
|
|
|
|
<view class="flex1" style="display: flex; align-items: center; margin-left:5px;"> |
|
|
|
|
卸车状态: |
|
|
|
|
<view class="tip"> |
|
|
|
|
{{Number(item.scanStatus) === 1? '已装车': Number(item.scanStatus) === 2? '已卸车': '已签收'}} |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="flex-c-sb mt10" style="zoom: 0.9;"> |
|
|
|
|
<view class="flex1"> |
|
|
|
|
托盘名称: {{item.trayName || '暂无数据'}} |
|
|
|
|
</view> |
|
|
|
|
<view class="flex1"> |
|
|
|
|
托盘码: {{item.trayCode || '暂无数据'}} |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</template> |
|
|
|
|
</view> |
|
|
|
|
</template> |
|
|
|
|
</jp-virtual-list> |
|
|
|
@ -314,6 +343,14 @@
|
|
|
|
|
details.pageType = op.type |
|
|
|
|
|
|
|
|
|
option.title = Number(op.type) === 2 ? '配载整托卸车' : '配载按件卸车' |
|
|
|
|
|
|
|
|
|
let content = '' |
|
|
|
|
if (Number(details.pageType) === 1) content = '请扫描包件码' |
|
|
|
|
else if (Number(details.pageType) === 2) content = '请扫描托盘码' |
|
|
|
|
|
|
|
|
|
// #ifdef APP |
|
|
|
|
utils.ttsspke(content) |
|
|
|
|
// #endif |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
/** 查看订单详情 -- 上架数据(保留页面, 后续跳详情直接cv) */ |
|
|
|
@ -431,6 +468,29 @@
|
|
|
|
|
console.log('details.datalist :>> ', details.datalist); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** 包件卸车 -- 单个 */ |
|
|
|
|
const handleOrderStowage = async (_scanCode) => { |
|
|
|
|
try { |
|
|
|
|
uni.showLoading({ |
|
|
|
|
mask: true |
|
|
|
|
}) |
|
|
|
|
const submitData = { |
|
|
|
|
orderPackageCode: _scanCode, |
|
|
|
|
loadId: details.loadId |
|
|
|
|
} |
|
|
|
|
const res = await postCarsLoadUnloadPackage(submitData) |
|
|
|
|
return res |
|
|
|
|
|
|
|
|
|
} catch (err) { |
|
|
|
|
console.log('err :>> ', err); |
|
|
|
|
//TODO handle the exception |
|
|
|
|
} finally { |
|
|
|
|
uni.hideLoading() |
|
|
|
|
// 刷新 |
|
|
|
|
basicContainer.value.startPullDownRefresh() |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** 扫描包件 */ |
|
|
|
|
const scanOrder = async () => { |
|
|
|
|
OrderStowage.value.details.showPopUp = false |
|
|
|
@ -502,22 +562,34 @@
|
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (_trayCode) { |
|
|
|
|
tiplists.value.setdetails({ |
|
|
|
|
isshow: true, |
|
|
|
|
tipstate: 2, |
|
|
|
|
list: [], |
|
|
|
|
isonecheck: true, |
|
|
|
|
title: '是否整托装车', |
|
|
|
|
success: () => { |
|
|
|
|
tiplists.value.setdetails({ isshow: false }) |
|
|
|
|
// 整托卸车 |
|
|
|
|
scanTray() |
|
|
|
|
}, |
|
|
|
|
cancel: async () => { |
|
|
|
|
tiplists.value.setdetails({ isshow: false }) |
|
|
|
|
|
|
|
|
|
try { |
|
|
|
|
const submitData = { |
|
|
|
|
orderPackageCode: _scanCode, |
|
|
|
|
loadId: details.loadId |
|
|
|
|
handleOrderStowage(_scanCode) |
|
|
|
|
}, |
|
|
|
|
close: () => { |
|
|
|
|
tiplists.value.setdetails({ isshow: false }) |
|
|
|
|
} |
|
|
|
|
const res = await postCarsLoadUnloadPackage(submitData) |
|
|
|
|
return res |
|
|
|
|
}) |
|
|
|
|
details.scancode = _trayCode |
|
|
|
|
return |
|
|
|
|
|
|
|
|
|
} catch (err) { |
|
|
|
|
console.log('err :>> ', err); |
|
|
|
|
//TODO handle the exception |
|
|
|
|
} finally { |
|
|
|
|
// 刷新 |
|
|
|
|
basicContainer.value.startPullDownRefresh() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
handleOrderStowage(_scanCode) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** 扫描托盘 */ |
|
|
|
@ -577,6 +649,7 @@
|
|
|
|
|
function scandata() { |
|
|
|
|
// 按件卸车 |
|
|
|
|
if (Number(details.pageType) === 1) scanOrder() |
|
|
|
|
else if (Number(details.pageType) === 2) scanTray() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** 返回上一页 */ |
|
|
|
@ -626,10 +699,10 @@
|
|
|
|
|
title: content, |
|
|
|
|
icon: 'none' |
|
|
|
|
}) |
|
|
|
|
// return |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 检测该零担是否有托盘信息; 有: 询问是否整托卸车 |
|
|
|
|
// 检测该零担是否有托盘信息; 有: 询问是否整托卸车, 当在整托卸车时, 不允许单独卸车 |
|
|
|
|
if (_value.trayCode) { |
|
|
|
|
|
|
|
|
|
tiplists.value.setdetails({ |
|
|
|
@ -646,6 +719,7 @@
|
|
|
|
|
cancel: () => { |
|
|
|
|
tiplists.value.setdetails({ isshow: false }) |
|
|
|
|
|
|
|
|
|
if (Number(details.pageType) === 2) return |
|
|
|
|
handleZeroSoleStowage(_item, _value) |
|
|
|
|
}, |
|
|
|
|
close: () => { |
|
|
|
@ -656,6 +730,7 @@
|
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (Number(details.pageType) === 2) return |
|
|
|
|
handleZeroSoleStowage(_item, _value) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -871,7 +946,9 @@
|
|
|
|
|
|
|
|
|
|
// 异常 |
|
|
|
|
.abnormal { |
|
|
|
|
background: linear-gradient(0% #000000 50% #0086F1); |
|
|
|
|
padding: 10upx; |
|
|
|
|
background: #fff; |
|
|
|
|
margin: 5upx 0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.w100 { |
|
|
|
|