refactor: move field quotation code
This commit is contained in:
parent
d70e98d7c8
commit
18022fcfb7
2 changed files with 19 additions and 16 deletions
|
|
@ -232,14 +232,14 @@ function disableCheckAll() {
|
||||||
:columns="
|
:columns="
|
||||||
stepOn
|
stepOn
|
||||||
? [
|
? [
|
||||||
...employeeColumn.slice(0, 2),
|
...employeeColumn.slice(0, 3),
|
||||||
{
|
{
|
||||||
name: 'periodNo',
|
name: 'periodNo',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
label: 'flow.step',
|
label: 'flow.step',
|
||||||
field: (v) => v.product.code,
|
field: (v) => v.product.code,
|
||||||
},
|
},
|
||||||
...employeeColumn.slice(2),
|
...employeeColumn.slice(3),
|
||||||
]
|
]
|
||||||
: statusOn
|
: statusOn
|
||||||
? [
|
? [
|
||||||
|
|
@ -463,6 +463,16 @@ function disableCheckAll() {
|
||||||
{{ props.row.request.code }}
|
{{ props.row.request.code }}
|
||||||
</span>
|
</span>
|
||||||
</q-td>
|
</q-td>
|
||||||
|
|
||||||
|
<q-td>
|
||||||
|
<span
|
||||||
|
class="cursor-pointer link"
|
||||||
|
@click="goToQuotation(props.row.request.quotation)"
|
||||||
|
>
|
||||||
|
{{ props.row.request.quotation?.code }}
|
||||||
|
</span>
|
||||||
|
</q-td>
|
||||||
|
|
||||||
<q-td v-if="stepOn" class="text-left">
|
<q-td v-if="stepOn" class="text-left">
|
||||||
<div v-if="props.row._template" class="column text-left">
|
<div v-if="props.row._template" class="column text-left">
|
||||||
<span>{{ props.row._template.templateName }}</span>
|
<span>{{ props.row._template.templateName }}</span>
|
||||||
|
|
@ -528,14 +538,7 @@ function disableCheckAll() {
|
||||||
:expiration-date="new Date(props.row.request.quotation?.dueDate)"
|
:expiration-date="new Date(props.row.request.quotation?.dueDate)"
|
||||||
/>
|
/>
|
||||||
</q-td>
|
</q-td>
|
||||||
<q-td>
|
|
||||||
<span
|
|
||||||
class="cursor-pointer link"
|
|
||||||
@click="goToQuotation(props.row.request.quotation)"
|
|
||||||
>
|
|
||||||
{{ props.row.request.quotation?.code }}
|
|
||||||
</span>
|
|
||||||
</q-td>
|
|
||||||
<q-td>
|
<q-td>
|
||||||
<BadgeComponent
|
<BadgeComponent
|
||||||
v-if="props.row.request.quotation?.urgent"
|
v-if="props.row.request.quotation?.urgent"
|
||||||
|
|
|
||||||
|
|
@ -170,6 +170,12 @@ export const employeeColumn = [
|
||||||
label: 'requestList.requestListCode',
|
label: 'requestList.requestListCode',
|
||||||
field: 'code',
|
field: 'code',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'quotationCode',
|
||||||
|
align: 'center',
|
||||||
|
label: 'requestList.quotationCode',
|
||||||
|
field: 'quotationCode',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'fullName',
|
name: 'fullName',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
|
|
@ -200,12 +206,6 @@ export const employeeColumn = [
|
||||||
label: 'general.numberOfDay',
|
label: 'general.numberOfDay',
|
||||||
field: 'day',
|
field: 'day',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
name: 'quotationCode',
|
|
||||||
align: 'center',
|
|
||||||
label: 'requestList.quotationCode',
|
|
||||||
field: 'quotationCode',
|
|
||||||
},
|
|
||||||
] as const satisfies QTableProps['columns'];
|
] as const satisfies QTableProps['columns'];
|
||||||
|
|
||||||
export const productColumn = [
|
export const productColumn = [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue