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
34708a5f
Commit
34708a5f
authored
Dec 21, 2021
by
Jianli Ou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整厂商实名认证首次,变更,修改信息逻辑
对接修改手机号
parent
13cf1d96
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
129 additions
and
10 deletions
+129
-10
myManage.js
src/axios/module/myManage.js
+20
-1
index.js
src/router/index.js
+8
-0
changePhone.vue
src/views/MyManage/UnVerify/changePhone.vue
+31
-6
index.vue
src/views/MyManage/UnVerify/index.vue
+1
-1
vendor.vue
src/views/MyManage/UnVerify/vendor.vue
+5
-1
vendorModify.vue
src/views/MyManage/UnVerify/vendorModify.vue
+0
-0
index.vue
src/views/MyManage/index.vue
+64
-1
No files found.
src/axios/module/myManage.js
View file @
34708a5f
...
@@ -62,7 +62,22 @@ const tycpdmfirmReturnFile = (params = {}) => {
...
@@ -62,7 +62,22 @@ const tycpdmfirmReturnFile = (params = {}) => {
const
redirectGLN
=
()
=>
{
const
redirectGLN
=
()
=>
{
return
POST
(
`
${
Prefix
}
/office/tycpdmfirm/authApi/redirectGLN`
)
return
POST
(
`
${
Prefix
}
/office/tycpdmfirm/authApi/redirectGLN`
)
}
}
// 修改企业信息(不需审批)
const
updateTycpdmFirmInfo
=
(
params
=
{})
=>
{
return
POST
(
`
${
Prefix
}
/office/tycpdmfirm/authApi/update`
,
params
)
}
// 企业信息(不需审批)
const
tycpdmFirmInfoNoAuth
=
(
params
=
{})
=>
{
return
POST
(
`
${
Prefix
}
/office/tycpdmfirm/authApi/findByUserName`
,
params
)
}
// 获取验证码(修改手机号)
const
getVerificationCode
=
(
params
=
{})
=>
{
return
POST
(
`
${
Prefix
}
/office/member/api/getVerificationCode`
,
params
)
}
//
//
const
updatePhone
=
(
params
=
{})
=>
{
return
POST
(
`
${
Prefix
}
/office/member/authApi/updatephone`
,
params
)
}
export
default
{
export
default
{
memberInfo
,
memberInfo
,
saveMemberInfo
,
saveMemberInfo
,
...
@@ -77,5 +92,9 @@ export default {
...
@@ -77,5 +92,9 @@ export default {
tycpdmfirmChangeAuditList
,
tycpdmfirmChangeAuditList
,
tycpdmfirmupdateSystem
,
tycpdmfirmupdateSystem
,
tycpdmfirmReturnFile
,
tycpdmfirmReturnFile
,
redirectGLN
redirectGLN
,
updateTycpdmFirmInfo
,
tycpdmFirmInfoNoAuth
,
getVerificationCode
,
updatePhone
}
}
src/router/index.js
View file @
34708a5f
...
@@ -1032,6 +1032,14 @@ const routes = [
...
@@ -1032,6 +1032,14 @@ const routes = [
},
},
component
:
()
=>
import
(
"@/views/MyManage/UnVerify/changePhone.vue"
),
component
:
()
=>
import
(
"@/views/MyManage/UnVerify/changePhone.vue"
),
},
},
{
path
:
"/MyManage/UnVerify/vendorModify"
,
name
:
"vendorModify"
,
meta
:
{
name
:
"修改企业信息"
,
},
component
:
()
=>
import
(
"@/views/MyManage/UnVerify/vendorModify.vue"
),
},
// 系统成员
// 系统成员
{
{
path
:
"/MyManage/SystemMember/index"
,
path
:
"/MyManage/SystemMember/index"
,
...
...
src/views/MyManage/UnVerify/changePhone.vue
View file @
34708a5f
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
</el-form>
</el-form>
</div>
</div>
<div
class=
"btn-div"
>
<div
class=
"btn-div"
>
<el-button
type=
"primary"
style=
"width: 110px"
>
保 存
</el-button>
<el-button
type=
"primary"
@
click=
"savePhone"
style=
"width: 110px"
>
保 存
</el-button>
</div>
</div>
...
@@ -68,17 +68,37 @@ export default {
...
@@ -68,17 +68,37 @@ export default {
mobile
:
''
,
mobile
:
''
,
validate
:
''
validate
:
''
},
},
loginInfo
:
{},
memberInfo
:
{},
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}
$/
,
}
}
},
},
methods
:
{
methods
:
{
async
savePhone
()
{
const
form
=
{
id
:
this
.
loginInfo
.
id
,
phone
:
this
.
form
.
mobile
,
verification
:
this
.
form
.
validate
}
const
result
=
await
this
.
$api
.
myManage
.
updatePhone
(
form
)
if
(
result
.
success
)
{
this
.
$message
.
success
(
'保存成功'
)
}
else
{
this
.
$message
.
error
(
result
.
returnMsg
)
}
},
async
sendValidateCode
()
{
sendValidateCode
()
{
if
(
this
.
form
.
mobile
===
''
)
{
if
(
this
.
form
.
mobile
===
''
)
{
this
.
$message
({
type
:
'error'
,
message
:
'请输入手机号码'
});
this
.
$message
({
type
:
'error'
,
message
:
'请输入手机号码'
});
}
else
{
}
else
{
const
result
=
await
this
.
$api
.
myManage
.
getVerificationCode
({
phone
:
this
.
form
.
mobile
,
userName
:
this
.
memberInfo
.
username
})
if
(
result
.
success
)
{
this
.
$message
.
success
(
'验证码已发送'
)
}
else
{
this
.
$message
.
error
(
result
.
returnMsg
)
return
}
this
.
hasSent
=
true
;
this
.
hasSent
=
true
;
this
.
timer
=
setInterval
(()
=>
{
this
.
timer
=
setInterval
(()
=>
{
this
.
time
-=
1
;
this
.
time
-=
1
;
...
@@ -112,9 +132,14 @@ export default {
...
@@ -112,9 +132,14 @@ export default {
resolve
(
true
);
resolve
(
true
);
});
});
},
},
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
>
...
...
src/views/MyManage/UnVerify/index.vue
View file @
34708a5f
...
@@ -108,7 +108,7 @@
...
@@ -108,7 +108,7 @@
</div>
</div>
</li>
</li>
<!-- 校准已认证 -->
<!-- 校准已认证 -->
<li>
<li
v-if=
"false"
>
<p
class=
"content-title"
>
<p
class=
"content-title"
>
检测校准申请(办理“条码印制品检测”、“条码检测仪校准”等业务需先完成此申请)
检测校准申请(办理“条码印制品检测”、“条码检测仪校准”等业务需先完成此申请)
</p>
</p>
...
...
src/views/MyManage/UnVerify/vendor.vue
View file @
34708a5f
...
@@ -4,7 +4,11 @@
...
@@ -4,7 +4,11 @@
<p><i
class=
"bi bi-exclamation-triangle-fill"
></i>
厂商实名认证(办理“进口商品信息通报、GLN”等业务需先完成此认证)
</p>
<p><i
class=
"bi bi-exclamation-triangle-fill"
></i>
厂商实名认证(办理“进口商品信息通报、GLN”等业务需先完成此认证)
</p>
</div>
</div>
<div
class=
"content"
>
<div
class=
"content"
>
<div
class=
"title"
>
厂商实名认证——填写实名信息
<a
href=
"/MyManage/UnVerify/index"
>
返回我的首页
</a></div>
<div
class=
"title"
>
{{
status
===
2
?
'变更厂商实名认证信息'
:
'厂商实名认证——填写实名信息'
}}
<a
v-if=
"status !== 2"
href=
"/MyManage/UnVerify/index"
>
返回我的首页
</a>
<a
v-else
href=
"/MyManage/UnVerify/vendorModify"
>
修改企业信息
</a>
</div>
<div
class=
"content-list"
>
<div
class=
"content-list"
>
<p
>
<p
>
<span>
1.填写实名信息
</span>
<span>
1.填写实名信息
</span>
...
...
src/views/MyManage/UnVerify/vendorModify.vue
0 → 100644
View file @
34708a5f
This diff is collapsed.
Click to expand it.
src/views/MyManage/index.vue
View file @
34708a5f
...
@@ -87,7 +87,66 @@ export default {
...
@@ -87,7 +87,66 @@ export default {
index
:
2
,
index
:
2
,
link
:
"/MyManage/UnVerify/changePhone"
,
link
:
"/MyManage/UnVerify/changePhone"
,
},
},
],
},
],
isQYRouterList
:
[
{
id
:
uuid
(
"gs_nav"
),
name
:
"首页"
,
index
:
0
,
link
:
"/MyManage/UnVerify/index"
,
},
{
id
:
uuid
(
"gs_nav"
),
name
:
"业务管理"
,
index
:
1
,
link
:
""
,
children
:
[
{
id
:
uuid
(
"gs_nav"
),
name
:
"商品条码在线注册"
,
index
:
0
,
link
:
"/Business"
,
},
{
id
:
uuid
(
"gs_nav"
),
name
:
"检测校准申请"
,
index
:
2
,
link
:
"/MyManage/UnVerify/calibration"
,
},
],
},
{
id
:
uuid
(
"gs_nav"
),
name
:
"用户信息管理"
,
index
:
2
,
link
:
""
,
children
:
[
{
id
:
uuid
(
"gs_nav"
),
name
:
"个人资料"
,
index
:
0
,
link
:
"/MyManage/UnVerify/personalInfo"
,
},
{
id
:
uuid
(
"gs_nav"
),
name
:
"修改登录密码"
,
index
:
1
,
link
:
"/MyManage/UnVerify/changePass"
,
},
{
id
:
uuid
(
"gs_nav"
),
name
:
"修改手机号码"
,
index
:
2
,
link
:
"/MyManage/UnVerify/changePhone"
,
},
{
id
:
uuid
(
"gs_nav"
),
name
:
"变更企业信息"
,
index
:
1
,
link
:
"/MyManage/UnVerify/vendor"
,
},
],
],
},
},
],
],
...
@@ -180,6 +239,10 @@ export default {
...
@@ -180,6 +239,10 @@ export default {
if
(
this
.
loginInfo
.
userType
!==
3
)
{
// 业务大厅用户不展示厂商实名认证菜单
if
(
this
.
loginInfo
.
userType
!==
3
)
{
// 业务大厅用户不展示厂商实名认证菜单
this
.
routerList
[
1
].
children
=
this
.
routerList
[
1
].
children
.
filter
(
item
=>
item
.
index
!==
1
)
this
.
routerList
[
1
].
children
=
this
.
routerList
[
1
].
children
.
filter
(
item
=>
item
.
index
!==
1
)
}
}
if
(
this
.
loginInfo
.
userType
===
3
&&
this
.
loginInfo
.
isQY
===
1
)
{
this
.
$store
.
commit
(
"system/SET_SUB_NAV"
,
this
.
isQYRouterList
);
return
}
this
.
$store
.
commit
(
"system/SET_SUB_NAV"
,
this
.
routerList
);
this
.
$store
.
commit
(
"system/SET_SUB_NAV"
,
this
.
routerList
);
}
else
if
(
this
.
userType
===
SYSTEM_MEMBER
)
{
}
else
if
(
this
.
userType
===
SYSTEM_MEMBER
)
{
if
(
this
.
loginInfo
.
userType
!==
3
)
{
// 业务大厅用户不展示厂商实名认证菜单
if
(
this
.
loginInfo
.
userType
!==
3
)
{
// 业务大厅用户不展示厂商实名认证菜单
...
...
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