From c20f430d116afc7a65c67ed8ef8db2586a3cd4ba Mon Sep 17 00:00:00 2001 From: xzg <4727863@qq.com> Date: Wed, 16 Oct 2024 15:39:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B7=B2=E7=9F=A5bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Pricesystem/Price/PriceWarehousing.vue | 12 ++++++----- .../aftersales/aftersalesWorkOrderInfo.vue | 20 ++++++++----------- .../signdetail/distributionSigndetail.vue | 3 ++- 3 files changed, 17 insertions(+), 18 deletions(-) diff --git a/src/views/Pricesystem/Price/PriceWarehousing.vue b/src/views/Pricesystem/Price/PriceWarehousing.vue index 5211bd8d..883d9312 100644 --- a/src/views/Pricesystem/Price/PriceWarehousing.vue +++ b/src/views/Pricesystem/Price/PriceWarehousing.vue @@ -336,9 +336,9 @@ const onLoad = async () => { function handleFormUpdate(disableIndexAndCategory, unitLabel, tableTitle, perPiece = false) { const unitMapping = { - 按件计费: `${unitLabel}/件`, - '按重量计费(t)': `${unitLabel}/KG`, - '按吨计费(t)': `${unitLabel}/t`, + '按件计费': `${unitLabel}`, + '按重量计费(t)': `${unitLabel}`, + '按吨计费(t)': `${unitLabel}`, }; const unit = unitMapping[tableTitle] || unitLabel; @@ -346,8 +346,10 @@ const onLoad = async () => { updateLabelsWithUnit(unit, { '30天内': '30天内', '30天-60天': '30天-60天', - '60天外': '60天外', - 上限: '上限', + '60天-90天': '60天-90天', + '60天-90天': '60天-90天', + '90天外': '90天外', + '上限': '上限', }); tabform.value.title = tableTitle; diff --git a/src/views/aftersales/aftersalesWorkOrderInfo.vue b/src/views/aftersales/aftersalesWorkOrderInfo.vue index fe9eb9d4..f3116a97 100644 --- a/src/views/aftersales/aftersalesWorkOrderInfo.vue +++ b/src/views/aftersales/aftersalesWorkOrderInfo.vue @@ -1104,22 +1104,18 @@ const handle = () => { }); }; // 是否可以查看完结信息 -const Completionpermissions = computed(async () => { - if (await localStorage.getItem('my_data')) { - Mydata.value = await JSON.parse(localStorage.getItem('my_data')); //获取本地仓库信息 +const Completionpermissions = computed(() => { + const myDataStr = localStorage.getItem('my_data'); + if (myDataStr) { + Mydata.value = JSON.parse(myDataStr); } - if (CompensationParty.value.length) { - console.log(CompletedView.value, 'CompletedView.value'); + if (CompensationParty.value && CompensationParty.value.length) { + if (CompletedView.value.includes(Mydata.value.id) || UserPermissions.value != '仓库客服') { - console.log( - CompletedView.value.includes(Mydata.id), - 'CompletedView.value.includes(Mydata.id)' - ); return true; - } else { - return false; - } + } } + return false; }); const onLoad = async () => { pageState.value = true; //开启页面加载 diff --git a/src/views/distribution/signdetail/distributionSigndetail.vue b/src/views/distribution/signdetail/distributionSigndetail.vue index 71f70c8e..57adabc6 100644 --- a/src/views/distribution/signdetail/distributionSigndetail.vue +++ b/src/views/distribution/signdetail/distributionSigndetail.vue @@ -33,7 +33,7 @@