|
@ -1,5 +1,5 @@ |
|
|
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|
|
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|
|
import { dateFormatter } from '@/utils/formatTime' |
|
|
import { dateFormatter,dateFormatterYM } from '@/utils/formatTime' |
|
|
import * as CustomerSaleInvoiceMainApi from '@/api/wms/customerSaleInvoiceMain' |
|
|
import * as CustomerSaleInvoiceMainApi from '@/api/wms/customerSaleInvoiceMain' |
|
|
const { t } = useI18n() // 国际化
|
|
|
const { t } = useI18n() // 国际化
|
|
|
|
|
|
|
|
@ -64,21 +64,24 @@ export const CustomerToolApportStatementForecastMain = useCrudSchemas(reactive<C |
|
|
label: '年月', |
|
|
label: '年月', |
|
|
field: 'yearsMonth', |
|
|
field: 'yearsMonth', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
formatter: dateFormatter, |
|
|
formatter: dateFormatterYM, |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
search: { |
|
|
search: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
valueFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
valueFormat: 'YYYY-MM', |
|
|
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')] |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
detail: { |
|
|
|
|
|
dateFormat: 'YYYY-MM' |
|
|
|
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
type: 'datetime', |
|
|
type: 'datetime', |
|
|
valueFormat: 'x' |
|
|
valueFormat: 'YYYY-MM' |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
@ -199,7 +202,6 @@ export const CustomerToolApportStatementForecastDetail = useCrudSchemas(reactive |
|
|
field: 'forecastAllocationAmount', |
|
|
field: 'forecastAllocationAmount', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
{ |
|
|
{ |
|
|
label: '操作', |
|
|
label: '操作', |
|
|
field: 'action', |
|
|
field: 'action', |
|
@ -215,13 +217,13 @@ export const CustomerToolApportStatementForecastDetail = useCrudSchemas(reactive |
|
|
export const ForecastWithBillDifference = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
export const ForecastWithBillDifference = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
{ |
|
|
{ |
|
|
label: '车型', |
|
|
label: '车型', |
|
|
field: 'number', |
|
|
field: 'vehicleType', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '模具分摊预测金额', |
|
|
label: '模具分摊预测金额', |
|
|
field: 'articleNumber', |
|
|
field: 'forecastAllocationAmount', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
}, |
|
|
}, |
|
|