This commit is contained in:
@@ -85,61 +85,6 @@
|
||||
}}<v-icon right large>$ayiTrashRestoreAlt</v-icon></v-btn
|
||||
>
|
||||
|
||||
<v-col
|
||||
v-if="form().showMe(this, 'WorkOrderItemPartQuantity')"
|
||||
cols="12"
|
||||
sm="6"
|
||||
lg="4"
|
||||
xl="3"
|
||||
>
|
||||
<gz-decimal
|
||||
v-model="
|
||||
value.items[activeWoItemIndex].parts[activeItemIndex].quantity
|
||||
"
|
||||
:readonly="formState.readOnly || isDeleted"
|
||||
:disabled="isDeleted"
|
||||
:label="$ay.t('WorkOrderItemPartQuantity')"
|
||||
:ref="
|
||||
`Items[${activeWoItemIndex}].parts[${activeItemIndex}].quantity`
|
||||
"
|
||||
data-cy="partQuantity"
|
||||
:error-messages="
|
||||
form().serverErrors(
|
||||
this,
|
||||
`Items[${activeWoItemIndex}].parts[${activeItemIndex}].quantity`
|
||||
)
|
||||
"
|
||||
:rules="[
|
||||
form().decimalValid(
|
||||
this,
|
||||
`Items[${activeWoItemIndex}].parts[${activeItemIndex}].quantity`
|
||||
),
|
||||
form().required(
|
||||
this,
|
||||
`Items[${activeWoItemIndex}].parts[${activeItemIndex}].quantity`
|
||||
)
|
||||
]"
|
||||
@input="
|
||||
fieldValueChanged(
|
||||
`Items[${activeWoItemIndex}].parts[${activeItemIndex}].quantity`
|
||||
)
|
||||
"
|
||||
></gz-decimal>
|
||||
<template
|
||||
v-if="
|
||||
value.items[activeWoItemIndex].parts[activeItemIndex]
|
||||
.requestAmountViz != null
|
||||
"
|
||||
>
|
||||
<v-btn color="secondary" text @click="doRequest()">
|
||||
<v-icon left>
|
||||
$ayiParachuteBox
|
||||
</v-icon>
|
||||
{{ requestMore }}
|
||||
</v-btn>
|
||||
</template>
|
||||
</v-col>
|
||||
|
||||
<v-col
|
||||
v-if="form().showMe(this, 'WorkOrderItemPartPartID')"
|
||||
cols="12"
|
||||
@@ -219,6 +164,60 @@
|
||||
@update:name="warehouseChange"
|
||||
></gz-pick-list>
|
||||
</v-col>
|
||||
<v-col
|
||||
v-if="form().showMe(this, 'WorkOrderItemPartQuantity')"
|
||||
cols="12"
|
||||
sm="6"
|
||||
lg="4"
|
||||
xl="3"
|
||||
>
|
||||
<gz-decimal
|
||||
v-model="
|
||||
value.items[activeWoItemIndex].parts[activeItemIndex].quantity
|
||||
"
|
||||
:readonly="formState.readOnly || isDeleted"
|
||||
:disabled="isDeleted"
|
||||
:label="$ay.t('WorkOrderItemPartQuantity')"
|
||||
:ref="
|
||||
`Items[${activeWoItemIndex}].parts[${activeItemIndex}].quantity`
|
||||
"
|
||||
data-cy="partQuantity"
|
||||
:error-messages="
|
||||
form().serverErrors(
|
||||
this,
|
||||
`Items[${activeWoItemIndex}].parts[${activeItemIndex}].quantity`
|
||||
)
|
||||
"
|
||||
:rules="[
|
||||
form().decimalValid(
|
||||
this,
|
||||
`Items[${activeWoItemIndex}].parts[${activeItemIndex}].quantity`
|
||||
),
|
||||
form().required(
|
||||
this,
|
||||
`Items[${activeWoItemIndex}].parts[${activeItemIndex}].quantity`
|
||||
)
|
||||
]"
|
||||
@input="
|
||||
fieldValueChanged(
|
||||
`Items[${activeWoItemIndex}].parts[${activeItemIndex}].quantity`
|
||||
)
|
||||
"
|
||||
></gz-decimal>
|
||||
<template
|
||||
v-if="
|
||||
value.items[activeWoItemIndex].parts[activeItemIndex]
|
||||
.requestAmountViz != null
|
||||
"
|
||||
>
|
||||
<v-btn color="secondary" text @click="doRequest()">
|
||||
<v-icon left>
|
||||
$ayiParachuteBox
|
||||
</v-icon>
|
||||
{{ requestMore }}
|
||||
</v-btn>
|
||||
</template>
|
||||
</v-col>
|
||||
|
||||
<v-col
|
||||
v-if="form().showMe(this, 'WorkOrderItemPartDescription')"
|
||||
|
||||
Reference in New Issue
Block a user