Browse Source

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

XMLWAN 4 years ago
parent
commit
9f626f2a39
2 changed files with 32 additions and 28 deletions
  1. 21 17
      src/xt_pages/dialysis/components/consumables.vue
  2. 11 11
      src/xt_permission.js

+ 21 - 17
src/xt_pages/dialysis/components/consumables.vue View File

@@ -73,7 +73,7 @@
73 73
           </template>
74 74
 
75 75
         </el-table-column>
76
-        
76
+
77 77
       </el-table>
78 78
     </div>
79 79
 
@@ -151,6 +151,7 @@
151 151
       var schedule_date =
152 152
         y + "-" + (m < 10 ? "0" + m : m) + "-" + (d < 10 ? "0" + d : d);
153 153
 
154
+      this.selected_date = date
154 155
       this.query.schedule_date = schedule_date
155 156
       this.query.schedule_type = 0
156 157
       this.query.partition_id = 0
@@ -183,23 +184,26 @@
183 184
             if(good_type_id == good_user[b].good_type_id)
184 185
               desc = desc + "\n" + good_user[b].info.specification_name +"*" +good_user[b].count
185 186
           }
186
-         
187
-
188
-          return desc
189
-        } else if (good_user != null && good_user.length <= 0) {
190
-          if (last_good_user != null && last_good_user.length > 0) {
191
-            let desc = ""
192
-            for (let b = 0; b < last_good_user.length; b++){
193
-              if(good_type_id == last_good_user[b].good_type_id)
194
-                desc = desc+ "\n" + last_good_user[b].info.specification_name +"*" +last_good_user[b].count
195
-            }
196
-          
197 187
 
198
-            return desc
199 188
 
200
-          }
201
-          return ""
189
+          return desc
202 190
         }
191
+        return ""
192
+
193
+        // else if (good_user != null && good_user.length <= 0) {
194
+        //   if (last_good_user != null && last_good_user.length > 0) {
195
+        //     let desc = ""
196
+        //     for (let b = 0; b < last_good_user.length; b++){
197
+        //       if(good_type_id == last_good_user[b].good_type_id)
198
+        //         desc = desc+ "\n" + last_good_user[b].info.specification_name +"*" +last_good_user[b].count
199
+        //     }
200
+        //     console.log(desc)
201
+        //
202
+        //     return desc
203
+        //
204
+        //   }
205
+        //   return ""
206
+        // }
203 207
       },
204 208
       GetDialysisgoods() {
205 209
         GetDialysisgoods(this.query).then(response => {
@@ -250,11 +254,11 @@
250 254
                 "good_user_detail":res.data.dialysis_goods[i].good_user_detail,
251 255
                 "last_good_user_detail":res.data.dialysis_goods[i].last_good_user_detail,
252 256
               }
253
-             
257
+
254 258
               this.list.push(newObj)
255 259
             }
256 260
 
257
-          
261
+
258 262
             for (let a = 0; a <  this.list.length; a++){
259 263
               for (let b = 0; b <  this.list[a].good_type.length; b++){
260 264
 

+ 11 - 11
src/xt_permission.js View File

@@ -13,18 +13,18 @@ const permissionWhiteList = loginWhiteList.concat(['/']) // 权限验证白名
13 13
 router.beforeEach((to, from, next) => {
14 14
   // 线上注释
15 15
   // if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
-  //   store.dispatch('VerifyConfigList', []).then(() => {
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 {
17 25
   //     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
26
+  //   }
27
+  //   return
28 28
   // 线上注释
29 29
 
30 30
   NProgress.start()