Browse Source

YT-170:客户对账单字段展示

syhx
songguoqiang 2 months ago
parent
commit
1c4329d8e0
  1. 40
      src/views/wms/deliversettlementManage/customerStatement/customerStatement/customerStatementMain.data.ts

40
src/views/wms/deliversettlementManage/customerStatement/customerStatement/customerStatementMain.data.ts

@ -12,6 +12,7 @@ export const CustomerStatementMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: 'id', label: 'id',
field: 'id', field: 'id',
isDetail:false,
sort: 'custom', sort: 'custom',
isTable: false, isTable: false,
isForm: false, isForm: false,
@ -48,11 +49,21 @@ export const CustomerStatementMain = 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')]
} }
}, },
detail: {
dateFormat: 'YYYY-MM'
},
table: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
valueFormat: 'YYYY-MM'
}
},
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
type: 'datetime', type: 'datetime',
valueFormat: 'x' valueFormat: 'YYYY-MM'
} }
}, },
}, },
@ -69,11 +80,14 @@ export const CustomerStatementMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '重新比对更新时间', label: '重新比对时间',
field: 'comparisonTime', field: 'comparisonTime',
sort: 'custom', sort: 'custom',
isTable:false, isTable:false,
formatter: dateFormatter, formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -88,6 +102,9 @@ export const CustomerStatementMain = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isTable:false, isTable:false,
formatter: dateFormatter, formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -102,6 +119,9 @@ export const CustomerStatementMain = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isTable:false, isTable:false,
formatter: dateFormatter, formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -116,6 +136,9 @@ export const CustomerStatementMain = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isTable:false, isTable:false,
formatter: dateFormatter, formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -130,6 +153,9 @@ export const CustomerStatementMain = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isTable:false, isTable:false,
formatter: dateFormatter, formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -144,6 +170,9 @@ export const CustomerStatementMain = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isTable:false, isTable:false,
formatter: dateFormatter, formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -157,6 +186,9 @@ export const CustomerStatementMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'abrogateTime', field: 'abrogateTime',
sort: 'custom', sort: 'custom',
isTable:false, isTable:false,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
formatter: dateFormatter, formatter: dateFormatter,
form: { form: {
component: 'DatePicker', component: 'DatePicker',
@ -192,6 +224,9 @@ export const CustomerStatementMain = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
formatter: dateFormatter, formatter: dateFormatter,
isSearch: true, isSearch: true,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
search: { search: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -214,6 +249,7 @@ export const CustomerStatementMain = useCrudSchemas(reactive<CrudSchema[]>([
// }, // },
{ {
label: '操作', label: '操作',
isDetail:false,
field: 'action', field: 'action',
isForm: false, isForm: false,
table: { table: {

Loading…
Cancel
Save