Browse Source

518合并代码

XMLWAN 2 years ago
parent
commit
67afcaa55d

+ 8 - 0
src/api/config.js View File

@@ -194,3 +194,11 @@ export function changeAdviceConfig(params) {
194 194
     params: params
195 195
   })
196 196
 }
197
+
198
+export function changePrescriptionConfig(params) {
199
+  return request({
200
+    url: '/api/changeprescriptionconfig',
201
+    method: 'Get',
202
+    params: params
203
+  })
204
+}

+ 28 - 1
src/xt_pages/data/basicConfig.vue View File

@@ -25,6 +25,8 @@
25 25
           <el-switch v-model="is_open_xt_his" @change="changeFuncOne"></el-switch>
26 26
           <p style="margin-top:20px;">门诊处方和临时医嘱同步到透析医嘱:
27 27
           <el-switch v-model="is_open_advice_xt_his" @change="changeFuncSix"></el-switch>
28
+          <p style="margin-top:20px;">是否出库:
29
+          <el-switch v-model="is_open_prescription_xt_his" @change="changeFuncSeven"></el-switch>
28 30
           </p>
29 31
         </div>
30 32
 
@@ -92,7 +94,7 @@
92 94
 
93 95
 <script>
94 96
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
95
-import { getAllIsOpenInit,postXtHisIsOpen,postMonitorIsOpen,changeFuncPrint,getDataPrintList,postXtHisProjectIsOpen,changeStockSetting,changeAdviceConfig} from '@/api/config'
97
+import { getAllIsOpenInit,postXtHisIsOpen,postMonitorIsOpen,changeFuncPrint,getDataPrintList,postXtHisProjectIsOpen,changeStockSetting,changeAdviceConfig,changePrescriptionConfig} from '@/api/config'
96 98
 
97 99
 export default {
98 100
   name: "printTemplate",
@@ -112,6 +114,7 @@ export default {
112 114
       is_open_xt_his_project: false,
113 115
       is_open_is_type:false,
114 116
       is_open_advice_xt_his:false,
117
+      is_open_prescription_xt_his:false,
115 118
     };
116 119
   },
117 120
   methods: {
@@ -145,6 +148,12 @@ export default {
145 148
               this.is_open_advice_xt_his = false
146 149
             }
147 150
 
151
+            if(response.data.data.is_prescription_advice == 1){
152
+               this.is_open_prescription_xt_his = true
153
+            }else{
154
+              this.is_open_advice_xt_his = false
155
+            }
156
+
148 157
           } else {
149 158
             this.$message.error(response.data.msg)
150 159
           }
@@ -348,6 +357,24 @@ export default {
348 357
           this.$message.success("保存成功!")
349 358
          }
350 359
       })
360
+    },
361
+    changeFuncSeven(){
362
+      var is_open_prescription_xt_his = 2
363
+      if(this.is_open_advice_xt_his == false){
364
+        is_open_prescription_xt_his = 2
365
+      }
366
+      if(this.is_open_advice_xt_his == true){
367
+        is_open_prescription_xt_his = 2
368
+      }
369
+      var params = {
370
+        is_open_prescription_xt_his:is_open_prescription_xt_his,
371
+      }
372
+      changePrescriptionConfig(params).then(response=>{
373
+          if(response.data.state == 1){
374
+            var msg =  response.data.data.msg
375
+            this.$message.success("保存成功!")
376
+          }
377
+      })
351 378
     }
352 379
 
353 380
   },

+ 18 - 16
src/xt_pages/outpatientTool/components/gatherStatistics.vue View File

@@ -183,8 +183,8 @@ export default {
183 183
       item_type: '0',
184 184
       items: [
185 185
         { id: 1, name: '药品' },
186
+        { id: 2, name: '项目' },
186 187
         { id: 3, name: '耗材' },
187
-        { id: 2, name: '项目' }
188 188
 
189 189
       ],
190 190
       list:[],
@@ -267,14 +267,16 @@ export default {
267 267
        this.tableList = new_arr
268 268
       }
269 269
       if(id == 3){
270
+       console.log("tabl4233223232323323223",this.tableList)
270 271
        var new_arr = []
271 272
        for(let i=0;i<this.tableList.length;i++){
272 273
         if(this.tableList[i].is_total != 1){
273
-          if(this.tableList[i].type == 3){
274
+          if(this.tableList[i].project_type == 3){
274 275
             new_arr.push(this.tableList[i])
275 276
           }  
276 277
         }
277 278
        }
279
+       console.log("new_ar3232332323232233223",new_arr)
278 280
        this.tableList = []
279 281
        this.tableList = new_arr
280 282
       }
@@ -939,7 +941,7 @@ export default {
939 941
       var total_price = 0
940 942
       for(let i=0;i<this.tableList.length;i++){
941 943
          if(this.tableList[i].advice_id > 0){
942
-           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].advice_id)
944
+           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].name)
943 945
          }
