| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234 |
- import HttpAxios from '@/utils/axios'
- const base = import.meta.env.VITE_API_HOST
- const baseUrl = `${base}/main_new_version.php`
- /**
- * 获取report template management表格列数据
- */
- export const getReportTemplateManagementTable = (params: any, config: any) => {
- return HttpAxios.post(
- `${baseUrl}`,
- {
- action: 'report_config',
- operate: 'search',
- ...params
- },
- config
- )
- }
- /**
- * 更改Report Template Management表格 Is Active状态
- */
- export const changeReportTemplateIsActive = (params: any, config: any) => {
- return HttpAxios.post(
- `${baseUrl}`,
- {
- action: 'report_config',
- operate: 'active',
- ...params
- },
- config
- )
- }
- /**
- * 获取Report Fields Configuration 列表数据
- */
- export const getReportFieldsConfiguration = (params: any, config: any) => {
- return HttpAxios.get(
- `${baseUrl}`,
- {
- action: 'report_config',
- operate: 'report_field_load',
- ...params
- },
- config
- )
- }
- /**
- * Create New Report Template页面获取Specific Roles的Party ID数据
- */
- export const getSpecificRolesPartyID = (params: any, config: any) => {
- return HttpAxios.post(
- `${baseUrl}`,
- {
- action: 'ajax',
- operate: 'autody_extend',
- type: 'apex',
- ...params
- },
- config
- )
- }
- /**
- * Create New Report Template页面获取Specific Roles的Group Name数据
- */
- export const getSpecificRolesGroupName = (params: any, config: any) => {
- return HttpAxios.post(
- `${baseUrl}`,
- {
- action: 'ajax',
- operate: 'autody_extend',
- type: 'contact_group',
- ...params
- },
- config
- )
- }
- /**
- * 保存 Create New Report Template页面数据
- */
- export const saveNewReportTemplate = (params: any, config: any) => {
- return HttpAxios.post(
- `${baseUrl}`,
- {
- action: 'report_config',
- operate: 'save',
- ...params
- },
- config
- )
- }
- /**
- * 编辑report template
- */
- export const editReportTemplate = (params: any, config: any) => {
- return HttpAxios.post(
- `${baseUrl}`,
- {
- action: 'report_config',
- operate: 'add',
- ...params
- },
- config
- )
- }
- /**
- * 获取Report页表格数据
- */
- export const getReportPageTable = (params: any, config: any) => {
- return HttpAxios.post(
- `${baseUrl}`,
- {
- action: 'shipment_status_report',
- operate: 'report_search',
- ...params
- },
- config
- )
- }
- /**
- * 获取Report detail页表格数据
- */
- export const getReportDetailTable = (params: any, config: any) => {
- return HttpAxios.post(
- `${baseUrl}`,
- {
- action: 'shipment_status_report',
- operate: 'report_detail',
- ...params
- },
- config
- )
- }
- /**
- * 导出Report detail页表格数据
- */
- export const exportReportDetailTable = (params: any, config: any) => {
- return HttpAxios.post(
- `${baseUrl}`,
- {
- action: 'shipment_status_report',
- operate: 'excel',
- ...params
- },
- config
- )
- }
- /**
- * 获取 Manage Fields 列表数据
- */
- export const getManageFieldsList = (params: any, config: any) => {
- return HttpAxios.post(
- `${baseUrl}`,
- {
- action: 'shipment_status_report',
- operate: 'manage_fileds',
- ...params
- },
- config
- )
- }
- /**
- * 保存 Manage Fields 列表数据
- */
- export const saveManageFieldsList = (params: any, config: any) => {
- return HttpAxios.post(
- `${baseUrl}`,
- {
- action: 'shipment_status_report',
- operate: 'manage_fileds',
- ...params
- },
- config
- )
- }
- /**
- * 获取 report schedule 页面数据
- */
- export const getReportScheduleData = (params: any, config: any) => {
- return HttpAxios.post(
- `${baseUrl}`,
- {
- action: 'shipment_status_report',
- operate: 'report_schedule',
- ...params
- },
- config
- )
- }
- /**
- * 保存 report schedule 页面数据
- */
- export const saveReportScheduleData = (params: any, config: any) => {
- return HttpAxios.post(
- `${baseUrl}`,
- {
- action: 'shipment_status_report',
- operate: 'report_schedule',
- ...params
- },
- config
- )
- }
- /**
- * 获取 report schedule 表格数据
- */
- export const getReportScheduleTable = (params: any, config: any) => {
- return HttpAxios.post(
- `${baseUrl}`,
- {
- action: 'shipment_status_report',
- operate: 'report_schedule_search',
- ...params
- },
- config
- )
- }
|