Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
wmsApp
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
4f431fe7
authored
Nov 20, 2023
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
移动端--按货品复核--批量复核模式,扫多个时,只显示最新扫的这个待复核物料
parent
4148c8ff
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
12 deletions
pages/picking/sort.vue
pages/stockRecheck/sort.vue
util/util.js
pages/picking/sort.vue
View file @
4f431fe7
...
@@ -538,7 +538,7 @@
...
@@ -538,7 +538,7 @@
<
script
>
<
script
>
import
{
API
}
from
'@/util/api.js'
;
import
{
API
}
from
'@/util/api.js'
;
import
debounce
from
'lodash/debounce'
;
import
debounce
from
'lodash/debounce'
;
import
{
createArray
}
from
'@/util/util.js'
;
import
{
createArray
,
getFirstEightChars
}
from
'@/util/util.js'
;
export
default
{
export
default
{
data
()
{
data
()
{
...
@@ -669,6 +669,12 @@
...
@@ -669,6 +669,12 @@
this
.
$forceUpdate
();
this
.
$forceUpdate
();
},
1500
);
},
1500
);
}
else
if
(
type
==
2
)
{
}
else
if
(
type
==
2
)
{
//入库批次号为自营仓库的时候,旧标签开启状态,输入文本后自动截取前8位,。
if
(
this
.
warehouse_id
==
9
&&
this
.
old_Label
)
{
val
=
getFirstEightChars
(
val
);
}
//入库批次号 开启批量扫描
//入库批次号 开启批量扫描
if
(
this
.
is_batch
)
{
if
(
this
.
is_batch
)
{
this
.
input_flag_stock_in_batch_sn
=
false
;
this
.
input_flag_stock_in_batch_sn
=
false
;
...
...
pages/stockRecheck/sort.vue
View file @
4f431fe7
...
@@ -38,10 +38,10 @@
...
@@ -38,10 +38,10 @@
<view
class=
"row verCenter"
>
<view
class=
"row verCenter"
>
<text
class=
"iconfont icon-juxing1"
></text>
<text
class=
"iconfont icon-juxing1"
></text>
<
template
v-if=
"is_batch"
>
<
template
v-if=
"is_batch"
>
<input
class=
"uni-input"
placeholder=
"请扫描入库标签"
placeholder-style=
"color:#919399"
:focus=
"isFocus"
v-model=
"search_keyword"
@
input=
"handleInput(2, search_keyword)"
maxlength=
"15"
ref=
"myInput
"
/>
<input
class=
"uni-input"
placeholder=
"请扫描入库标签"
placeholder-style=
"color:#919399"
:focus=
"isFocus"
v-model=
"search_keyword"
@
input=
"handleInput(2, search_keyword)"
:maxlength=
"maxlength
"
/>
</
template
>
</
template
>
<
template
v-else
>
<
template
v-else
>
<input
class=
"uni-input"
placeholder=
"请扫描入库标签"
placeholder-style=
"color:#919399"
:focus=
"isFocus"
v-model=
"searchParams.stock_in_batch_sn"
@
input=
"handleInput(2, searchParams.stock_in_batch_sn)"
maxlength=
"15
"
/>
<input
class=
"uni-input"
placeholder=
"请扫描入库标签"
placeholder-style=
"color:#919399"
:focus=
"isFocus"
v-model=
"searchParams.stock_in_batch_sn"
@
input=
"handleInput(2, searchParams.stock_in_batch_sn)"
:maxlength=
"maxlength
"
/>
</
template
>
</
template
>
</view>
</view>
<text
class=
"iconfont icon-a-juxing11"
@
click=
"clearInput(2)"
v-if=
"input_flag_stock_in_batch_sn"
></text>
<text
class=
"iconfont icon-a-juxing11"
@
click=
"clearInput(2)"
v-if=
"input_flag_stock_in_batch_sn"
></text>
...
@@ -613,7 +613,7 @@
...
@@ -613,7 +613,7 @@
<
script
>
<
script
>
import
{
API
}
from
'@/util/api.js'
;
import
{
API
}
from
'@/util/api.js'
;
import
{
createArray
}
from
'@/util/util.js'
;
import
{
createArray
,
getFirstEightChars
}
from
'@/util/util.js'
;
import
debounce
from
'lodash/debounce'
;
import
debounce
from
'lodash/debounce'
;
export
default
{
export
default
{
...
@@ -652,6 +652,7 @@
...
@@ -652,6 +652,7 @@
packConfigList
:
[],
//箱配置列表
packConfigList
:
[],
//箱配置列表
image_list
:
[],
//图片列表
image_list
:
[],
//图片列表
maxNum
:
10
,
//最大上传图片数量
maxNum
:
10
,
//最大上传图片数量
maxlength
:
15
,
//输入框长度15
searchParams
:
{
searchParams
:
{
stock_out_id
:
''
,
stock_out_id
:
''
,
box_name
:
'001'
,
box_name
:
'001'
,
...
@@ -1008,6 +1009,12 @@
...
@@ -1008,6 +1009,12 @@
this
.
input_flag_box_name
=
true
;
this
.
input_flag_box_name
=
true
;
this
.
getData
();
this
.
getData
();
}
else
if
(
type
==
2
)
{
}
else
if
(
type
==
2
)
{
//入库批次号为自营仓库的时候,旧标签开启状态,输入文本后自动截取前8位,。
if
(
this
.
warehouse_id
==
9
&&
this
.
old_Label
)
{
val
=
getFirstEightChars
(
val
);
}
//入库批次号 开启批量扫描
//入库批次号 开启批量扫描
if
(
this
.
is_batch
)
{
if
(
this
.
is_batch
)
{
this
.
input_flag_stock_in_batch_sn
=
false
;
this
.
input_flag_stock_in_batch_sn
=
false
;
...
@@ -1016,9 +1023,7 @@
...
@@ -1016,9 +1023,7 @@
if
(
!
this
.
history_id
.
includes
(
val
))
{
if
(
!
this
.
history_id
.
includes
(
val
))
{
this
.
history_id
.
push
(
val
);
this
.
history_id
.
push
(
val
);
}
}
this
.
searchParams
.
stock_in_batch_sn
=
this
.
history_id
.
join
(
','
);
this
.
searchParams
.
stock_in_batch_sn
=
this
.
history_id
.
join
(
','
);
this
.
getData
((
data
,
msg
)
=>
{
this
.
getData
((
data
,
msg
)
=>
{
//回调data里数据,加是否选中交互
//回调data里数据,加是否选中交互
if
(
data
.
length
>
0
)
{
if
(
data
.
length
>
0
)
{
...
@@ -1121,11 +1126,6 @@
...
@@ -1121,11 +1126,6 @@
title
:
this
.
stock_out_sn
+
'复核'
title
:
this
.
stock_out_sn
+
'复核'
});
});
//入库批次号为自营仓库的时候,输入文本后自动截取前8位,作为入库批次号传给后台进行校验。
if
(
this
.
warehouse_id
==
9
&&
this
.
old_Label
)
{
this
.
searchParams
.
stock_in_batch_sn
=
this
.
searchParams
.
stock_in_batch_sn
.
substring
(
0
,
8
);
}
this
.
request
(
URL
,
'POST'
,
{
page
:
this
.
page
,
limit
:
this
.
limit
,
...
this
.
searchParams
},
false
).
then
(
res
=>
{
this
.
request
(
URL
,
'POST'
,
{
page
:
this
.
page
,
limit
:
this
.
limit
,
...
this
.
searchParams
},
false
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
if
(
res
.
code
===
0
)
{
//过滤出待复核不为0的数据
//过滤出待复核不为0的数据
...
...
util/util.js
View file @
4f431fe7
...
@@ -79,10 +79,17 @@ const createArray = (length, value) => {
...
@@ -79,10 +79,17 @@ const createArray = (length, value) => {
}
}
/**
* 截取字符串的前8个字符
*/
const
getFirstEightChars
=
(
str
)
=>
{
return
str
.
substring
(
0
,
8
);
}
module
.
exports
=
{
module
.
exports
=
{
request
,
request
,
getPlatform
,
getPlatform
,
createArray
createArray
,
getFirstEightChars
}
}
\ No newline at end of file
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