给单据编辑界面的序列号编辑进行重新赋值加载
This commit is contained in:
parent
71c2b7f5cc
commit
74a8d92601
@ -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 = []
|
||||
|
||||
Loading…
Reference in New Issue
Block a user