Commit aa927e7c by LJM

WMS二期容器必填改动

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