Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
op-web-service
Project
Project
Details
Activity
Releases
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
bp
op-web-service
Commits
9111d72b
Commit
9111d72b
authored
Jun 07, 2021
by
lvweichao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
https://git.yidian-inc.com:8021/bp/op-web-service
into dev
parents
02471f8b
9fc288a8
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
167 additions
and
135 deletions
+167
-135
enterprise.js
server/controllers/enterprise.js
+25
-1
router.js
server/router.js
+2
-0
index.vue
src/pages/Enterprise/Audit/index.vue
+88
-123
index.vue
src/pages/Enterprise/Certification/index.vue
+12
-8
index.vue
src/pages/Enterprise/Establish/index.vue
+23
-3
enterprise.js
src/service/enterprise.js
+17
-0
No files found.
server/controllers/enterprise.js
View file @
9111d72b
...
@@ -34,7 +34,31 @@ exports.checkCode = async ctx => {
...
@@ -34,7 +34,31 @@ exports.checkCode = async ctx => {
json
:
true
,
json
:
true
,
body
:
ctx
.
request
.
body
body
:
ctx
.
request
.
body
};
};
ctx
.
body
=
await
req
(
ctx
,
opts
)
ctx
.
body
=
await
req
(
ctx
,
opts
);
};
// 审核列表详情页回显信息列表
exports
.
getRecordInfo
=
async
ctx
=>
{
const
url
=
`
${
API_INTERNAL_URI
}
/merchant/inner/get_record_info`
;
const
opts
=
{
url
,
method
:
"POST"
,
json
:
true
,
body
:
ctx
.
request
.
body
};
ctx
.
body
=
await
req
(
ctx
,
opts
);
};
// 历史提交审核日志详情页
exports
.
getLog
=
async
ctx
=>
{
const
url
=
`
${
API_INTERNAL_URI
}
/merchant/inner/get_log`
;
const
opts
=
{
url
,
method
:
"POST"
,
json
:
true
,
body
:
ctx
.
request
.
body
};
ctx
.
body
=
await
req
(
ctx
,
opts
);
};
};
// 企业信息提交
// 企业信息提交
...
...
server/router.js
View file @
9111d72b
...
@@ -29,6 +29,8 @@ router.post(`${API_VERSION}/certification`, enterprise.auditList);
...
@@ -29,6 +29,8 @@ router.post(`${API_VERSION}/certification`, enterprise.auditList);
router
.
post
(
`
${
API_VERSION
}
/emterprise_commit`
,
enterprise
.
entCommit
);
router
.
post
(
`
${
API_VERSION
}
/emterprise_commit`
,
enterprise
.
entCommit
);
router
.
post
(
`
${
API_VERSION
}
/send_code`
,
enterprise
.
sendCode
);
router
.
post
(
`
${
API_VERSION
}
/send_code`
,
enterprise
.
sendCode
);
router
.
post
(
`
${
API_VERSION
}
/check_code`
,
enterprise
.
checkCode
);
router
.
post
(
`
${
API_VERSION
}
/check_code`
,
enterprise
.
checkCode
);
router
.
post
(
`
${
API_VERSION
}
/get_record_info`
,
enterprise
.
getRecordInfo
);
router
.
post
(
`
${
API_VERSION
}
/get_log`
,
enterprise
.
getLog
);
router
.
get
(
`
${
API_VERSION
}
/image/get_image_id`
,
image
.
get_obj_id
)
router
.
get
(
`
${
API_VERSION
}
/image/get_image_id`
,
image
.
get_obj_id
)
router
.
get
(
`
${
API_VERSION
}
/image/get_bucket`
,
image
.
get_bucket
)
router
.
get
(
`
${
API_VERSION
}
/image/get_bucket`
,
image
.
get_bucket
)
...
...
src/pages/Enterprise/Audit/index.vue
View file @
9111d72b
This diff is collapsed.
Click to expand it.
src/pages/Enterprise/Certification/index.vue
View file @
9111d72b
...
@@ -234,6 +234,9 @@ export default {
...
@@ -234,6 +234,9 @@ export default {
checkIsCode
:
""
// 用户修改操作的验证码
checkIsCode
:
""
// 用户修改操作的验证码
};
};
},
},
computed
:
{
},
created
()
{
created
()
{
this
.
getEnterpriseList
();
this
.
getEnterpriseList
();
...
@@ -272,7 +275,7 @@ export default {
...
@@ -272,7 +275,7 @@ export default {
};
};
try
{
try
{
const
res
=
await
auditList
(
params
);
const
res
=
await
auditList
(
params
);
if
(
res
.
code
!==
0
)
return
this
.
$message
.
error
(
res
.
re
sult
);
if
(
res
.
code
!==
0
)
return
this
.
$message
.
error
(
res
.
re
ason
);
this
.
enterpriseList
=
res
.
result
.
data
;
this
.
enterpriseList
=
res
.
result
.
data
;
this
.
totalCount
=
res
.
result
.
count
;
this
.
totalCount
=
res
.
result
.
count
;
console
.
log
(
res
);
console
.
log
(
res
);
...
@@ -305,10 +308,9 @@ export default {
...
@@ -305,10 +308,9 @@ export default {
// 获取验证码
// 获取验证码
async
getAuthCode
()
{
async
getAuthCode
()
{
console
.
log
(
this
.
auditId
);
try
{
try
{
const
res
=
await
sendCode
(
this
.
auditId
);
const
res
=
await
sendCode
(
{
enterprise_auth_record_id
:
this
.
auditId
}
);
console
.
log
(
res
);
if
(
res
.
code
!==
0
)
return
this
.
$message
.
error
(
res
.
reason
);
}
catch
(
err
)
{
}
catch
(
err
)
{
console
.
log
(
err
);
console
.
log
(
err
);
}
}
...
@@ -325,13 +327,15 @@ export default {
...
@@ -325,13 +327,15 @@ export default {
};
};
const
res
=
await
checkCode
(
parasm
);
const
res
=
await
checkCode
(
parasm
);
console
.
log
(
res
);
console
.
log
(
res
);
if
(
res
.
code
!==
0
)
return
this
.
$message
.
error
(
res
.
reason
);
this
.
$message
.
success
(
"验证码校验成功!"
);
this
.
$router
.
push
({
name
:
"Audit"
,
params
:
{
pageStatus
:
"EDIT"
,
auditId
:
this
.
auditId
}
});
}
catch
(
error
)
{
}
catch
(
error
)
{
console
.
log
(
error
);
console
.
log
(
error
);
}
}
this
.
$router
.
push
({
name
:
"Audit"
,
params
:
{
pageStatus
:
"EDIT"
,
auditId
:
this
.
auditId
}
});
}
}
},
},
...
...
src/pages/Enterprise/Establish/index.vue
View file @
9111d72b
...
@@ -64,7 +64,7 @@
...
@@ -64,7 +64,7 @@
</el-form-item>
</el-form-item>
<!-- 企业代码 -->
<!-- 企业代码 -->
<el-form-item
<el-form-item
label=
"统一社会信用代码(注册码
)
:"
label=
"统一社会信用代码(注册码:"
prop=
"code"
prop=
"code"
>
>
<el-input
v-model
.
trim=
"establishForm.code"
></el-input>
<el-input
v-model
.
trim=
"establishForm.code"
></el-input>
...
@@ -92,6 +92,24 @@
...
@@ -92,6 +92,24 @@
></el-option>
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<!-- 代提交人手机号 -->
<el-form-item
label=
"待提交人手机号:"
prop=
"mobile"
>
<el-input
v-model
.
number=
"establishForm.mobile"
></el-input>
</el-form-item>
<el-form-item
label=
"代提交标识"
prop=
"is_agent"
>
<el-select
v-model=
"establishForm.is_agent"
>
<el-option
label=
"代提交"
:value=
"1"
></el-option>
</el-select>
</el-form-item>
<!-- =================普通企业法人/个体工商户身份认证信息========== -->
<!-- =================普通企业法人/个体工商户身份认证信息========== -->
<h3>
身份信息
</h3>
<h3>
身份信息
</h3>
...
@@ -370,7 +388,7 @@ export default {
...
@@ -370,7 +388,7 @@ export default {
],
],
// 数据来源
// 数据来源
data_from
:
[
data_from
:
[
{
required
:
true
,
message
:
"请选择数据来源"
,
trigger
:
"
blur
"
}
{
required
:
true
,
message
:
"请选择数据来源"
,
trigger
:
"
change
"
}
],
],
/* ****************法人/个体用户身份校验***************** */
/* ****************法人/个体用户身份校验***************** */
// 企业营业执照号
// 企业营业执照号
...
@@ -400,7 +418,9 @@ export default {
...
@@ -400,7 +418,9 @@ export default {
// 经营者/法人姓名
// 经营者/法人姓名
userName
:
[
userName
:
[
{
required
:
true
,
message
:
"请填写经营者(法人姓名)"
,
trigger
:
"blur"
}
{
required
:
true
,
message
:
"请填写经营者(法人姓名)"
,
trigger
:
"blur"
}
]
],
mobile
:
[{
required
:
true
,
message
:
"请填写待提交人手机号"
,
trigger
:
"blur"
}],
is_agent
:
[{
required
:
true
,
message
:
"请填写是否代提交"
,
trigger
:
"change"
}]
}
}
};
};
},
},
...
...
src/service/enterprise.js
View file @
9111d72b
...
@@ -31,6 +31,23 @@ export async function checkCode (params) {
...
@@ -31,6 +31,23 @@ export async function checkCode (params) {
return
res
;
return
res
;
}
}
/**
* 获取审核列表详情
* @param enterprise_auth_record_id 审核记录id
*/
export
async
function
getRecordInfo
(
params
)
{
const
res
=
axios
.
post
(
`/api/v1/get_record_info`
,
params
);
return
res
;
}
/**
* 获取提交审核日志
* @param enterprise_auth_record_id 审核记录id
*/
export
async
function
getLog
(
params
)
{
const
res
=
axios
.
post
(
`/api/v1/get_log`
,
params
);
return
res
;
}
// 发送企业信息认证
// 发送企业信息认证
export
async
function
entCommit
(
query
)
{
export
async
function
entCommit
(
query
)
{
const
res
=
await
axios
.
post
(
`/api/v1/emterprise_commit`
,
query
);
const
res
=
await
axios
.
post
(
`/api/v1/emterprise_commit`
,
query
);
...
...
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