Browse Source

导出修改

master
叶佳兴 3 weeks ago
parent
commit
ae9332a44b
  1. 99
      src/views/eam/basic/item/item.data.ts
  2. 35
      src/views/eam/item/adjustRecord/adjustRecord.data.ts
  3. 35
      src/views/eam/item/applicationRecord/applicationRecordMain.data.ts
  4. 28
      src/views/eam/item/countRecord/countRecord.data.ts
  5. 36
      src/views/eam/item/countadjustPlan/countadjustPlan.data.ts
  6. 35
      src/views/eam/item/countadjustWork/countadjustWork.data.ts
  7. 35
      src/views/eam/item/itemAccounts/itemAccounts.data.ts
  8. 29
      src/views/eam/item/itemApplyMain/itemApplyMain.data.ts
  9. 51
      src/views/eam/item/itemMaintenance/itemMaintenance.data.ts
  10. 37
      src/views/eam/item/itemOrderMain/itemOrderMain.data.ts
  11. 32
      src/views/eam/item/itemOutLocation/itemOutLocation.data.ts
  12. 2
      src/views/eam/item/itemUseRecordMain/index.vue
  13. 39
      src/views/eam/item/itemUseRecordMain/itemUseRecordMain.data.ts
  14. 32
      src/views/eam/item/replaceItemDes/replaceItemDes.data.ts

99
src/views/eam/basic/item/item.data.ts

