Browse Source

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

28169 1 year ago
parent
commit
39966df3e3

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

@@ -1008,12 +1008,12 @@ export default {
1008 1008
           if(name == "穿刺处血肿" || name == '拔针后穿刺点渗血' || name == '透析期间进食' ){
1009 1009
             return [
1010 1010
               { required: true, message: `请选择${name}`,trigger: ['blur','change'] },
1011
-              {
1012
-                required: true,
1013
-                pattern: /^[1-9]\d*$/,
1014
-                message: `请选择${name}`,
1015
-                trigger: ['change']
1016
-              },
1011
+              // {
1012
+              //   required: true,
1013
+              //   pattern: /^[1-9]\d*$/,
1014
+              //   message: `请选择${name}`,
1015
+              //   trigger: ['change']
1016
+              // },
1017 1017
             ];
1018 1018
           }
1019 1019
             

+ 6 - 6
src/xt_pages/dialysis/details/dialog/acceptsTreatmentDialog.vue View File

@@ -613,12 +613,12 @@ export default {
613 613
           if (name == "风险程度"||name == "病人情况"||name == '心理评估') {
614 614
             return [
615 615
               { required: true, message: `请输入${name}`,trigger: ['blur','change'] },
616
-              {
617
-                required: true,
618
-                pattern: /^[1-9]\d*$/,
619
-                message: `请输入${name}`,
620
-                trigger: ['blur','change']
621
-              },
616
+              // {
617
+              //   required: true,
618
+              //   pattern: /^[1-9]\d*$/,
619
+              //   message: `请输入${name}`,
620
+              //   trigger: ['blur','change']
621
+              // },
622 622
             ];
623 623
           }
624 624
           else if(name == "跌倒风险预防措施"){

+ 5 - 5
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue View File

@@ -1061,11 +1061,11 @@
1061 1061
             ) {
1062 1062
             return [
1063 1063
               { required: true, message: `请输入${name}` },
1064
-              {
1065
-                required: true,
1066
-                pattern: /^[1-9]\d*$/,
1067
-                message: `请输入${name}`,
1068
-              },
1064
+              // {
1065
+              //   required: true,
1066
+              //   pattern: /^[1-9]\d*$/,
1067
+              //   message: `请输入${name}`,
1068
+              // },
1069 1069
             ];
1070 1070
           }
1071 1071
             return [{ required: true ,message:`请输入${name}`, trigger: ['blur','change'] }];

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

@@ -691,7 +691,7 @@ export default {
691 691
           
692 692
           return [
693 693
             { required: true, message: `请输入${name}`,trigger: ['blur','change'] },
694
-            { required: true, pattern: /^[1-9]\d*$/, message: `请输入${name}`,trigger: ['blur','change'] },
694
+            // { required: true, pattern: /^[1-9]\d*$/, message: `请输入${name}`,trigger: ['blur','change'] },
695 695
           ];
696 696
         }
697 697
           return [{ required: true, message: `请输入${name}` }];

+ 74 - 79
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

@@ -29,7 +29,7 @@
29 29
             >
30 30
                 <el-row :gutter="24">
31 31
                     <el-col :span="8" v-if="isShows('透析模式')">
32
-                        <el-form-item label="透析模式" :prop="isName('透析模式')">
32
+                        <el-form-item label="透析模式" :prop="isName('透析模式')" :rules="isCheckmust('透析模式')">
33 33
                             <el-select
34 34
                                    filterable
35 35
                                     v-model="dialysisPrescription.mode_id"
@@ -1284,7 +1284,7 @@
1284 1284
             </span>
1285 1285
           </el-row>
1286 1286
         </el-form>
1287
-      
1287
+
1288 1288
       </span>
1289 1289
       <span slot="footer" class="dialog-footer">
1290 1290
         <el-button @click="infoDialogVisible = false">取 消</el-button>
@@ -2066,7 +2066,7 @@ mu
2066 2066
             }
2067 2067
           }
