From 7f2b9bc7ce291dd924419af0616ae6db74340623 Mon Sep 17 00:00:00 2001 From: DXC Date: Wed, 8 Apr 2026 18:58:53 +0800 Subject: [PATCH] feat(repair): implement frontend API and Vue pages for repair management --- inventory-web/src/api/inbound/repair.ts | 53 +++ .../src/views/stock/inbound/repair.vue | 447 ++++++++++++++++++ 2 files changed, 500 insertions(+) create mode 100644 inventory-web/src/api/inbound/repair.ts create mode 100644 inventory-web/src/views/stock/inbound/repair.vue 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