Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
wmsMin
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
54d35eda
authored
May 14, 2024
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
add
parent
56c7996c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
27 deletions
assets/css/tally/index.scss
pages/tally/index.vue
pages/tally/unboxing.vue
assets/css/tally/index.scss
View file @
54d35eda
...
...
@@ -30,9 +30,11 @@
color
:
#197adb
;
}
.icon-jinggao2
{
position
:
relative
;
font-size
:
30rpx
;
color
:
#c6c7cc
;
margin-right
:
30rpx
;
z-index
:
22
;
}
}
.select-box
{
...
...
pages/tally/index.vue
View file @
54d35eda
...
...
@@ -7,7 +7,7 @@
</view>
<view
class=
"action-bar row verCenter"
>
<text
class=
"iconfont icon-jinggao2"
@
click=
"clearInput(1)"
v-if=
"box_sn"
></text>
<template
v-if=
"wsty_id"
>
<template
v-if=
"
box_sn &&
wsty_id"
>
<view
class=
"btn1 row rowCenter verCenter"
@
click=
"print()"
style=
"margin-right: 8rpx;"
>
打印箱号
</view>
<view
class=
"btn row rowCenter verCenter"
@
click=
"getBoxSn()"
>
取箱号
</view>
</
template
>
...
...
@@ -243,7 +243,7 @@
fixBoxStyle
:
''
,
noexebshowFalg
:
true
,
//控制是否会触发生命周期
index
:
0
,
item
:
[
'
其他
'
,
'DigiKey'
,
'Rochester'
,
'TME'
,
'Chip1stop'
,
'Mouser'
],
item
:
[
'
型号
'
,
'DigiKey'
,
'Rochester'
,
'TME'
,
'Chip1stop'
,
'Mouser'
],
box_sn
:
''
,
//箱号信息
wsty_id
:
''
,
//箱子id
erp_order_sn
:
''
,
//入仓号
...
...
@@ -279,31 +279,6 @@
this
.
$refs
.
inputDialog
.
close
();
},
/**
* 清空数据
*/
clearInput
(
type
)
{
if
(
type
==
1
)
{
this
.
box_sn
=
''
;
this
.
is_focus_1
=
false
;
setTimeout
(()
=>
{
this
.
is_focus_1
=
true
;
},
200
);
}
else
if
(
type
==
2
)
{
this
.
erp_order_sn
=
''
;
this
.
is_focus_2
=
false
;
setTimeout
(()
=>
{
this
.
is_focus_2
=
true
;
},
200
);
}
else
if
(
type
==
3
)
{
this
.
goods_type
=
''
;
this
.
keyword
=
''
;
this
.
is_focus_3
=
false
;
setTimeout
(()
=>
{
this
.
is_focus_3
=
true
;
},
200
);
}
},
/**
* 找出false对应的下标
* @param {Object} arr
* @param {Object} target
...
...
@@ -351,6 +326,10 @@
}
else
if
(
type
==
2
)
{
if
(
value
)
{
this
.
identifyQrCodeNumAndSn
();
}
else
{
this
.
goods_type
=
''
;
this
.
keyword
=
''
;
this
.
getTallyData
();
}
}
else
if
(
type
==
3
)
{
this
.
origin_list
=
[];
//数组清空
...
...
@@ -567,6 +546,7 @@
this
.
step
=
2
;
//标记点击了哪个按钮
if
(
this
.
index
==
0
)
{
//区分其他
this
.
keyword
=
''
;
this
.
getTallyData
();
}
else
{
let
codeTypeByIndex
=
{
...
...
@@ -699,6 +679,11 @@
this
.
image_list
[
index
]
=
item
.
goods_check_pic
.
split
(
','
);
}
});
}
else
{
uni
.
showToast
({
title
:
'查询不到该箱号信息'
,
icon
:
'none'
});
}
}
else
{
uni
.
showToast
({
...
...
@@ -920,6 +905,32 @@
});
},
/**
* 清空数据
*/
clearInput
(
type
)
{
if
(
type
==
1
)
{
this
.
box_sn
=
''
;
this
.
is_focus_1
=
false
;
setTimeout
(()
=>
{
this
.
is_focus_1
=
true
;
},
200
);
}
else
if
(
type
==
2
)
{
this
.
erp_order_sn
=
''
;
this
.
is_focus_2
=
false
;
setTimeout
(()
=>
{
this
.
is_focus_2
=
true
;
},
200
);
}
else
if
(
type
==
3
)
{
this
.
goods_type
=
''
;
this
.
keyword
=
''
;
this
.
is_focus_3
=
false
;
this
.
getTallyData
();
setTimeout
(()
=>
{
this
.
is_focus_3
=
true
;
},
200
);
}
},
/**
* 再次获取焦点
*/
clearInputAndFocus
()
{
...
...
pages/tally/unboxing.vue
View file @
54d35eda
This diff is collapsed.
Click to expand it.
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