This commit is contained in:
@@ -189,6 +189,7 @@ export default {
|
||||
uniqueItems.sort();
|
||||
this.obj = uniqueItems;
|
||||
this.formState.dirty = true;
|
||||
this.newSerial = null;
|
||||
},
|
||||
ayaTypes: function() {
|
||||
return window.$gz.type;
|
||||
@@ -259,11 +260,12 @@ export default {
|
||||
vm: vm,
|
||||
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
|
||||
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) {
|
||||
vm.formState.serverError = res.error;
|
||||
|
||||
Reference in New Issue
Block a user