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
a82b4252
Commit
a82b4252
authored
Jun 10, 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
3a5861bb
413b17ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
12 deletions
+6
-12
enterpriseForm.vue
src/pages/Enterprise/components/enterpriseForm.vue
+6
-12
No files found.
src/pages/Enterprise/components/enterpriseForm.vue
View file @
a82b4252
...
@@ -206,6 +206,7 @@
...
@@ -206,6 +206,7 @@
<
script
>
<
script
>
import
{
postBusiness
,
opCommit
}
from
"@/service/enterprise"
;
import
{
postBusiness
,
opCommit
}
from
"@/service/enterprise"
;
import
{
API_INTERNAL_URI
}
from
"../../../../server/config"
;
export
default
{
export
default
{
props
:
{
props
:
{
enterpriseId
:
{
type
:
Number
},
enterpriseId
:
{
type
:
Number
},
...
@@ -272,14 +273,6 @@ export default {
...
@@ -272,14 +273,6 @@ export default {
}
}
callback
();
callback
();
};
};
// 区分测试或正常环境域名
const
API_INTERNAL_URI
=
{
development
:
"http://bp-dev.ini.yidian-inc.com"
,
test
:
"http://bp-test.ini.yidian-inc.com"
,
production
:
"http://bp-test.go2yd.com"
};
const
env
=
process
.
env
.
NODE_ENV
||
"development"
;
const
API_INTERNAL_URL
=
API_INTERNAL_URI
[
env
];
return
{
return
{
// 表单输入项
// 表单输入项
establishForm
:
{
establishForm
:
{
...
@@ -344,7 +337,7 @@ export default {
...
@@ -344,7 +337,7 @@ export default {
},
},
// 域名选择
// 域名选择
domainName
:
`
${
API_INTERNAL_UR
L
}
/merchant/lifeinner/upload`
domainName
:
`
${
API_INTERNAL_UR
I
}
/merchant/lifeinner/upload`
};
};
},
},
...
@@ -419,7 +412,6 @@ export default {
...
@@ -419,7 +412,6 @@ export default {
user_id
user_id
}
=
this
.
establishForm
;
}
=
this
.
establishForm
;
/**
/**
* 第一步 企业信息提交
* 第一步 企业信息提交
* @param enterpriseQuery
* @param enterpriseQuery
...
@@ -435,13 +427,15 @@ export default {
...
@@ -435,13 +427,15 @@ export default {
};
};
const
res
=
await
postBusiness
(
enterpriseQuery
);
const
res
=
await
postBusiness
(
enterpriseQuery
);
if
(
res
.
code
!==
0
)
return
this
.
$message
.
error
(
res
.
reason
);
if
(
res
.
code
!==
0
)
return
this
.
$message
.
error
(
res
.
reason
);
this
.
establishForm
.
enterprise_id
=
res
.
result
.
enterprise_auth_record_id
this
.
establishForm
.
enterprise_id
=
res
.
result
.
enterprise_auth_record_id
;
/**
/**
* 第二步 法人(经营者信息提交)
* 第二步 法人(经营者信息提交)
*/
*/
// 法人信息提交参数
// 法人信息提交参数
const
legalQuery
=
{
const
legalQuery
=
{
record_id
:
this
.
enterpriseId
?
this
.
enterpriseId
:
this
.
establishForm
.
enterprise_id
,
record_id
:
this
.
enterpriseId
?
this
.
enterpriseId
:
this
.
establishForm
.
enterprise_id
,
front_img
,
front_img
,
bak_img
,
bak_img
,
front_completeness
:
0
,
front_completeness
:
0
,
...
...
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