Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
h5
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
vanke
h5
Commits
b1e5167b
Commit
b1e5167b
authored
Jul 03, 2020
by
wangyalan-git
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
库存统计,领用记录,库存统计,领用详情
parent
eb70e9ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
scan.vue
src/views/Admin/scan.vue
+8
-3
No files found.
src/views/Admin/scan.vue
View file @
b1e5167b
...
@@ -66,6 +66,7 @@ export default {
...
@@ -66,6 +66,7 @@ export default {
},
},
// 员工二维码扫描
// 员工二维码扫描
scanQrCode
()
{
scanQrCode
()
{
const
that
=
this
window
.
qing
.
call
(
'scanQRCode'
,
{
window
.
qing
.
call
(
'scanQRCode'
,
{
needResult
:
1
,
needResult
:
1
,
success
:
function
(
result
)
{
success
:
function
(
result
)
{
...
@@ -73,24 +74,28 @@ export default {
...
@@ -73,24 +74,28 @@ export default {
const
data
=
JSON
.
parse
(
result
.
data
.
qrcode_str
)
const
data
=
JSON
.
parse
(
result
.
data
.
qrcode_str
)
checkQcode
(
data
).
then
(
res
=>
{
checkQcode
(
data
).
then
(
res
=>
{
console
.
log
(
'校验结果'
,
res
)
console
.
log
(
'校验结果'
,
res
)
alert
(
'校验结果'
+
res
)
getMemberInfo
({
memberId
:
data
.
memberId
}).
then
(
res
=>
{
getMemberInfo
({
memberId
:
data
.
memberId
}).
then
(
res
=>
{
console
.
log
(
'userId'
,
res
)
console
.
log
(
'userId'
,
res
)
this
.
userInfo
=
res
.
data
that
.
userInfo
=
res
.
data
alert
(
'userInfo'
+
res
.
data
)
})
})
})
})
alert
(
'数据2'
+
that
.
userInfo
)
console
.
log
(
'成功'
,
result
)
console
.
log
(
'成功'
,
result
)
},
},
error
:
function
(
res
)
{
error
:
function
(
res
)
{
alert
(
'失败'
+
res
)
alert
(
'失败'
+
res
)
}
}
})
})
// const result = '{"onlyId":"
84c322654e1a4ae4bf93c99839a5af72
","memberId":36}'
// const result = '{"onlyId":"
056e3cf540194041bd5a2eadf91301b6
","memberId":36}'
// const data = JSON.parse(result)
// const data = JSON.parse(result)
// checkQcode(data).then(res => {
// checkQcode(data).then(res => {
// console.log('校验结果', res)
// console.log('校验结果', res)
// getMemberInfo({ memberId: data.memberId }).then(res => {
// getMemberInfo({ memberId: data.memberId }).then(res => {
// console.log('userId', res)
// this.userInfo = res.data
// this.userInfo = res.data
// console.log('userId', this.userInfo)
// })
// })
// })
// })
// console.log('成功', result)
// console.log('成功', result)
...
...
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