ソースを参照

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

陈少旭 1 年間 前
コミット
b38bdba815

+ 2 - 2
src/xt_pages/outpatientDoctorStation/checkPrint.vue ファイルの表示

@@ -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 ファイルの表示

@@ -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 ファイルの表示

@@ -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) {

+ 1 - 0
src/xt_pages/stock/drugs/inventory.vue ファイルの表示

@@ -336,6 +336,7 @@ export default {
336 336
                   //  }else{
337 337
                   //    list[i].type = 6
338 338
                   //   }
339
+                   list[i].type = 6
339 340
                    for(let j=0;j<this.manufacturerList.length;j++){
340 341
                      if(list[i].manufacturer == this.manufacturerList[j].id){
341 342
                         list[i].manufacturer_name = this.manufacturerList[j].manufacturer_name

+ 1 - 1
src/xt_pages/stock/drugs/newDrugInventory.vue ファイルの表示

@@ -809,7 +809,7 @@ export default {
809 809
                 list[i].last_stock_min_number = ""
810 810
                 list[i].min_number = list[i].XtBaseDrug.min_number
811 811
                 list[i].manufacturer_name  = ""
812
-                // list[i].type = 4
812
+                list[i].type = 6
813 813
                 list[i].last_stock_max_number = list[i].stock_max_number
814 814
                 list[i].last_stock_min_number = list[i].stock_min_number
815 815
                 for(let j=0;j<this.manufacturerList.length;j++){

+ 2 - 1
src/xt_pages/stock/inventory.vue ファイルの表示

@@ -461,6 +461,7 @@ export default {
461 461
               // }else{
462 462
               //   list[i].type = 6
463 463
               // }
464
+              list[i].type =6
464 465
               
465 466
               list[i].good_name = list[i].GoodInfo.good_name
466 467
               list[i].specification_name = list[i].GoodInfo.specification_name
@@ -485,7 +486,7 @@ export default {
485 486
                   price:item.price,
486 487
                   number:item.number,
487 488
                   expiry_date:item.expiry_date,
488
-                  type:0,
489
+                  type:6,
489 490
                   last_stock_count:0,
490 491
                 }
491 492
               }

+ 1 - 1
src/xt_pages/stock/newInventory.vue ファイルの表示

@@ -446,7 +446,7 @@ export default {
446 446
           this.manufacturerList = response.data.data.manufacturerList
447 447
           loading.close()
448 448
           for(let i=0;i<list.length;i++){
449
-              // list[i].type = 4
449
+              list[i].type = 6
450 450
               list[i].good_name = list[i].GoodInfo.good_name
451 451
               list[i].specification_name = list[i].GoodInfo.specification_name
452 452
               list[i].manufacturer_name = ""

+ 2 - 2
src/xt_pages/stock/stockFlow.vue ファイルの表示

@@ -96,12 +96,12 @@
96 96
              {{getTime(scope.row.ctime)}}
97 97
            </template>
98 98
         </el-table-column>
99
-
99
+<!-- 
100 100
         <el-table-column prop="drug_name" label="出库日期" align="center">
101 101
            <template slot-scope="scope">
102 102
              {{getTime(scope.row.system_time)}}
103 103
            </template>
104
-        </el-table-column>
104
+        </el-table-column> -->
105 105
         <el-table-column prop="drug_name" label="仓库名称"  align="center">
106 106
            <template slot-scope="scope">
107 107
              <span>{{getHouseName(scope.row.storehouse_id)}}</span>