Commit 223c2691 authored by XieZhiXiong's avatar XieZhiXiong

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

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