| | |
| | | |
| | | import { get, post } from '../baseRequset'; |
| | | import { getLedgerSummaryList, getLedgerDetailList } from '../../model/ledger/ledgerSummary'; |
| | | import { getSelfPatrolList } from "../../model/selfPatrol"; |
| | | import { getSelfPatrolList } from '../../model/selfPatrol'; |
| | | |
| | | const app = getApp(); |
| | | |
| | |
| | | date: date, |
| | | }, |
| | | }).then(res => { |
| | | res.data.data = getSelfPatrolList(res.data.data) |
| | | res.data.data = getSelfPatrolList(res.data.data); |
| | | return res.data; |
| | | }); |
| | | } |
| | |
| | | }); |
| | | } |
| | | |
| | | export { fetchPublish, fetchPublishedTask, fetchSelfPatrolType, fetchSelfPatrolDetails }; |
| | | // 删除自巡查任务 |
| | | function deleteTask(taskId) { |
| | | return _delete({ |
| | | url: `/selfPatrol/task`, |
| | | params: { |
| | | taskId: taskId, |
| | | }, |
| | | }).then(res => res.data); |
| | | } |
| | | |
| | | export { |
| | | fetchPublish, |
| | | fetchPublishedTask, |
| | | fetchSelfPatrolType, |
| | | fetchSelfPatrolDetails, |
| | | deleteTask, |
| | | }; |