|
@@ -1297,11 +1297,9 @@ export default {
|
1297
|
1297
|
var items = this.project.inspection_reference
|
1298
|
1298
|
console.log("时间",items)
|
1299
|
1299
|
for (var index in items) {
|
1300
|
|
-
|
1301
|
1300
|
console.log("obj",items[index])
|
1302
|
1301
|
// console.log("inspectionsMap",inspectionsMap[items[index].item_id])
|
1303
|
1302
|
var item = {}
|
1304
|
|
-
|
1305
|
1303
|
for (var key in items[index]) {
|
1306
|
1304
|
// console.log("key",key,items[index][key])
|
1307
|
1305
|
// console.log("item[key]",item[key])
|
|
@@ -1309,11 +1307,7 @@ export default {
|
1309
|
1307
|
}
|
1310
|
1308
|
|
1311
|
1309
|
if (item.item_id > 0) {
|
1312
|
|
-
|
1313
|
1310
|
if (typeof(inspectionsMap[parseInt(items[index].item_id)]) == "undefined") {
|
1314
|
|
-
|
1315
|
|
-
|
1316
|
|
-
|
1317
|
1311
|
if(this.org_id == 10121 || this.org_id ==10278 || this.org_id ==10138){
|
1318
|
1312
|
item.value = inspectionsMap[items[index].id].inspect_value
|
1319
|
1313
|
item.item_name = inspectionsMap[items[index].id].item_name
|
|
@@ -1321,18 +1315,16 @@ export default {
|
1321
|
1315
|
item.value = ""
|
1322
|
1316
|
item.item_name = ""
|
1323
|
1317
|
}
|
1324
|
|
-
|
1325
|
1318
|
} else {
|
1326
|
|
-
|
1327
|
1319
|
item.value = inspectionsMap[items[index].item_id].inspect_value
|
1328
|
1320
|
item.item_name = inspectionsMap[items[index].item_id].item_name
|
1329
|
|
-
|
1330
|
1321
|
}
|
1331
|
1322
|
} else {
|
1332
|
|
-
|
|
1323
|
+ if(typeof(inspectionsMap[parseInt(items[index].id)]) == "undefined"){
|
|
1324
|
+ continue
|
|
1325
|
+ }
|
1333
|
1326
|
item.value = inspectionsMap[items[index].id].inspect_value
|
1334
|
1327
|
item.item_name = inspectionsMap[items[index].id].item_name
|
1335
|
|
-
|
1336
|
1328
|
}
|
1337
|
1329
|
// item["inspect_desc"] = inspectionsMap[items[index].id].inspect_desc
|
1338
|
1330
|
// item["inspect_type"] = inspectionsMap[items[index].id].inspect_type
|