瀏覽代碼

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

28169 1 年之前
父節點
當前提交
d8d6a0707c

+ 42 - 13
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue 查看文件

80
 
80
 
81
         <div class="mainCell fixedCell" style="margin-bottom:10px;">
81
         <div class="mainCell fixedCell" style="margin-bottom:10px;">
82
 
82
 
83
-          <div v-if="org_id == 10454">
83
+          <div v-if="org_id = 10206">
84
             <el-button  size="small"
84
             <el-button  size="small"
85
                         @click="openZb(1)"
85
                         @click="openZb(1)"
86
                         v-if=" this.order.id == 0"
86
                         v-if=" this.order.id == 0"
1192
       total: 0,
1192
       total: 0,
1193
       state: '未收费',
1193
       state: '未收费',
1194
       radio: 1,
1194
       radio: 1,
1195
+      sch_type:0,
1195
       radioStatus: 1,
1196
       radioStatus: 1,
1196
       search_input: '',
1197
       search_input: '',
1197
       start_time: moment().locale('zh-cn').format('YYYY-MM-DD'),
1198
       start_time: moment().locale('zh-cn').format('YYYY-MM-DD'),
1995
     getDayPatientList() {
1996
     getDayPatientList() {
1996
 
1997
 
1997
       let params = {
1998
       let params = {
1998
-        'record_date': this.record_date
1999
+        'record_date': this.record_date,
2000
+        'sch_type':this.sch_type,
2001
+
1999
       }
2002
       }
2000
       getChargeHisPatientList(params).then(response => {
2003
       getChargeHisPatientList(params).then(response => {
2001
         if (response.data.state == 0) {
2004
         if (response.data.state == 0) {
2216
     },
2219
     },
2217
     getMonthPatientList() {
2220
     getMonthPatientList() {
2218
       let params = {
2221
       let params = {
2219
-        'record_date': this.record_date
2222
+        'record_date': this.record_date,
2223
+        'sch_type':this.sch_type,
2224
+
2220
       }
2225
       }
2221
       getChargeHisPatientList(params).then(response => {
2226
       getChargeHisPatientList(params).then(response => {
2222
         if (response.data.state == 0) {
2227
         if (response.data.state == 0) {
2966
           let obj3 = {
2971
           let obj3 = {
2967
             order_id:this.order.id,
2972
             order_id:this.order.id,
2968
             admin_user_id: this.$store.getters.xt_user.user.id,
2973
             admin_user_id: this.$store.getters.xt_user.user.id,
2974
+            record_date: this.record_date,
2969
           }
2975
           }
2970
           axios.get("http://127.0.0.1:9532" + '/nmg/coordinate/settleAccount/cancel', {
2976
           axios.get("http://127.0.0.1:9532" + '/nmg/coordinate/settleAccount/cancel', {
2971
             params: obj3
2977
             params: obj3
3696
     changeRadioAndPatient(id) {
3702
     changeRadioAndPatient(id) {
3697
       this.radio = id
3703
       this.radio = id
3698
       let params = {
3704
       let params = {
3699
-        'record_date': this.record_date
3705
+        'record_date': this.record_date,
3706
+        'sch_type':this.sch_type,
3707
+
3700
       }
3708
       }
3701
 
3709
 
3702
       getChargeHisPatientList(params).then(response => {
3710
       getChargeHisPatientList(params).then(response => {
3945
           }
3953
           }
3946
         }
3954
         }
3947
       })
3955
       })
3956
+    },changeSchtype(){
3957
+      this.getPatientList()
3948
     },
3958
     },
3949
     changeRadio(id) {
3959
     changeRadio(id) {
3950
       if(this.activeName == 'first') {
3960
       if(this.activeName == 'first') {
3951
         let temp_id = id
3961
         let temp_id = id
3952
         this.radio = id
3962
         this.radio = id
3953
         let params = {
3963
         let params = {
3954
-          'record_date': this.record_date
3964
+          'record_date': this.record_date,
3965
+          'sch_type':this.sch_type,
3955
         }
3966
         }
3956
         getChargeHisPatientList(params).then(response => {
3967
         getChargeHisPatientList(params).then(response => {
3957
           if (response.data.state == 0) {
3968
           if (response.data.state == 0) {
4207
     getPatientList() {
4218
     getPatientList() {
4208
       let params = {
4219
       let params = {
4209
         'record_date': this.record_date,
4220
         'record_date': this.record_date,
4210
-        'type': this.radio
4221
+        'type': this.radio,
4222
+        'sch_type':this.sch_type,
4211
       }
4223
       }
4212
       getChargeHisPatientList(params).then(response => {
4224
       getChargeHisPatientList(params).then(response => {
4213
         if (response.data.state == 0) {
4225
         if (response.data.state == 0) {
4231
                   order_status: 0,
4243
                   order_status: 0,
4232
                   order_number: '',
4244
                   order_number: '',
4233
                   his_patient_id: 0,
4245
                   his_patient_id: 0,
4234
-                  prescription: response.data.data.list[i].prescription
4246
+                  prescription: response.data.data.list[i].prescription,
4247
+                  schedle: response.data.data.list[i].schedule
4248
+
4235
                 }
4249
                 }
4236
 
4250
 
4237
                 this.all_table_data.push(obj)
4251
                 this.all_table_data.push(obj)
4249
                       his_patient_id: response.data.data.list[i].his_patient[0].id,
4263
                       his_patient_id: response.data.data.list[i].his_patient[0].id,
4250
                       order_number: response.data.data.list[i].his_patient[0].orders[b].order_number,
4264
                       order_number: response.data.data.list[i].his_patient[0].orders[b].order_number,
4251
                       order_id: response.data.data.list[i].his_patient[0].orders[b].id,
4265
                       order_id: response.data.data.list[i].his_patient[0].orders[b].id,
4252
-                      prescription: response.data.data.list[i].prescription
4266
+                      prescription: response.data.data.list[i].prescription,
4267
+                      schedle: response.data.data.list[i].schedule
4268
+
4253
 
4269
 
4254
                     }
4270
                     }
4255
                     this.all_table_data.push(obj)
4271
                     this.all_table_data.push(obj)
4264
                     his_patient_id: response.data.data.list[i].his_patient[0].id,
4280
                     his_patient_id: response.data.data.list[i].his_patient[0].id,
4265
                     order_number: '',
4281
                     order_number: '',
4266
                     order_id: 0,
4282
                     order_id: 0,
4267
-                    prescription: response.data.data.list[i].prescription
4283
+                    prescription: response.data.data.list[i].prescription,
4284
+                    schedle: response.data.data.list[i].schedule
4285
+
4268
 
4286
 
4269
                   }
4287
                   }
4270
                   this.all_table_data.push(obj)
4288
                   this.all_table_data.push(obj)
4283
                       his_patient_id: response.data.data.list[i].his_patient[b].id,
4301
                       his_patient_id: response.data.data.list[i].his_patient[b].id,
4284
                       order_number: '',
4302
                       order_number: '',
4285
                       order_id: 0,
4303
                       order_id: 0,
4286
-                      prescription: response.data.data.list[i].prescription
4304
+                      prescription: response.data.data.list[i].prescription,
4305
+                      schedle: response.data.data.list[i].schedule
4287
                     }
4306
                     }
4288
                     this.all_table_data.push(obj)
4307
                     this.all_table_data.push(obj)
4289
                   } else {
4308
                   } else {
4297
                         his_patient_id: response.data.data.list[i].his_patient[b].id,
4316
                         his_patient_id: response.data.data.list[i].his_patient[b].id,
4298
                         order_number: response.data.data.list[i].his_patient[b].orders[c].number,
4317
                         order_number: response.data.data.list[i].his_patient[b].orders[c].number,
4299
                         order_id: response.data.data.list[i].his_patient[b].orders[c].id,
4318
                         order_id: response.data.data.list[i].his_patient[b].orders[c].id,
4300
-                        prescription: response.data.data.list[i].prescription
4319
+                        prescription: response.data.data.list[i].prescription,
4320
+                        schedle: response.data.data.list[i].schedule
4321
+
4301
 
4322
 
4302
                       }
4323
                       }
4303
                       this.all_table_data.push(obj)
4324
                       this.all_table_data.push(obj)
4340
             }
4361
             }
4341
 
4362
 
4342
           }
4363
           }
4343
-
4344
           unChargePatient = this.unique_four(unChargePatient)
4364
           unChargePatient = this.unique_four(unChargePatient)
4365
+          // for(let i = 0; i < unChargePatient.length; i++){
4366
+          //
4367
+          // }
4368
+          var cal_list = []
4369
+
4370
+          for(let i = 0;i < unChargePatient.length; i++){
4371
+
4372
+
4373
+          }
4374
+
4345
 
4375
 
4346
           one_count = one_count + unChargePatient.length
4376
           one_count = one_count + unChargePatient.length
4347
 
4377
 
4359
             this.all_table_data = this.unique_four(this.all_table_data)
4389
             this.all_table_data = this.unique_four(this.all_table_data)
4360
           }
4390
           }
4361
 
4391
 
4362
-          console.log(this.all_table_data)
4363
 
4392
 
4364
           switch (this.radio) {
4393
           switch (this.radio) {
4365
             case 1:
4394
             case 1:

+ 151 - 48
src/xt_pages/outpatientCharges/statementTemplate/printtwelve.vue 查看文件

4
       阜阳市医疗保险费用结算单
4
       阜阳市医疗保险费用结算单
5
     </div>
5
     </div>
6
     <div style="display: flex;">
6
     <div style="display: flex;">
7
-      <div style="flex: 1;">结算ID:3412202310179024873</div>
8
-      <div style="flex: 1;">结算日期:2023-10-17 13:22:18</div>
9
-      <div style="flex: 1;">医疗类别:门诊慢病</div>
7
+      <div style="flex: 1;">结算ID:</div>
8
+      <div style="flex: 1;">结算日期:{{info.new_order.setl_time}}</div>
9
+      <div style="flex: 1;" v-if="info.new_order.med_type == 14">医疗类别:门诊慢病</div>
10
+      <div style="flex: 1;" v-if="info.new_order.med_type == 11">医疗类别:普通门诊</div>
11
+      <div style="flex: 1;" v-else>医疗类别:门诊慢病</div>
12
+
13
+
10
     </div>
14
     </div>
11
     <div style="display: flex;margin: 10px 0 5px 0;">
15
     <div style="display: flex;margin: 10px 0 5px 0;">
12
-      <div style="flex: 1;">医院编号:H34122202353</div>
16
+      <div style="flex: 1;">医院编号:</div>
13
       <div style="flex: 2;">医院机构名称: 太和沃迪康血液透析中心</div>
17
       <div style="flex: 2;">医院机构名称: 太和沃迪康血液透析中心</div>
14
     </div>
18
     </div>
15
     <div class='statementTable'>
19
     <div class='statementTable'>
16
       <table border="1" style="border-collapse: collapse;width: 100%;">
20
       <table border="1" style="border-collapse: collapse;width: 100%;">
17
         <tr>
21
         <tr>
18
           <td>姓名</td>
22
           <td>姓名</td>
19
-          <td>王怀国</td>
23
+          <td>{{info.patient.name}}</td>
20
           <td>性别</td>
24
           <td>性别</td>
21
-          <td>男</td>
25
+          <td>{{info.patient.gender == '1' ? '' : '女'}}</td>
22
           <td>个人编号</td>
26
           <td>个人编号</td>
23
-          <td>34120000000017060193</td>
27
+          <td>{{info.patient.id_card_no}}</td>
24
           <td>人员类别</td>
28
           <td>人员类别</td>
25
-          <td>普通居民(成年)</td>
29
+          <td v-if="info.new_order.psn_type == '11'">在职</td>
30
+          <td v-if="info.new_order.psn_type == '1101'">职工在职</td>
31
+          <td  v-if="info.new_order.psn_type == '1102'">公务员在职</td>
32
+          <td  v-if="info.new_order.psn_type == '1103'">灵活就业人员在职</td>
33
+          <td  v-if="info.new_order.psn_type == '1160'">地方其他扩展人员</td>
34
+          <td v-if="info.new_order.psn_type == '12'">退休人员</td>
35
+          <td v-if="info.new_order.psn_type == '1201'">职工退休</td>
36
+          <td v-if="info.new_order.psn_type == '1202'">公务员退休</td>
37
+          <td v-if="info.new_order.psn_type == '1203'">灵活就业人员退休</td>
38
+          <td v-if="info.new_order.psn_type == '1260'">地方其他扩展人员</td>
39
+          <td v-if="info.new_order.psn_type == '13'">离休</td>
40
+          <td  v-if="info.new_order.psn_type == '1300'">离休人员</td>
41
+          <td  v-if="info.new_order.psn_type == '1360'">地方其他扩展人员</td>
42
+          <td  v-if="info.new_order.psn_type == '14'">居民(未成年)</td>
43
+          <td v-if="info.new_order.psn_type == '1401'">新生儿</td>
44
+          <td  v-if="info.new_order.psn_type == '1402'">学龄前儿童</td>
45
+          <td  v-if="info.new_order.psn_type == '1403'">中小学生</td>
46
+          <td  v-if="info.new_order.psn_type == '1404'">大学生</td>
47
+          <td  v-if="info.new_order.psn_type == '1405'">未成年(未入学)</td>
48
+          <td v-if="info.new_order.psn_type == '15'">居民(成年)</td>
49
+          <td  v-if="info.new_order.psn_type == '1501'">普通居民(成年)</td>
50
+          <td  v-if="info.new_order.psn_type == '1560'">地方其他扩展身份</td>
51
+          <td v-if="info.new_order.psn_type == '16'">居民(老年)</td>
52
+          <td v-else></td>
26
         </tr>
53
         </tr>
27
         <tr>
54
         <tr>
28
           <td colspan="2">身份证号</td>
55
           <td colspan="2">身份证号</td>
29
-          <td colspan="2">341222198004156833</td>
56
+          <td colspan="2">{{info.new_order.id_card_no}}</td>
30
           <td colspan="2">险种</td>
57
           <td colspan="2">险种</td>
31
-          <td colspan="2">城乡居民基本医疗保险</td>
58
+          <td colspan="2" v-if="info.new_order.insutype == '310'">职工基本医疗保险</td>
59
+          <td colspan="2" v-if="info.new_order.insutype == '320'">公务员医疗补助</td>
60
+          <td colspan="2" v-if="info.new_order.insutype == '330'">大额医疗费用补助</td>
61
+          <td colspan="2" v-if="info.new_order.insutype == '340'">离休人员医疗保障</td>
62
+          <td colspan="2" v-if="info.new_order.insutype == '390'">城乡居民基本医疗保险</td>
63
+          <td colspan="2" v-if="info.new_order.insutype == '392'">城乡居民大病医疗保险</td>
64
+          <td colspan="2" v-if="info.new_order.insutype == '510'">生育保险</td>
65
+          <td colspan="2" v-else></td>
32
         </tr>
66
         </tr>
33
         <tr>
67
         <tr>
34
           <td>入院日期</td>
68
           <td>入院日期</td>
35
-          <td>2023-10-17</td>
69
+          <td>{{info.new_order.setl_time.split(" ")[0]}}</td>
36
           <td>出院日期</td>
70
           <td>出院日期</td>
37
-          <td>2023-10-17</td>
71
+          <td>{{info.new_order.setl_time.split(" ")[0]}}</td>
38
           <td>治疗方式编码</td>
72
           <td>治疗方式编码</td>
39
-          <td>ZLFS00373</td>
73
+          <td></td>
40
           <td>治疗方式名称</td>
74
           <td>治疗方式名称</td>
41
           <td></td>
75
           <td></td>
42
         </tr>
76
         </tr>
55
           <td colspan="1">超限价费用</td>
89
           <td colspan="1">超限价费用</td>
56
         </tr>
90
         </tr>
57
         <tr>
91
         <tr>
58
-          <td colspan="2">280</td>
59
-          <td colspan="2">196</td>
60
-          <td colspan="2">84</td>
61
-          <td colspan="1">0</td>
62
-          <td colspan="1">0</td>
92
+          <td colspan="2">{{info.new_order.medfee_sumamt}}</td>
93
+          <td colspan="2">{{info.new_order.inscp_scp_amt?info.new_order.inscp_scp_amt:''}}</td>
94
+          <td colspan="2">{{info.new_order.preselfpay_amt?info.new_order.preselfpay_amt:''}}</td>
95
+          <td colspan="1">{{info.new_order.fulamt_ownpay_amt?info.new_order.fulamt_ownpay_amt:''}}</td>
96
+          <td colspan="1">{{info.new_order.overlmt_self_pay?info.new_order.overlmt_self_pay:''}}</td>
63
         </tr>
97
         </tr>
64
 
98
 
65
         <tr>
99
         <tr>
66
           <td colspan="2">实际支付起付线</td>
100
           <td colspan="2">实际支付起付线</td>
67
-          <td colspan="2">0</td>
101
+          <td colspan="2">{{info.new_order.act_pay_dedc?info.new_order.act_pay_dedc:''}}</td>
68
           <td colspan="2">基本医疗保险统筹基金支出</td>
102
           <td colspan="2">基本医疗保险统筹基金支出</td>
69
-          <td colspan="2">166.6</td>
103
+          <td colspan="2">{{info.new_order.hifp_pay?info.new_order.hifp_pay:''}}</td>
70
         </tr>
104
         </tr>
71
         <tr>
105
         <tr>
72
           <td colspan="2">公务员医疗补助基金支出</td>
106
           <td colspan="2">公务员医疗补助基金支出</td>
73
-          <td colspan="2">0</td>
107
+          <td colspan="2">{{info.new_order.cvlserv_pay?info.new_order.cvlserv_pay:''}}</td>
74
           <td colspan="2">职工大额医疗费用补助基金支出</td>
108
           <td colspan="2">职工大额医疗费用补助基金支出</td>
75
-          <td colspan="2">0</td>
109
+          <td colspan="2">{{info.new_order.hifob_pay?info.new_order.hifob_pay:''}}</td>
76
         </tr>
110
         </tr>
77
         <tr>
111
         <tr>
78
           <td colspan="2">居民大病保险基金支出</td>
112
           <td colspan="2">居民大病保险基金支出</td>
79
-          <td colspan="2">0</td>
113
+          <td colspan="2">{{info.new_order.hifmi_pay?info.new_order.hifmi_pay:''}}</td>
80
           <td colspan="2">医疗救助基金支出</td>
114
           <td colspan="2">医疗救助基金支出</td>
81
-          <td colspan="2">166.6</td>
115
+          <td colspan="2">{{info.new_order.maf_pay?info.new_order.maf_pay:''}}</td>
82
         </tr>
116
         </tr>
83
         <tr>
117
         <tr>
84
           <td colspan="2">其他基金支出</td>
118
           <td colspan="2">其他基金支出</td>
85
-          <td colspan="2">0</td>
119
+          <td colspan="2">{{info.new_order.oth_pay?info.new_order.oth_pay:''}}</td>
86
           <td colspan="2">基金支付总额</td>
120
           <td colspan="2">基金支付总额</td>
87
-          <td colspan="2">166.6</td>
121
+          <td colspan="2">{{info.new_order.fund_pay_sumamt?info.new_order.fund_pay_sumamt:''}}</td>
88
         </tr>
122
         </tr>
89
         <tr>
123
         <tr>
90
           <td colspan="2">个人账户支出</td>
124
           <td colspan="2">个人账户支出</td>
91
-          <td colspan="2">0</td>
125
+          <td colspan="2">{{info.new_order.acct_pay?info.new_order.acct_pay:''}}</td>
92
           <td colspan="2">个人现金支出</td>
126
           <td colspan="2">个人现金支出</td>
93
-          <td colspan="2">166.6</td>
127
+          <td colspan="2">{{info.new_order.psn_cash_pay?info.new_order.psn_cash_pay:''}}</td>
94
         </tr>
128
         </tr>
95
         <tr>
129
         <tr>
96
           <td colspan="2">余额</td>
130
           <td colspan="2">余额</td>
97
-          <td colspan="2">0</td>
131
+          <td colspan="2">{{info.new_order.balc?info.new_order.balc:''}}</td>
98
           <td colspan="2">个人负担总金额</td>
132
           <td colspan="2">个人负担总金额</td>
99
-          <td colspan="2">166.6</td>
133
+          <td colspan="2">{{info.new_order.psn_part_amt?info.new_order.psn_part_amt:''}}</td>
100
         </tr>
134
         </tr>
101
         <tr>
135
         <tr>
102
           <td colspan="2">个人账户共济支付金额</td>
136
           <td colspan="2">个人账户共济支付金额</td>
103
-          <td colspan="2">0</td>
137
+          <td colspan="2">{{info.new_order.acct_mulaid_pay?info.new_order.acct_mulaid_pay:''}}</td>
104
           <td colspan="2"></td>
138
           <td colspan="2"></td>
105
           <td colspan="2"></td>
139
           <td colspan="2"></td>
106
         </tr>
140
         </tr>
113
           <td colspan="1">符合政策范围金额</td>
147
           <td colspan="1">符合政策范围金额</td>
114
         </tr>
148
         </tr>
115
         <tr>
149
         <tr>
116
-          <td colspan="1">1</td>
117
-          <td colspan="2">城乡居民基本医疗保险基金</td>
118
-          <td colspan="2">166.6</td>
119
-          <td colspan="2">0</td>
120
-          <td colspan="1">196</td>
150
+          <td colspan="1"></td>
151
+          <td colspan="2"></td>
152
+          <td colspan="2"></td>
153
+          <td colspan="2"></td>
154
+          <td colspan="1"></td>
121
         </tr>
155
         </tr>
122
         <tr>
156
         <tr>
123
-          <td colspan="1">2</td>
124
-          <td colspan="2">城乡居民大病医疗保险基金</td>
125
-          <td colspan="2">73</td>
126
-          <td colspan="2">0</td>
127
-          <td colspan="1">196</td>
157
+          <td colspan="1"></td>
158
+          <td colspan="2"></td>
159
+          <td colspan="2"></td>
160
+          <td colspan="2"></td>
161
+          <td colspan="1"></td>
128
         </tr>
162
         </tr>
129
         <tr>
163
         <tr>
130
-          <td colspan="1">3</td>
131
-          <td colspan="2">医疗救助基金</td>
132
-          <td colspan="2">29.77</td>
133
-          <td colspan="2">0</td>
134
-          <td colspan="1">196</td>
164
+          <td colspan="1"></td>
165
+          <td colspan="2"></td>
166
+          <td colspan="2"></td>
167
+          <td colspan="2"></td>
168
+          <td colspan="1"></td>
135
         </tr>
169
         </tr>
136
       </table>
170
       </table>
137
     </div>
171
     </div>
138
     <div style="display: flex;">
172
     <div style="display: flex;">
139
       <div style="flex: 1;">制表人:太和沃迪康血液诱析中心</div>
173
       <div style="flex: 1;">制表人:太和沃迪康血液诱析中心</div>
140
-      <div style="flex: 1;">打印日期: 2023-10-17 15:39</div>
174
+      <div style="flex: 1;">打印日期: {{getTime(new Date(),'{y}-{m}-{d}')?getTime(new Date(),'{y}-{m}-{d}'):''}}</div>
141
       <div style="flex: 1;">医院(盖章):</div>
175
       <div style="flex: 1;">医院(盖章):</div>
142
     </div>
176
     </div>
143
   </div>
177
   </div>
144
 </template>
178
 </template>
179
+<script>
180
+import { uParseTime } from '@/utils/tools'
181
+
182
+export default {
183
+  data() {
184
+    return {
185
+      list: {},
186
+      prescription: [],
187
+      patient: {},
188
+      orgname: '',
189
+
190
+      result: {},
191
+      org_code: '',
192
+      patient_name: '',
193
+      doctor_code: '',
194
+      doctor_name: '',
195
+
196
+      name_arr: [],
197
+      spec_arr: [],
198
+      count_arr: [],
199
+      price_arr: [],
200
+      total_arr: []
201
+
202
+    }
203
+  },
204
+  props: {
205
+    paramsObj: Object,
206
+    info: {
207
+      type: Object,
208
+      default: function() {
209
+        return {}
210
+      }
211
+    },
212
+    balanceAccounts: Object
213
+  },
214
+  methods: {
215
+    getDay(dateString1,dateString2){
216
+      var  startDate = Date.parse(dateString1);
217
+      var  endDate = Date.parse(dateString2);
218
+      if (startDate>endDate){
219
+        return 0;
220
+      }
221
+      if (startDate==endDate){
222
+        return 1;
223
+      }
224
+      var days=(endDate - startDate)/(1*24*60*60*1000);
225
+      return  days;
226
+    },
227
+    getTime(value, temp) {
228
+      if (value != undefined) {
229
+        return uParseTime(value, temp)
230
+      }
231
+      return ''
232
+    }
233
+  },
234
+  mounted() {
145
 
235
 
146
 
236
 
237
+  },
238
+  watch: {
239
+    paramsObj: {//深度监听,可监听到对象、数组的变化
240
+      handler(val, oldVal) {
241
+
242
+
243
+      },
244
+      deep: true
245
+    }
246
+  }
247
+}
248
+</script>
249
+
147
 <style lang="scss" scoped>
250
 <style lang="scss" scoped>
148
 .statement-print {
251
 .statement-print {
149
   -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
252
   -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
169
   }
272
   }
170
 }
273
 }
171
 
274
 
172
-</style>
275
+</style>

+ 100 - 41
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue 查看文件

143
                               </el-date-picker>
143
                               </el-date-picker>
144
 
144
 
145
 
145
 
146
-                              <el-select style="width:50%;" v-model="item.med_type" placeholder="医疗类型"
146
+                              <el-select v-if="org_id != 10206" style="width:50%;" v-model="item.med_type" placeholder="医疗类型"
147
                                          @change="changevalue">
147
                                          @change="changevalue">
148
                                   <el-option
148
                                   <el-option
149
                                           v-for="(item,index) in register"
149
                                           v-for="(item,index) in register"
152
                                           :value="item.value">
152
                                           :value="item.value">
153
                                   </el-option>
153
                                   </el-option>
154
                               </el-select>
154
                               </el-select>
155
+<!--                            //针对海拉尔普爱肾病医院-->
156
+                            <el-select v-if="org_id == 10206" style="width:50%;" v-model="item.med_type" placeholder="医疗类型"
157
+                                       @change="changevalue">
158
+                              <el-option
159
+                                v-for="(item,index) in register10206"
160
+                                :key="index"
161
+                                :label="item.label"
162
+                                :value="item.value">
163
+                              </el-option>
164
+                            </el-select>
155
 
165
 
156
                               <div style="float: right;margin-bottom:5px;margin-right:1%;">
166
                               <div style="float: right;margin-bottom:5px;margin-right:1%;">
157
                                   <el-button
167
                                   <el-button
303
                                               <span v-if="scope.row.min_unit != scope.row.dose_unit">{{scope.row.dose}}{{scope.row.dose_unit}}&nbsp;* &nbsp;</span>{{scope.row.min_number}}{{scope.row.min_unit}}/{{scope.row.max_unit}}
313
                                               <span v-if="scope.row.min_unit != scope.row.dose_unit">{{scope.row.dose}}{{scope.row.dose_unit}}&nbsp;* &nbsp;</span>{{scope.row.min_number}}{{scope.row.min_unit}}/{{scope.row.max_unit}}
304
                                           </template>
314
                                           </template>
305
                                       </el-table-column>
315
                                       </el-table-column>
306
-                                      <el-table-column label="库存" width="60">
316
+
317
+                                      <el-table-column label="库存" width="60" v-if="org_id != 10206">
307
                                           <template slot-scope="scope">
318
                                           <template slot-scope="scope">
308
                                              <!-- <span v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 10138 || org_id == 3877 || org_id == 10028 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9919 || org_id == 10106 || org_id == 9504 || org_id ==10215 || org_id == 10188 || org_id == 10265 || org_id == 10164 || org_id ==9956 || org_id == 10188 || org_id == 10191 || org_id == 10278 || org_id == 10217 || org_id ==10210 || org_id ==record_date ||org_id ==10340">
319
                                              <!-- <span v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 10138 || org_id == 3877 || org_id == 10028 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9919 || org_id == 10106 || org_id == 9504 || org_id ==10215 || org_id == 10188 || org_id == 10265 || org_id == 10164 || org_id ==9956 || org_id == 10188 || org_id == 10191 || org_id == 10278 || org_id == 10217 || org_id ==10210 || org_id ==record_date ||org_id ==10340">
309
                                              <span v-if="scope.row.count/scope.row.min_number>0">{{Math.floor(scope.row.count/scope.row.min_number)}}{{scope.row.max_unit}}</span>
320
                                              <span v-if="scope.row.count/scope.row.min_number>0">{{Math.floor(scope.row.count/scope.row.min_number)}}{{scope.row.max_unit}}</span>
315
                                              <span v-if="scope.row.sum_count >0 && scope.row.max_unit == scope.row.min_unit">{{scope.row.sum_count}}{{scope.row.max_unit}}</span>
326
                                              <span v-if="scope.row.sum_count >0 && scope.row.max_unit == scope.row.min_unit">{{scope.row.sum_count}}{{scope.row.max_unit}}</span>
316
                                           </template>
327
                                           </template>
317
                                       </el-table-column>
328
                                       </el-table-column>
329
+
330
+<!--                                    //针对对接坐标系统的,使用坐标的库存数据-->
331
+                                    <el-table-column label="库存" width="60" v-else>
332
+                                      <template slot-scope="scope">
333
+                                        <span>{{scope.row.zuobiao_stock_num}}</span>
334
+                                      </template>
335
+                                    </el-table-column>
318
                                       <el-table-column label="单价" width="40">
336
                                       <el-table-column label="单价" width="40">
319
                                           <template slot-scope="scope">{{ scope.row.min_price }}</template>
337
                                           <template slot-scope="scope">{{ scope.row.min_price }}</template>
320
                                       </el-table-column>
338
                                       </el-table-column>
408
                                                  {{scope.row.stock_count}}
426
                                                  {{scope.row.stock_count}}
409
                                             </span>
427
                                             </span>
410
                                             <span v-else> {{ scope.row.total }}</span> -->
428
                                             <span v-else> {{ scope.row.total }}</span> -->
411
-                                            <span v-if="scope.row.type == 3 && scope.row.good_info.sum_count > 0">{{scope.row.good_info.sum_count}}</span>
429
+                                            <span v-if="org_id != 10206 && scope.row.type == 3 && scope.row.good_info.sum_count > 0">{{scope.row.good_info.sum_count}}</span>
430
+<!--                                            //针对坐标系统的库存数据-->
431
+                                            <span v-if="org_id == 10206 && scope.row.type == 3">{{scope.row.good_info.zuobiao_stock_num}}</span>
432
+
412
                                           </template>
433
                                           </template>
413
                                       </el-table-column>
434
                                       </el-table-column>
414
                                       <el-table-column label="单价" width="40">
435
                                       <el-table-column label="单价" width="40">
488
   editHisPrescription,
509
   editHisPrescription,
489
   getCallHisPrescription,
510
   getCallHisPrescription,
490
   getDayOrMonthHisPrescription,
511
   getDayOrMonthHisPrescription,
491
-  getInitData,
492
   getNextOrLastHisPrescription,
512
   getNextOrLastHisPrescription,
493
-  getPatientInfo,
494
-  getSchedulePatientList
495
 } from '@/api/his/his'
513
 } from '@/api/his/his'
496
 import { getDictionaryDataConfig } from '@/utils/data'
514
 import { getDictionaryDataConfig } from '@/utils/data'
497
 import prescriptionTable from './prescriptionTable'
515
 import prescriptionTable from './prescriptionTable'
499
 import saveTemplate from './saveTemplate'
517
 import saveTemplate from './saveTemplate'
500
 import additionalCharges from './additionalCharges'
518
 import additionalCharges from './additionalCharges'
501
 import {
519
 import {
502
-  addProjectTeam,
503
   getAllProjectList,
520
   getAllProjectList,
504
   getAllProjectTeam,
521
   getAllProjectTeam,
505
   getHisProject,
522
   getHisProject,
514
 
531
 
515
 export default {
532
 export default {
516
   props: {
533
   props: {
534
+    zuobiao_drug:Array,
535
+    zuobiao_project:Array,
517
     drugs:Array,
536
     drugs:Array,
518
     allDrugs:Array,
537
     allDrugs:Array,
519
     advices_template:Array,
538
     advices_template:Array,
553
     return {
572
     return {
554
       start_time: moment(new Date()).subtract(30, 'days').format('YYYY-MM-DD'),
573
       start_time: moment(new Date()).subtract(30, 'days').format('YYYY-MM-DD'),
555
       end_time: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
574
       end_time: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
575
+      register10206: [
576
+        { value: 1, label: '普通' },
577
+        { value: 2, label: '急诊' },
578
+        { value: 5, label: '第一类精神药品' },
579
+        { value: 6, label: '第二类精神药品' },
580
+        { value: 7, label: '放射药品' },
581
+        { value: 8, label: '毒性药品' },
582
+        { value: 9, label: '检查' },
583
+        { value: 10, label: '检验' },
584
+        { value: 12, label: '治疗' },
585
+        { value: 99, label: '其他' },
586
+      ],
556
       register: [
587
       register: [
557
 
588
 
558
         { value: 11, label: '普通门诊' },
589
         { value: 11, label: '普通门诊' },
693
   methods: {
724
   methods: {
694
 
725
 
695
     changeClass(id) {
726
     changeClass(id) {
696
-      console.log("asdaff,id",id)
697
-      console.log("asdaff,this.value",this.value)
698
-      console.log("asdaff,this.allProject",this.allProject)
699
       this.tabProject = []
727
       this.tabProject = []
700
       if (id == 0) {
728
       if (id == 0) {
701
         this.tabProject = this.allProject
729
         this.tabProject = this.allProject
1597
       } else {
1625
       } else {
1598
         let arr = []
1626
         let arr = []
1599
         for (let i = 0; i < this.allProject.length; i++) {
1627
         for (let i = 0; i < this.allProject.length; i++) {
1600
-        
1628
+
1601
             // console.log('4444',this.tabProject[i].first_letter.indexOf(this.search_project_keyword) != -1)
1629
             // console.log('4444',this.tabProject[i].first_letter.indexOf(this.search_project_keyword) != -1)
1630
+
1602
             if (this.allProject[i].project_name.indexOf(this.search_project_keyword) != -1) {
1631
             if (this.allProject[i].project_name.indexOf(this.search_project_keyword) != -1) {
1603
               arr = arr.concat(this.allProject[i])
1632
               arr = arr.concat(this.allProject[i])
1604
             }
1633
             }
1605
-          
1634
+
1606
         }
1635
         }
1607
         this.tabProject = arr
1636
         this.tabProject = arr
1608
         console.log('kkkk',this.tabProject);
1637
         console.log('kkkk',this.tabProject);
1631
         for (let i = 0; i < this.drugs.length; i++) {
1660
         for (let i = 0; i < this.drugs.length; i++) {
1632
           if (this.drugs[i].drug_name.indexOf(this.search_keyword) != -1 ||
1661
           if (this.drugs[i].drug_name.indexOf(this.search_keyword) != -1 ||
1633
            this.drugs[i].wubi.indexOf(this.search_keyword) != -1 ||
1662
            this.drugs[i].wubi.indexOf(this.search_keyword) != -1 ||
1634
-           this.drugs[i].pinyin.indexOf(this.search_keyword) != -1
1663
+           this.drugs[i].pinyin.indexOf(this.search_keyword) != -1 ||
1664
+           this.drugs[i].first_letter.indexOf(this.search_keyword) != -1
1635
            ) {
1665
            ) {
1636
             arr = arr.concat(this.drugs[i])
1666
             arr = arr.concat(this.drugs[i])
1637
           }
1667
           }
2361
           if (index == 1) {
2391
           if (index == 1) {
2362
             console.log(this.prescriptions)
2392
             console.log(this.prescriptions)
2363
 
2393
 
2364
-            for (let i = 0; i < this.prescriptions.length; i++) {
2365
-              for(let b = 0; b < this.prescriptions[i].advices.length; b++){
2366
-                if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].advices[b].drug.is_special_diseases != 1) {
2367
-                  this.$message.error(this.prescriptions[i].name.toString() +"属于特病类型处方,不能开非特病类型的药")
2368
-                  return
2369
-                }
2370
-              }
2371
-              for(let c = 0; c < this.prescriptions[i].project.length; c++){
2372
-                if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].project[c].type == 2  && this.prescriptions[i].project[c].project.disease_directory != 1) {
2373
-                  this.$message.error(this.prescriptions[i].name.toString() +"属于特病类型处方,请开特病类型的项目")
2374
-                  return
2394
+            if (this.org_id != 10206) {
2395
+              for (let i = 0; i < this.prescriptions.length; i++) {
2396
+                for (let b = 0; b < this.prescriptions[i].advices.length; b++) {
2397
+                  if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].advices[b].drug.is_special_diseases != 1) {
2398
+                    this.$message.error(this.prescriptions[i].name.toString() + "属于特病类型处方,不能开非特病类型的药")
2399
+                    return
2400
+                  }
2375
                 }
2401
                 }
2402
+                for (let c = 0; c < this.prescriptions[i].project.length; c++) {
2403
+                  if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].project[c].type == 2 && this.prescriptions[i].project[c].project.disease_directory != 1) {
2404
+                    this.$message.error(this.prescriptions[i].name.toString() + "属于特病类型处方,请开特病类型的项目")
2405
+                    return
2406
+                  }
2376
 
2407
 
2377
-                if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].project[c].type == 3  && this.prescriptions[i].project[c].good_info.is_special_diseases != 1) {
2378
-                  this.$message.error(this.prescriptions[i].name.toString() +"属于特病类型处方,请开特病类型的耗材")
2379
-                  return
2408
+                  if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].project[c].type == 3 && this.prescriptions[i].project[c].good_info.is_special_diseases != 1) {
2409
+                    this.$message.error(this.prescriptions[i].name.toString() + "属于特病类型处方,请开特病类型的耗材")
2410
+                    return
2411
+                  }
2380
                 }
2412
                 }
2381
               }
2413
               }
2382
             }
2414
             }
3218
 
3250
 
3219
       if (this.curDrugs.length > 0) {
3251
       if (this.curDrugs.length > 0) {
3220
         for (let i = 0; i < this.curDrugs.length; i++) {
3252
         for (let i = 0; i < this.curDrugs.length; i++) {
3221
-          if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
3222
-            this.$message.error('该处方属于特病类型处方,开非特病类型的药')
3223
-            return
3253
+          if(this.org_id != 10206) {
3254
+            if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
3255
+              this.$message.error('该处方属于特病类型处方,开非特病类型的药')
3256
+              return
3257
+            }
3224
           }
3258
           }
3225
 
3259
 
3226
         }
3260
         }
3227
       }
3261
       }
3228
       if (this.teamList.length > 0) {
3262
       if (this.teamList.length > 0) {
3229
-        for (let i = 0; i < this.teamList.length; i++) {
3230
-          if (this.curPrescriptions.med_type == 14 && this.teamList[i].is_special_diseases != 1) {
3231
-            this.$message.error('该处方属于特病类型处方,请开特病类型的项目')
3232
-            // return
3233
-          }
3263
+        if(this.org_id != 10206) {
3264
+          for (let i = 0; i < this.teamList.length; i++) {
3265
+            if (this.curPrescriptions.med_type == 14 && this.teamList[i].is_special_diseases != 1) {
3266
+              this.$message.error('该处方属于特病类型处方,请开特病类型的项目')
3267
+              // return
3268
+            }
3234
 
3269
 
3270
+          }
3235
         }
3271
         }
3236
 
3272
 
3237
         let arr = this.teamList
3273
         let arr = this.teamList
3247
         this.teamList = newArr
3283
         this.teamList = newArr
3248
       }
3284
       }
3249
 
3285
 
3286
+
3287
+
3288
+
3250
       if (this.curDrugs.length == 0) {
3289
       if (this.curDrugs.length == 0) {
3251
         for (let i = 0; i < this.curDrugs.length; i++) {
3290
         for (let i = 0; i < this.curDrugs.length; i++) {
3252
-          if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
3253
-            this.$message.error('该处方属于特病类型处方,开非特病类型的药')
3254
-            return
3291
+          if(this.org_id != 10206) {
3292
+            if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
3293
+              this.$message.error('该处方属于特病类型处方,开非特病类型的药')
3294
+              return
3295
+            }
3255
           }
3296
           }
3256
         }
3297
         }
3257
       }
3298
       }
3537
               is_special_diseases: project[i].disease_directory,
3578
               is_special_diseases: project[i].disease_directory,
3538
               project: project[i],
3579
               project: project[i],
3539
               stock_count:0,
3580
               stock_count:0,
3540
-              first_letter:project[i].first_letter
3581
+              first_letter:project[i].first_letter,
3582
+              bbx01:project[i].bbx01,
3583
+              zuobiao_stock_num:0,
3584
+
3541
             }
3585
             }
3542
             // console.log('hhhhh',obj);
3586
             // console.log('hhhhh',obj);
3543
             this.tabProject.push(obj)
3587
             this.tabProject.push(obj)
3545
 
3589
 
3546
           var good_info = response.data.data.good_info
3590
           var good_info = response.data.data.good_info
3547
 
3591
 
3592
+
3548
           for (let i = 0; i < good_info.length; i++) {
3593
           for (let i = 0; i < good_info.length; i++) {
3549
              good_info[i].stock_count = 0
3594
              good_info[i].stock_count = 0
3550
             if(good_info[i].good_stock_in&&good_info[i].good_stock_in.length >0 ){
3595
             if(good_info[i].good_stock_in&&good_info[i].good_stock_in.length >0 ){
3552
                  good_info[i].stock_count += good_info[i].good_stock_in[j].stock_count
3597
                  good_info[i].stock_count += good_info[i].good_stock_in[j].stock_count
3553
               }
3598
               }
3554
             }
3599
             }
3600
+
3555
             let obj = {
3601
             let obj = {
3556
               id: good_info[i].id,
3602
               id: good_info[i].id,
3557
               project_name: good_info[i].good_name,
3603
               project_name: good_info[i].good_name,
3569
               is_special_diseases: good_info[i].is_special_diseases,
3615
               is_special_diseases: good_info[i].is_special_diseases,
3570
               good_info: good_info[i],
3616
               good_info: good_info[i],
3571
               stock_count:good_info[i].stock_count,
3617
               stock_count:good_info[i].stock_count,
3572
-              first_letter:good_info[i].first_letter
3618
+              first_letter:good_info[i].first_letter,
3619
+              bbx01:good_info[i].bbx01,
3620
+              zuobiao_stock_num:0,
3621
+
3573
             }
3622
             }
3574
             this.tabProject.push(obj)
3623
             this.tabProject.push(obj)
3575
           }
3624
           }
3576
-          console.log('3333', this.tabProject);
3625
+          //跟坐标数据进行匹配,如果bbx01相等的话则,替换库存数量
3626
+          if(this.org_id == 10206) {
3627
+            for (let i = 0; i < this.zuobiao_project.length; i++) {
3628
+              for (let b = 0; b < this.tabProject.length; b++) {
3629
+                if (this.zuobiao_project[i].bbx01 == this.tabProject[b].bbx01){
3630
+                  this.tabProject[b].zuobiao_stock_num = this.zuobiao_project[i].lsqty
3631
+                }
3632
+              }
3633
+            }
3634
+          }
3577
           this.allProject = this.tabProject
3635
           this.allProject = this.tabProject
3636
+
3578
           // console.log('cccc',this.allProject);
3637
           // console.log('cccc',this.allProject);
3579
         }
3638
         }
3580
       })
3639
       })

+ 55 - 8
src/xt_pages/outpatientDoctorStation/doctorDesk.vue 查看文件

161
                            v-on:change="changeOther"
161
                            v-on:change="changeOther"
162
                            v-on:month="changeMonth"
162
                            v-on:month="changeMonth"
163
                            v-on:day="changeDay"
163
                            v-on:day="changeDay"
164
+                           :zuobiao_drug="zuobiao_drug"
165
+                           :zuobiao_project="zuobiao_project"
164
                            :month_prescriptions="month_prescriptions"
166
                            :month_prescriptions="month_prescriptions"
165
                            :org_id="org_id"
167
                            :org_id="org_id"
166
                            ref="prescriptions" :prescriptions="prescriptions" :patientInfo="patientInfo"
168
                            ref="prescriptions" :prescriptions="prescriptions" :patientInfo="patientInfo"
506
 import checkPrint from './checkPrint'
508
 import checkPrint from './checkPrint'
507
 import dialysisIndex from './components/dialysisIndex'
509
 import dialysisIndex from './components/dialysisIndex'
508
 import {getInitPrintDataOne} from '@/api/dialysis_record'
510
 import {getInitPrintDataOne} from '@/api/dialysis_record'
511
+import axios from 'axios'
509
 const moment = require('moment')
512
 const moment = require('moment')
510
 
513
 
511
 export default {
514
 export default {
607
       printList:[],
610
       printList:[],
608
       printDate:'',
611
       printDate:'',
609
       anticoagulants_confit:null,
612
       anticoagulants_confit:null,
610
-      patient_diagnoses:[]
613
+      patient_diagnoses:[],
614
+      zuobiao_drug:[],
615
+      zuobiao_project:[],
611
     }
616
     }
612
   },
617
   },
613
 
618
 
830
     },
835
     },
831
 
836
 
832
     searchAction() {
837
     searchAction() {
833
-      
838
+
834
       if (this.search_input.length == 0) {
839
       if (this.search_input.length == 0) {
835
         switch (this.radio) {
840
         switch (this.radio) {
836
           case 0:
841
           case 0:
857
                   console.log(arr)
862
                   console.log(arr)
858
                 }
863
                 }
859
               }
864
               }
860
-              
865
+
861
             }
866
             }
862
             this.all_data = arr
867
             this.all_data = arr
863
 
868
 
864
             break
869
             break
865
           case 2:
870
           case 2:
866
             let arr2 = []
871
             let arr2 = []
867
-           
872
+
868
             for (let i = 0; i < this.cure_data.length; i++) {
873
             for (let i = 0; i < this.cure_data.length; i++) {
869
               if(this.cure_data[i].first_letter != undefined){
874
               if(this.cure_data[i].first_letter != undefined){
870
-                if (this.cure_data[i].name.indexOf(this.search_input) != -1 || 
875
+                if (this.cure_data[i].name.indexOf(this.search_input) != -1 ||
871
                   this.cure_data[i].number.indexOf(this.search_input) != -1 ||
876
                   this.cure_data[i].number.indexOf(this.search_input) != -1 ||
872
                   this.cure_data[i].first_letter.indexOf(this.search_input) != -1) {
877
                   this.cure_data[i].first_letter.indexOf(this.search_input) != -1) {
873
                     console.log('2222',this.cure_data);
878
                     console.log('2222',this.cure_data);
874
                     arr2 = arr2.concat(this.cure_data[i])
879
                     arr2 = arr2.concat(this.cure_data[i])
875
                 }
880
                 }
876
               }
881
               }
877
-             
882
+
878
             }
883
             }
879
             this.cure_data = arr2
884
             this.cure_data = arr2
880
 
885
 
885
             console.log('3333',this.un_cure_data);
890
             console.log('3333',this.un_cure_data);
886
             for (let i = 0; i < this.un_cure_data.length; i++) {
891
             for (let i = 0; i < this.un_cure_data.length; i++) {
887
               if(this.un_cure_data[i].first_letter!=undefined){
892
               if(this.un_cure_data[i].first_letter!=undefined){
888
-                if (this.un_cure_data[i].name.indexOf(this.search_input) != -1 || 
893
+                if (this.un_cure_data[i].name.indexOf(this.search_input) != -1 ||
889
                 this.un_cure_data[i].number.indexOf(this.search_input) != -1 ||
894
                 this.un_cure_data[i].number.indexOf(this.search_input) != -1 ||
890
                 this.un_cure_data[i].first_letter.indexOf(this.search_input) != -1) {
895
                 this.un_cure_data[i].first_letter.indexOf(this.search_input) != -1) {
891
                   arr3 = arr3.concat(this.un_cure_data[i])
896
                   arr3 = arr3.concat(this.un_cure_data[i])
892
                 }
897
                 }
893
               }
898
               }
894
-              
899
+
895
             }
900
             }
896
             this.un_cure_data = arr3
901
             this.un_cure_data = arr3
897
             break
902
             break
1492
 
1497
 
1493
           this.additions = response.data.data.additions
1498
           this.additions = response.data.data.additions
1494
 
1499
 
1500
+          //针对普爱医院获取药品和耗材相关库存数据
1501
+          if(this.org_id == 10206){
1502
+            var that = this
1503
+            axios.get("http://127.0.0.1:9532" + '/nmg/coordinate/querystock', {
1504
+
1505
+            })
1506
+              .then(function(response) {
1507
+                if (response.data.state == 0) {
1508
+                  that.$message.error(response.data.msg)
1509
+                  that.loadingtwo = false
1510
+                  return false
1511
+                } else {
1512
+                  if (response.data.data.failed_code == -10) {
1513
+                    that.$confirm(response.data.data.msg, '医保错误信息', {
1514
+                      confirmButtonText: '确 定',
1515
+                      type: 'warning'
1516
+                    }).then(() => {
1517
+
1518
+                    }).catch(() => {
1519
+                    })
1520
+
1521
+                  } else {
1522
+                    that.zuobiao_drug  = response.data.data.drug
1523
+                    that.zuobiao_project  = response.data.data.project
1524
+
1525
+                    //跟坐标数据进行匹配,如果bbx01相等的话则,替换库存数量
1526
+                    if(that.org_id == 10206) {
1527
+                      for (let i = 0; i < that.zuobiao_drug.length; i++) {
1528
+                        for (let b = 0; b < that.drugs.length; b++) {
1529
+                          if (that.zuobiao_project[i].ggid == that.drugs[b].bby01){
1530
+                            that.drugs[b]["zuobiao_stock_num"] = that.zuobiao_project[i].sysl
1531
+                          }
1532
+                        }
1533
+                      }
1534
+
1535
+                    }
1536
+                  }
1537
+                }
1538
+              })
1539
+              .catch(function(error) {
1540
+              })
1541
+          }
1495
         }
1542
         }
1496
       })
