库存盘点

This commit is contained in:
魏啾 2024-10-18 11:19:35 +08:00
parent 9b144138e9
commit 49b1eae1fa
1 changed files with 7 additions and 4 deletions

View File

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