@ -16,15 +16,12 @@ export const ItemRules = reactive({
{ required: true, message: '请选择备件单位', trigger: 'blur' }, { required: true, message: '请选择备件单位', trigger: 'blur' },
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } { max: 50, message: '不得超过50个字符', trigger: 'blur' }
], ],
classification: [ classification: [{ required: true, message: '请选择备件分类', trigger: 'blur' }],
{ required: true, message: '请选择备件分类', trigger: 'blur' }, describes: [{ max: 600, message: '不得超过600个字符', trigger: 'blur' }]
],
describes: [
{ max: 600, message: '不得超过600个字符', trigger: 'blur' }
],
}) })
export const Item = useCrudSchemas(reactive<CrudSchema[]>([ export const Item = useCrudSchemas(
reactive<CrudSchema[]>([
{ {
label: '备件编号', label: '备件编号',
field: 'number', field: 'number',
@ -34,7 +31,7 @@ export const Item = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 180, width: 180,
fixed: 'left' fixed: 'left'
}, }
}, },
{ {
label: '备件名称', label: '备件名称',
@ -42,13 +39,13 @@ export const Item = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
table: { table: {
width: 110, width: 110
}, }
}, },
{ {
label: '规格', label: '规格',
field: 'specifications', field: 'specifications',
sort: 'custom', sort: 'custom'
}, },
{ {
label: '是否常储', label: '是否常储',
@ -59,7 +56,7 @@ export const Item = useCrudSchemas(reactive<CrudSchema[]>([
isTable: true, isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 110, width: 110
}, },
tableForm: { tableForm: {
type: 'Select', type: 'Select',
@ -92,7 +89,7 @@ export const Item = useCrudSchemas(reactive<CrudSchema[]>([
label: '科目代码', label: '科目代码',
field: 'subjectCode', field: 'subjectCode',
sort: 'custom', sort: 'custom',
isTable: true, isTable: true
}, },
{ {
label: '单位', label: '单位',
@ -160,25 +157,25 @@ export const Item = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
table: { table: {
width: 110, width: 110
}, }
}, },
{ {
label: '单价', label: '单价',
field: 'singlePrice', field: 'singlePrice',
sort: 'custom', sort: 'custom'
}, },
{ {
label: '重采购点', label: '重采购点',
field: 'reprocurement', field: 'reprocurement',
sort: 'custom', sort: 'custom',
table: { table: {
width: 110, width: 110
}, },
form: { form: {
component: 'InputNumber', component: 'InputNumber',
value: 0 value: 0
}, }
}, },
{ {
label: '安全库存', label: '安全库存',
@ -187,33 +184,33 @@ export const Item = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: false, isSearch: false,
isForm: true, isForm: true,
table: { table: {
width: 110, width: 110
}, },
form: { form: {
component: 'InputNumber', component: 'InputNumber',
value: 0, value: 0
}, }
}, },
{ {
label: '成本中心', label: '成本中心',
field: 'cost', field: 'cost',
sort: 'custom', sort: 'custom',
table: { table: {
width: 110, width: 110
}, }
}, },
{ {
label: '采购员', label: '采购员',
field: 'purchaser', field: 'purchaser',
sort: 'custom', sort: 'custom',
table: { table: {
width: 100, width: 100
}, }
}, },
{ {
label: '财务', label: '财务',
field: 'financer', field: 'financer',
sort: 'custom', sort: 'custom'
}, },
{ {
label: '是否以旧换新', label: '是否以旧换新',
@ -290,16 +287,7 @@ export const Item = useCrudSchemas(reactive<CrudSchema[]>([
// } // }
// } // }
// }, // },
{
label: '创建时间',
field: 'createTime',
sort: 'custom',
formatter: dateFormatter,
isForm: false,
table: {
width: 170
},
},
{ {
label: '描述', label: '描述',
field: 'describes', field: 'describes',
@ -307,11 +295,27 @@ export const Item = useCrudSchemas(reactive<CrudSchema[]>([
form: { form: {
component: 'Input', component: 'Input',
componentProps: { componentProps: {
type: 'textarea', type: 'textarea'
}, },
colProps: { colProps: {
span: 24, span: 24
}
} }
},
{
label: '创建者',
field: 'creator',
sort: 'custom',
isSearch: false
},
{
label: '创建时间',
field: 'createTime',
sort: 'custom',
formatter: dateFormatter,
isForm: false,
table: {
width: 170
} }
}, },
// { // {
@ -338,8 +342,7 @@ export const Item = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isTable: false, isTable: false,
isForm: true, isForm: true,
table: { table: {},
},
form: { form: {
component: 'UploadImgs', component: 'UploadImgs',
colProps: { colProps: {
@ -356,9 +359,11 @@ export const Item = useCrudSchemas(reactive<CrudSchema[]>([
fixed: 'right' fixed: 'right'
} }
} }
])) ])
)
export const ItemSearchTable = useCrudSchemas(reactive<CrudSchema[]>([ export const ItemSearchTable = useCrudSchemas(
reactive<CrudSchema[]>([
{ {
label: '备件编号', label: '备件编号',
field: 'number', field: 'number',
@ -367,19 +372,19 @@ export const ItemSearchTable = useCrudSchemas(reactive<CrudSchema[]>([
isForm: false, isForm: false,
table: { table: {
fixed: 'left' fixed: 'left'
}, }
}, },
{ {
label: '备件名称', label: '备件名称',
field: 'name', field: 'name',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
table: { table: {}
},
}, },
{ {
label: '数量', label: '数量',
field: 'qty', field: 'qty',
sort: 'custom', sort: 'custom'
} }
])) ])
)

35
src/views/eam/item/adjustRecord/adjustRecord.data.ts

@ -26,6 +26,41 @@ export const AdjustRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
}, },
{
label: '创建者',
field: 'creator',
sort: 'custom',
isSearch: false
},
{
label: '创建时间',
field: 'createTime',
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')]
}
}
},
// { // {
// label: '操作', // label: '操作',
// field: 'action', // field: 'action',

35
src/views/eam/item/applicationRecord/applicationRecordMain.data.ts

@ -115,6 +115,41 @@ export const ApplicationRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
disabled: true disabled: true
} }
}, },
{
label: '创建者',
field: 'creator',
sort: 'custom',
isSearch: false
},
{
label: '创建时间',
field: 'createTime',
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')]
}
}
},
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',

28
src/views/eam/item/countRecord/countRecord.data.ts

@ -58,13 +58,33 @@ export const CountRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
tableForm: { tableForm: {
type: 'Select' type: 'Select'
} }
},
{
label: '创建者',
field: 'creator',
sort: 'custom',
isSearch: false
}, },
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
sort: 'custom',
formatter: dateFormatter, formatter: dateFormatter,
isSearch: false, 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: { search: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -72,10 +92,6 @@ export const CountRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
type: 'daterange', type: 'daterange',
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
} }
},
isForm: false,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
} }
}, },
{ {

36
src/views/eam/item/countadjustPlan/countadjustPlan.data.ts

@ -1,6 +1,7 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { LocationArea, LocationAreaRules } from '../../basic/locationArea/locationArea.data' import { LocationArea, LocationAreaRules } from '../../basic/locationArea/locationArea.data'
import * as LocationAreaApi from '@/api/eam/basic/locationArea' import * as LocationAreaApi from '@/api/eam/basic/locationArea'
import { dateFormatter } from '@/utils/formatTime'
// 表单校验 // 表单校验
export const CountadjustPlanRules = reactive({ export const CountadjustPlanRules = reactive({
@ -93,6 +94,41 @@ export const CountadjustPlan = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{
label: '创建者',
field: 'creator',
sort: 'custom',
isSearch: false
},
{
label: '创建时间',
field: 'createTime',
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')]
}
}
},
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',

35
src/views/eam/item/countadjustWork/countadjustWork.data.ts

@ -35,6 +35,41 @@ export const CountJobMain = useCrudSchemas(reactive<CrudSchema[]>([
isForm: false, isForm: false,
isSearch: false, isSearch: false,
}, },
{
label: '创建者',
field: 'creator',
sort: 'custom',
isSearch: false
},
{
label: '创建时间',
field: 'createTime',
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')]
}
}
},
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',

35
src/views/eam/item/itemAccounts/itemAccounts.data.ts

@ -530,6 +530,41 @@ export const ItemAccounts = useCrudSchemas(
} }
}, },
isForm: false isForm: false
},
{
label: '创建者',
field: 'creator',
sort: 'custom',
isSearch: false
},
{
label: '创建时间',
field: 'createTime',
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')]
}
}
}, },
{ {
label: '操作', label: '操作',

29
src/views/eam/item/itemApplyMain/itemApplyMain.data.ts

@ -89,15 +89,31 @@ export const ItemApplyMain = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
dictType: DICT_TYPE.CENTER_SUBJECT_MAP_DEPT, dictType: DICT_TYPE.CENTER_SUBJECT_MAP_DEPT,
}, },
{
label: '创建者',
field: 'creator',
sort: 'custom',
isSearch: false
},
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
sort: 'custom',
formatter: dateFormatter, formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
isTable: true, isTable: true,
table: { form: {
width: 180, component: 'DatePicker',
componentProps: {
style: { width: '100%' },
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x'
}
}, },
isForm: false,
isSearch: true, isSearch: true,
search: { search: {
component: 'DatePicker', component: 'DatePicker',
@ -106,12 +122,7 @@ export const ItemApplyMain = useCrudSchemas(reactive<CrudSchema[]>([
type: 'daterange', type: 'daterange',
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
} }
}, }
isForm: false,
detail: {
width: 180,
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
}, },
{ {

51
src/views/eam/item/itemMaintenance/itemMaintenance.data.ts

@ -64,22 +64,6 @@ export const ItemMaintenance = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{
label: '创建时间',
field: 'createTime',
sort: 'custom',
formatter: dateFormatter,
isSearch: false,
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')]
}
},
isForm: false,
},
{ {
label: '维修原因', label: '维修原因',
field: 'reasons', field: 'reasons',
@ -110,6 +94,41 @@ export const ItemMaintenance = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{
label: '创建者',
field: 'creator',
sort: 'custom',
isSearch: false
},
{
label: '创建时间',
field: 'createTime',
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')]
}
}
},
// { // {
// label: '操作', // label: '操作',
// field: 'action', // field: 'action',

