Browse Source

自备药

XMLWAN 4 years ago
parent
commit
232fec52b6
2 changed files with 7 additions and 73 deletions
  1. 5 69
      src/router/modules/systems.js
  2. 2 4
      src/xt_pages/stock/selfPreparedMedicine/index.vue

+ 5 - 69
src/router/modules/systems.js View File

5
   component: Layout,
5
   component: Layout,
6
   redirect: '/role/admin/manage',
6
   redirect: '/role/admin/manage',
7
   name: 'system',
7
   name: 'system',
8
-  alwaysShow: true,
9
   meta: {
8
   meta: {
10
     title: 'systemManage',
9
     title: 'systemManage',
11
     icon: 'system'
10
     icon: 'system'
20
 
19
 
21
     }
20
     }
22
   },
21
   },
23
-  {
24
-    path: '/role/manage',
25
-    component: () => import('@/xt_pages/role/role'),
26
-    name: 'roleManage',
27
-    meta: {
28
-      title: 'roleManage',
29
-      noCache: true,
30
-
31
-    }
32
-  },
22
+  
33
   {
23
   {
34
     path: '/role/admin/create',
24
     path: '/role/admin/create',
35
     component: () => import('@/xt_pages/role/CreateAdmin'),
25
     component: () => import('@/xt_pages/role/CreateAdmin'),
71
   //     title: 'special_permission_manage'
61
   //     title: 'special_permission_manage'
72
   //   }
62
   //   }
73
   // },
63
   // },
74
-  {
75
-    path: '/data/dictionary',
76
-    component: () => import('@/xt_pages/data/index'),
77
-    name: 'dictionary',
78
-    meta: {
79
-      title: 'data_dictionary',
80
-      noCache: true,
81
-
82
-    }
83
-  },
84
-  {
85
-    path: '/data/specialDictionary',
86
-    component: () => import('@/xt_pages/data/specialDictionary'),
87
-    name: 'specialDictionary',
88
-    meta: {
89
-      title: 'specialDictionary',
90
-      noCache: true,
91
-
92
-    }
93
-  },
94
-  {
95
-    path: '/data/template',
96
-    component: () => import('@/xt_pages/data/template'),
97
-    name: 'template',
98
-    meta: {
99
-      title: 'template',
100
-      noCache: true,
101
-
102
-    }
103
-  },{
104
-      path: '/data/prescription',
105
-      component: () => import('@/xt_pages/data/prescription'),
106
-      name: 'prescription',
107
-      meta: {
108
-        title: 'system_prescription'
109
-      }
110
-    }, {
111
-    path: '/data/druguse',
112
-    component: () => import('@/xt_pages/data/druguseTemplate'),
113
-    name: 'druguse',
114
-    meta: {
115
-      title: 'druguse'
116
-    }
117
-  }, {
118
-    path: '/data/showconfig',
119
-    component: () => import('@/xt_pages/data/showConfig'),
120
-    name: 'showconfig',
121
-    meta: {
122
-      title: 'showconfig'
123
-    }
124
-  },{
125
-    path: '/data/print',
126
-    component: () => import('@/xt_pages/data/printTemplate'),
127
-    name: 'printTemplate',
128
-    meta: {
129
-      title: 'printTemplate'
130
-    }
131
-  }
64
+  
65
+  
66
+    
132
   ]
67
   ]
133
 }
68
 }
69
+

+ 2 - 4
src/xt_pages/stock/selfPreparedMedicine/index.vue View File

203
             
203
             
204
         },
204
         },
205
         toDetail(drugname,drugspec,patientid){
205
         toDetail(drugname,drugspec,patientid){
206
-            console.log("drugname",drugname)
207
-            console.log("drugspec",drugspec)
208
-            console.log("patientid",patientid)
209
             this.$refs.medicineDetail.show(drugname,drugspec,patientid);
206
             this.$refs.medicineDetail.show(drugname,drugspec,patientid);
210
         },
207
         },
211
 
208
 
217
           })
214
           })
218
         },
215
         },
219
         searchAction(){
216
         searchAction(){
217
+          this.patient_id = 0
220
           this.getlist()
218
           this.getlist()
221
         },
219
         },
222
         saveRadio(){
220
         saveRadio(){
226
          saveRadio(params).then(response=>{
224
          saveRadio(params).then(response=>{
227
             if(response.data.state == 1){
225
             if(response.data.state == 1){
228
               var drugset = response.data.data.drugSet
226
               var drugset = response.data.data.drugSet
229
-              console.log("drugset",drugset)
230
               this.$message.success("保存成功")
227
               this.$message.success("保存成功")
231
               this.dialogVisible = false
228
               this.dialogVisible = false
232
             } 
229
             } 
238
                start_time:this.start_time,
235
                start_time:this.start_time,
239
                keyword:this.search_input,
236
                keyword:this.search_input,
240
             }
237
             }
238
+           
241
           getStockList(params).then(response=>{
239
           getStockList(params).then(response=>{
242
              if(response.data.state == 1){
240
              if(response.data.state == 1){
243
                 var stocklist =  response.data.data.stocklist
241
                 var stocklist =  response.data.data.stocklist