import React, { PureComponent } from 'react'; import { history } from 'umi'; import { Row, Col, Tooltip, Card, List, DatePicker, Button, Statistic, Spin, Empty, message,Popconfirm } from 'antd'; import { connect } from 'dva'; import './index.less'; import talkPng from '@/images/talk/talk.png'; import { routerRedux } from 'dva/router'; import { RightOutlined } from '@ant-design/icons'; import moment from 'moment'; import { auctionFollowUpAProjectManager, getRA } from '@/utils/session'; import { getDefId } 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 {submitHiddenForm, createHiddenForm} from '@/utils/CustomerService' //智慧客服 @connect(({ dashboard, loading }) => ({ ...dashboard, fetchtPageList: loading.effects['dashboard/fetchtPageList'], disposalListLoading: loading.effects['dashboard/fetchDisposalList'], })) class manager extends PureComponent { state = { datevalue: moment(moment().format('YYYYMM'), 'YYYY-MM'), datestring: moment().format('YYYYMM'), messId: '0', // 消息id messageDetail: false, // 消息弹窗 detailId: '1', // 公告id noticeDetail: false, // 公告弹窗 questData: {},//问卷数据 questVisible: false, //问卷弹窗 } componentDidMount() { this.props.dispatch({ type: "dashboard/fetchDisposalList", payload: { selectDate: moment().format('YYYY-MM') } }) this.props.dispatch({ type: "dashboard/fetchtlist", payload: { limit: 7 } }) this.props.dispatch({ type: "dashboard/fetchtPageList", payload: { pageNo: 1, pageSize: 4, limit: 4 } }) this.props.dispatch({ type: "dashboard/fetchtlistre", payload: { pageNo: 1, pageSize: 7 } }) // 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功能集成 // } } onChange = (date, dateString) => { this.setState({ datevalue: moment(dateString, 'YYYY-MM'), datestring: dateString }) } onSearch = () => { const { datestring } = this.state; this.props.dispatch({ type: "dashboard/save", payload: { staloading: true } }) this.props.dispatch({ type: "dashboard/fetchDisposalList", payload: { selectDate: datestring } }) } lookDetail = (id) => { // 消息查看详情 this.setState({ messId: id, messageDetail: true }) } closeModel = () => { // 关闭消息弹窗 this.setState({ messageDetail: false }) } lookInfo = (id) => { // 公告查看 this.setState({ detailId: id, noticeDetail: true }) } noticeModel = () => { // 公告关闭消息弹窗 this.setState({ noticeDetail: false }) } toParticipate = async (servicecode) => {//问卷调查弹窗 const { questId } = JSON.parse(servicecode); await getQuestList({ id: questId }).then(res => { if (res?.code == 200 && res?.success) { this.setState({ questData: res?.data, questVisible: true, }) } }) } closeParticipate = () => { // 关闭问卷调查弹窗 this.setState({ questVisible: false }) } followUpProject = async (data) => { // 项目跟进 auctionFollowUpAProjectManager(data) // sessionStorage.setItem('projectData', JSON.stringify(data)); // sessionStorage.setItem('defId', JSON.stringify('auction')); history.push('/ProjectLayout/Auction/AuctionInfoManage') }; //触发客服 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', }, ] createHiddenForm(inputList, window.location.pathname) submitHiddenForm() } render() { const { projectlist, staloading, tlist, trelist, pagelist, disposalList } = this.props; const { datevalue, messId, messageDetail, detailId, noticeDetail, questData, questVisible, } = this.state; return ( <> { return <>

系统操作咨询仅可以解决您在平台的操作问题,如想了解发票、保证金及项目相关问题请点击具体项目的咨询窗口进行咨询。

是否还要继续咨询系统操作问题?

}} onConfirm={()=>this.initChatUI()} okText="是" cancelText="否" > 系统操作咨询︵8:30|12:3013:00|17:00
{/* this.initChatUI()}>系统操作咨询︵8:30|12:3013:00|17:00 */}
history.push('/SystemMessage/message')}>更多
}> {trelist != [] && trelist.map((item, index) => { return (
{ item.templatetype == '3' ? this.toParticipate(item.servicecode) : this.lookDetail(item.msgId) }} className="messagetre" key={item.id}>
{index + 1}
{item.title}
{item.createtime}
) })} }>
竞拍
history.push('/Auction/AuctionManagerProject')}>
竞拍的数量
history.push('/notice/noticeList')}>更多}> {tlist != [] && tlist.map((item, index) => { return (
{ this.lookInfo(item.id) }} key={item.id}>
{index + 1}
{item.noticeTitle}
{item.updateDate}
) })}
history.push('/Auction/AuctionManagerProject')}>更多}>
{item.projectName}
竞拍开始时间:{item.auctionStartTime}
} />
{messageDetail ? { this.closeModel(), this.props.dispatch({ type: "dashboard/fetchtlistre", payload: { pageNo: 1, pageSize: 7 } }) }} modalVisible={messageDetail} /> : null} {questVisible ? { this.closeParticipate(), this.props.dispatch({ type: "dashboard/fetchtlistre", payload: { pageNo: 1, pageSize: 7 } }) }} modalVisible={questVisible} /> : null} {noticeDetail && { this.noticeModel() }} modalVisible={noticeDetail} />} ) } } export default manager;