更改进销存操作记录为后台返回subType值,根据改值判断加减

This commit is contained in:
YeMingfei666 2024-07-23 18:18:32 +08:00
parent c1beec0efc
commit 3532d8dbf4
1 changed files with 3 additions and 1 deletions

View File

@ -54,7 +54,8 @@ export default {
methods: {
//
returnNowHasNumbr(row) {
return row.stockNumber * 1 + row.number * 1 + row.unitName
const subType=this.tableData.detail.subType||1
return row.stockNumber * 1 + (row.number * subType) + row.unitName
},
show(row) {
this.dialogVisible = true
@ -67,6 +68,7 @@ export default {
const res = await tbProductStockOperateDetail(id)
this.tableData.loading = false
this.tableData.detail = res
} catch (error) {
console.log(error);
}