| | |
| | | itemCategory: string |
| | | } |
| | | |
| | | export interface PlanChartReqVO { |
| | | itemNos?: [], |
| | | start?: Date, |
| | | end?: Date, |
| | | } |
| | | |
| | | // 查询列表 |
| | | export const getItemPage = (params: PageParam) => { |
| | | return request.get({ url: '/data/plan-item/page', params }) |
| | |
| | | return request.get({ url: '/data/plan-item/getList', params}) |
| | | } |
| | | |
| | | export const validateAsNumber = (rule, value, callback) => { |
| | | const regex = /^(\-|\+)?\d+(\.\d+)?$/; |
| | | if (!regex.test(value)) { |
| | | callback(new Error('请输入数字!')); |
| | | } |
| | | // 查询Plan图表 |
| | | export const getPlanChart = (data: PlanChartReqVO) => { |
| | | return request.post({ url: '/data/api/query-plans/chart', data }) |
| | | } |
| | | |
| | | // 导出Plan值 |
| | | export const exportPlanValue = (data: PlanChartReqVO) => { |
| | | return request.post({ url: '/data/api/export-plan/history-value', data }) |
| | | } |