This commit is contained in:
@@ -257,6 +257,26 @@
|
|||||||
$ay.t("New")
|
$ay.t("New")
|
||||||
}}</v-list-item-title>
|
}}</v-list-item-title>
|
||||||
</v-list-item>
|
</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-divider></v-divider>
|
||||||
<v-list-item
|
<v-list-item
|
||||||
@click="receiveAll"
|
@click="receiveAll"
|
||||||
@@ -701,6 +721,33 @@
|
|||||||
</v-dialog>
|
</v-dialog>
|
||||||
</v-row>
|
</v-row>
|
||||||
</template>
|
</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>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -776,6 +823,7 @@ export default {
|
|||||||
formCustomTemplateKey: FORM_CUSTOM_TEMPLATE_KEY,
|
formCustomTemplateKey: FORM_CUSTOM_TEMPLATE_KEY,
|
||||||
editPoItemDialog: false,
|
editPoItemDialog: false,
|
||||||
editPoItemIndex: 0,
|
editPoItemIndex: 0,
|
||||||
|
restockSelectDialog: false,
|
||||||
selectLists: {
|
selectLists: {
|
||||||
status: []
|
status: []
|
||||||
},
|
},
|
||||||
@@ -1383,14 +1431,6 @@ async function clickHandler(menuItem) {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "restocklist":
|
|
||||||
alert("stub: restocklist");
|
|
||||||
break;
|
|
||||||
|
|
||||||
case "requestlist":
|
|
||||||
alert("under construction: MIGRATE_OUTSTANDING workorderitempartrequest");
|
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
window.$gz.eventBus.$emit(
|
window.$gz.eventBus.$emit(
|
||||||
"notify-warning",
|
"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 });
|
menuOptions.menuItems.push({ divider: true, inset: false });
|
||||||
|
|
||||||
window.$gz.eventBus.$emit("menu-change", menuOptions);
|
window.$gz.eventBus.$emit("menu-change", menuOptions);
|
||||||
|
|||||||
Reference in New Issue
Block a user