Parcourir la source

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

XMLWAN il y a 4 ans
Parent
révision
b07382407e

+ 5 - 3
src/xt_pages/outpatientCharges/components/chargeDialog.vue Voir le fichier

@@ -69,8 +69,8 @@
69 69
     </el-form>
70 70
 
71 71
     <span slot="footer" class="dialog-footer">
72
-    <el-button @click="cancel('formValue')">取 消</el-button>
73
-    <el-button type="primary" @click="confirm('formValue')">确 定</el-button>
72
+    <el-button v-loading="loadingtwo" @click="cancel('formValue')">取 消</el-button>
73
+    <el-button v-loading="loadingtwo" type="primary" @click="confirm('formValue')">确 定</el-button>
74 74
   </span>
75 75
   </el-dialog>
76 76
 
@@ -157,6 +157,8 @@
157 157
         this.visibility = true
158 158
 
159 159
       }, hide: function () {
160
+        this.form = Object.assign({}, this.resetForm)
161
+        this.loadingtwo = false
160 162
         this.visibility = false
161 163
       }, cancel: function (formName) {
162 164
         this.$emit('cancel', this.getValue())
@@ -168,7 +170,7 @@
168 170
             let value = {}
169 171
             value = this.getValue()
170 172
             this.$emit('confirm', value)
171
-            this.form = Object.assign({}, this.resetForm)
173
+            this.loadingtwo = true
172 174
           }
173 175
         })
174 176
       },

+ 4 - 4
src/xt_pages/outpatientCharges/components/registerDialog9504.vue Voir le fichier

@@ -50,8 +50,8 @@
50 50
             </el-form-item>
51 51
 
52 52
 
53
-            <el-form-item label="医疗类别:">
54
-                <el-select v-model="form.medical_care" prop="medical_care" placeholder="请选择" style="width:100%;">
53
+            <el-form-item label="医疗类别:" prop="medical_care">
54
+                <el-select v-model="form.medical_care"  placeholder="请选择" style="width:100%;">
55 55
                     <el-option
56 56
                             v-for="(item,index) in medical_care"
57 57
                             :key="index"
