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
62b3917b
Commit
62b3917b
authored
May 28, 2021
by
mengwenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feature: 更新请求接口
parent
5df14751
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
632 additions
and
567 deletions
+632
-567
index.vue
src/components/PageHeader/index.vue
+0
-1
index.vue
src/pages/Enterprise/Audit/index.vue
+326
-310
index.vue
src/pages/Enterprise/Certification/index.vue
+164
-159
index.css
src/pages/Enterprise/Establish/index.css
+5
-0
index.less
src/pages/Enterprise/Establish/index.less
+5
-0
index.vue
src/pages/Enterprise/Establish/index.vue
+122
-94
index.js
src/router/index.js
+3
-3
enterprise.js
src/service/enterprise.js
+7
-0
No files found.
src/components/PageHeader/index.vue
View file @
62b3917b
...
@@ -5,7 +5,6 @@
...
@@ -5,7 +5,6 @@
class=
"el-menu-demo"
class=
"el-menu-demo"
mode=
"horizontal"
mode=
"horizontal"
:router=
"true"
:router=
"true"
@
select=
"handleSelect"
background-color=
"#545c64"
background-color=
"#545c64"
text-color=
"#fff"
text-color=
"#fff"
:default-active=
"activeMenu"
:default-active=
"activeMenu"
...
...
src/pages/Enterprise/Audit/index.vue
View file @
62b3917b
<
template
>
<
template
>
<layout>
<!-- 标题 -->
<!-- 标题 -->
<el-page-header
<el-page-header
class=
"title"
class=
"title"
...
@@ -72,78 +73,89 @@
...
@@ -72,78 +73,89 @@
</el-table>
</el-table>
<!-- 修改详情页 -->
<!-- 修改详情页 -->
<el-table
<el-form
v-else
:rules=
"detailRules"
border
label-width=
"240px"
:data=
"messageList"
ref=
"establish_form"
:model=
"messageList[0]"
>
>
<el-table-column
<el-form-item
align=
"center"
label=
"营业执照:"
label=
"审核状态"
ref=
"licenseChange"
prop=
"businessLicense"
>
>
<
template
#
default=
"scope"
>
<el-upload
<el-input
v-model=
"scope.row.status"
></el-input>
action=
""
</
template
>
multiple
</el-table-column>
show-file-list
<el-table-column
:limit=
"4"
align=
"center"
:auto-upload=
"false"
label=
"企业ID"
:file-list=
"messageList.licenseList"
:on-change=
"onLicenseChange"
:on-remove=
"onLicenseRemove"
>
>
<
template
#
default=
"scope"
>
<el-button
<el-input
v-model=
"scope.row.id"
></el-input>
size=
"small"
</
template
>
type=
"primary"
</el-table-column>
>
点击上传
</el-button>
<el-table-column
</el-upload>
align=
"center"
</el-form-item>
label=
"企业注册名称"
<el-form-item
label=
"企业注册名称:"
prop=
"registeredName"
>
>
<
template
#
default=
"scope"
>
<el-input
v-model
.
trim=
"establishForm.registeredName"
></el-input>
<el-input
v-model=
"scope.row.name"
></el-input>
</el-form-item>
</
template
>
</el-table-column>
<el-form-item
<el-table-column
label=
"统一社会信用代码(注册码):"
align=
"center"
prop=
"registrationCode"
label=
"注册码"
prop=
"code"
>
>
<
template
#
default=
"scope"
>
<el-input
v-model
.
trim=
"establishForm.registrationCode"
></el-input>
<el-input
v-model=
"scope.row.code"
></el-input>
</el-form-item>
</
template
>
<el-form-item
</el-table-column>
label=
"经营者(法人)身份证照片:"
<el-table-column
ref=
"idcardPhotoChange"
align=
"center"
prop=
"legalPhoto"
label=
"企业营业执照照片"
prop=
"picture"
>
>
<
template
#
default=
"scope"
>
<el-upload
<el-image
action=
""
fit=
"fill"
multiple
:src=
"scope.row.picture"
show-file-list
></el-image>
:auto-upload=
"false"
</
template
>
:file-list=
"establishForm.idcardPhoto"
</el-table-column>
:on-change=
"onIdPhoneChange"
<el-table-column
:on-remove=
"onIdPhoneRemove"
align=
"center"
label=
"法人或经营者姓名"
prop=
"userName"
></el-table-column>
<el-table-column
align=
"center"
label=
"法人或经营者身份证号"
prop=
"idNumber"
></el-table-column>
<el-table-column
align=
"center"
label=
"身份证照片"
>
>
<
template
#
default=
"scope"
>
<el-button
<el-image
size=
"small"
:src=
"scope.row.idPicture"
type=
"primary"
fit=
"fill"
>
点击上传
</el-button>
></el-image>
</el-upload>
</
template
>
</el-form-item>
</el-table-column>
</el-table>
<el-form-item
label=
"经营者(法人)姓名:"
prop=
"legalName"
>
<el-input
v-model
.
trim=
"establishForm.legalName"
></el-input>
</el-form-item>
<el-form-item
label=
"经营者(法人)身份证号:"
prop=
"idcardNumber"
>
<el-input
v-model
.
trim=
"establishForm.idcardNumber"
></el-input>
</el-form-item>
<el-form-item>
<el-button
@
click=
"handelCancel('establish_form')"
>
取消
</el-button>
<el-button
@
click=
"handelSubmit('establish_form')"
type=
"primary"
>
提交审核
</el-button>
</el-form-item>
</el-form>
</el-card>
</el-card>
<!-- 审核/查看详情/修改详情__提交信息 -->
<!-- 审核/查看详情/修改详情__提交信息 -->
...
@@ -220,7 +232,7 @@
...
@@ -220,7 +232,7 @@
style=
"width:100%;border-radius:10px;padding:10px;border:1px solid #EBEEF5;"
style=
"width:100%;border-radius:10px;padding:10px;border:1px solid #EBEEF5;"
placeholder=
"请输入审核意见"
placeholder=
"请输入审核意见"
id=
""
id=
""
v-model
=
"opinionArea"
v-model
.
trim
=
"opinionArea"
rows=
"5"
rows=
"5"
@
input=
"opinionChange"
@
input=
"opinionChange"
></textarea>
></textarea>
...
@@ -322,12 +334,16 @@
...
@@ -322,12 +334,16 @@
<el-button
type=
"primary"
>
提交审核
</el-button>
<el-button
type=
"primary"
>
提交审核
</el-button>
</div>
</div>
</div>
</div>
</layout>
</template>
</template>
<
style
lang=
"less"
src=
"./index.less"
scope
></
style
>
<
style
lang=
"less"
src=
"./index.less"
scope
></
style
>
<
script
>
<
script
>
import
Layout
from
'@/layouts'
export
default
{
export
default
{
name
:
'Audit'
,
components
:
{
Layout
},
beforeRouteEnter
(
to
,
from
,
next
)
{
beforeRouteEnter
(
to
,
from
,
next
)
{
to
.
params
.
pageStatus
&&
to
.
params
.
auditId
to
.
params
.
pageStatus
&&
to
.
params
.
auditId
?
next
()
?
next
()
...
...
src/pages/Enterprise/Certification/index.vue
View file @
62b3917b
<
template
>
<
template
>
<layout>
<div>
<div>
<!-- 企业信息提交 -->
<!-- 企业信息提交 -->
<el-button
<el-button
...
@@ -164,12 +165,16 @@
...
@@ -164,12 +165,16 @@
</el-table>
</el-table>
</el-card>
</el-card>
</div>
</div>
</layout>
</template>
</template>
<
style
lang=
"less"
src=
"./index.less"
scope
></
style
>
<
style
lang=
"less"
src=
"./index.less"
scope
></
style
>
<
script
>
<
script
>
import
Layout
from
'@/layouts'
export
default
{
export
default
{
name
:
'Certification'
,
components
:
{
Layout
},
data
()
{
data
()
{
return
{
return
{
// 表单数据
// 表单数据
...
...
src/pages/Enterprise/Establish/index.css
View file @
62b3917b
...
@@ -3,4 +3,9 @@
...
@@ -3,4 +3,9 @@
}
}
.establish
{
.establish
{
padding
:
50px
;
padding
:
50px
;
display
:
flex
;
justify-content
:
center
;
}
.establish
.el-form
{
width
:
50%
;
}
}
src/pages/Enterprise/Establish/index.less
View file @
62b3917b
...
@@ -6,4 +6,9 @@
...
@@ -6,4 +6,9 @@
// 主体区域
// 主体区域
.establish{
.establish{
padding: 50px;
padding: 50px;
display: flex;
justify-content: center;
.el-form{
width: 50%;
}
}
}
\ No newline at end of file
src/pages/Enterprise/Establish/index.vue
View file @
62b3917b
<
template
>
<
template
>
<layout>
<!-- 标题 -->
<!-- 标题 -->
<el-page-header
<el-page-header
class=
"title"
class=
"title"
...
@@ -22,7 +23,6 @@
...
@@ -22,7 +23,6 @@
action=
""
action=
""
multiple
multiple
show-file-list
show-file-list
:limit=
"4"
:auto-upload=
"false"
:auto-upload=
"false"
:file-list=
"establishForm.licenseList"
:file-list=
"establishForm.licenseList"
:on-change=
"onLicenseChange"
:on-change=
"onLicenseChange"
...
@@ -39,14 +39,14 @@
...
@@ -39,14 +39,14 @@
label=
"企业注册名称:"
label=
"企业注册名称:"
prop=
"registeredName"
prop=
"registeredName"
>
>
<el-input
v-model
=
"establishForm.registeredName"
></el-input>
<el-input
v-model
.
trim
=
"establishForm.registeredName"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
<el-form-item
label=
"统一社会信用代码(注册码):"
label=
"统一社会信用代码(注册码):"
prop=
"registrationCode"
prop=
"registrationCode"
>
>
<el-input
v-model
=
"establishForm.registrationCode"
></el-input>
<el-input
v-model
.
trim
=
"establishForm.registrationCode"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
<el-form-item
label=
"经营者(法人)身份证照片:"
label=
"经营者(法人)身份证照片:"
...
@@ -57,7 +57,6 @@
...
@@ -57,7 +57,6 @@
action=
""
action=
""
multiple
multiple
show-file-list
show-file-list
:limit=
"4"
:auto-upload=
"false"
:auto-upload=
"false"
:file-list=
"establishForm.idcardPhoto"
:file-list=
"establishForm.idcardPhoto"
:on-change=
"onIdPhoneChange"
:on-change=
"onIdPhoneChange"
...
@@ -74,14 +73,14 @@
...
@@ -74,14 +73,14 @@
label=
"经营者(法人)姓名:"
label=
"经营者(法人)姓名:"
prop=
"legalName"
prop=
"legalName"
>
>
<el-input
v-model
=
"establishForm.legalName"
></el-input>
<el-input
v-model
.
trim
=
"establishForm.legalName"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
<el-form-item
label=
"经营者(法人)身份证号:"
label=
"经营者(法人)身份证号:"
prop=
"idcardNumber"
prop=
"idcardNumber"
>
>
<el-input
v-model
.
number
=
"establishForm.idcardNumber"
></el-input>
<el-input
v-model
.
trim
=
"establishForm.idcardNumber"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
@
click=
"handelCancel('establish_form')"
>
取消
</el-button>
<el-button
@
click=
"handelCancel('establish_form')"
>
取消
</el-button>
...
@@ -92,12 +91,16 @@
...
@@ -92,12 +91,16 @@
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</div>
</div>
</layout>
</
template
>
</
template
>
<
style
lang=
"less"
src=
"./index.less"
scope
></
style
>
<
style
lang=
"less"
src=
"./index.less"
scope
></
style
>
<
script
>
<
script
>
import
Layout
from
"@/layouts"
;
export
default
{
export
default
{
name
:
'Establish'
,
components
:
{
Layout
},
data
()
{
data
()
{
// 营业执照校验规则
// 营业执照校验规则
let
businessRules
=
(
rule
,
value
,
callback
)
=>
{
let
businessRules
=
(
rule
,
value
,
callback
)
=>
{
...
@@ -115,6 +118,19 @@ export default {
...
@@ -115,6 +118,19 @@ export default {
callback
();
callback
();
}
}
};
};
// 身份证号校验规则
let
idcardNumberRules
=
(
rule
,
value
,
callback
)
=>
{
let
IDRe18
=
/^
([
1-6
][
1-9
]
|50
)\d{4}(
18|19|20
)\d{2}((
0
[
1-9
])
|10|11|12
)(([
0-2
][
1-9
])
|10|20|30|31
)\d{3}[
0-9Xx
]
$/
;
let
IDre15
=
/^
([
1-6
][
1-9
]
|50
)\d{4}\d{2}((
0
[
1-9
])
|10|11|12
)(([
0-2
][
1-9
])
|10|20|30|31
)\d{3}
$/
;
let
idNumber
=
this
.
establishForm
.
idcardNumber
;
if
(
idNumber
.
length
===
0
)
{
callback
(
new
Error
(
"身份证号不可为空"
));
}
else
if
(
!
(
IDRe18
.
test
(
idNumber
)
||
IDre15
.
test
(
idNumber
)))
{
callback
(
new
Error
(
"身份证号格式不正确"
));
}
else
{
callback
();
}
};
return
{
return
{
// 表单输入项
// 表单输入项
establishForm
:
{
establishForm
:
{
...
@@ -130,7 +146,7 @@ export default {
...
@@ -130,7 +146,7 @@ export default {
establishRules
:
{
establishRules
:
{
// 营业执照
// 营业执照
businessLicense
:
[
businessLicense
:
[
{
validator
:
businessRules
,
trigger
:
"change"
}
{
required
:
true
,
validator
:
businessRules
,
trigger
:
"change"
}
],
],
// 企业注册名称
// 企业注册名称
registeredName
:
[
registeredName
:
[
...
@@ -138,19 +154,31 @@ export default {
...
@@ -138,19 +154,31 @@ export default {
],
],
// 注册码
// 注册码
registrationCode
:
[
registrationCode
:
[
{
required
:
true
,
message
:
"请输入统一社会信用代码(注册码)"
,
trigger
:
"blur"
}
{
required
:
true
,
message
:
"请输入统一社会信用代码(注册码)"
,
trigger
:
"blur"
}
],
],
// 法人照片
// 法人照片
legalPhoto
:
[
legalPhoto
:
[
{
validator
:
idPhotoRules
,
trigger
:
"change"
}
{
required
:
true
,
validator
:
idPhotoRules
,
trigger
:
"change"
}
],
],
// 法人姓名
// 法人姓名
legalName
:
[
legalName
:
[
{
required
:
true
,
message
:
"请输入经营者(法人)姓名"
,
trigger
:
"blur"
}
{
required
:
true
,
message
:
"请输入经营者(法人)姓名"
,
trigger
:
"blur"
}
],
],
// 法人身份证号
// 法人身份证号
idcardNumber
:
[
idcardNumber
:
[
{
required
:
true
,
message
:
"请输入经营者(法人)身份证号"
,
trigger
:
"blur"
}
{
required
:
true
,
validator
:
idcardNumberRules
,
trigger
:
"blur"
}
]
]
}
}
};
};
...
@@ -165,15 +193,15 @@ export default {
...
@@ -165,15 +193,15 @@ export default {
// 执照列表更改时
// 执照列表更改时
onLicenseChange
(
file
,
fileList
)
{
onLicenseChange
(
file
,
fileList
)
{
this
.
establishForm
.
licenseList
=
fileList
;
this
.
establishForm
.
licenseList
=
fileList
;
this
.
$refs
[
'licenseChange'
].
clearValidate
();
this
.
$refs
[
"licenseChange"
].
clearValidate
();
console
.
log
(
"licenseList"
,
this
.
establishForm
.
licenseList
);
console
.
log
(
"licenseList"
,
this
.
establishForm
.
licenseList
);
},
},
// 身份证照片更改时
// 身份证照片更改时
onIdPhoneChange
(
file
,
fileList
)
{
onIdPhoneChange
(
file
,
fileList
)
{
this
.
establishForm
.
idcardPhoto
=
fileList
;
this
.
establishForm
.
idcardPhoto
=
fileList
;
this
.
$refs
[
'idcardPhotoChange'
].
clearValidate
();
this
.
$refs
[
"idcardPhotoChange"
].
clearValidate
();
console
.
log
(
'idcardPhoto:'
,
this
.
establishForm
.
idcardPhoto
);
console
.
log
(
"idcardPhoto:"
,
this
.
establishForm
.
idcardPhoto
);
},
},
// 删除上传的营业执照
// 删除上传的营业执照
...
@@ -186,7 +214,7 @@ export default {
...
@@ -186,7 +214,7 @@ export default {
// 删除上传的身份证照片
// 删除上传的身份证照片
onIdPhoneRemove
(
file
,
fileList
)
{
onIdPhoneRemove
(
file
,
fileList
)
{
this
.
establishForm
.
idcardPhoto
=
fileList
this
.
establishForm
.
idcardPhoto
=
fileList
;
console
.
log
(
"idCarPhoto:"
,
this
.
establishForm
.
idcardPhoto
);
console
.
log
(
"idCarPhoto:"
,
this
.
establishForm
.
idcardPhoto
);
},
},
...
...
src/router/index.js
View file @
62b3917b
...
@@ -21,17 +21,17 @@ const routes = [
...
@@ -21,17 +21,17 @@ const routes = [
{
{
path
:
'/enterprise/certification'
,
path
:
'/enterprise/certification'
,
name
:
'Certification'
,
name
:
'Certification'
,
component
:
()
=>
import
(
/* webpackChunkName: "enterprise" */
'
..
/pages/Enterprise/Certification'
)
component
:
()
=>
import
(
/* webpackChunkName: "enterprise" */
'
@
/pages/Enterprise/Certification'
)
},
},
{
{
path
:
'/enterprise/audit'
,
path
:
'/enterprise/audit'
,
name
:
'Audit'
,
name
:
'Audit'
,
component
:
()
=>
import
(
/* webpackChunkName: "enterprise" */
'
..
/pages/Enterprise/Audit'
)
component
:
()
=>
import
(
/* webpackChunkName: "enterprise" */
'
@
/pages/Enterprise/Audit'
)
},
},
{
{
path
:
'/enterprise/establish'
,
path
:
'/enterprise/establish'
,
name
:
'Establish'
,
name
:
'Establish'
,
component
:
()
=>
import
(
/* webpackChunkName: "enterprise" */
'
..
/pages/Enterprise/Establish'
)
component
:
()
=>
import
(
/* webpackChunkName: "enterprise" */
'
@
/pages/Enterprise/Establish'
)
}
}
];
];
...
...
src/service/enterprise.js
0 → 100644
View file @
62b3917b
// import axios from "../utils/request";
// export default {
// async getMessage () {
// // const res = await axios().get
// }
// };
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