From 3ac3c37a8e0910807a615c353f146f551508a31c Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 23 Jan 2023 02:01:26 +0000 Subject: [PATCH] --- src/api/biz-role-rights.js | 3 +- src/api/gzutil.js | 2 + src/api/initialize.js | 7 + src/api/open-object-handler.js | 7 + src/api/socktype.js | 4 +- src/api/translation.js | 3 +- src/plugins/vuetify.js | 8 + src/router.js | 16 + src/views/biz-purchase-list.vue | 2 +- src/views/biz-purchase.vue | 30 +- src/views/biz-vendor-notification-list.vue | 184 ++++++ src/views/biz-vendor-notification.vue | 724 +++++++++++++++++++++ 12 files changed, 971 insertions(+), 19 deletions(-) create mode 100644 src/views/biz-vendor-notification-list.vue create mode 100644 src/views/biz-vendor-notification.vue diff --git a/src/api/biz-role-rights.js b/src/api/biz-role-rights.js index 74c651d..53ee3ec 100644 --- a/src/api/biz-role-rights.js +++ b/src/api/biz-role-rights.js @@ -43,5 +43,6 @@ export default { SubscriptionServer: { Change: 32842, ReadFullRecord: 65797, Select: 131071 }, Purchase: { Change: 32842, ReadFullRecord: 65797, Select: 131071 }, Product: { Change: 32842, ReadFullRecord: 65797, Select: 131071 }, - GZCase: { Change: 32842, ReadFullRecord: 65797, Select: 131071 } + GZCase: { Change: 32842, ReadFullRecord: 65797, Select: 131071 }, + VendorNotification: { Change: 32842, ReadFullRecord: 65797, Select: 131071 } }; diff --git a/src/api/gzutil.js b/src/api/gzutil.js index 998bcc1..e1e7f4c 100644 --- a/src/api/gzutil.js +++ b/src/api/gzutil.js @@ -455,6 +455,8 @@ export default { return "$sockiCloud"; case window.$gz.type.Purchase: return "$sockiShoppingCart"; + case window.$gz.type.VendorNotification: + return "$sockiCommentDollar"; case window.$gz.type.Product: return "$sockiBarCode"; case window.$gz.type.GZCase: diff --git a/src/api/initialize.js b/src/api/initialize.js index 8a979f1..4168924 100644 --- a/src/api/initialize.js +++ b/src/api/initialize.js @@ -203,6 +203,13 @@ ServiceContractor = 5 */ key: key++ }); + sub.push({ + title: "VendorNotificationList", + icon: "$sockiCommentDollar", + route: "/biz-vendor-notification-list", + key: key++ + }); + sub.push({ title: "ProductList", icon: "$sockiBarCode", diff --git a/src/api/open-object-handler.js b/src/api/open-object-handler.js index 769a916..0d0027b 100644 --- a/src/api/open-object-handler.js +++ b/src/api/open-object-handler.js @@ -242,6 +242,13 @@ export default { }); break; + case socktype.VendorNotification: + vm.$router.push({ + name: "vendor-notification-edit", + params: { recordid: tid.id } + }); + break; + case socktype.License: vm.$router.push({ name: "license-edit", diff --git a/src/api/socktype.js b/src/api/socktype.js index 1185ea3..dfd7897 100644 --- a/src/api/socktype.js +++ b/src/api/socktype.js @@ -31,13 +31,13 @@ export default { DataListColumnView: 68, CustomerNotifySubscription: 84, //proxy subs for customers Integration: 92, //3rd party or add-on integration data store, - License: 93, TrialLicenseRequest: 94, SubscriptionServer: 95, Purchase: 96, Product: 97, - GZCase: 98 + GZCase: 98, + VendorNotification: 99 }; /** * diff --git a/src/api/translation.js b/src/api/translation.js index 78b5d5d..1403ff1 100644 --- a/src/api/translation.js +++ b/src/api/translation.js @@ -262,7 +262,8 @@ export default { "SubscriptionServerList", "ProductList", "PurchaseList", - "GZCaseList" + "GZCaseList", + "VendorNotificationList" ], //////////////////////////////////////////////////////// diff --git a/src/plugins/vuetify.js b/src/plugins/vuetify.js index bc61cd0..10a4f6b 100644 --- a/src/plugins/vuetify.js +++ b/src/plugins/vuetify.js @@ -92,6 +92,7 @@ import { faCoins, faColumns, faCommentAlt, + faCommentDollar, faConciergeBell, faCopy, faDiceD20, @@ -287,6 +288,7 @@ library.add( faCoins, faColumns, faCommentAlt, + faCommentDollar, faConciergeBell, faCopy, faDiceD20, @@ -671,6 +673,12 @@ const CUSTOM_ICONS = { icon: ["fas", "comment-alt"] } }, + sockiCommentDollar: { + component: FontAwesomeIcon, + props: { + icon: ["fas", "comment-dollar"] + } + }, sockiConciergeBell: { component: FontAwesomeIcon, props: { diff --git a/src/router.js b/src/router.js index 2eb3dbe..0d3e427 100644 --- a/src/router.js +++ b/src/router.js @@ -371,6 +371,22 @@ export default new Router({ component: () => import(/* webpackChunkName: "biz" */ "./views/biz-purchase.vue") }, + { + path: "/biz-vendor-notification-list", + name: "biz-vendor-notification-list", + component: () => + import( + /* webpackChunkName: "biz" */ "./views/biz-vendor-notification-list.vue" + ) + }, + { + path: "/biz-vendor-notification-list/:recordid", + name: "vendor-notification-edit", + component: () => + import( + /* webpackChunkName: "biz" */ "./views/biz-vendor-notification.vue" + ) + }, { path: "/biz-product-list", name: "biz-product-list", diff --git a/src/views/biz-purchase-list.vue b/src/views/biz-purchase-list.vue index b2b87f1..f3b44f3 100644 --- a/src/views/biz-purchase-list.vue +++ b/src/views/biz-purchase-list.vue @@ -137,7 +137,7 @@ async function clickHandler(menuItem) { function generateMenu(vm) { const menuOptions = { isMain: true, - icon: "$sockiAddressCard", + icon: "$sockiShoppingCart", title: "PurchaseList", menuItems: [], formData: { diff --git a/src/views/biz-purchase.vue b/src/views/biz-purchase.vue index 472108a..0dbf0cd 100644 --- a/src/views/biz-purchase.vue +++ b/src/views/biz-purchase.vue @@ -173,18 +173,20 @@ > - - + + @@ -593,7 +595,7 @@ function generateMenu(vm) { const menuOptions = { isMain: false, readOnly: vm.formState.readOnly, - icon: "$sockiBarCode", + icon: "$sockiShoppingCart", title: "Purchase", formData: { sockType: window.$gz.type.Purchase, @@ -716,7 +718,7 @@ async function fetchTranslatedText() { "PurchaseRenewNoticeSent", "PurchaseQuantity", "PurchaseProcessed", - "PurchaseVendorData" + "PurchaseVendorNotificationId" ]); } diff --git a/src/views/biz-vendor-notification-list.vue b/src/views/biz-vendor-notification-list.vue new file mode 100644 index 0000000..09d70bf --- /dev/null +++ b/src/views/biz-vendor-notification-list.vue @@ -0,0 +1,184 @@ + + + diff --git a/src/views/biz-vendor-notification.vue b/src/views/biz-vendor-notification.vue new file mode 100644 index 0000000..b801cd3 --- /dev/null +++ b/src/views/biz-vendor-notification.vue @@ -0,0 +1,724 @@ + +