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()