This commit is contained in:
@@ -512,6 +512,7 @@ export default {
|
|||||||
ayaType: 0,
|
ayaType: 0,
|
||||||
eventType: 0,
|
eventType: 0,
|
||||||
advanceNotice: "00:00:00",
|
advanceNotice: "00:00:00",
|
||||||
|
ageValue: "00:00:00",
|
||||||
idValue: 0,
|
idValue: 0,
|
||||||
decValue: 0,
|
decValue: 0,
|
||||||
linkReportId: null,
|
linkReportId: null,
|
||||||
@@ -520,6 +521,7 @@ export default {
|
|||||||
template: null,
|
template: null,
|
||||||
subject: null
|
subject: null
|
||||||
},
|
},
|
||||||
|
|
||||||
formState: {
|
formState: {
|
||||||
ready: false,
|
ready: false,
|
||||||
dirty: false,
|
dirty: false,
|
||||||
@@ -920,6 +922,24 @@ export default {
|
|||||||
default:
|
default:
|
||||||
vm.obj.linkReportId = null;
|
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);
|
const res = await window.$gz.api.upsert(API_BASE_URL, vm.obj);
|
||||||
if (res.error) {
|
if (res.error) {
|
||||||
vm.formState.serverError = res.error;
|
vm.formState.serverError = res.error;
|
||||||
|
|||||||
Reference in New Issue
Block a user