Commit aa927e7c by LJM

WMS二期容器必填改动

parent d03db929
...@@ -570,6 +570,18 @@ export default { ...@@ -570,6 +570,18 @@ export default {
* 一键理货提交 * 一键理货提交
*/ */
createTallyReceiveSubmit() { createTallyReceiveSubmit() {
//仅单据的组织为深贸电子时,容器必填,相应操作容器必填
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) { if (!this.searchParams.container_id) {
uni.showToast({ uni.showToast({
title: '请输入容器', title: '请输入容器',
...@@ -584,7 +596,7 @@ export default { ...@@ -584,7 +596,7 @@ export default {
}); });
return false; 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,6 +633,18 @@ export default { ...@@ -621,6 +633,18 @@ export default {
}); });
}, },
showDrawer() { showDrawer() {
//仅单据的组织为深贸电子时,容器必填,相应操作容器必填
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) { if (!this.searchParams.container_id) {
uni.showToast({ uni.showToast({
title: '请输入容器', title: '请输入容器',
...@@ -635,6 +659,8 @@ export default { ...@@ -635,6 +659,8 @@ export default {
}); });
return false; 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