This commit is contained in:
2023-04-21 17:40:11 +00:00
parent 9a6ebc84fa
commit ef585bddbd
3 changed files with 11 additions and 10 deletions

View File

@@ -264,7 +264,8 @@ export default {
"PurchaseList", "PurchaseList",
"GZCaseList", "GZCaseList",
"VendorNotificationList", "VendorNotificationList",
"SubscriptionList" "SubscriptionList",
"SubscriptionItemList"
], ],
//////////////////////////////////////////////////////// ////////////////////////////////////////////////////////

View File

@@ -106,7 +106,7 @@ async function clickHandler(menuItem) {
{ {
const res = await m.vm.$refs.reportSelector.open( const res = await m.vm.$refs.reportSelector.open(
m.vm.$refs.gzdatatable.getDataListSelection( m.vm.$refs.gzdatatable.getDataListSelection(
window.$gz.type.Subscription window.$gz.type.SubscriptionItem
), ),
m.id m.id
); );

View File

@@ -101,7 +101,7 @@
<v-col cols="12" sm="6" lg="4" xl="3"> <v-col cols="12" sm="6" lg="4" xl="3">
<v-select <v-select
ref="sockType" ref="sockType"
v-model="obj.aType" v-model="obj.sockType"
dense dense
:items="selectLists.coreSockTypes" :items="selectLists.coreSockTypes"
item-text="name" item-text="name"
@@ -109,9 +109,9 @@
:readonly="formState.readOnly" :readonly="formState.readOnly"
:label="$sock.t('SockType')" :label="$sock.t('SockType')"
data-cy="sockType" data-cy="sockType"
:rules="[form().integerValid(this, 'aType')]" :rules="[form().integerValid(this, 'sockType')]"
:error-messages="form().serverErrors(this, 'aType')" :error-messages="form().serverErrors(this, 'sockType')"
@input="fieldValueChanged('aType')" @input="fieldValueChanged('sockType')"
></v-select> ></v-select>
</v-col> </v-col>
@@ -371,7 +371,7 @@ export default {
active: true, active: true,
notes: "", notes: "",
roles: 124927, //all except customers roles: 124927, //all except customers
aType: 0, sockType: 0,
template: `<html> template: `<html>
<body> <body>
@@ -438,7 +438,7 @@ export default {
}, },
computed: { computed: {
showIncludeDescendants: function() { showIncludeDescendants: function() {
switch (this.obj.aType) { switch (this.obj.sockType) {
case window.$gz.type.WorkOrderItem: case window.$gz.type.WorkOrderItem:
case window.$gz.type.WorkOrderItemExpense: case window.$gz.type.WorkOrderItemExpense:
case window.$gz.type.WorkOrderItemLabor: case window.$gz.type.WorkOrderItemLabor:
@@ -558,7 +558,7 @@ export default {
vm.$router.go(-1); vm.$router.go(-1);
return; return;
} }
vm.obj.aType = vm.$route.params.reportDataOptions.SockType; vm.obj.sockType = vm.$route.params.reportDataOptions.SockType;
//trigger rule breaking / validation //trigger rule breaking / validation
this.$nextTick(() => { this.$nextTick(() => {
this.obj.name = null; this.obj.name = null;
@@ -1139,7 +1139,7 @@ async function fetchReportData(vm) {
"sock-report-edit:fetchReportData - route parameter SockType is missing or empty, unable to init report designer" "sock-report-edit:fetchReportData - route parameter SockType is missing or empty, unable to init report designer"
); );
} }
vm.obj.aType = reportDataOptions.SockType; vm.obj.sockType = reportDataOptions.SockType;
//handle includeWoItemDescendants by adding it's value to the request for report data //handle includeWoItemDescendants by adding it's value to the request for report data
reportDataOptions["includeWoItemDescendants"] = reportDataOptions["includeWoItemDescendants"] =
vm.obj.includeWoItemDescendants; vm.obj.includeWoItemDescendants;