This commit is contained in:
2022-03-06 20:44:18 +00:00
parent 24cb3e990e
commit 1a76c236be

View File

@@ -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: {