From 74a8d926018cb7e64d521de14f25260471d9c8f3 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 18:44:19 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=99=E5=8D=95=E6=8D=AE=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E7=95=8C=E9=9D=A2=E7=9A=84=E5=BA=8F=E5=88=97=E5=8F=B7=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E8=BF=9B=E8=A1=8C=E9=87=8D=E6=96=B0=E8=B5=8B=E5=80=BC?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/jeecgbiz/modal/JSelectSnAddModal.vue | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/jshERP-web/src/components/jeecgbiz/modal/JSelectSnAddModal.vue b/jshERP-web/src/components/jeecgbiz/modal/JSelectSnAddModal.vue index 5a4e9307..ab00ee0e 100644 --- a/jshERP-web/src/components/jeecgbiz/modal/JSelectSnAddModal.vue +++ b/jshERP-web/src/components/jeecgbiz/modal/JSelectSnAddModal.vue @@ -133,6 +133,19 @@ this.visible = true this.$nextTick(() => this.$refs.name.focus()) 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) + } + } }, clearAllSn() { this.checkDataSource = []