diff --git a/inventory-web/src/api/inbound/repair.ts b/inventory-web/src/api/inbound/repair.ts new file mode 100644 index 0000000..9896305 --- /dev/null +++ b/inventory-web/src/api/inbound/repair.ts @@ -0,0 +1,53 @@ +import request from '@/utils/request' + +// 1. 获取维修单列表 +export function getRepairList(params: any) { + return request({ + url: '/inbound/repair/list', + method: 'get', + params + }) +} + +// 2. 新增维修单 +export function createRepair(data: any) { + return request({ + url: '/inbound/repair/submit', + method: 'post', + data + }) +} + +// 3. 更新维修单 +export function updateRepair(id: number, data: any) { + return request({ + url: `/inbound/repair/${id}`, + method: 'put', + data + }) +} + +// 4. 更新维修状态 +export function updateRepairStatus(data: any) { + return request({ + url: '/inbound/repair/update-status', + method: 'post', + data + }) +} + +// 5. 删除维修单 +export function deleteRepair(id: number) { + return request({ + url: `/inbound/repair/${id}`, + method: 'delete' + }) +} + +// 6. 获取维修单详情 +export function getRepairDetail(id: number) { + return request({ + url: `/inbound/repair/${id}`, + method: 'get' + }) +} \ No newline at end of file diff --git a/inventory-web/src/views/stock/inbound/repair.vue b/inventory-web/src/views/stock/inbound/repair.vue new file mode 100644 index 0000000..cb5b83d --- /dev/null +++ b/inventory-web/src/views/stock/inbound/repair.vue @@ -0,0 +1,447 @@ + + + + + \ No newline at end of file