Commit b8d71152 authored by XieZhiXiong's avatar XieZhiXiong

Merge branch 'dev' into test

parents 8b1700e8 0fe96d9d
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: XieZhiXiong * @Author: XieZhiXiong
* @Date: 2020-09-16 15:16:47 * @Date: 2020-09-16 15:16:47
* @LastEditors: XieZhiXiong * @LastEditors: XieZhiXiong
* @LastEditTime: 2020-10-21 19:09:27 * @LastEditTime: 2020-10-22 09:25:26
* @Description: 联动逻辑相关 * @Description: 联动逻辑相关
*/ */
import { Modal } from 'antd'; import { Modal } from 'antd';
...@@ -394,7 +394,6 @@ export const useBusinessEffects = (context, actions) => { ...@@ -394,7 +394,6 @@ export const useBusinessEffects = (context, actions) => {
const { name, originAsyncData, value } = fieldState; const { name, originAsyncData, value } = fieldState;
const current = originAsyncData.find(item => item.productId === value); const current = originAsyncData.find(item => item.productId === value);
console.log('value', value)
// 取消选择 // 取消选择
if (!value) { if (!value) {
setFieldState( setFieldState(
...@@ -472,7 +471,7 @@ export const useBusinessEffects = (context, actions) => { ...@@ -472,7 +471,7 @@ export const useBusinessEffects = (context, actions) => {
return `invoicesDetailsRequests.${$1}.productCount` return `invoicesDetailsRequests.${$1}.productCount`
}), }),
state => { state => {
state.value = 1; state.value = current.purchaseCount;
} }
); );
setFieldState( setFieldState(
......
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