This commit is contained in:
parent
c75e4cbf95
commit
97ce44242c
|
@ -11,64 +11,6 @@ const quasar = useQuasar();
|
|||
const route = useRoute();
|
||||
const tableRef = ref();
|
||||
const entityId = computed(() => route.params.id);
|
||||
const businessFilter = {
|
||||
include: [
|
||||
{
|
||||
relation: 'department',
|
||||
scope: {
|
||||
fields: ['id', 'name'],
|
||||
},
|
||||
},
|
||||
{
|
||||
relation: 'workCenter',
|
||||
scope: {
|
||||
fields: ['id', 'name'],
|
||||
},
|
||||
},
|
||||
{
|
||||
relation: 'companyCode',
|
||||
scope: {
|
||||
fields: ['code'],
|
||||
},
|
||||
},
|
||||
{
|
||||
relation: 'reasonEnd',
|
||||
scope: {
|
||||
fields: ['id', 'reason'],
|
||||
},
|
||||
},
|
||||
{
|
||||
relation: 'occupationCode',
|
||||
scope: {
|
||||
fields: ['code', 'name'],
|
||||
},
|
||||
},
|
||||
{
|
||||
relation: 'workerBusinessProfessionalCategory',
|
||||
scope: {
|
||||
fields: ['id', 'description'],
|
||||
},
|
||||
},
|
||||
{
|
||||
relation: 'calendarType',
|
||||
scope: {
|
||||
fields: ['id', 'description'],
|
||||
},
|
||||
},
|
||||
{
|
||||
relation: 'workerBusinessType',
|
||||
scope: {
|
||||
fields: ['id', 'name'],
|
||||
},
|
||||
},
|
||||
// { Falla
|
||||
// relation: 'workerBusinessAgreement',
|
||||
// scope: {
|
||||
// fields: ['id', 'name'],
|
||||
// },
|
||||
// },
|
||||
],
|
||||
};
|
||||
|
||||
async function reactivateWorker(business) {
|
||||
console.log('value: ', business);
|
||||
|
@ -271,14 +213,14 @@ const columns = computed(() => [
|
|||
}"
|
||||
order="id DESC"
|
||||
:columns="columns"
|
||||
:filter="businessFilter"
|
||||
default-mode="card"
|
||||
auto-load
|
||||
:disable-option="{ table: true }"
|
||||
:right-search="false"
|
||||
card-class="grid-two q-gutter-x-md"
|
||||
:is-editable="true"
|
||||
:use-model="true"
|
||||
@save-changes="reactivateWorker"
|
||||
@save-changes="reactivateWorker(entityId)"
|
||||
/>
|
||||
</template>
|
||||
<style lang="scss" scoped></style>
|
||||
|
|
|
@ -212,7 +212,7 @@ const filter = {
|
|||
|
||||
<VnLv
|
||||
:label="t('worker.summary.reasonEnd')"
|
||||
:value="worker.business[0].reasonEndFk"
|
||||
:value="worker.business[0].reasonEnd.reason"
|
||||
/>
|
||||
<VnLv
|
||||
:label="t('worker.summary.department')"
|
||||
|
|
Loading…
Reference in New Issue