|
|
|
@ -145,9 +145,7 @@
|
|
|
|
|
<el-text |
|
|
|
|
@click="handleZeroSigin(slotProps.scope)" |
|
|
|
|
v-if=" |
|
|
|
|
permissionObj.directGoMarketDetails_zeroSign && |
|
|
|
|
Number(slotProps.scope.row.type) === 2 && |
|
|
|
|
Number(slotProps.scope.row.scanStatus) !== 3 |
|
|
|
|
permissionObj.directGoMarketDetails_zeroSign && Number(slotProps.scope.row.type) === 2 |
|
|
|
|
" |
|
|
|
|
> |
|
|
|
|
零担签收 |
|
|
|
@ -348,7 +346,7 @@
|
|
|
|
|
append-to-body |
|
|
|
|
class="truckLoadingDetailPopUp" |
|
|
|
|
> |
|
|
|
|
<el-form-item label="零担签收数量" label-width="100px"> |
|
|
|
|
<!-- <el-form-item label="零担签收数量" label-width="100px"> |
|
|
|
|
<el-input-number |
|
|
|
|
style="width: 100%" |
|
|
|
|
:precision="0" |
|
|
|
@ -356,7 +354,76 @@
|
|
|
|
|
:controls="false" |
|
|
|
|
v-model="details.zeroItem.enterNum" |
|
|
|
|
/> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-form-item> --> |
|
|
|
|
|
|
|
|
|
<div class="editZeroCategoryTitleRowByLine">订单信息</div> |
|
|
|
|
|
|
|
|
|
<div class="editZeroCategoryTitleRow mt10"> |
|
|
|
|
<div class="title"> |
|
|
|
|
<span>运单号:</span> |
|
|
|
|
<span>{{ details.zeroItem.waybillNo }}</span> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="title"> |
|
|
|
|
<span>订单号:</span> |
|
|
|
|
<span>{{ details.zeroItem.orderCode }}</span> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="title"> |
|
|
|
|
<span>装车数:</span> |
|
|
|
|
<span>{{ details.zeroItem.num }}</span> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="title"> |
|
|
|
|
<span>卸车数:</span> |
|
|
|
|
<span>{{ details.zeroItem.unloadNum }}</span> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<!-- 品类详情 --> |
|
|
|
|
<div class="editZeroCategoryTitleRowByLine mt10">品类详情</div> |
|
|
|
|
|
|
|
|
|
<!-- 列表 --> |
|
|
|
|
<div class="editZeroCategoryList"> |
|
|
|
|
<!-- 子项 --> |
|
|
|
|
<div |
|
|
|
|
class="editZeroCategoryList_item" |
|
|
|
|
v-for="item in details.zeroItem.zeroPackageSupplyVOS" |
|
|
|
|
:key="item.packageId" |
|
|
|
|
> |
|
|
|
|
<!-- 标题行 --> |
|
|
|
|
<div class="editZeroCategoryTitleRow"> |
|
|
|
|
<div class="title"> |
|
|
|
|
<span>品类名:</span> |
|
|
|
|
<span>{{ item.goodsName }}</span> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="title"> |
|
|
|
|
<span>装车数:</span> |
|
|
|
|
<span>{{ item.loadingNum }}</span> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="title"> |
|
|
|
|
<span>已卸数:</span> |
|
|
|
|
<span>{{ item.unloadNum }}</span> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<template v-if="details.zeroItem.type === 'unload'"> |
|
|
|
|
<el-input-number |
|
|
|
|
class="inputNum mt10 w100" |
|
|
|
|
v-model="item.enterNum" |
|
|
|
|
controls-position="right" |
|
|
|
|
:precision="0" |
|
|
|
|
:min="0" |
|
|
|
|
:max="item.loadingNum" |
|
|
|
|
:step="1" |
|
|
|
|
:value-on-clear="0" |
|
|
|
|
:controls="false" |
|
|
|
|
/> |
|
|
|
|
</template> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<!-- 表单按钮 --> |
|
|
|
|
<div class="flex-c-c"> |
|
|
|
@ -480,6 +547,7 @@ import {
|
|
|
|
|
postUploadSignPhoto, |
|
|
|
|
postSignOrderZeroSuppleList, |
|
|
|
|
} from '@/api/distribution/directGoMarket'; |
|
|
|
|
import { postFindZeroDetailByCarsLoadScanId } from '@/api/distribution/truckLoadingDetails'; |
|
|
|
|
import { postAddZeroSupple } from '@/api/distribution/zeroAdditionalRecording'; |
|
|
|
|
import { compressImageBlob } from '@/components/IMGcompressor/imgcompressor.js'; |
|
|
|
|
import { postFindSignPhotoList } from '@/api/distribution/directMerchantSign.js'; |
|
|
|
@ -494,6 +562,7 @@ import {
|
|
|
|
|
ChecksWhetherTheWarehouseIsSelected, |
|
|
|
|
handleInputQuery, |
|
|
|
|
handleSelectQuery, |
|
|
|
|
getObjType, |
|
|
|
|
} from '@/utils/util'; |
|
|
|
|
import { |
|
|
|
|
columnList, |
|
|
|
@ -1180,7 +1249,30 @@ const handleZeroSigin = async ({ row }) => {
|
|
|
|
|
|
|
|
|
|
details.zeroItem = { ...row }; |
|
|
|
|
details.zeroItem.enterNum = row.num; |
|
|
|
|
details.popUpShow.transferVisited = true; |
|
|
|
|
details.zeroItem.type = 'unload'; |
|
|
|
|
|
|
|
|
|
try { |
|
|
|
|
details.loadingObj.pageLoading = true; |
|
|
|
|
|
|
|
|
|
const res = await postFindZeroDetailByCarsLoadScanId({ carsLoadScanId: row.loadScanId }); |
|
|
|
|
const { code, data } = res.data; |
|
|
|
|
if (code !== 200 || getObjType(data) !== 'array') return; |
|
|
|
|
details.zeroItem.zeroPackageSupplyVOS = data; |
|
|
|
|
|
|
|
|
|
for (let i = 0; i < details.zeroItem.zeroPackageSupplyVOS.length; i++) { |
|
|
|
|
const item = details.zeroItem.zeroPackageSupplyVOS[i]; |
|
|
|
|
|
|
|
|
|
item.enterNum = item.unloadNum || item.loadingNum || 0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
details.popUpShow.transferVisited = true; |
|
|
|
|
} catch (error) { |
|
|
|
|
console.log('error :>> ', error); |
|
|
|
|
} finally { |
|
|
|
|
details.loadingObj.pageLoading = false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// details.popUpShow.transferVisited = true; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
/** 签收 -- 零担 -- 提交 */ |
|
|
|
@ -1192,9 +1284,19 @@ const handleZeroUnLoadSubmit = async () => {
|
|
|
|
|
const submitData = { |
|
|
|
|
signOrderId: details.showDetailsSiginOrder.id, |
|
|
|
|
carsLoadScanId: details.zeroItem.loadScanId, |
|
|
|
|
enterNum: details.zeroItem.enterNum, |
|
|
|
|
enterNum: 0, |
|
|
|
|
zeroPackageList: details.zeroItem.zeroPackageSupplyVOS, |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
let _loadingNum = 0; |
|
|
|
|
for (let i = 0; i < submitData.zeroPackageList.length; i++) { |
|
|
|
|
const val = submitData.zeroPackageList[i]; |
|
|
|
|
val.enterNum = val.enterNum || 0; |
|
|
|
|
_loadingNum += val.enterNum; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
submitData.enterNum = _loadingNum; |
|
|
|
|
|
|
|
|
|
const res = await postSignZero(submitData); |
|
|
|
|
const { code } = res.data; |
|
|
|
|
|
|
|
|
@ -1221,7 +1323,7 @@ const handleBatchSigin = async () => {
|
|
|
|
|
cancelButtonText: '取消', |
|
|
|
|
type: 'success', |
|
|
|
|
}) |
|
|
|
|
// 异常提交 |
|
|
|
|
// 批量提交 |
|
|
|
|
.then(async () => { |
|
|
|
|
try { |
|
|
|
|
details.loadingObj.detailsLoading = true; |
|
|
|
|