Browse Source

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

csx 3 years ago
parent
commit
f9a5fa2455

+ 13 - 11
src/xt_pages/outpatientCharges/costComparison.vue View File

652
                   '姓名': this.fromData[i].psn_name,
652
                   '姓名': this.fromData[i].psn_name,
653
                   '单位名称': this.fromData[i].psn_name,
653
                   '单位名称': this.fromData[i].psn_name,
654
                   '个人编号': this.fromData[i].psn_no,
654
                   '个人编号': this.fromData[i].psn_no,
655
-                  '门诊号': this.fromData[i].mdtrt_id,
655
+                  '门诊流水号': this.fromData[i].mdtrt_id,
656
                   '挂号日期': this.getTimes(this.fromData[i].settle_accounts_date),
656
                   '挂号日期': this.getTimes(this.fromData[i].settle_accounts_date),
657
-                  '挂号科室':  "血透室",
657
+                  '科室名称':  "血透室",
658
                   '门诊费用': this.fromData[i].medfee_sumamt,
658
                   '门诊费用': this.fromData[i].medfee_sumamt,
659
+                  '医保支付': this.fromData[i].fund_pay_sumamt,
659
                   '自费': this.fromData[i].psn_cash_pay,
660
                   '自费': this.fromData[i].psn_cash_pay,
660
                   '起付线I': this.fromData[i].act_pay_dedc,
661
                   '起付线I': this.fromData[i].act_pay_dedc,
661
                   '按比例自付II': this.fromData[i].psn_cash_pay,
662
                   '按比例自付II': this.fromData[i].psn_cash_pay,
662
                   '小计I+II': this.fromData[i].act_pay_dedc + this.fromData[i].psn_cash_pay,
663
                   '小计I+II': this.fromData[i].act_pay_dedc + this.fromData[i].psn_cash_pay,
663
-                  '统筹基金': this.fromData[i].fund_pay_sumamt,
664
+                  '基本统筹基金': this.fromData[i].hifp_pay,
664
                   '公务员补助': this.fromData[i].cvlserv_pay,
665
                   '公务员补助': this.fromData[i].cvlserv_pay,
665
                   '单位补充保险': hifes_pay,
666
                   '单位补充保险': hifes_pay,
666
                   '煤矿补充保险': "0.00",
667
                   '煤矿补充保险': "0.00",
685
               }
686
               }
686
 
687
 
