fixed overlay not clearing delete bug
This commit is contained in:
@@ -14,20 +14,14 @@
|
|||||||
# Schedule form
|
# Schedule form
|
||||||
|
|
||||||
|
|
||||||
todo: svc-schedule once had time to test out personal schedule (give it a few days then move on to this)
|
todo: #1 client / server items below
|
||||||
|
|
||||||
CASES
|
todo: svc-schedule once had time to test out personal schedule (give it a few days then move on to this)
|
||||||
|
SVC-SCHEDULE CASES
|
||||||
3766 - view schedule filtered by customer so can see at a glance all past and future for a single customer (more data table filter similarity)
|
3766 - view schedule filtered by customer so can see at a glance all past and future for a single customer (more data table filter similarity)
|
||||||
"show all " but on a schedule to view that way instead of a data table
|
"show all " but on a schedule to view that way instead of a data table
|
||||||
3697 - arbitrarily order schedule by user instead of built in by lastname
|
3697 - arbitrarily order schedule by user instead of built in by lastname
|
||||||
3698 - hide unassigned tech slot (or case 3697 above would take care of that too)
|
3698 - hide unassigned tech slot (or case 3697 above would take care of that too)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//..........
|
|
||||||
cases to do
|
|
||||||
|
|
||||||
|
|
||||||
Customer work order form / view / open???
|
Customer work order form / view / open???
|
||||||
Customer CSR form has a bunch of todo in the template, WTF?
|
Customer CSR form has a bunch of todo in the template, WTF?
|
||||||
@@ -100,15 +94,6 @@ Coded by importance
|
|||||||
| |____| |____ _| |_| |____| |\ | | |
|
| |____| |____ _| |_| |____| |\ | | |
|
||||||
\_____|______|_____|______|_| \_| |_|
|
\_____|______|_____|______|_| \_| |_|
|
||||||
|
|
||||||
|
|
||||||
- 1 refactoring let to const
|
|
||||||
remove all these:
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -289,7 +274,7 @@ todo: 3 Schedule form reporting?
|
|||||||
todo: 1 Reviews need to be removed when corebiz are deleted (any reviewable object)
|
todo: 1 Reviews need to be removed when corebiz are deleted (any reviewable object)
|
||||||
see customer delete for example, probably need to move this to a static function in Review since it will be called from everywhere
|
see customer delete for example, probably need to move this to a static function in Review since it will be called from everywhere
|
||||||
should be a bizobject built int?
|
should be a bizobject built int?
|
||||||
todo: boot complete server open message to console should include server version number
|
todo: 1 boot complete server open message to console should include server version number
|
||||||
todo:1 update to latest postgres portable and document how to do it as well or a link to how to do it
|
todo:1 update to latest postgres portable and document how to do it as well or a link to how to do it
|
||||||
todo: 1 if a customer type logs in, does Auth check to see that customer or headoffice is active?
|
todo: 1 if a customer type logs in, does Auth check to see that customer or headoffice is active?
|
||||||
because if it isn't the user shouldn't be allowed to login either
|
because if it isn't the user shouldn't be allowed to login either
|
||||||
|
|||||||
@@ -233,21 +233,20 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async remove() {
|
async remove() {
|
||||||
const vm = this;
|
|
||||||
try {
|
try {
|
||||||
if ((await window.$gz.dialog.confirmDelete()) !== true) {
|
if ((await window.$gz.dialog.confirmDelete()) !== true) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const res = await window.$gz.api.remove("attachment/" + vm.editId);
|
const res = await window.$gz.api.remove("attachment/" + this.editId);
|
||||||
if (res.error) {
|
if (res.error) {
|
||||||
window.$gz.errorHandler.handleFormError(res.error);
|
window.$gz.errorHandler.handleFormError(res.error);
|
||||||
} else {
|
} else {
|
||||||
vm.editMenu = false;
|
this.editMenu = false;
|
||||||
vm.editName = null;
|
this.editName = null;
|
||||||
vm.editNotes = null;
|
this.editNotes = null;
|
||||||
vm.editId = null;
|
this.editId = null;
|
||||||
vm.getList();
|
this.getList();
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
window.$gz.errorHandler.handleFormError(error);
|
window.$gz.errorHandler.handleFormError(error);
|
||||||
|
|||||||
@@ -426,7 +426,6 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async remove() {
|
async remove() {
|
||||||
const vm = this;
|
|
||||||
try {
|
try {
|
||||||
const dialogResult = await window.$gz.dialog.confirmDelete();
|
const dialogResult = await window.$gz.dialog.confirmDelete();
|
||||||
if (dialogResult != true) {
|
if (dialogResult != true) {
|
||||||
@@ -434,34 +433,35 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: true
|
loading: true
|
||||||
});
|
});
|
||||||
|
|
||||||
if (vm.$route.params.recordid == 0) {
|
if (this.$route.params.recordid == 0) {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
} else {
|
} else {
|
||||||
window.$gz.form.deleteAllErrorBoxErrors(vm);
|
window.$gz.form.deleteAllErrorBoxErrors(this);
|
||||||
const res = await window.$gz.api.remove(
|
const res = await window.$gz.api.remove(
|
||||||
API_BASE_URL + vm.$route.params.recordid
|
API_BASE_URL + this.$route.params.recordid
|
||||||
);
|
);
|
||||||
if (res.error) {
|
if (res.error) {
|
||||||
vm.formState.serverError = res.error;
|
this.formState.serverError = res.error;
|
||||||
window.$gz.form.setErrorBoxErrors(vm);
|
window.$gz.form.setErrorBoxErrors(this);
|
||||||
} else {
|
} else {
|
||||||
//workaround to prevent warning about leaving dirty record
|
//workaround to prevent warning about leaving dirty record
|
||||||
|
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
window.$gz.errorHandler.handleFormError(error, this);
|
||||||
|
} finally {
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: false
|
loading: false
|
||||||
});
|
});
|
||||||
window.$gz.errorHandler.handleFormError(error, vm);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
duplicate() {
|
duplicate() {
|
||||||
|
|||||||
@@ -388,7 +388,6 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async remove() {
|
async remove() {
|
||||||
const vm = this;
|
|
||||||
try {
|
try {
|
||||||
const dialogResult = await window.$gz.dialog.confirmDelete();
|
const dialogResult = await window.$gz.dialog.confirmDelete();
|
||||||
if (dialogResult != true) {
|
if (dialogResult != true) {
|
||||||
@@ -396,36 +395,37 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: true
|
loading: true
|
||||||
});
|
});
|
||||||
|
|
||||||
if (vm.$route.params.recordid == 0) {
|
if (this.$route.params.recordid == 0) {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
|
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
} else {
|
} else {
|
||||||
const url = API_BASE_URL + vm.$route.params.recordid;
|
const url = API_BASE_URL + this.$route.params.recordid;
|
||||||
|
|
||||||
window.$gz.form.deleteAllErrorBoxErrors(vm);
|
window.$gz.form.deleteAllErrorBoxErrors(this);
|
||||||
const res = await window.$gz.api.remove(url);
|
const res = await window.$gz.api.remove(url);
|
||||||
if (res.error) {
|
if (res.error) {
|
||||||
vm.formState.serverError = res.error;
|
this.formState.serverError = res.error;
|
||||||
window.$gz.form.setErrorBoxErrors(vm);
|
window.$gz.form.setErrorBoxErrors(this);
|
||||||
} else {
|
} else {
|
||||||
//workaround to prevent warning about leaving dirty record
|
//workaround to prevent warning about leaving dirty record
|
||||||
|
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
|
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
window.$gz.errorHandler.handleFormError(error, this);
|
||||||
|
} finally {
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: false
|
loading: false
|
||||||
});
|
});
|
||||||
window.$gz.errorHandler.handleFormError(error, vm);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
duplicate() {
|
duplicate() {
|
||||||
|
|||||||
@@ -414,41 +414,41 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async remove() {
|
async remove() {
|
||||||
const vm = this;
|
|
||||||
try {
|
try {
|
||||||
const dialogResult = await window.$gz.dialog.confirmDelete();
|
const dialogResult = await window.$gz.dialog.confirmDelete();
|
||||||
if (dialogResult != true) {
|
if (dialogResult != true) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: true
|
loading: true
|
||||||
});
|
});
|
||||||
|
|
||||||
if (vm.$route.params.recordid == 0) {
|
if (this.$route.params.recordid == 0) {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
|
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
} else {
|
} else {
|
||||||
window.$gz.form.deleteAllErrorBoxErrors(vm);
|
window.$gz.form.deleteAllErrorBoxErrors(this);
|
||||||
const res = await window.$gz.api.remove(
|
const res = await window.$gz.api.remove(
|
||||||
API_BASE_URL + vm.$route.params.recordid
|
API_BASE_URL + this.$route.params.recordid
|
||||||
);
|
);
|
||||||
if (res.error) {
|
if (res.error) {
|
||||||
vm.formState.serverError = res.error;
|
this.formState.serverError = res.error;
|
||||||
window.$gz.form.setErrorBoxErrors(vm);
|
window.$gz.form.setErrorBoxErrors(this);
|
||||||
} else {
|
} else {
|
||||||
//workaround to prevent warning about leaving dirty record
|
//workaround to prevent warning about leaving dirty record
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
window.$gz.errorHandler.handleFormError(error, this);
|
||||||
|
} finally {
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: false
|
loading: false
|
||||||
});
|
});
|
||||||
window.$gz.errorHandler.handleFormError(error, vm);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
duplicate() {
|
duplicate() {
|
||||||
|
|||||||
@@ -300,7 +300,6 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async remove() {
|
async remove() {
|
||||||
const vm = this;
|
|
||||||
if (
|
if (
|
||||||
(await window.$gz.dialog.confirmGeneric(
|
(await window.$gz.dialog.confirmGeneric(
|
||||||
"ResetToDefault",
|
"ResetToDefault",
|
||||||
@@ -310,24 +309,27 @@ export default {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
vm.formState.loading = true;
|
this.formState.loading = true;
|
||||||
if (vm.templateId && vm.templateId != 0) {
|
if (this.templateId && this.templateId != 0) {
|
||||||
window.$gz.form.deleteAllErrorBoxErrors(vm);
|
window.$gz.form.deleteAllErrorBoxErrors(this);
|
||||||
const res = await window.$gz.api.remove(API_BASE_URL + vm.templateId);
|
const res = await window.$gz.api.remove(
|
||||||
|
API_BASE_URL + this.templateId
|
||||||
|
);
|
||||||
if (res.error) {
|
if (res.error) {
|
||||||
vm.formState.serverError = res.error;
|
this.formState.serverError = res.error;
|
||||||
window.$gz.form.setErrorBoxErrors(vm);
|
window.$gz.form.setErrorBoxErrors(this);
|
||||||
} else {
|
} else {
|
||||||
//trigger reload of form
|
//trigger reload of form
|
||||||
this.getDataFromApi();
|
this.getDataFromApi();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
window.$gz.errorHandler.handleFormError(error, this);
|
||||||
|
} finally {
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: false
|
loading: false
|
||||||
});
|
});
|
||||||
window.$gz.errorHandler.handleFormError(error, vm);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -382,33 +382,32 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async remove() {
|
async remove() {
|
||||||
const vm = this;
|
|
||||||
try {
|
try {
|
||||||
const dialogResult = await window.$gz.dialog.confirmDelete();
|
const dialogResult = await window.$gz.dialog.confirmDelete();
|
||||||
if (dialogResult != true) {
|
if (dialogResult != true) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
vm.formState.loading = true;
|
this.formState.loading = true;
|
||||||
if (vm.$route.params.recordid == 0) {
|
if (this.$route.params.recordid == 0) {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
} else {
|
} else {
|
||||||
window.$gz.form.deleteAllErrorBoxErrors(vm);
|
window.$gz.form.deleteAllErrorBoxErrors(this);
|
||||||
const res = await window.$gz.api.remove(
|
const res = await window.$gz.api.remove(
|
||||||
API_BASE_URL + vm.$route.params.recordid
|
API_BASE_URL + this.$route.params.recordid
|
||||||
);
|
);
|
||||||
if (res.error) {
|
if (res.error) {
|
||||||
vm.formState.serverError = res.error;
|
this.formState.serverError = res.error;
|
||||||
window.$gz.form.setErrorBoxErrors(vm);
|
window.$gz.form.setErrorBoxErrors(this);
|
||||||
} else {
|
} else {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (ex) {
|
} catch (ex) {
|
||||||
window.$gz.errorHandler.handleFormError(ex, vm);
|
window.$gz.errorHandler.handleFormError(ex, this);
|
||||||
} finally {
|
} finally {
|
||||||
vm.formState.loading = false;
|
this.formState.loading = false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async duplicate() {
|
async duplicate() {
|
||||||
|
|||||||
@@ -683,33 +683,32 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async remove() {
|
async remove() {
|
||||||
const vm = this;
|
|
||||||
try {
|
try {
|
||||||
const dialogResult = await window.$gz.dialog.confirmDelete();
|
const dialogResult = await window.$gz.dialog.confirmDelete();
|
||||||
if (dialogResult != true) {
|
if (dialogResult != true) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
vm.formState.loading = true;
|
this.formState.loading = true;
|
||||||
if (vm.$route.params.recordid == 0) {
|
if (this.$route.params.recordid == 0) {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
} else {
|
} else {
|
||||||
window.$gz.form.deleteAllErrorBoxErrors(vm);
|
window.$gz.form.deleteAllErrorBoxErrors(this);
|
||||||
const res = await window.$gz.api.remove(
|
const res = await window.$gz.api.remove(
|
||||||
API_BASE_URL + vm.$route.params.recordid
|
API_BASE_URL + this.$route.params.recordid
|
||||||
);
|
);
|
||||||
if (res.error) {
|
if (res.error) {
|
||||||
vm.formState.serverError = res.error;
|
this.formState.serverError = res.error;
|
||||||
window.$gz.form.setErrorBoxErrors(vm);
|
window.$gz.form.setErrorBoxErrors(this);
|
||||||
} else {
|
} else {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (ex) {
|
} catch (ex) {
|
||||||
window.$gz.errorHandler.handleFormError(ex, vm);
|
window.$gz.errorHandler.handleFormError(ex, this);
|
||||||
} finally {
|
} finally {
|
||||||
vm.formState.loading = false;
|
this.formState.loading = false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
duplicate() {
|
duplicate() {
|
||||||
|
|||||||
@@ -815,38 +815,38 @@ Handlebars.registerHelper('loud', function (aString) {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async remove() {
|
async remove() {
|
||||||
const vm = this;
|
|
||||||
try {
|
try {
|
||||||
const dialogResult = await window.$gz.dialog.confirmDelete();
|
const dialogResult = await window.$gz.dialog.confirmDelete();
|
||||||
if (dialogResult != true) {
|
if (dialogResult != true) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: true
|
loading: true
|
||||||
});
|
});
|
||||||
if (vm.$route.params.recordid == 0) {
|
if (this.$route.params.recordid == 0) {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
} else {
|
} else {
|
||||||
window.$gz.form.deleteAllErrorBoxErrors(vm);
|
window.$gz.form.deleteAllErrorBoxErrors(this);
|
||||||
const res = await window.$gz.api.remove(
|
const res = await window.$gz.api.remove(
|
||||||
"report/" + vm.$route.params.recordid
|
"report/" + this.$route.params.recordid
|
||||||
);
|
);
|
||||||
if (res.error) {
|
if (res.error) {
|
||||||
vm.formState.serverError = res.error;
|
this.formState.serverError = res.error;
|
||||||
window.$gz.form.setErrorBoxErrors(vm);
|
window.$gz.form.setErrorBoxErrors(this);
|
||||||
} else {
|
} else {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
window.$gz.errorHandler.handleFormError(error, this);
|
||||||
|
} finally {
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: false
|
loading: false
|
||||||
});
|
});
|
||||||
window.$gz.errorHandler.handleFormError(error, vm);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
duplicate() {
|
duplicate() {
|
||||||
|
|||||||
@@ -276,38 +276,38 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async remove() {
|
async remove() {
|
||||||
const vm = this;
|
|
||||||
try {
|
try {
|
||||||
const dialogResult = await window.$gz.dialog.confirmDelete();
|
const dialogResult = await window.$gz.dialog.confirmDelete();
|
||||||
if (dialogResult != true) {
|
if (dialogResult != true) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: true
|
loading: true
|
||||||
});
|
});
|
||||||
if (vm.$route.params.recordid == 0) {
|
if (this.$route.params.recordid == 0) {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
} else {
|
} else {
|
||||||
window.$gz.form.deleteAllErrorBoxErrors(vm);
|
window.$gz.form.deleteAllErrorBoxErrors(this);
|
||||||
const res = await window.$gz.api.remove(
|
const res = await window.$gz.api.remove(
|
||||||
API_BASE_URL + vm.$route.params.recordid
|
API_BASE_URL + this.$route.params.recordid
|
||||||
);
|
);
|
||||||
if (res.error) {
|
if (res.error) {
|
||||||
vm.formState.serverError = res.error;
|
this.formState.serverError = res.error;
|
||||||
window.$gz.form.setErrorBoxErrors(vm);
|
window.$gz.form.setErrorBoxErrors(this);
|
||||||
} else {
|
} else {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
window.$gz.errorHandler.handleFormError(error, this);
|
||||||
|
} finally {
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: false
|
loading: false
|
||||||
});
|
});
|
||||||
window.$gz.errorHandler.handleFormError(error, vm);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1007,38 +1007,39 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async remove() {
|
async remove() {
|
||||||
const vm = this;
|
|
||||||
try {
|
try {
|
||||||
const dialogResult = await window.$gz.dialog.confirmDelete();
|
const dialogResult = await window.$gz.dialog.confirmDelete();
|
||||||
if (dialogResult != true) {
|
if (dialogResult != true) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: true
|
loading: true
|
||||||
});
|
});
|
||||||
if (vm.$route.params.recordid == 0) {
|
if (this.$route.params.recordid == 0) {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
} else {
|
} else {
|
||||||
window.$gz.form.deleteAllErrorBoxErrors(vm);
|
window.$gz.form.deleteAllErrorBoxErrors(this);
|
||||||
const res = await window.$gz.api.remove(
|
const res = await window.$gz.api.remove(
|
||||||
API_BASE_URL + vm.$route.params.recordid
|
API_BASE_URL + this.$route.params.recordid
|
||||||
);
|
);
|
||||||
if (res.error) {
|
if (res.error) {
|
||||||
vm.formState.serverError = res.error;
|
this.formState.serverError = res.error;
|
||||||
window.$gz.form.setErrorBoxErrors(vm);
|
window.$gz.form.setErrorBoxErrors(this);
|
||||||
} else {
|
} else {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
window.$gz.errorHandler.handleFormError(error, this);
|
||||||
|
} finally {
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: false
|
loading: false
|
||||||
});
|
});
|
||||||
window.$gz.errorHandler.handleFormError(error, vm);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
duplicate() {
|
duplicate() {
|
||||||
|
|||||||
@@ -917,38 +917,38 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async remove() {
|
async remove() {
|
||||||
const vm = this;
|
|
||||||
try {
|
try {
|
||||||
const dialogResult = await window.$gz.dialog.confirmDelete();
|
const dialogResult = await window.$gz.dialog.confirmDelete();
|
||||||
if (dialogResult != true) {
|
if (dialogResult != true) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: true
|
loading: true
|
||||||
});
|
});
|
||||||
if (vm.$route.params.recordid == 0) {
|
if (this.$route.params.recordid == 0) {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
} else {
|
} else {
|
||||||
window.$gz.form.deleteAllErrorBoxErrors(vm);
|
window.$gz.form.deleteAllErrorBoxErrors(this);
|
||||||
const res = await window.$gz.api.remove(
|
const res = await window.$gz.api.remove(
|
||||||
API_BASE_URL + vm.$route.params.recordid
|
API_BASE_URL + this.$route.params.recordid
|
||||||
);
|
);
|
||||||
if (res.error) {
|
if (res.error) {
|
||||||
vm.formState.serverError = res.error;
|
this.formState.serverError = res.error;
|
||||||
window.$gz.form.setErrorBoxErrors(vm);
|
window.$gz.form.setErrorBoxErrors(this);
|
||||||
} else {
|
} else {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
window.$gz.errorHandler.handleFormError(error, this);
|
||||||
|
} finally {
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: false
|
loading: false
|
||||||
});
|
});
|
||||||
window.$gz.errorHandler.handleFormError(error, vm);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
duplicate() {
|
duplicate() {
|
||||||
|
|||||||
@@ -683,33 +683,32 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async remove() {
|
async remove() {
|
||||||
const vm = this;
|
|
||||||
try {
|
try {
|
||||||
const dialogResult = await window.$gz.dialog.confirmDelete();
|
const dialogResult = await window.$gz.dialog.confirmDelete();
|
||||||
if (dialogResult != true) {
|
if (dialogResult != true) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
vm.formState.loading = true;
|
this.formState.loading = true;
|
||||||
if (vm.$route.params.recordid == 0) {
|
if (this.$route.params.recordid == 0) {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
} else {
|
} else {
|
||||||
window.$gz.form.deleteAllErrorBoxErrors(vm);
|
window.$gz.form.deleteAllErrorBoxErrors(this);
|
||||||
const res = await window.$gz.api.remove(
|
const res = await window.$gz.api.remove(
|
||||||
API_BASE_URL + vm.$route.params.recordid
|
API_BASE_URL + this.$route.params.recordid
|
||||||
);
|
);
|
||||||
if (res.error) {
|
if (res.error) {
|
||||||
vm.formState.serverError = res.error;
|
this.formState.serverError = res.error;
|
||||||
window.$gz.form.setErrorBoxErrors(vm);
|
window.$gz.form.setErrorBoxErrors(this);
|
||||||
} else {
|
} else {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (ex) {
|
} catch (ex) {
|
||||||
window.$gz.errorHandler.handleFormError(ex, vm);
|
window.$gz.errorHandler.handleFormError(ex, this);
|
||||||
} finally {
|
} finally {
|
||||||
vm.formState.loading = false;
|
this.formState.loading = false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
duplicate() {
|
duplicate() {
|
||||||
|
|||||||
@@ -514,38 +514,38 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async remove() {
|
async remove() {
|
||||||
const vm = this;
|
|
||||||
try {
|
try {
|
||||||
const dialogResult = await window.$gz.dialog.confirmDelete();
|
const dialogResult = await window.$gz.dialog.confirmDelete();
|
||||||
if (dialogResult != true) {
|
if (dialogResult != true) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: true
|
loading: true
|
||||||
});
|
});
|
||||||
if (vm.$route.params.recordid == 0) {
|
if (this.$route.params.recordid == 0) {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
} else {
|
} else {
|
||||||
window.$gz.form.deleteAllErrorBoxErrors(vm);
|
window.$gz.form.deleteAllErrorBoxErrors(this);
|
||||||
const res = await window.$gz.api.remove(
|
const res = await window.$gz.api.remove(
|
||||||
API_BASE_URL + vm.$route.params.recordid
|
API_BASE_URL + this.$route.params.recordid
|
||||||
);
|
);
|
||||||
if (res.error) {
|
if (res.error) {
|
||||||
vm.formState.serverError = res.error;
|
this.formState.serverError = res.error;
|
||||||
window.$gz.form.setErrorBoxErrors(vm);
|
window.$gz.form.setErrorBoxErrors(this);
|
||||||
} else {
|
} else {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
window.$gz.errorHandler.handleFormError(error, this);
|
||||||
|
} finally {
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: false
|
loading: false
|
||||||
});
|
});
|
||||||
window.$gz.errorHandler.handleFormError(error, vm);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async reject() {
|
async reject() {
|
||||||
|
|||||||
@@ -414,38 +414,38 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async remove() {
|
async remove() {
|
||||||
const vm = this;
|
|
||||||
try {
|
try {
|
||||||
const dialogResult = await window.$gz.dialog.confirmDelete();
|
const dialogResult = await window.$gz.dialog.confirmDelete();
|
||||||
if (dialogResult != true) {
|
if (dialogResult != true) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: true
|
loading: true
|
||||||
});
|
});
|
||||||
if (vm.$route.params.recordid == 0) {
|
if (this.$route.params.recordid == 0) {
|
||||||
LEAVE_OK = true;
|
LEAVE_OK = true;
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
} else {
|
} else {
|
||||||
window.$gz.form.deleteAllErrorBoxErrors(vm);
|
window.$gz.form.deleteAllErrorBoxErrors(this);
|
||||||
const res = await window.$gz.api.remove(
|
const res = await window.$gz.api.remove(
|
||||||
API_BASE_URL + vm.$route.params.recordid
|
API_BASE_URL + this.$route.params.recordid
|
||||||
);
|
);
|
||||||
if (res.error) {
|
if (res.error) {
|
||||||
vm.formState.serverError = res.error;
|
this.formState.serverError = res.error;
|
||||||
window.$gz.form.setErrorBoxErrors(vm);
|
window.$gz.form.setErrorBoxErrors(this);
|
||||||
} else {
|
} else {
|
||||||
LEAVE_OK = true;
|
LEAVE_OK = true;
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
window.$gz.errorHandler.handleFormError(error, this);
|
||||||
|
} finally {
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: false
|
loading: false
|
||||||
});
|
});
|
||||||
window.$gz.errorHandler.handleFormError(error, vm);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
replyForward(forward) {
|
replyForward(forward) {
|
||||||
|
|||||||
@@ -510,33 +510,32 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async remove() {
|
async remove() {
|
||||||
const vm = this;
|
|
||||||
try {
|
try {
|
||||||
const dialogResult = await window.$gz.dialog.confirmDelete();
|
const dialogResult = await window.$gz.dialog.confirmDelete();
|
||||||
if (dialogResult != true) {
|
if (dialogResult != true) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
vm.formState.loading = true;
|
this.formState.loading = true;
|
||||||
if (vm.$route.params.recordid == 0) {
|
if (this.$route.params.recordid == 0) {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
} else {
|
} else {
|
||||||
window.$gz.form.deleteAllErrorBoxErrors(vm);
|
window.$gz.form.deleteAllErrorBoxErrors(this);
|
||||||
const res = await window.$gz.api.remove(
|
const res = await window.$gz.api.remove(
|
||||||
API_BASE_URL + vm.$route.params.recordid
|
API_BASE_URL + this.$route.params.recordid
|
||||||
);
|
);
|
||||||
if (res.error) {
|
if (res.error) {
|
||||||
vm.formState.serverError = res.error;
|
this.formState.serverError = res.error;
|
||||||
window.$gz.form.setErrorBoxErrors(vm);
|
window.$gz.form.setErrorBoxErrors(this);
|
||||||
} else {
|
} else {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (ex) {
|
} catch (ex) {
|
||||||
window.$gz.errorHandler.handleFormError(ex, vm);
|
window.$gz.errorHandler.handleFormError(ex, this);
|
||||||
} finally {
|
} finally {
|
||||||
vm.formState.loading = false;
|
this.formState.loading = false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
duplicate() {
|
duplicate() {
|
||||||
|
|||||||
@@ -396,11 +396,12 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
window.$gz.errorHandler.handleFormError(error, this);
|
||||||
|
} finally {
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: this,
|
vm: this,
|
||||||
loading: false
|
loading: false
|
||||||
});
|
});
|
||||||
window.$gz.errorHandler.handleFormError(error, this);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
duplicate() {
|
duplicate() {
|
||||||
|
|||||||
@@ -441,38 +441,38 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async remove() {
|
async remove() {
|
||||||
const vm = this;
|
|
||||||
try {
|
try {
|
||||||
const dialogResult = await window.$gz.dialog.confirmDelete();
|
const dialogResult = await window.$gz.dialog.confirmDelete();
|
||||||
if (dialogResult != true) {
|
if (dialogResult != true) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: true
|
loading: true
|
||||||
});
|
});
|
||||||
if (vm.$route.params.recordid == 0) {
|
if (this.$route.params.recordid == 0) {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
} else {
|
} else {
|
||||||
window.$gz.form.deleteAllErrorBoxErrors(vm);
|
window.$gz.form.deleteAllErrorBoxErrors(this);
|
||||||
const res = await window.$gz.api.remove(
|
const res = await window.$gz.api.remove(
|
||||||
API_BASE_URL + vm.$route.params.recordid
|
API_BASE_URL + this.$route.params.recordid
|
||||||
);
|
);
|
||||||
if (res.error) {
|
if (res.error) {
|
||||||
vm.formState.serverError = res.error;
|
this.formState.serverError = res.error;
|
||||||
window.$gz.form.setErrorBoxErrors(vm);
|
window.$gz.form.setErrorBoxErrors(this);
|
||||||
} else {
|
} else {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
window.$gz.errorHandler.handleFormError(error, this);
|
||||||
|
} finally {
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: false
|
loading: false
|
||||||
});
|
});
|
||||||
window.$gz.errorHandler.handleFormError(error, vm);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
duplicate() {
|
duplicate() {
|
||||||
|
|||||||
@@ -531,37 +531,37 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async remove() {
|
async remove() {
|
||||||
const vm = this;
|
|
||||||
try {
|
try {
|
||||||
const dialogResult = await window.$gz.dialog.confirmDelete();
|
const dialogResult = await window.$gz.dialog.confirmDelete();
|
||||||
if (dialogResult != true) {
|
if (dialogResult != true) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: true
|
loading: true
|
||||||
});
|
});
|
||||||
if (vm.$route.params.recordid == 0) {
|
if (this.$route.params.recordid == 0) {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
} else {
|
} else {
|
||||||
const url = API_BASE_URL + vm.$route.params.recordid;
|
const url = API_BASE_URL + this.$route.params.recordid;
|
||||||
window.$gz.form.deleteAllErrorBoxErrors(vm);
|
window.$gz.form.deleteAllErrorBoxErrors(this);
|
||||||
const res = await window.$gz.api.remove(url);
|
const res = await window.$gz.api.remove(url);
|
||||||
if (res.error) {
|
if (res.error) {
|
||||||
vm.formState.serverError = res.error;
|
this.formState.serverError = res.error;
|
||||||
window.$gz.form.setErrorBoxErrors(vm);
|
window.$gz.form.setErrorBoxErrors(this);
|
||||||
} else {
|
} else {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
window.$gz.errorHandler.handleFormError(error, this);
|
||||||
|
} finally {
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: false
|
loading: false
|
||||||
});
|
});
|
||||||
window.$gz.errorHandler.handleFormError(error, vm);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
duplicate() {
|
duplicate() {
|
||||||
|
|||||||
@@ -318,38 +318,38 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async remove() {
|
async remove() {
|
||||||
const vm = this;
|
|
||||||
try {
|
try {
|
||||||
const dialogResult = await window.$gz.dialog.confirmDelete();
|
const dialogResult = await window.$gz.dialog.confirmDelete();
|
||||||
if (dialogResult != true) {
|
if (dialogResult != true) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: true
|
loading: true
|
||||||
});
|
});
|
||||||
if (vm.$route.params.recordid == 0) {
|
if (this.$route.params.recordid == 0) {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
} else {
|
} else {
|
||||||
window.$gz.form.deleteAllErrorBoxErrors(vm);
|
window.$gz.form.deleteAllErrorBoxErrors(this);
|
||||||
const res = await window.$gz.api.remove(
|
const res = await window.$gz.api.remove(
|
||||||
API_BASE_URL + vm.$route.params.recordid
|
API_BASE_URL + this.$route.params.recordid
|
||||||
);
|
);
|
||||||
if (res.error) {
|
if (res.error) {
|
||||||
vm.formState.serverError = res.error;
|
this.formState.serverError = res.error;
|
||||||
window.$gz.form.setErrorBoxErrors(vm);
|
window.$gz.form.setErrorBoxErrors(this);
|
||||||
} else {
|
} else {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
window.$gz.errorHandler.handleFormError(error, this);
|
||||||
|
} finally {
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: false
|
loading: false
|
||||||
});
|
});
|
||||||
window.$gz.errorHandler.handleFormError(error, vm);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
duplicate() {
|
duplicate() {
|
||||||
|
|||||||
@@ -536,38 +536,38 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async remove() {
|
async remove() {
|
||||||
const vm = this;
|
|
||||||
try {
|
try {
|
||||||
const dialogResult = await window.$gz.dialog.confirmDelete();
|
const dialogResult = await window.$gz.dialog.confirmDelete();
|
||||||
if (dialogResult != true) {
|
if (dialogResult != true) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: true
|
loading: true
|
||||||
});
|
});
|
||||||
if (vm.$route.params.recordid == 0) {
|
if (this.$route.params.recordid == 0) {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
} else {
|
} else {
|
||||||
window.$gz.form.deleteAllErrorBoxErrors(vm);
|
window.$gz.form.deleteAllErrorBoxErrors(this);
|
||||||
const res = await window.$gz.api.remove(
|
const res = await window.$gz.api.remove(
|
||||||
API_BASE_URL + vm.$route.params.recordid
|
API_BASE_URL + this.$route.params.recordid
|
||||||
);
|
);
|
||||||
if (res.error) {
|
if (res.error) {
|
||||||
vm.formState.serverError = res.error;
|
this.formState.serverError = res.error;
|
||||||
window.$gz.form.setErrorBoxErrors(vm);
|
window.$gz.form.setErrorBoxErrors(this);
|
||||||
} else {
|
} else {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
window.$gz.errorHandler.handleFormError(error, this);
|
||||||
|
} finally {
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: false
|
loading: false
|
||||||
});
|
});
|
||||||
window.$gz.errorHandler.handleFormError(error, vm);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
duplicate() {
|
duplicate() {
|
||||||
|
|||||||
@@ -1663,39 +1663,39 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async remove() {
|
async remove() {
|
||||||
const vm = this;
|
|
||||||
try {
|
try {
|
||||||
const dialogResult = await window.$gz.dialog.confirmDelete();
|
const dialogResult = await window.$gz.dialog.confirmDelete();
|
||||||
if (dialogResult != true) {
|
if (dialogResult != true) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: true
|
loading: true
|
||||||
});
|
});
|
||||||
if (vm.$route.params.recordid == 0) {
|
if (this.$route.params.recordid == 0) {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
|
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
} else {
|
} else {
|
||||||
window.$gz.form.deleteAllErrorBoxErrors(vm);
|
window.$gz.form.deleteAllErrorBoxErrors(this);
|
||||||
const res = await window.$gz.api.remove(
|
const res = await window.$gz.api.remove(
|
||||||
API_BASE_URL + vm.$route.params.recordid
|
API_BASE_URL + this.$route.params.recordid
|
||||||
);
|
);
|
||||||
if (res.error) {
|
if (res.error) {
|
||||||
vm.formState.serverError = res.error;
|
this.formState.serverError = res.error;
|
||||||
window.$gz.form.setErrorBoxErrors(vm);
|
window.$gz.form.setErrorBoxErrors(this);
|
||||||
} else {
|
} else {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
window.$gz.errorHandler.handleFormError(error, this);
|
||||||
|
} finally {
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: false
|
loading: false
|
||||||
});
|
});
|
||||||
window.$gz.errorHandler.handleFormError(error, vm);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
duplicate() {
|
duplicate() {
|
||||||
|
|||||||
@@ -1698,40 +1698,40 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async remove() {
|
async remove() {
|
||||||
const vm = this;
|
|
||||||
try {
|
try {
|
||||||
const dialogResult = await window.$gz.dialog.confirmDelete();
|
const dialogResult = await window.$gz.dialog.confirmDelete();
|
||||||
if (dialogResult != true) {
|
if (dialogResult != true) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: true
|
loading: true
|
||||||
});
|
});
|
||||||
|
|
||||||
if (vm.$route.params.recordid == 0) {
|
if (this.$route.params.recordid == 0) {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
|
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
} else {
|
} else {
|
||||||
window.$gz.form.deleteAllErrorBoxErrors(vm);
|
window.$gz.form.deleteAllErrorBoxErrors(this);
|
||||||
const res = await window.$gz.api.remove(
|
const res = await window.$gz.api.remove(
|
||||||
API_BASE_URL + vm.$route.params.recordid
|
API_BASE_URL + this.$route.params.recordid
|
||||||
);
|
);
|
||||||
if (res.error) {
|
if (res.error) {
|
||||||
vm.formState.serverError = res.error;
|
this.formState.serverError = res.error;
|
||||||
window.$gz.form.setErrorBoxErrors(vm);
|
window.$gz.form.setErrorBoxErrors(this);
|
||||||
} else {
|
} else {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
window.$gz.errorHandler.handleFormError(error, this);
|
||||||
|
} finally {
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: false
|
loading: false
|
||||||
});
|
});
|
||||||
window.$gz.errorHandler.handleFormError(error, vm);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -492,38 +492,38 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async remove() {
|
async remove() {
|
||||||
const vm = this;
|
|
||||||
try {
|
try {
|
||||||
const dialogResult = await window.$gz.dialog.confirmDelete();
|
const dialogResult = await window.$gz.dialog.confirmDelete();
|
||||||
if (dialogResult != true) {
|
if (dialogResult != true) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: true
|
loading: true
|
||||||
});
|
});
|
||||||
if (vm.$route.params.recordid == 0) {
|
if (this.$route.params.recordid == 0) {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
} else {
|
} else {
|
||||||
window.$gz.form.deleteAllErrorBoxErrors(vm);
|
window.$gz.form.deleteAllErrorBoxErrors(this);
|
||||||
const res = await window.$gz.api.remove(
|
const res = await window.$gz.api.remove(
|
||||||
API_BASE_URL + vm.$route.params.recordid
|
API_BASE_URL + this.$route.params.recordid
|
||||||
);
|
);
|
||||||
if (res.error) {
|
if (res.error) {
|
||||||
vm.formState.serverError = res.error;
|
this.formState.serverError = res.error;
|
||||||
window.$gz.form.setErrorBoxErrors(vm);
|
window.$gz.form.setErrorBoxErrors(this);
|
||||||
} else {
|
} else {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
window.$gz.errorHandler.handleFormError(error, this);
|
||||||
|
} finally {
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: false
|
loading: false
|
||||||
});
|
});
|
||||||
window.$gz.errorHandler.handleFormError(error, vm);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async reject() {
|
async reject() {
|
||||||
|
|||||||
@@ -659,38 +659,38 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async remove() {
|
async remove() {
|
||||||
const vm = this;
|
|
||||||
try {
|
try {
|
||||||
const dialogResult = await window.$gz.dialog.confirmDelete();
|
const dialogResult = await window.$gz.dialog.confirmDelete();
|
||||||
if (dialogResult != true) {
|
if (dialogResult != true) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: true
|
loading: true
|
||||||
});
|
});
|
||||||
if (vm.$route.params.recordid == 0) {
|
if (this.$route.params.recordid == 0) {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
} else {
|
} else {
|
||||||
window.$gz.form.deleteAllErrorBoxErrors(vm);
|
window.$gz.form.deleteAllErrorBoxErrors(this);
|
||||||
const res = await window.$gz.api.remove(
|
const res = await window.$gz.api.remove(
|
||||||
API_BASE_URL + vm.$route.params.recordid
|
API_BASE_URL + this.$route.params.recordid
|
||||||
);
|
);
|
||||||
if (res.error) {
|
if (res.error) {
|
||||||
vm.formState.serverError = res.error;
|
this.formState.serverError = res.error;
|
||||||
window.$gz.form.setErrorBoxErrors(vm);
|
window.$gz.form.setErrorBoxErrors(this);
|
||||||
} else {
|
} else {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
window.$gz.errorHandler.handleFormError(error, this);
|
||||||
|
} finally {
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: false
|
loading: false
|
||||||
});
|
});
|
||||||
window.$gz.errorHandler.handleFormError(error, vm);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
duplicate() {
|
duplicate() {
|
||||||
|
|||||||
@@ -523,7 +523,6 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async remove() {
|
async remove() {
|
||||||
const vm = this;
|
|
||||||
try {
|
try {
|
||||||
let dialogResult = await window.$gz.dialog.confirmDelete();
|
let dialogResult = await window.$gz.dialog.confirmDelete();
|
||||||
if (dialogResult != true) {
|
if (dialogResult != true) {
|
||||||
@@ -531,36 +530,37 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: true
|
loading: true
|
||||||
});
|
});
|
||||||
|
|
||||||
if (vm.$route.params.recordid == 0) {
|
if (this.$route.params.recordid == 0) {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
|
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
} else {
|
} else {
|
||||||
let url = API_BASE_URL + vm.$route.params.recordid;
|
let url = API_BASE_URL + this.$route.params.recordid;
|
||||||
|
|
||||||
window.$gz.form.deleteAllErrorBoxErrors(vm);
|
window.$gz.form.deleteAllErrorBoxErrors(this);
|
||||||
let res = await window.$gz.api.remove(url);
|
let res = await window.$gz.api.remove(url);
|
||||||
if (res.error) {
|
if (res.error) {
|
||||||
vm.formState.serverError = res.error;
|
this.formState.serverError = res.error;
|
||||||
window.$gz.form.setErrorBoxErrors(vm);
|
window.$gz.form.setErrorBoxErrors(this);
|
||||||
} else {
|
} else {
|
||||||
//workaround to prevent warning about leaving dirty record
|
//workaround to prevent warning about leaving dirty record
|
||||||
|
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
|
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
window.$gz.errorHandler.handleFormError(error, this);
|
||||||
|
} finally {
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: false
|
loading: false
|
||||||
});
|
});
|
||||||
window.$gz.errorHandler.handleFormError(error, vm);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
duplicateHandler() {
|
duplicateHandler() {
|
||||||
|
|||||||
@@ -399,40 +399,40 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async remove() {
|
async remove() {
|
||||||
const vm = this;
|
|
||||||
try {
|
try {
|
||||||
const dialogResult = await window.$gz.dialog.confirmDelete();
|
const dialogResult = await window.$gz.dialog.confirmDelete();
|
||||||
if (dialogResult != true) {
|
if (dialogResult != true) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: true
|
loading: true
|
||||||
});
|
});
|
||||||
|
|
||||||
if (vm.$route.params.recordid == 0) {
|
if (this.$route.params.recordid == 0) {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
|
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
} else {
|
} else {
|
||||||
window.$gz.form.deleteAllErrorBoxErrors(vm);
|
window.$gz.form.deleteAllErrorBoxErrors(this);
|
||||||
const res = await window.$gz.api.remove(
|
const res = await window.$gz.api.remove(
|
||||||
API_BASE_URL + vm.$route.params.recordid
|
API_BASE_URL + this.$route.params.recordid
|
||||||
);
|
);
|
||||||
if (res.error) {
|
if (res.error) {
|
||||||
vm.formState.serverError = res.error;
|
this.formState.serverError = res.error;
|
||||||
window.$gz.form.setErrorBoxErrors(vm);
|
window.$gz.form.setErrorBoxErrors(this);
|
||||||
} else {
|
} else {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
window.$gz.errorHandler.handleFormError(error, this);
|
||||||
|
} finally {
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: false
|
loading: false
|
||||||
});
|
});
|
||||||
window.$gz.errorHandler.handleFormError(error, vm);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
duplicate() {
|
duplicate() {
|
||||||
|
|||||||
@@ -334,40 +334,40 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async remove() {
|
async remove() {
|
||||||
const vm = this;
|
|
||||||
try {
|
try {
|
||||||
const dialogResult = await window.$gz.dialog.confirmDelete();
|
const dialogResult = await window.$gz.dialog.confirmDelete();
|
||||||
if (dialogResult != true) {
|
if (dialogResult != true) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: true
|
loading: true
|
||||||
});
|
});
|
||||||
|
|
||||||
if (vm.$route.params.recordid == 0) {
|
if (this.$route.params.recordid == 0) {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
|
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
} else {
|
} else {
|
||||||
window.$gz.form.deleteAllErrorBoxErrors(vm);
|
window.$gz.form.deleteAllErrorBoxErrors(this);
|
||||||
const res = await window.$gz.api.remove(
|
const res = await window.$gz.api.remove(
|
||||||
API_BASE_URL + vm.$route.params.recordid
|
API_BASE_URL + this.$route.params.recordid
|
||||||
);
|
);
|
||||||
if (res.error) {
|
if (res.error) {
|
||||||
vm.formState.serverError = res.error;
|
this.formState.serverError = res.error;
|
||||||
window.$gz.form.setErrorBoxErrors(vm);
|
window.$gz.form.setErrorBoxErrors(this);
|
||||||
} else {
|
} else {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
window.$gz.errorHandler.handleFormError(error, this);
|
||||||
|
} finally {
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: false
|
loading: false
|
||||||
});
|
});
|
||||||
window.$gz.errorHandler.handleFormError(error, vm);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -555,7 +555,6 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async remove() {
|
async remove() {
|
||||||
const vm = this;
|
|
||||||
try {
|
try {
|
||||||
const dialogResult = await window.$gz.dialog.confirmDelete();
|
const dialogResult = await window.$gz.dialog.confirmDelete();
|
||||||
if (dialogResult != true) {
|
if (dialogResult != true) {
|
||||||
@@ -563,33 +562,34 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: true
|
loading: true
|
||||||
});
|
});
|
||||||
|
|
||||||
if (vm.$route.params.recordid == 0) {
|
if (this.$route.params.recordid == 0) {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
|
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
} else {
|
} else {
|
||||||
window.$gz.form.deleteAllErrorBoxErrors(vm);
|
window.$gz.form.deleteAllErrorBoxErrors(this);
|
||||||
const res = await window.$gz.api.remove(
|
const res = await window.$gz.api.remove(
|
||||||
API_BASE_URL + vm.$route.params.recordid
|
API_BASE_URL + this.$route.params.recordid
|
||||||
);
|
);
|
||||||
if (res.error) {
|
if (res.error) {
|
||||||
vm.formState.serverError = res.error;
|
this.formState.serverError = res.error;
|
||||||
window.$gz.form.setErrorBoxErrors(vm);
|
window.$gz.form.setErrorBoxErrors(this);
|
||||||
} else {
|
} else {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
window.$gz.errorHandler.handleFormError(error, this);
|
||||||
|
} finally {
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: false
|
loading: false
|
||||||
});
|
});
|
||||||
window.$gz.errorHandler.handleFormError(error, vm);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
duplicateHandler() {
|
duplicateHandler() {
|
||||||
|
|||||||
@@ -461,7 +461,6 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async remove() {
|
async remove() {
|
||||||
const vm = this;
|
|
||||||
try {
|
try {
|
||||||
const dialogResult = await window.$gz.dialog.confirmDelete();
|
const dialogResult = await window.$gz.dialog.confirmDelete();
|
||||||
if (dialogResult != true) {
|
if (dialogResult != true) {
|
||||||
@@ -469,33 +468,34 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: true
|
loading: true
|
||||||
});
|
});
|
||||||
|
|
||||||
if (vm.$route.params.recordid == 0) {
|
if (this.$route.params.recordid == 0) {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
|
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
} else {
|
} else {
|
||||||
window.$gz.form.deleteAllErrorBoxErrors(vm);
|
window.$gz.form.deleteAllErrorBoxErrors(this);
|
||||||
const res = await window.$gz.api.remove(
|
const res = await window.$gz.api.remove(
|
||||||
API_BASE_URL + vm.$route.params.recordid
|
API_BASE_URL + this.$route.params.recordid
|
||||||
);
|
);
|
||||||
if (res.error) {
|
if (res.error) {
|
||||||
vm.formState.serverError = res.error;
|
this.formState.serverError = res.error;
|
||||||
window.$gz.form.setErrorBoxErrors(vm);
|
window.$gz.form.setErrorBoxErrors(this);
|
||||||
} else {
|
} else {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
window.$gz.errorHandler.handleFormError(error, this);
|
||||||
|
} finally {
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: false
|
loading: false
|
||||||
});
|
});
|
||||||
window.$gz.errorHandler.handleFormError(error, vm);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -488,39 +488,39 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async remove() {
|
async remove() {
|
||||||
const vm = this;
|
|
||||||
try {
|
try {
|
||||||
const dialogResult = await window.$gz.dialog.confirmDelete();
|
const dialogResult = await window.$gz.dialog.confirmDelete();
|
||||||
if (dialogResult != true) {
|
if (dialogResult != true) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: true
|
loading: true
|
||||||
});
|
});
|
||||||
if (vm.$route.params.recordid == 0) {
|
if (this.$route.params.recordid == 0) {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
|
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
} else {
|
} else {
|
||||||
window.$gz.form.deleteAllErrorBoxErrors(vm);
|
window.$gz.form.deleteAllErrorBoxErrors(this);
|
||||||
const res = await window.$gz.api.remove(
|
const res = await window.$gz.api.remove(
|
||||||
API_BASE_URL + vm.$route.params.recordid
|
API_BASE_URL + this.$route.params.recordid
|
||||||
);
|
);
|
||||||
if (res.error) {
|
if (res.error) {
|
||||||
vm.formState.serverError = res.error;
|
this.formState.serverError = res.error;
|
||||||
window.$gz.form.setErrorBoxErrors(vm);
|
window.$gz.form.setErrorBoxErrors(this);
|
||||||
} else {
|
} else {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
window.$gz.errorHandler.handleFormError(error, this);
|
||||||
|
} finally {
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: false
|
loading: false
|
||||||
});
|
});
|
||||||
window.$gz.errorHandler.handleFormError(error, vm);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
duplicate() {
|
duplicate() {
|
||||||
|
|||||||
@@ -1021,40 +1021,40 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async remove() {
|
async remove() {
|
||||||
const vm = this;
|
|
||||||
try {
|
try {
|
||||||
const dialogResult = await window.$gz.dialog.confirmDelete();
|
const dialogResult = await window.$gz.dialog.confirmDelete();
|
||||||
if (dialogResult != true) {
|
if (dialogResult != true) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: true
|
loading: true
|
||||||
});
|
});
|
||||||
|
|
||||||
if (vm.$route.params.recordid == 0) {
|
if (this.$route.params.recordid == 0) {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
|
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
} else {
|
} else {
|
||||||
window.$gz.form.deleteAllErrorBoxErrors(vm);
|
window.$gz.form.deleteAllErrorBoxErrors(this);
|
||||||
const res = await window.$gz.api.remove(
|
const res = await window.$gz.api.remove(
|
||||||
API_BASE_URL + vm.$route.params.recordid
|
API_BASE_URL + this.$route.params.recordid
|
||||||
);
|
);
|
||||||
if (res.error) {
|
if (res.error) {
|
||||||
vm.formState.serverError = res.error;
|
this.formState.serverError = res.error;
|
||||||
window.$gz.form.setErrorBoxErrors(vm);
|
window.$gz.form.setErrorBoxErrors(this);
|
||||||
} else {
|
} else {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
window.$gz.errorHandler.handleFormError(error, this);
|
||||||
|
} finally {
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: false
|
loading: false
|
||||||
});
|
});
|
||||||
window.$gz.errorHandler.handleFormError(error, vm);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
duplicate() {
|
duplicate() {
|
||||||
|
|||||||
@@ -277,7 +277,6 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async remove() {
|
async remove() {
|
||||||
const vm = this;
|
|
||||||
try {
|
try {
|
||||||
const dialogResult = await window.$gz.dialog.confirmDelete();
|
const dialogResult = await window.$gz.dialog.confirmDelete();
|
||||||
if (dialogResult != true) {
|
if (dialogResult != true) {
|
||||||
@@ -285,34 +284,34 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: true
|
loading: true
|
||||||
});
|
});
|
||||||
|
|
||||||
if (vm.$route.params.recordid == 0) {
|
if (this.$route.params.recordid == 0) {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
|
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
} else {
|
} else {
|
||||||
window.$gz.form.deleteAllErrorBoxErrors(vm);
|
window.$gz.form.deleteAllErrorBoxErrors(this);
|
||||||
const res = await window.$gz.api.remove(
|
const res = await window.$gz.api.remove(
|
||||||
API_BASE_URL + vm.$route.params.recordid
|
API_BASE_URL + this.$route.params.recordid
|
||||||
);
|
);
|
||||||
if (res.error) {
|
if (res.error) {
|
||||||
vm.formState.serverError = res.error;
|
this.formState.serverError = res.error;
|
||||||
window.$gz.form.setErrorBoxErrors(vm);
|
window.$gz.form.setErrorBoxErrors(this);
|
||||||
} else {
|
} else {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
//Update the form priority
|
window.$gz.errorHandler.handleFormError(error, this);
|
||||||
|
} finally {
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: false
|
loading: false
|
||||||
});
|
});
|
||||||
window.$gz.errorHandler.handleFormError(error, vm);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -291,38 +291,38 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async remove() {
|
async remove() {
|
||||||
const vm = this;
|
|
||||||
try {
|
try {
|
||||||
const dialogResult = await window.$gz.dialog.confirmDelete();
|
const dialogResult = await window.$gz.dialog.confirmDelete();
|
||||||
if (dialogResult != true) {
|
if (dialogResult != true) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: true
|
loading: true
|
||||||
});
|
});
|
||||||
if (vm.$route.params.recordid == 0) {
|
if (this.$route.params.recordid == 0) {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
} else {
|
} else {
|
||||||
window.$gz.form.deleteAllErrorBoxErrors(vm);
|
window.$gz.form.deleteAllErrorBoxErrors(this);
|
||||||
const res = await window.$gz.api.remove(
|
const res = await window.$gz.api.remove(
|
||||||
API_BASE_URL + vm.$route.params.recordid
|
API_BASE_URL + this.$route.params.recordid
|
||||||
);
|
);
|
||||||
if (res.error) {
|
if (res.error) {
|
||||||
vm.formState.serverError = res.error;
|
this.formState.serverError = res.error;
|
||||||
window.$gz.form.setErrorBoxErrors(vm);
|
window.$gz.form.setErrorBoxErrors(this);
|
||||||
} else {
|
} else {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
window.$gz.errorHandler.handleFormError(error, this);
|
||||||
|
} finally {
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: false
|
loading: false
|
||||||
});
|
});
|
||||||
window.$gz.errorHandler.handleFormError(error, vm);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -334,39 +334,39 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async remove() {
|
async remove() {
|
||||||
const vm = this;
|
|
||||||
try {
|
try {
|
||||||
const dialogResult = await window.$gz.dialog.confirmDelete();
|
const dialogResult = await window.$gz.dialog.confirmDelete();
|
||||||
if (dialogResult != true) {
|
if (dialogResult != true) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: true
|
loading: true
|
||||||
});
|
});
|
||||||
if (vm.$route.params.recordid == 0) {
|
if (this.$route.params.recordid == 0) {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
|
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
} else {
|
} else {
|
||||||
window.$gz.form.deleteAllErrorBoxErrors(vm);
|
window.$gz.form.deleteAllErrorBoxErrors(this);
|
||||||
const res = await window.$gz.api.remove(
|
const res = await window.$gz.api.remove(
|
||||||
API_BASE_URL + vm.$route.params.recordid
|
API_BASE_URL + this.$route.params.recordid
|
||||||
);
|
);
|
||||||
if (res.error) {
|
if (res.error) {
|
||||||
vm.formState.serverError = res.error;
|
this.formState.serverError = res.error;
|
||||||
window.$gz.form.setErrorBoxErrors(vm);
|
window.$gz.form.setErrorBoxErrors(this);
|
||||||
} else {
|
} else {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
window.$gz.errorHandler.handleFormError(error, this);
|
||||||
|
} finally {
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: false
|
loading: false
|
||||||
});
|
});
|
||||||
window.$gz.errorHandler.handleFormError(error, vm);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -632,7 +632,6 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async remove() {
|
async remove() {
|
||||||
const vm = this;
|
|
||||||
try {
|
try {
|
||||||
const dialogResult = await window.$gz.dialog.confirmDelete();
|
const dialogResult = await window.$gz.dialog.confirmDelete();
|
||||||
if (dialogResult != true) {
|
if (dialogResult != true) {
|
||||||
@@ -640,33 +639,34 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: true
|
loading: true
|
||||||
});
|
});
|
||||||
|
|
||||||
if (vm.$route.params.recordid == 0) {
|
if (this.$route.params.recordid == 0) {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
|
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
} else {
|
} else {
|
||||||
window.$gz.form.deleteAllErrorBoxErrors(vm);
|
window.$gz.form.deleteAllErrorBoxErrors(this);
|
||||||
const res = await window.$gz.api.remove(
|
const res = await window.$gz.api.remove(
|
||||||
API_BASE_URL + vm.$route.params.recordid
|
API_BASE_URL + this.$route.params.recordid
|
||||||
);
|
);
|
||||||
if (res.error) {
|
if (res.error) {
|
||||||
vm.formState.serverError = res.error;
|
this.formState.serverError = res.error;
|
||||||
window.$gz.form.setErrorBoxErrors(vm);
|
window.$gz.form.setErrorBoxErrors(this);
|
||||||
} else {
|
} else {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
window.$gz.errorHandler.handleFormError(error, this);
|
||||||
|
} finally {
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: false
|
loading: false
|
||||||
});
|
});
|
||||||
window.$gz.errorHandler.handleFormError(error, vm);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
duplicateHandler() {
|
duplicateHandler() {
|
||||||
|
|||||||
@@ -822,40 +822,40 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async remove() {
|
async remove() {
|
||||||
const vm = this;
|
|
||||||
try {
|
try {
|
||||||
const dialogResult = await window.$gz.dialog.confirmDelete();
|
const dialogResult = await window.$gz.dialog.confirmDelete();
|
||||||
if (dialogResult != true) {
|
if (dialogResult != true) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: true
|
loading: true
|
||||||
});
|
});
|
||||||
|
|
||||||
if (vm.$route.params.recordid == 0) {
|
if (this.$route.params.recordid == 0) {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
|
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
} else {
|
} else {
|
||||||
window.$gz.form.deleteAllErrorBoxErrors(vm);
|
window.$gz.form.deleteAllErrorBoxErrors(this);
|
||||||
const res = await window.$gz.api.remove(
|
const res = await window.$gz.api.remove(
|
||||||
API_BASE_URL + vm.$route.params.recordid
|
API_BASE_URL + this.$route.params.recordid
|
||||||
);
|
);
|
||||||
if (res.error) {
|
if (res.error) {
|
||||||
vm.formState.serverError = res.error;
|
this.formState.serverError = res.error;
|
||||||
window.$gz.form.setErrorBoxErrors(vm);
|
window.$gz.form.setErrorBoxErrors(this);
|
||||||
} else {
|
} else {
|
||||||
JUST_DELETED = true;
|
JUST_DELETED = true;
|
||||||
vm.$router.go(-1);
|
this.$router.go(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
window.$gz.errorHandler.handleFormError(error, this);
|
||||||
|
} finally {
|
||||||
window.$gz.form.setFormState({
|
window.$gz.form.setFormState({
|
||||||
vm: vm,
|
vm: this,
|
||||||
loading: false
|
loading: false
|
||||||
});
|
});
|
||||||
window.$gz.errorHandler.handleFormError(error, vm);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
duplicate() {
|
duplicate() {
|
||||||
|
|||||||
Reference in New Issue
Block a user