From 7d904ea0aa38c07593177844a91439fa90da6e8e Mon Sep 17 00:00:00 2001 From: qb <1191961160@qq.com> Date: Mon, 25 Dec 2023 12:19:01 +0800 Subject: [PATCH 1/3] =?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 --- .../distributionDeliveryListedt.vue | 1 + .../parcelList/distributionParcelList.vue | 145 ++++++++++++++---- 2 files changed, 119 insertions(+), 27 deletions(-) diff --git a/src/views/distribution/deliverylist/distributionDeliveryListedt.vue b/src/views/distribution/deliverylist/distributionDeliveryListedt.vue index 883cdddd..1a938aad 100644 --- a/src/views/distribution/deliverylist/distributionDeliveryListedt.vue +++ b/src/views/distribution/deliverylist/distributionDeliveryListedt.vue @@ -396,6 +396,7 @@ class="el-dialog-view" :fullscreen="wrapoption.fullscreen" :before-close="beforeClose" + :show-close="false" append-to-body > + { @@ -3763,4 +3788,11 @@ export default { .el_foot { overflow: scroll; } + +// 标题 +:deep(.el-divider__text.is-center) { + font-size: 20px; + font-weight: bold; + color: var(--el-color-primary); +} diff --git a/src/views/distribution/reservation/reservation.vue b/src/views/distribution/reservation/reservation.vue index d7b1cea0..4250b20d 100644 --- a/src/views/distribution/reservation/reservation.vue +++ b/src/views/distribution/reservation/reservation.vue @@ -1340,13 +1340,22 @@ export default { } }); ids = ids.join(','); + this.$router.push({ - path: '/distribution/reservation/atlas', + path: '/distribution/turndelivery/deliveryMarket', query: { id: ids, - type: '1', + name: '市配计划', }, }); + + // this.$router.push({ + // path: '/distribution/reservation/atlas', + // query: { + // id: ids, + // type: '1', + // }, + // }); // console.log(">>>>>>>>>>",ids); }, //批量转备货 diff --git a/src/views/distribution/reservation/reservationAddFrom.vue b/src/views/distribution/reservation/reservationAddFrom.vue index 1681fedb..1f9aa830 100644 --- a/src/views/distribution/reservation/reservationAddFrom.vue +++ b/src/views/distribution/reservation/reservationAddFrom.vue @@ -128,6 +128,7 @@ 新 增 新 增 > ', _node); _node.style.transition = 'all 0.3s'; setNodeHeight(_node, '500px'); + + this.setTableHeight(); }); }, checkOrder(row, index) { @@ -2128,6 +2141,8 @@ export default { const _node = document.querySelector('.stockListShow .maboxhi'); _node.style.transition = 'all 0.3s'; setNodeHeight(_node, '500px'); + + this.setTableHeight(); }); } ); @@ -2571,7 +2586,7 @@ export default { if (item.id === row.id) { this.orderData.splice(index, 1); } - console.log(this.orderData,'当前存在的数据'); + console.log(this.orderData, '当前存在的数据'); }); // 当两个列表没有数据时, 清空限制 if (this.inventoryData.length === 0 && this.orderData.length === 0) this.marketName = ''; @@ -2819,17 +2834,22 @@ export default { // } // return true; // }); + console.log('this.inventoryList :>> ', this.inventoryList); + const stockArr = [...this.inventoryData, ...this.inventoryList]; // 检测商场是否选择统一商场 const _isUnifyMarketName = stockArr.every(value => { // 设置同一商场 - if (this.marketName === '') this.marketName = value.marketName; + if (this.marketName === '') this.marketName = removeZeroWidth(value.marketName); if (this.marketName !== value.marketName) { this.$message.warning('请选择统一商场!!!'); return false; - } else if (value.reservationNum > value.applyNum) { + } else if (Number(value.reservationNum) > Number(value.applyNum)) { + console.log('value >>>>>>>>', value); + console.log('Number(value.reservationNum) :>> ', Number(value.reservationNum)); + console.log('Number(value.applyNum) :>> ', Number(value.applyNum), value.applyNum); this.$message.warning('该库存品数量输入有误!!!'); return false; } @@ -2840,7 +2860,6 @@ export default { return; } - console.log('this.inventoryList :>> ', this.inventoryList); this.inventoryData = stockArr; this.stockListShow = false; @@ -2852,10 +2871,10 @@ export default { console.log('orderList-------------》', this.orderList); if (this.orderList.length === 0) return this.$message.warning('最少选择一条数据!!!'); const list = [...this.orderData, ...this.orderList]; - let _name = list[0].customerName.trim(); - let _address = list[0].customerAddress.trim(); - let _phone = list[0].customerTelephone.trim(); - if (this.marketName === '') this.marketName = list[0].mallName.trim(); + let _name = removeZeroWidth(list[0].customerName.trim()); + let _address = removeZeroWidth(list[0].customerAddress.trim()); + let _phone = removeZeroWidth(list[0].customerTelephone.trim()); + if (this.marketName === '') this.marketName = removeZeroWidth(list[0].mallName.trim()); // 设置商场名称 if (this.marketName === '') this.marketName = this.marketName; @@ -2867,10 +2886,20 @@ export default { return false; } - if ( - item.customerName.trim() !== _name || - item.customerAddress.trim() !== _address || + console.log(' item.customerName.trim() !== _name :>> ', item.customerName.trim() !== _name); + console.log( + ' item.customerName.trim() !== _name :>> ', + item.customerAddress.trim() !== _address + ); + console.log( + ' item.customerName.trim() !== _name :>> ', item.customerTelephone.trim() !== _phone + ); + + if ( + removeZeroWidth(item.customerName.trim()) !== _name || + removeZeroWidth(item.customerAddress.trim()) !== _address || + removeZeroWidth(item.customerTelephone.trim()) !== _phone ) { console.log('123'); this.$message.warning('请选择统一顾客订单!!!'); diff --git a/src/views/distribution/turndelivery/deliveryDiscuss.vue b/src/views/distribution/turndelivery/deliveryDiscuss.vue index 39ed1b27..37a1a08a 100644 --- a/src/views/distribution/turndelivery/deliveryDiscuss.vue +++ b/src/views/distribution/turndelivery/deliveryDiscuss.vue @@ -381,7 +381,6 @@ -
@@ -441,7 +440,14 @@ + + + @@ -453,9 +459,7 @@ placeholder="请输入顾客地址" /> - - - + ', this.data); if (!this.deliveryListId) { data.reservationIds = this.reservationIds; + data.reservationIds = this.reservationData.map(val => val.id).join(','); if (this.reservationData.length < 1) { this.$message({ message: '无效的配送计划', diff --git a/vite.config.js b/vite.config.js index 187bfd53..768ed4ed 100644 --- a/vite.config.js +++ b/vite.config.js @@ -25,14 +25,14 @@ export default ({ mode, command }) => { // target: 'http://192.168.6.122:8777', // 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.6.116:8777', + // target: 'http://192.168.6.148:9777', + // target: 'http://192.168.10.57:13000', // tjj // sst // target: 'http://192.168.10.94:8888', // target: 'http://192.168.10.29:13000', // target: 'http://h5uapi.huitongys.com', - // target: 'http://test.api.huitongys.com', + target: 'http://test.api.huitongys.com', changeOrigin: true, rewrite: path => path.replace(/^\/api/, ''), },