XMLWAN 4 年 前
コミット
6c24fb0716
共有2 個のファイルを変更した85 個の追加18 個の削除を含む
  1. 85 17
      src/pages/doctorAdvice/components/DialysisRecord.vue
  2. 0 1
      src/pages/doctorAdvice/components/DoctorManagement.vue

+ 85 - 17
src/pages/doctorAdvice/components/DialysisRecord.vue ファイルの表示

@@ -23,11 +23,19 @@
23 23
       </div>
24 24
 
25 25
       <div class="adviceBox" v-show="showOne">
26
-        <van-list v-model="loading" :finished="finished" finished-text="没有更多了" @load="onLoad">
27
-          <div class="adviceOne" v-for="(item, index) in dialysisRecord" :key="index">
26
+        <van-list
27
+          v-model="loading"
28
+          :finished="finished"
29
+          finished-text="没有更多了"
30
+          @load="onLoad"
31
+        >
32
+          <div
33
+            class="adviceOne"
34
+            v-for="(item, index) in dialysisRecord"
35
+            :key="index"
36
+          >
28 37
             <div class="adviceTitle">
29 38
               <p>{{ getTime(item.dialysis_date) }}</p>
30
-              <van-icon class="ellipsis" name="ellipsis" @click="newShow = true" />
31 39
             </div>
32 40
             <div class="orderContent">
33 41
               <p>
@@ -57,15 +65,19 @@
57 65
               </p>
58 66
               <p>
59 67
                 透析时长(h):{{ item.prescription.dialysis_duration_hour }}h{{
60
-                item.prescription.dialysis_duration_minute
68
+                  item.prescription.dialysis_duration_minute
61 69
                 }}min
62 70
               </p>
63 71
               <p>干体重(kg):{{ item.predialysis_evaluation.dry_weight }}</p>
64
-              <p>透前称重(kg):{{ item.predialysis_evaluation.weight_before }}</p>
65
-              <p>透后称重(kg):{{ item.assessment_after_dislysis.weight_after }}</p>
72
+              <p>
73
+                透前称重(kg):{{ item.predialysis_evaluation.weight_before }}
74
+              </p>
75
+              <p>
76
+                透后称重(kg):{{ item.assessment_after_dislysis.weight_after }}
77
+              </p>
66 78
               <p>
67 79
                 透前血压(mmHg):{{
68
-                item.predialysis_evaluation.systolic_blood_pressure
80
+                  item.predialysis_evaluation.systolic_blood_pressure
69 81
                 }}/
70 82
                 {{ item.predialysis_evaluation.diastolic_blood_pressure }}
71 83
               </p>
@@ -77,10 +89,18 @@
77 89
               <p>
78 90
                 抗凝剂:
79 91
                 <span v-if="item.prescription.anticoagulant == 1">无肝素</span>
80
-                <span v-if="item.prescription.anticoagulant == 2">普通肝素</span>
81
-                <span v-if="item.prescription.anticoagulant == 3">低分子肝素</span>
82
-                <span v-if="item.prescription.anticoagulant == 4">阿加曲班</span>
83
-                <span v-if="item.prescription.anticoagulant == 5">枸橼酸钠</span>
92
+                <span v-if="item.prescription.anticoagulant == 2"
93
+                  >普通肝素</span
94
+                >
95
+                <span v-if="item.prescription.anticoagulant == 3"
96
+                  >低分子肝素</span
97
+                >
98
+                <span v-if="item.prescription.anticoagulant == 4"
99
+                  >阿加曲班</span
100
+                >
101
+                <span v-if="item.prescription.anticoagulant == 5"
102
+                  >枸橼酸钠</span
103
+                >
84 104
               </p>
85 105
               <p>
86 106
                 首剂:
@@ -118,7 +138,9 @@
118 138
               @click="
119 139
                 toDialysisRecordDetail(item.patient_id, item.dialysis_date)
120 140
               "
121
-            >全部</div>
141
+            >
142
+              全部
143
+            </div>
122 144
           </div>
123 145
         </van-list>
124 146
       </div>
@@ -135,10 +157,23 @@
135 157
 
136 158
     <!-- 弹出层 -->
137 159
     <div>
138
-      <van-popup v-model="typeShow" position="bottom" :style="{ height: '40%' }">
139
-        <van-picker show-toolbar :columns="columns" @cancel="onCancel" @confirm="onConfirm" />
160
+      <van-popup
161
+        v-model="typeShow"
162
+        position="bottom"
163
+        :style="{ height: '40%' }"
164
+      >
165
+        <van-picker
166
+          show-toolbar
167
+          :columns="columns"
168
+          @cancel="onCancel"
169
+          @confirm="onConfirm"
170
+        />
140 171
       </van-popup>
141
-      <van-popup v-model="startShow" position="bottom" :style="{ height: '40%' }">
172
+      <van-popup
173
+        v-model="startShow"
174
+        position="bottom"
175
+        :style="{ height: '40%' }"
176
+      >
142 177
         <van-datetime-picker
143 178
           v-model="currentDate"
144 179
           type="date"
@@ -158,7 +193,13 @@
158 193
           @cancel="endShow = false"
159 194
         />
160 195
       </van-popup>
161
-      <van-action-sheet v-model="newShow" :actions="actions" cancel-text="取消" @cancel="onCancel" />
196
+      <van-action-sheet
197
+        v-model="newShow"
198
+        :actions="actions"
199
+        cancel-text="取消"
200
+        @cancel="onCancel"
201
+        @select="toDelete"
202
+      />
162 203
     </div>
163 204
   </div>
164 205
 </template>
@@ -210,7 +251,9 @@ export default {
210 251
       page: 1,
211 252
       dialysisRecord: [],
212 253
       doctor: [],
213
-      patient_name: ""
254
+      patient_name: "",
255
+      index: 0,
256
+      id: 0
214 257
     };
215 258
   },
216 259
   methods: {
@@ -369,6 +412,31 @@ export default {
369 412
           "&patient_name=" +
370 413
           this.patient_name
371 414
       );
415
+    },
416
+    Delete(id, index) {
417
+      this.id = id;
418
+      this.index = index;
419
+      this.newShow = true;
420
+    },
421
+    toDelete(value) {
422
+      if ((value.name = "删除")) {
423
+        this.DeleteDialysisRecord(this.id, this.index);
424
+      }
425
+    },
426
+    DeleteDialysisRecord(id, index) {
427
+      Dialog.confirm({
428
+        title: "删除提示!",
429
+        message: "确认删除该条信息吗?,删除后将无法恢复!"
430
+      }).then(() => {
431
+        DeleteDialysisRecord(id).then(response => {
432
+          if (response.data.state === 1) {
433
+            var msg = response.data.data.msg;
434
+            console.log("msg", msg);
435
+            this.dialysisRecord.splice(index, 1);
436
+            this.newShow = false;
437
+          }
438
+        });
439
+      });
372 440
     }
373 441
   },
374 442
   created() {

+ 0 - 1
src/pages/doctorAdvice/components/DoctorManagement.vue ファイルの表示

@@ -418,7 +418,6 @@ export default {
418 418
       }
419 419
     },
420 420
     DeleteManagement(id, index) {
421
-      console.log("id", id, "index", index);
422 421
       Dialog.confirm({
423 422
         title: "删除提示!",
424 423
         message: "确认删除该条信息吗?,删除后将无法恢复!"