|
|
|
@ -2,12 +2,10 @@ import { createContext, useEffect, useState } from 'react'
|
|
|
|
|
import { ReloadOutlined, ReadOutlined, RightOutlined, LeftOutlined, SearchOutlined, MailOutlined } from '@ant-design/icons'
|
|
|
|
|
import { Button, Modal, Form, Input, Checkbox, Select, Radio, DatePicker, Divider, Typography } from 'antd'
|
|
|
|
|
import dayjs from 'dayjs'
|
|
|
|
|
import { getEmailDirAction, queryHTOrderListAction } from '@/actions/EmailActions'
|
|
|
|
|
import { getEmailDirAction, queryHTOrderListAction, } from '@/actions/EmailActions'
|
|
|
|
|
import { isEmpty, objectMapper, pick } from '@/utils/commons'
|
|
|
|
|
import useConversationStore from '@/stores/ConversationStore'
|
|
|
|
|
|
|
|
|
|
const yearsArray = Array.from({ length: new Date().getFullYear() - 2004 + 1 }, (_, i) => ({ key: 2004 + i, value: 2004 + i, label: 2004 + i }))
|
|
|
|
|
|
|
|
|
|
const MailOrderSearchModal = ({ ...props }) => {
|
|
|
|
|
const [currentMailboxOPI] = useConversationStore((state) => [state.currentMailboxOPI])
|
|
|
|
|
const [addMailboxNestedDirs, updateMailboxNestedDirs, setMailboxActiveNode] = useConversationStore((state) => [state.addMailboxNestedDirs, state.updateMailboxNestedDirs, state.setMailboxActiveNode])
|
|
|
|
@ -36,7 +34,7 @@ const MailOrderSearchModal = ({ ...props }) => {
|
|
|
|
|
updateMailboxNestedDirs(result[`${currentMailboxOPI}`])
|
|
|
|
|
} else {
|
|
|
|
|
const htOrderParams = pick(valuesToSub, ['coli_id', 'sourcetype',])
|
|
|
|
|
result = await queryHTOrderListAction(htOrderParams)
|
|
|
|
|
result = await queryHTOrderListAction({...htOrderParams, opi_sn: currentMailboxOPI})
|
|
|
|
|
const addToTree = {
|
|
|
|
|
key: 'search-orders',
|
|
|
|
|
title: '搜索结果',
|
|
|
|
|