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
43461798
authored
Dec 21, 2023
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
在WMS的输入框扫描识别标签二维码会漏字符,而其他软件输入框烧苗识别均正确的
parent
88d01be6
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
189 additions
and
177 deletions
pages/arrivalRegister/index.vue
pages/picking/sort.vue
pages/putaway/index.vue
pages/putaway/single.vue
pages/repairPrint/index.vue
pages/stockRecheck/sort.vue
pages/transfer/quick.vue
pages/transfer/task.vue
pages/arrivalRegister/index.vue
View file @
43461798
...
...
@@ -875,6 +875,19 @@
* 修改自营数据提交
*/
saveZyGoodsDataSubmit
()
{
const
isEmptyMpq
=
this
.
saveZyGoodsParams
.
every
(
obj
=>
{
return
obj
.
hasOwnProperty
(
'mpq'
)
&&
obj
.
mpq
!==
''
;
});
if
(
!
isEmptyMpq
)
{
uni
.
showModal
({
title
:
'提示'
,
content
:
'标准包装量必填'
,
showCancel
:
false
});
return
false
}
const
hasError
=
this
.
saveZyGoodsParams
.
filter
(
item
=>
item
.
packing
===
5
).
some
(({
standard_length
,
unit_length
},
index
)
=>
{
if
(
this
.
standardSizeIndex
==
0
&&
!
standard_length
)
{
uni
.
showModal
({
...
...
pages/picking/sort.vue
View file @
43461798
...
...
@@ -33,10 +33,10 @@
<text
class=
"iconfont icon-juxing1"
></text>
<!-- 批量扫描 -->
<
template
v-if=
"is_batch"
>
<input
class=
"uni-input"
placeholder=
"请扫描入库标签"
:disabled=
"searchParams.position_name == '' ? true : false"
placeholder-style=
"color:#919399"
:focus=
"isFocus"
v-model=
"search_keyword"
@
input=
"handleInput(2, search_keyword)"
maxlength=
"1
5
"
ref=
"myInput"
/>
<input
class=
"uni-input"
placeholder=
"请扫描入库标签"
:disabled=
"searchParams.position_name == '' ? true : false"
placeholder-style=
"color:#919399"
:focus=
"isFocus"
v-model=
"search_keyword"
@
input=
"handleInput(2, search_keyword)"
maxlength=
"1
6
"
ref=
"myInput"
/>
</
template
>
<
template
v-else
>
<input
class=
"uni-input"
placeholder=
"请扫描入库标签"
:disabled=
"searchParams.position_name == '' ? true : false"
placeholder-style=
"color:#919399"
:focus=
"isFocus"
v-model=
"searchParams.stock_in_batch_sn"
@
input=
"handleInput(2, searchParams.stock_in_batch_sn)"
maxlength=
"1
5
"
ref=
"myInput"
/>
<input
class=
"uni-input"
placeholder=
"请扫描入库标签"
:disabled=
"searchParams.position_name == '' ? true : false"
placeholder-style=
"color:#919399"
:focus=
"isFocus"
v-model=
"searchParams.stock_in_batch_sn"
@
input=
"handleInput(2, searchParams.stock_in_batch_sn)"
maxlength=
"1
6
"
ref=
"myInput"
/>
</
template
>
</view>
<text
class=
"iconfont icon-a-juxing11"
@
click=
"clearInput(2)"
v-if=
"input_flag_stock_in_batch_sn"
></text>
...
...
pages/putaway/index.vue
View file @
43461798
...
...
@@ -15,10 +15,10 @@
<text
class=
"iconfont icon-juxing1"
></text>
<template
v-if=
"index == 0"
>
<template
v-if=
"is_batch"
>
<input
class=
"uni-input"
placeholder=
"请扫描入库标签"
placeholder-style=
"color:#919399"
:focus=
"isFocus"
v-model=
"search_keyword"
@
input=
"handleInput(1, $event)"
maxlength=
"1
5
"
ref=
"myInput"
id=
"myInput"
/>
<input
class=
"uni-input"
placeholder=
"请扫描入库标签"
placeholder-style=
"color:#919399"
:focus=
"isFocus"
v-model=
"search_keyword"
@
input=
"handleInput(1, $event)"
maxlength=
"1
6
"
ref=
"myInput"
id=
"myInput"
/>
</
template
>
<
template
v-else
>
<input
class=
"uni-input"
placeholder=
"请扫描入库标签"
placeholder-style=
"color:#919399"
:focus=
"isFocus"
v-model=
"searchParams.search_keyword"
@
input=
"handleInput(1, $event)"
maxlength=
"1
5
"
ref=
"myInput"
id=
"myInput"
/>
<input
class=
"uni-input"
placeholder=
"请扫描入库标签"
placeholder-style=
"color:#919399"
:focus=
"isFocus"
v-model=
"searchParams.search_keyword"
@
input=
"handleInput(1, $event)"
maxlength=
"1
6
"
ref=
"myInput"
id=
"myInput"
/>
</
template
>
</template>
<
template
v-else-if=
"index == 1"
>
...
...
pages/putaway/single.vue
View file @
43461798
...
...
@@ -12,7 +12,7 @@
<view
class=
"search-bar row bothSide verCenter"
>
<view
class=
"row verCenter"
>
<text
class=
"iconfont icon-juxing1"
></text>
<input
class=
"uni-input"
placeholder=
"请扫描或输入入库批次号"
placeholder-style=
"color:#919399"
v-model=
"searchParams.stock_in_batch_sn"
@
input=
"handleInput"
maxlength=
"1
5
"
/>
<input
class=
"uni-input"
placeholder=
"请扫描或输入入库批次号"
placeholder-style=
"color:#919399"
v-model=
"searchParams.stock_in_batch_sn"
@
input=
"handleInput"
maxlength=
"1
6
"
/>
</view>
<text
class=
"iconfont icon-a-juxing11"
@
click=
"clearInput()"
v-if=
"input_flag"
></text>
</view>
...
...
pages/repairPrint/index.vue
View file @
43461798
...
...
@@ -13,7 +13,7 @@
<view
class=
"row verCenter"
>
<text
class=
"iconfont icon-juxing1"
></text>
<template
v-if=
"index == 0"
>
<input
class=
"uni-input"
v-model=
"formParams.sn"
placeholder=
"请输入入库标签"
placeholder-style=
"color:#919399"
@
input=
"handleInput(1, formParams.sn)"
maxlength=
"1
5
"
/>
<input
class=
"uni-input"
v-model=
"formParams.sn"
placeholder=
"请输入入库标签"
placeholder-style=
"color:#919399"
@
input=
"handleInput(1, formParams.sn)"
maxlength=
"1
6
"
/>
</
template
>
<
template
v-else-if=
"index == 1"
>
<input
class=
"uni-input"
v-model=
"formParams.sn"
placeholder=
"请输入旧标签查询"
placeholder-style=
"color:#919399"
@
input=
"handleInput(1, formParams.sn)"
maxlength=
"8"
/>
...
...
pages/stockRecheck/sort.vue
View file @
43461798
...
...
@@ -1253,8 +1253,6 @@
setTimeout
(()
=>
{
this
.
isFocus
=
true
;
},
500
);
},
2000
);
}
else
{
uni
.
showModal
({
...
...
pages/transfer/quick.vue
View file @
43461798
...
...
@@ -14,7 +14,7 @@
<text
class=
"iconfont icon-juxing1"
></text>
<!-- 新标签-入库批次号 -->
<template
v-if=
"index == 0"
>
<input
class=
"uni-input"
placeholder=
"请扫描入库批次号"
placeholder-style=
"color:#919399"
:focus=
"is_focus"
v-model=
"searchParams.stock_in_batch_sn"
@
input=
"handleInput($event)"
maxlength=
"1
5
"
/>
<input
class=
"uni-input"
placeholder=
"请扫描入库批次号"
placeholder-style=
"color:#919399"
:focus=
"is_focus"
v-model=
"searchParams.stock_in_batch_sn"
@
input=
"handleInput($event)"
maxlength=
"1
6
"
/>
</
template
>
<!-- 旧标签-->
<
template
v-else-if=
"index == 1"
>
...
...
pages/transfer/task.vue
View file @
43461798
...
...
@@ -16,7 +16,7 @@
<view
class=
"search-bar row bothSide verCenter"
>
<view
class=
"row verCenter"
>
<text
class=
"iconfont icon-juxing1"
></text>
<input
class=
"uni-input"
placeholder=
"请扫描入库标签"
placeholder-style=
"color:#919399"
v-model=
"searchParams.stock_in_batch_sn"
@
input=
"handleInput(2, searchParams.stock_in_batch_sn)"
maxlength=
"1
5
"
/>
<input
class=
"uni-input"
placeholder=
"请扫描入库标签"
placeholder-style=
"color:#919399"
v-model=
"searchParams.stock_in_batch_sn"
@
input=
"handleInput(2, searchParams.stock_in_batch_sn)"
maxlength=
"1
6
"
/>
</view>
<text
class=
"iconfont icon-a-juxing11"
@
click=
"clearInput(2)"
v-if=
"input_flag_stock_in_batch_sn"
></text>
</view>
...
...
@@ -204,198 +204,198 @@
</
template
>
<
script
>
import
{
API
}
from
'@/util/api.js'
;
import
debounce
from
'lodash/debounce'
;
import
{
API
}
from
'@/util/api.js'
;
import
debounce
from
'lodash/debounce'
;
export
default
{
data
()
{
return
{
is_submit
:
true
,
transfer_id
:
''
,
transfer_sn
:
''
,
input_flag_origin_pos_code
:
false
,
input_flag_stock_in_batch_sn
:
false
,
input_flag_position_code
:
false
,
input_flag_container_sn
:
false
,
page
:
1
,
limit
:
1000
,
index
:
0
,
list
:
[],
detail
:
{},
warehouse_id
:
''
,
stock_in_type
:
''
,
searchParams
:
{
export
default
{
data
()
{
return
{
is_submit
:
true
,
transfer_id
:
''
,
origin_pos_code
:
''
,
//源库位编码
stock_in_batch_sn
:
''
//入库批次号
},
formParams
:
{
transfer_item_id
:
''
,
transfer_qty
:
''
,
position_code
:
''
,
container_sn
:
''
}
};
},
onNavigationBarButtonTap
(
e
)
{
console
.
log
(
e
);
if
(
e
.
index
==
0
)
{
uni
.
navigateTo
({
url
:
'/pages/transfer/records'
});
}
},
onLoad
(
options
)
{
this
.
searchParams
.
transfer_id
=
options
.
transfer_id
||
''
;
this
.
searchParams
.
transfer_sn
=
options
.
transfer_sn
||
''
;
uni
.
setNavigationBarTitle
({
title
:
this
.
searchParams
.
transfer_sn
});
},
onShow
()
{
this
.
getData
();
},
methods
:
{
showDrawer
(
val
)
{
this
.
detail
=
val
;
this
.
formParams
.
transfer_item_id
=
val
.
transfer_item_id
;
this
.
$refs
.
showRight
.
open
();
},
closeDrawer
()
{
this
.
$refs
.
showRight
.
close
();
transfer_sn
:
''
,
input_flag_origin_pos_code
:
false
,
input_flag_stock_in_batch_sn
:
false
,
input_flag_position_code
:
false
,
input_flag_container_sn
:
false
,
page
:
1
,
limit
:
1000
,
index
:
0
,
list
:
[],
detail
:
{},
warehouse_id
:
''
,
stock_in_type
:
''
,
searchParams
:
{
transfer_id
:
''
,
origin_pos_code
:
''
,
//源库位编码
stock_in_batch_sn
:
''
//入库批次号
},
formParams
:
{
transfer_item_id
:
''
,
transfer_qty
:
''
,
position_code
:
''
,
container_sn
:
''
}
};
},
/**
* 确认移位
*/
confirmTransfer
()
{
if
(
!
this
.
formParams
.
transfer_qty
)
{
uni
.
showToast
({
title
:
'请输入移位数量'
,
icon
:
'error'
onNavigationBarButtonTap
(
e
)
{
console
.
log
(
e
);
if
(
e
.
index
==
0
)
{
uni
.
navigateTo
({
url
:
'/pages/transfer/records'
});
return
false
;
}
if
(
!
this
.
formParams
.
position_code
)
{
uni
.
showToast
({
title
:
'请输入目标库位'
,
icon
:
'error'
});
return
false
;
}
},
onLoad
(
options
)
{
this
.
searchParams
.
transfer_id
=
options
.
transfer_id
||
''
;
this
.
searchParams
.
transfer_sn
=
options
.
transfer_sn
||
''
;
this
.
request
(
API
.
confirmTransfer
,
'POST'
,
{
...
this
.
formParams
},
true
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
uni
.
showToast
({
title
:
'移位成功'
,
icon
:
'success'
});
setTimeout
(()
=>
{
this
.
getData
();
this
.
closeDrawer
();
},
2000
);
}
else
{
uni
.
showModal
({
title
:
'提示'
,
content
:
res
.
msg
,
showCancel
:
false
});
}
uni
.
setNavigationBarTitle
({
title
:
this
.
searchParams
.
transfer_sn
});
},
/**
* 获取列表数据
*/
getData
()
{
this
.
request
(
API
.
getTransferDetail
,
'GET'
,
{
page
:
this
.
page
,
limit
:
this
.
limit
,
...
this
.
searchParams
},
false
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
list
=
res
.
data
.
trans_items
;
}
else
{
onShow
()
{
this
.
getData
();
},
methods
:
{
showDrawer
(
val
)
{
this
.
detail
=
val
;
this
.
formParams
.
transfer_item_id
=
val
.
transfer_item_id
;
this
.
$refs
.
showRight
.
open
();
},
closeDrawer
()
{
this
.
$refs
.
showRight
.
close
();
},
/**
* 确认移位
*/
confirmTransfer
()
{
if
(
!
this
.
formParams
.
transfer_qty
)
{
uni
.
showToast
({
title
:
res
.
msg
,
title
:
'请输入移位数量'
,
icon
:
'error'
});
return
false
;
}
});
},
/**
* 清空数据
*/
clearInput
(
type
)
{
if
(
type
==
1
)
{
this
.
searchParams
.
origin_pos_code
=
''
;
this
.
input_flag_origin_pos_code
=
false
;
this
.
getData
();
}
else
if
(
type
==
2
)
{
this
.
searchParams
.
stock_in_batch_sn
=
''
;
this
.
input_flag_stock_in_batch_sn
=
false
;
this
.
getData
();
}
else
if
(
type
==
3
)
{
this
.
formParams
.
position_code
=
''
;
this
.
input_flag_position_code
=
false
;
}
else
if
(
type
==
4
)
{
this
.
formParams
.
container_sn
=
''
;
this
.
input_flag_container_sn
=
false
;
}
},
/**
* 单号搜索
* @param {Object} event
*/
handleInput
:
debounce
(
function
(
type
,
val
)
{
if
(
val
)
{
if
(
type
==
1
)
{
this
.
input_flag_origin_pos_code
=
true
;
this
.
getData
();
}
else
if
(
type
==
2
)
{
this
.
input_flag_stock_in_batch_sn
=
true
;
this
.
getData
();
}
else
if
(
type
==
3
)
{
this
.
input_flag_position_code
=
true
;
}
else
if
(
type
==
4
)
{
this
.
input_flag_container_sn
=
true
;
if
(
!
this
.
formParams
.
position_code
)
{
uni
.
showToast
({
title
:
'请输入目标库位'
,
icon
:
'error'
});
return
false
;
}
}
else
{
this
.
request
(
API
.
confirmTransfer
,
'POST'
,
{
...
this
.
formParams
},
true
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
uni
.
showToast
({
title
:
'移位成功'
,
icon
:
'success'
});
setTimeout
(()
=>
{
this
.
getData
();
this
.
closeDrawer
();
},
2000
);
}
else
{
uni
.
showModal
({
title
:
'提示'
,
content
:
res
.
msg
,
showCancel
:
false
});
}
});
},
/**
* 获取列表数据
*/
getData
()
{
this
.
request
(
API
.
getTransferDetail
,
'GET'
,
{
page
:
this
.
page
,
limit
:
this
.
limit
,
...
this
.
searchParams
},
false
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
list
=
res
.
data
.
trans_items
;
}
else
{
uni
.
showToast
({
title
:
res
.
msg
,
icon
:
'error'
});
}
});
},
/**
* 清空数据
*/
clearInput
(
type
)
{
if
(
type
==
1
)
{
this
.
searchParams
.
origin_pos_code
=
''
;
this
.
input_flag_origin_pos_code
=
false
;
this
.
getData
();
}
else
if
(
type
==
2
)
{
this
.
searchParams
.
stock_in_batch_sn
=
''
;
this
.
input_flag_stock_in_batch_sn
=
false
;
this
.
getData
();
}
else
if
(
type
==
3
)
{
this
.
formParams
.
position_code
=
''
;
this
.
input_flag_position_code
=
false
;
}
else
if
(
type
==
4
)
{
this
.
formParams
.
container_sn
=
''
;
this
.
input_flag_container_sn
=
false
;
}
}
},
500
),
/**
* 监听库位编码
*/
inputPositionCodeChange
:
debounce
(
function
(
event
)
{
this
.
getWhPositionList
();
},
500
),
/**
* @param {Object} type
* 获取库位
*/
getWhPositionList
()
{
this
.
request
(
API
.
getWhPositionList
,
'POST'
,
{
warehouse_id
:
this
.
warehouse_id
,
stock_in_type
:
1
},
false
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
var
position_code
=
this
.
formParams
.
position_code
;
this
.
is_submit
=
res
.
data
.
list
.
some
(
function
(
obj
)
{
return
obj
.
position_code
===
position_code
;
});
},
/**
* 单号搜索
* @param {Object} event
*/
handleInput
:
debounce
(
function
(
type
,
val
)
{
if
(
val
)
{
if
(
type
==
1
)
{
this
.
input_flag_origin_pos_code
=
true
;
this
.
getData
();
}
else
if
(
type
==
2
)
{
this
.
input_flag_stock_in_batch_sn
=
true
;
this
.
getData
();
}
else
if
(
type
==
3
)
{
this
.
input_flag_position_code
=
true
;
}
else
if
(
type
==
4
)
{
this
.
input_flag_container_sn
=
true
;
}
}
else
{
uni
.
showToast
({
title
:
res
.
msg
,
icon
:
'error'
});
if
(
type
==
1
)
{
this
.
input_flag_origin_pos_code
=
false
;
}
else
if
(
type
==
2
)
{
this
.
input_flag_stock_in_batch_sn
=
false
;
}
else
if
(
type
==
3
)
{
this
.
input_flag_position_code
=
false
;
}
else
if
(
type
==
4
)
{
this
.
input_flag_container_sn
=
false
;
}
}
});
},
500
),
/**
* 监听库位编码
*/
inputPositionCodeChange
:
debounce
(
function
(
event
)
{
this
.
getWhPositionList
();
},
500
),
/**
* @param {Object} type
* 获取库位
*/
getWhPositionList
()
{
this
.
request
(
API
.
getWhPositionList
,
'POST'
,
{
warehouse_id
:
this
.
warehouse_id
,
stock_in_type
:
1
},
false
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
var
position_code
=
this
.
formParams
.
position_code
;
this
.
is_submit
=
res
.
data
.
list
.
some
(
function
(
obj
)
{
return
obj
.
position_code
===
position_code
;
});
}
else
{
uni
.
showToast
({
title
:
res
.
msg
,
icon
:
'error'
});
}
});
}
}
}
};
};
</
script
>
<
style
scoped
lang=
"scss"
>
@import
'@/assets/css/transfer/task.scss'
;
</
style
>
@import
'@/assets/css/transfer/task.scss'
;
</
style
>
\ 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