diff --git a/src/api/quality/qcGoal.js b/src/api/quality/qcGoal.js new file mode 100644 index 0000000..672a328 --- /dev/null +++ b/src/api/quality/qcGoal.js @@ -0,0 +1,61 @@ +import request from '@/utils/request' + +// 查询质量目标列表 +export function listQcGoal(query) { + return request({ + url: '/quality/qcGoal/list', + method: 'get', + params: query + }); +} + +// 查询质量目标详细 +export function getQcGoal(id) { + return request({ + url: '/quality/qcGoal/' + id, + method: 'get' + }); +} + +// 查询二级节点 +export function getChildrenList(parentId) { + return request({ + url: '/quality/qcGoal/getChildrenList/' + parentId, + method: 'get' + }); +} + + + +// 新增质量目标 +export function addQcGoal(data) { + return request({ + url: '/quality/qcGoal', + method: 'post', + data: data + }); +} + +// 修改质量目标 +export function updateQcGoal(data) { + return request({ + url: '/quality/qcGoal', + method: 'put', + data: data + }); +} + +// 删除质量目标 +export function delQcGoal(id) { + return request({ + url: '/quality/qcGoal/' + id, + method: 'delete' + }); +} + +export function getGenerate(id) { + return request({ + url: '/quality/qcGoal/generate/' + id, + method: 'get', + }); +} \ No newline at end of file diff --git a/src/api/quality/qcGoalDistribute.js b/src/api/quality/qcGoalDistribute.js new file mode 100644 index 0000000..ed4d2af --- /dev/null +++ b/src/api/quality/qcGoalDistribute.js @@ -0,0 +1,61 @@ +import request from '@/utils/request' + +// 查询质量目标分配列表 +export function listQcGoalDistribute(query) { + return request({ + url: '/quality/qcGoalDistribute/list', + method: 'get', + params: query + }); +} + +// 查询质量目标分配详细 +export function getQcGoalDistribute(id) { + return request({ + url: '/quality/qcGoalDistribute/' + id, + method: 'get' + }); +} + +// 修改质量目标分配 +export function updateQcGoalDistribute(data) { + return request({ + url: '/quality/qcGoalDistribute', + method: 'put', + data: data + }); +} + +// 删除质量目标分配 +export function delQcGoalDistribute(id) { + return request({ + url: '/quality/qcGoalDistribute/' + id, + method: 'delete' + }); +} + +// 查询用户物料未关联列表 +export function getLeftList(query) { + return request({ + url: '/quality/qcGoalDistribute/getLeftList', + method: 'get', + params: query + }); +} + +// 查询用户物料已关联列表 +export function getRightList(query) { + return request({ + url: '/quality/qcGoalDistribute/getRightList', + method: 'get', + params: query + }); +} + +export function addSupplier(data) { + return request({ + url: '/quality/qcGoalDistribute', + method: 'post', + data: data + }); +} diff --git a/src/views/quality/qcGoal/distribution.vue b/src/views/quality/qcGoal/distribution.vue new file mode 100644 index 0000000..76c190f --- /dev/null +++ b/src/views/quality/qcGoal/distribution.vue @@ -0,0 +1,353 @@ + + + + diff --git a/src/views/quality/qcGoal/index.vue b/src/views/quality/qcGoal/index.vue new file mode 100644 index 0000000..ca69ec0 --- /dev/null +++ b/src/views/quality/qcGoal/index.vue @@ -0,0 +1,528 @@ + + +