|
@@ -318,6 +318,7 @@
|
|
|
},
|
|
|
//添加
|
|
|
dialogCli(v) {
|
|
|
+
|
|
|
this.datalist.attList = [];
|
|
|
this.uploadstatus = false;
|
|
|
if (v === 3) {
|
|
@@ -331,12 +332,22 @@
|
|
|
let price = 0;
|
|
|
for (let i = 0; i < this.gys.length; i++) {
|
|
|
if(this.gys[i].sts){
|
|
|
- gys.push(this.gys[i])
|
|
|
- for (let j = 0; j < gys[i].list.length; j++) {
|
|
|
- price+=gys[i].list[j].num*gys[i].list[j].price;
|
|
|
- }
|
|
|
+ gys.push(JSON.parse(JSON.stringify(this.gys[i])))
|
|
|
+ // if(gys[i])
|
|
|
+
|
|
|
+ // {
|
|
|
+ // for (let j = 0; j < gys[i].list.length; j++) {
|
|
|
+ // price+=gys[i].list[j].num*gys[i].list[j].price;
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
+ gys.forEach(n=>{
|
|
|
+ for (let j = 0; j < n.list.length; j++) {
|
|
|
+ price+=n.list[j].num*n.list[j].price;
|
|
|
+ }
|
|
|
+ });
|
|
|
this.infoApply.gys=gys;
|
|
|
this.infoApply.price=price;
|
|
|
}
|
|
@@ -493,6 +504,7 @@
|
|
|
res.data.forEach(item=>{
|
|
|
item.list = [{}];
|
|
|
})
|
|
|
+
|
|
|
this.gys = res.data;
|
|
|
});
|
|
|
},
|