Commit 8816823e authored by 季圣华's avatar 季圣华
Browse files

给计量单位增加录入判断

parent 95561f8b
...@@ -116,18 +116,23 @@ ...@@ -116,18 +116,23 @@
that.confirmLoading = false; that.confirmLoading = false;
return; return;
} }
if(!formData.ratio) { if(formData.otherUnit && !formData.ratio) {
that.$message.warning('抱歉,此时比例不能为空!'); that.$message.warning('抱歉,比例不能为空!');
that.confirmLoading = false; that.confirmLoading = false;
return; return;
} }
if(formData.otherUnitTwo && !formData.ratioTwo) { if(formData.otherUnitTwo && !formData.ratioTwo) {
that.$message.warning('抱歉,此时比例2不能为空!'); that.$message.warning('抱歉,比例2不能为空!');
that.confirmLoading = false; that.confirmLoading = false;
return; return;
} }
if(formData.otherUnitThree && !formData.ratioThree) { 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; that.confirmLoading = false;
return; return;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment