This commit is contained in:
2021-02-10 15:53:45 +00:00
parent 6198714184
commit aa5a952aa4
90 changed files with 478 additions and 477 deletions

View File

@@ -2,14 +2,14 @@
<div>
<gz-report-selector ref="reportSelector"></gz-report-selector>
<div v-if="formState.ready">
<gz-error :errorBoxMessage="formState.errorBoxMessage"></gz-error>
<gz-error :error-box-message="formState.errorBoxMessage"></gz-error>
<v-form ref="form">
<v-row>
<v-col cols="12" sm="6" lg="4" xl="3">
<gz-pick-list
:ayaType="ayaTypes().Customer"
:showEditIcon="true"
:includeInactive="true"
:aya-type="ayaTypes().Customer"
:show-edit-icon="true"
:include-inactive="true"
v-model="obj.customerId"
readonly
:label="$ay.t('Customer')"
@@ -44,7 +44,7 @@
v-model="obj.dateRequested"
readonly
ref="dateRequested"
testId="dateRequested"
test-id="dateRequested"
></gz-date-picker>
</v-col>
<v-col cols="12" sm="6" lg="4" xl="3">
@@ -108,9 +108,9 @@
xl="3"
>
<gz-pick-list
:ayaType="ayaTypes().User"
:aya-type="ayaTypes().User"
:variant="'outside'"
:showEditIcon="true"
:show-edit-icon="true"
v-model="obj.requestedByUserId"
:readonly="formState.readOnly"
:label="$ay.t('CustomerServiceRequestRequestedBy')"
@@ -129,9 +129,9 @@
xl="3"
>
<gz-pick-list
:ayaType="ayaTypes().Unit"
:aya-type="ayaTypes().Unit"
:variant="'customerid:' + obj.customerId"
:showEditIcon="true"
:show-edit-icon="true"
v-model="obj.unitId"
:readonly="formState.readOnly"
:label="$ay.t('CustomerServiceRequestItemUnitID')"
@@ -173,9 +173,9 @@
<v-col cols="12">
<gz-custom-fields
v-model="obj.customFields"
:formKey="formCustomTemplateKey"
:form-key="formCustomTemplateKey"
:readonly="formState.readOnly"
:parentVM="this"
:parent-v-m="this"
ref="customFields"
data-cy="customFields"
:error-messages="form().serverErrors(this, 'customFields')"
@@ -185,8 +185,8 @@
<v-col v-if="form().showMe(this, 'Wiki')" cols="12">
<gz-wiki
:ayaType="ayaType"
:ayaId="obj.id"
:aya-type="ayaType"
:aya-id="obj.id"
ref="wiki"
v-model="obj.wiki"
:readonly="formState.readOnly"
@@ -197,8 +197,8 @@
<v-col v-if="form().showMe(this, 'Attachments') && obj.id" cols="12">
<gz-attachments
:readonly="formState.readOnly"
:ayaType="ayaType"
:ayaId="obj.id"
:aya-type="ayaType"
:aya-id="obj.id"
></gz-attachments
></v-col>
</v-row>
@@ -214,9 +214,9 @@
<v-card-text>
<!-- //MIGRATE_OUTSTANDING awaiting workorder pick list, also this should be json variant data -->
<gz-pick-list
:ayaType="ayaTypes().WorkOrder"
:aya-type="ayaTypes().WorkOrder"
:variant="'customerid:' + obj.customerId"
:showEditIcon="false"
:show-edit-icon="false"
v-model="selectedWOId"
:label="$ay.t('WorkOrder')"
></gz-pick-list>