Browse Source

导出修改

master
叶佳兴 3 weeks ago
parent
commit
ae9332a44b
  1. 677
      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. 54
      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. 57
      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. 44
      src/views/eam/item/itemOutLocation/itemOutLocation.data.ts
  12. 2
      src/views/eam/item/itemUseRecordMain/index.vue
  13. 261
      src/views/eam/item/itemUseRecordMain/itemUseRecordMain.data.ts
  14. 42
      src/views/eam/item/replaceItemDes/replaceItemDes.data.ts

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

@ -16,370 +16,375 @@ export const ItemRules = reactive({
{ required: true, message: '请选择备件单位', trigger: 'blur' },
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
classification: [
{ required: true, message: '请选择备件分类', trigger: 'blur' },
],
describes: [
{ max: 600, message: '不得超过600个字符', trigger: 'blur' }
],
classification: [{ required: true, message: '请选择备件分类', trigger: 'blur' }],
describes: [{ max: 600, message: '不得超过600个字符', trigger: 'blur' }]
})
export const Item = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '备件编号',
field: 'number',
sort: 'custom',
isSearch: true,
isForm: true,
table: {
width: 180,
fixed: 'left'
},
},
{
label: '备件名称',
field: 'name',
sort: 'custom',
isSearch: true,
table: {
width: 110,
export const Item = useCrudSchemas(
reactive<CrudSchema[]>([
{
label: '备件编号',
field: 'number',
sort: 'custom',
isSearch: true,
isForm: true,
table: {
width: 180,
fixed: 'left'
}
},
},
{
label: '规格',
field: 'specifications',
sort: 'custom',
},
{
label: '是否常储',
field: 'isConstant',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isSearch: false,
isTable: true,
sort: 'custom',
table: {
width: 110,
{
label: '备件名称',
field: 'name',
sort: 'custom',
isSearch: true,
table: {
width: 110
}
},
tableForm: {
type: 'Select',
inactiveValue: 'FALSE',
disabled: true
{
label: '规格',
field: 'specifications',
sort: 'custom'
},
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
{
label: '是否常储',
field: 'isConstant',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isSearch: false,
isTable: true,
sort: 'custom',
table: {
width: 110
},
tableForm: {
type: 'Select',
inactiveValue: 'FALSE',
activeValue: 'TRUE'
disabled: true
},
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
}
}
},
{
label: '科目',
field: 'subject',
sort: 'custom',
dictType: DICT_TYPE.ITEM_SUBJECT,
dictClass: 'string',
isSearch: false,
isTable: true,
tableForm: {
type: 'Select'
}
},
},
{
label: '科目',
field: 'subject',
sort: 'custom',
dictType: DICT_TYPE.ITEM_SUBJECT,
dictClass: 'string',
isSearch: false,
isTable: true,
tableForm: {
type: 'Select'
}
},
{
label: '科目代码',
field: 'subjectCode',
sort: 'custom',
isTable: true,
},
{
label: '单位',
field: 'uom',
sort: 'custom',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
isSearch: false,
isTable: true,
tableForm: {
type: 'Select'
}
},
{
label: '类别',
field: 'category',
sort: 'custom',
dictType: DICT_TYPE.ITEM_CATEGORY,
dictClass: 'string',
isSearch: false,
isTable: true,
tableForm: {
type: 'Select'
}
},
{
label: '备件分类',
field: 'classification',
sort: 'custom',
dictType: DICT_TYPE.CLASSIFICATION,
dictClass: 'string',
isSearch: false,
isTable: true,
tableForm: {
type: 'Select'
}
},
{
label: '区域',
field: 'region',
sort: 'custom',
dictType: DICT_TYPE.ITEM_REGION,
dictClass: 'string',
isSearch: false,
isTable: true,
tableForm: {
type: 'Select'
}
},
{
label: '采购方式',
field: 'purchaseWay',
sort: 'custom',
dictType: DICT_TYPE.PURCHASE_WAY,
dictClass: 'string',
isSearch: false,
isTable: true,
tableForm: {
type: 'Select'
}
},
{
label: '物料类型',
field: 'itemType',
sort: 'custom',
isSearch: true,
table: {
width: 110,
{
label: '科目代码',
field: 'subjectCode',
sort: 'custom',
isTable: true
},
},
{
label: '单价',
field: 'singlePrice',
sort: 'custom',
},
{
label: '重采购点',
field: 'reprocurement',
sort: 'custom',
table: {
width: 110,
{
label: '单位',
field: 'uom',
sort: 'custom',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
isSearch: false,
isTable: true,
tableForm: {
type: 'Select'
}
},
form: {
component: 'InputNumber',
value: 0
{
label: '类别',
field: 'category',
sort: 'custom',
dictType: DICT_TYPE.ITEM_CATEGORY,
dictClass: 'string',
isSearch: false,
isTable: true,
tableForm: {
type: 'Select'
}
},
},
{
label: '安全库存',
field: 'safetyStock',
sort: 'custom',
isSearch: false,
isForm: true,
table: {
width: 110,
{
label: '备件分类',
field: 'classification',
sort: 'custom',
dictType: DICT_TYPE.CLASSIFICATION,
dictClass: 'string',
isSearch: false,
isTable: true,
tableForm: {
type: 'Select'
}
},
form: {
component: 'InputNumber',
value: 0,
{
label: '区域',
field: 'region',
sort: 'custom',
dictType: DICT_TYPE.ITEM_REGION,
dictClass: 'string',
isSearch: false,
isTable: true,
tableForm: {
type: 'Select'
}
},
},
{
label: '成本中心',
field: 'cost',
sort: 'custom',
table: {
width: 110,
{
label: '采购方式',
field: 'purchaseWay',
sort: 'custom',
dictType: DICT_TYPE.PURCHASE_WAY,
dictClass: 'string',
isSearch: false,
isTable: true,
tableForm: {
type: 'Select'
}
},
},
{
label: '采购员',
field: 'purchaser',
sort: 'custom',
table: {
width: 100,
{
label: '物料类型',
field: 'itemType',
sort: 'custom',
isSearch: true,
table: {
width: 110
}
},
},
{
label: '财务',
field: 'financer',
sort: 'custom',
},
{
label: '是否以旧换新',
field: 'isRadeIn',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isSearch: false,
isTable: true,
sort: 'custom',
table: {
width: 140
{
label: '单价',
field: 'singlePrice',
sort: 'custom'
},
tableForm: {
type: 'Select',
inactiveValue: 'FALSE',
disabled: true
{
label: '重采购点',
field: 'reprocurement',
sort: 'custom',
table: {
width: 110
},
form: {
component: 'InputNumber',
value: 0
}
},
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
{
label: '安全库存',
field: 'safetyStock',
sort: 'custom',
isSearch: false,
isForm: true,
table: {
width: 110
},
form: {
component: 'InputNumber',
value: 0
}
},
{
label: '成本中心',
field: 'cost',
sort: 'custom',
table: {
width: 110
}
},
{
label: '采购员',
field: 'purchaser',
sort: 'custom',
table: {
width: 100
}
}
},
{
label: '是否框架协议',
field: 'isFramework',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isSearch: false,
isTable: true,
sort: 'custom',
table: {
width: 140
},
tableForm: {
type: 'Select',
inactiveValue: 'FALSE',
disabled: true
{
label: '财务',
field: 'financer',
sort: 'custom'
},
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
{
label: '是否以旧换新',
field: 'isRadeIn',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isSearch: false,
isTable: true,
sort: 'custom',
table: {
width: 140
},
tableForm: {
type: 'Select',
inactiveValue: 'FALSE',
activeValue: 'TRUE'
disabled: true
},
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
}
}
},
// {
// label: '是否可用',
// field: 'available',
// dictType: DICT_TYPE.TRUE_FALSE,
// dictClass: 'string',
// isSearch: false,
// isTable: true,
// sort: 'custom',
// table: {
// width: 150
// },
// tableForm: {
// type: 'Select',
// inactiveValue: 'FALSE',
// disabled: true
// },
// form: {
// component: 'Switch',
// value: 'TRUE',
// componentProps: {
// inactiveValue: 'FALSE',
// activeValue: 'TRUE'
// }
// }
// },
{
label: '创建时间',
field: 'createTime',
sort: 'custom',
formatter: dateFormatter,
isForm: false,
table: {
width: 170
},
},
{
label: '描述',
field: 'describes',
sort: 'custom',
form: {
component: 'Input',
componentProps: {
type: 'textarea',
{
label: '是否框架协议',
field: 'isFramework',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isSearch: false,
isTable: true,
sort: 'custom',
table: {
width: 140
},
tableForm: {
type: 'Select',
inactiveValue: 'FALSE',
disabled: true
},
colProps: {
span: 24,
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
}
}
},
// {
// label: '图片',
// field: 'upload',
// isTable: true,
// },
// {
// label: '文件',
// field: 'filePathListView',
// sort: 'custom',
// isTable: false,
// table: {
// },
// form: {
// component: 'UploadFile',
// componentProps: {
// }
// }
// },
{
label: '文件',
field: 'attachmentFileList',
sort: 'custom',
isTable: false,
isForm: true,
table: {
},
form: {
component: 'UploadImgs',
colProps: {
span: 24
// {
// label: '是否可用',
// field: 'available',
// dictType: DICT_TYPE.TRUE_FALSE,
// dictClass: 'string',
// isSearch: false,
// isTable: true,
// sort: 'custom',
// table: {
// width: 150
// },
// tableForm: {
// type: 'Select',
// inactiveValue: 'FALSE',
// disabled: true
// },
// form: {
// component: 'Switch',
// value: 'TRUE',
// componentProps: {
// inactiveValue: 'FALSE',
// activeValue: 'TRUE'
// }
// }
// },
{
label: '描述',
field: 'describes',
sort: 'custom',
form: {
component: 'Input',
componentProps: {
type: 'textarea'
},
colProps: {
span: 24
}
}
},
{
label: '创建者',
field: 'creator',
sort: 'custom',
isSearch: false
},
{
label: '创建时间',
field: 'createTime',
sort: 'custom',
formatter: dateFormatter,
isForm: false,
table: {
width: 170
}
},
// {
// label: '图片',
// field: 'upload',
// isTable: true,
// },
// {
// label: '文件',
// field: 'filePathListView',
// sort: 'custom',
// isTable: false,
// table: {
// },
// form: {
// component: 'UploadFile',
// componentProps: {
// }
// }
// },
{
label: '文件',
field: 'attachmentFileList',
sort: 'custom',
isTable: false,
isForm: true,
table: {},
form: {
component: 'UploadImgs',
colProps: {
span: 24
}
}
},
{
label: '操作',
field: 'action',
isForm: false,
table: {
width: 200,
fixed: 'right'
}
}
},
{
label: '操作',
field: 'action',
isForm: false,
table: {
width: 200,
fixed: 'right'
}
}
]))
])
)
export const ItemSearchTable = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '备件编号',
field: 'number',
sort: 'custom',
isSearch: true,
isForm: false,
table: {
fixed: 'left'
export const ItemSearchTable = useCrudSchemas(
reactive<CrudSchema[]>([
{
label: '备件编号',
field: 'number',
sort: 'custom',
isSearch: true,
isForm: false,
table: {
fixed: 'left'
}
},
},
{
label: '备件名称',
field: 'name',
sort: 'custom',
isSearch: true,
table: {
{
label: '备件名称',
field: 'name',
sort: 'custom',
isSearch: true,
table: {}
},
},
{
label: '数量',
field: 'qty',
sort: 'custom',
}
]))
{
label: '数量',
field: 'qty',
sort: 'custom'
}
])
)

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

@ -26,6 +26,41 @@ export const AdjustRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom',
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: '操作',
// field: 'action',

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

@ -115,6 +115,41 @@ export const ApplicationRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
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: '操作',
field: 'action',

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

@ -59,25 +59,41 @@ export const CountRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
type: 'Select'
}
},
{
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,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
}
},
{
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: '操作',
field: 'action',

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

@ -1,6 +1,7 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { LocationArea, LocationAreaRules } from '../../basic/locationArea/locationArea.data'
import * as LocationAreaApi from '@/api/eam/basic/locationArea'
import { dateFormatter } from '@/utils/formatTime'
// 表单校验
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: '操作',
field: 'action',

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

@ -35,6 +35,41 @@ export const CountJobMain = useCrudSchemas(reactive<CrudSchema[]>([
isForm: 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: '操作',
field: 'action',

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

@ -531,6 +531,41 @@ export const ItemAccounts = useCrudSchemas(
},
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: '操作',
field: 'action',

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

@ -90,29 +90,40 @@ export const ItemApplyMain = useCrudSchemas(reactive<CrudSchema[]>([
dictType: DICT_TYPE.CENTER_SUBJECT_MAP_DEPT,
},
{
label: '创建时间',
field: 'createTime',
sort: 'custom',
formatter: dateFormatter,
isTable: true,
table: {
width: 180,
},
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')]
}
},
isForm: false,
detail: {
width: 180,
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
},
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: '操作',

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: '维修原因',
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: '操作',
// field: 'action',

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

@ -1,5 +1,5 @@
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 * as ItemApi from '@/api/eam/basic/item'
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: '操作',
field: 'action',

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

@ -50,15 +50,41 @@ export const ItemOutLocation = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom',
isSearch: false,
},
{
label: '创建时间',
field: 'createTime',
sort: 'custom',
formatter: dateFormatter,
isTable: true,
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: '操作',
field: 'action',

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

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

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

@ -8,160 +8,159 @@ const { t } = useI18n() // 国际化
/**
* @returns {Array}
*/
export const ItemUseRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '收货单编号',
field: 'number',
sort: 'custom',
isSearch: true,
table: {
fixed: 'left'
export const ItemUseRecordMain = useCrudSchemas(
reactive<CrudSchema[]>([
{
label: '收货单编号',
field: 'number',
sort: 'custom',
isSearch: true,
table: {
fixed: 'left'
}
},
{
label: '关联工单',
field: 'associatedNumber',
sort: 'custom'
},
},
{
label: '关联工单',
field: 'associatedNumber',
sort: 'custom',
},
{
label: '库存动作',
field: 'inventoryAction',
sort: 'custom',
dictType: DICT_TYPE.INVENTORY_ACTION,
dictClass: 'string',
isSearch: false,
isTable: true,
tableForm: {
type: 'Select'
}
},
{
label: '操作者',
field: 'creator',
sort: 'custom',
isSearch: false
label: '库存动作',
field: 'inventoryAction',
sort: 'custom',
dictType: DICT_TYPE.INVENTORY_ACTION,
dictClass: 'string',
isSearch: false,
isTable: true,
tableForm: {
type: 'Select'
}
},
{
label: '操作者',
field: 'creator',
sort: 'custom',
isSearch: false
},
{
label: '操作时间',
field: 'createTime',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
{
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')]
}
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',
// isDetail: false,
// isForm: false,
// table: {
// width: 200,
// 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',
// isDetail: false,
// isForm: false,
// table: {
// width: 200,
// fixed: 'right'
// }
// }
])
)
//表单校验
export const ItemUseRecordMainRules = reactive({
number: [
required,
{ max: 20, message: '请输入收货订单号', trigger: 'blur' },
]
number: [required, { max: 20, message: '请输入收货订单号', trigger: 'blur' }]
})
/**
* @returns {Array}
*/
export const ItemInLocationInaccount = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '备件编号',
field: 'itemNumber',
sort: 'custom',
isSearch: true,
tableForm: {
isInpuFocusShow: true,
searchListPlaceholder: '请选择备件编号',
searchField: 'number',
searchTitle: '备件信息',
searchAllSchemas: Item.allSchemas, // 查询弹窗所需类
searchPage: ItemApi.getItemPage, // 查询弹窗所需分页方法
searchCondition: [{
key: 'available',
value: 'TRUE',
isMainValue: false
export const ItemInLocationInaccount = useCrudSchemas(
reactive<CrudSchema[]>([
{
label: '备件编号',
field: 'itemNumber',
sort: 'custom',
isSearch: true,
tableForm: {
isInpuFocusShow: true,
searchListPlaceholder: '请选择备件编号',
searchField: 'number',
searchTitle: '备件信息',
searchAllSchemas: Item.allSchemas, // 查询弹窗所需类
searchPage: ItemApi.getItemPage, // 查询弹窗所需分页方法
searchCondition: [
{
key: 'available',
value: 'TRUE',
isMainValue: false
}
]
}
]
},
},
{
label: '库位编号',
field: 'locationNumber',
sort: 'custom',
isForm: false,
isSearch: true,
table: {
width: 180,
{
label: '库位编号',
field: 'locationNumber',
sort: 'custom',
isForm: false,
isSearch: true,
table: {
width: 180
}
},
},
{
label: '入库类型',
field: 'type',
sort: 'custom',
isSearch: true,
dictType: DICT_TYPE.ITEM_OUT_IN_TYPE,
dictClass: 'string',
form: {
component: 'Select'
}
},
{
label: '数量',
field: 'qty',
sort: 'custom',
table: {
width: 150
{
label: '入库类型',
field: 'type',
sort: 'custom',
isSearch: true,
dictType: DICT_TYPE.ITEM_OUT_IN_TYPE,
dictClass: 'string',
form: {
component: 'Select'
}
},
form: {
component: 'InputNumber',
componentProps: {
{
label: '数量',
field: 'qty',
sort: 'custom',
table: {
width: 150
},
form: {
component: 'InputNumber',
componentProps: {
min: 1,
precision: 6
}
},
tableForm: {
type: 'InputNumber',
min: 1,
precision: 6
}
},
tableForm: {
type: 'InputNumber',
min: 1,
precision: 6
}
},
]))
])
)
//表单校验
export const ItemInLocationInaccountRules = reactive({
itemNumber: [
{ required: true, message: '请输入备件编号', trigger: 'blur' },
],
itemNumber: [{ required: true, message: '请输入备件编号', trigger: 'blur' }]
})

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

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

Loading…
Cancel
Save