This commit is contained in:
@@ -136,6 +136,13 @@
|
||||
</v-col>
|
||||
</template>
|
||||
|
||||
<template v-slot:[`item.renewal`]="{ item }">
|
||||
<v-simple-checkbox
|
||||
v-model="item.renewal"
|
||||
disabled
|
||||
></v-simple-checkbox>
|
||||
</template>
|
||||
|
||||
<template v-slot:[`item.active`]="{ item }">
|
||||
<v-simple-checkbox
|
||||
v-model="item.active"
|
||||
@@ -319,7 +326,24 @@
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-col>
|
||||
|
||||
<v-col cols="12" sm="6" lg="4" xl="3">
|
||||
<v-checkbox
|
||||
ref="renewal"
|
||||
v-model="obj.items[editItemIndex].renewal"
|
||||
dense
|
||||
:readonly="formState.readOnly"
|
||||
:label="$sock.t('Renewal')"
|
||||
:error-messages="
|
||||
form().serverErrors(
|
||||
this,
|
||||
`Items[${editItemIndex}].renewal`
|
||||
)
|
||||
"
|
||||
@change="
|
||||
fieldValueChanged(`Items[${editItemIndex}].renewal`)
|
||||
"
|
||||
></v-checkbox>
|
||||
</v-col>
|
||||
<v-col cols="12" sm="6" lg="4" xl="3">
|
||||
<gz-date-time-picker
|
||||
ref="Items.originalOrderDate"
|
||||
@@ -531,6 +555,11 @@ export default {
|
||||
align: "right",
|
||||
value: "quantity"
|
||||
});
|
||||
headers.push({
|
||||
text: this.$sock.t("Renewal"),
|
||||
align: "center",
|
||||
value: "renewal"
|
||||
});
|
||||
|
||||
headers.push({
|
||||
text: this.$sock.t("PurchaseExpireDate"),
|
||||
@@ -565,6 +594,7 @@ export default {
|
||||
this.hour12
|
||||
),
|
||||
active: x.active,
|
||||
renewal: x.renewal,
|
||||
productViz: x.productViz
|
||||
};
|
||||
});
|
||||
@@ -674,7 +704,8 @@ export default {
|
||||
expireDate: window.$gz.locale.nowUTC8601String(),
|
||||
originalOrderDate: window.$gz.locale.nowUTC8601String(),
|
||||
originalOrderNumber: null,
|
||||
active: true
|
||||
active: true,
|
||||
renewal: false
|
||||
});
|
||||
this.editItemIndex = this.obj.items.length - 1;
|
||||
this.editItemDialog = true;
|
||||
@@ -689,7 +720,8 @@ export default {
|
||||
expireDate: src.expireDate,
|
||||
originalOrderDate: src.originalOrderDate,
|
||||
originalOrderNumber: src.originalOrderNumber,
|
||||
active: true
|
||||
active: true,
|
||||
renewal: false
|
||||
});
|
||||
this.editItemIndex = this.obj.items.length - 1;
|
||||
this.editItemDialog = true;
|
||||
@@ -1073,7 +1105,7 @@ async function clickHandler(menuItem) {
|
||||
wiki: null,
|
||||
tags: [],
|
||||
trialMode: false,
|
||||
renewal: false,
|
||||
renewal: true,
|
||||
//dto only props
|
||||
customerUsers: 250,
|
||||
maxDataGB: 20,
|
||||
@@ -1411,7 +1443,8 @@ async function fetchTranslatedText() {
|
||||
"OriginalOrderDate",
|
||||
"LicenseRegTo",
|
||||
"LicenseFetchEmail",
|
||||
"DatabaseID"
|
||||
"DatabaseID",
|
||||
"Renewal"
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user