This commit is contained in:
@@ -95,8 +95,7 @@ CURRENTLY DOING:
|
||||
CustomerServiceRequest
|
||||
Front inside form
|
||||
needs acceptnew, reject, acceptexisting working and fleshed out
|
||||
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 restrictions on field edits and readonly once accepted or not open anyway
|
||||
Needs report print test
|
||||
|
||||
TWO UI's one for inside user and one for outside users
|
||||
|
||||
@@ -479,6 +479,7 @@ export default {
|
||||
valid: true,
|
||||
loading: false
|
||||
});
|
||||
vm.formState.readOnly = !vm.rights.change || vm.obj.status != 0;
|
||||
}
|
||||
} catch (error) {
|
||||
window.$gz.errorHandler.handleFormError(error, vm);
|
||||
@@ -662,7 +663,6 @@ export default {
|
||||
}
|
||||
},
|
||||
async accept(toExistingId) {
|
||||
console.log("ACCEPT TO WOID: ", toExistingId);
|
||||
let vm = this;
|
||||
if (vm.obj.status != 0 || vm.$route.params.recordid == 0) {
|
||||
return;
|
||||
@@ -674,7 +674,7 @@ export default {
|
||||
|
||||
//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 {
|
||||
window.$gz.form.deleteAllErrorBoxErrors(vm);
|
||||
@@ -737,7 +737,7 @@ async function clickHandler(menuItem) {
|
||||
m.vm.woSelectorDialog = true;
|
||||
break;
|
||||
case "acceptnew":
|
||||
m.vm.accept();
|
||||
m.vm.accept(0);
|
||||
break;
|
||||
case "report":
|
||||
if (m.id != null) {
|
||||
|
||||
Reference in New Issue
Block a user