highTech.jsx 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809
  1. import React, { Component } from "react";
  2. import {
  3. Button,
  4. DatePicker,
  5. Input,
  6. message,
  7. Select,
  8. Spin,
  9. Table,
  10. Tabs,
  11. } from "antd";
  12. import { ShowModal } from "@/tools";
  13. import { ChooseList } from "../../order/orderNew/chooseList";
  14. import $ from "jquery/src/ajax";
  15. import moment from "moment";
  16. import {
  17. highTechColumns,
  18. doubleSoft,
  19. softWriting,
  20. patent,
  21. currency,
  22. } from "./highTechConfig";
  23. import ProjectDetails from "./projectDetails";
  24. const { TabPane } = Tabs;
  25. const { RangePicker } = DatePicker;
  26. const { Option } = Select;
  27. class HighTech extends Component {
  28. constructor(props) {
  29. super(props);
  30. this.state = {
  31. loading: false,
  32. changeList: undefined,
  33. columns: currency,
  34. status: 0,
  35. page: 1,
  36. pagination: {
  37. defaultCurrent: 1,
  38. defaultPageSize: 10,
  39. showQuickJumper: true,
  40. pageSize: 10,
  41. onChange: function (page) {
  42. this.loadData(page);
  43. }.bind(this),
  44. showTotal: function (total) {
  45. return "共" + total + "条数据";
  46. },
  47. },
  48. dataSource: [],
  49. releaseDate: [],
  50. searchOrderNo: "",
  51. searchContractNo: "",
  52. searchEnterpriseName: "",
  53. declarationBatch: "",
  54. projectSituation: "",
  55. projectAmount: "",
  56. depId: "",
  57. thchDepId: "",
  58. projectType: "",
  59. projectStatus: "",
  60. departmentArr: [],
  61. contactsOption: [],
  62. contactsOptionData: [],
  63. visible: false,
  64. };
  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.loadData = this.loadData.bind(this);
  70. this.selectSuperId = this.selectSuperId.bind(this);
  71. }
  72. changeList(arr) {
  73. const newArr = [];
  74. this.state.columns.forEach((item) => {
  75. arr.forEach((val) => {
  76. if (val === item.title) {
  77. newArr.push(item);
  78. }
  79. });
  80. });
  81. this.setState({
  82. changeList: newArr,
  83. });
  84. }
  85. loadData(pageNo = "") {
  86. this.setState({
  87. loading: true,
  88. });
  89. $.ajax({
  90. method: "get",
  91. dataType: "json",
  92. crossDomain: false,
  93. url: globalConfig.context + "/api/admin/statistis/selectTaskList",
  94. data: this.props.searchData
  95. ? Object.assign(
  96. {
  97. pageNo: pageNo || 1,
  98. pageSize: this.state.pagination.pageSize || 10,
  99. },
  100. this.props.searchData
  101. )
  102. : {
  103. pageNo: pageNo || 1,
  104. pageSize: this.state.pagination.pageSize || 10,
  105. startDate:
  106. this.state.releaseDate.length > 0
  107. ? this.state.releaseDate[0]
  108. : undefined, //开始时间
  109. endDate:
  110. this.state.releaseDate.length > 0
  111. ? this.state.releaseDate[1]
  112. : undefined, //结束时间
  113. depId: this.state.depId || undefined, //部门ID
  114. thchDepId: this.state.thchDepId || undefined, //责任部门ID
  115. projectStatus: this.state.projectStatus || undefined, //项目类别
  116. projectType:
  117. typeof this.state.projectType === "number"
  118. ? this.state.projectType
  119. : undefined, //项目分类
  120. orderNo: this.state.searchOrderNo || undefined, //订单编号
  121. contractNo: this.state.searchContractNo || undefined, //合同编号
  122. userName: this.state.searchEnterpriseName || undefined, //企业名称
  123. declarationBatch: this.state.declarationBatch || undefined, //申报批次
  124. projectSituation:
  125. typeof this.state.projectSituation === "number"
  126. ? this.state.projectSituation
  127. : undefined, //项目分类
  128. projectAmount: this.state.projectAmount || undefined, //项目金额
  129. status: this.state.status,
  130. },
  131. success: function (data) {
  132. ShowModal(this);
  133. let theArr = [];
  134. if (!data.data || !data.data.list) {
  135. if (data.error && data.error.length) {
  136. message.warning(data.error[0].message);
  137. }
  138. } else {
  139. for (let i = 0; i < data.data.list.length; i++) {
  140. let thisdata = data.data.list[i];
  141. thisdata.key = (data.data.pageNo - 1) * data.data.pageSize + i + 1;
  142. theArr.push(thisdata);
  143. }
  144. this.state.pagination.current = data.data.pageNo;
  145. this.state.pagination.total = data.data.totalCount;
  146. if (data.data && data.data.list && !data.data.list.length) {
  147. this.state.pagination.current = 0;
  148. this.state.pagination.total = 0;
  149. }
  150. this.setState({
  151. pagination: this.state.pagination,
  152. page: pageNo,
  153. dataSource: theArr,
  154. });
  155. }
  156. }.bind(this),
  157. }).always(
  158. function () {
  159. this.setState({
  160. loading: false,
  161. });
  162. }.bind(this)
  163. );
  164. }
  165. resetAll() {
  166. this.setState(
  167. {
  168. releaseDate: [],
  169. searchOrderNo: "",
  170. searchContractNo: "",
  171. searchEnterpriseName: "",
  172. declarationBatch: "",
  173. projectSituation: "",
  174. projectAmount: "",
  175. projectType: "",
  176. depId: "",
  177. thchDepId: "",
  178. projectStatus: "",
  179. columns: currency,
  180. status: 0,
  181. },
  182. () => {
  183. this.loadData();
  184. }
  185. );
  186. }
  187. //部门
  188. departmentList() {
  189. $.ajax({
  190. method: "get",
  191. dataType: "json",
  192. crossDomain: false,
  193. url: globalConfig.context + "/api/admin/organization/selectSuperId",
  194. data: {},
  195. success: function (data) {
  196. let thedata = data.data;
  197. let theArr = [];
  198. if (!thedata) {
  199. if (data.error && data.error.length) {
  200. message.warning(data.error[0].message);
  201. }
  202. } else {
  203. thedata.map(function (item, index) {
  204. theArr.push({
  205. key: index,
  206. name: item.name,
  207. id: item.id,
  208. });
  209. });
  210. }
  211. this.setState({
  212. departmentArr: theArr,
  213. });
  214. }.bind(this),
  215. });
  216. }
  217. //项目类别
  218. selectSuperId() {
  219. $.ajax({
  220. method: "get",
  221. dataType: "json",
  222. crossDomain: false,
  223. url: globalConfig.context + "/api/admin/ProjectSize/getAllCname",
  224. data: {
  225. flag: 0,
  226. },
  227. success: function (data) {
  228. let theArr = [];
  229. let thedata = data.data;
  230. if (!thedata) {
  231. if (data.error && data.error.length) {
  232. message.warning(data.error[0].message);
  233. }
  234. }
  235. for (let i = 0; i < data.data.length; i++) {
  236. let theData = data.data[i];
  237. theArr.push(
  238. <Select.Option value={theData.id} key={theData.cname}>
  239. {theData.cname}
  240. </Select.Option>
  241. );
  242. }
  243. this.setState({
  244. contactsOption: theArr,
  245. contactsOptionData: data.data,
  246. });
  247. }.bind(this),
  248. }).always();
  249. }
  250. exportPending() {
  251. let url = `/api/admin/statistis/exporTaskList?status=${this.state.status}`;
  252. let dep = this.state.departmentArr.filter((e) => e.id === this.state.depId); //订单部门名称
  253. let thchDep = this.state.departmentArr.filter(
  254. (e) => e.id === this.state.thchDepId
  255. ); //责任部门名称
  256. let option = this.state.contactsOptionData.filter(
  257. (e) => e.id === this.state.projectStatus
  258. ); //项目类别名称
  259. if (dep.length > 0) {
  260. url = url + `&depName=${dep[0].name}`;
  261. }
  262. if (thchDep.length > 0) {
  263. url = url + `&thchDepName=${thchDep[0].name}`;
  264. }
  265. if (option.length > 0) {
  266. url = url + `&projectStatusName=${option[0].cname}`;
  267. }
  268. if (typeof this.state.projectType === "number") {
  269. url =
  270. url +
  271. `&projectTypeName=${this.state.projectType === 0
  272. ? "通用"
  273. : this.state.projectType === 1
  274. ? "专利"
  275. : this.state.projectType === 2
  276. ? "软著"
  277. : this.state.projectType === 3
  278. ? "审计"
  279. : this.state.projectType === 4
  280. ? "双软"
  281. : this.state.projectType === 5
  282. ? "高新"
  283. : ""
  284. }`;
  285. }
  286. let data = {
  287. startDate:
  288. this.state.releaseDate.length > 0
  289. ? this.state.releaseDate[0]
  290. : undefined, //开始时间
  291. endDate:
  292. this.state.releaseDate.length > 0
  293. ? this.state.releaseDate[1]
  294. : undefined, //结束时间
  295. depId: this.state.depId || undefined, //部门ID
  296. thchDepId: this.state.thchDepId || undefined, //责任部门ID
  297. projectStatus: this.state.projectStatus || undefined, //项目类别
  298. projectType:
  299. typeof this.state.projectType === "number"
  300. ? this.state.projectType
  301. : undefined, //项目分类
  302. orderNo: this.state.searchOrderNo || undefined, //订单编号
  303. contractNo: this.state.searchContractNo || undefined, //合同编号
  304. userName: this.state.searchEnterpriseName || undefined, //企业名称
  305. declarationBatch: this.state.declarationBatch || undefined, //申报批次
  306. projectSituation:
  307. typeof this.state.projectSituation === "number"
  308. ? this.state.projectSituation
  309. : undefined, //项目情况
  310. projectAmount: this.state.projectAmount || undefined, //项目金额
  311. };
  312. for (let key in data) {
  313. if (data[key]) {
  314. url = url + `&${key}=${data[key]}`;
  315. }
  316. }
  317. window.location.href = globalConfig.context + url;
  318. }
  319. // 设置默认table(用来默认不显示某列数据 isNoD:true)
  320. defaultcolumns() {
  321. const newArr = [];
  322. this.state.columns.forEach((item) => {
  323. if (item.isNoD) {
  324. return
  325. } else {
  326. newArr.push(item);
  327. }
  328. });
  329. this.setState({
  330. changeList: newArr,
  331. });
  332. }
  333. componentWillMount() {
  334. this.defaultcolumns();
  335. this.loadData();
  336. if (!this.props.introduce) {
  337. this.departmentList();
  338. this.selectSuperId();
  339. }
  340. if (this.props.searchData) {
  341. let e = this.props.searchData.projectType;
  342. this.setState({
  343. columns:
  344. e === 0
  345. ? currency
  346. : e === 1
  347. ? patent
  348. : e === 2
  349. ? softWriting
  350. : e === 3
  351. ? currency
  352. : e === 4
  353. ? doubleSoft
  354. : e === 5
  355. ? highTechColumns
  356. : e === 6
  357. ? currency
  358. : currency,
  359. });
  360. }
  361. }
  362. render() {
  363. return (
  364. <div className="user-content">
  365. {this.props.introduce ? (
  366. this.props.introduce()
  367. ) : (
  368. <div>
  369. <div className="content-title" style={{ marginBottom: 10 }}>
  370. <span style={{ fontWeight: 900, fontSize: 16 }}>
  371. 项目汇总表 (
  372. {this.state.status === 1
  373. ? "高新" : this.state.status === 2
  374. ? "双软" : this.state.status === 3
  375. ? "软著" : this.state.status === 4
  376. ? "专利" : "通用"}
  377. )
  378. </span>
  379. </div>
  380. <Tabs defaultActiveKey="1" className="test">
  381. <TabPane tab="搜索" key="1">
  382. <div
  383. className="user-search"
  384. style={{
  385. marginTop: "10px",
  386. marginLeft: "10px",
  387. marginRight: "10px",
  388. }}
  389. >
  390. <Input
  391. placeholder="订单编号"
  392. style={{
  393. width: 100,
  394. marginRight: "10px",
  395. marginBottom: "10px",
  396. }}
  397. value={this.state.searchOrderNo}
  398. onChange={(e) => {
  399. this.setState({ searchOrderNo: e.target.value });
  400. }}
  401. />
  402. <Input
  403. placeholder="合同编号"
  404. style={{
  405. width: 100,
  406. marginRight: "10px",
  407. marginBottom: "10px",
  408. }}
  409. value={this.state.searchContractNo}
  410. onChange={(e) => {
  411. this.setState({ searchContractNo: e.target.value });
  412. }}
  413. />
  414. <Input
  415. placeholder="企业名称"
  416. style={{
  417. width: 100,
  418. marginRight: "10px",
  419. marginBottom: "10px",
  420. }}
  421. value={this.state.searchEnterpriseName}
  422. onChange={(e) => {
  423. this.setState({ searchEnterpriseName: e.target.value });
  424. }}
  425. />
  426. <span style={{ display: "inline-block" }}>
  427. <span style={{ marginRight: "10px", marginBottom: "10px" }}>
  428. 项目类别 :
  429. </span>
  430. <Select
  431. value={this.state.projectStatus || undefined}
  432. placeholder="请选择项目类别"
  433. notFoundContent="未获取到上级品类列表"
  434. style={{
  435. width: 100,
  436. marginRight: "10px",
  437. marginBottom: "10px",
  438. }}
  439. onChange={(e) => {
  440. let infor = this.state.contactsOptionData.filter(
  441. (v) => v.id === e
  442. );
  443. this.setState(
  444. {
  445. projectStatus: e,
  446. }
  447. // ()=>{
  448. // if(infor[0].cname === '高新' && typeof this.state.projectType !== 'number'){
  449. // this.setState({
  450. // columns: highTechColumns,
  451. // dataSource:[],
  452. // changeList: [],
  453. // status: 1,
  454. // },()=>{
  455. // this.loadData();
  456. // })
  457. // }else if (typeof this.state.projectType !== 'number'){
  458. // this.setState({
  459. // columns: currency,
  460. // dataSource:[],
  461. // changeList: [],
  462. // status: 0,
  463. // },()=>{
  464. // this.loadData();
  465. // })
  466. // }else{
  467. // this.loadData();
  468. // }
  469. // }
  470. );
  471. }}
  472. >
  473. {this.state.contactsOption}
  474. </Select>
  475. </span>
  476. <span style={{ display: "inline-block" }}>
  477. <span style={{ marginRight: "10px", marginBottom: "10px" }}>
  478. 项目分类 :
  479. </span>
  480. <Select
  481. value={
  482. typeof this.state.projectType === "number"
  483. ? this.state.projectType
  484. : undefined
  485. }
  486. placeholder="请选择项目分类"
  487. style={{
  488. width: 100,
  489. marginRight: "10px",
  490. marginBottom: "10px",
  491. }}
  492. onChange={(e) => {
  493. this.setState(
  494. {
  495. columns:
  496. e === 0
  497. ? currency
  498. : e === 1
  499. ? patent
  500. : e === 2
  501. ? softWriting
  502. : e === 3
  503. ? currency
  504. : e === 4
  505. ? doubleSoft
  506. : e === 5
  507. ? highTechColumns
  508. : e === 6
  509. ? currency
  510. : currency,
  511. changeList: [],
  512. projectType: e,
  513. status:
  514. e === 4
  515. ? 2
  516. : e === 2
  517. ? 3
  518. : e === 1
  519. ? 4
  520. : e === 5
  521. ? 1
  522. : 0,
  523. dataSource: [],
  524. }
  525. // () => {
  526. // this.loadData();
  527. // }
  528. );
  529. }}
  530. >
  531. {/*0通用 1专利 2软著 3审计 4双软 5高新*/}
  532. <Option value={0}>通用</Option>
  533. <Option value={1}>专利</Option>
  534. <Option value={2}>软著</Option>
  535. <Option value={3}>审计</Option>
  536. <Option value={4}>双软</Option>
  537. <Option value={5}>高新</Option>
  538. <Option value={6}>商标</Option>
  539. </Select>
  540. </span>
  541. <span
  542. style={{
  543. display: "inline-block",
  544. marginRight: "10px",
  545. marginBottom: "10px",
  546. }}
  547. >
  548. <span>订单部门:</span>
  549. <Select
  550. placeholder="请选择部门"
  551. style={{
  552. width: 200,
  553. marginRight: "10px",
  554. marginLeft: "10px",
  555. marginBottom: "10px",
  556. }}
  557. value={this.state.depId || undefined}
  558. onChange={(e) => {
  559. this.setState({ depId: e });
  560. }}
  561. >
  562. {this.state.departmentArr.map(function (item) {
  563. return (
  564. <Select.Option key={item.id} value={item.id}>
  565. {item.name}
  566. </Select.Option>
  567. );
  568. })}
  569. </Select>
  570. </span>
  571. <span
  572. style={{
  573. display: "inline-block",
  574. marginRight: "10px",
  575. marginBottom: "10px",
  576. }}
  577. >
  578. <span>负责部门:</span>
  579. <Select
  580. placeholder="请选择部门"
  581. style={{
  582. width: 200,
  583. marginRight: "10px",
  584. marginLeft: "10px",
  585. marginBottom: "10px",
  586. }}
  587. value={this.state.thchDepId || undefined}
  588. onChange={(e) => {
  589. this.setState({ thchDepId: e });
  590. }}
  591. >
  592. {this.state.departmentArr.map(function (item) {
  593. return (
  594. <Select.Option key={item.id} value={item.id}>
  595. {item.name}
  596. </Select.Option>
  597. );
  598. })}
  599. </Select>
  600. </span>
  601. <span style={{ display: "inline-block" }}>
  602. <span style={{ marginRight: "10px", marginBottom: "10px" }}>
  603. 申报批次 :
  604. </span>
  605. <Select
  606. value={this.state.declarationBatch || undefined}
  607. placeholder="请选择批次"
  608. style={{
  609. width: 100,
  610. marginRight: "10px",
  611. marginBottom: "10px",
  612. }}
  613. onChange={(e) => {
  614. this.setState({
  615. declarationBatch: e,
  616. });
  617. }}
  618. >
  619. <Option value={1}>第一批</Option>
  620. <Option value={2}>第二批</Option>
  621. <Option value={3}>第三批</Option>
  622. <Option value={4}>第四批</Option>
  623. </Select>
  624. </span>
  625. <span style={{ display: "inline-block" }}>
  626. <span style={{ marginRight: "10px", marginBottom: "10px" }}>
  627. 项目金额 :
  628. </span>
  629. <Select
  630. value={this.state.projectAmount || undefined}
  631. placeholder="请选择项目金额"
  632. style={{
  633. width: 100,
  634. marginRight: "10px",
  635. marginBottom: "10px",
  636. }}
  637. onChange={(e) => {
  638. this.setState({
  639. projectAmount: e,
  640. });
  641. }}
  642. >
  643. <Option value={1}>0~0.5万</Option>
  644. <Option value={2}>0.5~1万</Option>
  645. <Option value={3}>1~2万</Option>
  646. <Option value={4}>2~5万</Option>
  647. <Option value={5}>5~10万</Option>
  648. <Option value={6}>10~30万</Option>
  649. <Option value={7}>30~50万</Option>
  650. <Option value={8}>50~80万</Option>
  651. <Option value={9}>80万上</Option>
  652. </Select>
  653. </span>
  654. {/* <span style={{display:"inline-block"}}>*/}
  655. {/* <span style={{marginRight:'10px',marginBottom:'10px'}}>项目情况 :</span>*/}
  656. {/* <Select*/}
  657. {/* value={typeof this.state.projectSituation === 'number' ? this.state.projectSituation : undefined}*/}
  658. {/* placeholder="请选择项目情况"*/}
  659. {/* style={{ width: 200,marginRight:'10px',marginBottom:'10px' }}*/}
  660. {/* onChange={(e) => {*/}
  661. {/* this.setState({*/}
  662. {/* projectSituation: e,*/}
  663. {/* });*/}
  664. {/* }}*/}
  665. {/* >*/}
  666. {/* <Option value={0}>未开始</Option>*/}
  667. {/* <Option value={1}>进行中</Option>*/}
  668. {/* <Option value={2}>已暂停</Option>*/}
  669. {/* <Option value={3}>已驳回(专利、软著项目编写)</Option>*/}
  670. {/* <Option value={4}>已完成</Option>*/}
  671. {/* <Option value={5}>项目已完成 已退单</Option>*/}
  672. {/* <Option value={6}>项目未完成 已退单</Option>*/}
  673. {/* </Select>*/}
  674. {/*</span>*/}
  675. <span style={{ display: "inline-block" }}>
  676. <span style={{ marginRight: "10px", marginBottom: "10px" }}>
  677. 派单时间 :
  678. </span>
  679. <RangePicker
  680. style={{ marginRight: "10px", marginBottom: "10px" }}
  681. value={[
  682. this.state.releaseDate[0]
  683. ? moment(this.state.releaseDate[0])
  684. : null,
  685. this.state.releaseDate[1]
  686. ? moment(this.state.releaseDate[1])
  687. : null,
  688. ]}
  689. onChange={(data, dataString) => {
  690. this.setState({ releaseDate: dataString });
  691. }}
  692. />
  693. </span>
  694. <Button
  695. type="primary"
  696. onClick={() => {
  697. this.loadData();
  698. }}
  699. style={{ marginRight: "10px", marginBottom: "10px" }}
  700. >
  701. 搜索
  702. </Button>
  703. <Button
  704. onClick={this.resetAll}
  705. style={{ marginRight: "10px", marginBottom: "10px" }}
  706. >
  707. 重置
  708. </Button>
  709. </div>
  710. </TabPane>
  711. <TabPane tab="更改表格显示数据" key="2">
  712. <div style={{ marginLeft: 10 }}>
  713. <ChooseList
  714. columns={this.state.columns}
  715. changeFn={this.changeList}
  716. changeList={this.state.changeList}
  717. top={55}
  718. margin={11}
  719. />
  720. </div>
  721. </TabPane>
  722. <TabPane tab="导出EXCEL" key="3">
  723. <Button
  724. type="primary"
  725. style={{ margin: "10px" }}
  726. onClick={this.exportPending}
  727. >
  728. 导出
  729. </Button>
  730. </TabPane>
  731. </Tabs>
  732. </div>
  733. )}
  734. <div className="patent-table">
  735. <Spin spinning={this.state.loading}>
  736. <Table
  737. bordered
  738. size="middle"
  739. scroll={{
  740. x:
  741. this.state.status === 4 || this.state.status === 3
  742. ? 1800
  743. : 1000,
  744. y: 0,
  745. }}
  746. columns={
  747. this.state.changeList
  748. ? this.state.changeList
  749. : this.state.columns
  750. }
  751. dataSource={this.state.dataSource}
  752. pagination={this.state.pagination}
  753. style={{
  754. cursor: "pointer",
  755. }}
  756. onRowClick={(record) => {
  757. this.setState({
  758. projectdetailsId: record.id,
  759. projectdetailsOrderNo: record.orderNo,
  760. pname: record.pname,
  761. visible: true,
  762. });
  763. }}
  764. />
  765. </Spin>
  766. </div>
  767. {this.state.visible ? (
  768. <ProjectDetails
  769. visible={this.state.visible}
  770. id={this.state.projectdetailsId}
  771. orderNo={this.state.projectdetailsOrderNo}
  772. taskName={this.state.pname}
  773. visitOk={() => {
  774. this.setState({
  775. visible: false,
  776. });
  777. }}
  778. visitCancel={() => {
  779. this.setState({
  780. visible: false,
  781. });
  782. }}
  783. />
  784. ) : null}
  785. </div>
  786. );
  787. }
  788. }
  789. export default HighTech;