浏览代码

新分支

28169 2 个月前
父节点
当前提交
0d7fbf08d4

+ 9 - 0
src/api/config.js 查看文件

@@ -251,4 +251,13 @@ export function getSelfPrintList(params){
251 251
     method:"get",
252 252
     params:params,
253 253
   })
254
+}
255
+
256
+export function changeDrugCodeOpen(params){
257
+ 
258
+  return request({
259
+    url:"/api/changedrugcodeopen",
260
+    method:"get",
261
+    params:params
262
+  })
254 263
 }

+ 9 - 0
src/api/pharmacy.js 查看文件

@@ -173,4 +173,13 @@ export function updateDrugInventoryWarehouseInfo(params){
173 173
     method:"get",
174 174
     params:params
175 175
   })
176
+}
177
+
178
+export function changeDrugCode(params){
179
+
180
+  return request({
181
+    url:"/api/pharmacy/changedrugcode",
182
+    method:"get",
183
+    params:params,
184
+  })
176 185
 }

+ 37 - 8
src/xt_pages/Pharmacy/DrugDispensing.vue 查看文件

@@ -195,14 +195,14 @@
195 195
             <el-table-column
196 196
               type="index"
197 197
               label="序号"
198
-              width="120"
198
+              width="50"
199 199
               align="center"
200 200
             >
201 201
             </el-table-column>
202 202
             <el-table-column
203 203
               prop="name"
204 204
               label="患者名称"
205
-              width="180"
205
+              width="100"
206 206
               align="center"
207 207
             >
208 208
               <template slot-scope="scope">
@@ -212,7 +212,7 @@
212 212
             <el-table-column
213 213
               prop="name"
214 214
               label="单次用量"
215
-              width="170"
215
+              width="100"
216 216
               align="center"
217 217
             >
218 218
               <template slot-scope="scope">
@@ -222,7 +222,7 @@
222 222
             <el-table-column
223 223
               prop="name"
224 224
               label="用法"
225
-              width="160"
225
+              width="100"
226 226
               align="center"
227 227
             >
228 228
               <template slot-scope="scope">
@@ -232,7 +232,7 @@
232 232
             <el-table-column
233 233
               prop="name"
234 234
               label="频率"
235
-              width="160"
235
+              width="100"
236 236
               align="center"
237 237
             >
238 238
               <template slot-scope="scope">
@@ -242,7 +242,7 @@
242 242
             <el-table-column
243 243
               prop="name"
244 244
               label="天数"
245
-              width="160"
245
+              width="100"
246 246
               align="center"
247 247
             >
248 248
               <template slot-scope="scope">
@@ -252,17 +252,22 @@
252 252
             <el-table-column
253 253
               prop="name"
254 254
               label="总量"
255
-              width="160"
255
+              width="100"
256 256
               align="center"
257 257
             >
258 258
               <template slot-scope="scope">
259 259
                 {{ scope.row.total }}
260 260
               </template>
261 261
             </el-table-column>
262
+            <el-table-column label="药品追溯码" width="162" align="center">
263
+              <template slot-scope="scope">
264
+                 <el-input style="width: 100;" v-model="scope.row.DrugCode" @input="changeDrugCode(scope.row.ID,scope.row.DataSources,scope.row.DrugCode)"></el-input>
265
+              </template>
266
+            </el-table-column>
262 267
             <el-table-column
263 268
               prop="name"
264 269
               label="数据来源"
265
-              width="162"
270
+              width="102"
266 271
               align="center"
267 272
             >
268 273
               <template slot-scope="scope">
@@ -454,6 +459,7 @@ import {
454 459
   getcurrentname,
455 460
   getpartitionlist,
456 461
   routeofadministration,
462
+  changeDrugCode
457 463
 } from "@/api/pharmacy";
458 464
 const moment = require("moment");
