From 286c9bd70bd8951b94881752fba78c39f9be83a3 Mon Sep 17 00:00:00 2001 From: qb <1191961160@qq.com> Date: Wed, 9 Oct 2024 10:08:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=9B=B6=E6=8B=85=E8=A3=85?= =?UTF-8?q?=E8=BD=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../distribution/VehicleStowageZeroLoading.js | 23 + .../distribution/VehicleStowageZeroLoading.js | 94 +++ src/router/views/index.js | 17 +- .../artery/TripartiteTransfer.vue | 23 + .../artery/VehicleArrivalManagement.vue | 31 +- .../distribution/artery/VehicleStowage.vue | 24 + .../artery/VehicleStowageZeroLoading.vue | 783 ++++++++++++++++++ .../artery/truckLoadingDetails.vue | 10 +- 8 files changed, 993 insertions(+), 12 deletions(-) create mode 100644 src/api/distribution/VehicleStowageZeroLoading.js create mode 100644 src/option/distribution/VehicleStowageZeroLoading.js create mode 100644 src/views/distribution/artery/VehicleStowageZeroLoading.vue diff --git a/src/api/distribution/VehicleStowageZeroLoading.js b/src/api/distribution/VehicleStowageZeroLoading.js new file mode 100644 index 00000000..62670819 --- /dev/null +++ b/src/api/distribution/VehicleStowageZeroLoading.js @@ -0,0 +1,23 @@ +import request from '@/axios'; + +/** + * 获取需要装车的零担数据 + */ +export const postFindZeroList = (data = {}) => { + return request({ + url: '/api/logpm-trunkline/carsLoad/findZeroList', + method: 'post', + data, + }); +}; + +/** + * 零担装车 + */ +export const postLoadingZero = (data = {}) => { + return request({ + url: '/api/logpm-trunkline/api/carsLoad/loadingZero', + method: 'post', + data, + }); +}; diff --git a/src/option/distribution/VehicleStowageZeroLoading.js b/src/option/distribution/VehicleStowageZeroLoading.js new file mode 100644 index 00000000..4163e747 --- /dev/null +++ b/src/option/distribution/VehicleStowageZeroLoading.js @@ -0,0 +1,94 @@ +/** 三方中转列表 */ +export const columnList = [ + { + prop: '', + label: '复选框', + type: 0, + width: 55, + fixed: true, + }, + { + prop: '', + label: '序号', + type: 12, + values: '', + width: 55, + fixed: true, + }, + { + prop: 'waybillNo', + label: '运单号', + type: 1, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, + { + prop: 'orderCode', + label: '订单号', + type: 1, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, + { + prop: 'planNum', + label: '计划数', + type: 1, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, + { + prop: 'loadingNum', + label: '装车数', + type: 1, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, + { + prop: 'unloadingNum', + label: '卸车数', + type: 1, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, + { + prop: 'goodsName', + label: '品类', + type: 1, + values: '', + width: '150', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, + { + prop: 'createUserName', + label: '操作', + type: 6, + values: '', + width: '300', + checkarr: [], + fixed: 'right', + sortable: false, + }, +]; diff --git a/src/router/views/index.js b/src/router/views/index.js index ba3388fe..20c53601 100644 --- a/src/router/views/index.js +++ b/src/router/views/index.js @@ -213,6 +213,17 @@ export default [ /* webpackChunkName: "views" */ '@/views/distribution/artery/truckLoadingDetails.vue' ), }, + { + path: 'VehicleStowageZeroLoading', + name: '零担装车', + meta: { + i18n: 'data', + }, + component: () => + import( + /* webpackChunkName: "views" */ '@/views/distribution/artery/VehicleStowageZeroLoading.vue' + ), + }, { path: 'addTripartiteTransfer', name: '新增中转', @@ -1684,12 +1695,11 @@ export default [ }, ], }, - // 拆单详情 + // 拆单详情 { path: '/distribution/inventory/delivery/SeparateTheListInfo', component: Layout, children: [ - { meta: { i18n: 'dict', @@ -1768,7 +1778,4 @@ export default [ }, ], }, - - - ]; diff --git a/src/views/distribution/artery/TripartiteTransfer.vue b/src/views/distribution/artery/TripartiteTransfer.vue index 715dd339..616f2d00 100644 --- a/src/views/distribution/artery/TripartiteTransfer.vue +++ b/src/views/distribution/artery/TripartiteTransfer.vue @@ -230,6 +230,13 @@ > 装车明细 + + + 零担装车 + @@ -500,6 +507,7 @@ import { handleClearTableQuery, getObjType, handleSelectQuery, + ChecksWhetherTheWarehouseIsSelected, } from '@/utils/util'; import { columnList, detailsColumnList } from '@/option/distribution/TripartiteTransfer'; import { @@ -949,6 +957,21 @@ const handleShowTruckLoadingDetails = ({ row }) => { name: row.carsNo + '--' + '装车明细', type: 'TripartiteTransfer', deliveryType: row.deliveryType, + loadStatus: row.loadStatus, + }, + }); +}; + +/** 零担装车 */ +const handleZeroLoading = ({ row }) => { + if (!ChecksWhetherTheWarehouseIsSelected()) + return ElMessage.warning('多仓权限无法操作,请选择仓库'); + + $router.push({ + path: '/distribution/artery/VehicleStowageZeroLoading', + query: { + loadId: row.id, + name: `${row.carsNo} - 零担装车`, }, }); }; diff --git a/src/views/distribution/artery/VehicleArrivalManagement.vue b/src/views/distribution/artery/VehicleArrivalManagement.vue index a905ff23..987930db 100644 --- a/src/views/distribution/artery/VehicleArrivalManagement.vue +++ b/src/views/distribution/artery/VehicleArrivalManagement.vue @@ -300,11 +300,8 @@ - - + + 签收详情 @@ -320,6 +317,16 @@ > 手动装车 + + + + 零担装车 + @@ -1431,6 +1438,20 @@ const handleManualLoading = ({ row }) => { }); }; +/** 零担装车 */ +const handleZeroLoading = ({ row }) => { + if (!ChecksWhetherTheWarehouseIsSelected()) + return ElMessage.warning('多仓权限无法操作,请选择仓库'); + + $router.push({ + path: '/distribution/artery/VehicleStowageZeroLoading', + query: { + loadId: row.id, + name: `${row.carsNo} - 零担装车`, + }, + }); +}; + /** 显示卸车报告 */ const handleShowUnloadReport = async () => { if (details.selectionList.length === 0) return ElMessage.warning('请选择装载清单'); diff --git a/src/views/distribution/artery/VehicleStowage.vue b/src/views/distribution/artery/VehicleStowage.vue index b53d875b..1d952df3 100644 --- a/src/views/distribution/artery/VehicleStowage.vue +++ b/src/views/distribution/artery/VehicleStowage.vue @@ -321,6 +321,16 @@ > 手动装车 + + + + 零担装车 + @@ -1395,6 +1405,20 @@ const handleManualLoading = ({ row }) => { }); }; +/** 零担装车 */ +const handleZeroLoading = ({ row }) => { + if (!ChecksWhetherTheWarehouseIsSelected()) + return ElMessage.warning('多仓权限无法操作,请选择仓库'); + + $router.push({ + path: '/distribution/artery/VehicleStowageZeroLoading', + query: { + loadId: row.id, + name: `${row.carsNo} - 零担装车`, + }, + }); +}; + /** 显示装载清单 */ const handleShowListOfLoadedWagons = async () => { try { diff --git a/src/views/distribution/artery/VehicleStowageZeroLoading.vue b/src/views/distribution/artery/VehicleStowageZeroLoading.vue new file mode 100644 index 00000000..fece4759 --- /dev/null +++ b/src/views/distribution/artery/VehicleStowageZeroLoading.vue @@ -0,0 +1,783 @@ + + + + + diff --git a/src/views/distribution/artery/truckLoadingDetails.vue b/src/views/distribution/artery/truckLoadingDetails.vue index 2f1cf97b..66f4cc39 100644 --- a/src/views/distribution/artery/truckLoadingDetails.vue +++ b/src/views/distribution/artery/truckLoadingDetails.vue @@ -139,8 +139,14 @@ v-if=" permissionObj.truckLoadingDetails_zeroUnload && details.pageInfo.type !== 'VehicleStowage' && + // 卸车确认 Number(slotProps.scope.row.unloadCheck) === 0 && - Number(slotProps.scope.row.scanStatus) !== 3 + // 签收状态 + Number(slotProps.scope.row.scanStatus) !== 3 && + // 三方送货方式为送货, 发车后不允许卸车 + (Number($route.query.deliveryType) === 2 + ? Number($route.query.loadStatus) === 0 + : true) " > 零担卸车 @@ -1481,7 +1487,7 @@ const handleBatchSigin = async () => { const value = details.selectionList[i]; if (Number($route.query.deliveryType) === 1 && Number(value.scanStatus) === 1) { - return ElMessage.warning('存在未卸车数据,请卸车后再签收') + return ElMessage.warning('存在未卸车数据,请卸车后再签收'); } // 查看该包件是否为已签收状态