@@ -448,7 +448,7 @@
448 448
               if (that.form.id_card_type == 1) {
449 449
                 that.form.id = patient.id
450 450
                 that.form.name = patient.name
451
-                that.form.sex = patient.gender.toString()
451
+                that.form.gender = patient.gender
452 452
                 that.form.age = patient.age
453 453
                 that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
454 454
                 that.form.phone = patient.phone
@@ -457,7 +457,7 @@
457 457
               } else if (that.form.id_card_type == 2) {
458 458
                 this.form.id = patient.id
459 459
                 that.form.name = patient.name
460
-                that.form.sex = patient.gender
460
+                that.form.gender = patient.gender
461 461
                 that.form.age = patient.age
462 462
                 that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
463 463
                 that.form.phone = patient.phone

+ 2 - 1
src/xt_pages/outpatientCharges/newStatementPrintTwo.vue Voir le fichier

@@ -112,7 +112,8 @@
112 112
                   that.info['health_card_no'] = response.data.data.health_card_no
113 113
                   that.info['order_number'] = response.data.data.order_number
114 114
 
115
-
115
+                  that.info['department'] =  response.data.data.department
116
+                  that.info['yiliao_leibie'] =  response.data.data.yiliao_leibie
116 117
 
117 118
                   that.info['org_name'] = that.$store.getters.xt_user.org.org_name
118 119
                   console.log("~~~~" + that.info)

+ 46 - 20
src/xt_pages/outpatientCharges/newTreatTemplate/printOne.vue Voir le fichier

@@ -1,18 +1,18 @@
1 1
 <template>
2 2
     <div>
3 3
         <div id='prescription-print' class="prescription-print">
4
-            <div>
4
+            <div v-for='(i,index) in pageArr.length'>
5 5
                 <div class="printTitle">&nbsp血液透析中心医药费收据及收费项目清单</div>
6 6
                 <div class="infoMain">
7 7
                     <div class="infoP">医院(药店)编号:{{info.org_code}}</div>
8 8
                     <div class="infoP">名称:{{info.org_name}}</div>
9 9
                     <div class="infoP">医生工号:{{info.doctor_code}}</div>
10 10
                     <div class="infoP">门诊流水号:{{info.transBody.akc190}}</div>
11
-                    <div class="infoP">科别: 全科</div>
11
+                    <div class="infoP">科别: {{info.department}}</div>
12 12
                     <div class="infoP">处方单据号:{{info.order_number}}</div>
13 13
                     <div class="infoP">姓名:{{info.patient_name}}</div>
14 14
                     <div class="infoP">医疗账号:{{info.health_card_no}}</div>
15
-                    <div class="infoP">医疗类别:普通</div>
15
+                    <div class="infoP">医疗类别:{{info.yiliao_leibie}}</div>
16 16
                 </div>
17 17
                 <div class="chargeBox">
18 18
                     <div style="display:flex;justify-content: space-between;border-bottom:1px solid #000;">
@@ -32,55 +32,55 @@
32 32
                         <div style="width:20%;">
33 33
                             <div class="chargeUl" v-for="(item,index) in info.transBody.outputlist2" :key="index">
34 34
                                 <p style="width:50%;">{{getItemName(item.aka111)}}</p>
35
-                                <p style="width:50%;">{{item.bka058}}</p>
35
+                                <p style="width:50%;">{{item.bka058?item.bka058:0}}</p>
36 36
                             </div>
37 37
                             <div class="chargeUl" style="border-top:1px solid #000;">
38 38
                                 <p style="width:50%;">费用合计</p>
39
-                                <p style="width:50%;">{{info.transBody.akc264}}</p>
39
+                                <p style="width:50%;">{{info.transBody.akc264?info.transBody.akc264:0}}</p>
40 40
                             </div>
41 41
                             <div class="chargeUl" style="border-top:1px solid #000;">
42 42
                                 <p style="width:50%;">记账支付</p>
43
-                                <p style="width:50%;">{{info.transBody.akb068}}</p>
43
+                                <p style="width:50%;">{{info.transBody.akb068?info.transBody.akb068:0}}</p>
44 44
                             </div>
45 45
                             <div class="chargeUl" style="border-top:1px solid #000;">
46 46
                                 <p style="width:50%;">个人账号</p>
47
-                                <p style="width:50%;">{{info.transBody.akc266}}</p>
47
+                                <p style="width:50%;">{{info.transBody.akc266?info.transBody.akc266:0}}</p>
48 48
                             </div>
49 49
                             <div class="chargeUl" style="border-top:1px solid #000;border-bottom:1px solid #000;">
50 50
                                 <p style="width:50%;">现金支付</p>
51
-                                <p style="width:50%;">{{info.transBody.akb067}}</p>
51
+                                <p style="width:50%;">{{info.transBody.akb067?info.transBody.akb067:0}}</p>
52 52
                             </div>
53 53
                         </div>
54
-                        <div style="width:80%;display:flex;height:300px;">
54
+                        <div style="width:80%;display:flex;max-height:500px;">
55 55
 
56 56
                             <div style="border-left:1px solid #000;border-right:1px solid #000;width:40%;text-align:center;">
57
-                                <p v-for="(item,i) in info.name_arr" :key="i" class="chargeP">
57
+                                <p v-for="(item,i) in info.name_arr.slice(index * 13,(index * 13) + pageArr[index])" :key="i" class="chargeP">
58 58
                                     {{item}}</p>
59 59
                             </div>
60 60
                             <div style="border-right:1px solid #000;width:15%;text-align:center;">
61
-                                <p v-for="(item,y) in info.spec_arr" :key="y" class="chargeP">
61
+                                <p v-for="(item,y) in info.spec_arr.slice(index * 13,(index * 13) + pageArr[index])" :key="y" class="chargeP">
62 62
                                     {{item}}</p>
63 63
                             </div>
64 64
                             <div style="border-right:1px solid #000;width:15%;text-align:center;">
65
-                                <p v-for="(item,z) in info.count_arr" :key="z" class="chargeP">
65
+                                <p v-for="(item,z) in info.count_arr.slice(index * 13,(index * 13) + pageArr[index])" :key="z" class="chargeP">
66 66
                                     {{item}}次</p>
67 67
                             </div>
68 68
                             <div style="border-right:1px solid #000;width:15%;text-align:center;">
69
-                                <p v-for="(item,f) in info.price_arr" :key="f" class="chargeP">{{item}}</p>
69
+                                <p v-for="(item,f) in info.price_arr.slice(index * 13,(index * 13) + pageArr[index])" :key="f" class="chargeP">{{item}}</p>
70 70
                             </div>
71 71
                             <div style="width:15%;text-align:center;">
72
-                                <p v-for="(item,d) in info.total_arr" :key="d" class="chargeP">{{item}}</p>
72
+                                <p v-for="(item,d) in info.total_arr.slice(index * 13,(index * 13) + pageArr[index])" :key="d" class="chargeP">{{item}}</p>
73 73
                             </div>
74 74
                         </div>
75 75
                     </div>
76 76
 
77 77
                 </div>
78 78
                 <div class="moneyBox">
79
-                    <p>实收金:{{info.transBody.akc264}}</p>
80
-                    <p>记账前金额:{{0.00}}</p>
81
-                    <p>扣款金额:{{0.00}}</p>
82
-                    <p>记账后金额:{{0.00}}</p>
83
-                    <p>找赎金:{{0.00}}</p>
79
+                    <p>实收金:{{info.transBody.akc264}}</p>
80
+                    <p>记账前金额:{{0.00}}</p>
81
+                    <p>扣款金额:{{0.00}}</p>
82
+                    <p>记账后金额:{{0.00}}</p>
83
+                    <p>找赎金:{{0.00}}</p>
84 84
                 </div>
85 85
                 <div class="actionBar">
86 86
                     <div>收费员:{{info.doctor_name}}</div>
@@ -114,7 +114,10 @@
114 114
         spec_arr: [],
115 115
         count_arr: [],
116 116
         price_arr: [],
117
-        total_arr: []
117
+        total_arr: [],
118
+
119
+        page:1,
120
+        pageArr:[],
118 121
 
119 122
       }
