Browse Source

年度指标导入和筛选

master
叶佳兴 3 weeks ago
parent
commit
e5d25b6cb5
  1. 44
      src/views/eam/basic/assetsAccount/assetsAccount.data.ts
  2. 44
      src/views/eam/basic/assetsAccountControlsHistory/assetsAccountControlsHistory.data.ts
  3. 2
      src/views/eam/basic/basciYearEquipment/basciYearEquipment.data.ts
  4. 2
      src/views/eam/basic/basciYearEquipment/index.vue
  5. 2
      src/views/eam/basic/basicMonthEquipment/index.vue
  6. 6
      src/views/eam/basic/classType/classType.data.ts
  7. 2
      src/views/eam/basic/classType/index.vue
  8. 44
      src/views/eam/basic/fixedAssets/fixedAssets.data.ts
  9. 44
      src/views/eam/basic/fixedAssetsControlsHistory/fixedAssetsControlsHistory.data.ts
  10. 172
      src/views/eam/item/itemOutLocation/itemOutLocation.data.ts

44
src/views/eam/basic/assetsAccount/assetsAccount.data.ts

@ -288,6 +288,50 @@ export const AssetsAccount = useCrudSchemas(reactive<CrudSchema[]>([
}
}
},
{
label: '创建者',
field: 'creator',
hiddenSearchHigh: true,
sort: 'custom',
isSearch: false,
table: {
width: '150',
},
isForm: false
},
{
label: '创建时间',
field: 'createTime',
hiddenSearchHigh: true,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: '150',
},
isTable: true,
form: {
component: 'DatePicker',
componentProps: {
style: { width: '100%' },
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x'
}
},
isForm: false,
isSearch: true,
search: {
component: 'DatePicker',
componentProps: {
valueFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'daterange',
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
}
}
},
{
label: '操作',
field: 'action',

44
src/views/eam/basic/assetsAccountControlsHistory/assetsAccountControlsHistory.data.ts

@ -171,6 +171,50 @@ export const AssetsAccountControlsHistory = useCrudSchemas(reactive<CrudSchema[]
}
}
},
{
label: '创建者',
field: 'creator',
hiddenSearchHigh: true,
sort: 'custom',
isSearch: false,
table: {
width: '150',
},
isForm: false
},
{
label: '创建时间',
field: 'createTime',
hiddenSearchHigh: true,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: '150',
},
isTable: true,
form: {
component: 'DatePicker',
componentProps: {
style: { width: '100%' },
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x'
}
},
isForm: false,
isSearch: true,
search: {
component: 'DatePicker',
componentProps: {
valueFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'daterange',
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
}
}
},
{
label: '操作',
field: 'action',

2
src/views/eam/basic/basciYearEquipment/basciYearEquipment.data.ts

@ -89,7 +89,7 @@ export const BasciYearEquipment = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom',
form: {
componentProps:{
disabled:true
}
}
},

2
src/views/eam/basic/basciYearEquipment/index.vue

