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
02b3dfef
Commit
02b3dfef
authored
Jul 03, 2020
by
wangyalan-git
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
库存统计,领用记录,库存统计,领用详情
parent
f9207d15
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
scan.vue
src/views/Admin/scan.vue
+11
-8
No files found.
src/views/Admin/scan.vue
View file @
02b3dfef
<
template
>
<div
class=
"page"
>
<navbar
title=
"扫码出库"
rightText=
"完成"
@
rightClick=
"submit"
></navbar>
<navbar
title=
"扫码出库"
rightText=
"完成"
@
rightClick=
"submit"
></navbar>
<div
class=
"container"
>
<div
class=
"info"
v-if=
"JSON.stringify(userInfo)!= '
{}'">
<p>
申领人:
<span>
{{
userInfo
.
name
}}
</span></p>
...
...
@@ -68,6 +68,9 @@ export default {
})
})
console
.
log
(
'成功'
,
result
)
},
error
:
function
(
res
)
{
alert
(
res
)
}
})
// const result = '{"onlyId":"84c322654e1a4ae4bf93c99839a5af72","memberId":36}'
...
...
@@ -84,16 +87,16 @@ export default {
// 物品条形码扫描
scanBarCode
()
{
/* eslint-disable */
if
(
JSON
.
stringify
(
this
.
userInfo
)
==
'{}'
)
{
this
.
$toast
.
fail
(
'请先扫描员工二维码'
)
return
}
//
if (JSON.stringify(this.userInfo) == '{}') {
//
this.$toast.fail('请先扫描员工二维码')
//
return
//
}
window
.
qing
.
call
(
'scanQRCode'
,
{
needResult
:
1
,
success
:
function
(
result
)
{
// result.data = '{"barCode":"f7c3af254e5a40caaf7dab1b06fd7a1c","memberId":53}'
// const data = JSON.parse(result.data)
getGoodsInfo
({
barCode
:
result
.
data
.
qrcode_str
}).
then
(
res
=>
{
getGoodsInfo
({
barCode
:
result
.
data
.
qrcode_str
}).
then
(
res
=>
{
let
data
=
res
.
data
let
params
=
{
id
:
data
.
id
,
...
...
@@ -146,7 +149,7 @@ export default {
item
.
id
===
id
)
this
.
list
[
isIndex
].
goodsNum
=
value
console
.
log
(
'修改数量'
,
this
.
list
)
console
.
log
(
'修改数量'
,
this
.
list
)
},
// 提交
submit
()
{
...
...
@@ -154,7 +157,7 @@ export default {
this
.
$toast
.
fail
(
'请先扫描物品'
)
return
}
console
.
log
(
'this.userInfo.id'
,
this
.
userInfo
.
id
)
console
.
log
(
'this.userInfo.id'
,
this
.
userInfo
.
id
)
let
params
=
{
memberId
:
this
.
userInfo
.
id
,
outMemberId
:
this
.
$store
.
getters
.
memberId
,
...
...
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