This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user