修改代码

This commit is contained in:
lVAL 2019-11-26 10:01:55 +08:00
parent 58e11bf90a
commit e66ddd1b84

View File

@ -264,13 +264,13 @@ export default {
addRuleForm(index, row) { //
row['isPut'] = true;
getGoodsByPermissionId(row.id).then(res => {
if (res.data.length) {
row.price = res.data[0].price;
if (res.data && (res.data instanceof Object)) {
row.price = res.data.price;
if (this.addModel.type == '01') {
row.goods = res.data[0];
}
row.goods = res.data;
}
this.ruleList.push(row);
}
});
},
dialogSelect(row) {