Procházet zdrojové kódy

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

XMLWAN před 4 roky
rodič
revize
9f626f2a39
2 změnil soubory, kde provedl 32 přidání a 28 odebrání
  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 Zobrazit soubor

73
           </template>
73
           </template>
74
 
74
 
75
         </el-table-column>
75
         </el-table-column>
76
-        
76
+
77
       </el-table>
77
       </el-table>
78
     </div>
78
     </div>
79
 
79
 
151
       var schedule_date =
151
       var schedule_date =
152
         y + "-" + (m < 10 ? "0" + m : m) + "-" + (d < 10 ? "0" + d : d);
152
         y + "-" + (m < 10 ? "0" + m : m) + "-" + (d < 10 ? "0" + d : d);
153
 
153
 
154
+      this.selected_date = date
154
       this.query.schedule_date = schedule_date
155
       this.query.schedule_date = schedule_date
155
       this.query.schedule_type = 0
156
       this.query.schedule_type = 0
156
       this.query.partition_id = 0
157
       this.query.partition_id = 0
183
             if(good_type_id == good_user[b].good_type_id)
184
             if(good_type_id == good_user[b].good_type_id)
184
               desc = desc + "\n" + good_user[b].info.specification_name +"*" +good_user[b].count
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
       GetDialysisgoods() {
208
       GetDialysisgoods() {
205
         GetDialysisgoods(this.query).then(response => {
209
         GetDialysisgoods(this.query).then(response => {
250
                 "good_user_detail":res.data.dialysis_goods[i].good_user_detail,
254
                 "good_user_detail":res.data.dialysis_goods[i].good_user_detail,
251
                 "last_good_user_detail":res.data.dialysis_goods[i].last_good_user_detail,
255
                 "last_good_user_detail":res.data.dialysis_goods[i].last_good_user_detail,
252
               }
256
               }
253
-             
257
+
254
               this.list.push(newObj)
258
               this.list.push(newObj)
255
             }
259
             }
256
 
260
 
257
-          
261
+
258
             for (let a = 0; a <  this.list.length; a++){
262
             for (let a = 0; a <  this.list.length; a++){
259
               for (let b = 0; b <  this.list[a].good_type.length; b++){
263
               for (let b = 0; b <  this.list[a].good_type.length; b++){
260
 
264
 

+ 11 - 11
src/xt_permission.js Zobrazit soubor

13
 router.beforeEach((to, from, next) => {
13
 router.beforeEach((to, from, next) => {
14
   // 线上注释
14
   // 线上注释
15
   // if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
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
   //     next()
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
   NProgress.start()
30
   NProgress.start()