diff --git a/jshERP-web/src/components/jeecgbiz/modal/JSelectBatchModal.vue b/jshERP-web/src/components/jeecgbiz/modal/JSelectBatchModal.vue index c9f9f733..14fd9c5f 100644 --- a/jshERP-web/src/components/jeecgbiz/modal/JSelectBatchModal.vue +++ b/jshERP-web/src/components/jeecgbiz/modal/JSelectBatchModal.vue @@ -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 diff --git a/jshERP-web/src/views/bill/mixins/BillModalMixin.js b/jshERP-web/src/views/bill/mixins/BillModalMixin.js index 7e1498c4..41e5e9c3 100644 --- a/jshERP-web/src/views/bill/mixins/BillModalMixin.js +++ b/jshERP-web/src/views/bill/mixins/BillModalMixin.js @@ -128,6 +128,7 @@ export const BillModalMixin = { tab.dataSource = res.data.rows for(let i=0; i { if (res && res.code === 200) { diff --git a/jshERP-web/src/views/bill/modules/PurchaseBackModal.vue b/jshERP-web/src/views/bill/modules/PurchaseBackModal.vue index 5414d942..1a948627 100644 --- a/jshERP-web/src/views/bill/modules/PurchaseBackModal.vue +++ b/jshERP-web/src/views/bill/modules/PurchaseBackModal.vue @@ -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,