Commit 2ab6242a authored by 前端-黄佳鑫's avatar 前端-黄佳鑫

🐞fix: 修改询价商品新增询价商品没传id的问题

parent 09992850
......@@ -564,19 +564,19 @@ const AddLogistics: React.FC<{}> = () => {
})
setQuery({ ...data });
setId(selectRow.id)
setCreateType(2)
// setCreateType(2)
break;
case 2:
conditions(selectRow)
setCreateType(4)
// setCreateType(4)
break;
case 3:
conditions(selectRow)
setCreateType(5)
// setCreateType(5)
break;
case 4:
conditions(selectRow)
setCreateType(6)
// setCreateType(6)
break;
}
setinvoicesvisible(false);
......
......@@ -58,7 +58,7 @@ const AddQuotes: React.FC<parmas> = (props) => {
const data = JSON.parse(sessionStorage.getItem(spam_id));
const inquiryGoods: any[] = [];
inquiryGoods.push({
commodityId: data.commodityId,
commodityId: id,
productId: data.id,
productName: data.name,
category: data.category,
......@@ -80,6 +80,7 @@ const AddQuotes: React.FC<parmas> = (props) => {
setEditData({
inquiryListProductRequests: inquiryGoods,
memberId: data.memberId,
roleId: data.memberRoleId,
memberName: data.memberName,
enclosureUrls: []
})
......
......@@ -169,7 +169,7 @@ const BasicInfo: React.FC<queryProps> = (props) => {
</Form.Item>
<Form.Item label='被询价会员' name='memberId' rules={[{ required: true, message: '请选择被询价会员' }]}>
<Search disabled={type === 3 || type === 2} value={memberName ? memberName : undefined} readOnly enterButton={<><LinkOutlined /> 选择</>} onSearch={() => setVisibleChannelMember(true)} />
{memberName && <Button type='link' onClick={() => window.open(`/shop?shopId=${btoa(JSON.stringify({ memberId, roleId }))}`)}>查看会员详情</Button>}
{memberName && <Button type='link' onClick={() => window.open(`/shop?roleId=${roleId}shopId=${btoa(JSON.stringify({ memberId, roleId }))}`)}>查看会员详情</Button>}
</Form.Item>
<Form.Item label='询价单号' name='orderNumber'>
<span>{(Object.keys(editData).length > 0 && editData.inquiryListNo) ? editData.inquiryListNo : '-'}</span>
......
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