Commit 80ea877a by LJM

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

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