Commit e3e55891 authored by XieZhiXiong's avatar XieZhiXiong

修改接口参数字段

parent 7e620f4f
......@@ -224,6 +224,8 @@ const BillsForm: React.FC<BillsFormProps> = ({
}
const {
supplyMembersName,
supplyMembersId,
supplyMembersRoleId,
deliveryAddresId,
orderNo,
deliveryAddressInfo,
......@@ -239,6 +241,8 @@ const BillsForm: React.FC<BillsFormProps> = ({
id: +relevanceInvoicesId,
deliveryAddresId: +deliveryAddresId,
memberName: supplyMembersName,
membersId: supplyMembersId,
membersRoleId: supplyMembersRoleId,
fullAddress: deliveryAddressInfo.fullAddress || '',
receiverName: deliveryAddressInfo.receiverName || '',
phone: deliveryAddressInfo.phone || '',
......@@ -265,6 +269,8 @@ const BillsForm: React.FC<BillsFormProps> = ({
}
const {
createMemberName,
createMemberId,
createRoleId,
deliveryAddresId,
orderNo,
deliveryAddressInfo,
......@@ -280,6 +286,8 @@ const BillsForm: React.FC<BillsFormProps> = ({
id: +relevanceInvoicesId,
deliveryAddresId: +deliveryAddresId,
memberName: createMemberName,
membersId: createMemberId,
membersRoleId: createRoleId,
fullAddress: deliveryAddressInfo.fullAddress || '',
receiverName: deliveryAddressInfo.receiverName || '',
phone: deliveryAddressInfo.phone || '',
......@@ -716,6 +724,8 @@ const BillsForm: React.FC<BillsFormProps> = ({
transport,
invoicesDetailsRequests = [],
memberName,
membersId,
membersRoleId,
...rest
} = value;
const newInvoicesDetailsRequests = invoicesDetailsRequests.map(({
......@@ -766,6 +776,8 @@ const BillsForm: React.FC<BillsFormProps> = ({
};
}),
supplyMembersName: memberName,
supplyMembersId: membersId,
supplyMembersRoleId: membersRoleId,
})
.then(res => {
if (res.code !== 1000) {
......@@ -864,7 +876,11 @@ const BillsForm: React.FC<BillsFormProps> = ({
productCount: goodsCount,
};
}),
createMemberName: memberName,
// 后台说 不管是 采购入库单,还是 销售发货单 都用这三个字段
// createMemberName: memberName,
supplyMembersName: memberName,
supplyMembersId: membersId,
supplyMembersRoleId: membersRoleId,
})
.then(res => {
if (res.code !== 1000) {
......
......@@ -377,6 +377,16 @@ export const addBillSchema: ISchema = {
type: 'boolean',
display: false,
},
// 会员id,可以是采购会员id、销售会员id
membersId: {
type: 'boolean',
display: false,
},
// 会员角色id,可以是采购会员角色id、销售会员角色id
membersRoleId: {
type: 'boolean',
display: false,
},
},
},
},
......
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