Commit aa927e7c by LJM

WMS二期容器必填改动

parent d03db929
...@@ -570,21 +570,33 @@ export default { ...@@ -570,21 +570,33 @@ export default {
* 一键理货提交 * 一键理货提交
*/ */
createTallyReceiveSubmit() { createTallyReceiveSubmit() {
if (!this.searchParams.container_id) { //仅单据的组织为深贸电子时,容器必填,相应操作容器必填
uni.showToast({ if (company_id == 1) {
title: '请输入容器', if (this.searchParams.container_id) {
icon: 'none' if (!this.is_submit) {
}); uni.showToast({
return false; title: '请输入正确容器',
} icon: 'none'
if (!this.is_submit) { });
uni.showToast({ return false;
title: '请输入正确容器', }
icon: 'none' }
}); } else if (company_id == 2) {
return false; if (!this.searchParams.container_id) {
uni.showToast({
title: '请输入容器',
icon: 'none'
});
return false;
}
if (!this.is_submit) {
uni.showToast({
title: '请输入正确容器',
icon: 'none'
});
return false;
}
} }
//当前登录组织为深贸电子才必填 //当前登录组织为深贸电子才必填
if (this.company_id == 2) { if (this.company_id == 2) {
if (this.formParams.image_ids.length <= 0) { if (this.formParams.image_ids.length <= 0) {
...@@ -621,20 +633,34 @@ export default { ...@@ -621,20 +633,34 @@ export default {
}); });
}, },
showDrawer() { showDrawer() {
if (!this.searchParams.container_id) { //仅单据的组织为深贸电子时,容器必填,相应操作容器必填
uni.showToast({ if (company_id == 1) {
title: '请输入容器', if (this.searchParams.container_id) {
icon: 'error' if (!this.is_submit) {
}); uni.showToast({
return false; title: '请输入正确容器',
} icon: 'none'
if (!this.is_submit) { });
uni.showToast({ return false;
title: '请输入正确容器', }
icon: 'error' }
}); } else if (company_id == 2) {
return false; if (!this.searchParams.container_id) {
uni.showToast({
title: '请输入容器',
icon: 'error'
});
return false;
}
if (!this.is_submit) {
uni.showToast({
title: '请输入正确容器',
icon: 'error'
});
return false;
}
} }
if (this.filter_id.length == 0) { if (this.filter_id.length == 0) {
uni.showToast({ uni.showToast({
title: '请选择货品', title: '请选择货品',
......
...@@ -770,7 +770,7 @@ export default { ...@@ -770,7 +770,7 @@ export default {
const dcRegex = /^\d{4}$/; // 匹配四位数字 const dcRegex = /^\d{4}$/; // 匹配四位数字
if (!dcRegex.test(this.formParams.date_code)) { if (!dcRegex.test(this.formParams.date_code)) {
uni.showModal({ uni.showModal({
itle: '提示', title: '提示',
content: 'D/C必须为四位数字', content: 'D/C必须为四位数字',
showCancel: false showCancel: false
}); });
......
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