Commit e750f4ab by LJM

标签打印

parent 1e28a8b1
......@@ -342,10 +342,26 @@
is_add: 0
});
this.request(API.checkRepeatPrintLabel, 'POST', params, true).then(res => {
this.request(API.checkIsTallyGoods, 'POST', params, true).then(res => {
if (res.err_code === 0) {
this.printLabelChange();
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('用户点击取消');
}
}
});
}
});
} else {
uni.showModal({
title: '提示',
......@@ -353,7 +369,24 @@
confirmText: '继续打印',
success: res => {
if (res.confirm) {
this.printLabelChange();
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('用户点击取消');
}
}
});
}
});
} else if (res.cancel) {
console.log('用户点击取消');
}
......@@ -361,6 +394,7 @@
});
}
});
},
printLabelChange() {
this.request(API.printLabel, 'POST', this.form, true).then(res => {
......
const API_BASE = 'https://api.ichunt.com';
const API_BASE_OSS = 'https://image.ichunt.net'; //oss系统
const API_BASE_WMS = 'https://wms.ichunt.net'; //WMS系统
// const API_BASE = 'https://api.ichunt.com';
// const API_BASE_OSS = 'https://image.ichunt.net'; //oss系统
// const API_BASE_WMS = 'https://wms.ichunt.net'; //WMS系统
// const API_BASE = 'http://api.liexin.com';
// const API_BASE_OSS = 'http://image.liexindev.net';
// const API_BASE_WMS = 'http://wms.liexindev.net'; //WMS系统
const API_BASE = 'http://api.liexin.com';
const API_BASE_OSS = 'http://image.liexindev.net';
const API_BASE_WMS = 'http://wms.liexindev.net'; //WMS系统
const API = {
/**
......@@ -132,6 +132,10 @@ const API = {
*/
checkRepeatPrintLabel: API_BASE + '/supplywechatwms/checkRepeatPrintLabel',
/**
* 入仓号是否理货
*/
checkIsTallyGoods: API_BASE + '/supplywechatwms/checkIsTallyGoods',
/**
* 扫描入库
*/
szScanIn: API_BASE + '/supplywechatwms/szScanIn',
......
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