944 946
         if(this.tableList[i].project_id > 0){
945 947
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
@@ -955,7 +957,7 @@ export default {
955 957
       var total_price = 0
956 958
       for(let i=0;i<this.tableList.length;i++){
957 959
          if(this.tableList[i].advice_id > 0){
958
-           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].advice_id)
960
+           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].name)
959 961
          }
960 962
         if(this.tableList[i].project_id > 0){
961 963
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
@@ -971,7 +973,7 @@ export default {
971 973
       var total_price = 0
972 974
       for(let i=0;i<this.tableList.length;i++){
973 975
          if(this.tableList[i].advice_id > 0){
974
-           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].advice_id)
976
+           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].name)
975 977
          }
976 978
         if(this.tableList.project_id > 0){
977 979
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
@@ -987,7 +989,7 @@ export default {
987 989
       var total_price = 0
988 990
       for(let i=0;i<this.tableList.length;i++){
989 991
          if(this.tableList[i].advice_id > 0){
990
-           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].advice_id)
992
+           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].name)
991 993
          }
992 994
         if(this.tableList[i].project_id > 0){
993 995
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
@@ -1003,7 +1005,7 @@ export default {
1003 1005
       var total_price = 0
1004 1006
       for(let i=0;i<this.tableList.length;i++){
1005 1007
          if(this.tableList[i].advice_id > 0){
1006
-           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].advice_id)
1008
+           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].name)
1007 1009
          }
1008 1010
         if(this.tableList.project_id > 0){
1009 1011
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
@@ -1019,7 +1021,7 @@ export default {
1019 1021
        var total_price = 0
1020 1022
       for(let i=0;i<this.tableList.length;i++){
1021 1023
          if(this.tableList[i].advice_id > 0){
1022
-           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].advice_id)
1024
+           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].name)
1023 1025
          }
1024 1026
         if(this.tableList[i].project_id > 0){
1025 1027
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
@@ -1036,7 +1038,7 @@ export default {
1036 1038
       var total_price = 0
1037 1039
       for(let i=0;i<this.tableList.length;i++){
1038 1040
          if(this.tableList[i].advice_id > 0){
1039
-           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].advice_id)
1041
+           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].name)
1040 1042
          }
1041 1043
         if(this.tableList[i].project_id > 0){
1042 1044
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
@@ -1052,7 +1054,7 @@ export default {
1052 1054
       var total_price = 0
1053 1055
       for(let i=0;i<this.tableList.length;i++){
1054 1056
          if(this.tableList[i].advice_id > 0){
1055
-           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].advice_id)
1057
+           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].name)
1056 1058
          }
1057 1059
         if(this.tableList[i].project_id > 0){
1058 1060
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
@@ -1068,7 +1070,7 @@ export default {
1068 1070
       var total_price = 0
1069 1071
       for(let i=0;i<this.tableList.length;i++){
1070 1072
          if(this.tableList[i].advice_id > 0){
1071
-           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].advice_id)
1073
+           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].name)
1072 1074
          }
1073 1075
         if(this.tableList[i].project_id > 0){
1074 1076
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
@@ -1085,7 +1087,7 @@ export default {
1085 1087
       var total_price = 0
1086 1088
       for(let i=0;i<this.tableList.length;i++){
1087 1089
          if(this.tableList[i].advice_id > 0){
1088
-           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].advice_id)
1090
+           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].name)
1089 1091
          }
1090 1092
         if(this.tableList[i].project_id > 0){
1091 1093
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
@@ -1101,7 +1103,7 @@ export default {
1101 1103
       var total_price = 0
1102 1104
       for(let i=0;i<this.tableList.length;i++){
1103 1105
          if(this.tableList[i].advice_id > 0){
1104
-           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].advice_id)
1106
+           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].name)
1105 1107
          }
