Commit a4d0c105 by LJM

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

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