Commit 16d4cb55 by LJM

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

parent 7230ef08
...@@ -312,6 +312,8 @@ ...@@ -312,6 +312,8 @@
is_add: 0 is_add: 0
}); });
this.request(API.checkScTallyGoods, 'POST', { erp_order_sn: this.form.erp_order_sn }, true).then(res => {
if (res.err_code === 0) {
this.request(API.checkRepeatPrintLabel, 'POST', params, true).then(res => { this.request(API.checkRepeatPrintLabel, 'POST', params, true).then(res => {
if (res.err_code === 0) { if (res.err_code === 0) {
this.printLabelChange(); this.printLabelChange();
...@@ -330,6 +332,13 @@ ...@@ -330,6 +332,13 @@
}); });
} }
}); });
} else {
uni.showToast({
title: res.err_msg,
icon: 'none'
});
}
});
}, },
/** /**
* 打印标签 * 打印标签
......
...@@ -116,7 +116,8 @@ ...@@ -116,7 +116,8 @@
return false; return false;
} }
this.request(API.checkScTallyGoods, 'POST', { erp_order_sn: this.form.erp_order_sn }, true).then(res => {
if (res.err_code === 0) {
this.request(API.checkRepeatPrintLabel, 'POST', this.form, 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.printLabelChange();
...@@ -135,6 +136,13 @@ ...@@ -135,6 +136,13 @@
}); });
} }
}); });
} 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