Commit 83e99a23 authored by XieZhiXiong's avatar XieZhiXiong

新增会员id、角色id相关字段

parent 09170eeb
...@@ -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-12-09 16:00:20 * @LastEditTime: 2020-12-14 11:26:50
* @Description: 联动逻辑相关 * @Description: 联动逻辑相关
*/ */
import { Modal } from 'antd'; import { Modal } from 'antd';
...@@ -217,6 +217,8 @@ const fetchOrderPurchaseReceiptAddList = async (params: any) => { ...@@ -217,6 +217,8 @@ const fetchOrderPurchaseReceiptAddList = async (params: any) => {
data: res.data.data.map(item => ({ data: res.data.data.map(item => ({
...item, ...item,
memberName: item.supplyMembersName, memberName: item.supplyMembersName,
membersId: item.supplyMembersId,
membersRoleId: item.supplyMembersRoleId,
})), })),
total: res.data.totalCount, total: res.data.totalCount,
}; };
...@@ -234,6 +236,8 @@ const getOrderSalesInvoiceOrderList = async (params: any) => { ...@@ -234,6 +236,8 @@ const getOrderSalesInvoiceOrderList = async (params: any) => {
data: res.data.data.map(item => ({ data: res.data.data.map(item => ({
...item, ...item,
memberName: item.memberName, memberName: item.memberName,
membersId: item.memberId,
membersRoleId: item.memberRoleId,
})), })),
total: res.data.totalCount, total: res.data.totalCount,
}; };
...@@ -518,6 +522,8 @@ export const useBusinessEffects = (context, actions) => { ...@@ -518,6 +522,8 @@ export const useBusinessEffects = (context, actions) => {
// 设置单据公用的数据相关 // 设置单据公用的数据相关
setFieldValue('memberName', first ? first.memberName : ''); setFieldValue('memberName', first ? first.memberName : '');
setFieldValue('membersId', first ? first.membersId : '');
setFieldValue('membersRoleId', first ? first.membersRoleId : '');
setFieldValue('address', first ? `${first.fullAddress} ${first.receiverName}/${first.phone}` : ''); setFieldValue('address', first ? `${first.fullAddress} ${first.receiverName}/${first.phone}` : '');
// 以下数据只用于收集,不用于展示 // 以下数据只用于收集,不用于展示
......
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