From 49b1eae1fad0144e5ca2de5c2266005356fcf2ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AD=8F=E5=95=BE?= <1144797966@qq.com> Date: Fri, 18 Oct 2024 11:19:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=93=E5=AD=98=E7=9B=98=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/invoicing/components/addConsTakin.vue | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/views/invoicing/components/addConsTakin.vue b/src/views/invoicing/components/addConsTakin.vue index 84ca1ca..a69180c 100644 --- a/src/views/invoicing/components/addConsTakin.vue +++ b/src/views/invoicing/components/addConsTakin.vue @@ -133,10 +133,13 @@ export default { this.form.lpNum = this.profitNumber this.form.balance = this.form.stockNumber this.loading = true + this.form.conInfoId = this.form.id + delete this.form['id']; + console.log(this.form) let res = await tbConCheck(this.form) console.log(this.form); this.$emit('success', res) - // this.dialogVisible = false + this.dialogVisible = false this.loading = false this.$notify({ title: '注意', @@ -153,7 +156,7 @@ export default { }, async show(obj) { let res = await hasPermission('允许耗材盘点'); - if ( !res) { return; } + if (!res) { return; } this.form.remark = '' this.form.stocktakinNum = 0 this.form.lpNum = 0 @@ -162,9 +165,9 @@ export default { this.form = Object.assign(this.form, obj) this.dialogVisible = true this.form.conInfoId = obj.consId - this.form.stockNumber = obj.balance * 1 + this.form.stockNumber = obj.stockNumber + this.form.balance = obj.stockNumber this.form.price == null ? 0 : this.form.price - this.searhForm.skuId = obj.productId this.searhForm.productId = obj.consId this.getTableData()