This commit is contained in:
2021-01-08 20:17:46 +00:00
parent 88b48d905d
commit c26b54a76e
2 changed files with 4 additions and 5 deletions

View File

@@ -96,7 +96,6 @@ CURRENTLY DOING:
Front inside form Front inside form
needs acceptnew, reject, acceptexisting working and fleshed out needs acceptnew, reject, acceptexisting working and fleshed out
needs restrictions on field edits and readonly once accepted or not open anyway needs restrictions on field edits and readonly once accepted or not open anyway
needs top read only Client:ssss, Created:xxx, Status: xxx section displayed
Needs report print test Needs report print test
TWO UI's one for inside user and one for outside users TWO UI's one for inside user and one for outside users

View File

@@ -479,6 +479,7 @@ export default {
valid: true, valid: true,
loading: false loading: false
}); });
vm.formState.readOnly = !vm.rights.change || vm.obj.status != 0;
} }
} catch (error) { } catch (error) {
window.$gz.errorHandler.handleFormError(error, vm); window.$gz.errorHandler.handleFormError(error, vm);
@@ -662,7 +663,6 @@ export default {
} }
}, },
async accept(toExistingId) { async accept(toExistingId) {
console.log("ACCEPT TO WOID: ", toExistingId);
let vm = this; let vm = this;
if (vm.obj.status != 0 || vm.$route.params.recordid == 0) { if (vm.obj.status != 0 || vm.$route.params.recordid == 0) {
return; return;
@@ -674,7 +674,7 @@ export default {
//get workorder if to existing //get workorder if to existing
let url = API_BASE_URL + "accept/" + vm.$route.params.recordid; let url = `${API_BASE_URL}accept/${vm.$route.params.recordid}/${toExistingId}`;
try { try {
window.$gz.form.deleteAllErrorBoxErrors(vm); window.$gz.form.deleteAllErrorBoxErrors(vm);
@@ -737,7 +737,7 @@ async function clickHandler(menuItem) {
m.vm.woSelectorDialog = true; m.vm.woSelectorDialog = true;
break; break;
case "acceptnew": case "acceptnew":
m.vm.accept(); m.vm.accept(0);
break; break;
case "report": case "report":
if (m.id != null) { if (m.id != null) {