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
a52a6666
Commit
a52a6666
authored
Jun 16, 2021
by
mengwenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:上传图片回显修改完成,时间信息修改完成
parent
24176928
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
63 additions
and
41 deletions
+63
-41
index.vue
src/pages/Enterprise/Audit/index.vue
+1
-4
index.vue
src/pages/Enterprise/Certification/index.vue
+33
-19
enterpriseForm.vue
src/pages/Enterprise/components/enterpriseForm.vue
+29
-18
No files found.
src/pages/Enterprise/Audit/index.vue
View file @
a52a6666
...
...
@@ -196,7 +196,7 @@
<el-table-column
align=
"center"
label=
"提交时间"
prop=
"
aud
it_time"
prop=
"
subm
it_time"
></el-table-column>
<el-table-column
align=
"center"
...
...
@@ -402,9 +402,6 @@ export default {
this
.
messageForm
=
res
.
result
;
this
.
messageList
.
push
(
res
.
result
.
record
);
this
.
lifeList
.
push
(
res
.
result
.
life
);
console
.
log
(
"messageForm=1-2=310=-203"
,
this
.
messageForm
);
console
.
log
(
"lifeLIST======"
,
this
.
lifeList
);
console
.
log
(
"messageList"
,
this
.
messageList
);
console
.
log
(
res
);
}
catch
(
error
)
{
this
.
$message
.
error
(
"发生未知错误,请稍后再试一下吧~~~"
);
...
...
src/pages/Enterprise/Certification/index.vue
View file @
a52a6666
...
...
@@ -45,7 +45,7 @@
v-model=
"enterpriseForm.audit_status"
>
<el-option
v-for=
"item in
enterpriseForm.
statusOptions"
v-for=
"item in statusOptions"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
...
...
@@ -61,7 +61,7 @@
placeholder=
"请选择提交类型"
>
<el-option
v-for=
"item in
enterpriseForm.
typeOptions"
v-for=
"item in typeOptions"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
...
...
@@ -130,7 +130,7 @@
></el-table-column>
<el-table-column
label=
"提交日期"
prop=
"
aud
it_time"
prop=
"
subm
it_time"
align=
"center"
></el-table-column>
<el-table-column
...
...
@@ -173,8 +173,12 @@
"
size=
"mini"
type=
"success"
@
click=
"goAuditPage(scope.row.audit_status=== 5 ? 'COMPILE' : 'EDIT',
scope.row.enterprise_auth_record_id)"
@
click=
"
goAuditPage(
scope.row.audit_status === 5 ? 'COMPILE' : 'EDIT',
scope.row.enterprise_auth_record_id
)
"
>
{{
scope
.
row
.
audit_status
===
5
?
"编辑"
:
"修改"
}}
提交
</el-button>
...
...
@@ -244,6 +248,7 @@ export default {
audit_status
:
10
,
data_from
:
null
,
proxy_user_name
:
null
,
},
statusOptions
:
[
{
value
:
""
,
label
:
"全部"
},
{
value
:
5
,
label
:
"编辑中"
},
...
...
@@ -255,8 +260,7 @@ export default {
{
value
:
1
,
label
:
"生活圈c端"
},
{
value
:
2
,
label
:
"销售端b端"
},
{
value
:
3
,
label
:
"内部代提交"
}
]
},
],
// 企业认证管理列表
enterpriseList
:
[],
...
...
@@ -273,6 +277,8 @@ export default {
},
created
()
{
const
queryForm
=
window
.
localStorage
.
getItem
(
"queryForm"
);
this
.
enterpriseForm
=
queryForm
?
JSON
.
parse
(
queryForm
)
:
this
.
enterpriseForm
;
this
.
getEnterpriseList
();
console
.
log
(
this
.
$store
);
},
...
...
@@ -325,6 +331,13 @@ export default {
resetForm
(
formName
)
{
this
.
$refs
[
formName
].
resetFields
();
this
.
enterpriseForm
.
audit_status
=
""
;
this
.
enterpriseForm
.
name
=
""
;
this
.
enterpriseForm
.
code
=
""
;
this
.
enterpriseForm
.
legal_person
=
""
;
this
.
enterpriseForm
.
audit_status
=
""
;
this
.
enterpriseForm
.
data_from
=
null
;
this
.
enterpriseForm
.
proxy_user_name
=
null
;
window
.
localStorage
.
removeItem
(
"queryForm"
);
this
.
getEnterpriseList
();
},
...
...
@@ -340,8 +353,7 @@ export default {
return
(
this
.
detailDialogVisible
=
true
);
}
else
if
(
pageStatus
===
"COMPILE"
)
{
this
.
$router
.
push
({
name
:
"Audit"
,
params
:
{
pageStatus
,
auditId
}
});
}
else
{
}
else
{
this
.
$router
.
push
({
name
:
"Audit"
,
params
:
{
pageStatus
,
auditId
}
});
}
},
...
...
@@ -384,6 +396,8 @@ export default {
// 查询列表
queryMessage
()
{
const
queryString
=
JSON
.
stringify
(
this
.
enterpriseForm
);
window
.
localStorage
.
setItem
(
"queryForm"
,
queryString
);
this
.
getEnterpriseList
();
// 加载数据
}
}
...
...
src/pages/Enterprise/components/enterpriseForm.vue
View file @
a52a6666
...
...
@@ -326,7 +326,7 @@ export default {
this
.
establishForm
.
userName
=
val
.
record
.
legal_person
;
this
.
establishForm
.
legal_mobile
=
val
.
record
.
legal_mobile
;
this
.
establishForm
.
mobile
=
val
.
life
.
mobile
;
this
.
establishForm
.
legal_mobile
=
val
.
record
.
legal_
mobile
;
this
.
establishForm
.
legal_mobile
=
val
.
record
.
mobile
;
this
.
establishForm
.
user_id
=
val
.
record
.
user_id
;
this
.
establishForm
.
sensitiveWord
=
val
.
record
.
sensitiveWord
;
this
.
establishForm
.
entterpriseImage
=
val
.
record
.
entterprise_image
;
...
...
@@ -368,18 +368,18 @@ export default {
return
this
.
$message
.
error
(
"您无敏感词权限修改信息!!!"
);
// 企业信息提交参数
cons
t
{
le
t
{
code
,
name
,
entterprise_image
,
data_type
,
mobile
,
user_id
,
front_img
,
bak_img
,
idcard_number
,
userName
,
name
:
userName
,
legal_mobile
,
mobile
,
user_id
}
=
this
.
establishForm
;
/**
* 第一步 企业信息提交(修改)
...
...
@@ -403,13 +403,14 @@ export default {
}
// 修改
else
{
cons
t
{
le
t
{
code
,
name
,
entterprise_image
,
data_type
,
mobile
}
=
this
.
establishForm
;
entterprise_image
=
this
.
transformObjectId
(
entterprise_image
);
const
editQuery
=
{
record_id
:
this
.
enterpriseId
,
code
,
...
...
@@ -419,6 +420,7 @@ export default {
data_from
:
3
,
mobile
};
console
.
log
(
"参数修改"
,
editQuery
);
const
res
=
await
opBusinessUpdate
(
editQuery
);
console
.
log
(
res
);
if
(
res
.
code
!==
0
)
return
this
.
$message
.
error
(
res
.
reason
);
...
...
@@ -426,29 +428,38 @@ export default {
/**
* 第二步 法人(经营者信息提交)
*/
// 法人信息提交参数
const
legalQuery
=
{
front_img
=
this
.
transformObjectId
(
front_img
);
bak_img
=
this
.
transformObjectId
(
bak_img
);
// 提交法人信息
let
legalQuery
=
{
record_id
:
this
.
enterpriseId
?
this
.
enterpriseId
:
this
.
establishForm
.
enterprise_id
,
front_img
,
bak_img
,
front_completeness
:
0
,
bak_completeness
:
0
,
user_id
:
user_id
?
parseInt
(
user_id
)
:
""
,
front_img
,
bak_img
,
idcard_number
,
name
:
userName
,
legal_mobile
,
data_type
,
user_id
:
user_id
?
parseInt
(
user_id
)
:
""
data_type
};
const
result
=
await
opCommit
(
legalQuery
);
if
(
result
.
code
!==
0
)
return
this
.
$message
.
error
(
result
.
reason
);
if
(
!
this
.
enterpriseId
)
{
this
.
$message
.
success
(
"企业信息代提交成功!"
);
this
.
$router
.
replace
({
name
:
"Certification"
});
}
else
{
this
.
$message
.
success
(
"企业信息修改成功!"
);
this
.
$message
.
success
(
`企业信息
${
this
.
enterpriseId
?
"修改"
:
"代提交"
}
成功!`
);
this
.
$router
.
replace
({
name
:
"Certification"
});
},
// 转换图片地址为ObjectId
transformObjectId
(
urls
)
{
try
{
const
url
=
new
URL
(
urls
);
let
pathName
=
url
.
pathname
;
let
objectId
=
pathName
.
slice
(
1
);
return
objectId
;
}
catch
(
error
)
{
return
urls
;
}
}
}
...
...
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