12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157 |
- import React, { Component } from "react";
- import {
- Button,
- DatePicker,
- Input,
- message,
- Select,
- Spin,
- Table,
- Tabs,
- Cascader,
- AutoComplete,
- Modal,
- } from "antd";
- import { ShowModal, getApprovedType } from "@/tools";
- import { ChooseList } from "../../order/orderNew/chooseList";
- import $ from "jquery/src/ajax";
- import moment from "moment";
- import {
- member,
- highTechColumns,
- doubleSoft,
- softWriting,
- patent,
- audit,
- currency,
- } from "./highTechConfig";
- import { projectStatusList, approvalOptions } from "@/dataDic";
- import ProjectDetails from "./projectDetails";
- import Cascaders from "../../../common/cascaders";
- const { TabPane } = Tabs;
- const { RangePicker } = DatePicker;
- const { Option } = Select;
- class HighTech extends Component {
- constructor(props) {
- super(props);
- this.state = {
- dataScore: {},
- score: "",
- approvaType: [],
- tbaindex: 1,
- loading: false,
- changeList: undefined,
- columns: currency(this.showD.bind(this)),
- status: 0,
- page: 1,
- pagination: {
- defaultCurrent: 1,
- defaultPageSize: 10,
- showQuickJumper: true,
- pageSize: 10,
- onChange: function (page) {
- this.loadData(page);
- }.bind(this),
- showTotal: function (total) {
- return "共" + total + "条数据";
- },
- },
- dataSource: [],
- releaseDate: [],
- searchOrderNo: "",
- searchContractNo: "",
- searchEnterpriseName: "",
- declarationBatch: "",
- projectSituation: "",
- projectAmount: "",
- deps: "",
- thchDeps: "",
- projectType: "",
- projectStatus: "",
- departmentArr: [],
- contactsOption: [],
- contactsOptionData: [],
- visible: false,
- };
- this.resetAll = this.resetAll.bind(this);
- this.changeList = this.changeList.bind(this);
- this.loadData = this.loadData.bind(this);
- this.selectSuperId = this.selectSuperId.bind(this);
- this.supervisor = this.supervisor.bind(this);
- this.httpChange = this.httpChange.bind(this);
- this.selectAuto = this.selectAuto.bind(this);
- this.blurChange = this.blurChange.bind(this);
- this.hidD = this.hidD.bind(this);
- }
- showD(record) {
- this.setState({
- loading: true,
- })
- $.ajax({
- method: "get",
- dataType: "json",
- crossDomain: false,
- url: globalConfig.context + "/api/admin/taskScore/queryByTid",
- data: {
- tid: record.id,
- },
- success: function (data) {
- if (data.error.length) {
- this.setState({
- loading: false,
- });
- message.warning(data.error[0].message);
- } else {
- if (!data.data) {
- this.setState({
- score: "",
- })
- } else {
- this.setState({
- score: "selcet",
- cSort: record.cSort,
- cname: record.pname,
- tname: record.techName,
- dataScore: data.data,
- });
- }
- }
- }.bind(this),
- }).always(
- function () {
- this.setState({
- loading: false,
- });
- }.bind(this)
- );
- }
- hidD() {
- this.setState({
- score: ""
- });
- }
- changeList(arr) {
- const newArr = [];
- this.state.columns.forEach((item) => {
- arr.forEach((val) => {
- if (val === item.title) {
- newArr.push(item);
- }
- });
- });
- this.setState({
- changeList: newArr,
- });
- }
- loadData(pageNo = "") {
- this.setState({
- loading: true,
- });
- $.ajax({
- method: "get",
- dataType: "json",
- crossDomain: false,
- url: globalConfig.context + "/api/admin/statistis/selectTaskList",
- data: this.props.searchData
- ? Object.assign(
- {
- pageNo: pageNo || 1,
- pageSize: this.state.pagination.pageSize || 10,
- },
- this.props.searchData
- )
- :
- {
- pageNo: pageNo || 1,
- pageSize: this.state.pagination.pageSize || 10,
- startDate:
- this.state.releaseDate.length > 0
- ? this.state.releaseDate[0]
- : undefined, //开始时间
- endDate:
- this.state.releaseDate.length > 0
- ? this.state.releaseDate[1]
- : undefined, //结束时间
- deps: this.state.deps || undefined, //部门ID
- thchDeps: this.state.thchDeps || undefined, //责任部门ID
- projectStatus: this.state.projectStatus || undefined, //项目类别
- projectType: !this.state.projectType ? undefined : this.state.projectType, //项目分类
- orderNo: this.state.searchOrderNo || undefined, //订单编号
- contractNo: this.state.searchContractNo || undefined, //合同编号
- userName: this.state.searchEnterpriseName || undefined, //企业名称
- declarationBatch: this.state.declarationBatch || undefined, //申报批次
- projectSituation:
- typeof this.state.projectSituation === "number"
- ? this.state.projectSituation
- : undefined, //项目分类
- projectAmount: this.state.projectAmount || undefined, //项目金额
- status: this.state.status,
- thchId: this.state.thchId || undefined, //咨询师/咨询经理id
- taskProjectStatus: this.state.taskProjectStatus || undefined,//项目状态
- sdStatus: this.state.sdStatus,//满意度
- type: this.state.approvaType.length > 0 ? this.state.approvaType.toString() : undefined, //特批类型
- },
- success: function (data) {
- ShowModal(this);
- let theArr = [];
- if (!data.data || !data.data.list) {
- if (data.error && data.error.length) {
- message.warning(data.error[0].message);
- }
- } else {
- for (let i = 0; i < data.data.list.length; i++) {
- let thisdata = data.data.list[i];
- thisdata.key = (data.data.pageNo - 1) * data.data.pageSize + i + 1;
- theArr.push(thisdata);
- }
- this.state.pagination.current = data.data.pageNo;
- this.state.pagination.total = data.data.totalCount;
- if (data.data && data.data.list && !data.data.list.length) {
- this.state.pagination.current = 0;
- this.state.pagination.total = 0;
- }
- this.setState({
- pagination: this.state.pagination,
- page: pageNo,
- dataSource: theArr,
- });
- }
- }.bind(this),
- }).always(
- function () {
- this.setState({
- loading: false,
- });
- }.bind(this)
- );
- }
- resetAll() {
- this.setState(
- {
- newArray: [],
- releaseDate: [],
- searchOrderNo: "",
- searchContractNo: "",
- searchEnterpriseName: "",
- declarationBatch: "",
- projectSituation: "",
- projectAmount: "",
- projectType: "",
- deps: "",
- thchDeps: "",
- projectStatus: "",
- columns: currency(this.showD.bind(this)),
- status: 0,
- thchId: "",
- auto: "",
- taskProjectStatus: "",
- sdStatus: undefined,
- approvaType: [],
- },
- () => {
- this.Cascaders1.empty();
- this.Cascaders2.empty();
- this.defaultcolumns();
- // this.loadData();
- }
- );
- }
- //项目类别
- selectSuperId() {
- $.ajax({
- method: "get",
- dataType: "json",
- crossDomain: false,
- url: globalConfig.context + "/api/admin/ProjectSize/getAllCname",
- data: {
- flag: 0,
- },
- success: function (data) {
- let theArr = [];
- let newTheArr = []
- let thedata = data.data;
- if (!thedata) {
- if (data.error && data.error.length) {
- message.warning(data.error[0].message);
- }
- }
- for (let i = 0; i < data.data.length; i++) {
- let theData = data.data[i];
- theArr.push(
- <Select.Option value={theData.id} key={theData.cname}>
- {theData.cname}
- </Select.Option>
- );
- let newChildren = []
- for (let j = 0; j < theData.typeList.length; j++) {
- newChildren.push({
- label: theData.typeList[j].name,
- value: theData.typeList[j].id,
- })
- }
- newTheArr.push({
- label: theData.cname,
- value: theData.id,
- children: newChildren
- })
- }
- this.setState({
- contactsOption: theArr,
- contactsOptionData: newTheArr,
- // contactsOptionData: data.data,
- });
- }.bind(this),
- }).always();
- }
- // 设置默认table(用来默认不显示某列数据 isNoD:true)
- defaultcolumns() {
- const newArr = [];
- this.state.columns.forEach((item) => {
- if (item.isNoD) {
- return
- } else if (!adminData.isSuperAdmin && item.disabled) {
- return
- } else {
- newArr.push(item);
- }
- });
- this.setState({
- changeList: newArr,
- }, () => {
- this.loadData();
- });
- }
- // 导出excel
- exportExec() {
- message.config({
- duration: 20,
- });
- let loading = message.loading("下载中...");
- this.setState({
- exportPendingLoading: true,
- });
- let data = {
- startDate:
- this.state.releaseDate.length > 0
- ? this.state.releaseDate[0]
- : undefined, //开始时间
- endDate:
- this.state.releaseDate.length > 0
- ? this.state.releaseDate[1]
- : undefined, //结束时间
- deps: this.state.deps || undefined, //部门ID
- thchDeps: this.state.thchDeps || undefined, //责任部门ID
- projectStatus: this.state.projectStatus || undefined, //项目类别
- projectType: !this.state.projectType ? undefined : this.state.projectType, //项目分类
- status: this.state.status,
- orderNo: this.state.searchOrderNo || undefined, //订单编号
- contractNo: this.state.searchContractNo || undefined, //合同编号
- userName: this.state.searchEnterpriseName || undefined, //企业名称
- declarationBatch: this.state.declarationBatch || undefined, //申报批次
- projectAmount: this.state.projectAmount || undefined, //项目金额
- thchId: this.state.thchId || undefined, //咨询师/咨询经理id
- taskProjectStatus: this.state.taskProjectStatus || undefined,//项目状态
- sdStatus: this.state.sdStatus,//满意度
- type: this.state.approvaType.length > 0 ? this.state.approvaType.toString() : undefined, //特批类型
- };
- $.ajax({
- method: "get",
- dataType: "json",
- crossDomain: false,
- url: "/api/admin/statistis/exporTaskList",
- data,
- success: function (data) {
- if (data.error.length === 0) {
- this.download(data.data);
- } else {
- message.warning(data.error[0].message);
- }
- }.bind(this),
- }).always(
- function () {
- loading();
- this.setState({
- exportPendingLoading: false,
- });
- }.bind(this)
- );
- }
- // 下载
- download(fileName) {
- window.location.href =
- globalConfig.context + "/open/download?fileName=" + fileName;
- }
- // 查询用户
- supervisor(e) {
- $.ajax({
- method: "get",
- dataType: "json",
- crossDomain: false,
- url: globalConfig.context + "/api/admin/customer/listAdminByName",
- data: {
- adminName: e,
- },
- success: function (data) {
- let thedata = data.data;
- if (!thedata) {
- if (data.error && data.error.length) {
- message.warning(data.error[0].message);
- }
- thedata = {};
- }
- this.setState({
- customerArr: thedata,
- });
- }.bind(this),
- }).always(
- function () {
- }.bind(this)
- );
- }
- // 输入触发
- httpChange(e) {
- if (e.length >= 1) {
- this.supervisor(e);
- }
- this.setState({
- auto: e,
- });
- }
- // 选中
- selectAuto(value, options) {
- let thchId = ""
- let contactLists = this.state.customerArr || [];
- if (value) {
- contactLists.map(function (item) {
- if (item.name == value.toString()) {
- thchId = item.id;
- }
- });
- }
- this.setState({
- auto: value,
- thchId: thchId,
- });
- }
- // 失去焦点
- blurChange(e) {
- let thchId = ""
- let contactLists = this.state.customerArr || [];
- if (e) {
- contactLists.map(function (item) {
- if (item.name == e.toString()) {
- thchId = item.id;
- }
- });
- }
- this.setState({
- thchId: thchId,
- });
- }
- componentWillMount() {
- //
- if (!this.props.introduce) {
- this.defaultcolumns();
- this.selectSuperId();
- }
- if (this.props.searchData) {
- let e = this.props.searchData.projectType;
- this.setState({
- columns:
- e == "0"
- ? currency(this.showD.bind(this)) : e == "1"
- ? patent(this.showD.bind(this)) : e == "2"
- ? softWriting(this.showD.bind(this)) : e == "3"
- ? audit(this.showD.bind(this)) : e == "4"
- ? doubleSoft(this.showD.bind(this)) : e == "5"
- ? highTechColumns(this.showD.bind(this)) : e == "6"
- ? currency(this.showD.bind(this)) : e == "7"
- ? member(this.showD.bind(this)) : currency(this.showD.bind(this)),
- }, () => {
- this.defaultcolumns();
- });
- }
- }
- // 暂停项目 颜色
- suspendColor(record) {
- if (record.projectStatus == 29) {
- return 'light'
- } else {
- return 'dark'
- }
- }
- getScore(name, cSort, val) {
- let data = ""
- let list = []
- if (cSort == 6) {
- if (name == "zyd" || name == "gtl" || name == "ydhb") {
- list = [
- { title: name == "zyd" ? "很专业" : "很满意", list: [20, 19, 18, 17, 16, 15, 14, 13] },
- { title: name == "zyd" ? "专业" : "满意", list: [12, 11, 10, 9, 8, 7] },
- { title: "一般", list: [6, 5, 4, 3, 2, 1] },
- { title: name == "zyd" ? "不专业" : "不满意", list: [0] },
- ]
- } else if (name == "xyd" || name == "gcxx" || name == "fwtd" || name == "ndhb") {
- list = [
- { title: name == "xyd" ? "很速度" : "很满意", list: [10, 9, 8, 7] },
- { title: name == "xyd" ? "速度" : "满意", list: [6, 5, 4] },
- { title: "一般", list: [3, 2, 1] },
- { title: name == "xyd" ? "很慢" : "不满意", list: [0] },
- ]
- }
- } else {
- if (name == "zyd" || name == "gtl") {
- list = [
- { title: name == "zyd" ? "很专业" : "很满意", list: [30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20] },
- { title: name == "zyd" ? "专业" : "满意", list: [19, 18, 17, 16, 15, 14, 13, 12, 11, 10] },
- { title: "一般", list: [9, 8, 7, 6, 5, 4, 3, 2, 1] },
- { title: name == "zyd" ? "不专业" : "不满意", list: [0] },
- ]
- } else if (name == "gcxx" || name == "fwtd") {
- list = [
- { title: "很满意", list: [15, 14, 13, 12, 11] },
- { title: "满意", list: [10, 9, 8, 7, 6] },
- { title: "一般", list: [5, 4, 3, 2, 1] },
- { title: "不满意", list: [0] },
- ]
- } else if (name == "xyd") {
- list = [
- { title: "很速度", list: [10, 9, 8, 7] },
- { title: "速度", list: [6, 5, 4] },
- { title: "一般", list: [3, 2, 1] },
- { title: "很慢", list: [0] },
- ]
- }
- }
- list.map(function (item) {
- if (item.list.includes(val)) {
- data = item.title + "(" + val + "分)"
- }
- })
- return data
- }
- render() {
- const dataSources = this.state.customerArr || [];
- const options = dataSources.map((group) => (
- <Select.Option key={group.id} value={group.name}>
- {group.name}
- </Select.Option>
- ));
- const approvaChildren = approvalOptions.map(i => (
- <Option key={i.value}>{i.label}</Option>
- ));
- return (
- <div className="user-content">
- {this.props.introduce ? (
- this.props.introduce()
- ) : (
- <div>
- <div className="content-title" style={{ marginBottom: 10 }}>
- <span style={{ fontWeight: 900, fontSize: 16 }}>
- 项目汇总表 (
- {this.state.status === 1
- ? "高新" : this.state.status === 2
- ? "双软" : this.state.status === 3
- ? "软著" : this.state.status === 4
- ? "专利" : this.state.status === 5
- ? "会员" : this.state.status === 6
- ? "审计" : "通用"}
- )
- </span>
- </div>
- <Tabs defaultActiveKey="1" className="test"
- onChange={e => {
- this.setState({
- tbaindex: e
- })
- }}
- >
- <TabPane tab="搜索" key="1">
- <div
- className="user-search"
- style={{
- marginTop: "10px",
- marginLeft: "10px",
- marginRight: "10px",
- }}
- >
- <Input
- placeholder="订单编号"
- style={{
- width: 220,
- marginRight: "10px",
- }}
- value={this.state.searchOrderNo}
- onChange={(e) => {
- this.setState({ searchOrderNo: e.target.value });
- }}
- />
- <Input
- placeholder="合同编号"
- style={{
- width: 220,
- marginRight: "10px",
- }}
- value={this.state.searchContractNo}
- onChange={(e) => {
- this.setState({ searchContractNo: e.target.value });
- }}
- />
- <Input
- placeholder="企业名称"
- style={{
- width: 220,
- marginRight: "10px",
- }}
- value={this.state.searchEnterpriseName}
- onChange={(e) => {
- this.setState({ searchEnterpriseName: e.target.value });
- }}
- />
- <span style={{ display: "inline-block" }}>
- <span style={{ marginRight: "10px" }}>项目分类:</span>
- <Cascader
- options={this.state.contactsOptionData}
- value={this.state.newArray}
- placeholder="请选择"
- style={{ width: 150, marginRight: 10 }}
- onChange={(e, pre) => {
- let first = e[0];
- let two = e[1];
- this.setState({
- newArray: e,
- projectStatus: first,
- projectType: two,
- changeList: undefined,
- dataSource: [],
- status:
- two == "4"
- ? 2 : two == "3"
- ? 6 : two == "2"
- ? 3 : two == "1"
- ? 4 : two == "5"
- ? 1 : two == "7"
- ? 5 : 0,
- columns:
- two == "0"
- ? currency(this.showD.bind(this)) : two == "1"
- ? patent(this.showD.bind(this)) : two == "2"
- ? softWriting(this.showD.bind(this)) : two == "3"
- ? audit(this.showD.bind(this)) : two == "4"
- ? doubleSoft(this.showD.bind(this)) : two == "5"
- ? highTechColumns(this.showD.bind(this)) : two == "6"
- ? currency(this.showD.bind(this)) : two == "7"
- ? member(this.showD.bind(this)) : currency(this.showD.bind(this)),
- }, () => {
- this.defaultcolumns()
- })
- }}
- />
- </span>
- {/* <span style={{ display: "inline-block" }}>
- <span style={{ marginRight: "10px" }}>
- 项目类别 :
- </span>
- <Select
- value={this.state.projectStatus || undefined}
- placeholder="请选择项目类别"
- notFoundContent="未获取到上级品类列表"
- style={{
- width: 150,
- marginRight: "10px",
- }}
- onChange={(e) => {
- let infor = this.state.contactsOptionData.filter(
- (v) => v.id === e
- );
- this.setState(
- {
- projectStatus: e,
- },
- // () => {
- // if (infor[0].cname === '高新会员服务' && typeof this.state.projectType !== 'number') {
- // this.setState({
- // columns: highTechColumns,
- // dataSource: [],
- // changeList: [],
- // status: 1,
- // }, () => {
- // this.loadData();
- // })
- // } else if (typeof this.state.projectType !== 'number') {
- // this.setState({
- // columns: currency,
- // dataSource: [],
- // changeList: [],
- // status: 0,
- // }, () => {
- // this.loadData();
- // })
- // } else {
- // this.loadData();
- // }
- // }
- );
- }}
- >
- {this.state.contactsOption}
- </Select>
- </span>
- <span style={{ display: "inline-block" }}>
- <span style={{ marginRight: "10px", marginBottom: "10px" }}>
- 项目分类 :
- </span>
- <Select
- value={
- typeof this.state.projectType === "number"
- ? this.state.projectType
- : undefined
- }
- placeholder="请选择项目分类"
- style={{
- width: 150,
- marginRight: "10px",
- }}
- onChange={(e) => {
- this.setState(
- {
- columns:
- e === 0
- ? currency : e === 1
- ? patent : e === 2
- ? softWriting : e === 3
- ? currency : e === 4
- ? doubleSoft : e === 5
- ? highTechColumns : e === 6
- ? currency : currency,
- changeList: [],
- projectType: e,
- status:
- e === 4
- ? 2 : e === 2
- ? 3 : e === 1
- ? 4 : e === 5
- ? 1 : 0,
- dataSource: [],
- },
- () => {
- this.defaultcolumns();
- this.loadData();
- }
- );
- }}
- >
- <Option value={0}>通用</Option>
- <Option value={1}>专利</Option>
- <Option value={2}>软著</Option>
- <Option value={3}>审计</Option>
- <Option value={4}>双软</Option>
- <Option value={5}>高新</Option>
- <Option value={6}>商标</Option>
- <Option value={7}>会员</Option>
- </Select>
- </span> */}
- <span
- style={{
- display: "inline-block",
- }}
- >
- <span style={{ marginBottom: "10px" }}>订单部门:</span>
- <Cascaders
- ref={ref => this.Cascaders1 = ref}
- placeholder="请选择订单部门"
- height={28}
- width={150}
- onSel={(e) => {
- this.setState({
- deps: JSON.stringify(e)
- })
- }}
- />
- </span>
- <span
- style={{
- display: "inline-block",
- }}
- >
- <span style={{ marginBottom: "10px" }}>负责部门:</span>
- <Cascaders
- ref={ref => this.Cascaders2 = ref}
- placeholder="请选择负责部门"
- height={28}
- width={150}
- onSel={(e) => {
- this.setState({
- thchDeps: JSON.stringify(e)
- })
- }}
- />
- </span>
- <span style={{ display: "inline-block" }}>
- <span style={{ marginRight: "10px", marginBottom: "10px" }}>
- 咨询师/经理:
- </span>
- <AutoComplete
- className="certain-category-search"
- dropdownClassName="certain-category-search-dropdown"
- dropdownMatchSelectWidth={false}
- style={{ width: 130 }}
- dataSource={options}
- placeholder='请输入姓名'
- value={this.state.auto}
- onChange={this.httpChange}
- filterOption={true}
- onBlur={this.blurChange}
- onSelect={this.selectAuto}
- >
- <Input />
- </AutoComplete>
- </span>
- <span style={{ display: "inline-block" }}>
- <span style={{ marginRight: "10px", marginBottom: "10px" }}>
- 申报批次:
- </span>
- <Select
- value={this.state.declarationBatch || undefined}
- placeholder="请选择批次"
- style={{
- width: 150,
- marginRight: "10px",
- }}
- onChange={(e) => {
- this.setState({
- declarationBatch: e,
- });
- }}
- >
- <Option value={1}>第一批</Option>
- <Option value={2}>第二批</Option>
- <Option value={3}>第三批</Option>
- <Option value={4}>第四批</Option>
- </Select>
- </span>
- <span style={{ display: "inline-block" }}>
- <span style={{ marginRight: "10px" }}>
- 项目金额:
- </span>
- <Select
- value={this.state.projectAmount || undefined}
- placeholder="请选择项目金额"
- style={{
- width: 150,
- marginRight: "10px",
- }}
- onChange={(e) => {
- this.setState({
- projectAmount: e,
- });
- }}
- >
- <Option value={1}>0~0.5万</Option>
- <Option value={2}>0.5~1万</Option>
- <Option value={3}>1~2万</Option>
- <Option value={4}>2~5万</Option>
- <Option value={5}>5~10万</Option>
- <Option value={6}>10~30万</Option>
- <Option value={7}>30~50万</Option>
- <Option value={8}>50~80万</Option>
- <Option value={9}>80万上</Option>
- </Select>
- </span>
- <span style={{ display: "inline-block" }}>
- <span style={{ marginRight: "10px" }}>
- 项目状态:
- </span>
- <Select
- value={this.state.taskProjectStatus || undefined}
- placeholder="请选择项目状态"
- style={{
- width: 150,
- marginRight: "10px",
- }}
- onChange={(e) => {
- this.setState({
- taskProjectStatus: e,
- });
- }}
- >
- {
- projectStatusList.map((item) =>
- <Option value={item.value} key={item.value}>{item.label}</Option>
- )
- }
- </Select>
- </span>
- {/* <span style={{display:"inline-block"}}>*/}
- {/* <span style={{marginRight:'10px',marginBottom:'10px'}}>项目情况 :</span>*/}
- {/* <Select*/}
- {/* value={typeof this.state.projectSituation === 'number' ? this.state.projectSituation : undefined}*/}
- {/* placeholder="请选择项目情况"*/}
- {/* style={{ width: 200,marginRight:'10px',marginBottom:'10px' }}*/}
- {/* onChange={(e) => {*/}
- {/* this.setState({*/}
- {/* projectSituation: e,*/}
- {/* });*/}
- {/* }}*/}
- {/* >*/}
- {/* <Option value={0}>未开始</Option>*/}
- {/* <Option value={1}>进行中</Option>*/}
- {/* <Option value={2}>已暂停</Option>*/}
- {/* <Option value={3}>已驳回(专利、软著项目编写)</Option>*/}
- {/* <Option value={4}>已完成</Option>*/}
- {/* <Option value={5}>项目已完成 已退单</Option>*/}
- {/* <Option value={6}>项目未完成 已退单</Option>*/}
- {/* </Select>*/}
- {/*</span>*/}
- <span style={{ display: "inline-block" }}>
- <span style={{ marginRight: "10px" }}>
- 满 意 度:
- </span>
- <Select
- value={this.state.sdStatus}
- placeholder="请选择满意度"
- style={{
- width: 150,
- marginRight: "10px",
- }}
- onChange={(e) => {
- this.setState({
- sdStatus: e,
- });
- }}
- >
- <Option value={0}>未发放</Option>
- <Option value={1}>已发放</Option>
- <Option value={2}>已回收(非常满意)</Option>
- <Option value={3}>已回收(满意)</Option>
- <Option value={4}>已回收(一般)</Option>
- <Option value={5}>已回收(不满意)</Option>
- </Select>
- </span>
- <span style={{ display: "inline-block" }}>
- <span style={{ marginRight: "10px" }}>
- 派单时间:
- </span>
- <RangePicker
- allowClear={false}
- style={{ marginRight: "10px", width: 250 }}
- value={[
- this.state.releaseDate[0]
- ? moment(this.state.releaseDate[0])
- : null,
- this.state.releaseDate[1]
- ? moment(this.state.releaseDate[1])
- : null,
- ]}
- onChange={(data, dataString) => {
- this.setState({ releaseDate: dataString });
- }}
- />
- </span>
- <Select
- mode="multiple"
- style={{ width: 200 }}
- placeholder="特批类型"
- value={this.state.approvaType}
- onChange={e => {
- this.setState({
- approvaType: e
- })
- }}
- >
- {approvaChildren}
- </Select>
- <Button
- type="primary"
- onClick={() => {
- this.loadData();
- }}
- style={{ marginRight: "10px", marginBottom: "10px" }}
- >
- 搜索
- </Button>
- <Button
- onClick={this.resetAll}
- style={{ marginRight: "10px", marginBottom: "10px" }}
- >
- 重置
- </Button>
- </div>
- </TabPane>
- <TabPane tab="更改表格显示数据" key="2">
- {
- this.state.tbaindex == 2 &&
- <div style={{ marginLeft: 10 }}>
- <ChooseList
- columns={this.state.columns}
- changeFn={this.changeList}
- changeList={this.state.changeList}
- top={55}
- margin={11}
- />
- </div>
- }
- </TabPane>
- {adminData.isSuperAdmin ? <TabPane tab="导出EXCEL" key="3">
- <Button
- type="primary"
- style={{ margin: "10px" }}
- onClick={this.exportExec.bind(this)}
- >
- 导出excel
- </Button>
- </TabPane>
- : ""}
- </Tabs>
- </div>
- )}
- <div className="patent-table">
- <Spin spinning={this.state.loading}>
- <Table
- bordered
- size="middle"
- scroll={{
- x:
- this.state.status === 4 || this.state.status === 3
- ? 1800
- : 1000,
- y: 0,
- }}
- columns={
- (this.state.changeList && this.state.changeList.length != 0)
- ? this.state.changeList
- : this.state.columns
- }
- dataSource={this.state.dataSource}
- pagination={this.state.pagination}
- style={{
- cursor: "pointer",
- }}
- rowClassName={this.suspendColor}
- onRowClick={(record) => {
- this.setState({
- projectdetailsId: record.id,
- projectdetailsOrderNo: record.orderNo,
- pname: record.pname,
- visible: true,
- });
- }}
- />
- </Spin>
- </div>
- {this.state.visible ? (
- <ProjectDetails
- visible={this.state.visible}
- id={this.state.projectdetailsId}
- orderNo={this.state.projectdetailsOrderNo}
- taskName={this.state.pname}
- visitOk={() => {
- this.setState({
- visible: false,
- });
- }}
- visitCancel={() => {
- this.loadData(this.state.page);
- this.setState({
- visible: false,
- });
- }}
- />
- ) : null}
- <Modal
- maskClosable={false}
- visible={this.state.score != ""}
- footer=""
- title="项目评分"
- width={400}
- onCancel={() => {
- this.setState({
- score: "",
- cSort: "",
- cname: "",
- tname: "",
- })
- }}
- >
- <div style={{ position: "relative" }}>
- <div
- style={{
- position: "absolute",
- right: 100,
- top: 50,
- fontSize: "40px",
- color: "red"
- }}
- >{this.state.dataScore.professionalism + this.state.dataScore.communicationSkills + this.state.dataScore.responsiveness + this.state.dataScore.publicImage + this.state.dataScore.serviceAttitude + this.state.dataScore.monthlyReport + this.state.dataScore.yearReport}分</div>
- <div>
- <span style={{ width: 50, display: "inline-block", margin: "5px 0" }}>项目名称</span>:{this.state.cname}
- </div>
- <div>
- <span style={{ width: 50, display: "inline-block", margin: "5px 0" }}>项目咨询</span>:{this.state.tname}
- </div>
- <div>
- <span style={{ width: 50, display: "inline-block", margin: "5px 0" }}>专 业 度</span>:{this.getScore("zyd", this.state.cSort, this.state.dataScore.professionalism)}
- </div>
- <div>
- <span style={{ width: 50, display: "inline-block", margin: "5px 0" }}>沟 通 力</span>:{this.getScore("gtl", this.state.cSort, this.state.dataScore.communicationSkills)}
- </div>
- <div>
- <span style={{ width: 50, display: "inline-block", margin: "5px 0" }}>响 应 度</span>:{this.getScore("xyd", this.state.cSort, this.state.dataScore.responsiveness)}
- </div>
- <div>
- <span style={{ width: 50, display: "inline-block", margin: "5px 0" }}>公出形象</span>:{this.getScore("gcxx", this.state.cSort, this.state.dataScore.publicImage)}
- </div>
- <div>
- <span style={{ width: 50, display: "inline-block", margin: "5px 0" }}>服务态度</span>:{this.getScore("fwtd", this.state.cSort, this.state.dataScore.serviceAttitude)}
- </div>
- {this.state.cSort == 6 &&
- <div>
- <span style={{ width: 50, display: "inline-block", margin: "5px 0" }}>月度汇报</span>:{this.getScore("ydhb", this.state.cSort, this.state.dataScore.monthlyReport)}
- </div>}
- {this.state.cSort == 6 &&
- <div>
- <span style={{ width: 50, display: "inline-block", margin: "5px 0" }}>年度汇报</span>:{this.getScore("ndhb", this.state.cSort, this.state.dataScore.yearReport)}
- </div>}
- <div>
- <span style={{ width: 50, display: "inline-block", margin: "5px 0" }}>评分理由</span>:{this.state.dataScore.remarks}
- </div>
- <div>
- <span style={{ width: 50, display: "inline-block", margin: "5px 0" }}>评分时间</span>:{moment(this.state.dataScore.createTime).format('YYYY-MM-DD HH:mm:ss')}
- </div>
- <div style={{ marginTop: 10, textAlign: "center" }}>
- <Button
- type="primary"
- onClick={() => {
- this.setState({
- score: ""
- })
- }}
- >
- 关闭
- </Button>
- </div>
- </div>
- </Modal>
- </div>
- );
- }
- }
- export default HighTech;
|