diff --git a/jshERP-web/src/components/jeecgbiz/modal/JSelectBatchModal.vue b/jshERP-web/src/components/jeecgbiz/modal/JSelectBatchModal.vue index de15ee80..bbabb128 100644 --- a/jshERP-web/src/components/jeecgbiz/modal/JSelectBatchModal.vue +++ b/jshERP-web/src/components/jeecgbiz/modal/JSelectBatchModal.vue @@ -16,13 +16,13 @@ - + - + 查询 重置 @@ -61,6 +61,7 @@ modalWidth: 1000, queryParam: { name: "", + depotItemId: '', depotId: '', barCode: '' }, @@ -129,6 +130,10 @@ async 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 + } this.queryParam.depotId = JSON.parse(this.rows).depotId-0 this.queryParam.barCode = JSON.parse(this.rows).barCode } @@ -169,6 +174,10 @@ 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 + } this.queryParam.depotId = JSON.parse(this.rows).depotId-0 this.queryParam.barCode = JSON.parse(this.rows).barCode } diff --git a/jshERP-web/src/components/jeecgbiz/modal/JSelectSnModal.vue b/jshERP-web/src/components/jeecgbiz/modal/JSelectSnModal.vue index f3a3fe46..f201500a 100644 --- a/jshERP-web/src/components/jeecgbiz/modal/JSelectSnModal.vue +++ b/jshERP-web/src/components/jeecgbiz/modal/JSelectSnModal.vue @@ -16,13 +16,13 @@ - + - + 查询 重置 @@ -63,6 +63,7 @@ modalWidth: 800, queryParam: { name: "", + depotItemId: '', depotId: '', barCode: '' }, @@ -76,7 +77,9 @@ }, categoryTree:[], columns: [ - {dataIndex: 'serialNumber', title: '序列号', width: 100, align: 'left'} + {dataIndex: 'serialNumber', title: '序列号', width: 100, align: 'left'}, + {dataIndex: 'inBillNo', title: '入库单号', width: 100, align: 'left'}, + {dataIndex: 'createTimeStr', title: '创建时间', width: 100, align: 'left'}, ], scrollTrigger: {}, dataSource: [], @@ -136,6 +139,10 @@ async 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 + } this.queryParam.depotId = JSON.parse(this.rows).depotId-0 this.queryParam.barCode = JSON.parse(this.rows).barCode } @@ -178,6 +185,10 @@ 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 + } this.queryParam.depotId = JSON.parse(this.rows).depotId-0 this.queryParam.barCode = JSON.parse(this.rows).barCode } diff --git a/jshERP-web/src/views/bill/mixins/BillModalMixin.js b/jshERP-web/src/views/bill/mixins/BillModalMixin.js index ee16e986..f72e4ad6 100644 --- a/jshERP-web/src/views/bill/mixins/BillModalMixin.js +++ b/jshERP-web/src/views/bill/mixins/BillModalMixin.js @@ -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]