张保健 пре 4 година
родитељ
комит
3b267417ff

+ 6 - 12
src/pages/doctorAdvice/components/Inspection.vue Прегледај датотеку

@@ -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

+ 5 - 8
src/pages/patientCenter/allCheck/index.vue Прегледај датотеку

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