|
|
@@ -512,7 +512,22 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
],
|
|
|
- flowBet: [{ required: true, message: '请输入押金', trigger: 'blur' }]
|
|
|
+ flowBet: [{ required: true, message: '请输入押金', trigger: 'blur' }],
|
|
|
+ PayType: [
|
|
|
+ {
|
|
|
+ validator: (rule, value, callback) => {
|
|
|
+ if (isNaN(Number(this.formData.bet))) {
|
|
|
+ callback(new Error('请输入押几'));
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (isNaN(Number(this.formData.pay))) {
|
|
|
+ callback(new Error('请输入付几'));
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ callback();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
},
|
|
|
invoiceType: [
|
|
|
{
|
|
|
@@ -693,6 +708,18 @@ export default {
|
|
|
this.$message.error('请输入合同结束时间');
|
|
|
return;
|
|
|
}
|
|
|
+ if (isNaN(Number(this.formData.bet))) {
|
|
|
+ this.$message.error('请输入押几');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (isNaN(Number(this.formData.pay))) {
|
|
|
+ this.$message.error('请输入付几');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (!this.formData.advancePayment) {
|
|
|
+ this.$message.error('请输入提前几天收款');
|
|
|
+ return;
|
|
|
+ }
|
|
|
if (!this.formData.advancePayment) {
|
|
|
this.$message.error('请输入提前几天收款');
|
|
|
return;
|
|
|
@@ -939,6 +966,7 @@ export default {
|
|
|
if (valid) {
|
|
|
this.submit();
|
|
|
} else {
|
|
|
+ this.$message.error('表单有误,请修改后重新提交');
|
|
|
return false;
|
|
|
}
|
|
|
});
|