XMLWAN 4 years ago
parent
commit
737528c181

+ 32 - 4
src/xt_pages/data/components/addDrugs.vue View File

208
                 </el-option>
208
                 </el-option>
209
               </el-select>
209
               </el-select>
210
             </el-form-item>
210
             </el-form-item>
211
-            <el-form-item label="代理商 : " prop="agent">
211
+            <!-- <el-form-item label="代理商 : " prop="agent">
212
               <el-input v-model="form.agent" style="width:160px;" placeholder="" maxlength="30"></el-input>
212
               <el-input v-model="form.agent" style="width:160px;" placeholder="" maxlength="30"></el-input>
213
-            </el-form-item>
213
+            </el-form-item> -->
214
+
215
+          <el-form-item label="经销商 : " prop="manufacturer" style="width:100%">
216
+             
217
+               <el-select v-model="form.dealer" style="width:100%;" filterable placeholder="请选择">
218
+                  <el-option
219
+                    v-for="(item,index) in dealer"
220
+                    :key="index"
221
+                    :label="item.dealer_name"
222
+                    :value="item.id">
223
+                  </el-option>
224
+              </el-select>
225
+           </el-form-item>
226
+
214
             <el-form-item label=""  style="display:none;">
227
             <el-form-item label=""  style="display:none;">
215
               <el-input style="width:160px;" placeholder="" maxlength="30"></el-input>
228
               <el-input style="width:160px;" placeholder="" maxlength="30"></el-input>
216
             </el-form-item>
229
             </el-form-item>
343
   import {
356
   import {
344
     getAdviceConfig,
357
     getAdviceConfig,
345
   } from '@/api/advice'
358
   } from '@/api/advice'
346
- import { getManufacturerList } from "@/api/stock";
359
+ import { getManufacturerList,GetAllConfig } from "@/api/stock";
347
   export default {
360
   export default {
348
     data() {
361
     data() {
349
       return {
362
       return {
414
           is_statistics_work: '',//是否统计工作量
427
           is_statistics_work: '',//是否统计工作量
415
           is_charge_use: '',//是否收费常用项
428
           is_charge_use: '',//是否收费常用项
416
           drug_code:'',
429
           drug_code:'',
430
+          dealer:'',
417
         },
431
         },
418
 
432
 
419
         rules: {
433
         rules: {
436
         },
450
         },
437
         page:1,
451
         page:1,
438
         limit:500,
452
         limit:500,
439
-        manufacturerList:[]
453
+        manufacturerList:[],
454
+        dealer:[]
440
       }
455
       }
441
     },
456
     },
442
     props: {
457
     props: {
599
            console.log("列表2222222",manufacturerList)
614
            console.log("列表2222222",manufacturerList)
600
            this.manufacturerList = manufacturerList
615
            this.manufacturerList = manufacturerList
601
         })
616
         })
617
+      },
618
+       GetAllConfig(){
619
+        GetAllConfig().then(response => {
620
+        if (response.data.state == 0) {
621
+          this.$message.error(response.data.msg);
622
+          return false;
623
+        } else {
624
+          this.dealer = response.data.data.dealer;
625
+          console.log("经销商",this.dealer)
626
+        }
627
+       });
602
       }
628
       }
603
     }, watch: {
629
     }, watch: {
604
       visible(val) {
630
       visible(val) {
608
     },
634
     },
609
     created(){
635
     created(){
610
       this.getlist()
636
       this.getlist()
637
+     //获取所有经销商
638
+      this.GetAllConfig()
611
     }
639
     }
612
   }
640
   }
613
 </script>
641
 </script>

+ 3 - 3
src/xt_pages/stock/Dialog/goodInfoDailog.vue View File

131
               </el-checkbox-group>
131
               </el-checkbox-group>
132
             </el-form-item>
132
             </el-form-item>
133
 
133
 
134
-           <el-form-item label="经销商 : " prop="manufacturer" style="width:100%">
134
+           <!-- <el-form-item label="经销商 : " prop="manufacturer" style="width:100%">
135
              
135
              
136
                <el-select v-model="form.dealer" style="width:100%;" filterable placeholder="请选择">
136
                <el-select v-model="form.dealer" style="width:100%;" filterable placeholder="请选择">
137
                   <el-option
137
                   <el-option
141
                     :value="item.id">
141
                     :value="item.id">
142
                   </el-option>
142
                   </el-option>
143
               </el-select>
143
               </el-select>
