diff --git a/ayanova/src/views/customer-notify-subscription.vue b/ayanova/src/views/customer-notify-subscription.vue index a7a69394..1c0791d1 100644 --- a/ayanova/src/views/customer-notify-subscription.vue +++ b/ayanova/src/views/customer-notify-subscription.vue @@ -512,6 +512,7 @@ export default { ayaType: 0, eventType: 0, advanceNotice: "00:00:00", + ageValue: "00:00:00", idValue: 0, decValue: 0, linkReportId: null, @@ -520,6 +521,7 @@ export default { template: null, subject: null }, + formState: { ready: false, dirty: false, @@ -920,6 +922,24 @@ export default { default: vm.obj.linkReportId = null; } + + if (!this.showAgeValue) { + this.obj.ageValue = "00:00:00"; + } + if (!this.showAdvanceNotice) { + this.obj.advanceNotice = "00:00:00"; + } + if (!this.showDecValue) { + this.obj.decValue = 0; + } + if (!this.showIntegerDecValue) { + this.obj.decValue = 0; + } + + if (!this.showQuoteStatus && !this.showWoStatus) { + this.obj.idValue = 0; + } + const res = await window.$gz.api.upsert(API_BASE_URL, vm.obj); if (res.error) { vm.formState.serverError = res.error;