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

feat(确认询价报价): 跳转链接加单号和id

parent c8d88aff
......@@ -70,7 +70,7 @@ const OfferSearch = () => {
title: '操作',
key: 'operate',
dataIndex: 'operate',
render: (_, record) => record.isShowPurchaseOrder && <Button type='link' onClick={() => history.push(`/memberCenter/tranactionAbility/purchaseOrder/readyAddOrder/b2b/add?modelType=3`)}>创建采购订单</Button>
render: (_, record) => record.isShowPurchaseOrder && <Button type='link' onClick={() => history.push(`/memberCenter/tranactionAbility/purchaseOrder/readyAddOrder/b2b/add?modelType=3&quotationNo=${record.quotationNo}&id=${record.id}`)}>创建采购订单</Button>
}
];
......
......@@ -64,7 +64,7 @@ const DateModalLayout: React.FC<DateModalProps> = (props: any) => {
name='reason'
rules={[{required: true, message: '请输入原因'}]}
>
<Input.TextArea rows={3} />
<Input.TextArea rows={3} maxLength={50} />
</Form.Item>
</Form>
</Modal>
......
......@@ -137,16 +137,16 @@ const AnchorModal: React.FC<AnchorModalProps> = (props: any) => {
/** 选择货品点击 */
const confirm = (selectRowKeys: string[] | number[], selectRowRecord: any) => {
const selectRow = selectRowRecord;
console.log(ids, 10086)
if (ids.includes(selectRow[0].id)) {
message.error('货品已存在,请勿重复选择!')
return
}
if (selectRow.length > 0) {
const data: any = selectRow[0]
if (data.customerCategory.category) {
const fullId = data.customerCategory.category.fullId;
if (data.customerCategory) {
const fullId = data.customerCategory.fullId;
const ids = fullId.replace(/\b(0+)/gi, '').split('.');
console.log(ids, fullId)
form.setFieldsValue({
ids: ids.join(',').split(','),
})
......
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