6553-workerBusiness #1311
|
@ -561,7 +561,7 @@ defineExpose({
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(auto-fit, minmax(150px, max-content));
|
grid-template-columns: repeat(auto-fit, minmax(150px, max-content));
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
margin: 0 auto;
|
margin: 1em auto;
|
||||||
overflow: scroll;
|
overflow: scroll;
|
||||||
white-space: wrap;
|
white-space: wrap;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
|
@ -71,7 +71,9 @@ const businessFilter = {
|
||||||
const columns = computed(() => [
|
const columns = computed(() => [
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
attrs: {
|
||||||
label: t('worker.business.tableVisibleColumns.started'),
|
label: t('worker.business.tableVisibleColumns.started'),
|
||||||
|
},
|
||||||
name: 'started',
|
name: 'started',
|
||||||
format: ({ started }) => toDate(started),
|
format: ({ started }) => toDate(started),
|
||||||
component: VnInputDate,
|
component: VnInputDate,
|
||||||
|
@ -80,7 +82,9 @@ const columns = computed(() => [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
attrs: {
|
||||||
label: t('worker.business.tableVisibleColumns.ended'),
|
label: t('worker.business.tableVisibleColumns.ended'),
|
||||||
|
},
|
||||||
name: 'ended',
|
name: 'ended',
|
||||||
format: ({ ended }) => toDate(ended),
|
format: ({ ended }) => toDate(ended),
|
||||||
component: VnInputDate,
|
component: VnInputDate,
|
||||||
|
@ -104,24 +108,26 @@ const columns = computed(() => [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
label: t('worker.business.tableVisibleColumns.reasondEnd'),
|
|
||||||
name: 'reasonEndFk',
|
name: 'reasonEndFk',
|
||||||
component: 'select',
|
component: 'select',
|
||||||
attrs: {
|
attrs: {
|
||||||
url: 'BusinessReasonEnds',
|
url: 'BusinessReasonEnds',
|
||||||
fields: ['id', 'reason'],
|
fields: ['id', 'reason'],
|
||||||
|
optionLabel: 'reason',
|
||||||
|
label: t('worker.business.tableVisibleColumns.reasondEnd'),
|
||||||
},
|
},
|
||||||
disable: false,
|
disable: false,
|
||||||
cardVisible: true,
|
cardVisible: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
label: t('worker.business.tableVisibleColumns.department'),
|
|
||||||
name: 'departmentFk',
|
name: 'departmentFk',
|
||||||
component: 'select',
|
component: 'select',
|
||||||
attrs: {
|
attrs: {
|
||||||
url: 'Departments',
|
url: 'Departments',
|
||||||
fields: ['id', 'name'],
|
fields: ['id', 'name'],
|
||||||
|
optionLabel: 'name',
|
||||||
|
label: t('worker.business.tableVisibleColumns.department'),
|
||||||
},
|
},
|
||||||
disable: false,
|
disable: false,
|
||||||
cardVisible: true,
|
cardVisible: true,
|
||||||
|
@ -129,12 +135,13 @@ const columns = computed(() => [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
label: t('worker.business.tableVisibleColumns.professionalCategory'),
|
|
||||||
name: 'professionalCategoryFk',
|
name: 'professionalCategoryFk',
|
||||||
component: 'select',
|
component: 'select',
|
||||||
attrs: {
|
attrs: {
|
||||||
url: 'WorkerBusinessProfessionalCategories',
|
url: 'WorkerBusinessProfessionalCategories',
|
||||||
fields: ['id', 'description', 'code'],
|
fields: ['id', 'description', 'code'],
|
||||||
|
optionLabel: 'description',
|
||||||
|
label: t('worker.business.tableVisibleColumns.professionalCategory'),
|
||||||
},
|
},
|
||||||
disable: false,
|
disable: false,
|
||||||
cardVisible: true,
|
cardVisible: true,
|
||||||
|
@ -142,12 +149,13 @@ const columns = computed(() => [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
label: t('worker.business.tableVisibleColumns.calendarType'),
|
|
||||||
name: 'calendarTypeFk',
|
name: 'calendarTypeFk',
|
||||||
component: 'select',
|
component: 'select',
|
||||||
attrs: {
|
attrs: {
|
||||||
url: 'CalendarTypes',
|
url: 'CalendarTypes',
|
||||||
fields: ['id', 'description'],
|
fields: ['id', 'description'],
|
||||||
|
optionLabel: 'description',
|
||||||
|
label: t('worker.business.tableVisibleColumns.calendarType'),
|
||||||
},
|
},
|
||||||
disable: false,
|
disable: false,
|
||||||
cardVisible: true,
|
cardVisible: true,
|
||||||
|
@ -155,12 +163,13 @@ const columns = computed(() => [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
label: t('worker.business.tableVisibleColumns.workCenter'),
|
|
||||||
name: 'workCenterFk',
|
name: 'workCenterFk',
|
||||||
component: 'select',
|
component: 'select',
|
||||||
attrs: {
|
attrs: {
|
||||||
url: 'WorkCenters',
|
url: 'WorkCenters',
|
||||||
fields: ['id', 'name'],
|
fields: ['id', 'name'],
|
||||||
|
optionLabel: 'name',
|
||||||
|
label: t('worker.business.tableVisibleColumns.workCenter'),
|
||||||
},
|
},
|
||||||
disable: false,
|
disable: false,
|
||||||
cardVisible: true,
|
cardVisible: true,
|
||||||
|
@ -168,25 +177,26 @@ const columns = computed(() => [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
label: t('worker.business.tableVisibleColumns.payrollCategories'),
|
|
||||||
name: 'workerBusinessCategoryFk',
|
name: 'workerBusinessCategoryFk',
|
||||||
component: 'select',
|
component: 'select',
|
||||||
attrs: {
|
attrs: {
|
||||||
url: 'payrollCategories',
|
url: 'payrollCategories',
|
||||||
fields: ['id', 'description'],
|
fields: ['id', 'description'],
|
||||||
|
optionLabel: 'description',
|
||||||
|
label: t('worker.business.tableVisibleColumns.payrollCategories'),
|
||||||
},
|
},
|
||||||
disable: false,
|
disable: false,
|
||||||
cardVisible: true,
|
cardVisible: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
label: t('worker.business.tableVisibleColumns.occupationCode'),
|
|
||||||
name: 'occupationCodeFk',
|
name: 'occupationCodeFk',
|
||||||
component: 'select',
|
component: 'select',
|
||||||
attrs: {
|
attrs: {
|
||||||
url: 'OccupationCodes',
|
url: 'OccupationCodes',
|
||||||
fields: ['code', 'name'],
|
fields: ['code', 'name'],
|
||||||
optionValue: 'code',
|
optionValue: 'code',
|
||||||
|
label: t('worker.business.tableVisibleColumns.occupationCode'),
|
||||||
},
|
},
|
||||||
disable: false,
|
disable: false,
|
||||||
cardVisible: true,
|
cardVisible: true,
|
||||||
|
@ -194,20 +204,23 @@ const columns = computed(() => [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
label: t('worker.business.tableVisibleColumns.rate'),
|
|
||||||
name: 'rate',
|
name: 'rate',
|
||||||
|
attrs: {
|
||||||
|
label: t('worker.business.tableVisibleColumns.rate'),
|
||||||
|
},
|
||||||
component: 'input',
|
component: 'input',
|
||||||
disable: false,
|
disable: false,
|
||||||
cardVisible: true,
|
cardVisible: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
label: t('worker.business.tableVisibleColumns.businessType'),
|
|
||||||
name: 'workerBusinessTypeFk',
|
name: 'workerBusinessTypeFk',
|
||||||
component: 'select',
|
component: 'select',
|
||||||
attrs: {
|
attrs: {
|
||||||
url: 'WorkerBusinessTypes',
|
url: 'WorkerBusinessTypes',
|
||||||
fields: ['id', 'name'],
|
fields: ['id', 'name'],
|
||||||
|
optionValue: 'name',
|
||||||
|
label: t('worker.business.tableVisibleColumns.businessType'),
|
||||||
},
|
},
|
||||||
disable: false,
|
disable: false,
|
||||||
cardVisible: true,
|
cardVisible: true,
|
||||||
|
@ -215,7 +228,9 @@ const columns = computed(() => [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
attrs: {
|
||||||
label: t('worker.business.tableVisibleColumns.amount'),
|
label: t('worker.business.tableVisibleColumns.amount'),
|
||||||
|
},
|
||||||
name: 'amount',
|
name: 'amount',
|
||||||
component: 'input',
|
component: 'input',
|
||||||
disable: false,
|
disable: false,
|
||||||
|
@ -224,7 +239,9 @@ const columns = computed(() => [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
attrs: {
|
||||||
label: t('worker.business.tableVisibleColumns.basicSalary'),
|
label: t('worker.business.tableVisibleColumns.basicSalary'),
|
||||||
|
},
|
||||||
name: 'basicSalary',
|
name: 'basicSalary',
|
||||||
component: 'input',
|
component: 'input',
|
||||||
disable: false,
|
disable: false,
|
||||||
|
@ -233,7 +250,9 @@ const columns = computed(() => [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
attrs: {
|
||||||
label: t('worker.business.tableVisibleColumns.notes'),
|
label: t('worker.business.tableVisibleColumns.notes'),
|
||||||
|
},
|
||||||
name: 'notes',
|
name: 'notes',
|
||||||
component: 'input',
|
component: 'input',
|
||||||
disable: false,
|
disable: false,
|
||||||
|
|
Loading…
Reference in New Issue