Selaa lähdekoodia

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

陈少旭 1 vuosi sitten
vanhempi
commit
b38bdba815

+ 2 - 2
src/xt_pages/outpatientDoctorStation/checkPrint.vue Näytä tiedosto

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 Näytä tiedosto

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 Näytä tiedosto

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

+ 1 - 0
src/xt_pages/stock/drugs/inventory.vue Näytä tiedosto

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

+ 1 - 1
src/xt_pages/stock/drugs/newDrugInventory.vue Näytä tiedosto

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

+ 2 - 1
src/xt_pages/stock/inventory.vue Näytä tiedosto

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

+ 1 - 1
src/xt_pages/stock/newInventory.vue Näytä tiedosto

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

+ 2 - 2
src/xt_pages/stock/stockFlow.vue Näytä tiedosto

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