1106 1108
         if(this.tableList[i].project_id > 0){
1107 1109
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
@@ -1117,7 +1119,7 @@ export default {
1117 1119
       var total_price = 0
1118 1120
       for(let i=0;i<this.tableList.length;i++){
1119 1121
          if(this.tableList[i].advice_id > 0){
1120
-           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].advice_id)
1122
+           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].name)
1121 1123
          }
1122 1124
         if(this.tableList[i].project_id > 0){
1123 1125
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
@@ -1133,7 +1135,7 @@ export default {
1133 1135
       var total_price = 0
1134 1136
       for(let i=0;i<this.tableList.length;i++){
1135 1137
          if(this.tableList[i].advice_id > 0){
1136
-           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].advice_id)
1138
+           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].name)
1137 1139
          }
1138 1140
         if(this.tableList[i].project_id > 0){
1139 1141
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
@@ -1149,7 +1151,7 @@ export default {
1149 1151
       var total_price = 0
1150 1152
       for(let i=0;i<this.tableList.length;i++){
1151 1153
          if(this.tableList[i].advice_id > 0){
1152
-           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].advice_id)
1154
+           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].name)
1153 1155
          }
1154 1156
         if(this.tableList[i].project_id > 0){
1155 1157
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)

+ 24 - 3
src/xt_pages/outpatientTool/gatherPrint.vue View File

@@ -10,7 +10,7 @@
10 10
         </div>
11 11
         <div class="listInfo">
12 12
             <div>科别:{{getDepartment(his_patient.departments)}}</div>
13
-            <div>床号:</div>
13
+            <div>床号:<span v-if="schedule.length > 0">{{getBedName(schedule[0].bed_id)}}</span></div>
14 14
             <div>门诊号:{{his_patient.number}}</div>
15 15
             <div>姓名:{{patient.name}}</div>
16 16
         </div>
@@ -46,6 +46,7 @@
46 46
         </div>
47 47
         <table class="listTable" border="1">
48 48
             <tr>
49
+                <td style="text-align:center" >序号</td>
49 50
                 <td style="text-align:center" >费用分类</td>
50 51
                 <td style="text-align:center">项目名称</td>
51 52
                 <td style="text-align:center">规格</td>
@@ -55,6 +56,10 @@
55 56
                 <td style="text-align:center" >医保类型</td>
56 57
             </tr>
57 58
             <tr v-for="(item, index) in tableList" :key="index">
59
+                <td style="text-align:center" >
60
+                  <span v-if="item.is_total == 2">{{index+1}}</span>
61
+                  <span v-if="item.is_total == 1">合计</span>
62
+                </td>
58 63
                 <td style="text-align:center" >
59 64
                   <span v-if="item.type == 1">
60 65
                     {{getAdviceMedChrgintmType(item.name)}}
@@ -127,6 +132,8 @@
127 132
           order_info_list:[],
128 133
           balanceAccountsType:0,
129 134
           medicalInsuranceLevelList:[],
135
+          schedule:[],
136
+          bedNumber:[],
130 137
         }
131 138
     },
132 139
     methods:{
@@ -187,11 +194,15 @@
187 194
            
188 195
             this.order_info_list = order_info
189 196
             var prescription = response.data.data.prescription
190
-            console.log("prescription23323232323233232323232233233223",prescription)
197
+           
191 198
             this.setMonthPrescription(prescription)
192 199
             this.balanceAccountsType = response.data.data.balanceAccountsType
193 200
 
194 201
             this.medicalInsuranceLevelList = response.data.data.medicalInsuranceLevelList
202
+
203
+            this.schedule = response.data.data.schedule
204
+
205
+            this.bedNumber = response.data.data.bedNumber
195 206
             if(order_info!=undefined&&order_info ==null){
196 207
                this.list = []
197 208
                return
@@ -866,7 +877,6 @@
866 877
         if(this.tableList[i].project_id > 0){
867 878
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
868 879
          }
869
-         console.log("化验23233223322323",this.tableList[i].drug_type)
870 880
          if(this.tableList[i].drug_type == "化验费"){
871 881
             total_price += this.tableList[i].count * this.tableList[i].price
872 882
          }
@@ -1002,6 +1012,17 @@
1002 1012
       }
1003 1013
       
1004 1014
       return total_price.toFixed(2)  
1015
+    },
1016
+    getBedName(id){
1017
+      console.log("2332233223232323",id)
1018
+      console.log("bed_number23223232232323232",this.bedNumber)
1019
+      var bed_number = ""
1020
+      for(let i=0;i<this.bedNumber.length;i++){
1021
+        if(id == this.bedNumber[i].id){
1022
+           bed_number = this.bedNumber[i].number
1023
+        }
1024
+      }
1025
+      return bed_number
1005 1026
     }
