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="
|
||||
stepOn
|
||||
? [
|
||||
...employeeColumn.slice(0, 2),
|
||||
...employeeColumn.slice(0, 3),
|
||||
{
|
||||
name: 'periodNo',
|
||||
align: 'center',
|
||||
label: 'flow.step',
|
||||
field: (v) => v.product.code,
|
||||
},
|
||||
...employeeColumn.slice(2),
|
||||
...employeeColumn.slice(3),
|
||||
]
|
||||
: statusOn
|
||||
? [
|
||||
|
|
@ -463,6 +463,16 @@ function disableCheckAll() {
|
|||
{{ props.row.request.code }}
|
||||
</span>
|
||||
</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">
|
||||
<div v-if="props.row._template" class="column text-left">
|
||||
<span>{{ props.row._template.templateName }}</span>
|
||||
|
|
@ -528,14 +538,7 @@ function disableCheckAll() {
|
|||
:expiration-date="new Date(props.row.request.quotation?.dueDate)"
|
||||
/>
|
||||
</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>
|
||||
<BadgeComponent
|
||||
v-if="props.row.request.quotation?.urgent"
|
||||
|
|
|
|||
|
|
@ -170,6 +170,12 @@ export const employeeColumn = [
|
|||
label: 'requestList.requestListCode',
|
||||
field: 'code',
|
||||
},
|
||||
{
|
||||
name: 'quotationCode',
|
||||
align: 'center',
|
||||
label: 'requestList.quotationCode',
|
||||
field: 'quotationCode',
|
||||
},
|
||||
{
|
||||
name: 'fullName',
|
||||
align: 'center',
|
||||
|
|
@ -200,12 +206,6 @@ export const employeeColumn = [
|
|||
label: 'general.numberOfDay',
|
||||
field: 'day',
|
||||
},
|
||||
{
|
||||
name: 'quotationCode',
|
||||
align: 'center',
|
||||
label: 'requestList.quotationCode',
|
||||
field: 'quotationCode',
|
||||
},
|
||||
] as const satisfies QTableProps['columns'];
|
||||
|
||||
export const productColumn = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue