diff --git a/src/assets/img/kefu.png b/src/assets/img/kefu.png new file mode 100644 index 0000000..4bd2a8f Binary files /dev/null and b/src/assets/img/kefu.png differ diff --git a/src/components/Promenu/index.tsx b/src/components/Promenu/index.tsx index 6417dc6..3231469 100644 --- a/src/components/Promenu/index.tsx +++ b/src/components/Promenu/index.tsx @@ -195,22 +195,24 @@ const Promenu: React.FC<{}> = () => { setAnchorEl(null); }; const initChatUI = () => { //智慧客服 - var pathname = window.location.pathname - var consultType = pathname.substring(pathname.lastIndexOf('/')+1) - var tempForm = document.getElementById('tempForm_CustomerService') as HTMLFormElement - if(tempForm){ - var hideInput = document.getElementById('tempInput_CustomerService') as HTMLInputElement - if(hideInput){ - hideInput.value= consultType - }else{ - hideInput = document.createElement("input") - hideInput.id = 'tempInput_CustomerService' - hideInput.type="hidden" - hideInput.name= 'consultType' - hideInput.value= consultType - tempForm.appendChild(hideInput) + if(MethodDict!='procurement_mode_6' && MethodDict!='procurement_mode_7' && window.location.pathname.indexOf('BidEvaluation')!=-1){ + message.warn('非谈判类项目【评标】阶段禁止沟通') + }else{ + var tempForm = document.getElementById('tempForm_CustomerService') as HTMLFormElement + if(tempForm){ + var hideInput = document.getElementById('tempInput_CustomerService') as HTMLInputElement + if(hideInput){ + hideInput.value= window.location.pathname + }else{ + hideInput = document.createElement("input") + hideInput.id = 'tempInput_CustomerService' + hideInput.type="hidden" + hideInput.name= 'sceneUrl' + hideInput.value= window.location.pathname + tempForm.appendChild(hideInput) + } + tempForm.submit(); } - tempForm.submit(); } } return ( diff --git a/src/pages/Tender/ProjectsInvolved/index.tsx b/src/pages/Tender/ProjectsInvolved/index.tsx index 28450dd..5dd6a87 100644 --- a/src/pages/Tender/ProjectsInvolved/index.tsx +++ b/src/pages/Tender/ProjectsInvolved/index.tsx @@ -1,17 +1,15 @@ -import React, { useState, useRef, useEffect } from 'react'; -import { Button, Tabs, Form, Input, Modal, Space, Checkbox, message, PageHeader, Popconfirm, Progress, Tag, Spin } from 'antd'; +import React, { useState, useRef, } from 'react'; +import { Button, Tabs, Form, Input, Modal, Checkbox, message, PageHeader, Popconfirm, Progress, Spin } from 'antd'; import ProTable, { ActionType, ProColumns } from '@ant-design/pro-table'; import { getSection, exitProject, getProject, getOther, supplierRegister, exitProjectPayCheck } from './service'; import { getSupplierUser } from '@/utils/SupplierList/service' -import { getProMethod, getSessionUserData, getRA } from '@/utils/session'; +import { getProMethod, } from '@/utils/session'; import '@/assets/ld_style.less'; import { history } from 'umi'; import { followUpAProjectSupplier, getDicData } from '@/utils/session'; import { getDictName, getProjectTypeCode, getURLInformation, getUrlParam, getUrlRelativePath, isEmpty, isNotEmpty, proTableValueEnum, proTableValueEnumOther } from '@/utils/CommonUtils'; import { btnAuthority } from '@/utils/authority'; -import ProList from '@ant-design/pro-list'; -import { MessageOutlined } from '@ant-design/icons'; -import CreateForm from '@/pages/ListTableList/components/CreateForm'; +import kefu from '@/assets/img/kefu.png' //智慧客服 const { TabPane } = Tabs; const { TextArea } = Input; @@ -128,7 +126,7 @@ const Index: React.FC<{}> = () => { title: '我要咨询', dataIndex: 'consult', render: (text: any, record: any) => ( -