From 146747f916b3d9b85b46e8e198e2ac33700c20e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A3=E5=9C=A3=E5=8D=8E?= <752718920@qq.com> Date: Sun, 28 May 2023 20:50:35 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=99=E9=94=80=E5=94=AE=E5=87=BA=E5=BA=93?= =?UTF-8?q?=E5=8D=95=E6=8D=AE=E7=BC=96=E8=BE=91=E7=95=8C=E9=9D=A2=E7=9A=84?= =?UTF-8?q?=E5=BA=8F=E5=88=97=E5=8F=B7=E7=BC=96=E8=BE=91=E8=BF=9B=E8=A1=8C?= =?UTF-8?q?=E9=87=8D=E6=96=B0=E8=B5=8B=E5=80=BC=E5=8A=A0=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/jeecgbiz/modal/JSelectSnModal.vue | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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);