see999 4 anni fa
parent
commit
a0e8417a96

+ 6 - 7
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Vedi File

80
               :label="item.name"
80
               :label="item.name"
81
               :name="item.name"
81
               :name="item.name"
82
             >
82
             >
83
+            <div class="RP">Rp
83
               <el-date-picker
84
               <el-date-picker
84
                 v-model="item.pre_time"
85
                 v-model="item.pre_time"
85
                 type="datetime"
86
                 type="datetime"
88
                 value-format="yyyy-MM-dd hh:mm"
89
                 value-format="yyyy-MM-dd hh:mm"
89
                 placeholder="选择日期">
90
                 placeholder="选择日期">
90
               </el-date-picker>
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
               <div style="float: right;margin-bottom:5px;margin-right:1%;">
92
               <div style="float: right;margin-bottom:5px;margin-right:1%;">
97
                 <el-button
93
                 <el-button
98
                   round
94
                   round
109
                 </el-button>
105
                 </el-button>
110
               </div>
106
               </div>
111
             </div>
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
             <prescription-table ref="prescription_tables" :prescription="curPrescriptions" :preDrugs="preDrugs"
114
             <prescription-table ref="prescription_tables" :prescription="curPrescriptions" :preDrugs="preDrugs"
116
                                 :activeType="customTabIndex"></prescription-table>
115
                                 :activeType="customTabIndex"></prescription-table>
117
           </el-tabs>
116
           </el-tabs>

+ 41 - 4
src/xt_pages/sign/components/waitingCalled.vue Vedi File

9
                 </div>
9
                 </div>
10
             </div>
10
             </div>
11
             <div class="waitingOneRight">
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
             </div>
19
             </div>
17
             <!-- <div class="waitingOneRight" @click="call(item.patient_id)" style="display: none;">
20
             <!-- <div class="waitingOneRight" @click="call(item.patient_id)" style="display: none;">
18
                 <img src="../../../assets/img/volume.png" alt="">
21
                 <img src="../../../assets/img/volume.png" alt="">
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
     // watch:{
93
     // watch:{
63
     //     waitingCalled:{
94
     //     waitingCalled:{
109
         }
140
         }
110
         .waitingOneRight{
141
         .waitingOneRight{
111
             color:#999;
142
             color:#999;
143
+            text-align: center;
112
             img{
144
             img{
113
                 width: 30px;
145
                 width: 30px;
114
                 margin-top: 6px;
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
 }