部署供货商客服入口
This commit is contained in:
@ -29,10 +29,10 @@ export default defineConfig({
|
|||||||
REACT_APP_CUSTOMERSERVICE_USERCENTER: 'http://10.242.31.158:8100/auth/oauth/authorize?response_type=code',
|
REACT_APP_CUSTOMERSERVICE_USERCENTER: 'http://10.242.31.158:8100/auth/oauth/authorize?response_type=code',
|
||||||
|
|
||||||
//智慧客服client_id
|
//智慧客服client_id
|
||||||
REACT_APP_CUSTOMERSERVICE_CLIENT_ID: 'S00hFPxc',
|
REACT_APP_CUSTOMERSERVICE_CLIENT_ID: 'COsHJydx',
|
||||||
|
|
||||||
//智慧客服地址
|
//智慧客服地址
|
||||||
REACT_APP_CUSTOMERSERVICE_REDIRECT: 'http://localhost:3000',
|
REACT_APP_CUSTOMERSERVICE_REDIRECT: 'http://10.242.31.158:8632',
|
||||||
|
|
||||||
// //智慧客服文档中心查看图片地址
|
// //智慧客服文档中心查看图片地址
|
||||||
// REACT_APP_CUSTOMERSERVICE_DOC_REDIRECT: 'http://cos.gz-tst.cos.tg.unicom.local/349553515466:mall/',
|
// REACT_APP_CUSTOMERSERVICE_DOC_REDIRECT: 'http://cos.gz-tst.cos.tg.unicom.local/349553515466:mall/',
|
||||||
|
@ -26,10 +26,10 @@ export default defineConfig({
|
|||||||
REACT_APP_CUSTOMERSERVICE_USERCENTER: 'http://10.242.31.158:8100/auth/oauth/authorize?response_type=code',
|
REACT_APP_CUSTOMERSERVICE_USERCENTER: 'http://10.242.31.158:8100/auth/oauth/authorize?response_type=code',
|
||||||
|
|
||||||
//智慧客服client_id
|
//智慧客服client_id
|
||||||
REACT_APP_CUSTOMERSERVICE_CLIENT_ID: 'S00hFPxc',
|
REACT_APP_CUSTOMERSERVICE_CLIENT_ID: 'COsHJydx',
|
||||||
|
|
||||||
//智慧客服地址
|
//智慧客服地址
|
||||||
REACT_APP_CUSTOMERSERVICE_REDIRECT: 'http://localhost:3000',
|
REACT_APP_CUSTOMERSERVICE_REDIRECT: 'http://10.242.31.158:8632',
|
||||||
|
|
||||||
// //智慧客服ws地址
|
// //智慧客服ws地址
|
||||||
// REACT_APP_CUSTOMERSERVICE_WS_REDIRECT: 'ws://10.242.37.148:18022/api/api/biz-customer-service',
|
// REACT_APP_CUSTOMERSERVICE_WS_REDIRECT: 'ws://10.242.37.148:18022/api/api/biz-customer-service',
|
||||||
|
@ -25,10 +25,10 @@ export default defineConfig({
|
|||||||
REACT_APP_CUSTOMERSERVICE_USERCENTER: 'http://10.242.31.158:8100/auth/oauth/authorize?response_type=code',
|
REACT_APP_CUSTOMERSERVICE_USERCENTER: 'http://10.242.31.158:8100/auth/oauth/authorize?response_type=code',
|
||||||
|
|
||||||
//智慧客服client_id
|
//智慧客服client_id
|
||||||
REACT_APP_CUSTOMERSERVICE_CLIENT_ID: 'S00hFPxc',
|
REACT_APP_CUSTOMERSERVICE_CLIENT_ID: 'COsHJydx',
|
||||||
|
|
||||||
//智慧客服地址
|
//智慧客服地址
|
||||||
REACT_APP_CUSTOMERSERVICE_REDIRECT: 'http://localhost:3000',
|
REACT_APP_CUSTOMERSERVICE_REDIRECT: 'http://10.242.31.158:8632',
|
||||||
// //智慧客服ws地址
|
// //智慧客服ws地址
|
||||||
// REACT_APP_CUSTOMERSERVICE_WS_REDIRECT: 'ws://uscm.unicom.local:18022/api/api/biz-customer-service',
|
// REACT_APP_CUSTOMERSERVICE_WS_REDIRECT: 'ws://uscm.unicom.local:18022/api/api/biz-customer-service',
|
||||||
|
|
||||||
|
@ -25,10 +25,10 @@ export default defineConfig({
|
|||||||
REACT_APP_CUSTOMERSERVICE_USERCENTER: 'http://10.242.31.158:8100/auth/oauth/authorize?response_type=code',
|
REACT_APP_CUSTOMERSERVICE_USERCENTER: 'http://10.242.31.158:8100/auth/oauth/authorize?response_type=code',
|
||||||
|
|
||||||
//智慧客服client_id
|
//智慧客服client_id
|
||||||
REACT_APP_CUSTOMERSERVICE_CLIENT_ID: 'S00hFPxc',
|
REACT_APP_CUSTOMERSERVICE_CLIENT_ID: 'COsHJydx',
|
||||||
|
|
||||||
//智慧客服地址
|
//智慧客服地址
|
||||||
REACT_APP_CUSTOMERSERVICE_REDIRECT: 'http://localhost:3000',
|
REACT_APP_CUSTOMERSERVICE_REDIRECT: 'http://10.242.31.158:8632',
|
||||||
// //智慧客服ws地址
|
// //智慧客服ws地址
|
||||||
// REACT_APP_CUSTOMERSERVICE_WS_REDIRECT: 'ws://10.242.31.54:18022/api/api/biz-customer-service',
|
// REACT_APP_CUSTOMERSERVICE_WS_REDIRECT: 'ws://10.242.31.54:18022/api/api/biz-customer-service',
|
||||||
|
|
||||||
|
@ -194,6 +194,24 @@ const Promenu: React.FC<{}> = () => {
|
|||||||
const handlePopoverClose = () => {
|
const handlePopoverClose = () => {
|
||||||
setAnchorEl(null);
|
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'
|
||||||
|
tempForm.appendChild(hideInput)
|
||||||
|
}
|
||||||
|
tempForm.submit();
|
||||||
|
}
|
||||||
|
}
|
||||||
return (
|
return (
|
||||||
<div key='promenuDiv1' style={{ borderRadius: "6px", overflow: "hidden" }}>
|
<div key='promenuDiv1' style={{ borderRadius: "6px", overflow: "hidden" }}>
|
||||||
<div key='promenuDiv2' className="site-page-header-ghost-wrapper" style={{ background: '#ffffff' }}>
|
<div key='promenuDiv2' className="site-page-header-ghost-wrapper" style={{ background: '#ffffff' }}>
|
||||||
@ -212,6 +230,9 @@ const Promenu: React.FC<{}> = () => {
|
|||||||
history.push("/ProjectLayout/Archive/projectArchive")
|
history.push("/ProjectLayout/Archive/projectArchive")
|
||||||
setButtonValue(stepButtonClick(data?.[data?.length - 1]))
|
setButtonValue(stepButtonClick(data?.[data?.length - 1]))
|
||||||
}}>项目归档</Button> : null,
|
}}>项目归档</Button> : null,
|
||||||
|
<Button key="customerservice" onClick={() =>{
|
||||||
|
initChatUI() //智慧客服
|
||||||
|
}}>我要咨询</Button>,
|
||||||
((randerRole == 'ebtp-agency-project-manager' || randerRole == 'ebtp-purchase' || randerRole == 'ebtp-supervision') && MethodDict != "procurement_mode_7")
|
((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")
|
(randerRole == 'ebtp-supplier' && MethodDict != "procurement_mode_7")
|
||||||
|
@ -11,6 +11,7 @@ import { getDictName, getProjectTypeCode, getURLInformation, getUrlParam, getUrl
|
|||||||
import { btnAuthority } from '@/utils/authority';
|
import { btnAuthority } from '@/utils/authority';
|
||||||
import ProList from '@ant-design/pro-list';
|
import ProList from '@ant-design/pro-list';
|
||||||
import { MessageOutlined } from '@ant-design/icons';
|
import { MessageOutlined } from '@ant-design/icons';
|
||||||
|
import CreateForm from '@/pages/ListTableList/components/CreateForm';
|
||||||
|
|
||||||
const { TabPane } = Tabs;
|
const { TabPane } = Tabs;
|
||||||
const { TextArea } = Input;
|
const { TextArea } = Input;
|
||||||
@ -127,7 +128,7 @@ const Index: React.FC<{}> = () => {
|
|||||||
title: '我要咨询',
|
title: '我要咨询',
|
||||||
dataIndex: 'consult',
|
dataIndex: 'consult',
|
||||||
render: (text: any, record: any) => (
|
render: (text: any, record: any) => (
|
||||||
<Button type="text" danger size='large' icon={<MessageOutlined />} onClick={()=>{initChatUI(record)}}/>
|
<Button type="text" danger size='large' icon={<MessageOutlined />} onClick={()=>{createHiddenForm(record);initChatUI()}}/>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -291,6 +292,8 @@ const Index: React.FC<{}> = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const saveProject = async (val: any) => { // 点击项目跟进存储项目信息
|
const saveProject = async (val: any) => { // 点击项目跟进存储项目信息
|
||||||
|
//创建临时表单-智慧客服
|
||||||
|
createHiddenForm(val)
|
||||||
val.returnURL = getReturnURL()
|
val.returnURL = getReturnURL()
|
||||||
await followUpAProjectSupplier(val);
|
await followUpAProjectSupplier(val);
|
||||||
history.push('/ProjectLayout/Supplier/HomePageSectionList')
|
history.push('/ProjectLayout/Supplier/HomePageSectionList')
|
||||||
@ -403,10 +406,12 @@ const Index: React.FC<{}> = () => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
const initChatUI = (record:any) => { //智慧客服
|
const createHiddenForm = (record:any)=>{//智慧客服-创建临时表单
|
||||||
const customerservice = REACT_APP_CUSTOMERSERVICE_USERCENTER + '&client_id=' + REACT_APP_CUSTOMERSERVICE_CLIENT_ID + '&redirect_uri=' + REACT_APP_CUSTOMERSERVICE_REDIRECT + '/redirect?page=home&mall3_token=';//智慧客服
|
const customerservice = REACT_APP_CUSTOMERSERVICE_USERCENTER + '&client_id=' + REACT_APP_CUSTOMERSERVICE_CLIENT_ID + '&redirect_uri=' + REACT_APP_CUSTOMERSERVICE_REDIRECT + '/redirect?page=home&mall3_token=';//智慧客服
|
||||||
var tempForm = document.createElement("form")
|
var tempForm = document.getElementById('tempForm_CustomerService') as HTMLFormElement
|
||||||
tempForm.id="tempForm1"
|
if(tempForm) document.body.removeChild(tempForm);
|
||||||
|
tempForm = document.createElement("form")
|
||||||
|
tempForm.id="tempForm_CustomerService"
|
||||||
tempForm.method="post"
|
tempForm.method="post"
|
||||||
tempForm.action=customerservice + sessionStorage.getItem('Authorization')
|
tempForm.action=customerservice + sessionStorage.getItem('Authorization')
|
||||||
tempForm.target='_blank'
|
tempForm.target='_blank'
|
||||||
@ -512,12 +517,22 @@ const Index: React.FC<{}> = () => {
|
|||||||
tempForm.appendChild(hideInput)
|
tempForm.appendChild(hideInput)
|
||||||
})
|
})
|
||||||
document.body.appendChild(tempForm);
|
document.body.appendChild(tempForm);
|
||||||
tempForm.submit();
|
|
||||||
document.body.removeChild(tempForm);
|
|
||||||
}else{
|
}else{
|
||||||
message.warn('参数为空')
|
message.warn('参数为空')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
const initChatUI = () => { //智慧客服
|
||||||
|
var tempForm = document.getElementById('tempForm_CustomerService') as HTMLFormElement
|
||||||
|
var hideInput = document.createElement("input")
|
||||||
|
if(tempForm){
|
||||||
|
hideInput.type="hidden"
|
||||||
|
hideInput.name= 'consultType'
|
||||||
|
hideInput.value= 'PROJECTLIST'
|
||||||
|
tempForm.appendChild(hideInput)
|
||||||
|
tempForm.submit();
|
||||||
|
document.body.removeChild(tempForm);
|
||||||
|
}
|
||||||
|
}
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<PageHeader
|
<PageHeader
|
||||||
|
@ -17,6 +17,7 @@ import Weboffice from "@/pages/webOffice/weboffice";
|
|||||||
import { queryingPagingData } from '@/utils/PageUtils';
|
import { queryingPagingData } from '@/utils/PageUtils';
|
||||||
import ExtendUpload from '@/utils/ExtendUpload';
|
import ExtendUpload from '@/utils/ExtendUpload';
|
||||||
import { btnAuthority } from '@/utils/authority';
|
import { btnAuthority } from '@/utils/authority';
|
||||||
|
import { MessageOutlined } from '@ant-design/icons';
|
||||||
|
|
||||||
const { TabPane } = Tabs;
|
const { TabPane } = Tabs;
|
||||||
|
|
||||||
@ -107,6 +108,133 @@ const LookingForBusinessOpportunitiesList: React.FC<{}> = () => {
|
|||||||
}
|
}
|
||||||
return '标段';
|
return '标段';
|
||||||
}
|
}
|
||||||
|
const createHiddenForm = (record:any)=>{//智慧客服-创建临时表单
|
||||||
|
const customerservice = REACT_APP_CUSTOMERSERVICE_USERCENTER + '&client_id=' + REACT_APP_CUSTOMERSERVICE_CLIENT_ID + '&redirect_uri=' + REACT_APP_CUSTOMERSERVICE_REDIRECT + '/redirect?page=home&mall3_token=';//智慧客服
|
||||||
|
var tempForm = document.getElementById('tempForm_CustomerService') as HTMLFormElement
|
||||||
|
if(tempForm) document.body.removeChild(tempForm);
|
||||||
|
tempForm = document.createElement("form")
|
||||||
|
tempForm.id="tempForm_CustomerService"
|
||||||
|
tempForm.method="post"
|
||||||
|
tempForm.action=customerservice + sessionStorage.getItem('Authorization')
|
||||||
|
tempForm.target='_blank'
|
||||||
|
|
||||||
|
const inputList = [
|
||||||
|
{
|
||||||
|
paraName:'projectName',
|
||||||
|
isEncode:true,
|
||||||
|
defaultVal:null,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
paraName:'projectBizNum',
|
||||||
|
isEncode:false,
|
||||||
|
defaultVal:null,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
paraName:'tenderAgencyId',
|
||||||
|
isEncode:false,
|
||||||
|
defaultVal:null,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
paraName:'tenderAgencyName',
|
||||||
|
isEncode:true,
|
||||||
|
defaultVal:null,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
paraName:'tendereeName',
|
||||||
|
isEncode:true,
|
||||||
|
defaultVal:null,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
paraName:'status',
|
||||||
|
isEncode:false,
|
||||||
|
defaultVal:null,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
paraName:'ownerContactName',
|
||||||
|
isEncode:true,
|
||||||
|
defaultVal:null,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
paraName:'ownerContactId',
|
||||||
|
isEncode:false,
|
||||||
|
defaultVal:null,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
paraName:'ownerContactTel',
|
||||||
|
isEncode:false,
|
||||||
|
defaultVal:null,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
paraName:'appManagerName',
|
||||||
|
isEncode:true,
|
||||||
|
defaultVal:null,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
paraName:'appManagerId',
|
||||||
|
isEncode:false,
|
||||||
|
defaultVal:null,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
paraName:'appManagerTel',
|
||||||
|
isEncode:false,
|
||||||
|
defaultVal:null,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
paraName:'roleAuthority',
|
||||||
|
isEncode:false,
|
||||||
|
defaultVal:null,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
paraName:'module',
|
||||||
|
isEncode:false,
|
||||||
|
defaultVal:'10',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
paraName:'custType',
|
||||||
|
isEncode:false,
|
||||||
|
defaultVal:'2',
|
||||||
|
},
|
||||||
|
]
|
||||||
|
if(inputList && inputList.length>0){
|
||||||
|
inputList.map(input=>{
|
||||||
|
var hideInput = document.createElement("input")
|
||||||
|
hideInput.type="hidden"
|
||||||
|
hideInput.name= input.paraName
|
||||||
|
|
||||||
|
if(input.paraName=='roleAuthority'){
|
||||||
|
let roleAuthority: any | null = sessionStorage.getItem('roleAuthority');
|
||||||
|
hideInput.value = JSON.parse(roleAuthority)[0]
|
||||||
|
}else{
|
||||||
|
if(input.isEncode){
|
||||||
|
hideInput.value = encodeURI(record[input.paraName])
|
||||||
|
}else{
|
||||||
|
if(input.defaultVal!=null){
|
||||||
|
hideInput.value = input.defaultVal
|
||||||
|
}else{
|
||||||
|
hideInput.value = record[input.paraName]
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
tempForm.appendChild(hideInput)
|
||||||
|
})
|
||||||
|
document.body.appendChild(tempForm);
|
||||||
|
}else{
|
||||||
|
message.warn('参数为空')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const initChatUI = () => { //智慧客服
|
||||||
|
var tempForm = document.getElementById('tempForm_CustomerService') as HTMLFormElement
|
||||||
|
var hideInput = document.createElement("input")
|
||||||
|
if(tempForm){
|
||||||
|
hideInput.type="hidden"
|
||||||
|
hideInput.name= 'consultType'
|
||||||
|
hideInput.value= 'PROJECTLIST'
|
||||||
|
tempForm.appendChild(hideInput)
|
||||||
|
tempForm.submit();
|
||||||
|
document.body.removeChild(tempForm);
|
||||||
|
}
|
||||||
|
}
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
setTableLoading(true);
|
setTableLoading(true);
|
||||||
if (bidMethodDict.indexOf("procurement_mode_4") > -1) {
|
if (bidMethodDict.indexOf("procurement_mode_4") > -1) {
|
||||||
@ -155,6 +283,13 @@ const LookingForBusinessOpportunitiesList: React.FC<{}> = () => {
|
|||||||
title: '项目名称',
|
title: '项目名称',
|
||||||
dataIndex: 'projectName',
|
dataIndex: 'projectName',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '我要咨询',
|
||||||
|
dataIndex: 'consult',
|
||||||
|
render: (text: any, record: any) => (
|
||||||
|
<Button type="text" danger size='large' icon={<MessageOutlined />} onClick={()=>{createHiddenForm(record);initChatUI()}}/>
|
||||||
|
),
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: bidMethodDict.indexOf("procurement_mode_4") !== -1 ? '招募人' : '采购人',
|
title: bidMethodDict.indexOf("procurement_mode_4") !== -1 ? '招募人' : '采购人',
|
||||||
dataIndex: 'tendereeOrgName',
|
dataIndex: 'tendereeOrgName',
|
||||||
|
Reference in New Issue
Block a user