see999 3 years ago
parent
commit
d5d534f7c9

+ 4 - 4
src/xt_pages/hospitalStation/components/prescriptionTable.vue View File

378
 
378
 
379
       },
379
       },
380
       getSingleDose(scope){
380
       getSingleDose(scope){
381
-        // this.prescription.advices[scope.$index].prescribing_number = scope.row.single_dose * scope.row.day
381
+        this.prescription.advices[scope.$index].prescribing_number = scope.row.single_dose * scope.row.day
382
       },
382
       },
383
       getDay(scope){
383
       getDay(scope){
384
-        // this.prescription.advices[scope.$index].prescribing_number = scope.row.single_dose * scope.row.day
384
+        this.prescription.advices[scope.$index].prescribing_number = scope.row.single_dose * scope.row.day
385
       },
385
       },
386
       getProjectSingleDose(scope){
386
       getProjectSingleDose(scope){
387
-        // this.prescription.project[scope.$index].total = scope.row.single_dose * scope.row.number_days
387
+        this.prescription.project[scope.$index].total = scope.row.single_dose * scope.row.number_days
388
       },
388
       },
389
       getProjectDay(scope){
389
       getProjectDay(scope){
390
-        // this.prescription.project[scope.$index].total = scope.row.single_dose * scope.row.number_days
390
+        this.prescription.project[scope.$index].total = scope.row.single_dose * scope.row.number_days
391
       }
391
       }
392
     },mounted(){
392
     },mounted(){
393
       this.getInitData()
393
       this.getInitData()

+ 47 - 47
src/xt_pages/outpatientCharges/summary.vue View File

100
                     <template slot-scope="scope">
100
                     <template slot-scope="scope">
101
                         <el-button size="mini" type="primary" @click="toDetail(scope.row)">详情</el-button>
101
                         <el-button size="mini" type="primary" @click="toDetail(scope.row)">详情</el-button>
102
                         <el-button size="mini" type="primary" @click="toPrint(scope.row)"
102
                         <el-button size="mini" type="primary" @click="toPrint(scope.row)"
103
-                                   v-if="(scope.row.order_status == 2 && $store.getters.xt_user.org_id == 9504) || (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 9919)  ||  (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 4) || (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 9990)">
103
+                                   v-if="(scope.row.order_status == 2 && $store.getters.xt_user.org_id == 9504) || (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 9919) ||  ($store.getters.xt_user.org_id == 10106) ||  (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 4) || (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 9990)">
104
                             结算单
104
                             结算单
105
                         </el-button>
105
                         </el-button>
106
                         <el-button size="mini" type="primary" v-if="scope.row.order_status == 2 && $store.getters.xt_user.org_id == 10106" @click="settlementPrint(scope.row)">结算单</el-button>
106
                         <el-button size="mini" type="primary" v-if="scope.row.order_status == 2 && $store.getters.xt_user.org_id == 10106" @click="settlementPrint(scope.row)">结算单</el-button>
247
         }
247
         }
248
 
248
 
