给计量单位增加录入判断
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user