Commit 223c2691 authored by XieZhiXiong's avatar XieZhiXiong

fix: 修复修改供应会员 选择单据列表数据不会改变的问题

parent 57396c64
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: XieZhiXiong * @Author: XieZhiXiong
* @Date: 2020-11-04 15:09:09 * @Date: 2020-11-04 15:09:09
* @LastEditors: XieZhiXiong * @LastEditors: XieZhiXiong
* @LastEditTime: 2020-12-24 10:32:10 * @LastEditTime: 2020-12-29 11:32:18
* @Description: 维修商品抽屉组件 * @Description: 维修商品抽屉组件
*/ */
import React, { useState, useEffect } from 'react'; import React, { useState, useEffect } from 'react';
...@@ -248,7 +248,10 @@ class GoodsDrawer extends React.Component<GoodsDrawerProps, GoodsDrawerState> { ...@@ -248,7 +248,10 @@ class GoodsDrawer extends React.Component<GoodsDrawerProps, GoodsDrawerState> {
}); });
if (!payload.length) { if (!payload.length) {
this.setState({ loading: false }); this.setState({
dataSource: orderListRes,
loading: false,
});
return; return;
} }
...@@ -575,6 +578,7 @@ class GoodsDrawer extends React.Component<GoodsDrawerProps, GoodsDrawerState> { ...@@ -575,6 +578,7 @@ class GoodsDrawer extends React.Component<GoodsDrawerProps, GoodsDrawerState> {
</Button> </Button>
</div> </div>
} }
destroyOnClose
> >
<div className={styles.order}> <div className={styles.order}>
<div className={styles['order-head']}> <div className={styles['order-head']}>
......
...@@ -29,6 +29,7 @@ const addSchemaAction = createFormActions(); ...@@ -29,6 +29,7 @@ const addSchemaAction = createFormActions();
const { const {
onFormInputChange$, onFormInputChange$,
onFormInit$, onFormInit$,
onFieldInputChange$,
} = FormEffectHooks; } = FormEffectHooks;
interface BillsFormProps { interface BillsFormProps {
...@@ -528,6 +529,10 @@ const ExchangeForm: React.FC<BillsFormProps> = ({ ...@@ -528,6 +529,10 @@ const ExchangeForm: React.FC<BillsFormProps> = ({
}); });
} }
}); });
onFieldInputChange$('supplierMember').subscribe(() => {
setGoodsValue([]);
});
}} }}
onSubmit={handleSubmit} onSubmit={handleSubmit}
actions={addSchemaAction} actions={addSchemaAction}
......
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