优化耗材绑定添加
This commit is contained in:
parent
8593295e21
commit
065d159b49
|
|
@ -407,14 +407,16 @@ export default {
|
|||
},
|
||||
// 耗材信息的信息
|
||||
tableDatainformationtable(item) {
|
||||
|
||||
this.addSelect.forEach((ele, i) => {
|
||||
ele.consInfoId = item.id
|
||||
ele.conName = item.conName
|
||||
if (this.ALLisDistribute != null) {
|
||||
this.addSelect.forEach((ele, i) => {
|
||||
ele.skuList[this.ALLisDistribute].skuId = item.id
|
||||
// this.addSelect.forEach((ele, i) => {
|
||||
ele.skuList[this.ALLisDistribute].conInfoId = item.id
|
||||
ele.skuList[this.ALLisDistribute].conName = item.conName
|
||||
})
|
||||
// })
|
||||
console.log(ele.skuList[this.ALLisDistribute], "打印");
|
||||
}
|
||||
})
|
||||
// this.ruleForm.skuInfos = item
|
||||
|
|
@ -491,11 +493,12 @@ export default {
|
|||
}
|
||||
let isgongx = false
|
||||
this.addSelect[0].skuList.forEach(ele => {
|
||||
console.log(ele, "jiancha");
|
||||
ele.skuId = ele.id
|
||||
ele.conInfoId = consInfoId
|
||||
// ele.surplusStock = surplusStock
|
||||
if (isDistribute == 1) {
|
||||
ele.surplusStock = surplusStock
|
||||
ele.conInfoId = consInfoId
|
||||
}
|
||||
if (!ele.skuId || !ele.surplusStock) {
|
||||
isgongx = true
|
||||
|
|
|
|||
Loading…
Reference in New Issue