249
       },toRefund(row){
249
       },toRefund(row){
250
-        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) {
251
-          var that = this;
250
+        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) {
251
+          var that = this
252
           this.$confirm('是否退费', '退费', {
252
           this.$confirm('是否退费', '退费', {
253
             confirmButtonText: '确 定',
253
             confirmButtonText: '确 定',
254
             cancelButtonText: '取 消',
254
             cancelButtonText: '取 消',
259
               'patient_id': row.patient_id,
259
               'patient_id': row.patient_id,
260
               'record_time': that.getTimes(row.settle_accounts_date),
260
               'record_time': that.getTimes(row.settle_accounts_date),
261
               'admin_user_id': that.$store.getters.xt_user.user.id,
261
               'admin_user_id': that.$store.getters.xt_user.user.id,
262
-            };
262
+            }
263
             axios.get('http://127.0.0.1:9532/api/refund/post', {
263
             axios.get('http://127.0.0.1:9532/api/refund/post', {
264
               params: params
264
               params: params
265
             })
265
             })
266
               .then(function(response) {
266
               .then(function(response) {
267
                 if (response.data.state == 0) {
267
                 if (response.data.state == 0) {
268
-                  that.$message.error(response.data.msg);
268
+                  that.$message.error(response.data.msg)
269
                   return false
269
                   return false
270
                 } else {
270
                 } else {
271
                   if (response.data.data.failed_code == -10) {
271
                   if (response.data.data.failed_code == -10) {
272
                     that.$message.error(response.data.data.msg)
272
                     that.$message.error(response.data.data.msg)
273
                   } else {
273
                   } else {
274
-                    that.$message({ message: '退费成功', type: 'success', duration: 5000 });
274
+                    that.$message({ message: '退费成功', type: 'success', duration: 5000 })
275
                     that.getHisOrderList()
275
                     that.getHisOrderList()
276
 
276
 
277
                   }
277
                   }
293
               'patient_id': this.patientInfo.id,
293
               'patient_id': this.patientInfo.id,
294
               'record_time': this.record_date
294
               'record_time': this.record_date
295
 
295
 
296
-            };
296
+            }
297
             Refund(params).then(response => {
297
             Refund(params).then(response => {
298
               if (response.data.state == 0) {
298
               if (response.data.state == 0) {
299
-                this.$message.error(response.data.msg);
299
+                this.$message.error(response.data.msg)
300
                 return false
300
                 return false
301
               } else {
301
               } else {
302
-                this.$message({ message: '退费成功', type: 'success' });
302
+                this.$message({ message: '退费成功', type: 'success' })
303
                 this.getHisOrderList()
303
                 this.getHisOrderList()
304
               }
304
               }
305
             })
305
             })
309
       },
309
       },
310
       toPrint(row) {
310
       toPrint(row) {
311
         if (this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10028) {
311
         if (this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10028) {
312
-          this.statementVisible9504 = true;
312
+          this.statementVisible9504 = true
313
           let obj = {
313
           let obj = {
314
             order_id: row.id,
314
             order_id: row.id,
315
             patient_id: row.patient_id,
315
             patient_id: row.patient_id,
316
             record_time: this.getTimes(row.settle_accounts_date),
316
             record_time: this.getTimes(row.settle_accounts_date),
317
             admin_user_id: this.$store.getters.xt_user.user.id
317
             admin_user_id: this.$store.getters.xt_user.user.id
318
-          };
318
+          }
319
           this.orderObj9504 = obj
319
           this.orderObj9504 = obj
320
         } else {
320
         } else {
321
-          this.statementVisible = true;
321
+          this.statementVisible = true
322
           let obj = {
322
           let obj = {
323
             order_id: row.id
323
             order_id: row.id
324
-          };
324
+          }
325
           this.orderObj = obj
325
           this.orderObj = obj
326
         }
326
         }
327
 
327
 
328
       },
328
       },
329
       settlementPrint(row){
329
       settlementPrint(row){
330
-        this.settlementVisible = true;
330
+        this.settlementVisible = true
331
         let obj = {
331
         let obj = {
332
           order_id: row.id
332
           order_id: row.id
333
-        };
333
+        }
334
         this.settlementObj = obj
334
         this.settlementObj = obj
335
       },
335
       },
336
       export_detail() {
336
       export_detail() {
337
         let params = {
337
         let params = {
338
           start_time: this.start_time,
338
           start_time: this.start_time,
339
           end_time: this.end_time
339
           end_time: this.end_time
340
-        };
340
+        }
341
         getExportConsumeDetailList(params).then(response => {
341
         getExportConsumeDetailList(params).then(response => {
342
           if (response.data.state == 0) {
342
           if (response.data.state == 0) {
343
-            this.$message.error(response.data.msg);
343
+            this.$message.error(response.data.msg)
344
             return false
344
             return false
345
           } else {
345
           } else {
346
 
346
 
347
-            let list = [];
347
+            let list = []
348
             for (let i = 0; i < response.data.data.order.length; i++) {
348
             for (let i = 0; i < response.data.data.order.length; i++) {
349
-              let order = response.data.data.order[i];
350
-              let number = '';
351
-              let name = '';
352
-              let department = '';
353
-              let doctor_name = '';
354
-              let balance_accounts = '';
349
+              let order = response.data.data.order[i]
350
+              let number = ''
351
+              let name = ''
352
+              let department = ''
353
+              let doctor_name = ''
354
+              let balance_accounts = ''
355
 
355
 
356
-              let order_status = '';
356
+              let order_status = ''
357
 
357
 
358
               if (order.his_patient != null && order.his_patient.number.length > 0) {
358
               if (order.his_patient != null && order.his_patient.number.length > 0) {
359
                 number = order.his_patient.number
359
                 number = order.his_patient.number
414
                 '收费日期': '',
414
                 '收费日期': '',
415
                 '收费状态': order_status,
415
                 '收费状态': order_status,
416
                 '退费日期': ''
416
                 '退费日期': ''
417
-              };
417
+              }
418
               list.push(obj)
418
               list.push(obj)
419
             }
419
             }
420
             import('@/vendor/Export2Excel').then(excel => {
420
             import('@/vendor/Export2Excel').then(excel => {
421
-              const tHeader = ['就诊号', '患者姓名', '应收金额', '实收金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费日期', '收费状态', '退费日期'];
422
-              const filterVal = ['就诊号', '患者姓名', '应收金额', '实收金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费日期', '收费状态', '退费日期'];
423
-              const data = this.formatJson(filterVal, list);
421
+              const tHeader = ['就诊号', '患者姓名', '应收金额', '实收金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费日期', '收费状态', '退费日期']
422
+              const filterVal = ['就诊号', '患者姓名', '应收金额', '实收金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费日期', '收费状态', '退费日期']
423
+              const data = this.formatJson(filterVal, list)
424
               excel.export_json_to_excel({
424
               excel.export_json_to_excel({
425
                 header: tHeader,
425
                 header: tHeader,
426
                 data,
426
                 data,
435
         return jsonData.map(v => filterVal.map(j => v[j]))
435
         return jsonData.map(v => filterVal.map(j => v[j]))
436
       },
436
       },
437
       changeDoctor() {
437
       changeDoctor() {
438
-        this.page = 1;
439
-        this.keywords = '';
438
+        this.page = 1
439
+        this.keywords = ''
440
         this.getHisOrderList()
440
         this.getHisOrderList()
441
       },
441
       },
442
       handleSizeChange(limit) {
442
       handleSizeChange(limit) {
443
-        this.limit = limit;
443
+        this.limit = limit
444
         this.getHisOrderList()
444
         this.getHisOrderList()
445
 
445
 
446
       }, handleCurrentChange(page) {
446
       }, handleCurrentChange(page) {
447
-        this.page = page;
447
+        this.page = page
448
         this.getHisOrderList()
448
         this.getHisOrderList()
449
 
449
 
450
       },
450
       },
451
       handleStartTimeChange() {
451
       handleStartTimeChange() {
452
-        this.page = 1;
453
-        this.keywords = '';
452
+        this.page = 1
453
+        this.keywords = ''
454
         this.getHisOrderList()
454
         this.getHisOrderList()
455
       }, handleEndTimeChange() {
455
       }, handleEndTimeChange() {
456
-        this.page = 1;
457
-        this.keywords = '';
456
+        this.page = 1
457
+        this.keywords = ''
458
         this.getHisOrderList()
458
         this.getHisOrderList()
459
       },
459
       },
460
       searchAction() {
460
       searchAction() {
461
-        this.page = 1;
461
+        this.page = 1
462
         this.getHisOrderList()
462
         this.getHisOrderList()
463
 
463
 
464
       },
464
       },
480
           start_time: this.start_time,
480
           start_time: this.start_time,
481
           end_time: this.end_time,
481
           end_time: this.end_time,
482
           type: this.admin_user_id
482
           type: this.admin_user_id
483
-        };
483
+        }
484
         getHisOrderList(params).then(response => {
484
         getHisOrderList(params).then(response => {
485
           if (response.data.state == 0) {
485
           if (response.data.state == 0) {
486
-            this.$message.error(response.data.msg);
486
+            this.$message.error(response.data.msg)
487
             return false
487
             return false
488
           } else {
488
           } else {
489
-            this.tableData = response.data.data.order;
489
+            this.tableData = response.data.data.order
490
             this.total = response.data.data.total
490
             this.total = response.data.data.total
491
           }
491
           }
492
         })
492
         })
494
       }, getDoctorList() {
494
       }, getDoctorList() {
495
         getDoctorList().then(response => {
495
         getDoctorList().then(response => {
496
           if (response.data.state == 0) {
496
           if (response.data.state == 0) {
497
-            this.$message.error(response.data.msg);
497
+            this.$message.error(response.data.msg)
498
             return false
498
             return false
499
           } else {
499
           } else {
500
             this.doctors = response.data.data.doctors
500
             this.doctors = response.data.data.doctors
509
         }
509
         }
510
       },
510
       },
511
       invoicePrint(obj){
511
       invoicePrint(obj){
512
-        console.log(obj);
512
+        console.log(obj)
513
         let paramsObj = {
513
         let paramsObj = {
514
           order_id: obj.id,
514
           order_id: obj.id,
515
           patient_id: obj.patient_id,
515
           patient_id: obj.patient_id,
517
           age:obj.age,
517
           age:obj.age,
518
           gend:obj.gend,
518
           gend:obj.gend,
519
           setl_time:obj.setl_time
519
           setl_time:obj.setl_time
520
-        };
521
-        this.invoiceParams = paramsObj;
520
+        }
521
+        this.invoiceParams = paramsObj
522
         this.invoiceVisible = true
522
         this.invoiceVisible = true
523
       }
523
       }
524
     }, created() {
524
     }, created() {
525
 
525
 
526
 
526
 
527
-      this.fetchAllAdminUsers();
528
-      this.getDoctorList();
527
+      this.fetchAllAdminUsers()
528
+      this.getDoctorList()
529
       this.getHisOrderList()
529
       this.getHisOrderList()
530
 
530
 
531
 
531
 

+ 1 - 1
src/xt_pages/outpatientDoctorStation/template/printOne.vue View File

24
               <div class="drugsBox" v-for="(it,index) in item.advices" :key="index">
24
               <div class="drugsBox" v-for="(it,index) in item.advices" :key="index">
25
                   <!-- <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;{{it.single_dose}}{{it.single_dose_unit}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</div> -->
25
                   <!-- <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;{{it.single_dose}}{{it.single_dose_unit}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</div> -->
26
                   <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;{{it.drug.drug_spec}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</div>
26
                   <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;{{it.drug.drug_spec}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</div>
27
-                  <div style="margin-left:100px;"><span>用法:{{it.single_dose}}{{it.single_dose_unit}}</span>&nbsp;&nbsp;<span>{{it.execution_frequency}}&nbsp;{{it.delivery_way}}&nbsp;{{it.day}}天</span>&nbsp;&nbsp;<span>{{it.advice_desc}}</span></div>
27
+                  <div style="margin-left:100px;"><span>用法:{{it.single_dose}}{{it.single_dose_unit}}</span>&nbsp;&nbsp;<span>{{it.execution_frequency}}&nbsp;{{it.delivery_way}}&nbsp;</span>&nbsp;&nbsp;<span>{{it.advice_desc}}</span></div>
28
               </div>
28
               </div>
29
               <div class="drugsBox" v-for="(it,i) in item.additionalcharge" :key="i">
29
               <div class="drugsBox" v-for="(it,i) in item.additionalcharge" :key="i">
30
                 <div class="drugsOne">{{it.item_name?it.item_name:""}}:&nbsp;{{it.price}}元/{{it.count}}次</div>
30
                 <div class="drugsOne">{{it.item_name?it.item_name:""}}:&nbsp;{{it.price}}元/{{it.count}}次</div>