outsourcingPro.jsx 78 KB

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