Commit 16d4cb55 by LJM

小程序--app--打印标签,需要增加校验入仓号正确性

parent 7230ef08
...@@ -312,22 +312,31 @@ ...@@ -312,22 +312,31 @@
is_add: 0 is_add: 0
}); });
this.request(API.checkRepeatPrintLabel, 'POST', params, true).then(res => { this.request(API.checkScTallyGoods, 'POST', { erp_order_sn: this.form.erp_order_sn }, true).then(res => {
if (res.err_code === 0) { if (res.err_code === 0) {
this.printLabelChange(); this.request(API.checkRepeatPrintLabel, 'POST', params, true).then(res => {
} else { if (res.err_code === 0) {
uni.showModal({ this.printLabelChange();
title: '提示', } else {
content: res.err_msg, uni.showModal({
confirmText: '继续打印', title: '提示',
success: res => { content: res.err_msg,
if (res.confirm) { confirmText: '继续打印',
this.printLabelChange(); success: res => {
} else if (res.cancel) { if (res.confirm) {
console.log('用户点击取消'); this.printLabelChange();
} } else if (res.cancel) {
console.log('用户点击取消');
}
}
});
} }
}); });
} else {
uni.showToast({
title: res.err_msg,
icon: 'none'
});
} }
}); });
}, },
......
...@@ -116,23 +116,31 @@ ...@@ -116,23 +116,31 @@
return false; return false;
} }
this.request(API.checkScTallyGoods, 'POST', { erp_order_sn: this.form.erp_order_sn }, true).then(res => {
this.request(API.checkRepeatPrintLabel, 'POST', this.form, true).then(res => {
if (res.err_code === 0) { if (res.err_code === 0) {
this.printLabelChange(); this.request(API.checkRepeatPrintLabel, 'POST', this.form, true).then(res => {
} else { if (res.err_code === 0) {
uni.showModal({ this.printLabelChange();
title: '提示', } else {
content: res.err_msg, uni.showModal({
confirmText: '继续打印', title: '提示',
success: res => { content: res.err_msg,
if (res.confirm) { confirmText: '继续打印',
this.printLabelChange(); success: res => {
} else if (res.cancel) { if (res.confirm) {
console.log('用户点击取消'); this.printLabelChange();
} } else if (res.cancel) {
console.log('用户点击取消');
}
}
});
} }
}); });
} else {
uni.showToast({
title: res.err_msg,
icon: 'none'
});
} }
}); });
}, },
......
const API_BASE = 'https://api.ichunt.com'; // const API_BASE = 'https://api.ichunt.com';
const API_BASE_OSS = 'https://image.ichunt.net'; //oss系统 // const API_BASE_OSS = 'https://image.ichunt.net'; //oss系统
const API_BASE_OSS_HK = 'http://hk.image.semour.com'; //oss系统 HK // const API_BASE_OSS_HK = 'http://hk.image.semour.com'; //oss系统 HK
const API_BASE_WMS = 'https://wms.ichunt.net'; //WMS系统 // const API_BASE_WMS = 'https://wms.ichunt.net'; //WMS系统
// const API_BASE = 'http://api.liexin.com'; const API_BASE = 'http://api.liexin.com';
// const API_BASE_OSS = 'http://image.liexindev.net'; const API_BASE_OSS = 'http://image.liexindev.net';
// const API_BASE_OSS_HK = 'http://image.liexindev.net'; //oss系统 HK const API_BASE_OSS_HK = 'http://image.liexindev.net'; //oss系统 HK
// const API_BASE_WMS = 'http://wms.liexindev.net'; //WMS系统 const API_BASE_WMS = 'http://wms.liexindev.net'; //WMS系统
const API = { const API = {
...@@ -389,7 +389,11 @@ const API = { ...@@ -389,7 +389,11 @@ const API = {
/** /**
* 补打标签 * 补打标签
*/ */
reTagPrint: API_BASE + '/supplywechatwms/reTagPrint' reTagPrint: API_BASE + '/supplywechatwms/reTagPrint',
/**
* 验证入仓号
*/
checkScTallyGoods: API_BASE + '/supplywechatwms/checkScTallyGoods'
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment