Selaa lähdekoodia

修改检验检查问题

张保健 5 vuotta sitten
vanhempi
commit
3b267417ff

+ 6 - 12
src/pages/doctorAdvice/components/Inspection.vue Näytä tiedosto

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

+ 5 - 8
src/pages/patientCenter/allCheck/index.vue Näytä tiedosto

30
                 <span>{{ item.item_name }}</span>
30
                 <span>{{ item.item_name }}</span>
31
                 <p>
31
                 <p>
32
                   <span style="text-align:right;width:3.125rem;display: inline-block;">{{ item.inspect_value }}</span>
32
                   <span style="text-align:right;width:3.125rem;display: inline-block;">{{ item.inspect_value }}</span>
33
-                  <span
34
-                    v-if="item.inspect_value != '' && parseInt(item.inspect_value) > parseInt(item.range_max)">
33
+                  <span v-if="item.inspect_value != '' && parseInt(item.inspect_value) > parseInt(item.range_max)">
35
                     <i class="el-icon-top" style="color:#F44746"></i>
34
                     <i class="el-icon-top" style="color:#F44746"></i>
36
                   </span>
35
                   </span>
37
                   <span
36
                   <span
40
                   </span>
39
                   </span>
41
                   <span v-if="parseInt(item.inspect_value) === ''"></span>
40
                   <span v-if="parseInt(item.inspect_value) === ''"></span>
42
                 </p>
41
                 </p>
43
-                <span v-if="item.range_type === 1"
44
-                  >{{ item.range_min }}~{{ item.range_max }}</span
45
-                >
42
+                <span v-if="item.range_type === 1">{{ item.range_min }}~{{ item.range_max }}</span>
46
                 <span v-if="item.range_type === 2">
43
                 <span v-if="item.range_type === 2">
47
                   {{ item.inspect_value }}
44
                   {{ item.inspect_value }}
48
                 </span>
45
                 </span>
95
           // console.log("projectName", projectName);
92
           // console.log("projectName", projectName);
96
           this.projectName = projectName;
93
           this.projectName = projectName;
97
           this.checkdata = projectName;
94
           this.checkdata = projectName;
95
+          this.getInspection(this.patientid, this.date);
98
         }
96
         }
99
       });
97
       });
100
     },
98
     },
106
           // console.log("inspection什么意思", inspection);
104
           // console.log("inspection什么意思", inspection);
107
           // this.checkdata = inspection;
105
           // this.checkdata = inspection;
108
           this.data = inspection;
106
           this.data = inspection;
109
-          this.getInspection(this.patientid, this.date);
110
         }
107
         }
111
       });
108
       });
112
     },
109
     },
148
       });
145
       });
149
     },
146
     },
150
     getTime(time) {
147
     getTime(time) {
151
-      return uParseTime(time, "{y}-{m}-{d}");
148
+      return uParseTime(time, "{y}-{m}-{d} {h}:{i}");
152
     },
149
     },
153
     toReturn() {
150
     toReturn() {
154
       if (this.restatus == 1) {
151
       if (this.restatus == 1) {
180
     setRem();
177
     setRem();
181
     setHeight();
178
     setHeight();
182
     this.GetAllProjectNameByDate(date, patientid);
179
     this.GetAllProjectNameByDate(date, patientid);
183
-    this.getAllInspection();
180
+    // this.getAllInspection();
184
     this.getPatientName(patientid);
181
     this.getPatientName(patientid);
185
     var restatus = this.$route.query.restatus;
182
     var restatus = this.$route.query.restatus;
186
     this.restatus = restatus;
183
     this.restatus = restatus;