From 620e22d6ab35561fb5e5ab98e718fd358ba66702 Mon Sep 17 00:00:00 2001 From: xzg <4727863@qq.com> Date: Wed, 27 Dec 2023 15:46:39 +0800 Subject: [PATCH 1/7] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/tablecmt/tablecmt.vue | 2 +- src/option/aftersales/vueTvemp.js | 12 +- src/views/aftersales/aftersalesWorkOrder.vue | 110 +++++++++++++----- .../aftersales/aftersalesWorkOrderAdd.vue | 82 +++++++------ .../distributionDeliveryListedt.vue | 36 +++--- .../signfor/distributionSignforedt.vue | 48 ++++---- 6 files changed, 183 insertions(+), 107 deletions(-) diff --git a/src/components/tablecmt/tablecmt.vue b/src/components/tablecmt/tablecmt.vue index b678a093..ff9f3c83 100644 --- a/src/components/tablecmt/tablecmt.vue +++ b/src/components/tablecmt/tablecmt.vue @@ -40,7 +40,7 @@ @@ -256,10 +268,15 @@ import { import { downloadXls } from '@/utils/util'; import { oldColumnList, newColumnList } from '@/option/distribution/zeroAdditionalRecording'; import { ElMessage } from 'element-plus'; -import { useRoute } from 'vue-router'; +import { useRoute, useRouter } from 'vue-router'; +import { useStore } from 'vuex'; // 路由实例 const $route = useRoute(); +const $router = useRouter(); + +// 实例化仓库 +const $store = useStore(); const details = reactive({ /** 是否开启搜索 */ @@ -305,7 +322,7 @@ const details = reactive({ oldColumnList, newColumnList, /** 订单池数据 */ - oldData: [{}], + oldData: [], /** 调度池数据 */ newData: [], /** 页面loading */ @@ -313,6 +330,8 @@ const details = reactive({ /** 列表加载loading */ list: false, newListLoading: false, + /** 提交按钮 */ + submitLoading: false, }, /** 订单池列表复选框选中的数据 */ oldSelectionList: [], @@ -353,11 +372,14 @@ const details = reactive({ finalNodeIdArr: [], /** 运单Id */ loadId: '', + /** 弹出层 */ showPopUpObj: { - editNodeIdDialogVisible: true, + editNodeIdDialogVisible: false, }, /** 选择的Id */ - chooseNodeId: '', + finalNodeId: '', + /** 确认框的事件类型 add -- 新增 edit -- 修改 */ + confirmType: 'add', }); const { @@ -587,26 +609,33 @@ const setnewcolum = (newarr, headarr, type) => { const handleAddWaybill = () => { if (details.oldSelectionList.length === 0) return ElMessage.error('最少选择一条数据'); - for (let item of details.oldSelectionList) { - console.log('item.stockNum :>> ', item.stockNum); - item.loadingNum = Number(item.stockNum || 0); - details.newData.push(item); - } + // 有多个后续节点 + if (details.finalNodeIdArr.length > 1) { + details.confirmType = 'add'; - details.orderCodeList = [ - ...new Set([...details.orderCodeList, ...details.oldSelectionList.map(val => val.orderCode)]), - ]; + details.showPopUpObj.editNodeIdDialogVisible = true; + } else { + const _item = details.finalNodeIdArr[0]; - details.page.pageNum = 1; - onLoad(); + for (let item of details.oldSelectionList) { + item.finalNodeId = _item.warehouseId; + item.warehouseName = _item.warehouseName; + item.loadingNum = Number(item.stockNum || 0); + details.newData.push(item); + } + + details.orderCodeList = [ + ...new Set([...details.orderCodeList, ...details.oldSelectionList.map(val => val.orderCode)]), + ]; + + details.page.pageNum = 1; + onLoad(); + } }; /** 移除运单 */ const handleRemoveWaybill = () => { if (details.newSelectionList.length === 0) return ElMessage.warning('最少选择一条运单'); - for (const iterator of details.newSelectionList) { - console.log('111 :>> ', 111); - } details.newData = details.newData.filter((val, index) => { const _flag = !details.newSelectionList.includes(val); @@ -623,29 +652,114 @@ const handleRemoveWaybill = () => { onLoad(); }; +/** 清空调度池 */ +const handleRefresh = () => { + details.newData = []; + details.newSelectionList = []; + details.orderCodeList = []; + details.page.pageNum = 1; + onLoad(); +}; + +/** 开启修改零担补录节点弹窗 */ +const handleEditNode = () => { + if (details.finalNodeIdArr.length <= 1) return ElMessage.error('后续节点数小于2个'); + + if (details.newSelectionList.length === 0) return ElMessage.warning('最少选择一条数据'); + + details.confirmType = 'edit'; + + details.showPopUpObj.editNodeIdDialogVisible = true; +}; + +/** 新增提交 */ +const handleAdd = (warehouseName, finalNodeId) => { + for (let item of details.oldSelectionList) { + item.finalNodeId = details.finalNodeId; + item.warehouseName = warehouseName; + item.loadingNum = Number(item.stockNum || 0); + details.newData.push(item); + } + + details.orderCodeList = [ + ...new Set([...details.orderCodeList, ...details.oldSelectionList.map(val => val.orderCode)]), + ]; + + details.page.pageNum = 1; + onLoad(); + + details.showPopUpObj.editNodeIdDialogVisible = false; +}; + +const handleEdit = (warehouseName, finalNodeId) => { + for (const iterator of details.newSelectionList) { + iterator.finalNodeId = finalNodeId; + iterator.warehouseName = warehouseName; + } + + details.showPopUpObj.editNodeIdDialogVisible = false; +}; + +/** 修改零担补录节点 */ +const handleChooseNode = () => { + if (!details.finalNodeId) return ElMessage.error('请选择节点'); + + const _finalNodeId = details.finalNodeId; + + // 获取节点名称 + const _warehouseName = details.finalNodeIdArr.find( + val => val.warehouseId === _finalNodeId + ).warehouseName; + + details.confirmType === 'add' + ? handleAdd(_warehouseName, _finalNodeId) + : handleEdit(_warehouseName, _finalNodeId); +}; + +/** 返回上一页 */ +const back = () => { + $router.back(); + + $store.commit('DEL_TAG'); +}; + /** 零担补录提交 */ -const handleEditZeroSubmit = () => { - if (details.newData.length === 0) return ElMessage.error('请选择运单'); - - // const _data = details.newData.filter(val => { - // return val.loadingNum > 0; - // }); - - const submitData = { - loadId: details.loadId, - zeroSuppleList: [], - }; - - for (const iterator of details.newData) { - submitData.zeroSuppleList.push({ - orderCode: iterator.orderCode, - waybillNo: iterator.waybillNo, - enterNum: iterator.stockNum, - finalNodeId: iterator.nodeId, +const handleEditZeroSubmit = async () => { + try { + // 开启提交loading + details.loadingObj.submitLoading = true; + + if (details.newData.length === 0) return ElMessage.error('请选择运单'); + + const _data = details.newData.filter(val => { + return val.loadingNum > 0; }); - } - console.log('_data :>> ', _data); + const submitData = { + loadId: details.loadId, + zeroSuppleList: [], + }; + + for (const iterator of details.newData) { + submitData.zeroSuppleList.push({ + orderCode: iterator.orderCode, + waybillNo: iterator.waybillNo, + enterNum: iterator.loadingNum, + finalNodeId: iterator.finalNodeId, + }); + } + + console.log('submitData :>> ', submitData); + const res = await postAddZeroSupple(submitData); + + const { code } = res.data; + if (code !== 200) return; + } catch (error) { + console.log('error :>> ', error); + } finally { + // 关闭提交loading + details.loadingObj.submitLoading = false; + } }; @@ -743,4 +857,8 @@ const handleEditZeroSubmit = () => { :deep(.el-input-number__increase) { zoom: 0.8; } + +.el-select { + width: 100%; +} diff --git a/src/views/distribution/inventory/BookingNote.vue b/src/views/distribution/inventory/BookingNote.vue index 856c44b9..db295e45 100644 --- a/src/views/distribution/inventory/BookingNote.vue +++ b/src/views/distribution/inventory/BookingNote.vue @@ -186,7 +186,7 @@
- + 公斤 @@ -200,6 +200,7 @@ v-for="item in details.options" :key="item.value" :label="item.label" + readonly :value="item.value" /> @@ -210,6 +211,7 @@ v-model="item.num" controls-position="right" :precision="0" + readonly :step="0.1" /> @@ -219,6 +221,7 @@ v-model="item.volume" controls-position="right" :precision="4" + readonly :step="0.1" /> @@ -228,6 +231,7 @@ v-model="item.weight" controls-position="right" :precision="3" + readonly :step="0.1" /> @@ -237,6 +241,7 @@ v-model="item.price" controls-position="right" :precision="2" + readonly :step="0.1" /> @@ -247,6 +252,7 @@ controls-position="right" :precision="2" :step="0.1" + readonly />
@@ -362,7 +368,7 @@ {{ totalCost }}
- + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + 运单池 + + +
+ + 添 加 + + +
+ + +
+
+
合计: 选择数: {{ addInfo.oldSelectionList.length }}
+
+ + + +
+
+ + +
+ + 调度池 + +
+ + + 移 除 + +
+ + +
+
合计: 选择数: {{ addInfo.oldSelectionList.length }}
+
+
+
+ + +
+ 提 交 + 取 消 +
+ + + + + +
+
+
基本信息
+
+ + + + + + + + + + + + + + + + +
+
+ +
+
+
节点信息
+ 创建新节点 +
+
+ + + + + + + + + + + + +
+
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
勾选数量: {{ selectionList.length }}
+ + + +
+
+
+
+ + + + + + + + diff --git a/src/views/distribution/inventory/arteryDistrilbutionBillLadingList.vue b/src/views/distribution/inventory/arteryDistrilbutionBillLadingList.vue index a334d27b..84d88a6d 100644 --- a/src/views/distribution/inventory/arteryDistrilbutionBillLadingList.vue +++ b/src/views/distribution/inventory/arteryDistrilbutionBillLadingList.vue @@ -1147,18 +1147,25 @@ export default { async handleSubmit() {}, /** 新增 */ handleAdd() { - this.title = '新增'; - this.addInfo.form = {}; - this.box = true; - this.addInfo.isNew = true; - this.$nextTick(() => { - // 获取表格实例并赋值高度和宽度 - var bodyContent = document.querySelectorAll('.el-dialog .maboxhi'); - bodyContent.forEach(val => { - val.style.height = '350px'; - // val.style.width = '45%'; - }); + this.$router.push({ + path: '/distribution/inventory/addArteryDistrilbutionBillLadingList', + query: { + name: '新增提货', + }, }); + + // this.title = '新增'; + // this.addInfo.form = {}; + // this.box = true; + // this.addInfo.isNew = true; + // this.$nextTick(() => { + // // 获取表格实例并赋值高度和宽度 + // var bodyContent = document.querySelectorAll('.el-dialog .maboxhi'); + // bodyContent.forEach(val => { + // val.style.height = '350px'; + // // val.style.width = '45%'; + // }); + // }); }, /** 修改 */ handleEdit() { diff --git a/src/views/distribution/signfor/distributionSignfortreat.vue b/src/views/distribution/signfor/distributionSignfortreat.vue index 3ae8f765..b3d5512b 100644 --- a/src/views/distribution/signfor/distributionSignfortreat.vue +++ b/src/views/distribution/signfor/distributionSignfortreat.vue @@ -162,8 +162,8 @@ '装车件数' || '签收数' || '未签收数' || - '未装车件数'|| - '异常装车件数'|| + '未装车件数' || + '异常装车件数' || '异常签收件数' " > @@ -394,7 +394,6 @@ :on-success="ImgSuccessC" :headers="headers" multiple - > @@ -1856,11 +1855,11 @@ export default { type = 5; this.numberTitle = '未签收详情列表'; break; - case '异常装车件数': + case '异常装车件数': type = 6; this.numberTitle = '异常装车详情列表'; break; - case '异常签收件数': + case '异常签收件数': type = 7; this.numberTitle = '异常签收详情列表'; break; @@ -2511,7 +2510,7 @@ export default { display: flex; align-items: flex-end; } -:deep(.el-upload-list__item-thumbnail){ +:deep(.el-upload-list__item-thumbnail) { object-fit: fill; } diff --git a/src/views/warehouse/parcelList/distributionParcelList.vue b/src/views/warehouse/parcelList/distributionParcelList.vue index a1cde114..806c5888 100644 --- a/src/views/warehouse/parcelList/distributionParcelList.vue +++ b/src/views/warehouse/parcelList/distributionParcelList.vue @@ -260,7 +260,7 @@ export default { head: false, }, { - prop: 'trainNumber', + prop: 'carNumber', label: '客户车次号', type: 2, values: '', @@ -370,7 +370,6 @@ export default { sortable: true, }, - { prop: 'reservationCode', label: '预约单编号', @@ -381,10 +380,8 @@ export default { fixed: false, sortable: true, }, - - { - prop: 'noteNumber', + prop: 'trainNumber', label: '配送车次号', type: 2, values: '', @@ -393,8 +390,6 @@ export default { fixed: false, sortable: true, }, - - { prop: 'driverName', label: '配送司机', @@ -405,8 +400,6 @@ export default { fixed: false, sortable: true, }, - - { prop: 'scanTime', label: '装车时间', @@ -417,8 +410,6 @@ export default { fixed: false, sortable: true, }, - - { prop: 'scanUser', label: '实际装车人', @@ -509,7 +500,7 @@ export default { fixed: false, sortable: true, }, - + // { // prop: 'allocationMsg', // label: '货位信息', @@ -761,21 +752,6 @@ export default { delete this.query[row.prop.replace(/Name/, '')]; delete this.query[row.prop]; } - - // // 上架状态 - // if (row.prop === 'orderPackageGroundingStatusName') { - // this.query.orderPackageGroundingStatus = value; - // if (value === '') delete this.query.orderPackageGroundingStatus; - // } - - // if (row.prop === 'orderPackageStatusName') { - // this.query.orderPackageStatus = value; - // if (value === '') delete this.query.orderPackageStatus; - // } - - // if (value === '') { - // delete this.query[row.prop]; - // } this.page.currentPage = 1; this.onLoad(this.page); }, diff --git a/vite.config.js b/vite.config.js index a8678b55..08e6eaf9 100644 --- a/vite.config.js +++ b/vite.config.js @@ -23,13 +23,13 @@ export default ({ mode, command }) => { // 新zyc // target: 'http://192.168.6.116:8777', // target: 'http://192.168.6.122:8777', - target: 'http://192.168.10.25:13000', + // target: 'http://192.168.10.25:13000', // target: 'http://192.168.10.25:2888', // target: 'http://192.168.6.148:9777', - // target: 'http://192.168.10.57:13000', + target: 'http://192.168.10.57:13000', // tjj // sst - // target: 'http://192.168.10.94:8888', + // target: 'http://192.168.10.200:13000', // target: 'http://192.168.10.29:13000', // target: 'http://h5uapi.huitongys.com', // target: 'http://test.api.huitongys.com', From ffc259f268d0895a8bb81909b603e3846ce20656 Mon Sep 17 00:00:00 2001 From: xzg <4727863@qq.com> Date: Wed, 27 Dec 2023 16:27:44 +0800 Subject: [PATCH 3/7] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/aftersales/aftersalesWorkOrderend.vue | 6 +++--- .../warehouse/parcelList/distributionParcelList.vue | 12 ++---------- 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/src/views/aftersales/aftersalesWorkOrderend.vue b/src/views/aftersales/aftersalesWorkOrderend.vue index 74b7ed6a..8693c81e 100644 --- a/src/views/aftersales/aftersalesWorkOrderend.vue +++ b/src/views/aftersales/aftersalesWorkOrderend.vue @@ -1010,7 +1010,7 @@ const onLoad = () => { }); // 包件回显 PackageInfo.value = res.data.data.abnormalPackageVOList; - + // 要修改 // 责任方回显 FangAddList.value = res.data.data.processorVOList .filter(item => item.typesOf == '1') @@ -1028,12 +1028,12 @@ const onLoad = () => { description: res.description, //说明 }; }); - + // 要修改 res.data.data.processorVOList.forEach(item => { if (item.typesOf == 2) { // 处理方 endFrom.value.processor.push(item.businessId); - // MessageResponsibility.value.push(item.businessId) + //MessageResponsibility.value.push(item.businessId) } }); console.log(endFrom.value.processor, ' endFrom.value.processor'); diff --git a/src/views/warehouse/parcelList/distributionParcelList.vue b/src/views/warehouse/parcelList/distributionParcelList.vue index a1cde114..8d8ef45e 100644 --- a/src/views/warehouse/parcelList/distributionParcelList.vue +++ b/src/views/warehouse/parcelList/distributionParcelList.vue @@ -381,11 +381,9 @@ export default { fixed: false, sortable: true, }, - - { prop: 'noteNumber', - label: '配送车次号', + label: '配送单号', type: 2, values: '', width: '130', @@ -393,8 +391,6 @@ export default { fixed: false, sortable: true, }, - - { prop: 'driverName', label: '配送司机', @@ -405,8 +401,6 @@ export default { fixed: false, sortable: true, }, - - { prop: 'scanTime', label: '装车时间', @@ -417,8 +411,6 @@ export default { fixed: false, sortable: true, }, - - { prop: 'scanUser', label: '实际装车人', @@ -451,7 +443,7 @@ export default { }, { prop: 'dvehicleName', - label: '配送车牌', + label: '配送车次号', type: 2, values: '', width: '130', From 28b472c380216386cf68c11e7f942e647fad6560 Mon Sep 17 00:00:00 2001 From: qb <1191961160@qq.com> Date: Wed, 27 Dec 2023 16:36:03 +0800 Subject: [PATCH 4/7] =?UTF-8?q?=E5=8C=85=E4=BB=B6=E6=98=8E=E7=BB=86?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../parcelList/distributionParcelList.vue | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/views/warehouse/parcelList/distributionParcelList.vue b/src/views/warehouse/parcelList/distributionParcelList.vue index 2271b809..9acc9e89 100644 --- a/src/views/warehouse/parcelList/distributionParcelList.vue +++ b/src/views/warehouse/parcelList/distributionParcelList.vue @@ -440,6 +440,16 @@ export default { fixed: false, sortable: true, }, + { + prop: 'noteNumber', + label: '配送单号', + type: 2, + values: '', + width: '130', + checkarr: [], + fixed: false, + sortable: true, + }, { prop: 'dvehicleName', label: '配送车次号', @@ -450,6 +460,16 @@ export default { fixed: false, sortable: true, }, + { + prop: 'vehicleName', + label: '配送车牌', + type: 2, + values: '', + width: '130', + checkarr: [], + fixed: false, + sortable: true, + }, { prop: 'firsts', label: '一级品', From a6a78d1c1bba6586a24d9196a3a686937ddac1c8 Mon Sep 17 00:00:00 2001 From: xzg <4727863@qq.com> Date: Wed, 27 Dec 2023 17:35:37 +0800 Subject: [PATCH 5/7] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../distributionDeliveryListedt.vue | 7 +- .../turndelivery/deliveryDiscuss.vue | 124 +++++++++++++++++- 2 files changed, 125 insertions(+), 6 deletions(-) diff --git a/src/views/distribution/deliverylist/distributionDeliveryListedt.vue b/src/views/distribution/deliverylist/distributionDeliveryListedt.vue index 4caad91e..f6e320b3 100644 --- a/src/views/distribution/deliverylist/distributionDeliveryListedt.vue +++ b/src/views/distribution/deliverylist/distributionDeliveryListedt.vue @@ -182,11 +182,12 @@ text icon="el-icon-view" @click="handleSignone(slotProps.scope.row)" - v-if=" + + >一键签收 + diff --git a/src/views/distribution/turndelivery/deliveryDiscuss.vue b/src/views/distribution/turndelivery/deliveryDiscuss.vue index 90183d73..0465d54e 100644 --- a/src/views/distribution/turndelivery/deliveryDiscuss.vue +++ b/src/views/distribution/turndelivery/deliveryDiscuss.vue @@ -421,6 +421,9 @@ +
+ +
@@ -484,6 +487,27 @@ 搜索菜单预留按钮
-->
+
+ +
+ + + + + + + + +
+ +
@@ -831,6 +855,7 @@ const pageList = ref([5, 10, 50, 100, 200]); // 选择每页显示多少条 const background = ref(true); // 是否开启背景颜色 const disabled = ref(false); // 是否禁止使用页码功能 const data = ref([]); // 表格数据 +const PackageFrom=ref({});//包件搜索 const wrapData = ref([]); //包件表格信息 const wrapLoading = ref(false); //包件表格弹窗 const dataInfo = ref([]); //表格展示信息 @@ -849,6 +874,7 @@ const flexList = ref<(string | number)[]>([]); //冻结 const loading = ref(false); //刷新功能 const BG = ref(false); //表格功能列表 const BtnRadio = ref('1'); //按钮样式风格切换 +const Packageow = ref(); //查看包间报错当前数据 const ElBtnClass = ref('el-Btn-link'); //按钮样式风格类名 const searchSo = ref(false); //搜索弹窗 const SoHeight = ref(); //搜索栏高度动态 @@ -1614,8 +1640,6 @@ const wrap = ref([ head: true, }, - - { prop: 'quantity', label: '数量', @@ -2107,17 +2131,89 @@ const findIndexById = id => { return -1; //返回-1表示没用查询到 }; +// 查看包间函数 +const PackageFn=()=>{ + //接收点击查看当前行数据; + // 编辑信息弹窗状态 + if (RouteId.value) { + console.log(wrapLoading.value, '当前为编辑状态'); + $_getPackageListByDeliveryIdAndOrderId({ + ...PackageFrom.value,//搜索参数 + current: 1, + size: 100, + deliveryId: RouteId.value, + id: Packageow.value.id, + }).then(res => { + console.log(res, '订单包件信息'); + if (res.data.code == 200) { + wrapData.value = res.data.data.data.packageList; + let IdTmp = []; //订单ID暂存 + dataInfo.value[dataId.value].packageListInfo = wrapTemp.value[dataId.value]; + //查看当前订单下面包件是缓存值,如果有就读取缓存值,否则就是第一次加载,使用API返回值 + if (dataInfo.value[dataId.value].packageListInfo) { + dataInfo.value[dataId.value].packageListInfo.forEach(item => { + IdTmp.push(item.id); + }); + } + toggleSelection({ + val: false, + data: IdTmp.length ? IdTmp : res.data.data.data.packageListIds.split(','), + index: kind.value ? 0 : 1, + }); //编辑的时候选中已有的数据 + } + // AddLalog.value = false; //关闭弹窗 + console.log(wrapData.value, '包件表格信息'); + console.log(res); + }); + } else { + // 运单号 + // 包条码 + $_getPackageListByStockArticleId({ + ...PackageFrom.value,//搜索参数 + id: Packageow.value.id, + current: 1, + size: 100, + }).then(res => { + wrapData.value = res.data.data.records; + console.log(res, '订单包件'); + if (kind.value) { + toggleSelection({ index: 0 }); //自主配送下面包件全选 + } else { + toggleSelection({ index: 1 }); //外协下面包件全选 + } + console.log(tableRefs, 'tableRefs'); + console.log(res.data.data.records, '查看下面的包件'); + }); + // 新增 查看订单流程 + console.log('当前为新增状态'); + console.log(Packageow.value, Packageow.value.id, '查看包件事件'); + //临时存储下标用于查询包件对应的下标 + console.log(dataId.value, 'dataId.value下标'); + console.log(wrapDataInfo.value[dataId.value], '当前订单下面的包件信息'); + console.log(wrapDataInfo, '订单'); + } + editLoading.value = false; //关闭加载效果 +} + + + + // 查看包件事件 const ViewEvent = val => { + Packageow.value = val; wrapLoading.value = true; //查看包件弹窗 AddLalog.value = true; //开启弹窗 editLoading.value = true; //开启加载效果 dataId.value = findIndexById(val.id); //接收点击查看当前行数据; // 编辑信息弹窗状态 + PackageFn() + return if (RouteId.value) { console.log(wrapLoading.value, '当前为编辑状态'); $_getPackageListByDeliveryIdAndOrderId({ + waybillNumber: '', //运单号 + orderPackageCode: '', //包条码 current: 1, size: 100, deliveryId: RouteId.value, @@ -2145,7 +2241,11 @@ const ViewEvent = val => { console.log(res); }); } else { + // 运单号 + // 包条码 $_getPackageListByStockArticleId({ + waybillNumber: '', //运单号 + orderPackageCode: '', //包条码 id: val.id, current: 1, size: 100, @@ -2317,20 +2417,33 @@ const search = () => { }; // 顶部搜索功能 const SoInput = () => { +if(!wrapLoading){ if (kind.value) { OrderSelection(0, parameter.value); } else { OrderSelection(1, parameter.value); } +}else{ + PackageFn() +} + + + }; // 顶部清空搜索 const SoEmpty = () => { - parameter.value = {}; + if(!wrapLoading){ + parameter.value = {}; if (kind.value) { OrderSelection(0); } else { OrderSelection(1); } + }else{ + PackageFrom.value={} + PackageFn() + } + }; // 去重函数 接收一个数字通过ID匹配去掉重复项 @@ -3172,4 +3285,9 @@ const SubmitCommercial = () => { background-color: #ff0000; color: #fff; } +.el_package{ + :deep(.el-form){ + justify-content: flex-start !important; + } +} From a701141e2d82e54f7651facea67e107f240b8654 Mon Sep 17 00:00:00 2001 From: xzg <4727863@qq.com> Date: Wed, 27 Dec 2023 17:51:41 +0800 Subject: [PATCH 6/7] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=97=A5=E6=9C=9F?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/aftersales/aftersalesWorkOrderAdd.vue | 6 +++--- vite.config.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/views/aftersales/aftersalesWorkOrderAdd.vue b/src/views/aftersales/aftersalesWorkOrderAdd.vue index 9ecd28fe..82bdeaab 100644 --- a/src/views/aftersales/aftersalesWorkOrderAdd.vue +++ b/src/views/aftersales/aftersalesWorkOrderAdd.vue @@ -177,7 +177,7 @@ v-model="Indexform.deliveryTime" type="datetime" format="YYYY-MM-DD" - value-format="YYYY-MM-DD" + value-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择配送时间" /> @@ -223,7 +223,7 @@ v-model="Indexform.deliverGoodsTime" type="datetime" format="YYYY-MM-DD" - value-format="YYYY-MM-DD" + value-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择发货时间" /> @@ -763,7 +763,7 @@ function DeliveryTrainnumber() { taskTime: Indexform.value.deliveryTime, }; data.current = 1; //页码 - data.size = 999; //条数 + data.size = 200; //条数 $_shippingInformation(data).then(res => { console.log(res, '查询返回值'); DeliveryDriver.value = res.data.data.records; //获取到的信息 diff --git a/vite.config.js b/vite.config.js index 86c520b7..7054f708 100644 --- a/vite.config.js +++ b/vite.config.js @@ -26,8 +26,8 @@ export default ({ mode, command }) => { // target: 'http://192.168.10.25:13000', // target: 'http://192.168.10.25:13000', // target: 'http://192.168.10.25:2888', - // target: 'http://192.168.6.148:9777', - target: 'http://192.168.10.57:13000', + target: 'http://192.168.6.148:9777', + // target: 'http://192.168.10.57:13000', // tjj // sst // target: 'http://192.168.10.200:13000', From 48f46dfa7a7be58b2c1190d960da0ce003cdf33a Mon Sep 17 00:00:00 2001 From: xzg <4727863@qq.com> Date: Wed, 27 Dec 2023 19:31:31 +0800 Subject: [PATCH 7/7] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=80=E9=94=AE?= =?UTF-8?q?=E7=AD=BE=E6=94=B6=E5=9B=BE=E7=89=87=E7=BC=93=E5=AD=98=EF=BC=8C?= =?UTF-8?q?=E7=AD=BE=E6=94=B6=E5=9B=BE=E7=89=87=E6=89=B9=E9=87=8F=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../deliverylist/distributionDeliveryListedt.vue | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/views/distribution/deliverylist/distributionDeliveryListedt.vue b/src/views/distribution/deliverylist/distributionDeliveryListedt.vue index f6e320b3..f92ed37f 100644 --- a/src/views/distribution/deliverylist/distributionDeliveryListedt.vue +++ b/src/views/distribution/deliverylist/distributionDeliveryListedt.vue @@ -551,6 +551,7 @@ :on-remove="handleRemove" :on-success="ImgSuccessA" :headers="headers" + multiple > @@ -569,6 +570,7 @@ :on-remove="handleRemove" :on-success="ImgSuccessB" :headers="headers" + multiple > @@ -587,6 +589,7 @@ :on-remove="handleRemove" :on-success="ImgSuccessC" :headers="headers" + multiple > @@ -605,6 +608,7 @@ :on-remove="handleRemove" :on-success="ImgSuccessD" :headers="headers" + multiple > @@ -612,7 +616,7 @@ IMG
- +
签收照 @@ -3555,6 +3560,12 @@ export default { }, //一键签收 handleSignone(row) { + // 清空图片缓存 + this.DoorstepPhoto=[] + this.StackingPhoto=[] + this.FragilePhotos=[] + this.HomePhotos=[] + this.SignForPhotos=[] console.log('一键签收222>>>>>>>>>>', row); if (row.loadingStatus != '已装车') { ElMessage({