Browse Source

增加创建人和创建时间

master_hella_20240701
liuchen864 5 months ago
parent
commit
cff8dc22c2
  1. 34
      src/views/wms/inventoryManage/expectin/expectin.data.ts
  2. 34
      src/views/wms/inventoryManage/expectout/expectout.data.ts
  3. 33
      src/views/wms/inventoryManage/transaction/transaction.data.ts
  4. 33
      src/views/wms/inventoryManage/transferlog/transferlog.data.ts

34
src/views/wms/inventoryManage/expectin/expectin.data.ts

@ -1,4 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
/**
* @returns {Array}
@ -97,6 +98,37 @@ export const Expectin = useCrudSchemas(reactive<CrudSchema[]>([
width: 150
},
},
{
label: '创建时间',
field: 'createTime',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: 180
},
form: {
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
isForm: false
},
{
label: '创建者',
field: 'creator',
sort: 'custom',
table: {
width: 150
},
isForm: false
},
]))
// 表单校验
@ -131,4 +163,4 @@ export const ExpectinRules = reactive({
ownerCode: [
{ required: true, message: '请选择货主代码', trigger: 'change' }
],
})
})

34
src/views/wms/inventoryManage/expectout/expectout.data.ts

@ -1,4 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
/**
* @returns {Array}
@ -105,6 +106,37 @@ export const Expectout = useCrudSchemas(reactive<CrudSchema[]>([
width: 150
},
},
{
label: '创建时间',
field: 'createTime',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: 180
},
form: {
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
isForm: false
},
{
label: '创建者',
field: 'creator',
sort: 'custom',
table: {
width: 150
},
isForm: false
},
]))
// 表单校验
@ -142,4 +174,4 @@ export const ExpectoutRules = reactive({
ownerCode: [
{ required: true, message: '请选择货主代码', trigger: 'change' }
],
})
})

33
src/views/wms/inventoryManage/transaction/transaction.data.ts

@ -315,6 +315,37 @@ export const Transaction = useCrudSchemas(reactive<CrudSchema[]>([
width: 150
},
},
{
label: '创建时间',
field: 'createTime',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: 180
},
form: {
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
isForm: false
},
{
label: '创建者',
field: 'creator',
sort: 'custom',
table: {
width: 150
},
isForm: false
},
]))
// 表单校验
@ -349,4 +380,4 @@ export const TransactionRules = reactive({
inventoryStatus: [
{ required: true, message: '请选择库存状态', trigger: 'change' }
],
})
})

33
src/views/wms/inventoryManage/transferlog/transferlog.data.ts

@ -355,6 +355,37 @@ export const Transferlog = useCrudSchemas(reactive<CrudSchema[]>([
width: 150
},
},
{
label: '创建时间',
field: 'createTime',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: 180
},
form: {
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
isForm: false
},
{
label: '创建者',
field: 'creator',
sort: 'custom',
table: {
width: 150
},
isForm: false
},
]))
// 表单校验
@ -377,4 +408,4 @@ export const TransferlogRules = reactive({
itemCode: [
{ required: true, message: '请选择物料代码', trigger: 'change' }
],
})
})

Loading…
Cancel
Save