Commit 80ea877a by LJM

移动端--深贸电子--移动端,单个理货、一键理货,取消理货图片必填

parent 48df2aa3
...@@ -358,6 +358,7 @@ ...@@ -358,6 +358,7 @@
url: API.upload + '?sys_type=4', url: API.upload + '?sys_type=4',
filePath: compressedImagePath, filePath: compressedImagePath,
name: 'file', name: 'file',
timeout: 10000,
header: { header: {
'Content-Type': 'multipart/form-data' 'Content-Type': 'multipart/form-data'
}, },
...@@ -395,7 +396,10 @@ ...@@ -395,7 +396,10 @@
} }
}, },
fail: error => { fail: error => {
console.log('上传图片失败:', error); uni.showToast({
title: '上传图片失败',
icon: 'none'
});
uni.hideLoading(); uni.hideLoading();
} }
}); });
......
...@@ -1082,6 +1082,7 @@ ...@@ -1082,6 +1082,7 @@
url: API.upload + '?sys_type=4', url: API.upload + '?sys_type=4',
filePath: compressedImagePath, filePath: compressedImagePath,
name: 'file', name: 'file',
timeout: 10000,
header: { header: {
'Content-Type': 'multipart/form-data' 'Content-Type': 'multipart/form-data'
}, },
...@@ -1103,7 +1104,10 @@ ...@@ -1103,7 +1104,10 @@
} }
}, },
fail: error => { fail: error => {
console.log('上传图片失败:', error); uni.showToast({
title: '上传图片失败',
icon: 'none'
});
uni.hideLoading(); uni.hideLoading();
} }
}); });
......
...@@ -365,6 +365,7 @@ ...@@ -365,6 +365,7 @@
url: API.upload + '?sys_type=4', url: API.upload + '?sys_type=4',
filePath: compressedImagePath, filePath: compressedImagePath,
name: 'file', name: 'file',
timeout: 10000,
header: { header: {
'Content-Type': 'multipart/form-data' 'Content-Type': 'multipart/form-data'
}, },
...@@ -402,7 +403,10 @@ ...@@ -402,7 +403,10 @@
} }
}, },
fail: error => { fail: error => {
console.log('上传图片失败:', error); uni.showToast({
title: '上传图片失败',
icon: 'none'
});
uni.hideLoading(); uni.hideLoading();
} }
}); });
......
...@@ -947,6 +947,7 @@ ...@@ -947,6 +947,7 @@
url: API.upload + '?sys_type=4', url: API.upload + '?sys_type=4',
filePath: compressedImagePath, filePath: compressedImagePath,
name: 'file', name: 'file',
timeout: 10000,
header: { header: {
'Content-Type': 'multipart/form-data' 'Content-Type': 'multipart/form-data'
}, },
...@@ -968,7 +969,10 @@ ...@@ -968,7 +969,10 @@
} }
}, },
fail: error => { fail: error => {
console.log('上传图片失败:', error); uni.showToast({
title: '上传图片失败',
icon: 'none'
});
uni.hideLoading(); uni.hideLoading();
} }
}); });
......
...@@ -645,11 +645,12 @@ ...@@ -645,11 +645,12 @@
//当前登录组织为深贸电子才必填 //当前登录组织为深贸电子才必填
if (this.company_id == 2) { if (this.company_id == 2) {
if (this.formParams.image_ids.length <= 0) { if (this.formParams.image_ids.length <= 0) {
uni.showToast({ //暂时注释掉
title: '请至少上传一张理货图片', // uni.showToast({
icon: 'none' // title: '请至少上传一张理货图片',
}); // icon: 'none'
return false; // });
// return false;
} }
} }
var params = Object.assign(this.formParams, { var params = Object.assign(this.formParams, {
...@@ -755,6 +756,7 @@ ...@@ -755,6 +756,7 @@
url: API.upload + '?sys_type=4', url: API.upload + '?sys_type=4',
filePath: compressedImagePath, filePath: compressedImagePath,
name: 'file', name: 'file',
timeout: 10000,
header: { header: {
'Content-Type': 'multipart/form-data' 'Content-Type': 'multipart/form-data'
}, },
...@@ -772,7 +774,10 @@ ...@@ -772,7 +774,10 @@
} }
}, },
fail: error => { fail: error => {
console.log('上传图片失败:', error); uni.showToast({
title: '上传图片失败',
icon: 'none'
});
uni.hideLoading(); uni.hideLoading();
} }
}); });
......
...@@ -738,6 +738,7 @@ ...@@ -738,6 +738,7 @@
url: API.upload + '?sys_type=4', url: API.upload + '?sys_type=4',
filePath: compressedImagePath, filePath: compressedImagePath,
name: 'file', name: 'file',
timeout: 10000,
header: { header: {
'Content-Type': 'multipart/form-data' 'Content-Type': 'multipart/form-data'
}, },
...@@ -755,7 +756,10 @@ ...@@ -755,7 +756,10 @@
} }
}, },
fail: error => { fail: error => {
console.log('上传图片失败:', error); uni.showToast({
title: '上传图片失败',
icon: 'none'
});
uni.hideLoading(); uni.hideLoading();
} }
}); });
...@@ -812,11 +816,12 @@ ...@@ -812,11 +816,12 @@
//当前登录组织为深贸电子才必填 //当前登录组织为深贸电子才必填
if (this.company_id == 2) { if (this.company_id == 2) {
if (this.formParams.image_ids.length <= 0) { if (this.formParams.image_ids.length <= 0) {
uni.showToast({ //暂时注释掉
title: '请至少上传一张理货图片', // uni.showToast({
icon: 'none' // title: '请至少上传一张理货图片',
}); // icon: 'none'
return false; // });
// return false;
} }
} }
//【理货】、【一键理货】操作时,D/C 必填并且必须为四位数字 //【理货】、【一键理货】操作时,D/C 必填并且必须为四位数字
......
...@@ -914,6 +914,7 @@ ...@@ -914,6 +914,7 @@
url: API.upload + '?sys_type=4', url: API.upload + '?sys_type=4',
filePath: compressedImagePath, filePath: compressedImagePath,
name: 'file', name: 'file',
timeout: 10000,
header: { header: {
'Content-Type': 'multipart/form-data' 'Content-Type': 'multipart/form-data'
}, },
...@@ -934,7 +935,10 @@ ...@@ -934,7 +935,10 @@
} }
}, },
fail: error => { fail: error => {
console.log('上传图片失败:', error); uni.showToast({
title: '上传图片失败',
icon: 'none'
});
uni.hideLoading(); uni.hideLoading();
} }
}); });
......
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