This commit is contained in:
@@ -423,6 +423,8 @@ todo: many biz objects are not using new PUT methodology
|
|||||||
CURRENTLY DOING:
|
CURRENTLY DOING:
|
||||||
woitem selected:
|
woitem selected:
|
||||||
copy to wo
|
copy to wo
|
||||||
|
$ayiCopy
|
||||||
|
""CopyToWorkOrder"" translation key
|
||||||
allow to copy to any non locked workorder
|
allow to copy to any non locked workorder
|
||||||
can filter by customer and defaults to current customer
|
can filter by customer and defaults to current customer
|
||||||
also presents current wo for when user wants to duplicate the woitem to the same wo
|
also presents current wo for when user wants to duplicate the woitem to the same wo
|
||||||
|
|||||||
@@ -23,6 +23,18 @@
|
|||||||
<v-list-item-title>{{ $ay.t("New") }}</v-list-item-title>
|
<v-list-item-title>{{ $ay.t("New") }}</v-list-item-title>
|
||||||
</v-list-item>
|
</v-list-item>
|
||||||
|
|
||||||
|
<v-list-item
|
||||||
|
v-if="hasData && hasSelection && canAdd"
|
||||||
|
@click="copyItem"
|
||||||
|
>
|
||||||
|
<v-list-item-icon>
|
||||||
|
<v-icon>$ayiCopy</v-icon>
|
||||||
|
</v-list-item-icon>
|
||||||
|
<v-list-item-title>{{
|
||||||
|
$ay.t("CopyToWorkOrder")
|
||||||
|
}}</v-list-item-title>
|
||||||
|
</v-list-item>
|
||||||
|
|
||||||
<v-list-item v-if="canDelete && !isDeleted" @click="deleteItem">
|
<v-list-item v-if="canDelete && !isDeleted" @click="deleteItem">
|
||||||
<v-list-item-icon>
|
<v-list-item-icon>
|
||||||
<v-icon>$ayiTrashAlt</v-icon>
|
<v-icon>$ayiTrashAlt</v-icon>
|
||||||
@@ -815,6 +827,9 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
copyItem() {
|
||||||
|
alert("COPY");
|
||||||
|
},
|
||||||
newItem() {
|
newItem() {
|
||||||
let newIndex = this.value.items.length;
|
let newIndex = this.value.items.length;
|
||||||
|
|
||||||
|
|||||||
@@ -2138,7 +2138,8 @@ async function fetchTranslatedText(vm) {
|
|||||||
"PartAssemblyList",
|
"PartAssemblyList",
|
||||||
"PartAssembly",
|
"PartAssembly",
|
||||||
"PartSerialNumbersAvailable",
|
"PartSerialNumbersAvailable",
|
||||||
"AddMultipleUnits"
|
"AddMultipleUnits",
|
||||||
|
"CopyToWorkOrder"
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user