1543
       })
1497
 
1544
 

+ 68 - 37
src/xt_pages/outpatientDoctorStation/modeTemplateDetail.vue 查看文件

37
                                     :label="item.name"
37
                                     :label="item.name"
38
                                     :name="item.name"
38
                                     :name="item.name"
39
                             >
39
                             >
40
-                                <el-select style="width:50%;" v-model="item.med_type" placeholder="医疗类型"
41
-                                           @change="changevalue">
42
-                                    <el-option
43
-                                            v-for="(item,index) in register"
44
-                                            :key="index"
45
-                                            :label="item.label"
46
-                                            :value="item.value">
47
-                                    </el-option>
48
-                                </el-select>
40
+                              <el-select v-if="org_id != 10206" style="width:50%;" v-model="item.med_type" placeholder="医疗类型"
41
+                                         @change="changevalue">
42
+                                <el-option
43
+                                  v-for="(item,index) in register"
44
+                                  :key="index"
45
+                                  :label="item.label"
46
+                                  :value="item.value">
47
+                                </el-option>
48
+                              </el-select>
49
+                              <!--                            //针对海拉尔普爱肾病医院-->
50
+                              <el-select v-if="org_id == 10206" style="width:50%;" v-model="item.med_type" placeholder="医疗类型"
51
+                                         @change="changevalue">
52
+                                <el-option
53
+                                  v-for="(item,index) in register10206"
54
+                                  :key="index"
55
+                                  :label="item.label"
56
+                                  :value="item.value">
57
+                                </el-option>
58
+                              </el-select>
49
                             </el-tab-pane>
