From 5df8330dd83c333d734f7221e634d05d6ca6c632 Mon Sep 17 00:00:00 2001 From: zhaoxiaolin Date: Wed, 8 Nov 2023 09:16:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=90=E5=93=81=E5=85=A5=E5=BA=93-=E6=A3=80?= =?UTF-8?q?=E9=AA=8C=E6=8A=A5=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/quality/produceReport.js | 93 ++++ src/api/quality/productReport.js | 93 ++++ src/views/mes/reportWork/index.vue | 6 +- .../checkTypeProject/MaterialGroupAdd.vue | 4 +- src/views/quality/produceReport/index.vue | 518 ++++++++++++++++++ src/views/quality/productReport/index.vue | 518 ++++++++++++++++++ 6 files changed, 1228 insertions(+), 4 deletions(-) create mode 100644 src/api/quality/produceReport.js create mode 100644 src/api/quality/productReport.js create mode 100644 src/views/quality/produceReport/index.vue create mode 100644 src/views/quality/productReport/index.vue diff --git a/src/api/quality/produceReport.js b/src/api/quality/produceReport.js new file mode 100644 index 0000000..6e41a14 --- /dev/null +++ b/src/api/quality/produceReport.js @@ -0,0 +1,93 @@ +import request from '@/utils/request' + +// 查询来料报告列表 +export function listIncome(query) { + return request({ + url: '/quality/qcIncomeReport/list', + method: 'get', + params: query + }); +} + +// 查询来料报告详细 +export function getIncome(recordId) { + return request({ + url: '/quality/qcIncomeReport/' + recordId, + method: 'get' + }); +} + +// 新增来料报告 +export function addIncome(data) { + return request({ + url: '/quality/qcIncomeReport', + method: 'post', + data: data + }); +} + +// 修改来料报告 +export function updateIncome(data) { + return request({ + url: '/quality/qcIncomeReport', + method: 'put', + data: data + }); +} + +// 删除来料报告 +export function delIncome(recordId) { + return request({ + url: '/quality/qcIncomeReport/' + recordId, + method: 'delete' + }); +} + +// 查询BOM物料管理列表 +export function getQcListBom(query) { + return request({ + url: '/quality/qcIncomeReport/getQcListBom', + method: 'get', + params: query + }); + } + +// 查询供应商管理列表 +export function getQcListSupplier(query) { + return request({ + url: '/quality/qcIncomeReport/getQcListSupplier', + method: 'get', + params: query + }); + } + +// 查询人员列表 +export function getQcListUser(query) { + return request({ + url: '/quality/qcIncomeReport/getQcListUser', + method: 'get', + params: query + }); + } + +//状态修改 +export function changeIncomeStatus(recordId, status) { + const data = { + recordId, + status + } + return request({ + url: '/quality/qcIncomeReport/changeIncomeStatus', + method: 'put', + data: data + }) + } + +// 查询检测项列表 +export function getCkeckProjectList(query) { + return request({ + url: '/quality/qcIncomeReport/getCkeckProjectList', + method: 'get', + params: query + }); + } diff --git a/src/api/quality/productReport.js b/src/api/quality/productReport.js new file mode 100644 index 0000000..6e41a14 --- /dev/null +++ b/src/api/quality/productReport.js @@ -0,0 +1,93 @@ +import request from '@/utils/request' + +// 查询来料报告列表 +export function listIncome(query) { + return request({ + url: '/quality/qcIncomeReport/list', + method: 'get', + params: query + }); +} + +// 查询来料报告详细 +export function getIncome(recordId) { + return request({ + url: '/quality/qcIncomeReport/' + recordId, + method: 'get' + }); +} + +// 新增来料报告 +export function addIncome(data) { + return request({ + url: '/quality/qcIncomeReport', + method: 'post', + data: data + }); +} + +// 修改来料报告 +export function updateIncome(data) { + return request({ + url: '/quality/qcIncomeReport', + method: 'put', + data: data + }); +} + +// 删除来料报告 +export function delIncome(recordId) { + return request({ + url: '/quality/qcIncomeReport/' + recordId, + method: 'delete' + }); +} + +// 查询BOM物料管理列表 +export function getQcListBom(query) { + return request({ + url: '/quality/qcIncomeReport/getQcListBom', + method: 'get', + params: query + }); + } + +// 查询供应商管理列表 +export function getQcListSupplier(query) { + return request({ + url: '/quality/qcIncomeReport/getQcListSupplier', + method: 'get', + params: query + }); + } + +// 查询人员列表 +export function getQcListUser(query) { + return request({ + url: '/quality/qcIncomeReport/getQcListUser', + method: 'get', + params: query + }); + } + +//状态修改 +export function changeIncomeStatus(recordId, status) { + const data = { + recordId, + status + } + return request({ + url: '/quality/qcIncomeReport/changeIncomeStatus', + method: 'put', + data: data + }) + } + +// 查询检测项列表 +export function getCkeckProjectList(query) { + return request({ + url: '/quality/qcIncomeReport/getCkeckProjectList', + method: 'get', + params: query + }); + } diff --git a/src/views/mes/reportWork/index.vue b/src/views/mes/reportWork/index.vue index 116ad70..e304b9d 100644 --- a/src/views/mes/reportWork/index.vue +++ b/src/views/mes/reportWork/index.vue @@ -456,9 +456,9 @@ export default { machineName: [ { required: true, message: "本次报工线体不能为空", trigger: "blur" } ] - //,teamCode: [ - // { required: true, message: "本次报工班组不能为空", trigger: "blur" } - //], + ,nickName: [ + { required: true, message: "本次报工忍不能为空", trigger: "blur" } + ], } }; }, diff --git a/src/views/quality/checkTypeProject/MaterialGroupAdd.vue b/src/views/quality/checkTypeProject/MaterialGroupAdd.vue index 27a69f1..241869d 100644 --- a/src/views/quality/checkTypeProject/MaterialGroupAdd.vue +++ b/src/views/quality/checkTypeProject/MaterialGroupAdd.vue @@ -27,7 +27,9 @@ @node-click="handleNodeClick" > - {{ node.label }} + {{node.label}} +
+ + + + + + + + + + + + + + + + + + + + + 搜索 + 重置 + + + + + + + 导出 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 打印 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ parseTime(form.checkTime, '{y}-{m}-{d} {h}:{i}:{s}') }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ +
+ + + + \ No newline at end of file diff --git a/src/views/quality/productReport/index.vue b/src/views/quality/productReport/index.vue new file mode 100644 index 0000000..cccf683 --- /dev/null +++ b/src/views/quality/productReport/index.vue @@ -0,0 +1,518 @@ + + + + \ No newline at end of file