|
@@ -155,7 +155,7 @@
|
|
|
</el-row>
|
|
|
</div>
|
|
|
<div class="fixed__btn__panel">
|
|
|
- <el-button size="small" @click="drawer = false" class="normal-btn-width">取 消</el-button>
|
|
|
+ <el-button size="small" @click="onClose" class="normal-btn-width inline-16">取 消</el-button>
|
|
|
<duplicateCheck :data="form"></duplicateCheck>
|
|
|
<el-button size="small" type="primary" @click="onSave" class="normal-btn-width">确 定</el-button>
|
|
|
</div>
|
|
@@ -303,7 +303,27 @@ export default {
|
|
|
})
|
|
|
this.$emit('onChangeCustomer')
|
|
|
this.$refs['form'].resetFields();
|
|
|
- this.form = {}
|
|
|
+ this.form = {
|
|
|
+ "sat_orderclueid": '',
|
|
|
+ "enterprisename_customer":'',
|
|
|
+ "sa_customersid": 0, //新增是传0
|
|
|
+ "parentid": 0, //上级客户ID,默认或没有上级的时候传0
|
|
|
+ "sys_enterpriseid": 0, //合作企业档案ID,新增是传0,更新
|
|
|
+ "enterprisename": "", //客户名称(企业名称)
|
|
|
+ "type": "", //客户类型
|
|
|
+ "source": "", //客户来源
|
|
|
+ "province": "", //非必填,可选
|
|
|
+ "city": "", //非必填,可选
|
|
|
+ "county": "", //非必填,可选
|
|
|
+ "address": "", //非必填,可选
|
|
|
+ "abbreviation": "", //非必填,可选
|
|
|
+ "taxno": "", //税号,非必填,可选
|
|
|
+ "grade": '', // 客户等级(商户等级)
|
|
|
+ "industry": "", //非必填,可选,所属行业
|
|
|
+ "contact": "", //非必填,可选
|
|
|
+ "phonenumber": "", //非必填,可选
|
|
|
+ "customergrade": "", //客户等级
|
|
|
+ }
|
|
|
this.drawer = false
|
|
|
this.checkResults = ''
|
|
|
this.value = ''
|
|
@@ -321,7 +341,9 @@ export default {
|
|
|
if (this.checkResults === 0){
|
|
|
this.$emit('onChangeCustomer')
|
|
|
this.$refs['form'].resetFields();
|
|
|
- this.form = {}
|
|
|
+ this.form = {
|
|
|
+
|
|
|
+ }
|
|
|
this.drawer = false
|
|
|
this.checkResults = ''
|
|
|
this.value = ''
|
|
@@ -331,13 +353,43 @@ export default {
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
- onClose(){},
|
|
|
+ onClose(){
|
|
|
+ this.$refs['form'].resetFields();
|
|
|
+ this.form = {
|
|
|
+ "sat_orderclueid": '',
|
|
|
+ "enterprisename_customer":'',
|
|
|
+ "sa_customersid": 0, //新增是传0
|
|
|
+ "parentid": 0, //上级客户ID,默认或没有上级的时候传0
|
|
|
+ "sys_enterpriseid": 0, //合作企业档案ID,新增是传0,更新
|
|
|
+ "enterprisename": "", //客户名称(企业名称)
|
|
|
+ "type": "", //客户类型
|
|
|
+ "source": "", //客户来源
|
|
|
+ "province": "", //非必填,可选
|
|
|
+ "city": "", //非必填,可选
|
|
|
+ "county": "", //非必填,可选
|
|
|
+ "address": "", //非必填,可选
|
|
|
+ "abbreviation": "", //非必填,可选
|
|
|
+ "taxno": "", //税号,非必填,可选
|
|
|
+ "grade": '', // 客户等级(商户等级)
|
|
|
+ "industry": "", //非必填,可选,所属行业
|
|
|
+ "contact": "", //非必填,可选
|
|
|
+ "phonenumber": "", //非必填,可选
|
|
|
+ "customergrade": "", //客户等级
|
|
|
+ }
|
|
|
+ this.drawer = false
|
|
|
+ this.checkResults = ''
|
|
|
+ this.value = ''
|
|
|
+ },
|
|
|
/*获取工商信息*/
|
|
|
onBusinessData(val){
|
|
|
this.form.enterprisename_customer = val.companyName
|
|
|
this.form.enterprisename = val.companyName
|
|
|
this.form.address = val.address
|
|
|
this.form.taxno = val.taxNum
|
|
|
+ this.value = [val.regProvince,val.regCity,val.regArea]
|
|
|
+ this.form.province = val.regProvince
|
|
|
+ this.form.city = val.regCity
|
|
|
+ this.form.county = val.regArea
|
|
|
},
|
|
|
/*省市县*/
|
|
|
cascaderChange (val) {
|