59
                             </el-tab-pane>
50
 
60
 
51
                             <el-tab-pane name="more" closable><span slot="label"><i
61
                             <el-tab-pane name="more" closable><span slot="label"><i
236
       month_prescriptions: Array,
246
       month_prescriptions: Array,
237
       isloading: false,
247
       isloading: false,
238
       loading: false,
248
       loading: false,
249
+      org_id:this.$store.getters.xt_user.org_id,
239
       other_sick: {
250
       other_sick: {
240
         type: Array,
251
         type: Array,
241
         default: function() {
252
         default: function() {
250
     },
261
     },
251
     data() {
262
     data() {
252
       return {
263
       return {
264
+        register10206: [
265
+          { value: 1, label: '普通' },
266
+          { value: 2, label: '急诊' },
267
+          { value: 5, label: '第一类精神药品' },
268
+          { value: 6, label: '第二类精神药品' },
269
+          { value: 7, label: '放射药品' },
270
+          { value: 8, label: '毒性药品' },
271
+          { value: 9, label: '检查' },
272
+          { value: 10, label: '检验' },
273
+          { value: 12, label: '治疗' },
274
+          { value: 99, label: '其他' },
275
+        ],
253
         medical_care: [
276
         medical_care: [
254
           { value: 11, label: '普通门诊' },
277
           { value: 11, label: '普通门诊' },
255
           { value: 12, label: '家庭通道' },
278
           { value: 12, label: '家庭通道' },
385
             return
408
             return
386
           }
409
           }
387
         }
410
         }
411
+        if(this.$store.getters.xt_user.org_id != 10206) {
412
+          for (let i = 0; i < this.prescriptions.length; i++) {
413
+            for (let b = 0; b < this.prescriptions[i].advices.length; b++) {
414
+              if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].advices[b].drug.is_special_diseases != 1) {
415
+                this.$message.error('处方' + (i + 1).toString() + '属于特病类型处方,不能开非特病类型的药')
388
 
416
 
389
-        for (let i = 0; i < this.prescriptions.length; i++) {
390
-          for (let b = 0; b < this.prescriptions[i].advices.length; b++) {
391
-            if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].advices[b].drug.is_special_diseases != 1) {
392
-              this.$message.error('处方' + (i + 1).toString() + '属于特病类型处方,不能开非特病类型的药')
393
-
417
+                return
418
+              }
394
 
419
 
395
-              return
396
             }
420
             }
397
 
421
 
398
-          }
399
-
400
-          for (let c = 0; c < this.prescriptions[i].project.length; c++) {
401
-            if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].project[c].type == 2 && this.prescriptions[i].project[c].project.disease_directory != 1) {
402
-              this.$message.error('处方' + (i + 1).toString() + '属于特病类型处方,请开特病类型的项目')
403
-              return
404
-            }
422
+            for (let c = 0; c < this.prescriptions[i].project.length; c++) {
423
+              if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].project[c].type == 2 && this.prescriptions[i].project[c].project.disease_directory != 1) {
424
+                this.$message.error('处方' + (i + 1).toString() + '属于特病类型处方,请开特病类型的项目')
425
+                return
426
+              }
405
 
427
 
406
-            if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].project[c].type == 3 && this.prescriptions[i].project[c].good_info.is_special_diseases != 1) {
407
-              this.$message.error('处方' + (i + 1).toString() + '属于特病类型处方,请开特病类型的耗材')
408
-              return
428
+              if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].project[c].type == 3 && this.prescriptions[i].project[c].good_info.is_special_diseases != 1) {
429
+                this.$message.error('处方' + (i + 1).toString() + '属于特病类型处方,请开特病类型的耗材')
430
+                return
431
+              }
409
             }
