Procházet zdrojové kódy

订单外部统计表和内部同济版日期问题

jbb před 2 roky
rodič
revize
bef7c7a2de

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

@@ -38,18 +38,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
         // this.queryParam.vendorType = '内部'
         cusChart(this.queryParam).then(res => {
           if (res.result) {

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

@@ -40,18 +40,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 => {
           // console.log('2', this.queryParam)

+ 2 - 0
src/views/reportForms/order-statistics/external-statistics.vue

@@ -318,6 +318,8 @@ export default {
     // 时间发生变化的回调,发生在用户选择时间时
     monthChange(value) {
       this.value = value
+      this.queryParam.startYearMonth = ''
+      this.queryParam.endYearMonth = ''
     },
 
     handleTableChange(pagination, filters, sorter) {

+ 2 - 0
src/views/reportForms/order-statistics/interior-statistics.vue

@@ -325,6 +325,8 @@ export default {
     // 时间发生变化的回调,发生在用户选择时间时
     monthChange(value) {
       this.value = value
+      this.queryParam.startYearMonth = ''
+      this.queryParam.endYearMonth = ''
     },
 
     handleTableChange(pagination, filters, sorter) {

+ 0 - 1
src/views/shipment-details/addShipDetDrawer.vue

@@ -801,7 +801,6 @@ export default {
    //输入手册纱单价或者手册纱占比时触发
    changeManualYarn(data,val){
      console.log(this.syShippingDetailsItemList)
-     debugger
      this.syShippingDetailsItemList.map(item => {
        if(data === 'Price'){item.manualYarnUnitPrice = val}
        else{item.manualYarnProportion = val}