解决采购退货去关联采购入库的单据,批次商品的查询批号库存的bug

This commit is contained in:
jishenghua
2024-11-11 21:46:23 +08:00
parent 018a053eaf
commit dce5efb86c
3 changed files with 22 additions and 9 deletions

View File

@@ -128,6 +128,7 @@ export const BillModalMixin = {
tab.dataSource = res.data.rows
for(let i=0; i<tab.dataSource.length; i++){
let info = tab.dataSource[i]
info.isEdit = this.model.id?1:0
this.changeColumnShow(info)
}
typeof success === 'function' ? success(res) : ''
@@ -519,9 +520,12 @@ export const BillModalMixin = {
case "batchNumber":
batchNumber = value
let depotItemId = ''
let rowId = row.id
if(rowId.length<=19) {
depotItemId = rowId-0
if(this.model.id) {
//只有在保存之后的编辑页面下才获取明细id
let rowId = row.id
if(rowId.length<=19) {
depotItemId = rowId-0
}
}
getBatchNumberList({name:'', depotItemId: depotItemId, depotId: row.depotId, barCode: row.barCode, batchNumber: batchNumber}).then((res) => {
if (res && res.code === 200) {

View File

@@ -264,6 +264,7 @@
{ title: '价税合计', key: 'taxLastMoney', width: '7%', type: FormTypes.inputNumber, statistics: true },
{ title: '备注', key: 'remark', width: '6%', type: FormTypes.input },
{ title: '关联id', key: 'linkId', width: '5%', type: FormTypes.hidden },
{ title: '是否再次编辑', key: 'isEdit', width: '5%', type: FormTypes.hidden },
]
},
confirmLoading: false,