687
               import('@/vendor/Export2Excel').then(excel => {
688
               import('@/vendor/Export2Excel').then(excel => {
688
-                const tHeader = ['序号', '姓名', '单位名称','个人编号', '门诊号', '挂号日期','挂号科室','门诊费用','自费', '起付线I','按比例自付II','小计I+II','统筹基金','公务员补助','单位补充保险','煤矿补充保险','超封顶线费用','大额医疗保险应付', '透析补助', '大额合计', '实账支付额', '诊断', '血透次数', '置留管数量','备注']
689
-                const filterVal = ['序号', '姓名', '单位名称','个人编号', '门诊号', '挂号日期','挂号科室','门诊费用','自费', '起付线I','按比例自付II','小计I+II','统筹基金','公务员补助','单位补充保险','煤矿补充保险','超封顶线费用','大额医疗保险应付', '透析补助', '大额合计', '实账支付额', '诊断', '血透次数', '置留管数量','备注']
689
+                const tHeader = ['序号', '姓名', '单位名称','个人编号', '门诊流水号', '挂号日期','科室名称','门诊费用','医保支付','自费', '起付线I','按比例自付II','小计I+II','基本统筹基金','公务员补助','单位补充保险','煤矿补充保险','超封顶线费用','大额医疗保险应付', '透析补助', '大额合计', '实账支付额', '诊断', '血透次数', '置留管数量','备注']
690
+                const filterVal = ['序号', '姓名', '单位名称','个人编号', '门诊流水号', '挂号日期','科室名称','门诊费用','医保支付','自费', '起付线I','按比例自付II','小计I+II','基本统筹基金','公务员补助','单位补充保险','煤矿补充保险','超封顶线费用','大额医疗保险应付', '透析补助', '大额合计', '实账支付额', '诊断', '血透次数', '置留管数量','备注']
690
                 // const filterVal = [ '姓名', '身份证', '个人编号', '门诊流水号', '挂号日期', '起付线', '统筹基金', '个人支付', '个账支付', '现金支付', '总费用', '冲销标志']
691
                 // const filterVal = [ '姓名', '身份证', '个人编号', '门诊流水号', '挂号日期', '起付线', '统筹基金', '个人支付', '个账支付', '现金支付', '总费用', '冲销标志']
691
                 const merges = ['A1:A2', 'B1:B2', 'C1:E1', 'F1:H1', 'I1:K1', 'L1:N1', 'O1:Q1', 'R1:T1', 'U1:W1', 'X1:Z1', 'AA1:AC1', 'AD1:AF1', 'AG1:AI1', 'AJ1:AL1', 'AM1:AO1', 'AP1:AR1', 'AS1:AU1', 'AV1:AX1', 'AY1:BA1', 'BB1:BD1', 'BE1:BG1', 'BH1:BJ1', 'BK1:BM1']
692
                 const merges = ['A1:A2', 'B1:B2', 'C1:E1', 'F1:H1', 'I1:K1', 'L1:N1', 'O1:Q1', 'R1:T1', 'U1:W1', 'X1:Z1', 'AA1:AC1', 'AD1:AF1', 'AG1:AI1', 'AJ1:AL1', 'AM1:AO1', 'AP1:AR1', 'AS1:AU1', 'AV1:AX1', 'AY1:BA1', 'BB1:BD1', 'BE1:BG1', 'BH1:BJ1', 'BK1:BM1']
692
 
693
 
728
                   '诊断': this.GetDiagnosisName(this.fromData[i].diagnosis_id),
729
                   '诊断': this.GetDiagnosisName(this.fromData[i].diagnosis_id),
729
                   '挂号科室': "血透室",
730
                   '挂号科室': "血透室",
730
                   '门诊费用': this.fromData[i].medfee_sumamt,
731
                   '门诊费用': this.fromData[i].medfee_sumamt,
732
+                  '医保支付': this.fromData[i].fund_pay_sumamt,
731
                   '自费': this.fromData[i].psn_cash_pay,
733
                   '自费': this.fromData[i].psn_cash_pay,
732
-                  '起付线': this.fromData[i].act_pay_dedc,
733
-                  '按比例自付': this.fromData[i].psn_cash_pay,
734
+                  '起付线I': this.fromData[i].act_pay_dedc,
735
+                  '按比例自付II': this.fromData[i].psn_cash_pay,
734
                   "超封顶线费用": "0.00",
736
                   "超封顶线费用": "0.00",
735
-                  "合计": parseFloat(this.fromData[i].act_pay_dedc) + parseFloat(this.fromData[i].psn_cash_pay),
736
-                  '统筹基金': this.fromData[i].fund_pay_sumamt,
737
+                  "合计": parseFloat(this.fromData[i].act_pay_dedc)  + parseFloat(this.fromData[i].psn_cash_pay),
738
+                  '基本统筹基金': this.fromData[i].hifp_pay,
737
                   '大病保险': hifmi_pay,
739
                   '大病保险': hifmi_pay,
738
                   '医疗救助': this.fromData[i].maf_pay,
740
                   '医疗救助': this.fromData[i].maf_pay,
739
                   '实账支付额': "0.00",
741
                   '实账支付额': "0.00",
757
               }
759
               }
758
 
760
 
759
               import('@/vendor/Export2Excel').then(excel => {
761
               import('@/vendor/Export2Excel').then(excel => {
760
-                const tHeader = ['序号', '姓名','个人编号', '门诊号', '挂号日期', '诊断','挂号科室','门诊费用','自费', '起付线','按比例自付','超封顶线费用','合计','统筹基金','大病保险','医疗救助', '实账支付额', '血透次数', '置留管数量','备注']
761
-                const filterVal = ['序号', '姓名','个人编号', '门诊号', '挂号日期','诊断','挂号科室','门诊费用','自费', '起付线','按比例自付','超封顶线费用','合计','统筹基金','大病保险','医疗救助', '实账支付额', '血透次数', '置留管数量','备注']
762
+                const tHeader = ['序号', '姓名','个人编te号', '门诊号', '挂号日期', '诊断','挂号科室','门诊费用','医保支付','自费', '起付线', '起付线II','超封顶线费用','合计','统筹基金','大病保险','医疗救助', '实账支付额', '血透次数', '置留管数量','备注']
763
+                const filterVal = ['序号', '姓名','个人编号', '门诊号', '挂号日期','诊断','挂号科室','门诊费用','医保支付','自费', '起付线', '起付线II','超封顶线费用','合计','统筹基金','大病保险','医疗救助', '实账支付额', '血透次数', '置留管数量','备注']
762
                 // const filterVal = [ '姓名', '身份证', '个人编号', '门诊流水号', '挂号日期', '起付线', '统筹基金', '个人支付', '个账支付', '现金支付', '总费用', '冲销标志']
764
                 // const filterVal = [ '姓名', '身份证', '个人编号', '门诊流水号', '挂号日期', '起付线', '统筹基金', '个人支付', '个账支付', '现金支付', '总费用', '冲销标志']
763
                 const merges = ['A1:A2', 'B1:B2', 'C1:E1', 'F1:H1', 'I1:K1', 'L1:N1', 'O1:Q1', 'R1:T1', 'U1:W1', 'X1:Z1', 'AA1:AC1', 'AD1:AF1', 'AG1:AI1', 'AJ1:AL1', 'AM1:AO1', 'AP1:AR1', 'AS1:AU1', 'AV1:AX1', 'AY1:BA1', 'BB1:BD1', 'BE1:BG1', 'BH1:BJ1', 'BK1:BM1']
765
                 const merges = ['A1:A2', 'B1:B2', 'C1:E1', 'F1:H1', 'I1:K1', 'L1:N1', 'O1:Q1', 'R1:T1', 'U1:W1', 'X1:Z1', 'AA1:AC1', 'AD1:AF1', 'AG1:AI1', 'AJ1:AL1', 'AM1:AO1', 'AP1:AR1', 'AS1:AU1', 'AV1:AX1', 'AY1:BA1', 'BB1:BD1', 'BE1:BG1', 'BH1:BJ1', 'BK1:BM1']
764
 
766
 

+ 5 - 5
src/xt_pages/outpatientDoctorStation/components/prescriptionTable.vue View File

495
         }
495
         }
496
       },
496
       },
497
       changePrescribingNumber(scope) {
497
       changePrescribingNumber(scope) {
498
-        //  var max_number = 0 
498
+        //  var max_number = 0
499
         //  if(scope.row.prescribing_number_unit == scope.row.drug.max_unit){
499
         //  if(scope.row.prescribing_number_unit == scope.row.drug.max_unit){
500
-        //     max_number = parseInt(scope.row.prescribing_number) * scope.row.drug.min_number 
500
+        //     max_number = parseInt(scope.row.prescribing_number) * scope.row.drug.min_number
501
         //  }
501
         //  }
502
         //  if(scope.row.prescribing_number_unit == scope.row.drug.min_unit){
502
         //  if(scope.row.prescribing_number_unit == scope.row.drug.min_unit){
503
         //    max_number = parseInt(scope.row.prescribing_number)
503
         //    max_number = parseInt(scope.row.prescribing_number)
527
         //        if(adviceList.prescribing_number_unit == adviceList.drug.min_unit){
527
         //        if(adviceList.prescribing_number_unit == adviceList.drug.min_unit){
528
         //           out_count = adviceList.prescribing_number
528
         //           out_count = adviceList.prescribing_number
529
         //        }
529
         //        }
530
-               
530
+
531
         //        //如果更改的数量大于修改之前的数量
531
         //        //如果更改的数量大于修改之前的数量
532
         //        if(max_number > out_count){
532
         //        if(max_number > out_count){
533
         //          if((max_number - out_count)>stock_number){
533
         //          if((max_number - out_count)>stock_number){
543
         //     this.$message.error(scope.row.drug_name + '库存不足')
543
         //     this.$message.error(scope.row.drug_name + '库存不足')
544
         //    }
544
         //    }
545
         // }
545
         // }
546
-        
546
+
547
 
547
 
548
         if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
548
         if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
549
           if (parseInt(scope.row.prescribing_number) > scope.row.drug.total) {
549
           if (parseInt(scope.row.prescribing_number) > scope.row.drug.total) {
604
         }
604
         }
605
         return num
605
         return num
606
       },
606
       },
607
-     
607
+
608
     }, mounted() {
608
     }, mounted() {
609
       this.getInitData()
609
       this.getInitData()
610
 
610
 

+ 50 - 16
src/xt_pages/outpatientDoctorStation/components/prescriptionTemplateTable.vue View File

16
                 </template>
16
                 </template>
17
             </el-table-column>
17
             </el-table-column>
18
 
18
 
19
-            <el-table-column align="center" prop="single_dose" width="120" label="单次用量">
20
-                <template slot-scope="scope">
21
-                    <div style="display:flex;align-items:center;">
22
-                        <el-input v-model="scope.row.single_dose" @input="getSingleDose(scope)"
23
-                                  style="width:50%;"></el-input>
24
-                        <!-- <div>{{scope.row.single_dose_unit}}</div> -->
25
-                        <el-select v-model="scope.row.single_dose_unit" placeholder="请选择" style="width:50%;"
26
-                                   @change="getAllChange(scope)">
27
-                            <el-option :label="scope.row.drug.min_unit" :value="scope.row.drug.min_unit"></el-option>
28
-                            <el-option :label="scope.row.drug.dose_unit"
29
-                                       v-if="scope.row.drug.dose_unit != scope.row.drug.min_unit"
30
-                                       :value="scope.row.drug.dose_unit"></el-option>
31
-                        </el-select>
32
-                    </div>
33
-                </template>
34
-            </el-table-column>
19
+          <el-table-column align="center" prop="single_dose" width="120" label="单次用量">
20
+            <template slot-scope="scope">
21
+              <div style="display:flex;align-items:center;">
22
+                <el-input v-model="scope.row.single_dose" @input="getAllChange(scope)"
23
+                          style="width:50%;"></el-input>
24
+                <!-- <div>{{scope.row.single_dose_unit}}</div> -->
25
+                <el-select v-model="scope.row.single_dose_unit" placeholder="请选择" style="width:50%;"
26
+                           @change="getAllChange(scope)">
27
+                  <el-option :label="scope.row.drug.min_unit" :value="scope.row.drug.min_unit"></el-option>
28
+                  <el-option :label="scope.row.drug.dose_unit"
29
+                             v-if="scope.row.drug.dose_unit != scope.row.drug.min_unit"
30
+                             :value="scope.row.drug.dose_unit"></el-option>
31
+                </el-select>
32
+              </div>
33
+            </template>
34
+          </el-table-column>
35
             <el-table-column align="center" prop="delivery_way" width="100" label="用法">
35
             <el-table-column align="center" prop="delivery_way" width="100" label="用法">
36
                 <template slot-scope="scope">
36
                 <template slot-scope="scope">
37
                     <el-select v-model="scope.row.delivery_way" placeholder="请选择">
37
                     <el-select v-model="scope.row.delivery_way" placeholder="请选择">
564
         //     this.$message.error(scope.row.drug_name + '库存不足')
564
         //     this.$message.error(scope.row.drug_name + '库存不足')
565
         //   }
565
         //   }
566
         // }
566
         // }
567
+      },      getAllChange(scope) {
568
+        if (scope.row.drug.min_unit == scope.row.single_dose_unit) {
569
+          if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
570
+            console.log(1)
571
+            scope.row.prescribing_number = scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)
572
+          } else {
573
+            console.log(12)
574
+            scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1)) * (scope.row.day ? scope.row.day : 1) / scope.row.drug.min_number)
575
+          }
576
+        } else {
577
+          if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
578
+            console.log(123)
579
+            scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)) / scope.row.drug.dose)
580
+          } else {
581
+            console.log(1234)
582
+            scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)) / scope.row.drug.dose / scope.row.drug.min_number)
583
+          }
584
+        }
585
+        if (scope.row.prescribing_number == 0) {
586
+          scope.row.prescribing_number = 1
587
+        }
588
+        if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
589
+          // scope.row.retail_price = scope.row.drug.min_number / scope.row.retail_price
590
+          if (scope.row.prescribing_number > scope.row.drug.total) {
591
+            this.$message.error(scope.row.drug_name + '库存不足')
592
+          }
593
+        } else {
594
+          if ((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.total) {
595
+            this.$message.error(scope.row.drug_name + '库存不足')
596
+          }
597
+          // scope.row.retail_price = scope.row.drug.retail_price * scope.row.prescribing_number
598
+        }
599
+
567
       },
