|
|
@@ -1098,7 +1098,7 @@
|
|
|
paymentConditionName: [
|
|
|
{
|
|
|
// 仅当「生成付款计划表 = 是」时付款条件才必填;选否则不再校验
|
|
|
- required: this.form.isGeneratePaymentPlan !== 0,
|
|
|
+ required: true,
|
|
|
message: '请选择付款条件',
|
|
|
trigger: 'change'
|
|
|
}
|
|
|
@@ -1164,7 +1164,7 @@
|
|
|
generatePlanChange(val) {
|
|
|
console.log(val)
|
|
|
if(val == 0) {
|
|
|
- this.$refs.form?.clearValidate(['paymentConditionName']);
|
|
|
+ // this.$refs.form?.clearValidate(['paymentConditionName']);
|
|
|
} else {
|
|
|
this.issueNumberChange(this.form.issueNumber);
|
|
|
// this.$refs.paymentCollectionPlanRef?.setDiscountAmount(
|
|
|
@@ -2350,7 +2350,7 @@
|
|
|
|
|
|
getValidate() {
|
|
|
|
|
|
- if (this.form.isGeneratePaymentPlan !== 0 && !this.form.paymentConditionName) {
|
|
|
+ if (!this.form.paymentConditionName) {
|
|
|
this.$message.error('付款条件不能为空');
|
|
|
}
|
|
|
|