yq1 1 year ago
parent
commit
a4e737c896

+ 2 - 2
src/xt_pages/outpatientDoctorStation/checkPrint.vue View File

13
       </template> -->
13
       </template> -->
14
 <!--  && this.$store.getters.xt_user.org_id != 0  -->
14
 <!--  && this.$store.getters.xt_user.org_id != 0  -->
15
       <div class='dialysisPage' style="padding-top:40px;">
15
       <div class='dialysisPage' style="padding-top:40px;">
16
-        <printOne v-if="this.$store.getters.xt_user.org_id != 10402 && this.$store.getters.xt_user.org_id != 10375 && this.$store.getters.xt_user.org_id != 0" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id" :newHisPatient="newHisPatient"></printOne>
16
+        <printOne v-if="this.$store.getters.xt_user.org_id != 10402 && this.$store.getters.xt_user.org_id != 10375 " :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id" :newHisPatient="newHisPatient"></printOne>
17
         <printTwo v-if="this.$store.getters.xt_user.org_id == 10402 " :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id" :newHisPatient="newHisPatient"></printTwo>
17
         <printTwo v-if="this.$store.getters.xt_user.org_id == 10402 " :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id" :newHisPatient="newHisPatient"></printTwo>
18
-        <printThree v-if="this.$store.getters.xt_user.org_id == 10375 || this.$store.getters.xt_user.org_id == 0 " :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id" :newHisPatient="newHisPatient"></printThree>
18
+        <printThree v-if="this.$store.getters.xt_user.org_id == 10375 " :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id" :newHisPatient="newHisPatient"></printThree>
19
         <!--      <print-two></print-two>-->
19
         <!--      <print-two></print-two>-->
20
       </div>
20
       </div>
21
 
21
 

+ 0 - 1
src/xt_pages/outpatientDoctorStation/checkTemplate/printOne.vue View File

112
           </div>
112
           </div>
113
           <div>
113
           <div>
114
             医生签字:
114
             医生签字:
115
-
116
             <img
115
             <img
117
               v-if="setAdminUserES(advicePrint[0].creator)"
116
               v-if="setAdminUserES(advicePrint[0].creator)"
118
               style="height: 30px"
117
               style="height: 30px"

+ 38 - 3
src/xt_pages/outpatientDoctorStation/treatTemplate/printOne.vue View File

79
             </div>
79
             </div>
80
 
80
 
81
             <div style="display: flex; margin-top: 10px; line-height: 24px;padding: 0 10px;">
81
             <div style="display: flex; margin-top: 10px; line-height: 24px;padding: 0 10px;">
82
-                <div style="width: 300px;">开单医生:{{item.doctor?item.doctor:''}}</div>
82
+                <!-- <div style="width: 300px;">开单医生:{{item.doctor?item.doctor:''}}</div> -->
83
+                <div style="width: 300px;" v-if="org_id==10088 ||org_id==0">
84
+                  开单医生:
85
+                  <span
86
+                    style="width: 100px; display: inline-block"
87
+                    v-if="item.creator == ''"
88
+                  >
89
+                    {{ item.doctor ? item.doctor : "" }}
90
+                  </span>
91
+                    <span
92
+                    style="width: 100px; display: inline-block"
93
+                    v-else-if="doc_name != ''"
94
+                  >
95
+                    {{ doc_name }}
96
+                  </span>
97
+                  <img
98
+                    style="height: 30px"
99
+                    :src="setAdminUserES(item.creator,item.doctor)"
100
+                    alt=""
101
+                    srcset=""
102
+                    v-else
103
+                  />
104
+                </div>
83
                 <div style="width: 300px;">签章:</div>
105
                 <div style="width: 300px;">签章:</div>
84
                 <div style="width: 300px;">费用:{{getTotalOne(item.id).toFixed(2)?getTotalOne(item.id).toFixed(2):''}}元</div>
106
                 <div style="width: 300px;">费用:{{getTotalOne(item.id).toFixed(2)?getTotalOne(item.id).toFixed(2):''}}元</div>
85
             </div>
107
             </div>
252
 
274
 
253
           ],
275
           ],
254
         hisPatient: {},
276
         hisPatient: {},
255
-        diagnoses: []
277
+        diagnoses: [],
278
+        org_id:''
256
       }
279
       }
257
     },
280
     },
258
     methods: {
281
     methods: {
282
+      // 电子签名
283
+      setAdminUserES(id,name) {
284
+        if (id == 0) {
285
+          return "";
286
+        }
287
+        if (id in this.operatorMaps) {
288
+          return this.operatorMaps[id].url;
289
+        } else {
290
+          this.doc_name = name
291
+          return "";
292
+        }
293
+      },
259
       getAge(patient){
294
       getAge(patient){
260
         var thisLen = patient.id_card_no.length
295
         var thisLen = patient.id_card_no.length
261
         var birth = ''
296
         var birth = ''
432
       this.getPrescriptionPrint()
467
       this.getPrescriptionPrint()
433
       var xtuser = this.$store.getters.xt_user
468
       var xtuser = this.$store.getters.xt_user
434
       this.orgname = xtuser.org.org_name
469
       this.orgname = xtuser.org.org_name
435
-
470
+      this.org_id = this.$store.getters.xt_user.org_id
436
     },
471
     },
437
     watch: {
472
     watch: {
438
       patient_id: function(val) {
473
       patient_id: function(val) {