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 @@ + + + + + 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 @@ + + + + +