This commit is contained in:
@@ -67,193 +67,158 @@
|
|||||||
>{{ $ay.t("Undelete")
|
>{{ $ay.t("Undelete")
|
||||||
}}<v-icon right large>$ayiTrashRestoreAlt</v-icon></v-btn
|
}}<v-icon right large>$ayiTrashRestoreAlt</v-icon></v-btn
|
||||||
>
|
>
|
||||||
|
|
||||||
<v-col
|
<v-col
|
||||||
v-if="form().showMe(this, 'WorkOrderItemUnitStartDate')"
|
v-if="form().showMe(this, 'WorkOrderItemUnit')"
|
||||||
cols="12"
|
cols="12"
|
||||||
sm="6"
|
sm="6"
|
||||||
lg="4"
|
lg="4"
|
||||||
xl="3"
|
xl="3"
|
||||||
>
|
>
|
||||||
<gz-date-time-picker
|
<gz-pick-list
|
||||||
:label="$ay.t('WorkOrderItemUnitStartDate')"
|
:aya-type="$ay.ayt().Unit"
|
||||||
|
:show-edit-icon="true"
|
||||||
v-model="
|
v-model="
|
||||||
value.items[activeWoItemIndex].units[activeItemIndex].startDate
|
value.items[activeWoItemIndex].units[activeItemIndex].unitId
|
||||||
"
|
|
||||||
:readonly="formState.readOnly"
|
|
||||||
:disabled="isDeleted"
|
|
||||||
:ref="
|
|
||||||
`Items[${activeWoItemIndex}].units[${activeItemIndex}].startDate`
|
|
||||||
"
|
|
||||||
data-cy="startDate"
|
|
||||||
:error-messages="
|
|
||||||
form().serverErrors(
|
|
||||||
this,
|
|
||||||
`Items[${activeWoItemIndex}].units[${activeItemIndex}].startDate`
|
|
||||||
)
|
|
||||||
"
|
|
||||||
@input="
|
|
||||||
fieldValueChanged(
|
|
||||||
`Items[${activeWoItemIndex}].units[${activeItemIndex}].startDate`
|
|
||||||
)
|
|
||||||
"
|
|
||||||
></gz-date-time-picker>
|
|
||||||
</v-col>
|
|
||||||
|
|
||||||
<v-col
|
|
||||||
v-if="form().showMe(this, 'WorkOrderItemUnitStopDate')"
|
|
||||||
cols="12"
|
|
||||||
sm="6"
|
|
||||||
lg="4"
|
|
||||||
xl="3"
|
|
||||||
>
|
|
||||||
<gz-date-time-picker
|
|
||||||
:label="$ay.t('WorkOrderItemUnitStopDate')"
|
|
||||||
v-model="
|
|
||||||
value.items[activeWoItemIndex].units[activeItemIndex].stopDate
|
|
||||||
"
|
|
||||||
:readonly="formState.readOnly"
|
|
||||||
:disabled="isDeleted"
|
|
||||||
:ref="
|
|
||||||
`Items[${activeWoItemIndex}].units[${activeItemIndex}].stopDate`
|
|
||||||
"
|
|
||||||
data-cy="stopDate"
|
|
||||||
:rules="[
|
|
||||||
form().datePrecedence(
|
|
||||||
this,
|
|
||||||
`Items[${activeWoItemIndex}].units[${activeItemIndex}].startDate`,
|
|
||||||
`Items[${activeWoItemIndex}].units[${activeItemIndex}].stopDate`
|
|
||||||
)
|
|
||||||
]"
|
|
||||||
:error-messages="
|
|
||||||
form().serverErrors(
|
|
||||||
this,
|
|
||||||
`Items[${activeWoItemIndex}].units[${activeItemIndex}].stopDate`
|
|
||||||
)
|
|
||||||
"
|
|
||||||
@input="
|
|
||||||
fieldValueChanged(
|
|
||||||
`Items[${activeWoItemIndex}].units[${activeItemIndex}].stopDate`
|
|
||||||
)
|
|
||||||
"
|
|
||||||
></gz-date-time-picker>
|
|
||||||
</v-col>
|
|
||||||
|
|
||||||
<v-col
|
|
||||||
v-if="form().showMe(this, 'WorkOrderItemUnitEstimatedQuantity')"
|
|
||||||
cols="12"
|
|
||||||
sm="6"
|
|
||||||
lg="4"
|
|
||||||
xl="3"
|
|
||||||
>
|
|
||||||
<gz-decimal
|
|
||||||
v-model="
|
|
||||||
value.items[activeWoItemIndex].units[activeItemIndex]
|
|
||||||
.estimatedQuantity
|
|
||||||
"
|
"
|
||||||
:readonly="formState.readOnly || isDeleted"
|
:readonly="formState.readOnly || isDeleted"
|
||||||
:disabled="isDeleted"
|
:disabled="isDeleted"
|
||||||
:label="$ay.t('WorkOrderItemUnitEstimatedQuantity')"
|
:label="$ay.t('Unit')"
|
||||||
:ref="
|
:ref="
|
||||||
`Items[${activeWoItemIndex}].units[${activeItemIndex}].estimatedQuantity`
|
`Items[${activeWoItemIndex}].units[${activeItemIndex}].unitId`
|
||||||
"
|
"
|
||||||
data-cy="units.EstimatedQuantity"
|
data-cy="units.unitId"
|
||||||
:error-messages="
|
:error-messages="
|
||||||
form().serverErrors(
|
form().serverErrors(
|
||||||
this,
|
this,
|
||||||
`Items[${activeWoItemIndex}].units[${activeItemIndex}].estimatedQuantity`
|
`Items[${activeWoItemIndex}].units[${activeItemIndex}].unitId`
|
||||||
)
|
)
|
||||||
"
|
"
|
||||||
:rules="[
|
@input="
|
||||||
form().decimalValid(
|
fieldValueChanged(
|
||||||
this,
|
`Items[${activeWoItemIndex}].units[${activeItemIndex}].unitId`
|
||||||
`Items[${activeWoItemIndex}].units[${activeItemIndex}].estimatedQuantity`
|
|
||||||
),
|
|
||||||
form().required(
|
|
||||||
this,
|
|
||||||
`Items[${activeWoItemIndex}].units[${activeItemIndex}].estimatedQuantity`
|
|
||||||
)
|
)
|
||||||
]"
|
"
|
||||||
|
@update:name="unitChange"
|
||||||
|
></gz-pick-list>
|
||||||
|
</v-col>
|
||||||
|
|
||||||
|
<v-col v-if="form().showMe(this, 'WorkOrderItemUnitNotes')" cols="12">
|
||||||
|
<v-textarea
|
||||||
|
v-model="
|
||||||
|
value.items[activeWoItemIndex].units[activeItemIndex].notes
|
||||||
|
"
|
||||||
|
:readonly="formState.readOnly"
|
||||||
|
:disabled="isDeleted"
|
||||||
|
:label="$ay.t('WorkOrderItemUnitNotes')"
|
||||||
|
:error-messages="
|
||||||
|
form().serverErrors(
|
||||||
|
this,
|
||||||
|
`Items[${activeWoItemIndex}].units[
|
||||||
|
${activeItemIndex}
|
||||||
|
].notes`
|
||||||
|
)
|
||||||
|
"
|
||||||
|
:ref="
|
||||||
|
`Items[${activeWoItemIndex}].units[
|
||||||
|
${activeItemIndex}
|
||||||
|
].notes`
|
||||||
|
"
|
||||||
|
data-cy="unitUnitNotes"
|
||||||
@input="
|
@input="
|
||||||
fieldValueChanged(`Items[${activeWoItemIndex}].units[
|
fieldValueChanged(`Items[${activeWoItemIndex}].units[
|
||||||
${activeItemIndex}
|
${activeItemIndex}
|
||||||
].estimatedQuantity`)
|
].notes`)
|
||||||
"
|
"
|
||||||
></gz-decimal>
|
auto-grow
|
||||||
|
></v-textarea>
|
||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
<v-col
|
<v-col v-if="form().showMe(this, 'WorkOrderItemUnitTags')" cols="12">
|
||||||
v-if="form().showMe(this, 'WorkOrderItemUnitUserID')"
|
<gz-tag-picker
|
||||||
cols="12"
|
v-model="value.items[activeWoItemIndex].units[activeItemIndex].tags"
|
||||||
sm="6"
|
:readonly="formState.readOnly"
|
||||||
lg="4"
|
data-cy="unitTags"
|
||||||
xl="3"
|
|
||||||
>
|
|
||||||
<gz-pick-list
|
|
||||||
:aya-type="$ay.ayt().User"
|
|
||||||
variant="tech"
|
|
||||||
:show-edit-icon="true"
|
|
||||||
v-model="
|
|
||||||
value.items[activeWoItemIndex].units[activeItemIndex].userId
|
|
||||||
"
|
|
||||||
:readonly="formState.readOnly || isDeleted"
|
|
||||||
:disabled="isDeleted"
|
|
||||||
:label="$ay.t('WorkOrderItemUnitUserID')"
|
|
||||||
:ref="
|
|
||||||
`Items[${activeWoItemIndex}].units[${activeItemIndex}].userId`
|
|
||||||
"
|
|
||||||
data-cy="units.userid"
|
|
||||||
:error-messages="
|
:error-messages="
|
||||||
form().serverErrors(
|
form().serverErrors(
|
||||||
this,
|
this,
|
||||||
`Items[${activeWoItemIndex}].units[${activeItemIndex}].userId`
|
`Items[${activeWoItemIndex}].units[
|
||||||
|
${activeItemIndex}
|
||||||
|
].tags`
|
||||||
)
|
)
|
||||||
"
|
"
|
||||||
|
:ref="
|
||||||
|
`Items[${activeWoItemIndex}].units[
|
||||||
|
${activeItemIndex}
|
||||||
|
].tags`
|
||||||
|
"
|
||||||
@input="
|
@input="
|
||||||
fieldValueChanged(
|
fieldValueChanged(`Items[${activeWoItemIndex}].units[
|
||||||
`Items[${activeWoItemIndex}].units[${activeItemIndex}].userId`
|
${activeItemIndex}
|
||||||
)
|
].tags`)
|
||||||
"
|
"
|
||||||
@update:name="userChange"
|
></gz-tag-picker>
|
||||||
></gz-pick-list>
|
|
||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
<v-col
|
<v-col cols="12">
|
||||||
v-if="form().showMe(this, 'WorkOrderItemUnitServiceRateID')"
|
<gz-custom-fields
|
||||||
cols="12"
|
|
||||||
sm="6"
|
|
||||||
lg="4"
|
|
||||||
xl="3"
|
|
||||||
>
|
|
||||||
<gz-pick-list
|
|
||||||
:aya-type="$ay.ayt().ServiceRate"
|
|
||||||
:variant="'contractid:' + value.contractId"
|
|
||||||
:show-edit-icon="true"
|
|
||||||
v-model="
|
v-model="
|
||||||
value.items[activeWoItemIndex].units[activeItemIndex]
|
value.items[activeWoItemIndex].units[activeItemIndex].customFields
|
||||||
.serviceRateId
|
|
||||||
"
|
"
|
||||||
:readonly="formState.readOnly || isDeleted"
|
:form-key="formCustomTemplateKey"
|
||||||
:disabled="isDeleted"
|
:readonly="formState.readOnly"
|
||||||
:label="$ay.t('WorkOrderItemUnitServiceRateID')"
|
:parent-v-m="this"
|
||||||
|
key-start-with="Items.WorkOrderItemUnitCustom"
|
||||||
:ref="
|
:ref="
|
||||||
`Items[${activeWoItemIndex}].units[${activeItemIndex}].serviceRateId`
|
`Items[${activeWoItemIndex}].units[
|
||||||
|
${activeItemIndex}
|
||||||
|
].customFields`
|
||||||
"
|
"
|
||||||
data-cy="units.serviceRateId"
|
data-cy="unitCustomFields"
|
||||||
:error-messages="
|
:error-messages="
|
||||||
form().serverErrors(
|
form().serverErrors(
|
||||||
this,
|
this,
|
||||||
`Items[${activeWoItemIndex}].units[${activeItemIndex}].serviceRateId`
|
`Items[${activeWoItemIndex}].units[
|
||||||
|
${activeItemIndex}
|
||||||
|
].customFields`
|
||||||
)
|
)
|
||||||
"
|
"
|
||||||
@input="
|
@input="
|
||||||
fieldValueChanged(
|
fieldValueChanged(`Items[${activeWoItemIndex}].units[
|
||||||
`Items[${activeWoItemIndex}].units[${activeItemIndex}].serviceRateId`
|
${activeItemIndex}
|
||||||
)
|
].customFields`)
|
||||||
"
|
"
|
||||||
@update:name="rateChange"
|
></gz-custom-fields>
|
||||||
></gz-pick-list>
|
|
||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
|
<v-col v-if="form().showMe(this, 'WorkOrderItemUnitWiki')" cols="12">
|
||||||
|
<gz-wiki
|
||||||
|
:aya-type="$ay.ayt().WorkOrderItem"
|
||||||
|
:aya-id="value.id"
|
||||||
|
:ref="
|
||||||
|
`Items[${activeWoItemIndex}].units[
|
||||||
|
${activeItemIndex}
|
||||||
|
].wiki`
|
||||||
|
"
|
||||||
|
v-model="value.items[activeWoItemIndex].units[activeItemIndex].wiki"
|
||||||
|
:readonly="formState.readOnly"
|
||||||
|
@input="
|
||||||
|
fieldValueChanged(`Items[${activeWoItemIndex}].units[
|
||||||
|
${activeItemIndex}
|
||||||
|
].wiki`)
|
||||||
|
"
|
||||||
|
></gz-wiki
|
||||||
|
></v-col>
|
||||||
|
|
||||||
|
<v-col
|
||||||
|
v-if="form().showMe(this, 'WorkOrderItemUnitAttachments') && value.id"
|
||||||
|
cols="12"
|
||||||
|
>
|
||||||
|
<gz-attachments
|
||||||
|
:readonly="formState.readOnly"
|
||||||
|
:aya-type="$ay.ayt().WorkOrderItemUnit"
|
||||||
|
:aya-id="value.items[activeWoItemIndex].units[activeItemIndex].id"
|
||||||
|
></gz-attachments
|
||||||
|
></v-col>
|
||||||
</template>
|
</template>
|
||||||
</v-row>
|
</v-row>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user