发货提示优化

This commit is contained in:
hayu 2026-02-03 16:45:36 +08:00
parent 268e41b540
commit 72dd689bdc
4 changed files with 4 additions and 4 deletions

View File

@ -312,7 +312,7 @@ function beforeSubmitApply() {
lkNum += (l.lkNum ? parseInt(l.lkNum) : 0);
let thisCgNum= (l.cgNum ? parseInt(l.cgNum) : 0);
if (!l.supId && thisCgNum > 0) {
layer.msg('序号为' + (i + 1) + '的数据,选择供应商', { icon: 7 });
layer.msg('序号为' + (i + 1) + '的数据,采购量大于0选择供应商', { icon: 7 });
hasError = true;
break;
}

View File

@ -218,7 +218,7 @@ function beforeSubmitApply() {
// 校验供应商是否选择采购量大于0时必填
if (!l.supId && thisCgNum > 0) {
layer.msg('序号为' + (i + 1) + '的数据,选择供应商', { icon: 7 });
layer.msg('序号为' + (i + 1) + '的数据,采购量大于0选择供应商', { icon: 7 });
hasError = true; // 标记错误状态
break; // 终止内层循环
}

View File

@ -154,7 +154,7 @@ function beforeSubmitApply() {
lkNum += (l.lkNum ? parseInt(l.lkNum) : 0);
if (!l.supId && cgNum > 0) {
// 采购的才需要选择供应商
return layer.msg('序号为' + (i + 1) + '的数据,选择供应商', { icon: 7 });
return layer.msg('序号为' + (i + 1) + '的数据,采购量大于0选择供应商', { icon: 7 });
}
if (!l.ccDay) {
return layer.msg('序号为' + (i + 1) + '的数据,未选择出厂日期', { icon: 7 });

View File

@ -244,7 +244,7 @@ function beforeSubmitApply() {
if (cgNum > 0 || lkNum > 0) {
// 如果没有选择供应商且 cgNum 大于 0显示警告
if (!l.supId && cgNum > 0) {
return layer.msg('序号为' + (i + 1) + '的数据,选择供应商', { icon: 7 });
return layer.msg('序号为' + (i + 1) + '的数据,采购量大于0选择供应商', { icon: 7 });
}
} else {
// 如果 cgNum 和 lkNum 都不大于 0弹出提示