From 504e00da9a9898ac419e97f93fc66cc7c7c6f620 Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期三, 28 二月 2024 14:30:25 +0800 Subject: [PATCH] 服务合同-去掉产品为空的判断增加保存时去掉未选择产品的对象 --- src/api/common/standard.js | 30 ++++++++++++++++++++---------- 1 files changed, 20 insertions(+), 10 deletions(-) diff --git a/src/api/common/standard.js b/src/api/common/standard.js index f46e844..5e264bf 100644 --- a/src/api/common/standard.js +++ b/src/api/common/standard.js @@ -1,15 +1,25 @@ -// import request from "@/common/untils/request.js" import axios from "axios" -//缂栫爜瑙勮寖鍒楄〃 -// export function getCodeStandardList (data) { -// return request({ -// url: "/api/code/getCodeList", -// method: "post", -// data, -// }); -// } +import request from "@/common/untils/request.js" export function getCodeStandardList(data) { - return axios.get(`/api/code/getCodeList`, { + return request({ + url: "/api/code/getCodeList", + method: "get", params: data }) } +// 鑾峰彇鑷姩缂栫爜 +export function getAutoCode(data) { + return request({ + url: "/api/code/getAutoCode", + method: "post", + data + }) +} +// 鑾峰彇绯荤粺鍙傛暟鐨勯厤缃� +export function useSystemSet(data) { + return request({ + url: "/api/system/useSystemSet/"+data.modeType, + method: "get", + data + }) +} -- Gitblit v1.8.0