37
src/views/eam/item/itemOrderMain/itemOrderMain.data.ts

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter2 } from '@/utils/formatTime' import { dateFormatter } from '@/utils/formatTime'
import { Item } from '@/views/eam/basic/item/item.data' import { Item } from '@/views/eam/basic/item/item.data'
import * as ItemApi from '@/api/eam/basic/item' import * as ItemApi from '@/api/eam/basic/item'
import { validateHanset, validateEmail } from '@/utils/validator' import { validateHanset, validateEmail } from '@/utils/validator'
@ -140,6 +140,41 @@ export const ItemOrderMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{
label: '创建者',
field: 'creator',
sort: 'custom',
isSearch: false
},
{
label: '创建时间',
field: 'createTime',
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')]
}
}
},
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',

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

@ -50,14 +50,40 @@ export const ItemOutLocation = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isSearch: false, isSearch: false,
}, },
{
label: '创建者',
field: 'creator',
sort: 'custom',
isSearch: false
},
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
sort: 'custom',
formatter: dateFormatter, formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
isTable: true, isTable: true,
isForm: false 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: '操作', label: '操作',

2
src/views/eam/item/itemUseRecordMain/index.vue

@ -117,7 +117,7 @@
// //
const HeadButttondata = [ const HeadButttondata = [
// defaultButtons.defaultAddBtn({hasPermi:'item:itemUseRecordMain:create'}), // // defaultButtons.defaultAddBtn({hasPermi:'item:itemUseRecordMain:create'}), //
// defaultButtons.defaultExportBtn(null), // defaultButtons.defaultExportBtn(null), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), // defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), // defaultButtons.defaultSetBtn(null), //

39
src/views/eam/item/itemUseRecordMain/itemUseRecordMain.data.ts

@ -8,7 +8,8 @@ const { t } = useI18n() // 国际化
/** /**
* @returns {Array} * @returns {Array}
*/ */
export const ItemUseRecordMain = useCrudSchemas(reactive<CrudSchema[]>([ export const ItemUseRecordMain = useCrudSchemas(
reactive<CrudSchema[]>([
{ {
label: '收货单编号', label: '收货单编号',
field: 'number', field: 'number',
@ -16,12 +17,12 @@ export const ItemUseRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: true, isSearch: true,
table: { table: {
fixed: 'left' fixed: 'left'
}, }
}, },
{ {
label: '关联工单', label: '关联工单',
field: 'associatedNumber', field: 'associatedNumber',
sort: 'custom', sort: 'custom'
}, },
{ {
@ -70,7 +71,7 @@ export const ItemUseRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
} }
} }
}, }
// { // {
// label: '操作', // label: '操作',
// field: 'action', // field: 'action',
@ -81,20 +82,19 @@ export const ItemUseRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
// fixed: 'right' // fixed: 'right'
// } // }
// } // }
])) ])
)
//表单校验 //表单校验
export const ItemUseRecordMainRules = reactive({ export const ItemUseRecordMainRules = reactive({
number: [ number: [required, { max: 20, message: '请输入收货订单号', trigger: 'blur' }]
required,
{ max: 20, message: '请输入收货订单号', trigger: 'blur' },
]
}) })
/** /**
* @returns {Array} * @returns {Array}
*/ */
export const ItemInLocationInaccount = useCrudSchemas(reactive<CrudSchema[]>([ export const ItemInLocationInaccount = useCrudSchemas(
reactive<CrudSchema[]>([
{ {
label: '备件编号', label: '备件编号',
field: 'itemNumber', field: 'itemNumber',
@ -107,13 +107,14 @@ export const ItemInLocationInaccount = useCrudSchemas(reactive<CrudSchema[]>([
searchTitle: '备件信息', searchTitle: '备件信息',
searchAllSchemas: Item.allSchemas, // 查询弹窗所需类 searchAllSchemas: Item.allSchemas, // 查询弹窗所需类
searchPage: ItemApi.getItemPage, // 查询弹窗所需分页方法 searchPage: ItemApi.getItemPage, // 查询弹窗所需分页方法
searchCondition: [{ searchCondition: [
{
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',
isMainValue: false isMainValue: false
} }
] ]
}, }
}, },
{ {
label: '库位编号', label: '库位编号',
@ -122,8 +123,8 @@ export const ItemInLocationInaccount = useCrudSchemas(reactive<CrudSchema[]>([
isForm: false, isForm: false,
isSearch: true, isSearch: true,
table: { table: {
width: 180, width: 180
}, }
}, },
{ {
label: '入库类型', label: '入库类型',
@ -155,13 +156,11 @@ export const ItemInLocationInaccount = useCrudSchemas(reactive<CrudSchema[]>([
min: 1, min: 1,
precision: 6 precision: 6
} }
}, }
])) ])
)
//表单校验 //表单校验
export const ItemInLocationInaccountRules = reactive({ export const ItemInLocationInaccountRules = reactive({
itemNumber: [ itemNumber: [{ required: true, message: '请输入备件编号', trigger: 'blur' }]
{ required: true, message: '请输入备件编号', trigger: 'blur' },
],
}) })

32
src/views/eam/item/replaceItemDes/replaceItemDes.data.ts

@ -61,13 +61,41 @@ export const ReplaceItemDes = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
},
{
label: '创建者',
field: 'creator',
sort: 'custom',
isSearch: false
}, },
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
sort: 'custom',
formatter: dateFormatter, formatter: dateFormatter,
isForm: false 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')]
}
}
}, },
{ {
label: '操作', label: '操作',

Loading…
Cancel
Save