get('/user', function (Request $request) { return $request->user(); }); $api = app('Dingo\Api\Routing\Router'); $api->version('v1', function($api) { /** @var $api Dingo\Api\Routing\Router */ $api->get('/test', function (Request $request) { return 'Hello, your IP is ' . $request->getClientIp(); }); $api->group(['namespace' => 'App\Http\Controllers\Api', 'middleware' => ['requestLog']], function ($api) { //登录 $api->post('/login', 'UserController@login'); }); //单个文件上传 $api->post('/fileUpload', 'App\Http\Controllers\Api\OrderController@fileUpload'); $api->get('/orderHistoryExport', 'App\Http\Controllers\Api\OrderController@orderHistoryExport'); // 登录后调用接口 /** @var Dingo\Api\Routing\Router $api */ $api->group(['namespace' => 'App\Http\Controllers\Api', 'middleware' => ['api.login', 'requestLog']], function ($api) { /* 修改已经锁单状态订单信息工具 1.确认修改字段 2.在对应修改记录表中插入数据 3.修改原始订单数据(总消耗表以及分表) */ $api->get('/tool/updateOrderData', 'ToolController@updateOrderData'); /* 撤销财务审核通过状态结算单工具 1.查询结算单是否已经开票 2.若已经开票且标记开票的走发票作废流程,不予手动修改 3.若发票已申请,但仍未通过,则将发票一并撤销(结算单表,结算单明细表,发票表,发票明细表) 4.撤销结算单以及发票数据之后将订单对应的状态也一起撤销(分表) */ $api->get('/tool/deleteStatements', 'ToolController@deleteStatements'); $api->get('/tool/getEditRecords', 'ToolController@getEditRecords'); //登出 $api->post('/loginOut', 'UserController@loginOut'); // 角色管理 $api->get('/permission/rolesList', 'RolePermissionController@rolesList'); $api->get('/permission/routeList', 'RolePermissionController@routeList'); $api->get('/permission/roleRoutes', 'RolePermissionController@roleRoutes'); $api->post('/permission/setRoleRoutes', 'RolePermissionController@setRoleRoutes'); $api->post('/permission/addRole', 'RolePermissionController@addRole'); $api->post('/permission/editRole', 'RolePermissionController@editRole'); $api->post('/permission/delRole', 'RolePermissionController@delRole'); // 权限管理 $api->get('/permission/rolePermissions', 'RolePermissionController@rolePermissions'); $api->post('/permission/addPermission', 'RolePermissionController@addPermission'); $api->post('/permission/editPermission', 'RolePermissionController@editPermission'); $api->get('/permission/getPermission', 'RolePermissionController@getPermissionListByParentId'); $api->post('/permission/delPermission', 'RolePermissionController@delPermission'); $api->post('/permission/changePermissionStatus', 'RolePermissionController@changePermissionStatus'); // 用户管理 $api->get('/user/users', 'UserController@users'); $api->post('/user/addUser', 'UserController@addUser'); $api->post('/user/editUser', 'UserController@editUser'); $api->post('/user/delUser', 'UserController@delUser'); $api->post('/user/resetPassword','UserController@resetPassword'); // 返点比例配置 $api->get('/config/rebateList', 'ConfigController@rebatePercentageConfigList'); $api->post('/config/rebateAdd', 'ConfigController@rebatePercentageConfigStore'); $api->post('/config/rebateEdit', 'ConfigController@rebatePercentageConfigUpdate'); $api->post('/config/rebateDel', 'ConfigController@rebatePercentageConfigDestroy'); // 账户配置 $api->get('/config/accountList', 'ConfigController@accountConfigList'); $api->post('/config/accountAdd', 'ConfigController@accountConfigStore'); $api->post('/config/accountEdit', 'ConfigController@accountConfigUpdate'); $api->post('/config/accountDel', 'ConfigController@accountConfigDestroy'); $api->get('/config/accountSelect', 'ConfigController@accountListSelect'); $api->post('/config/uploadAccount', 'ConfigController@uploadAccount'); //媒体配置 $api->get('/config/mediaList', 'ConfigController@mediaConfigList'); $api->post('/config/mediaAdd', 'ConfigController@mediaConfigStore'); $api->post('/config/mediaEdit', 'ConfigController@mediaConfigUpdate'); $api->post('/config/mediaDel', 'ConfigController@mediaConfigDestroy'); $api->get('/config/mediaListSelect', 'ConfigController@mediaListSelect'); // 平台配置 $api->get('/config/platformList', 'ConfigController@platformConfigList'); $api->post('/config/platformAdd', 'ConfigController@platformConfigStore'); $api->post('/config/platformEdit', 'ConfigController@platformConfigUpdate'); $api->post('/config/platformDel', 'ConfigController@platformConfigDestroy'); // 付款公司配置 $api->get('/config/companyList', 'ConfigController@companyConfigList'); $api->post('/config/companyAdd', 'ConfigController@companyConfigStore'); $api->post('/config/companyEdit', 'ConfigController@companyConfigUpdate'); $api->post('/config/companyDel', 'ConfigController@companyConfigDestroy'); // 客户全称配置 $api->get('/config/customerList', 'ConfigController@customerConfigList'); $api->post('/config/customerAdd', 'ConfigController@customerConfigStore'); $api->post('/config/customerEdit', 'ConfigController@customerConfigEdit'); $api->post('/config/customerDel', 'ConfigController@customerConfigDestroy'); // mcn配置 $api->get('/config/mcnList', 'ConfigController@mcnConfigList'); $api->post('/config/mcnAdd', 'ConfigController@mcnConfigStore'); $api->post('/config/mcnEdit', 'ConfigController@mcnConfigEdit'); $api->post('/config/mcnDel', 'ConfigController@mcnConfigDestroy'); //项目增删改查 $api->get('/project/index', 'ProjectController@index'); $api->get('/project/detail', 'ProjectController@detail'); $api->post('/project/add', 'ProjectController@add'); $api->post('/project/update', 'ProjectController@update'); $api->post('/project/batchDel', 'ProjectController@batchDel'); $api->get('/project/getEditInfo', 'ProjectController@getEditInfo'); //项目订单增删改查 $api->get('/order/projectOrder', 'OrderController@projectOrder'); $api->get('/order/detail', 'OrderController@detail'); $api->post('/order/add', 'OrderController@add'); $api->post('/order/update', 'OrderController@update'); $api->post('/order/batchDel', 'OrderController@batchDel'); $api->get('/order/getEditInfo', 'OrderController@getEditInfo'); $api->post('/order/lockOrder', 'OrderController@lockOrder'); $api->get('/order/columnSearch', 'OrderController@columnSearch'); $api->get('/order/index', 'OrderController@index'); //所有订单列表 $api->get('/order/orderMonthList', 'OrderController@orderMonthList'); //月度消耗表 $api->post('/order/lockMonthOrder', 'OrderController@lockMonthOrder'); //月度消耗表提交财务 //订单修改审核 $api->get('/order/getOrderEditing', 'OrderController@getOrderEditing'); //列表 $api->post('/order/verifyOrderEdit', 'OrderController@verifyOrderEdit'); //审核 $api->post('/order/delVerifyOrder', 'OrderController@delVerifyOrder'); //撤销审核 $api->get('/order/getOrderVeifyRecords', 'OrderController@getOrderVeifyRecords'); //审核记录 $api->get('/order/orderMonthVerifys', 'OrderController@orderMonthVerifys'); //月度审核 //订单模板导出导入 $api->get('/order/orderTemplateExport', 'OrderController@orderTemplateExport'); //模板导出 $api->post('/order/orderImport', 'OrderController@orderImport'); //订单导入 //开票逻辑 $api->get('/order/invoiceList', 'OrderController@invoiceList'); $api->get('/order/invoiceDetail', 'OrderController@invoiceDetail'); $api->post('/order/setInvoice', 'OrderController@setInvoice'); $api->post('/order/editInvoice', 'OrderController@editInvoice'); $api->post('/order/verifyInvoice', 'OrderController@verifyInvoice'); $api->post('/order/actualInvoiced', 'OrderController@actualInvoiced'); //标记已现实开票 $api->post('/order/delActualInvoiced', 'OrderController@delActualInvoiced'); //标记已现实开票 //项目文档管理 $api->get('/document/documentList', 'DocumentController@documentList'); $api->get('/document/documentDetail', 'DocumentController@documentDetail'); $api->post('/document/documentStore', 'DocumentController@documentStore'); $api->post('/document/documentAdd', 'DocumentController@documentAdd'); $api->post('/document/documentMove', 'DocumentController@documentMove'); $api->post('/document/documentRename', 'DocumentController@documentRename'); $api->post('/document/documentDel', 'DocumentController@documentDestroy'); //结算单 $api->post('/statements/add', 'NewStatementsController@add'); $api->get('/statements/detail', 'NewStatementsController@detail'); $api->get('/statements/index', 'NewStatementsController@index'); $api->post('/statements/update', 'NewStatementsController@update'); $api->post('/statements/verify', 'NewStatementsController@verify'); $api->post('/statements/preData', 'NewStatementsController@preData'); $api->post('/statements/setVerify', 'NewStatementsController@setVerify'); $api->post('/statements/delVerify', 'NewStatementsController@delVerify'); $api->post('/statements/pddStatus', 'NewStatementsController@pddStatus'); $api->get('/statements/export', 'NewStatementsController@export'); //批量修改订单最终收入金额 $api->post('/order/batchUpdate', 'OrderController@batchUpdate'); $api->get('/order/getOrderEditingDetail', 'OrderController@getOrderEditingDetail'); $api->get('/order/orderEditingExport', 'OrderController@orderEditingExport'); #报表 $api->get('/stastistics/orderMonthReport', 'StastisticsController@orderMonthReport'); $api->get('/stastistics/profitTrend', 'StastisticsController@profitTrend'); $api->get('/stastistics/salerPerformance', 'StastisticsController@salerPerformance'); $api->get('/stastistics/changeMonthTotal', 'StastisticsController@changeMonthTotal'); $api->post('/order/orderImportSecond', 'NewOrderController@orderImportSecond');#销售上传收入表 $api->get('/order/orderIncomeList', 'NewOrderController@orderIncomeList');#收入表数据列表 $api->post('/order/orderIcomeUpdate', 'NewOrderController@orderIncomeUpdate');#收入表单条数据修改 $api->post('/order/orderIncomeBatchDel', 'NewOrderController@orderIncomeBatchDel');#收入表批量删除 $api->get('/order/orderMcnList', 'NewOrderController@orderMcnList');#mcn表数据列表 $api->post('/order/orderMcnUpdate', 'NewOrderController@orderMcnUpdate');#mcn表单条数据修改 $api->post('/order/orderMcnBatchDel', 'NewOrderController@orderMcnBatchDel');#mcn表批量删除 //成本税率 $api->get('/config/costCompanys', 'OrderCostController@costCompanys'); //成本公司 $api->get('/config/taxRate', 'OrderCostController@taxRate'); $api->post('/config/setTaxRate', 'OrderCostController@setTaxRate'); $api->post('/config/delTaxRate', 'OrderCostController@delTaxRate'); #申请成本开票日期 $api->post('/cost/setCostInvoice', 'OrderCostController@setCostInvoice'); //申请 $api->get('/cost/costInvoiceApplyList', 'OrderCostController@costInvoiceApplyList'); //列表 $api->post('/cost/costApplyVerify', 'OrderCostController@costApplyVerify'); //审核 $api->post('/cost/delCostApply', 'OrderCostController@delCostApply'); //撤销 $api->get('/cost/getOrderListByCondition', 'OrderCostController@getOrderListByCondition');//根据条件获取订单列表 $api->get('/cost/costApplyDownload', 'OrderCostController@costApplyDownload');//下载单个成本开票申请对应的订单明细 $api->post('/cost/getInvoiceTotalAmount', 'OrderCostController@getInvoiceTotalAmount'); $api->get('/cost/getMediaList', 'OrderCostController@getMediaList');// 获取媒体名称列表 //签约公司 $api->get('/config/signCompanyList', 'OrderCostController@signCompanyList'); $api->post('/config/setSignCompany', 'OrderCostController@setSignCompany'); $api->post('/config/delSignCompany', 'OrderCostController@delSignCompany'); #申请线下成本开票日期 $api->post('/cost/setofflineCostInvoice', 'OrderCostController@setOfflineCostInvoice'); //申请 $api->get('/cost/offlineCostInvoiceApplyList', 'OrderCostController@offlineCostInvoiceApplyList'); //列表 $api->post('/cost/offlineCostApplyVerify', 'OrderCostController@offlineCostApplyVerify'); //审核 $api->post('/cost/delOfflineCostApply', 'OrderCostController@delOfflineCostApply'); //撤销 $api->get('/cost/offlineCostApplyDownload', 'OrderCostController@offlineCostApplyDownload');//下载单个成本开票申请对应的订单明细 $api->post('/cost/batchSetRedInvoice', 'NewOrderController@batchSetRedInvoice'); $api->post('/cost/orderImport', 'OrderCostController@orderImport'); $api->get('/cost/costIndex', 'OrderCostController@costIndex'); $api->post('/cost/costUpdate', 'OrderCostController@costUpdate'); $api->post('/cost/costDel', 'OrderCostController@costDel'); $api->get('/orderIndex', 'OrderCostController@orderIndex'); $api->post('/orderUpdate', 'OrderCostController@orderUpdate'); $api->get('/order/negativeIndex', 'OrderCostController@negativeIndex'); $api->get('/cost/offlineIndex', 'OrderCostController@offlineIndex'); $api->post('/cost/offlineUpdate', 'OrderCostController@offlineUpdate'); $api->post('/cost/offlineDel', 'OrderCostController@offlineDel'); $api->post('/order/batchSetNotes', 'OrderCostController@batchSetNotes'); $api->get('/order/incompleteList', 'OrderCostController@incompleteList'); $api->get('/order/allColumnSearch', 'OrderCostController@allColumnSearch'); $api->get('/order/allColumnSearchSecond', 'OrderCostController@allColumnSearchSecond'); $api->get('/orderIndexExport', 'OrderCostController@orderIndexExport'); $api->post('/order/lockMonthOrderSecond', 'NewOrderController@lockMonthOrderSecond'); //月度消耗表提交财务 $api->post('/order/unlockOrder', 'NewOrderController@unlockOrder'); // 解锁 财务退回 $api->post('/order/verifyZeroOrder', 'NewOrderController@verifyZeroOrder'); // 验证是否有零订单 $api->post('/order/deleteZeroOrder', 'NewOrderController@deleteZeroOrder'); // 删除零订单 $api->get('/order/zeroOrderList', 'NewOrderController@zeroOrderList'); // 零订单列表 $api->post('/order/batchVerifyDetail', 'NewOrderController@batchVerifyDetail'); // 批量审核修改记录详细 $api->post('/order/batchVerify', 'NewOrderController@batchVerify'); // 批量审批修改记录 $api->get('/order/getAllMontList', 'NewOrderController@getAllMonthList'); $api->post('/order/importUpdate', 'NewOrderController@importUpdate'); $api->get('/order/enableBatchUpdateField', 'NewOrderController@enableBatchUpdateField'); //签约公司账户配置管理 $api->get('/config/partyBAccountList', 'ConfigController@PartyBAccountList'); $api->post('/config/partyBAccountStore', 'ConfigController@PartyBAccountStore'); $api->post('/config/partyBAccountUpdate', 'ConfigController@PartyBAccountUpdate'); $api->post('/config/partyBAccountDestroy', 'ConfigController@PartyBAccountDestroy'); $api->post('/order/delVerifyOrderSecond', 'NewOrderController@delVerifyOrderSecond'); $api->post('/statementsComplement/add', 'StatementsComplementController@add'); $api->post('/statementsComplement/update', 'StatementsComplementController@update'); $api->get('/statementsComplement/index', 'StatementsComplementController@index'); $api->get('/statementsComplement/detail', 'StatementsComplementController@detail'); $api->post('/statementsComplement/verify', 'StatementsComplementController@verify'); $api->post('/statementsComplement/delVerify', 'StatementsComplementController@delVerify'); $api->post('/customerInvoicesComplement/add', 'CustomerInvoicesComplementController@add'); $api->post('/customerInvoicesComplement/update', 'CustomerInvoicesComplementController@update'); $api->get('/customerInvoicesComplement/index', 'CustomerInvoicesComplementController@index'); $api->get('/customerInvoicesComplement/detail', 'CustomerInvoicesComplementController@detail'); $api->post('/customerInvoicesComplement/verify', 'CustomerInvoicesComplementController@verify'); $api->post('/customerInvoicesComplement/actualInvoiced', 'CustomerInvoicesComplementController@actualInvoiced'); $api->post('/customerInvoicesComplement/delActualInvoiced', 'CustomerInvoicesComplementController@delActualInvoiced'); #3月份之前订单修改录入系统 $api->post('/past/orderImport', 'PastOrderController@orderImport'); $api->post('/past/add', 'PastOrderController@add'); $api->post('/past/update', 'PastOrderController@update'); $api->get('/past/index', 'PastOrderController@index'); $api->post('/past/submitVerify', 'PastOrderController@submitVerify'); $api->post('/past/orderVerify', 'PastOrderController@orderVerify'); $api->post('/past/batchOrderVerify', 'PastOrderController@batchOrderVerify'); $api->post('/past/batchDel', 'PastOrderController@batchDel'); #记账备份信息列表 $api->get('/backup/index', 'OrderBackUpController@index'); $api->get('/backup/export', 'OrderBackUpController@export'); # 导出文件列表 $api->get('/export/index', 'ExportController@index'); # 发票作废申请流程 $api->post('/customerInvoices/voidedOrderAdd', 'CustomerInvoicesController@voidedOrderAdd'); $api->post('/customerInvoices/verifyVoidedInvoice', 'CustomerInvoicesController@verifyVoidedInvoice'); $api->post('/customerInvoices/voidedOrderUpdate', 'CustomerInvoicesController@voidedOrderUpdate'); $api->post('/statements/reApply', 'NewStatementsController@reApply'); # 新版发票驳回撤销 $api->post('/customerInvoices/invoiceCancel', 'CustomerInvoicesController@invoiceCancel'); $api->post('/customerInvoices/editInvoiceNew', 'CustomerInvoicesController@editInvoiceNew'); $api->post('/customerInvoices/invoiceWithdraw', 'CustomerInvoicesController@invoiceWithdraw'); # 申请红票 $api->post('/customerInvoices/redApplyImport', 'CustomerInvoicesController@redApplyImport'); $api->get('/customerInvoices/redApplyOrders', 'CustomerInvoicesController@redApplyOrders'); $api->post('/customerInvoices/redApplyConfirm', 'CustomerInvoicesController@redApplyConfirm'); # 商务助理编辑回款信息(旧版,已废弃) $api->post('/orderCost/extraUpdate', 'OrderCostController@extraUpdate'); $api->post('/orderCost/orderCollectionDataSave', 'OrderCostController@orderCollectionDataSave'); // 客户全称对应开票信息修改记录展示 $api->get('/config/customerInvoiceInformationUpdateRecordsList', 'ConfigController@customerInvoiceInformationUpdateRecordsList'); // 收入表导入(新版,验证投放数据) $api->post('/orderIncome/salerOrderImportValidate', 'NewOrderController@salerOrderImportValidate'); $api->post('/orderIncome/salerOrderImportConfirm', 'NewOrderController@salerOrderImportConfirm'); // 出纳提醒商务获取发票 $api->post('/order/reminder', 'OrderController@reminder'); // 红字发票申请列表 $api->get('/customerInvoices/redInvoicesList', 'CustomerInvoicesController@redInvoicesList'); // 红字发票详情 $api->get('/customerInvoices/redInvoicesDetail', 'CustomerInvoicesController@redInvoicesDetail'); // 红字发票审核 $api->post('/customerInvoices/redInvoicesVerify', 'CustomerInvoicesController@redInvoicesVerify'); // 红字发票编辑提交 $api->post('/customerInvoices/redInvoicesEdit', 'CustomerInvoicesController@redInvoiceEdit'); // 第一次批量修改最终返点金额之后的额外修改记录展示 $api->get('/orderExtra/recordList', 'OrderCostController@recordList'); // 批量删除修改记录 $api->post('/orderExtra/batchDel', 'OrderCostController@batchDel'); // 设置预审信息 $api->post('/preAudit/preAuditRecordSave', 'ToolController@preAuditRecordSave'); // 预审信息展示 $api->get('/preAudit/getPreAuditRecord', 'ToolController@getPreAuditRecord'); $api->post('/statementsSeal/apply', 'StatementsSealController@statementsSealApply'); // 结算单盖章申请 $api->get('/statementsSeal/applyList', 'StatementsSealController@statementsSealApplyList'); // 结算单盖章申请列表 $api->get('/statementsSeal/details', 'StatementsSealController@statementsSealDetails'); // 结算单盖章申请详情 $api->get('/statementsSeal/verifyList', 'StatementsSealController@statementsSealVerifyList'); // 结算单盖章审核列表 $api->post('/statementsSeal/verify', 'StatementsSealController@statementsSealVerifyAction'); // 结算单盖章审核 $api->get('/statementsSeal/sealList', 'StatementsSealController@statementsSealList'); // 结算单标记盖章列表 $api->post('/statementsSeal/sealAction', 'StatementsSealController@statementsSealAction'); // 结算单盖章标记或取消标记 $api->post('/statementsSeal/remind', 'StatementsSealController@statementsSealRemind'); // 结算单盖章短信提醒 $api->get('/statementsFile/fileList', 'StatementsSealController@statementsFileList'); // 结算单归档列表 $api->post('/statementsFile/fileAction', 'StatementsSealController@statementsFileAction'); // 结算单归档 $api->get('/statementsFile/detailList', 'StatementsSealController@statementsFileDetailList'); // 结算单归档导出列表 $api->get('/statementsFile/detailExport', 'StatementsSealController@statementsFileDetailExport'); // 结算单归档导出 $api->post('/statementsSeal/del', 'StatementsSealController@statementsSealDel');// 结算单盖章撤销 }); });