432
             }
410
           }
433
           }
411
         }
434
         }
1331
         //       }
1354
         //       }
1332
         //     }
1355
         //     }
1333
         //   }
1356
         //   }
1334
-        if (this.curDrugs.length > 0) {
1357
+        if (this.curDrugs.length > 0 ) {
1358
+
1335
           for (let i = 0; i < this.curDrugs.length; i++) {
1359
           for (let i = 0; i < this.curDrugs.length; i++) {
1336
-            if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
1337
-              this.$message.error('该处方属于特病类型处方,开非特病类型的药')
1338
-              return
1360
+            if(this.$store.getters.xt_user.org.id != 10206) {
1361
+              if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
1362
+                this.$message.error('该处方属于特病类型处方,开非特病类型的药')
1363
+                return
1364
+              }
1339
             }
1365
             }
1340
 
1366
 
1341
           }
1367
           }
1342
         }
1368
         }
1343
         if (this.teamList.length > 0) {
1369
         if (this.teamList.length > 0) {
1344
           for (let i = 0; i < this.teamList.length; i++) {
1370
           for (let i = 0; i < this.teamList.length; i++) {
1345
-            if (this.curPrescriptions.med_type == 14 && this.teamList[i].is_special_diseases != 1) {
1346
-              setTimeout(() => {
1347
-                this.$message.error('该处方属于特病类型处方,请开特病类型的项目')
1348
-              }, 100)
1349
-              // return
1371
+            if(this.$store.getters.xt_user.org.id != 10206) {
1372
+
1373
+              if (this.curPrescriptions.med_type == 14 && this.teamList[i].is_special_diseases != 1) {
1374
+                setTimeout(() => {
1375
+                  this.$message.error('该处方属于特病类型处方,请开特病类型的项目')
1376
+                }, 100)
1377
+                // return
1378
+              }
1350
             }
1379
             }
1351
 
1380
 
1352
           }
1381
           }
1366
 
1395
 
1367
         if (this.curDrugs.length == 0) {
1396
         if (this.curDrugs.length == 0) {
1368
           for (let i = 0; i < this.curDrugs.length; i++) {
1397
           for (let i = 0; i < this.curDrugs.length; i++) {
1369
-            if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
1370
-              this.$message.error('该处方属于特病类型处方,开非特病类型的药')
1371
-              return
1398
+            if(this.$store.getters.xt_user.org.id != 10206) {
1399
+              if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
1400
+                this.$message.error('该处方属于特病类型处方,开非特病类型的药')
1401
+                return
1402
+              }
1372
             }
1403
             }
1373
 
1404
 
1374
           }
1405
           }

+ 66 - 35
src/xt_pages/outpatientDoctorStation/prescriptionTemplatedetail.vue 查看文件

58
                                 <!--:value="item.value">-->
58
                                 <!--:value="item.value">-->
59
                                 <!--</el-option>-->
59
                                 <!--</el-option>-->
60
                                 <!--</el-select>-->
60
                                 <!--</el-select>-->
61
-                                <el-select style="width:50%;" v-model="item.med_type" placeholder="医疗类型"
62
-                                           @change="changevalue">
63
-                                    <el-option
64
-                                            v-for="(item,index) in register"
65
-                                            :key="index"
66
-                                            :label="item.label"
67
-                                            :value="item.value">
68
-                                    </el-option>
69
-                                </el-select>
61
+                              <el-select v-if="org_id != 10206" style="width:50%;" v-model="item.med_type" placeholder="医疗类型"
62
+                                         @change="changevalue">
63
+                                <el-option
64
+                                  v-for="(item,index) in register"
65
+                                  :key="index"
66
+                                  :label="item.label"
67
+                                  :value="item.value">
68
+                                </el-option>
69
+                              </el-select>
70
+                              <!--                            //针对海拉尔普爱肾病医院-->
71
+                              <el-select v-if="org_id == 10206" style="width:50%;" v-model="item.med_type" placeholder="医疗类型"
72
+                                         @change="changevalue">
73
+                                <el-option
74
+                                  v-for="(item,index) in register10206"
75
+                                  :key="index"
76
+                                  :label="item.label"
77
+                                  :value="item.value">
78
+                                </el-option>
79
+                              </el-select>
70
                             </el-tab-pane>
80
                             </el-tab-pane>
71
 
81
 
72
                             <el-tab-pane name="more" closable><span slot="label"><i
82
                             <el-tab-pane name="more" closable><span slot="label"><i
283
     },
293
     },
