From 92d5d09e18f8005a13478a651daaa652066a5576 Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Mon, 15 Jan 2024 13:58:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=94=9F=E4=BA=A7=E9=80=80?= =?UTF-8?q?=E6=96=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 6 ++-- pages/inventoryMove/coms/comMoveRecord.vue | 2 +- .../inventoryMove/coms/comMoveRecordCard.vue | 14 +++++++- pages/issue/record/issueRecord.vue | 31 ++++++++-------- .../coms/comReturnRequestCreator.vue | 35 +++++++++---------- .../productionReturn/record/returnToHold.vue | 6 +++- .../productionReturn/record/returnToStore.vue | 7 +++- 7 files changed, 62 insertions(+), 39 deletions(-) diff --git a/pages.json b/pages.json index 859ab9f7..c385da96 100644 --- a/pages.json +++ b/pages.json @@ -466,7 +466,7 @@ { "path": "pages/issue/record/issueRecord", "style": { - "navigationBarTitleText": "直接发料", + "navigationBarTitleText": "直接发料记录", "enablePullDownRefresh": true, "titleNView": { "autoBackButton": "true" @@ -561,14 +561,14 @@ { "path": "pages/productionReturn/record/returnToStore", "style": { - "navigationBarTitleText": "合格退料", + "navigationBarTitleText": "合格退料记录", "enablePullDownRefresh": false } }, { "path": "pages/productionReturn/record/returnToHold", "style": { - "navigationBarTitleText": "隔离退料", + "navigationBarTitleText": "隔离退料记录", "enablePullDownRefresh": false } }, diff --git a/pages/inventoryMove/coms/comMoveRecord.vue b/pages/inventoryMove/coms/comMoveRecord.vue index 7d835a77..d9681136 100644 --- a/pages/inventoryMove/coms/comMoveRecord.vue +++ b/pages/inventoryMove/coms/comMoveRecord.vue @@ -247,7 +247,7 @@ if (r.packingNumber == balance.packingNumber && r.batch == balance.batch && r.fromLocationCode == balance.locationCode && - r.inventoryStatus == balance.inventoryStatus && + r.toInventoryStatus == balance.inventoryStatus && r.scaned == true) { return r; } diff --git a/pages/inventoryMove/coms/comMoveRecordCard.vue b/pages/inventoryMove/coms/comMoveRecordCard.vue index 6217e99b..c8545a41 100644 --- a/pages/inventoryMove/coms/comMoveRecordCard.vue +++ b/pages/inventoryMove/coms/comMoveRecordCard.vue @@ -86,7 +86,19 @@ }, watch: { - + dataContent: { + handler(newName, oldName) { + if (this.dataContent.subList.length > 0) { + if (this.$refs.collapse1 != undefined && this.$refs.collapse1 != null) { + this.$nextTick(res => { + this.$refs.collapse1.resize() + }) + } + } + }, + immediate: true, + deep: true + } }, data() { diff --git a/pages/issue/record/issueRecord.vue b/pages/issue/record/issueRecord.vue index d552d498..30efb9df 100644 --- a/pages/issue/record/issueRecord.vue +++ b/pages/issue/record/issueRecord.vue @@ -58,6 +58,9 @@ import { getBusinessType, } from '@/common/record.js'; + import { + calc + } from '@/common/calc.js'; import { getManagementPrecisions @@ -209,7 +212,7 @@ caclcQty() { var totalQty = 0; this.detailSource.subList.forEach(res => { - totalQty += res.qty + totalQty = calc.add(totalQty,res.qty); }) this.detailSource.totalQty = totalQty; }, @@ -241,10 +244,10 @@ let handleQty = 0; if (batch != undefined) { batch.Records.forEach(res => { - handleQty += Number(res.qty) + handleQty = calc.add(handleQty,res.qty); }) batch.handleQty = handleQty; - itemHandleQty += handleQty; + itemHandleQty = calc.add(itemHandleQty,handleQty) } }) } @@ -338,17 +341,17 @@ var params = this.setParams() console.log("提交参数", JSON.stringify(params)); - issueRecordSubmit(params).then(res => { - uni.hideLoading() - if (res.data) { - this.showCommitSuccessMessage("提交成功
生成发料记录
" + res.data) - } else { - this.showErrorMessage("提交失败:" + res.msg) - } - }).catch(error => { - uni.hideLoading() - this.showErrorMessage(error) - }) + // issueRecordSubmit(params).then(res => { + // uni.hideLoading() + // if (res.data) { + // this.showCommitSuccessMessage("提交成功
生成发料记录
" + res.data) + // } else { + // this.showErrorMessage("提交失败:" + res.msg) + // } + // }).catch(error => { + // uni.hideLoading() + // this.showErrorMessage(error) + // }) }, showCommitSuccessMessage(hint) { diff --git a/pages/productionReturn/coms/comReturnRequestCreator.vue b/pages/productionReturn/coms/comReturnRequestCreator.vue index 698454e0..058c5e62 100644 --- a/pages/productionReturn/coms/comReturnRequestCreator.vue +++ b/pages/productionReturn/coms/comReturnRequestCreator.vue @@ -5,7 +5,7 @@ - +