Commit d5acea1b authored by zhangyichen's avatar zhangyichen

提交

parent ffe7165b
......@@ -1203,13 +1203,18 @@ export default {
for (let i = 0; i < this.positionList.length; i++) {
this.positionList[i].sort = i
}
let list = []
this.form.materId.forEach((item, index) => {
list.push({
materId: item
// materCode: this.form.modelCode[index]
let list = null
console.log(this.form.materId)
if (typeof this.form.materId === 'number') {
list = this.form.materId
} else {
this.form.materId.forEach((item, index) => {
list.push({
materId: item
// materCode: this.form.modelCode[index]
})
})
})
}
const data = {
// materId: this.form.materId,
materList: list,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment