Commit d89a026c authored by Gavin Peng's avatar Gavin Peng

fix: 需求单报价-报价信息-关联报价商品

parent 8ed9fdce
......@@ -9,7 +9,8 @@ import {
Row,
Col,
Typography,
Space
Space,
message
} from 'antd';
import { CaretDownOutlined, CaretRightOutlined } from '@ant-design/icons';
import style from './index.less';
......@@ -236,11 +237,18 @@ const OfferInfo: React.FC<IProps> = (props: any) => {
const productAttributeJson = params.attribute.map(item => { return item.customerAttributeValueList[0].value }).join('/');
const param = { ...data };
const query = [...param[idx]];
if(!!!params.product.id) {
message.warning(
intl.formatMessage({ id: 'table.purchase.qingxuanze', defaultMessage: '请选择' }) + intl.formatMessage({ id: 'detail.purchase.modalTitle5', defaultMessage: '关联报价商品' })
)
return
}
query[index].productId = params.product.id;
query[index].customerCategoryName = params.product.customerCategoryName;
query[index].productName = params.product.name;
query[index].productBrand = params.product.brandName;
query[index].productAttributeJson = `${productAttributeJson}-${params.product.customerCategoryName}`;
query[index].productAttributeJson = (productAttributeJson && params.product.customerCategoryName) ? `${productAttributeJson}-${params.product.customerCategoryName}` : null;
query[index].enclosureUrls = params.files;
param[idx] = [...query];
setData(param)
......
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