See999 4 yıl önce
ebeveyn
işleme
4f7e16cb05

+ 75 - 36
src/pages/doctorAdvice/components/DoctorManagement.vue Dosyayı Görüntüle

@@ -45,22 +45,36 @@
45 45
                   </span>
46 46
                 </div>
47 47
                 <div class="orderContent" v-if="i < 3">
48
-                  <p v-if="it.parent_id === 0">
49
-                    {{ it.advice_name }} {{ it.advice_desc
50
-                    }}{{ it.drug_spec_unit }} {{ it.prescribing_number
51
-                    }}{{ it.prescribing_number_unit }} {{ it.single_dose
52
-                    }}{{ it.single_dose_unit }} {{ it.delivery_way }}
53
-                    {{ it.execution_frequency }}
54
-                  </p>
55
-                  <div v-for="(i, index) in childList" :key="index">
56
-                    <p v-if="i.parent_id == it.id">
57
-                      ▲ {{ i.advice_name }} {{ i.advice_desc
58
-                      }}{{ i.drug_spec_unit }} {{ i.prescribing_number
59
-                      }}{{ i.prescribing_number_unit }} {{ i.single_dose
60
-                      }}{{ i.single_dose_unit }}
61
-                      {{ i.delivery_way }}
62
-                      {{ i.execution_frequency }}
48
+                  <div class="flexBox">
49
+                    <p v-if="it.parent_id === 0">
50
+                      {{ it.advice_name }} {{ it.advice_desc
51
+                      }}{{ it.drug_spec_unit }} {{ it.prescribing_number
52
+                      }}{{ it.prescribing_number_unit }} {{ it.single_dose
53
+                      }}{{ it.single_dose_unit }} {{ it.delivery_way }}
54
+                      {{ it.execution_frequency }}
63 55
                     </p>
56
+                    <van-icon
57
+                      class="ellipsis"
58
+                      name="ellipsis"
59
+                      @click="Delete(item.groupno, index, it.execution_staff)"
60
+                    />
61
+                  </div>
62
+                  <div v-for="(i, index) in childList" :key="index">
63
+                    <div v-if="i.parent_id == it.id" class="flexBox">
64
+                      <p>
65
+                        ▲ {{ i.advice_name }} {{ i.advice_desc
66
+                        }}{{ i.drug_spec_unit }} {{ i.prescribing_number
67
+                        }}{{ i.prescribing_number_unit }} {{ i.single_dose
68
+                        }}{{ i.single_dose_unit }}
69
+                        {{ i.delivery_way }}
70
+                        {{ i.execution_frequency }}
71
+                      </p>
72
+                      <van-icon
73
+                        class="ellipsis"
74
+                        name="ellipsis"
75
+                        @click="Delete(item.groupno, index, it.execution_staff)"
76
+                      />
77
+                    </div>
64 78
                   </div>
65 79
                 </div>
66 80
                 <div
@@ -83,23 +97,36 @@
83 97
                   </span>
84 98
                 </div>
85 99
                 <div class="orderContent" v-if="i < 3">
86
-                  <p>
87
-                    {{ it.advice_name }} {{ it.advice_desc
88
-                    }}{{ it.drug_spec_unit }} {{ it.prescribing_number
89
-                    }}{{ it.prescribing_number_unit }} {{ it.single_dose
90
-                    }}{{ it.single_dose_unit }} {{ it.delivery_way }}
91
-                    {{ it.execution_frequency }}
92
-                  </p>
93
-
94
-                  <div v-for="(i, index) in childList" :key="index">
95
-                    <p v-if="i.parent_id == it.id">
96
-                      ▲ {{ i.advice_name }} {{ i.advice_desc
97
-                      }}{{ i.drug_spec_unit }} {{ i.prescribing_number
98
-                      }}{{ i.prescribing_number_unit }} {{ i.single_dose
99
-                      }}{{ i.single_dose_unit }}
100
-                      {{ i.delivery_way }}
101
-                      {{ i.execution_frequency }}
100
+                  <div class="flexBox">
101
+                    <p>
102
+                      {{ it.advice_name }} {{ it.advice_desc
103
+                      }}{{ it.drug_spec_unit }} {{ it.prescribing_number
104
+                      }}{{ it.prescribing_number_unit }} {{ it.single_dose
105
+                      }}{{ it.single_dose_unit }} {{ it.delivery_way }}
106
+                      {{ it.execution_frequency }}
102 107
                     </p>
108
+                    <van-icon
109
+                      class="ellipsis"
110
+                      name="ellipsis"
111
+                      @click="Delete(item.groupno, index, it.execution_staff)"
112
+                    />
113
+                  </div>
114
+                  <div v-for="(i, index) in childList" :key="index">
115
+                    <div v-if="i.parent_id == it.id" class="flexBox">
116
+                      <p>
117
+                        ▲ {{ i.advice_name }} {{ i.advice_desc
118
+                        }}{{ i.drug_spec_unit }} {{ i.prescribing_number
119
+                        }}{{ i.prescribing_number_unit }} {{ i.single_dose
120
+                        }}{{ i.single_dose_unit }}
121
+                        {{ i.delivery_way }}
122
+                        {{ i.execution_frequency }}
123
+                      </p>
124
+                      <van-icon
125
+                        class="ellipsis"
126
+                        name="ellipsis"
127
+                        @click="Delete(item.groupno, index, it.execution_staff)"
128
+                      />
129
+                    </div>
103 130
                   </div>
104 131
                 </div>
105 132
                 <div
@@ -160,6 +187,13 @@
160 187
         @cancel="onCancel"
161 188
         @select="toDelete"
162 189
       />
190
+      <van-action-sheet
191
+        v-model="newShow"
192
+        :actions="actions1"
193
+        cancel-text="取消"
194
+        @cancel="onCancel"
195
+        @select="toDelete"
196
+      />
163 197
     </div>
164 198
   </div>
165 199
 </template>
@@ -193,7 +227,8 @@ export default {
193 227
       minDate: new Date(1970, 0, 1),
194 228
       maxDate: new Date(2025, 10, 1),
195 229
       currentDate: new Date(),
196
-      actions: [{ name: "删除" }],
230
+      actions: [{ name: "全部删除" }],
231
+      actions1: [{ name: "删除" }],
197 232
       form: {
198 233
         type: "",
199 234
         limit: 10,
@@ -507,10 +542,10 @@ export default {
507 542
       font-weight: bold;
508 543
       font-size: 0.9375rem;
509 544
     }
510
-    .ellipsis {
511
-      font-size: 1.25rem;
512
-      color: #cccccc;
513
-    }
545
+  }
546
+  .ellipsis {
547
+    font-size: 1.25rem;
548
+    color: #cccccc;
514 549
   }
515 550
   .statOrderTitle {
516 551
     color: #5b98ff;
@@ -573,6 +608,10 @@ export default {
573 608
       margin-right: 0.25rem;
574 609
     }
575 610
   }
611
+  .flexBox {
612
+    display: flex;
613
+    justify-content: space-between;
614
+  }
576 615
 }
577 616
 ::-webkit-scrollbar {
578 617
   width: 0;

+ 12 - 5
src/pages/doctorAdvice/components/Inspection.vue Dosyayı Görüntüle

@@ -30,7 +30,10 @@
30 30
               <van-icon class="ellipsis" name="ellipsis" @click="newShow = true" />
31 31
             </div>
32 32
             <div class="orderContent">
33
-              <p v-for="(it, i) in item.child" :key="i">{{ it }}</p>
33
+              <div class="flexBox" v-for="(it, i) in item.child" :key="i">
34
+                <p>{{ it }}</p>
35
+                <van-icon class="ellipsis" name="ellipsis" @click="newShow = true" />
36
+              </div>
34 37
             </div>
35 38
             <div class="all" @click="toInspection(item.inspect_date)">全部</div>
36 39
           </div>
@@ -290,10 +293,10 @@ export default {
290 293
       font-weight: bold;
291 294
       font-size: 0.9375rem;
292 295
     }
293
-    .ellipsis {
294
-      font-size: 1.25rem;
295
-      color: #cccccc;
296
-    }
296
+  }
297
+  .ellipsis {
298
+    font-size: 1.25rem;
299
+    color: #cccccc;
297 300
   }
298 301
   .orderContent {
299 302
     font-size: 0.875rem;
@@ -345,6 +348,10 @@ export default {
345 348
       margin-right: 0.25rem;
346 349
     }
347 350
   }
351
+  .flexBox {
352
+    display: flex;
353
+    justify-content: space-between;
354
+  }
348 355
 }
349 356
 ::-webkit-scrollbar {
350 357
   width: 0;