|
@@ -825,14 +825,14 @@ a {
|
|
|
//console.log("version", this.procedureVersion)
|
|
|
this.list[index].tableProdProcedure.versions = res.data
|
|
|
this.procedureVersion = res.data[res.data.length - 1]
|
|
|
- getProdProcedureVersion(row.id, index)
|
|
|
+ this.getProdProcedureVersion(row.id, index)
|
|
|
console.log("version",this.procedureVersion)
|
|
|
})
|
|
|
this.http.post("/prod-material/getVersions", { productId: row.id },
|
|
|
res => {
|
|
|
this.list[index].tableProdMaterial.versions = res.data
|
|
|
this.prodMaterialVersion = res.data[res.data.length - 1]
|
|
|
- getProdProcedureVersion(row.id, index)
|
|
|
+ this.getProdProcedureVersion(row.id, index)
|
|
|
})
|
|
|
}
|
|
|
},
|
|
@@ -2574,6 +2574,10 @@ a {
|
|
|
this.listLoading = false;
|
|
|
if (res.code == "ok") {
|
|
|
var list = res.data.records;
|
|
|
+ for(var i in list) {
|
|
|
+ list[i].tableProdProcedure = {}
|
|
|
+ list[i].tableProdMaterial = {}
|
|
|
+ }
|
|
|
this.list = list;
|
|
|
this.total = res.data.total;
|
|
|
} else {
|