迁移班次管理功能

This commit is contained in:
sheng
2026-06-22 23:32:58 +08:00
parent c670488c80
commit e8e79fcb3f
7 changed files with 360 additions and 3 deletions

View File

@@ -0,0 +1,17 @@
import { request } from '@/api/_service'
const BASE = 'system_settings/organization/production_shift_management/'
function params (method, data = {}) {
return { method: `system_settings_organization_production_shift_management_${method}`, platform: 'background', ...data }
}
export function getShiftAll (data) { return request({ url: BASE + 'all', method: 'get', params: params('all', data) }) }
export function getShiftList (data) { return request({ url: BASE + 'list', method: 'get', params: params('list', data) }) }
export function createShift (data) { return request({ url: BASE + 'create', method: 'post', data: params('create', data) }) }
export function editShift (data) { return request({ url: BASE + 'edit', method: 'put', data: params('edit', data) }) }
export function deleteShift (data) { return request({ url: BASE + 'delete', method: 'delete', data: params('delete', data) }) }
export function getShiftImportTemplate (data) { return request({ url: BASE + 'get_import_template', method: 'post', responseType: 'blob', data: params('get_import_template', data) }) }
export function importShiftData (data) { return request({ url: BASE + 'data_import', method: 'post', data: params('data_import', data) }) }
export function exportShiftTask (data) { return request({ url: BASE + 'data_export_task', method: 'post', data: params('data_export_task', data) }) }
export function getShiftCalendarByDateRange (data) { return request({ url: BASE + 'get_shift_by_date_range', method: 'get', params: params('get_shift_by_date_range', data) }) }