From 91378c7e62bb00524014e3fc7e0fc2c7411c48c1 Mon Sep 17 00:00:00 2001 From: bb_pan Date: Mon, 17 Feb 2025 18:04:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=9A=E5=8A=A1=E5=8A=9E=E7=90=86-=E9=A2=86?= =?UTF-8?q?=E7=94=A8=E7=94=B3=E8=AF=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/business/index.js | 62 +++ src/views/business/businessHandling/index.vue | 428 ++++++++++++------ .../business/businessHandlingRecord/index.vue | 115 ++--- 3 files changed, 397 insertions(+), 208 deletions(-) create mode 100644 src/api/business/index.js diff --git a/src/api/business/index.js b/src/api/business/index.js new file mode 100644 index 00000000..1b01dea6 --- /dev/null +++ b/src/api/business/index.js @@ -0,0 +1,62 @@ +import request from '@/utils/request' + +// 获取标准配置下拉 +export function getStandardConfigList(data = {}) { + return request({ + url: '/material/select/getConfigList', + method: 'post', + data + }) +} + +// 获取当前标准配置-列表 +export function getListsByConfigId(query) { + return request({ + url: '/material/standardConfig/getListsByConfigId', + method: 'get', + params: query + }) +} + +// 领用申请 +export function addLeaseTask(data) { + return request({ + url: '/material/leaseTask', + method: 'post', + data + }) +} + +// 领用申请-编辑 +export function editLeaseTask(data) { + return request({ + url: '/material/leaseTask', + method: 'put', + data + }) +} + +// 领用记录查询-列表 +export function getLeaseTaskList(query) { + return request({ + url: '/material/leaseTask/list', + method: 'get', + params: query + }) +} + +// 领用记录编辑/查看-详情 +export function getLeaseTaskDetail(id) { + return request({ + url: '/material/leaseTask/' + id, + method: 'get' + }) +} + +// 领用记录-删除 +export function deleteLeaseTask(id) { + return request({ + url: '/material/leaseTask/' + id, + method: 'delete' + }) +} \ No newline at end of file diff --git a/src/views/business/businessHandling/index.vue b/src/views/business/businessHandling/index.vue index b95dd885..7c6695eb 100644 --- a/src/views/business/businessHandling/index.vue +++ b/src/views/business/businessHandling/index.vue @@ -1,11 +1,19 @@ - + - -