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
87f0980d
authored
Jun 28, 2023
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
bug
parent
003d91be
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
53 additions
and
39 deletions
pages/arrivalRegister/index.vue
pages/tallyReceive/index.vue
util/api.js
pages/arrivalRegister/index.vue
View file @
87f0980d
...
...
@@ -205,7 +205,7 @@ export default {
stock_in_with_stock_in_items_inhouse
:
''
,
//入仓单号
tracking_no
:
''
//fedex
},
maxInputLength
:
7
,
maxInputLength
:
8
,
formParams
:
{
warehouse_id
:
''
,
logistics_company
:
''
,
...
...
@@ -325,11 +325,10 @@ export default {
//入仓号
var
str
=
val
;
if
(
str
.
startsWith
(
'F'
))
{
this
.
maxInputLength
=
8
;
this
.
searchParams
.
stock_in_with_stock_in_items_inhouse
=
val
;
}
else
{
this
.
maxInputLength
=
7
;
this
.
searchParams
.
stock_in_with_stock_in_items_inhouse
=
str
.
slice
(
0
,
-
1
)
;
}
this
.
searchParams
.
stock_in_with_stock_in_items_inhouse
=
val
;
}
else
if
(
type
==
3
)
{
var
last12
=
val
.
slice
(
22
);
// 截取后12位
this
.
searchParams
.
tracking_no
=
last12
;
...
...
pages/tallyReceive/index.vue
View file @
87f0980d
...
...
@@ -16,22 +16,22 @@
<input
class=
"uni-input"
placeholder=
"请扫描或输入号码"
placeholder-style=
"color:#919399"
focus
v-model=
"searchParams.mobile_wait_tally_all_search"
@
input=
"handleInput(1, $event)"
/>
</
template
>
<
template
v-else-if=
"index == 1"
>
<input
class=
"uni-input"
placeholder=
"请输入入仓号"
placeholder-style=
"color:#919399"
focus
v-model=
"searchParams.stock_in_with_stock_in_items_inhouse"
@
input=
"handleInput(2, $event)"
maxlength=
"
7
"
/>
<input
class=
"uni-input"
placeholder=
"请输入入仓号"
placeholder-style=
"color:#919399"
focus
v-model=
"searchParams.stock_in_with_stock_in_items_inhouse"
@
input=
"handleInput(2, $event)"
maxlength=
"
8
"
/>
</
template
>
<
template
v-else-if=
"index == 2"
>
<input
class=
"uni-input"
placeholder=
"请输入FedEx"
placeholder-style=
"color:#919399"
focus
v-model=
"searchParams.tracking_no"
@
input=
"handleInput(0, $event)"
style=
"width: 400rpx;"
/>
</
template
>
<
template
v-else-if=
"index == 3"
>
<input
class=
"uni-input"
placeholder=
"请输入DigKey"
placeholder-style=
"color:#919399"
focus
v-model=
"searchParams.code_type"
@
input=
"handleInput
(9,
$event)"
style=
"width: 400rpx;"
/>
<input
class=
"uni-input"
placeholder=
"请输入DigKey"
placeholder-style=
"color:#919399"
focus
v-model=
"searchParams.code_type"
@
input=
"handleInput
Change(
$event)"
style=
"width: 400rpx;"
/>
</
template
>
<
template
v-else-if=
"index == 4"
>
<input
class=
"uni-input"
placeholder=
"请输入Rochester"
placeholder-style=
"color:#919399"
focus
v-model=
"searchParams.code_type"
@
input=
"handleInput
(9,
$event)"
style=
"width: 400rpx;"
/>
<input
class=
"uni-input"
placeholder=
"请输入Rochester"
placeholder-style=
"color:#919399"
focus
v-model=
"searchParams.code_type"
@
input=
"handleInput
Change(
$event)"
style=
"width: 400rpx;"
/>
</
template
>
<
template
v-else-if=
"index == 5"
>
<input
class=
"uni-input"
placeholder=
"请输入TME"
placeholder-style=
"color:#919399"
focus
v-model=
"searchParams.code_type"
@
input=
"handleInput
(9,
$event)"
style=
"width: 400rpx;"
/>
<input
class=
"uni-input"
placeholder=
"请输入TME"
placeholder-style=
"color:#919399"
focus
v-model=
"searchParams.code_type"
@
input=
"handleInput
Change(
$event)"
style=
"width: 400rpx;"
/>
</
template
>
<
template
v-else-if=
"index == 6"
>
<input
class=
"uni-input"
placeholder=
"请输入Chip1stop"
placeholder-style=
"color:#919399"
focus
v-model=
"searchParams.code_type"
@
input=
"handleInput
(9,
$event)"
style=
"width: 400rpx;"
/>
<input
class=
"uni-input"
placeholder=
"请输入Chip1stop"
placeholder-style=
"color:#919399"
focus
v-model=
"searchParams.code_type"
@
input=
"handleInput
Change(
$event)"
style=
"width: 400rpx;"
/>
</
template
>
</view>
<text
class=
"iconfont icon-a-juxing11"
@
click=
"clearInput(1)"
v-if=
"input_flag"
></text>
...
...
@@ -193,6 +193,7 @@ import debounce from 'lodash/debounce';
export
default
{
data
()
{
return
{
timer
:
null
,
// 用于存储计时器
is_submit
:
true
,
noexebshowFalg
:
true
,
//控制是否会触发生命周期
print_flag
:
true
,
//是否打印
...
...
@@ -386,7 +387,14 @@ export default {
this
.
searchParams
.
tracking_no
=
''
;
this
.
searchParams
.
code_type
=
''
;
this
.
searchParams
.
stock_in_with_stock_in_items_inhouse
=
val
;
//入仓号
var
str
=
val
;
if
(
str
.
startsWith
(
'F'
))
{
this
.
searchParams
.
stock_in_with_stock_in_items_inhouse
=
val
;
}
else
{
this
.
searchParams
.
stock_in_with_stock_in_items_inhouse
=
str
.
slice
(
0
,
-
1
);
}
this
.
input_flag
=
true
;
this
.
getData
();
}
else
if
(
type
==
0
)
{
...
...
@@ -405,26 +413,6 @@ export default {
this
.
searchParams
.
container_name
=
val
;
this
.
input_contaion
=
true
;
this
.
getTallyContainer
();
}
else
if
(
type
==
9
)
{
this
.
resetChange
();
this
.
searchParams
.
mobile_wait_tally_all_search
=
''
;
this
.
searchParams
.
stock_in_with_stock_in_items_inhouse
=
''
;
this
.
searchParams
.
tracking_no
=
''
;
this
.
searchParams
.
code_type
=
''
;
this
.
searchParams
.
code_type
=
val
;
let
code_type
=
''
;
if
(
this
.
index
==
3
)
{
code_type
=
'DigKey'
;
}
else
if
(
this
.
index
==
4
)
{
code_type
=
'Rochester'
;
}
else
if
(
this
.
index
==
5
)
{
code_type
=
'TME'
;
}
else
if
(
this
.
index
==
6
)
{
code_type
=
'Chip1stop'
;
}
this
.
input_flag
=
true
;
this
.
identifyQrCodeNumAndSn
(
val
,
code_type
);
//识别二维码的数量和型号
}
}
else
{
if
(
type
==
1
||
type
==
2
)
{
...
...
@@ -436,6 +424,32 @@ export default {
}
}
},
800
),
handleInputChange
:
debounce
(
function
(
event
)
{
var
val
=
event
.
target
.
value
;
if
(
val
)
{
this
.
resetChange
();
this
.
searchParams
.
mobile_wait_tally_all_search
=
''
;
this
.
searchParams
.
stock_in_with_stock_in_items_inhouse
=
''
;
this
.
searchParams
.
tracking_no
=
''
;
this
.
searchParams
.
code_type
=
''
;
this
.
searchParams
.
code_type
=
val
;
let
code_type
=
''
;
if
(
this
.
index
==
3
)
{
code_type
=
'DigKey'
;
}
else
if
(
this
.
index
==
4
)
{
code_type
=
'Rochester'
;
}
else
if
(
this
.
index
==
5
)
{
code_type
=
'TME'
;
}
else
if
(
this
.
index
==
6
)
{
code_type
=
'Chip1stop'
;
}
this
.
input_flag
=
true
;
this
.
identifyQrCodeNumAndSn
(
val
,
code_type
);
//识别二维码的数量和型号
}
else
{
this
.
input_flag
=
false
;
}
},
2000
),
bindPickerChange
:
function
(
e
)
{
console
.
log
(
'picker发送选择改变,携带值为'
,
e
.
detail
.
value
);
this
.
index
=
e
.
detail
.
value
;
...
...
@@ -444,7 +458,8 @@ export default {
* 识别二维码的数量和型号
*/
identifyQrCodeNumAndSn
(
code_str
,
code_type
)
{
this
.
request
(
API
.
identifyQrCodeNumAndSn
,
'POST'
,
{
code_str
:
code_str
,
code_type
:
code_type
},
false
).
then
(
res
=>
{
console
.
log
(
code_str
);
this
.
request
(
API
.
identifyQrCodeNumAndSn
,
'POST'
,
{
code_str
:
code_str
,
code_type
:
code_type
},
true
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
searchParams
.
goods_name
=
res
.
data
.
sn
;
this
.
getData
();
...
...
util/api.js
View file @
87f0980d
const
API_BASE_USER
=
'http://user.liexindev.net'
;
//用户系统
const
API_BASE_PUR
=
'http://pur.liexindev.net'
;
//采购系统
const
API_BASE
=
'http://wms.liexindev.net'
;
//WMS系统
const
API_BASE_OSS
=
'http://image.liexindev.net'
;
//oss系统
//
const API_BASE_USER = 'http://user.liexindev.net'; //用户系统
//
const API_BASE_PUR = 'http://pur.liexindev.net'; //采购系统
//
const API_BASE = 'http://wms.liexindev.net'; //WMS系统
//
const API_BASE_OSS = 'http://image.liexindev.net'; //oss系统
//
const API_BASE_USER = 'https://user.ichunt.net'; //用户系统
//
const API_BASE_PUR = 'https://purchase.ichunt.net'; //采购系统
//
const API_BASE = 'https://wms.ichunt.net'; //WMS系统
//
const API_BASE_OSS = 'https://image.ichunt.net'; //oss系统
const
API_BASE_USER
=
'https://user.ichunt.net'
;
//用户系统
const
API_BASE_PUR
=
'https://purchase.ichunt.net'
;
//采购系统
const
API_BASE
=
'https://wms.ichunt.net'
;
//WMS系统
const
API_BASE_OSS
=
'https://image.ichunt.net'
;
//oss系统
const
API
=
{
...
...
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