耗材盘点

This commit is contained in:
魏啾
2024-11-26 10:05:34 +08:00
parent 56c47a1ab2
commit dc0b2f7605

View File

@@ -81,7 +81,8 @@ export default {
stocktakinNum: '', // 必传
price: '', // 商品价格 非必传 为空盘点价格为商品价格
remark: "", // 盘点备注 非必传
stockNumber: 0
stockNumber: 0,
balance: ''
},
rules: {
stocktakinNum: [
@@ -155,6 +156,7 @@ export default {
})
},
async show(obj) {
console.log(obj, 111)
let res = await hasPermission('允许耗材盘点');
if (!res) { return; }
this.form.remark = ''
@@ -165,8 +167,9 @@ export default {
this.form = Object.assign(this.form, obj)
this.dialogVisible = true
this.form.conInfoId = obj.consId
this.form.stockNumber = obj.stockNumber
this.form.balance = obj.stockNumber
this.form.stockNumber = obj.balance < 0 ? 0 : obj.balance
// this.form.balance = obj.stockNumber
this.form.balance = obj.balance
this.form.price == null ? 0 : this.form.price
this.searhForm.productId = obj.id
this.getTableData()
@@ -186,7 +189,7 @@ export default {
try {
this.tableData.loading = true
const res = await tbConCheckGet({
page: this.tableData.page,
size: this.tableData.size,
conInfoId: this.searhForm.productId,