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
ae61d0c0
authored
Jul 31, 2024
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
优化
parent
8adac34e
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
23 deletions
pages/tally/abnormalTally.vue
pages/tally/closeBox.vue
pages/tally/fixBox.vue
pages/tally/goods.vue
pages/tally/unboxing.vue
pages/tally/abnormalTally.vue
View file @
ae61d0c0
...
@@ -271,6 +271,9 @@
...
@@ -271,6 +271,9 @@
var
value
=
event
.
target
.
value
;
var
value
=
event
.
target
.
value
;
if
(
type
==
1
)
{
if
(
type
==
1
)
{
if
(
value
)
{
if
(
value
)
{
if
(
value
.
indexOf
(
'-'
)
!==
-
1
)
{
// 判断字符串中是否存在 '-'
value
=
value
.
split
(
'-'
)[
0
];
// 存在则截取 '-' 前的部分
}
this
.
getBoxSn
(
value
);
this
.
getBoxSn
(
value
);
}
}
}
else
if
(
type
==
2
)
{
}
else
if
(
type
==
2
)
{
...
@@ -358,7 +361,6 @@
...
@@ -358,7 +361,6 @@
* 异常型号装箱 1装箱 0取出
* 异常型号装箱 1装箱 0取出
*/
*/
submitAbnormalBox
(
type
,
wstydl_id
,
item
)
{
submitAbnormalBox
(
type
,
wstydl_id
,
item
)
{
debugger
if
(
type
==
1
)
{
if
(
type
==
1
)
{
//装箱的时候验证
//装箱的时候验证
if
(
!
this
.
box_sn
)
{
if
(
!
this
.
box_sn
)
{
...
...
pages/tally/closeBox.vue
View file @
ae61d0c0
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
</
template
>
</
template
>
<
template
v-else
>
<
template
v-else
>
<view
class=
"status-color"
>
{{
boxData
.
sub_box_qty
||
1
}}
</view>
<view
class=
"status-color"
>
{{
boxData
.
sub_box_qty
||
1
}}
</view>
<view
class=
"btn row rowCenter verCenter"
@
click=
"flag=true"
style=
"margin-left: 60rpx;"
>
多子箱
</view>
<view
class=
"btn row rowCenter verCenter"
v-if=
"boxData.erp_order_sn_num == 1"
@
click=
"flag=true"
style=
"margin-left: 60rpx;"
>
多子箱
</view>
</
template
>
</
template
>
</view>
</view>
</view>
</view>
...
@@ -329,28 +329,8 @@
...
@@ -329,28 +329,8 @@
}
}
this
.
request
(
API
.
getPrintScanList
,
'POST'
,
{
box_sn
:
this
.
box_sn
},
true
).
then
(
res
=>
{
this
.
request
(
API
.
getPrintScanList
,
'POST'
,
{
box_sn
:
this
.
box_sn
},
true
).
then
(
res
=>
{
if
(
res
.
err_code
===
0
)
{
if
(
res
.
err_code
===
0
)
{
//一个标签的时候直接打印
if
(
res
.
data
.
length
==
0
)
{
uni
.
showToast
({
title
:
'数据异常'
,
icon
:
'none'
});
}
else
if
(
res
.
data
.
length
==
1
)
{
this
.
printConfirm
(
res
.
data
);
this
.
printConfirm
(
res
.
data
);
}
else
{
}
else
{
//多个时候
this
.
allChecked
=
false
;
this
.
checkboxItems
=
[];
res
.
data
.
forEach
(
item
=>
{
this
.
checkboxItems
.
push
({
value
:
item
,
name
:
item
,
checked
:
false
});
});
this
.
$refs
.
printScanList
.
open
();
}
}
else
{
uni
.
showToast
({
uni
.
showToast
({
title
:
res
.
err_msg
,
title
:
res
.
err_msg
,
icon
:
'none'
icon
:
'none'
...
...
pages/tally/fixBox.vue
View file @
ae61d0c0
...
@@ -81,6 +81,10 @@
...
@@ -81,6 +81,10 @@
return
false
;
return
false
;
}
}
if
(
this
.
keyword
.
indexOf
(
'-'
)
!==
-
1
)
{
// 判断字符串中是否存在 '-'
this
.
keyword
=
this
.
keyword
.
split
(
'-'
)[
0
];
// 存在则截取 '-' 前的部分
}
// 检查输入的箱号是否已经存在于列表中
// 检查输入的箱号是否已经存在于列表中
if
(
this
.
list
.
includes
(
this
.
keyword
))
{
if
(
this
.
list
.
includes
(
this
.
keyword
))
{
uni
.
showToast
({
uni
.
showToast
({
...
...
pages/tally/goods.vue
View file @
ae61d0c0
...
@@ -32,6 +32,7 @@
...
@@ -32,6 +32,7 @@
</view>
</view>
<view
class=
"input-box row verCenter curr"
style=
"flex: 0 0 100%;"
>
<view
class=
"input-box row verCenter curr"
style=
"flex: 0 0 100%;"
>
<text
class=
"tt"
style=
"color: #000;font-weight: bold;"
>
{{ item.box_sn }}
</text>
<text
class=
"tt"
style=
"color: #000;font-weight: bold;"
>
{{ item.box_sn }}
</text>
<text
class=
"text"
v-if=
"item.sub_box_qty > 1"
>
({{ item.sub_box_qty }})
</text>
<text
class=
"tt"
style=
"margin-left: 50px;width: 100rpx;"
>
{{item.tally_status_cn}}
</text>
<text
class=
"tt"
style=
"margin-left: 50px;width: 100rpx;"
>
{{item.tally_status_cn}}
</text>
</view>
</view>
<view
class=
"input-box row verCenter"
>
<view
class=
"input-box row verCenter"
>
...
...
pages/tally/unboxing.vue
View file @
ae61d0c0
...
@@ -235,6 +235,10 @@
...
@@ -235,6 +235,10 @@
var
value
=
event
.
target
.
value
;
var
value
=
event
.
target
.
value
;
if
(
type
==
1
)
{
if
(
type
==
1
)
{
if
(
value
)
{
if
(
value
)
{
if
(
value
.
indexOf
(
'-'
)
!==
-
1
)
{
// 判断字符串中是否存在 '-'
value
=
value
.
split
(
'-'
)[
0
];
// 存在则截取 '-' 前的部分
}
this
.
box_sn
=
value
;
this
.
getTallyData
();
this
.
getTallyData
();
}
}
}
else
if
(
type
==
2
)
{
}
else
if
(
type
==
2
)
{
...
@@ -914,7 +918,7 @@
...
@@ -914,7 +918,7 @@
});
});
return
false
;
return
false
;
}
}
this
.
request
(
API
.
getBoxNumByDetailId
,
'POST'
,
{
wstydl_id
:
this
.
form
[
i
ndex
].
wstydl_id
},
true
).
then
(
json
=>
{
this
.
request
(
API
.
getBoxNumByDetailId
,
'POST'
,
{
wstydl_id
:
this
.
form
[
this
.
formI
ndex
].
wstydl_id
},
true
).
then
(
json
=>
{
if
(
json
.
err_code
===
0
)
{
if
(
json
.
err_code
===
0
)
{
if
(
json
.
data
>
1
)
{
if
(
json
.
data
>
1
)
{
let
text
=
`
${
this
.
form
[
this
.
formIndex
].
erp_order_sn
}
货物分部在
${
this
.
box_sn
}
的
${
json
.
data
}
个子箱,请确认是否全部取消`
;
let
text
=
`
${
this
.
form
[
this
.
formIndex
].
erp_order_sn
}
货物分部在
${
this
.
box_sn
}
的
${
json
.
data
}
个子箱,请确认是否全部取消`
;
...
...
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