From a876914ce1725def0763d2302bba9f08f3817821 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Wed, 27 Nov 2024 16:56:15 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9C=80=E6=B1=82=E7=AE=A1=E7=90=86=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/http/api/sourcing/index.ts | 16 +- src/views/user/sourcingNeed/index.vue | 296 +++++++++++++++++++++----- 2 files changed, 253 insertions(+), 59 deletions(-) diff --git a/src/http/api/sourcing/index.ts b/src/http/api/sourcing/index.ts index 95d9d96..7a0febb 100644 --- a/src/http/api/sourcing/index.ts +++ b/src/http/api/sourcing/index.ts @@ -4,11 +4,19 @@ import { get, post } from '../../index' export const addLeaseInfoApi = (data: any) => { return post('/material-mall/ma-lease/add', data) } +// 需求管理编辑 +export const editLeaseInfoApi = (data: any) => { + return post('/material-mall/ma-lease/edit', data) +} // 需求列表查询 -export const getLeaseListApi = () => { - return get('/material-mall/ma-lease/list', {}) +export const getLeaseListApi = (data: any) => { + return get('/material-mall/ma-lease/list', data) +} +// 需求列表详情 +export const getLeaseDetailsByIdApi = (data: any) => { + return get('/material-mall/ma-lease/getById', data) } // 删除 -export const deleteLeaseInfoApi = () => { - return get('/material-mall/ma-lease/list', {}) +export const deleteLeaseInfoApi = (data: any) => { + return post('/material-mall/ma-lease/deleteById', data) } \ No newline at end of file diff --git a/src/views/user/sourcingNeed/index.vue b/src/views/user/sourcingNeed/index.vue index 300ffcc..672319c 100644 --- a/src/views/user/sourcingNeed/index.vue +++ b/src/views/user/sourcingNeed/index.vue @@ -1,27 +1,85 @@