From a085fd8c17f9fd5d165c70d3aa508459d17543f2 Mon Sep 17 00:00:00 2001 From: weiz <736250432@qq.com> Date: Tue, 19 Mar 2024 17:22:11 +0800 Subject: [PATCH] update --- src/api/quotation.ts | 19 +++++++---- src/views/quotation/index.vue | 9 ----- src/views/quotation_detail/index.vue | 49 ++-------------------------- 3 files changed, 15 insertions(+), 62 deletions(-) diff --git a/src/api/quotation.ts b/src/api/quotation.ts index 3bda79d..d0ec226 100644 --- a/src/api/quotation.ts +++ b/src/api/quotation.ts @@ -1,26 +1,31 @@ -import request from '@/utils/request' +import request from "@/utils/request"; // 报价单列表 export function apiQuotationLists(params: any) { - return request.get({ url: '/quotation.quotation/lists', params }) + return request.get({ url: "/quotation.quotation/lists", params }); } // 添加报价单 export function apiQuotationAdd(params: any) { - return request.post({ url: '/quotation.quotation/add', params }) + return request.post({ url: "/quotation.quotation/add", params }); } // 编辑报价单 export function apiQuotationEdit(params: any) { - return request.post({ url: '/quotation.quotation/edit', params }) + return request.post({ url: "/quotation.quotation/edit", params }); } // 删除报价单 export function apiQuotationDelete(params: any) { - return request.post({ url: '/quotation.quotation/delete', params }) + return request.post({ url: "/quotation.quotation/delete", params }); } // 报价单详情 export function apiQuotationDetail(params: any) { - return request.get({ url: '/quotation.quotation/detail', params }) -} \ No newline at end of file + return request.get({ url: "/quotation.quotation/detail", params }); +} + +//apiQuotationSearch +export function apiQuotationSearch(params: any) { + return request.get({ url: "/quotation.quotation/datas", params }); +} diff --git a/src/views/quotation/index.vue b/src/views/quotation/index.vue index 0250316..2995ed3 100644 --- a/src/views/quotation/index.vue +++ b/src/views/quotation/index.vue @@ -87,7 +87,6 @@ const editRef = shallowRef>() // 是否显示编辑框 const showEdit = ref(false) const showDtail = ref(false) -const customerList = ref([]) // 查询条件 const queryParams = reactive({ @@ -140,19 +139,11 @@ const handleDelete = async (id: number | any[]) => { // 详情 const handleDetail = async (data: any) => { let res = await apiQuotationDetail({ id: data.id }) - showDtail.value = true await nextTick() detailRef.value?.open() detailRef.value?.setFormData(res) } -//获取客户列表 -const customerlist = async () => { - let res = await apiCustomLists({ page_size: 9999, page_no: 1 }) - customerList.value = res.lists -} - -customerlist() getLists() diff --git a/src/views/quotation_detail/index.vue b/src/views/quotation_detail/index.vue index 16e64fd..cf989ab 100644 --- a/src/views/quotation_detail/index.vue +++ b/src/views/quotation_detail/index.vue @@ -2,14 +2,9 @@
- - - - - + + - 查询 重置 @@ -40,9 +35,7 @@ - -
@@ -56,31 +49,17 @@