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
267f5fca
Commit
267f5fca
authored
Jul 03, 2020
by
wangyalan-git
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
扫码测试
parent
adaa7a9a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
1 deletion
+31
-1
scan.vue
src/views/Admin/scan.vue
+31
-1
No files found.
src/views/Admin/scan.vue
View file @
267f5fca
...
...
@@ -96,6 +96,10 @@ export default {
needResult
:
1
,
success
:
function
(
result
)
{
getGoodsInfo
({
barCode
:
result
.
data
.
qrcode_str
}).
then
(
res
=>
{
if
(
!
res
.
data
){
that
.
$toast
(
'该物品暂未入库'
)
return
}
let
data
=
res
.
data
let
params
=
{
id
:
data
.
id
,
...
...
@@ -119,7 +123,32 @@ export default {
}
})
// getGoodsInfo({ barCode: '11111111111111111111' }).then(res => {
// if(!res.data){
// this.$toast('该物品暂未入库')
// return
// }
// console.log('data',res)
// let data = res.data
// let params = {
// id: data.id,
// name: data.name,
// goodsNo: data.goodsNo,
// goodsCategoryId: data.goodsCategoryId,
// goodsCategoryName: data.goodsCategoryName,
// goodsNum: 1,
// maxNum: data.goodsNum
// }
// let isExist = that.list.findIndex(item =>
// item.id === data.id
// )
// if (isExist === -1) {
// that.list.push(params)
// } else {
// that.list[isExist].goodsNum = that.list[isExist].goodsNum + 1
// }
// console.log('要出库的商品', that.list)
// })
},
// 数量修改
changeNum
(
value
,
id
)
{
...
...
@@ -142,6 +171,7 @@ export default {
outMemberId
:
this
.
$store
.
getters
.
memberId
,
vankeGoodsDtoList
:
this
.
list
}
console
.
log
(
'出库'
,
params
)
outBoundGoods
(
params
).
then
(
res
=>
{
this
.
$toast
.
success
(
'出库成功'
)
this
.
list
=
[]
...
...
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