28169 пре 1 година
родитељ
комит
0ec73b5d1a

+ 35 - 26
src/xt_pages/dialysis/details/consumable/dialysisDrug.vue Прегледај датотеку

662
           }
662
           }
663
         }
663
         }
664
 
664
 
665
-        if(this.$store.getters.xt_user.org_id == 10469 || this.$store.getters.xt_user.org_id == 0){
665
+        if(this.$store.getters.xt_user.org_id == 9671 || this.$store.getters.xt_user.org_id == 0){
666
+          //  console.log("----------------------",this.selected_date)
667
+            console.log("星期",this.getweekday(this.selected_date))
666
             var newArrList = []
668
             var newArrList = []
667
-            var total_day = ""
668
-            if(moment().weekday() == 1){
669
-              total_day ="周一"
670
-            }
671
-            if(moment().weekday() == 2){
672
-              total_day ="周二"
673
-            }
674
-            if(moment().weekday() == 3){
675
-              total_day ="周三"
676
-            }
677
-            if(moment().weekday() == 4){
678
-              total_day ="周四"
679
-            }
680
-            if(moment().weekday() == 5){
681
-              total_day ="周五"
682
-            }
683
-            if(moment().weekday() == 6){
684
-              total_day ="周六"
685
-            }
686
-            if(moment().weekday() == 7){
687
-              total_day ="周日"
688
-            }
669
+            // var total_day = ""
670
+            // if(moment().weekday() == 1){
671
+            //   total_day ="周一"
672
+            // }
673
+            // if(moment().weekday() == 2){
674
+            //   total_day ="周二"
675
+            // }
676
+            // if(moment().weekday() == 3){
677
+            //   total_day ="周三"
678
+            // }
679
+            // if(moment().weekday() == 4){
680
+            //   total_day ="周四"
681
+            // }
682
+            // if(moment().weekday() == 5){
683
+            //   total_day ="周五"
684
+            // }
685
+            // if(moment().weekday() == 6){
686
+            //   total_day ="周六"
687
+            // }
688
+            // if(moment().weekday() == 7){
689
+            //   total_day ="周日"
690
+            // }
689
           if(newArr!=null && newArr.length >0){
691
           if(newArr!=null && newArr.length >0){
690
             for(let i=0;i<newArr.length;i++){
692
             for(let i=0;i<newArr.length;i++){
691
-              if((newArr[i].frequency_type == 1) || (newArr[i].frequency_type == 3 && newArr[i].week_day.indexOf(total_day)!=-1)){
693
+              if((newArr[i].frequency_type == 1) || (newArr[i].frequency_type == 3 && newArr[i].week_day.indexOf(this.getweekday(this.selected_date))!=-1)){
692
                 console.log("药品名称",newArr[i].advice_name)
694
                 console.log("药品名称",newArr[i].advice_name)
693
                  newArrList.push(newArr[i])
695
                  newArrList.push(newArr[i])
694
               }
696
               }
702
             }
704
             }
703
           }
705
           }
704
         }
706
         }
705
-        if(this.$store.getters.xt_user.org_id != 10469 && this.$store.getters.xt_user.org_id != 0){
707
+        if(this.$store.getters.xt_user.org_id != 9671 && this.$store.getters.xt_user.org_id != 0){
706
          
708
          
707
           if(newArr!=null && newArr.length > 0){
709
           if(newArr!=null && newArr.length > 0){
708
             for(let i=0;i<newArr.length;i++){
710
             for(let i=0;i<newArr.length;i++){
799
      changePartionType(){
801
      changePartionType(){
800
       this.tableList = []
802
       this.tableList = []
801
       this.statistics()
803
       this.statistics()
802
-     }
804
+     },
805
+     getweekday(date){
806
+        var weekArray = new Array("周日", "周一", "周二", "周三", "周四", "周五", "周六");
807
+
808
+        var week = weekArray[new Date(date).getDay()];//注意此处必须是先new一个Date
809
+
810
+        return week;
811
+      }
803
     }
812
     }
804
   }
813
   }
805
 </script>
814
 </script>

+ 33 - 23
src/xt_pages/dialysis/details/consumable/dialysisDrugPrint.vue Прегледај датотеку

199
 
199
 
200
         if(this.$store.getters.xt_user.org_id == 10469 || this.$store.getters.xt_user.org_id == 0){
200
         if(this.$store.getters.xt_user.org_id == 10469 || this.$store.getters.xt_user.org_id == 0){
201
             var newArrList = []
201
             var newArrList = []
202
-            var total_day = ""
203
-            if(moment().weekday() == 1){
204
-              total_day ="周一"
205
-            }
206
-            if(moment().weekday() == 2){
207
-              total_day ="周二"
208
-            }
209
-            if(moment().weekday() == 3){
210
-              total_day ="周三"
211
-            }
212
-            if(moment().weekday() == 4){
213
-              total_day ="周四"
214
-            }
215
-            if(moment().weekday() == 5){
216
-              total_day ="周五"
217
-            }
218
-            if(moment().weekday() == 6){
219
-              total_day ="周六"
220
-            }
221
-            if(moment().weekday() == 7){
222
-              total_day ="周日"
223
-            }
202
+            // var total_day = ""
203
+            // if(moment().weekday() == 1){
204
+            //   total_day ="周一"
205
+            // }
206
+            // if(moment().weekday() == 2){
207
+            //   total_day ="周二"
208
+            // }
209
+            // if(moment().weekday() == 3){
210
+            //   total_day ="周三"
211
+            // }
212
+            // if(moment().weekday() == 4){
213
+            //   total_day ="周四"
214
+            // }
215
+            // if(moment().weekday() == 5){
216
+            //   total_day ="周五"
217
+            // }
218
+            // if(moment().weekday() == 6){
219
+            //   total_day ="周六"
220
+            // }
221
+            // if(moment().weekday() == 7){
222
+            //   total_day ="周日"
223
+            // }
224
           if(newArr!=null && newArr.length >0){
224
           if(newArr!=null && newArr.length >0){
225
             for(let i=0;i<newArr.length;i++){
225
             for(let i=0;i<newArr.length;i++){
226
-              if((newArr[i].frequency_type == 1) || (newArr[i].frequency_type == 3 && newArr[i].week_day.indexOf(total_day)!=-1)){
226
+              if((newArr[i].frequency_type == 1) || (newArr[i].frequency_type == 3 && newArr[i].week_day.indexOf(this.getweekday(this.$route.query.schedule_date))!=-1)){
227
                 
227
                 
228
                  newArrList.push(newArr[i])
228
                  newArrList.push(newArr[i])
229
               }
229
               }
267
         const res = new Map()
267
         const res = new Map()
268
         return arr.filter((arr) => !res.has(arr.id) && res.set(arr.id, 1))
268
         return arr.filter((arr) => !res.has(arr.id) && res.set(arr.id, 1))
269
       },
269
       },
270
+
271
+      getweekday(date){
272
+        var weekArray = new Array("周日", "周一", "周二", "周三", "周四", "周五", "周六");
273
+
274
+        var week = weekArray[new Date(date).getDay()];//注意此处必须是先new一个Date
275
+
276
+        return week;
277
+      }
278
+
279
+      
270
     }
280
     }
271
   }
281
   }
272
 </script>
282
 </script>

+ 77 - 43
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue Прегледај датотеку

223
         :cell-class-name="adviceNameShow"
223
         :cell-class-name="adviceNameShow"
224
         :modal-append-to-body="false"
224
         :modal-append-to-body="false"
225
         highlight-current-row
225
         highlight-current-row
226
-
226
+        
227
       >
227
       >
228
       <!-- @selection-change="handleSelectionChange" -->
228
       <!-- @selection-change="handleSelectionChange" -->
229
         <!-- <el-table-column type="selection"  width="55"></el-table-column> -->
229
         <!-- <el-table-column type="selection"  width="55"></el-table-column> -->
257
             <el-dropdown trigger="click" v-if="scope.row.parent_id > 0">
257
             <el-dropdown trigger="click" v-if="scope.row.parent_id > 0">
258
               <span class="el-dropdown-link">
258
               <span class="el-dropdown-link">
259
                 &emsp;{{ getAdviceContent(scope.row, 2)}}
259
                 &emsp;{{ getAdviceContent(scope.row, 2)}}
260
+               
260
                 <i class="el-icon-arrow-down el-icon--right"></i>
261
                 <i class="el-icon-arrow-down el-icon--right"></i>
261
               </span>
262
               </span>
262
               <el-dropdown-menu slot="dropdown">
263
               <el-dropdown-menu slot="dropdown">
290
           </template>
291
           </template>
291
         </el-table-column>
292
         </el-table-column>
292
         <el-table-column
293
         <el-table-column
293
-          v-if="template_id != 6 && org_id!=10223 && org_id!=10445"
294
+          v-if="template_id != 6 && org_id!=10223 && org_id!=10445 && org_id!=0"
294
           prop="checker"
295
           prop="checker"
295
           min-width="30px"
296
           min-width="30px"
296
           align="center"
297
           align="center"
304
         </el-table-column>
305
         </el-table-column>
305
       </el-table>
306
       </el-table>
306
 
307
 
307
-
308
+     
308
 
309
 
309
       <el-table
310
       <el-table
310
         v-if="his_is_open  == 1 || is_advice_open == 1"
311
         v-if="his_is_open  == 1 || is_advice_open == 1"
359
             <el-dropdown trigger="click" v-if="scope.row.parent_id > 0">
360
             <el-dropdown trigger="click" v-if="scope.row.parent_id > 0">
360
               <span class="el-dropdown-link">
361
               <span class="el-dropdown-link">
361
                 &emsp;{{ getAdviceContent(scope.row, 2)}}
362
                 &emsp;{{ getAdviceContent(scope.row, 2)}}
363
+                 
362
                 <i class="el-icon-arrow-down el-icon--right"></i>
364
                 <i class="el-icon-arrow-down el-icon--right"></i>
363
               </span>
365
               </span>
364
               <el-dropdown-menu slot="dropdown">
366
               <el-dropdown-menu slot="dropdown">
781
         src_type:"",
783
         src_type:"",
782
         org_id:0,
784
         org_id:0,
783
         schedulePatient:{},
785
         schedulePatient:{},
786
+        tempArrOne:[],
784
       }
787
       }
