Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴迪
gs1
Commits
980cb66e
Commit
980cb66e
authored
Dec 11, 2021
by
Jianli Ou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
对接保存企业信息(申请第一步)接口
parent
67a7d6bb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
87 additions
and
35 deletions
+87
-35
myManage.js
src/axios/module/myManage.js
+6
-1
vendor.vue
src/views/MyManage/UnVerify/vendor.vue
+81
-34
No files found.
src/axios/module/myManage.js
View file @
980cb66e
...
@@ -13,8 +13,13 @@ const memberInfo = (params = {}) => {
...
@@ -13,8 +13,13 @@ const memberInfo = (params = {}) => {
const
saveMemberInfo
=
(
params
=
{})
=>
{
const
saveMemberInfo
=
(
params
=
{})
=>
{
return
POST
(
`
${
Prefix
}
/office/member/api/update`
,
params
)
return
POST
(
`
${
Prefix
}
/office/member/api/update`
,
params
)
}
}
// 保存企业信息(申请第一步)
const
saveTycpdmFirmInfo
=
(
params
=
{})
=>
{
return
POST
(
`
${
Prefix
}
/office/tycpdmfirm/api/save`
,
params
)
}
export
default
{
export
default
{
memberInfo
,
memberInfo
,
saveMemberInfo
saveMemberInfo
,
saveTycpdmFirmInfo
}
}
src/views/MyManage/UnVerify/vendor.vue
View file @
980cb66e
...
@@ -19,26 +19,26 @@
...
@@ -19,26 +19,26 @@
:model=
'form'
>
:model=
'form'
>
<p
class=
"content-from-title"
>
企业信息填报
</p>
<p
class=
"content-from-title"
>
企业信息填报
</p>
<el-form-item
label=
'企业名称(中文):'
<el-form-item
label=
'企业名称(中文):'
prop=
'
chinese
Name'
prop=
'
firm
Name'
:rules=
"[
{
:rules=
"[
{
required: true,
required: true,
message: '不能为空',
message: '不能为空',
}]">
}]">
<el-input
v-model=
'form.
chinese
Name'
autocomplete=
'off'
placeholder=
"请输入企业中文名称"
></el-input>
<el-input
v-model=
'form.
firm
Name'
autocomplete=
'off'
placeholder=
"请输入企业中文名称"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
'企业名称(英文):'
<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>
<el-form-item
label=
'注册地址:'
<el-form-item
label=
'注册地址:'
prop=
'register
ed
Address'
prop=
'registerAddress'
:rules=
"[
{
:rules=
"[
{
required: true,
required: true,
message: '不能为空',
message: '不能为空',
}]"
}]"
>
>
<el-input
placeholder=
"请输入注册地址"
v-model=
"form.register
ed
Address"
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-select
v-model=
"form.city"
slot=
"prepend"
placeholder=
"请选择"
class=
"smallselect"
>
<el-option
label=
"黑龙江"
value=
"1"
></el-option>
<el-option
label=
"黑龙江"
value=
"1"
></el-option>
</el-select>
</el-select>
...
@@ -55,9 +55,9 @@
...
@@ -55,9 +55,9 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
'注册地址(英文):'
<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>
<el-form-item
label=
'注册地址邮政编码:'
<el-form-item
label=
'注册地址邮政编码:'
prop=
'registerAddrCode'
prop=
'registerAddrCode'
...
@@ -68,17 +68,17 @@
...
@@ -68,17 +68,17 @@
<el-input
v-model=
'form.registerAddrCode'
autocomplete=
'off'
placeholder=
"请输入注册地址邮政编码"
></el-input>
<el-input
v-model=
'form.registerAddrCode'
autocomplete=
'off'
placeholder=
"请输入注册地址邮政编码"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
'办公地址:'
<el-form-item
label=
'办公地址:'
prop=
'
officeAddr
'
prop=
'
address
'
:rules=
"[
{
:rules=
"[
{
required: true,
required: true,
message: '不能为空',
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>
<el-form-item
label=
'办公地址(英文):'
<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>
<el-form-item
label=
'办公地址邮政编码:'
<el-form-item
label=
'办公地址邮政编码:'
prop=
'officeAddrCode'
prop=
'officeAddrCode'
...
@@ -144,7 +144,7 @@
...
@@ -144,7 +144,7 @@
required: true,
required: true,
message: '不能为空',
message: '不能为空',
}]">
}]">
<el-select
v-model=
"form.
branch
"
placeholder=
"请选择国民经济行业分类代码"
>
<el-select
v-model=
"form.
nationalEconomyCode
"
placeholder=
"请选择国民经济行业分类代码"
>
<el-option
label=
""
value=
"1"
></el-option>
<el-option
label=
""
value=
"1"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
...
@@ -156,25 +156,25 @@
...
@@ -156,25 +156,25 @@
<p
class=
"content-from-title"
>
法定人信息填报
</p>
<p
class=
"content-from-title"
>
法定人信息填报
</p>
<el-form-item
label=
'法定代表人:'
<el-form-item
label=
'法定代表人:'
prop=
'le
galRepresentative
'
prop=
'le
ader
'
:rules=
"[
{
:rules=
"[
{
required: true,
required: true,
message: '不能为空',
message: '不能为空',
}]">
}]">
<el-input
v-model=
'form.le
galRepresentative
'
autocomplete=
'off'
placeholder=
"请输入法定代表人"
></el-input>
<el-input
v-model=
'form.le
ader
'
autocomplete=
'off'
placeholder=
"请输入法定代表人"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
'法定代表人电话:'
<el-form-item
label=
'法定代表人电话:'
prop=
'le
galRepresentativeTel
'
prop=
'le
aderTele
'
>
>
<el-input
v-model=
'form.le
galRepresentativeTel
'
autocomplete=
'off'
placeholder=
"请输入法定代表人电话"
></el-input>
<el-input
v-model=
'form.le
aderTele
'
autocomplete=
'off'
placeholder=
"请输入法定代表人电话"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
'法定代表人手机:'
<el-form-item
label=
'法定代表人手机:'
prop=
'le
galRepresentativePhone
'
prop=
'le
aderHandset
'
:rules=
"[
{
:rules=
"[
{
required: true,
required: true,
message: '不能为空',
message: '不能为空',
}]">
}]">
<el-input
v-model=
'form.le
galRepresentativePhone
'
autocomplete=
'off'
placeholder=
"请输入法定代表人手机"
></el-input>
<el-input
v-model=
'form.le
aderHandset
'
autocomplete=
'off'
placeholder=
"请输入法定代表人手机"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
'企业网址:'
<el-form-item
label=
'企业网址:'
prop=
'website'
prop=
'website'
...
@@ -265,19 +265,21 @@ export default {
...
@@ -265,19 +265,21 @@ export default {
name
:
"index"
,
name
:
"index"
,
data
()
{
data
()
{
return
{
return
{
loginInfo
:
{},
memberInfo
:
{},
hasSent
:
false
,
hasSent
:
false
,
timer
:
null
,
timer
:
null
,
time
:
60
,
time
:
60
,
form
:
{
form
:
{
chineseName
:
''
,
firmName
:
''
,
// 企业名称
englishName
:
''
,
firmName1
:
''
,
// 企业名称(英文)
register
edAddress
:
''
,
register
Address
:
''
,
// 注册地址
city
:
'1'
,
city
:
'1'
,
branch
:
''
,
branch
:
''
,
englishRegisterAddr
:
''
,
registerAddress1
:
''
,
// 注册地址(英文)
registerAddrCode
:
''
,
registerAddrCode
:
''
,
officeAddr
:
''
,
address
:
''
,
// 办公地址
englishOfficeAddr
:
''
,
address1
:
''
,
// 办公地址(英文)
officeAddrCode
:
''
,
officeAddrCode
:
''
,
creditCode
:
''
,
creditCode
:
''
,
registeredCapital
:
''
,
registeredCapital
:
''
,
...
@@ -286,10 +288,11 @@ export default {
...
@@ -286,10 +288,11 @@ export default {
economicTypeCode
:
''
,
economicTypeCode
:
''
,
nationalEconomyCode
:
''
,
nationalEconomyCode
:
''
,
organizationCode
:
''
,
organizationCode
:
''
,
le
galRepresentative
:
''
,
le
ader
:
''
,
// 法定代表人
le
galRepresentativeTel
:
''
,
le
aderTele
:
''
,
// 法定代表人电话
le
galRepresentativePhone
:
''
,
le
aderHandset
:
''
,
// 法定代表人手机
website
:
''
,
website
:
''
,
uploadImg
:
'上传的营业执照'
,
name
:
''
,
name
:
''
,
tel
:
''
,
tel
:
''
,
mobile
:
''
,
mobile
:
''
,
...
@@ -297,6 +300,36 @@ export default {
...
@@ -297,6 +300,36 @@ export default {
email
:
''
,
email
:
''
,
business
:
''
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}
$/
,
mobilePattern
:
/^
((
13
[
0-9
])
|
(
15
[^
4
])
|
(
18
[
0-9
])
|
(
17
[
0-8
])
|
(
147
))\d{8}
$/
,
}
}
},
},
...
@@ -304,8 +337,6 @@ export default {
...
@@ -304,8 +337,6 @@ export default {
register
()
{
register
()
{
},
},
checkMobileReg
(
rule
,
value
,
callback
)
{
checkMobileReg
(
rule
,
value
,
callback
)
{
if
(
value
!==
''
)
{
if
(
value
!==
''
)
{
if
(
this
.
mobilePattern
.
test
(
value
))
{
if
(
this
.
mobilePattern
.
test
(
value
))
{
...
@@ -315,7 +346,6 @@ export default {
...
@@ -315,7 +346,6 @@ export default {
}
}
}
}
},
},
checkMobile
()
{
checkMobile
()
{
console
.
log
(
'checkMobile'
);
console
.
log
(
'checkMobile'
);
return
new
Promise
((
resolve
)
=>
{
return
new
Promise
((
resolve
)
=>
{
...
@@ -323,11 +353,28 @@ export default {
...
@@ -323,11 +353,28 @@ export default {
});
});
},
},
submit
(){
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
>
</
script
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment