XMLWAN пре 4 година
родитељ
комит
5635cb9659

+ 1 - 1
src/api/patient.js Прегледај датотеку

@@ -373,7 +373,7 @@ export function modifyDryWeightData(params) {
373 373
 }
374 374
 
375 375
 export function deleteDryWeight(id, data) {
376
-  console.log('id', id)
376
+ 
377 377
   return request({
378 378
     url: '/api/patient/deletedryweight?id=' + id,
379 379
     method: 'delete',

+ 11 - 1
src/api/project/project.js Прегледај датотеку

@@ -260,4 +260,14 @@ export function getHisPatientHistory(params){
260 260
         methods:"get",
261 261
         params:params
262 262
     })
263
-}
263
+}
264
+
265
+
266
+export function changePatient(id,params){
267
+   
268
+    return request({
269
+      url:"/api/patient/changepatient?id="+id,
270
+      method:"get",
271
+      params:params
272
+    })
273
+  }

+ 3 - 2
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Прегледај датотеку

@@ -373,9 +373,10 @@
373 373
             sick_history: this.state2,
374 374
             doctor: this.doctorValue,
375 375
             department: this.departmentValue,
376
-            record_date: this.record_date
376
+            record_date: this.record_date,
377
+            his_patient_id: this.hisPatientInfo.id
377 378
           }
378
-
379
+         
379 380
           for (let i = 0; i < this.prescriptions.length; i++){
380 381
             if(this.prescriptions[i].advices.length > 0 && this.prescriptions[i].project.length == 0){
381 382
               this.prescriptions[i]['type'] = 1

+ 2 - 1
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Прегледај датотеку

@@ -119,6 +119,7 @@
119 119
             return false
120 120
           } else {
121 121
             this.patientTableData = response.data.data.list
122
+            console.log("222",this.patientTableData)
122 123
             // this.$refs.tab.setCurrentRow(this.patientTableData[0])
123 124
             let cal_one = 0
124 125
             let cal_two = 0
@@ -200,7 +201,7 @@
200 201
               }
201 202
               this.prescriptions.push(obj)
202 203
             }
203
-            console.log("中国22222222",this.prescriptions)
204
+           
204 205
             this.$refs.prescriptions.setData(this.prescriptions)
205 206
           }
206 207
         })

+ 7 - 7
src/xt_pages/outpatientRegistration/index.vue Прегледај датотеку

@@ -192,26 +192,26 @@ export default {
192 192
                 label: "港澳地区身份证"
193 193
             }],
194 194
             medicalCare: [{
195
-                value: 310,
195
+                value: 1,
196 196
                 label: '职工基本医疗保险'
197 197
                 }, {
198
-                value: 320,
198
+                value: 2,
199 199
                 label: "公务员医疗补助"
200 200
                 },{
201
-                value: 330,
201
+                value: 3,
202 202
                 label: "大额医疗费用补助"
203 203
                 },{
204
-                value: 340,
204
+                value: 4,
205 205
                 label: "离休人员医疗"
206 206
                 },{
207
-                value: 390,
207
+                value: 5,
208 208
                 label: "城乡居民基本医疗保险"
209 209
                 },{
210
-                value: 392,
210
+                value: 6,
211 211
                 label: "城乡居民大病医疗保险"
212 212
                 },
213 213
                 {
214
-                value: 510,
214
+                value: 7,
215 215
                 label: "生育保险"
216 216
             }],
