浏览代码

518合并代码

XMLWAN 3 年前
父节点
当前提交
67afcaa55d

+ 8 - 0
src/api/config.js 查看文件

194
     params: params
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 查看文件

25
           <el-switch v-model="is_open_xt_his" @change="changeFuncOne"></el-switch>
25
           <el-switch v-model="is_open_xt_his" @change="changeFuncOne"></el-switch>
26
           <p style="margin-top:20px;">门诊处方和临时医嘱同步到透析医嘱:
26
           <p style="margin-top:20px;">门诊处方和临时医嘱同步到透析医嘱:
27
           <el-switch v-model="is_open_advice_xt_his" @change="changeFuncSix"></el-switch>
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
           </p>
30
           </p>
29
         </div>
31
         </div>
30
 
32
 
92
 
94
 
93
 <script>
95
 <script>
94
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
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
 export default {
99
 export default {
98
   name: "printTemplate",
100
   name: "printTemplate",
112
       is_open_xt_his_project: false,
114
       is_open_xt_his_project: false,
113
       is_open_is_type:false,
115
       is_open_is_type:false,
114
       is_open_advice_xt_his:false,
116
       is_open_advice_xt_his:false,
117
+      is_open_prescription_xt_his:false,
115
     };
118
     };
116
   },
119
   },
117
   methods: {
120
   methods: {
145
               this.is_open_advice_xt_his = false
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
           } else {
157
           } else {
149
             this.$message.error(response.data.msg)
158
             this.$message.error(response.data.msg)
150
           }
159
           }
348
           this.$message.success("保存成功!")
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 查看文件

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

+ 24 - 3
src/xt_pages/outpatientTool/gatherPrint.vue 查看文件

10
         </div>
10
         </div>
11
         <div class="listInfo">
11
         <div class="listInfo">
12
             <div>科别:{{getDepartment(his_patient.departments)}}</div>
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
             <div>门诊号:{{his_patient.number}}</div>
14
             <div>门诊号:{{his_patient.number}}</div>
15
             <div>姓名:{{patient.name}}</div>
15
             <div>姓名:{{patient.name}}</div>
16
         </div>
16
         </div>
46
         </div>
46
         </div>
47
         <table class="listTable" border="1">
47
         <table class="listTable" border="1">
48
             <tr>
48
             <tr>
49
+                <td style="text-align:center" >序号</td>
49
                 <td style="text-align:center" >费用分类</td>
50
                 <td style="text-align:center" >费用分类</td>
50
                 <td style="text-align:center">项目名称</td>
51
                 <td style="text-align:center">项目名称</td>
51
                 <td style="text-align:center">规格</td>
52
                 <td style="text-align:center">规格</td>
55
                 <td style="text-align:center" >医保类型</td>
56
                 <td style="text-align:center" >医保类型</td>
56
             </tr>
57
             </tr>
57
             <tr v-for="(item, index) in tableList" :key="index">
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
                 <td style="text-align:center" >
63
                 <td style="text-align:center" >
59
                   <span v-if="item.type == 1">
64
                   <span v-if="item.type == 1">
60
                     {{getAdviceMedChrgintmType(item.name)}}
65
                     {{getAdviceMedChrgintmType(item.name)}}
127
           order_info_list:[],
132
           order_info_list:[],
128
           balanceAccountsType:0,
133
           balanceAccountsType:0,
129
           medicalInsuranceLevelList:[],
134
           medicalInsuranceLevelList:[],
135
+          schedule:[],
136
+          bedNumber:[],
130
         }
137
         }
131
     },
138
     },
