소스 검색

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

yq1 1 개월 전
부모
커밋
ee3a425abf

+ 34 - 2
src/xt_pages/data/basicConfig.vue 파일 보기

@@ -57,6 +57,11 @@
57 57
             <p style="margin-top:20px;">药品在执行时自备药出库:
58 58
                <el-switch v-model="self_drug_out_open" @change="changeSelfPrescriptionOutOpen"></el-switch>
59 59
             </p>
60
+
61
+            
62
+            <p style="margin-top:20px;">药品在患者发药显示:
63
+               <el-switch v-model="drug_code_open" @change="changeDrugCodeOpen"></el-switch>
64
+            </p>
60 65
         </div>
61 66
 
62 67
 
@@ -112,7 +117,7 @@
112 117
 
113 118
 <script>
114 119
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
115
-import { getAllIsOpenInit,postXtHisIsOpen,postMonitorIsOpen,changeFuncPrint,getDataPrintList,postXtHisProjectIsOpen,changeStockSetting,changeAdviceConfig,changePrescriptionConfig,changeDrugOpenConfig,changeSettleOpenConfig,changeGoodOutOpen,changeSelfPrescriptionOpen,changeSelfPrescriptionOutOpen,getSelfPrintList} from '@/api/config'
120
+import { getAllIsOpenInit,postXtHisIsOpen,postMonitorIsOpen,changeFuncPrint,getDataPrintList,postXtHisProjectIsOpen,changeStockSetting,changeAdviceConfig,changePrescriptionConfig,changeDrugOpenConfig,changeSettleOpenConfig,changeGoodOutOpen,changeSelfPrescriptionOpen,changeSelfPrescriptionOutOpen,getSelfPrintList,changeDrugCodeOpen} from '@/api/config'
116 121
 
117 122
 export default {
118 123
   name: "printTemplate",
@@ -137,7 +142,8 @@ export default {
137 142
       drug_settle_open:false,
138 143
       good_out_open:false,
139 144
       self_prescription_out_open:false,
140
-      self_drug_out_open:false
145
+      self_drug_out_open:false,
146
+      drug_code_open:false,
141 147
     };
142 148
   },
143 149
   methods: {
@@ -195,6 +201,12 @@ export default {
195 201
               this.good_out_open = false
196 202
             }
197 203
 
204
+            if(response.data.data.is_code_open == 1){
205
+               this.drug_code_open = true
206
+            }else{
207
+                this.drug_code_open = false
208
+            }
209
+
198 210
           } else {
199 211
             this.$message.error(response.data.msg)
200 212
           }
@@ -536,7 +548,27 @@ export default {
536 548
            }
537 549
         }
538 550
       })
551
+    },
552
+    changeDrugCodeOpen(){
553
+
554
+      var drug_out_open = 0 
555
+        if(this.drug_code_open == true){
556
+          drug_out_open = 1
557
+        }
558
+        if(this.drug_code_open == false){
559
+          drug_out_open = 2
560
+        }
561
+        var params = {
562
+          is_open:drug_out_open,
563
+        }
564
+      changeDrugCodeOpen(params).then(response=>{
565
+         if(response.data.state ==1){
566
+           var drugCodeOpen = response.data.data.drugCodeOpen
567
+           this.$message.success("保存成功!")
568
+         }
569
+      })
539 570
     }
571
+    
540 572
   },
541 573
   created() {
542 574
     this.getInitIsOpenConfig()

+ 6 - 0
src/xt_pages/stock/detail/cancelStockDetail.vue 파일 보기

@@ -126,6 +126,12 @@
126 126
           </template>
127 127
         </el-table-column>
128 128
 
129
+        <el-table-column label="生产厂商" align="center">
130
+          <template slot-scope="scope">
131
+            {{ getManufactuerName(scope.row.manufacturer) }}
132
+          </template>
133
+        </el-table-column>
134
+
129 135
         <!-- <el-table-column label="单据类型" align="center">
130 136
           <template slot-scope="scope">
131 137
             {{ getTypeName(scope.row) }}

+ 6 - 0
src/xt_pages/stock/detail/stockInDetail.vue 파일 보기

@@ -131,6 +131,12 @@
131 131
             </template>
132 132
           </el-table-column>
133 133
 
134
+          <el-table-column label="生产厂商" align="center">
135
+            <template slot-scope="scope">
136
+              {{ getManufactuerName(scope.row.manufacturer) }}
137
+            </template>
138
+          </el-table-column>
139
+
134 140
           <el-table-column label="操作时间" align="center">
135 141
             <template slot-scope="scope">
136 142
               {{ getTime(scope.row.Warehousing.warehousing_time) }}

+ 7 - 0
src/xt_pages/stock/drugs/components/drugCancelDetail.vue 파일 보기

@@ -118,6 +118,12 @@
118 118
           </template>
119 119
         </el-table-column>
120 120
 
121
+        <el-table-column label="生产厂家" align="center">
122
+          <template slot-scope="scope">
123
+           {{getManufacturerName(scope.row.GoodInfo.manufacturer)}}
124
+          </template>
125
+        </el-table-column>
126
+
121 127
         <!-- <el-table-column label="单据类型" align="center">
122 128
           <template slot-scope="scope">
123 129
             <span v-if="scope.row.type == 1">药品退库单</span>
@@ -377,6 +383,7 @@ export default {
377 383
          if(response.data.state == 1){
378 384
            loading.close()
379 385
            var order =  response.data.data.order
386
+           console.log("order=----------------",order)
380 387
            var list = response.data.data.orderPrint
381 388
            this.dealerList =  response.data.data.dealerList
382 389
            this.manufacturerList =  response.data.data.manufacturerList

+ 6 - 0
src/xt_pages/stock/drugs/components/drugInOrder.vue 파일 보기

@@ -128,6 +128,12 @@
128 128
           </template>
129 129
         </el-table-column>
130 130
 
131
+        <el-table-column label="生产厂家" align="center">
132
+          <template slot-scope="scope">
133
+           {{getManufacturerName(scope.row.manufacturer)}}
134
+          </template>
135
+        </el-table-column>
136
+
131 137
         <el-table-column label="操作时间" align="center">
132 138
           <template slot-scope="scope">
133 139
             <span>{{getTime(scope.row.ctime)}}</span>

+ 13 - 13
src/xt_permission.js 파일 보기

@@ -12,19 +12,19 @@ const permissionWhiteList = loginWhiteList.concat(['/']) // 权限验证白名
12 12
 
13 13
 router.beforeEach((to, from, next) => {
14 14
   // 线上注释
15
-  if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
-    store.dispatch('VerifyConfigList', []).then(() => {
17
-      next()
18
-    })
19
-  }
20
-  if (store.getters.permission_routers === undefined) {
21
-    store.dispatch('xt_GenerateRoutes', []).then(() => {
22
-      next()
23
-    })
24
-  } else {
25
-    next()
26
-  }
27
-  return
15
+  // if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
+  //   store.dispatch('VerifyConfigList', []).then(() => {
17
+  //     next()
18
+  //   })
19
+  // }
20
+  // if (store.getters.permission_routers === undefined) {
21
+  //   store.dispatch('xt_GenerateRoutes', []).then(() => {
22
+  //     next()
23
+  //   })
24
+  // } else {
25
+  //   next()
26
+  // }
27
+  // return
28 28
   // 线上注释
29 29
   NProgress.start()
30 30
   // console.log(store.getters.current_role_urls.indexOf(to.path))