|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
import { memo, useCallback, useEffect, useState } from 'react'
|
|
|
|
|
import {
|
|
|
|
|
Badge, Divider, Table, Button, Input,
|
|
|
|
|
Space, Tag, Radio, Select, Flex, Form, Switch, DatePicker
|
|
|
|
|
Space, Tag, Radio, Select, Flex, Form, Switch, DatePicker, App
|
|
|
|
|
} from 'antd'
|
|
|
|
|
import { Conditional } from '@/components/Conditional'
|
|
|
|
|
import { useAuthContext } from '@/stores/AuthContext'
|
|
|
|
@ -155,7 +155,7 @@ function OrderList({ formValues }) {
|
|
|
|
|
key: 'COLI_Introduction',
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
const { notification } = App.useApp()
|
|
|
|
|
const [orderData, setOrderData] = useState([])
|
|
|
|
|
const [loading, setLoading] = useState(false)
|
|
|
|
|
const { loginUser } = useAuthContext()
|
|
|
|
@ -167,11 +167,23 @@ function OrderList({ formValues }) {
|
|
|
|
|
.then(json => {
|
|
|
|
|
if (json.errcode === 0) {
|
|
|
|
|
setOrderData([...json.result])
|
|
|
|
|
setLoading(false)
|
|
|
|
|
} else {
|
|
|
|
|
notification.error({
|
|
|
|
|
message: '查询出错',
|
|
|
|
|
description: json?.errmsg,
|
|
|
|
|
placement: 'top',
|
|
|
|
|
duration: 60,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.finally(() => setLoading(false))
|
|
|
|
|
.catch(reason => {
|
|
|
|
|
console.info(reason)
|
|
|
|
|
notification.error({
|
|
|
|
|
message: '查询出错',
|
|
|
|
|
description: reason.message,
|
|
|
|
|
placement: 'top',
|
|
|
|
|
duration: 60,
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
}, [formValues])
|
|
|
|
|
|
|
|
|
|