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