144
-           </el-form-item>
144
+           </el-form-item> -->
145
 
145
 
146
 
146
 
147
             <el-form-item label="备注 : " prop="name" style="width:100%;">
147
             <el-form-item label="备注 : " prop="name" style="width:100%;">
483
           return false;
483
           return false;
484
         } else {
484
         } else {
485
           this.dealer = response.data.data.dealer;
485
           this.dealer = response.data.data.dealer;
486
-          console.log("经销傻姑娘",this.dealer)
486
+          
487
         }
487
         }
488
        });
488
        });
489
       }
489
       }

+ 16 - 16
src/xt_pages/stock/cancelStockOrder.vue View File

199
     nowYear = nowDate.getFullYear();
199
     nowYear = nowDate.getFullYear();
200
     nowMonth = nowDate.getMonth() + 1;
200
     nowMonth = nowDate.getMonth() + 1;
201
     nowDay = nowDate.getDate();
201
     nowDay = nowDate.getDate();
202
-    // this.start_time =
203
-    //   nowYear +
204
-    //   "-" +
205
-    //   (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
206
-    //   "-" +
207
-    //   (nowDay < 10 ? "0" + nowDay : nowDay);
208
-    var date1 = new Date();
209
-    var date2 = new Date(date1);
202
+    this.start_time =
203
+      nowYear +
204
+      "-" +
205
+      (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
206
+      "-" +
207
+      (nowDay < 10 ? "0" + nowDay : nowDay);
208
+    // var date1 = new Date();
209
+    // var date2 = new Date(date1);
210
 
210
 
211
-    //-30为30天前,+30可以获得30天后的日期
212
-    date2.setDate(date1.getDate() - 30);
211
+    // //-30为30天前,+30可以获得30天后的日期
212
+    // date2.setDate(date1.getDate() - 30);
213
 
213
 
214
-    //30天前(月份判断是否小于10,小于10的前面+0)
215
-    var agoDay = `${date2.getFullYear()}-${date2.getMonth() + 1<10?`0${date2.getMonth() + 1}`:date2.getMonth() + 1}-${date2.getDate()}`;
214
+    // //30天前(月份判断是否小于10,小于10的前面+0)
215
+    // var agoDay = `${date2.getFullYear()}-${date2.getMonth() + 1<10?`0${date2.getMonth() + 1}`:date2.getMonth() + 1}-${date2.getDate()}`;
216
       
216
       
217
-    //当前日期
218
-    var nowDay = `${date1.getFullYear()}-${date1.getMonth() + 1<10?`0${date1.getMonth() + 1}`:date1.getMonth() + 1}-${date1.getDate()}`;
217
+    // //当前日期
218
+    // var nowDay = `${date1.getFullYear()}-${date1.getMonth() + 1<10?`0${date1.getMonth() + 1}`:date1.getMonth() + 1}-${date1.getDate()}`;
219
 
219
 
220
-     this.start_time = agoDay
221
-     console.log("333333332222",this.start_time)
220
+    //  this.start_time = agoDay
221
+    //  console.log("333333332222",this.start_time)
222
     this.GetCancelStock();
222
     this.GetCancelStock();
223
     this.GetConfigInfo();
223
     this.GetConfigInfo();
224
     this.fetchAllAdminUsers();
224
     this.fetchAllAdminUsers();

+ 16 - 16
src/xt_pages/stock/drugs/cancelDrugStockOrder.vue View File

201
     nowYear = nowDate.getFullYear();
201
     nowYear = nowDate.getFullYear();
202
     nowMonth = nowDate.getMonth() + 1;
202
     nowMonth = nowDate.getMonth() + 1;
203
     nowDay = nowDate.getDate();
203
     nowDay = nowDate.getDate();
204
-    // this.start_time =
205
-    //   nowYear +
206
-    //   "-" +
207
-    //   (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
208
-    //   "-" +
209
-    //   (nowDay < 10 ? "0" + nowDay : nowDay);
204
+    this.start_time =
205
+      nowYear +
206
+      "-" +
207
+      (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
208
+      "-" +
209
+      (nowDay < 10 ? "0" + nowDay : nowDay);
210
    
210
    
211
-    var date1 = new Date();
212
-    var date2 = new Date(date1);
211
+    // var date1 = new Date();
212
+    // var date2 = new Date(date1);
213
 
213
 
214
-    //-30为30天前,+30可以获得30天后的日期
215
-    date2.setDate(date1.getDate() - 30);
214
+    // //-30为30天前,+30可以获得30天后的日期
215
+    // date2.setDate(date1.getDate() - 30);
216
 
216
 
217
-    //30天前(月份判断是否小于10,小于10的前面+0)
218
-    var agoDay = `${date2.getFullYear()}-${date2.getMonth() + 1<10?`0${date2.getMonth() + 1}`:date2.getMonth() + 1}-${date2.getDate()}`;
217
+    // //30天前(月份判断是否小于10,小于10的前面+0)
218
+    // var agoDay = `${date2.getFullYear()}-${date2.getMonth() + 1<10?`0${date2.getMonth() + 1}`:date2.getMonth() + 1}-${date2.getDate()}`;
219
       
219
       
220
-    //当前日期
221
-    var nowDay = `${date1.getFullYear()}-${date1.getMonth() + 1<10?`0${date1.getMonth() + 1}`:date1.getMonth() + 1}-${date1.getDate()}`;
220
+    // //当前日期
221
+    // var nowDay = `${date1.getFullYear()}-${date1.getMonth() + 1<10?`0${date1.getMonth() + 1}`:date1.getMonth() + 1}-${date1.getDate()}`;
222
 
222
 
223
-     this.start_time = agoDay
224
-     console.log("333333332222",this.start_time)
223
+    //  this.start_time = agoDay
224
+    //  console.log("333333332222",this.start_time)
225
     this.GetCancelStock();
225
     this.GetCancelStock();
226
     this.GetConfigInfo();
226
     this.GetConfigInfo();
227
     this.fetchAllAdminUsers();
227
     this.fetchAllAdminUsers();

+ 16 - 16
src/xt_pages/stock/drugs/drugSalesReturnOrder.vue View File

197
     nowYear = nowDate.getFullYear();
197
     nowYear = nowDate.getFullYear();
198
     nowMonth = nowDate.getMonth() + 1;
198
     nowMonth = nowDate.getMonth() + 1;
199
     nowDay = nowDate.getDate();
199
     nowDay = nowDate.getDate();
200
-    // this.start_time =
201
-    //   nowYear +
202
-    //   "-" +
203
-    //   (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
204
-    //   "-" +
205
-    //   (nowDay < 10 ? "0" + nowDay : nowDay);
200
+    this.start_time =
201
+      nowYear +
202
+      "-" +
203
+      (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
204
+      "-" +
205
+      (nowDay < 10 ? "0" + nowDay : nowDay);
206
     
206
     
207
-    var date1 = new Date();
208
-    var date2 = new Date(date1);
207
+    // var date1 = new Date();
208
+    // var date2 = new Date(date1);
209
 
209
 
210
-    //-30为30天前,+30可以获得30天后的日期
211
-    date2.setDate(date1.getDate() - 30);
210
+    // //-30为30天前,+30可以获得30天后的日期
211
+    // date2.setDate(date1.getDate() - 30);
212
 
212
 
213
-    //30天前(月份判断是否小于10,小于10的前面+0)
214
-    var agoDay = `${date2.getFullYear()}-${date2.getMonth() + 1<10?`0${date2.getMonth() + 1}`:date2.getMonth() + 1}-${date2.getDate()}`;
213
+    // //30天前(月份判断是否小于10,小于10的前面+0)
214
+    // var agoDay = `${date2.getFullYear()}-${date2.getMonth() + 1<10?`0${date2.getMonth() + 1}`:date2.getMonth() + 1}-${date2.getDate()}`;
215
       
215
       
216
-    //当前日期
217
-    var nowDay = `${date1.getFullYear()}-${date1.getMonth() + 1<10?`0${date1.getMonth() + 1}`:date1.getMonth() + 1}-${date1.getDate()}`;
216
+    // //当前日期
217
+    // var nowDay = `${date1.getFullYear()}-${date1.getMonth() + 1<10?`0${date1.getMonth() + 1}`:date1.getMonth() + 1}-${date1.getDate()}`;
218
 
218
 
219
-     this.start_time = agoDay
220
-     console.log("333333332222",this.start_time)
219
+    //  this.start_time = agoDay
220
+    //  console.log("333333332222",this.start_time)
221
     this.GetSalesReturn();
221
     this.GetSalesReturn();
222
     this.GetConfigInfo();
222
     this.GetConfigInfo();
223
     this.fetchAllAdminUsers();
223
     this.fetchAllAdminUsers();

+ 16 - 16
src/xt_pages/stock/drugs/drugStockInOrder.vue View File

315
     nowYear = nowDate.getFullYear();
315
     nowYear = nowDate.getFullYear();
316
     nowMonth = nowDate.getMonth() + 1;
316
     nowMonth = nowDate.getMonth() + 1;
317
     nowDay = nowDate.getDate();
317
     nowDay = nowDate.getDate();
318
-    // this.start_time =
319
-    //   nowYear +
320
-    //   "-" +
321
-    //   (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
322
-    //   "-" +
323
-    //   (nowDay < 10 ? "0" + nowDay : nowDay);
318
+    this.start_time =
319
+      nowYear +
320
+      "-" +
321
+      (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
322
+      "-" +
323
+      (nowDay < 10 ? "0" + nowDay : nowDay);
324
     
324
     
325
-    var date1 = new Date();
326
-    var date2 = new Date(date1);
325
+    // var date1 = new Date();
326
+    // var date2 = new Date(date1);
327
 
327
 
328
-    //-30为30天前,+30可以获得30天后的日期
329
-    date2.setDate(date1.getDate() - 30);
328
+    // //-30为30天前,+30可以获得30天后的日期
329
+    // date2.setDate(date1.getDate() - 30);
330
 
330
 
331
-    //30天前(月份判断是否小于10,小于10的前面+0)
332
-    var agoDay = `${date2.getFullYear()}-${date2.getMonth() + 1<10?`0${date2.getMonth() + 1}`:date2.getMonth() + 1}-${date2.getDate()}`;
331
+    // //30天前(月份判断是否小于10,小于10的前面+0)
332
+    // var agoDay = `${date2.getFullYear()}-${date2.getMonth() + 1<10?`0${date2.getMonth() + 1}`:date2.getMonth() + 1}-${date2.getDate()}`;
333
       
333
       
334
-    //当前日期
335
-    var nowDay = `${date1.getFullYear()}-${date1.getMonth() + 1<10?`0${date1.getMonth() + 1}`:date1.getMonth() + 1}-${date1.getDate()}`;
334
+    // //当前日期
335
+    // var nowDay = `${date1.getFullYear()}-${date1.getMonth() + 1<10?`0${date1.getMonth() + 1}`:date1.getMonth() + 1}-${date1.getDate()}`;
336
 
336
 
337
-     this.start_time = agoDay
338
-     console.log("333333332222",this.start_time)
337
+    //  this.start_time = agoDay
338
+    //  console.log("333333332222",this.start_time)
339
     this.GetWarehouse();
339
     this.GetWarehouse();
340
     this.GetConfigInfo();
340
     this.GetConfigInfo();
341
     this.fetchAllAdminUsers();
341
     this.fetchAllAdminUsers();

+ 18 - 18
src/xt_pages/stock/drugs/drugStockOutOrder.vue View File

379
     nowYear = nowDate.getFullYear();
379
     nowYear = nowDate.getFullYear();
380
     nowMonth = nowDate.getMonth() + 1;
380
     nowMonth = nowDate.getMonth() + 1;
381
     nowDay = nowDate.getDate();
381
     nowDay = nowDate.getDate();
382
-    // this.start_time =
383
-    //   nowYear +
384
-    //   "-" +
385
-    //   (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
386
-    //   "-" +
387
-    //   (nowDay < 10 ? "0" + nowDay : nowDay);
388
-       var date1 = new Date();
389
-    var date2 = new Date(date1);
390
-
391
-    //-30为30天前,+30可以获得30天后的日期
392
-    date2.setDate(date1.getDate() - 30);
393
-
394
-    //30天前(月份判断是否小于10,小于10的前面+0)
395
-    var agoDay = `${date2.getFullYear()}-${date2.getMonth() + 1<10?`0${date2.getMonth() + 1}`:date2.getMonth() + 1}-${date2.getDate()}`;
382
+    this.start_time =
383
+      nowYear +
384
+      "-" +
385
+      (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
386
+      "-" +
387
+      (nowDay < 10 ? "0" + nowDay : nowDay);
388
+    //    var date1 = new Date();
389
+    // var date2 = new Date(date1);
390
+
391
+    // //-30为30天前,+30可以获得30天后的日期
392
+    // date2.setDate(date1.getDate() - 30);
393
+
394
+    // //30天前(月份判断是否小于10,小于10的前面+0)
395
+    // var agoDay = `${date2.getFullYear()}-${date2.getMonth() + 1<10?`0${date2.getMonth() + 1}`:date2.getMonth() + 1}-${date2.getDate()}`;
396
       
396
       
397
-    //当前日期
398
-    var nowDay = `${date1.getFullYear()}-${date1.getMonth() + 1<10?`0${date1.getMonth() + 1}`:date1.getMonth() + 1}-${date1.getDate()}`;
397
+    // //当前日期
398
+    // var nowDay = `${date1.getFullYear()}-${date1.getMonth() + 1<10?`0${date1.getMonth() + 1}`:date1.getMonth() + 1}-${date1.getDate()}`;
399
 
399
 
400
-     this.start_time = agoDay
401
-     console.log("333333332222",this.start_time)
400
+    //  this.start_time = agoDay
401
+    //  console.log("333333332222",this.start_time)
402
     this.GetWarehouseOut();
402
     this.GetWarehouseOut();
403
     this.GetConfigInfo();
403
     this.GetConfigInfo();
404
     this.fetchAllAdminUsers();
404
     this.fetchAllAdminUsers();

+ 16 - 16
src/xt_pages/stock/salesReturnOrder.vue View File

198
     nowYear = nowDate.getFullYear();
198
     nowYear = nowDate.getFullYear();
199
     nowMonth = nowDate.getMonth() + 1;
199
     nowMonth = nowDate.getMonth() + 1;
200
     nowDay = nowDate.getDate();
200
     nowDay = nowDate.getDate();
201
-    // this.start_time =
202
-    //   nowYear +
203
-    //   "-" +
204
-    //   (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
205
-    //   "-" +
206
-    //   (nowDay < 10 ? "0" + nowDay : nowDay);
201
+    this.start_time =
202
+      nowYear +
203
+      "-" +
204
+      (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
205
+      "-" +
206
+      (nowDay < 10 ? "0" + nowDay : nowDay);
207
     
207
     
208
-    var date1 = new Date();
209
-    var date2 = new Date(date1);
208
+    // var date1 = new Date();
209
+    // var date2 = new Date(date1);
210
 
210
 
211
-    //-30为30天前,+30可以获得30天后的日期
212
-    date2.setDate(date1.getDate() - 30);
211
+    // //-30为30天前,+30可以获得30天后的日期
212
+    // date2.setDate(date1.getDate() - 30);
213
 
213
 
214
-    //30天前(月份判断是否小于10,小于10的前面+0)
215
-    var agoDay = `${date2.getFullYear()}-${date2.getMonth() + 1<10?`0${date2.getMonth() + 1}`:date2.getMonth() + 1}-${date2.getDate()}`;
214
+    // //30天前(月份判断是否小于10,小于10的前面+0)
215
+    // var agoDay = `${date2.getFullYear()}-${date2.getMonth() + 1<10?`0${date2.getMonth() + 1}`:date2.getMonth() + 1}-${date2.getDate()}`;
216
       
216
       
217
-    //当前日期
218
-    var nowDay = `${date1.getFullYear()}-${date1.getMonth() + 1<10?`0${date1.getMonth() + 1}`:date1.getMonth() + 1}-${date1.getDate()}`;
217
+    // //当前日期
218
+    // var nowDay = `${date1.getFullYear()}-${date1.getMonth() + 1<10?`0${date1.getMonth() + 1}`:date1.getMonth() + 1}-${date1.getDate()}`;
219
 
219
 
220
-     this.start_time = agoDay
221
-     console.log("333333332222",this.start_time)
220
+    //  this.start_time = agoDay
221
+    //  console.log("333333332222",this.start_time)
222
     this.GetSalesReturn();
222
     this.GetSalesReturn();
223
     this.GetConfigInfo();
223
     this.GetConfigInfo();
224
     this.fetchAllAdminUsers();
224
     this.fetchAllAdminUsers();

+ 16 - 16
src/xt_pages/stock/stockInOrder.vue View File

589
     nowYear = nowDate.getFullYear();
589
     nowYear = nowDate.getFullYear();
590
     nowMonth = nowDate.getMonth() + 1;
590
     nowMonth = nowDate.getMonth() + 1;
591
     nowDay = nowDate.getDate();
591
     nowDay = nowDate.getDate();
592
-    // this.start_time =
593
-    //   nowYear +
594
-    //   "-" +
595
-    //   (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
596
-    //   "-" +
597
-    //   (nowDay < 10 ? "0" + nowDay : nowDay);
592
+    this.start_time =
593
+      nowYear +
594
+      "-" +
595
+      (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
596
+      "-" +
597
+      (nowDay < 10 ? "0" + nowDay : nowDay);
598
      
598
      
599
   
599
   
600
-    var date1 = new Date();
601
-    var date2 = new Date(date1);
600
+    // var date1 = new Date();
601
+    // var date2 = new Date(date1);
602
 
602
 
603
-    //-30为30天前,+30可以获得30天后的日期
604
-    date2.setDate(date1.getDate() - 30);
603
+    // //-30为30天前,+30可以获得30天后的日期
604
+    // date2.setDate(date1.getDate() - 30);
605
 
605
 
606
-    //30天前(月份判断是否小于10,小于10的前面+0)
607
-    var agoDay = `${date2.getFullYear()}-${date2.getMonth() + 1<10?`0${date2.getMonth() + 1}`:date2.getMonth() + 1}-${date2.getDate()}`;
606
+    // //30天前(月份判断是否小于10,小于10的前面+0)
607
+    // var agoDay = `${date2.getFullYear()}-${date2.getMonth() + 1<10?`0${date2.getMonth() + 1}`:date2.getMonth() + 1}-${date2.getDate()}`;
608
       
608
       
609
-    //当前日期
610
-    var nowDay = `${date1.getFullYear()}-${date1.getMonth() + 1<10?`0${date1.getMonth() + 1}`:date1.getMonth() + 1}-${date1.getDate()}`;
609
+    // //当前日期
610
+    // var nowDay = `${date1.getFullYear()}-${date1.getMonth() + 1<10?`0${date1.getMonth() + 1}`:date1.getMonth() + 1}-${date1.getDate()}`;
611
 
611
 
612
-     this.start_time = agoDay
613
-     console.log("333333332222",this.start_time)
612
+    //  this.start_time = agoDay
613
+    //  console.log("333333332222",this.start_time)
614
 
614
 
615
       // this.warehousing_time =
615
       // this.warehousing_time =
616
       //   nowYear +
616
       //   nowYear +

+ 17 - 17
src/xt_pages/stock/stockOutOrder.vue View File

554
 
554
 
555
 
555
 
556
       
556
       
557
-    var date1 = new Date();
558
-    var date2 = new Date(date1);
557
+    // var date1 = new Date();
558
+    // var date2 = new Date(date1);
559
 
559
 
560
-    //-30为30天前,+30可以获得30天后的日期
561
-    date2.setDate(date1.getDate() - 30);
560
+    // //-30为30天前,+30可以获得30天后的日期
561
+    // date2.setDate(date1.getDate() - 30);
562
 
562
 
563
-    //30天前(月份判断是否小于10,小于10的前面+0)
564
-    var agoDay = `${date2.getFullYear()}-${date2.getMonth() + 1<10?`0${date2.getMonth() + 1}`:date2.getMonth() + 1}-${date2.getDate()}`;
563
+    // //30天前(月份判断是否小于10,小于10的前面+0)
564
+    // var agoDay = `${date2.getFullYear()}-${date2.getMonth() + 1<10?`0${date2.getMonth() + 1}`:date2.getMonth() + 1}-${date2.getDate()}`;
565
       
565
       
566
-    //当前日期
567
-    var nowDay = `${date1.getFullYear()}-${date1.getMonth() + 1<10?`0${date1.getMonth() + 1}`:date1.getMonth() + 1}-${date1.getDate()}`;
568
-
569
-     this.start_time = agoDay
570
-     console.log("333333332222",this.start_time)
571
-    // this.start_time =
572
-    //   nowYear +
573
-    //   "-" +
574
-    //   (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
575
-    //   "-" +
576
-    //   (nowDay < 10 ? "0" + nowDay : nowDay);
566
+    // //当前日期
567
+    // var nowDay = `${date1.getFullYear()}-${date1.getMonth() + 1<10?`0${date1.getMonth() + 1}`:date1.getMonth() + 1}-${date1.getDate()}`;
568
+
569
+    //  this.start_time = agoDay
570
+    //  console.log("333333332222",this.start_time)
571
+    this.start_time =
572
+      nowYear +
573
+      "-" +
574
+      (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
575
+      "-" +
576
+      (nowDay < 10 ? "0" + nowDay : nowDay);
577
     this.GetConfigInfo();
577
     this.GetConfigInfo();
578
     this.GetWarehouseOut();
578
     this.GetWarehouseOut();
579
    
579