|
|
@ -204,7 +204,7 @@ |
|
|
|
style="width: 100%" |
|
|
|
style="width: 100%" |
|
|
|
:precision="0" |
|
|
|
:precision="0" |
|
|
|
:max="details.zeroItem.num" |
|
|
|
:max="details.zeroItem.num" |
|
|
|
readonly |
|
|
|
:min="0" |
|
|
|
:controls="false" |
|
|
|
:controls="false" |
|
|
|
v-model="details.zeroItem.enterNum" |
|
|
|
v-model="details.zeroItem.enterNum" |
|
|
|
/> |
|
|
|
/> |
|
|
@ -298,7 +298,10 @@ import { |
|
|
|
postSignLoadScanByIds, |
|
|
|
postSignLoadScanByIds, |
|
|
|
postLoadingDetailExport, |
|
|
|
postLoadingDetailExport, |
|
|
|
} from '@/api/distribution/truckLoadingDetails'; |
|
|
|
} from '@/api/distribution/truckLoadingDetails'; |
|
|
|
import { postFindNextNodeList } from '@/api/distribution/VehicleStowage'; |
|
|
|
import { |
|
|
|
|
|
|
|
postFindNextNodeList, |
|
|
|
|
|
|
|
postUpdateLoadScanFinalNodeIdById, |
|
|
|
|
|
|
|
} from '@/api/distribution/VehicleStowage'; |
|
|
|
import { getShowAdvancePackgeCode } from '@/api/waybill/orderPackageListDetails'; |
|
|
|
import { getShowAdvancePackgeCode } from '@/api/waybill/orderPackageListDetails'; |
|
|
|
import { postShowOrderCode } from '@/api/distribution/distributionStockArticle'; |
|
|
|
import { postShowOrderCode } from '@/api/distribution/distributionStockArticle'; |
|
|
|
/** 获取字典 */ |
|
|
|
/** 获取字典 */ |
|
|
@ -378,8 +381,6 @@ const details = reactive<any>({ |
|
|
|
}, |
|
|
|
}, |
|
|
|
/** 弹出层显示 */ |
|
|
|
/** 弹出层显示 */ |
|
|
|
popUpShow: { |
|
|
|
popUpShow: { |
|
|
|
/** 装车详情 */ |
|
|
|
|
|
|
|
truckLoadingDetailVisited: false, |
|
|
|
|
|
|
|
/** 零担补录 */ |
|
|
|
/** 零担补录 */ |
|
|
|
transferVisited: false, |
|
|
|
transferVisited: false, |
|
|
|
/** 计划仓更改 */ |
|
|
|
/** 计划仓更改 */ |
|
|
@ -439,6 +440,7 @@ const details = reactive<any>({ |
|
|
|
/** 后续节点仓库数据 */ |
|
|
|
/** 后续节点仓库数据 */ |
|
|
|
nextNodeData: [], |
|
|
|
nextNodeData: [], |
|
|
|
choosePackageList: [], |
|
|
|
choosePackageList: [], |
|
|
|
|
|
|
|
chooseNodeId: '', |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
const { |
|
|
|
const { |
|
|
@ -1411,10 +1413,46 @@ const handleChooseWarehouse = async () => { |
|
|
|
|
|
|
|
|
|
|
|
await nextTick(); |
|
|
|
await nextTick(); |
|
|
|
if (_arr.length === 0) return ElMessage.warning('请选择未卸车数据'); |
|
|
|
if (_arr.length === 0) return ElMessage.warning('请选择未卸车数据'); |
|
|
|
|
|
|
|
details.choosePackageList = _arr; |
|
|
|
details.popUpShow.chooseDestinationVisited = true; |
|
|
|
details.popUpShow.chooseDestinationVisited = true; |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** 配置装车目的地 */ |
|
|
|
|
|
|
|
const handleEditSubmit = async () => { |
|
|
|
|
|
|
|
if (!details.chooseNodeId) return ElMessage.warning('请选择目的仓'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
details.loadingObj.pageLoading = true; |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
const submitData = { |
|
|
|
|
|
|
|
loadId: $route.query.loadId, |
|
|
|
|
|
|
|
loadScanFinalNodeIdList: [], |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (const iterator of details.choosePackageList) { |
|
|
|
|
|
|
|
submitData.loadScanFinalNodeIdList.push({ |
|
|
|
|
|
|
|
loadScanId: iterator.id, |
|
|
|
|
|
|
|
finalNodeId: details.chooseNodeId, |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
details.popUpShow.chooseDestinationVisited = false; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const res = await postUpdateLoadScanFinalNodeIdById(submitData); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const { code, msg } = res.data; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (code !== 200) return; |
|
|
|
|
|
|
|
if (msg) ElMessage.success(msg); |
|
|
|
|
|
|
|
details.chooseNodeId = ''; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
onLoad(); |
|
|
|
|
|
|
|
} catch (error) { |
|
|
|
|
|
|
|
console.log('error :>> ', error); |
|
|
|
|
|
|
|
} finally { |
|
|
|
|
|
|
|
details.loadingObj.pageLoading = false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
watch( |
|
|
|
watch( |
|
|
|
$route, |
|
|
|
$route, |
|
|
|
(newVal, oldVal) => { |
|
|
|
(newVal, oldVal) => { |
|
|
@ -1530,8 +1568,8 @@ watch( |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
&.primary { |
|
|
|
&.primary { |
|
|
|
background-color: #0086f1; |
|
|
|
background-color: green; |
|
|
|
border-color: #0086f1; |
|
|
|
border-color: green; |
|
|
|
color: #fff; |
|
|
|
color: #fff; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|