From b6839fb4f6905ce512cc42134913a6bf993983c0 Mon Sep 17 00:00:00 2001 From: shaoyong Date: Mon, 11 Mar 2024 15:55:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=A8=E9=87=8F=E7=9B=AE=E6=A0=87=E6=A8=A1?= =?UTF-8?q?=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/quality/qcGoal.js | 61 +++ src/api/quality/qcGoalDistribute.js | 61 +++ src/views/quality/qcGoal/distribution.vue | 353 +++++++++++++++ src/views/quality/qcGoal/index.vue | 528 ++++++++++++++++++++++ 4 files changed, 1003 insertions(+) create mode 100644 src/api/quality/qcGoal.js create mode 100644 src/api/quality/qcGoalDistribute.js create mode 100644 src/views/quality/qcGoal/distribution.vue create mode 100644 src/views/quality/qcGoal/index.vue diff --git a/src/api/quality/qcGoal.js b/src/api/quality/qcGoal.js new file mode 100644 index 00000000..672a328e --- /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 00000000..ed4d2aff --- /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 00000000..76c190fb --- /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 00000000..ca69ec08 --- /dev/null +++ b/src/views/quality/qcGoal/index.vue @@ -0,0 +1,528 @@ + + +