Browse Source

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

see999 3 years ago
parent
commit
536e213984

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

@@ -260,7 +260,10 @@
260 260
           {value: 4, label: '农保'},
261 261
           {value: 5, label: '会员'},
262 262
           {value: 6, label: '职工'},
263
-          {value: 7, label: '合同'}
263
+          {value: 7, label: '合同'},
264
+          {value: 8, label: '医保自费'},
265
+
266
+
264 267
         ],
265 268
         sex: [{
266 269
           value: 1,

+ 3 - 1
src/xt_pages/hospitalStation/components/registerDialog9504.vue View File

@@ -241,7 +241,9 @@
241 241
           {value: 4, label: '农保'},
242 242
           {value: 5, label: '会员'},
243 243
           {value: 6, label: '职工'},
244
-          {value: 7, label: '合同'}
244
+          {value: 7, label: '合同'},
245
+          {value: 8, label: '医保自费'},
246
+
245 247
         ],
246 248
         sex: [{
247 249
           value: 1,

+ 3 - 1
src/xt_pages/outpatientCharges/components/registerDialog.vue View File

@@ -257,7 +257,9 @@
257 257
           { value: 4, label: '农保' },
258 258
           { value: 5, label: '会员' },
259 259
           { value: 6, label: '职工' },
260
-          { value: 7, label: '合同' }
260
+          { value: 7, label: '合同' },
261
+          {value: 8, label: '医保自费'},
262
+
261 263
         ],
262 264
         sex: [{
263 265
           value: 1,

+ 3 - 1
src/xt_pages/outpatientCharges/components/registerDialog9504.vue View File

@@ -242,7 +242,9 @@
242 242
           {value: 4, label: '农保'},
243 243
           {value: 5, label: '会员'},
244 244
           {value: 6, label: '职工'},
245
-          {value: 7, label: '合同'}
245
+          {value: 7, label: '合同'},
246
+          {value: 8, label: '医保自费'},
247
+
246 248
         ],
247 249
         sex: [{
248 250
           value: 1,

+ 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>

+ 396 - 378
src/xt_pages/outpatientDoctorStation/treatTemplate/printOne.vue View File

@@ -1,343 +1,347 @@
1 1
 <template>
2
-   <div id='prescriptionPrint'>
3
-    <div id='prescription-print' class="prescription-print" v-for="(item,index) in advicePrint" :key="index">
4
-
5
-        <div style="display:flex;justify-content: space-between;font-weight:bold;align-items:center;">
6
-            <div style="width:200px;display:flex;justify-content: space-between;font-weight:bold;">
7
-                <span>费别</span>
8
-                <span>自费</span>
9
-                <span>公费</span>
10
-                <span>保险</span>
11
-                <span>其他</span>
2
+    <div id='prescriptionPrint'>
3
+        <div id='prescription-print' class="prescription-print" v-for="(item,index) in advicePrint" :key="index">
4
+
5
+            <div style="display:flex;justify-content: space-between;font-weight:bold;align-items:center;">
6
+                <div style="width:200px;display:flex;justify-content: space-between;font-weight:bold;">
7
+                    <span>费别</span>
8
+                    <span>自费</span>
9
+                    <span>公费</span>
10
+                    <span>保险</span>
11
+                    <span>其他</span>
12
+                </div>
13
+                <div>就诊日期:{{getTime(item.ctime,'{y}-{m}-{d}')}}</div>
12 14
             </div>
13
-            <div>就诊日期:{{getTime(item.ctime,"{y}-{m}-{d}")}}</div>
14
-        </div>
15 15
 
16
-        <div class="printTitle">{{orgname}}</div>
17
-        <div class="printTitle">处方、治疗单</div>
16
+            <div class="printTitle">{{orgname}}</div>
17
+            <div class="printTitle">处方、治疗单</div>
18 18
 
19
-        <div class="infoTitle">
20
-            <div>门诊编号:</div>
21
-            <div>电脑号:</div>
22
-        </div>
19
+            <div class="infoTitle">
20
+                <div>门诊编号:</div>
21
+                <div>电脑号:</div>
22
+            </div>
23 23
 
24
-        <div class="infoMain">
25
-            <div style="margin-bottom: 10px;width:25%">姓名:{{item.patient.name}}</div>
26
-            <div style="margin-bottom: 10px;width:25%">性别:
27
-                <span v-if="item.patient.gender == 1">男</span>
28
-                <span v-if="item.patient.gender == 2">女</span>
24
+            <div class="infoMain">
25
+                <div style="margin-bottom: 10px;width:25%">姓名:{{item.patient.name}}</div>
26
+                <div style="margin-bottom: 10px;width:25%">性别:
27
+                    <span v-if="item.patient.gender == 1">男</span>
28
+                    <span v-if="item.patient.gender == 2">女</span>
29
+                </div>
30
+                <div style="margin-bottom: 10px;width:25%">年龄:
31
+                    <span>{{item.patient.age}}</span>
32
+                </div>
33
+                <div style="margin-bottom: 10px;width:25%">参保类型:{{hisPatient.social_type?hisPatient.social_type:''}}
34
+                </div>
35
+                <div style="margin-bottom: 10px;width:50%;">联系电话:{{item.patient.phone}}</div>
36
+                <div style="width:50%;">地址:{{item.patient.unit_address}}</div>
37
+                <div style="width:100%;">诊断:{{getDiagnosis(item.info.diagnosis)}}</div>
29 38
             </div>
30
-            <div style="margin-bottom: 10px;width:25%">年龄:
31
-                <span>{{item.patient.age}}</span>
39
+
40
+            <div class="prescriptionBox">
41
+                <table style="width:100%;text-align:center;line-height:25px;">
42
+                    <tr>
43
+                        <td>序号</td>
44
+                        <td>项目名称</td>
45
+                        <td>数量</td>
46
+                        <td>单位</td>
47
+                        <td>单价</td>
48
+                        <td>部位</td>
49
+                        <td>备注</td>
50
+                        <td>天数</td>
51
+                    </tr>
52
+                    <tr v-for="(it,index) in item.project" :key="index">
53
+                        <td>{{index+1}}</td>
54
+                        <td>{{it.type == 2 ?getProjectName(it.project_id):it.good_info.good_name}}</td>
55
+                        <td>{{it.single_dose}}</td>
56
+                        <td>{{getUnit(it.unit)}}</td>
57
+                        <td>{{it.price}}</td>
58
+                        <td></td>
59
+                        <td>{{it.remark}}</td>
60
+                        <td>{{it.day}}</td>
61
+
62
+                    </tr>
63
+
64
+                    <tr v-for="(it,index) in item.advices" :key="index">
65
+                        <td>{{index+1}}</td>
66
+                        <td>{{it.advice_name?it.advice_name:''}}</td>
67
+                        <td>{{it.single_dose?it.single_dose:''}}</td>
68
+                        <td>{{it.single_dose_unit?it.single_dose_unit:''}}</td>
69
+                        <td>{{it.price}}</td>
70
+                        <td></td>
71
+                        <td>{{it.remark}}</td>
72
+                        <td>{{it.day}}</td>
73
+
74
+                    </tr>
75
+                </table>
76
+            </div>
77
+
78
+            <div class="infoTitle">
79
+                <div>开单医生:{{item.doctor?item.doctor:''}}</div>
80
+                <div>签章:</div>
32 81
             </div>
33
-            <div style="margin-bottom: 10px;width:25%">参保类型:{{hisPatient.social_type?hisPatient.social_type:''}}</div>
34
-            <div style="margin-bottom: 10px;width:50%;">联系电话:{{item.patient.phone}}</div>
35
-            <div style="width:50%;">地址:{{item.patient.unit_address}}</div>
36
-            <div style="width:100%;">诊断:{{getDiagnosis(item.info.diagnosis)}}</div>
37
-        </div>
38 82
 
39
-        <div class="prescriptionBox">
40
-            <table style="width:100%;text-align:center;line-height:25px;">
83
+            <div class="actionBar">
84
+                <div>执行医生:{{item.doctor?item.doctor:''}}</div>
85
+                <div>费用:{{getTotalOne(item.id).toFixed(2)?getTotalOne(item.id).toFixed(2):''}}元</div>
86
+            </div>
87
+
88
+            <table style="width:100%;text-align:center;line-height:25px;border-collapse: collapse;" border="1">
41 89
                 <tr>
42
-                    <td>序号</td>
43
-                    <td>项目名称</td>
44
-                    <td>数量</td>
45
-                    <td>单位</td>
46
-                    <td>单价</td>
47
-                    <td>部位</td>
48
-                    <td>备注</td>
49
-                    <td>天数</td>
90
+                    <td style="width:16%;">治疗时间</td>
91
+                    <td style="width:16%;"></td>
92
+                    <td style="width:16%;"></td>
93
+                    <td style="width:16%;"></td>
94
+                    <td style="width:16%;"></td>
95
+                    <td style="width:16%;"></td>
50 96
                 </tr>
51
-                <tr v-for="(it,index) in item.project" :key="index">
52
-                    <td>{{index+1}}</td>
53
-                    <td>{{it.type == 2 ?getProjectName(it.project_id):it.good_info.good_name}}</td>
54
-                    <td>{{it.single_dose}}</td>
55
-                    <td>{{getUnit(it.unit)}}</td>
56
-                    <td>{{it.price}}</td>
57
-                    <td></td>
58
-                    <td>{{it.remark}}</td>
59
-                    <td>{{it.day}}</td>
60
-
97
+                <tr>
98
+                    <td style="width:16%;">医生签字</td>
99
+                    <td style="width:16%;"></td>
100
+                    <td style="width:16%;"></td>
101
+                    <td style="width:16%;"></td>
102
+                    <td style="width:16%;"></td>
103
+                    <td style="width:16%;"></td>
61 104
                 </tr>
62
-
63
-                <tr v-for="(it,index) in item.advices" :key="index">
64
-                    <td>{{index+1}}</td>
65
-                    <td>{{it.advice_name?it.advice_name:''}}</td>
66
-                    <td>{{it.single_dose?it.single_dose:''}}</td>
67
-                    <td>{{it.single_dose_unit?it.single_dose_unit:''}}</td>
68
-                    <td>{{it.price}}</td>
69
-                    <td></td>
70
-                    <td>{{it.remark}}</td>
71
-                    <td>{{it.day}}</td>
72
-
105
+                <tr>
106
+                    <td style="width:16px;">患者签字</td>
107
+                    <td style="width:16px;"></td>
108
+                    <td style="width:16px;"></td>
109
+                    <td style="width:16px;"></td>
110
+                    <td style="width:16px;"></td>
111
+                    <td style="width:16px;"></td>
73 112
                 </tr>
74 113
             </table>
75 114
         </div>
76 115
 
77
-        <div class="infoTitle">
78
-            <div>开单医生:{{item.doctor?item.doctor:""}}</div>
79
-            <div>签章:</div>
80
-        </div>
81 116
 
82
-        <div class="actionBar">
83
-            <div>执行医生:{{item.doctor?item.doctor:""}}</div>
84
-            <div>费用:{{getTotalOne(item.id).toFixed(2)?getTotalOne(item.id).toFixed(2):''}}元</div>
85
-        </div>
117
+        <!-- <div id='prescriptionPrint'>
86 118
 
87
-        <table style="width:100%;text-align:center;line-height:25px;border-collapse: collapse;" border="1">
88
-            <tr>
89
-                <td style="width:16%;">治疗时间</td>
90
-                <td style="width:16%;"></td>
91
-                <td style="width:16%;"></td>
92
-                <td style="width:16%;"></td>
93
-                <td style="width:16%;"></td>
94
-                <td style="width:16%;"></td>
95
-            </tr>
96
-            <tr>
97
-                <td style="width:16%;">医生签字</td>
98
-                <td style="width:16%;"></td>
99
-                <td style="width:16%;"></td>
100
-                <td style="width:16%;"></td>
101
-                <td style="width:16%;"></td>
102
-                <td style="width:16%;"></td>
103
-            </tr>
104
-            <tr>
105
-                <td style="width:16px;">患者签字</td>
106
-                <td style="width:16px;"></td>
107
-                <td style="width:16px;"></td>
108
-                <td style="width:16px;"></td>
109
-                <td style="width:16px;"></td>
110
-                <td style="width:16px;"></td>
111
-            </tr>
112
-        </table>
113
-     </div>
114
-
115
-
116
-    <!-- <div id='prescriptionPrint'>
117
-
118
-        <div v-for="(item,index) in advicePrint" :key="index">
119
-            <div id='prescription-print' class="prescription-print" style="page-break-after: always;">
120
-                <div style="display:flex;justify-content: space-between;font-weight:bold;">
121
-                    <div style="width:200px;display:flex;justify-content: space-between;font-weight:bold;">
122
-                        <span>费别</span>
123
-                        <span>自费</span>
124
-                        <span>公费</span>
125
-                        <span>保险</span>
126
-                        <span>其他</span>
119
+            <div v-for="(item,index) in advicePrint" :key="index">
120
+                <div id='prescription-print' class="prescription-print" style="page-break-after: always;">
121
+                    <div style="display:flex;justify-content: space-between;font-weight:bold;">
122
+                        <div style="width:200px;display:flex;justify-content: space-between;font-weight:bold;">
123
+                            <span>费别</span>
124
+                            <span>自费</span>
125
+                            <span>公费</span>
126
+                            <span>保险</span>
127
+                            <span>其他</span>
128
+                        </div>
129
+                        <div>就诊日期:{{getTime(item.ctime)}}</div>
127 130
                     </div>
128
-                    <div>就诊日期:{{getTime(item.ctime)}}</div>
129
-                </div>
130 131
 
131
-                <div class="printTitle">血液透析中心</div>
132
+                    <div class="printTitle">血液透析中心</div>
132 133
 
133
-                <div class="printTitle">处方、治疗单</div>
134
+                    <div class="printTitle">处方、治疗单</div>
134 135
 
135
-                <div class="infoTitle">
136
-                    <div>门诊编号:</div>
137
-                    <div>电脑号:</div>
138
-                </div>
139
-
140
-                <div class="infoMain">
141
-                    <div style="margin-bottom: 10px;width:25%">姓名:{{item.patient.name}}</div>
142
-                    <div style="margin-bottom: 10px;width:25%">性别:
143
-                        <span v-if="item.patient.gender == 1">男</span>
144
-                        <span v-if="item.patient.gender == 2">女</span>
136
+                    <div class="infoTitle">
137
+                        <div>门诊编号:</div>
138
+                        <div>电脑号:</div>
145 139
                     </div>
146
-                    <div style="margin-bottom: 10px;width:25%">年龄:
147
-                        <span>{{item.patient.age}}</span>
140
+
141
+                    <div class="infoMain">
142
+                        <div style="margin-bottom: 10px;width:25%">姓名:{{item.patient.name}}</div>
143
+                        <div style="margin-bottom: 10px;width:25%">性别:
144
+                            <span v-if="item.patient.gender == 1">男</span>
145
+                            <span v-if="item.patient.gender == 2">女</span>
146
+                        </div>
147
+                        <div style="margin-bottom: 10px;width:25%">年龄:
148
+                            <span>{{item.patient.age}}</span>
149
+                        </div>
150
+                        <div style="margin-bottom: 10px;width:25%">参保类型:</div>
151
+                        <div style="margin-bottom: 10px;width:50%;">联系电话:{{item.patient.phone}}</div>
152
+                        <div style="width:50%;">地址:{{item.patient.unit_address}}</div>
153
+                        <div style="width:100%;">诊断:{{item.patient.diagnose}}</div>
148 154
                     </div>
149
-                    <div style="margin-bottom: 10px;width:25%">参保类型:</div>
150
-                    <div style="margin-bottom: 10px;width:50%;">联系电话:{{item.patient.phone}}</div>
151
-                    <div style="width:50%;">地址:{{item.patient.unit_address}}</div>
152
-                    <div style="width:100%;">诊断:{{item.patient.diagnose}}</div>
153
-                </div>
154 155
 
155
-                <div class="prescriptionBox">
156
-                    <table style="width:100%;text-align:center;line-height:25px;">
156
+                    <div class="prescriptionBox">
157
+                        <table style="width:100%;text-align:center;line-height:25px;">
158
+                            <tr>
159
+                                <td>序号</td>
160
+                                <td>项目名称</td>
161
+                                <td>数量</td>
162
+                                <td>单位</td>
163
+                                <td>单价</td>
164
+                                <td>部位</td>
165
+                                <td>备注</td>
166
+                                <td>天数</td>
167
+                            </tr>
168
+                            <tr v-for="(it,index) in item.project" :key="index">
169
+                                <td>{{index+1}}</td>
170
+                                <td>{{getProjectName(it.project_id)}}</td>
171
+                                <td>{{it.single_dose}}</td>
172
+                                <td>{{getUnit(it.unit)}}</td>
173
+                                <td>{{it.price}}</td>
174
+                                <td></td>
175
+                                <td>{{it.remark}}</td>
176
+                                <td>{{it.day}}</td>
177
+
178
+                            </tr>
179
+                        </table>
180
+                    </div>
181
+                    <div class="infoTitle">
182
+                        <div>开单医生:{{getDoctor(item.doctor)?getDoctor(item.doctor):""}}</div>
183
+                        <div>签章:</div>
184
+                    </div>
185
+                    <div class="actionBar">
186
+                        <div>执行医生:{{getDoctor(item.doctor)?getDoctor(item.doctor):""}}</div>
187
+                        <div>费用:</div>
188
+                    </div>
189
+                    <table style="width:100%;text-align:center;line-height:25px;border-collapse: collapse;" border="1">
157 190
                         <tr>
158
-                            <td>序号</td>
159
-                            <td>项目名称</td>
160
-                            <td>数量</td>
161
-                            <td>单位</td>
162
-                            <td>单价</td>
163
-                            <td>部位</td>
164
-                            <td>备注</td>
165
-                            <td>天数</td>
191
+                            <td style="width:16%;">治疗时间</td>
192
+                            <td style="width:16%;"></td>
193
+                            <td style="width:16%;"></td>
194
+                            <td style="width:16%;"></td>
195
+                            <td style="width:16%;"></td>
196
+                            <td style="width:16%;"></td>
166 197
                         </tr>
167
-                        <tr v-for="(it,index) in item.project" :key="index">
168
-                            <td>{{index+1}}</td>
169
-                            <td>{{getProjectName(it.project_id)}}</td>
170
-                            <td>{{it.single_dose}}</td>
171
-                            <td>{{getUnit(it.unit)}}</td>
172
-                            <td>{{it.price}}</td>
173
-                            <td></td>
174
-                            <td>{{it.remark}}</td>
175
-                            <td>{{it.day}}</td>
176
-
198
+                        <tr>
199
+                            <td style="width:16%;">医生签字</td>
200
+                            <td style="width:16%;"></td>
201
+                            <td style="width:16%;"></td>
202
+                            <td style="width:16%;"></td>
203
+                            <td style="width:16%;"></td>
204
+                            <td style="width:16%;"></td>
205
+                        </tr>
206
+                        <tr>
207
+                            <td style="width:16px;">患者签字</td>
208
+                            <td style="width:16px;"></td>
209
+                            <td style="width:16px;"></td>
210
+                            <td style="width:16px;"></td>
211
+                            <td style="width:16px;"></td>
212
+                            <td style="width:16px;"></td>
177 213
                         </tr>
178 214
                     </table>
179 215
                 </div>
180
-                <div class="infoTitle">
181
-                    <div>开单医生:{{getDoctor(item.doctor)?getDoctor(item.doctor):""}}</div>
182
-                    <div>签章:</div>
183
-                </div>
184
-                <div class="actionBar">
185
-                    <div>执行医生:{{getDoctor(item.doctor)?getDoctor(item.doctor):""}}</div>
186
-                    <div>费用:</div>
187
-                </div>
188
-                <table style="width:100%;text-align:center;line-height:25px;border-collapse: collapse;" border="1">
189
-                    <tr>
190
-                        <td style="width:16%;">治疗时间</td>
191
-                        <td style="width:16%;"></td>
192
-                        <td style="width:16%;"></td>
193
-                        <td style="width:16%;"></td>
194
-                        <td style="width:16%;"></td>
195
-                        <td style="width:16%;"></td>
196
-                    </tr>
197
-                    <tr>
198
-                        <td style="width:16%;">医生签字</td>
199
-                        <td style="width:16%;"></td>
200
-                        <td style="width:16%;"></td>
201
-                        <td style="width:16%;"></td>
202
-                        <td style="width:16%;"></td>
203
-                        <td style="width:16%;"></td>
204
-                    </tr>
205
-                    <tr>
206
-                        <td style="width:16px;">患者签字</td>
207
-                        <td style="width:16px;"></td>
208
-                        <td style="width:16px;"></td>
209
-                        <td style="width:16px;"></td>
210
-                        <td style="width:16px;"></td>
211
-                        <td style="width:16px;"></td>
212
-                    </tr>
213
-                </table>
214
-            </div>
215 216
 
216
-        </div>
217
+            </div>
217 218
 
218
-    </div> -->
219
-  </div>
219
+        </div> -->
220
+    </div>
220 221
 </template>
221 222
 <script>
222
-import { jsGetAge, uParseTime } from '@/utils/tools'
223
-import {getAllDoctorList,getPrescriptionPrint} from "@/api/project/project"
224
-import {getInitData} from "@/api/his/his"
225
-export default {
226
-    props:{
227
-      patient_id:Number,
228
-      record_date:String,
229
-      prescription_id:Number,
230
-      ids:String
223
+  import { jsGetAge, uParseTime } from '@/utils/tools'
224
+  import { getAllDoctorList, getPrescriptionPrint } from '@/api/project/project'
225
+  import { getInitData } from '@/api/his/his'
226
+
227
+  export default {
228
+    props: {
229
+      patient_id: Number,
230
+      record_date: String,
231
+      prescription_id: Number,
232
+      ids: String
231 233
     },
232
-    data(){
234
+    data() {
233 235
       return {
234
-        doctorList:[],
235
-        advicePrint:{},
236
-        patient:{},
237
-        tableData:[],
238
-        prescriptionInfo:[],
239
-        projectList:[],
240
-        prescriptions:[],
236
+        doctorList: [],
237
+        advicePrint: {},
238
+        patient: {},
239
+        tableData: [],
240
+        prescriptionInfo: [],
241
+        projectList: [],
242
+        prescriptions: [],
241 243
         settlement:
242
-         [
243
-          {value: 1,label: '医保'},
244
-          {value: 2,label: '自费'},
245
-          {value: 3,label:'公费'},
246
-          {value: 4,label:'农保'},
247
-          {value: 5,label:'会员'},
248
-          {value: 6,label:'职工'},
249
-          {value: 7,label:'合同'}
250
-         ],
251
-         hisPatient:{},
252
-         diagnoses:[]
244
+          [
245
+            { value: 1, label: '医保' },
246
+            { value: 2, label: '自费' },
247
+            { value: 3, label: '公费' },
248
+            { value: 4, label: '农保' },
249
+            { value: 5, label: '会员' },
250
+            { value: 6, label: '职工' },
251
+            { value: 7, label: '合同' },
252
+            { value: 8, label: '医保自费' }
253
+
254
+          ],
255
+        hisPatient: {},
256
+        diagnoses: []
253 257
       }
254 258
     },
255
-   methods:{
256
-     printThisPage() {
257
-      var ptime = Math.round(new Date().getTime() / 1000);
258
-      this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
259
-
260
-      const style =
261
-        '@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;margin-top:10px;line-height: 1px;padding:0 10px;}.infoTitle p{width: 200px;}.otherInfo{display: flex;margin-top:10px;padding:0 10px;}.otherInfo span{display:inline-block;}.recordTitle{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;border-bottom: 2px solid #000;}.recordTitle p{width: 200px;}}';
262
-      printJS({
263
-        printable: "prescription-print",
264
-        type: "html",
265
-        style: style,
266
-        scanStyles: false
267
-      });
268
-    },
269
-     getAllDoctorList(){
270
-      getAllDoctorList().then(response=>{
271
-        if(response.data.state == 1){
272
-               var doctor =  response.data.data.doctor
273
-
274
-               this.doctorList = doctor
275
-             }
276
-         })
277
-     },
278
-
279
-      getDoctor(id){
280
-        var name = ""
281
-        for(let i=0;i<this.doctorList.length;i++){
282
-          if(id == this.doctorList[i].admin_user_id){
283
-              name = this.doctorList[i].user_name
259
+    methods: {
260
+      printThisPage() {
261
+        var ptime = Math.round(new Date().getTime() / 1000)
262
+        this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
263
+
264
+        const style =
265
+          '@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;margin-top:10px;line-height: 1px;padding:0 10px;}.infoTitle p{width: 200px;}.otherInfo{display: flex;margin-top:10px;padding:0 10px;}.otherInfo span{display:inline-block;}.recordTitle{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;border-bottom: 2px solid #000;}.recordTitle p{width: 200px;}}'
266
+        printJS({
267
+          printable: 'prescription-print',
268
+          type: 'html',
269
+          style: style,
270
+          scanStyles: false
271
+        })
272
+      },
273
+      getAllDoctorList() {
274
+        getAllDoctorList().then(response => {
275
+          if (response.data.state == 1) {
276
+            var doctor = response.data.data.doctor
277
+
278
+            this.doctorList = doctor
279
+          }
280
+        })
281
+      },
282
+
283
+      getDoctor(id) {
284
+        var name = ''
285
+        for (let i = 0; i < this.doctorList.length; i++) {
286
+          if (id == this.doctorList[i].admin_user_id) {
287
+            name = this.doctorList[i].user_name
284 288
           }
285 289
         }
286 290
         return name
287 291
       },
288 292
       getTime(value, temp) {
289 293
         if (value != undefined) {
290
-            return uParseTime(value, temp)
294
+          return uParseTime(value, temp)
291 295
         }
292 296
         return ''
293
-     },
294
-     getPrescriptionPrint(){
295
-         var params = {
296
-          patient_id:this.patient_id,
297
-          record_date:this.record_date,
298
-          prescription_id:this.prescription_id,
299
-          ids:this.ids,
297
+      },
298
+      getPrescriptionPrint() {
299
+        var params = {
300
+          patient_id: this.patient_id,
301
+          record_date: this.record_date,
302
+          prescription_id: this.prescription_id,
303
+          ids: this.ids
300 304
         }
301
-        console.log("999999",params)
302
-       getPrescriptionPrint(params).then(response=>{
303
-         if(response.data.state == 1){
304
-            var advicePrint =  response.data.data.advicePrint
305
-            console.log("adviceprint",advicePrint)
305
+        console.log('999999', params)
306
+        getPrescriptionPrint(params).then(response => {
307
+          if (response.data.state == 1) {
308
+            var advicePrint = response.data.data.advicePrint
309
+            console.log('adviceprint', advicePrint)
306 310
             this.advicePrint = advicePrint
307 311
             this.prescriptions = advicePrint
308
-            var projectlist =  response.data.data.projectlist
309
-            console.log("所有项目列表",projectlist)
312
+            var projectlist = response.data.data.projectlist
313
+            console.log('所有项目列表', projectlist)
310 314
             this.projectList = projectlist
311 315
             this.hisPatient = response.data.data.hisPatient
312 316
 
313 317
           }
314
-       })
315
-     },
316
-     getProjectName(id){
317
-        var project_name = ""
318
-        for(let i=0;i<this.projectList.length;i++){
319
-           if(id == this.projectList[i].id){
320
-               project_name = this.projectList[i].project_name
321
-           }
318
+        })
319
+      },
320
+      getProjectName(id) {
321
+        var project_name = ''
322
+        for (let i = 0; i < this.projectList.length; i++) {
323
+          if (id == this.projectList[i].id) {
324
+            project_name = this.projectList[i].project_name
325
+          }
322 326
         }
323 327
         return project_name
324
-     },
325
-     getUnit(id){
326
-        var unit=""
327
-       for(let i=0;i<this.projectList.length;i++){
328
-           if(id == this.projectList[i].id){
329
-               unit = this.projectList[i].unit
330
-           }
328
+      },
329
+      getUnit(id) {
330
+        var unit = ''
331
+        for (let i = 0; i < this.projectList.length; i++) {
332
+          if (id == this.projectList[i].id) {
333
+            unit = this.projectList[i].unit
334
+          }
331 335
         }
332 336
         return unit
333
-     },
337
+      },
334 338
 
335
-       getTotalOne(id) {
339
+      getTotalOne(id) {
336 340
 
337 341
         var total = 0
338 342
         var addtotal = 0
339 343
         for (let i = 0; i < this.prescriptions.length; i++) {
340
-          if(id == this.prescriptions[i].id){
344
+          if (id == this.prescriptions[i].id) {
341 345
             if (this.prescriptions[i].project != null) {
342 346
               for (let a = 0; a < this.prescriptions[i].project.length; a++) {
343 347
                 total = total + this.prescriptions[i].project[a].price * this.prescriptions[i].project[a].count
@@ -349,13 +353,13 @@ export default {
349 353
                 addtotal = addtotal + this.prescriptions[i].additionalcharge[a].price * this.prescriptions[i].additionalcharge[a].count
350 354
               }
351 355
             }
352
-              addtotal =  Math.floor(addtotal * 100) / 100
353
-        }
356
+            addtotal = Math.floor(addtotal * 100) / 100
357
+          }
354 358
 
355
-       }
359
+        }
356 360
 
357
-      for (let i = 0; i < this.prescriptions.length; i++) {
358
-          if(id == this.prescriptions[i].id){
361
+        for (let i = 0; i < this.prescriptions.length; i++) {
362
+          if (id == this.prescriptions[i].id) {
359 363
             if (this.prescriptions[i].advices != null) {
360 364
               for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
361 365
                 total = total + this.prescriptions[i].advices[a].price * this.prescriptions[i].advices[a].prescribing_number
@@ -367,118 +371,132 @@ export default {
367 371
                 addtotal = addtotal + this.prescriptions[i].additionalcharge[a].price * this.prescriptions[i].additionalcharge[a].count
368 372
               }
369 373
             }
370
-              addtotal =  Math.floor(addtotal * 100) / 100
374
+            addtotal = Math.floor(addtotal * 100) / 100
375
+          }
371 376
         }
372
-       }
373 377
 
374 378
         return total + addtotal
375 379
       },
376
-     getInitData(){
377
-       getInitData().then(response=>{
378
-          if(response.data.state == 1){
380
+      getInitData() {
381
+        getInitData().then(response => {
382
+          if (response.data.state == 1) {
379 383
             this.diagnoses = response.data.data.diagnose
380
-            console.log("争端",this.diagnoses)
384
+            console.log('争端', this.diagnoses)
381 385
           }
382
-       })
383
-     },
384
-     getDiagnosis(id){
385
-        var name = ""
386
-        for(let i=0;i<this.diagnoses.length;i++){
387
-          if(id == this.diagnoses[i].id){
388
-             name = this.diagnoses[i].class_name
386
+        })
387
+      },
388
+      getDiagnosis(id) {
389
+        var name = ''
390
+        for (let i = 0; i < this.diagnoses.length; i++) {
391
+          if (id == this.diagnoses[i].id) {
392
+            name = this.diagnoses[i].class_name
389 393
           }
390 394
         }
391 395
         return name
392
-     }
393
-   },
394
-   created(){
396
+      }
397
+    },
398
+    created() {
395 399
       this.getInitData()
396 400
       this.getAllDoctorList()
397 401
       this.getPrescriptionPrint()
398 402
       var xtuser = this.$store.getters.xt_user
399 403
       this.orgname = xtuser.org.org_name
400 404
 
401
-   },
402
-   watch:{
403
-     patient_id:function(val){
404
-       console.log("101000010101010",this.patient_id,this.record_date,this.prescription_id)
405
-    //    this.getPrescriptionPrint()
406
-     },
407
-     ids:function(val){
408
-         this.ids = val
409
-         console.log('this.idsids',this.ids)
410
-         this.getPrescriptionPrint()
411
-     }
412
-   }
413
-}
405
+    },
406
+    watch: {
407
+      patient_id: function(val) {
408
+        console.log('101000010101010', this.patient_id, this.record_date, this.prescription_id)
409
+        //    this.getPrescriptionPrint()
410
+      },
411
+      ids: function(val) {
412
+        this.ids = val
413
+        console.log('this.idsids', this.ids)
414
+        this.getPrescriptionPrint()
415
+      }
416
+    }
417
+  }
414 418
 </script>
415 419
 
416 420
 
417 421
 <style lang="scss" scoped>
418
-.prescription-print{
419
-    -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
420
-    -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
421
-    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
422
-    margin-bottom: 20px;
423
-    padding:20px 10px;
424
-}
425
-.prescription-print{
426
-    font-size: 14px;
427
-}
428
-.printTitle{
429
-    font-size: 18px;
430
-    text-align: center;
431
-    font-weight: bold;
432
-    margin-top: 10px;
433
-}
434
-.infoTitle{
435
-    display: flex;
436
-    border-bottom: 2px solid #000;
437
-    margin-top:10px;
438
-    line-height: 24px;
439
-    padding:0 10px;
440
-}
441
-.infoTitle div{
442
-    width: 300px;
443
-}
444
-.infoMain{
445
-    display: flex;
446
-    flex-wrap: wrap;
447
-    border-bottom: 2px solid #000;
448
-    padding:0 10px;
449
-}
450
-.infoMain div{
451
-    width: 50%;
452
-    line-height: 24px;
453
-}
454
-.prescriptionBox{
455
-    padding:0 10px;
456
-    min-height:600px;
457
-}
458
-.Rp{
459
-    font-size: 22px;
460
-    font-weight: bold;
461
-}
462
-.drugsBox{
463
-    padding-left: 40px;
464
-    margin-bottom: 10px;
465
-}
466
-.drugsBox p{
467
-    line-height: 30px;
468
-}
469
-.drugsOne{
470
-    line-height: 24px;
471
-}
472
-.drugsOne span{
473
-    margin-right: 20px;
474
-}
475
-.actionBar{
476
-    display: flex;
477
-    justify-content: space-between;
478
-    line-height: 24px;
479
-    padding:0 10px;
480
-}
481
-.actionBar div{
482
-    width:150px;
483
-}
422
+    .prescription-print {
423
+        -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
424
+        -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
425
+        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
426
+        margin-bottom: 20px;
427
+        padding: 20px 10px;
428
+    }
429
+
430
+    .prescription-print {
431
+        font-size: 14px;
432
+    }
433
+
434
+    .printTitle {
435
+        font-size: 18px;
436
+        text-align: center;
437
+        font-weight: bold;
438
+        margin-top: 10px;
439
+    }
440
+
441
+    .infoTitle {
442
+        display: flex;
443
+        border-bottom: 2px solid #000;
444
+        margin-top: 10px;
445
+        line-height: 24px;
446
+        padding: 0 10px;
447
+    }
448
+
449
+    .infoTitle div {
450
+        width: 300px;
451
+    }
452
+
453
+    .infoMain {
454
+        display: flex;
455
+        flex-wrap: wrap;
456
+        border-bottom: 2px solid #000;
457
+        padding: 0 10px;
458
+    }
459
+
460
+    .infoMain div {
461
+        width: 50%;
462
+        line-height: 24px;
463
+    }
464
+
465
+    .prescriptionBox {
466
+        padding: 0 10px;
467
+        min-height: 600px;
468
+    }
469
+
470
+    .Rp {
471
+        font-size: 22px;
472
+        font-weight: bold;
473
+    }
474
+
475
+    .drugsBox {
476
+        padding-left: 40px;
477
+        margin-bottom: 10px;
478
+    }
479
+
480
+    .drugsBox p {
481
+        line-height: 30px;
482
+    }
483
+
484
+    .drugsOne {
485
+        line-height: 24px;
486
+    }
487
+
488
+    .drugsOne span {
489
+        margin-right: 20px;
490
+    }
491
+
492
+    .actionBar {
493
+        display: flex;
494
+        justify-content: space-between;
495
+        line-height: 24px;
496
+        padding: 0 10px;
497
+    }
498
+
499
+    .actionBar div {
500
+        width: 150px;
501
+    }
484 502
 </style>

+ 6 - 3
src/xt_pages/outpatientDoctorStation/treatTemplate/printTwo.vue View File

@@ -229,7 +229,10 @@ export default {
229 229
           {value: 4,label:'农保'},
230 230
           {value: 5,label:'会员'},
231 231
           {value: 6,label:'职工'},
232
-          {value: 7,label:'合同'}
232
+          {value: 7,label:'合同'},
233
+           {value: 8,label:'医保自费'},
234
+
235
+
233 236
          ],
234 237
          hisPatient:{},
235 238
          diagnoses:[],
@@ -492,7 +495,7 @@ export default {
492 495
 <style lang="scss" scoped>
493 496
 .prescription-print{
494 497
   -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
495
-    -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset; 
498
+    -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
496 499
     box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
497 500
     margin-bottom: 20px;
498 501
     padding:20px 10px;
@@ -550,7 +553,7 @@ export default {
550 553
 }
551 554
 .actionBar{
552 555
     display: flex;
553
-    justify-content: space-between; 
556
+    justify-content: space-between;
554 557
     line-height: 24px;
555 558
     padding:0 10px;
556 559
 }

+ 9 - 2
src/xt_pages/outpatientRegistration/index.vue View File

@@ -508,7 +508,9 @@
508 508
             { value: 4, label: '农保' },
509 509
             { value: 5, label: '会员' },
510 510
             { value: 6, label: '职工' },
511
-            { value: 7, label: '合同' }
511
+            { value: 7, label: '合同' },
512
+            { value: 8, label: '医保自费' }
513
+
512 514
           ],
513 515
         sex: [{
514 516
           value: 1,
@@ -1216,6 +1218,9 @@
1216 1218
                         that.form.phone = ''
1217 1219
                         that.form.social_type = ''
1218 1220
 
1221
+                        that.form.register = 4
1222
+                        that.form.registrationFee = 0
1223
+                        that.form.medicalExpenses = 0
1219 1224
                         that.form.p_type = 14
1220 1225
                         that.form.sick_type = that.sick[0].id
1221 1226
                         that.form.diagnosis = that.diagnoses[0].id
@@ -1254,7 +1259,9 @@
1254 1259
                     this.form.phone = ''
1255 1260
                     this.form.social_type = ''
1256 1261
                     this.loadingone = false
1257
-
1262
+                    this.form.register = 4
1263
+                    this.form.registrationFee = 0
1264
+                    this.form.medicalExpenses = 0
1258 1265
                     this.form.p_type = 14
1259 1266
                     this.form.sick_type = this.sick[0].id
1260 1267
                     this.form.diagnosis = this.diagnoses[0].id

+ 3 - 1
src/xt_pages/outpatientRegistration/registrationHistory.vue View File

@@ -545,7 +545,9 @@
545 545
             { value: 4, label: '农保' },
546 546
             { value: 5, label: '会员' },
547 547
             { value: 6, label: '职工' },
548
-            { value: 7, label: '合同' }
548
+            { value: 7, label: '合同' },
549
+            {value: 8, label: '医保自费'},
550
+
549 551
           ],
550 552
         // medicalCare: [{
551 553
         //   value: 1,