120 123
     },
@@ -230,11 +233,34 @@
230 233
         }
231 234
 
232 235
       },
236
+      getPage(){
237
+        if(this.info.name_arr.length <= 13){
238
+            this.page = 1
239
+            this.pageArr.push(this.info.name_arr.length)
240
+        }else if(this.info.name_arr.length > 13){
241
+            this.page = parseInt(this.info.name_arr.length / 13)
242
+            let num = this.info.name_arr.length % 13
243
+            for (var i=0;i<this.page;i++){
244
+                this.pageArr.push(13)
245
+            }
246
+            if(num != 0){
247
+                this.pageArr.push(num)
248
+            }
249
+        }
250
+      }
233 251
     },
234 252
     created() {
235 253
 
236 254
 
237 255
     },
256
+    watch:{
257
+      info: {
258
+        handler(newVal) {
259
+            this.getPage()
260
+        },
261
+        deep: true
262
+      }
263
+    }
238 264
 
239 265
   }
240 266
 </script>

+ 12 - 29
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Voir le fichier

@@ -64,7 +64,7 @@
64 64
 
65 65
                         </el-button>
66 66
 
67
-                        <el-button v-loading="loadingtwo"
67
+                        <el-button
68 68
                                    v-if="(this.hisPatientInfo.id > 0 && this.order.id == 0) || this.order.order_status == 1"
69 69
                                    size="small"
70 70
                                    @click="sz_open(3)"
@@ -84,6 +84,11 @@
84 84
                             退费
85 85
                         </el-button>
86 86
                         <el-button size="small" @click="sz_open(10)" type="primary">打印</el-button>
87
+
88
+                        <!--<el-button-->
89
+                                <!--size="small" @click="sz_open(7)" type="primary"-->
90
+                        <!--&gt;撤销明细-->
91
+                        <!--</el-button>-->
87 92
                     </div>
