From 6c2f7d358269697b91d2daf951a5440e1b3cb724 Mon Sep 17 00:00:00 2001 From: qb <1191961160@qq.com> Date: Tue, 22 Oct 2024 10:36:00 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=9D=E7=95=99=E6=9A=82=E5=AD=98?= =?UTF-8?q?=E5=8D=95=E5=BC=80=E5=8D=95=E5=90=8E=E6=90=9C=E7=B4=A2=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/waybill/TemporaryStorageList.vue | 21 ++++++++++++--------- src/views/waybill/WaybillOrderList.vue | 1 + 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/src/views/waybill/TemporaryStorageList.vue b/src/views/waybill/TemporaryStorageList.vue index cadd760f..9977993d 100644 --- a/src/views/waybill/TemporaryStorageList.vue +++ b/src/views/waybill/TemporaryStorageList.vue @@ -1177,7 +1177,6 @@ const handleCreateOrder = () => { }); } - let _htMallName = ''; let _dealerName = ''; let _brand = ''; @@ -1186,20 +1185,24 @@ const handleCreateOrder = () => { const value = details.selectionList[i]; if (i === 0) { - _htMallName = value.htMallName; - _dealerName = value.dealerName; - _brand = value.brand; + _htMallName = value.htMallName; + _dealerName = value.dealerName; + _brand = value.brand; } - + if (!_htMallName) { - if (_htMallName !== value.htMallName || _dealerName !== value.dealerName || _brand !== value.brand) { + if ( + _htMallName !== value.htMallName || + _dealerName !== value.dealerName || + _brand !== value.brand + ) { return ElMessage({ type: 'warning', message: '请选择统一商场和品牌开单', }); } } else { - if (_htMallName !== value.htMallName || _brand !== value.brand) { + if (_htMallName !== value.htMallName || _brand !== value.brand) { return ElMessage({ type: 'warning', message: '请选择统一商场和品牌开单', @@ -1509,8 +1512,8 @@ onActivated(() => { console.log('this.$store :>> ', $store); if ($store.state.isRefresh.refreshObj.TemporaryStorageList) { // 重新请求数据 - details.query = {}; - handleClearTableQuery(details.columnList); + // details.query = {}; + // handleClearTableQuery(details.columnList); details.page.pageNum = 1; onLoad({}, true); diff --git a/src/views/waybill/WaybillOrderList.vue b/src/views/waybill/WaybillOrderList.vue index d4a5d8eb..f6d2a6d8 100644 --- a/src/views/waybill/WaybillOrderList.vue +++ b/src/views/waybill/WaybillOrderList.vue @@ -705,6 +705,7 @@ const editOrder = () => { id: _item.id, type: 'edit', backPath: '/waybill/WaybillOrderList', + orderStatus: Number(_item.waybillType) === 1 ? 'haveData' : 'notHaveData', }, }); } else if (Number(_item.waybillType) === 2) { From a06cb081ee3460bf249a772173a0edd0eaf2c4f3 Mon Sep 17 00:00:00 2001 From: qb <1191961160@qq.com> Date: Tue, 22 Oct 2024 10:43:02 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=89=93=E5=8D=B0bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WaybillPrintTemplate/WaybillPrintTemplate.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/components/WaybillPrintTemplate/WaybillPrintTemplate.vue b/src/components/WaybillPrintTemplate/WaybillPrintTemplate.vue index 4564c34f..10a9e18c 100644 --- a/src/components/WaybillPrintTemplate/WaybillPrintTemplate.vue +++ b/src/components/WaybillPrintTemplate/WaybillPrintTemplate.vue @@ -213,6 +213,13 @@ const printTemplate = (type: 'haveTem' | 'notHaveTem') => { element.style.borderColor = type === 'haveTem' ? '#000' : '#fff'; } + const lineArr = document.querySelectorAll('.printCode .line'); + + for (let index = 0; index < lineArr.length; index++) { + const element = lineArr[index]; + element.style.borderColor = type === 'haveTem' ? '#000' : '#fff'; + } + print(printNode); };