todo: 查询: 钉钉的顾问列表

dev/timezone
Lei OT 1 year ago
parent 75352ad656
commit f0e4baff9a

@ -9,6 +9,14 @@ export const fetchSalesAgent = async (q) => {
return errcode !== 0 ? [] : result.map((ele) => ({ ...ele, label: ele.cn_name, value: ele.op_id })); return errcode !== 0 ? [] : result.map((ele) => ({ ...ele, label: ele.cn_name, value: ele.op_id }));
}; };
/**
* 绑定钉钉的顾问列表
*/
export const fetchSalesAgentWithDD = async (q) => {
const { errcode, result } = await fetchJSON(`${API_HOST}/opi_with_dingtalk`, { q });
return errcode !== 0 ? [] : result.map((ele) => ({ ...ele, label: ele.cn_name, value: ele.op_id }));
};
/** /**
* 客人列表 * 客人列表
*/ */

@ -1,7 +1,7 @@
import { useState } from 'react'; import { useState } from 'react';
import { App, Button, Form, Input } from 'antd'; import { App, Button, Form, Input } from 'antd';
import SearchInput from '@/components/SearchInput'; import SearchInput from '@/components/SearchInput';
import { fetchSalesAgent } from '@/actions/CommonActions'; import { fetchSalesAgent, fetchSalesAgentWithDD } from '@/actions/CommonActions';
import { postAssignConversation } from '@/actions/ConversationActions'; import { postAssignConversation } from '@/actions/ConversationActions';
const InputAssign = ({ initialValues, ...props }) => { const InputAssign = ({ initialValues, ...props }) => {

Loading…
Cancel
Save