88 93
 
89 94
 
@@ -97,11 +102,7 @@
97 102
                     <!--&gt;打印-->
98 103
                     <!--</el-button>-->
99 104
 
100
-                    <!--<el-button-->
101
-                    <!--v-if="$store.getters.xt_user.org_id == 4  ||  this.$store.getters.xt_user.org_id == 3877"-->
102
-                    <!--size="small" @click="sz_open(7)" type="primary"-->
103
-                    <!--&gt;深圳撤销明细-->
104
-                    <!--</el-button>-->
105
+
105 106
 
106 107
 
107 108
                     <!-- <el-button size="small" @click="open(1)" type="primary" style="margin-left:10px;">打印处置单</el-button>
@@ -612,9 +613,7 @@
612 613
 
613 614
         }
614 615
 
615
-        this.loadingtwo = true
616 616
         if (this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9504) {
617
-
618 617
           var that = this
619 618
           axios.get('http://127.0.0.1:9532/sz/api/settle/get', {
620 619
             params: form
@@ -622,7 +621,6 @@
622 621
             .then(function(response) {
623 622
               if (response.data.state == 0) {
624 623
                 that.$message.error(response.data.msg)
625
-                that.loadingtwo = false
626 624
                 that.$refs.charge.hide()
627 625
                 return false
628 626
               } else {
@@ -633,18 +631,14 @@
633 631
                 } else {
634 632
                   that.changeRadio(2)
635 633
                   that.radio = 2
636
-
637 634
                   that.$refs.charge.hide()
638
-                  that.loadingtwo = false
639 635
                   that.state = '已收费'
640 636
                   that.$message({ message: '收费成功', type: 'success' })
641 637
                   that.loadingtwo = false
642 638
                   that.cal_one = this.cal_one - 1
643 639
                   that.cal_two = this.cal_two + 1
644 640
                   that.patientTableData.splice(this.current_index, 1)
645
-
646 641
                 }
647
-
648 642
               }
649 643
             })
650 644
             .catch(function(error) {
@@ -2592,7 +2586,6 @@
2592 2586
                 record_time: this.record_date,
2593 2587
                 admin_user_id: this.$store.getters.xt_user.user.id,
2594 2588
                 patient_id: this.patientInfo.id
2595
-
2596 2589
               }
2597 2590
             })
2598 2591
               .then(function(response) {
@@ -2601,18 +2594,9 @@
2601 2594
                   return false
2602 2595
                 } else {
2603 2596
                   if (response.data.data.failed_code == -10) {
2604
-
2605 2597
                     that.$message.error(response.data.data.msg)
2606
-
2607 2598
                   } else {
2608
-                    if (response.data.data.failed_code == -10) {
2609
-                      that.$message.error(response.data.data.msg)
2610
-
2611
-                    } else {
2612
-                      that.$message({ message: '查询成功', type: 'success' })
2613
-
2614
-                    }
2615
-
2599
+                    that.$message({ message: '查询成功', type: 'success' })
2616 2600
                   }
2617 2601
                 }
2618 2602
               })
@@ -2640,13 +2624,9 @@
2640 2624
                     that.$message.error(response.data.data.msg)
2641 2625
 
2642 2626
                   } else {
2643
-                    if (response.data.data.failed_code == -10) {
2644
-                      that.$message.error(response.data.data.msg)
2645 2627
 
2646
-                    } else {
2647 2628
                       that.$message({ message: '明细撤销成功', type: 'success' })
2648 2629
 
2649
-                    }
2650 2630
 
2651 2631
                   }
2652 2632
                 }
@@ -2654,13 +2634,16 @@
2654 2634
               .catch(function(error) {
2655 2635
               })
2656 2636
 
2637
+            break
2657 2638
           case 10:
2658 2639
             this.newStatementVisible = true
2659 2640
             let obj = {
2660 2641
               record_time: this.record_date,
2661 2642
               patient_id: this.patient_id,
2662 2643
               prescription_id: this.prescription_id,
2663
-              order_id: this.order.id
2644
+              order_id: this.order.id,
2645
+              admin_user_id: this.$store.getters.xt_user.user.id,
2646
+
2664 2647
             }