459 465
 export default {
@@ -506,6 +512,29 @@ export default {
506 512
   },
507 513
 
508 514
   methods: {
515
+    changeDrugCode(id,DataSources,drug_code){
516
+       var is_source =0
517
+       if (DataSources == "his处方"){
518
+        is_source = 1
519
+       }
520
+       if (DataSources == "临时医嘱"){
521
+         is_source = 2
522
+       }
523
+       var params = {
524
+        id:id,
525
+        data_source:is_source,
526
+        drug_code:drug_code,
527
+       }
528
+       console.log("paramss",params)
529
+      
530
+      changeDrugCode(params).then(response=>{
531
+         if(response.data.state == 1){
532
+            this.$message.success("保存成功!")
533
+         }
534
+      })
535
+    
536
+
537
+    },
509 538
     tt() {},
510 539
     async fun3() {
511 540
       this.fun1().then((val) => {

+ 33 - 2
src/xt_pages/Pharmacy/PatientDispensing.vue 查看文件

@@ -178,11 +178,11 @@
178 178
             <el-table-column
179 179
               type="index"
180 180
               label="序号"
181
-              width="120"
181
+              width="50"
182 182
               align="center"
183 183
             >
184 184
             </el-table-column>
185
-            <el-table-column label="名称" width="200" align="center">
185
+            <el-table-column label="名称" width="100" align="center">
186 186
               <template slot-scope="scope">
187 187
                 <span>{{ scope.row.Name ? scope.row.Name : "" }}</span>
188 188
               </template>
@@ -226,6 +226,11 @@
226 226
                 <span>{{ getManutuer(scope.row.DrugId) }}</span>
227 227
               </template>
228 228
             </el-table-column>
229
+            <el-table-column label="药品追溯码" width="162" align="center">
230
+              <template slot-scope="scope">
231
+                 <el-input style="width: 100;" v-model="scope.row.DrugCode" @input="changeDrugCode(scope.row.ID,scope.row.DataSources,scope.row.DrugCode)"></el-input>
232
+              </template>
233
+            </el-table-column>
229 234
             <el-table-column label="开立医生" width="150" align="center">
230 235
               <template slot-scope="scope">
231 236
                 <span>{{ scope.row.Doctor ? scope.row.Doctor : "" }}</span>
@@ -243,6 +248,8 @@
243 248
                 <span>{{getDrugName(scope.row.DrugId)}}</span>
244 249
               </template>
245 250
             </el-table-column>
251
+
252
+        
246 253
             <el-table-column label="备注" width="170" align="center">
247 254
               <template slot-scope="scope">
248 255
                 <span>{{ scope.row.Remarks ? scope.row.Remarks : "" }}</span>
@@ -304,7 +311,9 @@ import {
304 311
   dispensingmedicine,
305 312
   drugwithdrawal,
306 313
   getpartitionlist,
314
+  changeDrugCode
307 315
 } from "@/api/pharmacy";
316
+import dataDruguse from "../../router/modules/dataDruguse";
308 317
 const moment = require("moment");
309 318
 export default {
310 319
   components: {
@@ -792,6 +801,28 @@ export default {
792 801
          }
793 802
        }
794 803
        return spc
804
+    },
805
+    changeDrugCode(id,DataSources,drug_code){
806
+       var is_source =0
807
+       if (DataSources == "his处方"){
808
+        is_source = 1
809
+       }
810
+       if (DataSources == "临时医嘱"){
811
+         is_source = 2
812
+       }
813
+       var params = {
814
+        id:id,
815
+        data_source:is_source,
816
+        drug_code:drug_code,
817
+       }
818
+       console.log("paramss",params)
819
+      changeDrugCode(params).then(response=>{
820
+         if(response.data.state == 1){
821
+            this.$message.success("保存成功!")
822
+         }
823
+      })
824
+    
825
+
795 826
     }
796 827
   },
797 828
 };

+ 0 - 1
src/xt_pages/user/components/PatientDetail.vue 查看文件

@@ -120,7 +120,6 @@
120 120
               <el-form-item
121 121
                 label="身份证号 : "
122 122
                 class="is-required"
123
-                prop="idCardNo"
124 123
               >
125 124
                 <el-input v-model="form.idCardNo" disabled></el-input>
126 125
               </el-form-item>

+ 0 - 2
src/xt_pages/user/components/PatientForm.vue 查看文件

@@ -129,10 +129,8 @@
129 129
               <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
130 130
                 <el-form-item
131 131
                   label="身份证号 : "
132
-                  prop="idCardNo"
133 132
                 >
134 133
                   <el-input
135
-                    @input="checkIdCardNo"
136 134
                     v-model="form.idCardNo"
137 135
                   ></el-input><!---->
138 136
                 </el-form-item>

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