Ver código fonte

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

csx 4 anos atrás
pai
commit
d613c30640

+ 66 - 34
src/xt_pages/outpatientCharges/allListTemplate/printOne.vue Ver arquivo

1
 <template>
1
 <template>
2
     <div id="allList-print" class="allList-print">
2
     <div id="allList-print" class="allList-print">
3
-        <div class="allListTitle">翁源沅胜透析中心费用汇总</div>
4
-        <div class="allListInfo">
5
-          <div>患者姓名:{{patient.name}}</div>
6
-          <div>透析号:{{patient.dialysis_no}}</div>
7
-          <div>性别:{{patient.gender == 1 ? '男': '女'}}</div>
8
-          <div>年龄:{{patient.age}}  岁</div>
9
-          <div>日期:{{getTimes(order.settle_start_time)}} 至 {{getTimes(order.settle_end_time)}}</div>
3
+        <div v-for='(i,index) in pageArr.length' :key="index">
4
+            <div class="allListTitle">翁源沅胜透析中心费用汇总</div>
5
+            <div class="allListInfo">
6
+            <div>患者姓名:{{patient.name}}</div>
7
+            <div>透析号:{{patient.dialysis_no}}</div>
8
+            <div>性别:{{patient.gender == 1 ? '男': '女'}}</div>
9
+            <div>年龄:{{patient.age}}  岁</div>
10
+            <div>日期:{{getTimes(order.settle_start_time)}} 至 {{getTimes(order.settle_end_time)}}</div>
10
 
11
 
11
-        </div>
12
-        <table class="allListTable" border="1">
13
-            <tr>
14
-                <td style="width:10%">类别</td>
15
-                <td style="width:50%">项目名称</td>
16
-                <td style="width:10%">规格</td>
17
-                <td style="width:10%">单价(元)</td>
18
-                <td style="width:10%">数量</td>
19
-                <td style="width:10%">金额(元)</td>
20
-            </tr>
21
-            <template v-for='item in list'>
22
-                <tr v-if="item.is_total == 2">
23
-                    <td style="width:10%">{{item.med_chrgitm_type}}</td>
24
-                    <td style="width:50%">{{item.name}}</td>
25
-                    <td style="width:10%">{{item.spec}}</td>
26
-                    <td style="width:10%">{{(item.price).toFixed(2)}}</td>
27
-                    <td style="width:10%">{{item.count}}</td>
28
-                    <td style="width:10%">{{(item.price * item.count).toFixed(2)}}</td>
29
-                </tr>
12
+            </div>
13
+            <table class="allListTable" border="1">
30
                 <tr>
14
                 <tr>
31
-                    <td colspan="6" style="text-align:right;" v-if="item.is_total == 1">合计:{{item.total}}元</td>
15
+                    <td style="width:10%">类别</td>
16
+                    <td style="width:50%">项目名称</td>
17
+                    <td style="width:10%">规格</td>
18
+                    <td style="width:10%">单价(元)</td>
19
+                    <td style="width:10%">数量</td>
20
+                    <td style="width:10%">金额(元)</td>
32
                 </tr>
21
                 </tr>
33
-            </template>
34
-        </table>
35
-        <div class="tableBottom">
36
-          <div class="tableBottomOne">制表人:{{admin.user_name}}</div>
37
-          <div class="tableBottomOne">制表日期:{{ getNowTime()}}</div>
38
-          <div class="tableBottomOne">总费用:{{order.medfee_sumamt}}元</div>
22
+                <template v-for='item in list.slice(index * 13,(index * 14) + pageArr[index])'>
23
+                    <tr v-if="item.is_total == 2">
24
+                        <td style="width:10%">{{item.med_chrgitm_type}}</td>
25
+                        <td style="width:50%">{{item.name}}</td>
26
+                        <td style="width:10%">{{item.spec}}</td>
27
+                        <td style="width:10%">{{(item.price).toFixed(2)}}</td>
28
+                        <td style="width:10%">{{item.count}}</td>
29
+                        <td style="width:10%">{{(item.price * item.count).toFixed(2)}}</td>
30
+                    </tr>
31
+                    <tr>
32
+                        <td colspan="6" style="text-align:right;" v-if="item.is_total == 1">合计:{{item.total}}元</td>
33
+                    </tr>
34
+                </template>
35
+            </table>
36
+            <div class="tableBottom">
37
+            <div class="tableBottomOne">制表人:{{admin.user_name}}</div>
38
+            <div class="tableBottomOne">制表日期:{{ getNowTime()}}</div>
39
+            <div class="tableBottomOne">总费用:{{order.medfee_sumamt}}元</div>
40
+            </div>
39
         </div>
41
         </div>
40
     </div>
42
     </div>
41
 </template>
43
 </template>
66
           return {};
68
           return {};
67
         }
69
         }
68
       },
70
       },
