liangy 3 роки тому
батько
коміт
20e6bf4a46

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

@@ -13,10 +13,8 @@ export default {
     return {
       queryParam: {
         vendorType: '外部',
-        pageNo: '',
         startYearMonth: '',
         endYearMonth: '',
-        department: '',
         customer: ''
       },
       // newData: {
@@ -35,6 +33,7 @@ export default {
   methods: {
     // 1、先获取 chart 数据
     getChartData() {
+      // 
       cusChart(this.queryParam).then(res => {
         if (res.success) {
           if (res.result) {

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

@@ -14,11 +14,9 @@ export default {
     return {
       queryParam: {
         vendorType: '外部',
-        pageNo: '',
         startYearMonth: '',
         endYearMonth: '',
         department: '',
-        customer: ''
       },
       // newData: {
       departmentArr: [], //部门 数组
@@ -36,6 +34,7 @@ export default {
   methods: {
     // 1、先获取 chart 数据
     getDepChartData() {
+      // 
       depChart(this.queryParam).then(res => {
         if (res.result) {
           res.result.records.forEach(item => {

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

@@ -35,6 +35,7 @@ export default {
   methods: {
     // 1、先获取 chart 数据
     getChartData() {
+      // 
       cusChart(this.queryParam).then(res => {
         if (res.success) {
           if (res.result) {

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

@@ -36,7 +36,8 @@ export default {
   methods: {
     // 1、先获取 chart 数据
     getDepChartData() {
-      depChart(this.queryParam).then(res => {
+      // this.queryParam
+      depChart().then(res => {
         if (res.result) {
           res.result.records.forEach(item => {
             this.departmentArr.push(item.departmentArr)

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

@@ -229,11 +229,11 @@ export default {
 
     searchQuery() {
       this.queryParam.pageNo = ''
-      if (this.queryParam) {
-        console.log('指定查询条件,渲染chart', this.queryParam)
-        this.$refs.departmentChart.queryParam = this.queryParam
-        this.$refs.departmentChart.getDepChartData()
-      }
+      // if (this.queryParam) {
+      //   console.log('指定查询条件,渲染chart', this.queryParam)
+      //   this.$refs.departmentChart.queryParam = this.queryParam
+      //   this.$refs.departmentChart.getDepChartData()
+      // }
       this.getExternalData()
     },
     // 日期面板变化时的回调