解决采购退货去关联采购入库的单据,批次商品的查询批号库存的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

@@ -131,9 +131,13 @@
loadData(arg) {
if(this.rows) {
if(JSON.parse(this.rows).depotId && JSON.parse(this.rows).barCode ){
let depotItemId = JSON.parse(this.rows).id
if(depotItemId.length<=19) {
this.queryParam.depotItemId = depotItemId-0
let isEdit = JSON.parse(this.rows).isEdit
if(isEdit) {
//只有在保存之后的编辑页面下才获取明细id
let depotItemId = JSON.parse(this.rows).id
if (depotItemId.length <= 19) {
this.queryParam.depotItemId = depotItemId-0
}
}
this.queryParam.depotId = JSON.parse(this.rows).depotId-0
this.queryParam.barCode = JSON.parse(this.rows).barCode
@@ -176,9 +180,13 @@
if(this.rows) {
this.queryParam.name=''
if(JSON.parse(this.rows).depotId && JSON.parse(this.rows).barCode ){
let depotItemId = JSON.parse(this.rows).id
if(depotItemId.length<=19) {
this.queryParam.depotItemId = depotItemId-0
let isEdit = JSON.parse(this.rows).isEdit
if(isEdit) {
//只有在保存之后的编辑页面下才获取明细id
let depotItemId = JSON.parse(this.rows).id
if(depotItemId.length<=19) {
this.queryParam.depotItemId = depotItemId-0
}
}
this.queryParam.depotId = JSON.parse(this.rows).depotId-0
this.queryParam.barCode = JSON.parse(this.rows).barCode