From dade6a8b4772abc113383246d05ab59162630e7c Mon Sep 17 00:00:00 2001 From: zhangwei <1504152376@qq.com> Date: 星期三, 27 八月 2025 17:21:21 +0800 Subject: [PATCH] '上传变更公告获取详情与删除' --- src/api/item/index.ts | 109 ++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 104 insertions(+), 5 deletions(-) diff --git a/src/api/item/index.ts b/src/api/item/index.ts index 9556952..1f438e0 100644 --- a/src/api/item/index.ts +++ b/src/api/item/index.ts @@ -1,13 +1,12 @@ /** * 锛堜笉寤鸿鍐欐垚 request.post(xxx)锛屽洜涓鸿繖鏍� post 鏃讹紝鏃犳硶 params 涓� data 鍚屾椂浼犲弬锛� * - * 娉ㄥ唽api鎺ュ彛闆嗗悎 - * @method login 鐧诲綍 + * 椤圭洰绠$悊鎺ュ彛闆嗗悎 */ import { http } from "@/utils/http"; import { baseUrlApi } from "../util"; -import type { Result, PageResult } from "../types"; +import type { Result, PageResult, ChangeDetail } from "../types"; // 鑾峰彇琛屾斂鍖哄煙鍒楄〃 export const getRegionList = () => { @@ -82,8 +81,10 @@ }; // 鑾峰彇闈炴斂搴滆鍗曞鐞嗚鎯� -export const getTenderOrderDetail = () => { - return http.request<Result>("get", baseUrlApi("/api/tenderOrder/detail")); +export const getTenderOrderDetail = params => { + return http.request<Result>("get", baseUrlApi("/api/tenderOrder/detail"), { + params + }); }; // 涓嬭浇闈炴斂搴滆鍗曞鐞嗘暟鎹鍏ユā鏉� @@ -109,11 +110,32 @@ }); }; +// 鎷涙爣浠g悊鍒嗛〉鏌ヨ闈炴斂搴滆鍗曞鐞� + +// 閲囪喘浠g悊浜哄鍔犻潪鏀垮簻璁㈠崟澶勭悊鑾峰彇鑱旂郴鏂瑰紡 +export const addgetcontact = () => { + return http.request<Result>( + "post", + baseUrlApi("/api/tenderOrder/addgetcontact") + ); +}; + // 閲囪喘浠g悊浜哄鍔犻潪鏀垮簻璁㈠崟澶勭悊 export const caigourenAdd = (data?: object) => { return http.request<Result>("post", baseUrlApi("/api/tenderOrder/add"), { data }); +}; + +// 閲囪喘浠g悊浜哄鍔犻潪鏀垮簻璁㈠崟澶勭悊 +export const updateTittle = (data?: object) => { + return http.request<Result>( + "post", + baseUrlApi("/api/tenderOrder/updateTittle"), + { + data + } + ); }; // 閲囪喘浠g悊浜烘洿鏂伴潪鏀垮簻璁㈠崟澶勭悊 @@ -169,3 +191,80 @@ data }); }; + +// 閲囪喘浠g悊浜哄彂甯冩嫑鏍� +export const fabuzhaobiao = (data?: object) => { + return http.request<Result>( + "post", + baseUrlApi("/api/tenderOrder/fabuzhaobiao"), + { + data + } + ); +}; + +// 閲囪喘浠g悊浜哄彂甯冨彉鏇村叕鍛� +export const changezhaobiao = (data?: object) => { + return http.request<Result>( + "post", + baseUrlApi("/api/tenderOrder/changezhaobiao"), + { + data + } + ); +}; + +// 鑾峰彇鍙樻洿鍏憡璇︽儏 +export const changeDetail = params => { + return http.request<ChangeDetail>( + "get", + baseUrlApi("/api/tenderOrder/changeDetail"), + { + params + } + ); +}; + +// 閲囪喘浠g悊浜哄垹闄ゅ彉鏇村叕鍛� +export const cHangeDelete = (data?: object) => { + return http.request<Result>( + "post", + baseUrlApi("/api/tenderOrder/cHangeDelete"), + { + data + } + ); +}; + +// 閲囪喘浠g悊浜虹‘璁や緵搴斿晢宸叉敮浠樻姤鍚嶈垂 +export const querenBaomingfei = (data?: object) => { + return http.request<Result>( + "post", + baseUrlApi("/api/tenderOrder/querenBaomingfei"), + { + data + } + ); +}; + +// 浠g悊鍟嗗彂甯冧腑鏍囨枃浠� +export const addZhongbiao = (data?: object) => { + return http.request<Result>( + "post", + baseUrlApi("/api/tenderOrder/addZhongbiao"), + { + data + } + ); +}; + +// 閲囪喘浠g悊浜虹‘璁や緵搴斿晢宸叉敮浠樹唬鐞嗚垂 +export const querenDailifei = (data?: object) => { + return http.request<Result>( + "post", + baseUrlApi("/api/tenderOrder/querenDailifei"), + { + data + } + ); +}; -- Gitblit v1.9.1