Commit 03c49b94 authored by Bill's avatar Bill

Merge branch 'fix0318' into 'v2-220318'

fix: 处理商品编辑情况下修改货品无法同步的问题 See merge request linkseeks-design/pro-platform!15
parents 5d2f14bb bec1f924
......@@ -24,7 +24,7 @@ const SelectGoodsForm: React.FC<{}> = (props) => {
const [selectGoodsRow, setSelectGoodsRow] = useState<GetProductGoodsGetGoodsListResponseDetail[]>([]) // 模态框选择的行数据
const [selectedGoodsRowKeys, setSelectedGoodsRowKeys] = useState<Array<number>>([])
const { ProductStore } = store
const { productInfoByEdit, selectCategoryId, selectBrandId } = ProductStore
const { productInfoByEdit, selectCategoryId, selectBrandId, setIsRecombination } = ProductStore
useEffect(() => {
// 品类 品牌变动重新渲染货品表格 清空选择 清空store
......@@ -107,6 +107,7 @@ const SelectGoodsForm: React.FC<{}> = (props) => {
ProductStore.setSelectedGoods([])
setIsSelectGoods(value.target.checked)
setIsChecked(value.target.checked)
setIsRecombination(true)
}
const rowSelection = {
......@@ -115,6 +116,7 @@ const SelectGoodsForm: React.FC<{}> = (props) => {
ProductStore.setSelectedGoods(selectedRows)
setSelectGoodsRow(selectedRows);
setSelectedGoodsRowKeys(selectedRowKeys);
setIsRecombination(true)
}
}
......
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