From 7ec6a5ffb27f08bebab5c4d5bd48f50b1a733ee8 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Thu, 5 Sep 2024 14:16:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=BB=84=E4=BB=B62024/7/3=20?= =?UTF-8?q?16:35:31?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 8 +- src/mycomponents/qty/balanceQtyEdit.vue | 10 +- .../record/recordComDetailCard.vue | 6 +- src/mycomponents/scan/winComScan.vue | 2 +- src/mycomponents/scan/winScanPackage.vue | 75 +++- src/pages.json | 20 + src/pages/fg/receiptByPlan.vue | 5 + src/pages/fg/receiptNoPlan.vue | 398 ++++++++++++++++++ src/pages/issue/request/issueScanRequest.vue | 4 +- src/pages/material/materialDowngrade.vue | 288 +++++++++++++ .../purchaseReceipt/job/receiptDetail.vue | 5 +- .../record/directRepleinshRecord.vue | 3 +- 12 files changed, 802 insertions(+), 22 deletions(-) create mode 100644 src/pages/fg/receiptByPlan.vue create mode 100644 src/pages/fg/receiptNoPlan.vue create mode 100644 src/pages/material/materialDowngrade.vue diff --git a/.env.development b/.env.development index 531b171f..baddd93b 100644 --- a/.env.development +++ b/.env.development @@ -1,11 +1,11 @@ -VITE_BASE_URL=http://172.21.32.14:81/api/admin-api -VITE_BASE_URL_IMAGE=http://172.21.32.14:81/admin-api +VITE_BASE_URL=http://172.22.32.9:81/api/admin-api +VITE_BASE_URL_IMAGE=http://172.22.32.9:81/admin-api # 租户配置 -VITE_TENANT='[{"text":"长春","value":1}]' +VITE_TENANT='[{"text":"成都","value":2}]' # 是否是测试环境 VITE_isDevelopment=false # 积木报表请求路径 -VITE_JMREPORT_BASE_URL='http://172.21.32.14:90' +VITE_JMREPORT_BASE_URL='http://172.22.32.9:90' \ No newline at end of file diff --git a/src/mycomponents/qty/balanceQtyEdit.vue b/src/mycomponents/qty/balanceQtyEdit.vue index eb46a97e..9e290442 100644 --- a/src/mycomponents/qty/balanceQtyEdit.vue +++ b/src/mycomponents/qty/balanceQtyEdit.vue @@ -148,17 +148,15 @@ const calcQty = (e) => { } const setValue = () => { const balanceQty = Number(dataContent.value.balanceQty) - if (allQty.value == 0) { - comMessageRef.value.showErrorMessage('数量必须大于0', (res) => { + if (allQty.value < 0) { + comMessageRef.value.showErrorMessage('数量必须等于0', (res) => { if (res) { allQty.value = balanceQty } }) } else if (allQty.value > balanceQty) { - comMessageRef.value.showErrorMessage(`数量[${allQty.value}]不允许大于库存数量[${balanceQty}]`, (res) => { - if (res) { - allQty.value = balanceQty - } + comMessageRef.value.showConfirmWarningModal(`数量[${allQty.value}]不允许大于库存数量[${balanceQty}]`, (res) => { + allQty.value = balanceQty }) } else { callback() diff --git a/src/mycomponents/record/recordComDetailCard.vue b/src/mycomponents/record/recordComDetailCard.vue index 58de0ee9..35eb06fa 100644 --- a/src/mycomponents/record/recordComDetailCard.vue +++ b/src/mycomponents/record/recordComDetailCard.vue @@ -66,7 +66,11 @@ watch( if (val.subList.length > 0) { if (collapse1.value != undefined && collapse1.value != null) { nextTick((res) => { - collapse1.value.init() + setTimeout(() => { + if (collapse1.value) { + collapse1.value.resize() + } + }, 500) }) } } diff --git a/src/mycomponents/scan/winComScan.vue b/src/mycomponents/scan/winComScan.vue index 4ef3c8a9..e6f0a1f2 100644 --- a/src/mycomponents/scan/winComScan.vue +++ b/src/mycomponents/scan/winComScan.vue @@ -24,7 +24,7 @@ - + diff --git a/src/mycomponents/scan/winScanPackage.vue b/src/mycomponents/scan/winScanPackage.vue index 0d8b48af..68d6c661 100644 --- a/src/mycomponents/scan/winScanPackage.vue +++ b/src/mycomponents/scan/winScanPackage.vue @@ -25,6 +25,7 @@ diff --git a/src/pages/fg/receiptNoPlan.vue b/src/pages/fg/receiptNoPlan.vue new file mode 100644 index 00000000..3be70c57 --- /dev/null +++ b/src/pages/fg/receiptNoPlan.vue @@ -0,0 +1,398 @@ + + + + + + + + + + diff --git a/src/pages/issue/request/issueScanRequest.vue b/src/pages/issue/request/issueScanRequest.vue index 72cef50b..e369f51a 100644 --- a/src/pages/issue/request/issueScanRequest.vue +++ b/src/pages/issue/request/issueScanRequest.vue @@ -74,8 +74,6 @@ const getScanResult = (data) => { const labelInfo = data.label var data = { - productionLineCode: labelInfo.productionLineCode, - workStationCode: labelInfo.workStationCode, itemCode: labelInfo.itemCode, location: labelInfo.location, qty: labelInfo.qty, @@ -83,6 +81,8 @@ const getScanResult = (data) => { packUnit: labelInfo.packUnit } detailSource.value.subList.push(data) + detailSource.value.productionLineCode = labelInfo.productionLineCode + detailSource.value.workStationCode = labelInfo.workStationCode detailSource.value.warehouseCode = labelInfo.warehouseCode detailSource.value.workshopCode = labelInfo.workshopCode submit() diff --git a/src/pages/material/materialDowngrade.vue b/src/pages/material/materialDowngrade.vue new file mode 100644 index 00000000..0f600fde --- /dev/null +++ b/src/pages/material/materialDowngrade.vue @@ -0,0 +1,288 @@ + + + + + diff --git a/src/pages/purchaseReceipt/job/receiptDetail.vue b/src/pages/purchaseReceipt/job/receiptDetail.vue index d55140d1..96e04bc9 100644 --- a/src/pages/purchaseReceipt/job/receiptDetail.vue +++ b/src/pages/purchaseReceipt/job/receiptDetail.vue @@ -423,10 +423,7 @@ const submitJob = () => { const timer1 = setInterval(async () => { if (timerCount == 15) { clearInterval(timer1) - uni.showToast({ - title: '跳转打印页面失败', - icon: 'none' - }) + showErrorMessage('上架任务生成异常,请到收货记录里重新生成上架申请') return } await getPutawayJobList({ diff --git a/src/pages/repleinsh/record/directRepleinshRecord.vue b/src/pages/repleinsh/record/directRepleinshRecord.vue index 46eb59ae..f5d80d64 100644 --- a/src/pages/repleinsh/record/directRepleinshRecord.vue +++ b/src/pages/repleinsh/record/directRepleinshRecord.vue @@ -230,7 +230,8 @@ const showBalanceSelect = (items) => { } const selectBalanceItem = (balance) => { - afterGetBalance(resultData.value, balance) + resultData.value.balance = balance + afterGetBalance(resultData.value) } const afterGetBalance = (result) => {