12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- import service from '../utils/js/request'
- const taskReport = {
- getDayReports: function(reportDate, userId) {
- return service({
- url: '/personDayReport/getReportsByReportDateAndUser',
- method: 'POST',
- data: {
- reportDate: reportDate,
- userId: userId
- }
- })
- },
- getReportObject: function() {
- return service({
- url: '/personDayReport/getReportObject',
- method: 'GET',
- })
- },
- getReportTasks: function(param) {
- return service({
- url: '/personDayReport/getReportTasks/' + param,
- method: 'GET'
- })
- },
- personDayReportAdd: function(param) {
- return service({
- url: "/personDayReport/add",
- method: "POST",
- data: param
- })
- },
- personDayReportEdit: function(param) {
- return service({
- url: "/personDayReport/edit",
- method: "POST",
- data: param
- })
- },
- personDayReportDelete: function(param) {
- return service({
- url: '/personDayReport/delete',
- method: 'POST',
- data: param
- })
- },
- getReportFormData: function(param) {
- return service({
- url: '/personWeekReport/getTaskReportFormData',
- method: 'POST',
- data: param
- })
- },
- monthReportAdd: function(param) {
- return service({
- url: '/personWeekReport/reportAdd',
- method: 'POST',
- data: param
- })
- },
- monthReportEdit: function(param) {
- return service({
- url: '/personWeekReport/reportEdit',
- method: 'POST',
- data: param
- })
- },
- getEmpTree:function(){
- return service({
- url:"/team/getEmpTreeData",
- method:"GET"
- })
- },
- getPersonReportDetail:function(param){
- return service({
- url:"/personDayReport/getPersonReportDetail",
- method:"POST",
- data:param
- })
- },
- getOverTime:function(param){
- return service({
- url:"/personDayReport/getOverTime",
- method:"POST",
- data:param
- })
- },
- getLeaveTime:function(param){
- return service({
- url:"/personDayReport/getLeaveTime",
- method:"POST",
- data:param
- })
- }
- }
- export default taskReport
|