diff --git a/src/api/system/stocktaking.js b/src/api/system/stocktaking.js new file mode 100644 index 0000000..b301ff6 --- /dev/null +++ b/src/api/system/stocktaking.js @@ -0,0 +1,59 @@ +import request from '@/utils/request' + +// 新建或更新盘点计划 +export function saveStocktakingPlan(data) { + return request({ + url: '/api/admin/material-infos-plan/save', + method: 'post', + data + }) +} + +// 获取盘点计划列表 +export function getStocktakingPlanList(data) { + return request({ + url: '/api/admin/material-infos-plan/index', + method: 'post', + data, + headers: { + 'Content-Type': 'application/x-www-form-urlencoded' + } + }) +} + +// 删除盘点计划 +export function deleteStocktakingPlan(params) { + return request({ + url: '/api/admin/material-infos-plan/destroy', + method: 'get', + params + }) +} + +// 获取单个盘点计划详情 +export function getStocktakingPlanDetail(params) { + return request({ + url: '/api/admin/material-infos-plan/show', + method: 'get', + params + }) +} + +// 获取盘点计划物资关联列表 +export function getStocktakingPlanLinkList(params) { + return request({ + url: '/api/admin/material-infos-plan-link/index', + method: 'get', + params + }) +} + +// 获取物资档案管理列表 +export function getMaterialInfoList(params) { + return request({ + url: '/api/admin/material-infos/index', + method: 'get', + params + }) +} + diff --git a/src/router/index.js b/src/router/index.js index 5449bad..f2695bb 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -92,7 +92,7 @@ export const constantRoutes = [{ icon: 'dashboard' } }, ] - } + }, ] diff --git a/src/views/inventorys/stocktaking.vue b/src/views/inventorys/stocktaking.vue index 946f237..2000111 100644 --- a/src/views/inventorys/stocktaking.vue +++ b/src/views/inventorys/stocktaking.vue @@ -1,38 +1,37 @@ - -
+ +
- -
+ + - + - + +
- + - + + .detail-content { + padding: 20px; + + .detail-header { + display: grid; + grid-template-columns: repeat(3, 1fr); + gap: 20px; + margin-bottom: 30px; + + .detail-item { + .label { + font-weight: bold; + color: #666; + margin-right: 10px; + } + + .value { + color: #333; + } + } + } + + .progress-section { + margin-bottom: 30px; + + .progress-header { + display: flex; + justify-content: space-between; + align-items: center; + margin-bottom: 15px; + + h3 { + margin: 0; + font-size: 16px; + color: #17233d; + } + + .progress-stats { + display: flex; + gap: 20px; + + span { + color: #666; + } + } + } + } + + .material-section { + h3 { + margin: 0 0 15px 0; + font-size: 16px; + color: #17233d; + } + } +} +