outsourcingPro.jsx 77 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249
  1. import React from "react";
  2. import {
  3. Icon,
  4. Button,
  5. Input,
  6. Select,
  7. Spin,
  8. Table,
  9. message,
  10. DatePicker,
  11. Upload,
  12. Form,
  13. Modal,
  14. Tabs,
  15. Col,
  16. Tooltip,
  17. Tag
  18. } from "antd";
  19. import $ from "jquery/src/ajax";
  20. import moment from "moment";
  21. import EnterpriseNameChange from "../../../common/enterpriseNameChange";
  22. import {
  23. getLiquidationStatus,
  24. getApprovedState,
  25. getProcessStatus,
  26. splitUrl,
  27. getjiedian,
  28. getboutique,
  29. getCuikuan,
  30. getProjectStatus,
  31. getRefundStatus,
  32. ShowModal
  33. } from "@/tools.js";
  34. import "./customer.less";
  35. import ShowModalDiv from "@/showModal.jsx";
  36. import ResolutionDetail from "@/resolutionDetail";
  37. const confirm = Modal.confirm;
  38. import CheckProject from '../../components/checkProject'
  39. import { taskStatus, projectStatus, cuiJieDian } from '@/dataDic.js'
  40. import OrderRiZi from "@/orderRiZi.jsx";
  41. import ImgList from "../../../common/imgList";
  42. import { ChooseList } from "./chooseList";
  43. import { getProjectName } from "../../../tools";
  44. import OrderItemStatus from "../../../common/orderItemStatus";
  45. import OrderCoor from "./changeComponent/orderCoor";
  46. import ContentUrl from "./contentUrl";
  47. import Property from '../../../common/orderDetail/property' // 知识产权情况
  48. //图片组件
  49. const PicturesWall = React.createClass({
  50. getInitialState() {
  51. return {
  52. previewVisible: false,
  53. previewImage: "",
  54. fileList: []
  55. };
  56. },
  57. handleCancel() {
  58. this.setState({
  59. previewVisible: false
  60. });
  61. },
  62. handlePreview(file) {
  63. this.setState({
  64. previewImage: file.url || file.thumbUrl,
  65. previewVisible: true
  66. });
  67. },
  68. handleChange(info) {
  69. let fileList = info.fileList;
  70. this.setState({
  71. fileList
  72. });
  73. this.props.fileList(fileList);
  74. },
  75. componentWillReceiveProps(nextProps) {
  76. this.state.fileList = nextProps.pictureUrl;
  77. this.state.pojectApplicationUrl = undefined;
  78. },
  79. render() {
  80. const { previewVisible, previewImage, fileList } = this.state;
  81. const uploadButton = (
  82. <div>
  83. <Icon type="plus" />
  84. <div className="ant-upload-text">点击上传</div>
  85. </div>
  86. );
  87. return (
  88. <div style={{ display: "inline-block" }}>
  89. <Upload
  90. action={
  91. globalConfig.context + "/api/admin/outsourceOrg/uploadOutsourceFile"
  92. }
  93. multiple
  94. data={{ sign: "order_outsource" }}
  95. listType="picture-card"
  96. fileList={fileList}
  97. onPreview={this.handlePreview}
  98. onChange={this.handleChange}
  99. >
  100. {uploadButton}
  101. </Upload>
  102. <Modal
  103. maskClosable={false}
  104. visible={previewVisible}
  105. footer={null}
  106. onCancel={this.handleCancel}
  107. >
  108. <img alt="example" style={{ width: "100%" }} src={previewImage} />
  109. </Modal>
  110. </div>
  111. );
  112. }
  113. });
  114. const outsourcingPro = Form.create()(
  115. React.createClass({
  116. loadData(pageNo) {
  117. this.setState({
  118. visitModul: false,
  119. loading: true,
  120. ispage: pageNo,
  121. modalVisible: false,
  122. });
  123. $.ajax({
  124. method: "get",
  125. dataType: "json",
  126. crossDomain: false,
  127. url:
  128. globalConfig.context + "/api/admin/outsourceOrg/orderOutsourceList",
  129. data: {
  130. pageNo: pageNo || 1,
  131. pageSize: this.state.pagination.pageSize,
  132. contractNo: this.state.contractNoSearch,
  133. tid: this.state.tidSearch,
  134. name: this.state.nameSearch, //名称
  135. orderNo: this.state.orderNoSearch, //订单编号
  136. starTime: this.state.releaseDate[0], //开始时间
  137. endTime: this.state.releaseDate[1], //结束时间
  138. refundStatus: this.state.refundStatusSearch, //外包审核状态
  139. type: 1,
  140. },
  141. success: function (data) {
  142. ShowModal(this);
  143. let theArr = [];
  144. if (data.error.length || data.data.list == "") {
  145. if (data.error && data.error.length) {
  146. message.warning(data.error[0].message);
  147. }
  148. } else {
  149. for (let i = 0; i < data.data.list.length; i++) {
  150. let thisdata = data.data.list[i];
  151. thisdata.key = i;
  152. theArr.push(thisdata);
  153. }
  154. this.state.pagination.total = data.data.totalCount;
  155. this.state.pagination.current = data.data.pageNo;
  156. }
  157. if (data.data && data.data.list && !data.data.list.length) {
  158. this.state.pagination.total = 0;
  159. }
  160. this.setState({
  161. dataSource: theArr,
  162. pageNo: pageNo,
  163. pagination: this.state.pagination,
  164. selectedRowKeys: [],
  165. });
  166. }.bind(this),
  167. }).always(
  168. function () {
  169. this.setState({
  170. loading: false,
  171. });
  172. }.bind(this)
  173. );
  174. },
  175. getInitialState() {
  176. return {
  177. containOfficialFees: 0,//官费缴费情况
  178. paySubject: [],
  179. rotateDeg: 0,
  180. page: 1,
  181. releaseDate: [],
  182. selectedRowKeys: [],
  183. pictureUrl: [],
  184. fileUrl: [],
  185. attachmentUrl: [],
  186. paginations: false,
  187. okVisible: false,
  188. noVisible: false,
  189. activeKey: "1",
  190. confirmLoading: false,
  191. aloading: false,
  192. pagination: {
  193. defaultCurrent: 1,
  194. defaultPageSize: 10,
  195. showQuickJumper: true,
  196. pageSize: 10,
  197. onChange: function (page) {
  198. this.loadData(page);
  199. }.bind(this),
  200. showTotal: function (total) {
  201. return "共" + total + "条数据";
  202. },
  203. },
  204. columns: [
  205. {
  206. title: "项目编号",
  207. dataIndex: "tid",
  208. key: "tid",
  209. render: (text, record) => {
  210. if (record.splitStatus == 2) {
  211. return <span>{record.splitSuper + "-" + record.splitId}</span>;
  212. } else {
  213. return text;
  214. }
  215. },
  216. },
  217. {
  218. title: "项目名称",
  219. dataIndex: "bname",
  220. key: "bname",
  221. },
  222. {
  223. title: "订单编号",
  224. dataIndex: "orderNo",
  225. key: "orderNo",
  226. },
  227. {
  228. title: "合同编号",
  229. dataIndex: "contractNo",
  230. key: "contractNo",
  231. },
  232. {
  233. title: "客户名称",
  234. dataIndex: "userName",
  235. key: "userName",
  236. render: (text) => {
  237. return (
  238. <Tooltip title={text}>
  239. <div
  240. // style={{
  241. // maxWidth: '150px',
  242. // overflow: 'hidden',
  243. // textOverflow: "ellipsis",
  244. // whiteSpace: 'nowrap',
  245. // }}
  246. >{text}</div>
  247. </Tooltip>
  248. )
  249. }
  250. },
  251. {
  252. title: "订单部门",
  253. dataIndex: "depName",
  254. key: "depName",
  255. },
  256. {
  257. title: "订单负责人",
  258. dataIndex: "adminName",
  259. key: "adminName",
  260. },
  261. {
  262. title: "项目类别",
  263. dataIndex: "cname",
  264. key: "cname",
  265. },
  266. {
  267. title: "项目负责人",
  268. dataIndex: "pname",
  269. key: "pname",
  270. },
  271. {
  272. title: "外包审核",
  273. dataIndex: "refundStatus",
  274. key: "refundStatus",
  275. render: (text) => {
  276. if (text == 0) {
  277. return <Tag color="#f50">待审核</Tag>;
  278. } else if (text == 1) {
  279. return <Tag color="#87d068">审核通过</Tag>;
  280. } else if (text == 2) {
  281. return <Tag color="#2db7f5">审核驳回</Tag>;
  282. }
  283. },
  284. },
  285. // {
  286. // title: "操作",
  287. // dataIndex: "caozuo",
  288. // key: "caozuo",
  289. // render: (text, record) => {
  290. // if (record.refundStatus == 0) {
  291. // return (
  292. // <div>
  293. // <Button type="primary" onClick={e => {
  294. // this.setState({
  295. // okVisible: true,
  296. // tid: record.tid,
  297. // orderNo: record.orderNo
  298. // })
  299. // }}>通过</Button>
  300. // <Button type="danger" style={{ marginLeft: 10 }} onClick={e => {
  301. // this.setState({
  302. // noVisible: true,
  303. // tid: record.tid,
  304. // orderNo: record.orderNo
  305. // })
  306. // }}>驳回</Button>
  307. // </div>
  308. // )
  309. // }
  310. // }
  311. // }
  312. ],
  313. data: [],
  314. dataSource: [],
  315. columnsX: [
  316. {
  317. title: "业务项目名称",
  318. dataIndex: "commodityName",
  319. key: "commodityName",
  320. render: (text, record) => {
  321. return <span>
  322. {text}<span style={{ color: "red" }}>{record.patentTypeName}</span>{"-" + record.id}
  323. <div>
  324. {record.cSort == 6 && record.projectType == 1 && <span>(含{record.htMember == 1 ? '高新会员&' : ''}{record.additionalDeduction == 1 ? '加计扣除&' : ''}{record.rdAwardsubsidy == 1 ? '研发奖补' : ''})</span>}
  325. {record.cSort == 6 && ([0, 3].indexOf(record.projectType) > -1) && <span>(仅提供单边会员服务)</span>}
  326. {record.cSort == 6 && record.projectType == 2 && <span>(仅填报表,仅咨询,不出备查资料)</span>}
  327. {record.cSort == 3 && <span>{record.technologyProjectType==0?'(简易项目)':record.technologyProjectType==1?'(市区级)':record.technologyProjectType==2?'(省级)':record.technologyProjectType==3?'(国家级)':''}</span>}
  328. {record.cSort == 8 ? (record.type != 2 && record.patentType == 1) ? <span>(变更)</span> : <span>{record.ordinaryRisk == 0 ? '(普通申请)' : record.ordinaryRisk == 1 ? '(风险代理)' : ''}</span> : ""}
  329. {record.type == 2 && <span>({record.days == 0 ? '普通' : record.days == 1 ? '加急' : ''}{record.scheme == 0 ? '&无方案' : record.scheme == 1 ? '&有方案' : ''})</span>}
  330. </div>
  331. </span>
  332. }
  333. },
  334. {
  335. title: "项目类别",
  336. dataIndex: "cname",
  337. key: "cname",
  338. },
  339. {
  340. title: "项目数量",
  341. dataIndex: "commodityQuantity",
  342. key: "commodityQuantity",
  343. render: (text, record) => {
  344. if (record.splitStatus == 1) {
  345. return (
  346. <span>
  347. {text}{" "}
  348. <Tag
  349. color="#108ee9"
  350. onClick={(e) => {
  351. e.stopPropagation();
  352. this.showRes(record);
  353. }}
  354. >
  355. 已拆
  356. </Tag>
  357. </span>
  358. );
  359. } else {
  360. return text;
  361. }
  362. },
  363. },
  364. {
  365. title: "金额(万元)",
  366. dataIndex: "commodityPrice",
  367. key: "commodityPrice",
  368. },
  369. {
  370. title: "负责人",
  371. dataIndex: "contacts",
  372. key: "contacts",
  373. },
  374. {
  375. title: "负责人电话",
  376. dataIndex: "contactsMobile",
  377. key: "contactsMobile",
  378. },
  379. {
  380. title: "项目状态",
  381. dataIndex: "projectStatus",
  382. key: "projectStatus",
  383. render: (text) => {
  384. return getProjectName(text);
  385. },
  386. },
  387. {
  388. title: "主要项目",
  389. dataIndex: "main",
  390. key: "main",
  391. render: (text) => {
  392. return text ? "是" : "否";
  393. },
  394. },
  395. {
  396. title: "总年限",
  397. dataIndex: "yearSum",
  398. key: "yearSum",
  399. render: (text, record) => {
  400. return (
  401. <div>{["", "一年", "二年", "三年", "四年", "五年"][text]}</div>
  402. );
  403. }
  404. },
  405. {
  406. title: "年限",
  407. dataIndex: "serviceLife",
  408. key: "serviceLife",
  409. render: (text, record) => {
  410. return (
  411. <div>{!!text && JSON.parse(text).toString()}</div>
  412. );
  413. }
  414. },
  415. {
  416. title: "本次派单",
  417. dataIndex: "serviceYear",
  418. key: "serviceYear",
  419. render: (text, record) => {
  420. return (
  421. <div>{!text ? "" : text}</div>
  422. );
  423. }
  424. },
  425. {
  426. title: "项目说明",
  427. dataIndex: "taskComment",
  428. key: "taskComment",
  429. render: (text, record) => {
  430. let textStr = text;
  431. let textArr = [];
  432. if (record.projectType == 1) {
  433. if (record.htMember === 1) {
  434. textArr.push("高新会员");
  435. }
  436. if (record.additionalDeduction === 1) {
  437. textArr.push("加计扣除");
  438. }
  439. if (record.rdAwardsubsidy === 1) {
  440. textArr.push("研发补助");
  441. }
  442. }
  443. if (textArr.length) {
  444. textStr = `${textArr.join("&")} ${!!text ? `(${text})` : ''}`
  445. }
  446. return (
  447. <Tooltip title={textStr}>
  448. <div
  449. style={{
  450. width: 100,
  451. overflow: "hidden",
  452. whiteSpace: "nowrap",
  453. textOverflow: "ellipsis",
  454. }}
  455. >{textStr}</div>
  456. </Tooltip>
  457. )
  458. },
  459. },
  460. ],
  461. resVisible: false,
  462. columnsrizhi: [
  463. {
  464. title: "流程",
  465. dataIndex: "processName",
  466. key: "processName",
  467. },
  468. {
  469. title: "操作人",
  470. dataIndex: "adminName",
  471. key: "adminName",
  472. },
  473. {
  474. title: "时间",
  475. dataIndex: "createDate",
  476. key: "createDate",
  477. },
  478. {
  479. title: "备注",
  480. dataIndex: "remarks",
  481. key: "remarks",
  482. },
  483. ],
  484. dataSourceX: [],
  485. ContactsListsNew: [
  486. {
  487. title: "项目名称",
  488. dataIndex: "commodityName",
  489. key: "commodityName",
  490. render: (text, record) => {
  491. return <span>{text + "-" + record.tid}</span>;
  492. },
  493. },
  494. {
  495. title: "项目分类",
  496. dataIndex: "projectType",
  497. key: "projectType",
  498. render: (text) => {
  499. let arr = this.state.dataSourceX || [];
  500. let str = "";
  501. for (let i = 0; i < arr.length; i++) {
  502. if (this.state.dataSourceX[i].sort == text) {
  503. str = this.state.dataSourceX[i].cname;
  504. return <span>{str}</span>;
  505. }
  506. }
  507. },
  508. },
  509. {
  510. title: "催款科目",
  511. dataIndex: "dunTypeName",
  512. key: "dunTypeName",
  513. render: (text, record) => {
  514. if (record.customizeName) {
  515. return text + record.customizeName;
  516. }
  517. return <span>{text}</span>;
  518. },
  519. },
  520. {
  521. title: "时间(天)",
  522. dataIndex: "waitDay",
  523. key: "waitDay",
  524. render: (text, record) => {
  525. if (record.dunTypeName) {
  526. if (record.customizeTimes) {
  527. return record.customizeTimes;
  528. }
  529. return <span>{text}</span>;
  530. }
  531. },
  532. },
  533. {
  534. title: "金额(万元)",
  535. dataIndex: "money",
  536. key: "money",
  537. render: (text, record) => {
  538. if (record.dunTypeName) {
  539. if (record.appropriationRatio) {
  540. let percent = Number(record.appropriationRatio * 100).toFixed(2);
  541. percent += "%";
  542. return <span>{percent}(拨款比例)</span>;
  543. } else {
  544. return <span>{text}</span>;
  545. }
  546. }
  547. },
  548. },
  549. {
  550. title: "服务年限",
  551. dataIndex: "startDate",
  552. key: "startDate",
  553. render: (text, record) => {
  554. if (record.dunTypeName) {
  555. return <span>{text}</span>;
  556. }
  557. },
  558. },
  559. {
  560. title: "催款状态",
  561. dataIndex: "status",
  562. key: "status",
  563. render: (text) => {
  564. return <span>{text == 1 ? "已启动" : "未启动"}</span>;
  565. },
  566. },
  567. ],
  568. ContactsLists: [
  569. {
  570. title: "催款科目",
  571. dataIndex: "dunSubject",
  572. key: "dunSubject",
  573. render: (text) => {
  574. return getjiedian(text);
  575. },
  576. },
  577. {
  578. title: "金额(万元)",
  579. dataIndex: "money",
  580. key: "money",
  581. },
  582. {
  583. title: "催款状态",
  584. dataIndex: "dunStatus",
  585. key: "dunStatus",
  586. render: (text) => {
  587. return getCuikuan(text);
  588. },
  589. },
  590. ],
  591. };
  592. },
  593. cancel() {
  594. this.setState({
  595. visible: false,
  596. remarks: undefined,
  597. activeKey: "1",
  598. oldInfor: {},
  599. });
  600. },
  601. nextCancel() {
  602. this.setState({
  603. addnextVisible: false,
  604. });
  605. },
  606. //订单详情
  607. xiangqing(orderNos) {
  608. $.ajax({
  609. method: "get",
  610. dataType: "json",
  611. crossDomain: false,
  612. url: globalConfig.context + "/api/admin/newOrder/getOrderNewDetail",
  613. data: {
  614. orderNo: orderNos,
  615. },
  616. success: function (data) {
  617. if (data.error.length || data.data.list == "") {
  618. if (data.error && data.error.length) {
  619. message.warning(data.error[0].message);
  620. }
  621. } else {
  622. let thisdata = data.data;
  623. this.setState({
  624. orderUid: thisdata.uid,
  625. orderNo: thisdata.orderNo, //订单编号
  626. contractNo: thisdata.contractNo, //合同编号
  627. userName: thisdata.userName, //客户名称
  628. signDate: thisdata.signDate, //签单时间
  629. examineName: thisdata.examineName,
  630. processStatus: thisdata.processStatus, //流程状态
  631. liquidationStatus: thisdata.liquidationStatus, //结算状态
  632. projectStatus: thisdata.projectStatus.toString(), //项目状态
  633. contacts: thisdata.contacts, //企业联系人
  634. contactMobile: thisdata.contactMobile, //联系人电话
  635. legalPerson: thisdata.legalPerson, //法人
  636. legalPersonTel: thisdata.legalPersonTel, //法人电话
  637. firstAmount: thisdata.firstAmount, //签单金额
  638. totalAmount: thisdata.totalAmount, //首付金额
  639. approval: thisdata.approval, //特批状态
  640. settlementAmount: thisdata.settlementAmount, //已收款项
  641. orderRemarks: thisdata.orderRemarks, //订单留言
  642. orgCodeUrl: thisdata.contractPictureUrl
  643. ? splitUrl(
  644. thisdata.contractPictureUrl,
  645. ",",
  646. globalConfig.avatarHost + "/upload"
  647. )
  648. : [], //图片地址
  649. replenishUrl: thisdata.agreementUrl
  650. ? splitUrl(
  651. thisdata.agreementUrl,
  652. ",",
  653. globalConfig.avatarHost + "/upload"
  654. )
  655. : [], //图片地址
  656. contentUrl: thisdata.serviceContent
  657. ? splitUrl(
  658. thisdata.serviceContent,
  659. ",",
  660. globalConfig.avatarHost + "/upload"
  661. )
  662. : [], //图片地址
  663. salesmanName: thisdata.salesmanName, //营销员名称
  664. salesmanMobile: thisdata.salesmanMobile, //营销员电话
  665. oldSalesmanName: thisdata.oldSalesmanName, //营销员名称
  666. oldSalesmanMobile: thisdata.oldSalesmanMobile, //营销员电话
  667. financeName: thisdata.financeName, //财务名称
  668. financeMobile: thisdata.financeMobile, //财务电话
  669. nowFinance: thisdata.nowFinance, //财务名称
  670. nowFinanceMobile: thisdata.nowFinanceMobile, //财务电话
  671. depName: thisdata.depName,
  672. outsource: thisdata.outsource == 0 ? "否" : "是",
  673. deleteSign: thisdata.deleteSign,
  674. patentStatus: thisdata.patentStatus, //知识产权情况
  675. });
  676. }
  677. }.bind(this),
  678. }).always(
  679. function () {
  680. this.setState({
  681. loading: false,
  682. });
  683. }.bind(this)
  684. );
  685. },
  686. //项目详情
  687. xiangqing1(id) {
  688. return $.ajax({
  689. method: 'get',
  690. dataType: 'json',
  691. crossDomain: false,
  692. url: globalConfig.context + '/api/admin/orderProject/orderTaskDetail',
  693. data: {
  694. id: id,
  695. },
  696. success: function (data) {
  697. let thisdata = data.data
  698. if (data.error.length || data.data.list == '') {
  699. if (data.error && data.error.length) {
  700. message.warning(data.error[0].message)
  701. }
  702. } else {
  703. localStorage.setItem('cSort', thisdata.sort)
  704. this.setState({
  705. orderTaskOfficialCost: thisdata.officialCost, //官费 0无 1有
  706. sort: thisdata.sort,
  707. cSort: thisdata.sort,
  708. orderTaskCostReduction: thisdata.costReduction,//费减
  709. checkStatus: thisdata.checkStatus,//核对状态
  710. commodityQuantity: thisdata.commodityQuantity,//项目数量
  711. patentTypeName: thisdata.patentTypeName,//官费类型名称
  712. patentTypeId: thisdata.patentType,//官费专利类型
  713. })
  714. }
  715. }.bind(this),
  716. }).always(
  717. function () {
  718. this.setState({
  719. loading: false,
  720. })
  721. }.bind(this)
  722. )
  723. },
  724. //项目列表
  725. xiangmu(orderNos) {
  726. let _this = this;
  727. $.ajax({
  728. method: "get",
  729. dataType: "json",
  730. crossDomain: false,
  731. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  732. data: {
  733. orderNo: orderNos,
  734. },
  735. success: function (data) {
  736. let theArr = [];
  737. if (data.error.length || data.data.list == "") {
  738. if (data.error && data.error.length) {
  739. message.warning(data.error[0].message);
  740. }
  741. } else {
  742. for (let i = 0; i < data.data.length; i++) {
  743. let thisdata = data.data[i];
  744. thisdata.key = i;
  745. theArr.push(thisdata);
  746. }
  747. }
  748. this.setState({
  749. dataSourceX: theArr,
  750. });
  751. }.bind(this),
  752. }).always(
  753. function () {
  754. this.setState({
  755. loading: false,
  756. });
  757. }.bind(this)
  758. );
  759. },
  760. // 拆分详细
  761. showRes(record) {
  762. this.setState({
  763. resVisible: true,
  764. resRecord: record,
  765. });
  766. },
  767. resCancel() {
  768. this.setState({
  769. resVisible: false,
  770. });
  771. },
  772. rizhi() {
  773. this.setState({
  774. loading: true,
  775. });
  776. $.ajax({
  777. method: "get",
  778. dataType: "json",
  779. crossDomain: false,
  780. url: "/api/admin/newOrder/selectOrderLog",
  781. data: {
  782. orderNo: this.state.orderNo,
  783. },
  784. success: function (data) {
  785. let theArr = [];
  786. let thisData = data.data;
  787. if (!thisData.length) {
  788. if (data.error && data.error.length) {
  789. message.warning(data.error[0].message);
  790. }
  791. thisData = {};
  792. } else {
  793. for (let i = 0; i < data.data.length; i++) {
  794. let thisdata = data.data[i];
  795. theArr.push({
  796. processName: thisdata.processName,
  797. adminName: thisdata.adminName,
  798. createDate: thisdata.createDate,
  799. remarks: thisdata.remarks,
  800. });
  801. }
  802. }
  803. this.setState({
  804. dataSourcerizhi: theArr,
  805. });
  806. }.bind(this),
  807. }).always(
  808. function () {
  809. this.setState({
  810. loading: false,
  811. });
  812. }.bind(this)
  813. );
  814. },
  815. getOrderLog() {
  816. this.setState({
  817. rizhivisible: true,
  818. });
  819. this.rizhi();
  820. },
  821. closeOrderLog() {
  822. this.setState({
  823. rizhivisible: false,
  824. });
  825. },
  826. //节点列表
  827. jiedian(orderNos) {
  828. $.ajax({
  829. method: "get",
  830. dataType: "json",
  831. crossDomain: false,
  832. url: globalConfig.context + "/api/admin/newOrder/selectOrderDun",
  833. data: {
  834. orderNo: orderNos,
  835. },
  836. success: function (data) {
  837. let theArr = [];
  838. let thisData = [];
  839. if (data.error.length || data.data.list == "") {
  840. if (data.error && data.error.length) {
  841. message.warning(data.error[0].message);
  842. }
  843. } else {
  844. for (let i = 0; i < data.data.length; i++) {
  845. thisData = data.data[i];
  846. theArr.push({
  847. key: i,
  848. dunSubject: thisData.dunSubject
  849. ? thisData.dunSubject.toString()
  850. : "", //催款科目
  851. id: thisData.id, //节点Id
  852. money: thisData.money, //催款金额
  853. dunStatus: thisData.dunStatus, //催款状态
  854. });
  855. }
  856. this.setState({
  857. contactList: theArr,
  858. });
  859. }
  860. }.bind(this),
  861. }).always(
  862. function () {
  863. this.setState({
  864. loading: false,
  865. });
  866. }.bind(this)
  867. );
  868. },
  869. jiedianNew(orderNos) {
  870. $.ajax({
  871. method: "get",
  872. dataType: "json",
  873. crossDomain: false,
  874. url:
  875. globalConfig.context + "/api/admin/newOrderDun/selectListNewOrderDun",
  876. data: {
  877. orderNo: orderNos,
  878. },
  879. success: function (data) {
  880. if (data.error && data.error.length) {
  881. message.warning(data.error[0].message);
  882. } else {
  883. let theArr = [];
  884. let thisData = [];
  885. let arr = data.data || [];
  886. let totalCui = 0;
  887. for (let i = 0; i < arr.length; i++) {
  888. thisData = arr[i];
  889. totalCui += +thisData.money;
  890. theArr.push({
  891. key: i,
  892. dunSubject: thisData.dunSubject
  893. ? thisData.dunSubject.toString()
  894. : "", //催款科目
  895. id: thisData.id, //节点Id
  896. money: thisData.money, //催款金额
  897. // orderNo: record ? record.orderNo : this.props.datauser.orderNo,
  898. commodityName: thisData.commodityName,
  899. projectType: thisData.projectType,
  900. dunTypeName: thisData.dunTypeName,
  901. status: thisData.status,
  902. waitDay: thisData.waitDay,
  903. effectiveCount: thisData.effectiveCount,
  904. startDate: thisData.startDate,
  905. dunType: thisData.dunType,
  906. appropriationRatio: thisData.appropriationRatio,
  907. customizeName: thisData.customizeName,
  908. customizeTimes: thisData.customizeTimes,
  909. tid: thisData.tid,
  910. });
  911. }
  912. if (!totalCui) {
  913. totalCui = 0;
  914. }
  915. totalCui = (Math.round(totalCui * 1000000) / 1000000).toFixed(6);
  916. this.setState({
  917. contactListNew: theArr,
  918. totalCui,
  919. });
  920. }
  921. }.bind(this),
  922. }).always(
  923. function () {
  924. this.setState({
  925. loading: false,
  926. });
  927. }.bind(this)
  928. );
  929. },
  930. thirdTable(id) {
  931. let ajaxObj = $.ajax({
  932. method: 'get',
  933. dataType: 'json',
  934. crossDomain: false,
  935. url: globalConfig.context + '/api/admin/company/selectCompany',
  936. data: {
  937. tid: id,
  938. },
  939. success: function (data) {
  940. if (data.error && data.error.length) {
  941. message.warning(data.error[0].message)
  942. } else {
  943. let companyNameArr = []
  944. let theArr = []
  945. let thisData = []
  946. let arr = data.data || []
  947. let allTotalAmount = 0
  948. for (let i = 0; i < arr.length; i++) {
  949. thisData = arr[i]
  950. allTotalAmount =
  951. (allTotalAmount * 10000 + thisData.totalAmount * 10000) / 10000
  952. companyNameArr.push(thisData.companyName);
  953. thisData.key = i;
  954. theArr.push(thisData);
  955. }
  956. if (!allTotalAmount) {
  957. allTotalAmount = 0
  958. }
  959. // console.log(theArr)
  960. // console.log(companyNameArr)
  961. this.setState({
  962. tid: id,
  963. PayNodeCompany: companyNameArr,
  964. thirdInfoList: theArr,
  965. allTotalAmount: allTotalAmount,
  966. })
  967. }
  968. }.bind(this),
  969. }).always(
  970. function () {
  971. this.setState({
  972. loading: false,
  973. })
  974. }.bind(this)
  975. );
  976. this.setState({
  977. selectCompanyAjaxObj: ajaxObj
  978. })
  979. },
  980. // 获取csort下的数据
  981. getCsortData(cSort) {
  982. return cuiJieDian.map((item) => {
  983. if (item.value == cSort) {
  984. this.setState({
  985. paySubject: item.children,
  986. })
  987. }
  988. })
  989. },
  990. payNodeTable(id) {
  991. let ajaxObj = $.ajax({
  992. method: 'get',
  993. dataType: 'json',
  994. crossDomain: false,
  995. url: globalConfig.context + '/api/admin/company/selectPaymentNode',
  996. data: {
  997. tid: id,
  998. },
  999. success: function (data) {
  1000. if (data.error && data.error.length) {
  1001. message.warning(data.error[0].message)
  1002. } else {
  1003. let payNodeArr = []
  1004. let thisData = []
  1005. let arr = data.data || []
  1006. // console.log('this.state.paySubject', this.state.paySubject)
  1007. //对#5283自定义的补充展示
  1008. this.state.paySubject.push({ key: '自定义', value: '0' })
  1009. for (let i = 0; i < arr.length; i++) {
  1010. thisData = arr[i]
  1011. //遍历paySubject,获取当前dunType对应的key
  1012. this.state.paySubject.map((item) => {
  1013. if (item.value == thisData.dunType) {
  1014. thisData.dunType = item.key
  1015. }
  1016. })
  1017. payNodeArr.push({
  1018. key: i,
  1019. id: thisData.id, //付款节点Id
  1020. tid: thisData.tid,
  1021. companyName: thisData.companyName, //供应商名称
  1022. projectType: thisData.projectType, //项目分类
  1023. dunType: thisData.dunType, //催款分类
  1024. unitPrice: thisData.unitPrice, //单价
  1025. quantity: thisData.quantity, //数量
  1026. totalAmount: thisData.totalAmount, //总价
  1027. partyAmount: thisData.partyAmount, //付款
  1028. partyTimes: thisData.partyTimes, //付款时间
  1029. cid: thisData.cid, //机构id
  1030. })
  1031. }
  1032. // console.log('paySubject:', this.state.paySubject)
  1033. this.setState({
  1034. tid: id,
  1035. payNodeList: payNodeArr,
  1036. })
  1037. }
  1038. }.bind(this),
  1039. }).always(
  1040. function () {
  1041. this.setState({
  1042. loading: false,
  1043. getOrderTaskLoading: false,
  1044. })
  1045. }.bind(this)
  1046. )
  1047. this.setState({
  1048. payNodeListAjaxObj: ajaxObj
  1049. })
  1050. return ajaxObj;
  1051. },
  1052. waiDetail() {
  1053. let url = window.location.href.substring(7);
  1054. let ajaxObj = null;
  1055. this.setState({
  1056. loading: true,
  1057. })
  1058. ajaxObj = $.ajax({
  1059. method: 'get',
  1060. dataType: 'json',
  1061. crossDomain: false,
  1062. url:
  1063. globalConfig.context + '/api/admin/outsourceOrg/orderOutsourceDtails',
  1064. data: {
  1065. tid: this.state.tid,
  1066. orderNo: this.state.orderNo,
  1067. },
  1068. }).done(
  1069. function (data) {
  1070. this.setState({
  1071. loading: false,
  1072. })
  1073. if (!data.error.length && data.data) {
  1074. if (data.data.unitNumber) {
  1075. this.setState({
  1076. oldInfor: {
  1077. companyName: data.data.companyName,
  1078. unitPrice: data.data.unitPrice,
  1079. unitNumber: data.data.unitNumber,
  1080. amount: data.data.amount,
  1081. outsourceRemarks: data.data.outsourceRemarks,
  1082. refundStatus: data.data.refundStatus,
  1083. pictureUrl: data.data.pictureUrl
  1084. ? splitUrl(
  1085. data.data.pictureUrl,
  1086. ',',
  1087. globalConfig.avatarHost + '/upload',
  1088. url
  1089. )
  1090. : [], //图片地址
  1091. }
  1092. })
  1093. } else {
  1094. this.setState({
  1095. oldInfor: {}
  1096. })
  1097. }
  1098. this.setState({
  1099. id: data.data.id,
  1100. containOfficialFees: data.data.actualOfficial,//官费类型 0实际已缴费 1实际未缴费
  1101. orderNo: data.data.orderNo,
  1102. startType: data.data.startType, //类型
  1103. patentType: data.data.patentType, //专利类型
  1104. patentNameType: data.data.patentNameType, //专利名称类型
  1105. patentName: data.data.patentName, //专利名称
  1106. outsourceRemarks: data.data.outsourceRemarks,
  1107. remarks: data.data.remarks,
  1108. companyName: data.data.companyName,
  1109. amount: data.data.amount,
  1110. mid: data.data.id,
  1111. unitPrice: data.data.unitPrice,
  1112. refundStatus: data.data.refundStatus,
  1113. unitNumber: data.data.unitNumber,
  1114. pictureUrl: data.data.pictureUrl
  1115. ? splitUrl(
  1116. data.data.pictureUrl,
  1117. ',',
  1118. globalConfig.avatarHost + '/upload',
  1119. url
  1120. )
  1121. : [], //图片地址
  1122. createTimes: data.data.createTimes,
  1123. auditTimes: data.data.auditTimes,
  1124. })
  1125. } else if (data.error && data.error.length) {
  1126. message.warning(data.error[0].message)
  1127. } else if (!data.data) {
  1128. this.setState({
  1129. refundStatus: undefined,
  1130. })
  1131. }
  1132. }.bind(this)
  1133. );
  1134. this.setState({
  1135. orderDtailsAjaxObj: ajaxObj
  1136. })
  1137. },
  1138. async tableRowClick(record) {
  1139. this.setState(
  1140. {
  1141. visible: true,
  1142. loading: true,
  1143. refundStatus: record.refundStatus,
  1144. tid: record.tid,
  1145. taskName: record.bname,
  1146. splitId: record.splitId, //拆分序号
  1147. splitStatus: record.splitStatus, //0未拆分 1已拆分
  1148. splitSuper: record.splitSuper, //拆分前项目编号
  1149. orderNo: record.orderNo,
  1150. }, () => {
  1151. this.waiDetail();
  1152. }
  1153. );
  1154. this.xiangqing(record.orderNo);
  1155. await this.xiangqing1(record.tid);
  1156. // 获取Csort
  1157. await this.getCsortData(this.state.sort);
  1158. //获取支付节点信息表格
  1159. await this.payNodeTable(this.state.tid);
  1160. this.xiangmu(record.orderNo);
  1161. this.jiedian(record.orderNo);
  1162. this.jiedianNew(record.orderNo);
  1163. // 获取第三方信息表格
  1164. this.thirdTable(record.tid);
  1165. },
  1166. //页面加载函数
  1167. componentWillMount() {
  1168. this.loadData();
  1169. },
  1170. //审核
  1171. examOk() {
  1172. if (this.state.remarks == "" || this.state.remarks == undefined) {
  1173. message.warning("请填写备注信息!");
  1174. return;
  1175. }
  1176. this.setState({
  1177. loading: true,
  1178. });
  1179. $.ajax({
  1180. method: "post",
  1181. dataType: "json",
  1182. crossDomain: false,
  1183. url: globalConfig.context + "/api/admin/outsourceOrg/auditOutsourceNew",
  1184. data: {
  1185. id: this.state.id,
  1186. orderNo: this.state.orderNo,
  1187. tid: this.state.tid,
  1188. remarks: this.state.remarks,
  1189. refundStatus: 1,
  1190. type: 1,
  1191. },
  1192. success: function (data) {
  1193. if (data.error.length || data.data.list == "") {
  1194. if (data.error && data.error.length) {
  1195. message.warning(data.error[0].message);
  1196. }
  1197. } else {
  1198. message.success("该订单已通过");
  1199. this.setState({
  1200. visible: false,
  1201. });
  1202. this.cancel();
  1203. this.loadData();
  1204. }
  1205. }.bind(this),
  1206. }).always(
  1207. function () {
  1208. this.setState({
  1209. loading: false,
  1210. });
  1211. }.bind(this)
  1212. );
  1213. },
  1214. examNo() {
  1215. if (this.state.remarks == "" || this.state.remarks == undefined) {
  1216. message.warning("请填写备注信息!");
  1217. return;
  1218. }
  1219. this.setState({
  1220. loading: true,
  1221. });
  1222. $.ajax({
  1223. method: "post",
  1224. dataType: "json",
  1225. crossDomain: false,
  1226. url: globalConfig.context + "/api/admin/outsourceOrg/auditOutsourceNew",
  1227. data: {
  1228. id: this.state.id,
  1229. orderNo: this.state.orderNo,
  1230. tid: this.state.tid,
  1231. remarks: this.state.remarks,
  1232. refundStatus: 2,
  1233. type: 1,
  1234. },
  1235. success: function (data) {
  1236. if (data.error.length || data.data.list == "") {
  1237. if (data.error && data.error.length) {
  1238. message.warning(data.error[0].message);
  1239. }
  1240. } else {
  1241. message.success("该订单已驳回");
  1242. this.setState({
  1243. visible: false,
  1244. });
  1245. this.cancel();
  1246. this.loadData();
  1247. }
  1248. }.bind(this),
  1249. }).always(
  1250. function () {
  1251. this.setState({
  1252. loading: false,
  1253. });
  1254. }.bind(this)
  1255. );
  1256. },
  1257. //通过发给外包
  1258. outsourcing() {
  1259. if (this.state.flag) return;
  1260. this.setState({
  1261. flag: true,
  1262. });
  1263. $.ajax({
  1264. method: "post",
  1265. dataType: "json",
  1266. crossDomain: false,
  1267. url: globalConfig.context + "/api/admin/newOrder/auditOrderNew",
  1268. data: {
  1269. orderNo: this.state.orderNo,
  1270. orderStatus: 2,
  1271. outsource: 1,
  1272. },
  1273. success: function (data) {
  1274. if (data.error.length || data.data.list == "") {
  1275. if (data.error && data.error.length) {
  1276. message.warning(data.error[0].message);
  1277. }
  1278. } else {
  1279. message.success("该订单已通过审核~");
  1280. this.setState({
  1281. visible: false,
  1282. flag: false,
  1283. });
  1284. this.reset();
  1285. }
  1286. }.bind(this),
  1287. }).always(
  1288. function () {
  1289. this.setState({
  1290. loading: false,
  1291. });
  1292. }.bind(this)
  1293. );
  1294. },
  1295. getUrl(url) {
  1296. let theorgCodeUrl = [];
  1297. if (url.length) {
  1298. let picArr = [];
  1299. url.map(function (item) {
  1300. if (
  1301. item.response &&
  1302. item.response.data &&
  1303. item.response.data.length
  1304. ) {
  1305. picArr.push(item.response.data);
  1306. }
  1307. });
  1308. theorgCodeUrl = picArr.join(",");
  1309. }
  1310. return theorgCodeUrl;
  1311. },
  1312. //搜索
  1313. search() {
  1314. this.loadData();
  1315. },
  1316. //重置
  1317. reset() {
  1318. this.state.nameSearch = "";
  1319. this.state.contractNoSearch = "";
  1320. this.state.releaseDate[0] = undefined;
  1321. this.state.releaseDate[1] = undefined;
  1322. this.state.refundStatusSearch = undefined;
  1323. this.setState({
  1324. tidSearch: ""
  1325. })
  1326. this.loadData(1);
  1327. },
  1328. resets() {
  1329. this.state.orderNo = "";
  1330. this.state.customerName = "";
  1331. this.state.releaseDate[0] = undefined;
  1332. this.state.releaseDate[1] = undefined;
  1333. },
  1334. getOrgCodeUrl(e) {
  1335. this.setState({ pictureUrl: e });
  1336. },
  1337. callback(e) {
  1338. if (e == 1) {
  1339. this.waiDetail()
  1340. }
  1341. this.setState({
  1342. activeKey: e,
  1343. });
  1344. },
  1345. downImg() {
  1346. let num = 0;
  1347. for (let i = 0; i < this.state.orgCodeUrl.length; i++) {
  1348. if (this.state.orgCodeUrl[i].url == this.state.previewImage) {
  1349. num = i;
  1350. }
  1351. }
  1352. if (num == this.state.orgCodeUrl.length - 1) {
  1353. return message.warning("已经是最后一张了哦");
  1354. }
  1355. this.state.previewImage = this.state.orgCodeUrl[num + 1].url;
  1356. this.setState({
  1357. previewImage: this.state.previewImage,
  1358. rotateDeg: 0,
  1359. });
  1360. },
  1361. upImg() {
  1362. let num = 0;
  1363. for (let i = 0; i < this.state.orgCodeUrl.length; i++) {
  1364. if (this.state.orgCodeUrl[i].url == this.state.previewImage) {
  1365. num = i;
  1366. }
  1367. }
  1368. if (num == 0) {
  1369. return message.warning("已经是第一张了哦");
  1370. }
  1371. this.state.previewImage = this.state.orgCodeUrl[num - 1].url;
  1372. this.setState({
  1373. previewImage: this.state.previewImage,
  1374. rotateDeg: 0,
  1375. });
  1376. },
  1377. rotate() {
  1378. let rotateDeg = this.state.rotateDeg + 90;
  1379. this.setState({
  1380. rotateDeg,
  1381. });
  1382. },
  1383. downImgs() {
  1384. let num = 0;
  1385. for (let i = 0; i < this.state.replenishUrl.length; i++) {
  1386. if (this.state.replenishUrl[i].url == this.state.previewImage) {
  1387. num = i;
  1388. }
  1389. }
  1390. if (num == this.state.replenishUrl.length - 1) {
  1391. return message.warning("已经是最后一张了哦");
  1392. }
  1393. this.state.previewImage = this.state.replenishUrl[num + 1].url;
  1394. this.setState({
  1395. previewImage: this.state.previewImage,
  1396. rotateDeg: 0,
  1397. });
  1398. },
  1399. upImgs() {
  1400. let num = 0;
  1401. for (let i = 0; i < this.state.replenishUrl.length; i++) {
  1402. if (this.state.replenishUrl[i].url == this.state.previewImage) {
  1403. num = i;
  1404. }
  1405. }
  1406. if (num == 0) {
  1407. return message.warning("已经是第一张了哦");
  1408. }
  1409. this.state.previewImage = this.state.replenishUrl[num - 1].url;
  1410. this.setState({
  1411. previewImage: this.state.previewImage,
  1412. rotateDeg: 0,
  1413. });
  1414. },
  1415. rotates() {
  1416. let rotateDeg = this.state.rotateDeg + 90;
  1417. this.setState({
  1418. rotateDeg,
  1419. });
  1420. },
  1421. changeList(arr) {
  1422. const newArr = [];
  1423. this.state.columns.forEach(item => {
  1424. arr.forEach(val => {
  1425. if (val === item.title) {
  1426. newArr.push(item);
  1427. }
  1428. });
  1429. });
  1430. this.setState({
  1431. changeList: newArr
  1432. });
  1433. },
  1434. render() {
  1435. const formItemLayout = {
  1436. labelCol: { span: 8 },
  1437. wrapperCol: { span: 14 },
  1438. };
  1439. const FormItem = Form.Item;
  1440. const { TextArea } = Input;
  1441. const { TabPane } = Tabs;
  1442. const { RangePicker } = DatePicker;
  1443. const cuiDataList = this.state.contactList || [];
  1444. return (
  1445. <div className="user-content">
  1446. {this.state.resVisible ? (
  1447. <ResolutionDetail
  1448. cancel={this.resCancel}
  1449. detail={this.state.resRecord}
  1450. visible={this.state.resVisible}
  1451. id={this.state.resRecord.orderNo}
  1452. />
  1453. ) : (
  1454. ""
  1455. )}
  1456. <ShowModalDiv ShowModal={this.state.showModal} onClose={() => { this.setState({ showModal: false }) }} />
  1457. <div className="content-title" style={{ marginBottom: 10 }}>
  1458. <span style={{ fontWeight: 900, fontSize: 16 }}>外包项目列表</span>
  1459. </div>
  1460. <div className="user-search">
  1461. <Tabs
  1462. defaultActiveKey="1"
  1463. onChange={(e) => {
  1464. this.callback(e);
  1465. }}
  1466. className="test"
  1467. >
  1468. <TabPane tab="搜索" key="1">
  1469. <Input
  1470. placeholder="客户名称"
  1471. style={{
  1472. width: "150px",
  1473. marginBottom: "10px",
  1474. marginLeft: 10,
  1475. marginRight: 10,
  1476. }}
  1477. value={this.state.nameSearch}
  1478. onChange={(e) => {
  1479. this.setState({ nameSearch: e.target.value });
  1480. }}
  1481. />
  1482. <Input
  1483. placeholder="合同编号"
  1484. style={{ width: "150px" }}
  1485. value={this.state.contractNoSearch}
  1486. onChange={(e) => {
  1487. this.setState({ contractNoSearch: e.target.value });
  1488. }}
  1489. />
  1490. <Input
  1491. placeholder="项目编号"
  1492. style={{ width: "150px" }}
  1493. value={this.state.tidSearch}
  1494. onChange={(e) => {
  1495. this.setState({ tidSearch: e.target.value });
  1496. }}
  1497. />
  1498. <span style={{ marginRight: "10px" }}>下单时间 :</span>
  1499. <RangePicker
  1500. value={[
  1501. this.state.releaseDate[0]
  1502. ? moment(this.state.releaseDate[0])
  1503. : null,
  1504. this.state.releaseDate[1]
  1505. ? moment(this.state.releaseDate[1])
  1506. : null,
  1507. ]}
  1508. onChange={(data, dataString) => {
  1509. this.setState({ releaseDate: dataString });
  1510. }}
  1511. />
  1512. <Select
  1513. value={this.state.refundStatusSearch}
  1514. style={{ width: 150, marginLeft: "10px" }}
  1515. onChange={(e) => {
  1516. this.setState({
  1517. refundStatusSearch: e,
  1518. });
  1519. }}
  1520. placeholder="审核状态"
  1521. >
  1522. <Option value={0}>待审核</Option>
  1523. <Option value={1}>审核通过</Option>
  1524. <Option value={2}>审核驳回</Option>
  1525. </Select>
  1526. <Button
  1527. type="primary"
  1528. onClick={this.search}
  1529. style={{ marginLeft: "10px", marginRight: 10 }}
  1530. >
  1531. 搜索
  1532. </Button>
  1533. <Button onClick={this.reset}>重置</Button>
  1534. </TabPane>
  1535. <TabPane tab="更改表格显示数据" key="2">
  1536. <div style={{ marginLeft: 10 }}>
  1537. <ChooseList
  1538. columns={this.state.columns}
  1539. changeFn={this.changeList}
  1540. changeList={this.state.changeList}
  1541. top={55}
  1542. margin={11}
  1543. />
  1544. </div>
  1545. </TabPane>
  1546. </Tabs>
  1547. <div className="patent-table">
  1548. <Spin spinning={this.state.loading}>
  1549. <Table
  1550. columns={
  1551. this.state.changeList
  1552. ? this.state.changeList
  1553. : this.state.columns
  1554. }
  1555. dataSource={this.state.dataSource}
  1556. pagination={this.state.pagination}
  1557. onRowClick={this.tableRowClick}
  1558. bordered
  1559. size="small"
  1560. />
  1561. </Spin>
  1562. </div>
  1563. {this.state.visible ? <Modal
  1564. maskClosable={false}
  1565. visible={this.state.visible}
  1566. onCancel={() => {
  1567. this.state.orderDtailsAjaxObj && this.state.orderDtailsAjaxObj.abort();
  1568. this.state.payNodeListAjaxObj && this.state.payNodeListAjaxObj.abort();
  1569. this.state.selectCompanyAjaxObj && this.state.selectCompanyAjaxObj.abort();
  1570. this.setState({
  1571. visible: false,
  1572. remarks: undefined,
  1573. activeKey: "1",
  1574. oldInfor: {},
  1575. thirdInfoList: [],
  1576. payNodeList: [],
  1577. orderNo: '',
  1578. tid: '',
  1579. });
  1580. }}
  1581. width="1200px"
  1582. title={""}
  1583. footer=""
  1584. className="admin-desc-content"
  1585. confirmLoading={this.state.confirmLoading}
  1586. >
  1587. <Tabs
  1588. activeKey={this.state.activeKey}
  1589. onChange={this.callback}
  1590. tabBarExtraContent={
  1591. <div style={{ fontWeight: 'bold', paddingRight: '15px' }}>
  1592. <span>
  1593. 项目名称:
  1594. <span style={{ color: '#F00', paddingRight: '5px' }}>{this.state.taskName}</span>
  1595. </span>
  1596. <span style={{ marginLeft: '15px' }}>
  1597. 项目编号:
  1598. <span style={{ color: '#F00', paddingRight: '5px' }}>
  1599. {this.state.tid}
  1600. {
  1601. this.state.splitStatus === 2 ? '(' + this.state.splitSuper + '-' + this.state.splitId + ')' : ''
  1602. }
  1603. </span>
  1604. </span>
  1605. <OrderItemStatus deleteSign={this.state.deleteSign} />
  1606. </div>
  1607. }
  1608. >
  1609. <TabPane tab="外包审核" key="1">
  1610. {this.state.activeKey === '1' ? <Spin spinning={this.state.loading || this.state.getOrderTaskLoading}>
  1611. <CheckProject
  1612. {...this.props}
  1613. tid={this.state.tid}
  1614. sort={this.state.sort}
  1615. patentTypeName={this.state.patentTypeName} //官费类型
  1616. patentTypeId={this.state.patentTypeId}
  1617. commodityQuantity={this.state.commodityQuantity} //项目数量
  1618. checkStatus={this.state.checkStatus} //核对状态
  1619. orderTaskCostReduction={this.state.orderTaskCostReduction} //是否含费减 0无1有
  1620. orderTaskOfficialCost={this.state.orderTaskOfficialCost} //是否含官费 0无1有
  1621. containOfficialFees={this.state.containOfficialFees} //0:实际已缴费 1:实际未缴费
  1622. oldInfor={this.state.oldInfor}
  1623. mid={this.state.mid}
  1624. status={this.state.refundStatus}
  1625. thirdInfoList={this.state.thirdInfoList}
  1626. dataSource={this.state.payNodeList}
  1627. outsourceRemarks={this.state.outsourceRemarks}
  1628. fileList={this.state.pictureUrl}
  1629. startType={this.state.startType}
  1630. projectStatus={this.state.projectStatus}
  1631. onRefresh={() => {
  1632. this.waiDetail();
  1633. this.thirdTable(this.state.tid);
  1634. this.payNodeTable(this.state.tid);
  1635. this.xiangqing(this.state.orderNo);
  1636. }}
  1637. />
  1638. {this.state.refundStatus == 0 ? (
  1639. <div>
  1640. <hr className="division" />
  1641. <div className="clearfix" style={{ marginTop: "20px" }}>
  1642. <FormItem
  1643. labelCol={{ span: 4 }}
  1644. wrapperCol={{ span: 18 }}
  1645. label={
  1646. <span>
  1647. <strong style={{ color: "#f00" }}>*</strong>
  1648. 审核意见
  1649. </span>
  1650. }
  1651. >
  1652. <Input
  1653. type="textarea"
  1654. placeholder="请输入备注"
  1655. rows={4}
  1656. value={this.state.remarks}
  1657. onChange={(e) => {
  1658. this.setState({ remarks: e.target.value });
  1659. }}
  1660. style={{ width: "440px" }}
  1661. />
  1662. <span
  1663. className="tip"
  1664. style={{
  1665. width: "160px",
  1666. verticalAlign: "top",
  1667. display: "inline-block",
  1668. marginLeft: "10px",
  1669. }}
  1670. >
  1671. 通过或驳回都必须填写审核意见!
  1672. </span>
  1673. </FormItem>
  1674. </div>
  1675. <div className="clearfix fa">
  1676. <Button
  1677. type="danger"
  1678. onClick={this.examNo}
  1679. loading={this.state.loading}
  1680. style={{
  1681. color: "#fff",
  1682. backgroundColor: "#f04134",
  1683. }}
  1684. >
  1685. 驳回
  1686. </Button>
  1687. <Button
  1688. type="primary"
  1689. loading={this.state.loading}
  1690. onClick={this.examOk}
  1691. >
  1692. 通过
  1693. </Button>
  1694. </div>
  1695. </div>
  1696. ) : (
  1697. <div className="clearfix">
  1698. <hr className="division" />
  1699. <div className="clearfix">
  1700. <FormItem
  1701. className="half-item"
  1702. {...formItemLayout}
  1703. label="审核意见"
  1704. >
  1705. <span>{this.state.remarks}</span>
  1706. </FormItem>
  1707. </div>
  1708. {parseInt(this.state.startType) !== 1 ? <div className="clearfix">
  1709. <FormItem
  1710. className="half-item"
  1711. {...formItemLayout}
  1712. label="审核结果"
  1713. >
  1714. <span>
  1715. {getRefundStatus(this.state.refundStatus)}
  1716. </span>
  1717. </FormItem>
  1718. </div> : <div />}
  1719. <div className="clearfix">
  1720. <FormItem
  1721. className="half-item"
  1722. {...formItemLayout}
  1723. label="审核时间"
  1724. >
  1725. <span>{this.state.auditTimes}</span>
  1726. </FormItem>
  1727. </div>
  1728. </div>
  1729. )}
  1730. </Spin> : <div />}
  1731. </TabPane>
  1732. <TabPane tab="订单详情" key="2">
  1733. {this.state.activeKey === '2' ? <Form
  1734. layout="horizontal"
  1735. onSubmit={this.handleSubmit}
  1736. id="demand-form"
  1737. style={{ paddingBottom: "40px" }}
  1738. >
  1739. <Spin spinning={this.state.loading}>
  1740. <div className="clearfix">
  1741. <FormItem
  1742. className="half-item"
  1743. {...formItemLayout}
  1744. label="订单编号"
  1745. >
  1746. <span>{this.state.orderNo}</span>
  1747. </FormItem>
  1748. <FormItem
  1749. className="half-item"
  1750. {...formItemLayout}
  1751. label="合同编号"
  1752. >
  1753. <span>{this.state.contractNo}</span>
  1754. </FormItem>
  1755. <FormItem
  1756. className="half-item"
  1757. {...formItemLayout}
  1758. label="客户名称"
  1759. >
  1760. <span>{this.state.userName}</span>
  1761. <EnterpriseNameChange
  1762. type='journal'
  1763. style={{ marginLeft: 10 }}
  1764. enterpriseId={this.state.orderUid} />
  1765. </FormItem>
  1766. <FormItem
  1767. className="half-item"
  1768. {...formItemLayout}
  1769. label="合同签订时间"
  1770. >
  1771. <span>{this.state.signDate}</span>
  1772. </FormItem>
  1773. <FormItem
  1774. className="half-item"
  1775. {...formItemLayout}
  1776. label="流程状态"
  1777. >
  1778. <span>
  1779. {getProcessStatus(this.state.processStatus, this.state.examineName, this.state.approval)}
  1780. </span>
  1781. </FormItem>
  1782. <FormItem
  1783. className="half-item"
  1784. {...formItemLayout}
  1785. label="结算状态"
  1786. >
  1787. <span>
  1788. {getLiquidationStatus(this.state.liquidationStatus)}
  1789. </span>
  1790. </FormItem>
  1791. <FormItem
  1792. className="half-item"
  1793. {...formItemLayout}
  1794. label="企业联系人"
  1795. >
  1796. <span>{this.state.contacts}</span>
  1797. </FormItem>
  1798. <FormItem
  1799. className="half-item"
  1800. {...formItemLayout}
  1801. label="联系人电话"
  1802. >
  1803. <span>{this.state.contactMobile}</span>
  1804. </FormItem>
  1805. <FormItem
  1806. className="half-item"
  1807. {...formItemLayout}
  1808. label="企业法人"
  1809. >
  1810. <span>{this.state.legalPerson}</span>
  1811. </FormItem>
  1812. <FormItem
  1813. className="half-item"
  1814. {...formItemLayout}
  1815. label="法人电话"
  1816. >
  1817. <span>{this.state.legalPersonTel}</span>
  1818. </FormItem>
  1819. <FormItem
  1820. className="half-item"
  1821. {...formItemLayout}
  1822. label="签单金额(万元)"
  1823. >
  1824. <span>{this.state.totalAmount}</span>
  1825. </FormItem>
  1826. <FormItem
  1827. className="half-item"
  1828. {...formItemLayout}
  1829. label="首付金额(万元)"
  1830. >
  1831. <span>{this.state.firstAmount}</span>
  1832. </FormItem>
  1833. <FormItem
  1834. className="half-item"
  1835. {...formItemLayout}
  1836. label="特批立项"
  1837. >
  1838. <span>{getApprovedState(this.state.approval)}</span>
  1839. </FormItem>
  1840. <FormItem
  1841. className="half-item"
  1842. {...formItemLayout}
  1843. label="已收款项(万元)"
  1844. >
  1845. <span>{this.state.settlementAmount}</span>
  1846. </FormItem>
  1847. <FormItem
  1848. className="half-item"
  1849. {...formItemLayout}
  1850. label="订单部门"
  1851. >
  1852. <span>{this.state.depName}</span>
  1853. </FormItem>
  1854. <FormItem
  1855. className="half-item"
  1856. {...formItemLayout}
  1857. label="是否外包"
  1858. >
  1859. <span>{this.state.outsource}</span>
  1860. </FormItem>
  1861. <div className="clearfix">
  1862. <FormItem
  1863. labelCol={{ span: 4 }}
  1864. wrapperCol={{ span: 16 }}
  1865. label="订单留言"
  1866. >
  1867. <span>{this.state.orderRemarks}</span>
  1868. </FormItem>
  1869. </div>
  1870. <div className="clearfix">
  1871. <FormItem
  1872. labelCol={{ span: 4 }}
  1873. wrapperCol={{ span: 18 }}
  1874. label="合同扫描件"
  1875. >
  1876. {/*<Upload*/}
  1877. {/* className="demandDetailShow-upload"*/}
  1878. {/* listType="picture-card"*/}
  1879. {/* fileList={this.state.orgCodeUrl}*/}
  1880. {/* onPreview={(file) => {*/}
  1881. {/* this.setState({*/}
  1882. {/* previewImage: file.url || file.thumbUrl,*/}
  1883. {/* previewVisible: true,*/}
  1884. {/* });*/}
  1885. {/* }}*/}
  1886. {/*/>*/}
  1887. <div style={{ paddingTop: '10px', paddingBottom: '10px' }}>
  1888. {
  1889. this.state.orgCodeUrl
  1890. && this.state.visible &&
  1891. this.state.activeKey === '2' ?
  1892. <ImgList fileList={this.state.orgCodeUrl} ItemWidth={'96px'} /> :
  1893. <div />
  1894. }
  1895. </div>
  1896. <Modal
  1897. maskClosable={false}
  1898. footer={null}
  1899. width={"50%"}
  1900. visible={this.state.previewVisible}
  1901. onCancel={() => {
  1902. this.setState({
  1903. previewVisible: false,
  1904. rotateDeg: 0,
  1905. });
  1906. }}
  1907. >
  1908. <img
  1909. alt=""
  1910. style={{
  1911. width: "100%",
  1912. transform: `rotate(${this.state.rotateDeg}deg)`,
  1913. }}
  1914. src={this.state.previewImage || ""}
  1915. />
  1916. <Button
  1917. onClick={this.rotate}
  1918. style={{
  1919. position: "relative",
  1920. left: "50%",
  1921. transform: "translateX(-50%)",
  1922. }}
  1923. >
  1924. 旋转
  1925. </Button>
  1926. <Button
  1927. onClick={this.upImg}
  1928. style={{
  1929. position: "absolute",
  1930. left: -81,
  1931. top: "50%",
  1932. transform: "translateY(-50%)",
  1933. }}
  1934. >
  1935. 上一张
  1936. </Button>
  1937. <Button
  1938. onClick={this.downImg}
  1939. style={{
  1940. position: "absolute",
  1941. right: -81,
  1942. top: "50%",
  1943. transform: "translateY(-50%)",
  1944. }}
  1945. >
  1946. 下一张
  1947. </Button>
  1948. </Modal>
  1949. <Button
  1950. style={{
  1951. float: "right",
  1952. marginRight: "140px",
  1953. marginTop: "20px",
  1954. }}
  1955. onClick={this.getOrderLog}
  1956. >
  1957. 查看订单日志
  1958. </Button>
  1959. </FormItem>
  1960. <FormItem
  1961. labelCol={{ span: 4 }}
  1962. wrapperCol={{ span: 18 }}
  1963. label="补充协议"
  1964. >
  1965. {/*<Upload*/}
  1966. {/* className="demandDetailShow-upload"*/}
  1967. {/* listType="picture-card"*/}
  1968. {/* fileList={this.state.replenishUrl}*/}
  1969. {/* onPreview={(file) => {*/}
  1970. {/* this.setState({*/}
  1971. {/* previewImage: file.url || file.thumbUrl,*/}
  1972. {/* previewVisibles: true,*/}
  1973. {/* });*/}
  1974. {/* }}*/}
  1975. {/*/>*/}
  1976. <div style={{ paddingTop: '10px', paddingBottom: '10px' }}>
  1977. {
  1978. this.state.replenishUrl
  1979. && this.state.visible &&
  1980. this.state.activeKey === '2' ?
  1981. <ImgList domId={'outsourcingPro1'} fileList={this.state.replenishUrl} ItemWidth={'96px'} /> :
  1982. <div />
  1983. }
  1984. </div>
  1985. <Modal
  1986. maskClosable={false}
  1987. footer={null}
  1988. width={"50%"}
  1989. visible={this.state.previewVisibles}
  1990. onCancel={() => {
  1991. this.setState({
  1992. previewVisibles: false,
  1993. rotateDeg: 0,
  1994. });
  1995. }}
  1996. >
  1997. <img
  1998. alt=""
  1999. style={{
  2000. width: "100%",
  2001. transform: `rotate(${this.state.rotateDeg}deg)`,
  2002. }}
  2003. src={this.state.previewImage || ""}
  2004. />
  2005. <Button
  2006. onClick={this.rotate}
  2007. style={{
  2008. position: "relative",
  2009. left: "50%",
  2010. transform: "translateX(-50%)",
  2011. }}
  2012. >
  2013. 旋转
  2014. </Button>
  2015. <Button
  2016. onClick={this.upImgs}
  2017. style={{
  2018. position: "absolute",
  2019. left: -81,
  2020. top: "50%",
  2021. transform: "translateY(-50%)",
  2022. }}
  2023. >
  2024. 上一张
  2025. </Button>
  2026. <Button
  2027. onClick={this.downImgs}
  2028. style={{
  2029. position: "absolute",
  2030. right: -81,
  2031. top: "50%",
  2032. transform: "translateY(-50%)",
  2033. }}
  2034. >
  2035. 下一张
  2036. </Button>
  2037. </Modal>
  2038. </FormItem>
  2039. </div>
  2040. <ContentUrl
  2041. processStatus={2}
  2042. domId={"outContents"}
  2043. contentUrl={this.state.contentUrl}
  2044. imgId={"outContentsImg"}
  2045. labelCol={4}
  2046. />
  2047. {/* 知识产权情况 */}
  2048. <Property
  2049. patentStatus={this.state.patentStatus}
  2050. labelCol={4}
  2051. />
  2052. <div className="clearfix">
  2053. <FormItem
  2054. className="half-item"
  2055. {...formItemLayout}
  2056. label="订单负责人"
  2057. >
  2058. <span>{this.state.salesmanName}</span>
  2059. </FormItem>
  2060. <FormItem
  2061. className="half-item"
  2062. {...formItemLayout}
  2063. label="订单负责人电话"
  2064. >
  2065. <span>{this.state.salesmanMobile}</span>
  2066. </FormItem>
  2067. </div>
  2068. <div className="clearfix">
  2069. <FormItem
  2070. className="half-item"
  2071. {...formItemLayout}
  2072. label="当前财务负责人"
  2073. >
  2074. <span>{this.state.nowFinance}</span>
  2075. </FormItem>
  2076. <FormItem
  2077. className="half-item"
  2078. {...formItemLayout}
  2079. label="当前财务负责人电话"
  2080. >
  2081. <span>{this.state.nowFinanceMobile}</span>
  2082. </FormItem>
  2083. </div>
  2084. <div className="clearfix">
  2085. <FormItem
  2086. className="half-item"
  2087. {...formItemLayout}
  2088. style={{ opacity: ".5" }}
  2089. label="原订单负责人"
  2090. >
  2091. <span>{this.state.oldSalesmanName}</span>
  2092. </FormItem>
  2093. <FormItem
  2094. className="half-item"
  2095. {...formItemLayout}
  2096. style={{ opacity: ".5" }}
  2097. label="原订单负责人电话"
  2098. >
  2099. <span>{this.state.oldSalesmanMobile}</span>
  2100. </FormItem>
  2101. </div>
  2102. <div className="clearfix">
  2103. <FormItem
  2104. className="half-item"
  2105. style={{ opacity: ".5" }}
  2106. {...formItemLayout}
  2107. label="实际财务操作人"
  2108. >
  2109. <span>{this.state.financeName}</span>
  2110. </FormItem>
  2111. <FormItem
  2112. className="half-item"
  2113. {...formItemLayout}
  2114. style={{ opacity: ".5" }}
  2115. label="实际财务操作人电话"
  2116. >
  2117. <span>{this.state.financeMobile}</span>
  2118. </FormItem>
  2119. </div>
  2120. {/* 协单人员 */}
  2121. <OrderCoor orderNo={this.state.orderNo} />
  2122. <div>
  2123. <span
  2124. style={{ marginLeft: "50px", fontSize: "20px" }}
  2125. >
  2126. 项目业务
  2127. </span>
  2128. {this.state.processStatus == 0 ? (
  2129. <Button
  2130. type="primary"
  2131. onClick={this.addDetailed}
  2132. style={{
  2133. float: "right",
  2134. marginRight: "50px",
  2135. marginBottom: "15px",
  2136. }}
  2137. >
  2138. 添加项目明细
  2139. </Button>
  2140. ) : (
  2141. ""
  2142. )}
  2143. </div>
  2144. <div className="patent-table">
  2145. <Spin spinning={this.state.loading}>
  2146. <Table
  2147. columns={this.state.columnsX}
  2148. dataSource={this.state.dataSourceX}
  2149. pagination={this.state.paginations}
  2150. onRowClick={this.tableRowClickX}
  2151. bordered
  2152. size="small"
  2153. />
  2154. </Spin>
  2155. </div>
  2156. <div>
  2157. <span style={{ marginLeft: 50, fontSize: "20px" }}>
  2158. 催款节点
  2159. </span>
  2160. <span
  2161. style={{
  2162. display: cuiDataList.length
  2163. ? "none"
  2164. : "inline-block",
  2165. marginLeft: 10,
  2166. color: "red",
  2167. }}
  2168. >
  2169. 金额总计(万元): {this.state.totalCui}
  2170. </span>
  2171. </div>
  2172. <div className="clearfix">
  2173. <Spin spinning={this.state.loading}>
  2174. <Form layout="horizontal" id="demand-form">
  2175. <Table
  2176. pagination={false}
  2177. bordered
  2178. size="small"
  2179. columns={
  2180. cuiDataList.length
  2181. ? this.state.ContactsLists
  2182. : this.state.ContactsListsNew
  2183. }
  2184. dataSource={
  2185. cuiDataList.length
  2186. ? this.state.contactList
  2187. : this.state.contactListNew
  2188. }
  2189. />
  2190. <Col
  2191. span={24}
  2192. offset={9}
  2193. style={{ marginTop: "15px" }}
  2194. />
  2195. </Form>
  2196. </Spin>
  2197. </div>
  2198. </div>
  2199. </Spin>
  2200. </Form> : <div />}
  2201. </TabPane>
  2202. </Tabs>
  2203. </Modal> : <div />}
  2204. {this.state.rizhivisible ? <Modal
  2205. visible={this.state.rizhivisible}
  2206. className="admin-desc-content"
  2207. width="800px"
  2208. maskClosable={false}
  2209. title="订单日志"
  2210. footer={null}
  2211. onCancel={this.closeOrderLog}
  2212. >
  2213. <div className="patent-table">
  2214. <Spin spinning={this.state.loading}>
  2215. <Table
  2216. columns={this.state.columnsrizhi}
  2217. dataSource={this.state.dataSourcerizhi}
  2218. pagination={false}
  2219. bordered
  2220. size="small"
  2221. />
  2222. </Spin>
  2223. </div>
  2224. </Modal> : <div />}
  2225. </div>
  2226. </div>
  2227. );
  2228. },
  2229. })
  2230. );
  2231. export default outsourcingPro;