Commit 980cb66e by Jianli Ou

对接保存企业信息(申请第一步)接口

parent 67a7d6bb
......@@ -13,8 +13,13 @@ const memberInfo = (params = {}) => {
const saveMemberInfo = (params = {}) => {
return POST(`${Prefix}/office/member/api/update`, params)
}
// 保存企业信息(申请第一步)
const saveTycpdmFirmInfo = (params = {}) => {
return POST(`${Prefix}/office/tycpdmfirm/api/save`, params)
}
export default {
memberInfo,
saveMemberInfo
saveMemberInfo,
saveTycpdmFirmInfo
}
......@@ -19,26 +19,26 @@
:model='form'>
<p class="content-from-title">企业信息填报</p>
<el-form-item label='企业名称(中文):'
prop='chineseName'
prop='firmName'
:rules="[{
required: true,
message: '不能为空',
}]">
<el-input v-model='form.chineseName' autocomplete='off' placeholder="请输入企业中文名称"></el-input>
<el-input v-model='form.firmName' autocomplete='off' placeholder="请输入企业中文名称"></el-input>
</el-form-item>
<el-form-item label='企业名称(英文):'
prop='englishName'
prop='firmName1'
>
<el-input v-model='form.englishName' autocomplete='off' placeholder="请输入企业英文名称"></el-input>
<el-input v-model='form.firmName1' autocomplete='off' placeholder="请输入企业英文名称"></el-input>
</el-form-item>
<el-form-item label='注册地址:'
prop='registeredAddress'
prop='registerAddress'
:rules="[{
required: true,
message: '不能为空',
}]"
>
<el-input placeholder="请输入注册地址" v-model="form.registeredAddress" class="input-with-select">
<el-input placeholder="请输入注册地址" v-model="form.registerAddress" class="input-with-select">
<el-select v-model="form.city" slot="prepend" placeholder="请选择" class="smallselect">
<el-option label="黑龙江" value="1" ></el-option>
</el-select>
......@@ -55,9 +55,9 @@
</el-select>
</el-form-item>
<el-form-item label='注册地址(英文):'
prop='englishRegisterAddr'
prop='registerAddress1'
>
<el-input v-model='form.englishRegisterAddr' autocomplete='off' placeholder="请输入英文注册地址"></el-input>
<el-input v-model='form.registerAddress1' autocomplete='off' placeholder="请输入英文注册地址"></el-input>
</el-form-item>
<el-form-item label='注册地址邮政编码:'
prop='registerAddrCode'
......@@ -68,17 +68,17 @@
<el-input v-model='form.registerAddrCode' autocomplete='off' placeholder="请输入注册地址邮政编码"></el-input>
</el-form-item>
<el-form-item label='办公地址:'
prop='officeAddr'
prop='address'
:rules="[{
required: true,
message: '不能为空',
}]">
<el-input v-model='form.officeAddr' autocomplete='off' placeholder="请输入办公地址"></el-input>
<el-input v-model='form.address' autocomplete='off' placeholder="请输入办公地址"></el-input>
</el-form-item>
<el-form-item label='办公地址(英文):'
prop='englishOfficeAddr'
prop='address1'
>
<el-input v-model='form.englishOfficeAddr' autocomplete='off' placeholder="请输入英文办公地址"></el-input>
<el-input v-model='form.address1' autocomplete='off' placeholder="请输入英文办公地址"></el-input>
</el-form-item>
<el-form-item label='办公地址邮政编码:'
prop='officeAddrCode'
......@@ -144,7 +144,7 @@
required: true,
message: '不能为空',
}]">
<el-select v-model="form.branch" placeholder="请选择国民经济行业分类代码" >
<el-select v-model="form.nationalEconomyCode" placeholder="请选择国民经济行业分类代码" >
<el-option label="" value="1" ></el-option>
</el-select>
</el-form-item>
......@@ -156,25 +156,25 @@
<p class="content-from-title">法定人信息填报</p>
<el-form-item label='法定代表人:'
prop='legalRepresentative'
prop='leader'
:rules="[{
required: true,
message: '不能为空',
}]">
<el-input v-model='form.legalRepresentative' autocomplete='off' placeholder="请输入法定代表人"></el-input>
<el-input v-model='form.leader' autocomplete='off' placeholder="请输入法定代表人"></el-input>
</el-form-item>
<el-form-item label='法定代表人电话:'
prop='legalRepresentativeTel'
prop='leaderTele'
>
<el-input v-model='form.legalRepresentativeTel' autocomplete='off' placeholder="请输入法定代表人电话"></el-input>
<el-input v-model='form.leaderTele' autocomplete='off' placeholder="请输入法定代表人电话"></el-input>
</el-form-item>
<el-form-item label='法定代表人手机:'
prop='legalRepresentativePhone'
prop='leaderHandset'
:rules="[{
required: true,
message: '不能为空',
}]">
<el-input v-model='form.legalRepresentativePhone' autocomplete='off' placeholder="请输入法定代表人手机"></el-input>
<el-input v-model='form.leaderHandset' autocomplete='off' placeholder="请输入法定代表人手机"></el-input>
</el-form-item>
<el-form-item label='企业网址:'
prop='website'
......@@ -265,19 +265,21 @@ export default {
name: "index",
data() {
return {
loginInfo: {},
memberInfo: {},
hasSent: false,
timer: null,
time: 60,
form: {
chineseName:'',
englishName:'',
registeredAddress:'',
firmName:'', // 企业名称
firmName1:'', // 企业名称(英文)
registerAddress:'', // 注册地址
city:'1',
branch:'',
englishRegisterAddr:'',
registerAddress1:'', // 注册地址(英文)
registerAddrCode:'',
officeAddr:'',
englishOfficeAddr:'',
address:'', // 办公地址
address1:'', // 办公地址(英文)
officeAddrCode:'',
creditCode:'',
registeredCapital:'',
......@@ -286,10 +288,11 @@ export default {
economicTypeCode:'',
nationalEconomyCode:'',
organizationCode:'',
legalRepresentative:'',
legalRepresentativeTel:'',
legalRepresentativePhone:'',
leader:'', // 法定代表人
leaderTele:'', // 法定代表人电话
leaderHandset:'', // 法定代表人手机
website:'',
uploadImg: '上传的营业执照',
name:'',
tel:'',
mobile:'',
......@@ -297,6 +300,36 @@ export default {
email:'',
business:''
},
// form: {
// firmName:'企业名称', // 企业名称
// firmName1:'企业名称(英文)', // 企业名称(英文)
// registerAddress:'注册地址', // 注册地址
// city:'1',
// branch:'',
// registerAddress1:'注册地址(英文)', // 注册地址(英文)
// registerAddrCode:'注册地址邮政编码',
// address:'办公地址', // 办公地址
// address1:'办公地址(英文)', // 办公地址(英文)
// officeAddrCode:'办公地址邮政编码',
// creditCode:'统一社会信用代码',
// registeredCapital:'注册资金',
// currency:'',
// enterpriseCategory:'',
// economicTypeCode:'',
// nationalEconomyCode:'',
// organizationCode:'组织机构代码',
// leader:'法定代表人', // 法定代表人
// leaderTele:'4286543', // 法定代表人电话
// leaderHandset:'13400000000', // 法定代表人手机
// website:'企业网址',
// uploadImg: '上传的营业执照',
// name:'经办人姓名',
// tel:'45267567',
// mobile:'15100000000',
// fax:'传真',
// email:'29289298@qq.com',
// business:''
// },
mobilePattern: /^((13[0-9])|(15[^4])|(18[0-9])|(17[0-8])|(147))\d{8}$/,
}
},
......@@ -304,8 +337,6 @@ export default {
register() {
},
checkMobileReg(rule, value, callback) {
if (value !== '') {
if (this.mobilePattern.test(value)) {
......@@ -315,7 +346,6 @@ export default {
}
}
},
checkMobile() {
console.log('checkMobile');
return new Promise((resolve) => {
......@@ -323,11 +353,28 @@ export default {
});
},
submit(){
this.$router.push({path:'/UnVerify/uploadvendor'})
this.$refs['ruleForm'].validate((valid) => {
if (valid) {
if (this.saveTycpdmFirmInfo()) this.$router.push({path: '/MyManage/UnVerify/uploadvendor'})
} else {
return false;
}
});
},
async saveTycpdmFirmInfo() {
this.form['baseUser'] = this.memberInfo.username
const result = await this.$api.myManage.saveTycpdmFirmInfo(this.form)
if (result.success) this.$message.success('保存成功')
return result.success
},
async getMemberInfo() {
this.memberInfo = (await this.$api.myManage.memberInfo({id: this.loginInfo.id})).data
}
},
mounted() {
this.loginInfo = JSON.parse(localStorage.getItem('loginInfo'))
this.getMemberInfo()
}
}
</script>
......
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