2665 2648
             this.newOrderObj = obj
2666 2649
             // this.$refs.print.getInfo(this.order.id)

+ 16 - 8
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Voir le fichier

@@ -1699,7 +1699,7 @@
1699 1699
 
1700 1700
       },
1701 1701
       setData(data, info, admin_info, doctors, department, hisPatientInfo, month_data) {
1702
-     
1702
+
1703 1703
         this.curMonthPrescriptions = {}
1704 1704
         this.curPrescriptions = {}
1705 1705
 
@@ -1867,6 +1867,14 @@
1867 1867
             return
1868 1868
           }
1869 1869
 
1870
+          if (this.state1  <= 0) {
1871
+            this.$message.error('疾病类型不能为空')
1872
+            return
1873
+          }
1874
+
1875
+
1876
+
1877
+
1870 1878
           if (index == 1) {
1871 1879
             let params = {
1872 1880
               patient_id: this.patientInfo.id,
@@ -2229,10 +2237,10 @@
2229 2237
       selectDrugs(selection, row) {
2230 2238
         this.curDrugs = selection
2231 2239
       },
2232
-    
2240
+
2233 2241
       comfirm() {
2234 2242
         console.log("222222222222",this.curPrescriptions)
2235
-   
2243
+
2236 2244
         if (this.dayorMonth == 'month') {
2237 2245
           this.$message.error('月结状态下,无法添加药品或者项目')
2238 2246
           return
@@ -2368,7 +2376,7 @@
2368 2376
             }
2369 2377
 
2370 2378
            if(this.activeName == 2){
2371
-             
2379
+
2372 2380
               for(let i = 0; i<temp2.length;i++){
2373 2381
                for(let j=0;j<this.hisList.length;j++){
2374 2382
                    if(temp2[i].id == this.hisList[j].project_id){
@@ -2377,7 +2385,7 @@
2377 2385
                }
2378 2386
               }
2379 2387
             }
2380
-          
2388
+
2381 2389
 
2382 2390
             if (temp2.length > 0) {
2383 2391
               console.log("temp2222222222",temp2)
@@ -2448,7 +2456,7 @@
2448 2456
         getAllProjectTeam().then(response => {
2449 2457
           if (response.data.state == 1) {
2450 2458
             var team = response.data.data.team
2451
-            console.log("team2222",team) 
2459
+            console.log("team2222",team)
2452 2460
             this.tabPrjectTeam = team
2453 2461
           }
2454 2462
         })
@@ -2522,12 +2530,12 @@
2522 2530
       this.getlist()
2523 2531
       //获取所以项目组套
2524 2532
       this.getAllProjectTeam()
2525
-      
2533
+
2526 2534
       this.getAllProjectList()
2527 2535
       this.$nextTick(() => {
2528 2536
         this.multipleTableHeight = parseInt(this.$refs.rightTable.offsetHeight)
2529 2537
       })
2530
-      
2538
+
2531 2539
     },
2532 2540
     watch: {
2533 2541
 

+ 3 - 2
src/xt_pages/outpatientRegistration/index.vue Voir le fichier

@@ -979,8 +979,9 @@
979 979
                     that.getPatientList()
980 980
                     that.$message({ message: '挂号成功', type: 'success' })
981 981
                     that.loadingone = false
982
-                    var his_info = response.data.data.his_info
983
-                    that.hisPatientInfo = his_info
982
+
983
+                    // var his_info = response.data.data.his_info
984
+                    // that.hisPatientInfo = his_info
984 985
                   }
985 986
                 })
986 987
                 .catch(function(error) {

+ 1 - 1
src/xt_pages/outpatientRegistration/registrationHistory.vue Voir le fichier

@@ -719,7 +719,7 @@ export default {
719 719
                   that.$message.error(response.data.data.msg)
720 720
 
721 721
                 } else {
722
-                  this.getlist()
722
+                  that.getlist()
723 723
                   that.$message({ message: '退号成功', type: 'success' })
724 724
                 }
725 725
               }