Browse Source

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

28169 1 year ago
parent
commit
a52d00a872

+ 2 - 2
src/xt_pages/outpatientCharges/invoicePrint.vue View File

18
           </div>
18
           </div>
19
           <printTwo v-if="org_id == 10106" :paramsObj="invoiceParams"></printTwo>
19
           <printTwo v-if="org_id == 10106" :paramsObj="invoiceParams"></printTwo>
20
           <printFour v-if="org_id == 10215 || org_id == 4 " :paramsObj="invoiceParams"></printFour>
20
           <printFour v-if="org_id == 10215 || org_id == 4 " :paramsObj="invoiceParams"></printFour>
21
-          <printFive v-if="org_id == 10188 " :paramsObj="invoiceParams"></printFive>
21
+          <printFive v-if="org_id == 10188 || org_id == 0" :paramsObj="invoiceParams"></printFive>
22
           <!-- <printthirteen v-if="org_id == 10188 || org_id == 0 " :paramsObj="invoiceParams"></printthirteen> -->
22
           <!-- <printthirteen v-if="org_id == 10188 || org_id == 0 " :paramsObj="invoiceParams"></printthirteen> -->
23
 <!--         <printEight v-if="org_id == 10387 || org_id == 0" :paramsObj="invoiceParams"></printEight>-->
23
 <!--         <printEight v-if="org_id == 10387 || org_id == 0" :paramsObj="invoiceParams"></printEight>-->
24
           <print-eight v-if="org_id == 10387" :paramsObj="invoiceParams"></print-eight>
24
           <print-eight v-if="org_id == 10387" :paramsObj="invoiceParams"></print-eight>
137
           });
137
           });