69
-    },methods:{
71
+    },
72
+    data(){
73
+        return{
74
+            page:1,
75
+            pageArr:[],
76
+        }
77
+    },
78
+    methods:{
70
       getNowTime: function () {
79
       getNowTime: function () {
71
         let dateTime
80
         let dateTime
72
         let yy = new Date().getFullYear()
81
         let yy = new Date().getFullYear()
91
         }
100
         }
92
         return total
101
         return total
93
 
102
 
103
+      },
104
+      getPage(){
105
+        if(this.list.length <= 13){
106
+            this.page = 1
107
+            this.pageArr.push(this.list.length)
108
+        }else if(this.list.length > 13){
109
+            this.page = parseInt(this.list.length / 13)
110
+            let num = this.list.length % 13
111
+            for (var i=0;i<this.page;i++){ 
112
+                this.pageArr.push(13)
113
+            }
114
+            if(num != 0){
115
+                this.pageArr.push(num)
116
+            }
117
+        }
94
       }
118
       }
95
 
119
 
120
+    },
121
+    watch:{
122
+        list: {
123
+            handler(newVal) {
124
+                this.getPage()
125
+            },
126
+            deep: true
127
+        }
96
     }
128
     }
97
   }
129
   }
98
 
130
 

+ 2 - 0
src/xt_pages/outpatientCharges/components/registerDialog.vue Ver arquivo

412
         }
412
         }
413
         let params = {
413
         let params = {
414
           'id_card_type': this.form.id_card_type,
414
           'id_card_type': this.form.id_card_type,
415
+          'admin_user_id':this.$store.getters.xt_user.user.id,
416
+
415
         }
417
         }
416
         axios.get('http://127.0.0.1:9532/api/sscard', {
418
         axios.get('http://127.0.0.1:9532/api/sscard', {
417
           params: params
419
           params: params

+ 0 - 3
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Ver arquivo

1897
           project: projects,
1897
           project: projects,
1898
           advices: [],
1898
           advices: [],
1899
           addition: []
1899
           addition: []
1900
-
1901
         }
1900
         }
1902
-        console.log(this.month_prescriptions)
1903
-        console.log(this.curMonthPrescriptions)
1904
 
1901
 
1905
         this.month_prescriptions.push(p1)
1902
         this.month_prescriptions.push(p1)
1906
         this.month_prescriptions.push(p2)
1903
         this.month_prescriptions.push(p2)

+ 2 - 0
src/xt_pages/outpatientCharges/statementPrint.vue Ver arquivo

157
         axios.get('http://127.0.0.1:9532/api/settle/query', {
157
         axios.get('http://127.0.0.1:9532/api/settle/query', {
158
           params: {
158
           params: {
159
             order_id: order_id,
159
             order_id: order_id,
160
+            admin_user_id:this.$store.getters.xt_user.user.id,
161
+
160
           }
162
           }
161
         })
163
         })
162
           .then(function (response) {
164
           .then(function (response) {

+ 15 - 15
src/xt_pages/outpatientRegistration/registrationHistory.vue Ver arquivo

102
                 </el-table-column>
102
                 </el-table-column>
103
                 <el-table-column align="center" prop="name" label="操作" width="180">
103
                 <el-table-column align="center" prop="name" label="操作" width="180">
104
                     <template slot-scope="scope">
104
                     <template slot-scope="scope">
105
-                      <el-button size="mini" type="primary" v-if="scope.row.record_date < startUnix" :disabled="true">已过号</el-button> 
106
-                      <el-button size="mini" type="primary" v-if="scope.row.is_return == 1 && scope.row.record_date >= startUnix" @click ="toReturnPatient(scope.row.id)">退号</el-button> 
105
+                      <el-button size="mini" type="primary" v-if=" scope.row.order.order_status == 0 && scope.row.record_date < startUnix" :disabled="true">已过号</el-button>
106
+                      <el-button size="mini" type="primary" v-if="scope.row.is_return == 1 && scope.row.record_date >= startUnix && scope.row.order.order_status != 2" @click ="toReturnPatient(scope.row.id)">退号</el-button>
107
                       <el-button size="mini" type="primary" v-if="scope.row.record_date == startUnix && scope.row.is_return == 2" :disabled="true">已退号</el-button>
107
                       <el-button size="mini" type="primary" v-if="scope.row.record_date == startUnix && scope.row.is_return == 2" :disabled="true">已退号</el-button>
108
-                      <el-button size="mini" type="primary" v-if="scope.row.record_date == startUnix && scope.row.is_return == 3" :disabled="true">已就诊</el-button>  
108
+                      <el-button size="mini" type="primary" v-if="scope.row.record_date == startUnix && scope.row.is_return == 3" :disabled="true">已就诊</el-button>
109
                       <el-button size="mini" type="primary" @click="open(scope.row)">详情</el-button>
109
                       <el-button size="mini" type="primary" @click="open(scope.row)">详情</el-button>
110
                     </template>
110
                     </template>
111
                 </el-table-column>
111
                 </el-table-column>
187
                     <el-form-item label="科室:"  prop="department" :validate-event="is_Name">
187
                     <el-form-item label="科室:"  prop="department" :validate-event="is_Name">
188
                       <div>{{ getDepartMent(form.departments) }}</div>
188
                       <div>{{ getDepartMent(form.departments) }}</div>
189
                     </el-form-item>
189
                     </el-form-item>
190
-                    <!-- <el-form-item label="是否需要工本费:"> 
190
+                    <!-- <el-form-item label="是否需要工本费:">
191
                       <div v-if="form.is_need_cost_of_production == 1">是</div>
191
                       <div v-if="form.is_need_cost_of_production == 1">是</div>
192
                       <div v-else>否</div>
192
                       <div v-else>否</div>
193
                     </el-form-item> -->
193
                     </el-form-item> -->
194
-                    
194
+
195
                     <el-form-item label="挂号费:">
195
                     <el-form-item label="挂号费:">
196
                       <div>{{ form.register_cost }}</div>
196
                       <div>{{ form.register_cost }}</div>
197
                     </el-form-item>
197
                     </el-form-item>
297
               value: 6,
297
               value: 6,
298
               label: "港澳地区身份证"
298
               label: "港澳地区身份证"
299
             }],
299
             }],
300
-            settlement: 
300
+            settlement:
301
             [
301
             [
302
               {value: 1,label: '医保'},
302
               {value: 1,label: '医保'},
303
               {value: 2,label: '自费'},
303
               {value: 2,label: '自费'},
346
               value: 5,
346
               value: 5,
347
               label: "专家"
347
               label: "专家"
348
             }],
348
             }],