284
     data() {
294
     data() {
285
       return {
295
       return {
296
+        org_id:this.$store.getters.xt_user.org_id,
297
+        register10206: [
298
+          { value: 1, label: '普通' },
299
+          { value: 2, label: '急诊' },
300
+          { value: 5, label: '第一类精神药品' },
301
+          { value: 6, label: '第二类精神药品' },
302
+          { value: 7, label: '放射药品' },
303
+          { value: 8, label: '毒性药品' },
304
+          { value: 9, label: '检查' },
305
+          { value: 10, label: '检验' },
306
+          { value: 12, label: '治疗' },
307
+          { value: 99, label: '其他' },
308
+        ],
286
         medical_care: [
309
         medical_care: [
287
           { value: 11, label: '普通门诊' },
310
           { value: 11, label: '普通门诊' },
288
           { value: 12, label: '家庭通道' },
311
           { value: 12, label: '家庭通道' },
424
           }
447
           }
425
         }
448
         }
426
 
449
 
427
-        for (let i = 0; i < this.prescriptions.length; i++) {
428
-          for (let b = 0; b < this.prescriptions[i].advices.length; b++) {
429
-            if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].advices[b].drug.is_special_diseases != 1) {
430
-              this.$message.error('处方' + (i + 1).toString() + '属于特病类型处方,不能开非特病类型的药')
450
+        if(this.org_id != 10206){
451
+          for (let i = 0; i < this.prescriptions.length; i++) {
452
+            for (let b = 0; b < this.prescriptions[i].advices.length; b++) {
453
+              if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].advices[b].drug.is_special_diseases != 1) {
454
+                this.$message.error('处方' + (i + 1).toString() + '属于特病类型处方,不能开非特病类型的药')
431
 
455
 
456
+                return
457
+              }
432
 
458
 
433
-              return
434
             }
459
             }
435
 
460
 
436
-          }
437
-
438
-          for (let c = 0; c < this.prescriptions[i].project.length; c++) {
439
-            if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].project[c].type == 2 && this.prescriptions[i].project[c].project.disease_directory != 1) {
440
-              this.$message.error('处方' + (i + 1).toString() + '属于特病类型处方,请开特病类型的项目')
441
-              return
442
-            }
461
+            for (let c = 0; c < this.prescriptions[i].project.length; c++) {
462
+              if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].project[c].type == 2 && this.prescriptions[i].project[c].project.disease_directory != 1) {
463
+                this.$message.error('处方' + (i + 1).toString() + '属于特病类型处方,请开特病类型的项目')
464
+                return
465
+              }
443
 