138
         }else{
138
         }else{
139
           const style =
139
           const style =
140
-            '@media print {#invoice-print{font-size:12px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoMain{display: flex;flex-wrap: wrap;padding:0 10px;margin-top:10px;}.infoMain .infoP{width: 33%;}.chargeBox{border: 1px solid #000;}.chargeUl{display:flex;justify-content: space-between;text-align: center;}.chargeUl p{line-height: 1px;}.chargeP{line-height: 1px;padding-bottom:16px;}.moneyBox{display: flex;justify-content: space-between;padding: 0 10px;background: #eeeeee;-webkit-print-color-adjust:exact;-moz-print-color-adjust:exact;-ms-print-color-adjust:exact;print-color-adjust:exact;height: 40px;align-items: center;border:1px solid #000; border-top:none}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar div{width:150px;}}';
140
+            '@media print {#invoice-print{font-size:15px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoMain{display: flex;flex-wrap: wrap;padding:0 10px;margin-top:10px;}.infoMain .infoP{width: 33%;}.chargeBox{border: 1px solid #000;}.chargeUl{display:flex;justify-content: space-between;text-align: center;}.chargeUl p{line-height: 1px;}.chargeP{line-height: 1px;padding-bottom:16px;}.moneyBox{display: flex;justify-content: space-between;padding: 0 10px;background: #eeeeee;-webkit-print-color-adjust:exact;-moz-print-color-adjust:exact;-ms-print-color-adjust:exact;print-color-adjust:exact;height: 40px;align-items: center;border:1px solid #000; border-top:none}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar div{width:150px;}}';
141
           printJS({
141
           printJS({
142
             printable: "invoice-print",
142
             printable: "invoice-print",
143
             type: "html",
143
             type: "html",

+ 12 - 12
src/xt_pages/outpatientCharges/invoiceTemplate/printFive.vue View File

2
     <div id='invoice-print'>
2
     <div id='invoice-print'>
3
         <div v-for='(i,index) in pageArr.length' :key="index">
3
         <div v-for='(i,index) in pageArr.length' :key="index">
4
             <div :style="{position: 'absolute',top:(10 + (index * 400))  + 'px',left:70+ 'px',}">{{ list.order_number }}</div>
4
             <div :style="{position: 'absolute',top:(10 + (index * 400))  + 'px',left:70+ 'px',}">{{ list.order_number }}</div>
5
+            <div :style="{position: 'absolute',top:(10 + (index * 400))  + 'px',left:400+ 'px',}">{{list.order.fa_piao_number}}</div>
5
             <div style="display:flex;justify-content: space-between;">
6
             <div style="display:flex;justify-content: space-between;">
6
                 <div :style="{position: 'absolute',top:(40 + (index * 400))  + 'px',left:80+ 'px',}"> {{ paramsObj.name }}</div>
7
                 <div :style="{position: 'absolute',top:(40 + (index * 400))  + 'px',left:80+ 'px',}"> {{ paramsObj.name }}</div>
7
             </div>
8
             </div>
44
             <div :style="{position: 'absolute',top:(315 + (index * 400))  + 'px',left:460+ 'px'}">{{ list.medfee_sumamt }}</div>
45
             <div :style="{position: 'absolute',top:(315 + (index * 400))  + 'px',left:460+ 'px'}">{{ list.medfee_sumamt }}</div>
45
             <div v-if="index == pageArr.length - 1" :style="{position: 'absolute',top:(330 + (index * 400))  + 'px',left:110+ 'px',width:100 + '%'}">
46
             <div v-if="index == pageArr.length - 1" :style="{position: 'absolute',top:(330 + (index * 400))  + 'px',left:110+ 'px',width:100 + '%'}">
46
                 <div style="display:flex;">
47
                 <div style="display:flex;">
47
-                  <div style="width:150px">医疗总费用:{{ list.order.medfee_sumamt }}</div>
48
-                  <div style="width:150px">基金支付总额:{{ list.order.fund_pay_sumamt }}</div>
49
-                  <div style="width:150px">统筹支出:{{ list.order.hifp_pay }}</div>
50
-                  <div style="width:150px">大病支出:{{list.order.hifmi_pay}}</div>
48
+                  <div style="width:170px">医疗总费用:{{ list.order.medfee_sumamt }}</div>
49
+                  <div style="width:170px">基金支付总额:{{ list.order.fund_pay_sumamt }}</div>
50
+                  <div style="width:170px">统筹支出:{{ list.order.hifp_pay }}</div>
51
+                  <div style="width:170px">大病支出:{{list.order.hifmi_pay}}</div>
51
 
52
 
52
                 </div>
53
                 </div>
53
                 <div style="display:flex;">
54
                 <div style="display:flex;">
54
-                  <div style="width:150px">个人账户支付:{{ list.order.acct_pay }}</div>
55
-                  <div style="width:150px">现金支出:{{ list.order.psn_cash_pay }}</div>
56
-                  <div style="width:150px">本次账户:0</div>
57
-                  <div style="width:150px">上次账户:0</div>
55
+                  <div style="width:170px">个人账户支付:{{ list.order.acct_pay }}</div>
56
+                  <div style="width:170px">现金支出:{{ list.order.psn_cash_pay }}</div>
57
+                  <div style="width:170px">本次账户:0</div>
58
+                  <div style="width:170px">上次账户:0</div>
58
                 </div>
59
                 </div>
59
               <div style="display:flex;">
60
               <div style="display:flex;">
60
-                <div style="width:150px">账户余额:{{ list.order.balc }}</div>
61
-                <div style="width:150px">其他支出:{{ list.order.oth_pay }}</div>
62
-                <div style="width:150px">大病补充保险支出:0</div>
63
-                <div style="width:150px">民政支出:0</div>
61
+                <div style="width:170px">账户余额:{{ list.order.balc }}</div>
62
+                <div style="width:170px">其他支出:{{ list.order.oth_pay }}</div>
63
+                <div style="width:170px">民政支出:0</div>
64
               </div>
64
               </div>
65
               <div style="display:flex;">
65
               <div style="display:flex;">
66
                 <div style="width:220px">医疗救助基金支出:{{ list.order.maf_pay }}</div>
66
                 <div style="width:220px">医疗救助基金支出:{{ list.order.maf_pay }}</div>

+ 24 - 64
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

433
                                             <span v-else> {{ scope.row.total }}</span> -->
433
                                             <span v-else> {{ scope.row.total }}</span> -->
434
                                             <span v-if="org_id != 10206 && scope.row.type == 3 && scope.row.good_info.sum_count > 0">{{scope.row.good_info.sum_count}}</span>
434
                                             <span v-if="org_id != 10206 && scope.row.type == 3 && scope.row.good_info.sum_count > 0">{{scope.row.good_info.sum_count}}</span>
435
 <!--                                            //针对坐标系统的库存数据-->
435
 <!--                                            //针对坐标系统的库存数据-->
436
-                                            <span v-if="org_id == 10206 && scope.row.type == 3">{{scope.row.zuobiao_stock_num}}</span>
436
+                                            <span v-if="org_id == 10206 && scope.row.type == 3">{{scope.row.good_info.zuobiao_stock_num}}</span>
437
 
437
 
438
                                           </template>
438
                                           </template>
439
                                       </el-table-column>
439
                                       </el-table-column>
531
 import NextOrLastPrescription from './nextOrLastPrescription'
531
 import NextOrLastPrescription from './nextOrLastPrescription'
532
 import CallPrescription from './callPrescription'
532
 import CallPrescription from './callPrescription'
533
 import DayPrescriptionTable from '../../outpatientCharges/components/dayPrescriptionTable'
533
 import DayPrescriptionTable from '../../outpatientCharges/components/dayPrescriptionTable'
534
-import axios from 'axios'
535
 
534
 
536
 const moment = require('moment')
535
 const moment = require('moment')
537
 
536
 
538
 export default {
537
 export default {
539
   props: {
538
   props: {
540
     zuobiao_drug:Array,
539
     zuobiao_drug:Array,
540
+    zuobiao_project:Array,
541
     drugs:Array,
541
     drugs:Array,
542
     allDrugs:Array,
542
     allDrugs:Array,
543
     advices_template:Array,
543
     advices_template:Array,
574
     additionalCharges
574
     additionalCharges
575
   },
575
   },
576
   data() {
576
   data() {
577
-
578
     return {
577
     return {
579
-      zuobiao_project:[],
580
       start_time: moment(new Date()).subtract(30, 'days').format('YYYY-MM-DD'),
578
       start_time: moment(new Date()).subtract(30, 'days').format('YYYY-MM-DD'),
581
       end_time: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
579
       end_time: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
582
       register10206: [
580
       register10206: [
1624
       this.$refs.additionalCharges.hide()
1622
       this.$refs.additionalCharges.hide()
1625
 
1623
 
1626
     }, searchProjectAction() {
1624
     }, searchProjectAction() {
1625
+      console.log('~~~~',this.search_project_keyword)
1626
+      console.log('5555',this.tabProject)
1627
+      console.log('6666',this.allProject)
1627
       // console.log('4444',this.tabProject[1].first_letter.indexOf(this.search_project_keyword) != -1)
1628
       // console.log('4444',this.tabProject[1].first_letter.indexOf(this.search_project_keyword) != -1)
1628
       if (this.search_project_keyword.length == 0) {
1629
       if (this.search_project_keyword.length == 0) {
1629
         this.tabProject = this.allProject
1630
         this.tabProject = this.allProject
1630
       } else {
1631
       } else {
1631
         let arr = []
1632
         let arr = []
1632
         for (let i = 0; i < this.allProject.length; i++) {
1633
         for (let i = 0; i < this.allProject.length; i++) {
1633
-
1634
-
1635
-            if (this.allProject[i].project_name.indexOf(this.search_project_keyword) != -1) {
1634
+            // console.log('4444',this.tabProject[i].first_letter.indexOf(this.search_project_keyword) != -1)
1635
+            if (this.allProject[i].project_name.indexOf(this.search_project_keyword) != -1 ||
1636
+            this.allProject[i].first_letter.indexOf(this.search_project_keyword) !=-1) {
1636
               arr = arr.concat(this.allProject[i])
1637
               arr = arr.concat(this.allProject[i])
1637
             }
1638
             }
1638
 
1639
 
1639
         }
1640
         }
1640
         this.tabProject = arr
1641
         this.tabProject = arr
1642
+        console.log('kkkk',this.tabProject);
1641
       }
1643
       }
1642
 
1644
 
1643
     }, searchProjectTeamAction() {
1645
     }, searchProjectTeamAction() {
1886
     },
1888
     },
1887
 
1889
 
1888
     tabclickEvent(val) {
1890
     tabclickEvent(val) {
1891
+      console.log("li3333333333333li")
1889
       for (let i = 0; i < this.prescriptions.length; i++) {
1892
       for (let i = 0; i < this.prescriptions.length; i++) {
1890
         if (this.prescriptions[i].name == val.name) {
1893
         if (this.prescriptions[i].name == val.name) {
1891
           this.prescription_id = this.prescriptions[i].id
1894
           this.prescription_id = this.prescriptions[i].id
1953
 
1956
 
1954
     },
1957
     },
1955
     setData(data, info, admin_info, doctors, department, hisPatientInfo, month_data, last_info,sick,diagnoses,patient_diagnose) {
1958
     setData(data, info, admin_info, doctors, department, hisPatientInfo, month_data, last_info,sick,diagnoses,patient_diagnose) {
1959
+      console.log("诊断23333333333333",this.diagnose)
1956
       this.sick = sick
1960
       this.sick = sick
1957
       this.diagnoses = diagnoses
1961
       this.diagnoses = diagnoses
1958
       this.department = department
1962
       this.department = department
2068
 
2072
 
2069
 
2073
 
2070
       this.diagnose = []
2074
       this.diagnose = []
2075
+      console.log("处方----------------------------------------------",info.id)
2071
       if (info.id == 0) {
2076
       if (info.id == 0) {
2072
         if (last_info.diagnosis.length == 0) {
2077
         if (last_info.diagnosis.length == 0) {
2073
           this.diagnose = []
2078
           this.diagnose = []
2119
 
2124
 
2120
       }
2125
       }
2121
 
2126
 
2127
+      // console.log("info233333333333333333333",info.id)
2128
+      // console.log("LAST_INFO2323232323WO",last_info.patient_diagnosis)
2122
       this.patient_diagnose = []
2129
       this.patient_diagnose = []
2123
       if(info.id == 0){
2130
       if(info.id == 0){
2124
         if (last_info.patient_diagnosis.length == 0) {
2131
         if (last_info.patient_diagnosis.length == 0) {
2147
           }
2154
           }
2148
 
2155
 
2149
         }
2156
         }
2157
+        console.log("hhahahahah",this.patient_diagnose)
2150
       }
2158
       }
2151
 
2159
 
2152
       this.state1 = info.sick_type
2160
       this.state1 = info.sick_type
2278
     },
2286
     },
2279
 
2287
 
2280
     moreState(tab, event) {
2288
     moreState(tab, event) {
2289
+      console.log("li222222222")
2281
       if (tab == 'more') {
2290
       if (tab == 'more') {
2282
         return false
2291
         return false
2283
       }
2292
       }
2385
           //   }
2394
           //   }
2386
           // }
2395
           // }
2387
           if (index == 1) {
2396
           if (index == 1) {
2397
+            console.log(this.prescriptions)
2388
 
2398
 
2389
             if (this.org_id != 10206 && this.org_id != 0) {
2399
             if (this.org_id != 10206 && this.org_id != 0) {
2390
               for (let i = 0; i < this.prescriptions.length; i++) {
2400
               for (let i = 0; i < this.prescriptions.length; i++) {
2464
                   this.$emit('editKeepLoad', false)
2474
                   this.$emit('editKeepLoad', false)
2465
                   return
2475
                   return
2466
                 }
2476
                 }
2477
+                console.log("2o23o23o23o2o23",this.prescriptions[i].advices[b])
2467
                 if(this.prescriptions[i].advices[b].day == NaN){
2478
                 if(this.prescriptions[i].advices[b].day == NaN){
2468
                   this.$message.error(`处方${i+1}的${this.prescriptions[i].advices[b].drug_name}天数未填写`)
2479
                   this.$message.error(`处方${i+1}的${this.prescriptions[i].advices[b].drug_name}天数未填写`)
2469
                   this.$emit('editKeepLoad', false)
2480
                   this.$emit('editKeepLoad', false)
2537
               'prescriptions': this.prescriptions
2548
               'prescriptions': this.prescriptions
2538
             }
2549
             }
2539
             isLoading = true
2550
             isLoading = true
2551
+            console.log('this.prescriptionsthis.prescriptions', this.prescriptions)
2552
+            console.log('this.prescriptionsthis.prescriptions', params)
2540
             let num = 0
2553
             let num = 0
2541
             // this.prescriptions.map(item => {
2554
             // this.prescriptions.map(item => {
2542
             //   if (item.advices.length > 0) {
2555
             //   if (item.advices.length > 0) {
2555
               var arr_one = []
2568
               var arr_one = []
2556
               var arr_Two = []
2569
               var arr_Two = []
2557
 
2570
 
2571
+              console.log("ooo233323233232323232",this.prescriptions)
2558
 
2572
 
2559
              //药品
2573
              //药品
2560
               for(let i=0;i<this.prescriptions.length;i++){
2574
               for(let i=0;i<this.prescriptions.length;i++){
3610
               }
3624
               }
3611
             }
3625
             }
3612
 
3626
 
3613
-
3614
             let obj = {
3627
             let obj = {
3615
               id: good_info[i].id,
3628
               id: good_info[i].id,
3616
               project_name: good_info[i].good_name,
3629
               project_name: good_info[i].good_name,
3635
             }
3648
             }
3636
             this.tabProject.push(obj)
3649
             this.tabProject.push(obj)
3637
           }
3650
           }
3638
-
3639
-
3640
           //跟坐标数据进行匹配,如果bbx01相等的话则,替换库存数量
3651
           //跟坐标数据进行匹配,如果bbx01相等的话则,替换库存数量
3641
-          if(this.org_id == 10206) {
3652
+          if(this.org_id == 10206 ) {
3642
             for (let i = 0; i < this.zuobiao_project.length; i++) {
3653
             for (let i = 0; i < this.zuobiao_project.length; i++) {
3643
               for (let b = 0; b < this.tabProject.length; b++) {
3654
               for (let b = 0; b < this.tabProject.length; b++) {
3644
                 if (this.zuobiao_project[i].bbx01 == this.tabProject[b].bbx01){
3655
                 if (this.zuobiao_project[i].bbx01 == this.tabProject[b].bbx01){
3810
     },
3821
     },
3811
     clearSelection() {
3822
     clearSelection() {
3812
       this.$refs.tabProjectTeam.clearSelection()
3823
       this.$refs.tabProjectTeam.clearSelection()
3813
-    },getstock(){
3814
-      if(this.org_id == 10206){
3815
-        var that = this
3816
-        axios.get("http://127.0.0.1:9532" + '/nmg/coordinate/querystock', {
3817
-
3818
-        })
3819
-          .then(function(response) {
3820
-            if (response.data.state == 0) {
3821
-              that.$message.error(response.data.msg)
3822
-              that.loadingtwo = false
3823
-              return false
3824
-            } else {
3825
-              if (response.data.data.failed_code == -10) {
3826
-                that.$confirm(response.data.data.msg, '医保错误信息', {
3827
-                  confirmButtonText: '确 定',
3828
-                  type: 'warning'
3829
-                }).then(() => {
3830
-
3831
-                }).catch(() => {
3832
-                })
3833
-
3834
-              } else {
3835
-                that.zuobiao_project  = response.data.data.project
3836
-              }
3837
-            }
3838
-          })
3839
-          .catch(function(error) {
3840
-          })
3841
-      }
3842
-
3843
-
3844
-    },
3824
+    }
3845
   }, mounted() {
3825
   }, mounted() {
3846
     this.request_record_date = this.record_date
3826
     this.request_record_date = this.record_date
3847
     // this.getInitData()
3827
     // this.getInitData()
3848
-    this.getstock()
3849
     //获取所有项目
3828
     //获取所有项目
3850
     this.getlist()
3829
     this.getlist()
3851
-
3852
     //获取所以项目组套
3830
     //获取所以项目组套
3853
     this.getAllProjectTeam()
3831
     this.getAllProjectTeam()
3854
 
3832
 
3859
 
3837
 
3860
   },
3838
   },
3861
   watch: {
3839
   watch: {
3862
-    // tabProject:{//深度监听,可监听到对象、数组的变化
3863
-    //   handler(val, oldVal) {
3864
-    //     if(this.org_id == 10206 ) {
3865
-    //       console.log("~~~~~~~")
3866
-    //       console.log(this.zuobiao_project)
3867
-    //       console.log(this.tabProject)
3868
-    //       for (let i = 0; i < this.zuobiao_project.length; i++) {
3869
-    //         for (let b = 0; b < this.tabProject.length; b++) {
3870
-    //           if (this.zuobiao_project[i].bbx01 == this.tabProject[b].bbx01){
3871
-    //             this.tabProject[b].zuobiao_stock_num = this.zuobiao_project[i].lsqty
3872
-    //           }
3873
-    //         }
3874
-    //       }
3875
-    //       console.log(this.tabProject)
3876
-    //
3877
-    //     }
3878
-    //   },
3879
-    //   deep: true
3880
-    // },
3840
+
3881
     fullHeight(val) {
3841
     fullHeight(val) {
3882
       if (!this.timer) {
3842
       if (!this.timer) {
3883
         this.fullHeight = val
3843
         this.fullHeight = val