搜 索
@@ -146,9 +128,9 @@
取 消
无效包条
- 同步数据
+
+ 同步数据
+
@@ -175,6 +157,7 @@ import {
getHtmls,
deepClone,
handleClearTableQuery,
+ getObjType,
} from '@/utils/util';
import { columnList } from '@/option/distribution/abnormalList';
import { useRouter } from 'vue-router';
@@ -292,7 +275,23 @@ const onLoad = async (page?: any, params = {}) => {
let _page = details.page;
if (page) _page = page;
// 获取暂存单列表
- const res = await postFindPageList({ ..._page, ...details.query, ...params });
+
+ const submitData = { ..._page, ...details.query, ...params };
+
+ const { createDateArr, dealDateArr } = details.query;
+
+ if (getObjType(createDateArr) === 'array' && createDateArr.length > 0) {
+ submitData.createDateStartStr = details.query.createDateArr[0];
+ submitData.createDateEndStr = details.query.createDateArr[1];
+ }
+ if (getObjType(dealDateArr) === 'array' && dealDateArr.length > 0) {
+ submitData.dealDateStartStr = details.query.dealDateArr[0];
+ submitData.dealDateEndStr = details.query.dealDateArr[1];
+ }
+ delete submitData.createDateArr;
+ delete submitData.dealDateArr;
+
+ const res = await postFindPageList(submitData);
console.log('res :>> ', res);
const { code, data } = res.data;
if (code !== 200) return;
@@ -314,6 +313,7 @@ const onLoad = async (page?: any, params = {}) => {
details.page.total = data.total;
} catch (error) {
+ console.log('error :>> ', error);
} finally {
details.loadingObj.list = false;
}
diff --git a/src/views/distribution/artery/truckLoadingDetails.vue b/src/views/distribution/artery/truckLoadingDetails.vue
index 9510d5d3..1529a9fd 100644
--- a/src/views/distribution/artery/truckLoadingDetails.vue
+++ b/src/views/distribution/artery/truckLoadingDetails.vue
@@ -135,11 +135,11 @@
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;