Commit de3ab8c6 by LJM

打印快递单

parent 79b1e387
...@@ -38,25 +38,25 @@ export default { ...@@ -38,25 +38,25 @@ export default {
index: 0, index: 0,
labelStyles: [ labelStyles: [
{ {
'id': 5, id: 5,
'name': '入库标签', name: '入库标签'
}, },
{ {
'id': 1, id: 1,
'name': '库位标签', name: '库位标签'
}, },
{ {
'id': 2, id: 2,
'name': '库区标签', name: '库区标签'
}, },
{ {
'id': 3, id: 3,
'name': '区域标签', name: '区域标签'
}, },
{ {
'id': 4, id: 4,
'name': '容器标签', name: '容器标签'
}, }
], ],
formParams: { formParams: {
sn: '', sn: '',
...@@ -80,8 +80,8 @@ export default { ...@@ -80,8 +80,8 @@ export default {
* 打印 * 打印
*/ */
latePrint() { latePrint() {
this.formParams.origin_device_ip = getLocalIpAddress() ?? ''; this.formParams.origin_device_ip = getLocalIpAddress() || '';
console.log('origin_device_ip', this.formParams.origin_device_ip) console.log('origin_device_ip', this.formParams.origin_device_ip);
this.request(API.latePrint, 'POST', this.formParams, true).then(res => { this.request(API.latePrint, 'POST', this.formParams, true).then(res => {
if (res.code === 0) { if (res.code === 0) {
...@@ -96,9 +96,7 @@ export default { ...@@ -96,9 +96,7 @@ export default {
}); });
} }
}); });
}, }
} }
}; };
</script> </script>
......
...@@ -144,6 +144,14 @@ const API = { ...@@ -144,6 +144,14 @@ const API = {
* */ * */
getStockOutDetail: API_BASE + '/api/stockOut/getStockOutDetail', getStockOutDetail: API_BASE + '/api/stockOut/getStockOutDetail',
/** /**
* 保存交货信息
* */
updateDeliveryInfo: API_BASE + '/api/stockRecheck/updateDeliveryInfo',
/**
* 打印快递单
* */
printExpress: API_BASE + '/api/stockRecheck/printExpress',
/**
* 上传文件 * 上传文件
* */ * */
upload: API_BASE_LIEXIN + '/oss/upload', upload: API_BASE_LIEXIN + '/oss/upload',
......
...@@ -36,6 +36,12 @@ const request = (url = '', type = 'GET', param = {}, Loading) => { ...@@ -36,6 +36,12 @@ const request = (url = '', type = 'GET', param = {}, Loading) => {
uni.hideLoading(); uni.hideLoading();
} }
let [error, res] = response; let [error, res] = response;
if (res.data.code == 101) {
uni.navigateTo({
url: '/pages/mine/login'
})
return false;
}
resolve(res.data); resolve(res.data);
}).catch(error => { }).catch(error => {
uni.showToast({ uni.showToast({
......
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