Browse Source

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

csx 3 years ago
parent
commit
03950b7b77

+ 2 - 1
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

@@ -4046,7 +4046,8 @@
4046 4046
           this.big_month_prescriptions[i]['month_total'] = this.getMonthTotalTwo(this.big_month_prescriptions[i].month_prescriptions[0])
4047 4047
         }
4048 4048
 
4049
-      }, getPName(med_type, index) {
4049
+      },
4050
+      getPName(med_type, index) {
4050 4051
         var med_type = parseInt(med_type)
4051 4052
 
4052 4053
         if (this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138) {

+ 100 - 4
src/xt_pages/outpatientCharges/summary.vue View File

@@ -84,6 +84,9 @@
84 84
                 <el-table-column align="center" width="90" prop="name" label="科室">
85 85
                     <template slot-scope="scope">{{scope.row.department_name}}</template>
86 86
                 </el-table-column>
87
+                <el-table-column align="center" width="90" prop="name" label="医疗类型">
88
+                    <template slot-scope="scope"><div>{{getMedType(scope.row.med_type)}}</div></template>
89
+                </el-table-column>
87 90
                 <el-table-column align="center" width="100" prop="name" label="收费日期">
88 91
                     <template slot-scope="scope">
89 92
                         {{scope.row.setl_time?scope.row.setl_time:getTimes(scope.row.settle_accounts_date)}}
@@ -241,6 +244,95 @@
241 244
       }
242 245
     },
243 246
     methods: {
247
+      getMedType(med_type) {
248
+        var med_type = parseInt(med_type)
249
+        if (this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138) {
250
+          switch (med_type) {
251
+            case 11:
252
+              return '普通门诊'
253
+
254
+              break
255
+            case 12:
256
+              return '家庭通道'
257
+
258
+              break
259
+            case 13:
260
+              return '门诊大病'
261
+
262
+              break
263
+
264
+            case 14:
265
+              return '重疾特药'
266
+              break
267
+
268
+            case 15:
269
+              return '门诊慢病'
270
+
271
+              break
272
+            case 16:
273
+              return '门诊特检'
274
+
275
+              break
276
+            case 17:
277
+              return '健康体检'
278
+
279
+              break
280
+            case 18:
281
+              return '预防接种'
282
+
283
+              break
284
+            case 19:
285
+              return '门诊输血'
286
+
287
+              break
288
+            case 91:
289
+              return '新冠肺炎门诊'
290
+              break
291
+            case 1111:
292
+              return '精一' + '处方'
293
+              break
294
+            case 1112:
295
+              return '精二' + '处方'
296
+              break
297
+          }
298
+
299
+        } else {
300
+
301
+          switch (med_type) {
302
+            case 11:
303
+              return '普通门诊'
304
+
305
+              break
306
+            case 12:
307
+              return '门诊挂号'
308
+
309
+              break
310
+            case 13:
311
+              return '急诊'
312
+
313
+              break
314
+
315
+            case 14:
316
+              return '门诊特殊病'
317
+              break
318
+
319
+            case 15:
320
+              return '门诊统筹'
321
+
322
+              break
323
+            case 16:
324
+              return '门诊慢性病'
325
+
326
+              break
327
+            case 21:
328
+              return '普通住院'
329
+              break
330
+
331
+          }
332
+
333
+        }
334
+
335
+      },
244 336
       uploadInfo(row) {
245 337
         var that = this
246 338
         axios.get('http://127.0.0.1:9532/api/settlelist/get', {
@@ -291,6 +383,10 @@
291 383
 
292 384
       }, toRefund(row) {
293 385
 
386
+        console.log("~~~~~")
387
+        console.log(row)
388
+        console.log(this.$store.getters.xt_user.org_id )
389
+
294 390
 
295 391
 
296 392
         if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671 || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 9990) {
@@ -335,8 +431,8 @@
335 431
           }).catch(() => {
336 432
           })
337 433
 
338
-        } else if (this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138) {
339
-
434
+        } else if (this.$store.getters.xt_user.org_id == 0 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138) {
435
+            var that = this
340 436
           this.$confirm('是否退费', '退费', {
341 437
             confirmButtonText: '确 定',
342 438
             cancelButtonText: '取 消',
@@ -345,8 +441,8 @@
345 441
             let params = {
346 442
               'order_id': row.id,
347 443
               'patient_id': row.patient_id,
348
-              'record_time': that.getTimes(row.settle_accounts_date),
349
-              'admin_user_id': that.$store.getters.xt_user.user.id
444
+              'record_time': this.getTimes(row.settle_accounts_date),
445
+              'admin_user_id': this.$store.getters.xt_user.user.id
350 446
             }
351 447
             axios.get('http://127.0.0.1:9532/sz/api/refund/get', {
352 448
               params: params

+ 14 - 3
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

@@ -1950,12 +1950,23 @@
1950 1950
 
1951 1951
 
1952 1952
 
1953
+
1954
+
1953 1955
             if (info.id > 0) {
1954 1956
               this.doctorValue = info.doctor_id
1955 1957
               this.departmentValue = info.departments
1956 1958
             } else {
1957
-              this.doctorValue = this.doctors[0].id
1958
-              this.departmentValue = this.department[0].id
1959
+              if(admin_info.id > 0 && admin_info.user_type == 2){
1960
+                this.doctorValue = admin_info.admin_user_id
1961
+                this.departmentValue = this.department[0].id
1962
+
1963
+              }else{
1964
+
1965
+                this.doctorValue = this.doctors[0].admin_user_id
1966
+                this.departmentValue = this.department[0].id
1967
+
1968
+              }
1969
+
1959 1970
 
1960 1971
             }
1961 1972
 
@@ -3247,4 +3258,4 @@
3247 3258
         height: 15px;
3248 3259
     }
3249 3260
 
3250
-</style>
3261
+</style>

+ 6 - 1
src/xt_pages/outpatientRegistration/index.vue View File

@@ -1216,6 +1216,9 @@
1216 1216
                         that.form.phone = ''
1217 1217
                         that.form.social_type = ''
1218 1218
 
1219
+                        that.form.register = 4
1220
+                        that.form.registrationFee = 0
1221
+                        that.form.medicalExpenses = 0
1219 1222
                         that.form.p_type = 14
1220 1223
                         that.form.sick_type = that.sick[0].id
1221 1224
                         that.form.diagnosis = that.diagnoses[0].id
@@ -1254,7 +1257,9 @@
1254 1257
                     this.form.phone = ''
1255 1258
                     this.form.social_type = ''
1256 1259
                     this.loadingone = false
1257
-
1260
+                    this.form.register = 4
1261
+                    this.form.registrationFee = 0
1262
+                    this.form.medicalExpenses = 0
1258 1263
                     this.form.p_type = 14
1259 1264
                     this.form.sick_type = this.sick[0].id
1260 1265
                     this.form.diagnosis = this.diagnoses[0].id