Przeglądaj źródła

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

csx 3 lat temu
rodzic
commit
fd5e415799

+ 93 - 28
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Wyświetl plik

75
                        type="primary">挂号
75
                        type="primary">挂号
76
             </el-button>
76
             </el-button>
77
 
77
 
78
-
78
+            <el-button v-loading="loadingone" size="small"
79
+                       @click="open(20)"
80
+                       type="primary">查询备案信息
81
+            </el-button>
79
             <el-button size="small" @click="open(5)" type="primary"
82
             <el-button size="small" @click="open(5)" type="primary"
80
                        v-if="this.radio == 2  && this.hisPatientInfo.id > 0 && this.order.id > 0 &&  this.order.order_status == 2">
83
                        v-if="this.radio == 2  && this.hisPatientInfo.id > 0 && this.order.id > 0 &&  this.order.order_status == 2">
81
               退费
84
               退费
170
                             items.curPrescriptions.order.medfee_sumamt ? items.curPrescriptions.order.medfee_sumamt.toFixed(2) : getTotalFour(items.prescriptions) ? getTotalFour(items.prescriptions) : ''
173
                             items.curPrescriptions.order.medfee_sumamt ? items.curPrescriptions.order.medfee_sumamt.toFixed(2) : getTotalFour(items.prescriptions) ? getTotalFour(items.prescriptions) : ''
171
                           }}元</span></span>
174
                           }}元</span></span>
172
                         <span>基金支付金额:<span
175
                         <span>基金支付金额:<span
173
-                            style="color:red;">{{ items.curPrescriptions.order.hifp_pay ? items.curPrescriptions.order.hifp_pay.toFixed(2) : '' }}元</span></span>
176
+                            style="color:red;">{{
177
+                            items.curPrescriptions.order.hifp_pay ? items.curPrescriptions.order.hifp_pay.toFixed(2) : ''
178
+                          }}元</span></span>
174
                         <span>个人账户支付金额:<span
179
                         <span>个人账户支付金额:<span
175
-                            style="color:red;">{{ items.curPrescriptions.order.acct_pay ? items.curPrescriptions.order.acct_pay.toFixed(2) : '' }}元</span></span>
180
+                            style="color:red;">{{
181
+                            items.curPrescriptions.order.acct_pay ? items.curPrescriptions.order.acct_pay.toFixed(2) : ''
182
+                          }}元</span></span>
176
                         <span v-if="hisPatientInfo.balance_accounts_type != 2">个人支付金额:<span
183
                         <span v-if="hisPatientInfo.balance_accounts_type != 2">个人支付金额:<span
177
-                            style="color:red;">{{ items.curPrescriptions.order.psn_cash_pay ? items.curPrescriptions.order.psn_cash_pay.toFixed(2) : '' }}元</span></span>
184
+                            style="color:red;">{{
185
+                            items.curPrescriptions.order.psn_cash_pay ? items.curPrescriptions.order.psn_cash_pay.toFixed(2) : ''
186
+                          }}元</span></span>
178
                         <span v-if="hisPatientInfo.balance_accounts_type == 2">个人支付金额:<span
187
                         <span v-if="hisPatientInfo.balance_accounts_type == 2">个人支付金额:<span
179
-                            style="color:red;">{{ items.curPrescriptions.order.medfee_sumamt.toFixed(2) }}元</span></span>
188
+                            style="color:red;">{{
189
+                            items.curPrescriptions.order.medfee_sumamt.toFixed(2)
190
+                          }}元</span></span>
180
 
191
 
181
                         <span>个人账户金额:<span
192
                         <span>个人账户金额:<span
182
-                            style="color:red;">{{ items.curPrescriptions.order.balc ? items.curPrescriptions.order.balc.toFixed(2) : '' }}元</span></span>
193
+                            style="color:red;">{{
194
+                            items.curPrescriptions.order.balc ? items.curPrescriptions.order.balc.toFixed(2) : ''
195
+                          }}元</span></span>
183
 
196
 
184
                         <span v-if="items.curPrescriptions.order_status  == 1">待结算</span>
197
                         <span v-if="items.curPrescriptions.order_status  == 1">待结算</span>
185
                         <span v-if="items.curPrescriptions.order_status  == 2">已结算</span>
198
                         <span v-if="items.curPrescriptions.order_status  == 2">已结算</span>
356
                             items.curMonthPrescriptions.order.medfee_sumamt ? items.curMonthPrescriptions.order.medfee_sumamt.toFixed(2) : getTotalFour(items.month_prescriptions) ? getTotalFour(items.month_prescriptions) : ''
369
                             items.curMonthPrescriptions.order.medfee_sumamt ? items.curMonthPrescriptions.order.medfee_sumamt.toFixed(2) : getTotalFour(items.month_prescriptions) ? getTotalFour(items.month_prescriptions) : ''
357
                           }}元</span></span>
370
                           }}元</span></span>
358
                         <span>基金支付金额:<span
371
                         <span>基金支付金额:<span
