This commit is contained in:
@@ -61,13 +61,6 @@ Coded by importance
|
|||||||
|
|
||||||
## CLIENT MISC ITEMS
|
## CLIENT MISC ITEMS
|
||||||
|
|
||||||
todo: 1 inventory transactions show untranslated text in source column
|
|
||||||
also possibly attachments
|
|
||||||
This is an ongoing problem, maybe the report data code at server can do translations if it knows the language in advance and that a column will need translations
|
|
||||||
this would be helpful in many cases, though I didnt want any presentation code in server it keeps creeping in but judicious use of this may be what is required here
|
|
||||||
Or, the data table precaches any translations as in intermediate step BEFORE it actually does the regular list pre-processing so that it doesn't need to be async in there but rather in the getdata area??
|
|
||||||
|
|
||||||
|
|
||||||
-1 case 3864 Joyce misc item - part unit of measure auto suggest
|
-1 case 3864 Joyce misc item - part unit of measure auto suggest
|
||||||
You changed this which is great! -> Unit Charge (for labor and travel Rates) - now offers auto-suggest from prior entries to save typing.
|
You changed this which is great! -> Unit Charge (for labor and travel Rates) - now offers auto-suggest from prior entries to save typing.
|
||||||
************************************************************* OUTSTANDING ISSUE ****************************************************************
|
************************************************************* OUTSTANDING ISSUE ****************************************************************
|
||||||
|
|||||||
@@ -296,9 +296,9 @@ export default {
|
|||||||
dirty: true
|
dirty: true
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
filteredItems() {
|
// filteredItems() {
|
||||||
return this.obj.translationItems;
|
// return this.obj.translationItems;//I don't think anything is calling this
|
||||||
},
|
// },
|
||||||
canDuplicate: function() {
|
canDuplicate: function() {
|
||||||
return this.formState.valid && !this.formState.dirty && vm.rights.change;
|
return this.formState.valid && !this.formState.dirty && vm.rights.change;
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -68,7 +68,7 @@
|
|||||||
></gz-currency>
|
></gz-currency>
|
||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
<v-col
|
<!-- <v-col
|
||||||
v-if="form().showMe(this, 'UnitOfMeasure')"
|
v-if="form().showMe(this, 'UnitOfMeasure')"
|
||||||
cols="12"
|
cols="12"
|
||||||
sm="6"
|
sm="6"
|
||||||
@@ -84,6 +84,25 @@
|
|||||||
:error-messages="form().serverErrors(this, 'unitOfMeasure')"
|
:error-messages="form().serverErrors(this, 'unitOfMeasure')"
|
||||||
@input="fieldValueChanged('unitOfMeasure')"
|
@input="fieldValueChanged('unitOfMeasure')"
|
||||||
></v-text-field>
|
></v-text-field>
|
||||||
|
</v-col> -->
|
||||||
|
|
||||||
|
<v-col
|
||||||
|
v-if="form().showMe(this, 'UnitOfMeasure')"
|
||||||
|
cols="12"
|
||||||
|
sm="6"
|
||||||
|
lg="4"
|
||||||
|
xl="3"
|
||||||
|
>
|
||||||
|
<v-combobox
|
||||||
|
v-model="obj.unitOfMeasure"
|
||||||
|
:readonly="formState.readOnly"
|
||||||
|
:label="$ay.t('UnitOfMeasure')"
|
||||||
|
ref="unitOfMeasure"
|
||||||
|
data-cy="unitOfMeasure"
|
||||||
|
:error-messages="form().serverErrors(this, 'unitOfMeasure')"
|
||||||
|
@input="fieldValueChanged('unitOfMeasure')"
|
||||||
|
:items="selectLists.priorUnits"
|
||||||
|
></v-combobox>
|
||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
<v-col
|
<v-col
|
||||||
@@ -412,7 +431,10 @@ export default {
|
|||||||
serverError: {}
|
serverError: {}
|
||||||
},
|
},
|
||||||
rights: window.$gz.role.defaultRightsObject(),
|
rights: window.$gz.role.defaultRightsObject(),
|
||||||
ayaType: window.$gz.type.Part
|
ayaType: window.$gz.type.Part,
|
||||||
|
selectLists: {
|
||||||
|
priorUnits: []
|
||||||
|
}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
//WATCHERS
|
//WATCHERS
|
||||||
@@ -919,10 +941,24 @@ let JUST_DELETED = false;
|
|||||||
//
|
//
|
||||||
//
|
//
|
||||||
async function initForm(vm) {
|
async function initForm(vm) {
|
||||||
|
await populateSelectionLists(vm);
|
||||||
await fetchTranslatedText(vm);
|
await fetchTranslatedText(vm);
|
||||||
await window.$gz.formCustomTemplate.get(FORM_CUSTOM_TEMPLATE_KEY, vm);
|
await window.$gz.formCustomTemplate.get(FORM_CUSTOM_TEMPLATE_KEY, vm);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//////////////////////
|
||||||
|
//
|
||||||
|
//
|
||||||
|
async function populateSelectionLists(vm) {
|
||||||
|
let res = await window.$gz.api.get("part/prior-unit-of-measure-list");
|
||||||
|
if (res.error) {
|
||||||
|
vm.formState.serverError = res.error;
|
||||||
|
window.$gz.form.setErrorBoxErrors(vm);
|
||||||
|
} else {
|
||||||
|
vm.selectLists.priorUnits = res.data;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// Ensures UI translated text is available
|
// Ensures UI translated text is available
|
||||||
|
|||||||
Reference in New Issue
Block a user