瀏覽代碼

提交代码

陈少旭 1 年之前
父節點
當前提交
419a32e195
共有 1 個文件被更改,包括 11 次插入1 次删除
  1. 11 1
      src/xt_pages/outpatientDoctorStation/components/prescriptionTable.vue

+ 11 - 1
src/xt_pages/outpatientDoctorStation/components/prescriptionTable.vue 查看文件

319
             this.$message.error(response.data.msg)
319
             this.$message.error(response.data.msg)
320
             return false
320
             return false
321
           } else {
321
           } else {
322
-            this.drugways = response.data.data.drugways
322
+            this.drugways = []
323
+            //内蒙古医院因为使用坐标系统,需要按坐标系统的用药途径改造,所以需要把默认的用药途径删除
324
+            if(this.$store.getters.xt_user.org_id == 0 ){
325
+              for(let i = 0; i < response.data.data.drugways.length; i++){
326
+                if(response.data.data.drugways[i].org_id > 0 ){
327
+                  this.drugways.push(response.data.data.drugways[i])
328
+                }
329
+              }
330
+            }else{
331
+              this.drugways = response.data.data.drugways
332
+            }
323
             this.efs = response.data.data.efs
333
             this.efs = response.data.data.efs
324
             this.drugList = response.data.data.drugs
334
             this.drugList = response.data.data.drugs
325
           }
335
           }