Commit a681a5c7 authored by jiangqihao's avatar jiangqihao

总代理商

parent f07288a7
......@@ -48,18 +48,10 @@ export default {
Name: {
type: 'lov',
label: '公司全称',
layout: 24,
layout: 16,
code: 'qcc',
displayKey:'Name',
returnFn: function(row) {
// let resDate = await qccGetOne({searchKey:row.CreditCode})
// let resDates = {
// Name: resDate.results.Result.Name,
// ExtSocialUnifiedCreditCode_SDK: resDate.results.Result.CreditCode,
// ExtCorporateName_SDK: resDate.results.Result.OperName,
// ExtRegisteredCapital_SDK: resDate.results.Result.RegistCapi
// }
// console.log(resDates)
// return resDates
return {
Name: row.Name,
ExtSocialUnifiedCreditCode_SDK: row.CreditCode,
......@@ -70,27 +62,28 @@ export default {
ExtSecondName_SDK: {
type: 'input',
label: '公司全称曾用名',
layout: 12,
layout: 10,
},
ExtSocialUnifiedCreditCode_SDK: {
type: 'input',
label: '社会统一信用代码',
layout: 12
layout: 10
},
ExtRegisteredCapital_SDK: {
type: 'input',
label: '注册资本(万元)',
layout: 12,
layout: 10,
default: ''
},
ExtCorporateName_SDK: {
type: 'input',
label: '法人',
layout: 12,
layout: 10,
},
// Ext_QuoteOppotunity_KUT: {
// type: 'input',
// label: '税务登记编号',
// layout: 12
// layout: 10
// },
}
},
......@@ -100,7 +93,7 @@ export default {
ExtProvince_SDK: {
type: 'select',
label: '省份',
layout: 12,
layout: 10,
options: async data => {
const res = await provinceSearch({})
var result = res.results.map(item => {
......@@ -115,7 +108,7 @@ export default {
ExtCity_SDK: {
type: 'select',
label: '地市',
layout: 12,
layout: 10,
isOptions: true,
optionsLinkageFields: ['ExtProvince_SDK'],
options: async data => {
......@@ -137,7 +130,7 @@ export default {
ExtDistrict_SDK: {
type: 'select',
label: '县市',
layout: 12,
layout: 10,
isOptions: true,
optionsLinkageFields: ['ExtProvince_SDK', 'ExtCity_SDK'],
options: async data => {
......@@ -159,7 +152,7 @@ export default {
ExtAddressDetail_SDK: {
type: 'input',
label: '详细经营地址',
layout: 12,
layout: 10,
},
}
},
......@@ -169,47 +162,47 @@ export default {
ExtLeader_SDK: {
type: 'input',
label: '公司负责人姓名',
layout: 12
layout: 10
},
ExtLeaderPhone_SDK: {
type: 'input',
label: '公司负责人联系方式',
layout: 12
layout: 10
},
ExtLeaderEmail_SDK: {
type: 'input',
label: '公司负责人邮箱',
layout: 12
layout: 10
},
ExtUnis_SDK: {
type: 'input',
layout: 12,
layout: 10,
label: 'Unis业务负责人姓名'
},
ExtUnisPhone_SDK: {
type: 'input',
layout: 12,
layout: 10,
label: 'Unis业务负责人联系方式'
},
ExtUnisEmail_SDK: {
type: 'input',
label: 'Unis业务负责人邮箱',
layout: 12
layout: 10
},
ExtBusiness_SDK: {
type: 'input',
layout: 12,
layout: 10,
label: '商务负责人姓名'
},
ExtBusinessPhone_SDK: {
type: 'input',
layout: 12,
layout: 10,
label: '商务负责人联系方式'
},
ExtBusinessEmail_SDK: {
type: 'input',
label: '商务负责人邮箱',
layout: 12
layout: 10
},
}
}
......@@ -223,16 +216,31 @@ export default {
ExtProvince_SDK: { required: true, message: '省份必填' },
ExtDistrict_SDK: {required: true, message: '城市必填' },
ExtCity_SDK: { required: true, message: '县区必填' },
ExtLeader_SDK: { required: true, message: '公司负责人姓名' },
ExtLeaderPhone_SDK: { required: true, message: '公司负责人联系方式' },
ExtLeaderEmail_SDK: { required: true, message: '公司负责人邮箱' },
ExtUnis_SDK: { required: true, message: 'Unis业务负责人姓名' },
ExtUnisPhone_SDK: { required: true, message: 'Unis业务负责人联系方式' },
ExtUnisEmail_SDK: { required: true, message: 'Unis业务负责人邮箱' },
}
}
},
watch: {
'formData.ExtSocialUnifiedCreditCode_SDK': {
handler(newValue) {
console.log("单个属性监听", newValue)
this.sections[0].formDesc.ExtRegisteredCapital_SDK.default = ''
qccGetOne({searchKey: newValue}).then(res =>{
this.sections[0].formDesc.ExtRegisteredCapital_SDK.default = res.results.Result.RegistCapi
})
}
}
},
methods: {
handleSubmit (data) {
data.extCustomerType_SDK = '101'
console.log(data)
// this.addBtnStart = true
customerCreate(this.paramsToFormData(data)).then(res => {
// console.log(res)
this.addBtnStart = true
this.objectId = res.results
const objectID = res.results
......@@ -268,18 +276,18 @@ export default {
<style lang="scss" scoped>
::v-deep .el-row--flex {
display: -webkit-box;
.el-col-14 {
.el-col-16 {
width: 90%;
}
}
.basic-info {
::v-deep .ele-form-btns{
.el-form-item__content {
margin-left: 45% !important;
margin-left: 40% !important;
}
}
}
.btn {
margin-left: 45%;
margin-left: 35%;
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment