Преглед изворни кода

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

csx пре 3 година
родитељ
комит
f6fc512a11

+ 14 - 0
src/api/his/his.js Прегледај датотеку

@@ -482,3 +482,17 @@ export function preSettle(params) {
482 482
 
483 483
 
484 484
 
485
+export function getPrivateExpenses(params) {
486
+  return request({
487
+    url: "/api/privateexpenses/get",
488
+    method: "get",
489
+    params:params,
490
+  });
491
+}
492
+
493
+
494
+
495
+
496
+
497
+
498
+

+ 1 - 0
src/xt_pages/hospitalStation/outpatientChargesManagement.vue Прегледај датотеку

@@ -3139,6 +3139,7 @@
3139 3139
         let paramsObj = {
3140 3140
           order_id: this.hisPatientInfo.id,
3141 3141
           patient_id: this.hisPatientInfo.patient_id,
3142
+          record_time:this.record_date,
3142 3143
           name:this.hisPatientInfo.name,
3143 3144
           gend:this.hisPatientInfo.gend,
3144 3145
           setl_time:this.hisPatientInfo.out_hosptial_time

+ 2 - 2
src/xt_pages/outpatientCharges/components/registerDialog.vue Прегледај датотеку

@@ -219,7 +219,7 @@
219 219
 
220 220
         form: {
221 221
           id: '',
222
-          settlement_value: '',
222
+          settlement_value: 1,
223 223
           medical_insurance_card: '',
224 224
           name: '',
225 225
           gender: '',
@@ -478,7 +478,7 @@
478 478
         this.visibility = true
479 479
         // this.form = Object.assign({}, this.resetForm)
480 480
         this.form.id = 0
481
-        this.form.settlement_value = ''
481
+        this.form.settlement_value = 1
482 482
         this.form.medical_insurance_card = ''
483 483
         this.form.name = ''
484 484
         this.form.gender = ''

+ 35 - 1
src/xt_pages/outpatientCharges/components/registerDialog9504.vue Прегледај датотеку

@@ -173,10 +173,11 @@
173 173
 </template>
174 174
 
175 175
 <script>
176
-  import {uParseTime} from "@/utils/tools";
176
+  import {uParseTime,jsGetAge} from "@/utils/tools";
177 177
   import axios from 'axios'
178 178
   import {PostSearch} from '@/api/patient'
179 179
   import {getDictionaryDataConfig} from '@/utils/data'
180
+
180 181
   export default {
181 182
     name: 'registerDialog9504',
182 183
 
@@ -454,6 +455,23 @@
454 455
                 that.form.phone = patient.phone
455 456
                 that.form.id_card = patient.id_card_no
456 457
                 that.form.medical_insurance_card = response.data.data.health_card_no
458
+
459
+                var thisLen = that.form.id_card.length
460
+                var birth = ''
461
+                if (thisLen == 15) {
462
+                  birth = '19' + that.form.id_card.substr(6, 6)
463
+                } else {
464
+                  birth = that.form.id_card.substr(6, 8)
465
+                }
466
+                var births =
467
+                  birth.substr(0, 4) +
468
+                  '-' +
469
+                  birth.substr(4, 2) +
470
+                  '-' +
471
+                  birth.substr(6, 2)
472
+                that.form.age = jsGetAge(births, '-')
473
+
474
+
457 475
               } else if (that.form.id_card_type == 2) {
458 476
                 this.form.id = patient.id
459 477
                 that.form.name = patient.name
@@ -462,6 +480,21 @@
462 480
                 that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
463 481
                 that.form.phone = patient.phone
464 482
                 that.form.id_card = patient.id_card_no
483
+
484
+                var thisLen = that.form.id_card.length
485
+                var birth = ''
486
+                if (thisLen == 15) {
487
+                  birth = '19' + that.form.id_card.substr(6, 6)
488
+                } else {
489
+                  birth = that.form.id_card.substr(6, 8)
490
+                }
491
+                var births =
492
+                  birth.substr(0, 4) +
493
+                  '-' +
494
+                  birth.substr(4, 2) +
495
+                  '-' +
496
+                  birth.substr(6, 2)
497
+                that.form.age = jsGetAge(births, '-')
465 498
               }
466 499
               that.$message({message: '读卡成功', type: 'success'})
467 500
 
@@ -489,6 +522,7 @@
489 522
         this.form.id_card_type = 1
490 523
         this.form.certificates = 1
491 524
         this.form.medical_care = 11
525
+        this.form.settlement_value = 1
492 526
 
493 527
         // if( this.form.social_type == 0){
494 528
         //   this.form.social_type = ""

+ 104 - 83
src/xt_pages/outpatientCharges/newStatementPrintTwo.vue Прегледај датотеку

@@ -28,6 +28,9 @@
28 28
   import { getDialysisRecord } from '@/api/dialysis'
29 29
   import { getDataConfig } from '@/utils/data'
30 30
   import { jsGetAge, uParseTime } from '@/utils/tools'
31
+  import { getPrivateExpenses } from '@/api/his/his'
32
+
33
+
31 34
   import axios from 'axios'
32 35
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
33 36
   import printOne from './newTreatTemplate/printOne'
@@ -110,113 +113,131 @@
110 113
 
111 114
       },
112 115
       getInfo(obj) {
113
-        if (this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 10138) {
114
-          var that = this;
115
-          axios.get('http://127.0.0.1:9532/sz/api/settle/query', {
116
-            params: obj
117
-          })
118
-            .then(function (response) {
119
-              if (response.data.state == 0) {
120
-                this.$message.error(response.data.msg);
121
-                return false
122
-              } else {
123
-                if (response.data.data.failed_code == -10) {
124
-                  // that.$message.error(response.data.data.msg)
125
-                  that.$confirm(response.data.data.msg, '医保错误信息', {
126
-                    confirmButtonText: '确 定',
127
-                    type: 'warning'
128
-                  }).then(() => {
129
-
130
-                  }).catch(() => {
131
-                  })
116
+        if (obj.balance_accounts_type == 2){
117
+          let params = {
118
+            his_patient_id: obj.his_patient_id,
119
+            id: obj.order_id,
132 120
 
133
-                } else {
134
-
135
-                  console.log("~~~~");
136
-                  that.info = response.data.data.result;
137
-                  console.log(that.info);
138
-
139
-                  that.info['patient_info']= response.data.data.patient_info
140
-                  that.info['dialysis_no'] = response.data.data.dialysis_no
141
-                  that.info['org_code'] = response.data.data.org_code;
142
-                  that.info['patient_name'] = response.data.data.patient_name;
143
-                  that.info['doctor_code'] = response.data.data.doctor_code;
144
-                  that.info['doctor_name'] = response.data.data.doctor_name;
145
-                  if(response.data.data.health_card_no_two.length == 0){
146
-                    that.info['health_card_no'] = response.data.data.health_card_no
147
-                  }else{
148
-                    that.info['health_card_no'] = response.data.data.health_card_no_two
149
-                  }
121
+          }
122
+          getPrivateExpenses(params).then(response => {
123
+            if (response.data.state == 0) {
124
+              this.$message.error(response.data.msg)
150 125
 
151
-                  that.info['order_number'] = response.data.data.order_number;
126
+              return false
127
+            } else {
128
+              console.log(response.data.data)
152 129
 
153
-                  that.info['department'] =  response.data.data.department;
154
-                  that.info['yiliao_leibie'] =  response.data.data.yiliao_leibie;
130
+            }
131
+          })
155 132
 
156
-                  that.info['before_money'] =  response.data.data.before_money;
157
-                  that.info['after_money'] =   response.data.data.after_money;
158 133
 
159
-                  that.info['org_name'] = that.$store.getters.xt_user.org.org_name;
160
-                  console.log("~~~~" + that.info);
134
+        }else {
161 135
 
162
-                  var name_arr = [];
163
-                  var spec_arr = [];
164
-                  var count_arr = [];
165
-                  var price_arr = [];
166
-                  var total_arr = [];
167
-                  for (let i = 0; i < that.info.transBody.outputlist1.length; i++) {
168
-                    name_arr.push(that.info.transBody.outputlist1[i].ake006);
169
-                    spec_arr.push(that.info.transBody.outputlist1[i].aka074);
170
-                    count_arr.push(that.info.transBody.outputlist1[i].akc226);
171
-                    price_arr.push(that.info.transBody.outputlist1[i].akc225);
172
-                    total_arr.push(that.info.transBody.outputlist1[i].akc264)
173
-                  }
136
+          if (this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 10138) {
137
+            var that = this;
138
+            axios.get('http://127.0.0.1:9532/sz/api/settle/query', {
139
+              params: obj
140
+            })
141
+              .then(function(response) {
142
+                if (response.data.state == 0) {
143
+                  this.$message.error(response.data.msg);
144
+                  return false
145
+                } else {
146
+                  if (response.data.data.failed_code == -10) {
147
+                    // that.$message.error(response.data.data.msg)
148
+                    that.$confirm(response.data.data.msg, '医保错误信息', {
149
+                      confirmButtonText: '确 定',
150
+                      type: 'warning'
151
+                    }).then(() => {
152
+
153
+                    }).catch(() => {
154
+                    })
155
+
156
+                  } else {
157
+
158
+                    console.log("~~~~");
159
+                    that.info = response.data.data.result;
160
+                    console.log(that.info);
161
+
162
+                    that.info['patient_info'] = response.data.data.patient_info
163
+                    that.info['dialysis_no'] = response.data.data.dialysis_no
164
+                    that.info['org_code'] = response.data.data.org_code;
165
+                    that.info['patient_name'] = response.data.data.patient_name;
166
+                    that.info['doctor_code'] = response.data.data.doctor_code;
167
+                    that.info['doctor_name'] = response.data.data.doctor_name;
168
+                    if (response.data.data.health_card_no_two.length == 0) {
169
+                      that.info['health_card_no'] = response.data.data.health_card_no
170
+                    } else {
171
+                      that.info['health_card_no'] = response.data.data.health_card_no_two
172
+                    }
174 173
 
175
-                  console.log("~~~" + that.info);
174
+                    that.info['order_number'] = response.data.data.order_number;
176 175
 
177
-                  that.info['name_arr'] = name_arr;
178
-                  that.info['spec_arr'] = spec_arr;
179
-                  that.info['count_arr'] = count_arr;
180
-                  that.info['price_arr'] = price_arr;
181
-                  that.info['total_arr'] = total_arr;
182
-                  that.info['record_date'] = obj.record_time;
176
+                    that.info['department'] = response.data.data.department;
177
+                    that.info['yiliao_leibie'] = response.data.data.yiliao_leibie;
183 178
 
184
-                  console.log("~~" + that.info)
179
+                    that.info['before_money'] = response.data.data.before_money;
180
+                    that.info['after_money'] = response.data.data.after_money;
185 181
 
182
+                    that.info['org_name'] = that.$store.getters.xt_user.org.org_name;
183
+                    console.log("~~~~" + that.info);
186 184
 
187
-                  let type_arr = []
188
-                  for (let i = 0; i < that.info.transBody.outputlist1.length; i++) {
189
-                    type_arr.push(that.info.transBody.outputlist1[i].aka111)
190
-                  }
185
+                    var name_arr = [];
186
+                    var spec_arr = [];
187
+                    var count_arr = [];
188
+                    var price_arr = [];
189
+                    var total_arr = [];
190
+                    for (let i = 0; i < that.info.transBody.outputlist1.length; i++) {
191
+                      name_arr.push(that.info.transBody.outputlist1[i].ake006);
192
+                      spec_arr.push(that.info.transBody.outputlist1[i].aka074);
193
+                      count_arr.push(that.info.transBody.outputlist1[i].akc226);
194
+                      price_arr.push(that.info.transBody.outputlist1[i].akc225);
195
+                      total_arr.push(that.info.transBody.outputlist1[i].akc264)
196
+                    }
191 197
 
198
+                    console.log("~~~" + that.info);
192 199
 
193
-                  let  typeArr =  that.unique(type_arr)
200
+                    that.info['name_arr'] = name_arr;
201
+                    that.info['spec_arr'] = spec_arr;
202
+                    that.info['count_arr'] = count_arr;
203
+                    that.info['price_arr'] = price_arr;
204
+                    that.info['total_arr'] = total_arr;
205
+                    that.info['record_date'] = obj.record_time;
194 206
 
195
-                  that.info['new_detail_list'] = []
207
+                    console.log("~~" + that.info)
196 208
 
197
-                  for(let i = 0; i <  typeArr.length; i++){
198
-                    let obj = {
199
-                      aka111:typeArr[i],
200
-                      details:[],
201
-                      total:0
209
+                    let type_arr = []
210
+                    for (let i = 0; i < that.info.transBody.outputlist1.length; i++) {
211
+                      type_arr.push(that.info.transBody.outputlist1[i].aka111)
202 212
                     }
203 213
 
204
-                    for(let b = 0; b < that.info.transBody.outputlist1.length;b++){
205
-                        if(typeArr[i] == that.info.transBody.outputlist1[b].aka111){
214
+                    let typeArr = that.unique(type_arr)
215
+
216
+                    that.info['new_detail_list'] = []
217
+
218
+                    for (let i = 0; i < typeArr.length; i++) {
219
+                      let obj = {
220
+                        aka111: typeArr[i],
221
+                        details: [],
222
+                        total: 0
223
+                      }
224
+
225
+                      for (let b = 0; b < that.info.transBody.outputlist1.length; b++) {
226
+                        if (typeArr[i] == that.info.transBody.outputlist1[b].aka111) {
206 227
                           obj.details.push(that.info.transBody.outputlist1[b])
207 228
                           obj.total += that.info.transBody.outputlist1[b].akc264
208 229
                         }
230
+                      }
231
+                      that.info.new_detail_list.push(obj)
209 232
                     }
210
-                    that.info.new_detail_list.push(obj)
211
-                  }
212
-
213 233
 
234
+                  }
214 235
                 }
215
-              }
216
-            })
217
-            .catch(function (error) {
236
+              })
237
+              .catch(function(error) {
218 238
 
219
-            });
239
+              });
240
+          }
220 241
         }
221 242
       }, unique(array) {
222 243
 

+ 2 - 2
src/xt_pages/outpatientCharges/newTreatTemplate/printTwo.vue Прегледај датотеку

@@ -19,7 +19,7 @@
19 19
                 </div>
20 20
                 <div style="float:right">金额单位:元</div>
21 21
             </div>
22
-            <div class="min-height:300px;">
22
+            <div style="min-height: 300px;">
23 23
               <table border='1' style="width:100%;" cellspacing="0">
24 24
                   <tr>
25 25
                       <td width="70">类别</td>
@@ -41,7 +41,7 @@
41 41
                         <td>{{subItem.akc226}}</td>
42 42
                         <td>{{subItem.akc225}}</td>
43 43
                         <td>{{ subItem.akc264}}</td>
44
-                        <td :colspan="item.details.length" v-if="index == 0">{{ item.total }}</td>
44
+                        <td :rowspan="item.details.length" v-if="index == 0" style="vertical-align: middle;text-align: center;">{{ item.total.toFixed(2) }}</td>
45 45
                       </tr>
46 46
                   </div>
47 47
                   <tr>

Разлика између датотеке није приказан због своје велике величине
+ 684 - 560
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue


+ 34 - 0
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Прегледај датотеку

@@ -2494,6 +2494,40 @@
2494 2494
 
2495 2495
       comfirm() {
2496 2496
 
2497
+        // if(this.curStatus == 1  && this.rightTab == 2){
2498
+        //   for(let i = 0; i < this.curDrugs.length; i++){
2499
+        //     if(this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138 || this.$store.getters.xt_user.org_id == 10028){
2500
+        //
2501
+        //       if(this.curPrescriptions.med_type != 13 && this.curDrugs[i].drug.is_special_diseases == 1){
2502
+        //         this.$message.error('该处方不属于特病类型处方,无法开特病类型的药')
2503
+        //         return
2504
+        //       }
2505
+        //
2506
+        //       if(this.curPrescriptions.med_type == 13 && this.curDrugs[i].drug.is_special_diseases != 1){
2507
+        //         this.$message.error('该处方属于特病类型处方,开非特病类型的药')
2508
+        //         return
2509
+        //       }
2510
+        //
2511
+        //
2512
+        //     }else{
2513
+        //
2514
+        //       if(this.curPrescriptions.med_type != 14 && this.curDrugs[i].drug.is_special_diseases == 1){
2515
+        //         this.$message.error('该处方不属于特病类型处方,无法开特病类型的药')
2516
+        //         return
2517
+        //       }
2518
+        //
2519
+        //       if(this.curPrescriptions.med_type == 14 && this.curDrugs[i].drug.is_special_diseases != 1){
2520
+        //         this.$message.error('该处方属于特病类型处方,开非特病类型的药')
2521
+        //         return
2522
+        //       }
2523
+        //
2524
+        //
2525
+        //
2526
+        //     }
2527
+        //
2528
+        //   }
2529
+        // }
2530
+
2497 2531
         // if (this.curPrescriptions.order_status == 2) {
2498 2532
         //   this.$message.error('该处方已经结算,无法继续添加药品或者项目')
2499 2533
         //   this.teamList = []

+ 33 - 0
src/xt_pages/outpatientDoctorStation/prescriptionTemplatedetail.vue Прегледај датотеку

@@ -1216,6 +1216,39 @@
1216 1216
         //   this.$refs.multipleTable.clearSelection()
1217 1217
         //   return
1218 1218
         // }
1219
+        // if(this.curStatus == 1  && this.rightTab == 2){
1220
+        //   for(let i = 0; i < this.curDrugs.length; i++){
1221
+        //     if(this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138 || this.$store.getters.xt_user.org_id == 10028){
1222
+        //
1223
+        //       if(this.curPrescriptions.med_type != 13 && this.curDrugs[i].drug.is_special_diseases == 1){
1224
+        //         this.$message.error('该处方不属于特病类型处方,无法开特病类型的药')
1225
+        //         return
1226
+        //       }
1227
+        //
1228
+        //       if(this.curPrescriptions.med_type == 13 && this.curDrugs[i].drug.is_special_diseases != 1){
1229
+        //         this.$message.error('该处方属于特病类型处方,开非特病类型的药')
1230
+        //         return
1231
+        //       }
1232
+        //
1233
+        //
1234
+        //     }else{
1235
+        //
1236
+        //       if(this.curPrescriptions.med_type != 14 && this.curDrugs[i].drug.is_special_diseases == 1){
1237
+        //         this.$message.error('该处方不属于特病类型处方,无法开特病类型的药')
1238
+        //         return
1239
+        //       }
1240
+        //
1241
+        //       if(this.curPrescriptions.med_type == 14 && this.curDrugs[i].drug.is_special_diseases != 1){
1242
+        //         this.$message.error('该处方属于特病类型处方,开非特病类型的药')
1243
+        //         return
1244
+        //       }
1245
+        //
1246
+        //
1247
+        //
1248
+        //     }
1249
+        //
1250
+        //   }
1251
+        // }
1219 1252
 
1220 1253
         if (this.curStatus == 1 && this.rightTab == 2) {
1221 1254
           this.$message.error('改处方是药品,无法添加项目')

Разлика између датотеке није приказан због своје велике величине
+ 671 - 550
src/xt_pages/outpatientRegistration/index.vue