785
     },
788
     },
786
     watch: {
789
     watch: {
795
         this.form['dialysis_order_id'] = this.dialysis_order.id
798
         this.form['dialysis_order_id'] = this.dialysis_order.id
796
       },
799
       },
797
 
800
 
801
+      'doctor_advices': function() {
802
+      
803
+        this.handleSpanTempArrOne();
804
+      },
805
+     
798
     },
806
     },
799
     methods: {
807
     methods: {
808
+      handleSpanTempArrOne() {
809
+          this.tempArrOne = [];
810
+          console.log("hhahhahahahahah",this.doctor_advices)
811
+          for (let i = 0; i < this.doctor_advices.length; i++) {
812
+            if (i === 0) {
813
+              this.tempArrOne.push(1);
814
+              this.pos = 0;
815
+            } else {
816
+              // 判断当前元素与上一个元素是否相同
817
+              if (
818
+                this.doctor_advices[i].groupno ===
819
+                this.doctor_advices[i - 1].groupno
820
+              ) {
821
+                this.tempArrOne[this.pos] += 1;
822
+                this.tempArrOne.push(0);
823
+              } else {
824
+                this.tempArrOne.push(1);
825
+                this.pos = i;
826
+              }
827
+            }
828
+          }
829
+      },
800
       handleSelectionChange(){
830
       handleSelectionChange(){
801
 
831
 
802
       },
832
       },
803
-
833
+     
834
+    
804
       //调试
835
       //调试
805
       lili(index,row){
836
       lili(index,row){
806
         // console.log("==index==",index)
837
         // console.log("==index==",index)
918
           return ''
949
           return ''
919
         }
950
         }
920
       },
951
       },
952
+     
921
       submitEditAdvice() {
953
       submitEditAdvice() {
922
         // console.log()
954
         // console.log()
923
         console.log("保存22222222222222")
955
         console.log("保存22222222222222")
2094
         return true
2126
         return true
2095
       }
2127
       }
2096
       ,
2128
       ,
2097
-      mergeSpan({ row, column, rowIndex, columnIndex }) {
2098
-        if (columnIndex != 2) {
2099
-          const _row = this.tempArr[rowIndex]
2100
-          const _col = _row > 0 ? 1 : 0
2101
-          return {
2102
-            rowspan: _row,
2103
-            colspan: _col
2104
-          }
2105
-        }
2106
-      }
2107
-      ,
2129
+    
2130
+      
2108
       handleSpanTempArr() {
2131
       handleSpanTempArr() {
2109
         this.tempArr = []
2132
         this.tempArr = []
2110
 
2133
 
2267
         // });
2290
         // });
2268
       },
2291
       },
2269
       objectSpanMethod({ row, column, rowIndex, columnIndex }) {
2292
       objectSpanMethod({ row, column, rowIndex, columnIndex }) {
2293
+        console.log("hhhhhhhhhh",this.tempArrOne)
2294
+        //合并单元格
2295
+        if (columnIndex === 0 || columnIndex === 1 ) {
2296
+          const _row = this.tempArrOne[rowIndex];
2297
+          const _col = _row > 0 ? 1 : 0;
2298
+          console.log("_row====",_row)
2299
+          console.log("_row----------",_col)
2300
+          return {
2301
+            rowspan: _row,
2302
+            colspan: _col
2303
+          };
2304
+        }
2305
+        // if (columnIndex === 0) {
2306
+        //   if (rowIndex % 2 === 0) {
2307
+        //     return {
2308
+        //       rowspan: 2,
2309
+        //       colspan: 1
2310
+        //     }
2311
+        //   } else {
2312
+        //     return {
2313
+        //       rowspan: 0,
2314
+        //       colspan: 0
2315
+        //     }
2316
+        //   }
2317
+        // }
2270
 
2318
 
2271
-        if (columnIndex === 0) {
2272
-          if (rowIndex % 2 === 0) {
2273
-            return {
2274
-              rowspan: 2,
2275
-              colspan: 1
2276
-            }
2277
-          } else {
2278
-            return {
2279
-              rowspan: 0,
2280
-              colspan: 0
2281
-            }
2282
-          }
2283
-        }
2284
-
2285
-        if (columnIndex === 1) {
2286
-          if (rowIndex % 2 === 0) {
2287
-            return {
2288
-              rowspan: 2,
2289
-              colspan: 1
2290
-            }
2291
-          } else {
2292
-            return {
2293
-              rowspan: 0,
2294
-              colspan: 0
2295
-            }
2296
-          }
2297
-        }
2319
+        // if (columnIndex === 1) {
2320
+        //   if (rowIndex % 2 === 0) {
2321
+        //     return {
2322
+        //       rowspan: 2,
2323
+        //       colspan: 1
2324
+        //     }
2325
+        //   } else {
2326
+        //     return {
2327
+        //       rowspan: 0,
2328
+        //       colspan: 0
2329
+        //     }
2330
+        //   }
2331
+        // }
2298
       }
2332
       }
2299
       ,
2333
       ,
2300
       GetLastOrNextDoctorAdvice(params) {
2334
       GetLastOrNextDoctorAdvice(params) {
2600
       }
2634
       }
2601
     },
2635
     },
