Commit a4d0c105 by LJM

仅单据的组织为深贸电子时,容器必填,相应操作容器必填

parent aa927e7c
Showing with 26 additions and 13 deletions
...@@ -731,19 +731,32 @@ export default { ...@@ -731,19 +731,32 @@ export default {
* 理货提交 * 理货提交
*/ */
createTallyReceive() { createTallyReceive() {
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.formParams.tally_qty) { if (!this.formParams.tally_qty) {
......
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