Kaynağa Gözat

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

陈少旭 1 yıl önce
ebeveyn
işleme
c3b1d804f3

+ 10 - 1
src/api/role/admin.js Dosyayı Görüntüle

@@ -318,4 +318,13 @@ export function toCheckPDFInformation(params){
318 318
     method:"Get",
319 319
     params:params,
320 320
   })
321
-}
321
+}
322
+
323
+// export function getdruginfoInformation(params){
324
+
325
+//    return request({
326
+//     url:"/api/device/getdruginfoinformation",
327
+//     method:"Get",
328
+//     params:params,
329
+//    })
330
+// }

+ 31 - 1
src/xt_pages/device/airDisinfectTwo.vue Dosyayı Görüntüle

@@ -1575,7 +1575,37 @@
1575 1575
         })
1576 1576
         }, 
1577 1577
       AddCard(){
1578
-        this.dialogFormVisible =  true
1578
+        console.log("storeywowoowow",this.form.storey)
1579
+        if(this.form.storey!=""){
1580
+          console.log("进来2222")
1581
+          getAirDisinfectWayLongTime(this.form.department).then(response=>{
1582
+          if(response.data.state == 1){
1583
+            var list = response.data.data.list
1584
+           
1585
+           var first_total_time = 0
1586
+         
1587
+           var last_total_time = 0
1588
+           if(list!=null && list.length>0){
1589
+              for(let i=0;i<list.length;i++){
1590
+                first_total_time += parseFloat(list[i].first_total_time)
1591
+                last_total_time +=parseFloat(list[i].last_total_time)
1592
+              }
1593
+           
1594
+            this.form.first_total_time = ""
1595
+            this.form.first_total_time = first_total_time
1596
+            this.first_total_time = first_total_time
1597
+            this.form.last_total_time =""
1598
+            this.form.last_total_time = last_total_time
1599
+            this.last_total_time = last_total_time
1600
+            }
1601
+            this.dialogFormVisible = true
1602
+          }  
1603
+        })  
1604
+        }else{
1605
+          console.log("进来11111")
1606
+          this.dialogFormVisible =  true
1607
+        }
1608
+       
1579 1609
       },