2602
     created() {
2636
     created() {
2603
-    
2637
+     
2604
       var date = this.$route.query && this.$route.query.date
2638
       var date = this.$route.query && this.$route.query.date
2605
       this.record_date = uParseTime(date, '{y}-{m}-{d}')
2639
       this.record_date = uParseTime(date, '{y}-{m}-{d}')
2606
       this.form.advice_date = this.record_date
2640
       this.form.advice_date = this.record_date

+ 2 - 2
src/xt_pages/dialysis/details/dialog/computer_dialog.vue Прегледај датотеку

1074
     changeBloodAccessOpion(id){
1074
     changeBloodAccessOpion(id){
1075
       var name = ""
1075
       var name = ""
1076
       for(let i=0;i<this.blood_access_option.length;i++){
1076
       for(let i=0;i<this.blood_access_option.length;i++){
1077
-        console.log("id9999",this.blood_access_option[i].id)
1077
+        // console.log("id9999",this.blood_access_option[i].id)
1078
         if(id == this.blood_access_option[i].id){
1078
         if(id == this.blood_access_option[i].id){
1079
            name = this.blood_access_option[i].name
1079
            name = this.blood_access_option[i].name
1080
         }
1080
         }
1085
     changeBloodAccessOpionOne(id){
1085
     changeBloodAccessOpionOne(id){
1086
       var name = ""
1086
       var name = ""
1087
       for(let i=0;i<this.blood_access_option.length;i++){
1087
       for(let i=0;i<this.blood_access_option.length;i++){
1088
-        console.log("id9999",this.blood_access_option[i].id)
1088
+        // console.log("id9999",this.blood_access_option[i].id)
1089
         if(id == this.blood_access_option[i].id){
1089
         if(id == this.blood_access_option[i].id){
1090
            name = this.blood_access_option[i].name
1090
            name = this.blood_access_option[i].name
1091
         }
1091
         }

+ 3 - 3
src/xt_pages/management/components/WaterFormList.vue Прегледај датотеку

143
               </template>
143
               </template>
144
          </el-table-column>
144
          </el-table-column>
145
 
145
 
146
-         <el-table-column label="静谧过滤器(MPa)" align="center" min-width="110px">
146
+         <el-table-column label="精密过滤器(MPa)" align="center" min-width="110px">
147
               <template slot-scope="scope">
147
               <template slot-scope="scope">
148
                 {{ scope.row.ultrafilter?scope.row.ultrafilter:"" }}
148
                 {{ scope.row.ultrafilter?scope.row.ultrafilter:"" }}
149
               </template>
149
               </template>
590
                  :rowspan="2"
590
                  :rowspan="2"
591
                   style="text-align:center;width:60px;font-size:15px"
591
                   style="text-align:center;width:60px;font-size:15px"
592
                 >
592
                 >
593
-                  静谧过滤器(MPa)
593
+                  精密过滤器(MPa)
594
                 </td>
594
                 </td>
595
 
595
 
596
                 <td
596
                 <td
1314
             }
1314
             }
1315
             import('@/vendor/Export2Excel').then(excel => {
1315
             import('@/vendor/Export2Excel').then(excel => {
1316
 
1316
 
1317
-              const multiHeader = [['序号', '日期', '原水参数' , '', '','', '一级反渗', '', '二级反渗' , '', '碳罐(MPa)','砂罐(MPa)', '树脂罐(MPa)','静谧过滤器(MPa)','水质监测','','','','消毒','','过滤器更换','记录人' ]]
1317
+              const multiHeader = [['序号', '日期', '原水参数' , '', '','', '一级反渗', '', '二级反渗' , '', '碳罐(MPa)','砂罐(MPa)', '树脂罐(MPa)','精密过滤器(MPa)','水质监测','','','','消毒','','过滤器更换','记录人' ]]
1318
               const header = ['', '', '原水电导度', '原水压力', '温度','加压泵', '产水电导度', '产水量', '产水电导度', '产水量', '','','','','硬度(mg/l)','总氯(mg/l)','PH值','过氧乙酸(mg/l)','反渗膜消毒','输水管道消毒','','',]
1318
               const header = ['', '', '原水电导度', '原水压力', '温度','加压泵', '产水电导度', '产水量', '产水电导度', '产水量', '','','','','硬度(mg/l)','总氯(mg/l)','PH值','过氧乙酸(mg/l)','反渗膜消毒','输水管道消毒','','',]
1319
               const merges = ['A1:A2', 'B1:B2', 'C1:F1','G1:H1','I1:J1','K1:K2','L1:L2','M1:M2','N1:N2','O1:R1','S1:T1','U1:U2','V1:V2']
1319
               const merges = ['A1:A2', 'B1:B2', 'C1:F1','G1:H1','I1:J1','K1:K2','L1:L2','M1:M2','N1:N2','O1:R1','S1:T1','U1:U2','V1:V2']
1320
               const filterVal = ['index','record_date','water_conductivity','water_pressure','temperature','force_pump_status','first_ro_membrane_effluent','first_water_yield','last_production_of_water_conductivity','last_water_yield','carbon_tank','snd_tank','resin_tank','ultrafilter','hardness_monitoring','ph_detection','total_chlorine_detection','concentration_of_peroxyacetic_acid','reverse_osmosis_membrane_disinfection_name','disinfection_of_water_pipeline_name','filter_replacement','user_name']
1320
               const filterVal = ['index','record_date','water_conductivity','water_pressure','temperature','force_pump_status','first_ro_membrane_effluent','first_water_yield','last_production_of_water_conductivity','last_water_yield','carbon_tank','snd_tank','resin_tank','ultrafilter','hardness_monitoring','ph_detection','total_chlorine_detection','concentration_of_peroxyacetic_acid','reverse_osmosis_membrane_disinfection_name','disinfection_of_water_pipeline_name','filter_replacement','user_name']

+ 418 - 416
src/xt_pages/outpatientCharges/statementTemplate/printFour.vue Прегледај датотеку

1
 <template>
1
 <template>
2
-    <div>
3
-        <div v-if="paramsObj.balance_accounts_type != 2" id='prescription-print' class="prescription-print">
4
-            <div v-for='(i,pageIndex) in pageArr.length' :key="pageIndex">
5
-                <div class="printTitle">血液透析中心医药费收据及收费项目清单</div>
6
-                <div class="infoMain">
7
-                    <div class="infoP">医院(药店)编号:{{info.org_code}}</div>
8
-                    <div class="infoP">名称:{{info.org_name}}</div>
9
-                    <div class="infoP">医生工号:{{info.doctor_code}}</div>
10
-                    <div class="infoP">门诊流水号:{{info.number}}</div>
11
-                    <div class="infoP">科别: {{info.department}}</div>
12
-                    <div class="infoP">处方单据号:{{info.order_number}}</div>
13
-                    <div class="infoP">姓名:{{info.patient.name}}</div>
14
-                    <div class="infoP">医疗账号:{{info.health_card_no}}</div>
15
-                    <div class="infoP">医疗类别:</div>
16
-                </div>
17
-                <div class="chargeBox">
18
-                    <div style="display:flex;justify-content: space-between;border-bottom:1px solid #000;">
19
-                        <div class="chargeUl" style="width:20%;">
20
-                            <p style="width:50%;border-right:1px solid #000;">费用类型</p>
21
-                            <p style="width:50%;border-right:1px solid #000;">金额</p>
22
-                        </div>
23
-                        <div class="chargeUl" style="width:80%;">
24
-                            <p style="width:40%;border-right:1px solid #000;">明细名称</p>
25
-                            <p style="width:15%;border-right:1px solid #000;">规格</p>
26
-                            <p style="width:15%;border-right:1px solid #000;">数量</p>
27
-                            <p style="width:15%;border-right:1px solid #000;">单价</p>
28
-                            <p style="width:15%;">金额</p>
29
-                        </div>
30
-                    </div>
31
-                    <div style="display:flex;justify-content: space-between;">
32
-                        <div style="width:20%;">
33
-                            <div class="chargeUl" v-if="info.bed_cost_total > 0">
34
-                                <p style="width:50%;">床位费</p>
35
-                                <p style="width:50%;">{{info.bed_cost_total?info.bed_cost_total:0}}元</p>
36
-                            </div>
37
-                            <div class="chargeUl" v-if="info.operation_cost_total > 0">
38
-                                <p style="width:50%;">手术费</p>
39
-                                <p style="width:50%;">{{info.operation_cost_total?info.operation_cost_total:0}}元</p>
40
-                            </div>
41
-                            <div class="chargeUl" v-if="info.other_cost_total > 0">
42
-                                <p style="width:50%;">其他费</p>
43
-                                <p style="width:50%;">{{info.other_cost_total?info.other_cost_total:0}}元</p>
44
-                            </div>
45
-                            <div class="chargeUl" v-if="info.material_cost_total > 0">
46
-                                <p style="width:50%;">材料费</p>
47
-                                <p style="width:50%;">{{info.material_cost_total?info.material_cost_total:0}}元</p>
48
-                            </div>
49
-                            <div class="chargeUl" v-if="info.western_medicine_cost_total > 0">
50
-                                <p style="width:50%;">西药费</p>
51
-                                <p style="width:50%;">{{info.western_medicine_cost_total?info.western_medicine_cost_total:0}}元</p>
52
-                            </div>
53
-                            <div class="chargeUl" v-if="info.chinese_traditional_medicine_cost_total > 0">
54
-                                <p style="width:50%;">中成费</p>
55
-                                <p style="width:50%;">{{info.chinese_traditional_medicine_cost_total?info.chinese_traditional_medicine_cost_total:0}}元</p>
56
-                            </div>
57
-                            <div class="chargeUl" v-if="info.check_cost_total > 0">
58
-                                <p style="width:50%;">检查费</p>
59
-                                <p style="width:50%;">{{info.check_cost_total?info.check_cost_total:0}}元</p>
60
-                            </div>
61
-                            <div class="chargeUl" v-if="info.laboratory_cost_total > 0">
62
-                                <p style="width:50%;">化验费</p>
63
-                                <p style="width:50%;">{{info.laboratory_cost_total?info.laboratory_cost_total:0}}元</p>
64
-                            </div>
65
-                            <div class="chargeUl" v-if="info.treat_cost_total > 0">
66
-                                <p style="width:50%;">治疗费</p>
67
-                                <p style="width:50%;">{{info.treat_cost_total?info.treat_cost_total:0}}元</p>
68
-                            </div>
69
-                            <div class="chargeUl" style="border-top:1px solid #000;">
70
-                                <p style="width:50%;">费用合计</p>
71
-                                <p style="width:50%;">{{info.medfee_sumamt?info.medfee_sumamt:0}}元</p>
72
-                            </div>
73
-                            <div class="chargeUl" style="border-top:1px solid #000;">
74
-                                <p style="width:50%;">记账支付</p>
75
-                                <p style="width:50%;">{{info.hifp_pay?info.hifp_pay:0}}元</p>
76
-                            </div>
77
-                            <div class="chargeUl" style="border-top:1px solid #000;">
78
-                                <p style="width:50%;">个人账号</p>
79
-                                <p style="width:50%;">{{info.acct_pay?info.acct_pay:0}}元</p>
80
-                            </div>
81
-                            <div class="chargeUl" style="border-top:1px solid #000;border-bottom:1px solid #000;">
82
-                                <p style="width:50%;">现金支付</p>
83
-                                <p style="width:50%;">{{info.psn_pay?info.psn_pay:0}}元</p>
84
-                            </div>
85
-                        </div>
86
-                        <div style="width:80%;max-height:500px;">
87
-                            <div style="display:flex;" v-for="(item,i) in info.order_infos.slice(pageIndex * 13,(pageIndex * 13) + pageArr[pageIndex])" :key="i">
88
-                                <div style="border-left:1px solid #000;border-right:1px solid #000;width:40%;text-align:center;">
89
-                                    <p class="chargeP">
90
-                                        <span v-if='item.type == 1'>{{item.advice.advice_name}}</span>
91
-                                        <span v-if='item.project.type == 2'>{{item.project.project.project_name}}</span>
92
-                                        <span v-if='item.project.type == 3'>{{item.project.good_info.specification_name}}</span>
93
-                                    </p>
94
-                                </div>
95
-                                <div style="border-right:1px solid #000;width:15%;text-align:center;">
96
-                                    <p class="chargeP">
97
-                                        <span v-if='item.type == 1'>{{item.advice.drug.drug_spec}}</span>
98
-                                        <span v-if='item.type == 2'>{{item.project.project.unit}}</span>
99
-                                        <span v-if='item.type == 3'>{{item.project.unit}}</span>
100
-                                    </p>
101
-                                </div>
102
-                                <div style="border-right:1px solid #000;width:15%;text-align:center;">
103
-                                    <p class="chargeP">
104
-                                        <span>{{item.cnt}}次</span>
105
-                                    </p>
106
-                                </div>
107
-                                <div style="border-right:1px solid #000;width:15%;text-align:center;">
108
-                                    <p class="chargeP">
109
-                                        <span>{{item.pric}}元</span>
110
-                                    </p>
111
-                                </div>
112
-                                <div style="width:15%;text-align:center;">
113
-                                    <p class="chargeP">
114
-                                        <span>{{(item.cnt * item.pric).toFixed(2)}}元</span>
115
-                                    </p>
116
-                                </div>
117
-                            </div>
118
-                        </div>
119
-                    </div>
120
-
121
-                </div>
122
-                <div class="moneyBox">
123
-                    <p>实收金:{{info.medfee_sumamt?info.medfee_sumamt:0}}元</p>
124
-                    <p>记账前金额:{{0.00}}元</p>
125
-                    <p>扣款金额:{{0.00}}元</p>
126
-                    <p>记账后金额:{{info.balc}}元</p>
127
-                    <p>找赎金:{{0.00}}元</p>
128
-                </div>
129
-                <div class="actionBar">
130
-                    <div>收费员:{{info.charge_admin.user_name}}</div>
131
-                    <div>日期:{{info.setl_time ? info.setl_time.split(' ')[0] : ''}}</div>
132
-                </div>
133
-            </div>
134
-
135
-        </div>
136
-        <div v-else id='prescription-print' class="prescription-print">
2
+  <div>
3
+      <div v-if="paramsObj.balance_accounts_type != 2" id='prescription-print' class="prescription-print">
137
           <div v-for='(i,pageIndex) in pageArr.length' :key="pageIndex">
4
           <div v-for='(i,pageIndex) in pageArr.length' :key="pageIndex">
138
               <div class="printTitle">血液透析中心医药费收据及收费项目清单</div>
5
               <div class="printTitle">血液透析中心医药费收据及收费项目清单</div>
139
               <div class="infoMain">
6
               <div class="infoMain">
140
-                  <div class="infoP">医院(药店)编号:{{balanceAccounts.org_config.code}}</div>
141
-                  <div class="infoP">名称:{{balanceAccounts.org_config.org_name}}</div>
142
-                  <div class="infoP">医生工号:</div>
143
-                  <div class="infoP">门诊流水号:{{balanceAccounts.his.number ? balanceAccounts.his.number : ''}}</div>
144
-                  <div class="infoP">科别: {{balanceAccounts.order.department_name ? balanceAccounts.order.department_name : ''}}</div>
145
-                  <div class="infoP">处方单据号:{{balanceAccounts.order.number ? balanceAccounts.order.number : ''}}</div>
146
-                  <div class="infoP">姓名:{{balanceAccounts.patient ? balanceAccounts.patient.name : ''}}</div>
147
-                  <div class="infoP">医疗账号:</div>
148
-                  <div class="infoP">医疗类别:自费</div>
7
+                  <div class="infoP">医院(药店)编号:{{info.org_code}}</div>
8
+                  <div class="infoP">名称:{{info.org_name}}</div>
9
+                  <div class="infoP">医生工号:{{info.doctor_code}}</div>
10
+                  <div class="infoP">门诊流水号:{{info.number}}</div>
11
+                  <div class="infoP">科别: {{info.department}}</div>
12
+                  <div class="infoP">处方单据号:{{info.order_number}}</div>
13
+                  <div class="infoP">姓名:{{info.patient.name}}</div>
14
+                  <div class="infoP">医疗账号:{{info.health_card_no}}</div>
15
+                  <div class="infoP">医疗类别:</div>
149
               </div>
16
               </div>
150
               <div class="chargeBox">
17
               <div class="chargeBox">
151
                   <div style="display:flex;justify-content: space-between;border-bottom:1px solid #000;">
18
                   <div style="display:flex;justify-content: space-between;border-bottom:1px solid #000;">
163
                   </div>
30
                   </div>
164
                   <div style="display:flex;justify-content: space-between;">
31
                   <div style="display:flex;justify-content: space-between;">
165
                       <div style="width:20%;">
32
                       <div style="width:20%;">
166
-                          <div class="chargeUl" v-for="(item,i) in balanceAccounts.new_detail_list" :key="i">
167
-                              <p style="width:50%;">
168
-                                <span v-if="item.type == 1">药品费</span>
169
-                                <span v-if="item.type == 2">治疗费</span>
170
-                                <span v-if="item.type == 3">耗材费</span>
171
-                              </p>
172
-                              <p style="width:50%;">{{item.total?item.total:0}}元</p>
33
+                          <div class="chargeUl" v-if="info.bed_cost_total > 0">
34
+                              <p style="width:50%;">床位费</p>
35
+                              <p style="width:50%;">{{info.bed_cost_total?info.bed_cost_total:0}}元</p>
36
+                          </div>
37
+                          <div class="chargeUl" v-if="info.operation_cost_total > 0">
38
+                              <p style="width:50%;">手术费</p>
39
+                              <p style="width:50%;">{{info.operation_cost_total?info.operation_cost_total:0}}元</p>
40
+                          </div>
41
+                          <div class="chargeUl" v-if="info.other_cost_total > 0">
42
+                              <p style="width:50%;">其他费</p>
43
+                              <p style="width:50%;">{{info.other_cost_total?info.other_cost_total:0}}元</p>
44
+                          </div>
45
+                          <div class="chargeUl" v-if="info.material_cost_total > 0">
46
+                              <p style="width:50%;">材料费</p>
47
+                              <p style="width:50%;">{{info.material_cost_total?info.material_cost_total:0}}元</p>
48
+                          </div>
49
+                          <div class="chargeUl" v-if="info.western_medicine_cost_total > 0">
50
+                              <p style="width:50%;">西药费</p>
51
+                              <p style="width:50%;">{{info.western_medicine_cost_total?info.western_medicine_cost_total:0}}元</p>
52
+                          </div>
53
+                          <div class="chargeUl" v-if="info.chinese_traditional_medicine_cost_total > 0">
54
+                              <p style="width:50%;">中成费</p>
55
+                              <p style="width:50%;">{{info.chinese_traditional_medicine_cost_total?info.chinese_traditional_medicine_cost_total:0}}元</p>
56
+                          </div>
57
+                          <div class="chargeUl" v-if="info.check_cost_total > 0">
58
+                              <p style="width:50%;">检查费</p>
59
+                              <p style="width:50%;">{{info.check_cost_total?info.check_cost_total:0}}元</p>
60
+                          </div>
61
+                          <div class="chargeUl" v-if="info.laboratory_cost_total > 0">
62
+                              <p style="width:50%;">化验费</p>
63
+                              <p style="width:50%;">{{info.laboratory_cost_total?info.laboratory_cost_total:0}}元</p>
64
+                          </div>
65
+                          <div class="chargeUl" v-if="info.treat_cost_total > 0">
66
+                              <p style="width:50%;">治疗费</p>
67
+                              <p style="width:50%;">{{info.treat_cost_total?info.treat_cost_total:0}}元</p>
173
                           </div>
68
                           </div>
174
                           <div class="chargeUl" style="border-top:1px solid #000;">
69
                           <div class="chargeUl" style="border-top:1px solid #000;">
175
                               <p style="width:50%;">费用合计</p>
70
                               <p style="width:50%;">费用合计</p>
176
-                              <p style="width:50%;">{{balanceAccounts.order.medfee_sumamt?balanceAccounts.order.medfee_sumamt:0}}元</p>
71
+                              <p style="width:50%;">{{info.medfee_sumamt?info.medfee_sumamt:0}}元</p>
177
                           </div>
72
                           </div>
178
                           <div class="chargeUl" style="border-top:1px solid #000;">
73
                           <div class="chargeUl" style="border-top:1px solid #000;">
179
                               <p style="width:50%;">记账支付</p>
74
                               <p style="width:50%;">记账支付</p>
180
-                              <p style="width:50%;">0元</p>
75
+                              <p style="width:50%;">{{info.hifp_pay?info.hifp_pay:0}}元</p>
181
                           </div>
76
                           </div>
182
                           <div class="chargeUl" style="border-top:1px solid #000;">
77
                           <div class="chargeUl" style="border-top:1px solid #000;">
183
                               <p style="width:50%;">个人账号</p>
78
                               <p style="width:50%;">个人账号</p>
184
-                              <p style="width:50%;">0元</p>
79
+                              <p style="width:50%;">{{info.acct_pay?info.acct_pay:0}}元</p>
185
                           </div>
80
                           </div>
186
                           <div class="chargeUl" style="border-top:1px solid #000;border-bottom:1px solid #000;">
81
                           <div class="chargeUl" style="border-top:1px solid #000;border-bottom:1px solid #000;">
187
                               <p style="width:50%;">现金支付</p>
82
                               <p style="width:50%;">现金支付</p>
188
-                              <p style="width:50%;">{{balanceAccounts.order.medfee_sumamt?balanceAccounts.order.medfee_sumamt:0}}元</p>
83
+                              <p style="width:50%;">{{info.psn_pay?info.psn_pay:0}}元</p>
189
                           </div>
84
                           </div>
190
                       </div>
85
                       </div>
191
                       <div style="width:80%;max-height:500px;">
86
                       <div style="width:80%;max-height:500px;">
192
-                          <div style="display:flex;" v-for="(item,i) in balanceAccounts.order_info.slice(pageIndex * 13,(pageIndex * 13) + pageArr[pageIndex])" :key="i">
87
+                          <div style="display:flex;" v-for="(item,i) in info.order_infos.slice(pageIndex * 13,(pageIndex * 13) + pageArr[pageIndex])" :key="i">
193
                               <div style="border-left:1px solid #000;border-right:1px solid #000;width:40%;text-align:center;">
88
                               <div style="border-left:1px solid #000;border-right:1px solid #000;width:40%;text-align:center;">
194
                                   <p class="chargeP">
89
                                   <p class="chargeP">
195
-                                      <span v-if='item.advice_id > 0'>{{item.advice.advice_name}}</span>
90
+                                      <span v-if='item.type == 1'>{{item.advice.advice_name}}</span>
196
                                       <span v-if='item.project.type == 2'>{{item.project.project.project_name}}</span>
91
                                       <span v-if='item.project.type == 2'>{{item.project.project.project_name}}</span>
197
                                       <span v-if='item.project.type == 3'>{{item.project.good_info.specification_name}}</span>
92
                                       <span v-if='item.project.type == 3'>{{item.project.good_info.specification_name}}</span>
198
                                   </p>
93
                                   </p>
199
                               </div>
94
                               </div>
200
                               <div style="border-right:1px solid #000;width:15%;text-align:center;">
95
                               <div style="border-right:1px solid #000;width:15%;text-align:center;">
201
                                   <p class="chargeP">
96
                                   <p class="chargeP">
202
-                                      <span v-if='item.advice_id > 0'>{{item.advice.drug.drug_spec}}</span>
97
+                                      <span v-if='item.type == 1'>{{ item.advice.drug.dose + item.advice.drug.dose_unit + "*" +item.advice.drug.min_number + item.advice.drug.min_unit +"/" + item.advice.drug.max_unit}}</span>
203
                                       <span v-if='item.project.type == 2'>{{item.project.project.unit}}</span>
98
                                       <span v-if='item.project.type == 2'>{{item.project.project.unit}}</span>
204
                                       <span v-if='item.project.type == 3'>{{item.project.unit}}</span>
99
                                       <span v-if='item.project.type == 3'>{{item.project.unit}}</span>
205
                                   </p>
100
                                   </p>
206
                               </div>
101
                               </div>
207
                               <div style="border-right:1px solid #000;width:15%;text-align:center;">
102
                               <div style="border-right:1px solid #000;width:15%;text-align:center;">
208
                                   <p class="chargeP">
103
                                   <p class="chargeP">
209
-                                      <span>{{item.cnt}}次</span>
104
+                                    <span v-if='item.type == 1'>{{item.cnt}}{{item.advice.prescribing_number_unit}}</span>
105
+                                    <span v-if='item.project.type == 2'>{{item.cnt}}{{item.project.project.unit}}</span>
106
+                                    <span v-if='item.project.type == 3'>{{item.cnt}}{{item.project.unit}}</span>
210
                                   </p>
107
                                   </p>
211
                               </div>
108
                               </div>
212
                               <div style="border-right:1px solid #000;width:15%;text-align:center;">
109
                               <div style="border-right:1px solid #000;width:15%;text-align:center;">
225
 
122
 
226
               </div>
123
               </div>
227
               <div class="moneyBox">
124
               <div class="moneyBox">
228
-                  <p>实收金:{{balanceAccounts.order.medfee_sumamt?balanceAccounts.order.medfee_sumamt:0}}元</p>
125
+                  <p>实收金:{{info.medfee_sumamt?info.medfee_sumamt:0}}元</p>
229
                   <p>记账前金额:{{0.00}}元</p>
126
                   <p>记账前金额:{{0.00}}元</p>
230
                   <p>扣款金额:{{0.00}}元</p>
127
                   <p>扣款金额:{{0.00}}元</p>
231
-                  <p>记账后金额:{{0.00}}元</p>
128
+                  <p>记账后金额:{{info.balc}}元</p>
232
                   <p>找赎金:{{0.00}}元</p>
129
                   <p>找赎金:{{0.00}}元</p>
233
               </div>
130
               </div>
234
               <div class="actionBar">
131
               <div class="actionBar">
235
-                  <div>收费员:{{balanceAccounts.current_admin.user_name}}</div>
236
-                  <div>日期:{{getTime(balanceAccounts.order.settle_accounts_date,"{y}-{m}-{d}")?getTime(balanceAccounts.order.settle_accounts_date,"{y}-{m}-{d}"):""}}</div>
132
+                  <div>收费员:{{info.charge_admin.user_name}}</div>
133
+                  <div>日期:{{info.setl_time ? info.setl_time.split(' ')[0] : ''}}</div>
237
               </div>
134
               </div>
238
           </div>
135
           </div>
239
 
136
 
137
+      </div>
138
+      <div v-else id='prescription-print' class="prescription-print">
139
+        <div v-for='(i,pageIndex) in pageArr.length' :key="pageIndex">
140
+            <div class="printTitle">血液透析中心医药费收据及收费项目清单</div>
141
+            <div class="infoMain">
142
+                <div class="infoP">医院(药店)编号:{{balanceAccounts.org_config.code}}</div>
143
+                <div class="infoP">名称:{{balanceAccounts.org_config.org_name}}</div>
144
+                <div class="infoP">医生工号:</div>
145
+                <div class="infoP">门诊流水号:{{balanceAccounts.his.number ? balanceAccounts.his.number : ''}}</div>
146
+                <div class="infoP">科别: {{balanceAccounts.order.department_name ? balanceAccounts.order.department_name : ''}}</div>
147
+                <div class="infoP">处方单据号:{{balanceAccounts.order.number ? balanceAccounts.order.number : ''}}</div>
148
+                <div class="infoP">姓名:{{balanceAccounts.patient ? balanceAccounts.patient.name : ''}}</div>
149
+                <div class="infoP">医疗账号:</div>
150
+                <div class="infoP">医疗类别:自费</div>
151
+            </div>
152
+            <div class="chargeBox">
153
+                <div style="display:flex;justify-content: space-between;border-bottom:1px solid #000;">
154
+                    <div class="chargeUl" style="width:20%;">
155
+                        <p style="width:50%;border-right:1px solid #000;">费用类型</p>
156
+                        <p style="width:50%;border-right:1px solid #000;">金额</p>
157
+                    </div>
158
+                    <div class="chargeUl" style="width:80%;">
159
+                        <p style="width:40%;border-right:1px solid #000;">明细名称</p>
160
+                        <p style="width:15%;border-right:1px solid #000;">规格</p>
161
+                        <p style="width:15%;border-right:1px solid #000;">数量</p>
162
+                        <p style="width:15%;border-right:1px solid #000;">单价</p>
163
+                        <p style="width:15%;">金额</p>
164
+                    </div>
165
+                </div>
166
+                <div style="display:flex;justify-content: space-between;">
167
+                    <div style="width:20%;">
168
+                        <div class="chargeUl" v-for="(item,i) in balanceAccounts.new_detail_list" :key="i">
169
+                            <p style="width:50%;">
170
+                              <span v-if="item.type == 1">药品费</span>
171
+                              <span v-if="item.type == 2">治疗费</span>
172
+                              <span v-if="item.type == 3">耗材费</span>
173
+                            </p>
174
+                            <p style="width:50%;">{{item.total?item.total:0}}元</p>
175
+                        </div>
176
+                        <div class="chargeUl" style="border-top:1px solid #000;">
177
+                            <p style="width:50%;">费用合计</p>
178
+                            <p style="width:50%;">{{balanceAccounts.order.medfee_sumamt?balanceAccounts.order.medfee_sumamt:0}}元</p>
179
+                        </div>
180
+                        <div class="chargeUl" style="border-top:1px solid #000;">
181
+                            <p style="width:50%;">记账支付</p>
182
+                            <p style="width:50%;">0元</p>
183
+                        </div>
184
+                        <div class="chargeUl" style="border-top:1px solid #000;">
185
+                            <p style="width:50%;">个人账号</p>
186
+                            <p style="width:50%;">0元</p>
187
+                        </div>
188
+                        <div class="chargeUl" style="border-top:1px solid #000;border-bottom:1px solid #000;">
189
+                            <p style="width:50%;">现金支付</p>
190
+                            <p style="width:50%;">{{balanceAccounts.order.medfee_sumamt?balanceAccounts.order.medfee_sumamt:0}}元</p>
191
+                        </div>
192
+                    </div>
193
+                    <div style="width:80%;max-height:500px;">
194
+                        <div style="display:flex;" v-for="(item,i) in balanceAccounts.order_info.slice(pageIndex * 13,(pageIndex * 13) + pageArr[pageIndex])" :key="i">
195
+                            <div style="border-left:1px solid #000;border-right:1px solid #000;width:40%;text-align:center;">
196
+                                <p class="chargeP">
197
+                                    <span v-if='item.advice_id > 0'>{{item.advice.advice_name}}</span>
198
+                                    <span v-if='item.project.type == 2'>{{item.project.project.project_name}}</span>
199
+                                    <span v-if='item.project.type == 3'>{{item.project.good_info.specification_name}}</span>
200
+                                </p>
201
+                            </div>
202
+                            <div style="border-right:1px solid #000;width:15%;text-align:center;">
203
+                                <p class="chargeP">
204
+                                    <span v-if='item.advice_id > 0'>{{ item.advice.drug.dose + item.advice.drug.dose_unit + "*" +item.advice.drug.min_number + item.advice.drug.min_unit +"/" + item.advice.drug.max_unit}}</span>
205
+                                    <span v-if='item.project.type == 2'>{{item.project.project.unit}}</span>
206
+                                    <span v-if='item.project.type == 3'>{{item.project.unit}}</span>
207
+                                </p>
208
+                            </div>
209
+                            <div style="border-right:1px solid #000;width:15%;text-align:center;">
210
+                                <p class="chargeP">
211
+                                    <span>{{item.cnt}}次</span>
212
+                                </p>
213
+                            </div>
214
+                            <div style="border-right:1px solid #000;width:15%;text-align:center;">
215
+                                <p class="chargeP">
216
+                                    <span>{{item.pric}}元</span>
217
+                                </p>
218
+                            </div>
219
+                            <div style="width:15%;text-align:center;">
220
+                                <p class="chargeP">
221
+                                    <span>{{(item.cnt * item.pric).toFixed(2)}}元</span>
222
+                                </p>
223
+                            </div>
224
+                        </div>
225
+                    </div>
226
+                </div>
227
+
228
+            </div>
229
+            <div class="moneyBox">
230
+                <p>实收金:{{balanceAccounts.order.medfee_sumamt?balanceAccounts.order.medfee_sumamt:0}}元</p>
231
+                <p>记账前金额:{{0.00}}元</p>
232
+                <p>扣款金额:{{0.00}}元</p>
233
+                <p>记账后金额:{{0.00}}元</p>
234
+                <p>找赎金:{{0.00}}元</p>
235
+            </div>
236
+            <div class="actionBar">
237
+                <div>收费员:{{balanceAccounts.current_admin.user_name}}</div>
238
+                <div>日期:{{getTime(balanceAccounts.order.settle_accounts_date,"{y}-{m}-{d}")?getTime(balanceAccounts.order.settle_accounts_date,"{y}-{m}-{d}"):""}}</div>
239
+            </div>
240
         </div>
240
         </div>
241
-    </div>
241
+
242
+      </div>
243
+  </div>
242
 
244
 
243
 </template>
245
 </template>
244
 <script>
246
 <script>
245
-  import axios from 'axios'
246
-  import { getChargePrint } from '@/api/project/project'
247
-  import { uParseTime } from '@/utils/tools'
248
-
249
-  export default {
250
-    data() {
251
-      return {
252
-        list: {},
253
-        prescription: [],
254
-        patient: {},
255
-        orgname: '',
256
-
257
-        result: {},
258
-        org_code: '',
259
-        patient_name: '',
260
-        doctor_code: '',
261
-        doctor_name: '',
262
-
263
-        name_arr: [],
264
-        spec_arr: [],
265
-        count_arr: [],
266
-        price_arr: [],
267
-        total_arr: [],
268
-
269
-        page:1,
270
-        pageArr:[],
247
+import axios from 'axios'
248
+import { getChargePrint } from '@/api/project/project'
249
+import { uParseTime } from '@/utils/tools'
250
+
251
+export default {
252
+  data() {
253
+    return {
254
+      list: {},
255
+      prescription: [],
256
+      patient: {},
257
+      orgname: '',
258
+
259
+      result: {},
260
+      org_code: '',
261
+      patient_name: '',
262
+      doctor_code: '',
263
+      doctor_name: '',
264
+
265
+      name_arr: [],
266
+      spec_arr: [],
267
+      count_arr: [],
268
+      price_arr: [],
269
+      total_arr: [],
270
+
271
+      page:1,
272
+      pageArr:[],
271
 
273
 
272
-      }
273
-    },
274
-    props: {
275
-      paramsObj: Object,
276
-      info: Object,
277
-      balanceAccounts:Object
278
-    },
279
-    methods: {
280
-      getItemName(number) {
281
-        switch (number) {
282
-          case '01':
283
-            return '床位费'
284
-            break
285
-          case '02':
286
-            return '西药费'
287
-
288
-            break
289
-          case '03':
290
-            return '中药费'
291
-
292
-            break
293
-          case '04':
294
-            return '中成药费'
295
-
296
-            break
297
-          case '05':
298
-            return '中草药费'
299
-
300
-            break
301
-          case '06':
302
-            return '检查费'
303
-
304
-            break
305
-          case '07':
306
-            return '治疗费'
307
-
308
-            break
309
-          case '08':
310
-            return '放射费'
311
-
312
-            break
313
-          case '09':
314
-            return '手术费'
315
-
316
-            break
317
-          case '10':
318
-            return '化验费'
319
-
320
-            break
321
-          case '11':
322
-            return '输血费'
323
-
324
-            break
325
-          case '12':
326
-            return '输氧费'
327
-
328
-            break
329
-          case '13':
330
-            return '其它费'
331
-
332
-            break
333
-          case '14':
334
-            return '麻醉费'
335
-
336
-            break
337
-          case '15':
338
-            return '材料费'
339
-
340
-            break
341
-          case '16':
342
-            return '特殊检查费'
343
-
344
-            break
345
-          case '17':
346
-            return '特殊治疗费'
347
-
348
-            break
349
-          case '18':
350
-            return '诊疗费(诊查费)'
351
-
352
-            break
353
-          case '19':
354
-            return '护理费'
355
-
356
-            break
357
-          case '20':
358
-            return '诊金'
359
-
360
-            break
361
-          case '21':
362
-            return '检查费(CT)'
363
-
364
-            break
365
-          case '22':
366
-            return '检查费(MRT)'
367
-
368
-            break
369
-          case '23':
370
-            return '检查费(其他)'
371
-
372
-            break
373
-          case '24':
374
-            return '特需服务费'
375
-
376
-            break
377
-          case '25':
378
-            return '杂费'
379
-
380
-            break
381
-          case '26':
382
-            return '挂号费'
383
-            break
274
+    }
275
+  },
276
+  props: {
277
+    paramsObj: Object,
278
+    info: Object,
279
+    balanceAccounts:Object
280
+  },
281
+  methods: {
282
+    getItemName(number) {
283
+      switch (number) {
284
+        case '01':
285
+          return '床位费'
286
+          break
287
+        case '02':
288
+          return '西药费'
289
+
290
+          break
291
+        case '03':
292
+          return '中药费'
293
+
294
+          break
295
+        case '04':
296
+          return '中成药费'
297
+
298
+          break
299
+        case '05':
300
+          return '中草药费'
301
+
302
+          break
303
+        case '06':
304
+          return '检查费'
305
+
306
+          break
307
+        case '07':
308
+          return '治疗费'
309
+
310
+          break
311
+        case '08':
312
+          return '放射费'
313
+
314
+          break
315
+        case '09':
316
+          return '手术费'
317
+
318
+          break
319
+        case '10':
320
+          return '化验费'
321
+
322
+          break
323
+        case '11':
324
+          return '输血费'
325
+
326
+          break
327
+        case '12':
328
+          return '输氧费'
329
+
330
+          break
331
+        case '13':
332
+          return '其它费'
333
+
334
+          break
335
+        case '14':
336
+          return '麻醉费'
337
+
338
+          break
339
+        case '15':
340
+          return '材料费'
341
+
342
+          break
343
+        case '16':
344
+          return '特殊检查费'
345
+
346
+          break
347
+        case '17':
348
+          return '特殊治疗费'
349
+
350
+          break
351
+        case '18':
352
+          return '诊疗费(诊查费)'
353
+
354
+          break
355
+        case '19':
356
+          return '护理费'
357
+
358
+          break
359
+        case '20':
360
+          return '诊金'
361
+
362
+          break
363
+        case '21':
364
+          return '检查费(CT)'
365
+
366
+          break
367
+        case '22':
368
+          return '检查费(MRT)'
369
+
370
+          break
371
+        case '23':
372
+          return '检查费(其他)'
373
+
374
+          break
375
+        case '24':
376
+          return '特需服务费'
377
+
378
+          break
379
+        case '25':
380
+          return '杂费'
381
+
382
+          break
383
+        case '26':
384
+          return '挂号费'
385
+          break
384
 
386
 
385
-        }
387
+      }
386
 
388
 
387
-      },
388
-      getPage(){
389
-        if(this.paramsObj.balance_accounts_type != 2){
390
-          this.page = 1
391
-          this.pageArr = []
392
-          if(this.info.order_infos.length <= 13){
393
-              this.page = 1
394
-              this.pageArr.push(this.info.order_infos.length)
395
-              console.log('this.pageArr',this.pageArr)
396
-          }else if(this.info.order_infos.length > 13){
397
-              this.page = parseInt(this.info.order_infos.length / 13)
398
-              let num = this.info.order_infos.length % 13
399
-              for (var i=0;i<this.page;i++){
400
-                  this.pageArr.push(13)
401
-              }
402
-              if(num != 0){
403
-                  this.pageArr.push(num)
404
-              }
405
-          }
406
-        }else{
407
-          this.page = 1
408
-          this.pageArr = []
409
-          if(this.balanceAccounts.order_info.length <= 13){
410
-              this.page = 1
411
-              this.pageArr.push(this.balanceAccounts.order_info.length)
412
-              console.log('this.pageArr',this.pageArr)
413
-          }else if(this.balanceAccounts.order_info.length > 13){
414
-              this.page = parseInt(this.balanceAccounts.order_info.length / 13)
415
-              let num = this.balanceAccounts.order_info.length % 13
416
-              for (var i=0;i<this.page;i++){
417
-                  this.pageArr.push(13)
418
-              }
419
-              if(num != 0){
420
-                  this.pageArr.push(num)
421
-              }
422
-          }
389
+    },
390
+    getPage(){
391
+      if(this.paramsObj.balance_accounts_type != 2){
392
+        this.page = 1
393
+        this.pageArr = []
394
+        if(this.info.order_infos.length <= 13){
395
+            this.page = 1
396
+            this.pageArr.push(this.info.order_infos.length)
397
+            console.log('this.pageArr',this.pageArr)
398
+        }else if(this.info.order_infos.length > 13){
399
+            this.page = parseInt(this.info.order_infos.length / 13)
400
+            let num = this.info.order_infos.length % 13
401
+            for (var i=0;i<this.page;i++){
402
+                this.pageArr.push(13)
403
+            }
404
+            if(num != 0){
405
+                this.pageArr.push(num)
406
+            }
423
         }
407
         }
424
-
425
-      },
426
-      getTime(value, temp) {
427
-        if (value != undefined) {
428
-          return uParseTime(value, temp)
408
+      }else{
409
+        this.page = 1
410
+        this.pageArr = []
411
+        if(this.balanceAccounts.order_info.length <= 13){
412
+            this.page = 1
413
+            this.pageArr.push(this.balanceAccounts.order_info.length)
414
+            console.log('this.pageArr',this.pageArr)
415
+        }else if(this.balanceAccounts.order_info.length > 13){
416
+            this.page = parseInt(this.balanceAccounts.order_info.length / 13)
417
+            let num = this.balanceAccounts.order_info.length % 13
418
+            for (var i=0;i<this.page;i++){
419
+                this.pageArr.push(13)
420
+            }
421
+            if(num != 0){
422
+                this.pageArr.push(num)
423
+            }
429
         }
424
         }
430
-        return ''
431
       }
425
       }
432
-    },
433
-    created() {
434
-
435
 
426
 
436
     },
427
     },
437
-    watch:{
438
-      info: {
439
-        handler(newVal) {
440
-            this.getPage()
441
-        },
442
-        deep: true,
443
-      },
444
-      balanceAccounts(){
445
-        this.getPage()
446
-      },
447
-      deep: true
428
+    getTime(value, temp) {
429
+      if (value != undefined) {
430
+        return uParseTime(value, temp)
431
+      }
432
+      return ''
448
     }
433
     }
434
+  },
435
+  created() {
436
+
449
 
437
 
438
+  },
439
+  watch:{
440
+    info: {
441
+      handler(newVal) {
442
+          this.getPage()
443
+      },
444
+      deep: true,
445
+    },
446
+    balanceAccounts(){
447
+      this.getPage()
448
+    },
449
+    deep: true
450
   }
450
   }
451
+
452
+}
451
 </script>
453
 </script>
452
 
454
 
453
 
455
 
454
 <style lang="scss" scoped>
456
 <style lang="scss" scoped>
455
-    .prescription-print {
456
-        -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
457
-        -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
458
-        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
459
-        margin-bottom: 20px;
460
-        padding: 20px 10px;
461
-    }
457
+  .prescription-print {
458
+      -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
459
+      -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
460
+      box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
461
+      margin-bottom: 20px;
462
+      padding: 20px 10px;
463
+  }
462
 
464
 
463
-    .printTitle {
464
-        font-size: 22px;
465
-        text-align: center;
466
-        font-weight: bold;
467
-    }
465
+  .printTitle {
466
+      font-size: 22px;
467
+      text-align: center;
468
+      font-weight: bold;
469
+  }
468
 
470
 
469
-    .infoMain {
470
-        display: flex;
471
-        flex-wrap: wrap;
472
-        padding: 0 10px;
473
-        margin-top: 10px;
474
-    }
471
+  .infoMain {
472
+      display: flex;
473
+      flex-wrap: wrap;
474
+      padding: 0 10px;
475
+      margin-top: 10px;
476
+  }
475
 
477
 
476
-    .infoMain .infoP {
477
-        width: 33%;
478
-        line-height: 24px;
479
-    }
478
+  .infoMain .infoP {
479
+      width: 33%;
480
+      line-height: 24px;
481
+  }
480
 
482
 
481
-    .chargeBox {
482
-        border: 1px solid #000;
483
-    }
483
+  .chargeBox {
484
+      border: 1px solid #000;
485
+  }
484
 
486
 
485
-    .chargeUl {
486
-        display: flex;
487
-        justify-content: space-between;
488
-        text-align: center;
489
-    }
487
+  .chargeUl {
488
+      display: flex;
489
+      justify-content: space-between;
490
+      text-align: center;
491
+  }
490
 
492
 
491
-    .chargeUl p {
492
-        height: 40px;
493
-        line-height: 40px;
494
-    }
493
+  .chargeUl p {
494
+      height: 40px;
495
+      line-height: 40px;
496
+  }
495
 
497
 
496
-    .chargeP {
497
-        height: 40px;
498
-        line-height: 40px;
499
-    }
498
+  .chargeP {
499
+      height: 40px;
500
+      line-height: 40px;
501
+  }
500
 
502
 
501
-    .moneyBox {
502
-        display: flex;
503
-        justify-content: space-between;
504
-        padding: 0 10px;
505
-        background: #eee;
506
-        height: 40px;
507
-        align-items: center;
508
-        border: 1px solid #000;
509
-        border-top: none
510
-    }
503
+  .moneyBox {
504
+      display: flex;
505
+      justify-content: space-between;
506
+      padding: 0 10px;
507
+      background: #eee;
508
+      height: 40px;
509
+      align-items: center;
510
+      border: 1px solid #000;
511
+      border-top: none
512
+  }
511
 
513
 
512
-    .actionBar {
513
-        display: flex;
514
-        justify-content: space-between;
515
-        line-height: 24px;
516
-        padding: 0 10px;
517
-    }
514
+  .actionBar {
515
+      display: flex;
516
+      justify-content: space-between;
517
+      line-height: 24px;
518
+      padding: 0 10px;
519
+  }
518
 
520
 
519
-    .actionBar div {
520
-        width: 150px;
521
-    }
521
+  .actionBar div {
522
+      width: 150px;
523
+  }
522
 </style>
524
 </style>

+ 9 - 1
src/xt_pages/outpatientTool/components/settle.vue Прегледај датотеку

129
               <template slot-scope="scope">{{scope.row.hifmi_pay.toFixed(2)}}</template>
129
               <template slot-scope="scope">{{scope.row.hifmi_pay.toFixed(2)}}</template>
130
           </el-table-column>
130
           </el-table-column>
131
 
131
 
132
+        <el-table-column align="center" prop="item_name" label="其他支付">
133
+          <template slot-scope="scope">{{scope.row.oth_pay.toFixed(2)}}</template>
134
+        </el-table-column>
135
+
136
+        <el-table-column align="center" prop="item_name" label="公务员医疗补助资金支出">
137
+          <template slot-scope="scope">{{scope.row.cvlserv_pay.toFixed(2)}}</template>
138
+        </el-table-column>
139
+
132
         <el-table-column align="center" prop="item_name" label="微信支付">
140
         <el-table-column align="center" prop="item_name" label="微信支付">
133
           <template slot-scope="scope">{{scope.row.wechat_pay}}</template>
141
           <template slot-scope="scope">{{scope.row.wechat_pay}}</template>
134
         </el-table-column>
142
         </el-table-column>
352
         })
360
         })
353
         this.sameRowArr = sameRowArr
361
         this.sameRowArr = sameRowArr
354
       }, merge({ row, column, rowIndex, columnIndex }) {
362
       }, merge({ row, column, rowIndex, columnIndex }) {
355
-        if (columnIndex === 0 || columnIndex === 1  || columnIndex === 15) {
363
+        if (columnIndex === 0 || columnIndex === 1) {
356
           const _row = this.tempArr[rowIndex]
364
           const _row = this.tempArr[rowIndex]
357
           const _col = _row > 0 ? 1 : 0
365
           const _col = _row > 0 ? 1 : 0
358
           return {
366
           return {

+ 5 - 0
src/xt_pages/user/doctorAdvice.vue Прегледај датотеку

4415
       // this.sameRowArr = sameRowArr;
4415
       // this.sameRowArr = sameRowArr;
4416
     },
4416
     },
4417
     mergeSpan({ row, column, rowIndex, columnIndex }) {
4417
     mergeSpan({ row, column, rowIndex, columnIndex }) {
4418
+     
4418
       if (columnIndex === 0 || columnIndex === 1 || columnIndex === 2) {
4419
       if (columnIndex === 0 || columnIndex === 1 || columnIndex === 2) {
4419
         const _row = this.tempArr[rowIndex];
4420
         const _row = this.tempArr[rowIndex];
4420
         const _col = _row > 0 ? 1 : 0;
4421
         const _col = _row > 0 ? 1 : 0;
4422
+        console.log("_row--------------",_row)
4423
+        console.log("_col",_col)
4421
         return {
4424
         return {
4422
           rowspan: _row,
4425
           rowspan: _row,
4423
           colspan: _col
4426
           colspan: _col
4778
       },
4781
       },
4779
   },
4782
   },
4780
   watch: {
4783
   watch: {
4784
+
4781
     adviceTableData: function() {
4785
     adviceTableData: function() {
4786
+      console.log("hhahahhahah",this.adviceTableData)
4782
       this.handleSpanTempArr();
4787
       this.handleSpanTempArr();
4783
     },
4788
     },
4784
     "selectedTemp.list": function() {
4789
     "selectedTemp.list": function() {