600
       },
601
+
568
       getSingleDose(scope) {
602
       getSingleDose(scope) {
569
         this.prescription.advices[scope.$index].prescribing_number = scope.row.single_dose * scope.row.day
603
         this.prescription.advices[scope.$index].prescribing_number = scope.row.single_dose * scope.row.day
570
       },
604
       },

+ 3 - 3
src/xt_pages/outpatientDoctorStation/template/printOne.vue View File

2
   <div id='prescriptionPrint'>
2
   <div id='prescriptionPrint'>
3
     <div v-for="(item,index) in advicePrint" :key="index">
3
     <div v-for="(item,index) in advicePrint" :key="index">
4
       <div id='prescription-print' class="prescription-print" style="page-break-after: always;">
4
       <div id='prescription-print' class="prescription-print" style="page-break-after: always;">
5
-          <div class="printTitle" v-if="item.med_type == '1111'">{{orgname}}第一类精神处方笺</div>
6
-          <div class="printTitle"  v-if="item.med_type == '1112'">{{orgname}}第二类精神处方笺</div>
7
-          <div class="printTitle" v-if="item.med_type != '1111' && item.med_type != '1112'">{{orgname}}处方笺</div>
5
+          <div class="printTitle" v-if="prescriptions[index].med_type == '1111'">{{orgname}}第一类精神处方笺</div>
6
+          <div class="printTitle"  v-if="prescriptions[index].med_type == '1112'">{{orgname}}第二类精神处方笺</div>
7
+          <div class="printTitle" v-if="prescriptions[index].med_type != '1111' && prescriptions[index].med_type != '1112'">{{orgname}}处方笺</div>
8
           <!--<div class="printTitle">{{orgname}}处方笺</div>-->
