Explorar o código

大客户报表

chenrui %!s(int64=2) %!d(string=hai) anos
pai
achega
f4d008bc5f
Modificáronse 1 ficheiros con 11 adicións e 6 borrados
  1. 11 6
      src/views/reportData/customerReport/list.vue

+ 11 - 6
src/views/reportData/customerReport/list.vue

@@ -118,7 +118,9 @@ export default {
         provinceSn: undefined, //  省
         citySn: undefined, //  市
         countySn: undefined, //  区
-        customerTypeSn: undefined // 客户类型
+        customerTypeSn: undefined, // 客户类型,
+        customerName: undefined,
+        customerSn: undefined
       },
       productType: [],
       rules: {
@@ -212,11 +214,11 @@ export default {
     },
     custSatelliteChange (v, row) {
       if (row && row.customerSn) {
-        this.queryParam.customer.customerSn = row.customerSn
-        this.queryParam.customer.customerNameCurrent = undefined
+        this.queryParam.customerSn = row.customerSn
+        this.queryParam.customerName = undefined
       } else {
-        this.queryParam.customer.customerNameCurrent = v
-        this.queryParam.customer.customerSn = undefined
+        this.queryParam.customerName = v
+        this.queryParam.customerSn = undefined
       }
     },
     //  查询
@@ -225,7 +227,7 @@ export default {
         if (valid) {
           this.$refs.table.refresh(true)
         } else {
-          console.log('error submit!!')
+          this.$message.error('添加时间不能为空!')
           return false
         }
       })
@@ -243,8 +245,11 @@ export default {
       this.queryParam.citySn = undefined
       this.queryParam.countySn = undefined
       this.queryParam.customerTypeSn = undefined
+      this.queryParam.customerSn = undefined
+      this.queryParam.customerName = undefined
       this.productType = []
       this.$refs.ruleForm.resetFields()
+      this.$refs.custSatelliteList.resetForm()
       this.totalData = null
       this.$refs.table.clearTable()
     },