This commit is contained in:
2020-07-23 22:43:58 +00:00
parent ca9269dc3e
commit a1f49341c3
2 changed files with 10 additions and 2 deletions

View File

@@ -78,7 +78,7 @@
></gz-duration-picker>
</v-col>
<v-col cols="12" sm="6" lg="4" xl="3">
<v-col v-if="showDeliveryMethod" cols="12" sm="6" lg="4" xl="3">
<v-select
v-model="obj.deliveryMethod"
:items="selectLists.deliveryMethods"
@@ -295,6 +295,9 @@ export default {
showDeliveryAddress() {
return this.obj.deliveryMethod == 2;
},
showDeliveryMethod() {
return this.obj.eventType != 27;
},
showWoStatus() {
switch (this.obj.eventType) {
case 4:
@@ -371,6 +374,11 @@ export default {
!this.formState.loading &&
!this.formState.readOnly
) {
//"fieldValueChanged('eventType')"
//if it's a general notification make sure delivery is set to email
if (ref == "eventType" && this.obj.eventType == 27) {
this.obj.deliveryMethod = 2;
}
window.$gz.form.fieldValueChanged(this, ref);
}
},