359
-                            style="color:red;">{{ items.curMonthPrescriptions.order.hifp_pay ? items.curMonthPrescriptions.order.hifp_pay.toFixed(2) : '' }}元</span></span>
372
+                            style="color:red;">{{
373
+                            items.curMonthPrescriptions.order.hifp_pay ? items.curMonthPrescriptions.order.hifp_pay.toFixed(2) : ''
374
+                          }}元</span></span>
360
                         <span>个人账户支付金额:<span
375
                         <span>个人账户支付金额:<span
361
-                            style="color:red;">{{ items.curMonthPrescriptions.order.acct_pay ? items.curMonthPrescriptions.order.acct_pay.toFixed(2) : '' }}元</span></span>
376
+                            style="color:red;">{{
377
+                            items.curMonthPrescriptions.order.acct_pay ? items.curMonthPrescriptions.order.acct_pay.toFixed(2) : ''
378
+                          }}元</span></span>
362
                         <!--<span>个人支付金额:<span style="color:red;">{{ items.curMonthPrescriptions.order.psn_cash_pay?items.curMonthPrescriptions.order.psn_cash_pay:''}}元</span></span>-->
379
                         <!--<span>个人支付金额:<span style="color:red;">{{ items.curMonthPrescriptions.order.psn_cash_pay?items.curMonthPrescriptions.order.psn_cash_pay:''}}元</span></span>-->
363
 
380
 
364
                         <span v-if="hisPatientInfo.balance_accounts_type != 2">个人支付金额:<span
381
                         <span v-if="hisPatientInfo.balance_accounts_type != 2">个人支付金额:<span
365
-                            style="color:red;">{{ items.curMonthPrescriptions.order.psn_cash_pay ? items.curMonthPrescriptions.order.psn_cash_pay.toFixed(2) : '' }}元</span></span>
382
+                            style="color:red;">{{
383
+                            items.curMonthPrescriptions.order.psn_cash_pay ? items.curMonthPrescriptions.order.psn_cash_pay.toFixed(2) : ''
384
+                          }}元</span></span>
366
                         <span v-if="hisPatientInfo.balance_accounts_type == 2">个人支付金额:<span
385
                         <span v-if="hisPatientInfo.balance_accounts_type == 2">个人支付金额:<span
367
                             style="color:red;">{{ items.curMonthPrescriptions.order.medfee_sumamt.toFixed(2) }}元</span></span>
386
                             style="color:red;">{{ items.curMonthPrescriptions.order.medfee_sumamt.toFixed(2) }}元</span></span>
368
 
387
 
369
 
388
 
370
                         <span>个人账户金额:<span
389
                         <span>个人账户金额:<span
371
-                            style="color:red;">{{ items.curMonthPrescriptions.order.account_price ? items.curMonthPrescriptions.order.account_price.toFixed(2) : '' }}元</span></span>
390
+                            style="color:red;">{{
391
+                            items.curMonthPrescriptions.order.account_price ? items.curMonthPrescriptions.order.account_price.toFixed(2) : ''
392
+                          }}元</span></span>
372
 
393
 
373
                       </div>
394
                       </div>
374
 
395
 
468
         width="30%"
489
         width="30%"
469
     >
490
     >
470
       <span>是否修改医疗类型</span>
491
       <span>是否修改医疗类型</span>
471
-      <el-select style="width:50%;" v-model="temp_med_type" placeholder="医疗类型" @change="changevalue">
492
+      <el-select v-if="this.$store.getters.xt_user.org_id == 10188" style="width:50%;" v-model="temp_med_type"
493
+                 placeholder="医疗类型" @change="changevalue">
494
+        <el-option
495
+            v-for="(item,index) in registerThree"
496
+            :key="index"
497
+            :label="item.label"
498
+            :value="item.value">
499
+        </el-option>
500
+      </el-select>
501
+
502
+      <el-select v-if="this.$store.getters.xt_user.org_id != 10188" style="width:50%;" v-model="temp_med_type"
503
+                 placeholder="医疗类型" @change="changevalue">
472
         <el-option
504
         <el-option
473
             v-for="(item,index) in register"
505
             v-for="(item,index) in register"
474
             :key="index"
506
             :key="index"
598
         sick_type: '',
630
         sick_type: '',
599
         diagnosis: [],
631
         diagnosis: [],
600
         medical_care: '',
632
         medical_care: '',
601
-        diagnosis_time: "",
633
+        diagnosis_time: ''
602
       },
634
       },
603
       current_med_type: '',
635
       current_med_type: '',
