Ver código fonte

提交代码

陈少旭 1 ano atrás
pai
commit
5a1fea485b

+ 2 - 2
src/xt_pages/hospitalStation/invoicePrint.vue Ver arquivo

@@ -24,11 +24,11 @@
24 24
           :paramsObj="invoiceParams"
25 25
         ></printOne>
26 26
         <printTwo
27
-          v-if="org_id == 10215||org_id == 0"
27
+          v-if="org_id == 10215"
28 28
           :paramsObj="invoiceParams"
29 29
         ></printTwo>
30 30
         <printThree
31
-          v-if="org_id == 10265 || org_id == 4 || org_id == 9675 "
31
+          v-if="org_id == 10265 || org_id == 4 || org_id == 9675 || org_id == 0"
32 32
           :paramsObj="invoiceParams"
33 33
         ></printThree>
34 34
 <!--        <print-night v-if="org_id == 10210 || org_id == 0"-->

+ 15 - 7
src/xt_pages/hospitalStation/invoiceTemplate/printThree.vue Ver arquivo

@@ -230,6 +230,8 @@
230 230
 
231 231
 <script>
232 232
 import { getInvoice } from '@/api/project/project'
233
+import {jsGetAge, uParseTime} from "@/utils/tools";
234
+
233 235
 export default {
234 236
     props:{
235 237
         paramsObj:Object
@@ -266,6 +268,12 @@ export default {
266 268
         this.org_name = this.$store.getters.xt_user.org.org_name
267 269
     },
268 270
     methods:{
271
+      getTime(value, temp) {
272
+        if (value != undefined) {
273
+          return uParseTime(value, temp);
274
+        }
275
+        return "";
276
+      },
269 277
       getDay(dateString1,dateString2){
270 278
         var  startDate = Date.parse(dateString1);
271 279
         var  endDate = Date.parse(dateString2);
@@ -296,20 +304,20 @@ export default {
296 304
                 this.printDate = data.getFullYear() + "-" + month + "-" + date;
297 305
 
298 306
               if(this.list.his.id > 0){
299
-                this.in_hosptial_time = this.getTime()
300
-                this.out_hosptial_time = this.list.order.setl_time.split(' ')[0]
307
+                this.in_hosptial_time = this.getTime(this.list.his.record_date,'{y}-{m}-{d}')
308
+                this.out_hosptial_time =  this.getTime(this.list.his.record_date,'{y}-{m}-{d}')
301 309
               }else{
302 310
                 this.in_hosptial_time = this.list.his_hospital_record.in_hosptial_time.split(' ')[0]
303 311
                 this.out_hosptial_time = this.list.his_hospital_record.out_hosptial_time.split(' ')[0]
304 312
               }
305 313
               this.insutype = this.list.order.insutype
306
-              this.id_card_no = this.list.his_hospital_record.id_card_no
307
-              this.number = this.list.his_hospital_record.number
308
-              this.psn_no = this.list.his_hospital_record.psn_no
314
+              this.id_card_no = this.list.his.id_card_no
315
+              this.number = this.list.his.number
316
+              this.psn_no = this.list.his.psn_no
309 317
               this.pre_pay_money = this.list.pre_pay_money
310 318
 
311
-              this.balance_accounts_type = this.list.his_hospital_record.balance_accounts_type
312
-              this.gend= this.list.his_hospital_record.gend
319
+              this.balance_accounts_type = this.list.his.balance_accounts_type
320
+              this.gend= this.list.his.gend
313 321
             })
314 322
         },
315 323
         smalltoBIG(n) {

+ 0 - 17
src/xt_pages/outpatientDoctorStation/template/printOne.vue Ver arquivo

@@ -506,21 +506,6 @@ export default{
506 506
           this.prescriptions = advicePrint;
507 507
 
508 508
           this.doctorList_1 = response.data.data.eles;
509
-          for(let i=0;i<this.advicePrint.length;i++){
510
-            this.advicess=advicePrint[i].advices
511
-          }
512
-          for(let j=0;j<this.advicess.length;j++){
513
-            for(let x=j+1;x<this.advicess.length;x++){
514
-              if(this.advicess[j].groupno == this.advicess[x].groupno){
515
-                this.arr.push(this.advicess.splice(x,1))
516
-                // this.arrs=this.advicess.splice(x,1)
517
-              }
518
-            }
519
-          }
520
-          // this.merge(this.advicess)
521
-          // console.log('4444444',this.arrs);
522
-          console.log('55555555',this.arr);
523
-          console.log('6666666',this.advicess);
524 509
           console.log(this.doctorList_1, "医生列表");
525 510
           if (this.doctorList_1.length > 0) {
526 511
             var operatorsLen = this.doctorList_1.length;
@@ -532,8 +517,6 @@ export default{
532 517
               );
533 518
             }
534 519
           }
535
-
536
-          console.log("处方222222", this.prescriptions);
537 520
           var hisPatient = response.data.data.hisPatient;
538 521
           console.log("hisPatient", hisPatient);
539 522
           this.hisPatient = hisPatient;