Pārlūkot izejas kodu

修改库存管理

csx 6 gadus atpakaļ
vecāks
revīzija
b99fe41db9

+ 412 - 414
src/router/index.js Parādīt failu

@@ -125,420 +125,418 @@ export const xt_constantRouterMap = [
125 125
   // ////////////////////////////
126 126
   // 本地开始
127 127
   // /////////////////////////////
128
-  // {
129
-  //   path: '/patients',
130
-  //   component: Layout,
131
-  //   redirect: 'noredirect',
132
-  //   name: 'User',
133
-  //   meta: {
134
-  //     title: 'user',
135
-  //     icon: 'bingren'
136
-  //   },
137
-  //   children: [
138
-  //     {
139
-  //       path: '/patients/patients',
140
-  //       component: () => import('@/xt_pages/user/patients'),
141
-  //       name: 'Patient',
142
-  //       meta: { title: 'patient', noCache: true }
143
-  //     },
144
-  //     {
145
-  //       path: '/patients/create',
146
-  //       component: () => import('@/xt_pages/user/createPatient'),
147
-  //       name: 'createPatient',
148
-  //       meta: { title: 'createPatient', noCache: true }
149
-  //     },
150
-  //     {
151
-  //       path: '/patients/patient/:id',
152
-  //       component: () => import('@/xt_pages/user/patientInfo'),
153
-  //       hidden: true,
154
-  //       is_menu: false,
155
-  //       name: 'patient Page',
156
-  //       meta: { title: 'patientPage', noCache: true }
157
-  //     },
158
-  //     {
159
-  //       path: '/patients/patient/:id/edit',
160
-  //       component: () => import('@/xt_pages/user/editPatient'),
161
-  //       hidden: true,
162
-  //       is_menu: false,
163
-  //       name: 'Edit Patient',
164
-  //       meta: { title: 'editPatient', noCache: true }
165
-  //     },
166
-  //     {
167
-  //       path: '/patients/patient/:id/dialysisSolution',
168
-  //       component: () => import('@/xt_pages/user/dialysisSolution'),
169
-  //       hidden: true,
170
-  //       is_menu: false,
171
-  //       name: 'dialysisSolution',
172
-  //       meta: { title: 'dialysisSolution', noCache: true }
173
-  //     },
174
-  //     {
175
-  //       path: '/patients/patient/:id/weight',
176
-  //       component: () => import('@/xt_pages/user/weight'),
177
-  //       hidden: true,
178
-  //       is_menu: false,
179
-  //       name: 'weight',
180
-  //       meta: { title: 'weight', noCache: true }
181
-  //     },
182
-  //     {
183
-  //       path: '/patients/patient/:id/dialysisRecord',
184
-  //       component: () => import('@/xt_pages/user/dialysisRecord'),
185
-  //       hidden: true,
186
-  //       is_menu: false,
187
-  //       name: 'dialysisRecord',
188
-  //       meta: { title: 'dialysisRecord', noCache: true }
189
-  //     },
190
-  //     {
191
-  //       path: '/patients/patient/:id/scheduling',
192
-  //       component: () => import('@/xt_pages/user/scheduling'),
193
-  //       hidden: true,
194
-  //       is_menu: false,
195
-  //       name: 'scheduling',
196
-  //       meta: { title: 'scheduling', noCache: true }
197
-  //     },
198
-  //     {
199
-  //       path: '/patients/patient/:id/doctorAdvice',
200
-  //       component: () => import('@/xt_pages/user/doctorAdvice'),
201
-  //       hidden: true,
202
-  //       is_menu: false,
203
-  //       name: 'doctorAdvice',
204
-  //       meta: { title: 'doctorAdvice', noCache: true }
205
-  //     },
206
-  //     {
207
-  //       path: '/patients/inspection',
208
-  //       component: () => import('@/xt_pages/user/inspection'),
209
-  //       hidden: true,
210
-  //       is_menu: false,
211
-  //       name: 'Inspection',
212
-  //       meta: { title: 'inspection', noCache: true }
213
-  //     },
214
-  //     {
215
-  //       path: '/patients/course',
216
-  //       component: () => import('@/xt_pages/user/courseOfDisease'),
217
-  //       hidden: true,
218
-  //       is_menu: false,
219
-  //       name: 'CourseOfDiseaseManage',
220
-  //       meta: { title: 'CourseOfDiseaseManage', noCache: true }
221
-  //     },
222
-  //     {
223
-  //       path: '/patients/rescue',
224
-  //       component: () => import('@/xt_pages/user/rescueRecord'),
225
-  //       hidden: true,
226
-  //       is_menu: false,
227
-  //       name: 'RescueRecord',
228
-  //       meta: { title: 'RescueRecord', noCache: true }
229
-  //     },
230
-  //     {
231
-  //       path: '/patients/patient/:id/proeducation',
232
-  //       component: () => import('@/xt_pages/user/proeducation'),
233
-  //       hidden: true,
234
-  //       is_menu: false,
235
-  //       name: 'proeducation',
236
-  //       meta: { title: 'proeducation', noCache: true }
237
-  //     }
238
-  //   ]
239
-  // },
240
-  // {
241
-  //   path: '/workforce',
242
-  //   component: Layout,
243
-  //   redirect: 'noredirect',
244
-  //   name: 'workforce',
245
-  //   meta: {
246
-  //     title: 'workforce',
247
-  //     icon: 'paiban'
248
-  //   },
249
-  //   children: [
250
-  //     {
251
-  //       path: '/workforce/appointment',
252
-  //       component: () => import('@/xt_pages/workforce/appointment'),
253
-  //       name: 'appointment',
254
-  //       meta: { title: 'appointment', noCache: true }
255
-  //     },
256
-  //     {
257
-  //       path: '/workforce/sign',
258
-  //       component: () => import('@/xt_pages/workforce/sign'),
259
-  //       hidden: true,
260
-  //       is_menu: false,
261
-  //       name: 'workforcesign',
262
-  //       meta: { title: 'sign', noCache: true }
263
-  //     },
264
-  //     {
265
-  //       path: '/workforce/remind',
266
-  //       component: () => import('@/xt_pages/workforce/remind'),
267
-  //       name: 'remind',
268
-  //       meta: { title: 'remind', noCache: true }
269
-  //     },
270
-  //     {
271
-  //       path: '/workforce/template',
272
-  //       component: () => import('@/xt_pages/workforce/template'),
273
-  //       name: 'workforce_template',
274
-  //       hidden: true,
275
-  //       is_menu: false,
276
-  //       meta: { title: 'workforce_template', noCache: true }
277
-  //     },
278
-  //     {
279
-  //       path: '/workforce/schedule/print',
280
-  //       component: () => import('@/xt_pages/workforce/schedule_print'),
281
-  //       name: 'schedule_print',
282
-  //       hidden: true,
283
-  //       is_menu: false,
284
-  //       meta: { title: 'schedule_print', noCache: true }
285
-  //     }
286
-  //   ]
287
-  // },
288
-  // {
289
-  //   path: '/sign',
290
-  //   component: Layout,
291
-  //   redirct: '/sign/index',
292
-  //   children: [{
293
-  //     path: '/sign',
294
-  //     component: () => import('@/xt_pages/sign/index'),
295
-  //     name: 'sign',
296
-  //     meta: { title: 'signWeight', icon: 'sign', noCache: true }
297
-  //   }]
298
-  // },
299
-  // {
300
-  //   path: '/dialysis/',
301
-  //   component: Layout,
302
-  //   redirect: 'noredirect',
303
-  //   name: 'dialysis',
304
-  //   meta: {
305
-  //     title: 'dialysis',
306
-  //     icon: 'touxi'
307
-  //   },
308
-  //   children: [
309
-  //     { path: '/dialysis/dialysisrecord', component: () => import('@/xt_pages/dialysis/schedualPatient'), name: '透析记录', meta: { title: '透析记录' }},
310
-  //     {
311
-  //       path: '/dialysis/record/:id',
312
-  //       component: () => import('@/xt_pages/dialysis/dialysisPage'),
313
-  //       hidden: true,
314
-  //       is_menu: false,
315
-  //       name: 'paper',
316
-  //       meta: { title: 'paper', noCache: true }
317
-  //     },
318
-  //     {
319
-  //       path: '/dialysis/print',
320
-  //       component: () => import('@/xt_pages/dialysis/dialysisPrintOrder'),
321
-  //       hidden: true,
322
-  //       is_menu: false,
323
-  //       name: 'dialysisPrintOrder',
324
-  //       meta: { title: 'dialysisPrintOrder', noCache: true }
325
-  //     },
326
-
327
-  //     // { path: 'advice', component: () => import('@/xt_pages/dialysis/doctorAdvice'), name: 'advice', meta: { title: 'advice' }},
328
-  //     // { path: 'prepare', component: () => import('@/xt_pages/dialysis/dialysisPrepare'), name: 'prepare', meta: { title: 'prepare' }},
329
-  //     { path: '/dialysis/watch', component: () => import('@/xt_pages/dialysis/bloodPresssWatch'), name: 'watch', meta: { title: 'watch' }},
330
-  //     { path: '/dialysis/details', component: () => import('@/xt_pages/dialysis/details'), name: 'details', meta: { title: 'details' }, hidden: true, is_menu: false },
331
-  //     {
332
-  //       path: '/dialysis/print/batch',
333
-  //       component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order'),
334
-  //       hidden: true,
335
-  //       is_menu: false,
336
-  //       name: 'dialysis_batch_print',
337
-  //       meta: { title: '批量打印', noCache: true }
338
-  //     },
339
-  //     { path: '/dialysis/board', component: () => import('@/xt_pages/dialysis/bulletinBoard'), name: '数据看板', meta: { title: '数据看板' }}
340
-  //   ]
341
-  // },
342
-  // {
343
-  //   path: '/stock/',
344
-  //   component: Layout,
345
-  //   redirect: 'noredirect',
346
-  //   name: 'stockManage',
347
-  //   meta: { title: 'stockManage', icon: 'stock' },
348
-  //   children: [
349
-  //     {
350
-  //       path: '/stock/config',
351
-  //       component: () => import('@/xt_pages/stock/index'),
352
-  //       name: 'config',
353
-  //       meta: { title: 'config' }
354
-  //     },
355
-  //     {
356
-  //       path: '/stock/in',
357
-  //       component: () => import('@/xt_pages/stock/stockInOrder'),
358
-  //       name: 'stockInOrder',
359
-  //       meta: { title: 'stockInOrder', noCache: true }
360
-  //     }, {
361
-  //       path: '/stock/in/other',
362
-  //       component: () => import('@/xt_pages/stock/otherStockInOrder'),
363
-  //       name: 'otherStockInOrder',
364
-  //       meta: { title: 'otherStockInOrder', noCache: true }
365
-  //     }, {
366
-  //       path: '/stock/return',
367
-  //       component: () => import('@/xt_pages/stock/salesReturnOrder'),
368
-  //       name: 'salesReturnOrder',
369
-  //       meta: { title: 'salesReturnOrder', noCache: true }
370
-  //     }, {
371
-  //       path: '/stock/return/other',
372
-  //       component: () => import('@/xt_pages/stock/otherSalesReturnOrder'),
373
-  //       name: 'otherSalesReturnOrder',
374
-  //       meta: { title: 'otherSalesReturnOrder', noCache: true }
375
-  //     },
376
-  //     {
377
-  //       path: '/stock/out',
378
-  //       component: () => import('@/xt_pages/stock/stockOutOrder'),
379
-  //       name: 'stockOutOrder',
380
-  //       meta: { title: 'stockOutOrder', noCache: true }
381
-  //     }, {
382
-  //       path: '/stock/out/other',
383
-  //       component: () => import('@/xt_pages/stock/otherStockOutOrder'),
384
-  //       name: 'otherStockOutOrder',
385
-  //       meta: { title: 'otherStockOutOrder', noCache: true }
386
-  //     }, {
387
-  //       path: '/stock/cancel',
388
-  //       component: () => import('@/xt_pages/stock/cancelStockOrder'),
389
-  //       name: 'cancelStockOrder',
390
-  //       meta: { title: 'cancelStockOrder', noCache: true }
391
-  //     }, {
392
-  //       path: '/stock/cancel/other',
393
-  //       component: () => import('@/xt_pages/stock/otherCancelStockOrder'),
394
-  //       name: 'otherCancelStockOrder',
395
-  //       meta: { title: 'otherCancelStockOrder', noCache: true }
396
-  //     }, {
397
-  //       path: '/stock/query',
398
-  //       component: () => import('@/xt_pages/stock/stockQuery'),
399
-  //       name: 'stockQuery',
400
-  //       meta: { title: 'stockQuery' }
401
-  //     }, {
402
-  //       path: '/stock/detail',
403
-  //       component: () => import('@/xt_pages/stock/stockDetailIndex'),
404
-  //       name: 'stockDetail',
405
-  //       meta: { title: 'stockDetail' }
406
-  //     },
407
-  //     {
408
-  //       path: '/stock/in/add',
409
-  //       component: () => import('@/xt_pages/stock/stockInOrderAdd'),
410
-  //       name: 'stockInOrderAdd',
411
-  //       hidden: true,
412
-  //       is_menu: false,
413
-  //       meta: { title: 'stockInOrderAdd' }
414
-  //     }, {
415
-  //       path: '/stock/in/detail',
416
-  //       component: () => import('@/xt_pages/stock/stockInDetail'),
417
-  //       name: 'stockInDetail',
418
-  //       hidden: true,
419
-  //       is_menu: false,
420
-  //       meta: { title: 'stockInDetail' }
421
-  //     }, {
422
-  //       path: '/stock/return/detail',
423
-  //       component: () => import('@/xt_pages/stock/salesReturnDetail'),
424
-  //       name: 'salesReturnDetail',
425
-  //       hidden: true,
426
-  //       is_menu: false,
427
-  //       meta: { title: 'salesReturnDetail' }
428
-  //     }, {
429
-  //       path: '/stock/return/add',
430
-  //       component: () => import('@/xt_pages/stock/salesReturnOrderAdd'),
431
-  //       name: 'salesReturnOrderAdd',
432
-  //       hidden: true,
433
-  //       is_menu: false,
434
-  //       meta: { title: 'salesReturnOrderAdd' }
435
-  //     }, {
436
-  //       path: '/stock/out/add',
437
-  //       component: () => import('@/xt_pages/stock/stockOutOrderAdd'),
438
-  //       name: 'stockOutOrderAdd',
439
-  //       hidden: true,
440
-  //       is_menu: false,
441
-  //       meta: { title: 'stockOutOrderAdd' }
442
-  //     }, {
443
-  //       path: '/stock/out/detail',
444
-  //       component: () => import('@/xt_pages/stock/stockOutDetail'),
445
-  //       name: 'stockOutDetail',
446
-  //       hidden: true,
447
-  //       is_menu: false,
448
-  //       meta: { title: 'stockOutDetail' }
449
-  //     }, {
450
-  //       path: '/stock/cancel/add',
451
-  //       component: () => import('@/xt_pages/stock/cancelStockOrderAdd'),
452
-  //       name: 'cancelStockOrderAdd',
453
-  //       hidden: true,
454
-  //       is_menu: false,
455
-  //       meta: { title: 'cancelStockOrderAdd' }
456
-  //     }, {
457
-  //       path: '/stock/cancel/detail',
458
-  //       component: () => import('@/xt_pages/stock/cancelStockDetail'),
459
-  //       name: 'cancelStockDetail',
460
-  //       hidden: true,
461
-  //       is_menu: false,
462
-  //       meta: { title: 'cancelStockDetail' }
463
-  //     }
464
-  //   ]
465
-  // },
128
+  {
129
+    path: '/patients',
130
+    component: Layout,
131
+    redirect: 'noredirect',
132
+    name: 'User',
133
+    meta: {
134
+      title: 'user',
135
+      icon: 'bingren'
136
+    },
137
+    children: [
138
+      {
139
+        path: '/patients/patients',
140
+        component: () => import('@/xt_pages/user/patients'),
141
+        name: 'Patient',
142
+        meta: { title: 'patient', noCache: true }
143
+      },
144
+      {
145
+        path: '/patients/create',
146
+        component: () => import('@/xt_pages/user/createPatient'),
147
+        name: 'createPatient',
148
+        meta: { title: 'createPatient', noCache: true }
149
+      },
150
+      {
151
+        path: '/patients/patient/:id',
152
+        component: () => import('@/xt_pages/user/patientInfo'),
153
+        hidden: true,
154
+        is_menu: false,
155
+        name: 'patient Page',
156
+        meta: { title: 'patientPage', noCache: true }
157
+      },
158
+      {
159
+        path: '/patients/patient/:id/edit',
160
+        component: () => import('@/xt_pages/user/editPatient'),
161
+        hidden: true,
162
+        is_menu: false,
163
+        name: 'Edit Patient',
164
+        meta: { title: 'editPatient', noCache: true }
165
+      },
166
+      {
167
+        path: '/patients/patient/:id/dialysisSolution',
168
+        component: () => import('@/xt_pages/user/dialysisSolution'),
169
+        hidden: true,
170
+        is_menu: false,
171
+        name: 'dialysisSolution',
172
+        meta: { title: 'dialysisSolution', noCache: true }
173
+      },
174
+      {
175
+        path: '/patients/patient/:id/weight',
176
+        component: () => import('@/xt_pages/user/weight'),
177
+        hidden: true,
178
+        is_menu: false,
179
+        name: 'weight',
180
+        meta: { title: 'weight', noCache: true }
181
+      },
182
+      {
183
+        path: '/patients/patient/:id/dialysisRecord',
184
+        component: () => import('@/xt_pages/user/dialysisRecord'),
185
+        hidden: true,
186
+        is_menu: false,
187
+        name: 'dialysisRecord',
188
+        meta: { title: 'dialysisRecord', noCache: true }
189
+      },
190
+      {
191
+        path: '/patients/patient/:id/scheduling',
192
+        component: () => import('@/xt_pages/user/scheduling'),
193
+        hidden: true,
194
+        is_menu: false,
195
+        name: 'scheduling',
196
+        meta: { title: 'scheduling', noCache: true }
197
+      },
198
+      {
199
+        path: '/patients/patient/:id/doctorAdvice',
200
+        component: () => import('@/xt_pages/user/doctorAdvice'),
201
+        hidden: true,
202
+        is_menu: false,
203
+        name: 'doctorAdvice',
204
+        meta: { title: 'doctorAdvice', noCache: true }
205
+      },
206
+      {
207
+        path: '/patients/inspection',
208
+        component: () => import('@/xt_pages/user/inspection'),
209
+        hidden: true,
210
+        is_menu: false,
211
+        name: 'Inspection',
212
+        meta: { title: 'inspection', noCache: true }
213
+      },
214
+      {
215
+        path: '/patients/course',
216
+        component: () => import('@/xt_pages/user/courseOfDisease'),
217
+        hidden: true,
218
+        is_menu: false,
219
+        name: 'CourseOfDiseaseManage',
220
+        meta: { title: 'CourseOfDiseaseManage', noCache: true }
221
+      },
222
+      {
223
+        path: '/patients/rescue',
224
+        component: () => import('@/xt_pages/user/rescueRecord'),
225
+        hidden: true,
226
+        is_menu: false,
227
+        name: 'RescueRecord',
228
+        meta: { title: 'RescueRecord', noCache: true }
229
+      },
230
+      {
231
+        path: '/patients/patient/:id/proeducation',
232
+        component: () => import('@/xt_pages/user/proeducation'),
233
+        hidden: true,
234
+        is_menu: false,
235
+        name: 'proeducation',
236
+        meta: { title: 'proeducation', noCache: true }
237
+      }
238
+    ]
239
+  },
240
+  {
241
+    path: '/workforce',
242
+    component: Layout,
243
+    redirect: 'noredirect',
244
+    name: 'workforce',
245
+    meta: {
246
+      title: 'workforce',
247
+      icon: 'paiban'
248
+    },
249
+    children: [
250
+      {
251
+        path: '/workforce/appointment',
252
+        component: () => import('@/xt_pages/workforce/appointment'),
253
+        name: 'appointment',
254
+        meta: { title: 'appointment', noCache: true }
255
+      },
256
+      {
257
+        path: '/workforce/sign',
258
+        component: () => import('@/xt_pages/workforce/sign'),
259
+        hidden: true,
260
+        is_menu: false,
261
+        name: 'workforcesign',
262
+        meta: { title: 'sign', noCache: true }
263
+      },
264
+      {
265
+        path: '/workforce/remind',
266
+        component: () => import('@/xt_pages/workforce/remind'),
267
+        name: 'remind',
268
+        meta: { title: 'remind', noCache: true }
269
+      },
270
+      {
271
+        path: '/workforce/template',
272
+        component: () => import('@/xt_pages/workforce/template'),
273
+        name: 'workforce_template',
274
+        hidden: true,
275
+        is_menu: false,
276
+        meta: { title: 'workforce_template', noCache: true }
277
+      },
278
+      {
279
+        path: '/workforce/schedule/print',
280
+        component: () => import('@/xt_pages/workforce/schedule_print'),
281
+        name: 'schedule_print',
282
+        hidden: true,
283
+        is_menu: false,
284
+        meta: { title: 'schedule_print', noCache: true }
285
+      }
286
+    ]
287
+  },
288
+  {
289
+    path: '/sign',
290
+    component: Layout,
291
+    redirct: '/sign/index',
292
+    children: [{
293
+      path: '/sign',
294
+      component: () => import('@/xt_pages/sign/index'),
295
+      name: 'sign',
296
+      meta: { title: 'signWeight', icon: 'sign', noCache: true }
297
+    }]
298
+  },
299
+  {
300
+    path: '/dialysis/',
301
+    component: Layout,
302
+    redirect: 'noredirect',
303
+    name: 'dialysis',
304
+    meta: {
305
+      title: 'dialysis',
306
+      icon: 'touxi'
307
+    },
308
+    children: [
309
+      { path: '/dialysis/dialysisrecord', component: () => import('@/xt_pages/dialysis/schedualPatient'), name: '透析记录', meta: { title: '透析记录' }},
310
+      {
311
+        path: '/dialysis/record/:id',
312
+        component: () => import('@/xt_pages/dialysis/dialysisPage'),
313
+        hidden: true,
314
+        is_menu: false,
315
+        name: 'paper',
316
+        meta: { title: 'paper', noCache: true }
317
+      },
318
+      {
319
+        path: '/dialysis/print',
320
+        component: () => import('@/xt_pages/dialysis/dialysisPrintOrder'),
321
+        hidden: true,
322
+        is_menu: false,
323
+        name: 'dialysisPrintOrder',
324
+        meta: { title: 'dialysisPrintOrder', noCache: true }
325
+      },
466 326
 
467
-  // {
468
-  //   path: '/qcd',
469
-  //   component: Layout,
470
-  //   redirect: '/qcd/dialysistotal',
471
-  //   name: 'qcd',
472
-  //   alwaysShow: true,
473
-  //   meta: { title: '科室质控', icon: 'statistics' },
474
-  //   children: [
475
-  //     { path: '/statistics/index', component: () => import('@/xt_pages/statistics/index'), name: 'statistics', meta: { title: 'statistics' }},
476
-  //     { path: '/qcd/dialysistotal', component: () => import('@/xt_pages/qcd/dialysisTotal'), name: 'dialysistotal', meta: { title: '透析总量' }},
477
-  //     { path: '/qcd/processindicators', component: () => import('@/xt_pages/qcd/processIndicators'), name: 'processIndicators', meta: { title: '过程指标' }},
478
-  //     { path: '/qcd/outcomeIndicators/control', component: () => import('@/xt_pages/qcd/outcomeIndicators/control'), name: 'outcomeIndicatorsControl', meta: { title: '结果指标' }},
479
-  //     { path: '/qcd/outcomeIndicators/query', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/outcomeIndicators/query'), name: 'outcomeIndicatorsQuery', meta: { title: '指标查询' }},
480
-  //     { path: '/qcd/patientanalysis/total', component: () => import('@/xt_pages/qcd/patientAnalysis/total'), name: 'patientAnalysisTotal', meta: { title: '患者分析' }},
481
-  //     { path: '/qcd/patientanalysis/weight', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/weight'), name: 'patientAnalysisWeight', meta: { title: '体重分析' }},
482
-  //     { path: '/qcd/patientanalysis/bloodpressure', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/bloodPressure'), name: 'patientAnalysisBloodPressure', meta: { title: '血压分析' }},
483
-  //     { path: '/qcd/patientanalysis/dialysisage', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/dialysisAge'), name: 'patientAnalysisDialysisAge', meta: { title: '透析龄分析' }},
484
-  //     { path: '/qcd/patientanalysis/lapseto', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/lapseto'), name: 'patientAnalysisLapseto', meta: { title: '转归分析' }},
485
-  //     { path: '/qcd/patientanalysis/complication', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/complication'), name: 'patientAnalysisComplication', meta: { title: '并发症分析' }},
486
-  //     { path: '/qcd/patientanalysis/infectiousdiseases', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/infectiousDiseases'), name: 'patientAnalysisInfectiousDiseases', meta: { title: '传染病分析' }},
487
-  //     { path: '/qcd/pa/person/lapseto', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/lapseto'), name: 'paPersonLapseto', meta: { title: '转归' }},
488
-  //     { path: '/qcd/pa/person/weight', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/weight'), name: 'paPersonWeight', meta: { title: '体重' }},
489
-  //     { path: '/qcd/pa/person/bloodpressure', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/bloodPressure'), name: 'paPersonBloodPressure', meta: { title: '血压' }},
490
-  //     { path: '/qcd/pa/person/indicators', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/indicators'), name: 'paPersonIndicators', meta: { title: '指标控制' }},
491
-  //     { path: '/qcd/pa/person/oralmedicine', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/oralMedicine'), name: 'paPersonOralMedicine', meta: { title: '口服药' }}
492
-  //   ]
493
-  // },
494
-  // {
495
-  //   path: '/data/',
496
-  //   component: Layout,
497
-  //   redirect: 'noredirect',
498
-  //   name: 'data',
499
-  //   meta: { title: 'data_dictionary', icon: 'excel' },
500
-  //   children: [
501
-  //     { path: '/data/dictionary', component: () => import('@/xt_pages/data/index'), name: 'dictionary', meta: { title: 'field_config' }},
502
-  //     { path: '/data/template', component: () => import('@/xt_pages/data/template'), name: 'template', meta: { title: 'template' }},
503
-  //     { path: '/data/druguse', component: () => import('@/xt_pages/data/druguseTemplate'), name: 'druguse', meta: { title: 'druguse' }}
504
-  //   ]
505
-  // },
506
-  // {
507
-  //   path: '/device',
508
-  //   component: Layout,
509
-  //   redirect: '/device/main',
510
-  //   name: 'device',
511
-  //   alwaysShow: true,
512
-  //   meta: { title: 'deviceManage', icon: 'shebei' },
513
-  //   children: [
514
-  //     { path: '/device/zones', component: () => import('@/xt_pages/device/zone_main'), name: 'deviceZoneManage', meta: { title: 'deviceZoneManage' }},
515
-  //     { path: '/device/groups', component: () => import('@/xt_pages/device/group_main'), name: 'deviceGroupManage', meta: { title: 'deviceGroupManage' }},
516
-  //     { path: '/device/numbers', component: () => import('@/xt_pages/device/number_main'), name: 'deviceNumberManage', meta: { title: 'deviceNumberManage' }},
517
-  //     { path: '/device/main', component: () => import('@/xt_pages/device/main'), name: 'dialysisMachineManage', meta: { title: 'dialysisMachineManage' }}
518
-  //   ]
519
-  // },
520
-  // {
521
-  //   path: '/role',
522
-  //   component: Layout,
523
-  //   redirect: '/role/admin/manage',
524
-  //   name: 'role',
525
-  //   alwaysShow: true,
526
-  //   meta: { title: 'permissionManage', icon: 'role' },
527
-  //   children: [
528
-  //     { path: '/role/admin/manage', component: () => import('@/xt_pages/role/admin'), name: 'adminManage', meta: { title: 'adminManage' }},
529
-  //     { path: '/role/manage', component: () => import('@/xt_pages/role/role'), name: 'roleManage', meta: { title: 'roleManage' }},
530
-  //     { path: '/role/admin/create', component: () => import('@/xt_pages/role/CreateAdmin'), name: 'addAdmin', meta: { title: 'addAdmin', noCache: true }, hidden: true, is_menu: false },
531
-  //     { path: '/role/admin/edit', component: () => import('@/xt_pages/role/EditAdmin'), name: 'editAdmin', meta: { title: 'editAdmin', noCache: true }, hidden: true, is_menu: false },
532
-  //     { path: '/role/perview', component: () => import('@/xt_pages/role/EditPerview'), name: 'setupPerview', meta: { title: 'setupPerview', noCache: true }, hidden: true, is_menu: false },
533
-  //     { path: '/role/admin/specialpermission', component: () => import('@/xt_pages/role/special_permission'), name: 'special_permission_manage', meta: { title: 'special_permission_manage' }}
534
-  //   ]
535
-  // },
327
+      // { path: 'advice', component: () => import('@/xt_pages/dialysis/doctorAdvice'), name: 'advice', meta: { title: 'advice' }},
328
+      // { path: 'prepare', component: () => import('@/xt_pages/dialysis/dialysisPrepare'), name: 'prepare', meta: { title: 'prepare' }},
329
+      { path: '/dialysis/watch', component: () => import('@/xt_pages/dialysis/bloodPresssWatch'), name: 'watch', meta: { title: 'watch' }},
330
+      { path: '/dialysis/details', component: () => import('@/xt_pages/dialysis/details'), name: 'details', meta: { title: 'details' }, hidden: true, is_menu: false },
331
+      {
332
+        path: '/dialysis/print/batch',
333
+        component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order'),
334
+        hidden: true,
335
+        is_menu: false,
336
+        name: 'dialysis_batch_print',
337
+        meta: { title: '批量打印', noCache: true }
338
+      },
339
+      { path: '/dialysis/board', component: () => import('@/xt_pages/dialysis/bulletinBoard'), name: '数据看板', meta: { title: '数据看板' }}
340
+    ]
341
+  },
342
+  {
343
+    path: '/stock/',
344
+    component: Layout,
345
+    redirect: 'noredirect',
346
+    name: 'stockManage',
347
+    meta: { title: 'stockManage', icon: 'stock' },
348
+    children: [
349
+      {
350
+        path: '/stock/config',
351
+        component: () => import('@/xt_pages/stock/index'),
352
+        name: 'config',
353
+        meta: { title: 'config' }
354
+      },
355
+      {
356
+        path: '/stock/in',
357
+        component: () => import('@/xt_pages/stock/stockInOrder'),
358
+        name: 'stockInOrder',
359
+        meta: { title: 'stockInOrder', noCache: true }
360
+      }, {
361
+        path: '/stock/in/other',
362
+        component: () => import('@/xt_pages/stock/otherStockInOrder'),
363
+        name: 'otherStockInOrder',
364
+        meta: { title: 'otherStockInOrder', noCache: true }
365
+      }, {
366
+        path: '/stock/return',
367
+        component: () => import('@/xt_pages/stock/salesReturnOrder'),
368
+        name: 'salesReturnOrder',
369
+        meta: { title: 'salesReturnOrder', noCache: true }
370
+      }, {
371
+        path: '/stock/return/other',
372
+        component: () => import('@/xt_pages/stock/otherSalesReturnOrder'),
373
+        name: 'otherSalesReturnOrder',
374
+        meta: { title: 'otherSalesReturnOrder', noCache: true }
375
+      },
376
+      {
377
+        path: '/stock/out',
378
+        component: () => import('@/xt_pages/stock/stockOutOrder'),
379
+        name: 'stockOutOrder',
380
+        meta: { title: 'stockOutOrder', noCache: true }
381
+      }, {
382
+        path: '/stock/out/other',
383
+        component: () => import('@/xt_pages/stock/otherStockOutOrder'),
384
+        name: 'otherStockOutOrder',
385
+        meta: { title: 'otherStockOutOrder', noCache: true }
386
+      }, {
387
+        path: '/stock/cancel',
388
+        component: () => import('@/xt_pages/stock/cancelStockOrder'),
389
+        name: 'cancelStockOrder',
390
+        meta: { title: 'cancelStockOrder', noCache: true }
391
+      }, {
392
+        path: '/stock/cancel/other',
393
+        component: () => import('@/xt_pages/stock/otherCancelStockOrder'),
394
+        name: 'otherCancelStockOrder',
395
+        meta: { title: 'otherCancelStockOrder', noCache: true }
396
+      }, {
397
+        path: '/stock/query',
398
+        component: () => import('@/xt_pages/stock/stockQuery'),
399
+        name: 'stockQuery',
400
+        meta: { title: 'stockQuery' }
401
+      }, {
402
+        path: '/stock/detail',
403
+        component: () => import('@/xt_pages/stock/stockDetailIndex'),
404
+        name: 'stockDetail',
405
+        meta: { title: 'stockDetail' }
406
+      },
407
+      {
408
+        path: '/stock/in/add',
409
+        component: () => import('@/xt_pages/stock/stockInOrderAdd'),
410
+        name: 'stockInOrderAdd',
411
+        hidden: true,
412
+        is_menu: false,
413
+        meta: { title: 'stockInOrderAdd' }
414
+      }, {
415
+        path: '/stock/in/detail',
416
+        component: () => import('@/xt_pages/stock/stockInDetail'),
417
+        name: 'stockInDetail',
418
+        hidden: true,
419
+        is_menu: false,
420
+        meta: { title: 'stockInDetail' }
421
+      }, {
422
+        path: '/stock/return/detail',
423
+        component: () => import('@/xt_pages/stock/salesReturnDetail'),
424
+        name: 'salesReturnDetail',
425
+        hidden: true,
426
+        is_menu: false,
427
+        meta: { title: 'salesReturnDetail' }
428
+      }, {
429
+        path: '/stock/return/add',
430
+        component: () => import('@/xt_pages/stock/salesReturnOrderAdd'),
431
+        name: 'salesReturnOrderAdd',
432
+        hidden: true,
433
+        is_menu: false,
434
+        meta: { title: 'salesReturnOrderAdd' }
435
+      }, {
436
+        path: '/stock/out/add',
437
+        component: () => import('@/xt_pages/stock/stockOutOrderAdd'),
438
+        name: 'stockOutOrderAdd',
439
+        hidden: true,
440
+        is_menu: false,
441
+        meta: { title: 'stockOutOrderAdd' }
442
+      }, {
443
+        path: '/stock/out/detail',
444
+        component: () => import('@/xt_pages/stock/stockOutDetail'),
445
+        name: 'stockOutDetail',
446
+        hidden: true,
447
+        is_menu: false,
448
+        meta: { title: 'stockOutDetail' }
449
+      }, {
450
+        path: '/stock/cancel/add',
451
+        component: () => import('@/xt_pages/stock/cancelStockOrderAdd'),
452
+        name: 'cancelStockOrderAdd',
453
+        hidden: true,
454
+        is_menu: false,
455
+        meta: { title: 'cancelStockOrderAdd' }
456
+      }, {
457
+        path: '/stock/cancel/detail',
458
+        component: () => import('@/xt_pages/stock/cancelStockDetail'),
459
+        name: 'cancelStockDetail',
460
+        hidden: true,
461
+        is_menu: false,
462
+        meta: { title: 'cancelStockDetail' }
463
+      }
464
+    ]
465
+  },
536 466
 
537
-  // {
538
-  //   path: '/fullscreenboard',
539
-  //   component: () => import('@/xt_pages/fullscreenboard/index'),
540
-  //   hidden: true
541
-  // },
467
+  {
468
+    path: '/qcd',
469
+    component: Layout,
470
+    redirect: '/qcd/dialysistotal',
471
+    name: 'qcd',
472
+    alwaysShow: true,
473
+    meta: { title: '科室质控', icon: 'statistics' },
474
+    children: [
475
+      { path: '/statistics/index', component: () => import('@/xt_pages/statistics/index'), name: 'statistics', meta: { title: 'statistics' }},
476
+      { path: '/qcd/dialysistotal', component: () => import('@/xt_pages/qcd/dialysisTotal'), name: 'dialysistotal', meta: { title: '透析总量' }},
477
+      { path: '/qcd/processindicators', component: () => import('@/xt_pages/qcd/processIndicators'), name: 'processIndicators', meta: { title: '过程指标' }},
478
+      { path: '/qcd/outcomeIndicators/control', component: () => import('@/xt_pages/qcd/outcomeIndicators/control'), name: 'outcomeIndicatorsControl', meta: { title: '结果指标' }},
479
+      { path: '/qcd/outcomeIndicators/query', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/outcomeIndicators/query'), name: 'outcomeIndicatorsQuery', meta: { title: '指标查询' }},
480
+      { path: '/qcd/patientanalysis/total', component: () => import('@/xt_pages/qcd/patientAnalysis/total'), name: 'patientAnalysisTotal', meta: { title: '患者分析' }},
481
+      { path: '/qcd/patientanalysis/weight', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/weight'), name: 'patientAnalysisWeight', meta: { title: '体重分析' }},
482
+      { path: '/qcd/patientanalysis/bloodpressure', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/bloodPressure'), name: 'patientAnalysisBloodPressure', meta: { title: '血压分析' }},
483
+      { path: '/qcd/patientanalysis/dialysisage', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/dialysisAge'), name: 'patientAnalysisDialysisAge', meta: { title: '透析龄分析' }},
484
+      { path: '/qcd/patientanalysis/lapseto', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/lapseto'), name: 'patientAnalysisLapseto', meta: { title: '转归分析' }},
485
+      { path: '/qcd/patientanalysis/complication', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/complication'), name: 'patientAnalysisComplication', meta: { title: '并发症分析' }},
486
+      { path: '/qcd/patientanalysis/infectiousdiseases', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/infectiousDiseases'), name: 'patientAnalysisInfectiousDiseases', meta: { title: '传染病分析' }},
487
+      { path: '/qcd/pa/person/lapseto', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/lapseto'), name: 'paPersonLapseto', meta: { title: '转归' }},
488
+      { path: '/qcd/pa/person/weight', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/weight'), name: 'paPersonWeight', meta: { title: '体重' }},
489
+      { path: '/qcd/pa/person/bloodpressure', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/bloodPressure'), name: 'paPersonBloodPressure', meta: { title: '血压' }},
490
+      { path: '/qcd/pa/person/indicators', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/indicators'), name: 'paPersonIndicators', meta: { title: '指标控制' }},
491
+      { path: '/qcd/pa/person/oralmedicine', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/oralMedicine'), name: 'paPersonOralMedicine', meta: { title: '口服药' }}
492
+    ]
493
+  },
494
+  {
495
+    path: '/data/',
496
+    component: Layout,
497
+    redirect: 'noredirect',
498
+    name: 'data',
499
+    meta: { title: 'data_dictionary', icon: 'excel' },
500
+    children: [
501
+      { path: '/data/dictionary', component: () => import('@/xt_pages/data/index'), name: 'dictionary', meta: { title: 'field_config' }},
502
+      { path: '/data/template', component: () => import('@/xt_pages/data/template'), name: 'template', meta: { title: 'template' }},
503
+      { path: '/data/druguse', component: () => import('@/xt_pages/data/druguseTemplate'), name: 'druguse', meta: { title: 'druguse' }}
504
+    ]
505
+  },
506
+  {
507
+    path: '/device',
508
+    component: Layout,
509
+    redirect: '/device/main',
510
+    name: 'device',
511
+    alwaysShow: true,
512
+    meta: { title: 'deviceManage', icon: 'shebei' },
513
+    children: [
514
+      { path: '/device/zones', component: () => import('@/xt_pages/device/zone_main'), name: 'deviceZoneManage', meta: { title: 'deviceZoneManage' }},
515
+      { path: '/device/groups', component: () => import('@/xt_pages/device/group_main'), name: 'deviceGroupManage', meta: { title: 'deviceGroupManage' }},
516
+      { path: '/device/numbers', component: () => import('@/xt_pages/device/number_main'), name: 'deviceNumberManage', meta: { title: 'deviceNumberManage' }},
517
+      { path: '/device/main', component: () => import('@/xt_pages/device/main'), name: 'dialysisMachineManage', meta: { title: 'dialysisMachineManage' }}
518
+    ]
519
+  },
520
+  {
521
+    path: '/role',
522
+    component: Layout,
523
+    redirect: '/role/admin/manage',
524
+    name: 'role',
525
+    alwaysShow: true,
526
+    meta: { title: 'permissionManage', icon: 'role' },
527
+    children: [
528
+      { path: '/role/admin/manage', component: () => import('@/xt_pages/role/admin'), name: 'adminManage', meta: { title: 'adminManage' }},
529
+      { path: '/role/manage', component: () => import('@/xt_pages/role/role'), name: 'roleManage', meta: { title: 'roleManage' }},
530
+      { path: '/role/admin/create', component: () => import('@/xt_pages/role/CreateAdmin'), name: 'addAdmin', meta: { title: 'addAdmin', noCache: true }, hidden: true, is_menu: false },
531
+      { path: '/role/admin/edit', component: () => import('@/xt_pages/role/EditAdmin'), name: 'editAdmin', meta: { title: 'editAdmin', noCache: true }, hidden: true, is_menu: false },
532
+      { path: '/role/perview', component: () => import('@/xt_pages/role/EditPerview'), name: 'setupPerview', meta: { title: 'setupPerview', noCache: true }, hidden: true, is_menu: false },
533
+      { path: '/role/admin/specialpermission', component: () => import('@/xt_pages/role/special_permission'), name: 'special_permission_manage', meta: { title: 'special_permission_manage' }}
534
+    ]
535
+  }, {
536
+    path: '/fullscreenboard',
537
+    component: () => import('@/xt_pages/fullscreenboard/index'),
538
+    hidden: true
539
+  },
542 540
   // /////////////本地要end/
543 541
 ]
544 542
 
@@ -766,7 +764,7 @@ export const xt_asyncRouterMap = [
766 764
       },
767 765
       { path: '/dialysis/board', component: () => import('@/xt_pages/dialysis/bulletinBoard'), name: '数据看板', meta: { title: '数据看板' }},
768 766
     ]
769
-  }, 
767
+  },
770 768
   {
771 769
     path: '/stock/',
772 770
     component: Layout,
@@ -790,7 +788,7 @@ export const xt_asyncRouterMap = [
790 788
         component: () => import('@/xt_pages/stock/salesReturnOrder'),
791 789
         name: 'salesReturnOrder',
792 790
         meta: { title: 'salesReturnOrder', noCache: true }
793
-      }, 
791
+      },
794 792
       {
795 793
         path: '/stock/out',
796 794
         component: () => import('@/xt_pages/stock/stockOutOrder'),

+ 21 - 23
src/xt_pages/stock/cancelStockOrder.vue Parādīt failu

@@ -131,29 +131,27 @@
131 131
     name: 'salesReturnOrder',
132 132
     components: { BreadCrumb },
133 133
     created() {
134
-      var year = new Date().getFullYear()
135
-      var month = new Date().getMonth() + 1
136
-      var day = new Date().getDate()
137
-      if (parseInt(month) < 10) {
138
-        month = '0' + month
139
-      }
140
-      if (parseInt(day) < 10) {
141
-        day = '0' + day
142
-      }
143
-      const endTime = year + '-' + month + '-' + day
144
-      this.end_time = endTime
145
-
146
-      var year = new Date().getFullYear()
147
-      var month = new Date().getMonth()
148
-      var day = new Date().getDate()
149
-      if (parseInt(month) < 10) {
150
-        month = '0' + month
151
-      }
152
-      if (parseInt(day) < 10) {
153
-        day = '0' + day
154
-      }
155
-      const startTime = year + '-' + month + '-' + day
156
-      this.start_time = startTime
134
+      var nowDate = new Date();
135
+      var nowYear = nowDate.getFullYear();
136
+      var nowMonth = nowDate.getMonth() + 1;
137
+      var nowDay = nowDate.getDate();
138
+      this.end_time =
139
+        nowYear +
140
+        "-" +
141
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
142
+        "-" +
143
+        (nowDay < 10 ? "0" + nowDay : nowDay);
144
+      nowDate.setMonth(nowDate.getMonth() - 1);
145
+      nowYear = nowDate.getFullYear();
146
+      nowMonth = nowDate.getMonth() + 1;
147
+      nowDay = nowDate.getDate();
148
+      this.start_time =
149
+        nowYear +
150
+        "-" +
151
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
152
+        "-" +
153
+        (nowDay < 10 ? "0" + nowDay : nowDay);
154
+
157 155
       this.GetCancelStock()
158 156
       this.GetConfigInfo()
159 157
       this.fetchAllAdminUsers()

+ 11 - 11
src/xt_pages/stock/cancelStockOrderAdd.vue Parādīt failu

@@ -361,17 +361,17 @@
361 361
       }
362 362
     },
363 363
     created() {
364
-      var year = new Date().getFullYear()
365
-      var month = new Date().getMonth() + 1
366
-      var day = new Date().getDate()
367
-      if (parseInt(month) < 10) {
368
-        month = '0' + month
369
-      }
370
-      if (parseInt(day) < 10) {
371
-        day = '0' + day
372
-      }
373
-      const endTime = year + '-' + month + '-' + day
374
-      this.return_time = endTime
364
+      var nowDate = new Date();
365
+      var nowYear = nowDate.getFullYear();
366
+      var nowMonth = nowDate.getMonth() + 1;
367
+      var nowDay = nowDate.getDate();
368
+      this.return_time =
369
+        nowYear +
370
+        "-" +
371
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
372
+        "-" +
373
+        (nowDay < 10 ? "0" + nowDay : nowDay);
374
+
375 375
       const tempObj = {}
376 376
       tempObj['good_type_id'] = 0
377 377
       tempObj['good_id'] = 0

+ 20 - 23
src/xt_pages/stock/detail/cancelStockDetail.vue Parādīt failu

@@ -116,29 +116,26 @@
116 116
     name: 'cancelStockDetail',
117 117
 
118 118
     created() {
119
-      var year = new Date().getFullYear()
120
-      var month = new Date().getMonth() + 1
121
-      var day = new Date().getDate()
122
-      if (parseInt(month) < 10) {
123
-        month = '0' + month
124
-      }
125
-      if (parseInt(day) < 10) {
126
-        day = '0' + day
127
-      }
128
-      const endTime = year + '-' + month + '-' + day
129
-      this.end_time = endTime
130
-
131
-      var year = new Date().getFullYear()
132
-      var month = new Date().getMonth()
133
-      var day = new Date().getDate()
134
-      if (parseInt(month) < 10) {
135
-        month = '0' + month
136
-      }
137
-      if (parseInt(day) < 10) {
138
-        day = '0' + day
139
-      }
140
-      const startTime = year + '-' + month + '-' + day
141
-      this.start_time = startTime
119
+      var nowDate = new Date();
120
+      var nowYear = nowDate.getFullYear();
121
+      var nowMonth = nowDate.getMonth() + 1;
122
+      var nowDay = nowDate.getDate();
123
+      this.end_time =
124
+        nowYear +
125
+        "-" +
126
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
127
+        "-" +
128
+        (nowDay < 10 ? "0" + nowDay : nowDay);
129
+      nowDate.setMonth(nowDate.getMonth() - 1);
130
+      nowYear = nowDate.getFullYear();
131
+      nowMonth = nowDate.getMonth() + 1;
132
+      nowDay = nowDate.getDate();
133
+      this.start_time =
134
+        nowYear +
135
+        "-" +
136
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
137
+        "-" +
138
+        (nowDay < 10 ? "0" + nowDay : nowDay);
142 139
       this.GetCancelStock()
143 140
       this.GetConfigInfo()
144 141
       this.fetchAllAdminUsers()

+ 20 - 23
src/xt_pages/stock/detail/salesReturnDetail.vue Parādīt failu

@@ -119,29 +119,26 @@
119 119
     name: 'salesReturnDetail',
120 120
 
121 121
     created() {
122
-      var year = new Date().getFullYear()
123
-      var month = new Date().getMonth() + 1
124
-      var day = new Date().getDate()
125
-      if (parseInt(month) < 10) {
126
-        month = '0' + month
127
-      }
128
-      if (parseInt(day) < 10) {
129
-        day = '0' + day
130
-      }
131
-      const endTime = year + '-' + month + '-' + day
132
-      this.end_time = endTime
133
-
134
-      var year = new Date().getFullYear()
135
-      var month = new Date().getMonth()
136
-      var day = new Date().getDate()
137
-      if (parseInt(month) < 10) {
138
-        month = '0' + month
139
-      }
140
-      if (parseInt(day) < 10) {
141
-        day = '0' + day
142
-      }
143
-      const startTime = year + '-' + month + '-' + day
144
-      this.start_time = startTime
122
+      var nowDate = new Date();
123
+      var nowYear = nowDate.getFullYear();
124
+      var nowMonth = nowDate.getMonth() + 1;
125
+      var nowDay = nowDate.getDate();
126
+      this.end_time =
127
+        nowYear +
128
+        "-" +
129
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
130
+        "-" +
131
+        (nowDay < 10 ? "0" + nowDay : nowDay);
132
+      nowDate.setMonth(nowDate.getMonth() - 1);
133
+      nowYear = nowDate.getFullYear();
134
+      nowMonth = nowDate.getMonth() + 1;
135
+      nowDay = nowDate.getDate();
136
+      this.start_time =
137
+        nowYear +
138
+        "-" +
139
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
140
+        "-" +
141
+        (nowDay < 10 ? "0" + nowDay : nowDay);
145 142
       this.GetCancelStock()
146 143
       this.GetConfigInfo()
147 144
       this.fetchAllAdminUsers()

+ 20 - 23
src/xt_pages/stock/detail/stockInDetail.vue Parādīt failu

@@ -124,29 +124,26 @@
124 124
     name: 'stockInDetail',
125 125
 
126 126
     created() {
127
-      var year = new Date().getFullYear()
128
-      var month = new Date().getMonth() + 1
129
-      var day = new Date().getDate()
130
-      if (parseInt(month) < 10) {
131
-        month = '0' + month
132
-      }
133
-      if (parseInt(day) < 10) {
134
-        day = '0' + day
135
-      }
136
-      const endTime = year + '-' + month + '-' + day
137
-      this.end_time = endTime
138
-
139
-      var year = new Date().getFullYear()
140
-      var month = new Date().getMonth()
141
-      var day = new Date().getDate()
142
-      if (parseInt(month) < 10) {
143
-        month = '0' + month
144
-      }
145
-      if (parseInt(day) < 10) {
146
-        day = '0' + day
147
-      }
148
-      const startTime = year + '-' + month + '-' + day
149
-      this.start_time = startTime
127
+      var nowDate = new Date();
128
+      var nowYear = nowDate.getFullYear();
129
+      var nowMonth = nowDate.getMonth() + 1;
130
+      var nowDay = nowDate.getDate();
131
+      this.end_time =
132
+        nowYear +
133
+        "-" +
134
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
135
+        "-" +
136
+        (nowDay < 10 ? "0" + nowDay : nowDay);
137
+      nowDate.setMonth(nowDate.getMonth() - 1);
138
+      nowYear = nowDate.getFullYear();
139
+      nowMonth = nowDate.getMonth() + 1;
140
+      nowDay = nowDate.getDate();
141
+      this.start_time =
142
+        nowYear +
143
+        "-" +
144
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
145
+        "-" +
146
+        (nowDay < 10 ? "0" + nowDay : nowDay);
150 147
       this.GetCancelStock()
151 148
       this.GetConfigInfo()
152 149
       this.fetchAllAdminUsers()

+ 20 - 23
src/xt_pages/stock/detail/stockOutDetail.vue Parādīt failu

@@ -129,29 +129,26 @@
129 129
     name: 'stockOutDetail',
130 130
 
131 131
     created() {
132
-      var year = new Date().getFullYear()
133
-      var month = new Date().getMonth() + 1
134
-      var day = new Date().getDate()
135
-      if (parseInt(month) < 10) {
136
-        month = '0' + month
137
-      }
138
-      if (parseInt(day) < 10) {
139
-        day = '0' + day
140
-      }
141
-      const endTime = year + '-' + month + '-' + day
142
-      this.end_time = endTime
143
-
144
-      var year = new Date().getFullYear()
145
-      var month = new Date().getMonth()
146
-      var day = new Date().getDate()
147
-      if (parseInt(month) < 10) {
148
-        month = '0' + month
149
-      }
150
-      if (parseInt(day) < 10) {
151
-        day = '0' + day
152
-      }
153
-      const startTime = year + '-' + month + '-' + day
154
-      this.start_time = startTime
132
+      var nowDate = new Date();
133
+      var nowYear = nowDate.getFullYear();
134
+      var nowMonth = nowDate.getMonth() + 1;
135
+      var nowDay = nowDate.getDate();
136
+      this.end_time =
137
+        nowYear +
138
+        "-" +
139
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
140
+        "-" +
141
+        (nowDay < 10 ? "0" + nowDay : nowDay);
142
+      nowDate.setMonth(nowDate.getMonth() - 1);
143
+      nowYear = nowDate.getFullYear();
144
+      nowMonth = nowDate.getMonth() + 1;
145
+      nowDay = nowDate.getDate();
146
+      this.start_time =
147
+        nowYear +
148
+        "-" +
149
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
150
+        "-" +
151
+        (nowDay < 10 ? "0" + nowDay : nowDay);
155 152
       this.GetCancelStock()
156 153
       this.GetConfigInfo()
157 154
       this.fetchAllAdminUsers()

+ 20 - 23
src/xt_pages/stock/otherCancelStockOrder.vue Parādīt failu

@@ -128,29 +128,26 @@
128 128
     name: 'salesReturnOrder',
129 129
     components: { BreadCrumb },
130 130
     created() {
131
-      var year = new Date().getFullYear()
132
-      var month = new Date().getMonth() + 1
133
-      var day = new Date().getDate()
134
-      if (parseInt(month) < 10) {
135
-        month = '0' + month
136
-      }
137
-      if (parseInt(day) < 10) {
138
-        day = '0' + day
139
-      }
140
-      const endTime = year + '-' + month + '-' + day
141
-      this.end_time = endTime
142
-
143
-      var year = new Date().getFullYear()
144
-      var month = new Date().getMonth()
145
-      var day = new Date().getDate()
146
-      if (parseInt(month) < 10) {
147
-        month = '0' + month
148
-      }
149
-      if (parseInt(day) < 10) {
150
-        day = '0' + day
151
-      }
152
-      const startTime = year + '-' + month + '-' + day
153
-      this.start_time = startTime
131
+      var nowDate = new Date();
132
+      var nowYear = nowDate.getFullYear();
133
+      var nowMonth = nowDate.getMonth() + 1;
134
+      var nowDay = nowDate.getDate();
135
+      this.end_time =
136
+        nowYear +
137
+        "-" +
138
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
139
+        "-" +
140
+        (nowDay < 10 ? "0" + nowDay : nowDay);
141
+      nowDate.setMonth(nowDate.getMonth() - 1);
142
+      nowYear = nowDate.getFullYear();
143
+      nowMonth = nowDate.getMonth() + 1;
144
+      nowDay = nowDate.getDate();
145
+      this.start_time =
146
+        nowYear +
147
+        "-" +
148
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
149
+        "-" +
150
+        (nowDay < 10 ? "0" + nowDay : nowDay);
154 151
       this.GetCancelStock()
155 152
       this.GetConfigInfo()
156 153
       this.fetchAllAdminUsers()

+ 20 - 23
src/xt_pages/stock/otherSalesReturnOrder.vue Parādīt failu

@@ -140,29 +140,26 @@
140 140
     name: 'salesReturnOrder',
141 141
     components: { BreadCrumb },
142 142
     created() {
143
-      var year = new Date().getFullYear()
144
-      var month = new Date().getMonth() + 1
145
-      var day = new Date().getDate()
146
-      if (parseInt(month) < 10) {
147
-        month = '0' + month
148
-      }
149
-      if (parseInt(day) < 10) {
150
-        day = '0' + day
151
-      }
152
-      const endTime = year + '-' + month + '-' + day
153
-      this.end_time = endTime
154
-
155
-      var year = new Date().getFullYear()
156
-      var month = new Date().getMonth()
157
-      var day = new Date().getDate()
158
-      if (parseInt(month) < 10) {
159
-        month = '0' + month
160
-      }
161
-      if (parseInt(day) < 10) {
162
-        day = '0' + day
163
-      }
164
-      const startTime = year + '-' + month + '-' + day
165
-      this.start_time = startTime
143
+      var nowDate = new Date();
144
+      var nowYear = nowDate.getFullYear();
145
+      var nowMonth = nowDate.getMonth() + 1;
146
+      var nowDay = nowDate.getDate();
147
+      this.end_time =
148
+        nowYear +
149
+        "-" +
150
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
151
+        "-" +
152
+        (nowDay < 10 ? "0" + nowDay : nowDay);
153
+      nowDate.setMonth(nowDate.getMonth() - 1);
154
+      nowYear = nowDate.getFullYear();
155
+      nowMonth = nowDate.getMonth() + 1;
156
+      nowDay = nowDate.getDate();
157
+      this.start_time =
158
+        nowYear +
159
+        "-" +
160
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
161
+        "-" +
162
+        (nowDay < 10 ? "0" + nowDay : nowDay);
166 163
       this.GetSalesReturn()
167 164
       this.GetConfigInfo()
168 165
       this.fetchAllAdminUsers()

+ 20 - 23
src/xt_pages/stock/otherStockInOrder.vue Parādīt failu

@@ -134,29 +134,26 @@
134 134
     name: 'stockIn',
135 135
     components: { BreadCrumb },
136 136
     created() {
137
-      var year = new Date().getFullYear()
138
-      var month = new Date().getMonth() + 1
139
-      var day = new Date().getDate()
140
-      if (parseInt(month) < 10) {
141
-        month = '0' + month
142
-      }
143
-      if (parseInt(day) < 10) {
144
-        day = '0' + day
145
-      }
146
-      const endTime = year + '-' + month + '-' + day
147
-      this.end_time = endTime
148
-
149
-      var year = new Date().getFullYear()
150
-      var month = new Date().getMonth()
151
-      var day = new Date().getDate()
152
-      if (parseInt(month) < 10) {
153
-        month = '0' + month
154
-      }
155
-      if (parseInt(day) < 10) {
156
-        day = '0' + day
157
-      }
158
-      const startTime = year + '-' + month + '-' + day
159
-      this.start_time = startTime
137
+      var nowDate = new Date();
138
+      var nowYear = nowDate.getFullYear();
139
+      var nowMonth = nowDate.getMonth() + 1;
140
+      var nowDay = nowDate.getDate();
141
+      this.end_time =
142
+        nowYear +
143
+        "-" +
144
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
145
+        "-" +
146
+        (nowDay < 10 ? "0" + nowDay : nowDay);
147
+      nowDate.setMonth(nowDate.getMonth() - 1);
148
+      nowYear = nowDate.getFullYear();
149
+      nowMonth = nowDate.getMonth() + 1;
150
+      nowDay = nowDate.getDate();
151
+      this.start_time =
152
+        nowYear +
153
+        "-" +
154
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
155
+        "-" +
156
+        (nowDay < 10 ? "0" + nowDay : nowDay);
160 157
       this.GetWarehouse()
161 158
       this.GetConfigInfo()
162 159
       this.fetchAllAdminUsers()

+ 20 - 23
src/xt_pages/stock/otherStockOutOrder.vue Parādīt failu

@@ -132,29 +132,26 @@ export default {
132 132
   name: "salesReturnOrder",
133 133
   components: { BreadCrumb },
134 134
   created() {
135
-    var year = new Date().getFullYear();
136
-    var month = new Date().getMonth() + 1;
137
-    var day = new Date().getDate();
138
-    if (parseInt(month) < 10) {
139
-      month = "0" + month;
140
-    }
141
-    if (parseInt(day) < 10) {
142
-      day = "0" + day;
143
-    }
144
-    const endTime = year + "-" + month + "-" + day;
145
-    this.end_time = endTime;
146
-
147
-    var year = new Date().getFullYear();
148
-    var month = new Date().getMonth();
149
-    var day = new Date().getDate();
150
-    if (parseInt(month) < 10) {
151
-      month = "0" + month;
152
-    }
153
-    if (parseInt(day) < 10) {
154
-      day = "0" + day;
155
-    }
156
-    const startTime = year + "-" + month + "-" + day;
157
-    this.start_time = startTime;
135
+    var nowDate = new Date();
136
+    var nowYear = nowDate.getFullYear();
137
+    var nowMonth = nowDate.getMonth() + 1;
138
+    var nowDay = nowDate.getDate();
139
+    this.end_time =
140
+      nowYear +
141
+      "-" +
142
+      (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
143
+      "-" +
144
+      (nowDay < 10 ? "0" + nowDay : nowDay);
145
+    nowDate.setMonth(nowDate.getMonth() - 1);
146
+    nowYear = nowDate.getFullYear();
147
+    nowMonth = nowDate.getMonth() + 1;
148
+    nowDay = nowDate.getDate();
149
+    this.start_time =
150
+      nowYear +
151
+      "-" +
152
+      (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
153
+      "-" +
154
+      (nowDay < 10 ? "0" + nowDay : nowDay);
158 155
     this.GetWarehouseOut();
159 156
     this.GetConfigInfo();
160 157
     this.fetchAllAdminUsers();

+ 21 - 23
src/xt_pages/stock/salesReturnOrder.vue Parādīt failu

@@ -135,29 +135,27 @@
135 135
     name: 'salesReturnOrder',
136 136
     components: { BreadCrumb },
137 137
     created() {
138
-      var year = new Date().getFullYear()
139
-      var month = new Date().getMonth() + 1
140
-      var day = new Date().getDate()
141
-      if (parseInt(month) < 10) {
142
-        month = '0' + month
143
-      }
144
-      if (parseInt(day) < 10) {
145
-        day = '0' + day
146
-      }
147
-      const endTime = year + '-' + month + '-' + day
148
-      this.end_time = endTime
149
-
150
-      var year = new Date().getFullYear()
151
-      var month = new Date().getMonth()
152
-      var day = new Date().getDate()
153
-      if (parseInt(month) < 10) {
154
-        month = '0' + month
155
-      }
156
-      if (parseInt(day) < 10) {
157
-        day = '0' + day
158
-      }
159
-      const startTime = year + '-' + month + '-' + day
160
-      this.start_time = startTime
138
+      var nowDate = new Date();
139
+      var nowYear = nowDate.getFullYear();
140
+      var nowMonth = nowDate.getMonth() + 1;
141
+      var nowDay = nowDate.getDate();
142
+      this.end_time =
143
+        nowYear +
144
+        "-" +
145
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
146
+        "-" +
147
+        (nowDay < 10 ? "0" + nowDay : nowDay);
148
+      nowDate.setMonth(nowDate.getMonth() - 1);
149
+      nowYear = nowDate.getFullYear();
150
+      nowMonth = nowDate.getMonth() + 1;
151
+      nowDay = nowDate.getDate();
152
+      this.start_time =
153
+        nowYear +
154
+        "-" +
155
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
156
+        "-" +
157
+        (nowDay < 10 ? "0" + nowDay : nowDay);
158
+
161 159
       this.GetSalesReturn()
162 160
       this.GetConfigInfo()
163 161
       this.fetchAllAdminUsers()

+ 10 - 11
src/xt_pages/stock/salesReturnOrderAdd.vue Parādīt failu

@@ -373,17 +373,16 @@
373 373
       }
374 374
     },
375 375
     created() {
376
-      var year = new Date().getFullYear()
377
-      var month = new Date().getMonth() + 1
378
-      var day = new Date().getDate()
379
-      if (parseInt(month) < 10) {
380
-        month = '0' + month
381
-      }
382
-      if (parseInt(day) < 10) {
383
-        day = '0' + day
384
-      }
385
-      const endTime = year + '-' + month + '-' + day
386
-      this.return_time = endTime
376
+      var nowDate = new Date();
377
+      var nowYear = nowDate.getFullYear();
378
+      var nowMonth = nowDate.getMonth() + 1;
379
+      var nowDay = nowDate.getDate();
380
+      this.return_time =
381
+        nowYear +
382
+        "-" +
383
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
384
+        "-" +
385
+        (nowDay < 10 ? "0" + nowDay : nowDay);
387 386
       const tempObj = {}
388 387
       tempObj['good_type_id'] = 0
389 388
       tempObj['good_id'] = 0

+ 53 - 23
src/xt_pages/stock/stockInOrder.vue Parādīt failu

@@ -133,29 +133,59 @@
133 133
     name: 'stockIn',
134 134
     components: { BreadCrumb },
135 135
     created() {
136
-      var year = new Date().getFullYear()
137
-      var month = new Date().getMonth() + 1
138
-      var day = new Date().getDate()
139
-      if (parseInt(month) < 10) {
140
-        month = '0' + month
141
-      }
142
-      if (parseInt(day) < 10) {
143
-        day = '0' + day
144
-      }
145
-      const endTime = year + '-' + month + '-' + day
146
-      this.end_time = endTime
147
-
148
-      var year = new Date().getFullYear()
149
-      var month = new Date().getMonth()
150
-      var day = new Date().getDate()
151
-      if (parseInt(month) < 10) {
152
-        month = '0' + month
153
-      }
154
-      if (parseInt(day) < 10) {
155
-        day = '0' + day
156
-      }
157
-      const startTime = year + '-' + month + '-' + day
158
-      this.start_time = startTime
136
+      // var nowDate = new Date();
137
+      //
138
+      // var year = new Date().getFullYear()
139
+      // var month = new Date().getMonth() + 1
140
+      // var day = nowDate.getDate()
141
+      // if (parseInt(month) < 10) {
142
+      //   month = '0' + month
143
+      // }
144
+      // if (parseInt(day) < 10) {
145
+      //   day = '0' + day
146
+      // }
147
+      // const endTime = year + '-' + month + '-' + day
148
+      // this.end_time = endTime
149
+      //
150
+      //
151
+      // var year = new Date().getFullYear()
152
+      // var month = new Date().getMonth()
153
+      // var day = new Date().getDate()
154
+      //
155
+      // day.setMonth(day.getMonth() - 3);
156
+      //
157
+      // if (parseInt(month) < 10) {
158
+      //   month = '0' + month
159
+      // }
160
+      // if (parseInt(day) < 10) {
161
+      //   day = '0' + day
162
+      // }
163
+      // const startTime = year + '-' + month + '-' + day
164
+      // this.start_time = startTime
165
+
166
+      var nowDate = new Date();
167
+      var nowYear = nowDate.getFullYear();
168
+      var nowMonth = nowDate.getMonth() + 1;
169
+      var nowDay = nowDate.getDate();
170
+      this.end_time =
171
+        nowYear +
172
+        "-" +
173
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
174
+        "-" +
175
+        (nowDay < 10 ? "0" + nowDay : nowDay);
176
+      nowDate.setMonth(nowDate.getMonth() - 1);
177
+      nowYear = nowDate.getFullYear();
178
+      nowMonth = nowDate.getMonth() + 1;
179
+      nowDay = nowDate.getDate();
180
+      this.start_time =
181
+        nowYear +
182
+        "-" +
183
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
184
+        "-" +
185
+        (nowDay < 10 ? "0" + nowDay : nowDay);
186
+
187
+
188
+
159 189
       this.GetWarehouse()
160 190
       this.GetConfigInfo()
161 191
       this.fetchAllAdminUsers()

+ 11 - 13
src/xt_pages/stock/stockInOrderAdd.vue Parādīt failu

@@ -341,7 +341,7 @@
341 341
       }, comfirm: function(val) {
342 342
         this.$refs.dialog.hide()
343 343
         if (val.selectedGoodInfo.length > 0) {
344
-          for (let i = val.selectedGoodInfo.length - 1; ; i--) {
344
+          for (let i = val.selectedGoodInfo.length - 1; i >= 0; i--) {
345 345
             if (i == 0) {
346 346
               this.recordInfo.recordData[this.currentIndex].good_type_id = val.goodTypeId
347 347
               this.recordInfo.recordData[this.currentIndex].good_id = val.selectedGoodInfo[i].id
@@ -581,18 +581,16 @@
581 581
       }
582 582
     },
583 583
     created() {
584
-      var year = new Date().getFullYear()
585
-      var month = new Date().getMonth() + 1
586
-      var day = new Date().getDate()
587
-      if (parseInt(month) < 10) {
588
-        month = '0' + month
589
-      }
590
-      if (parseInt(day) < 10) {
591
-        day = '0' + day
592
-      }
593
-      const endTime = year + '-' + month + '-' + day
594
-      this.warehousing_time = endTime
595
-
584
+      var nowDate = new Date();
585
+      var nowYear = nowDate.getFullYear();
586
+      var nowMonth = nowDate.getMonth() + 1;
587
+      var nowDay = nowDate.getDate();
588
+      this.warehousing_time =
589
+        nowYear +
590
+        "-" +
591
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
592
+        "-" +
593
+        (nowDay < 10 ? "0" + nowDay : nowDay);
596 594
       const tempObj = {}
597 595
       tempObj['good_type_id'] = 0
598 596
       tempObj['good_id'] = 0

+ 20 - 23
src/xt_pages/stock/stockOutOrder.vue Parādīt failu

@@ -131,29 +131,26 @@ export default {
131 131
   name: "salesReturnOrder",
132 132
   components: { BreadCrumb },
133 133
   created() {
134
-    var year = new Date().getFullYear();
135
-    var month = new Date().getMonth() + 1;
136
-    var day = new Date().getDate();
137
-    if (parseInt(month) < 10) {
138
-      month = "0" + month;
139
-    }
140
-    if (parseInt(day) < 10) {
141
-      day = "0" + day;
142
-    }
143
-    const endTime = year + "-" + month + "-" + day;
144
-    this.end_time = endTime;
145
-
146
-    var year = new Date().getFullYear();
147
-    var month = new Date().getMonth();
148
-    var day = new Date().getDate();
149
-    if (parseInt(month) < 10) {
150
-      month = "0" + month;
151
-    }
152
-    if (parseInt(day) < 10) {
153
-      day = "0" + day;
154
-    }
155
-    const startTime = year + "-" + month + "-" + day;
156
-    this.start_time = startTime;
134
+    var nowDate = new Date();
135
+    var nowYear = nowDate.getFullYear();
136
+    var nowMonth = nowDate.getMonth() + 1;
137
+    var nowDay = nowDate.getDate();
138
+    this.end_time =
139
+      nowYear +
140
+      "-" +
141
+      (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
142
+      "-" +
143
+      (nowDay < 10 ? "0" + nowDay : nowDay);
144
+    nowDate.setMonth(nowDate.getMonth() - 1);
145
+    nowYear = nowDate.getFullYear();
146
+    nowMonth = nowDate.getMonth() + 1;
147
+    nowDay = nowDate.getDate();
148
+    this.start_time =
149
+      nowYear +
150
+      "-" +
151
+      (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
152
+      "-" +
153
+      (nowDay < 10 ? "0" + nowDay : nowDay);
157 154
     this.GetWarehouseOut();
158 155
     this.GetConfigInfo();
159 156
     this.fetchAllAdminUsers();

+ 10 - 11
src/xt_pages/stock/stockOutOrderAdd.vue Parādīt failu

@@ -397,17 +397,16 @@
397 397
       }
398 398
     },
399 399
     created() {
400
-      var year = new Date().getFullYear()
401
-      var month = new Date().getMonth() + 1
402
-      var day = new Date().getDate()
403
-      if (parseInt(month) < 10) {
404
-        month = '0' + month
405
-      }
406
-      if (parseInt(day) < 10) {
407
-        day = '0' + day
408
-      }
409
-      const endTime = year + '-' + month + '-' + day
410
-      this.warehouse_out_time = endTime
400
+      var nowDate = new Date();
401
+      var nowYear = nowDate.getFullYear();
402
+      var nowMonth = nowDate.getMonth() + 1;
403
+      var nowDay = nowDate.getDate();
404
+      this.warehouse_out_time =
405
+        nowYear +
406
+        "-" +
407
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
408
+        "-" +
409
+        (nowDay < 10 ? "0" + nowDay : nowDay);
411 410
       const tempObj = {}
412 411
       tempObj['good_type_id'] = 0
413 412
       tempObj['good_id'] = 0

+ 1 - 1
src/xt_pages/user/components/PatientForm.vue Parādīt failu

@@ -148,7 +148,7 @@
148 148
                   </el-form-item> -->
149 149
                 </el-col>
150 150
                 <el-col :span="8" :style="isEdit?'width:360px':''">
151
-                  <el-form-item label="住院(门诊)号 : " prop="admissionNumber" >
151
+                  <el-form-item label="住院(门诊)号 : "  >
152 152
                     <el-input v-model="form.admissionNumber"></el-input>
153 153
                   </el-form-item>
154 154
                 </el-col>

+ 20 - 24
src/xt_pages/user/courseOfDisease.vue Parādīt failu

@@ -132,30 +132,26 @@ export default {
132 132
 
133 133
 
134 134
 
135
-
136
-      var year = new Date().getFullYear()
137
-      var month = new Date().getMonth() + 1
138
-      var day = new Date().getDate()
139
-      if (parseInt(month) < 10) {
140
-        month = '0' + month
141
-      }
142
-      if (parseInt(day) < 10) {
143
-        day = '0' + day
144
-      }
145
-      const endTime = year + '-' + month + '-' + day
146
-      this.end_time = endTime
147
-
148
-      var year = new Date().getFullYear()
149
-      var month = new Date().getMonth()
150
-      var day = new Date().getDate()
151
-      if (parseInt(month) < 10) {
152
-        month = '0' + month
153
-      }
154
-      if (parseInt(day) < 10) {
155
-        day = '0' + day
156
-      }
157
-      const startTime = year + '-' + month + '-' + day
158
-      this.start_time = startTime
135
+      var nowDate = new Date();
136
+      var nowYear = nowDate.getFullYear();
137
+      var nowMonth = nowDate.getMonth() + 1;
138
+      var nowDay = nowDate.getDate();
139
+      this.end_time =
140
+        nowYear +
141
+        "-" +
142
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
143
+        "-" +
144
+        (nowDay < 10 ? "0" + nowDay : nowDay);
145
+      nowDate.setMonth(nowDate.getMonth() - 1);
146
+      nowYear = nowDate.getFullYear();
147
+      nowMonth = nowDate.getMonth() + 1;
148
+      nowDay = nowDate.getDate();
149
+      this.start_time =
150
+        nowYear +
151
+        "-" +
152
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
153
+        "-" +
154
+        (nowDay < 10 ? "0" + nowDay : nowDay);
159 155
 
160 156
 
161 157
       this.requestCourseRecords()

+ 4 - 0
src/xt_pages/user/patients.vue Parādīt failu

@@ -385,6 +385,10 @@
385 385
 
386 386
     methods: {
387 387
       EditLapseto() {
388
+        if (this.lapsetoForm.lapseto_time == ''){
389
+          this.$message.error("请选择时间")
390
+          return
391
+        }
388 392
         EditLapseto(this.lapsetoForm.patient_id, this.lapsetoForm).then(response => {
389 393
           if (response.data.state === 1) {
390 394
             this.$notify({

+ 20 - 26
src/xt_pages/user/rescueRecord.vue Parādīt failu

@@ -123,32 +123,26 @@
123 123
         this.$router.push('/patients/patients')
124 124
         return
125 125
       }
126
-      var now = new Date()
127
-      this.date = [now.getTime() - (7 * 24 * 60 * 60 * 1000), now.getTime()]
128
-
129
-      var year = new Date().getFullYear()
130
-      var month = new Date().getMonth() + 1
131
-      var day = new Date().getDate()
132
-      if (parseInt(month) < 10) {
133
-        month = '0' + month
134
-      }
135
-      if (parseInt(day) < 10) {
136
-        day = '0' + day
137
-      }
138
-      const endTime = year + '-' + month + '-' + day
139
-      this.end_time = endTime
140
-
141
-      var year = new Date().getFullYear()
142
-      var month = new Date().getMonth()
143
-      var day = new Date().getDate()
144
-      if (parseInt(month) < 10) {
145
-        month = '0' + month
146
-      }
147
-      if (parseInt(day) < 10) {
148
-        day = '0' + day
149
-      }
150
-      const startTime = year + '-' + month + '-' + day
151
-      this.start_time = startTime
126
+      var nowDate = new Date();
127
+      var nowYear = nowDate.getFullYear();
128
+      var nowMonth = nowDate.getMonth() + 1;
129
+      var nowDay = nowDate.getDate();
130
+      this.end_time =
131
+        nowYear +
132
+        "-" +
133
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
134
+        "-" +
135
+        (nowDay < 10 ? "0" + nowDay : nowDay);
136
+      nowDate.setMonth(nowDate.getMonth() - 1);
137
+      nowYear = nowDate.getFullYear();
138
+      nowMonth = nowDate.getMonth() + 1;
139
+      nowDay = nowDate.getDate();
140
+      this.start_time =
141
+        nowYear +
142
+        "-" +
143
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
144
+        "-" +
145
+        (nowDay < 10 ? "0" + nowDay : nowDay);
152 146
 
153 147
       this.requestRescueRecords()
154 148
     },

+ 13 - 13
src/xt_permission.js Parādīt failu

@@ -10,19 +10,19 @@ const permissionWhiteList = loginWhiteList.concat(['/']) // 权限验证白名
10 10
 
11 11
 router.beforeEach((to, from, next) => {
12 12
   // 线上注释
13
-  // if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
14
-  //   store.dispatch('VerifyConfigList', []).then(() => {
15
-  //     next()
16
-  //   })
17
-  // }
18
-  // if (store.getters.permission_routers === undefined) {
19
-  //   store.dispatch('xt_GenerateRoutes', []).then(() => {
20
-  //     next()
21
-  //   })
22
-  // } else {
23
-  //   next()
24
-  // }
25
-  // return
13
+  if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
14
+    store.dispatch('VerifyConfigList', []).then(() => {
15
+      next()
16
+    })
17
+  }
18
+  if (store.getters.permission_routers === undefined) {
19
+    store.dispatch('xt_GenerateRoutes', []).then(() => {
20
+      next()
21
+    })
22
+  } else {
23
+    next()
24
+  }
25
+  return
26 26
   // 线上注释
27 27
 
28 28
   NProgress.start()