This commit is contained in:
@@ -98,7 +98,8 @@ export default {
|
|||||||
Review: 61,
|
Review: 61,
|
||||||
ServiceRate: 62,
|
ServiceRate: 62,
|
||||||
TravelRate: 63,
|
TravelRate: 63,
|
||||||
TaxCode: 64
|
TaxCode: 64,
|
||||||
|
PartAssembly: 65
|
||||||
};
|
};
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -237,6 +237,12 @@ export default {
|
|||||||
params: { recordid: tid.id }
|
params: { recordid: tid.id }
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
case ayatype.PartAssembly:
|
||||||
|
vm.$router.push({
|
||||||
|
name: "part-assembly-edit",
|
||||||
|
params: { recordid: tid.id }
|
||||||
|
});
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
window.$gz.eventBus.$emit(
|
window.$gz.eventBus.$emit(
|
||||||
|
|||||||
@@ -397,7 +397,7 @@ export default new Router({
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/inv-part-assemblies/:recordid",
|
path: "/inv-part-assemblies/:recordid",
|
||||||
name: "inv-part-assembly-edit",
|
name: "part-assembly-edit",
|
||||||
component: () =>
|
component: () =>
|
||||||
import(/* webpackChunkName: "inv" */ "./views/inv-part-assembly.vue")
|
import(/* webpackChunkName: "inv" */ "./views/inv-part-assembly.vue")
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -17,86 +17,7 @@
|
|||||||
@input="fieldValueChanged('name')"
|
@input="fieldValueChanged('name')"
|
||||||
></v-text-field>
|
></v-text-field>
|
||||||
</v-col>
|
</v-col>
|
||||||
|
{{ obj.items }}
|
||||||
<v-col
|
|
||||||
v-if="form().showMe(this, 'PartAssemblyAccountNumber')"
|
|
||||||
cols="12"
|
|
||||||
sm="6"
|
|
||||||
lg="4"
|
|
||||||
xl="3"
|
|
||||||
>
|
|
||||||
<v-text-field
|
|
||||||
v-model="obj.accountNumber"
|
|
||||||
:readonly="formState.readOnly"
|
|
||||||
:label="$ay.t('PartAssemblyAccountNumber')"
|
|
||||||
ref="accountNumber"
|
|
||||||
data-cy="accountNumber"
|
|
||||||
:error-messages="form().serverErrors(this, 'accountNumber')"
|
|
||||||
@input="fieldValueChanged('accountNumber')"
|
|
||||||
></v-text-field>
|
|
||||||
</v-col>
|
|
||||||
|
|
||||||
<v-col
|
|
||||||
v-if="form().showMe(this, 'PartAssemblyPartAssemblyOverseerID')"
|
|
||||||
cols="12"
|
|
||||||
sm="6"
|
|
||||||
lg="4"
|
|
||||||
xl="3"
|
|
||||||
>
|
|
||||||
<gz-pick-list
|
|
||||||
:ayaType="ayaTypes().User"
|
|
||||||
:variant="'inside'"
|
|
||||||
:showEditIcon="true"
|
|
||||||
v-model="obj.partassemblyOverseerId"
|
|
||||||
:readonly="formState.readOnly"
|
|
||||||
:label="$ay.t('PartAssemblyPartAssemblyOverseerID')"
|
|
||||||
ref="partassemblyOverseerId"
|
|
||||||
data-cy="partassemblyOverseerId"
|
|
||||||
:error-messages="
|
|
||||||
form().serverErrors(this, 'partassemblyOverseerId')
|
|
||||||
"
|
|
||||||
@input="fieldValueChanged('partassemblyOverseerId')"
|
|
||||||
></gz-pick-list>
|
|
||||||
</v-col>
|
|
||||||
|
|
||||||
<v-col
|
|
||||||
v-if="form().showMe(this, 'PartAssemblyDateStarted')"
|
|
||||||
cols="12"
|
|
||||||
sm="6"
|
|
||||||
lg="4"
|
|
||||||
xl="3"
|
|
||||||
>
|
|
||||||
<gz-date-time-picker
|
|
||||||
:label="$ay.t('PartAssemblyDateStarted')"
|
|
||||||
v-model="obj.dateStarted"
|
|
||||||
:readonly="formState.readOnly"
|
|
||||||
ref="dateStarted"
|
|
||||||
testId="dateStarted"
|
|
||||||
:error-messages="form().serverErrors(this, 'dateStarted')"
|
|
||||||
@input="fieldValueChanged('dateStarted')"
|
|
||||||
></gz-date-time-picker>
|
|
||||||
</v-col>
|
|
||||||
|
|
||||||
<v-col
|
|
||||||
v-if="form().showMe(this, 'PartAssemblyDateCompleted')"
|
|
||||||
cols="12"
|
|
||||||
sm="6"
|
|
||||||
lg="4"
|
|
||||||
xl="3"
|
|
||||||
>
|
|
||||||
<gz-date-time-picker
|
|
||||||
:label="$ay.t('PartAssemblyDateCompleted')"
|
|
||||||
:rules="[
|
|
||||||
form().datePrecedence(this, 'dateStarted', 'dateCompleted')
|
|
||||||
]"
|
|
||||||
:error-messages="form().serverErrors(this, 'dateCompleted')"
|
|
||||||
v-model="obj.dateCompleted"
|
|
||||||
:readonly="formState.readOnly"
|
|
||||||
ref="dateCompleted"
|
|
||||||
testId="dateCompleted"
|
|
||||||
@input="fieldValueChanged('dateCompleted')"
|
|
||||||
></gz-date-time-picker>
|
|
||||||
</v-col>
|
|
||||||
<v-col cols="12" sm="6" lg="4" xl="3">
|
<v-col cols="12" sm="6" lg="4" xl="3">
|
||||||
<v-checkbox
|
<v-checkbox
|
||||||
v-model="obj.active"
|
v-model="obj.active"
|
||||||
@@ -184,7 +105,7 @@
|
|||||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
const FORM_KEY = "partassembly-edit";
|
const FORM_KEY = "partassembly-edit";
|
||||||
const API_BASE_URL = "partassembly/";
|
const API_BASE_URL = "part-assembly/";
|
||||||
const FORM_CUSTOM_TEMPLATE_KEY = "PartAssembly"; //<-- Should always be CoreBizObject AyaType name here where possible
|
const FORM_CUSTOM_TEMPLATE_KEY = "PartAssembly"; //<-- Should always be CoreBizObject AyaType name here where possible
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@@ -247,6 +168,52 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
formCustomTemplateKey: FORM_CUSTOM_TEMPLATE_KEY,
|
formCustomTemplateKey: FORM_CUSTOM_TEMPLATE_KEY,
|
||||||
|
/*
|
||||||
|
{
|
||||||
|
"data": {
|
||||||
|
"id": 2,
|
||||||
|
"concurrency": 4644405,
|
||||||
|
"name": "asm2662",
|
||||||
|
"active": true,
|
||||||
|
"notes": "Vel error explicabo facilis nemo.",
|
||||||
|
"wiki": null,
|
||||||
|
"customFields": null,
|
||||||
|
"tags": [
|
||||||
|
"silver",
|
||||||
|
"white",
|
||||||
|
"xanthic",
|
||||||
|
"zone2",
|
||||||
|
"zone5"
|
||||||
|
],
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"id": 5,
|
||||||
|
"concurrency": 4644405,
|
||||||
|
"partAssemblyId": 2,
|
||||||
|
"partId": 319
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 6,
|
||||||
|
"concurrency": 4644405,
|
||||||
|
"partAssemblyId": 2,
|
||||||
|
"partId": 25
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 7,
|
||||||
|
"concurrency": 4644405,
|
||||||
|
"partAssemblyId": 2,
|
||||||
|
"partId": 267
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 8,
|
||||||
|
"concurrency": 4644405,
|
||||||
|
"partAssemblyId": 2,
|
||||||
|
"partId": 213
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
*/
|
||||||
obj:
|
obj:
|
||||||
//IMPORTANT NOTE: Fields that are NON NULLABLE in the schema for the table but *are* hideable **MUST** have a default value set here or else there will be no way to save the record
|
//IMPORTANT NOTE: Fields that are NON NULLABLE in the schema for the table but *are* hideable **MUST** have a default value set here or else there will be no way to save the record
|
||||||
//I.E. Serial, usertype fields, ACTIVE
|
//I.E. Serial, usertype fields, ACTIVE
|
||||||
@@ -260,10 +227,7 @@ export default {
|
|||||||
wiki: null,
|
wiki: null,
|
||||||
customFields: "{}",
|
customFields: "{}",
|
||||||
tags: [],
|
tags: [],
|
||||||
dateStarted: window.$gz.locale.nowUTC8601String(),
|
items: []
|
||||||
dateCompleted: null,
|
|
||||||
partassemblyOverseerId: null,
|
|
||||||
accountNumber: null
|
|
||||||
},
|
},
|
||||||
formState: {
|
formState: {
|
||||||
ready: false,
|
ready: false,
|
||||||
@@ -710,10 +674,7 @@ async function fetchTranslatedText(vm) {
|
|||||||
"PartAssembly",
|
"PartAssembly",
|
||||||
"PartAssemblyName",
|
"PartAssemblyName",
|
||||||
"PartAssemblyNotes",
|
"PartAssemblyNotes",
|
||||||
"PartAssemblyAccountNumber",
|
"PartList",
|
||||||
"PartAssemblyPartAssemblyOverseerID",
|
|
||||||
"PartAssemblyDateStarted",
|
|
||||||
"PartAssemblyDateCompleted",
|
|
||||||
"PartAssemblyCustom1",
|
"PartAssemblyCustom1",
|
||||||
"PartAssemblyCustom2",
|
"PartAssemblyCustom2",
|
||||||
"PartAssemblyCustom3",
|
"PartAssemblyCustom3",
|
||||||
|
|||||||
Reference in New Issue
Block a user