优化单据中的序列号和批号,解决出库选择的时候筛选的bug

This commit is contained in:
季圣华
2022-09-09 00:23:06 +08:00
parent 5ffc4c3e34
commit 9795d32bee
3 changed files with 31 additions and 6 deletions

View File

@@ -426,7 +426,12 @@ export const BillModalMixin = {
break;
case "batchNumber":
batchNumber = value
getBatchNumberList({name:'', depotId: row.depotId, barCode: row.barCode, batchNumber: batchNumber}).then((res) => {
let depotItemId = ''
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) {
if(res.data && res.data.rows) {
let info = res.data.rows[0]