给计量单位增加录入判断

This commit is contained in:
季圣华 2021-12-01 23:54:18 +08:00
parent 95561f8b86
commit 8816823ee8

View File

@ -116,18 +116,23 @@
that.confirmLoading = false;
return;
}
if(!formData.ratio) {
that.$message.warning('抱歉此时比例不能为空');
if(formData.otherUnit && !formData.ratio) {
that.$message.warning('抱歉比例不能为空');
that.confirmLoading = false;
return;
}
if(formData.otherUnitTwo && !formData.ratioTwo) {
that.$message.warning('抱歉此时比例2不能为空');
that.$message.warning('抱歉比例2不能为空');
that.confirmLoading = false;
return;
}
if(formData.otherUnitThree && !formData.ratioThree) {
that.$message.warning('抱歉此时比例3不能为空');
that.$message.warning('抱歉比例3不能为空');
that.confirmLoading = false;
return;
}
if(!formData.otherUnitTwo && formData.otherUnitThree) {
that.$message.warning('抱歉需要先输入副单位2再输入副单位3');
that.confirmLoading = false;
return;
}