466
 
444
-            if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].project[c].type == 3 && this.prescriptions[i].project[c].good_info.is_special_diseases != 1) {
445
-              this.$message.error('处方' + (i + 1).toString() + '属于特病类型处方,请开特病类型的耗材')
446
-              return
467
+              if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].project[c].type == 3 && this.prescriptions[i].project[c].good_info.is_special_diseases != 1) {
468
+                this.$message.error('处方' + (i + 1).toString() + '属于特病类型处方,请开特病类型的耗材')
469
+                return
470
+              }
447
             }
471
             }
448
           }
472
           }
449
         }
473
         }
1371
         //   }
1395
         //   }
1372
         if (this.curDrugs.length > 0) {
1396
         if (this.curDrugs.length > 0) {
1373
           for (let i = 0; i < this.curDrugs.length; i++) {
1397
           for (let i = 0; i < this.curDrugs.length; i++) {
1374
-            if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
1375
-              this.$message.error('该处方属于特病类型处方,开非特病类型的药')
1376
-              return
1398
+            if(this.$store.getters.xt_user.org.id != 10206) {
1399
+
1400
+              if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
1401
+                this.$message.error('该处方属于特病类型处方,开非特病类型的药')
1402
+                return
1403
+              }
1377
             }
1404
             }
1378
 
1405
 
1379
           }
1406
           }
