| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016 | import React, { Component } from "react";import {  AutoComplete,  Button,  DatePicker,  Input,  message,  Modal,  Select,  Spin,  Table,  Tabs,  Cascader,} from "antd";import { ShowModal, getNewDiccityArr } from "@/tools";import { citySelect } from "../../../NewDicProvinceList";import { ChooseList } from "../../order/orderNew/chooseList";import $ from "jquery/src/ajax";import moment from "moment";import {  highTechColumns,  invention,  utilityModel,  softWriting,  otherTrademarks,  currency,} from "./projecCountConfig";import HighTech from "./highTech";import "./index.less";import Cascaders from "../../../common/cascaders";const { TabPane } = Tabs;const { RangePicker } = DatePicker;const { Option } = Select;class ProjecCount extends Component {  constructor(props) {    super(props);    this.state = {      loading: false,      changeList: undefined,      columns: currency((v, screen) => {        this.openProjectSummary(v, screen);      }),      pagination: {        defaultCurrent: 1,        defaultPageSize: 10,        showQuickJumper: true,        pageSize: 10,        onChange: function (page) {          this.loadData(page);        }.bind(this),        showTotal: function (total) {          return "共" + total + "条数据";        },      },      dataSource: [],      taberReleaseDate: [],      taberProjectType: "",      taberCommodityName: "",      releaseDate: [],      searchOrderNo: "",      searchContractNo: "",      searchEnterpriseName: "",      declarationBatch: "",      projectType: "",      projectStatus: "",      province: "",      depId: "",      departmentArr: [],      contactsOption: [],      contactsOptionData: [],      customerArr: [],      commodityName: "",      kid: "",      status: 0,      searchValues: this.props.searchConfig || {},    };    this.loadData = this.loadData.bind(this);    this.resetAll = this.resetAll.bind(this);    this.changeList = this.changeList.bind(this);    this.departmentList = this.departmentList.bind(this);    this.exportPending = this.exportPending.bind(this);    this.exportExcel = this.exportExcel.bind(this);    this.selectSuperId = this.selectSuperId.bind(this);    this.supervisorCui = this.supervisorCui.bind(this);    this.httpChangeCui = this.httpChangeCui.bind(this);    this.selectAuto = this.selectAuto.bind(this);    this.openProjectSummary = this.openProjectSummary.bind(this);  }  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({      page: pageNo,      loading: true,      taberReleaseDate: this.state.releaseDate,      taberProjectType: this.state.projectType,      taberCommodityName: this.state.commodityName,    });    $.ajax({      method: "get",      dataType: "json",      crossDomain: false,      url:        globalConfig.context +        "/api/admin/statistis/selectProvincialStatistics",      data: {        pageNo: pageNo || 1,        pageSize: this.state.pagination.pageSize,        startDate:          this.state.releaseDate.length > 0            ? this.state.releaseDate[0]            : undefined, //开始时间        endDate:          this.state.releaseDate.length > 0            ? this.state.releaseDate[1]            : undefined, //结束时间        province: this.state.province || undefined,        projectStatus: this.state.projectStatus || undefined, //项目类别        projectType: !this.state.projectType ? undefined : this.state.projectType, //项目分类        status: this.state.status,        thchDeps: this.state.depId || undefined,        projectId: this.state.kid || 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({          dataSource: theArr,          pagination: this.state.pagination,        });      }.bind(this),    }).always(      function () {        this.setState({          loading: false,        });      }.bind(this)    );  }  //部门  departmentList() {    $.ajax({      method: "get",      dataType: "json",      crossDomain: false,      url: globalConfig.context + "/api/admin/organization/selectSuperId",      data: {},      success: function (data) {        let thedata = data.data;        let theArr = [];        if (!thedata) {          if (data.error && data.error.length) {            message.warning(data.error[0].message);          }        } else {          thedata.map(function (item, index) {            theArr.push({              key: index,              name: item.name,              id: item.id,            });          });        }        this.setState({          departmentArr: theArr,        });      }.bind(this),    });  }  resetAll() {    this.setState(      {        newArray: [],        releaseDate: [],        searchOrderNo: "",        searchContractNo: "",        searchEnterpriseName: "",        declarationBatch: "",        province: "",        depId: "",        projectType: undefined,        projectStatus: "",        columns: currency((v, screen) => {          this.openProjectSummary(v, screen);        }),        commodityName: "",        kid: "",        status: 0,        taberReleaseDate: [],        taberProjectType: "",        taberCommodityName: "",      },      () => {        this.Cascaders.empty();        this.loadData();      }    );  }  exportPending() {    message.config({      duration: 20,    });    let loading = message.loading("下载中...");    this.setState({      exportPendingLoading: true,    });    let option = this.state.contactsOptionData.filter(      (e) => e.value === this.state.projectStatus    ); //  项目类别名称    let datas = {      status: this.state.status,      projectStatusName: option.length > 0 ? option[0].label : undefined,      projectName:        this.state.projectType == "0"          ? "通用" : this.state.projectType == "1"            ? "专利" : this.state.projectType == "2"              ? "软著" : this.state.projectType == "3"                ? "审计" : this.state.projectType == "4"                  ? "双软" : this.state.projectType == "5"                    ? "高新" : this.state.projectType == "6"                      ? "商标" : this.state.projectType == "7"                        ? "会员" : "",      provinceName: !!this.state.province ? getNewDiccityArr(this.state.province) : undefined,      startDate:        this.state.releaseDate.length > 0          ? this.state.releaseDate[0]          : undefined, //开始时间      endDate:        this.state.releaseDate.length > 0          ? this.state.releaseDate[1]          : undefined, //结束时间      thchDeps: this.state.depId || undefined, //责任部门ID      projectStatus: this.state.projectStatus || undefined, //项目类别      projectType: !this.state.projectType ? undefined : this.state.projectType, //项目分类      province: this.state.province || undefined,      projectId: this.state.kid || undefined,    }    $.ajax({      method: "get",      dataType: "json",      crossDomain: false,      url: "/api/admin/statistis/exporProvincialList",      data: datas,      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)    );  }  // 导出excel  exportExcel() {    message.config({      duration: 20,    });    let loading = message.loading("下载中...");    this.setState({      exportPendingLoading: true,    });    let option = this.state.contactsOptionData.filter(      (v) => v.value === this.state.taberProjectStatus    )[0].label; //项目类别名称    let data = {      pageNo: this.state.pageNo || 1,      pageSize: 9999,      startDate:        this.state.releaseDate.length > 0          ? this.state.releaseDate[0]          : undefined, //开始时间      endDate:        this.state.releaseDate.length > 0          ? this.state.releaseDate[1]          : undefined, //结束时间      projectType: !this.state.projectType ? undefined : this.state.projectType, //项目分类      // typeof this.state.projectType === "number"      //   ? this.state.projectType      //   : undefined,      thchDepName: undefined, //咨询师部门名称      projectTypeName:        this.state.projectType == "0"          ? "通用"          : this.state.projectType == "1"            ? "专利"            : this.state.projectType == "2"              ? "软著"              : this.state.projectType == "3"                ? "审计"                : this.state.projectType == "4"                  ? "双软"                  : this.state.projectType == "5"                    ? "高新"                    : this.state.projectType == "6"                      ? "商标"                      : this.state.projectType == "7"                        ? "会员" : "", //项目分类(中文)      projectStatusName: option || undefined, //项目品类(中文)      provinceName: getNewDiccityArr(this.state.taberProvince) || undefined, //省份(中文)      projectId: this.state.kid || undefined,      province: this.state.taberProvince || undefined,      projectStatus: this.state.taberProjectStatus || undefined, //项目类别      thchDeps: this.state.taberdepId || undefined,      status:        this.state.projectType == "4"          ? 2          : this.state.projectType == "2"            ? 3            : this.state.projectType == "1"              ? 4              : this.state.projectType == "5"                ? 1                : this.state.contactsOptionData.filter(                  (v) => v.value === this.state.taberProjectStatus                ).length > 0                  ? this.state.contactsOptionData.filter(                    (v) => v.value === this.state.taberProjectStatus                  )[0].label === "高新"                    ? 1                    : 0                  : 0,      screen: this.state.screen.toString(), //筛选项 0库存 1派单 2完成 3立项 4抽查 5未通过 6受理 7完结 8授权 9驳回 10下证 11申请 12公示数    };    for (let key in data) {      if (!data[key]) {        delete data[key];      }    }    $.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;  }  //项目类别  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 {        newArr.push(item);      }    });    this.setState({      changeList: newArr,    }, () => {      this.loadData();    });  }  supervisorCui(e) {    //客户名称与服务名称自动补全    let api = "/api/admin/order/getBusinessProjectByName";    $.ajax({      method: "get",      dataType: "json",      crossDomain: false,      url: globalConfig.context + api,      data: {        businessName: 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 () {        this.setState({          loading: false,        });      }.bind(this)    );  }  httpChangeCui(e) {    if (e.length >= 1) {      this.supervisorCui(e, false);    }    this.setState({      commodityName: e,    });  }  //上级主管输入框失去焦点是判断客户是否存在  selectAuto(value) {    let kid = [];    let fwList = this.state.customerArr;    fwList.map(function (item) {      if (value === item.bname) {        kid = item.id;      }    });    this.setState({      kid: kid,      commodityName: value,    });  }  componentWillMount() {    this.defaultcolumns();    // this.loadData();    // this.departmentList();    this.selectSuperId();  }  openProjectSummary(record, screen) {    this.setState({      projectSummary: true,      taberProvince: record.province,      taberProjectStatus: record.bpId, //项目类别      taberdepId: !!record.thchDepId && JSON.stringify(record.thchDepId.split(',')),      thchDepName: record.thchDepName,      screen: screen,    });  }  render() {    const dataSources = this.state.customerArr || [];    const options = dataSources.map((group, index) => (      <Select.Option key={index} value={group.bname}>        {group.bname}      </Select.Option>    ));    return (      <div className="user-content">        <div className="content-title" style={{ marginBottom: 10 }}>          <span style={{ fontWeight: 900, fontSize: 16 }}>            项目统计 (            {this.state.status === 2              ? "专利"              : this.state.status === 4                ? "软著"                : this.state.status === 1                  ? "高新"                  : this.state.status === 5                    ? "商标"                    : "通用"}            )          </span>        </div>        <Tabs defaultActiveKey="1" className="test">          <TabPane tab="搜索" key="1">            <div              className="user-search"              style={{                marginTop: "10px",                marginLeft: "10px",                marginRight: "10px",              }}            >              <span                style={{                  display: "inline-block",                  marginRight: "10px",                  marginBottom: "10px",                }}              >                <span>项目名称 :</span>                <AutoComplete                  className="certain-category-search"                  dropdownClassName="certain-category-search-dropdown"                  dropdownMatchSelectWidth={false}                  dropdownStyle={{ width: 200 }}                  style={{ width: 100, marginLeft: "10px" }}                  dataSource={options}                  placeholder="输入服务名称"                  value={this.state.commodityName}                  onChange={this.httpChangeCui}                  filterOption={true}                  onSelect={this.selectAuto}                >                  <Input />                </AutoComplete>              </span>              <span style={{ display: "inline-block" }}>                <span style={{ marginRight: "10px" }}>项目分类 :</span>                <Cascader                  options={this.state.contactsOptionData}                  value={this.state.newArray}                  placeholder="请选择"                  style={{ width: 200, 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 == "1"                          ? 2 : two == "2"                            ? 4 : two == "5"                              ? 1 : two == "6"                                ? 5 : 0,                      columns:                        two == "0"                          ? currency((v, screen) => {                            this.openProjectSummary(v, screen);                          })                          : two == "1"                            ? invention((v, screen) => {                              this.openProjectSummary(v, screen);                            })                            : two == "2"                              ? softWriting((v, screen) => {                                this.openProjectSummary(v, screen);                              })                              : two == "3"                                ? currency((v, screen) => {                                  this.openProjectSummary(v, screen);                                })                                : two == "4"                                  ? currency((v, screen) => {                                    this.openProjectSummary(v, screen);                                  })                                  : two == "5"                                    ? highTechColumns((v, screen) => {                                      this.openProjectSummary(v, screen);                                    })                                    : two == "6"                                      ? otherTrademarks((v, screen) => {                                        this.openProjectSummary(v, screen);                                      })                                      : two == "7"                                        ? currency((v, screen) => {                                          this.openProjectSummary(v, screen);                                        }) : currency((v, screen) => {                                          this.openProjectSummary(v, screen);                                        }),                    }, () => {                      this.defaultcolumns()                    })                  }}                />              </span>              <span                style={{                  display: "inline-block",                  marginRight: "10px",                  marginBottom: "10px",                }}              >                <span>派单省份:</span>                <Select                  placeholder="请选择省份"                  style={{                    width: 100,                    marginRight: "10px",                    marginLeft: "10px",                    marginBottom: "10px",                  }}                  value={getNewDiccityArr(this.state.province)}                  onChange={(e) => {                    this.setState({ province: e });                  }}                >                  {citySelect().map(function (item) {                    return (                      <Select.Option key={item.value} value={item.value}>                        {item.label}                      </Select.Option>                    );                  })}                </Select>              </span>              <span                style={{                  display: "inline-block",                  marginRight: "10px",                  marginBottom: "10px",                }}              >                <span style={{ marginRight: 10, }}>负责部门:</span>                <Cascaders                  ref={node => this.Cascaders = node}                  placeholder="选择负责部门"                  height={28}                  onSel={(e) => {                    this.setState({                      depId: JSON.stringify(e),                    });                  }}                />                {/* <Select                  placeholder="请选择部门"                  style={{                    width: 200,                    marginRight: "10px",                    marginLeft: "10px",                    marginBottom: "10px",                  }}                  value={this.state.depId || undefined}                  onChange={(e) => {                    this.setState({ depId: e });                  }}                >                  {this.state.departmentArr.map(function (item) {                    return (                      <Select.Option key={item.id} value={item.id}>                        {item.name}                      </Select.Option>                    );                  })}                </Select> */}              </span>              <span style={{ display: "inline-block" }}>                <span style={{ marginRight: "10px", marginBottom: "10px" }}>                  派单时间 :                </span>                <RangePicker                  style={{ marginRight: "10px", marginBottom: "10px" }}                  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>              <Button                type="primary"                onClick={() => {                  if (this.state.commodityName.length === 0) {                    this.setState(                      {                        kid: "",                      },                      () => {                        this.loadData();                      }                    );                  } else {                    this.loadData();                  }                }}                style={{ marginRight: "10px", marginBottom: "10px" }}              >                搜索              </Button>              <Button                onClick={this.resetAll}                style={{ marginRight: "10px", marginBottom: "10px" }}              >                重置              </Button>            </div>          </TabPane>          <TabPane tab="更改表格显示数据" key="2">            <div style={{ marginLeft: 10 }}>              <ChooseList                columns={this.state.columns}                changeFn={this.changeList}                changeList={this.state.changeList}                top={55}                margin={11}              />            </div>          </TabPane>          <TabPane tab="导出EXCEL" key="3">            <Button              type="primary"              style={{ margin: "10px" }}              loading={this.state.exportPendingLoading}              onClick={this.exportPending}            >              导出            </Button>          </TabPane>        </Tabs>        <div className="patent-table">          <Spin spinning={this.state.loading}>            <Table              bordered              size="middle"              scroll={{ x: 800, y: 0 }}              columns={                this.state.changeList == undefined                  ? this.state.columns                  : this.state.changeList              }              dataSource={this.state.dataSource}              pagination={this.state.pagination}            />          </Spin>        </div>        {          this.state.projectSummary ? (            <Modal              maskClosable={false}              className="customeDetails"              footer=""              title=""              width="1800px"              visible={this.state.projectSummary}              onOk={() => {                this.setState({                  projectSummary: false,                });              }}              onCancel={() => {                this.setState({                  projectSummary: false,                });              }}            >              <HighTech                searchData={{                  startDate:                    this.state.releaseDate.length > 0                      ? this.state.releaseDate[0]                      : undefined, //开始时间                  endDate:                    this.state.releaseDate.length > 0                      ? this.state.releaseDate[1]                      : undefined, //结束时间                  projectType:                    !this.state.projectType                      ? undefined                      : this.state.projectType, //项目分类                  projectId: this.state.kid || undefined,                  province: this.state.taberProvince || undefined,                  projectStatus: this.state.taberProjectStatus || undefined, //项目类别                  thchDeps: this.state.taberdepId || undefined,                  status:                    this.state.projectType == "4"                      ? 2 : this.state.projectType == "2"                        ? 3 : this.state.projectType == "1"                          ? 4 : this.state.projectType == "5"                            ? 1 : this.state.contactsOptionData.filter(                              (v) => v.value === this.state.taberProjectStatus                            ).length > 0                              ? this.state.contactsOptionData.filter(                                (v) => v.value === this.state.taberProjectStatus                              )[0].label === "高新"                                ? 1 : 0                              : 0,                  screen: this.state.screen, //筛选项 0库存 1派单 2完成 3立项 4抽查 5未通过 6受理 7完结 8授权 9驳回 10下证 11申请 12公示数                }}                introduce={() => (                  <div                    className="user-search"                    style={{                      marginTop: "10px",                      marginLeft: "10px",                      marginRight: "10px",                    }}                  >                    {this.state.taberProvince ? (                      <span                        style={{                          display: "inline-block",                          marginRight: "20px",                          marginBottom: "10px",                        }}                      >                        <span>派单省份:</span>                        <span style={{ width: 100, marginLeft: "10px" }}>                          {getNewDiccityArr(this.state.taberProvince)}                        </span>                      </span>                    ) : null}                    {this.state.taberProjectStatus ? (                      <span                        style={{                          display: "inline-block",                          marginRight: "20px",                          marginBottom: "10px",                        }}                      >                        <span>项目类别 :</span>                        <span style={{ width: 100, marginLeft: "10px" }}>                          {                            this.state.contactsOptionData.filter(                              (v) => v.value === this.state.taberProjectStatus                            )[0].label                          }                        </span>                      </span>                    ) : null}                    {this.state.taberProjectType !== "" ? (                      <span                        style={{                          display: "inline-block",                          marginRight: "20px",                          marginBottom: "10px",                        }}                      >                        <span>项目分类 :</span>                        <span style={{ width: 100, marginRight: "10px" }}>                          {this.state.taberProjectType == "0"                            ? "通用"                            : this.state.taberProjectType == "1"                              ? "专利"                              : this.state.taberProjectType == "2"                                ? "软著"                                : this.state.taberProjectType == "3"                                  ? "审计"                                  : this.state.taberProjectType == "4"                                    ? "双软"                                    : this.state.taberProjectType == "5"                                      ? "高新"                                      : this.state.taberProjectType == "6"                                        ? "商标"                                        : this.state.taberProjectType == "7"                                          ? "会员"                                          : ""}                        </span>                      </span>                    ) : null}                    {this.state.taberdepId ? (                      <span                        style={{                          display: "inline-block",                          marginRight: "20px",                          marginBottom: "10px",                        }}                      >                        <span>负责部门:</span>                        <span style={{ width: 200, marginLeft: "10px" }}>                          {this.state.thchDepName}                          {/* {                            this.state.departmentArr.filter(                              (v) => v.id === this.state.taberdepId                            )[0].name                          } */}                        </span>                      </span>                    ) : null}                    {this.state.taberCommodityName ? (                      <span                        style={{                          display: "inline-block",                          marginRight: "20px",                          marginBottom: "10px",                        }}                      >                        <span>项目名称:</span>                        <span style={{ width: 100, marginLeft: "10px" }}>                          {this.state.taberCommodityName}                        </span>                      </span>                    ) : null}                    {this.state.taberReleaseDate.length > 0 ? (                      <span                        style={{                          display: "inline-block",                          marginRight: "20px",                          marginBottom: "10px",                        }}                      >                        <span>派单时间 :</span>                        <span style={{ width: 100, marginRight: "10px" }}>                          {this.state.taberReleaseDate[0] +                            "~" +                            this.state.taberReleaseDate[1]}                        </span>                      </span>                    ) : null}                    <Button type="primary" onClick={this.exportExcel}>                      导出EXCEL                    </Button>                  </div>                )}              />            </Modal>          ) : null        }      </div >    );  }}export default ProjecCount;
 |