Commit af04ab66 by LJM

已修复标签补打(华云),和理货,一键理货深茂必填的验证

parent 8fc15e50
...@@ -149,6 +149,9 @@ ...@@ -149,6 +149,9 @@
} else if (company_id == 2) { } else if (company_id == 2) {
this.warehouse_arr = [{ name: '香港仓', value: '10' }]; this.warehouse_arr = [{ name: '香港仓', value: '10' }];
this.formParams.warehouse_id = 10; this.formParams.warehouse_id = 10;
} else if (company_id == 3) {
this.warehouse_arr = [{ name: '华云现货仓', value: '11' }];
this.formParams.warehouse_id = 11;
} }
}, },
methods: { methods: {
......
...@@ -576,33 +576,15 @@ ...@@ -576,33 +576,15 @@
* 一键理货提交 * 一键理货提交
*/ */
createTallyReceiveSubmit() { createTallyReceiveSubmit() {
//仅单据的组织为深贸电子时,容器必填,相应操作容器必填 // 现在需求是都去掉容器必填的验证
if (this.company_id == 1) {
if (this.searchParams.container_id) {
if (!this.is_submit) { if (!this.is_submit) {
uni.showToast({ uni.showToast({
title: '请输入正确容器', title: '请输入正确容器',
icon: 'none' icon: 'error'
});
return false;
}
}
} else if (this.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; 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) {
...@@ -639,33 +621,14 @@ ...@@ -639,33 +621,14 @@
}); });
}, },
showDrawer() { showDrawer() {
//仅单据的组织为深贸电子时,容器必填,相应操作容器必填 // 现在需求是都去掉容器必填的验证
if (this.company_id == 1) {
if (this.searchParams.container_id) {
if (!this.is_submit) { if (!this.is_submit) {
uni.showToast({ uni.showToast({
title: '请输入正确容器', title: '请输入正确容器',
icon: 'none'
});
return false;
}
}
} else if (this.company_id == 2) {
if (!this.searchParams.container_id) {
uni.showToast({
title: '请输入容器',
icon: 'error' icon: 'error'
}); });
return false; 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({
......
...@@ -731,25 +731,7 @@ ...@@ -731,25 +731,7 @@
* 理货提交 * 理货提交
*/ */
createTallyReceive() { createTallyReceive() {
//仅单据的组织为深贸电子时,容器必填,相应操作容器必填 // 现在需求是都去掉容器必填的验证
if (this.company_id == 1) {
if (this.searchParams.container_id) {
if (!this.is_submit) {
uni.showToast({
title: '请输入正确容器',
icon: 'none'
});
return false;
}
}
} else if (this.company_id == 2) {
if (!this.searchParams.container_id) {
uni.showToast({
title: '请输入容器',
icon: 'error'
});
return false;
}
if (!this.is_submit) { if (!this.is_submit) {
uni.showToast({ uni.showToast({
title: '请输入正确容器', title: '请输入正确容器',
...@@ -757,7 +739,6 @@ ...@@ -757,7 +739,6 @@
}); });
return false; return false;
} }
}
if (!this.formParams.tally_qty) { if (!this.formParams.tally_qty) {
uni.showModal({ uni.showModal({
......
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