Commit a681a5c7 authored by jiangqihao's avatar jiangqihao

总代理商

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