|
@@ -3,7 +3,7 @@ import { AppDispatch } from "..";
|
|
|
import { A2Tab1Type, A2Tab1_1 } from "@/types/api/A2Dict";
|
|
|
import { A5TableType } from "@/types";
|
|
|
/**
|
|
|
- * 获取项目属性 职能,状态
|
|
|
+ * 获取项目属性 职能,状态,签订主体,业务部门
|
|
|
*/
|
|
|
export const A2_APIgetList1 = () => {
|
|
|
return async (dispatch: AppDispatch) => {
|
|
@@ -14,15 +14,21 @@ export const A2_APIgetList1 = () => {
|
|
|
|
|
|
const arr1: A2Tab1_1[] = [];
|
|
|
const arr2: A2Tab1_1[] = [];
|
|
|
+ const arrMain: A2Tab1_1[] = []; // 签订主体
|
|
|
+ const arrDept: A2Tab1_1[] = []; // 业务部门
|
|
|
|
|
|
arrTemp.forEach((v) => {
|
|
|
if (v.type === "job") arr1.push(v);
|
|
|
else if (v.type === "status") arr2.push(v);
|
|
|
+ else if (v.type === "main") arrMain.push(v);
|
|
|
+ else if (v.type === "dept") arrDept.push(v);
|
|
|
});
|
|
|
|
|
|
const obj: A2Tab1Type = {
|
|
|
job: arr1,
|
|
|
status: arr2,
|
|
|
+ main: arrMain,
|
|
|
+ dept: arrDept,
|
|
|
};
|
|
|
dispatch({ type: "A2/getInfo1_1", payload: obj });
|
|
|
}
|