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
13fc83b3
authored
Nov 27, 2023
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
香港wms-理货确认-卡板打印标签逻辑调整
parent
700f3180
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
64 additions
and
55 deletions
pages/tag/print.vue
pages/tallyGoods/confirm.vue
pages/tag/print.vue
View file @
13fc83b3
...
...
@@ -127,7 +127,10 @@
//如果【理货确认-板/箱 均不为0】,则【打印标签】打印类型只继承入仓号,打印类型默认为【散箱】标签数量1 批次为0(保持原默认值)
if
(
this
.
printParams
.
box_num
&&
this
.
printParams
.
board_num
)
{
this
.
index_print_type
=
0
;
this
.
form
.
erp_order_sn
=
this
.
printParams
.
erp_order_sn
;
this
.
form
.
label_num
=
this
.
printParams
.
box_num
;
this
.
numberIndex
=
findIndexOrZero
(
this
.
numberArr
,
Number
(
this
.
printParams
.
board_num
));
//匹配到卡板数就选中,否则就是默认0
return
false
;
}
...
...
pages/tallyGoods/confirm.vue
View file @
13fc83b3
...
...
@@ -461,64 +461,70 @@
* 提交
*/
submit
(
type
)
{
if
(
!
this
.
form
.
erp_order_sn
)
{
uni
.
showModal
({
title
:
'提示'
,
content
:
'请输入入仓号'
,
showCancel
:
false
});
return
false
;
}
if
(
this
.
disabled
)
{
uni
.
showModal
({
content
:
'请检查该入仓号是否正确'
,
showCancel
:
false
});
return
false
;
}
if
(
this
.
currentIndex
==
-
1
)
{
uni
.
showModal
({
content
:
'请选择清关费选项'
,
showCancel
:
false
});
return
false
;
}
if
(
!
this
.
form
.
box_num
)
{
uni
.
showModal
({
content
:
'请填写箱子数'
,
showCancel
:
false
});
return
false
;
}
if
(
!
this
.
form
.
board_num
)
{
uni
.
showModal
({
content
:
'请填写板子数'
,
showCancel
:
false
});
return
false
;
}
if
(
!
this
.
form
.
gross_weight
)
{
uni
.
showModal
({
content
:
'请填写箱毛重'
,
showCancel
:
false
});
return
false
;
}
//
if (!this.form.erp_order_sn) {
//
uni.showModal({
//
title: '提示',
//
content: '请输入入仓号',
//
showCancel: false
//
});
//
return false;
//
}
//
if (this.disabled) {
//
uni.showModal({
//
content: '请检查该入仓号是否正确',
//
showCancel: false
//
});
//
return false;
//
}
//
if (this.currentIndex == -1) {
//
uni.showModal({
//
content: '请选择清关费选项',
//
showCancel: false
//
});
//
return false;
//
}
//
if (!this.form.box_num) {
//
uni.showModal({
//
content: '请填写箱子数',
//
showCancel: false
//
});
//
return false;
//
}
//
if (!this.form.board_num) {
//
uni.showModal({
//
content: '请填写板子数',
//
showCancel: false
//
});
//
return false;
//
}
//
if (!this.form.gross_weight) {
//
uni.showModal({
//
content: '请填写箱毛重',
//
showCancel: false
//
});
//
return false;
//
}
//商检图片必填
if
(
this
.
isInspOrg
)
{
// 使用every方法检查每个子数组是否满足条件
var
isValid
=
this
.
goods_check_pic_list
.
every
(
subArray
=>
subArray
.
length
>=
2
);
if
(
!
isValid
)
{
uni
.
showModal
({
content
:
'商检图片上传须大于2张'
,
showCancel
:
false
});
return
false
;
}
}
//
//
商检图片必填
//
if (this.isInspOrg) {
//
// 使用every方法检查每个子数组是否满足条件
//
var isValid = this.goods_check_pic_list.every(subArray => subArray.length >= 2);
//
if (!isValid) {
//
uni.showModal({
//
content: '商检图片上传须大于2张',
//
showCancel: false
//
});
//
return false;
//
}
//
}
this
.
request
(
API
.
submitTallyGoods
,
'POST'
,
this
.
form
,
true
).
then
(
res
=>
{
//点击【确认提交并打印】跳转至【打印标签】页面
uni
.
navigateTo
({
url
:
'/pages/tag/print?board_num='
+
this
.
form
.
board_num
+
'&box_num='
+
this
.
form
.
box_num
+
'&erp_order_sn='
+
this
.
form
.
erp_order_sn
})
return
false
;
if
(
res
.
err_code
===
0
)
{
uni
.
showModal
({
title
:
'提示'
,
...
...
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