diff --git a/jshERP-web/src/components/jeecgbiz/modal/JSelectSnModal.vue b/jshERP-web/src/components/jeecgbiz/modal/JSelectSnModal.vue index f6293fcd..0a2bc78b 100644 --- a/jshERP-web/src/components/jeecgbiz/modal/JSelectSnModal.vue +++ b/jshERP-web/src/components/jeecgbiz/modal/JSelectSnModal.vue @@ -207,6 +207,19 @@ this.$nextTick(() => this.$refs.name.focus()) this.loadData() this.form.resetFields() + //加载存在的序列号 + if(this.rows) { + this.checkDataSource = [] + let rowObj = JSON.parse(this.rows) + let snArr = rowObj.snList.split(',') + for (let i = 0; i < snArr.length; i++) { + let snObj = { + 'id': snArr[i], + 'serialNumber': snArr[i] + } + this.checkDataSource.push(snObj) + } + } }, getQueryParams() { let param = Object.assign({}, this.queryParam, this.isorter);