库存盘点
This commit is contained in:
@@ -133,10 +133,13 @@ export default {
|
|||||||
this.form.lpNum = this.profitNumber
|
this.form.lpNum = this.profitNumber
|
||||||
this.form.balance = this.form.stockNumber
|
this.form.balance = this.form.stockNumber
|
||||||
this.loading = true
|
this.loading = true
|
||||||
|
this.form.conInfoId = this.form.id
|
||||||
|
delete this.form['id'];
|
||||||
|
console.log(this.form)
|
||||||
let res = await tbConCheck(this.form)
|
let res = await tbConCheck(this.form)
|
||||||
console.log(this.form);
|
console.log(this.form);
|
||||||
this.$emit('success', res)
|
this.$emit('success', res)
|
||||||
// this.dialogVisible = false
|
this.dialogVisible = false
|
||||||
this.loading = false
|
this.loading = false
|
||||||
this.$notify({
|
this.$notify({
|
||||||
title: '注意',
|
title: '注意',
|
||||||
@@ -153,7 +156,7 @@ export default {
|
|||||||
},
|
},
|
||||||
async show(obj) {
|
async show(obj) {
|
||||||
let res = await hasPermission('允许耗材盘点');
|
let res = await hasPermission('允许耗材盘点');
|
||||||
if ( !res) { return; }
|
if (!res) { return; }
|
||||||
this.form.remark = ''
|
this.form.remark = ''
|
||||||
this.form.stocktakinNum = 0
|
this.form.stocktakinNum = 0
|
||||||
this.form.lpNum = 0
|
this.form.lpNum = 0
|
||||||
@@ -162,9 +165,9 @@ export default {
|
|||||||
this.form = Object.assign(this.form, obj)
|
this.form = Object.assign(this.form, obj)
|
||||||
this.dialogVisible = true
|
this.dialogVisible = true
|
||||||
this.form.conInfoId = obj.consId
|
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.form.price == null ? 0 : this.form.price
|
||||||
|
|
||||||
this.searhForm.skuId = obj.productId
|
this.searhForm.skuId = obj.productId
|
||||||
this.searhForm.productId = obj.consId
|
this.searhForm.productId = obj.consId
|
||||||
this.getTableData()
|
this.getTableData()
|
||||||
|
|||||||
Reference in New Issue
Block a user