217 217
             register: [{

+ 106 - 23
src/xt_pages/outpatientRegistration/registrationHistory.vue Прегледај датотеку

@@ -43,13 +43,13 @@
43 43
                     </template>
44 44
                 </el-table-column>
45 45
                 <el-table-column align="center" prop="name" label="时间" width="100">
46
-                    <template slot-scope="scope">{{ scope.row.record_date }}</template>
46
+                    <template slot-scope="scope">{{getTime(scope.row.record_date,"{y}-{m}-{d}")}}</template>
47 47
                 </el-table-column>
48 48
                 <el-table-column align="center" prop="dialysis_no" label="姓名" width="80">
49 49
                     <template slot-scope="scope">{{scope.row.name }}</template>
50 50
                 </el-table-column>
51 51
                 <el-table-column align="center" prop="name" label="科室" width="80">
52
-                    <template slot-scope="scope">{{ scope.row.departments }}</template>
52
+                    <template slot-scope="scope">{{getDepartMent(scope.row.departments)}}</template>
53 53
                 </el-table-column>
54 54
                 <el-table-column align="center" prop="name" label="挂号类型" width="90">
55 55
                     <template slot-scope="scope">
@@ -69,10 +69,10 @@
69 69
                     <template slot-scope="scope">{{ scope.row.id_card_no }}</template>
70 70
                 </el-table-column>
71 71
                 <el-table-column align="center" label="患者保险类型" width="80">
72
-                    <template slot-scope="scope">{{ scope.row.id_type }}</template>
72
+                    <template slot-scope="scope">{{getMedicalTreatment(scope.row.medical_treatment_type)}}</template>
73 73
                 </el-table-column>
74 74
                 <el-table-column align="center" prop="name" label="医生" width="80">
75
-                    <template slot-scope="scope">{{ scope.row.admin_user_id }}</template>
75
+                    <template slot-scope="scope">{{getDoctor(scope.row.doctor) }}</template>
76 76
                 </el-table-column>
77 77
                 <el-table-column align="center" prop="name" label="挂号费" width="70">
78 78
                     <template slot-scope="scope">{{ scope.row.register_cost }}</template>
@@ -84,17 +84,18 @@
84 84
                     <template slot-scope="scope">{{ scope.row.cost_of_production }}</template>
85 85
                 </el-table-column>
86 86
                 <el-table-column align="center" prop="name" label="操作人" width="70">
87
-                    <template slot-scope="scope">{{ $store.getters.xt_user.org.org_name }}</template>
87
+                    <template slot-scope="scope">{{getDoctor(scope.row.admin_user_id) }}</template>
88 88
                 </el-table-column>
89 89
                 <el-table-column align="center" prop="name" label="操作" width="80">
90 90
                     <template slot-scope="scope">
91
-                        <!-- <el-button size="mini" type="primary">编辑</el-button> -->
92
-                        <span>已就诊</span>
91
+                        <el-button size="mini" type="primary" v-if="scope.row.is_return == 1" @click ="toReturnPatient(scope.row.id)" >退号</el-button> 
92
+                        <el-button size="mini" type="primary" v-if="scope.row.is_return == 2" :disabled="true">已退号</el-button>
93
+                        <el-button size="mini" type="primary" v-if="scope.row.is_return == 3" :disabled="true">已就诊</el-button>  
93 94
                     </template>
94 95
                 </el-table-column>
95 96
             </el-table>
96 97
 
97
-            <!-- <el-pagination
98
+            <el-pagination
98 99
                 @size-change="handleSizeChange"
99 100
                 @current-change="handleCurrentChange"
100 101
                 :page-sizes="[10, 50, 100]"
@@ -104,7 +105,7 @@
104 105
                 layout="total, sizes, prev, pager, next, jumper"
105 106
                 :total="total"
106 107
             >
107
-            </el-pagination> -->
108
+            </el-pagination>
108 109
         </div>
109 110
     </div>
110 111
 </template>
@@ -112,7 +113,8 @@
112 113
 <script>
113 114
 const moment = require('moment')
114 115
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
115
-import { getHisPatientHistory } from "@/api/project/project"
116
+import { getHisPatientHistory,changePatient } from "@/api/project/project"
117
+import { uParseTime } from "@/utils/tools";
116 118
 export default {
117 119
     components:{
118 120
         BreadCrumb
@@ -139,6 +141,32 @@ export default {
139 141
             end_time:"",
140 142
             limit:20,
141 143
             page:1,
144
+            total:0,
145
+            departMent:[],
146
+            doctorList:[],
147
+            medicalCare: [{
148
+                id: 1,
149
+                name: '职工基本医疗保险'
150
+                }, {
151
+                id: 2,
152
+                name: "公务员医疗补助"
153
+                },{
154
+                id: 3,
155
+                name: "大额医疗费用补助"
156
+                },{
157
+                id: 4,
158
+                name: "离休人员医疗"
159
+                },{
160
+                id: 5,
161
+                name: "城乡居民基本医疗保险"
162
+                },{
163
+                id: 6,
164
+                name: "城乡居民大病医疗保险"
165
+                },
166
+                {
167
+                id: 7,
168
+                name: "生育保险"
169
+            }],
142 170
         }
143 171
     },
144 172
     created(){
@@ -152,19 +180,13 @@ export default {
152 180
             
153 181
         // })
154 182
         // this.tableData = arr
183
+     
155 184
        this.getlist()
156 185
     },
157 186
     methods:{
158
-        // searchAction(){
159
-        //     let arr = this.tableData
160
-        //     let a = []
161
-        //     arr.map(item => {
162
-        //         if(item.name.indexOf(this.search_input) > -1 && item.org_id == this.$store.getters.xt_user.org_id){
163
-        //             a.push(item)
164
-        //         }
165
-        //     })
166
-        //     this.tableData = a
167
-        // },
187
+        searchAction(){
188
+           this.getlist()
189
+        },
168 190
         // changeTime(val){
169 191
         //     let arr = JSON.parse(localStorage.getItem("temp"))
170 192
         //     arr.map(item => {
@@ -191,6 +213,14 @@ export default {
191 213
         changeRegister(val){
192 214
 
193 215
         },
216
+       handleSizeChange(val) {
217
+          this.limit = val
218
+          this.getList()
219
+       },
220
+        handleCurrentChange(val) {
221
+        this.page = val
222
+        this.getList()
223
+        },
194 224
         getlist(){
195 225
           var params = {
196 226
                keyword:this.search_input,
@@ -208,15 +238,68 @@ export default {
208 238
                 this.tableData = history
209 239
                 var total =  response.data.data.total
210 240
                 console.log("total",total)
241
+                this.total = total
211 242
                 var department =  response.data.data.department
212 243
                 console.log("department",department)
213
-               
244
+                this.departMent = department
245
+                var doctor = response.data.data.doctor
246
+                console.log("doctor",doctor)
247
+                this.doctorList = doctor
214 248
              }
215 249
           })
216 250
  
251
+        },
252
+        getDepartMent(id){
253
+          var name = ""
254
+          for(let i=0;i<this.departMent.length;i++){
255
+            if(id == this.departMent[i].id){
256
+                name = this.departMent[i].name
257
+            }
258
+          }
259
+          return name
260
+        },
261
+        getDoctor(id){
262
+          var user_name = ""
263
+          for(let i=0;i<this.doctorList.length;i++){
264
+            if(id == this.doctorList[i].admin_user_id){
265
+               user_name = this.doctorList[i].user_name 
266
+            }
267
+          }
268
+          return user_name
269
+        },
270
+        getMedicalTreatment(id){
271
+          var name = ""
272
+          for(let i=0;i<this.medicalCare.length;i++){
273
+             if(this.medicalCare[i].id == id){
274
+               name = this.medicalCare[i].name
275
+             }
276
+          }
277
+          return name
278
+        },
279
+        getTime(value, temp) {
280
+         if (value != undefined) {
281
+                return uParseTime(value, temp);
282
+            }
283
+            return "";
284
+        },
285
+        toReturnPatient(id){
286
+          this.$confirm("确认退号吗?", "退号", {
287
+          confirmButtonText: "确 定",
288
+          cancelButtonText: "取 消",
289
+          type: "warning"
290
+        }).then(() => {
291
+          changePatient(id).then(response => {
292
+            if (response.data.state == 1) {
293
+              var msg = response.data.data.msg
294
+              this.$message.success("退号成功");
295
+              this.getlist()
296
+            } else {
297
+               this.$message.error("患者已就诊,退号失败")
298
+            }
299
+          });
300
+        })
301
+        .catch(() => {});
217 302
         }
218
-
219
-
220 303
     }
221 304
 }
222 305
 </script>