耗材盘点

This commit is contained in:
魏啾 2024-11-26 10:05:34 +08:00
parent 56c47a1ab2
commit dc0b2f7605
1 changed files with 7 additions and 4 deletions

View File

@ -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()
@ -186,7 +189,7 @@ export default {
try { try {
this.tableData.loading = true this.tableData.loading = true
const res = await tbConCheckGet({ const res = await tbConCheckGet({
page: this.tableData.page, page: this.tableData.page,
size: this.tableData.size, size: this.tableData.size,
conInfoId: this.searhForm.productId, conInfoId: this.searhForm.productId,