This commit is contained in:
@@ -216,6 +216,28 @@
|
||||
></gz-pick-list>
|
||||
</v-col>
|
||||
|
||||
<v-col
|
||||
v-if="showQuoteReportSelector"
|
||||
cols="12"
|
||||
sm="6"
|
||||
lg="4"
|
||||
xl="3"
|
||||
>
|
||||
<gz-pick-list
|
||||
ref="linkQuoteReportId"
|
||||
v-model="obj.linkReportId"
|
||||
:aya-type="ayaTypes().Report"
|
||||
:variant="ayaTypes().Quote.toString()"
|
||||
:readonly="formState.readOnly"
|
||||
:label="$ay.t('AttachReport')"
|
||||
data-cy="linkReportId"
|
||||
:error-messages="
|
||||
form().serverErrors(this, 'linkReportId')
|
||||
"
|
||||
@input="fieldValueChanged('linkReportId')"
|
||||
></gz-pick-list>
|
||||
</v-col>
|
||||
|
||||
<v-col cols="12" sm="6" lg="4" xl="3">
|
||||
<gz-tag-picker
|
||||
ref="tags"
|
||||
@@ -439,6 +461,14 @@ export default {
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
},
|
||||
showQuoteReportSelector() {
|
||||
switch (this.obj.eventType) {
|
||||
case 9: //quote status changed
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
|
||||
Reference in New Issue
Block a user