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
968b30c4
authored
May 25, 2022
by
liangjianmin
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
检测标签重复打印
parent
413f8e65
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
5 deletions
pages/tag/print.vue
util/api.js
pages/tag/print.vue
View file @
968b30c4
...
...
@@ -187,7 +187,30 @@ export default {
return
false
;
}
this
.
request
(
API
.
printLabel
,
'POST'
,
this
.
form
,
false
).
then
(
res
=>
{
let
params
=
Object
.
assign
(
this
.
form
,
{
is_add
:
0
});
this
.
request
(
API
.
checkRepeatPrintLabel
,
'POST'
,
params
,
true
).
then
(
res
=>
{
if
(
res
.
err_code
===
0
)
{
this
.
printLabelChange
();
}
else
{
uni
.
showModal
({
title
:
'提示'
,
content
:
res
.
err_msg
,
confirmText
:
'继续打印'
,
success
:
res
=>
{
if
(
res
.
confirm
)
{
this
.
printLabelChange
();
}
else
if
(
res
.
cancel
)
{
console
.
log
(
'用户点击取消'
);
}
}
});
}
});
},
printLabelChange
()
{
this
.
request
(
API
.
printLabel
,
'POST'
,
this
.
form
,
true
).
then
(
res
=>
{
if
(
res
.
err_code
===
0
)
{
this
.
printLabelData
=
res
.
data
;
this
.
wstyptll_id
=
res
.
data
[
0
].
wstyptll_id
;
...
...
@@ -196,7 +219,6 @@ export default {
uni
.
showModal
({
title
:
'提示'
,
content
:
res
.
err_msg
,
showCancel
:
false
,
confirmText
:
'关闭'
});
}
...
...
@@ -331,7 +353,7 @@ export default {
}
},
delErpOrderSnCodeManage
()
{
this
.
request
(
API
.
delWstyptllIdErpOrderSnCodeManage
,
'POST'
,
{
wstyptll_id
:
this
.
wstyptll_id
},
tru
e
).
then
(
res
=>
{
this
.
request
(
API
.
delWstyptllIdErpOrderSnCodeManage
,
'POST'
,
{
wstyptll_id
:
this
.
wstyptll_id
},
fals
e
).
then
(
res
=>
{
if
(
res
.
err_code
===
0
)
{
}
else
{
uni
.
showModal
({
...
...
util/api.js
View file @
968b30c4
...
...
@@ -104,13 +104,16 @@ const API = {
/**
* 作废条码
*/
delErpOrderSnCodeManage
:
API_BASE
+
'/supplywechatwms/delErpOrderSnCodeManage'
delErpOrderSnCodeManage
:
API_BASE
+
'/supplywechatwms/delErpOrderSnCodeManage'
,
/**
* 检测标签重复打印
*/
checkRepeatPrintLabel
:
API_BASE
+
'/supplywechatwms/checkRepeatPrintLabel'
}
module
.
exports
=
{
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