outsourcingPro.jsx 77 KB

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