Browse Source

Merge branch 'master' of http://git.shengws.com/csx/Pad_New

csx 4 years ago
parent
commit
223bf61c69

+ 25 - 9
src/pages/doctorAdvice/components/Inspection.vue View File

@@ -169,7 +169,8 @@ export default {
169 169
       index: 0,
170 170
       name: "",
171 171
       date: "",
172
-      index: ""
172
+      index: "",
173
+      restatus: 0
173 174
     };
174 175
   },
175 176
   methods: {
@@ -323,14 +324,27 @@ export default {
323 324
     onLoad() {},
324 325
     toInspection(date) {
325 326
       var patientid = this.$route.query.patientid;
326
-      this.$router.push(
327
-        "/allinspection?patientid=" +
328
-          patientid +
329
-          "&date=" +
330
-          date +
331
-          "&active=" +
332
-          this.active
333
-      );
327
+      if (this.restatus == 1) {
328
+        this.$router.push(
329
+          "/allinspection?patientid=" +
330
+            patientid +
331
+            "&date=" +
332
+            date +
333
+            "&active=" +
334
+            this.active +
335
+            "&restatus=" +
336
+            this.restatus
337
+        );
338
+      } else {
339
+        this.$router.push(
340
+          "/allinspection?patientid=" +
341
+            patientid +
342
+            "&date=" +
343
+            date +
344
+            "&active=" +
345
+            this.active
346
+        );
347
+      }
334 348
     },
335 349
     Delete(date, index) {
336 350
       this.newShow = true;
@@ -404,6 +418,8 @@ export default {
404 418
     // 获取所有检验检查项目
405 419
     this.getAllInspection();
406 420
     this.getInspection(patientid);
421
+    var restatus = this.$route.query.restatus;
422
+    this.restatus = restatus;
407 423
   }
408 424
 };
409 425
 </script>

+ 1 - 0
src/pages/doctorAdvice/index.vue View File

@@ -562,6 +562,7 @@ export default {
562 562
       this.$router.push("/editPatient?patientid=" + this.patient_id);
563 563
     },
564 564
     toReturn() {
565
+      console.log("this.restatus", this.restatus);
565 566
       if (this.restatus == 1) {
566 567
         this.$router.push(
567 568
           "/details?patient_id=" +

File diff suppressed because it is too large
+ 1134 - 1066
src/pages/main/dialog/OrdersDialog.vue


+ 23 - 9
src/pages/patientCenter/allCheck/index.vue View File

@@ -83,7 +83,8 @@ export default {
83 83
       activeTwo: 0,
84 84
       patientid: 0,
85 85
       data: [],
86
-      projectName: []
86
+      projectName: [],
87
+      restatus: 0
87 88
     };
88 89
   },
89 90
   methods: {
@@ -130,7 +131,7 @@ export default {
130 131
       getInspectionDetail(patientid, date, this.project_id).then(response => {
131 132
         if (response.data.state === 1) {
132 133
           var InspectionDetail = response.data.data.InspectionDetail;
133
-          //console.log("数据是", InspectionDetail);
134
+          // console.log("数据是", InspectionDetail);
134 135
           this.InspectionDetail = InspectionDetail;
135 136
         }
136 137
       });
@@ -150,12 +151,23 @@ export default {
150 151
       return uParseTime(time, "{y}-{m}-{d}");
151 152
     },
152 153
     toReturn() {
153
-      this.$router.push(
154
-        "/patientdetail?patientid=" +
155
-          this.patientid +
156
-          "&active=" +
157
-          this.activeTwo
158
-      );
154
+      if (this.restatus == 1) {
155
+        this.$router.push(
156
+          "/patientdetail?patientid=" +
157
+            this.patientid +
158
+            "&active=" +
159
+            this.activeTwo +
160
+            "&restatus=" +
161
+            this.restatus
162
+        );
163
+      } else {
164
+        this.$router.push(
165
+          "/patientdetail?patientid=" +
166
+            this.patientid +
167
+            "&active=" +
168
+            this.activeTwo
169
+        );
170
+      }
159 171
     }
160 172
   },
161 173
   created() {
@@ -170,6 +182,8 @@ export default {
170 182
     this.GetAllProjectNameByDate(date, patientid);
171 183
     this.getAllInspection();
172 184
     this.getPatientName(patientid);
185
+    var restatus = this.$route.query.restatus;
186
+    this.restatus = restatus;
173 187
   }
174 188
 };
175 189
 </script>
@@ -277,7 +291,7 @@ export default {
277 291
     font-weight: bold;
278 292
     flex-basis: 26% !important;
279 293
   }
280
-  .van-tabs__wrap{
294
+  .van-tabs__wrap {
281 295
     overflow: inherit;
282 296
   }
283 297
 }