projecCount.jsx 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696
  1. import React,{ Component } from 'react';
  2. import {AutoComplete, Button, DatePicker, Input, message, Modal, Select, Spin, Table, Tabs} from "antd";
  3. import {
  4. ShowModal,
  5. getNewDiccityArr
  6. } from "@/tools";
  7. import { citySelect } from '../../../NewDicProvinceList';
  8. import {ChooseList} from "../../order/orderNew/chooseList";
  9. import $ from "jquery/src/ajax";
  10. import moment from "moment";
  11. import {
  12. highTechColumns,
  13. invention,
  14. utilityModel,
  15. softWriting,
  16. otherTrademarks,
  17. currency,
  18. } from './projecCountConfig';
  19. import HighTech from './highTech';
  20. import './index.less';
  21. const {TabPane} = Tabs;
  22. const { RangePicker } = DatePicker;
  23. const { Option } = Select;
  24. class ProjecCount extends Component{
  25. constructor(props) {
  26. super(props);
  27. this.state={
  28. loading:false,
  29. changeList:[],
  30. columns: currency((v,screen)=>{this.openProjectSummary(v,screen)}),
  31. pagination: {
  32. defaultCurrent: 1,
  33. defaultPageSize: 10,
  34. showQuickJumper: true,
  35. pageSize: 10,
  36. onChange: function(page) {
  37. this.loadData(page);
  38. }.bind(this),
  39. showTotal: function(total) {
  40. return "共" + total + "条数据";
  41. }
  42. },
  43. dataSource: [],
  44. taberReleaseDate: [],
  45. taberProjectType: '',
  46. taberCommodityName: '',
  47. releaseDate:[],
  48. searchOrderNo: '',
  49. searchContractNo: '',
  50. searchEnterpriseName: '',
  51. declarationBatch: '',
  52. projectType: '',
  53. projectStatus: '',
  54. province: '',
  55. depId: '',
  56. departmentArr:[],
  57. contactsOption: [],
  58. contactsOptionData: [],
  59. customerArr: [],
  60. commodityName: '',
  61. kid: '',
  62. status: 0,
  63. }
  64. this.loadData = this.loadData.bind(this);
  65. this.resetAll = this.resetAll.bind(this);
  66. this.changeList = this.changeList.bind(this);
  67. this.departmentList = this.departmentList.bind(this);
  68. this.exportPending = this.exportPending.bind(this);
  69. this.selectSuperId = this.selectSuperId.bind(this);
  70. this.supervisorCui = this.supervisorCui.bind(this);
  71. this.httpChangeCui = this.httpChangeCui.bind(this);
  72. this.selectAuto = this.selectAuto.bind(this);
  73. this.openProjectSummary = this.openProjectSummary.bind(this);
  74. }
  75. changeList(arr) {
  76. const newArr = [];
  77. this.state.columns.forEach(item => {
  78. arr.forEach(val => {
  79. if (val === item.title) {
  80. newArr.push(item);
  81. }
  82. });
  83. });
  84. this.setState({
  85. changeList: newArr
  86. });
  87. }
  88. loadData(pageNo) {
  89. this.setState({
  90. page: pageNo,
  91. loading: true,
  92. taberReleaseDate:this.state.releaseDate,
  93. taberProjectType:this.state.projectType,
  94. taberCommodityName:this.state.commodityName,
  95. });
  96. $.ajax({
  97. method: "get",
  98. dataType: "json",
  99. crossDomain: false,
  100. url: globalConfig.context + "/api/admin/statistis/selectProvincialStatistics",
  101. data: {
  102. pageNo: pageNo || 1,
  103. pageSize: this.state.pagination.pageSize,
  104. startDate: this.state.releaseDate.length > 0 ? this.state.releaseDate[0]: undefined, //开始时间
  105. endDate: this.state.releaseDate.length > 0 ? this.state.releaseDate[1]: undefined, //结束时间
  106. province: this.state.province || undefined,
  107. projectStatus: this.state.projectStatus || undefined,//项目类别
  108. projectType: typeof this.state.projectType === 'number' ? this.state.projectType : undefined,//项目分类
  109. status: this.state.status,
  110. thchDepId: this.state.depId || undefined,
  111. projectId: this.state.kid || undefined,
  112. },
  113. success: function(data) {
  114. ShowModal(this);
  115. let theArr = [];
  116. if (!data.data || !data.data.list) {
  117. if (data.error && data.error.length) {
  118. message.warning(data.error[0].message);
  119. }
  120. } else {
  121. for (let i = 0; i < data.data.list.length; i++) {
  122. let thisdata = data.data.list[i];
  123. thisdata.key=(data.data.pageNo - 1) * data.data.pageSize + i + 1;
  124. theArr.push(thisdata);
  125. }
  126. }
  127. this.state.pagination.current = data.data.pageNo;
  128. this.state.pagination.total = data.data.totalCount;
  129. if (data.data && data.data.list && !data.data.list.length) {
  130. this.state.pagination.current = 0;
  131. this.state.pagination.total = 0;
  132. }
  133. this.setState({
  134. dataSource: theArr,
  135. pagination: this.state.pagination
  136. });
  137. }.bind(this)
  138. }).always(
  139. function() {
  140. this.setState({
  141. loading: false
  142. });
  143. }.bind(this)
  144. );
  145. }
  146. //部门
  147. departmentList() {
  148. $.ajax({
  149. method: "get",
  150. dataType: "json",
  151. crossDomain: false,
  152. url: globalConfig.context + "/api/admin/organization/selectSuperId",
  153. data: {},
  154. success: function (data) {
  155. let thedata = data.data;
  156. let theArr = [];
  157. if (!thedata) {
  158. if (data.error && data.error.length) {
  159. message.warning(data.error[0].message);
  160. }
  161. } else {
  162. thedata.map(function (item, index) {
  163. theArr.push({
  164. key: index,
  165. name: item.name,
  166. id: item.id,
  167. });
  168. });
  169. }
  170. this.setState({
  171. departmentArr: theArr,
  172. });
  173. }.bind(this),
  174. })
  175. }
  176. resetAll() {
  177. this.setState({
  178. releaseDate: [],
  179. searchOrderNo: '',
  180. searchContractNo: '',
  181. searchEnterpriseName: '',
  182. declarationBatch: '',
  183. province: '',
  184. depId: '',
  185. projectType: '',
  186. projectStatus: '',
  187. columns: currency((v,screen)=>{this.openProjectSummary(v,screen)}),
  188. commodityName: '',
  189. kid:'',
  190. status: 0,
  191. taberReleaseDate:[],
  192. taberProjectType:'',
  193. taberCommodityName:'',
  194. },()=>{
  195. this.loadData();
  196. })
  197. }
  198. exportPending() {
  199. message.config({
  200. duration: 20,
  201. });
  202. let loading = message.loading('下载中...');
  203. this.setState({
  204. exportPendingLoading: true
  205. })
  206. let url = `/api/admin/statistis/exporProvincialList?status=${this.state.status}`;
  207. let dep = this.state.departmentArr.filter((e)=> e.id === this.state.depId);//责任部门名称
  208. let option = this.state.contactsOptionData.filter((e)=> e.id === this.state.projectStatus); //项目类别名称
  209. if(dep.length > 0){url = url+`&thchDepName=${dep[0].name}`;}
  210. if(option.length > 0){url = url+`&projectStatusName=${option[0].cname}`;}
  211. if(typeof this.state.projectType === 'number'){url = url+`&projectTypeName=${
  212. this.state.projectType === 0? '通用' :
  213. this.state.projectType === 1? '专利' :
  214. this.state.projectType === 2? '软著' :
  215. this.state.projectType === 3? '审计' :
  216. this.state.projectType === 4? '双软' :
  217. this.state.projectType === 5? '高新' :
  218. this.state.projectType === 6? '商标' :''
  219. }`;}
  220. if(this.state.commodityName){url = url+`&projectName=${this.state.commodityName}`;}
  221. if(this.state.province){url = url+`&provinceName=${getNewDiccityArr(this.state.province)}`;}
  222. let data ={
  223. startDate: this.state.releaseDate.length > 0 ? this.state.releaseDate[0]: undefined, //开始时间
  224. endDate: this.state.releaseDate.length > 0 ? this.state.releaseDate[1]: undefined, //结束时间
  225. thchDepId: this.state.depId || undefined,//责任部门ID
  226. projectStatus: this.state.projectStatus || undefined,//项目类别
  227. projectType: typeof this.state.projectType === 'number' ? this.state.projectType : undefined,//项目分类
  228. province: this.state.province || undefined,
  229. projectId: this.state.kid || undefined,
  230. }
  231. for(let key in data){
  232. if(data[key]){
  233. url = url+`&${key}=${data[key]}`;
  234. }
  235. }
  236. $.ajax({
  237. method: "get",
  238. dataType: "json",
  239. crossDomain: false,
  240. url: url,
  241. data:{},
  242. success: function(data) {
  243. if(data.error.length === 0){
  244. this.download(data.data);
  245. }else{
  246. message.warning(data.error[0].message);
  247. }
  248. }.bind(this),
  249. }).always(function() {
  250. loading();
  251. this.setState({
  252. exportPendingLoading: false
  253. })
  254. }.bind(this));
  255. }
  256. download(fileName){
  257. window.location.href = globalConfig.context + "/open/download?fileName=" + fileName
  258. }
  259. //项目类别
  260. selectSuperId() {
  261. $.ajax({
  262. method: "get",
  263. dataType: "json",
  264. crossDomain: false,
  265. url: globalConfig.context + "/api/admin/ProjectSize/getAllCname",
  266. data: {
  267. flag: 0
  268. },
  269. success: function(data) {
  270. let theArr = [];
  271. let thedata = data.data;
  272. if (!thedata) {
  273. if (data.error && data.error.length) {
  274. message.warning(data.error[0].message);
  275. }
  276. }
  277. for (let i = 0; i < data.data.length; i++) {
  278. let theData = data.data[i];
  279. theArr.push(
  280. <Select.Option value={theData.id} key={theData.cname}>
  281. {theData.cname}
  282. </Select.Option>
  283. );
  284. }
  285. this.setState({
  286. contactsOption: theArr,
  287. contactsOptionData: data.data,
  288. });
  289. }.bind(this)
  290. }).always(
  291. );
  292. }
  293. supervisorCui(e) {
  294. //客户名称与服务名称自动补全
  295. let api = "/api/admin/order/getBusinessProjectByName";
  296. $.ajax({
  297. method: "get",
  298. dataType: "json",
  299. crossDomain: false,
  300. url: globalConfig.context + api,
  301. data: {
  302. businessName: e,
  303. },
  304. success: function (data) {
  305. let thedata = data.data;
  306. if (!thedata) {
  307. if (data.error && data.error.length) {
  308. message.warning(data.error[0].message);
  309. }
  310. thedata = {};
  311. }
  312. this.setState({
  313. customerArr: thedata,
  314. });
  315. }.bind(this),
  316. }).always(
  317. function () {
  318. this.setState({
  319. loading: false,
  320. });
  321. }.bind(this)
  322. );
  323. }
  324. httpChangeCui(e) {
  325. if (e.length >= 1) {
  326. this.supervisorCui(e, false);
  327. }
  328. this.setState({
  329. commodityName: e,
  330. });
  331. }
  332. //上级主管输入框失去焦点是判断客户是否存在
  333. selectAuto(value){
  334. let kid=[];
  335. let fwList=this.state.customerArr;
  336. fwList.map(function(item){
  337. if(value===item.bname){
  338. kid=item.id
  339. }
  340. })
  341. this.setState({
  342. kid:kid,
  343. commodityName:value,
  344. })
  345. }
  346. componentWillMount() {
  347. this.loadData();
  348. this.departmentList();
  349. this.selectSuperId();
  350. }
  351. openProjectSummary(record,screen){
  352. this.setState({
  353. projectSummary: true,
  354. taberProvince: record.province,
  355. taberProjectStatus: record.bpId,//项目类别
  356. taberdepId: record.thchDepId,
  357. screen: screen,
  358. })
  359. }
  360. render() {
  361. const dataSources=this.state.customerArr || [];
  362. const options = dataSources.map((group,index) =>
  363. <Select.Option key={index} value={group.bname}>{group.bname}</Select.Option>
  364. )
  365. return (
  366. <div className="user-content">
  367. <div className="content-title">
  368. <span>
  369. 项目统计
  370. (
  371. {
  372. this.state.status === 2 ? '专利' :
  373. this.state.status === 4 ? '软著' :
  374. this.state.status === 1 ? '高新' :
  375. this.state.status === 5 ? '商标' : '通用'
  376. }
  377. )
  378. </span>
  379. </div>
  380. <Tabs defaultActiveKey="1" className="test">
  381. <TabPane tab="搜索" key="1">
  382. <div className="user-search" style={{
  383. marginTop:'10px',
  384. marginLeft:'10px',
  385. marginRight:'10px'
  386. }}>
  387. <span style={{display: "inline-block",marginRight:'10px',marginBottom:'10px'}}>
  388. <span>项目名称:</span>
  389. <AutoComplete
  390. className="certain-category-search"
  391. dropdownClassName="certain-category-search-dropdown"
  392. dropdownMatchSelectWidth={false}
  393. dropdownStyle={{ width: 200 }}
  394. style={{ width: 100,marginLeft:'10px' }}
  395. dataSource={options}
  396. placeholder="输入服务名称"
  397. value={this.state.commodityName}
  398. onChange={this.httpChangeCui}
  399. filterOption={true}
  400. onSelect={this.selectAuto}
  401. >
  402. <Input/>
  403. </AutoComplete>
  404. </span>
  405. <span style={{display:"inline-block"}}>
  406. <span style={{marginRight:'10px',marginBottom:'10px'}}>项目类别 :</span>
  407. <Select
  408. value={this.state.projectStatus || undefined}
  409. placeholder="请选择项目类别"
  410. notFoundContent="未获取到上级品类列表"
  411. style={{ width: 100,marginRight:'10px',marginBottom:'10px' }}
  412. onChange={(e) => {
  413. let infor = this.state.contactsOptionData.filter((v)=>v.id === e);
  414. this.setState({
  415. projectStatus: e,
  416. },()=>{
  417. if(infor.length && infor[0].cname === '高新' && typeof this.state.projectType !== 'number'){
  418. this.setState({
  419. columns: highTechColumns((v,screen)=>{this.openProjectSummary(v,screen)}),
  420. changeList: [],
  421. status: 1,
  422. },()=>{
  423. this.loadData();
  424. })
  425. }else if (typeof this.state.projectType !== 'number'){
  426. this.setState({
  427. columns: currency((v,screen)=>{this.openProjectSummary(v,screen)}),
  428. changeList: [],
  429. status: 0,
  430. },()=>{
  431. this.loadData();
  432. })
  433. }else{
  434. this.loadData();
  435. }
  436. })
  437. }}
  438. >
  439. {this.state.contactsOption}
  440. </Select>
  441. </span>
  442. <span style={{display:"inline-block"}}>
  443. <span style={{marginRight:'10px',marginBottom:'10px'}}>项目分类 :</span>
  444. <Select
  445. value={typeof this.state.projectType === 'number' ? this.state.projectType : undefined}
  446. placeholder="请选择项目分类"
  447. style={{ width: 100,marginRight:'10px',marginBottom:'10px' }}
  448. onChange={(e) => {
  449. this.setState({
  450. columns:
  451. e === 0 ? currency((v,screen)=>{this.openProjectSummary(v,screen)}) :
  452. e === 1 ? invention((v,screen)=>{this.openProjectSummary(v,screen)}) :
  453. e === 2 ? softWriting((v,screen)=>{this.openProjectSummary(v,screen)}) :
  454. e === 3 ? currency((v,screen)=>{this.openProjectSummary(v,screen)}) :
  455. e === 4 ? currency((v,screen)=>{this.openProjectSummary(v,screen)}):
  456. e === 5 ? highTechColumns((v,screen)=>{this.openProjectSummary(v,screen)}) :
  457. e === 6 ? otherTrademarks((v,screen)=>{this.openProjectSummary(v,screen)}) :[],
  458. changeList: [],
  459. projectType: e,
  460. status: e === 1 ? 2 : e === 2 ? 4 : e === 5 ? 1 : e === 6 ? 5 : 0, // 0通用 1高新 2发明专利 3实用新型 4软著 5商标
  461. },()=>{
  462. this.loadData();
  463. })
  464. }}
  465. >
  466. <Option value={0}>通用</Option>
  467. <Option value={1}>专利</Option>
  468. <Option value={2}>软著</Option>
  469. <Option value={3}>审计</Option>
  470. <Option value={4}>双软</Option>
  471. <Option value={5}>高新</Option>
  472. <Option value={6}>商标</Option>
  473. </Select>
  474. </span>
  475. <span style={{display: "inline-block",marginRight:'10px',marginBottom:'10px'}}>
  476. <span>派单省份:</span>
  477. <Select
  478. placeholder="请选择省份"
  479. style={{ width: 100,marginRight:'10px',marginLeft:'10px',marginBottom:'10px' }}
  480. value={getNewDiccityArr(this.state.province)}
  481. onChange={e => {
  482. this.setState({ province: e });
  483. }}
  484. >
  485. {citySelect().map(function(item) {
  486. return (
  487. <Select.Option key={item.value} value={item.value}>{item.label}</Select.Option>
  488. );
  489. })}
  490. </Select>
  491. </span>
  492. <span style={{display: "inline-block",marginRight:'10px',marginBottom:'10px'}}>
  493. <span>负责部门:</span>
  494. <Select
  495. placeholder="请选择部门"
  496. style={{ width: 200,marginRight:'10px',marginLeft:'10px',marginBottom:'10px' }}
  497. value={this.state.depId || undefined}
  498. onChange={e => {
  499. this.setState({ depId: e });
  500. }}
  501. >
  502. {
  503. this.state.departmentArr.map(function (item) {
  504. return <Select.Option key={item.id} value={item.id}>{item.name}</Select.Option>
  505. })
  506. }
  507. </Select>
  508. </span>
  509. <span style={{display:"inline-block"}}>
  510. <span style={{marginRight:'10px',marginBottom:'10px'}}>派单时间 :</span>
  511. <RangePicker
  512. style={{marginRight:'10px',marginBottom:'10px'}}
  513. value={[
  514. this.state.releaseDate[0]
  515. ? moment(this.state.releaseDate[0])
  516. : null,
  517. this.state.releaseDate[1]
  518. ? moment(this.state.releaseDate[1])
  519. : null,
  520. ]}
  521. onChange={(data, dataString) => {
  522. this.setState({ releaseDate: dataString });
  523. }}
  524. />
  525. </span>
  526. <Button type="primary" onClick={()=>{
  527. if(this.state.commodityName.length === 0){
  528. this.setState({
  529. kid: '',
  530. },()=>{
  531. this.loadData();
  532. })
  533. }else{
  534. this.loadData();
  535. }
  536. }} style={{marginRight:'10px',marginBottom:'10px'}}>搜索</Button>
  537. <Button onClick={this.resetAll} style={{marginRight:'10px',marginBottom:'10px'}}>重置</Button>
  538. </div>
  539. </TabPane>
  540. <TabPane tab="更改表格显示数据" key="2">
  541. <div style={{ marginLeft: 10 }}>
  542. <ChooseList
  543. columns={this.state.columns}
  544. changeFn={this.changeList}
  545. changeList={this.state.changeList}
  546. top={55}
  547. margin={11}
  548. />
  549. </div>
  550. </TabPane>
  551. <TabPane tab="导出EXCEL" key="3">
  552. <Button type="primary" style={{margin: '10px'}} loading={this.state.exportPendingLoading} onClick={this.exportPending}>导出</Button>
  553. </TabPane>
  554. </Tabs>
  555. <div className="patent-table">
  556. <Spin spinning={this.state.loading}>
  557. <Table
  558. bordered
  559. size="middle"
  560. scroll={{ x: 800, y: 0 }}
  561. columns={
  562. this.state.changeList.length > 0
  563. ? this.state.changeList
  564. : this.state.columns
  565. }
  566. dataSource={this.state.dataSource}
  567. pagination={this.state.pagination}
  568. />
  569. </Spin>
  570. </div>
  571. {this.state.projectSummary ? <Modal
  572. maskClosable={false}
  573. className="customeDetails"
  574. footer=""
  575. title=""
  576. width="1800px"
  577. visible={this.state.projectSummary}
  578. onOk={()=>{
  579. this.setState({
  580. projectSummary: false
  581. })
  582. }}
  583. onCancel={()=>{
  584. this.setState({
  585. projectSummary: false
  586. })
  587. }}
  588. >
  589. <HighTech
  590. searchData={{
  591. startDate: this.state.releaseDate.length > 0 ? this.state.releaseDate[0]: undefined, //开始时间
  592. endDate: this.state.releaseDate.length > 0 ? this.state.releaseDate[1]: undefined, //结束时间
  593. projectType: typeof this.state.projectType === 'number' ? this.state.projectType : undefined,//项目分类
  594. projectId: this.state.kid || undefined,
  595. province: this.state.taberProvince || undefined,
  596. projectStatus: this.state.taberProjectStatus || undefined,//项目类别
  597. thchDepId: this.state.taberdepId || undefined,
  598. status: this.state.projectType === 4 ? 2 :
  599. this.state.projectType === 2 ? 3 :
  600. this.state.projectType === 1 ? 4 :
  601. this.state.projectType === 5 ? 1 :
  602. this.state.contactsOptionData.filter((v)=>v.id === this.state.taberProjectStatus).length > 0 ?
  603. (this.state.contactsOptionData.filter((v)=>v.id === this.state.taberProjectStatus)[0].cname === '高新' ? 1 : 0) : 0,
  604. screen: this.state.screen,//筛选项 0库存 1派单 2完成 3立项 4抽查 5未通过 6受理 7完结 8授权 9驳回 10下证 11申请 12公示数
  605. }}
  606. introduce={()=>(
  607. <div className="user-search" style={{
  608. marginTop:'10px',
  609. marginLeft:'10px',
  610. marginRight:'10px'
  611. }}>
  612. {this.state.taberProvince ? <span style={{display: "inline-block",marginRight:'20px',marginBottom:'10px'}}>
  613. <span>派单省份:</span>
  614. <span style={{ width: 100,marginLeft:'10px' }}>{getNewDiccityArr(this.state.taberProvince)}</span>
  615. </span> : null}
  616. {this.state.taberProjectStatus ? <span style={{display:"inline-block",marginRight:'20px',marginBottom:'10px'}}>
  617. <span>项目类别 :</span>
  618. <span style={{ width: 100,marginLeft:'10px' }}>
  619. {
  620. this.state.contactsOptionData.filter((v)=>v.id === this.state.taberProjectStatus)[0].cname
  621. }
  622. </span>
  623. </span> : null}
  624. {this.state.taberdepId ? <span style={{display: "inline-block",marginRight:'20px',marginBottom:'10px'}}>
  625. <span>负责部门:</span>
  626. <span style={{ width: 200,marginLeft:'10px' }}>
  627. {
  628. this.state.departmentArr.filter((v)=>v.id === this.state.taberdepId)[0].name
  629. }
  630. </span>
  631. </span> : null}
  632. {this.state.taberCommodityName ? <span style={{display: "inline-block",marginRight:'20px',marginBottom:'10px'}}>
  633. <span>项目名称:</span>
  634. <span style={{ width: 100,marginLeft:'10px' }}>{this.state.taberCommodityName}</span>
  635. </span> : null}
  636. {typeof this.state.taberProjectType === 'number'?<span style={{display:"inline-block",marginRight:'20px',marginBottom:'10px'}}>
  637. <span>项目分类 :</span>
  638. <span style={{ width: 100,marginRight:'10px' }}>
  639. {
  640. this.state.taberProjectType === 0 ? '通用' :
  641. this.state.taberProjectType === 1 ? '专利' :
  642. this.state.taberProjectType === 2 ? '软著' :
  643. this.state.taberProjectType === 3 ? '审计' :
  644. this.state.taberProjectType === 4 ? '双软':
  645. this.state.taberProjectType === 5 ? '高新' :
  646. this.state.taberProjectType === 6 ? '商标' : ''
  647. }
  648. </span>
  649. </span> : null}
  650. {this.state.taberReleaseDate.length > 0 ? <span style={{display:"inline-block",marginRight:'20px',marginBottom:'10px'}}>
  651. <span>派单时间 :</span>
  652. <span style={{ width: 100,marginRight:'10px' }}>
  653. {this.state.taberReleaseDate[0]+'~'+this.state.taberReleaseDate[1]}
  654. </span>
  655. </span> : null}
  656. </div>
  657. )}
  658. />
  659. </Modal> : null}
  660. </div>
  661. )
  662. }
  663. }
  664. export default ProjecCount;