This commit is contained in:
@@ -288,6 +288,37 @@
|
||||
"
|
||||
></gz-currency>
|
||||
</v-col>
|
||||
|
||||
<v-col v-if="form().showMe(this, 'WorkOrderItemPartSerials')" cols="12">
|
||||
<v-textarea
|
||||
v-model="
|
||||
value.items[activeWoItemIndex].parts[activeItemIndex].serials
|
||||
"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="isDeleted"
|
||||
:label="$ay.t('PurchaseOrderItemSerialNumbers')"
|
||||
:error-messages="
|
||||
form().serverErrors(
|
||||
this,
|
||||
`Items[${activeWoItemIndex}].parts[
|
||||
${activeItemIndex}
|
||||
].serials`
|
||||
)
|
||||
"
|
||||
:ref="
|
||||
`Items[${activeWoItemIndex}].parts[
|
||||
${activeItemIndex}
|
||||
].serials`
|
||||
"
|
||||
data-cy="partSerials"
|
||||
@input="
|
||||
fieldValueChanged(`Items[${activeWoItemIndex}].parts[
|
||||
${activeItemIndex}
|
||||
].serials`)
|
||||
"
|
||||
auto-grow
|
||||
></v-textarea>
|
||||
</v-col>
|
||||
</template>
|
||||
</v-row>
|
||||
</div>
|
||||
@@ -296,51 +327,7 @@
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
/* XXXeslint-disable */
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
/*
|
||||
l.Add(new FormField { TKey = "WorkOrderItemPartDescription", FieldKey = "WorkOrderItemPartDescription", TKeySection = "WorkOrderItemParts" });
|
||||
l.Add(new FormField { TKey = "WorkOrderItemPartPartSerialID", FieldKey = "WorkOrderItemPartPartSerialID", TKeySection = "WorkOrderItemParts" });
|
||||
l.Add(new FormField { TKey = "WorkOrderItemPartPartWarehouseID", FieldKey = "WorkOrderItemPartPartWarehouseID", TKeySection = "WorkOrderItemParts" });
|
||||
l.Add(new FormField { TKey = "WorkOrderItemPartQuantity", FieldKey = "WorkOrderItemPartQuantity", TKeySection = "WorkOrderItemParts" });
|
||||
l.Add(new FormField { TKey = "WorkOrderItemPartTaxPartSaleID", FieldKey = "WorkOrderItemPartTaxPartSaleID", TKeySection = "WorkOrderItemParts" });
|
||||
l.Add(new FormField { TKey = "PartUPC", FieldKey = "PartUPC", TKeySection = "WorkOrderItemParts" });
|
||||
l.Add(new FormField { TKey = "Cost", FieldKey = "PartCost", TKeySection = "WorkOrderItemParts" });
|
||||
l.Add(new FormField { TKey = "ListPrice", FieldKey = "PartListPrice", TKeySection = "WorkOrderItemParts" });
|
||||
l.Add(new FormField { TKey = "Price", FieldKey = "PartPriceViz", TKeySection = "WorkOrderItemParts" });
|
||||
l.Add(new FormField { TKey = "PriceOverride", FieldKey = "PartPriceOverride", TKeySection = "WorkOrderItemParts" });
|
||||
l.Add(new FormField { TKey = "UnitOfMeasure", FieldKey = "PartUnitOfMeasureViz", TKeySection = "WorkOrderItemParts" });
|
||||
l.Add(new FormField { TKey = "NetPrice", FieldKey = "PartNetViz", TKeySection = "WorkOrderItemParts" });
|
||||
l.Add(new FormField { TKey = "TaxAAmt", FieldKey = "PartTaxAViz", TKeySection = "WorkOrderItemParts" });
|
||||
l.Add(new FormField { TKey = "TaxBAmt", FieldKey = "PartTaxBViz", TKeySection = "WorkOrderItemParts" });
|
||||
l.Add(new FormField { TKey = "LineTotal", FieldKey = "PartLineTotalViz", TKeySection = "WorkOrderItemParts" });
|
||||
{
|
||||
"0": {
|
||||
"id": 33,
|
||||
"concurrency": 8112668,
|
||||
"description": null,
|
||||
"serials": null,
|
||||
"partId": 16,
|
||||
"partViz": null,
|
||||
upcViz:"adjkfadjkfak"
|
||||
"partWarehouseId": 1,
|
||||
"partWarehouseViz": "Default",
|
||||
"quantity": 1,
|
||||
"taxPartSaleId": null,
|
||||
"taxPartSaleViz": null,
|
||||
"cost": 13.166710885319247,
|
||||
"listPrice": 15.800053062383098,
|
||||
"priceOverride": null,
|
||||
"unitOfMeasureViz": "each",
|
||||
"priceViz": 15.800053062383098,
|
||||
"netViz": 15.800053062383098,
|
||||
"taxAViz": 0,
|
||||
"taxBViz": 0,
|
||||
"lineTotalViz": 15.800053062383098,
|
||||
"isDirty": false,
|
||||
"workOrderItemId": 17
|
||||
}
|
||||
}
|
||||
|
||||
*/
|
||||
export default {
|
||||
created() {
|
||||
this.setDefaultView();
|
||||
@@ -538,9 +525,9 @@ export default {
|
||||
});
|
||||
}
|
||||
|
||||
if (this.form().showMe(this, "WorkOrderItemPartPartSerialID")) {
|
||||
if (this.form().showMe(this, "WorkOrderItemPartSerials")) {
|
||||
headers.push({
|
||||
text: this.$ay.t("WorkOrderItemPartPartSerialID"),
|
||||
text: this.$ay.t("PurchaseOrderItemSerialNumbers"),
|
||||
align: "left",
|
||||
value: "serials"
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user