From 470271cf962bc960075410b781ac67add625a2cb Mon Sep 17 00:00:00 2001 From: chj <16637853242@163.com> Date: Fri, 4 Aug 2023 18:29:00 +0800 Subject: [PATCH] =?UTF-8?q?MES=E6=8A=A5=E5=BA=9F=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mes/scrap.js | 70 +++++ src/views/mes/scrap/index.vue | 572 ++++++++++++++++++++++++++++++++++ 2 files changed, 642 insertions(+) create mode 100644 src/api/mes/scrap.js create mode 100644 src/views/mes/scrap/index.vue diff --git a/src/api/mes/scrap.js b/src/api/mes/scrap.js new file mode 100644 index 00000000..58f880b9 --- /dev/null +++ b/src/api/mes/scrap.js @@ -0,0 +1,70 @@ +import request from '@/utils/request' + +// 查询【请填写功能名称】列表 +export function listScrap(query) { + return request({ + url: '/mes/scrap/list', + method: 'get', + params: query + }); +} + +export function listWuliao(query) { + return request({ + url: '/mes/scrap/selectAllMaterial', + method: 'get', + params: query + }); +} + + +export function listMaterialName(query) { + return request({ + url: '/mes/scrap/selectAllMaterial', + method: 'get', + params: query + }); +} + +//查询工位名称 +export function listPostName(query) { + return request({ + url: '/mes/scrap/selectAllSysPost', + method: 'get', + params: query + }); +} + +// 查询【请填写功能名称】详细 +export function getScrap(id) { + return request({ + url: '/mes/scrap/' + id, + method: 'get' + }); +} + +// 新增【请填写功能名称】 +export function addScrap(data) { + return request({ + url: '/mes/scrap', + method: 'post', + data: data + }); +} + +// 修改【请填写功能名称】 +export function updateScrap(data) { + return request({ + url: '/mes/scrap', + method: 'put', + data: data + }); +} + +// 删除【请填写功能名称】 +export function delScrap(id) { + return request({ + url: '/mes/scrap/' + id, + method: 'delete' + }); +} diff --git a/src/views/mes/scrap/index.vue b/src/views/mes/scrap/index.vue new file mode 100644 index 00000000..59fffe17 --- /dev/null +++ b/src/views/mes/scrap/index.vue @@ -0,0 +1,572 @@ + + +