@ -113,7 +113,7 @@ const HeadButttondata = [
defaultButtons.defaultImportBtn(null), //
//defaultButtons.defaultExportBtn(null), //
defaultButtons.defaultFreshBtn(null), //
//defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null) //
// {
// label: '',

2
src/views/eam/basic/basicMonthEquipment/index.vue

@ -101,7 +101,7 @@ const HeadButttondata = [
defaultButtons.defaultImportBtn(null), //
// defaultButtons.defaultExportBtn(null), //
defaultButtons.defaultFreshBtn(null), //
// defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
// {
// label: '',

6
src/views/eam/basic/classType/classType.data.ts

@ -64,6 +64,7 @@ export const ClassType = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '维修工角色',
field: 'workerRoleId',
hiddenSearchHigh: true,
sort: 'custom',
isForm: false,
formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
@ -73,6 +74,7 @@ export const ClassType = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '维修工角色',
field: 'workerRoleName',
hiddenSearchHigh: true,
sort: 'custom',
form: {
// labelMessage: '信息提示说明!!!',
@ -99,6 +101,7 @@ export const ClassType = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '工程师角色',
field: 'engineerRoleId',
hiddenSearchHigh: true,
sort: 'custom',
isForm: false,
formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
@ -108,6 +111,7 @@ export const ClassType = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '工程师角色',
field: 'engineerRoleName',
hiddenSearchHigh: true,
sort: 'custom',
form: {
// labelMessage: '信息提示说明!!!',
@ -150,6 +154,7 @@ export const ClassType = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '所属厂区',
field: 'factoryAreaNumber',
hiddenSearchHigh: true,
isSearch: true,
sort: 'custom',
isForm: false,
@ -173,6 +178,7 @@ export const ClassType = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '所属厂区',
field: 'factoryAreaName',
hiddenSearchHigh: true,
isSearch: false,
sort: 'custom',
form: {

2
src/views/eam/basic/classType/index.vue

@ -114,7 +114,7 @@ const HeadButttondata = [
// defaultButtons.defaultImportBtn({hasPermi:'eam:classType:import'}), //
// defaultButtons.defaultExportBtn({hasPermi:'eam:classType:export'}), //
defaultButtons.defaultFreshBtn(null), //
// defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
// {
// label: '',

44
src/views/eam/basic/fixedAssets/fixedAssets.data.ts

@ -313,6 +313,50 @@ export const FixedAssets = useCrudSchemas(reactive<CrudSchema[]>([
}
}
},
{
label: '创建者',
field: 'creator',
hiddenSearchHigh: true,
sort: 'custom',
isSearch: false,
table: {
width: '150',
},
isForm: false
},
{
label: '创建时间',
field: 'createTime',
hiddenSearchHigh: true,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: '150',
},
isTable: true,
form: {
component: 'DatePicker',
componentProps: {
style: { width: '100%' },
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x'
}
},
isForm: false,
isSearch: true,
search: {
component: 'DatePicker',
componentProps: {
valueFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'daterange',
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
}
}
},
{
label: '操作',
field: 'action',

44
src/views/eam/basic/fixedAssetsControlsHistory/fixedAssetsControlsHistory.data.ts

@ -181,6 +181,50 @@ export const FixedAssetsControlsHistory = useCrudSchemas(reactive<CrudSchema[]>(
}
}
},
{
label: '创建者',
field: 'creator',
hiddenSearchHigh: true,
sort: 'custom',
isSearch: false,
table: {
width: '150',
},
isForm: false
},
{
label: '创建时间',
field: 'createTime',
hiddenSearchHigh: true,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: '150',
},
isTable: true,
form: {
component: 'DatePicker',
componentProps: {
style: { width: '100%' },
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x'
}
},
isForm: false,
isSearch: true,
search: {
component: 'DatePicker',
componentProps: {
valueFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'daterange',
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
}
}
},
{
label: '操作',
field: 'action',

172
src/views/eam/item/itemOutLocation/itemOutLocation.data.ts

@ -5,95 +5,97 @@ import { dateFormatter } from '@/utils/formatTime'
export const ItemOutLocationRules = reactive({
number: [required],
itemNumber: [required],
locationNumber: [required],
locationNumber: [required]
})
export const ItemOutLocation = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '出库编号',
field: 'number',
sort: 'custom',
isSearch: true,
},
{
label: '备件名称',
field: 'name',
sort: 'custom',
isSearch: true,
},
{
label: '库位编号',
field: 'locationNumber',
sort: 'custom',
isSearch: true,
},
{
label: '批次',
field: 'batch',
sort: 'custom',
isSearch: false,
},
{
label: '类型',
field: 'type',
sort: 'custom',
isSearch: false,
dictType: DICT_TYPE.ITEM_OUT_IN_TYPE,
dictClass: 'string',
form: {
component: 'Select'
export const ItemOutLocation = useCrudSchemas(
reactive<CrudSchema[]>([
{
label: '出库编号',
field: 'number',
sort: 'custom',
isSearch: true
},
},
{
label: '数量',
field: 'qty',
sort: 'custom',
isSearch: false,
},
{
label: '创建者',
field: 'creator',
hiddenSearchHigh: true,
sort: 'custom',
isSearch: false,
isForm: false,
{
label: '备件名称',
field: 'name',
sort: 'custom',
isSearch: true
},
{
label: '库位编号',
field: 'locationNumber',
sort: 'custom',
isSearch: true
},
{
label: '批次',
field: 'batch',
sort: 'custom',
isSearch: false
},
{
label: '类型',
field: 'type',
sort: 'custom',
isSearch: false,
dictType: DICT_TYPE.ITEM_OUT_IN_TYPE,
dictClass: 'string',
form: {
component: 'Select'
}
},
{
label: '数量',
field: 'qty',
sort: 'custom',
isSearch: false
},
{
label: '创建者',
field: 'creator',
hiddenSearchHigh: true,
sort: 'custom',
isSearch: false,
isForm: false
},
{
label: '创建时间',
field: 'createTime',
hiddenSearchHigh: true,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
{
label: '创建时间',
field: 'createTime',
hiddenSearchHigh: true,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
isTable: true,
form: {
component: 'DatePicker',
componentProps: {
style: { width: '100%' },
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x'
}
},
isForm: false,
isSearch: true,
search: {
component: 'DatePicker',
componentProps: {
valueFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'daterange',
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
}
sort: 'custom',
isTable: true,
form: {
component: 'DatePicker',
componentProps: {
style: { width: '100%' },
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x'
}
},
{
label: '操作',
field: 'action',
isForm: false,
table: {
fixed: 'right'
isForm: false,
isSearch: true,
search: {
component: 'DatePicker',
componentProps: {
valueFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'daterange',
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
}
}
},
{
label: '操作',
field: 'action',
isForm: false,
table: {
fixed: 'right'
}
}
}
]))
])
)

Loading…
Cancel
Save