Bladeren bron

去掉默认日期

fenghaifu 3 jaren geleden
bovenliggende
commit
aa494f083d

BIN
dist.zip


+ 11 - 11
src/views/reportForms/order-statistics/chart/external/customerChart.vue

@@ -39,18 +39,18 @@ export default {
     // 初次加载
     firstCusData() {
       this.$nextTick(() => {
-        let nowDate = new Date()
-        let date = {
-          year: nowDate.getFullYear(),
-          month: nowDate.getMonth() + 1
-        }
-        if (date.month >= 1 && date.month <= 9) {
-          date.month = '0' + date.month
-        }
-        var time = date.year + '-' + date.month
+        //let nowDate = new Date()
+        //let date = {
+        //  year: nowDate.getFullYear(),
+        //  month: nowDate.getMonth() + 1
+        //}
+        //if (date.month >= 1 && date.month <= 9) {
+        //  date.month = '0' + date.month
+        //}
+        //var time = date.year + '-' + date.month
 
-        this.queryParam.startYearMonth = time
-        this.queryParam.endYearMonth = time
+        //this.queryParam.startYearMonth = time
+        //this.queryParam.endYearMonth = time
         cusChart(this.queryParam).then(res => {
           if (res.result) {
             // console.log('部门统计图数据', res.result)

+ 11 - 11
src/views/reportForms/order-statistics/chart/external/departmentChart.vue

@@ -38,18 +38,18 @@ export default {
     // 初次加载
     firstDepData() {
       this.$nextTick(() => {
-        let nowDate = new Date()
-        let date = {
-          year: nowDate.getFullYear(),
-          month: nowDate.getMonth() + 1
-        }
-        if (date.month >= 1 && date.month <= 9) {
-          date.month = '0' + date.month
-        }
-        var time = date.year + '-' + date.month
+        //let nowDate = new Date()
+        //let date = {
+        //  year: nowDate.getFullYear(),
+        //  month: nowDate.getMonth() + 1
+        //}
+        //if (date.month >= 1 && date.month <= 9) {
+        //  date.month = '0' + date.month
+        //}
+        //var time = date.year + '-' + date.month
 
-        this.queryParam.startYearMonth = time
-        this.queryParam.endYearMonth = time
+        //this.queryParam.startYearMonth = time
+        //this.queryParam.endYearMonth = time
         // this.queryParam.vendorType = '内部'
         depChart(this.queryParam).then(res => {
           if (res.result) {

+ 6 - 6
src/views/reportForms/order-statistics/external-statistics.vue

@@ -202,9 +202,9 @@ export default {
   created() {
     // 初次加载当月数据
     this.getThisMonthData();
-    this.value = [];
-    this.value.push(myFormatDate(new Date(),"yyyy-MM"));
-    this.value.push(myFormatDate(new Date(),"yyyy-MM"));
+    //this.value = [];
+    //this.value.push(myFormatDate(new Date(),"yyyy-MM"));
+    //this.value.push(myFormatDate(new Date(),"yyyy-MM"));
 
   },
   computed: {},
@@ -220,10 +220,10 @@ export default {
         if (date.month >= 1 && date.month <= 9) {
           date.month = '0' + date.month
         }
-        this.defaultMonth = date.year + '-' + date.month
+        //this.defaultMonth = date.year + '-' + date.month
 
-        this.queryParam.startYearMonth = this.defaultMonth
-        this.queryParam.endYearMonth = this.defaultMonth
+        //this.queryParam.startYearMonth = this.defaultMonth
+        //this.queryParam.endYearMonth = this.defaultMonth
         this.queryParam.vendorType = '外部'
 
         externalList(this.queryParam).then(res => {

+ 15 - 15
src/views/reportForms/order-statistics/interior-statistics.vue

@@ -206,27 +206,27 @@ export default {
   created() {
     // 初次加载当月数据
     this.getThisMonthData();
-    this.value = [];
-    this.value.push(myFormatDate(new Date(),"yyyy-MM"));
-    this.value.push(myFormatDate(new Date(),"yyyy-MM"));
+    //this.value = [];
+    //this.value.push(myFormatDate(new Date(),"yyyy-MM"));
+    //this.value.push(myFormatDate(new Date(),"yyyy-MM"));
   },
 
   methods: {
     // 初次加载当月数据(列表、图)
     getThisMonthData() {
       this.$nextTick(() => {
-        let nowDate = new Date()
-        let date = {
-          year: nowDate.getFullYear(),
-          month: nowDate.getMonth() + 1
-        }
-        if (date.month >= 1 && date.month <= 9) {
-          date.month = '0' + date.month
-        }
-        var time = date.year + '-' + date.month
-
-        this.queryParam.startYearMonth = time
-        this.queryParam.endYearMonth = time
+        //let nowDate = new Date()
+        //let date = {
+        //  year: nowDate.getFullYear(),
+        //  month: nowDate.getMonth() + 1
+        //}
+        //if (date.month >= 1 && date.month <= 9) {
+        //  date.month = '0' + date.month
+        //}
+        //var time = date.year + '-' + date.month
+
+        //this.queryParam.startYearMonth = time
+        //this.queryParam.endYearMonth = time
 
         this.queryParam.vendorType = '内部'
         externalList(this.queryParam).then(res => {

+ 1 - 1
src/views/reportForms/supply-capacity-table.vue

@@ -13,7 +13,7 @@
             </a-col>
 
             <a-col :md="6" :sm="8">
-              <a-form-item label="起日期">
+              <a-form-item label="起日期">
                 <a-range-picker
                   style="width: 100%"
                   v-model="queryParam.timeRange"