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
094a0da5
authored
Jul 26, 2024
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
优化
parent
0c715b03
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
48 additions
and
6 deletions
pages/tally/abnormalTally.vue
pages/tally/closeBox.vue
pages/tally/index.vue
pages/tally/printBox.vue
pages/tally/unboxing.vue
util/api.js
pages/tally/abnormalTally.vue
View file @
094a0da5
...
@@ -381,7 +381,7 @@
...
@@ -381,7 +381,7 @@
this
.
request
(
API
.
getBoxNumByDetailId
,
'POST'
,
{
wstydl_id
:
wstydl_id
},
true
).
then
(
json
=>
{
this
.
request
(
API
.
getBoxNumByDetailId
,
'POST'
,
{
wstydl_id
:
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
=
`
${
item
.
erp_order_sn
}
货物分部在
${
this
.
box_sn
}
的
${
json
.
data
.
length
}
个子箱,请确认是否全部取消`
;
let
text
=
`
${
item
.
erp_order_sn
}
货物分部在
${
this
.
box_sn
}
的
${
json
.
data
}
个子箱,请确认是否全部取消`
;
uni
.
showModal
({
uni
.
showModal
({
title
:
'提示'
,
title
:
'提示'
,
content
:
text
,
content
:
text
,
...
@@ -543,10 +543,10 @@
...
@@ -543,10 +543,10 @@
this
.
request
(
API
.
addSCTallyData
,
'POST'
,
params
,
true
).
then
(
res
=>
{
this
.
request
(
API
.
addSCTallyData
,
'POST'
,
params
,
true
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
if
(
res
.
code
===
0
)
{
uni
.
showModal
({
uni
.
showModal
({
title
:
''
,
content
:
'打印成功,请查看打印机'
,
content
:
'打印成功,请查看打印机'
,
showCancel
:
false
showCancel
:
false
});
});
this
.
updateTagPrintTimes
(
this
.
box_sn
);
}
else
{
}
else
{
uni
.
showToast
({
uni
.
showToast
({
title
:
res
.
err_msg
,
title
:
res
.
err_msg
,
...
@@ -556,6 +556,14 @@
...
@@ -556,6 +556,14 @@
});
});
},
},
/**
/**
* 更新统计打印标签次数
*/
updateTagPrintTimes
(
tag_no
)
{
this
.
request
(
API
.
updateTagPrintTimes
,
'POST'
,
{
tag_no
:
tag_no
},
true
).
then
(
res
=>
{
});
},
/**
* 取消装箱
* 取消装箱
*/
*/
canel
()
{
canel
()
{
...
...
pages/tally/closeBox.vue
View file @
094a0da5
...
@@ -339,6 +339,8 @@
...
@@ -339,6 +339,8 @@
this
.
printConfirm
(
res
.
data
);
this
.
printConfirm
(
res
.
data
);
}
else
{
}
else
{
//多个时候
//多个时候
this
.
allChecked
=
false
;
this
.
checkboxItems
=
[];
res
.
data
.
forEach
(
item
=>
{
res
.
data
.
forEach
(
item
=>
{
this
.
checkboxItems
.
push
({
this
.
checkboxItems
.
push
({
value
:
item
,
value
:
item
,
...
@@ -377,6 +379,7 @@
...
@@ -377,6 +379,7 @@
title
:
'打印箱号成功'
,
title
:
'打印箱号成功'
,
icon
:
'success'
icon
:
'success'
})
})
this
.
updateTagPrintTimes
(
data
.
join
(
','
));
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
close
();
this
.
close
();
this
.
flag
=
false
;
this
.
flag
=
false
;
...
@@ -393,6 +396,14 @@
...
@@ -393,6 +396,14 @@
});
});
},
},
/**
/**
* 更新统计打印标签次数
*/
updateTagPrintTimes
(
tag_no
)
{
this
.
request
(
API
.
updateTagPrintTimes
,
'POST'
,
{
tag_no
:
tag_no
},
true
).
then
(
res
=>
{
});
},
/**
* 全选复选框状态变化
* 全选复选框状态变化
* @param {Object} e
* @param {Object} e
*/
*/
...
...
pages/tally/index.vue
View file @
094a0da5
...
@@ -1037,7 +1037,7 @@
...
@@ -1037,7 +1037,7 @@
this
.
request
(
API
.
getBoxNumByDetailId
,
'POST'
,
{
wstydl_id
:
this
.
form
[
index
].
wstydl_id
},
true
).
then
(
json
=>
{
this
.
request
(
API
.
getBoxNumByDetailId
,
'POST'
,
{
wstydl_id
:
this
.
form
[
index
].
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
.
erp_order_sn
}
货物分部在
${
this
.
box_sn
}
的
${
json
.
data
.
length
}
个子箱,请确认是否全部取消`
;
let
text
=
`
${
this
.
erp_order_sn
}
货物分部在
${
this
.
box_sn
}
的
${
json
.
data
}
个子箱,请确认是否全部取消`
;
uni
.
showModal
({
uni
.
showModal
({
title
:
'提示'
,
title
:
'提示'
,
content
:
text
,
content
:
text
,
...
@@ -1210,6 +1210,8 @@
...
@@ -1210,6 +1210,8 @@
this
.
printConfirm
(
res
.
data
);
this
.
printConfirm
(
res
.
data
);
}
else
{
}
else
{
//多个时候
//多个时候
this
.
allChecked
=
false
;
this
.
checkboxItems
=
[];
res
.
data
.
forEach
(
item
=>
{
res
.
data
.
forEach
(
item
=>
{
this
.
checkboxItems
.
push
({
this
.
checkboxItems
.
push
({
value
:
item
,
value
:
item
,
...
@@ -1248,6 +1250,7 @@
...
@@ -1248,6 +1250,7 @@
title
:
'打印箱号成功'
,
title
:
'打印箱号成功'
,
icon
:
'success'
icon
:
'success'
})
})
this
.
updateTagPrintTimes
(
data
.
join
(
','
));
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
close
();
this
.
close
();
},
2000
)
},
2000
)
...
@@ -1260,6 +1263,14 @@
...
@@ -1260,6 +1263,14 @@
});
});
},
},
/**
/**
* 更新统计打印标签次数
*/
updateTagPrintTimes
(
tag_no
)
{
this
.
request
(
API
.
updateTagPrintTimes
,
'POST'
,
{
tag_no
:
tag_no
},
true
).
then
(
res
=>
{
});
},
/**
* 全选复选框状态变化
* 全选复选框状态变化
* @param {Object} e
* @param {Object} e
*/
*/
...
...
pages/tally/printBox.vue
View file @
094a0da5
...
@@ -39,10 +39,10 @@
...
@@ -39,10 +39,10 @@
this
.
request
(
API
.
addSCTallyData
,
'POST'
,
params
,
true
).
then
(
res
=>
{
this
.
request
(
API
.
addSCTallyData
,
'POST'
,
params
,
true
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
if
(
res
.
code
===
0
)
{
uni
.
showModal
({
uni
.
showModal
({
title
:
''
,
content
:
'打印成功,请查看打印机'
,
content
:
'打印成功,请查看打印机'
,
showCancel
:
false
showCancel
:
false
});
});
this
.
updateTagPrintTimes
(
this
.
box_sn
);
}
else
{
}
else
{
uni
.
showToast
({
uni
.
showToast
({
title
:
res
.
err_msg
,
title
:
res
.
err_msg
,
...
@@ -52,6 +52,14 @@
...
@@ -52,6 +52,14 @@
});
});
},
},
/**
/**
* 更新统计打印标签次数
*/
updateTagPrintTimes
(
tag_no
)
{
this
.
request
(
API
.
updateTagPrintTimes
,
'POST'
,
{
tag_no
:
tag_no
},
true
).
then
(
res
=>
{
});
},
/**
* 清空数据
* 清空数据
*/
*/
clearInput
()
{
clearInput
()
{
...
...
pages/tally/unboxing.vue
View file @
094a0da5
...
@@ -917,7 +917,7 @@
...
@@ -917,7 +917,7 @@
this
.
request
(
API
.
getBoxNumByDetailId
,
'POST'
,
{
wstydl_id
:
this
.
form
[
index
].
wstydl_id
},
true
).
then
(
json
=>
{
this
.
request
(
API
.
getBoxNumByDetailId
,
'POST'
,
{
wstydl_id
:
this
.
form
[
index
].
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
.
length
}
个子箱,请确认是否全部取消`
;
let
text
=
`
${
this
.
form
[
this
.
formIndex
].
erp_order_sn
}
货物分部在
${
this
.
box_sn
}
的
${
json
.
data
}
个子箱,请确认是否全部取消`
;
uni
.
showModal
({
uni
.
showModal
({
title
:
'提示'
,
title
:
'提示'
,
content
:
text
,
content
:
text
,
...
...
util/api.js
View file @
094a0da5
...
@@ -341,7 +341,11 @@ const API = {
...
@@ -341,7 +341,11 @@ const API = {
/**
/**
* app 根据理货明细获取箱数
* app 根据理货明细获取箱数
*/
*/
getBoxNumByDetailId
:
API_BASE
+
'/supplywechatwms/getBoxNumByDetailId'
getBoxNumByDetailId
:
API_BASE
+
'/supplywechatwms/getBoxNumByDetailId'
,
/**
* 更新统计打印标签次数
*/
updateTagPrintTimes
:
API_BASE
+
'/supplywechatwms/updateTagPrintTimes'
}
}
...
...
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