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

🐞 fix: 修改采购确认报价和商品询价Bug

parent 9ecac0bc
......@@ -21,6 +21,12 @@ const LogisticsBillQuery = () => {
})
}
const handleSubmit = (id: number) => {
PublicApi.postLogisticsOrderWaitSubmitSubmit({ id: id }).then(res => {
reload.current.reload()
})
}
const columns: ColumnType<any>[] = [
{
title: '物流单号',
......@@ -76,8 +82,10 @@ const LogisticsBillQuery = () => {
key: 'submitOrUpdateOrDel',
dataIndex: 'submitOrUpdateOrDel',
render: (text, data) => text && <>
<Button type='link'>提交</Button>
<Button type='link' onClick={() => history.push(`/memberCenter/logisticsAbility/logisticsBillSubmit/waitSbumitLogisticsBill/edit?id=${data.id}`)}>编辑</Button>
<Popconfirm title="确定要提交吗?" okText="是" cancelText="否" onConfirm={() => handleSubmit(data.id)}>
<Button type='link'>提交</Button>
</Popconfirm>
<Popconfirm title="确定要删除吗?" okText="是" cancelText="否" onConfirm={() => handleDelete(data.id)}>
<Button type='link'>
删除
......
......@@ -116,7 +116,11 @@ const BidModal: React.FC<IProps> = (props: any) => {
urls: files,
priceParityInfos,
}
for(let i = 0; i < dataSource.length; i++) {
if (isEmpty(priceParityInfos)) {
message.warning('请核对比价信息授标是否勾选!');
return
}
for (let i = 0; i < dataSource.length; i++) {
const count = sumBy(dataSource[i].company, 'awardTaxProbability');
if (count > 100 || count < 100) {
message.warning(`${dataSource[i].number}授标百分比分配不准确,请核对!`);
......
......@@ -191,7 +191,7 @@ const ContrastPrice = () => {
link === 'preview' ? null :
<Button
type='primary'
disabled={disabled}
// disabled={disabled}
onClick={() => setVisible(true)}
>
<CheckCircleOutlined />
......
......@@ -262,7 +262,7 @@ const Demand: React.FC<Iprops> = (props: any) => {
rules={[{ required: true, message: '请选择对接方式' }]}
>
<Radio.Group onChange={changeRadio}>
<Radio value={1}><Tooltip placement="topLeft" title={<>需求发布至企业商城求购频道</>}>发布至平台<QuestionCircleOutlined style={{ marginLeft: '5px' }} /></Tooltip></Radio>
<Radio value={1}><Tooltip placement="topLeft" title={<>需求发布至采购门户</>}>发布至平台<QuestionCircleOutlined style={{ marginLeft: '5px' }} /></Tooltip></Radio>
<Radio value={2}><Tooltip placement="topLeft" title={<>系统通过需求单品类、商品属性、适用地市与平台会员发布的商品品类、商品属性、归属地区进行匹配,推荐满足条件的平台会员</>}>系统匹配<QuestionCircleOutlined style={{ marginLeft: '5px' }} /></Tooltip></Radio>
<Radio value={3}><Tooltip placement="topLeft" title={<>选择与当前会员有归属关系的会员且角色类型为服务提供的会员(供应商),需求只发送给指定会员</>}>邀请会员<QuestionCircleOutlined style={{ marginLeft: '5px' }} /></Tooltip></Radio>
</Radio.Group>
......
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