1006 1027
     },
1007 1028
     created(){

+ 57 - 38
src/xt_pages/outpatientTool/gatherPrintInvoice.vue View File

@@ -8,7 +8,9 @@
8 8
         <div class="listTitle_1">{{$store.getters.xt_user.org.org_name}}发票联<span>收</span></div>
9 9
          <div class="listInfo">
10 10
             <div>收费日期:{{this.$route.query.end_time}}</div>
11
-            <div style="width:400px">发票代码:</div>
11
+            <div style="width:400px">发票代码:
12
+             <span v-if="order!=undefined && order.length > 0">{{order[0].fa_piao_code}}</span> 
13
+            </div>
12 14
         </div>
13 15
         <table class="listTable" table border rules=none cellspacing=0 align=center>
14 16
             <tr>
@@ -17,7 +19,10 @@
17 19
                 <td></td>
18 20
             </tr>
19 21
             <tr>
20
-                <td>费用类别:</td>
22
+                <td>费用类别:
23
+                  <span v-if="balanceAccountsType == 2">自费</span>
24
+                  <span v-if="balanceAccountsType != 2">医保</span>
25
+                </td>
21 26
                 <td>金额(元):{{getAllPice()}}</td>
22 27
                 <td></td>
23 28
             </tr>
@@ -47,8 +52,10 @@
47 52
                 <td>其他:{{getOtherCostTotal()}}</td>
48 53
             </tr>
49 54
            <tr style="border: 1px solid;">
50
-               <td>合计金额(大写):{{smalltoBIG((getAllPiceOne() + getWesternMedicineCostTotalOne() + getChineseTraditionalMedicineCostTotalOne()+getChineseTotalOne() +getCheckCostTotalOne()+getOxygenOne() + getOperationOne()+getLaboratoryCostTotalOne()+getBloodOne()+getZhenChaCostTotalOne()+getTreatementOne()+getNursingOne()+getBedCostTotalOne()+getAnesthesiaOne()+getMaterialCostTotalOne()+getOtherCostTotalOne()).toFixed(2))}}</td>
51
-               <td>人民币¥:{{(getAllPiceOne() + getWesternMedicineCostTotalOne() + getChineseTraditionalMedicineCostTotalOne()+getChineseTotalOne() +getCheckCostTotalOne()+getOxygenOne() + getOperationOne()+getLaboratoryCostTotalOne()+getBloodOne()+getZhenChaCostTotalOne()+getTreatementOne()+getNursingOne()+getBedCostTotalOne()+getAnesthesiaOne()+getMaterialCostTotalOne()+getOtherCostTotalOne())}}</td>
55
+                <td>合计金额(大写):{{smalltoBIG(getAllPice())}}</td>
56
+               <td>人民币¥:{{getAllPice()}}</td>
57
+               <!-- <td>合计金额(大写):{{smalltoBIG((getAllPiceOne() + getWesternMedicineCostTotalOne() + getChineseTraditionalMedicineCostTotalOne()+getChineseTotalOne() +getCheckCostTotalOne()+getOxygenOne() + getOperationOne()+getLaboratoryCostTotalOne()+getBloodOne()+getZhenChaCostTotalOne()+getTreatementOne()+getNursingOne()+getBedCostTotalOne()+getAnesthesiaOne()+getMaterialCostTotalOne()+getOtherCostTotalOne()).toFixed(2))}}</td>
58
+               <td>人民币¥:{{(getAllPiceOne() + getWesternMedicineCostTotalOne() + getChineseTraditionalMedicineCostTotalOne()+getChineseTotalOne() +getCheckCostTotalOne()+getOxygenOne() + getOperationOne()+getLaboratoryCostTotalOne()+getBloodOne()+getZhenChaCostTotalOne()+getTreatementOne()+getNursingOne()+getBedCostTotalOne()+getAnesthesiaOne()+getMaterialCostTotalOne()+getOtherCostTotalOne())}}</td> -->
52 59
                <td></td>
53 60
             </tr>
54 61
             <tr style="height: 65px;">
@@ -62,7 +69,7 @@
62 69
                 收款单位(章):
63 70
             </div>
64 71
             <div style="width:300px">
65
-                收费员:
72
+                收费员:{{getAdminRole(admin_user_id)}}
66 73
             </div>
67 74
             <div style="width:300px">
68 75
                {{printDate}}
@@ -98,6 +105,7 @@
98 105
           order_info_list:[],
99 106
           balanceAccountsType:0,
100 107
           medicalInsuranceLevelList:[],
108
+          balanceAccountsType:0,
101 109
         }
