Commit 0fe96d9d authored by XieZhiXiong's avatar XieZhiXiong

单据数量默认为商品数量

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