349
-            
349
+
350
             tablePatient:[],
350
             tablePatient:[],
351
             creator:"",
351
             creator:"",
352
             startUnix:'',
352
             startUnix:'',
364
         //         item.create_time = moment(item.create_time * 1000).format('YYYY-MM-DD')
364
         //         item.create_time = moment(item.create_time * 1000).format('YYYY-MM-DD')
365
         //         arr.push(item)
365
         //         arr.push(item)
366
         //     }
366
         //     }
367
-            
367
+
368
         // })
368
         // })
369
         // this.tableData = arr
369
         // this.tableData = arr
370
        //获取所有挂号号的患者
370
        //获取所有挂号号的患者
371
 
371
 
372
        this.creator = this.$store.getters.xt_user.user.user_name
372
        this.creator = this.$store.getters.xt_user.user.user_name
373
        var today = moment().startOf('day').format('YYYY-MM-DD')
373
        var today = moment().startOf('day').format('YYYY-MM-DD')
374
-       var todayUnix = Date.parse(today)/1000 
374
+       var todayUnix = Date.parse(today)/1000
375
        this.startUnix = todayUnix - 28800
375
        this.startUnix = todayUnix - 28800
376
-      
376
+
377
        this.getlist()
377
        this.getlist()
378
        this.getDictionaryDataConfig()
378
        this.getDictionaryDataConfig()
379
     },
379
     },
444
                 this.doctorList = doctor
444
                 this.doctorList = doctor
445
              }
445
              }
446
           })
446
           })
447
- 
447
+
448
         },
448
         },
449
         getDepartMent(id){
449
         getDepartMent(id){
450
           var name = ""
450
           var name = ""
459
           var user_name = ""
459
           var user_name = ""
460
           for(let i=0;i<this.doctorList.length;i++){
460
           for(let i=0;i<this.doctorList.length;i++){
461
             if(id == this.doctorList[i].admin_user_id){
461
             if(id == this.doctorList[i].admin_user_id){
462
-               user_name = this.doctorList[i].user_name 
462
+               user_name = this.doctorList[i].user_name
463
             }
463
             }
464
           }
464
           }
465
           return user_name
465
           return user_name
504
           key = keyword
504
           key = keyword
505
         }
505
         }
506
         let searchArray = []
506
         let searchArray = []
507
-       
507
+
508
         var params = {
508
         var params = {
509
            keyword:key
509
            keyword:key
510
         }
510
         }
519
         return searchArray
519
         return searchArray
520
       },
520
       },
521
 
521
 
522
-      handleSelect(val){   
522
+      handleSelect(val){
523
         this.search_input = val.name
523
         this.search_input = val.name
524
         this.getlist()
524
         this.getlist()
525
       },
525
       },
585
         })
585
         })
586
         return str
586
         return str
587
       },
587
       },
588
-      
588
+
589
       getBanlance(id){
589
       getBanlance(id){
590
         var label = ""
590
         var label = ""
591
          for(let i=0;i<this.settlement.length;i++){
591
          for(let i=0;i<this.settlement.length;i++){