Commit dd14c7e5 by liangjianmin

refactor(arrivalRegister): 精简包装尺寸输入验证逻辑,提升用户体验

- 移除了包装方式为编带时的标准和单位尺寸的必填提示,简化了输入验证流程
- 优化了代码结构,增强了逻辑的清晰性和可读性
parent d34a0627
Showing with 2 additions and 32 deletions
......@@ -1038,22 +1038,7 @@
});
return true;
}
if (!standard_width) {
uni.showModal({
title: '提示',
content: `第${index + 1}页,包装方式为编带的时候,标准包装宽为必填`,
showCancel: false
});
return true;
}
if (!standard_high) {
uni.showModal({
title: '提示',
content: `第${index + 1}页,包装方式为编带的时候,标准包装高为必填`,
showCancel: false
});
return true;
}
// 检查单位尺寸字段
if (!unit_length) {
uni.showModal({
......@@ -1063,22 +1048,7 @@
});
return true;
}
if (!unit_width) {
uni.showModal({
title: '提示',
content: `第${index + 1}页,包装方式为编带的时候,单位宽为必填`,
showCancel: false
});
return true;
}
if (!unit_high) {
uni.showModal({
title: '提示',
content: `第${index + 1}页,包装方式为编带的时候,单位高为必填`,
showCancel: false
});
return true;
}
return false;
});
if (hasError) {
......
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