Commit 84801e00 authored by 李腾's avatar 李腾

fix: 修复售后订单搜索重置数据问题

parent eb30636e
...@@ -249,7 +249,7 @@ const Complex = props => { ...@@ -249,7 +249,7 @@ const Complex = props => {
backgroundColor: '#f7f8f9', backgroundColor: '#f7f8f9',
}, },
wrapClassName: 'complex-modal', wrapClassName: 'complex-modal',
width: '834px', width: '880px',
height: '650px', height: '650px',
visible, visible,
title: <span className="title-icon">消息提醒</span>, title: <span className="title-icon">消息提醒</span>,
......
...@@ -173,7 +173,7 @@ export const getFormConfig = (props = {}) => { ...@@ -173,7 +173,7 @@ export const getFormConfig = (props = {}) => {
type: '', type: '',
clickType: 'reset', clickType: 'reset',
onClick: ({ params }) => { onClick: ({ params }) => {
// setTableParams({}); setTableParams({});
actionRef.current.reload(); actionRef.current.reload();
setCurrentTab(''); setCurrentTab('');
}, },
......
...@@ -266,9 +266,17 @@ const AfterSale = props => { ...@@ -266,9 +266,17 @@ const AfterSale = props => {
if (tab) { if (tab) {
tabChange(tab); tabChange(tab);
} }
form.setFieldsValue({ // setPageQueryOrderNo(orderNumber);
const params = {
orderNo: orderNumber, orderNo: orderNumber,
}); dealStatus: null,
serviceNo: null,
type: null,
receiverPhone: null,
receiverName: null,
};
form.setFieldsValue(params);
setTableParams(params);
if (actionRef.current) { if (actionRef.current) {
actionRef.current.reload(); actionRef.current.reload();
...@@ -318,7 +326,7 @@ const AfterSale = props => { ...@@ -318,7 +326,7 @@ const AfterSale = props => {
const requestParams = { const requestParams = {
page, page,
size, size,
orderNo: pageQueryOrderNo, // 首次请求需要直接使用 此方式,因为params中首次请求不存在orderNo // orderNo: pageQueryOrderNo, // 首次请求需要直接使用 此方式,因为params中首次请求不存在orderNo
...params, ...params,
startDate, startDate,
endDate, endDate,
......
...@@ -59,7 +59,7 @@ const FormCai = forwardRef((props, ref) => { ...@@ -59,7 +59,7 @@ const FormCai = forwardRef((props, ref) => {
name={[name, 'dishName']} name={[name, 'dishName']}
rules={[{ required: true, message: '请输入菜名.' }]} rules={[{ required: true, message: '请输入菜名.' }]}
> >
<Input maxLength={10} placeholder="最多10个字符" /> <Input maxLength={13} placeholder="最多13个字符" />
</Form.Item> </Form.Item>
</Col> </Col>
<Col span={2}> <Col span={2}>
...@@ -312,8 +312,8 @@ const FormPackage = forwardRef((props, ref) => { ...@@ -312,8 +312,8 @@ const FormPackage = forwardRef((props, ref) => {
onCancel={() => setVisibleGroup(false)} onCancel={() => setVisibleGroup(false)}
> >
<Input <Input
placeholder="请输入分组名称,最多10个字" placeholder="请输入分组名称,最多13个字"
maxLength={10} maxLength={13}
onChange={e => setGroupName(e.target.value)} onChange={e => setGroupName(e.target.value)}
/> />
</Modal> </Modal>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment