see999 před 4 roky
rodič
revize
a0e8417a96

+ 6 - 7
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Zobrazit soubor

@@ -80,6 +80,7 @@
80 80
               :label="item.name"
81 81
               :name="item.name"
82 82
             >
83
+            <div class="RP">Rp
83 84
               <el-date-picker
84 85
                 v-model="item.pre_time"
85 86
                 type="datetime"
@@ -88,11 +89,6 @@
88 89
                 value-format="yyyy-MM-dd hh:mm"
89 90
                 placeholder="选择日期">
90 91
               </el-date-picker>
91
-
92
-            </el-tab-pane>
93
-            <el-tab-pane name="more" closable><span slot="label"><i class="el-icon-plus" @click="addTab"></i></span>
94
-            </el-tab-pane>
95
-            <div class="RP">Rp
96 92
               <div style="float: right;margin-bottom:5px;margin-right:1%;">
97 93
                 <el-button
98 94
                   round
@@ -109,9 +105,12 @@
109 105
                 </el-button>
110 106
               </div>
111 107
             </div>
108
+              
112 109
 
113
-
114
-
110
+            </el-tab-pane>
111
+            <el-tab-pane name="more" closable><span slot="label"><i class="el-icon-plus" @click="addTab"></i></span>
112
+            </el-tab-pane>
113
+            
115 114
             <prescription-table ref="prescription_tables" :prescription="curPrescriptions" :preDrugs="preDrugs"
116 115
                                 :activeType="customTabIndex"></prescription-table>
117 116
           </el-tabs>

+ 41 - 4
src/xt_pages/sign/components/waitingCalled.vue Zobrazit soubor

@@ -9,10 +9,13 @@
9 9
                 </div>
10 10
             </div>
11 11
             <div class="waitingOneRight">
12
-                <span v-if="item.schedule_type == 1">上午</span>
13
-                <span v-if="item.schedule_type == 2">下午</span>
14
-                <span v-if="item.schedule_type == 3">晚上</span>
15
-                <span>{{ item.queue_no }}号</span>
12
+                <div>
13
+                    <span v-if="item.schedule_type == 1">上午</span>
14
+                    <span v-if="item.schedule_type == 2">下午</span>
15
+                    <span v-if="item.schedule_type == 3">晚上</span>
16
+                    <span>{{ item.queue_no }}号</span>
17
+                </div>
18
+                <i class="el-icon-delete deleteIcon" @click="deletePatient(item.patient_id)"></i>
16 19
             </div>
17 20
             <!-- <div class="waitingOneRight" @click="call(item.patient_id)" style="display: none;">
18 21
                 <img src="../../../assets/img/volume.png" alt="">
@@ -56,8 +59,36 @@ export default {
56 59
                 }
57 60
                 
58 61
             })
62
+        },
63
+        deletePatient(patient_id){
64
+            this.$confirm('是否删除?', '提示', {
65
+                confirmButtonText: '确定',
66
+                cancelButtonText: '取消',
67
+                type: 'warning'
68
+            }).then(() => {
69
+                let org_id =  parseInt(sessionStorage.getItem("org_id"));
70
+                let admin_user_id = parseInt(sessionStorage.getItem("admin_user_id"));
71
+                axios.get('/api/index/delpatient?org_id=' + org_id + '&patient_id=' + patient_id + '&admin_user_id=' + admin_user_id).then(res => {
72
+                    console.log(res)
73
+                    // let patientArr = res.data.queue_list.data
74
+                    // this.patientArr = patientArr
75
+                    // this.$emit('child-event',this.patientArr)
76
+                    if(res.data.code == 200){
77
+                        this.$message({
78
+                            type: 'success',
79
+                            message: '删除成功!'
80
+                        });
81
+                    }
82
+                })
83
+                
84
+            }).catch(() => {
85
+                        
86
+            });
87
+
88
+
59 89
             
60 90
         }
91
+        
61 92
     }
62 93
     // watch:{
63 94
     //     waitingCalled:{
@@ -109,10 +140,16 @@ export default {
109 140
         }
110 141
         .waitingOneRight{
111 142
             color:#999;
143
+            text-align: center;
112 144
             img{
113 145
                 width: 30px;
114 146
                 margin-top: 6px;
115 147
             }
148
+            .deleteIcon{
149
+                font-size: 22px;
150
+                color:red;
151
+                margin-top: 10px;
152
+            }
116 153
         }
117 154
     }
118 155
 }