132
     methods:{
139
     methods:{
187
            
194
            
188
             this.order_info_list = order_info
195
             this.order_info_list = order_info
189
             var prescription = response.data.data.prescription
196
             var prescription = response.data.data.prescription
190
-            console.log("prescription23323232323233232323232233233223",prescription)
197
+           
191
             this.setMonthPrescription(prescription)
198
             this.setMonthPrescription(prescription)
192
             this.balanceAccountsType = response.data.data.balanceAccountsType
199
             this.balanceAccountsType = response.data.data.balanceAccountsType
193
 
200
 
194
             this.medicalInsuranceLevelList = response.data.data.medicalInsuranceLevelList
201
             this.medicalInsuranceLevelList = response.data.data.medicalInsuranceLevelList
202
+
203
+            this.schedule = response.data.data.schedule
204
+
205
+            this.bedNumber = response.data.data.bedNumber
195
             if(order_info!=undefined&&order_info ==null){
206
             if(order_info!=undefined&&order_info ==null){
196
                this.list = []
207
                this.list = []
197
                return
208
                return
866
         if(this.tableList[i].project_id > 0){
877
         if(this.tableList[i].project_id > 0){
867
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
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
          if(this.tableList[i].drug_type == "化验费"){
880
          if(this.tableList[i].drug_type == "化验费"){
871
             total_price += this.tableList[i].count * this.tableList[i].price
881
             total_price += this.tableList[i].count * this.tableList[i].price
872
          }
882
          }
1002
       }
1012
       }
1003
       
1013
       
1004
       return total_price.toFixed(2)  
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
     created(){
1028
     created(){

+ 57 - 38
src/xt_pages/outpatientTool/gatherPrintInvoice.vue 查看文件

8
         <div class="listTitle_1">{{$store.getters.xt_user.org.org_name}}发票联<span>收</span></div>
8
         <div class="listTitle_1">{{$store.getters.xt_user.org.org_name}}发票联<span>收</span></div>
9
          <div class="listInfo">
9
          <div class="listInfo">
10
             <div>收费日期:{{this.$route.query.end_time}}</div>
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
         </div>
14
         </div>
13
         <table class="listTable" table border rules=none cellspacing=0 align=center>
15
         <table class="listTable" table border rules=none cellspacing=0 align=center>
14
             <tr>
16
             <tr>
17
                 <td></td>
19
                 <td></td>
18
             </tr>
20
             </tr>
19
             <tr>
21
             <tr>
20
-                <td>费用类别:</td>
22
+                <td>费用类别:
23
+                  <span v-if="balanceAccountsType == 2">自费</span>
24
+                  <span v-if="balanceAccountsType != 2">医保</span>
25
+                </td>
21
                 <td>金额(元):{{getAllPice()}}</td>
26
                 <td>金额(元):{{getAllPice()}}</td>
22
                 <td></td>
27
                 <td></td>
23
             </tr>
28
             </tr>
47
                 <td>其他:{{getOtherCostTotal()}}</td>
52
                 <td>其他:{{getOtherCostTotal()}}</td>
48
             </tr>
53
             </tr>
49
            <tr style="border: 1px solid;">
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
                <td></td>
59
                <td></td>
53
             </tr>
60
             </tr>
54
             <tr style="height: 65px;">
61
             <tr style="height: 65px;">
62
                 收款单位(章):
69
                 收款单位(章):
63
             </div>
70
             </div>
64
             <div style="width:300px">
71
             <div style="width:300px">
65
-                收费员:
72
+                收费员:{{getAdminRole(admin_user_id)}}
66
             </div>
73
             </div>
67
             <div style="width:300px">
74
             <div style="width:300px">
68
                {{printDate}}
75
                {{printDate}}
98
           order_info_list:[],
105
           order_info_list:[],
99
           balanceAccountsType:0,
106
           balanceAccountsType:0,
100
           medicalInsuranceLevelList:[],
107
           medicalInsuranceLevelList:[],
108
+          balanceAccountsType:0,
101
         }
109
         }
102
     },
110
     },
103
     methods:{
111
     methods:{
743
       }
751
       }
744
       return total_price.toFixed(2)
752
       return total_price.toFixed(2)
745
     },
753
     },