102 110
     },
103 111
     methods:{
@@ -743,10 +751,10 @@
743 751
       }
744 752
       return total_price.toFixed(2)
745 753
     },
746
-    getAdviceMedChrgintmType(advice_id){
754
+    getAdviceMedChrgintmType(name){
747 755
       var med_chrgitm_type = ""
748 756
       for(let i=0;i<this.order_info_list.length;i++){
749
-        if(advice_id == this.order_info_list[i].advice_id){
757
+        if(name == this.order_info_list[i].advice.advice_name){
750 758
           med_chrgitm_type = this.order_info_list[i].med_chrgitm_type
751 759
         }
752 760
       }
@@ -792,7 +800,7 @@
792 800
       var total_price = 0
793 801
       for(let i=0;i<this.tableList.length;i++){
794 802
          if(this.tableList[i].advice_id > 0){
795
-           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].advice_id)
803
+           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].name)
796 804
          }
797 805
          if(this.tableList[i].project_id > 0){
798 806
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
@@ -808,7 +816,7 @@
808 816
       var total_price = 0
809 817
       for(let i=0;i<this.tableList.length;i++){
810 818
          if(this.tableList[i].advice_id > 0){
811
-           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].advice_id)
819
+           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].name)
812 820
          }
813 821
         if(this.tableList[i].project_id > 0){
814 822
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
@@ -824,7 +832,7 @@
824 832
       var total_price = 0
825 833
       for(let i=0;i<this.tableList.length;i++){
826 834
          if(this.tableList[i].advice_id > 0){
827
-           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].advice_id)
835
+           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].name)
828 836
          }
829 837
         if(this.tableList[i].project_id > 0){
830 838
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
@@ -840,7 +848,7 @@
840 848
       var total_price = 0
841 849
       for(let i=0;i<this.tableList.length;i++){
842 850
          if(this.tableList[i].advice_id > 0){
843
-           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].advice_id)
851
+           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].name)
844 852
          }
845 853
         if(this.tableList.project_id > 0){
846 854
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
@@ -856,7 +864,7 @@
856 864
       var total_price = 0
857 865
       for(let i=0;i<this.tableList.length;i++){
858 866
          if(this.tableList[i].advice_id > 0){
859
-           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].advice_id)
867
+           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].name)
860 868
          }
861 869
         if(this.tableList[i].project_id > 0){
862 870
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
@@ -872,7 +880,7 @@
872 880
       var total_price = 0
873 881
       for(let i=0;i<this.tableList.length;i++){
874 882
          if(this.tableList[i].advice_id > 0){
875
-           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].advice_id)
883
+           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].name)
876 884
          }
877 885
         if(this.tableList.project_id > 0){
878 886
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
@@ -888,7 +896,7 @@
888 896
        var total_price = 0
889 897
       for(let i=0;i<this.tableList.length;i++){
890 898
          if(this.tableList[i].advice_id > 0){
891
-           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].advice_id)
899
+           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].name)
892 900
          }
893 901
         if(this.tableList[i].project_id > 0){
894 902
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
@@ -905,7 +913,7 @@
905 913
       var total_price = 0
906 914
       for(let i=0;i<this.tableList.length;i++){
907 915
          if(this.tableList[i].advice_id > 0){
908
-           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].advice_id)
916
+           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].name)
909 917
          }
910 918
         if(this.tableList[i].project_id > 0){
911 919
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
@@ -921,7 +929,7 @@
921 929
       var total_price = 0
922 930
       for(let i=0;i<this.tableList.length;i++){
923 931
          if(this.tableList[i].advice_id > 0){
924
-           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].advice_id)
932
+           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].name)
925 933
          }
926 934
         if(this.tableList[i].project_id > 0){
927 935
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
@@ -937,7 +945,7 @@
937 945
       var total_price = 0
938 946
       for(let i=0;i<this.tableList.length;i++){
939 947
          if(this.tableList[i].advice_id > 0){
940
-           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].advice_id)
948
+           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].name)
941 949
          }