604
       rules: {
636
       rules: {
633
       //   { value: '91', label: '新冠肺炎门诊' },
665
       //   { value: '91', label: '新冠肺炎门诊' },
634
 
666
 
635
       // ],
667
       // ],
636
-
637
       register: [
668
       register: [
638
         { value: 11, label: '普通门诊' },
669
         { value: 11, label: '普通门诊' },
639
-        // { value: 12, label: '门诊挂号' },
640
-        // { value: 13, label: '急诊' },
641
         { value: 14, label: '门诊特殊病' },
670
         { value: 14, label: '门诊特殊病' },
642
         { value: '1111', label: '精一' },
671
         { value: '1111', label: '精一' },
643
         { value: '1112', label: '精二' }
672
         { value: '1112', label: '精二' }
644
-        // { value: 15, label: '门诊统筹' },
645
-        // { value: 16, label: '门诊慢性病' },
646
-        // { value: 21, label: '普通住院' }
673
+      ],
674
+
675
+      registerThree: [
676
+        { value: 11, label: '普通门诊' },
677
+        { value: 14, label: '门诊特殊病' },
678
+        { value: '1111', label: '精一' },
679
+        { value: '1112', label: '精二' },
680
+        { value: '9933', label: '门诊特殊病(9933)' },
681
+        { value: '990602', label: '门诊特殊病(990602)' },
682
+        { value: '1402', label: '门诊特殊病(1402)' }
647
 
683
 
648
       ],
684
       ],
649
       register_two: [
685
       register_two: [
650
         { value: '11', label: '普通门诊' },
686
         { value: '11', label: '普通门诊' },
651
-        // { value: '12', label: '门诊挂号' },
652
-        // { value: '13', label: '急诊' },
653
-        { value: '14', label: '门诊特殊病' }
654
-        // { value: '15', label: '门诊统筹' },
655
-        // { value: '16', label: '门诊慢性病' },
656
-        // { value: '21', label: '普通住院' }
687
+        { value: '14', label: '门诊特殊病' },
688
+        { value: '9933', label: '门诊特殊病(9933)' },
689
+        { value: '990602', label: '门诊特殊病(990602)' },
690
+        { value: '1402', label: '门诊特殊病(1402)' }
657
 
691
 
658
       ],
692
       ],
659
       loading: false,
693
       loading: false,
756
     var nowMinutes = nowDate.getMinutes()
790
     var nowMinutes = nowDate.getMinutes()
757
     var nowSeconds = nowDate.getSeconds()
791
     var nowSeconds = nowDate.getSeconds()
758
 
792
 
759
-
760
     this.record_date =
793
     this.record_date =
761
         nowYear +
794
         nowYear +
762
         '-' +
795
         '-' +
764
         '-' +
797
         '-' +
765
         (nowDay < 10 ? '0' + nowDay : nowDay)
798
         (nowDay < 10 ? '0' + nowDay : nowDay)
766
 
799
 
767
-    this.form.diagnosis_time =  nowYear +
800
+    this.form.diagnosis_time = nowYear +
768
         '-' +
801
         '-' +
769
         (nowMonth < 10 ? '0' + nowMonth : nowMonth) +
802
         (nowMonth < 10 ? '0' + nowMonth : nowMonth) +
770
         '-' +
803
         '-' +
771
-        (nowDay < 10 ? '0' + nowDay : nowDay) +" " + (nowHours < 10 ? '0' + nowHours : nowHours) +
804
+        (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + (nowHours < 10 ? '0' + nowHours : nowHours) +
772
         ':' +
805
         ':' +
773
-        (nowMinutes < 10 ? '0' + nowMinutes : nowMinutes) +":"+ (nowSeconds < 10 ? '0' + nowSeconds : nowSeconds)
806
+        (nowMinutes < 10 ? '0' + nowMinutes : nowMinutes) + ':' + (nowSeconds < 10 ? '0' + nowSeconds : nowSeconds)
774
 
807
 
775
     this.getInitData()
808
     this.getInitData()
776
     //获取患者信息
809
     //获取患者信息
2400
             })
2433
             })
2401
             .catch(function(error) {
2434
             .catch(function(error) {
2402
             })
2435
             })
2436
+      } else if (index == 20) {
2437
+        var that = this
2438
+        let params = {
2439
+          'patient_id': this.patientInfo.id,
2440
+          'admin_user_id': this.$store.getters.xt_user.user.id
2441
+        }
2442
+        axios.get('http://127.0.0.1:9532/api/psn/info', {
2443
+          params: params
2444
+        })
2445
+            .then(function(response) {
2446
+              if (response.data.state == 0) {
2447
+                that.$message.error(response.data.msg)
2448
+                return false
2449
+              } else {
2450
+                that.$confirm(response.data.data.result, '备案信息', {
2451
+                  confirmButtonText: '确 定',
2452
+                  type: 'warning'
2453
+                }).then(() => {
2454
+
2455
+                }).catch(() => {
2456
+                })
2457
+              }
2458
+            })
2459
+            .catch(function(error) {
2460
+            })
2461
+
2403
       }
2462
       }
2404
     },
2463
     },
2405
     choosePatient() {
2464
     choosePatient() {
3352
           break
3411
           break
3353
         case 1112:
3412
         case 1112:
3354
           return '精二' + '处方' + index
3413
           return '精二' + '处方' + index
3414
+        case 9933:
3415
+          return '门诊特殊病(9933)' + '处方' + index
3416
+        case 990602:
3417
+          return '门诊特殊病(990602)' + '处方' + index
3418
+        case 1402:
3419
+          return '门诊特殊病(1402)' + '处方' + index
3355
           break
3420
           break
3356
       }
3421
       }
3357
     }, unique_four(array) {
3422
     }, unique_four(array) {