From 1b9ed56b63401d5e62385a0e724823de44869146 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=94=A1=E7=8E=B2?= <8702040+cai-ling@user.noreply.gitee.com> Date: Fri, 1 Nov 2024 15:27:57 +0800 Subject: [PATCH] no message --- .../xinrui/storage/settings/MiningSoftWasteBarrel.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/pages/xinrui/storage/settings/MiningSoftWasteBarrel.vue b/src/pages/xinrui/storage/settings/MiningSoftWasteBarrel.vue index bc3432b..fd76096 100644 --- a/src/pages/xinrui/storage/settings/MiningSoftWasteBarrel.vue +++ b/src/pages/xinrui/storage/settings/MiningSoftWasteBarrel.vue @@ -128,6 +128,7 @@ export default { val2: '', val3: '', val4: '', + result: {}, dataList: [], pkId: '', pkObj: {}, @@ -195,6 +196,7 @@ export default { this.val1 = res.resultTwo.bucketunique this.val2 = res.resultTwo.material_code this.val3 = res.resultTwo.pcsn + this.result = res.resultOne } else { this.toast('袋码已存在') this.val4 = '' @@ -205,6 +207,7 @@ export default { this.val1 = res.resultTwo.bucketunique this.val2 = res.resultTwo.material_code this.val3 = res.resultTwo.pcsn + this.result = res.resultOne } } } else { @@ -254,7 +257,7 @@ export default { try { let accountId = this.$store.getters.userInfo !== '' ? JSON.parse(this.$store.getters.userInfo).account_id : '' let user = this.$store.getters.userInfo !== '' ? JSON.parse(this.$store.getters.userInfo).user_name : '' - let newObj = Object.assign({}, {storage_qty: this.val5, accountId: accountId, user: user, is_active: this.option[this.active].value, ivt_level: this.option1[this.active1].value}) + let newObj = Object.assign({}, this.result, {storage_qty: this.val5, accountId: accountId, user: user, is_active: this.option[this.active].value, ivt_level: this.option1[this.active1].value}) let res = await confirmGroupBucket(newObj, this.dataList) if (res.code === '1') { this.toast(res.desc) @@ -262,6 +265,7 @@ export default { this.val2 = '' this.val3 = '' this.val4 = '' + this.result = {} this.dataList = [] this.pkId = '' this.pkObj = {} @@ -289,7 +293,7 @@ export default { try { let accountId = this.$store.getters.userInfo !== '' ? JSON.parse(this.$store.getters.userInfo).account_id : '' let user = this.$store.getters.userInfo !== '' ? JSON.parse(this.$store.getters.userInfo).user_name : '' - let newObj = Object.assign({}, {storage_qty: this.val5, accountId: accountId, user: user, is_active: this.option[this.active].value, ivt_level: this.option1[this.active1].value}) + let newObj = Object.assign({}, this.result, {storage_qty: this.val5, accountId: accountId, user: user, is_active: this.option[this.active].value, ivt_level: this.option1[this.active1].value}) let res = await confirmGroupBucket(newObj, this.dataList) if (res.code === '1') { this.toast(res.desc) @@ -301,6 +305,7 @@ export default { this.val2 = '' this.val3 = '' this.val4 = '' + this.result = {} this.dataList = [] this.pkId = '' this.pkObj = {} @@ -344,6 +349,7 @@ export default { this.val2 = '' this.val3 = '' this.val4 = '' + this.result = {} this.dataList = [] this.pkId = '' this.pkObj = {}