|
@@ -29,11 +29,7 @@
|
29
|
29
|
finished-text="没有更多了"
|
30
|
30
|
>
|
31
|
31
|
<div class="adviceMain">
|
32
|
|
- <div
|
33
|
|
- class="adviceOne"
|
34
|
|
- v-for="(item, index) in Inspection"
|
35
|
|
- :key="index"
|
36
|
|
- >
|
|
32
|
+ <div class="adviceOne" v-for="(item, index) in Inspection" :key="index" >
|
37
|
33
|
<div class="adviceTitle">
|
38
|
34
|
<p>{{ getTime(item.inspect_date) }}</p>
|
39
|
35
|
<van-icon
|
|
@@ -282,7 +278,6 @@ export default {
|
282
|
278
|
).then(response => {
|
283
|
279
|
if (response.data.state == 1) {
|
284
|
280
|
var inspection = response.data.data.inspection
|
285
|
|
- console.log('为什么', inspection)
|
286
|
281
|
var total = response.data.data.total
|
287
|
282
|
// console.log("total", total);
|
288
|
283
|
let dataInfo = {}
|
|
@@ -298,10 +293,10 @@ export default {
|
298
|
293
|
})
|
299
|
294
|
let list = Object.values(dataInfo) // list 转换成功的数据
|
300
|
295
|
// console.log("按时间分组", list);
|
301
|
|
- let a = []
|
|
296
|
+ // let a = []
|
302
|
297
|
list.map((item, index) => {
|
303
|
298
|
let arr = []
|
304
|
|
- a.push(item.child)
|
|
299
|
+ // a.push(item.child)
|
305
|
300
|
item.child.map((it, i) => {
|
306
|
301
|
if (arr.indexOf(it.project_name) != -1) {
|
307
|
302
|
} else {
|
|
@@ -318,9 +313,8 @@ export default {
|
318
|
313
|
this.finished = true
|
319
|
314
|
},
|
320
|
315
|
getTime (time) {
|
321
|
|
- console.log('time是------', time)
|
322
|
316
|
// return uParseTime(time, "{y}-{m}-{d} {h}:{i}:{s}");
|
323
|
|
- return uParseTime(time, '{y}-{m}-{d}')
|
|
317
|
+ return uParseTime(time, '{y}-{m}-{d} {h}:{i}')
|
324
|
318
|
},
|
325
|
319
|
onLoad () {},
|
326
|
320
|
toInspection (date) {
|
|
@@ -415,9 +409,9 @@ export default {
|
415
|
409
|
created () {
|
416
|
410
|
var patientid = this.$route.query.patientid
|
417
|
411
|
this.patientid = patientid
|
418
|
|
- this.getPatientDetail(patientid)
|
|
412
|
+ // this.getPatientDetail(patientid)
|
419
|
413
|
// 获取所有检验检查项目
|
420
|
|
- this.getAllInspection()
|
|
414
|
+ // this.getAllInspection()
|
421
|
415
|
this.getInspection(patientid)
|
422
|
416
|
var restatus = this.$route.query.restatus
|
423
|
417
|
this.restatus = restatus
|