diff --git a/src/views/biz-subscription.vue b/src/views/biz-subscription.vue
index c8ac73c..ed9ebd0 100644
--- a/src/views/biz-subscription.vue
+++ b/src/views/biz-subscription.vue
@@ -49,33 +49,6 @@
>
-
-
-
-
-
-
-
-
@@ -103,7 +76,7 @@
- {{ $sock.t("SubscriptionList") }}
$sockiEllipsisV
@@ -125,6 +98,13 @@
+
+
+
+
@@ -136,6 +116,33 @@
+
+
+
+
+
+
+
+
@@ -170,9 +177,7 @@
-
- a title here
-
+
@@ -271,6 +276,25 @@
"
>
+
+
+
+
@@ -411,6 +435,12 @@ export default {
value: "expireDate"
});
+ headers.push({
+ text: this.$sock.t("Active"),
+ align: "center",
+ value: "active"
+ });
+
if (!this.formState.readOnly) {
headers.push({ text: "", value: "actions" });
}
@@ -431,6 +461,7 @@ export default {
this.languageName,
this.hour12
),
+ active: x.active,
productViz: x.productViz
};
});
@@ -535,7 +566,8 @@ export default {
subscriptionId: 0,
productId: null,
quantity: 1,
- expireDate: window.$gz.locale.nowUTC8601String()
+ expireDate: window.$gz.locale.nowUTC8601String(),
+ active: true
});
this.editItemIndex = this.obj.items.length - 1;
this.editItemDialog = true;
@@ -660,7 +692,7 @@ export default {
vm.obj = res.data;
} else {
this.$router.replace({
- name: "biz-subscription",
+ name: "subscription-edit",
params: {
recordid: res.data.id,
obj: res.data
@@ -815,7 +847,7 @@ function generateMenu(vm) {
sockType: window.$gz.type.Subscription,
recordId: vm.$route.params.recordid,
formCustomTemplateKey: FORM_CUSTOM_TEMPLATE_KEY,
- recordName: vm.obj.name
+ recordName: vm.obj.subsite
},
menuItems: []
};
@@ -900,11 +932,13 @@ async function fetchTranslatedText() {
"Subscription",
"Customer",
"ProductGroup",
+ "Product",
"SubSite",
"ContractNotes",
"ProductName",
"PurchaseQuantity",
- "PurchaseExpireDate"
+ "PurchaseExpireDate",
+ "SubscriptionItemList"
]);
}
diff --git a/src/views/cust-customer.vue b/src/views/cust-customer.vue
index ee6f8a2..720476a 100644
--- a/src/views/cust-customer.vue
+++ b/src/views/cust-customer.vue
@@ -1251,6 +1251,16 @@ async function clickHandler(menuItem) {
params: { customerid: m.vm.obj.id, customername: m.vm.obj.name }
});
break;
+ case "SubscriptionList":
+ m.vm.$router.push({
+ name: "biz-subscription-list",
+ params: {
+ aType: m.vm.sockType,
+ objectId: m.vm.obj.id,
+ name: m.vm.obj.name
+ }
+ });
+ break;
case "PurchaseList":
m.vm.$router.push({
name: "biz-purchase-list",
@@ -1384,6 +1394,13 @@ function generateMenu(vm) {
vm: vm
});
+ menuOptions.menuItems.push({
+ title: "SubscriptionList",
+ icon: "$sockiFileContract",
+ key: FORM_KEY + ":SubscriptionList",
+ vm: vm
+ });
+
menuOptions.menuItems.push({
title: "PurchaseList",
icon: "$sockiShoppingCart",