|
@@ -118,7 +118,7 @@
|
118
|
118
|
color: '#606266'
|
119
|
119
|
}"
|
120
|
120
|
:row-style="{ color: '#303133' }"
|
121
|
|
- :data="items"
|
|
121
|
+ :data="tabileList"
|
122
|
122
|
border=""
|
123
|
123
|
style="width: 100%"
|
124
|
124
|
id="user-inspection-order"
|
|
@@ -131,7 +131,7 @@
|
131
|
131
|
min-width="180"
|
132
|
132
|
>
|
133
|
133
|
<template slot-scope="scope">
|
134
|
|
-
|
|
134
|
+ {{getTime(scope.row.inspect_date)}}
|
135
|
135
|
</template>
|
136
|
136
|
</el-table-column>
|
137
|
137
|
|
|
@@ -143,7 +143,7 @@
|
143
|
143
|
:label="item.item_name"
|
144
|
144
|
>
|
145
|
145
|
<template slot-scope="scope">
|
146
|
|
-
|
|
146
|
+ {{getInspecValue(scope.row.inspect_date,item.item_id) }}
|
147
|
147
|
</template>
|
148
|
148
|
|
149
|
149
|
</el-table-column>
|
|
@@ -462,7 +462,8 @@
|
462
|
462
|
fetchInspectionReference,
|
463
|
463
|
fetchPatientInspections,
|
464
|
464
|
setRemind,
|
465
|
|
- setRemindDialog
|
|
465
|
+ setRemindDialog,
|
|
466
|
+ getNewInspectionList
|
466
|
467
|
} from '@/api/inspection'
|
467
|
468
|
import { getFileExtension, uParseTime } from '@/utils/tools'
|
468
|
469
|
|
|
@@ -521,9 +522,18 @@
|
521
|
522
|
},
|
522
|
523
|
org_id:0,
|
523
|
524
|
rowList:[],
|
|
525
|
+ tabileList:[],
|
|
526
|
+ inspectionList:[]
|
524
|
527
|
}
|
525
|
528
|
},
|
526
|
529
|
methods: {
|
|
530
|
+ getTime(val) {
|
|
531
|
+ if(val == ""){
|
|
532
|
+ return ""
|
|
533
|
+ }else {
|
|
534
|
+ return uParseTime(val, '{y}-{m}-{d}')
|
|
535
|
+ }
|
|
536
|
+ },
|
527
|
537
|
imgClicks(val){
|
528
|
538
|
console.log('asdasgg',val);
|
529
|
539
|
this.imgs = []
|
|
@@ -1226,8 +1236,10 @@
|
1226
|
1236
|
this.queryParams.project_id = this.project.project_id
|
1227
|
1237
|
this.queryParams.page = 1
|
1228
|
1238
|
this.total = 0
|
1229
|
|
- console.log("wowowowowow")
|
1230
|
|
- this.fetchPatientInspections(this.queryParams)
|
|
1239
|
+
|
|
1240
|
+ // this.fetchPatientInspections(this.queryParams)
|
|
1241
|
+
|
|
1242
|
+ this.getNewInspectionList(this.queryParams)
|
1231
|
1243
|
}
|
1232
|
1244
|
},
|
1233
|
1245
|
|
|
@@ -1239,12 +1251,11 @@
|
1239
|
1251
|
fetchPatientInspections(params) {
|
1240
|
1252
|
this.items = []
|
1241
|
1253
|
this.isPic = false
|
|
1254
|
+ console.log("params------------------",params)
|
1242
|
1255
|
fetchPatientInspections(params)
|
1243
|
1256
|
.then(response => {
|
1244
|
1257
|
if (response.data.state == 1) {
|
1245
|
1258
|
var inspections = response.data.data.inspections
|
1246
|
|
-
|
1247
|
|
- this.rowList = inspections
|
1248
|
1259
|
this.total = response.data.data.total
|
1249
|
1260
|
this.itemDate = response.data.data.date
|
1250
|
1261
|
let remind = response.data.data.remind
|
|
@@ -1285,7 +1296,7 @@
|
1285
|
1296
|
}
|
1286
|
1297
|
console.log("inspectionsMap",this.inspectionsMap)
|
1287
|
1298
|
var items = this.project.inspection_reference
|
1288
|
|
- console.log("时间",items)
|
|
1299
|
+ console.log("列表---------------------------------",items)
|
1289
|
1300
|
for (var index in items) {
|
1290
|
1301
|
console.log("obj",items[index])
|
1291
|
1302
|
// console.log("inspectionsMap",inspectionsMap[items[index].item_id])
|
|
@@ -1360,6 +1371,33 @@
|
1360
|
1371
|
setTimeout(() => {
|
1361
|
1372
|
this.itemLoading = false
|
1362
|
1373
|
}, 1000)
|
|
1374
|
+ },
|
|
1375
|
+
|
|
1376
|
+ getNewInspectionList(params){
|
|
1377
|
+ console.log("params-----",params)
|
|
1378
|
+ getNewInspectionList(params).then(response=>{
|
|
1379
|
+ if(response.data.state == 1){
|
|
1380
|
+ var list = response.data.data.list
|
|
1381
|
+ console.log("list=====================",list)
|
|
1382
|
+ this.isPic = false
|
|
1383
|
+ this.tabileList = list
|
|
1384
|
+
|
|
1385
|
+ var inspectionGroup = response.data.data.inspectionGroup
|
|
1386
|
+
|
|
1387
|
+ this.rowList = inspectionGroup
|
|
1388
|
+ console.log("inspectionGroup",inspectionGroup)
|
|
1389
|
+ var inspection = response.data.data.inspection
|
|
1390
|
+
|
|
1391
|
+ this.inspectionList = inspection
|
|
1392
|
+ console.log("inspection-------------",inspection)
|
|
1393
|
+ this.pageLoading = false
|
|
1394
|
+ this.itemLoading = false
|
|
1395
|
+ this.formLoading = false
|
|
1396
|
+ }
|
|
1397
|
+ })
|
|
1398
|
+ },
|
|
1399
|
+ getInspecValue(inspect_date,item_id){
|
|
1400
|
+
|
1363
|
1401
|
}
|
1364
|
1402
|
},
|
1365
|
1403
|
created() {
|