refactor: refs #7924 simplify custom inspection icon rendering in ExtraCommunity.vue
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
542acc2c0e
commit
ba7e636a19
|
@ -265,11 +265,6 @@ const columns = computed(() => [
|
||||||
showValue: false,
|
showValue: false,
|
||||||
sortable: true,
|
sortable: true,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
label: '',
|
|
||||||
name: 'isCustomInspectionRequired',
|
|
||||||
align: 'center',
|
|
||||||
},
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
async function getData() {
|
async function getData() {
|
||||||
|
@ -597,7 +592,16 @@ const getColor = (percentage) => {
|
||||||
<QBtn flat class="link" dense>{{ entry.supplierName }}</QBtn>
|
<QBtn flat class="link" dense>{{ entry.supplierName }}</QBtn>
|
||||||
<SupplierDescriptorProxy :id="entry.supplierFk" />
|
<SupplierDescriptorProxy :id="entry.supplierFk" />
|
||||||
</QTd>
|
</QTd>
|
||||||
<QTd />
|
<QTd>
|
||||||
|
<QIcon
|
||||||
|
v-if="entry.isCustomInspectionRequired"
|
||||||
|
name="warning"
|
||||||
|
color="negative"
|
||||||
|
size="xs"
|
||||||
|
:title="t('requiresInspection')"
|
||||||
|
>
|
||||||
|
</QIcon>
|
||||||
|
</QTd>
|
||||||
<QTd>
|
<QTd>
|
||||||
<span>{{ toCurrency(entry.invoiceAmount) }}</span>
|
<span>{{ toCurrency(entry.invoiceAmount) }}</span>
|
||||||
</QTd>
|
</QTd>
|
||||||
|
@ -633,16 +637,6 @@ const getColor = (percentage) => {
|
||||||
/>
|
/>
|
||||||
</QBtn>
|
</QBtn>
|
||||||
</QTd>
|
</QTd>
|
||||||
<QTd>
|
|
||||||
<QIcon
|
|
||||||
v-if="entry.isCustomInspectionRequired"
|
|
||||||
name="warning"
|
|
||||||
color="negative"
|
|
||||||
size="xs"
|
|
||||||
:title="t('requiresInspection')"
|
|
||||||
>
|
|
||||||
</QIcon>
|
|
||||||
</QTd>
|
|
||||||
</QTr>
|
</QTr>
|
||||||
</template>
|
</template>
|
||||||
</QTable>
|
</QTable>
|
||||||
|
|
Loading…
Reference in New Issue