diff --git a/src/api/production/plan.js b/src/api/production/plan.js new file mode 100644 index 0000000..8695356 --- /dev/null +++ b/src/api/production/plan.js @@ -0,0 +1,53 @@ +import request from '@/utils/request' + +// 查询周排产计划列表 +export function listPlan(query) { + return request({ + url: '/production/plan/list', + method: 'get', + params: query + }) +} + +// 查询周排产计划详细 +export function getPlan(id) { + return request({ + url: '/production/plan/' + id, + method: 'get' + }) +} + +// 新增周排产计划 +export function addPlan(data) { + return request({ + url: '/production/plan', + method: 'post', + data: data + }) +} + +// 修改周排产计划 +export function updatePlan(data) { + return request({ + url: '/production/plan', + method: 'put', + data: data + }) +} + +// 删除周排产计划 +export function delPlan(id) { + return request({ + url: '/production/plan/' + id, + method: 'delete' + }) +} + +// 批量更新周排产计划 +export function batchUpdatePlan(data) { + return request({ + url: '/production/plan/batchUpdate', + method: 'put', + data: data + }) +} diff --git a/src/api/production/req.js b/src/api/production/req.js new file mode 100644 index 0000000..5afa709 --- /dev/null +++ b/src/api/production/req.js @@ -0,0 +1,53 @@ +import request from '@/utils/request' + +// 查询子件物料周需求列表 +export function listReq(query) { + return request({ + url: '/production/req/list', + method: 'get', + params: query + }) +} + +// 查询子件物料周需求详细 +export function getReq(id) { + return request({ + url: '/production/req/' + id, + method: 'get' + }) +} + +// 新增子件物料周需求 +export function addReq(data) { + return request({ + url: '/production/req', + method: 'post', + data: data + }) +} + +// 修改子件物料周需求 +export function updateReq(data) { + return request({ + url: '/production/req', + method: 'put', + data: data + }) +} + +// 删除子件物料周需求 +export function delReq(id) { + return request({ + url: '/production/req/' + id, + method: 'delete' + }) +} + +// 批量更新子件物料周需求 +export function batchUpdateReq(data) { + return request({ + url: '/production/req/batchUpdate', + method: 'put', + data: data + }) +} diff --git a/src/views/production/plan/index.vue b/src/views/production/plan/index.vue new file mode 100644 index 0000000..5683e1a --- /dev/null +++ b/src/views/production/plan/index.vue @@ -0,0 +1,749 @@ + + + + + + + + + + + + + + + + + + + + + 搜索 + 重置 + + + + + + 新增 + + + 修改 + + + 删除 + + + 导入 + + + 导出 + + + 保存修改 + + + 批量填充 + + + + + + + + + + {{ parseTime(scope.row.weekStartDate, '{y}-{m}-{d}') }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ calcRowTotal(scope.row) }} + + + + + 修改 + 删除 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 每日计划量 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 将文件拖到此处,或点击上传 + + 仅允许导入xls、xlsx格式文件。 + 下载模板 + + + + + + + + + + + + + + + + + + + + + + + {{ selectedRows.length }} 行 + + + + 1日 + 2日 + 3日 + 4日 + 5日 + 6日 + 7日 + + + + + + + + + + + + + + diff --git a/src/views/production/req/index.vue b/src/views/production/req/index.vue new file mode 100644 index 0000000..2fa2131 --- /dev/null +++ b/src/views/production/req/index.vue @@ -0,0 +1,705 @@ + + + + + + + + + + + + + + + + + + 搜索 + 重置 + + + + + + 新增 + + + 修改 + + + 删除 + + + 导入 + + + 导出 + + + 保存修改 + + + 批量填充 + + + + + + + + + + {{ parseTime(scope.row.weekStartDate, '{y}-{m}-{d}') }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ calcRowTotal(scope.row) }} + + + + + 修改 + 删除 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 每日需求量 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 将文件拖到此处,或点击上传 + + 仅允许导入xls、xlsx格式文件。 + 下载模板 + + + + + + + + + + + + + + + + + + + + + + + {{ selectedRows.length }} 行 + + + + 周一 + 周二 + 周三 + 周四 + 周五 + 周六 + 周日 + + + + + + + + + + + + + +