1380
         }
1407
         }
1381
         if (this.teamList.length > 0) {
1408
         if (this.teamList.length > 0) {
1382
           for (let i = 0; i < this.teamList.length; i++) {
1409
           for (let i = 0; i < this.teamList.length; i++) {
1383
-            if (this.curPrescriptions.med_type == 14 && this.teamList[i].is_special_diseases != 1) {
1384
-              setTimeout(() => {
1385
-                this.$message.error('该处方属于特病类型处方,请开特病类型的项目')
1386
-              }, 100)
1387
-              // return
1410
+            if(this.$store.getters.xt_user.org.id != 10206) {
1411
+              if (this.curPrescriptions.med_type == 14 && this.teamList[i].is_special_diseases != 1) {
1412
+                setTimeout(() => {
1413
+                  this.$message.error('该处方属于特病类型处方,请开特病类型的项目')
1414
+                }, 100)
1415
+                // return
1416
+              }
1388
             }
1417
             }
1389
 
1418
 
1390
           }
1419
           }
1404
 
1433
 
1405
         if (this.curDrugs.length == 0) {
1434
         if (this.curDrugs.length == 0) {
1406
           for (let i = 0; i < this.curDrugs.length; i++) {
1435
           for (let i = 0; i < this.curDrugs.length; i++) {
1407
-            if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
1408
-              this.$message.error('该处方属于特病类型处方,开非特病类型的药')
1409
-              return
1436
+            if(this.$store.getters.xt_user.org.id != 10206) {
1437
+              if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
1438
+                this.$message.error('该处方属于特病类型处方,开非特病类型的药')
1439
+                return
1440
+              }
1410
             }
1441
             }
1411
 
1442
 
1412
           }
1443
           }

+ 7 - 1
src/xt_pages/outpatientDoctorStation/template/printOne.vue 查看文件

39
               科室:{{ item.info ? getDepart(item.info.departments) : "" }}
39
               科室:{{ item.info ? getDepart(item.info.departments) : "" }}
40
             </div>
40
             </div>
41
             <div style="margin-bottom: 10px" v-if="org_id == 10537">
41
             <div style="margin-bottom: 10px" v-if="org_id == 10537">
42
-              身份证号:{{item.patient.id_card_no}}
42
+              身份证号:{{newHisPatient.id_card_no | testfile}}
43
             </div>
43
             </div>
44
             <div style="margin-bottom: 10px" v-else>
44
             <div style="margin-bottom: 10px" v-else>
45
               医保卡号:
45
               医保卡号:
436
       operators: [],
436
       operators: [],
437
       doctorList_1: [],
437
       doctorList_1: [],
438
     };
438
     };
439
+  },filters: {
440
+    testfile (value) {
441
+      const start = value.slice(0, 6)
442
+      const end = value.slice(-4)
443
+      return `${start}******${end}`
444
+    }
439
   },
445
   },
440
   methods: {
446
   methods: {
441
     // 电子签名
447
     // 电子签名