This commit is contained in:
2021-01-19 18:39:48 +00:00
parent bb0f7721ad
commit 40f86d1026

View File

@@ -189,6 +189,7 @@ export default {
uniqueItems.sort(); uniqueItems.sort();
this.obj = uniqueItems; this.obj = uniqueItems;
this.formState.dirty = true; this.formState.dirty = true;
this.newSerial = null;
}, },
ayaTypes: function() { ayaTypes: function() {
return window.$gz.type; return window.$gz.type;
@@ -259,11 +260,12 @@ export default {
vm: vm, vm: vm,
loading: true loading: true
}); });
let url = API_BASE_URL; // + vm.$route.params.recordid; // let url = `part/serials/${vm.$route.params.recordid}`;
let url = `part/serials/${vm.$route.params.recordid}`;
//clear any errors vm might be around from previous submit //clear any errors vm might be around from previous submit
window.$gz.form.deleteAllErrorBoxErrors(vm); window.$gz.form.deleteAllErrorBoxErrors(vm);
let res = await window.$gz.api.upsert(url, vm.obj); let res = await window.$gz.api.put(url, vm.obj);
if (res.error) { if (res.error) {
vm.formState.serverError = res.error; vm.formState.serverError = res.error;