From 45efc3fc8871d643d6a06e1a2e2e188bfffa8956 Mon Sep 17 00:00:00 2001 From: hayu <1604366271@qq.com> Date: Thu, 15 Jan 2026 15:14:55 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E4=BB=B6=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sgzb-ui/src/api/store/partType.js | 91 ++ .../machinery/partInventory/index.vue | 260 ++++++ .../machinery/partType/index.vue | 797 ++++++++++++++++++ 3 files changed, 1148 insertions(+) create mode 100644 sgzb-ui/src/api/store/partType.js create mode 100644 sgzb-ui/src/views/warehouseManage/machinery/partInventory/index.vue create mode 100644 sgzb-ui/src/views/warehouseManage/machinery/partType/index.vue diff --git a/sgzb-ui/src/api/store/partType.js b/sgzb-ui/src/api/store/partType.js new file mode 100644 index 00000000..34c46a4d --- /dev/null +++ b/sgzb-ui/src/api/store/partType.js @@ -0,0 +1,91 @@ +import request from "@/utils/request"; + +//配件类型管理 + +//配件类型管理列表信息 +export function getListByPartType(query) { + return request({ + url: '/base/maPartType/getListByPartType', + method: 'get', + params: query, + }) +} + +//机具类型管理列表信息 +export function getListTree(query) { + return request({ + url: '/base/maPartType/getPartTree', + method: 'get', + params: query, + }) +} + +// 配件类型管理--新增-- 一二级 +export function addMaType(data) { + return request({ + url: '/base/maPartType', + method: 'post', + data: data, + }) +} + +// 配件类型管理--新增-- 三级 +export function addAccessory(data) { + return request({ + url: '/base/maPartType', + method: 'post', + data: data, + }) +} + +//查看机具类型管理列表详细信息 +export function getAccessoryDetail(id) { + return request({ + url: '/base/maPartType/' + id, + method: 'get', + }) +} + +// 配件类型管理--修改 +export function updateMaType(data) { + return request({ + url: '/base/maPartType/updateById', + method: 'post', + data: data, + }) +} + +// 仓库管理--修改 +export function editAccessory(data) { + return request({ + url: '/base/maPartType/updateById', + method: 'post', + data: data, + }) +} + +// 配件类型管理--删除 +export function delMaType(id) { + return request({ + url: '/base/maPartType/' + id, + method: 'delete', + }) +} + +// 配件类型管理--删除 +export function delAccessory(id) { + return request({ + url: '/base/maPartType/' + id, + method: 'delete', + }) +} + + +// 配件库存-列表 +export function getPartInventory(query) { + return request({ + url: 'base/maPartType/getList', + method: 'get', + params: query + }) +} diff --git a/sgzb-ui/src/views/warehouseManage/machinery/partInventory/index.vue b/sgzb-ui/src/views/warehouseManage/machinery/partInventory/index.vue new file mode 100644 index 00000000..98d06532 --- /dev/null +++ b/sgzb-ui/src/views/warehouseManage/machinery/partInventory/index.vue @@ -0,0 +1,260 @@ + + + + diff --git a/sgzb-ui/src/views/warehouseManage/machinery/partType/index.vue b/sgzb-ui/src/views/warehouseManage/machinery/partType/index.vue new file mode 100644 index 00000000..3da2b794 --- /dev/null +++ b/sgzb-ui/src/views/warehouseManage/machinery/partType/index.vue @@ -0,0 +1,797 @@ + + + +