From 45a3c06adfa25476b91acdce7bb1b73c05e675c6 Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期六, 15 六月 2024 21:28:24 +0800 Subject: [PATCH] 工艺路线,工序行为更新 --- src/api/tigerapi/dept.ts | 35 ++++++++++++++++++++++++++++++++--- 1 files changed, 32 insertions(+), 3 deletions(-) diff --git a/src/api/tigerapi/dept.ts b/src/api/tigerapi/dept.ts index 86f302e..7e7a0e2 100644 --- a/src/api/tigerapi/dept.ts +++ b/src/api/tigerapi/dept.ts @@ -12,6 +12,14 @@ }, ); +export const getProdTreeList = () => + defHttp.get<DeptListGetResultModel>( + { url: Api.GetProdTreeList }, + { + isTransformResponse: false, + }, + ); + export const getDeptListByPage = async (params: DeptPageParams) => { let sqlcmd = ''; console.log(1, params); @@ -108,8 +116,12 @@ // 鎹偣涓嬫媺鏍� export const optionsListApi = async (params: Recordable) => { // const usParams = genAction('V_USER_ORG', `USER_ID='${userid}'`); - const usParams = genAction('V_USER_ORG', { QueryAble_T:"", where: "USER_ID = '" + params + "'", order:''}); - var data = await defHttp.post( + const usParams = genAction('V_USER_ORG', { + QueryAble_T: '', + where: "USER_ID = '" + params + "'", + order: '', + }); + const data = await defHttp.post( { url: Api.QueryUrl, params: usParams }, { errorMessageMode: 'none', @@ -117,6 +129,23 @@ // apiUrl: globSetting.taskApiUrl }, ); - return data + return data; }; +export const prodListApi = async (params: Recordable) => { + // const usParams = genAction('V_USER_ORG', `USER_ID='${userid}'`); + const usParams = genAction('V_USER_PROD', { + QueryAble_T: '', + where: "USER_ID = '" + params + "'", + order: '', + }); + const data = await defHttp.post( + { url: Api.QueryUrl, params: usParams }, + { + errorMessageMode: 'none', + isTransformResponse: false, + // apiUrl: globSetting.taskApiUrl + }, + ); + return data; +}; -- Gitblit v1.9.3