1580 1610
       AddCardOne(){
1581 1611
         getAirDisinfectWayLongTime(this.form.department).then(response=>{

+ 39 - 1
src/xt_pages/dialysis/PatientBox.vue Dosyayı Görüntüle

@@ -269,7 +269,7 @@ import {
269 269
   getDialysisScheduleDetail,
270 270
   getLongAdviceOne,
271 271
 } from "@/api/dialysis_record";
272
-
272
+const moment = require('moment')
273 273
 export default {
274 274
   name: "PatientBox",
275 275
   components: {
@@ -714,8 +714,46 @@ export default {
714 714
           switch (status) {
715 715
             case 2:
716 716
               var totalAdvice = resp.data.advices;
717
+              console.log("totalAdvice",totalAdvice)
717 718
               var longAdvicesTwo = resp.data.advices_two;
718 719
               var waitUploadAdvices = [];
720
+
721
+              var total_day = ""
722
+              if(moment().weekday() == 1){
723
+                total_day ="周一"
724
+              }
725
+              if(moment().weekday() == 2){
726
+                total_day ="周二"
727
+              }
728
+              if(moment().weekday() == 3){
729
+                total_day ="周三"
730
+              }
731
+              if(moment().weekday() == 4){
732
+                total_day ="周四"
733
+              }
734
+              if(moment().weekday() == 5){
735
+                total_day ="周五"
736
+              }
737
+              if(moment().weekday() == 6){
738
+                total_day ="周六"
739
+              }
740
+              if(moment().weekday() == 0){
741
+                total_day ="周日"
742
+              }
743
+             
744
+              if(totalAdvice!=null && totalAdvice.length >0){
745
+                for (let i = 0; i < totalAdvice.length; i++) {
746
+                  if(totalAdvice[i].week_day.indexOf(total_day)!=-1){
747
+                    totalAdvice[i].isCheck = 1
748
+                  }
749
+                  if(totalAdvice[i].frequency_type == 1){
750
+                    totalAdvice[i].isCheck = 1
751
+                  }
752
+                }
753
+              }
754
+
755
+              console.log("totalAdviceowoowowowow",totalAdvice)
756
+
719 757
               for (let i = 0; i < totalAdvice.length; i++) {
720 758
                 totalAdvice[i]["isCheck"] = 1;
721 759
               }

+ 2 - 2
src/xt_pages/dialysis/batch_print/batch_print_order_fortyThree.vue Dosyayı Görüntüle

@@ -328,7 +328,7 @@
328 328
                         <td width="60" style="height:20px;line-height:20px">静脉压<br />mmHg</td>
329 329
                         <td width="60" style="height:20px;line-height:20px">动脉压<br />mmHg</td>
330 330
                         <td width="60" style="height:20px;line-height:20px">跨膜压<br />mmHg</td>
331
-                        <td width="60" style="height:20px;line-height:20px">温度<br />°C</td>
331
+                        <!-- <td width="60" style="height:20px;line-height:20px">温度<br />°C</td> -->
332 332
                         <td width="60" style="height:20px;line-height:20px">超滤率<br />ml/h</td>
333 333
                         <td width="60" style="height:20px;line-height:20px">超滤量<br />ml</td>
334 334
 <!--                        <td width="60" style="height:20px;line-height:20px" v-if="record.prescription.mode_id == 2">置换率<br /><br />ml/h</td>-->
@@ -352,7 +352,7 @@
352 352
                         <td>&nbsp;<span v-if="monitor.operate_time">{{ monitor.arterial_pressure ? monitor.arterial_pressure : "/" }}</span></td>
353 353
 
354 354
                         <td>&nbsp;<span v-if="monitor.operate_time">{{ monitor.transmembrane_pressure ? monitor.transmembrane_pressure : "/" }}</span></td>
355
-                        <td>&nbsp;<span v-if="monitor.operate_time">{{monitor.dialysate_temperature ? monitor.dialysate_temperature : '/'}}</span></td>
355
+                        <!-- <td>&nbsp;<span v-if="monitor.operate_time">{{monitor.dialysate_temperature ? monitor.dialysate_temperature : '/'}}</span></td> -->
356 356
                         <td>&nbsp;<span v-if="monitor.operate_time">{{ monitor.ultrafiltration_rate ? monitor.ultrafiltration_rate : '/'}}</span></td>
357 357
                         <td>&nbsp;<span v-if="monitor.operate_time">{{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "/" }}</span></td>
358 358
 <!--                        <td v-if="record.prescription.mode_id == 2">&nbsp;<span v-if="monitor.operate_time">{{ monitor.replacement_rate ? monitor.replacement_rate : '/'}}</span></td>-->

+ 1 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_sixtyeight.vue Dosyayı Görüntüle

@@ -1385,7 +1385,7 @@
1385 1385
                             {{
1386 1386
                               monitor_record.pulse_frequency
1387 1387
                                 ? monitor_record.pulse_frequency
1388
-                                : ""
1388
+                                : "拒测"
1389 1389
                             }}
1390 1390
                           </td>
1391 1391
                           <td v-if="org_id!=10489">

+ 14 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_twentySeven.vue Dosyayı Görüntüle

@@ -2721,7 +2721,20 @@
2721 2721
                         <table class="table-box" style="margin-bottom: 20px">
2722 2722
                           <tbody>
2723 2723
                             <tr>
2724
-                              <!-- <td width="70">其他记录:</td> -->
2724
+                             <td width="100">输液量(ml):</td>
2725
+                              <td width="100">
2726
+                                <div class="under-line">
2727
+                                  &nbsp;{{record.assessment_after_dislysis.transfusion_volume? record.assessment_after_dislysis.transfusion_volume: ""}}
2728
+                                </div>
2729
+                              </td>
2730
+                              <td width=""></td>
2731
+                            </tr>
2732
+                          </tbody>
2733
+                        </table>
2734
+
2735
+                        <table class="table-box" style="margin-bottom: 20px">
2736
+                          <tbody>
2737
+                            <tr>
2725 2738
                               <td width="70">特殊记录:</td>
2726 2739
                               <td width="">
2727 2740
                                 <div

+ 1 - 1
src/xt_pages/dialysis/details/DialysisPrescription.vue Dosyayı Görüntüle

@@ -29,7 +29,7 @@
29 29
         <li v-if="isShow('置换速度') && this.$store.getters.xt_user.template_info.org_id == 10375">
30 30
           <label>置换速度 : </label>
31 31
           <span class="content">{{displace_speed }}</span>
32
-            <span class="unit">L/h</span>
32
+            <span class="unit">ml/min</span>
33 33
         </li>
34 34
 
35 35
 

+ 5 - 0
src/xt_pages/dialysis/details/assessmentAfter.vue Dosyayı Görüntüle

@@ -328,6 +328,11 @@
328 328
           <label>累计血容量: </label>
329 329
           <span class="content" >{{ this.record.accumulated_blood_volume}}</span>
330 330
         </li>
331
+
332
+        <li v-if="isShow('输液量')">
333
+          <label>输液量(ml): </label>
334
+          <span class="content" >{{ this.record.transfusion_volume}}</span>
335
+        </li>
331 336
       </ul>
332 337
     </div>
333 338
     <!-- <div class="note">

+ 8 - 2
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue Dosyayı Görüntüle

@@ -622,6 +622,12 @@
622 622
               <el-input v-model="form.accumulated_blood_volume"></el-input>
623 623
             </el-form-item>
624 624
         </el-col>
625
+
626
+        <el-col :span="8" v-if="isShow('输液量')">
627
+            <el-form-item label="输液量(ml): " :prop="isName('输液量')" :rules="isCheckmust('输液量')">
628
+              <el-input v-model="form.transfusion_volume"></el-input>
629
+            </el-form-item>
630
+          </el-col>
625 631
         <el-col :span="24" v-if="isShow('KT/V')">
626 632
             <el-form-item label="KT/V:" :prop="isName('KT/V')" :rules="isCheckmust('KT/V')">
627 633
               <el-input type="textarea" :rows="4" v-model="form.ktv"></el-input>
@@ -858,7 +864,7 @@ export default {
858 864
         machine_run:0,
859 865
         after_urea:"",
860 866
         accumulated_blood_volume:"",
861
-
867
+        transfusion_volume:"",
862 868
       },
863 869
       lapseList:[],
864 870
       leaveOfficeMethod:[],
@@ -1181,7 +1187,7 @@ export default {
1181 1187
           data["after_urea"] = this.form.after_urea
1182 1188
           data["pip_coagulation"] = this.form.pip_coagulation
1183 1189
           data["accumulated_blood_volume"] = this.form.accumulated_blood_volume
1184
-
1190
+          data["transfusion_volume"] = this.form.transfusion_volume
1185 1191
           console.log("Data",data)
1186 1192
           console.log("Paramsquery",data)
1187 1193
 

+ 7 - 1
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Dosyayı Görüntüle

@@ -2772,12 +2772,15 @@ mu
2772 2772
         if(moment().weekday() == 0){
2773 2773
            total_day ="周日"
2774 2774
         }
2775
-        console.log("---------",this.targetAdvices)
2775
+       
2776 2776
         if(this.targetAdvices!=null && this.targetAdvices.length >0){
2777 2777
             for (let i = 0; i < this.targetAdvices.length; i++) {
2778 2778
               if(this.targetAdvices[i].week_day.indexOf(total_day)!=-1){
2779 2779
                 this.targetAdvices[i].isCheck = 1
2780 2780
               }
2781
+              if(this.targetAdvices[i].frequency_type == 1){
2782
+                this.targetAdvices[i].isCheck = 1
2783
+               }
2781 2784
             }
2782 2785
         }
2783 2786
         for (let i = 0; i < this.targetAdvices.length; i++) {
@@ -2786,11 +2789,14 @@ mu
2786 2789
             this.checkedCities.push(this.targetAdvices[i].id)
2787 2790
           }
2788 2791
         }
2792
+
2793
+
2789 2794
         if(admins.length > 0 ){
2790 2795
           for(let i=0;i<admins.length;i++){
2791 2796
             this.adminRoles.push(admins[i])
2792 2797
           }
2793 2798
         }
2799
+        console.log("---------",this.targetAdvices)
2794 2800
         console.log("admin_user_+id2332323223332", this.adminRoles)
2795 2801
       },
2796 2802
       hide() {

+ 2 - 5
src/xt_pages/dialysis/template/DialysisPrintOrderFiftySeven.vue Dosyayı Görüntüle

@@ -371,14 +371,11 @@
371 371
                 <div style="width: 75%">
372 372
                   血管通路: &nbsp;
373 373
                   <label-box
374
-                    :isChecked="
375
-                      predialysis.blood_access_part_opera_name == '内瘘'
376
-                        ? true
377
-                        : false
378
-                    "
374
+                    :isChecked="predialysis.blood_access_part_opera_name == '内瘘'? true: false"
379 375
                     showValue="内瘘"
380 376
                   ></label-box
381 377
                   >&nbsp; &nbsp;
378
+                  
382 379
                   <label-box
383 380
                     :isChecked="
384 381
                       predialysis.blood_access_part_opera_name.indexOf(

+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderSixtyeight.vue Dosyayı Görüntüle

@@ -1246,7 +1246,7 @@
1246 1246
                         <td>{{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
1247 1247
                         <td>{{monitor.systolic_blood_pressure? monitor.systolic_blood_pressure + "/": ""}}
1248 1248
                           {{monitor.diastolic_blood_pressure? monitor.diastolic_blood_pressure: "拒测"}}</td>
1249
-                        <td>{{ monitor.pulse_frequency? monitor.pulse_frequency: ""}}</td>
1249
+                        <td>{{ monitor.pulse_frequency? monitor.pulse_frequency: "拒测"}}</td>
1250 1250
                         <td v-if="org_id!=10489">{{monitor.breathing_rate ? monitor.breathing_rate : ""}}</td>
1251 1251
                         <td>{{monitor.blood_flow_volume? monitor.blood_flow_volume: ""}}</td>
1252 1252
                         <td v-if="org_id ==10478">

+ 58 - 4
src/xt_pages/dialysis/template/DialysisPrintOrderSixtyfour.vue Dosyayı Görüntüle

@@ -1142,14 +1142,68 @@ export default {
1142 1142
           this.advices = tableAdvice;
1143 1143
         }
1144 1144
 
1145
-        var arr = [] 
1146
-        arr = this.unique(this.advices)
1145
+        // var arr = [] 
1146
+        // arr = this.unique(this.advices)
1147
+        // console.log("arriooowo",arr)
1148
+        // if(arr!=null && arr.length >0){
1149
+  
1150
+        //    for(let i=0;i<arr.length;i++){
1151
+        //       if(arr[i].advice_name!="" && arr[i].advice_name!=undefined){
1152
+        //         arr[i].prescription_id_no = 0
1153
+        //         arr[i].prescription_id_no = parseInt(arr[i].prescription_id)  + parseInt(arr[i].groupno)
1154
+        //       }else{
1155
+        //         arr[i].prescription_id_no = 0
1156
+        //       }
1157
+             
1158
+        //    }
1159
+        //    let dataInfo = {}
1160
+        //    arr.forEach((item, index) => {
1161
+        //       let { prescription_id_no } = item
1162
+        //       if (!dataInfo[prescription_id_no]) {
1163
+        //         dataInfo[prescription_id_no] = {
1164
+        //           prescription_id_no:item.prescription_id_no,
1165
+        //           advice_name:item.advice_name,
1166
+        //           start_time:item.start_time,
1167
+        //           single_dose:item.single_dose,
1168
+        //           single_dose_unit:item.unit,
1169
+        //           execution_time:item.execution_time,
1170
+        //           execution_staff:item.execution_staff, 
1171
+        //           advice_doctor:item.advice_doctor,
1172
+        //           checker:item.checker,
1173
+        //           check_time:item.check_time,
1174
+        //           delivery_way:item.delivery_way,
1175
+        //           frequency_type:item.frequency_type,
1176
+        //           prescribing_number:item.prescribing_number,
1177
+        //           prescribing_number_unit:item.prescribing_number_unit,
1178
+        //           single_dose:item.single_dose,
1179
+        //           single_dose_unit:item.single_dose_unit,
1180
+        //           child:[]
1181
+                 
1182
+        //         }
1183
+        //       }
1184
+        //     })
1185
+        //     let newArr = Object.values(dataInfo)
1186
+
1187
+        //     if(newArr!=null && newArr.length>0){
1188
+        //       for(let i=0;i<newArr.length;i++){
1189
+        //         for(let i=0;i<arr[i].length;i++){
1190
+        //            if(newArr[i].prescription_id_no == arr[i].prescription_id_no){
1191
+        //                newArr[i].child.push(arr[i])
1192
+        //            }
1193
+        //         }
1194
+        //       }
1195
+        //     }
1196
+        //     console.log("newARRWOOWOW",newArr)
1197
+
1198
+        // }
1199
+
1200
+
1147 1201
         this.advices = []
1148 1202
         this.advices= arr
1149
-        console.log("wowoowowowo",arr)
1203
+     
1150 1204
         console.log("advices-----------------",this.advices)
1151 1205
 
1152
- 
1206
+         
1153 1207
          
1154 1208
 
1155 1209
         // this.loading = false;

+ 14 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderTwentySeven.vue Dosyayı Görüntüle

@@ -1039,6 +1039,20 @@
1039 1039
                   </tbody>
1040 1040
                 </table>
1041 1041
 
1042
+                <table class="table-box">
1043
+                  <tbody>
1044
+                    <tr>
1045
+                        <td width="100">输液量(ml):</td>
1046
+                        <td width="140">
1047
+                          <div class="under-line">&nbsp;<span>{{ afterdialysis.transfusion_volume ? afterdialysis.transfusion_volume : '' }}</span></div>
1048
+                        </td>
1049
+                        
1050
+                        <td></td>
1051
+                    </tr>
1052
+                  </tbody>
1053
+                </table>
1054
+
1055
+
1042 1056
                 <table class="table-box" style="margin-bottom:20px;">
1043 1057
                   <tbody>
1044 1058
                     <tr>

+ 29 - 29
src/xt_pages/outpatientCharges/invoiceTemplate/printEleven.vue Dosyayı Görüntüle

@@ -9,49 +9,49 @@
9 9
     <div>
10 10
       <div style="position: absolute;top: 50px;left: 60px;">{{ paramsObj.name }}</div>
11 11
       <div style="display:flex;justify-content: space-between;">
12
-          <div  style="position: absolute;top:50px;left:260px;">√</div>
12
+          <div  style="position: absolute;top:50px;left:270px;">√</div>
13 13
           <div  style="position: absolute;top:50px;left:220px;"></div>
14 14
           <div  style="position: absolute;top:50px;left:250px;"></div>
15 15
       </div>
16 16
       <div style="display:flex;justify-content: space-between;">
17
-          <div  style="position: absolute;top:50px;left:570px;" v-if="list.gender == 1">√</div>
18
-          <div  style="position: absolute;top:50px;left:630px;" v-else-if="list.gender == 2">√</div>
17
+          <div  style="position: absolute;top:50px;left:580px;" v-if="list.gender == 1">√</div>
18
+          <div  style="position: absolute;top:50px;left:640px;" v-else-if="list.gender == 2">√</div>
19 19
       </div>
20 20
     </div>
21 21
     <div style="display:flex;justify-content: space-between;">
22 22
       <div  style="position: absolute;top:88px;left:120px;">医保</div>
23
-      <div  style="position: absolute;top:88px;left:340px;">{{ list.number.length <= 13 ? list.psn_cash_money.toFixed(2) : (list.psn_cash_money).toFixed(2) }}</div>
24
-      <div  style="position: absolute;top:88px;left:570px;">现金</div>
23
+      <div  style="position: absolute;top:88px;left:350px;">{{ list.number.length <= 13 ? list.psn_cash_money.toFixed(2) : (list.psn_cash_money).toFixed(2) }}</div>
24
+      <div  style="position: absolute;top:88px;left:580px;">现金</div>
25 25
     </div>
26 26
     <div style="display:flex;justify-content: space-between;">
27 27
       <div  style="position: absolute;top:150px;left:0px;">西药费</div>
28 28
       <div  style="position: absolute;top:150px;left:60px;">{{ list.westernMedicineCostTotal ? list.westernMedicineCostTotal.toFixed(2) : '' }}</div>
29 29
       <div  style="position: absolute;top:150px;left:120px;">化验费</div>
30
-      <div  style="position: absolute;top:150px;left:180px;">{{ list.laboratoryCostTotal ? list.laboratoryCostTotal.toFixed(2) : '' }}</div>
30
+      <div  style="position: absolute;top:150px;left:190px;">{{ list.laboratoryCostTotal ? list.laboratoryCostTotal.toFixed(2) : '' }}</div>
31 31
       <div  style="position: absolute;top:150px;left:270px;">治疗费</div>
32
-      <div  style="position: absolute;top:150px;left:340px;">{{ list.treatCostTotal ? list.treatCostTotal.toFixed(2) : '' }}</div>
33
-      <div  style="position: absolute;top:150px;left:490px;">处置费</div>
34
-      <div  style="position: absolute;top:150px;left:570px;">0</div>
32
+      <div  style="position: absolute;top:150px;left:350px;">{{ list.treatCostTotal ? list.treatCostTotal.toFixed(2) : '' }}</div>
33
+      <div  style="position: absolute;top:150px;left:500px;">处置费</div>
34
+      <div  style="position: absolute;top:150px;left:580px;">0</div>
35 35
     </div>
36 36
     <div style="display:flex;justify-content: space-between;">
37 37
       <div  style="position: absolute;top:188px;left:0px;">中成药</div>
38 38
       <div  style="position: absolute;top:188px;left:60px;">{{ list.chineseTraditionalMedicineCostTotal ? list.chineseTraditionalMedicineCostTotal.toFixed(2) : '' }}</div>
39 39
       <div  style="position: absolute;top:188px;left:120px;">诊疗费</div>
40
-      <div  style="position: absolute;top:188px;left:180px;">{{ list.zhenChaCostTotal ? list.zhenChaCostTotal.toFixed(2) : '' }}</div>
40
+      <div  style="position: absolute;top:188px;left:190px;">{{ list.zhenChaCostTotal ? list.zhenChaCostTotal.toFixed(2) : '' }}</div>
41 41
       <div  style="position: absolute;top:188px;left:270px;">材料费</div>
42
-      <div  style="position: absolute;top:188px;left:340px;">{{ list.materialCostTotal ? list.materialCostTotal.toFixed(2) : '' }}</div>
43
-      <div  style="position: absolute;top:188px;left:490px;">护理费</div>
44
-      <div  style="position: absolute;top:188px;left:570px;">{{list.hiliCostTotal ? list.hiliCostTotal.toFixed(2) : ''}}</div>
42
+      <div  style="position: absolute;top:188px;left:350px;">{{ list.materialCostTotal ? list.materialCostTotal.toFixed(2) : '' }}</div>
43
+      <div  style="position: absolute;top:188px;left:500px;">护理费</div>
44
+      <div  style="position: absolute;top:188px;left:580px;">{{list.hiliCostTotal ? list.hiliCostTotal.toFixed(2) : ''}}</div>
45 45
     </div>
46 46
     <div style="display:flex;justify-content: space-between;">
47 47
       <div  style="position: absolute;top:225px;left:0px;">注射费</div>
48 48
       <div  style="position: absolute;top:225px;left:60px;">0</div>
49 49
       <div  style="position: absolute;top:225px;left:120px;">检查费</div>
50
-      <div  style="position: absolute;top:225px;left:180px;">{{ list.checkCostTotal ? list.checkCostTotal.toFixed(2) : '' }}</div>
50
+      <div  style="position: absolute;top:225px;left:190px;">{{ list.checkCostTotal ? list.checkCostTotal.toFixed(2) : '' }}</div>
51 51
       <div  style="position: absolute;top:225px;left:270px;">输氧费</div>
52
-      <div  style="position: absolute;top:225px;left:340px;">0</div>
53
-      <div  style="position: absolute;top:225px;left:490px;">其他</div>
54
-      <div  style="position: absolute;top:225px;left:570px;">{{ list.otherCostTotal ? list.otherCostTotal.toFixed(2) : '' }}</div>
52
+      <div  style="position: absolute;top:225px;left:350px;">0</div>
53
+      <div  style="position: absolute;top:225px;left:500px;">其他</div>
54
+      <div  style="position: absolute;top:225px;left:580px;">{{ list.otherCostTotal ? list.otherCostTotal.toFixed(2) : '' }}</div>
55 55
     </div>
56 56
     <div style="display:flex;justify-content: space-between;">
57 57
       <div  style="position: absolute;top:202px;left:60px;"></div>
@@ -61,62 +61,62 @@
61 61
     </div>
62 62
     <div>
63 63
       <span>
64
-        <span  style="position: absolute;top:280px;left:100px">
64
+        <span  style="position: absolute;top:290px;left:100px">
65 65
           <span v-if="zhongwen.indexOf('万') > -1 && zhongwen.indexOf('拾') > -1 && zhongwen.indexOf('拾') == 1">
66 66
                     {{ zhongwen.substring(0,1) }}
67 67
                 </span>
68 68
                 <span v-else>零</span>
69 69
         </span>
70
-        <span  style="position: absolute;top:280px;left:140px">
70
+        <span  style="position: absolute;top:290px;left:140px">
71 71
             <span v-if="zhongwen.indexOf('万') > -1">
72 72
                     {{ zhongwen.substring(zhongwen.indexOf('万') - 1,zhongwen.indexOf('万')) }}
73 73
                 </span>
74 74
                 <span v-else>零</span>
75 75
         </span>
76
-        <span  style="position: absolute;top:280px;left:190px">
76
+        <span  style="position: absolute;top:290px;left:190px">
77 77
             <span v-if="zhongwen.indexOf('仟') > -1">
78 78
                     {{ zhongwen.substring(zhongwen.indexOf('仟') - 1,zhongwen.indexOf('仟')) }}
79 79
                 </span>
80 80
                 <span v-else>零</span>
81 81
         </span>
82
-        <span  style="position: absolute;top:280px;left:260px">
82
+        <span  style="position: absolute;top:290px;left:260px">
83 83
             <span v-if="zhongwen.indexOf('佰') > -1">
84 84
                     {{ zhongwen.substring(zhongwen.indexOf('佰') - 1,zhongwen.indexOf('佰')) }}
85 85
                 </span>
86 86
                 <span v-else>零</span>
87 87
         </span>
88
-        <span style="position: absolute;top:280px;left:310px">
88
+        <span style="position: absolute;top:290px;left:310px">
89 89
             <span v-if="zhongwen.indexOf('拾') > -1">
90 90
                     {{zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾')) == '佰' ||  !zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾'))? '壹' : zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾')) }}
91 91
                 </span>
92 92
                 <span v-else>零</span>
93 93
         </span>
94
-        <span  style="position: absolute;top:280px;left:380px">
94
+        <span  style="position: absolute;top:290px;left:380px">
95 95
            <span v-if="zhongwen.indexOf('元') > -1 && zhongwen.substring(this.zhongwen.indexOf('元') - 1).substring(0,1)!= '拾'">
96 96
                     {{ zhongwen.substring(zhongwen.indexOf('元') - 1,zhongwen.indexOf('元')) }}
97 97
                 </span>
98 98
                 <span v-else>零</span>
99 99
         </span>
100
-        <span  style="position: absolute;top:280px;left:450px">
100
+        <span  style="position: absolute;top:290px;left:450px">
101 101
              <span v-if="zhongwen.indexOf('角') > -1">
102 102
                     {{ zhongwen.substring(zhongwen.indexOf('角') - 1,zhongwen.indexOf('角')) }}
103 103
                 </span>
104 104
                 <span v-else>零</span>
105 105
         </span>
106
-        <span  style="position: absolute;top:280px;left:510px">
106
+        <span  style="position: absolute;top:290px;left:510px">
107 107
              <span v-if="zhongwen.indexOf('分') > -1">
108 108
                     {{ zhongwen.substring(zhongwen.indexOf('分') - 1,zhongwen.indexOf('分')) }}
109 109
                 </span>
110 110
                 <span v-else>零</span>
111 111
         </span>
112 112
       </span>
113
-      <span style="position: absolute;top:280px;left:600px">{{ totalPrice.toFixed(2) }}</span>
113
+      <span style="position: absolute;top:290px;left:600px">{{ totalPrice.toFixed(2) }}</span>
114 114
     </div>
115 115
 
116 116
     <div style="display:flex;justify-content: space-between;">
117
-      <div style="position: absolute;top:370px;left:100px;">{{ org_name}}</div>
118
-      <div style="position: absolute;top:370px;left:240px;"></div>
119
-      <div style="position: absolute;top:370px;left:460px;">{{list.admin_user_name}}</div>
117
+      <div style="position: absolute;top:390px;left:100px;">{{ org_name}}</div>
118
+      <div style="position: absolute;top:390px;left:240px;"></div>
119
+      <div style="position: absolute;top:390px;left:460px;">{{list.admin_user_name}}</div>
120 120
     </div>
121 121
   </div>
122 122
 </template>

+ 17 - 17
src/xt_pages/outpatientCharges/invoiceTemplate/printSix.vue Dosyayı Görüntüle

@@ -1,11 +1,11 @@
1 1
 <template>
2 2
   <div id='invoice-print' >
3 3
     <div v-for='(i,index) in pageArr.length' :key="index" >
4
-      <div :style="{position: 'absolute',top:(0 + (index * 420))  + 'px',left:152+ 'px',}">盐城大丰悦达金骆驼血液透析中心</div>
4
+      <div :style="{position: 'absolute',top:(0 + (index * 420))  + 'px',left:152+ 'px',}">大丰燕舞血液透析中心</div>
5 5
       <div :style="{position: 'absolute',top:(18 + (index * 420))  + 'px',left:117+ 'px',}">{{ list.order_number }}</div>
6 6
       <div >
7
-          <div :style="{position: 'absolute',top:(38 + (index * 420))  + 'px',left:92+ 'px',}">{{ paramsObj.name }}</div>
8
-          <div :style="{position: 'absolute',top:(38 + (index * 420))  + 'px',left:492+ 'px',}">{{ doctor_info.user_name }}  {{ doctor_info.doctor_number }} </div>
7
+        <div :style="{position: 'absolute',top:(38 + (index * 420))  + 'px',left:92+ 'px',}">{{ paramsObj.name }}</div>
8
+        <div :style="{position: 'absolute',top:(38 + (index * 420))  + 'px',left:492+ 'px',}">{{ doctor_info.user_name }}  {{ doctor_info.doctor_number }} </div>
9 9
       </div>
10 10
       <div :style="{position: 'absolute',top:(95 + (index * 420))  + 'px',left:76+ 'px',}">
11 11
           <div v-if="list.westernMedicineCostTotal">西药 {{ list.westernMedicineCostTotal }}</div>
@@ -45,19 +45,19 @@
45 45
       <div :style="{position: 'absolute',top:(305 + (index * 420))  + 'px',left:121+ 'px'}">{{ zhongwen }}</div>
46 46
       <div :style="{position: 'absolute',top:(305 + (index * 420))  + 'px',left:490+ 'px'}">{{ list.medfee_sumamt }}</div>
47 47
       <div v-if="index == pageArr.length - 1" :style="{position: 'absolute',top:(320 + (index * 420))  + 'px',left:110+ 'px',width:100 + '%',fontSize:12+'px'}">
48
-          <div style="display:flex;">
49
-            <div style="width:140px">医疗总费用:{{ list.order.medfee_sumamt }}</div>
50
-            <div style="width:140px">基金支付总额:{{ list.order.fund_pay_sumamt }}</div>
51
-            <div style="width:140px">统筹支出:{{ list.order.hifp_pay }}</div>
52
-            <div style="width:140px">大病支出:{{list.order.hifmi_pay}}</div>
48
+        <div style="display:flex;">
49
+          <div style="width:140px">医疗总费用:{{ list.order.medfee_sumamt }}</div>
50
+          <div style="width:140px">基金支付总额:{{ list.order.fund_pay_sumamt }}</div>
51
+          <div style="width:140px">统筹支出:{{ list.order.hifp_pay }}</div>
52
+          <div style="width:140px">大病支出:{{list.order.hifmi_pay}}</div>
53 53
 
54
-          </div>
55
-          <div style="display:flex;">
56
-            <div style="width:140px">个人账户支付:{{ list.order.acct_pay }}</div>
57
-            <div style="width:140px">现金支出:{{ list.order.psn_cash_pay }}</div>
58
-            <div style="width:140px">本次账户:0</div>
59
-            <div style="width:140px">上次账户:0</div>
60
-          </div>
54
+        </div>
55
+        <div style="display:flex;">
56
+          <div style="width:140px">个人账户支付:{{ list.order.acct_pay }}</div>
57
+          <div style="width:140px">现金支出:{{ list.order.psn_cash_pay }}</div>
58
+          <div style="width:140px">本次账户:0</div>
59
+          <div style="width:140px">上次账户:0</div>
60
+        </div>
61 61
         <div style="display:flex;">
62 62
           <div style="width:140px">账户余额:{{ list.order.balc }}</div>
63 63
           <div style="width:140px">其他支出:{{ list.order.oth_pay }}</div>
@@ -71,7 +71,7 @@
71 71
 
72 72
       </div>
73 73
       <div v-if="index != pageArr.length - 1">
74
-          <div :style="{position: 'absolute',top:(390 + (index * 420))  + 'px',left:140+ 'px'}">盐城大丰悦达金骆驼血液透析中心</div>
74
+          <div :style="{position: 'absolute',top:(390 + (index * 420))  + 'px',left:140+ 'px'}">大丰燕舞血液透析中心</div>
75 75
           <div :style="{position: 'absolute',top:(390 + (index * 420))  + 'px',left:374+ 'px'}">{{ paramsObj.chargeName }}</div>
76 76
           <div :style="{position: 'absolute',top:(390 + (index * 420))  + 'px',left:435+ 'px'}">
77 77
               <span>{{  paramsObj.setl_time ? paramsObj.setl_time.split(' ')[0].slice(0,4) : getTime(list.date, '{y}-{m}-{d}').slice(0,4) }}</span>
@@ -84,7 +84,7 @@
84 84
           </div>
85 85
       </div>
86 86
       <div v-if="index == pageArr.length - 1">
87
-        <div :style="{position: 'absolute',top:(390 + (index * 420))  + 'px',left:140+ 'px'}">盐城大丰悦达金骆驼血液透析中心</div>
87
+        <div :style="{position: 'absolute',top:(390 + (index * 420))  + 'px',left:140+ 'px'}">大丰燕舞血液透析中心</div>
88 88
         <div :style="{position: 'absolute',top:(390 + (index * 420))  + 'px',left:374+ 'px'}">{{ paramsObj.chargeName }}</div>
89 89
         <div :style="{position: 'absolute',top:(390 + (index * 420))  + 'px',left:435+ 'px'}">
90 90
           <span>{{  paramsObj.setl_time ? paramsObj.setl_time.split(' ')[0].slice(0,4) : getTime(list.date, '{y}-{m}-{d}').slice(0,4) }}</span>

+ 47 - 47
src/xt_pages/outpatientCharges/invoiceTemplate/printtwelve.vue Dosyayı Görüntüle

@@ -73,87 +73,87 @@
73 73
     </div> -->
74 74
     <!-- 附件 -->
75 75
     <div v-for="(item,index) in Arr" :key="index">
76
-      <div :style="{position: 'absolute',top:(90 + (index * 370))  + 'px',left:'81px'}">
76
+      <div :style="{position: 'absolute',top:(60 + (index * 450))  + 'px',left:'30px'}">
77 77
         阜阳经沃血液透析中心
78 78
       </div>
79 79
       <div style="display: flex;">
80
-        <div :style="{position: 'absolute',top:(120 + (index * 370))  + 'px',left:'81px'}">
80
+        <div :style="{position: 'absolute',top:(80 + (index * 450))  + 'px',left:'30px'}">
81 81
           {{paramsObj.name}}
82 82
         </div>
83
-        <div :style="{position: 'absolute',top:(120 + (index * 370))  + 'px',left:'200px'}">
83
+        <div :style="{position: 'absolute',top:(80 + (index * 450))  + 'px',left:'200px'}">
84 84
 
85 85
         </div>
86 86
       </div>
87 87
 
88 88
       <div style="display: flex;">
89
-        <div :style="{position: 'absolute',top:(150 + (index * 370))  + 'px',left:'81px'}">
89
+        <div :style="{position: 'absolute',top:(100 + (index * 450))  + 'px',left:'81px'}">
90 90
 
91 91
         </div>
92
-        <div :style="{position: 'absolute',top:(150 + (index * 370))  + 'px',left:'190px'}">
92
+        <div :style="{position: 'absolute',top:(100 + (index * 450))  + 'px',left:'190px'}">
93 93
 
94 94
         </div>
95
-        <div :style="{position: 'absolute',top:(150 + (index * 370))  + 'px',left:'252px'}">
95
+        <div :style="{position: 'absolute',top:(100 + (index * 450))  + 'px',left:'300px'}">
96 96
         {{printDate}}
97 97
         </div>
98 98
       </div>
99 99
       <div style="display: flex;">
100
-        <div :style="{position: 'absolute',top:(170+(index * 370))+'px',left:'106px'}">{{list.westernMedicineCostTotal?list.westernMedicineCostTotal:""}}</div>
101
-        <div :style="{position: 'absolute',top:(170+(index * 370))+'px',left:'146px'}"></div>
102
-        <div :style="{position: 'absolute',top:(170+(index * 370))+'px',left:'232px'}">{{ list.operationCostTotal?list.operationCostTotal:""}}</div>
103
-        <div :style="{position: 'absolute',top:(170+(index * 370))+'px',left:'272px'}"></div>
100
+        <div :style="{position: 'absolute',top:(170+(index * 450))+'px',left:'75px'}">{{list.westernMedicineCostTotal?list.westernMedicineCostTotal:""}}</div>
101
+        <div :style="{position: 'absolute',top:(170+(index * 450))+'px',left:'121px'}"></div>
102
+        <div :style="{position: 'absolute',top:(170+(index * 450))+'px',left:'270px'}">{{ list.operationCostTotal?list.operationCostTotal:""}}</div>
103
+        <div :style="{position: 'absolute',top:(170+(index * 450))+'px',left:'310px'}"></div>
104 104
       </div>
105 105
       <div style="display: flex;">
106
-        <div :style="{position: 'absolute',top:(190+(index * 370))+'px',left:'106px'}">{{list.chineseTraditionalMedicineCostTotal?list.chineseTraditionalMedicineCostTotal:""}}</div>
107
-        <div :style="{position: 'absolute',top:(190+(index * 370))+'px',left:'146px'}"></div>
108
-        <div :style="{position: 'absolute',top:(190+(index * 370))+'px',left:'232px'}">{{list.laboratoryCostTotal?list.laboratoryCostTotal:""}}</div>
109
-        <div :style="{position: 'absolute',top:(190+(index * 370))+'px',left:'272px'}"></div>
106
+        <div :style="{position: 'absolute',top:(190+(index * 450))+'px',left:'75px'}">{{list.chineseTraditionalMedicineCostTotal?list.chineseTraditionalMedicineCostTotal:""}}</div>
107
+        <div :style="{position: 'absolute',top:(190+(index * 450))+'px',left:'121px'}"></div>
108
+        <div :style="{position: 'absolute',top:(190+(index * 450))+'px',left:'270px'}">{{list.laboratoryCostTotal?list.laboratoryCostTotal:""}}</div>
109
+        <div :style="{position: 'absolute',top:(190+(index * 450))+'px',left:'310px'}"></div>
110 110
       </div>
111 111
       <div style="display: flex;">
112
-        <div :style="{position: 'absolute',top:(210+(index * 370))+'px',left:'106px'}"></div>
113
-        <div :style="{position: 'absolute',top:(210+(index * 370))+'px',left:'146px'}"></div>
114
-        <div :style="{position: 'absolute',top:(210+(index * 370))+'px',left:'232px'}"></div>
115
-        <div :style="{position: 'absolute',top:(210+(index * 370))+'px',left:'272px'}"></div>
112
+        <div :style="{position: 'absolute',top:(210+(index * 450))+'px',left:'75px'}"></div>
113
+        <div :style="{position: 'absolute',top:(210+(index * 450))+'px',left:'121px'}"></div>
114
+        <div :style="{position: 'absolute',top:(210+(index * 450))+'px',left:'270px'}"></div>
115
+        <div :style="{position: 'absolute',top:(210+(index * 450))+'px',left:'310px'}"></div>
116 116
       </div>
117 117
       <div style="display: flex;">
118
-        <div :style="{position: 'absolute',top:(230+(index * 370))+'px',left:'106px'}"></div>
119
-        <div :style="{position: 'absolute',top:(230+(index * 370))+'px',left:'146px'}"></div>
120
-        <div :style="{position: 'absolute',top:(230+(index * 370))+'px',left:'232px'}"></div>
121
-        <div :style="{position: 'absolute',top:(230+(index * 370))+'px',left:'272px'}"></div>
118
+        <div :style="{position: 'absolute',top:(230+(index * 450))+'px',left:'75px'}">{{list.checkCostTotal?list.checkCostTotal:""}}</div>
119
+        <div :style="{position: 'absolute',top:(230+(index * 450))+'px',left:'121px'}"></div>
120
+        <div :style="{position: 'absolute',top:(230+(index * 450))+'px',left:'270px'}"></div>
121
+        <div :style="{position: 'absolute',top:(230+(index * 450))+'px',left:'310px'}"></div>
122 122
       </div>
123 123
       <div style="display: flex;">
124
-        <div :style="{position: 'absolute',top:(250+(index * 370))+'px',left:'106px'}">{{list.checkCostTotal?list.checkCostTotal:""}}</div>
125
-        <div :style="{position: 'absolute',top:(250+(index * 370))+'px',left:'146px'}"></div>
126
-        <div :style="{position: 'absolute',top:(250+(index * 370))+'px',left:'232px'}"></div>
127
-        <div :style="{position: 'absolute',top:(250+(index * 370))+'px',left:'272px'}"></div>
128
-    </div>
129
-    <div style="display: flex;">
130
-      <div :style="{position: 'absolute',top:(270+(index * 370))+'px',left:'106px'}">{{list.treatCostTotal?list.treatCostTotal:""}}</div>
131
-      <div :style="{position: 'absolute',top:(270+(index * 370))+'px',left:'146px'}"></div>
132
-      <div :style="{position: 'absolute',top:(270+(index * 370))+'px',left:'232px'}">{{list.materialCostTotal?list.materialCostTotal:""}}</div>
133
-      <div :style="{position: 'absolute',top:(270+(index * 370))+'px',left:'272px'}"></div>
134
-    </div>
124
+        <div :style="{position: 'absolute',top:(250+(index * 450))+'px',left:'75px'}">{{list.treatCostTotal?list.treatCostTotal:""}}</div>
125
+        <div :style="{position: 'absolute',top:(250+(index * 450))+'px',left:'121px'}"></div>
126
+        <div :style="{position: 'absolute',top:(250+(index * 450))+'px',left:'270px'}">{{list.materialCostTotal?list.materialCostTotal:""}}</div>
127
+        <div :style="{position: 'absolute',top:(250+(index * 450))+'px',left:'310px'}"></div>
128
+      </div>
129
+      <div style="display: flex;">
130
+        <div :style="{position: 'absolute',top:(270+(index * 450))+'px',left:'75px'}"></div>
131
+        <div :style="{position: 'absolute',top:(270+(index * 450))+'px',left:'121px'}"></div>
132
+        <div :style="{position: 'absolute',top:(270+(index * 450))+'px',left:'270px'}"></div>
133
+        <div :style="{position: 'absolute',top:(270+(index * 450))+'px',left:'310px'}"></div>
134
+      </div>
135 135
     <!--金额 -->
136 136
     <div style="display: flex;">
137
-      <div :style="{position: 'absolute',top:(290+(index * 370))+'px',left:'146px',}">{{list.order.medfee_sumamt}}</div>
138
-      <div :style="{position: 'absolute',top:(290+(index * 370))+'px',left:'242px'}">个人支付:{{list.order.psn_cash_pay}}</div>
137
+      <div :style="{position: 'absolute',top:(310+(index * 450))+'px',left:'146px',}">{{list.order.medfee_sumamt}}</div>
138
+      <div :style="{position: 'absolute',top:(310+(index * 450))+'px',left:'270px'}">个人支付:{{list.order.psn_cash_pay}}</div>
139 139
     </div>
140
-    <div :style="{position: 'absolute',top:(310+(index * 370))+'px',left:'146px'}">{{zhongwen}}</div>
141
-    <div :style="{position: 'absolute',top:(330+(index * 370))+'px',left:'190px'}">{{'统筹支付:' + list.order.hifp_pay}}</div>
142
-    <div :style="{position: 'absolute',top:(350+(index * 370))+'px',left:'252px'}">{{list.order.acct_pay}}</div>
140
+    <div :style="{position: 'absolute',top:(330+(index * 450))+'px',left:'190px'}">{{zhongwen}}</div>
141
+    <div :style="{position: 'absolute',top:(350+(index * 450))+'px',left:'190px'}">{{'统筹支付:' + list.order.hifp_pay}}</div>
142
+    <div :style="{position: 'absolute',top:(370+(index * 450))+'px',left:'300px'}">{{list.order.acct_pay}}</div>
143 143
     <div style="display: flex;">
144
-      <div :style="{position: 'absolute',top:(370+(index * 370))+'px',left:'106px'}">{{list.admin_user_name}}</div>
145
-      <div :style="{position: 'absolute',top:(370+(index * 370))+'px',left:'252px'}">{{list.order_number}}</div>
144
+      <div :style="{position: 'absolute',top:(390+(index * 450))+'px',left:'106px'}">{{list.admin_user_name}}</div>
145
+      <div :style="{position: 'absolute',top:(390+(index * 450))+'px',left:'300px'}">{{list.order_number}}</div>
146 146
     </div>
147 147
 
148 148
       <div v-for="(ite,index2) in item" :key="index2" style="">
149 149
 
150
-        <div :style="{position: 'absolute',top:(120 + (index * 370))  + 'px',left:(380 + (index2 * 110)) + 'px'}">{{list.order_number}}</div>
151
-        <div :style="{position: 'absolute',top:(150 + (index * 370))  + 'px',left:(380 + (index2 * 110)) + 'px'}">{{ite.name}}</div>
152
-        <div :style="{position: 'absolute',top:(170 + (index * 370))  + 'px',left:(380 + (index2 * 110)) + 'px'}">{{ite.item}}</div>
153
-        <div :style="{position: 'absolute',top:(290 + (index * 370))  + 'px',left:(380 + (index2 * 110)) + 'px'}">{{ite.doctor_name}}</div>
154
-        <div :style="{position: 'absolute',top:(310 + (index * 370))  + 'px',left:(380 + (index2 * 110)) + 'px'}">{{ite.total}}</div>
155
-        <div :style="{position: 'absolute',top:(330 + (index * 370))  + 'px',left:(380 + (index2 * 110)) + 'px'}">{{ite.operator}}</div>
156
-        <div :style="{position: 'absolute',top:(350 + (index * 370))  + 'px',left:(380 + (index2 * 110)) + 'px'}">{{ite.printDate}}</div>
150
+        <div :style="{position: 'absolute',top:(90 + (index * 450))  + 'px',left:(400 + (index2 * 200)) + 'px'}">{{list.order_number}}</div>
151
+        <div :style="{position: 'absolute',top:(110 + (index * 450))  + 'px',left:(490 + (index2 * 200)) + 'px'}">{{ite.name}}</div>
152
+        <div :style="{position: 'absolute',top:(130 + (index * 450))  + 'px',left:(490 + (index2 * 200)) + 'px'}">{{ite.item}}</div>
153
+        <div :style="{position: 'absolute',top:(300 + (index * 450))  + 'px',left:(490 + (index2 * 200)) + 'px'}">{{ite.doctor_name}}</div>
154
+        <div :style="{position: 'absolute',top:(320 + (index * 450))  + 'px',left:(490 + (index2 * 200)) + 'px'}">{{ite.total}}</div>
155
+        <div :style="{position: 'absolute',top:(340 + (index * 450))  + 'px',left:(490 + (index2 * 200)) + 'px'}">{{ite.operator}}</div>
156
+        <div :style="{position: 'absolute',top:(360 + (index * 450))  + 'px',left:(490 + (index2 * 200)) + 'px'}">{{ite.printDate}}</div>
157 157
         <!-- 附件 -->
158 158
         <!-- <div :style="{position: 'absolute',top:(120 + (index * 350))  + 'px',left:'490px'}">号码</div>
159 159
         <div :style="{position: 'absolute',top:(150 + (index * 350))  + 'px',left:'490px'}">{{ite}}</div>

+ 91 - 4
src/xt_pages/qcd/treatmentControlAnalysis/components/TimePersonal.vue Dosyayı Görüntüle

@@ -69,7 +69,9 @@
69 69
         <div class="tableTitle">统计表</div>
70 70
         <div>
71 71
           <el-button type="primary" @click="exportList">按透析记录导出</el-button>
72
-          <el-button type="primary" @click="exportListOne">按排班导出</el-button>
72
+          <el-button type="primary" @click="exportListOne" v-if="org_id!=10558">按排班导出</el-button>
73
+
74
+          <el-button type="primary" @click="exportListTwo" v-if="org_id == 10558">按排班导出</el-button>
73 75
         </div>
74 76
        
75 77
         <el-table :data="DialysisData" style="width: 100%" border :row-style="{ color: '#303133' }"
@@ -147,6 +149,8 @@ export default {
147 149
       patient_id:0,
148 150
       modeIdCount:[],
149 151
       scheduleCount:[],
152
+      scheduleList:[],
153
+      org_id:0,
150 154
     };
151 155
   },
152 156
   methods: {
@@ -209,7 +213,40 @@ export default {
209 213
           console.log("modeidcount=====",modeIdCount)
210 214
 
211 215
         
212
-         
216
+          var scheduleList = response.data.data.scheduleList
217
+          console.log("scheduleList",scheduleList)
218
+
219
+
220
+          if(scheduleList.length!=null && scheduleList.length>0){
221
+              let dataInfo = {}
222
+              scheduleList.forEach((item, index) => {
223
+                let { patient_id } = item
224
+                if (!dataInfo[patient_id]) {
225
+                  dataInfo[patient_id] = {
226
+                    patient_id,
227
+                    name:item.name,
228
+                    id_card_no:item.id_card_no,
229
+                    dialysis_no:item.dialysis_no,
230
+                    total_dialysis:item.total_dialysis,
231
+                    user_sys_before_count:item.user_sys_before_count,
232
+                    mode_id: []
233
+                  }
234
+                }
235
+              })
236
+              let list = Object.values(dataInfo)
237
+              list.map(item => {
238
+              for (let i = 0; i < list.length; i++) {
239
+                if (item.patient_id === list[i].patient_id) {
240
+                  item.mode_id.push(list[i].mode_id)
241
+                }
242
+              }
243
+             })
244
+             
245
+             console.log("listowowowoowowowow",list)
246
+
247
+             this.scheduleList = []
248
+             this.scheduleList = list
249
+          }
213 250
 
214 251
           for(let i=0;i<modeIdCount.length;i++){
215 252
             if(modeIdCount[i].mode_id == 1){
@@ -438,7 +475,7 @@ export default {
438 475
               }
439 476
             }
440 477
           })
441
-        //  console.log("list---",list)
478
+        
442 479
           this.DialysisData = list
443 480
          }
444 481
       })
@@ -746,6 +783,55 @@ export default {
746 783
         })
747 784
       },
748 785
 
786
+
787
+      exportListTwo(){
788
+       for(let i=0;i<this.scheduleList.length;i++){
789
+         this.scheduleList[i].index = i+1
790
+         this.scheduleList[i].HD = this.getScheduleHdModeIdCount(this.scheduleList[i].patient_id,"HD")
791
+         this.scheduleList[i].HDF = this.getScheduleHdModeIdCount(this.scheduleList[i].patient_id,"HDF")
792
+         this.scheduleList[i].HDHP = this.getScheduleHdModeIdCount(this.scheduleList[i].patient_id,"HD+HP")
793
+         this.scheduleList[i].HP = this.getScheduleHdModeIdCount(this.scheduleList[i].patient_id,"HP")
794
+         this.scheduleList[i].HF = this.getScheduleHdModeIdCount(this.scheduleList[i].patient_id,"HF")
795
+         this.scheduleList[i].SCUF = this.getScheduleHdModeIdCount(this.scheduleList[i].patient_id,"SCUF")
796
+         this.scheduleList[i].IUF = this.getScheduleHdModeIdCount(this.scheduleList[i].patient_id,"IUF")
797
+         this.scheduleList[i].HFHD = this.getScheduleHdModeIdCount(this.scheduleList[i].patient_id,"HFHD")
798
+         this.scheduleList[i].HFHDHP = this.getScheduleHdModeIdCount(this.scheduleList[i].patient_id,"HFHD+HP")
799
+         this.scheduleList[i].HDFHP = this.getScheduleHdModeIdCount(this.scheduleList[i].patient_id,"HDF+HP")
800
+         this.scheduleList[i].CRRT = this.getScheduleHdModeIdCount(this.scheduleList[i].patient_id,"CRRT")
801
+         this.scheduleList[i].OTR = this.getScheduleHdModeIdCount(this.scheduleList[i].patient_id,"腹水回输")
802
+
803
+         this.scheduleList[i].IUFHD = this.getScheduleHdModeIdCount(this.scheduleList[i].patient_id,"IUF+HD")
804
+         this.scheduleList[i].UF = this.getScheduleHdModeIdCount(this.scheduleList[i].patient_id,"UF")
805
+         this.scheduleList[i].HDPlus = this.getScheduleHdModeIdCount(this.scheduleList[i].patient_id,"HD+")
806
+         this.scheduleList[i].IHDF = this.getScheduleHdModeIdCount(this.scheduleList[i].patient_id,"I-HDF")
807
+         this.scheduleList[i].HDGT = this.getScheduleHdModeIdCount(this.scheduleList[i].patient_id,"HD高通")
808
+         this.scheduleList[i].CVVH = this.getScheduleHdModeIdCount(this.scheduleList[i].patient_id,"CVVH")
809
+         this.scheduleList[i].CVVHD = this.getScheduleHdModeIdCount(this.scheduleList[i].patient_id,"CVVHD")
810
+         this.scheduleList[i].CVVHDF = this.getScheduleHdModeIdCount(this.scheduleList[i].patient_id,"CVVHDF")
811
+         this.scheduleList[i].PE = this.getScheduleHdModeIdCount(this.scheduleList[i].patient_id,"PE")
812
+         this.scheduleList[i].XUEHP = this.getScheduleHdModeIdCount(this.scheduleList[i].patient_id,"血浆胆红素吸附+HP")
813
+         this.scheduleList[i].HPD = this.getScheduleHdModeIdCount(this.scheduleList[i].patient_id,"HPD")
814
+         this.scheduleList[i].HDP = this.getScheduleHdModeIdCount(this.scheduleList[i].patient_id,"HDP")
815
+
816
+         this.scheduleList[i].age = this.getAge(this.scheduleList[i].id_card_no)
817
+         this.scheduleList[i].total_count = this.getScheduleDialysisCount(this.scheduleList[i].patient_id)
818
+       }
819
+       console.log("hhh2323323232",this.scheduleList)
820
+       import('@/vendor/Export2Excel').then(excel => {
821
+        const tHeader = ['序号','姓名', '年龄', '透析号','HD','HDF','HD+HP','HP','HF','SCUF','IUF','HFHD','HFHD+HP','HFR','HDF+HP','CRRT','腹水回输','IUF+HD','UF','HD+','I-HDF','HD高通','CVVH','CVVHD','CVVHDF','PE','血浆胆红素吸附+HP','HPD','HDP','总数']
822
+        const filterVal = ['index','name', 'age', 'dialysis_no','HD','HDF','HDHP','HP','HF','SCUF','IUF','HFHD','HFHDHP','HFR','HDFHP','CRRT','OTR','IUF+HD','UF','HD+','I-HDF','HDGT','CVVH','CVVHD','CVVHDF','PE','XUEHP','HPD','HDP','total_count']
823
+
824
+        const data = this.formatJson(filterVal, this.scheduleList)
825
+
826
+        excel.export_json_to_excel({
827
+           header: tHeader,
828
+           data,
829
+           filename: '透析详情'
830
+         })
831
+          this.downloadLoading = false
832
+        })
833
+      },
834
+
749 835
       formatJson(filterVal, jsonData) {
750 836
         return jsonData.map(v =>
751 837
           filterVal.map(j => {
@@ -793,6 +879,7 @@ export default {
793 879
 
794 880
   },
795 881
   created(){
882
+    this.org_id = this.$store.getters.xt_user.org.id
796 883
     var nowDate = new Date();
797 884
     var nowYear = nowDate.getFullYear();
798 885
     var nowMonth = nowDate.getMonth() + 1;
@@ -803,7 +890,7 @@ export default {
803 890
       (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
804 891
       "-" +
805 892
       (nowDay < 10 ? "0" + nowDay : nowDay);
806
-    nowDate.setMonth(nowDate.getMonth() - 3);
893
+    nowDate.setMonth(nowDate.getMonth() - 1);
807 894
     nowYear = nowDate.getFullYear();
808 895
     nowMonth = nowDate.getMonth() + 1;
809 896
     nowDay = nowDate.getDate();

+ 80 - 6
src/xt_pages/role/admin.vue Dosyayı Görüntüle

@@ -192,15 +192,17 @@
192 192
           size="small"
193 193
           icon="el-icon-circle-plus-outline"
194 194
           style="float:left"
195
-          @click="toSavePDFInformation">生成PDF</el-button>
195
+          @click="toSavePDFInformation">生成PDF</el-button> -->
196 196
 
197 197
 
198
-        <el-button
198
+        <!-- <el-button
199 199
           type="primary"
200 200
           size="small"
201 201
           icon="el-icon-circle-plus-outline"
202 202
           style="float:left"
203 203
           @click="toCheckPDFInformation">PDF验证</el-button> -->
204
+
205
+        
204 206
      </div>
205 207
     
206 208
       
@@ -499,7 +501,7 @@
499 501
 
500 502
 <script>
501 503
 import { adminMainView, getAdmins, setAdminStatus,toSign,toTestOne,toTestTwo,toTestThree,toTestFour,toTestFive,toTestSeven,toTestEight,toTestNight,toTestTen,toTestElement,toTestThrityMent,saveEnterprise,getEnterPriseById,getMobileCode,savePersionEnterPrise,getPerseEnterPriseById,CreatePersionSeal,CreateNewEnterPrise,toTestThrity,toEndEnterPrise,getEnterPriseDetail
502
-  ,CreateQianshuUserName,CreateSKDSendInformation,toSavePDFInformation,toCheckPDFInformation} from "@/api/role/admin";
504
+  ,CreateQianshuUserName,CreateSKDSendInformation,toSavePDFInformation,toCheckPDFInformation,getdruginfoInformation} from "@/api/role/admin";
503 505
 import { getRoles } from "@/api/role/role";
504 506
 
505 507
 import { parseTime } from "@/utils";
@@ -1064,20 +1066,92 @@ export default {
1064 1066
     },
1065 1067
     toSavePDFInformation(){
1066 1068
       toSavePDFInformation().then(response=>{
1067
-         if(response.data.data == 1){
1069
+         if(response.data.state == 1){
1068 1070
           var information =  response.data.data.information
1069
-
1071
+           
1070 1072
            var orderId = response.data.data.orderId
1073
+           
1074
+           var base64Img = 'data:image/png;base64'+","+orderId
1075
+           console.log("base64Img",base64Img)
1076
+           var imgFile = this.base64ImgtoFile(base64Img)
1077
+           this.downloadBlob(imgFile, 'test.png')
1078
+           console.log("imgFilewoowow",imgFile)
1079
+
1080
+           const blob = this.base64ToBlob(orderId, 'application/pdf');
1081
+           this.openPdf(blob);
1082
+
1071 1083
          }
1072 1084
       })
1073 1085
     },
1086
+    openPdf(blob) {
1087
+      const objectUrl = URL.createObjectURL(blob);
1088
+      const a = document.createElement('a');
1089
+      a.href = objectUrl;
1090
+      a.target = '_blank';
1091
+      a.click();
1092
+      URL.revokeObjectURL(objectUrl);
1093
+    },
1094
+     base64ToBlob(base64Data, contentType) {
1095
+      contentType = contentType || '';
1096
+      const sliceSize = 1024;
1097
+      const byteCharacters = window.atob(base64Data);
1098
+      const bytesLength = byteCharacters.length;
1099
+      const slicesCount = Math.ceil(bytesLength / sliceSize);
1100
+      const byteArrays = new Array(slicesCount);
1101
+
1102
+      for (let sliceIndex = 0; sliceIndex < slicesCount; ++sliceIndex) {
1103
+        const begin = sliceIndex * sliceSize;
1104
+        const end = Math.min(begin + sliceSize, bytesLength);
1105
+
1106
+        const bytes = new Array(end - begin);
1107
+        for (let offset = begin, i = 0; offset < end; ++i, ++offset) {
1108
+          bytes[i] = byteCharacters[offset].charCodeAt(0);
1109
+        }
1110
+        byteArrays[sliceIndex] = new Uint8Array(bytes);
1111
+      }
1112
+
1113
+      return new Blob(byteArrays, {
1114
+        type: contentType
1115
+      });
1116
+    },
1117
+    downloadBlob(blob, filename) {
1118
+      const url = URL.createObjectURL(blob);
1119
+      const a = document.createElement('a');
1120
+      a.href = url;
1121
+      a.download = filename;
1122
+      a.click();
1123
+      URL.revokeObjectURL(url);
1124
+    },
1074 1125
     toCheckPDFInformation(){
1075 1126
       toCheckPDFInformation().then(response=>{
1076 1127
         if(response.data.data == 1){
1077 1128
           var information =  response.data.data.information
1078 1129
         }
1079 1130
       })
1080
-    }
1131
+    },
1132
+
1133
+    base64ImgtoFile(dataurl, filename = 'file') {
1134
+      let arr = dataurl.split(',')
1135
+      let mime = arr[0].match(/:(.*?);/)[1]
1136
+      let suffix = mime.split('/')[1]
1137
+      let bstr = atob(arr[1])
1138
+      let n = bstr.length
1139
+      let u8arr = new Uint8Array(n)
1140
+      while (n--) {
1141
+        u8arr[n] = bstr.charCodeAt(n)
1142
+      }
1143
+      return new File([u8arr], `${filename}.${suffix}`, {
1144
+        type: mime
1145
+      })
1146
+    },
1147
+    // toDrugInfo(){
1148
+    //   getdruginfoInformation().then(response=>{
1149
+    //      if(response.data.state==1){
1150
+           
1151
+    //      }
1152
+    //   })
1153
+    // }
1154
+
1081 1155
   },
1082 1156
   watch: {
1083 1157
     should_update_admins(should_change) {

+ 3 - 4
src/xt_pages/stock/detail/stockOutDetail.vue Dosyayı Görüntüle

@@ -831,8 +831,7 @@ export default {
831 831
       },
832 832
 
833 833
     exportList(){
834
-      console.log("shij232333",this.tableOut)
835
-     
834
+    
836 835
        for(let i=0;i<this.tableOut.length;i++){
837 836
         this.tableOut[i].index = i+1
838 837
         this.tableOut[i].good_name = this.tableOut[i].good_name
@@ -876,13 +875,13 @@ export default {
876 875
         }
877 876
         if(this.orgId == 10210 || this.orgId == 9675  || this.orgId == 9956 || this.orgId == 10217 || this.orgId == 10188 || this.orgId == 10191 || this.orgId == 0 || this.orgId ==10489 || this.orgId == 10375 || this.orgId == 10485){
878 877
           this.tableOut[i].out_count = this.getWarehouseOut(this.tableOut[i].good_id)
879
-          console.log("out_count232233232332",this.tableOut[i].out_count)
878
+         
880 879
         }
881 880
         if(this.orgId!=10265 && this.orgId !=10215  && this.orgId != 9671 &&this.orgId!=10210&&this.orgId!=9675 && this.orgId!=9956&& this.orgId!=10217 && this.orgId!=10188 && this.orgId!=10191 && this.orgId!=9919 && this.orgId!=0&& this.orgId!=10402 && this.orgId != 10489 && this.orgId!=10375 && this.orgId!=10485){
882 881
           this.tableOut[i].out_count = this.getStockCount(this.tableOut[i].good_id)
883 882
         }
884 883
         this.tableOut[i].manufacturer_name = this.getManufacturerNameOne(this.tableOut[i].manufacturer)
885
-        console.log("继续桑",this.tableOut[i].dealer)
884
+       
886 885
         this.tableOut[i].dealer_name = this.getDealerNameOne(this.tableOut[i].dealer)
887 886
        }
888 887
        console.log("retusoossoso",this.tableOut)