8
           <!--<div class="printTitle">{{orgname}}处方笺</div>-->
9
           <div class="infoTitle">
9
           <div class="infoTitle">
10
               <p>姓名:{{item.patient.name?item.patient.name:""}}</p>
10
               <p>姓名:{{item.patient.name?item.patient.name:""}}</p>

+ 3 - 3
src/xt_pages/outpatientDoctorStation/template/printSix.vue View File

6
         class="prescription-print"
6
         class="prescription-print"
7
         style="page-break-after: always"
7
         style="page-break-after: always"
8
       >
8
       >
9
-        <div class="printTitle" v-if="prescriptions[0].med_type == '1111'">
9
+        <div class="printTitle" v-if="prescriptions[index].med_type == '1111'">
10
           {{ orgname }}第一类精神处方笺
10
           {{ orgname }}第一类精神处方笺
11
         </div>
11
         </div>
12
-        <div class="printTitle" v-if="prescriptions[0].med_type == '1112'">
12
+        <div class="printTitle" v-if="prescriptions[index].med_type == '1112'">
13
           {{ orgname }}第二类精神处方笺
13
           {{ orgname }}第二类精神处方笺
14
         </div>
14
         </div>
15
         <div
15
         <div
16
-            v-if="prescriptions[0].med_type != '1112' && prescriptions[0].med_type != '1111'"
16
+            v-if="prescriptions[index].med_type != '1112' && prescriptions[index].med_type != '1111'"
17
           class="printTitle"
17
           class="printTitle"
18
         >
18
         >
19
           {{ orgname }}处方笺  普通
19
           {{ orgname }}处方笺  普通