942 950
         if(this.tableList[i].project_id > 0){
943 951
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
@@ -954,7 +962,7 @@
954 962
       var total_price = 0
955 963
       for(let i=0;i<this.tableList.length;i++){
956 964
          if(this.tableList[i].advice_id > 0){
957
-           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].advice_id)
965
+           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].name)
958 966
          }
959 967
         if(this.tableList[i].project_id > 0){
960 968
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
@@ -970,7 +978,7 @@
970 978
       var total_price = 0
971 979
       for(let i=0;i<this.tableList.length;i++){
972 980
          if(this.tableList[i].advice_id > 0){
973
-           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].advice_id)
981
+           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].name)
974 982
          }
975 983
         if(this.tableList[i].project_id > 0){
976 984
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
@@ -986,7 +994,7 @@
986 994
       var total_price = 0
987 995
       for(let i=0;i<this.tableList.length;i++){
988 996
          if(this.tableList[i].advice_id > 0){
989
-           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].advice_id)
997
+           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].name)
990 998
          }
991 999
         if(this.tableList[i].project_id > 0){
992 1000
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
@@ -1002,7 +1010,7 @@
1002 1010
       var total_price = 0
1003 1011
       for(let i=0;i<this.tableList.length;i++){
1004 1012
          if(this.tableList[i].advice_id > 0){
1005
-           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].advice_id)
1013
+           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].name)
1006 1014
          }
1007 1015
         if(this.tableList[i].project_id > 0){
1008 1016
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
@@ -1018,7 +1026,7 @@
1018 1026
       var total_price = 0
1019 1027
       for(let i=0;i<this.tableList.length;i++){
1020 1028
          if(this.tableList[i].advice_id > 0){
1021
-           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].advice_id)
1029
+           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].name)
1022 1030
          }
1023 1031
         if(this.tableList[i].project_id > 0){
1024 1032
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
@@ -1040,7 +1048,7 @@
1040 1048
       var total_price = 0
1041 1049
       for(let i=0;i<this.tableList.length;i++){
1042 1050
          if(this.tableList[i].advice_id > 0){
1043
-           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].advice_id)
1051
+           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].name)
1044 1052
          }
1045 1053
          if(this.tableList[i].project_id > 0){
1046 1054
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
@@ -1056,7 +1064,7 @@
1056 1064
       var total_price = 0
1057 1065
       for(let i=0;i<this.tableList.length;i++){
1058 1066
          if(this.tableList[i].advice_id > 0){
1059
-           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].advice_id)
1067
+           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].name)
1060 1068
          }
1061 1069
         if(this.tableList[i].project_id > 0){
1062 1070
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
@@ -1072,7 +1080,7 @@
1072 1080
       var total_price = 0
1073 1081
       for(let i=0;i<this.tableList.length;i++){
1074 1082
          if(this.tableList[i].advice_id > 0){
1075
-           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].advice_id)
1083
+           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].name)
1076 1084
          }
1077 1085
         if(this.tableList[i].project_id > 0){
1078 1086
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
@@ -1088,7 +1096,7 @@
1088 1096
       var total_price = 0
1089 1097
       for(let i=0;i<this.tableList.length;i++){
1090 1098
          if(this.tableList[i].advice_id > 0){
1091
-           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].advice_id)
1099
+           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].name)
1092 1100
          }
1093 1101
         if(this.tableList.project_id > 0){
1094 1102
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
@@ -1104,7 +1112,7 @@
1104 1112
       var total_price = 0
1105 1113
       for(let i=0;i<this.tableList.length;i++){
1106 1114
          if(this.tableList[i].advice_id > 0){
1107
-           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].advice_id)
1115
+           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].name)
1108 1116
          }
1109 1117
         if(this.tableList[i].project_id > 0){
1110 1118
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
@@ -1120,7 +1128,7 @@
1120 1128
       var total_price = 0
1121 1129
       for(let i=0;i<this.tableList.length;i++){
1122 1130
          if(this.tableList[i].advice_id > 0){
1123
-           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].advice_id)
1131
+           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].name)
1124 1132
          }
1125 1133
         if(this.tableList.project_id > 0){
1126 1134
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
@@ -1136,7 +1144,7 @@
1136 1144
        var total_price = 0
1137 1145
       for(let i=0;i<this.tableList.length;i++){
1138 1146
          if(this.tableList[i].advice_id > 0){
1139
-           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].advice_id)
1147
+           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].name)
1140 1148
          }
