Merge branch 'master' of http://gitlab.tianti.tg.unicom.local/eshop/fe_service_ebtp_frontend into master_jnryy_customerservice
This commit is contained in:
@ -1,22 +1,22 @@
|
||||
import React, { PureComponent } from 'react';
|
||||
import { history } from 'umi';
|
||||
import { Row, Col, Tooltip, Card, List, DatePicker, Button, Statistic, Spin, Empty, message } from 'antd';
|
||||
import { Row, Col, Tooltip, Card, List, DatePicker, Button, Statistic, Spin, Empty, message, Modal } from 'antd';
|
||||
// import PageHeaderWrapper from '@/components/PageHeaderWrapper';
|
||||
import { connect } from 'dva';
|
||||
import './index.less';
|
||||
import talkPng from '@/images/talk/talk.png';
|
||||
// import talkPng from '@/images/talk/talk.png';
|
||||
import { routerRedux } from 'dva/router';
|
||||
import { RightOutlined } from '@ant-design/icons';
|
||||
import moment from 'moment';
|
||||
import { followUpAProjectManager, getSessionUserData, getRA } from '@/utils/session';
|
||||
import { getDefId } from './service';
|
||||
import { followUpAProjectManager } from '@/utils/session';
|
||||
import { getDefId, isInsertIdOrPhoto } from './service';
|
||||
import { getURLInformation } from '@/utils/CommonUtils';
|
||||
import MessageDetail from '@/pages/SystemMessage/message/components/messageDetail'
|
||||
import NoticeDetail from '@/pages/notice/noticeList/components/NoticeDetail'
|
||||
import QuestDetail from '@/pages/SystemMessage/message/components/questDetail'
|
||||
import { getQuestList } from '@/pages/SystemMessage/message/service'
|
||||
import ApprovalDetail from '@/pages/SystemMessage/message/components/approvalDetail'
|
||||
import {submitHiddenForm, createHiddenForm} from '@/utils/CustomerService' //智慧客服
|
||||
import { submitHiddenForm, createHiddenForm } from '@/utils/CustomerService' //智慧客服
|
||||
@connect(({ dashboard, loading }) => ({
|
||||
...dashboard,
|
||||
downlistLoading: loading.effects['dashboard/fetchDowntlist'],
|
||||
@ -63,16 +63,17 @@ class manager extends PureComponent {
|
||||
type: "dashboard/fetchtClarify",
|
||||
payload: { authorizestate: '0', templatetype: '4', size: 6 }
|
||||
})
|
||||
NTKF_PARAM = {
|
||||
siteid: "bl_1000", //企业ID,,为固定值
|
||||
settingid: "bl_1000_1492484340268", //接待组ID,为固定值,必填
|
||||
uid: getSessionUserData()?.userId,
|
||||
uname: getSessionUserData()?.deptName + "-" + getSessionUserData()?.fullName, //用户名,未登录可以为空,但是不能给null,uname赋予的值显示到小能客户端
|
||||
isvip: "0", //是否为vip用户,0代表非会员,1代表会员,取值显示到小能客户端
|
||||
userlevel: "1", //网站自定义会员级别,1-N,可根据选择判断,取值显示到小能客户端
|
||||
erpparam: "abc" //erpparam为erp功能的扩展字段,可选,购买erp功能后用于erp功能集成
|
||||
}
|
||||
this.approvalDetail()
|
||||
// NTKF_PARAM = {
|
||||
// siteid: "bl_1000", //企业ID,,为固定值
|
||||
// settingid: "bl_1000_1492484340268", //接待组ID,为固定值,必填
|
||||
// uid: getSessionUserData()?.userId,
|
||||
// uname: getSessionUserData()?.deptName + "-" + getSessionUserData()?.fullName, //用户名,未登录可以为空,但是不能给null,uname赋予的值显示到小能客户端
|
||||
// isvip: "0", //是否为vip用户,0代表非会员,1代表会员,取值显示到小能客户端
|
||||
// userlevel: "1", //网站自定义会员级别,1-N,可根据选择判断,取值显示到小能客户端
|
||||
// erpparam: "abc" //erpparam为erp功能的扩展字段,可选,购买erp功能后用于erp功能集成
|
||||
// }
|
||||
this.approvalDetail();
|
||||
// this.isIdOrPhoto();
|
||||
}
|
||||
onChange = (date, dateString) => {
|
||||
this.setState({
|
||||
@ -151,59 +152,75 @@ class manager extends PureComponent {
|
||||
history.push('/ProjectLayout/Manager/HomePageSectionList');
|
||||
};
|
||||
//触发客服
|
||||
initChatUI = ()=>{
|
||||
initChatUI = () => {
|
||||
let roleAuthority = sessionStorage.getItem('roleAuthority');
|
||||
let data = getSessionUserData();
|
||||
const inputList = [
|
||||
{
|
||||
label:null,
|
||||
paraName:'origin',
|
||||
isEncode:false,
|
||||
paraVal:'eBid',
|
||||
},
|
||||
{
|
||||
label:null,
|
||||
paraName:'organizationId',
|
||||
isEncode:false,
|
||||
paraVal: data.organizationId,
|
||||
},
|
||||
{
|
||||
label:null,
|
||||
paraName:'tenderAgencyId',
|
||||
isEncode:false,
|
||||
paraVal:'EMPTY',
|
||||
},
|
||||
{
|
||||
label:null,
|
||||
paraName:'tenderAgencyName',
|
||||
isEncode:true,
|
||||
paraVal:'招标采购中心客服',
|
||||
},
|
||||
{
|
||||
label:null,
|
||||
paraName:'roleAuthority',
|
||||
isEncode:false,
|
||||
paraVal:JSON.parse(roleAuthority)[0],
|
||||
},
|
||||
{
|
||||
label:null,
|
||||
paraName:'module',
|
||||
isEncode:false,
|
||||
paraVal:'2',
|
||||
},
|
||||
{
|
||||
label:null,
|
||||
paraName:'custType',
|
||||
isEncode:false,
|
||||
paraVal:'1',
|
||||
},
|
||||
{
|
||||
label: null,
|
||||
paraName: 'origin',
|
||||
isEncode: false,
|
||||
paraVal: 'eBid',
|
||||
},
|
||||
{
|
||||
label: null,
|
||||
paraName: 'organizationId',
|
||||
isEncode: false,
|
||||
paraVal: data.organizationId,
|
||||
},
|
||||
{
|
||||
label: null,
|
||||
paraName: 'tenderAgencyId',
|
||||
isEncode: false,
|
||||
paraVal: 'EMPTY',
|
||||
},
|
||||
{
|
||||
label: null,
|
||||
paraName: 'tenderAgencyName',
|
||||
isEncode: true,
|
||||
paraVal: '招标采购中心客服',
|
||||
},
|
||||
{
|
||||
label: null,
|
||||
paraName: 'roleAuthority',
|
||||
isEncode: false,
|
||||
paraVal: JSON.parse(roleAuthority)[0],
|
||||
},
|
||||
{
|
||||
label: null,
|
||||
paraName: 'module',
|
||||
isEncode: false,
|
||||
paraVal: '2',
|
||||
},
|
||||
{
|
||||
label: null,
|
||||
paraName: 'custType',
|
||||
isEncode: false,
|
||||
paraVal: '1',
|
||||
},
|
||||
]
|
||||
createHiddenForm(inputList, window.location.pathname)
|
||||
submitHiddenForm()
|
||||
}
|
||||
//判断是否有身份证号或照片
|
||||
isIdOrPhoto = () => {
|
||||
const { warning } = Modal;
|
||||
isInsertIdOrPhoto().then(res => {
|
||||
if (res?.code == 200) {
|
||||
if (!res?.data) {
|
||||
warning({
|
||||
title: '提示',
|
||||
content: `您尚未维护身份证号与照片信息,请前往【我的工作台】->【代理机构信息管理】补充信息`,
|
||||
centered: true,
|
||||
});
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
render() {
|
||||
const { downlist, projectlist, staloading, tlist, trelist, idList, dateNum } = this.props;
|
||||
const { datevalue, messId, messageDetail, detailId, noticeDetail, questData, questVisible, mainDetail, } = this.state;
|
||||
const { datevalue, messId, messageDetail, detailId, noticeDetail, questData, questVisible, mainDetail, } = this.state;
|
||||
return (
|
||||
<>
|
||||
<a className="talk" onClick={() => this.initChatUI()}>系统操作咨询︵<span>8:30</span><span>|</span><span>12:30</span><span>13:00</span><span>|</span><span>17:00</span>︶<img src={talkPng} /></a>
|
||||
@ -211,7 +228,7 @@ class manager extends PureComponent {
|
||||
<Row className="topt">
|
||||
<Col span={8}><Card title="我的消息" bordered={false} className="cardtre" style={{ marginRight: "10px" }} extra={<div className="moret" onClick={() => {
|
||||
history.push('/SystemMessage/message')
|
||||
}}>更多<RightOutlined /></div>}>
|
||||
}}>更多<RightOutlined /></div>}>
|
||||
{trelist != [] && trelist.map((item, index) => {
|
||||
return (
|
||||
<div onClick={() => { item.templatetype == '3' ? this.toParticipate(item.servicecode) : this.lookDetail(item.msgId) }} className="messagetre" key={item.id}>
|
||||
|
Reference in New Issue
Block a user