This commit is contained in:
@@ -33,6 +33,20 @@
|
|||||||
todo: decValue here for "The Andy"
|
todo: decValue here for "The Andy"
|
||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
|
<v-col v-if="showAgeValue" cols="12" sm="6" lg="4" xl="3">
|
||||||
|
<gz-duration-picker
|
||||||
|
v-model="obj.ageValue"
|
||||||
|
:readonly="formState.readOnly"
|
||||||
|
:disabled="formState.readOnly"
|
||||||
|
:label="$ay.t('Duration')"
|
||||||
|
:showSeconds="false"
|
||||||
|
ref="ageValue"
|
||||||
|
:data-cy="!!$ay.dev ? 'ageValue' : false"
|
||||||
|
:error-messages="form().serverErrors(this, 'ageValue')"
|
||||||
|
@input="fieldValueChanged('ageValue')"
|
||||||
|
></gz-duration-picker>
|
||||||
|
</v-col>
|
||||||
|
|
||||||
<v-col v-if="showAyaType" cols="12" sm="6" lg="4" xl="3">
|
<v-col v-if="showAyaType" cols="12" sm="6" lg="4" xl="3">
|
||||||
<v-select
|
<v-select
|
||||||
v-model="obj.ayaType"
|
v-model="obj.ayaType"
|
||||||
@@ -307,7 +321,7 @@ export default {
|
|||||||
return this.obj.eventType == 9;
|
return this.obj.eventType == 9;
|
||||||
},
|
},
|
||||||
showDecValue() {
|
showDecValue() {
|
||||||
return this.obj.eventType == 23;
|
return this.obj.eventType == 23 || this.obj.eventType == 11; //service bank threshold
|
||||||
},
|
},
|
||||||
showAyaType() {
|
showAyaType() {
|
||||||
switch (this.obj.eventType) {
|
switch (this.obj.eventType) {
|
||||||
@@ -322,12 +336,21 @@ export default {
|
|||||||
showAdvanceNotice() {
|
showAdvanceNotice() {
|
||||||
switch (this.obj.eventType) {
|
switch (this.obj.eventType) {
|
||||||
case 5:
|
case 5:
|
||||||
case 0:
|
case 12:
|
||||||
case 0:
|
case 14:
|
||||||
case 0:
|
case 15:
|
||||||
case 0:
|
case 16:
|
||||||
case 0:
|
case 21:
|
||||||
case 0:
|
case 24: //Actually, this is workorder status age deadman notification, the title would be different for the advance notice thing, maybe its' own control?
|
||||||
|
case 25:
|
||||||
|
return true;
|
||||||
|
default:
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
showAgeValue() {
|
||||||
|
switch (this.obj.eventType) {
|
||||||
|
case 24:
|
||||||
return true;
|
return true;
|
||||||
default:
|
default:
|
||||||
return false;
|
return false;
|
||||||
@@ -729,7 +752,8 @@ async function fetchTranslatedText(vm) {
|
|||||||
"NotifyEventUnitMeterReadingMultipleExceeded",
|
"NotifyEventUnitMeterReadingMultipleExceeded",
|
||||||
"NotifyEventDefaultNotification",
|
"NotifyEventDefaultNotification",
|
||||||
"NotifyDeliveryMethodApp",
|
"NotifyDeliveryMethodApp",
|
||||||
"NotifyDeliveryMethodSMTP"
|
"NotifyDeliveryMethodSMTP",
|
||||||
|
"Duration"
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user