2068 2068
         } else {
2069
-          if (schedual.mode_id == 2 || schedual.mode_id == 5 || schedual.mode_id == 12 || schedual.mode_id == 28) {
2069
+          if (schedual.mode_id == 2 || schedual.mode_id == 5 || schedual.mode_id == 12) {
2070 2070
             this.zhiShow = true
2071 2071
             this.huShow = true
2072 2072
             this.totalShow = true
@@ -2598,7 +2598,7 @@ mu
2598 2598
         }
2599 2599
         // console.log('this.dialysisPrescription.mode_id', this.dialysisPrescription.mode_id)
2600 2600
         // console.log('this.schedual', schedual.mode_id)
2601
-        if (pre.mode_id == 2 || pre.mode_id == 5 || pre.mode_id == 12 || schedual.mode_id == 2 || schedual.mode_id == 5 || schedual.mode_id == 12 || schedual.mode_id == 28) {
2601
+        if (pre.mode_id == 2 || pre.mode_id == 5 || pre.mode_id == 12 || schedual.mode_id == 2 || schedual.mode_id == 5 || schedual.mode_id == 12) {
2602 2602
           this.zhiShow = true
2603 2603
           this.huShow = true
2604 2604
           this.totalShow = true
@@ -2809,7 +2809,7 @@ mu
2809 2809
             //   }
2810 2810
 
2811 2811
             // }
2812
-            if(this.dialysisPrescription.mode_id!=2 && this.dialysisPrescription.mode_id!=5 && this.dialysisPrescription.mode_id!=12 && this.dialysisPrescription.mode_id!=28){
2812
+            if(this.dialysisPrescription.mode_id!=2 && this.dialysisPrescription.mode_id!=5 && this.dialysisPrescription.mode_id!=12){
2813 2813
               this.dialysisPrescription.displace_liqui_part = 0
2814 2814
               this.dialysisPrescription.displace_liqui_value = 0
2815 2815
               this.dialysisPrescription.replacement_total = 0
@@ -3920,17 +3920,17 @@ mu
3920 3920
           filedList[i].is_show == 1
3921 3921
         ) {
3922 3922
           // console.log(filedList[i],'false')
3923
-          // if (name == "透析时长") {
3924
-          //   return [
3925
-          //     { required: true, message: `请输入${name}`,trigger: ['blur','change'] },
3926
-          //     {
3927
-          //       required: true,
3928
-          //       pattern: /^[1-9]\d*$/,
3929
-          //       message: `请输入${name}`,
3930
-          //       trigger: ['blur','change']
3931
-          //     },
3932
-          //   ];
3933
-          // }
3923
+          if (name == "透析模式" || name == "透析时长") {
3924
+            return [
3925
+              { required: true, message: `请输入${name}`,trigger: ['blur','change'] },
3926
+              // {
3927
+              //   required: true,
3928
+              //   pattern: /^[1-9]\d*$/,
3929
+              //   message: `请输入${name}`,
3930
+              //   trigger: ['blur','change']
3931
+              // },
3932
+            ];
3933
+          }
3934 3934
           return [{ required: true ,message:`请输入${name}`, trigger: ['blur','change'] }];
3935 3935
 
3936 3936
         }
@@ -3961,17 +3961,17 @@ mu
3961 3961
             filedList[i].is_write == 1&&
3962 3962
             filedList[i].is_show == 1
3963 3963
           ) {
3964
-            // if(name == '置换速度'){
3965
-            //   return [
3966
-            //     { required: true, message: `请输入${name}`,trigger: ['blur','change'] },
3967
-            //     {
3968
-            //       required: true,
3969
-            //       pattern: /^[1-9]\d*$/,
3970
-            //       message: `请输入${name}`,
3971
-            //       trigger: ['blur','change']
3972
-            //     },
3973
-            //   ];
3974
-            // }
3964
+            if(name == '置换速度'){
3965
+              return [
3966
+                { required: true, message: `请输入${name}`,trigger: ['blur','change'] },
3967
+                // {
3968
+                //   required: true,
3969
+                //   pattern: /^[1-9]\d*$/,
3970
+                //   message: `请输入${name}`,
3971
+                //   trigger: ['blur','change']
3972
+                // },
3973
+              ];
3974
+            }
3975 3975
             return [{ required: true ,message:`请输入${name}`, trigger: ['blur','change'] }];
3976 3976
 
3977 3977
           }
@@ -4073,8 +4073,7 @@ mu
4073 4073
     },
4074 4074
     changePrescription(id) {
4075 4075
       console.log("id233223232323232323",id)
4076
-      this.dialysisPrescription.mode_id = id
4077
-      if(id != 2 && id!=5 && id!= 12 && id!=28){
4076
+      if(id != 2 && id!=5 && id!= 12){
4078 4077
         this.dialysisPrescription.displace_liqui_value = ""
4079 4078
         this.dialysisPrescription.displace_liqui_part = ""
4080 4079
         this.dialysisPrescription.replacement_total = ""
@@ -4090,18 +4089,17 @@ mu
4090 4089
           return false
4091 4090
         } else {
4092 4091
           console.log('切换数据', response.data.data.solution)
4093
-
4094
-
4095 4092
           this.$message.success('切换成功')
4096 4093
           console.log("dialysisPrescription",response.data.data.dialysisPrescription)
4097
-        
4094
+
4098 4095
           if (response.data.data.solution != null) {
4099 4096
             for (const key in response.data.data.solution) {
4100 4097
               // 长期处方不为空
4101 4098
               if (key != 'target_ultrafiltration' && key != 'niprocart' && key != 'target_ultrafiltration' && key != 'jms' && key != 'fistula_needle_set' && key != 'fistula_needle_set_16'
4102 4099
                 && key != 'hemoperfusion' && key != 'dialyser_sterilised' && key != 'filtryzer' && key != 'target_ktv' && key != 'dialyzers'
4103 4100
                 && key != 'injector' && key != 'bloodlines' && key != 'tubing_hemodialysis' && key != 'package' && key != 'a_liquid') {
4104
-                this.dialysisPrescription[key] = response.data.data.solution[key]
4101
+                this.dialysisPrescription[key] =
4102
+                  response.data.data.solution[key]
4105 4103
               }
4106 4104
             }
4107 4105
               if (this.$store.getters.xt_user.template_info.org_id== 9671 || this.$store.getters.xt_user.template_info.org_id == 9675 || this.$store.getters.xt_user.template_info.org_id == 10340) {
@@ -4115,30 +4113,28 @@ mu
4115 4113
             }
4116 4114
           } else {
4117 4115
             if (response.data.data.prescription != null) {
4118
-              console.log("wowowowwo")
4119 4116
               // 临时处方不为空
4120 4117
               for (const key in response.data.data.prescription) {
4121 4118
                 if (key != 'target_ultrafiltration' && key != 'niprocart' && key != 'target_ultrafiltration' && key != 'jms' && key != 'fistula_needle_set' && key != 'fistula_needle_set_16'
4122 4119
                   && key != 'hemoperfusion' && key != 'dialyser_sterilised' && key != 'filtryzer' && key != 'target_ktv' && key != 'dialyzers'
4123 4120
                   && key != 'injector' && key != 'bloodlines' && key != 'tubing_hemodialysis' && key != 'package' && key != 'a_liquid') {
4124
-                  this.dialysisPrescription[key] = response.data.data.prescription[key]
4121
+                  this.dialysisPrescription[key] =
4122
+                    response.data.data.prescription[key]
4125 4123
                 }
4126 4124
               }
4127 4125
             } else if (response.data.data.system_prescription != null) {
4128
-              console.log("见啦地方232332")
4129 4126
               // 系统处方不为空
4130 4127
               for (const key in response.data.data.system_prescription) {
4131 4128
                 if (key != 'target_ultrafiltration' && key != 'niprocart' && key != 'target_ultrafiltration' && key != 'jms' && key != 'fistula_needle_set' && key != 'fistula_needle_set_16'
4132 4129
                   && key != 'hemoperfusion' && key != 'dialyser_sterilised' && key != 'filtryzer' && key != 'target_ktv' && key != 'dialyzers'
4133 4130
                   && key != 'injector' && key != 'bloodlines' && key != 'tubing_hemodialysis' && key != 'package' && key != 'a_liquid') {
4134
-                  this.dialysisPrescription[key] =  response.data.data.system_prescription[key]
4135
-                  
4131
+                  this.dialysisPrescription[key] =
4132
+                    response.data.data.system_prescription[key]
4136 4133
                 }
4137 4134
               }
4138 4135
 
4139 4136
             } else {
4140 4137
               for (const key in this.dialysisPrescription) {
4141
-                console.log("wowowowo")
4142 4138
                 // 临时处方为空
4143 4139
                 if (key != 'target_ultrafiltration' && key != 'niprocart' && key != 'target_ultrafiltration' && key != 'jms' && key != 'fistula_needle_set' && key != 'fistula_needle_set_16'
4144 4140
                   && key != 'hemoperfusion' && key != 'dialyser_sterilised' && key != 'filtryzer' && key != 'target_ktv' && key != 'dialyzers'
@@ -4146,7 +4142,7 @@ mu
4146 4142
                   this.dialysisPrescription[key] = ''
4147 4143
                 }
4148 4144
               }
4149
-              // this.dialysisPrescription.mode_id = id
4145
+              this.dialysisPrescription.mode_id = id
4150 4146
             }
4151 4147
               if (this.$store.getters.xt_user.template_info.org_id == 9671 ||this.$store.getters.xt_user.template_info.org_id == 9675 ||this.$store.getters.xt_user.template_info.org_id== 10340) {
4152 4148
               this.dialysisPrescription.sodium = 138
@@ -4161,8 +4157,8 @@ mu
4161 4157
           if(response.data.data.dialysisPrescription!=null){
4162 4158
               this.dialysisPrescription.remark =  response.data.data.dialysisPrescription.remark
4163 4159
           }
4164
-
4165
-          if (response.data.data.solution == null) {
4160
+        }
4161
+        if (response.data.data.solution == null) {
4166 4162
             if (this.$store.getters.xt_user.template_info.org_id== 9671 || this.$store.getters.xt_user.template_info.org_id == 9675 ||this.$store.getters.xt_user.template_info.org_id== 10340) {
4167 4163
               this.dialysisPrescription.sodium = 138
4168 4164
               this.dialysisPrescription.bicarbonate = 31.1
@@ -4172,8 +4168,10 @@ mu
4172 4168
               }
4173 4169
             }
4174 4170
           }
4175
-
4176
-          if ( this.dialysisPrescription.dialysis_duration_hour === '' || this.dialysisPrescription.dialysis_duration_minute === '') {
4171
+        if (
4172
+          this.dialysisPrescription.dialysis_duration_hour === '' ||
4173
+          this.dialysisPrescription.dialysis_duration_minute === ''
4174
+        ) {
4177 4175
           this.timeValue = ''
4178 4176
           this.time = '03:00'
4179 4177
         } else {
@@ -4190,43 +4188,40 @@ mu
4190 4188
             (this.dialysisPrescription.dialysis_duration_minute > 10
4191 4189
               ? this.dialysisPrescription.dialysis_duration_minute
4192 4190
               : '0' + this.dialysisPrescription.dialysis_duration_minute)
4193
-          }
4194
-
4195
-          if (
4196
-            id === 1 ||
4197
-            id === 3 ||
4198
-            id === 4 ||
4199
-            id === 6 ||
4200
-            id === 7 ||
4201
-            id === 8 ||
4202
-            id === 9 ||
4203
-            id === 10 ||
4204
-            id === 11 ||
4205
-            id === 13 ||
4206
-            id === 14 ||
4207
-            id === 15 ||
4208
-            id === 16 ||
4209
-            id === 19
4210
-          ) {
4211
-            this.zhiShow = false
4212
-            this.huShow = false
4213
-            this.totalShow = false
4214
-          } else {
4215
-            this.zhiShow = true
4216
-            this.huShow = true
4217
-            this.totalShow = true
4218
-
4219
-            //针对新化博翔
4220
-            if(this.$store.getters.xt_user.template_info.org_id ==10447){
4221
-                this.dialysisPrescription.displace_liqui_part = 1
4222
-                this.dialysisPrescription.displace_liqui_value = 35
4223
-            }
4224
-          }
4225
-
4226
-          this.dialysisPrescription.mode_id = id
4227
-          console.log("成功2332Owo",this.dialysisPrescription.mode_id)
4228 4191
         }
4229 4192
       })
4193
+
4194
+      if (
4195
+        id === 1 ||
4196
+        id === 3 ||
4197
+        id === 4 ||
4198
+        id === 6 ||
4199
+        id === 7 ||
4200
+        id === 8 ||
4201
+        id === 9 ||
4202
+        id === 10 ||
4203
+        id === 11 ||
4204
+        id === 13 ||
4205
+        id === 14 ||
4206
+        id === 15 ||
4207
+        id === 16 ||
4208
+        id === 19
4209
+      ) {
4210
+        this.zhiShow = false
4211
+        this.huShow = false
4212
+        this.totalShow = false
4213
+      } else {
4214
+        this.zhiShow = true
4215
+        this.huShow = true
4216
+        this.totalShow = true
4217
+
4218
+        //针对新化博翔
4219
+        if(this.$store.getters.xt_user.template_info.org_id ==10447){
4220
+            this.dialysisPrescription.displace_liqui_part = 1
4221
+            this.dialysisPrescription.displace_liqui_value = 35
4222
+        }
4223
+      }
4224
+
4230 4225
     },
4231 4226
     handlePatientInfo() {
4232 4227
       this.isVisibility = false

+ 28 - 13
src/xt_pages/dialysis/dialysisPrintOrder.vue View File

@@ -809,7 +809,7 @@
809 809
           <!-- || $store.getters.xt_user.org.id == 0  -->
810 810
         </div>
811 811
       </template>
812
-      <template v-if="org_template_info.template_id == 66 || $store.getters.xt_user.org.id == 0">
812
+      <template v-if="org_template_info.template_id == 66 ">
813 813
         <div>
814 814
           <el-button
815 815
           :loading="loading"
@@ -821,7 +821,18 @@
821 821
         >
822 822
         </div>
823 823
       </template>
824
-
824
+      <template v-if="org_template_info.template_id == 67 ">
825
+        <div>
826
+          <el-button
827
+          :loading="loading"
828
+          size="small"
829
+          icon="el-icon-printer"
830
+          @click="printThisPage"
831
+          type="primary"
832
+          >打印67</el-button
833
+        >
834
+        </div>
835
+      </template>
825 836
     </div>
826 837
     <div class="app-container" style="min-height: 0">
827 838
       <!--<div class="order-print-btn"-->
@@ -1218,8 +1229,6 @@
1218 1229
           >
1219 1230
           </DialysisPrintOrderFiftyThree>
1220 1231
 
1221
-         
1222
-        
1223 1232
            <DialysisPrintOrderFiftyFour
1224 1233
             v-bind:childResponse="childResponse"
1225 1234
             v-if="org_template_info.template_id == 54"
@@ -1279,6 +1288,11 @@
1279 1288
             v-if="org_template_info.template_id == 66">
1280 1289
 
1281 1290
           </DialysisPrintOrderSixtysix>
1291
+          <DialysisPrintOrdersixtySeven
1292
+          v-bind:childResponse="childResponse"
1293
+            v-if="org_template_info.template_id == 67">
1294
+
1295
+          </DialysisPrintOrdersixtySeven>
1282 1296
         </div>
1283 1297
       </el-container>
1284 1298
     </div>
@@ -1363,6 +1377,7 @@ import DialysisPrintOrderSixtyTwo from "./template/DialysisPrintOrderSixtyTwo"
1363 1377
 import DialysisPrintOrderSixtyfour from './template/DialysisPrintOrderSixtyfour'
1364 1378
 import DialysisPrintOrderSixtyFive from "./template/DialysisPrintOrderSixtyFive.vue"
1365 1379
 import DialysisPrintOrderSixtysix from './template/DialysisPrintOrderSixtysix.vue'
1380
+import DialysisPrintOrdersixtySeven from './template/DialysisPrintOrdersixtySeven.vue'
1366 1381
 export default {
1367 1382
   name: "dialysisPrintOrder",
1368 1383
   components: {
@@ -1370,6 +1385,7 @@ export default {
1370 1385
     DialysisPrintOrderSixtyTwo,
1371 1386
     DialysisPrintOrderSixtyOne,
1372 1387
     DialysisPrintOrderSixty,
1388
+    DialysisPrintOrdersixtySeven,
1373 1389
     DialysisPrintOrderFiftyNine,
1374 1390
     DialysisPrintOrderFiftyEight,
1375 1391
     DialysisPrintOrderFiftySeven,
@@ -2000,16 +2016,15 @@ export default {
2000 2016
           style: style2,
2001 2017
           scanStyles: false,
2002 2018
         });
2003
-        
2004 2019
       }
2005
-      // else if (this.org_template_info.template_id == 66 ) {
2006
-      //   printJS({
2007
-      //     printable: "dialysis-print-box-1",
2008
-      //     type: "html",
2009
-      //     style: style2,
2010
-      //     scanStyles: false,
2011
-      //   });
2012
-      // }
2020
+      else if (this.org_template_info.template_id == 67 ) {
2021
+        printJS({
2022
+          printable: "dialysis-print-box-1",
2023
+          type: "html",
2024
+          style: style2,
2025
+          scanStyles: false,
2026
+        });
2027
+      }
2013 2028
       else if (
2014 2029
         this.org_template_info.template_id == 53
2015 2030
       ) {

+ 6 - 3
src/xt_pages/outpatientCharges/invoicePrint.vue View File

@@ -20,10 +20,11 @@
20 20
           <printTwo v-if="org_id == 10106" :paramsObj="invoiceParams"></printTwo>
21 21
           <printFour v-if="org_id == 10215 || org_id == 4 " :paramsObj="invoiceParams"></printFour>
22 22
           <printFive v-if="org_id == 10188 " :paramsObj="invoiceParams"></printFive>
23
-          <printSix v-if="org_id == 10217" :paramsObj="invoiceParams"></printSix>
23
+          <printSix v-if="org_id == 10217 " :paramsObj="invoiceParams"></printSix>
24 24
 <!--          <printEight v-if="org_id == 10387 || org_id == 0" :paramsObj="invoiceParams"></printEight>-->
25 25
           <print-eight v-if="org_id == 10387" :paramsObj="invoiceParams"></print-eight>
26
-          <PrintNight v-if="org_id == 10210 || org_id == 0" :paramsObj="invoiceParams"></PrintNight>
26
+          <PrintNight v-if="org_id == 10210 " :paramsObj="invoiceParams"></PrintNight>
27
+          <!-- <PrintTen v-if="org_id == 10375 ||org_id == 0 "></PrintTen> -->
27 28
         </div>
28 29
     </div>
29 30
   </div>
@@ -40,6 +41,7 @@
40 41
   import printEight from './invoiceTemplate/printEight'
41 42
   import PrintEight from "./invoiceTemplate/printEight";
42 43
   import PrintNight from "./invoiceTemplate/PrintNight";
44
+  // import PrintTen from './invoiceTemplate/printTen.vue'
43 45
   export default {
44 46
     name: "invoicePrint",
45 47
     components: {
@@ -51,7 +53,8 @@
51 53
       printFour,
52 54
       printFive,
53 55
       printSix,
54
-      printSeven
56
+      printSeven,
57
+      // PrintTen
55 58
     },
56 59
     props:{
57 60
       invoiceParams:Object

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

@@ -1,230 +1,232 @@
1 1
 <template>
2 2
     <div id='invoice-print'>
3
-      <div v-for='(i,index) in pageArr.length' :key="index">
4
-        <div :style="{position: 'absolute',top:(10 + (index * 400))  + 'px',left:70+ 'px',}">{{ list.order_number }}</div>
5
-        <div style="display:flex;justify-content: space-between;">
6
-          <div :style="{position: 'absolute',top:(40 + (index * 400))  + 'px',left:80+ 'px',}"> {{ paramsObj.name }}</div>
3
+        <div v-for='(i,index) in pageArr.length' :key="index" >
4
+            <div :style="{position: 'absolute',top:(20 + (index * 660))  + 'px',left:200+ 'px',}">盐城大丰悦达金骆驼血液透析中心</div>
5
+            <div :style="{position: 'absolute',top:(70 + (index * 660))  + 'px',left:150+ 'px',}">{{ list.order_number }}</div>
6
+            <div style="display:flex;justify-content: space-between;">
7
+                <div :style="{position: 'absolute',top:(100 + (index * 660))  + 'px',left:100+ 'px',}">{{ paramsObj.name }}</div>
8
+            </div>
9
+            <div :style="{position: 'absolute',top:(130 + (index * 660))  + 'px',left:100+ 'px',}">
10
+                <div v-if="list.westernMedicineCostTotal">西药 {{ list.westernMedicineCostTotal }}</div>
11
+                <div v-if="list.treatCostTotal">治疗费 {{ list.treatCostTotal }}</div>
12
+                <div v-if="list.bedCostTotal">床位费 {{ list.bedCostTotal }}</div>
13
+                <div v-if="list.chineseTraditionalMedicineCostTotal">中成药 {{ list.chineseTraditionalMedicineCostTotal }}</div>
14
+                <div v-if="list.laboratoryCostTotal">化验费 {{ list.laboratoryCostTotal }}</div>
15
+                <div v-if="list.operationCostTotal">手术费 {{ list.operationCostTotal }}</div>
16
+                <div v-if="list.otherCostTotal">其他费 {{ list.otherCostTotal }}</div>
17
+                <div v-if="list.materialCostTotal">材料费 {{ list.materialCostTotal }}</div>
18
+            </div>
19
+            <div :style="{position: 'absolute',top:(130 + (index * 660))  + 'px',left:280+ 'px'}">
20
+                <div v-for="item in list.order_info.slice(index * 10,(index * 10) + pageArr[index])">
21
+                    <span style="display:inline-block;width:200px;">
22
+                        <span v-if="item.advice.id == 0">
23
+                            <span v-if="item.project.type == 2"> {{ item.project.project.project_name }}</span>
24
+                            <span v-if="item.project.type == 3">{{ item.project.good_info.good_name }}</span>
25
+                        </span>
26
+                        <span v-else>{{ item.advice.advice_name }}</span>
27
+                    </span>
28
+                    <span style="display:inline-block;width:50px;">
29
+                        <span v-if="item.advice.id == 0">
30
+                            <span v-if="item.project.type == 2">{{ item.project.count }}{{ item.project.unit }}</span>
31
+                            <span v-if="item.project.type == 3">{{ item.project.count }}{{ item.project.unit }}</span>
32
+                        </span>
33
+                        <span v-else>{{ item.advice.prescribing_number }}{{ item.advice.prescribing_number_unit }}</span>
34
+                    </span>
35
+                    <span>
36
+                        <span v-if="item.advice.id == 0">
37
+                            <span v-if="item.project.type == 2">{{ (item.project.count * item.pric).toFixed(2) }}</span>
38
+                            <span v-if="item.project.type == 3">{{ (item.project.count * item.pric).toFixed(2) }}</span>
39
+                        </span>
40
+                        <span v-else>{{ (item.advice.prescribing_number * item.pric).toFixed(2) }}</span>
41
+                    </span>
42
+                </div>
43
+            </div>
44
+            <div :style="{position: 'absolute',top:(340 + (index * 660))  + 'px',left:100+ 'px'}">{{ zhongwen }}</div>
45
+            <div :style="{position: 'absolute',top:(340 + (index * 660))  + 'px',left:480+ 'px'}">{{ list.medfee_sumamt }}</div>
46
+            <div v-if="index == pageArr.length - 1" :style="{position: 'absolute',top:(370 + (index * 660))  + 'px',left:110+ 'px',width:100 + '%',fontSize:12+'px'}">
47
+                <div style="display:flex;">
48
+                  <div style="width:140px">医疗总费用:{{ list.order.medfee_sumamt }}</div>
49
+                  <div style="width:140px">基金支付总额:{{ list.order.fund_pay_sumamt }}</div>
50
+                  <div style="width:140px">统筹支出:{{ list.order.hifp_pay }}</div>
51
+                  <div style="width:140px">大病支出:{{list.order.hifmi_pay}}</div>
52
+
53
+                </div>
54
+                <div style="display:flex;">
55
+                  <div style="width:140px">个人账户支付:{{ list.order.acct_pay }}</div>
56
+                  <div style="width:140px">现金支出:{{ list.order.psn_cash_pay }}</div>
57
+                  <div style="width:140px">本次账户:0</div>
58
+                  <div style="width:140px">上次账户:0</div>
59
+                </div>
60
+              <div style="display:flex;">
61
+                <div style="width:140px">账户余额:{{ list.order.balc }}</div>
62
+                <div style="width:140px">其他支出:{{ list.order.oth_pay }}</div>
63
+                <div style="width:140px">大病补充保险支出:0</div>
64
+                <div style="width:140px">民政支出:0</div>
65
+              </div>
66
+              <div style="display:flex;">
67
+                <div style="width:220px">医疗救助基金支出:{{ list.order.maf_pay }}</div>
68
+                <div style="width:280px">企业补充医疗保险基金支出:{{ list.order.hifes_pay }}</div>
69
+              </div>
70
+
71
+            </div>
72
+            <div>
73
+                <div :style="{position: 'absolute',top:(430 + (index * 660))  + 'px',left:120+ 'px'}">盐城大丰悦达金骆驼血液透析中心</div>
74
+                <div :style="{position: 'absolute',top:(430 + (index * 660))  + 'px',left:390+ 'px'}">{{ paramsObj.chargeName }}</div>
75
+                <div :style="{position: 'absolute',top:(430 + (index * 660))  + 'px',left:550+ 'px'}">
76
+                    <span>{{  paramsObj.setl_time ? paramsObj.setl_time.split(' ')[0].slice(0,4) : getTime(list.date, '{y}-{m}-{d}').slice(0,4) }}</span>
77
+                </div>
78
+                <div :style="{position: 'absolute',top:(430 + (index * 660))  + 'px',left:610+ 'px'}">
79
+                    <span>{{ paramsObj.setl_time ? parseInt(paramsObj.setl_time.split(' ')[0].slice(5,7)) : getTime(list.date, '{y}-{m}-{d}').slice(5,7) }}</span>
80
+                </div>
81
+                <div :style="{position: 'absolute',top:(430 + (index * 660))  + 'px',left:650+ 'px'}">
82
+                    <span>{{ paramsObj.setl_time ? parseInt(paramsObj.setl_time.split(' ')[0].slice(8,11)) : getTime(list.date, '{y}-{m}-{d}').slice(8,11) }}</span>
83
+                </div>
84
+            </div>
7 85
         </div>
8
-        <div :style="{position: 'absolute',top:(100 + (index * 400))  + 'px',left:80+ 'px',}">
9
-          <div v-if="list.westernMedicineCostTotal">西药 {{ list.westernMedicineCostTotal }}</div>
10
-          <div v-if="list.treatCostTotal">治疗费 {{ list.treatCostTotal }}</div>
11
-          <div v-if="list.bedCostTotal">床位费 {{ list.bedCostTotal }}</div>
12
-          <div v-if="list.chineseTraditionalMedicineCostTotal">中成药 {{ list.chineseTraditionalMedicineCostTotal }}</div>
13
-          <div v-if="list.laboratoryCostTotal">化验费 {{ list.laboratoryCostTotal }}</div>
14
-          <div v-if="list.operationCostTotal">手术费 {{ list.operationCostTotal }}</div>
15
-          <div v-if="list.otherCostTotal">其他费 {{ list.otherCostTotal }}</div>
16
-          <div v-if="list.materialCostTotal">材料费 {{ list.materialCostTotal }}</div>
17
-        </div>
18
-        <div :style="{position: 'absolute',top:(100 + (index * 400))  + 'px',left:260+ 'px'}">
19
-          <div v-for="item in list.order_info.slice(index * 10,(index * 10) + pageArr[index])">
20
-                      <span style="display:inline-block;width:200px;">
21
-                          <span v-if="item.advice.id == 0">
22
-                              <span v-if="item.project.type == 2">{{ item.project.project.project_name }}</span>
23
-                              <span v-if="item.project.type == 3">{{ item.project.good_info.good_name }}</span>
24
-                          </span>
25
-                          <span v-else>{{ item.advice.advice_name }}</span>
26
-                      </span>
27
-            <span style="display:inline-block;width:50px;">
28
-                          <span v-if="item.advice.id == 0">
29
-                              <span v-if="item.project.type == 2">{{ item.project.count }}{{ item.project.unit }}</span>
30
-                              <span v-if="item.project.type == 3">{{ item.project.count }}{{ item.project.unit }}</span>
31
-                          </span>
32
-                          <span v-else>{{ item.advice.prescribing_number }}{{ item.advice.prescribing_number_unit }}</span>
33
-                      </span>
34
-            <span>
35
-                          <span v-if="item.advice.id == 0">
36
-                              <span v-if="item.project.type == 2">{{ (item.project.count * item.pric).toFixed(2) }}</span>
37
-                              <span v-if="item.project.type == 3">{{ (item.project.count * item.pric).toFixed(2) }}</span>
38
-                          </span>
39
-                          <span v-else>{{ (item.advice.prescribing_number * item.pric).toFixed(2) }}</span>
40
-                      </span>
41
-          </div>
42
-        </div>
43
-        <div :style="{position: 'absolute',top:(315 + (index * 400))  + 'px',left:110+ 'px'}">{{ zhongwen }}</div>
44
-        <div :style="{position: 'absolute',top:(315 + (index * 400))  + 'px',left:460+ 'px'}">{{ list.medfee_sumamt }}</div>
45
-        <div v-if="index == pageArr.length - 1" :style="{position: 'absolute',top:(330 + (index * 400))  + 'px',left:110+ 'px',width:100 + '%'}">
46
-          <div style="display:flex;">
47
-            <div style="width:150px">医疗总费用:{{ list.order.medfee_sumamt }}</div>
48
-            <div style="width:150px">基金支付总额:{{ list.order.fund_pay_sumamt }}</div>
49
-            <div style="width:150px">统筹支出:{{ list.order.hifp_pay }}</div>
50
-            <div style="width:150px">大病支出:{{list.order.hifmi_pay}}</div>
51
-  
52
-          </div>
53
-          <div style="display:flex;">
54
-            <div style="width:150px">个人账户支付:{{ list.order.acct_pay }}</div>
55
-            <div style="width:150px">现金支出:{{ list.order.psn_cash_pay }}</div>
56
-            <div style="width:150px">本次账户:0</div>
57
-            <div style="width:150px">上次账户:0</div>
58
-          </div>
59
-          <div style="display:flex;">
60
-            <div style="width:150px">账户余额:{{ list.order.balc }}</div>
61
-            <div style="width:150px">其他支出:{{ list.order.oth_pay }}</div>
62
-            <div style="width:150px">大病补充保险支出:0</div>
63
-            <div style="width:150px">民政支出:0</div>
64
-          </div>
65
-          <div style="display:flex;">
66
-            <div style="width:220px">医疗救助基金支出:{{ list.order.maf_pay }}</div>
67
-            <div style="width:280px">企业补充医疗保险基金支出:{{ list.order.hifes_pay }}</div>
68
-          </div>
69
-  
70
-        </div>
71
-        <div>
72
-          <div :style="{position: 'absolute',top:(390 + (index * 400))  + 'px',left:100+ 'px'}">{{ '盐城大丰悦达金骆驼血液透析中心' }}</div>
73
-          <div :style="{position: 'absolute',top:(390 + (index * 400))  + 'px',left:360+ 'px'}">{{ paramsObj.chargeName }}</div>
74
-          <div :style="{position: 'absolute',top:(390 + (index * 400))  + 'px',left:520+ 'px'}">
75
-            <span>{{  paramsObj.setl_time ? paramsObj.setl_time.split(' ')[0].slice(0,4) : getTime(list.date, '{y}-{m}-{d}').slice(0,4) }}</span>
76
-          </div>
77
-          <div :style="{position: 'absolute',top:(390 + (index * 400))  + 'px',left:560+ 'px'}">
78
-            <span>{{ paramsObj.setl_time ? parseInt(paramsObj.setl_time.split(' ')[0].slice(5,7)) : getTime(list.date, '{y}-{m}-{d}').slice(5,7) }}</span>
79
-          </div>
80
-          <div :style="{position: 'absolute',top:(390 + (index * 400))  + 'px',left:600+ 'px'}">
81
-            <span>{{ paramsObj.setl_time ? parseInt(paramsObj.setl_time.split(' ')[0].slice(8,11)) : getTime(list.date, '{y}-{m}-{d}').slice(8,11) }}</span>
82
-          </div>
83
-        </div>
84
-      </div>
85 86
     </div>
86
-  </template>
87
-  
88
-  
89
-  <script>
90
-  import { getInvoice } from '@/api/project/project'
91
-  import { uParseTime } from '@/utils/tools'
92
-  export default {
87
+</template>
88
+
89
+
90
+<script>
91
+import { getInvoice } from '@/api/project/project'
92
+import { uParseTime } from '@/utils/tools'
93
+export default {
93 94
     props:{
94
-      paramsObj:Object
95
+        paramsObj:Object
95 96
     },
96 97
     data(){
97
-      return{
98
-        list:{},
99
-        printDate:'',
100
-        zhongwen:'',
101
-        totalPrice:0.0,
102
-        org_id:'',
103
-        org_name:'',
104
-        page:1,
105
-        pageArr:[],
106
-      }
98
+        return{
99
+            list:{},
100
+            printDate:'',
101
+            zhongwen:'',
102
+            totalPrice:0.0,
103
+            org_id:'',
104
+            org_name:'',
105
+            page:1,
106
+            pageArr:[],
107
+        }
107 108
     },
108 109
     created(){
109
-      console.log('paramsObj',this.paramsObj)
110
-      let params = {
111
-        order_id: this.paramsObj.order_id,
112
-        patient_id: this.paramsObj.patient_id,
113
-      }
114
-      this.getInvoice(params)
115
-      // var data = new Date();
116
-      // var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
117
-      // var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
118
-      // this.printDate = data.getFullYear() + "-" + month + "-" + date;
119
-      // this.smalltoBIG(982732.21)
120
-      this.org_id = this.$store.getters.xt_user.org_id
121
-      this.org_name = this.$store.getters.xt_user.org.org_name
110
+        console.log('paramsObj',this.paramsObj)
111
+        let params = {
112
+            order_id: this.paramsObj.order_id,
113
+            patient_id: this.paramsObj.patient_id,
114
+        }
115
+        this.getInvoice(params)
116
+        // var data = new Date();
117
+        // var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
118
+        // var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
119
+        // this.printDate = data.getFullYear() + "-" + month + "-" + date;
120
+        // this.smalltoBIG(982732.21)
121
+        this.org_id = this.$store.getters.xt_user.org_id
122
+        this.org_name = this.$store.getters.xt_user.org.org_name
122 123
     },
123 124
     methods:{
124
-      getInvoice(params){
125
-        getInvoice(params).then((res) => {
126
-          console.log('res',res)
127
-          this.list = res.data.data
128
-          this.totalPrice = this.list.westernMedicineCostTotal + this.list.checkCostTotal + this.list.treatCostTotal + this.list.bedCostTotal + this.list.chineseTraditionalMedicineCostTotal +
129
-            this.list.laboratoryCostTotal + this.list.operationCostTotal + this.list.otherCostTotal + this.list.materialCostTotal
130
-          this.smalltoBIG(this.list.medfee_sumamt)
131
-          var data = new Date(res.data.data.date * 1000);
132
-          var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
133
-          var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
134
-          this.printDate = data.getFullYear() + "-" + month + "-" + date;
135
-          this.pageArr = []
136
-          this.getPage()
137
-          console.log('pageArr',this.pageArr)
138
-        })
139
-      },
140
-      smalltoBIG(n) {
141
-        // let fraction = ['角', '分'];
142
-        // let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
143
-        // let unit = [['元.', '万,', '亿,'], ["元",'拾', '佰', '仟']];
144
-        // let head = price < 0 ? '欠' : '';
145
-        // price = Math.abs(price);
146
-        // let upper = '';
147
-        // for (let i = 0; i < fraction.length; i++) {
148
-        // upper += (digit[Math.floor(price * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '');
149
-        // }
150
-        // upper = upper || '整';
151
-        // price = Math.floor(price);
152
-        // for (let i = 0; i < unit[0].length && price > 0; i++) {
153
-        // let p = '';
154
-        // for (let j = 0; j < unit[1].length && price > 0; j++) {
155
-        //     p = digit[price % 10] + unit[1][j] + p;
156
-        //     price = Math.floor(price / 10);
157
-        // }
158
-        // upper = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + upper;
159
-        // }
160
-        // this.zhongwen = head + upper.replace(/(零.)*零圆/, '圆').replace(/(零.)+/g, '零').replace(/^整$/, '零圆整')
161
-        // console.log('6666',head + upper.replace(/(零.)*零圆/, '圆').replace(/(零.)+/g, '零').replace(/^整$/, '零圆整'))
162
-        if (!/^(0|[1-9]\d*)(\.\d+)?$/.test(n)){
163
-          return "数据非法";  //判断数据是否大于0
164
-        }
165
-  
166
-        var unit = "仟佰拾亿仟佰拾万仟佰拾元角分", str = "";
167
-        n += "00";
168
-  
169
-        var indexpoint = n.indexOf('.');  // 如果是小数,截取小数点前面的位数
170
-  
171
-        if (indexpoint >= 0){
172
-  
173
-          n = n.substring(0, indexpoint) + n.substr(indexpoint+1, 2);   // 若为小数,截取需要使用的unit单位
174
-        }
175
-  
176
-        unit = unit.substr(unit.length - n.length);  // 若为整数,截取需要使用的unit单位
177
-        for (var i=0; i < n.length; i++){
178
-          str += "零壹贰叁肆伍陆柒捌玖".charAt(n.charAt(i)) + unit.charAt(i);  //遍历转化为大写的数字
179
-        }
180
-        console.log("str",str)
181
-        if(str == '零元零角零分'){
182
-          this.zhongwen = '零'
183
-        }else{
184
-          this.zhongwen =  str.replace(/零(仟|佰|拾|角)/g, "零").replace(/(零)+/g, "零").replace(/零(万|亿|元)/g, "$1").replace(/(亿)万|壹(拾)/g, "$1$2").replace(/^元零?|零分/g, "").replace(/元$/g, "元整");
185
-        }
186
-  
187
-        console.log(this.zhongwen)
188
-      },
189
-      getTime(value, temp) {
190
-        if (value == 0) {
191
-          return ''
192
-        }
193
-        if (value != undefined) {
194
-          return uParseTime(value, temp)
195
-        }
196
-        return ''
197
-      },
198
-      getPage(){
125
+        getInvoice(params){
126
+            getInvoice(params).then((res) => {
127
+                // console.log('res',res)
128
+                this.list = res.data.data
129
+                // console.log(this.list,'表单内容打印记得注释')
130
+                this.totalPrice = this.list.westernMedicineCostTotal + this.list.checkCostTotal + this.list.treatCostTotal + this.list.bedCostTotal + this.list.chineseTraditionalMedicineCostTotal +
131
+                                    this.list.laboratoryCostTotal + this.list.operationCostTotal + this.list.otherCostTotal + this.list.materialCostTotal
132
+                this.smalltoBIG(this.list.medfee_sumamt)
133
+                var data = new Date(res.data.data.date * 1000);
134
+                var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
135
+                var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
136
+                this.printDate = data.getFullYear() + "-" + month + "-" + date;
137
+                this.pageArr = []
138
+                this.getPage()
139
+                this.pageArr.push(10)
140
+                console.log('pageArr',this.pageArr.length)
141
+            })
142
+        },
143
+        smalltoBIG(n) {
144
+            // let fraction = ['角', '分'];
145
+            // let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
146
+            // let unit = [['元.', '万,', '亿,'], ["元",'拾', '佰', '仟']];
147
+            // let head = price < 0 ? '欠' : '';
148
+            // price = Math.abs(price);
149
+            // let upper = '';
150
+            // for (let i = 0; i < fraction.length; i++) {
151
+            // upper += (digit[Math.floor(price * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '');
152
+            // }
153
+            // upper = upper || '整';
154
+            // price = Math.floor(price);
155
+            // for (let i = 0; i < unit[0].length && price > 0; i++) {
156
+            // let p = '';
157
+            // for (let j = 0; j < unit[1].length && price > 0; j++) {
158
+            //     p = digit[price % 10] + unit[1][j] + p;
159
+            //     price = Math.floor(price / 10);
160
+            // }
161
+            // upper = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + upper;
162
+            // }
163
+            // this.zhongwen = head + upper.replace(/(零.)*零圆/, '圆').replace(/(零.)+/g, '零').replace(/^整$/, '零圆整')
164
+            // console.log('6666',head + upper.replace(/(零.)*零圆/, '圆').replace(/(零.)+/g, '零').replace(/^整$/, '零圆整'))
165
+            if (!/^(0|[1-9]\d*)(\.\d+)?$/.test(n)){
166
+                return "数据非法";  //判断数据是否大于0
167
+            }
168
+
169
+            var unit = "仟佰拾亿仟佰拾万仟佰拾元角分", str = "";
170
+            n += "00";
171
+
172
+            var indexpoint = n.indexOf('.');  // 如果是小数,截取小数点前面的位数
173
+
174
+            if (indexpoint >= 0){
175
+
176
+                n = n.substring(0, indexpoint) + n.substr(indexpoint+1, 2);   // 若为小数,截取需要使用的unit单位
177
+            }
178
+
179
+            unit = unit.substr(unit.length - n.length);  // 若为整数,截取需要使用的unit单位
180
+            for (var i=0; i < n.length; i++){
181
+                str += "零壹贰叁肆伍陆柒捌玖".charAt(n.charAt(i)) + unit.charAt(i);  //遍历转化为大写的数字
182
+            }
183
+            console.log("str",str)
184
+            if(str == '零元零角零分'){
185
+                this.zhongwen = '零'
186
+            }else{
187
+                this.zhongwen =  str.replace(/零(仟|佰|拾|角)/g, "零").replace(/(零)+/g, "零").replace(/零(万|亿|元)/g, "$1").replace(/(亿)万|壹(拾)/g, "$1$2").replace(/^元零?|零分/g, "").replace(/元$/g, "元整");
188
+            }
189
+
190
+            console.log(this.zhongwen)
191
+        },
192
+        getTime(value, temp) {
193
+            if (value == 0) {
194
+                return ''
195
+            }
196
+            if (value != undefined) {
197
+                return uParseTime(value, temp)
198
+            }
199
+            return ''
200
+        },
201
+        getPage(){
199 202
         if(this.list.order_info.length <= 10){
200
-          this.page = 1
201
-          this.pageArr.push(this.list.order_info.length)
203
+            this.page = 1
204
+            this.pageArr.push(this.list.order_info.length)
202 205
         }else if(this.list.order_info.length > 10){
203
-          this.page = parseInt(this.list.order_info.length / 10)
204
-          let num = this.list.order_info.length % 10
205
-          for (var i=0;i<this.page;i++){
206
-            this.pageArr.push(10)
207
-          }
208
-          if(num != 0){
209
-            this.pageArr.push(num)
210
-          }
206
+            this.page = parseInt(this.list.order_info.length / 10)
207
+            let num = this.list.order_info.length % 10
208
+            for (var i=0;i<this.page;i++){
209
+                this.pageArr.push(10)
210
+            }
211
+            if(num != 0){
212
+                this.pageArr.push(num)
213
+            }
211 214
         }
212 215
       }
213
-  
216
+
214 217
     },
215 218
     watch:{
216
-      paramsObj:{//深度监听,可监听到对象、数组的变化
217
-        handler(val, oldVal){
218
-          let params = {
219
-            order_id: val.order_id,
220
-            patient_id: val.patient_id,
221
-          }
222
-          this.getInvoice(params)
223
-  
224
-        },
225
-        deep:true
226
-      }
219
+        paramsObj:{//深度监听,可监听到对象、数组的变化
220
+            handler(val, oldVal){
221
+                let params = {
222
+                    order_id: val.order_id,
223
+                    patient_id: val.patient_id,
224
+                }
225
+                this.getInvoice(params)
226
+
227
+            },
228
+            deep:true
229
+        }
227 230
     }
228
-  }
229
-  </script>
230
-  
231
+}
232
+</script>

+ 104 - 0
src/xt_pages/outpatientCharges/invoiceTemplate/printTen.vue View File

@@ -0,0 +1,104 @@
1
+<template>
2
+  <div id='invoice-print' style="position: relative;">
3
+    <div style="display: flex;width: 575px;margin-bottom: 5px; position: absolute; top: 70px;right: 1px;">
4
+      2023-07-18
5
+    </div> 
6
+    <div style="display: flex; justify-content: space-between;width: 573px;">
7
+      <div style="position: absolute;top: 85px;">
8
+        <span>姓名:何月兰</span>
9
+        <span></span>
10
+        <span style="margin-left: 60px;">性别:女</span>
11
+        <span></span>
12
+      </div>
13
+      <div style="position: absolute;top: 85px;left: 351px;">
14
+        <span style="margin-right: 60px;">No: 2307062517</span>
15
+      </div>
16
+    </div>
17
+    <div style="display:flex;justify-content: space-between;">
18
+      <div style="position: absolute;top:150px;left:80px">西药费</div>
19
+      <div style="position: absolute;top:150px;left:171px">555</div>
20
+      <div style="position: absolute;top:150px;left:262px">检查费</div>
21
+      <div style="position: absolute;top:150px;left:353px">666</div>
22
+      <div style="position: absolute;top:150px;left:444px">治疗费</div>
23
+      <div style="position: absolute;top:150px;left:535px">777</div>
24
+    </div> 
25
+    
26
+    <div>
27
+      <span>
28
+      <span  style="position: absolute;top:230px;left:120px">
29
+          <span >
30
+              拾
31
+          </span>
32
+          
33
+      </span>
34
+      <span  style="position: absolute;top:230px;left:140px">
35
+          <span>
36
+              万
37
+          </span>
38
+         
39
+      </span>
40
+      <span  style="position: absolute;top:230px;left:160px">
41
+          <span >
42
+            千
43
+          </span>
44
+          
45
+      </span>
46
+      <span  style="position: absolute;top:230px;left:180px">
47
+          <span >
48
+            百
49
+          </span>
50
+          
51
+      </span>
52
+      <span style="position: absolute;top:230px;left:200px">
53
+          <span >
54
+             拾
55
+          </span>
56
+          
57
+      </span>
58
+      <span  style="position: absolute;top:230px;left:220px">
59
+          <span >
60
+              元
61
+          </span>
62
+
63
+      </span>
64
+      <span  style="position: absolute;top:230px;left:240px">
65
+          <span >
66
+              角
67
+          </span>
68
+      </span>
69
+      <span  style="position: absolute;top:230px;left:260px">
70
+          <span >
71
+              分
72
+          </span>
73
+      </span>
74
+      </span>
75
+      <span style="position: absolute;top:230px;left:450px">¥:555.57</span>
76
+    </div>
77
+
78
+    <div style="border-bottom: 1px solid black;position: absolute;top:250px;left:110;width:573px;font-Size:12px">
79
+      <div  style="display:flex;margin: 3px 0px;">
80
+        <div style="width:140px">医保:门慢统筹:</div>
81
+        <div style="width:140px">大病保险:</div>
82
+        <div style="width:140px">民政救助:</div>
83
+        <div style="width:140px">兜底支付:</div>
84
+      </div>
85
+      <div style="display:flex;margin-bottom: 3px;">
86
+        <div style="width:140px">个人自付:</div>
87
+        <div style="width:140px">个账支付:</div>
88
+        <div style="width:140px">个账余额:</div>
89
+      </div>
90
+    </div>
91
+    <div style="position: absolute;top:290px;left:110;width:573px;font-Size:12px">
92
+      <div style="display:flex;margin: 3px 0px;">
93
+        <div style="width:140px">现金支付:55.57</div>
94
+        <div style="width:140px">预存扣减:55.57</div>
95
+        <div style="width:140px">预存余额:55.57</div>
96
+      </div>
97
+      <div style="display:flex;justify-content: space-between; margin: 3px 0px;">
98
+        <div style="width:140px">收款单位(盖章)</div>
99
+        <div style="width:140px">收款人:莫莉</div>
100
+      </div>
101
+    </div>
102
+
103
+  </div>
104
+</template>

+ 3 - 1
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

@@ -535,6 +535,7 @@ export default {
535 535
 
536 536
       tableHeight: '',
537 537
       saveloading: false,
538
+      
538 539
       fullHeight: document.documentElement.clientHeight,
539 540
       month_prescriptions: [],
540 541
       isloading: false,
@@ -677,9 +678,10 @@ export default {
677 678
           style: style,
678 679
           scanStyles: false
679 680
         })
681
+        
680 682
       }
681
-
682 683
       this.innerVisible = false
684
+      
683 685
       // this.$nextTick(() => {
684 686
       //   this.$refs.print.printThisPage()
685 687
       //   this.$refs.treatPrint.printThisPage()

+ 7 - 3
src/xt_pages/outpatientDoctorStation/print.vue View File

@@ -20,7 +20,10 @@
20 20
     <div class="dialysisPage" style="padding-top: 40px">
21 21
       <div v-if="org_id != 10138 && org_id != 10278 && org_id != 10243">
22 22
 
23
-        <printOne v-if="org_id != 10088 && org_id != 10215" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
23
+        <printOne v-if="org_id != 10088 && org_id != 10215" v-bind:childResponse="childResponse" 
24
+        :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" 
25
+        :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" 
26
+        :prescription_id="prescription_id"></printOne>
24 27
 
25 28
         <printFour
26 29
           v-if="org_id == 10088"
@@ -105,7 +108,8 @@ export default {
105 108
   },
106 109
   props: {
107 110
     paramsObj: Object,
108
-    newHisPatient:Object
111
+    newHisPatient:Object,
112
+   
109 113
   },
110 114
   data() {
111 115
     return {
@@ -147,7 +151,7 @@ export default {
147 151
         }, 500);
148 152
       } else {
149 153
         const style =
150
-          "@media print {#prescription-print{font-size:14px;}.prescription-print:last-child {page-break-after: auto;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;border-bottom: 2px solid #000;margin-top:10px;line-height: 1px; padding:0 10px;}.infoTitle p{width: 200px;font-size:14px;}.infoMain{display: flex;flex-wrap: wrap;border-bottom: 2px solid #000;padding:0 10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{padding:0 10px;min-height:450px;}.Rp{font-size: 22px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;margin-bottom: 10px;}.drugsBox div{line-height: 20px;} .drugsOne{line-height: 1px;} .drugsOne span{margin-right: 20px;} .doctorBox{display: flex; justify-content: space-between; padding:0 10px; line-height: 1px; border-bottom: 2px solid #000;} .actionBar{display: flex; justify-content: space-between; line-height: 1px; padding:0 10px;} .actionBar p{width:150px;}}";
154
+          "@media print {#prescription-print{font-size:14px;}.prescription-print:last-child {page-break-after: auto;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;border-bottom: 2px solid #000;margin-top:10px;line-height: 1px; padding:0 10px;}.infoTitle p{width: 200px;font-size:14px;}.infoMain{display: flex;flex-wrap: wrap;border-bottom: 2px solid #000;padding:0 10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{padding:0 10px;min-height:450px;}.Rp{font-size: 22px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;position: relative;}.drugsBox div{line-height: 20px;width:80%} .drugsOne{line-height: 1px;} .drugsOne span{margin-right: 20px;} .doctorBox{display: flex; justify-content: space-between; padding:0 10px; line-height: 1px; border-bottom: 2px solid #000;} .actionBar{display: flex; justify-content: space-between; line-height: 1px; padding:0 10px;} .actionBar p{width:150px;}}";
151 155
         printJS({
152 156
           printable: "prescriptionPrint",
153 157
           type: "html",

+ 2 - 1
src/xt_pages/outpatientDoctorStation/template/printFive.vue View File

@@ -42,8 +42,9 @@
42 42
           <div class="prescriptionBox" style="border-top: 1px solid #000;border-bottom: 1px solid #000;">
43 43
               <div class="Rp">Rp:</div>
44 44
               <div class="drugsBox" v-for="(it,index) in item.advices" :key="index"
45
-                :style="{'page-break-after':index==yi&&item.advices.length>5? 'always':'auto'}"
45
+                
46 46
               >
47
+              <!-- :style="{'page-break-after':index==yi&&item.advices.length>5? 'always':'auto'}" -->
47 48
                   <!-- <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;{{it.single_dose}}{{it.single_dose_unit}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</div> -->
48 49
                   <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;<span v-if="it.drug.min_unit != it.drug.dose_unit">{{it.drug.dose}}{{it.drug.dose_unit}}&nbsp;* &nbsp;</span>{{it.drug.min_number}}{{it.drug.min_unit}}/{{it.drug.max_unit}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</div>
49 50
                   <div style="margin-left:100px;"><span>用法:{{it.single_dose}}{{it.single_dose_unit}}</span>&nbsp;&nbsp;<span>{{it.execution_frequency}}&nbsp;{{it.delivery_way}}&nbsp;</span>&nbsp;&nbsp;<span>{{it.advice_desc}}</span></div>

+ 12 - 3
src/xt_pages/outpatientDoctorStation/template/printFour.vue View File

@@ -22,11 +22,20 @@
22 22
           <div class="prescriptionBox">
23 23
               <div class="Rp">Rp:</div>
24 24
               <div class="drugsBox" v-for="(it,index) in item.advices" :key="index"
25
-                :style="{'page-break-after':index==yi&&item.advices.length>5? 'always':'auto'}"
25
+                
26 26
               >
27
+              <!-- :style="{'page-break-after':index==yi&&item.advices.length>5? 'always':'auto'}" -->
27 28
                   <!-- <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;{{it.single_dose}}{{it.single_dose_unit}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</div> -->
28
-                  <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;<span>用法:{{it.single_dose}}{{it.single_dose_unit}}</span>&nbsp;&nbsp;<span>{{it.execution_frequency}}&nbsp;{{it.delivery_way}}&nbsp;</span>&nbsp;&nbsp;<span>{{it.advice_desc}}</span></div>
29
-                  <div style="margin-left:100px;"><span>{{it.drug.drug_spec}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</span></div>
29
+                  <div class="drugsOne" >
30
+                    <span style="font-weight:bold;">{{ index+1 + '.' }}</span>
31
+                    {{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;
32
+                    <span>用法:{{it.single_dose}}{{it.single_dose_unit}}</span>
33
+                    &nbsp;&nbsp;<span>{{it.execution_frequency}}&nbsp;{{it.delivery_way}}&nbsp;</span>
34
+                    &nbsp;&nbsp;<span>{{it.advice_desc}}</span>
35
+                  </div>
36
+                  <div style="margin-left:100px;">
37
+                    <span>{{it.drug.drug_spec}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</span>
38
+                  </div>
30 39
               </div>
31 40
               <div class="drugsBox" v-for="(it,i) in item.additionalcharge" :key="i">
32 41
                 <div class="drugsOne">{{it.item_name?it.item_name:""}}:&nbsp;{{it.price}}元/{{it.count}}次</div>

+ 337 - 166
src/xt_pages/outpatientDoctorStation/template/printOne.vue View File

@@ -21,187 +21,304 @@
21 21
         >
22 22
           {{ orgname }}处方笺
23 23
         </div>
24
-        <!--<div class="printTitle">{{orgname}}处方笺</div>-->
25
-        <div class="infoTitle">
26
-          <p>姓名:{{ item.patient.name ? item.patient.name : "" }}</p>
27
-          <p>
28
-            性别:
29
-            <span v-if="item.patient.gender == 1">男</span>
30
-            <span v-if="item.patient.gender == 2">女</span>
31
-          </p>
32
-          <p>年龄:{{ getAge(item.patient) ? getAge(item.patient) : "" }}岁</p>
33
-        </div>
34
-        <div class="infoMain">
35
-          <div style="margin-bottom: 10px">
36
-            门诊号:{{ hisPatient.number ? hisPatient.number : "" }}
37
-          </div>
38
-          <div style="margin-bottom: 10px">
39
-            科室:{{ item.info ? getDepart(item.info.departments) : "" }}
40
-          </div>
41
-          <div style="margin-bottom: 10px">
42
-            医保卡号:{{ item.hisPatient.number ? item.hisPatient.number : "" }}
43
-          </div>
44
-          <div style="margin-bottom: 10px" v-if="org_id != 10188">
45
-            电话:{{ item.patient.phone }}
46
-          </div>
47
-          <div style="margin-bottom: 10px" v-else>
48
-            日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}
24
+        <div >
25
+          <div class="infoTitle">
26
+            <p>姓名:{{ item.patient.name ? item.patient.name : "" }}</p>
27
+            <p>
28
+              性别:
29
+              <span v-if="item.patient.gender == 1">男</span>
30
+              <span v-if="item.patient.gender == 2">女</span>
31
+            </p>
32
+            <p>年龄:{{ getAge(item.patient) ? getAge(item.patient) : "" }}岁</p>
49 33
           </div>
50
-          <div>地址:{{ item.patient.home_address }}</div>
51
-          <div style="display: flex; width: 50%">
52
-            临床诊断:{{ getDiagnosis(item.info.diagnosis) }}
53
-          </div>
54
-        </div>
55
-        <div class="prescriptionBox" >
56
-          <div class="Rp">Rp:</div>
57
-          <div
58
-            class="drugsBox"
59
-            v-for="(it, index) in item.advices"
60
-            :key="index"
61
-            :style="{'page-break-after':index==yi&&item.advices.length>5? 'always':'auto'}"
62
-          >
63
-          <!-- class="drugsBox"  item.advices.length>=5 ? 'danzhang' : 'drugsBox'  'page-break-after':item.advices.length>=3&& item.advices[2]?'always':'auto'-->
64
-            <!-- <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;{{it.single_dose}}{{it.single_dose_unit}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</div> -->
65
-            <div class="drugsOne">
66
-              <span style="font-weight: bold">{{ index + 1 + "." }}</span
67
-              >{{ it.advice_name ? it.advice_name : "" }}&nbsp;&nbsp;<span
68
-                v-if="it.drug.min_unit != it.drug.dose_unit"
69
-                >{{ it.drug.dose }}{{ it.drug.dose_unit }}&nbsp;* &nbsp;</span
70
-              >{{ it.drug.min_number }}{{ it.drug.min_unit }}/{{
71
-                it.drug.max_unit
72
-              }}&nbsp;×&nbsp; {{ it.prescribing_number
73
-              }}{{ it.prescribing_number_unit }}
34
+          <div class="infoMain">
35
+            <div style="margin-bottom: 10px">
36
+              门诊号:{{ hisPatient.number ? hisPatient.number : "" }}
74 37
             </div>
75
-            <div style="margin-left: 100px">
76
-              <span>用法:{{ it.single_dose }}{{ it.single_dose_unit }}</span
77
-              >&nbsp;&nbsp;<span
78
-                >{{ it.execution_frequency }}&nbsp;{{
79
-                  it.delivery_way
80
-                }}&nbsp;</span
81
-              >&nbsp;&nbsp;<span>{{ it.advice_desc }}</span>
38
+            <div style="margin-bottom: 10px">
39
+              科室:{{ item.info ? getDepart(item.info.departments) : "" }}
82 40
             </div>
83
-          </div>
84
-
85
-          <div
86
-            class="drugsBox"
87
-            v-for="(it, i) in item.additionalcharge"
88
-            :key="i"
89
-          >
90
-            <div class="drugsOne">
91
-              {{ it.item_name ? it.item_name : "" }}:&nbsp;{{ it.price }}元/{{
92
-                it.count
93
-              }}次
41
+            <div style="margin-bottom: 10px">
42
+              医保卡号:{{ item.hisPatient.number ? item.hisPatient.number : "" }}
94 43
             </div>
95
-          </div>
96
-
97
-          <div
98
-            class="drugsBox"
99
-            v-for="(it, index) in item.project"
100
-            :key="index"
101
-          >
102
-            <div class="drugsOne">
103
-              <span style="font-weight: bold">{{ index + 1 + "." }}</span
104
-              >{{
105
-                it.type == 2
106
-                  ? getProjectName(it.project_id)
107
-                    ? getProjectName(it.project_id)
108
-                    : ""
109
-                  : it.good_info.good_name
110
-              }}&nbsp;&nbsp;{{ it.single_dose
111
-              }}{{ it.single_dose_unit }}&nbsp;×&nbsp; {{ it.count }}{{ unit }}
44
+            <div style="margin-bottom: 10px" v-if="org_id != 10188">
45
+              电话:{{ item.patient.phone }}
112 46
             </div>
113
-            <div style="margin-left: 100px">
114
-              <span>用法:{{ it.single_dose }}{{ it.single_dose_unit }}</span
115
-              >&nbsp;&nbsp;<span>{{ it.delivery_way }}</span
116
-              >&nbsp;&nbsp;<span>{{ it.advice_desc }}</span>
47
+            <div style="margin-bottom: 10px" v-else>
48
+              日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}
117 49
             </div>
118
-          </div>
119
-          
120
-          <div
121
-            class="drugsBox"
122
-            v-for="(it, i) in item.additionalcharge"
123
-            :key="i"
124
-          >
125
-            <div class="drugsOne">
126
-              {{ it.project_id ? it.project_id : "" }}:&nbsp;{{
127
-                it.price.toFixed(2)
128
-              }}元/{{ it.count }}次
50
+            <div>地址:{{ item.patient.home_address }}</div>
51
+            <div style="display: flex; width: 50%">
52
+              临床诊断:{{ getDiagnosis(item.info.diagnosis) }}
129 53
             </div>
130 54
           </div>
131
-          <div style="text-align: center">(以下空白)</div>
132 55
         </div>
133
-        <div class="doctorBox" v-if="org_id != 10188 && org_id != 0">
134
-          <p v-if="org_id == 10217 || org_id == 0">
135
-            医师:
136
-            <span
137
-              style="width: 100px; display: inline-block"
138
-              v-if="item.creator == ''"
56
+          <div class="prescriptionBox" >
57
+            <div class="Rp">Rp:</div>
58
+            <div
59
+              class="drugsBox"
60
+              v-for="(it, index) in advicess" :key="index" 
61
+              :style="{'page-break-after':index==yi&&item.advices.length>5? 'always':'auto'}"
139 62
             >
140
-              {{ item.doctor }}
141
-            </span>
142
-            <span
143
-              style="width: 100px; display: inline-block"
144
-              v-else-if="doc_name != ''"
63
+            <!-- class="drugsBox"  item.advices.length>=5 ? 'danzhang' : 'drugsBox'  :style="{'page-break-after':index==yi&&item.advices.length>3? 'always':'auto'}"-->
64
+              <!-- <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;{{it.single_dose}}{{it.single_dose_unit}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</div> -->
65
+              <template v-if="index==yi+1&&item.advices.length>5">
66
+                <div style="margin: 20px 0px;">
67
+                  <div class="infoTitle">
68
+                    <p>姓名:{{ item.patient.name ? item.patient.name : "" }}</p>
69
+                    <p>
70
+                      性别:
71
+                      <span v-if="item.patient.gender == 1">男</span>
72
+                      <span v-if="item.patient.gender == 2">女</span>
73
+                    </p>
74
+                    <p>年龄:{{ getAge(item.patient) ? getAge(item.patient) : "" }}岁</p>
75
+                  </div>
76
+                  <div class="infoMain">
77
+                    <div style="margin-bottom: 10px">
78
+                      门诊号:{{ hisPatient.number ? hisPatient.number : "" }}
79
+                    </div>
80
+                    <div style="margin-bottom: 10px">
81
+                      科室:{{ item.info ? getDepart(item.info.departments) : "" }}
82
+                    </div>
83
+                    <div style="margin-bottom: 10px">
84
+                      医保卡号:{{ item.hisPatient.number ? item.hisPatient.number : "" }}
85
+                    </div>
86
+                    <div style="margin-bottom: 10px" v-if="org_id != 10188">
87
+                      电话:{{ item.patient.phone }}
88
+                    </div>
89
+                    <div style="margin-bottom: 10px" v-else>
90
+                      日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}
91
+                    </div>
92
+                    <div>地址:{{ item.patient.home_address }}</div>
93
+                    <div style="display: flex; width: 50%">
94
+                      临床诊断:{{ getDiagnosis(item.info.diagnosis) }}
95
+                    </div>
96
+                  </div>
97
+                </div>
98
+              </template>
99
+              <div style="position: relative;">
100
+                <div class="drugsOne" style="border-right: 1px solid black; width: 80%;">
101
+                  <span style="font-weight: bold" >
102
+                    {{ index + 1 + "." }}
103
+                  </span>
104
+                  {{ it.advice_name ? it.advice_name : "" }}&nbsp;&nbsp;
105
+                  <span v-if="it.drug.min_unit != it.drug.dose_unit">
106
+                    {{ it.drug.dose }}{{ it.drug.dose_unit }}&nbsp;* {{ it.drug.min_number }}{{ it.drug.min_unit }}/
107
+                    {{it.drug.max_unit}}
108
+                  </span>&nbsp;
109
+                  <div>
110
+                    <template v-if="arr[0][0].groupno==it.groupno">
111
+                      <div >
112
+                        <!--  v-for="(its,indexs) in arr" :key="indexs"-->
113
+                        <span style="margin-left: 38px;">{{arr[0][0].advice_name ? arr[0][0].advice_name : ""}}</span>&nbsp;&nbsp;
114
+                        <span v-if="arr[0][0].drug.min_unit != arr[0][0].drug.dose_unit">
115
+                          {{ arr[0][0].drug.dose }}{{ arr[0][0].drug.dose_unit }}&nbsp;* {{ arr[0][0].drug.min_number }}{{ arr[0][0].drug.min_unit }}/
116
+                          {{arr[0][0].drug.max_unit}}
117
+                        </span>&nbsp;
118
+                      </div>
119
+                    </template>
120
+                  </div>
121
+                  
122
+                  <div style="margin-left: 70px">
123
+                    <span >用法:{{ it.single_dose }}{{ it.single_dose_unit }}</span
124
+                    >&nbsp;&nbsp;<span
125
+                      >{{ it.execution_frequency }}&nbsp;{{
126
+                        it.delivery_way
127
+                      }}&nbsp;</span>&nbsp;&nbsp;<span>{{ it.advice_desc }}</span>
128
+                  </div>
129
+                  
130
+                </div>
131
+                <div style="display: inline-block;position: absolute;left:85%;top:10px;margin-left: 10px;">
132
+                  ×&nbsp;{{ it.prescribing_number}}{{ it.prescribing_number_unit }}
133
+                </div>
134
+              </div>
135
+              <template v-if="index==yi&&item.advices.length>5">
136
+                <div style="margin: 20px 0px;">
137
+                  <div class="doctorBox" v-if="org_id != 10188 && org_id != 0">
138
+                    <p v-if="org_id == 10217 || org_id == 0">
139
+                      医师:
140
+                      <span
141
+                        style="width: 100px; display: inline-block"
142
+                        v-if="item.creator == ''"
143
+                      >
144
+                        {{ item.doctor }}
145
+                      </span>
146
+                      <span
147
+                        style="width: 100px; display: inline-block"
148
+                        v-else-if="doc_name != ''"
149
+                      >
150
+                        {{ doc_name }}
151
+                      </span>
152
+                      <img
153
+                        style="height: 50px;"
154
+                        :src="setAdminUserES(item.creator,item.doctor)"
155
+                        alt=""
156
+                        srcset=""
157
+
158
+                      />
159
+                    </p>
160
+                    <p v-else>
161
+                      医师: {{ item.doctor ? item.doctor : "" }}
162
+                    </p>
163
+                    <p>日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}</p>
164
+                  </div>
165
+
166
+                  <div class="doctorBoxs" style="border-bottom: 2px solid #000;" v-if="org_id == 10188 || org_id == 0">
167
+                    <p>医师:{{ item.doctor ? item.doctor : "" }}</p>
168
+                  </div>
169
+                  <div class="actionBar" v-if="org_id != 10188 && org_id != 0">
170
+                    
171
+                    <p>审核:</p>
172
+                    <p>配对:</p>
173
+                    <p>核对:</p>
174
+                    <p>发药:</p>
175
+                    <p>
176
+                      药费:{{
177
+                        getTotalOne(item.id).toFixed(2)
178
+                          ? getTotalOne(item.id).toFixed(2)
179
+                          : 0
180
+                      }}元
181
+                    </p>
182
+                    <!--            <p>药费:466.2元</p>-->
183
+                  </div>
184
+                  <div class="actionBar" v-else>
185
+                    <p >审核、调配:</p>
186
+                    <p >核对、发药:</p>
187
+                    <p >
188
+                      药费:{{
189
+                        getTotalOne(item.id).toFixed(2)
190
+                          ? getTotalOne(item.id).toFixed(2)
191
+                          : 0
192
+                      }}元
193
+                    </p>
194
+                    <!--            <p>药费:551.2元</p>-->
195
+                    <!--            <p>药费:466.2元</p>-->
196
+                  </div>
197
+                </div>
198
+              </template>
199
+            </div>
200
+
201
+            <div
202
+              class="drugsBox"
203
+              v-for="(it, i) in item.additionalcharge"
204
+              :key="i"
145 205
             >
146
-              {{ doc_name }}
147
-            </span>
148
-            <img
149
-              style="height: 50px;"
150
-              :src="setAdminUserES(item.creator,item.doctor)"
151
-              alt=""
152
-              srcset=""
206
+              <div class="drugsOne">
207
+                {{ it.item_name ? it.item_name : "" }}:&nbsp;{{ it.price }}元/{{
208
+                  it.count
209
+                }}次
210
+              </div>
211
+            </div>
153 212
 
154
-            />
155
-          </p>
156
-          <p v-else>
157
-            医师: {{ item.doctor ? item.doctor : "" }}
158
-          </p>
159
-          <p>日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}</p>
160
-        </div>
213
+            <div
214
+              class="drugsBox"
215
+              v-for="(it, index) in item.project"
216
+              :key="index"
217
+            >
218
+              <div class="drugsOne">
219
+                <span style="font-weight: bold">{{ index + 1 + "." }}</span
220
+                >{{
221
+                  it.type == 2
222
+                    ? getProjectName(it.project_id)
223
+                      ? getProjectName(it.project_id)
224
+                      : ""
225
+                    : it.good_info.good_name
226
+                }}&nbsp;&nbsp;{{ it.single_dose
227
+                }}{{ it.single_dose_unit }}&nbsp;×&nbsp; {{ it.count }}{{ unit }}
228
+              </div>
229
+              <div style="margin-left: 100px">
230
+                <span>用法:{{ it.single_dose }}{{ it.single_dose_unit }}</span
231
+                >&nbsp;&nbsp;<span>{{ it.delivery_way }}</span
232
+                >&nbsp;&nbsp;<span>{{ it.advice_desc }}</span>
233
+              </div>
234
+            </div>
235
+            
236
+            <div
237
+              class="drugsBox"
238
+              v-for="(it, i) in item.additionalcharge"
239
+              :key="i"
240
+            >
241
+              <div class="drugsOne">
242
+                {{ it.project_id ? it.project_id : "" }}:&nbsp;{{
243
+                  it.price.toFixed(2)
244
+                }}元/{{ it.count }}次
245
+              </div>
246
+            </div>
247
+            <div style="text-align: center">(以下空白)</div>
248
+          </div>
249
+        
250
+          <div class="doctorBox" v-if="org_id != 10188 && org_id != 0">
251
+            <p v-if="org_id == 10217 || org_id == 0">
252
+              医师:
253
+              <span
254
+                style="width: 100px; display: inline-block"
255
+                v-if="item.creator == ''"
256
+              >
257
+                {{ item.doctor }}
258
+              </span>
259
+              <span
260
+                style="width: 100px; display: inline-block"
261
+                v-else-if="doc_name != ''"
262
+              >
263
+                {{ doc_name }}
264
+              </span>
265
+              <img
266
+                style="height: 50px;"
267
+                :src="setAdminUserES(item.creator,item.doctor)"
268
+                alt=""
269
+                srcset=""
161 270
 
162
-        <div class="doctorBoxs" style="border-bottom: 2px solid #000;" v-if="org_id == 10188 || org_id == 0">
163
-          <p>医师:{{ item.doctor ? item.doctor : "" }}</p>
164
-        </div>
165
-        <!-- <div class="doctorBoxtwo" v-if="org_id == 10188 || org_id == 0">
166
-          <p >审核、调配:</p>
167
-          <p >核对、发药:</p>
168
-          <p style="margin-right: 43px">药师:</p>
169
-        </div> -->
271
+              />
272
+            </p>
273
+            <p v-else>
274
+              医师: {{ item.doctor ? item.doctor : "" }}
275
+            </p>
276
+            <p>日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}</p>
277
+          </div>
170 278
 
171
-        <div class="actionBar" v-if="org_id != 10188 && org_id != 0">
172
-          <!-- <p>审核:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
173
-                 <p>配对:</p>
174
-                 <p>核对:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
175
-                 <p>发药:{{getDoctor(item.advices[0].execution_staff)?getDoctor(item.advices[0].execution_staff):""}}</p>
176
-                 <p>药费:{{getTotalOne(item.id)?getTotalOne(item.id):0}}元</p> -->
279
+          <div class="doctorBoxs" style="border-bottom: 2px solid #000;" v-if="org_id == 10188 || org_id == 0">
280
+            <p>医师:{{ item.doctor ? item.doctor : "" }}</p>
281
+          </div>
282
+          <!-- <div class="doctorBoxtwo" v-if="org_id == 10188 || org_id == 0">
283
+            <p >审核、调配:</p>
284
+            <p >核对、发药:</p>
285
+            <p style="margin-right: 43px">药师:</p>
286
+          </div> -->
177 287
 
178
-          <p>审核:</p>
179
-          <p>配对:</p>
180
-          <p>核对:</p>
181
-          <p>发药:</p>
182
-          <p>
183
-            药费:{{
184
-              getTotalOne(item.id).toFixed(2)
185
-                ? getTotalOne(item.id).toFixed(2)
186
-                : 0
187
-            }}元
188
-          </p>
189
-          <!--            <p>药费:466.2元</p>-->
190
-        </div>
191
-        <div class="actionBar" v-else>
192
-          <p >审核、调配:</p>
193
-          <p >核对、发药:</p>
194
-          <p >
195
-            药费:{{
196
-              getTotalOne(item.id).toFixed(2)
197
-                ? getTotalOne(item.id).toFixed(2)
198
-                : 0
199
-            }}元
200
-          </p>
201
-          <!--            <p>药费:551.2元</p>-->
202
-          <!--            <p>药费:466.2元</p>-->
203
-        </div>
204
-        <!-- <div style="page-break-after: always"></div> -->
288
+          <div class="actionBar" v-if="org_id != 10188 && org_id != 0">
289
+            <!-- <p>审核:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
290
+                  <p>配对:</p>
291
+                  <p>核对:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
292
+                  <p>发药:{{getDoctor(item.advices[0].execution_staff)?getDoctor(item.advices[0].execution_staff):""}}</p>
293
+                  <p>药费:{{getTotalOne(item.id)?getTotalOne(item.id):0}}元</p> -->
294
+
295
+            <p>审核:</p>
296
+            <p>配对:</p>
297
+            <p>核对:</p>
298
+            <p>发药:</p>
299
+            <p>
300
+              药费:{{
301
+                getTotalOne(item.id).toFixed(2)
302
+                  ? getTotalOne(item.id).toFixed(2)
303
+                  : 0
304
+              }}元
305
+            </p>
306
+            <!--            <p>药费:466.2元</p>-->
307
+          </div>
308
+          <div class="actionBar" v-else>
309
+            <p >审核、调配:</p>
310
+            <p >核对、发药:</p>
311
+            <p >
312
+              药费:{{
313
+                getTotalOne(item.id).toFixed(2)
314
+                  ? getTotalOne(item.id).toFixed(2)
315
+                  : 0
316
+              }}元
317
+            </p>
318
+            <!--            <p>药费:551.2元</p>-->
319
+            <!--            <p>药费:466.2元</p>-->
320
+          </div>
321
+        <!-- </div> -->
205 322
       </div>
206 323
     </div>
207 324
   </div>
@@ -227,6 +344,10 @@ export default{
227 344
       doctorList: [],
228 345
       advicePrint: {},
229 346
       yi:4,
347
+      arr:[],
348
+      arrs:{},
349
+      advicess:[],
350
+      page:sessionStorage.getItem('dayin'),
230 351
       patient: {},
231 352
       tableData: [],
232 353
       prescriptionInfo: [],
@@ -328,6 +449,21 @@ export default{
328 449
           this.prescriptions = advicePrint;
329 450
 
330 451
           this.doctorList_1 = response.data.data.eles;
452
+         for(let i=0;i<this.advicePrint.length;i++){
453
+          this.advicess=advicePrint[i].advices
454
+         }
455
+         for(let j=0;j<this.advicess.length;j++){
456
+            for(let x=j+1;x<this.advicess.length;x++){
457
+              if(this.advicess[j].groupno == this.advicess[x].groupno){
458
+                this.arr.push(this.advicess.splice(x,1))
459
+                // this.arrs=this.advicess.splice(x,1)
460
+              }
461
+            }
462
+          }
463
+        // this.merge(this.advicess)
464
+          // console.log('4444444',this.arrs);
465
+         console.log('55555555',this.arr);
466
+         console.log('6666666',this.advicess);
331 467
           console.log(this.doctorList_1, "医生列表");
332 468
           if (this.doctorList_1.length > 0) {
333 469
             var operatorsLen = this.doctorList_1.length;
@@ -460,6 +596,26 @@ export default{
460 596
       }
461 597
       return name;
462 598
     },
599
+    merge(arrA){
600
+      var len=arrA.lenfth
601
+      // for(let j=0;j<this.advicess.length;j++){
602
+      //   for(let x=j+1;x<this.advicess.length;x++){
603
+      //     if(this.advicess[j].groupno == this.advicess[x].groupno){
604
+      //       // this.arr.push(this.advicess.splice(x,1))
605
+      //       this.arrs=this.advicess.splice(x,1)
606
+      //     }
607
+      //   }
608
+      // }
609
+      for(let j=0;j<len;j++){
610
+        for(let x=j+1;x<len;x++){
611
+          if(arrA[j].groupno == arrA[x].groupno){
612
+            this.arr.push(arrA.splice(x,1))
613
+          }
614
+        }
615
+      }
616
+      console.log('777777777',this.arr);
617
+      return this.arr
618
+    }
463 619
   },
464 620
   created() {
465 621
     this.getAllDoctorList();
@@ -469,7 +625,20 @@ export default{
469 625
     var xtuser = this.$store.getters.xt_user;
470 626
     this.orgname = xtuser.org.org_name;
471 627
     this.org_id = xtuser.org.id;
628
+    
629
+    // for(let j=0;j<this.advicess.length;j++){
630
+    //   console.log('44444444');
631
+    //   for(let x=j+1;x<this.advicess.length;x++){
632
+    //     if(this.advicess[j].groupno == this.advicess[x].groupno){
633
+    //       this.arr.push(this.advicess.splice(x,1))
634
+    //     }
635
+    //   }
636
+    // }
637
+    // console.log('777777777',this.arr[0].advice_name);
638
+    // return this.arr
639
+    
472 640
   },
641
+  
473 642
   watch: {
474 643
     ids: function (val) {
475 644
       this.ids = val;
@@ -526,12 +695,14 @@ export default{
526 695
 .drugsBox {
527 696
   padding-left: 40px;
528 697
   margin-bottom: 10px;
698
+  position: relative;
529 699
 }
530 700
 .drugsBox div {
531 701
   line-height: 20px;
532 702
 }
533 703
 .drugsOne {
534 704
   line-height: 24px;
705
+  display: inline-block;
535 706
 }
536 707
 .drugsOne span {
537 708
   margin-right: 20px;

+ 2 - 1
src/xt_pages/outpatientDoctorStation/template/printSix.vue View File

@@ -72,8 +72,9 @@
72 72
             class="drugsBox"
73 73
             v-for="(it, index) in item.advices"
74 74
             :key="index"
75
-            :style="{'page-break-after':index==yi&&item.advices.length>5? 'always':'auto'}"
75
+            
76 76
           >
77
+          <!-- :style="{'page-break-after':index==yi&&item.advices.length>5? 'always':'auto'}" -->
77 78
             <!-- <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;{{it.single_dose}}{{it.single_dose_unit}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</div> -->
78 79
             <div class="drugsOne">
79 80
               <!-- <span style="font-weight: bold">{{ index + 1 + "." }}</span> -->

+ 2 - 1
src/xt_pages/outpatientDoctorStation/template/printThree.vue View File

@@ -147,8 +147,9 @@
147 147
                 pageIndex * 5 + item.pageArr[pageIndex]
148 148
               )"
149 149
               :key="index"
150
-              :style="{'page-break-after':index==yi&&item.advices.length>5? 'always':'auto'}"
150
+              
151 151
             >
152
+            <!-- :style="{'page-break-after':index==yi&&item.advices.length>5? 'always':'auto'}" -->
152 153
               <!-- <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;{{it.single_dose}}{{it.single_dose_unit}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</div> -->
153 154
               <div class="drugsOne">
154 155
                 <span style="font-weight: bold">{{ index + 1 + "." }}</span

+ 3 - 3
src/xt_pages/workforce/scheduleTablePrint.vue View File

@@ -1,5 +1,5 @@
1 1
 <template>
2
-    <div>
2
+    <div >
3 3
       <el-button style="float:right;" type="primary" @click="printAction">打印</el-button>
4 4
 
5 5
 <!--      <el-button type="primary" @click="printAction">打印</el-button>-->
@@ -179,7 +179,7 @@
179 179
             v-if="$route.query.week_date !=''" 
180 180
             id="scheduleTable" class="scheduleTable" 
181 181
             border="1" cellspacing="0"
182
-            style="margin: auto;"
182
+            style="margin: auto; font-size: 18px;"
183 183
         >
184 184
             <tr>
185 185
                 <td rowspan="2">分区</td>
@@ -1011,7 +1011,7 @@ export default {
1011 1011
             return [weekArr[week], typeArr[schedule_type]];
1012 1012
         },
1013 1013
         printAction: function() {
1014
-            const style = '@media print {#scheduleTable{font-size:16px;} .scheduleTable tr td{text-align: center;padding: 5px;}}'
1014
+            const style = '@media print {#scheduleTable{font-size:18px;} .scheduleTable tr td{text-align: center;padding: 5px;}}'
1015 1015
 
1016 1016
             printJS({
1017 1017
             printable: 'scheduleTable',