Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-boutique-work-wechat
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 601aaecc
authored
Jun 09, 2026
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
扫码出库新增园区店id参数
1 parent
caeca750
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
tabRepairOrder/pages/goodsOutbound/goodsOutbound.js
tabRepairOrder/pages/goodsOutbound/goodsOutbound.js
View file @
601aaec
...
...
@@ -397,9 +397,10 @@ Page({
onlyFromCamera
:
true
,
success
:
(
res
)
=>
{
let
{
goodsInfo
}
=
this
.
data
let
userInfo
=
wx
.
$util
.
getUserInfo
()
if
(
!
res
?.
result
)
return
wx
.
$util
.
showToast
(
'未识别正确产品编码'
)
const
scanned
=
String
(
res
.
result
).
trim
()
getScanRecognizeReduce
({
uniqueCode
:
scanned
,
upgradeGoodsId
:
goodsInfo
?.
upgradeGoodsId
}).
then
(
result
=>
{
getScanRecognizeReduce
({
uniqueCode
:
scanned
,
upgradeGoodsId
:
goodsInfo
?.
upgradeGoodsId
,
merchantId
:
userInfo
?.
merchantId
}).
then
(
result
=>
{
let
{
code
,
data
,
message
}
=
result
||
{}
if
(
code
!=
0
)
return
wx
.
$util
.
showToast
(
message
||
'扫码识别失败'
)
const
uniqueCode
=
String
(
data
?.
uniqueCode
||
scanned
).
trim
()
...
...
@@ -624,6 +625,7 @@ Page({
async
restoreScanListFromUniqueCodes
()
{
const
goodsInfo
=
this
.
data
.
goodsInfo
||
{}
let
userInfo
=
wx
.
$util
.
getUserInfo
()
const
rawList
=
Array
.
isArray
(
goodsInfo
?.
uniqueCodeList
)
?
goodsInfo
.
uniqueCodeList
:
[]
const
codes
=
rawList
.
map
((
it
)
=>
{
...
...
@@ -653,17 +655,19 @@ Page({
try
{
const
result
=
await
getScanRecognizeReduce
({
uniqueCode
:
code
,
upgradeGoodsId
:
goodsInfo
?.
upgradeGoodsId
upgradeGoodsId
:
goodsInfo
?.
upgradeGoodsId
,
merchantId
:
userInfo
?.
merchantId
})
const
{
code
:
resCode
,
data
}
=
result
||
{}
const
uniqueCode
=
String
(
data
?.
uniqueCode
||
code
).
trim
()
const
ableReduceNum
=
Number
(
data
?.
ableReduceNum
)
nextList
.
push
({
uniqueCode
,
stock
:
Number
.
isFinite
(
ableReduceNum
)
?
ableReduceNum
:
''
})
if
(
resCode
==
0
)
{
nextList
.
push
({
uniqueCode
,
stock
:
Number
.
isFinite
(
ableReduceNum
)
?
ableReduceNum
:
''
})
}
}
catch
(
e
)
{
nextList
.
push
({
uniqueCode
:
code
,
stock
:
''
})
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment