This commit is contained in:
2023-01-12 00:24:36 +00:00
parent cbd8e670ca
commit 4e6947d573
2 changed files with 83 additions and 21 deletions

View File

@@ -18,6 +18,18 @@
@input="fieldValueChanged('name')"
></v-text-field>
</v-col>
<v-col cols="12" sm="6" lg="4" xl="3">
<gz-pick-list
ref="customerId"
v-model="obj.customerId"
:aya-type="sockTypes().Customer"
show-edit-icon
:readonly="formState.readOnly"
:label="$sock.t('Customer')"
:error-messages="form().serverErrors(this, 'customerId')"
@input="fieldValueChanged('customerId')"
></gz-pick-list>
</v-col>
<v-col v-if="form().showMe(this, 'GZCaseNotes')" cols="12">
<v-textarea
ref="notes"
@@ -128,6 +140,7 @@ export default {
notes: null,
created: window.$gz.locale.nowUTC8601String(),
closed: null,
customerId: null,
wiki: null,
tags: []
},
@@ -585,27 +598,8 @@ async function fetchTranslatedText() {
"GZCaseId",
"GZCaseClosed",
"Created",
"GZCaseNotes"
"GZCaseNotes",
"Customer"
]);
}
/*
"CREATE TABLE agzcase (id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, caseid BIGINT GENERATED BY DEFAULT AS IDENTITY NOT NULL, "
+ "created TIMESTAMPTZ NOT NULL, closed TIMESTAMPTZ, name TEXT NOT NULL, notes TEXT, "
+ "wiki TEXT, tags VARCHAR(255) ARRAY )"
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'GZCase', 'Case' FROM atranslation t where t.baselanguage = 'en'");
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'GZCaseList', 'Cases' FROM atranslation t where t.baselanguage = 'en'");
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'GZCaseId', 'Case #' FROM atranslation t where t.baselanguage = 'en'");
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'GZCaseClosed', 'Closed' FROM atranslation t where t.baselanguage = 'en'");
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'GZCaseName', 'Summary' FROM atranslation t where t.baselanguage = 'en'");
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'GZCaseNotes', 'Details' FROM atranslation t where t.baselanguage = 'en'");
public long CaseId { get; set; }
public DateTime Created { get; set; }
public DateTime? Closed { get; set; }
[Required]
public string Name { get; set; }
public string Notes { get; set; }
*/
</script>

View File

@@ -1251,6 +1251,46 @@ async function clickHandler(menuItem) {
params: { customerid: m.vm.obj.id, customername: m.vm.obj.name }
});
break;
case "PurchaseList":
m.vm.$router.push({
name: "biz-purchase-list",
params: {
aType: m.vm.ayaType,
objectId: m.vm.obj.id,
name: m.vm.obj.name
}
});
break;
case "LicenseList":
m.vm.$router.push({
name: "biz-license-list",
params: {
aType: m.vm.ayaType,
objectId: m.vm.obj.id,
name: m.vm.obj.name
}
});
break;
case "SubscriptionServerList":
m.vm.$router.push({
name: "biz-subscription-server-list",
params: {
aType: m.vm.ayaType,
objectId: m.vm.obj.id,
name: m.vm.obj.name
}
});
break;
case "GZCaseList":
m.vm.$router.push({
name: "biz-gzcase-list",
params: {
aType: m.vm.ayaType,
objectId: m.vm.obj.id,
name: m.vm.obj.name
}
});
break;
default:
window.$gz.eventBus.$emit(
@@ -1344,6 +1384,34 @@ function generateMenu(vm) {
vm: vm
});
menuOptions.menuItems.push({
title: "PurchaseList",
icon: "$sockiShoppingCart",
key: FORM_KEY + ":PurchaseList",
vm: vm
});
menuOptions.menuItems.push({
title: "LicenseList",
icon: "$sockiGem",
key: FORM_KEY + ":LicenseList",
vm: vm
});
menuOptions.menuItems.push({
title: "SubscriptionServerList",
icon: "$sockiCloud",
key: FORM_KEY + ":SubscriptionServerList",
vm: vm
});
menuOptions.menuItems.push({
title: "GZCaseList",
icon: "$sockiCoffee",
key: FORM_KEY + ":GZCaseList",
vm: vm
});
//---- SHOW ALL ---
menuOptions.menuItems.push({