Commit 06c249ad authored by qinj's avatar qinj

注册界面修改

parent 03e21c7d
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<el-form-item label="公司全称:" <el-form-item label="公司全称:"
label-width="150px" label-width="150px"
> >
<el-input v-model="formData.Name" <el-input v-model="formData.name"
readonly readonly
placeholder='请选择公司' placeholder='请选择公司'
style="width: 100%"> style="width: 100%">
...@@ -283,7 +283,7 @@ ...@@ -283,7 +283,7 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col align="center"> <el-col align="center">
<el-button type="primary" :loading="loading" @click="handleApprove">提交</el-button> <el-button type="primary" :loading="btnloading" @click="handleApprove">提交</el-button>
</el-col> </el-col>
</el-row> </el-row>
</el-form> </el-form>
...@@ -350,7 +350,7 @@ export default { ...@@ -350,7 +350,7 @@ export default {
inputEnter: false, inputEnter: false,
countryArea: '', countryArea: '',
title: '城市代理商注册', title: '城市代理商注册',
loading: false, btnloading: false,
formInline: {}, formInline: {},
recordList: [], recordList: [],
tableData: [], tableData: [],
...@@ -425,7 +425,7 @@ export default { ...@@ -425,7 +425,7 @@ export default {
this.$request(Qcc.detailUrl, this.page).then((resp) => { this.$request(Qcc.detailUrl, this.page).then((resp) => {
this.formData.extCorporateName_SDK = row.OperName this.formData.extCorporateName_SDK = row.OperName
this.formData.extSocialUnifiedCreditCode_SDK = row.CreditCode this.formData.extSocialUnifiedCreditCode_SDK = row.CreditCode
this.formData.Name = row.Name this.formData.name = row.Name
this.formData.extRegisteredCapital_SDK=resp.results.Result.RegistCapi this.formData.extRegisteredCapital_SDK=resp.results.Result.RegistCapi
this.dialogTableVisible = false this.dialogTableVisible = false
}) })
...@@ -443,20 +443,14 @@ export default { ...@@ -443,20 +443,14 @@ export default {
// this.formData.extDistrictName_SDK=el[this.formData.extDistrict_SDK] // this.formData.extDistrictName_SDK=el[this.formData.extDistrict_SDK]
// }) // })
this.formData.ExtCustomerType_SDK=111 this.formData.ExtCustomerType_SDK=111
this.loading=true this.btnloading=true
this.$request(Customer.searchUrl,this.paramsToFormData(this.formData)).then((resp) => { this.$request(Customer.searchUrl,this.paramsToFormData(this.formData)).then((resp) => {
this.loading=false this.btnloading=false
// console.log(resp)
if(resp.results.length<40){
this.$message.success('提交成功!') this.$message.success('提交成功!')
this.handleClickGoBack() this.$router.back()
}else{
this.loading=false
this.$message.error('提交失败!')
}
}) })
} else { } else {
this.loading=false this.btnloading=false
this.$message.warning('请输入必填信息!') this.$message.warning('请输入必填信息!')
} }
}); });
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<el-form-item label="公司全称:" <el-form-item label="公司全称:"
label-width="150px" label-width="150px"
> >
<el-input v-model="formData.Name" <el-input v-model="formData.name"
readonly readonly
placeholder='请选择公司' placeholder='请选择公司'
style="width: 100%"> style="width: 100%">
...@@ -103,7 +103,7 @@ ...@@ -103,7 +103,7 @@
prop="extProvince_SDK" prop="extProvince_SDK"
label-width="80px" label-width="80px"
> >
<el-select v-model="formData.extProvince_SDK" style="width: 91%" filterable placeholder="请选择省份" no-match-text="无匹配数据" @change="handleSelect"> <el-select v-model="formData.extProvince_SDK" style="width: 91%" filterable placeholder="请选择省份" no-match-text="无匹配数据" @change="handleSelect($event)">
<el-option <el-option
v-for="item in countryOptions" v-for="item in countryOptions"
:key="item.Code" :key="item.Code"
...@@ -135,7 +135,7 @@ ...@@ -135,7 +135,7 @@
prop="extDistrict_SDK" prop="extDistrict_SDK"
label-width="80px" label-width="80px"
> >
<el-select v-model="formData.extDistrict_SDK" style="width: 91%" filterable placeholder="请选择区" no-match-text="无匹配数据"> <el-select v-model="formData.extDistrict_SDK" style="width: 91%" filterable placeholder="请选择区" no-match-text="无匹配数据" @change="handleSelectDis">
<el-option <el-option
v-for="item in disOptions" v-for="item in disOptions"
:key="item.Code" :key="item.Code"
...@@ -275,8 +275,8 @@ ...@@ -275,8 +275,8 @@
<el-form-item label="签约信息" /> <el-form-item label="签约信息" />
</el-col> </el-col>
<el-col :span="11" :offset="1" class="padding-bottom"> <el-col :span="11" :offset="1" class="padding-bottom">
<el-form-item label="签约渠道类型:" prop="ExtChannelType_SDK" label-width="120px" > <el-form-item label="签约渠道类型:" prop="extChannelType_SDK" label-width="120px" >
<el-select v-model="formData.ExtChannelType_SDK" style="width: 91%" filterable placeholder="请选择" no-match-text="无匹配数据"> <el-select v-model="formData.extChannelType_SDK" style="width: 91%" filterable placeholder="请选择" no-match-text="无匹配数据">
<el-option <el-option
v-for="item in aOptions" v-for="item in aOptions"
:key="item.id" :key="item.id"
...@@ -287,8 +287,8 @@ ...@@ -287,8 +287,8 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12" class="padding-bottom"> <el-col :span="12" class="padding-bottom">
<el-form-item label="签约产品组:" prop="ExtProductGroup_KUT" label-width="120px" > <el-form-item label="签约产品组:" prop="extProductGroup_KUT" label-width="120px" >
<el-select v-model="formData.ExtProductGroup_KUT" style="width: 91%" multiple filterable placeholder="请选择" no-match-text="无匹配数据"> <el-select v-model="formData.extProductGroup_KUT" style="width: 91%" multiple filterable placeholder="请选择" no-match-text="无匹配数据">
<el-option <el-option
v-for="item in bOptions" v-for="item in bOptions"
:key="item.id" :key="item.id"
...@@ -299,8 +299,8 @@ ...@@ -299,8 +299,8 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="11" :offset="1" class="padding-bottom"> <el-col :span="11" :offset="1" class="padding-bottom">
<el-form-item label="签约总代:" prop="ExtTotalAgent_KUT" label-width="100px" > <el-form-item label="签约总代:" prop="extTotalAgent_KUT" label-width="100px" >
<el-select v-model="formData.ExtTotalAgent_KUT" style="width: 91%" multiple filterable placeholder="请选择" no-match-text="无匹配数据"> <el-select v-model="formData.extTotalAgent_KUT" style="width: 91%" multiple filterable placeholder="请选择" no-match-text="无匹配数据">
<el-option <el-option
v-for="item in cOptions" v-for="item in cOptions"
:key="item.id" :key="item.id"
...@@ -435,9 +435,9 @@ export default { ...@@ -435,9 +435,9 @@ export default {
extBusinessPhone_SDK: [{ required: true, message: '请输入商务负责人电话', trigger: 'blur' }], extBusinessPhone_SDK: [{ required: true, message: '请输入商务负责人电话', trigger: 'blur' }],
extBusinessEmail_SDK: [{ required: true, message: '请输入商务负责人邮箱', trigger: 'blur' }, extBusinessEmail_SDK: [{ required: true, message: '请输入商务负责人邮箱', trigger: 'blur' },
{ type: 'email', message: '请输入正确的邮箱地址', trigger: ['blur', 'change'] }], { type: 'email', message: '请输入正确的邮箱地址', trigger: ['blur', 'change'] }],
ExtChannelType_SDK: [{ required: true, message: '请选择签约渠道类型', trigger: 'blur' }], extChannelType_SDK: [{ required: true, message: '请选择签约渠道类型', trigger: 'blur' }],
ExtProductGroup_KUT: [{ required: true, message: '请选择签约产品组', trigger: 'blur' }], extProductGroup_KUT: [{ required: true, message: '请选择签约产品组', trigger: 'blur' }],
ExtTotalAgent_KUT: [{ required: true, message: '请选择签约总代', trigger: 'blur' }], extTotalAgent_KUT: [{ required: true, message: '请选择签约总代', trigger: 'blur' }],
}, },
dialogTableVisible: false, dialogTableVisible: false,
TotalRecords:0, TotalRecords:0,
...@@ -493,12 +493,33 @@ export default { ...@@ -493,12 +493,33 @@ export default {
this.$request(Country.searchCity,app).then((resp) => { this.$request(Country.searchCity,app).then((resp) => {
this.cityOptions=resp.results this.cityOptions=resp.results
}) })
let obj = {};
obj = this.countryOptions.find((item)=>{//这里的userList就是上面遍历的数据源
return item.Code === value;//筛选出匹配数据
});
this.formData.extProvinceName_SDK=obj.Name//获取的 name
this.formData.extProvince_SDK=value//获取的 id
}, },
handleSelectCity(value){ handleSelectCity(value){
const app={cityCode:value} const app={cityCode:value}
this.$request(Country.searchDis,app).then((resp) => { this.$request(Country.searchDis,app).then((resp) => {
this.disOptions=resp.results this.disOptions=resp.results
}) })
let obj = {};
obj = this.cityOptions.find((item)=>{//这里的userList就是上面遍历的数据源
return item.Code === value;//筛选出匹配数据
});
this.formData.extCityName_SDK=obj.Name//获取的 name
this.formData.extCity_SDK=value//获取的 id
},
handleSelectDis(value){
let obj = {};
obj = this.disOptions.find((item)=>{//这里的userList就是上面遍历的数据源
return item.Code === value;//筛选出匹配数据
});
this.formData.extDistrictName_SDK=obj.Name//获取的 name
this.formData.extDistrict_SDK=value//获取的 id
}, },
createLovTable() { createLovTable() {
this.dialogTableVisible = true this.dialogTableVisible = true
...@@ -508,7 +529,7 @@ export default { ...@@ -508,7 +529,7 @@ export default {
this.$request(Qcc.detailUrl, this.page).then((resp) => { this.$request(Qcc.detailUrl, this.page).then((resp) => {
this.formData.extCorporateName_SDK = row.OperName this.formData.extCorporateName_SDK = row.OperName
this.formData.extSocialUnifiedCreditCode_SDK = row.CreditCode this.formData.extSocialUnifiedCreditCode_SDK = row.CreditCode
this.formData.Name = row.Name this.formData.name = row.Name
this.formData.extRegisteredCapital_SDK=resp.results.Result.RegistCapi this.formData.extRegisteredCapital_SDK=resp.results.Result.RegistCapi
this.dialogTableVisible = false this.dialogTableVisible = false
}) })
...@@ -525,11 +546,11 @@ export default { ...@@ -525,11 +546,11 @@ export default {
// this.cOptions.forEach(el=>{ // this.cOptions.forEach(el=>{
// this.formData.extDistrictName_SDK=el[this.formData.extDistrict_SDK] // this.formData.extDistrictName_SDK=el[this.formData.extDistrict_SDK]
// }) // })
this.formData.ExtCustomerType_SDK=101 this.formData.extCustomerType_SDK=101
const ExtProductGroup_KUT=this.formData.ExtProductGroup_KUT.toString() const ExtProductGroup_KUT=this.formData.extProductGroup_KUT.toString()
const ExtTotalAgent_KUT=this.formData.ExtTotalAgent_KUT.toString() const ExtTotalAgent_KUT=this.formData.extTotalAgent_KUT.toString()
this.formData.ExtProductGroup_KUT=ExtProductGroup_KUT this.formData.extProductGroup_KUT=ExtProductGroup_KUT
this.formData.ExtTotalAgent_KUT=ExtTotalAgent_KUT this.formData.extTotalAgent_KUT=ExtTotalAgent_KUT
this.loading=true this.loading=true
this.$request(Customer.searchUrl,this.paramsToFormData(this.formData)).then((resp) => { this.$request(Customer.searchUrl,this.paramsToFormData(this.formData)).then((resp) => {
this.loading=false this.loading=false
......
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