Browse Source

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

陈少旭 1 year ago
parent
commit
c3b1d804f3

+ 10 - 1
src/api/role/admin.js View File

318
     method:"Get",
318
     method:"Get",
319
     params:params,
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 View File

1575
         })
1575
         })
1576
         }, 
1576
         }, 
1577
       AddCard(){
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
       AddCardOne(){
1610
       AddCardOne(){
1581
         getAirDisinfectWayLongTime(this.form.department).then(response=>{
1611
         getAirDisinfectWayLongTime(this.form.department).then(response=>{

+ 39 - 1
src/xt_pages/dialysis/PatientBox.vue View File

269
   getDialysisScheduleDetail,
269
   getDialysisScheduleDetail,
270
   getLongAdviceOne,
270
   getLongAdviceOne,
271
 } from "@/api/dialysis_record";
271
 } from "@/api/dialysis_record";
272
-
272
+const moment = require('moment')
273
 export default {
273
 export default {
274
   name: "PatientBox",
274
   name: "PatientBox",
275
   components: {
275
   components: {
714
           switch (status) {
714
           switch (status) {
715
             case 2:
715
             case 2:
716
               var totalAdvice = resp.data.advices;
716
               var totalAdvice = resp.data.advices;
717
+              console.log("totalAdvice",totalAdvice)
717
               var longAdvicesTwo = resp.data.advices_two;
718
               var longAdvicesTwo = resp.data.advices_two;
718
               var waitUploadAdvices = [];
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
               for (let i = 0; i < totalAdvice.length; i++) {
757
               for (let i = 0; i < totalAdvice.length; i++) {
720
                 totalAdvice[i]["isCheck"] = 1;
758
                 totalAdvice[i]["isCheck"] = 1;
721
               }
759
               }

+ 2 - 2
src/xt_pages/dialysis/batch_print/batch_print_order_fortyThree.vue View File

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

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

+ 14 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_twentySeven.vue View File

2721
                         <table class="table-box" style="margin-bottom: 20px">
2721
                         <table class="table-box" style="margin-bottom: 20px">
2722
                           <tbody>
2722
                           <tbody>
2723
                             <tr>
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
                               <td width="70">特殊记录:</td>
2738
                               <td width="70">特殊记录:</td>
2726
                               <td width="">
2739
                               <td width="">
2727
                                 <div
2740
                                 <div

+ 1 - 1
src/xt_pages/dialysis/details/DialysisPrescription.vue View File

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

+ 5 - 0
src/xt_pages/dialysis/details/assessmentAfter.vue View File

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

+ 8 - 2
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue View File

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

+ 7 - 1
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

2772
         if(moment().weekday() == 0){
2772
         if(moment().weekday() == 0){
2773
            total_day ="周日"
2773
            total_day ="周日"
2774
         }
2774
         }
2775
-        console.log("---------",this.targetAdvices)
2775
+       
2776
         if(this.targetAdvices!=null && this.targetAdvices.length >0){
2776
         if(this.targetAdvices!=null && this.targetAdvices.length >0){
2777
             for (let i = 0; i < this.targetAdvices.length; i++) {
2777
             for (let i = 0; i < this.targetAdvices.length; i++) {
2778
               if(this.targetAdvices[i].week_day.indexOf(total_day)!=-1){
2778
               if(this.targetAdvices[i].week_day.indexOf(total_day)!=-1){
2779
                 this.targetAdvices[i].isCheck = 1
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
         for (let i = 0; i < this.targetAdvices.length; i++) {
2786
         for (let i = 0; i < this.targetAdvices.length; i++) {
2786
             this.checkedCities.push(this.targetAdvices[i].id)
2789
             this.checkedCities.push(this.targetAdvices[i].id)
2787
           }
2790
           }
2788
         }
2791
         }
2792
+
2793
+
2789
         if(admins.length > 0 ){
2794
         if(admins.length > 0 ){
2790
           for(let i=0;i<admins.length;i++){
2795
           for(let i=0;i<admins.length;i++){
2791
             this.adminRoles.push(admins[i])
2796
             this.adminRoles.push(admins[i])
2792
           }
2797
           }
2793
         }
2798
         }
2799
+        console.log("---------",this.targetAdvices)
2794
         console.log("admin_user_+id2332323223332", this.adminRoles)
2800
         console.log("admin_user_+id2332323223332", this.adminRoles)
2795
       },
2801
       },
2796
       hide() {
2802
       hide() {

+ 2 - 5
src/xt_pages/dialysis/template/DialysisPrintOrderFiftySeven.vue View File

371
                 <div style="width: 75%">
371
                 <div style="width: 75%">
372
                   血管通路: &nbsp;
372
                   血管通路: &nbsp;
373
                   <label-box
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
                     showValue="内瘘"
375
                     showValue="内瘘"
380
                   ></label-box
376
                   ></label-box
381
                   >&nbsp; &nbsp;
377
                   >&nbsp; &nbsp;
378
+                  
382
                   <label-box
379
                   <label-box
383
                     :isChecked="
380
                     :isChecked="
384
                       predialysis.blood_access_part_opera_name.indexOf(
381
                       predialysis.blood_access_part_opera_name.indexOf(

+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderSixtyeight.vue View File

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

+ 58 - 4
src/xt_pages/dialysis/template/DialysisPrintOrderSixtyfour.vue View File

1142
           this.advices = tableAdvice;
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
         this.advices = []
1201
         this.advices = []
1148
         this.advices= arr
1202
         this.advices= arr
1149
-        console.log("wowoowowowo",arr)
1203
+     
1150
         console.log("advices-----------------",this.advices)
1204
         console.log("advices-----------------",this.advices)
1151
 
1205
 
1152
- 
1206
+         
1153
          
1207
          
1154
 
1208
 
1155
         // this.loading = false;
1209
         // this.loading = false;

+ 14 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderTwentySeven.vue View File

1039
                   </tbody>
1039
                   </tbody>
1040
                 </table>
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
                 <table class="table-box" style="margin-bottom:20px;">
1056
                 <table class="table-box" style="margin-bottom:20px;">
1043
                   <tbody>
1057
                   <tbody>
1044
                     <tr>
1058
                     <tr>

+ 29 - 29
src/xt_pages/outpatientCharges/invoiceTemplate/printEleven.vue View File

9
     <div>
9
     <div>
10
       <div style="position: absolute;top: 50px;left: 60px;">{{ paramsObj.name }}</div>
10
       <div style="position: absolute;top: 50px;left: 60px;">{{ paramsObj.name }}</div>
11
       <div style="display:flex;justify-content: space-between;">
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
           <div  style="position: absolute;top:50px;left:220px;"></div>
13
           <div  style="position: absolute;top:50px;left:220px;"></div>
14
           <div  style="position: absolute;top:50px;left:250px;"></div>
14
           <div  style="position: absolute;top:50px;left:250px;"></div>
15
       </div>
15
       </div>
16
       <div style="display:flex;justify-content: space-between;">
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
       </div>
19
       </div>
20
     </div>
20
     </div>
21
     <div style="display:flex;justify-content: space-between;">
21
     <div style="display:flex;justify-content: space-between;">
22
       <div  style="position: absolute;top:88px;left:120px;">医保</div>
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
     </div>
25
     </div>
26
     <div style="display:flex;justify-content: space-between;">
26
     <div style="display:flex;justify-content: space-between;">
27
       <div  style="position: absolute;top:150px;left:0px;">西药费</div>
27
       <div  style="position: absolute;top:150px;left:0px;">西药费</div>
28
       <div  style="position: absolute;top:150px;left:60px;">{{ list.westernMedicineCostTotal ? list.westernMedicineCostTotal.toFixed(2) : '' }}</div>
28
       <div  style="position: absolute;top:150px;left:60px;">{{ list.westernMedicineCostTotal ? list.westernMedicineCostTotal.toFixed(2) : '' }}</div>
29
       <div  style="position: absolute;top:150px;left:120px;">化验费</div>
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
       <div  style="position: absolute;top:150px;left:270px;">治疗费</div>
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
     </div>
35
     </div>
36
     <div style="display:flex;justify-content: space-between;">
36
     <div style="display:flex;justify-content: space-between;">
37
       <div  style="position: absolute;top:188px;left:0px;">中成药</div>
37
       <div  style="position: absolute;top:188px;left:0px;">中成药</div>
38
       <div  style="position: absolute;top:188px;left:60px;">{{ list.chineseTraditionalMedicineCostTotal ? list.chineseTraditionalMedicineCostTotal.toFixed(2) : '' }}</div>
38
       <div  style="position: absolute;top:188px;left:60px;">{{ list.chineseTraditionalMedicineCostTotal ? list.chineseTraditionalMedicineCostTotal.toFixed(2) : '' }}</div>
39
       <div  style="position: absolute;top:188px;left:120px;">诊疗费</div>
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
       <div  style="position: absolute;top:188px;left:270px;">材料费</div>
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
     </div>
45
     </div>
46
     <div style="display:flex;justify-content: space-between;">
46
     <div style="display:flex;justify-content: space-between;">
47
       <div  style="position: absolute;top:225px;left:0px;">注射费</div>
47
       <div  style="position: absolute;top:225px;left:0px;">注射费</div>
48
       <div  style="position: absolute;top:225px;left:60px;">0</div>
48
       <div  style="position: absolute;top:225px;left:60px;">0</div>
49
       <div  style="position: absolute;top:225px;left:120px;">检查费</div>
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
       <div  style="position: absolute;top:225px;left:270px;">输氧费</div>
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
     </div>
55
     </div>
56
     <div style="display:flex;justify-content: space-between;">
56
     <div style="display:flex;justify-content: space-between;">
57
       <div  style="position: absolute;top:202px;left:60px;"></div>
57
       <div  style="position: absolute;top:202px;left:60px;"></div>
61
     </div>
61
     </div>
62
     <div>
62
     <div>
63
       <span>
63
       <span>
64
-        <span  style="position: absolute;top:280px;left:100px">
64
+        <span  style="position: absolute;top:290px;left:100px">
65
           <span v-if="zhongwen.indexOf('万') > -1 && zhongwen.indexOf('拾') > -1 && zhongwen.indexOf('拾') == 1">
65
           <span v-if="zhongwen.indexOf('万') > -1 && zhongwen.indexOf('拾') > -1 && zhongwen.indexOf('拾') == 1">
66
                     {{ zhongwen.substring(0,1) }}
66
                     {{ zhongwen.substring(0,1) }}
67
                 </span>
67
                 </span>
68
                 <span v-else>零</span>
68
                 <span v-else>零</span>
69
         </span>
69
         </span>
70
-        <span  style="position: absolute;top:280px;left:140px">
70
+        <span  style="position: absolute;top:290px;left:140px">
71
             <span v-if="zhongwen.indexOf('万') > -1">
71
             <span v-if="zhongwen.indexOf('万') > -1">
72
                     {{ zhongwen.substring(zhongwen.indexOf('万') - 1,zhongwen.indexOf('万')) }}
72
                     {{ zhongwen.substring(zhongwen.indexOf('万') - 1,zhongwen.indexOf('万')) }}
73
                 </span>
73
                 </span>
74
                 <span v-else>零</span>
74
                 <span v-else>零</span>
75
         </span>
75
         </span>
76
-        <span  style="position: absolute;top:280px;left:190px">
76
+        <span  style="position: absolute;top:290px;left:190px">
77
             <span v-if="zhongwen.indexOf('仟') > -1">
77
             <span v-if="zhongwen.indexOf('仟') > -1">
78
                     {{ zhongwen.substring(zhongwen.indexOf('仟') - 1,zhongwen.indexOf('仟')) }}
78
                     {{ zhongwen.substring(zhongwen.indexOf('仟') - 1,zhongwen.indexOf('仟')) }}
79
                 </span>
79
                 </span>
80
                 <span v-else>零</span>
80
                 <span v-else>零</span>
81
         </span>
81
         </span>
82
-        <span  style="position: absolute;top:280px;left:260px">
82
+        <span  style="position: absolute;top:290px;left:260px">
83
             <span v-if="zhongwen.indexOf('佰') > -1">
83
             <span v-if="zhongwen.indexOf('佰') > -1">
84
                     {{ zhongwen.substring(zhongwen.indexOf('佰') - 1,zhongwen.indexOf('佰')) }}
84
                     {{ zhongwen.substring(zhongwen.indexOf('佰') - 1,zhongwen.indexOf('佰')) }}
85
                 </span>
85
                 </span>
86
                 <span v-else>零</span>
86
                 <span v-else>零</span>
87
         </span>
87
         </span>
88
-        <span style="position: absolute;top:280px;left:310px">
88
+        <span style="position: absolute;top:290px;left:310px">
89
             <span v-if="zhongwen.indexOf('拾') > -1">
89
             <span v-if="zhongwen.indexOf('拾') > -1">
90
                     {{zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾')) == '佰' ||  !zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾'))? '壹' : zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾')) }}
90
                     {{zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾')) == '佰' ||  !zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾'))? '壹' : zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾')) }}
91
                 </span>
91
                 </span>
92
                 <span v-else>零</span>
92
                 <span v-else>零</span>
93
         </span>
93
         </span>
94
-        <span  style="position: absolute;top:280px;left:380px">
94
+        <span  style="position: absolute;top:290px;left:380px">
95
            <span v-if="zhongwen.indexOf('元') > -1 && zhongwen.substring(this.zhongwen.indexOf('元') - 1).substring(0,1)!= '拾'">
95
            <span v-if="zhongwen.indexOf('元') > -1 && zhongwen.substring(this.zhongwen.indexOf('元') - 1).substring(0,1)!= '拾'">
96
                     {{ zhongwen.substring(zhongwen.indexOf('元') - 1,zhongwen.indexOf('元')) }}
96
                     {{ zhongwen.substring(zhongwen.indexOf('元') - 1,zhongwen.indexOf('元')) }}
97
                 </span>
97
                 </span>
98
                 <span v-else>零</span>
98
                 <span v-else>零</span>
99
         </span>
99
         </span>
100
-        <span  style="position: absolute;top:280px;left:450px">
100
+        <span  style="position: absolute;top:290px;left:450px">
101
              <span v-if="zhongwen.indexOf('角') > -1">
101
              <span v-if="zhongwen.indexOf('角') > -1">
102
                     {{ zhongwen.substring(zhongwen.indexOf('角') - 1,zhongwen.indexOf('角')) }}
102
                     {{ zhongwen.substring(zhongwen.indexOf('角') - 1,zhongwen.indexOf('角')) }}
103
                 </span>
103
                 </span>
104
                 <span v-else>零</span>
104
                 <span v-else>零</span>
105
         </span>
105
         </span>
106
-        <span  style="position: absolute;top:280px;left:510px">
106
+        <span  style="position: absolute;top:290px;left:510px">
107
              <span v-if="zhongwen.indexOf('分') > -1">
107
              <span v-if="zhongwen.indexOf('分') > -1">
108
                     {{ zhongwen.substring(zhongwen.indexOf('分') - 1,zhongwen.indexOf('分')) }}
108
                     {{ zhongwen.substring(zhongwen.indexOf('分') - 1,zhongwen.indexOf('分')) }}
109
                 </span>
109
                 </span>
110
                 <span v-else>零</span>
110
                 <span v-else>零</span>
111
         </span>
111
         </span>
112
       </span>
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
     </div>
114
     </div>
115
 
115
 
116
     <div style="display:flex;justify-content: space-between;">
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
     </div>
120
     </div>
121
   </div>
121
   </div>
122
 </template>
122
 </template>

+ 17 - 17
src/xt_pages/outpatientCharges/invoiceTemplate/printSix.vue View File

1
 <template>
1
 <template>
2
   <div id='invoice-print' >
2
   <div id='invoice-print' >
3
     <div v-for='(i,index) in pageArr.length' :key="index" >
3
     <div v-for='(i,index) in pageArr.length' :key="index" >
4
-      <div :style="{position: 'absolute',top:(0 + (index * 420))  + 'px',left:152+ 'px',}">盐城大丰悦达金骆驼血液透析中心</div>
4
+      <div :style="{position: 'absolute',top:(0 + (index * 420))  + 'px',left:152+ 'px',}">大丰燕舞血液透析中心</div>
5
       <div :style="{position: 'absolute',top:(18 + (index * 420))  + 'px',left:117+ 'px',}">{{ list.order_number }}</div>
5
       <div :style="{position: 'absolute',top:(18 + (index * 420))  + 'px',left:117+ 'px',}">{{ list.order_number }}</div>
6
       <div >
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
       </div>
9
       </div>
10
       <div :style="{position: 'absolute',top:(95 + (index * 420))  + 'px',left:76+ 'px',}">
10
       <div :style="{position: 'absolute',top:(95 + (index * 420))  + 'px',left:76+ 'px',}">
11
           <div v-if="list.westernMedicineCostTotal">西药 {{ list.westernMedicineCostTotal }}</div>
11
           <div v-if="list.westernMedicineCostTotal">西药 {{ list.westernMedicineCostTotal }}</div>
45
       <div :style="{position: 'absolute',top:(305 + (index * 420))  + 'px',left:121+ 'px'}">{{ zhongwen }}</div>
45
       <div :style="{position: 'absolute',top:(305 + (index * 420))  + 'px',left:121+ 'px'}">{{ zhongwen }}</div>
46
       <div :style="{position: 'absolute',top:(305 + (index * 420))  + 'px',left:490+ 'px'}">{{ list.medfee_sumamt }}</div>
46
       <div :style="{position: 'absolute',top:(305 + (index * 420))  + 'px',left:490+ 'px'}">{{ list.medfee_sumamt }}</div>
47
       <div v-if="index == pageArr.length - 1" :style="{position: 'absolute',top:(320 + (index * 420))  + 'px',left:110+ 'px',width:100 + '%',fontSize:12+'px'}">
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
         <div style="display:flex;">
61
         <div style="display:flex;">
62
           <div style="width:140px">账户余额:{{ list.order.balc }}</div>
62
           <div style="width:140px">账户余额:{{ list.order.balc }}</div>
63
           <div style="width:140px">其他支出:{{ list.order.oth_pay }}</div>
63
           <div style="width:140px">其他支出:{{ list.order.oth_pay }}</div>
71
 
71
 
72
       </div>
72
       </div>
73
       <div v-if="index != pageArr.length - 1">
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
           <div :style="{position: 'absolute',top:(390 + (index * 420))  + 'px',left:374+ 'px'}">{{ paramsObj.chargeName }}</div>
75
           <div :style="{position: 'absolute',top:(390 + (index * 420))  + 'px',left:374+ 'px'}">{{ paramsObj.chargeName }}</div>
76
           <div :style="{position: 'absolute',top:(390 + (index * 420))  + 'px',left:435+ 'px'}">
76
           <div :style="{position: 'absolute',top:(390 + (index * 420))  + 'px',left:435+ 'px'}">
77
               <span>{{  paramsObj.setl_time ? paramsObj.setl_time.split(' ')[0].slice(0,4) : getTime(list.date, '{y}-{m}-{d}').slice(0,4) }}</span>
77
               <span>{{  paramsObj.setl_time ? paramsObj.setl_time.split(' ')[0].slice(0,4) : getTime(list.date, '{y}-{m}-{d}').slice(0,4) }}</span>
84
           </div>
84
           </div>
85
       </div>
85
       </div>
86
       <div v-if="index == pageArr.length - 1">
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
         <div :style="{position: 'absolute',top:(390 + (index * 420))  + 'px',left:374+ 'px'}">{{ paramsObj.chargeName }}</div>
88
         <div :style="{position: 'absolute',top:(390 + (index * 420))  + 'px',left:374+ 'px'}">{{ paramsObj.chargeName }}</div>
89
         <div :style="{position: 'absolute',top:(390 + (index * 420))  + 'px',left:435+ 'px'}">
89
         <div :style="{position: 'absolute',top:(390 + (index * 420))  + 'px',left:435+ 'px'}">
90
           <span>{{  paramsObj.setl_time ? paramsObj.setl_time.split(' ')[0].slice(0,4) : getTime(list.date, '{y}-{m}-{d}').slice(0,4) }}</span>
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 View File

73
     </div> -->
73
     </div> -->
74
     <!-- 附件 -->
74
     <!-- 附件 -->
75
     <div v-for="(item,index) in Arr" :key="index">
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
       </div>
78
       </div>
79
       <div style="display: flex;">
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
           {{paramsObj.name}}
81
           {{paramsObj.name}}
82
         </div>
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
         </div>
85
         </div>
86
       </div>
86
       </div>
87
 
87
 
88
       <div style="display: flex;">
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
         </div>
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
         </div>
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
         {{printDate}}
96
         {{printDate}}
97
         </div>
97
         </div>
98
       </div>
98
       </div>
99
       <div style="display: flex;">
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
       </div>
104
       </div>
105
       <div style="display: flex;">
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
       </div>
110
       </div>
111
       <div style="display: flex;">
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
       </div>
116
       </div>
117
       <div style="display: flex;">
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
       </div>
122
       </div>
123
       <div style="display: flex;">
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
     <div style="display: flex;">
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
     </div>
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
     <div style="display: flex;">
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
     </div>
146
     </div>
147
 
147
 
148
       <div v-for="(ite,index2) in item" :key="index2" style="">
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
         <!-- <div :style="{position: 'absolute',top:(120 + (index * 350))  + 'px',left:'490px'}">号码</div>
158
         <!-- <div :style="{position: 'absolute',top:(120 + (index * 350))  + 'px',left:'490px'}">号码</div>
159
         <div :style="{position: 'absolute',top:(150 + (index * 350))  + 'px',left:'490px'}">{{ite}}</div>
159
         <div :style="{position: 'absolute',top:(150 + (index * 350))  + 'px',left:'490px'}">{{ite}}</div>

+ 91 - 4
src/xt_pages/qcd/treatmentControlAnalysis/components/TimePersonal.vue View File

69
         <div class="tableTitle">统计表</div>
69
         <div class="tableTitle">统计表</div>
70
         <div>
70
         <div>
71
           <el-button type="primary" @click="exportList">按透析记录导出</el-button>
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
         </div>
75
         </div>
74
        
76
        
75
         <el-table :data="DialysisData" style="width: 100%" border :row-style="{ color: '#303133' }"
77
         <el-table :data="DialysisData" style="width: 100%" border :row-style="{ color: '#303133' }"
147
       patient_id:0,
149
       patient_id:0,
148
       modeIdCount:[],
150
       modeIdCount:[],
149
       scheduleCount:[],
151
       scheduleCount:[],
152
+      scheduleList:[],
153
+      org_id:0,
150
     };
154
     };
151
   },
155
   },
152
   methods: {
156
   methods: {
209
           console.log("modeidcount=====",modeIdCount)
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
           for(let i=0;i<modeIdCount.length;i++){
251
           for(let i=0;i<modeIdCount.length;i++){
215
             if(modeIdCount[i].mode_id == 1){
252
             if(modeIdCount[i].mode_id == 1){
438
               }
475
               }
439
             }
476
             }
440
           })
477
           })
441
-        //  console.log("list---",list)
478
+        
442
           this.DialysisData = list
479
           this.DialysisData = list
443
          }
480
          }
444
       })
481
       })
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
       formatJson(filterVal, jsonData) {
835
       formatJson(filterVal, jsonData) {
750
         return jsonData.map(v =>
836
         return jsonData.map(v =>
751
           filterVal.map(j => {
837
           filterVal.map(j => {
793
 
879
 
794
   },
880
   },
795
   created(){
881
   created(){
882
+    this.org_id = this.$store.getters.xt_user.org.id
796
     var nowDate = new Date();
883
     var nowDate = new Date();
797
     var nowYear = nowDate.getFullYear();
884
     var nowYear = nowDate.getFullYear();
798
     var nowMonth = nowDate.getMonth() + 1;
885
     var nowMonth = nowDate.getMonth() + 1;
803
       (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
890
       (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
804
       "-" +
891
       "-" +
805
       (nowDay < 10 ? "0" + nowDay : nowDay);
892
       (nowDay < 10 ? "0" + nowDay : nowDay);
806
-    nowDate.setMonth(nowDate.getMonth() - 3);
893
+    nowDate.setMonth(nowDate.getMonth() - 1);
807
     nowYear = nowDate.getFullYear();
894
     nowYear = nowDate.getFullYear();
808
     nowMonth = nowDate.getMonth() + 1;
895
     nowMonth = nowDate.getMonth() + 1;
809
     nowDay = nowDate.getDate();
896
     nowDay = nowDate.getDate();

+ 80 - 6
src/xt_pages/role/admin.vue View File

192
           size="small"
192
           size="small"
193
           icon="el-icon-circle-plus-outline"
193
           icon="el-icon-circle-plus-outline"
194
           style="float:left"
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
           type="primary"
199
           type="primary"
200
           size="small"
200
           size="small"
201
           icon="el-icon-circle-plus-outline"
201
           icon="el-icon-circle-plus-outline"
202
           style="float:left"
202
           style="float:left"
203
           @click="toCheckPDFInformation">PDF验证</el-button> -->
203
           @click="toCheckPDFInformation">PDF验证</el-button> -->
204
+
205
+        
204
      </div>
206
      </div>
205
     
207
     
206
       
208
       
499
 
501
 
500
 <script>
502
 <script>
501
 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
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
 import { getRoles } from "@/api/role/role";
505
 import { getRoles } from "@/api/role/role";
504
 
506
 
505
 import { parseTime } from "@/utils";
507
 import { parseTime } from "@/utils";
1064
     },
1066
     },
1065
     toSavePDFInformation(){
1067
     toSavePDFInformation(){
1066
       toSavePDFInformation().then(response=>{
1068
       toSavePDFInformation().then(response=>{
1067
-         if(response.data.data == 1){
1069
+         if(response.data.state == 1){
1068
           var information =  response.data.data.information
1070
           var information =  response.data.data.information
1069
-
1071
+           
1070
            var orderId = response.data.data.orderId
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
     toCheckPDFInformation(){
1125
     toCheckPDFInformation(){
1075
       toCheckPDFInformation().then(response=>{
1126
       toCheckPDFInformation().then(response=>{
1076
         if(response.data.data == 1){
1127
         if(response.data.data == 1){
1077
           var information =  response.data.data.information
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
   watch: {
1156
   watch: {
1083
     should_update_admins(should_change) {
1157
     should_update_admins(should_change) {

+ 3 - 4
src/xt_pages/stock/detail/stockOutDetail.vue View File

831
       },
831
       },
832
 
832
 
833
     exportList(){
833
     exportList(){
834
-      console.log("shij232333",this.tableOut)
835
-     
834
+    
836
        for(let i=0;i<this.tableOut.length;i++){
835
        for(let i=0;i<this.tableOut.length;i++){
837
         this.tableOut[i].index = i+1
836
         this.tableOut[i].index = i+1
838
         this.tableOut[i].good_name = this.tableOut[i].good_name
837
         this.tableOut[i].good_name = this.tableOut[i].good_name
876
         }
875
         }
877
         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){
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
           this.tableOut[i].out_count = this.getWarehouseOut(this.tableOut[i].good_id)
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
         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){
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
           this.tableOut[i].out_count = this.getStockCount(this.tableOut[i].good_id)
881
           this.tableOut[i].out_count = this.getStockCount(this.tableOut[i].good_id)
883
         }
882
         }
884
         this.tableOut[i].manufacturer_name = this.getManufacturerNameOne(this.tableOut[i].manufacturer)
883
         this.tableOut[i].manufacturer_name = this.getManufacturerNameOne(this.tableOut[i].manufacturer)
885
-        console.log("继续桑",this.tableOut[i].dealer)
884
+       
886
         this.tableOut[i].dealer_name = this.getDealerNameOne(this.tableOut[i].dealer)
885
         this.tableOut[i].dealer_name = this.getDealerNameOne(this.tableOut[i].dealer)
887
        }
886
        }
888
        console.log("retusoossoso",this.tableOut)
887
        console.log("retusoossoso",this.tableOut)