1141 1149
         if(this.tableList[i].project_id > 0){
1142 1150
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
@@ -1153,7 +1161,7 @@
1153 1161
       var total_price = 0
1154 1162
       for(let i=0;i<this.tableList.length;i++){
1155 1163
          if(this.tableList[i].advice_id > 0){
1156
-           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].advice_id)
1164
+           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].name)
1157 1165
          }
1158 1166
         if(this.tableList[i].project_id > 0){
1159 1167
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
@@ -1169,7 +1177,7 @@
1169 1177
       var total_price = 0
1170 1178
       for(let i=0;i<this.tableList.length;i++){
1171 1179
          if(this.tableList[i].advice_id > 0){
1172
-           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].advice_id)
1180
+           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].name)
1173 1181
          }
1174 1182
         if(this.tableList[i].project_id > 0){
1175 1183
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
@@ -1185,7 +1193,7 @@
1185 1193
       var total_price = 0
1186 1194
       for(let i=0;i<this.tableList.length;i++){
1187 1195
          if(this.tableList[i].advice_id > 0){
1188
-           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].advice_id)
1196
+           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].name)
1189 1197
          }
1190 1198
         if(this.tableList[i].project_id > 0){
1191 1199
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
@@ -1202,7 +1210,7 @@
1202 1210
       var total_price = 0
1203 1211
       for(let i=0;i<this.tableList.length;i++){
1204 1212
          if(this.tableList[i].advice_id > 0){
1205
-           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].advice_id)
1213
+           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].name)
1206 1214
          }
1207 1215
         if(this.tableList[i].project_id > 0){
1208 1216
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
@@ -1218,7 +1226,7 @@
1218 1226
       var total_price = 0
1219 1227
       for(let i=0;i<this.tableList.length;i++){
1220 1228
          if(this.tableList[i].advice_id > 0){
1221
-           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].advice_id)
1229
+           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].name)
1222 1230
          }
1223 1231
         if(this.tableList[i].project_id > 0){
1224 1232
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
@@ -1234,7 +1242,7 @@
1234 1242
       var total_price = 0
1235 1243
       for(let i=0;i<this.tableList.length;i++){
1236 1244
          if(this.tableList[i].advice_id > 0){
1237
-           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].advice_id)
1245
+           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].name)
1238 1246
          }
1239 1247
         if(this.tableList[i].project_id > 0){
1240 1248
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
@@ -1250,7 +1258,7 @@
1250 1258
       var total_price = 0
1251 1259
       for(let i=0;i<this.tableList.length;i++){
1252 1260
          if(this.tableList[i].advice_id > 0){
1253
-           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].advice_id)
1261
+           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].name)
1254 1262
          }
1255 1263
         if(this.tableList[i].project_id > 0){
1256 1264
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
@@ -1266,7 +1274,7 @@
1266 1274
       var total_price = 0
1267 1275
       for(let i=0;i<this.tableList.length;i++){
1268 1276
          if(this.tableList[i].advice_id > 0){
1269
-           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].advice_id)
1277
+           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].name)
1270 1278
          }
1271 1279
         if(this.tableList[i].project_id > 0){
1272 1280
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
@@ -1277,14 +1285,25 @@
1277 1285
       }
1278 1286
       
1279 1287
       return total_price 
1288
+    },
1289
+    getAdminRole(admin_user_id){
1290
+      var user_name = ""
1291
+      for(let i=0;i<this.admin.length;i++){
1292
+        if(admin_user_id == this.admin[i].admin_user_id){
1293
+            user_name = this.admin[i].user_name
1294
+        }
1295
+      }
1296
+      return user_name
1280 1297
     }
1281 1298
     },
1282 1299
     created(){
1300
+      this.admin_user_id = this.$store.getters.xt_user.user.id
1301
+      console.log("admin_user_id23323232323",this.admin_user_id)
1283 1302
       this.getGatherDetailList()   
1284 1303
       var data = new Date();
1285 1304
       var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
1286 1305
       var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
1287
-      this.printDate = data.getFullYear() + "-" + month + "-" + date;
1306
+      this.printDate = data.getFullYear() + "年" + month + "月" + date+"日";
1288 1307
     }
1289 1308
 
1290 1309
   }