耗材盘点
This commit is contained in:
parent
56c47a1ab2
commit
dc0b2f7605
|
|
@ -81,7 +81,8 @@ export default {
|
||||||
stocktakinNum: '', // 必传
|
stocktakinNum: '', // 必传
|
||||||
price: '', // 商品价格 非必传 为空盘点价格为商品价格
|
price: '', // 商品价格 非必传 为空盘点价格为商品价格
|
||||||
remark: "", // 盘点备注 非必传
|
remark: "", // 盘点备注 非必传
|
||||||
stockNumber: 0
|
stockNumber: 0,
|
||||||
|
balance: ''
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
stocktakinNum: [
|
stocktakinNum: [
|
||||||
|
|
@ -155,6 +156,7 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
async show(obj) {
|
async show(obj) {
|
||||||
|
console.log(obj, 111)
|
||||||
let res = await hasPermission('允许耗材盘点');
|
let res = await hasPermission('允许耗材盘点');
|
||||||
if (!res) { return; }
|
if (!res) { return; }
|
||||||
this.form.remark = ''
|
this.form.remark = ''
|
||||||
|
|
@ -165,8 +167,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.stockNumber
|
this.form.stockNumber = obj.balance < 0 ? 0 : obj.balance
|
||||||
this.form.balance = obj.stockNumber
|
// this.form.balance = obj.stockNumber
|
||||||
|
this.form.balance = obj.balance
|
||||||
this.form.price == null ? 0 : this.form.price
|
this.form.price == null ? 0 : this.form.price
|
||||||
this.searhForm.productId = obj.id
|
this.searhForm.productId = obj.id
|
||||||
this.getTableData()
|
this.getTableData()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue