给单据编辑界面的序列号编辑进行重新赋值加载

This commit is contained in:
季圣华 2023-05-28 18:44:19 +08:00
parent 71c2b7f5cc
commit 74a8d92601

View File

@ -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 = []