Merge branch '20220907-异议投诉名称修改为异议回复' into 'release_20220923'

9.23 异议投诉名称修改为异议回复

See merge request eshop/fe_service_ebtp_frontend!3
This commit is contained in:
jl-zhoujl2
2022-09-23 07:54:33 +00:00

View File

@ -196,24 +196,24 @@ const Promenu: React.FC<{}> = () => {
setAnchorEl(null);
};
const initChatUI = () => { //智慧客服
if(MethodDict!='procurement_mode_6' && MethodDict!='procurement_mode_7' && window.location.pathname.indexOf('BidEvaluation')!=-1){
if (MethodDict != 'procurement_mode_6' && MethodDict != 'procurement_mode_7' && window.location.pathname.indexOf('BidEvaluation') != -1) {
message.warn('非谈判类项目【评标】阶段禁止沟通')
}else{
} else {
var tempForm = document.getElementById('tempForm_CustomerService') as HTMLFormElement
if(tempForm){
if (tempForm) {
var hideInput = document.getElementById('tempInput_CustomerService') as HTMLInputElement
if(hideInput){
hideInput.value= window.location.pathname
}else{
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
hideInput.type = "hidden"
hideInput.name = 'sceneUrl'
hideInput.value = window.location.pathname
tempForm.appendChild(hideInput)
}
tempForm.submit();
}else{
} else {
message.warn('请先选择跟进的项目')
}
}
@ -236,11 +236,11 @@ const Promenu: React.FC<{}> = () => {
history.push("/ProjectLayout/Archive/projectArchive")
setButtonValue(stepButtonClick(data?.[data?.length - 1]))
}}></Button> : null,
<Button key="customerservice" onClick={() =>{
<Button key="customerservice" onClick={() => {
initChatUI() //智慧客服
}} icon={<CustomerServiceTwoTone />}></Button>,
((randerRole == 'ebtp-agency-project-manager' || randerRole == 'ebtp-purchase' || randerRole == 'ebtp-supervision') && MethodDict != "procurement_mode_7")
? <Button key="manageyiyi" onClick={() => history.push("/Project/ProjectManage/ProjectManager/ObjectionComplaint")}></Button> : null,
? <Button key="manageyiyi" onClick={() => history.push("/Project/ProjectManage/ProjectManager/ObjectionComplaint")}></Button> : null,
(randerRole == 'ebtp-supplier' && MethodDict != "procurement_mode_7")
? <Button key="supplieryiyi" onClick={() => history.push("/Project/ProjectManage/Supplier/ObjectionComplaint")}></Button> : null,
<Button key="fanhui1" type="primary" onClick={() => history.push(getReturnURL())}></Button>