This commit is contained in:
@@ -257,6 +257,26 @@
|
||||
$ay.t("New")
|
||||
}}</v-list-item-title>
|
||||
</v-list-item>
|
||||
|
||||
<v-list-item @click="restockSelectDialog = true">
|
||||
<v-list-item-icon>
|
||||
<v-icon>$ayiClipboardList</v-icon>
|
||||
</v-list-item-icon>
|
||||
<v-list-item-title>{{
|
||||
$ay.t("PurchaseOrderUIRestockList")
|
||||
}}</v-list-item-title>
|
||||
</v-list-item>
|
||||
|
||||
<v-list-item @click="restockSelectDialog = true">
|
||||
<!-- MIGRATE_OUTSTANDING workorderitempartrequest -->
|
||||
<v-list-item-icon>
|
||||
<v-icon>$ayiParachuteBox</v-icon>
|
||||
</v-list-item-icon>
|
||||
<v-list-item-title>{{
|
||||
$ay.t("WorkOrderItemPartRequestList")
|
||||
}}</v-list-item-title>
|
||||
</v-list-item>
|
||||
|
||||
<v-divider></v-divider>
|
||||
<v-list-item
|
||||
@click="receiveAll"
|
||||
@@ -701,6 +721,33 @@
|
||||
</v-dialog>
|
||||
</v-row>
|
||||
</template>
|
||||
|
||||
<!-- ########################## RESTOCK SELECTION DIALOG ###############################-->
|
||||
<template>
|
||||
<v-row justify="center">
|
||||
<v-dialog v-model="restockSelectDialog">
|
||||
<v-card>
|
||||
<v-card-title> restock title here </v-card-title>
|
||||
<v-card-text> select items here </v-card-text>
|
||||
<v-card-actions>
|
||||
<v-btn
|
||||
color="blue darken-1"
|
||||
text
|
||||
@click="restockSelectDialog = false"
|
||||
>{{ $ay.t("Close") }}</v-btn
|
||||
>
|
||||
<v-spacer></v-spacer>
|
||||
<v-btn
|
||||
color="blue darken-1"
|
||||
text
|
||||
@click="restockSelectDialog = false"
|
||||
>{{ $ay.t("Save") }}</v-btn
|
||||
>
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
</v-dialog>
|
||||
</v-row>
|
||||
</template>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -776,6 +823,7 @@ export default {
|
||||
formCustomTemplateKey: FORM_CUSTOM_TEMPLATE_KEY,
|
||||
editPoItemDialog: false,
|
||||
editPoItemIndex: 0,
|
||||
restockSelectDialog: false,
|
||||
selectLists: {
|
||||
status: []
|
||||
},
|
||||
@@ -1383,14 +1431,6 @@ async function clickHandler(menuItem) {
|
||||
}
|
||||
break;
|
||||
|
||||
case "restocklist":
|
||||
alert("stub: restocklist");
|
||||
break;
|
||||
|
||||
case "requestlist":
|
||||
alert("under construction: MIGRATE_OUTSTANDING workorderitempartrequest");
|
||||
break;
|
||||
|
||||
default:
|
||||
window.$gz.eventBus.$emit(
|
||||
"notify-warning",
|
||||
@@ -1477,24 +1517,6 @@ function generateMenu(vm) {
|
||||
});
|
||||
}
|
||||
|
||||
if (vm.rights.change) {
|
||||
menuOptions.menuItems.push({ divider: true, inset: false });
|
||||
|
||||
menuOptions.menuItems.push({
|
||||
title: "PurchaseOrderUIRestockList",
|
||||
icon: "$ayiClipboardList",
|
||||
key: FORM_KEY + ":restocklist",
|
||||
vm: vm
|
||||
});
|
||||
|
||||
//MIGRATE_OUTSTANDING workorderitempartrequest awaiting
|
||||
menuOptions.menuItems.push({
|
||||
title: "WorkOrderItemPartRequestList",
|
||||
icon: "$ayiParachuteBox",
|
||||
key: FORM_KEY + ":requestlist",
|
||||
vm: vm
|
||||
});
|
||||
}
|
||||
menuOptions.menuItems.push({ divider: true, inset: false });
|
||||
|
||||
window.$gz.eventBus.$emit("menu-change", menuOptions);
|
||||
|
||||
Reference in New Issue
Block a user