746
-    getAdviceMedChrgintmType(advice_id){
754
+    getAdviceMedChrgintmType(name){
747
       var med_chrgitm_type = ""
755
       var med_chrgitm_type = ""
748
       for(let i=0;i<this.order_info_list.length;i++){
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
           med_chrgitm_type = this.order_info_list[i].med_chrgitm_type
758
           med_chrgitm_type = this.order_info_list[i].med_chrgitm_type
751
         }
759
         }
752
       }
760
       }
792
       var total_price = 0
800
       var total_price = 0
793
       for(let i=0;i<this.tableList.length;i++){
801
       for(let i=0;i<this.tableList.length;i++){
794
          if(this.tableList[i].advice_id > 0){
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
          if(this.tableList[i].project_id > 0){
805
          if(this.tableList[i].project_id > 0){
798
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
806
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
808
       var total_price = 0
816
       var total_price = 0
809
       for(let i=0;i<this.tableList.length;i++){
817
       for(let i=0;i<this.tableList.length;i++){
810
          if(this.tableList[i].advice_id > 0){
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
         if(this.tableList[i].project_id > 0){
821
         if(this.tableList[i].project_id > 0){
814
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
822
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
824
       var total_price = 0
832
       var total_price = 0
825
       for(let i=0;i<this.tableList.length;i++){
833
       for(let i=0;i<this.tableList.length;i++){
826
          if(this.tableList[i].advice_id > 0){
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
         if(this.tableList[i].project_id > 0){
837
         if(this.tableList[i].project_id > 0){
830
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
838
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
840
       var total_price = 0
848
       var total_price = 0
841
       for(let i=0;i<this.tableList.length;i++){
849
       for(let i=0;i<this.tableList.length;i++){
842
          if(this.tableList[i].advice_id > 0){
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
         if(this.tableList.project_id > 0){
853
         if(this.tableList.project_id > 0){
846
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
854
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
856
       var total_price = 0
864
       var total_price = 0
857
       for(let i=0;i<this.tableList.length;i++){
865
       for(let i=0;i<this.tableList.length;i++){
858
          if(this.tableList[i].advice_id > 0){
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
         if(this.tableList[i].project_id > 0){
869
         if(this.tableList[i].project_id > 0){
862
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
870
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
872
       var total_price = 0
880
       var total_price = 0
873
       for(let i=0;i<this.tableList.length;i++){
881
       for(let i=0;i<this.tableList.length;i++){
874
          if(this.tableList[i].advice_id > 0){
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
         if(this.tableList.project_id > 0){
885
         if(this.tableList.project_id > 0){
878
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
886
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
888
        var total_price = 0
896
        var total_price = 0
889
       for(let i=0;i<this.tableList.length;i++){
897
       for(let i=0;i<this.tableList.length;i++){
890
          if(this.tableList[i].advice_id > 0){
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
         if(this.tableList[i].project_id > 0){
901
         if(this.tableList[i].project_id > 0){
894
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
902
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
905
       var total_price = 0
913
       var total_price = 0
906
       for(let i=0;i<this.tableList.length;i++){
914
       for(let i=0;i<this.tableList.length;i++){
907
          if(this.tableList[i].advice_id > 0){
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
         if(this.tableList[i].project_id > 0){
918
         if(this.tableList[i].project_id > 0){
911
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
919
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
921
       var total_price = 0
929
       var total_price = 0
922
       for(let i=0;i<this.tableList.length;i++){
930
       for(let i=0;i<this.tableList.length;i++){
923
          if(this.tableList[i].advice_id > 0){
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
         if(this.tableList[i].project_id > 0){
934
         if(this.tableList[i].project_id > 0){
927
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
935
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
937
       var total_price = 0
945
       var total_price = 0
938
       for(let i=0;i<this.tableList.length;i++){
946
       for(let i=0;i<this.tableList.length;i++){
939
          if(this.tableList[i].advice_id > 0){
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
         if(this.tableList[i].project_id > 0){
950
         if(this.tableList[i].project_id > 0){
943
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
951
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
954
       var total_price = 0
962
       var total_price = 0
955
       for(let i=0;i<this.tableList.length;i++){
963
       for(let i=0;i<this.tableList.length;i++){
956
          if(this.tableList[i].advice_id > 0){
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
         if(this.tableList[i].project_id > 0){
967
         if(this.tableList[i].project_id > 0){
960
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
968
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
970
       var total_price = 0
978
       var total_price = 0
971
       for(let i=0;i<this.tableList.length;i++){
979
       for(let i=0;i<this.tableList.length;i++){
972
          if(this.tableList[i].advice_id > 0){
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
         if(this.tableList[i].project_id > 0){
983
         if(this.tableList[i].project_id > 0){
976
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
984
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
986
       var total_price = 0
994
       var total_price = 0
987
       for(let i=0;i<this.tableList.length;i++){
995
       for(let i=0;i<this.tableList.length;i++){
988
          if(this.tableList[i].advice_id > 0){
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
         if(this.tableList[i].project_id > 0){
999
         if(this.tableList[i].project_id > 0){
992
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
1000
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
1002
       var total_price = 0
1010
       var total_price = 0
1003
       for(let i=0;i<this.tableList.length;i++){
1011
       for(let i=0;i<this.tableList.length;i++){
1004
          if(this.tableList[i].advice_id > 0){
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
         if(this.tableList[i].project_id > 0){
1015
         if(this.tableList[i].project_id > 0){
1008
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
1016
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
1018
       var total_price = 0
1026
       var total_price = 0
1019
       for(let i=0;i<this.tableList.length;i++){
1027
       for(let i=0;i<this.tableList.length;i++){
1020
          if(this.tableList[i].advice_id > 0){
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
         if(this.tableList[i].project_id > 0){
1031
         if(this.tableList[i].project_id > 0){
1024
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
1032
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
1040
       var total_price = 0
1048
       var total_price = 0
1041
       for(let i=0;i<this.tableList.length;i++){
1049
       for(let i=0;i<this.tableList.length;i++){
1042
          if(this.tableList[i].advice_id > 0){
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
          if(this.tableList[i].project_id > 0){
1053
          if(this.tableList[i].project_id > 0){
1046
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
1054
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
1056
       var total_price = 0
1064
       var total_price = 0
1057
       for(let i=0;i<this.tableList.length;i++){
1065
       for(let i=0;i<this.tableList.length;i++){
1058
          if(this.tableList[i].advice_id > 0){
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
         if(this.tableList[i].project_id > 0){
1069
         if(this.tableList[i].project_id > 0){
1062
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
1070
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
1072
       var total_price = 0
1080
       var total_price = 0
1073
       for(let i=0;i<this.tableList.length;i++){
1081
       for(let i=0;i<this.tableList.length;i++){
1074
          if(this.tableList[i].advice_id > 0){
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
         if(this.tableList[i].project_id > 0){
1085
         if(this.tableList[i].project_id > 0){
1078
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
1086
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
1088
       var total_price = 0
1096
       var total_price = 0
1089
       for(let i=0;i<this.tableList.length;i++){
1097
       for(let i=0;i<this.tableList.length;i++){
1090
          if(this.tableList[i].advice_id > 0){
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
         if(this.tableList.project_id > 0){
1101
         if(this.tableList.project_id > 0){
1094
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
1102
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
1104
       var total_price = 0
1112
       var total_price = 0
1105
       for(let i=0;i<this.tableList.length;i++){
1113
       for(let i=0;i<this.tableList.length;i++){
1106
          if(this.tableList[i].advice_id > 0){
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
         if(this.tableList[i].project_id > 0){
1117
         if(this.tableList[i].project_id > 0){
1110
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
1118
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
1120
       var total_price = 0
1128
       var total_price = 0
1121
       for(let i=0;i<this.tableList.length;i++){
1129
       for(let i=0;i<this.tableList.length;i++){
1122
          if(this.tableList[i].advice_id > 0){
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
         if(this.tableList.project_id > 0){
1133
         if(this.tableList.project_id > 0){
1126
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
1134
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
1136
        var total_price = 0
1144
        var total_price = 0
1137
       for(let i=0;i<this.tableList.length;i++){
1145
       for(let i=0;i<this.tableList.length;i++){
1138
          if(this.tableList[i].advice_id > 0){
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
         if(this.tableList[i].project_id > 0){
1149
         if(this.tableList[i].project_id > 0){
1142
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
1150
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
1153
       var total_price = 0
1161
       var total_price = 0
1154
       for(let i=0;i<this.tableList.length;i++){
1162
       for(let i=0;i<this.tableList.length;i++){
1155
          if(this.tableList[i].advice_id > 0){
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
         if(this.tableList[i].project_id > 0){
1166
         if(this.tableList[i].project_id > 0){
1159
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
1167
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
1169
       var total_price = 0
1177
       var total_price = 0
1170
       for(let i=0;i<this.tableList.length;i++){
1178
       for(let i=0;i<this.tableList.length;i++){
1171
          if(this.tableList[i].advice_id > 0){
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
         if(this.tableList[i].project_id > 0){
1182
         if(this.tableList[i].project_id > 0){
1175
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
1183
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
1185
       var total_price = 0
1193
       var total_price = 0
1186
       for(let i=0;i<this.tableList.length;i++){
1194
       for(let i=0;i<this.tableList.length;i++){
1187
          if(this.tableList[i].advice_id > 0){
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
         if(this.tableList[i].project_id > 0){
1198
         if(this.tableList[i].project_id > 0){
1191
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
1199
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
1202
       var total_price = 0
1210
       var total_price = 0
1203
       for(let i=0;i<this.tableList.length;i++){
1211
       for(let i=0;i<this.tableList.length;i++){
1204
          if(this.tableList[i].advice_id > 0){
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
         if(this.tableList[i].project_id > 0){
1215
         if(this.tableList[i].project_id > 0){
1208
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
1216
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
1218
       var total_price = 0
1226
       var total_price = 0
1219
       for(let i=0;i<this.tableList.length;i++){
1227
       for(let i=0;i<this.tableList.length;i++){
1220
          if(this.tableList[i].advice_id > 0){
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
         if(this.tableList[i].project_id > 0){
1231
         if(this.tableList[i].project_id > 0){
1224
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
1232
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
1234
       var total_price = 0
1242
       var total_price = 0
1235
       for(let i=0;i<this.tableList.length;i++){
1243
       for(let i=0;i<this.tableList.length;i++){
1236
          if(this.tableList[i].advice_id > 0){
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
         if(this.tableList[i].project_id > 0){
1247
         if(this.tableList[i].project_id > 0){
1240
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
1248
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
1250
       var total_price = 0
1258
       var total_price = 0
1251
       for(let i=0;i<this.tableList.length;i++){
1259
       for(let i=0;i<this.tableList.length;i++){
1252
          if(this.tableList[i].advice_id > 0){
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
         if(this.tableList[i].project_id > 0){
1263
         if(this.tableList[i].project_id > 0){
1256
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
1264
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
1266
       var total_price = 0
1274
       var total_price = 0
1267
       for(let i=0;i<this.tableList.length;i++){
1275
       for(let i=0;i<this.tableList.length;i++){
1268
          if(this.tableList[i].advice_id > 0){
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
         if(this.tableList[i].project_id > 0){
1279
         if(this.tableList[i].project_id > 0){
1272
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
1280
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
1277
       }
1285
       }
1278
       
1286
       
1279
       return total_price 
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
     created(){
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
       this.getGatherDetailList()   
1302
       this.getGatherDetailList()   
1284
       var data = new Date();
1303
       var data = new Date();
1285
       var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
1304
       var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
1286
       var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
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
   }