|
|
|
@ -135,11 +135,11 @@
|
|
|
|
|
<template v-if="Number(slotProps.scope.row.type) === 2"> |
|
|
|
|
<el-text |
|
|
|
|
type="text" |
|
|
|
|
@click="handleZeroUnLoad(slotProps.scope)" |
|
|
|
|
@click="() => handleZeroUnLoad(slotProps.scope)" |
|
|
|
|
v-if=" |
|
|
|
|
permissionObj.truckLoadingDetails_zeroUnload && |
|
|
|
|
details.pageInfo.type !== 'VehicleStowage' && |
|
|
|
|
Number(slotProps.scope.row.scanStatus) === 1 |
|
|
|
|
Number(slotProps.scope.row.unloadCheck) === 0 |
|
|
|
|
" |
|
|
|
|
> |
|
|
|
|
零担卸车 |
|
|
|
@ -157,7 +157,8 @@
|
|
|
|
|
v-if=" |
|
|
|
|
permissionObj.truckLoadingDetails_packageUnload && |
|
|
|
|
details.pageInfo.type !== 'VehicleStowage' && |
|
|
|
|
Number(slotProps.scope.row.scanStatus) === 1 |
|
|
|
|
Number(slotProps.scope.row.scanStatus) === 1 && |
|
|
|
|
Number(slotProps.scope.row.unloadCheck) === 0 |
|
|
|
|
" |
|
|
|
|
> |
|
|
|
|
包件卸车 |
|
|
|
@ -297,6 +298,7 @@ import {
|
|
|
|
|
postRemoveCarsLoadScan, |
|
|
|
|
postSignLoadScanByIds, |
|
|
|
|
postLoadingDetailExport, |
|
|
|
|
postShowOrderCodeByCode, |
|
|
|
|
} from '@/api/distribution/truckLoadingDetails'; |
|
|
|
|
import { |
|
|
|
|
postFindNextNodeList, |
|
|
|
@ -854,22 +856,22 @@ const handleBatchUnLoad = async () => {
|
|
|
|
|
let isHaveAbnormalData = false; |
|
|
|
|
|
|
|
|
|
for (const iterator of details.selectionList) { |
|
|
|
|
if (Number(iterator.scanStatus) === 1) { |
|
|
|
|
// 包件 |
|
|
|
|
if (Number(iterator.type) === 1) { |
|
|
|
|
// 包件 |
|
|
|
|
if (Number(iterator.type) === 1) { |
|
|
|
|
if (Number(iterator.scanStatus) === 1) { |
|
|
|
|
_orderArr.push({ orderPackageCode: iterator.scanCode, carsLoadScanId: iterator.id }); |
|
|
|
|
} else { |
|
|
|
|
_zeroArr.push({ |
|
|
|
|
waybillNo: iterator.waybillNo, |
|
|
|
|
enterNum: iterator.num, |
|
|
|
|
orderCode: iterator.orderCode, |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
_zeroArr.push({ |
|
|
|
|
waybillNo: iterator.waybillNo, |
|
|
|
|
enterNum: iterator.num, |
|
|
|
|
orderCode: iterator.orderCode, |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 不重复判断是否有异常 |
|
|
|
|
if (!isHaveAbnormalData) { |
|
|
|
|
isHaveAbnormalData = iterator.finalNodeId !== myWarehouseId; |
|
|
|
|
} |
|
|
|
|
// 不重复判断是否有异常 |
|
|
|
|
if (!isHaveAbnormalData) { |
|
|
|
|
isHaveAbnormalData = iterator.finalNodeId !== myWarehouseId; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -1160,7 +1162,7 @@ const handleZeroUnLoad = async ({ row }) => {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
details.zeroItem = { ...row }; |
|
|
|
|
details.zeroItem.enterNum = row.num; |
|
|
|
|
details.zeroItem.enterNum = !details.zeroItem.unloadNum ? row.num : details.zeroItem.unloadNum; |
|
|
|
|
details.popUpShow.transferVisited = true; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
@ -1179,7 +1181,7 @@ const handleZeroUnLoadSubmit = async () => {
|
|
|
|
|
unloadZeroList: [ |
|
|
|
|
{ |
|
|
|
|
waybillNo: details.zeroItem.waybillNo, |
|
|
|
|
enterNum: details.zeroItem.num, |
|
|
|
|
enterNum: details.zeroItem.enterNum, |
|
|
|
|
orderCode: details.zeroItem.orderCode, |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
@ -1239,10 +1241,10 @@ const printOrderByZero = async ({ row }) => {
|
|
|
|
|
details.loadingObj.pageLoading = true; |
|
|
|
|
|
|
|
|
|
let ids = { |
|
|
|
|
ids: row.id, |
|
|
|
|
orderCodes: row.orderCode, |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
const res = await postShowOrderCode(ids); |
|
|
|
|
const res = await postShowOrderCodeByCode(ids); |
|
|
|
|
|
|
|
|
|
if (res.data.code !== 200) return; |
|
|
|
|
details.popUpShow.QRCodeVisible = true; |
|
|
|
|