yq1 před 1 rokem
rodič
revize
a4e737c896

+ 2 - 2
src/xt_pages/outpatientDoctorStation/checkPrint.vue Zobrazit soubor

@@ -13,9 +13,9 @@
13 13
       </template> -->
14 14
 <!--  && this.$store.getters.xt_user.org_id != 0  -->
15 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 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 19
         <!--      <print-two></print-two>-->
20 20
       </div>
21 21
 

+ 0 - 1
src/xt_pages/outpatientDoctorStation/checkTemplate/printOne.vue Zobrazit soubor

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

+ 38 - 3
src/xt_pages/outpatientDoctorStation/treatTemplate/printOne.vue Zobrazit soubor

@@ -79,7 +79,29 @@
79 79
             </div>
80 80
 
81 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 105
                 <div style="width: 300px;">签章:</div>
84 106
                 <div style="width: 300px;">费用:{{getTotalOne(item.id).toFixed(2)?getTotalOne(item.id).toFixed(2):''}}元</div>
85 107
             </div>
@@ -252,10 +274,23 @@
252 274
 
253 275
           ],
254 276
         hisPatient: {},
255
-        diagnoses: []
277
+        diagnoses: [],
278
+        org_id:''
256 279
       }
257 280
     },
258 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 294
       getAge(patient){
260 295
         var thisLen = patient.id_card_no.length
261 296
         var birth = ''
@@ -432,7 +467,7 @@
432 467
       this.getPrescriptionPrint()
433 468
       var xtuser = this.$store.getters.xt_user
434 469
       this.orgname = xtuser.org.org_name
435
-
470
+      this.org_id = this.$store.getters.xt_user.org_id
436 471
     },
437 472
     watch: {
438 473
       patient_id: function(val) {