projectAssignment.jsx 59 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921
  1. import React from "react";
  2. import $ from "jquery/src/ajax";
  3. import moment from "moment";
  4. import "../../order/userMangagement.less";
  5. import { boutique } from "../../../dataDic.js";
  6. import "@/manageCenter/financialManage/distribute/public.less";
  7. import ProjectDetailsReadOnly from '../../../common/projectDetailsReadOnly';
  8. import ResolutionDetail from "@/resolutionDetail";
  9. import {
  10. Button,
  11. Form,
  12. Input,
  13. Select,
  14. Spin,
  15. Table,
  16. Switch,
  17. message,
  18. DatePicker,
  19. Modal,
  20. AutoComplete, Tag, Tabs, Radio, Tooltip,
  21. } from "antd";
  22. import Assign from "@/manageCenter/publicComponent/assign";
  23. import {
  24. getProcessStatus,
  25. getApproval,
  26. getLiquidationStatus,
  27. getApprovedState,
  28. splitUrl,
  29. getboutique,
  30. ShowModal,
  31. getProjectName,
  32. } from "@/tools";
  33. import ImgList from "../../../common/imgList";
  34. import PicturesWall from "../../order/orderNew/changeComponent/picturesWall";
  35. import ShowModalDiv from "@/showModal.jsx";
  36. import OrderRiZi from "@/orderRiZi.jsx";
  37. import { ChooseList } from "../../order/orderNew/chooseList";
  38. import ProjectOperation from "../../../common/projectOperation";
  39. import NewAddProject from "../../../common/projectOperation/newAddProject"
  40. import NewEditProject from "../../../common/projectOperation/newEditProject"
  41. import OrderCoor from "../../order/orderNew/changeComponent/orderCoor";
  42. import ContentUrl from "../../order/orderNew/contentUrl";
  43. import { salesList } from "@/dataDic.js";
  44. import Cascaders from "../../../common/cascaders";
  45. import FlowChart from '../../../common/flowchart'; // 流程图
  46. import Gxczx from '../../../common/orderDetail/gxczx' // 高新纯咨询合同说明详情
  47. const { TabPane } = Tabs
  48. const { TextArea } = Input;
  49. const PaiDan = React.createClass({
  50. loadData(pageNo) {
  51. this.state.data = [];
  52. this.setState({
  53. loading: true
  54. });
  55. $.ajax({
  56. method: "get",
  57. dataType: "json",
  58. crossDomain: false,
  59. url: globalConfig.context + "/api/admin/newOrder/orderNewList",
  60. data: {
  61. pageNo: pageNo || 1,
  62. pageSize: this.state.pagination.pageSize,
  63. specially: 4, //咨询师管理列表
  64. distribution: this.state.distribution, //全部列表
  65. name: this.state.customerName, //名称
  66. deps: this.state.departmenttSearch, //订单部门
  67. orderNo: this.state.orderNoSearch, //订单编号
  68. starTime: this.state.releaseDate[0], //开始时间
  69. endTime: this.state.releaseDate[1], //结束时间
  70. outsource: 0
  71. },
  72. success: function (data) {
  73. ShowModal(this);
  74. let theArr = [];
  75. if (!data.data || !data.data.list) {
  76. if (data.error && data.error.length) {
  77. message.warning(data.error[0].message);
  78. }
  79. } else {
  80. for (let i = 0; i < data.data.list.length; i++) {
  81. let thisdata = data.data.list[i];
  82. theArr.push({
  83. key: i,
  84. id: thisdata.id, //任务ID
  85. orderNo: thisdata.orderNo, //订单编号
  86. totalAmount: thisdata.totalAmount, //签单金额
  87. processStatus: thisdata.processStatus, //流程状态
  88. myExamine: thisdata.myExamine, // 0 待审核
  89. liquidationStatus: thisdata.liquidationStatus, //结算状态
  90. approval: thisdata.approval, //特批状态
  91. signDate: thisdata.signDate, //签单时间
  92. userName: thisdata.userName, //客户名称
  93. salesmanName: thisdata.salesmanName, //营销员名称
  94. financeName: thisdata.financeName, //财务名称
  95. consultantName: thisdata.consultantName, //项目负责人
  96. createDate: thisdata.createDate, //下单时间
  97. settlementAmount: thisdata.settlementAmount, //已交款项
  98. depName: thisdata.depName, //部门名称
  99. ischange: thisdata.ischange //是否通过变更生成的
  100. });
  101. }
  102. }
  103. this.state.pagination.current = data.data.pageNo;
  104. this.state.pagination.total = data.data.totalCount;
  105. if (data.data && data.data.list && !data.data.list.length) {
  106. this.state.pagination.current = 0;
  107. this.state.pagination.total = 0;
  108. }
  109. this.setState({
  110. page: data.data.pageNo,
  111. dataSource: theArr,
  112. pagination: this.state.pagination
  113. });
  114. }.bind(this)
  115. }).always(
  116. function () {
  117. this.setState({
  118. loading: false
  119. });
  120. }.bind(this)
  121. );
  122. },
  123. getInitialState() {
  124. return {
  125. distribution: "0",
  126. activeKey: "1",
  127. customerArr: [],
  128. orderNos: '',
  129. searchMore: true,
  130. visible: false,
  131. assignVisible: false,
  132. releaseDate: [],
  133. departmentArr: [],
  134. declarationBatch: 1,
  135. boHuivisible: false,
  136. selectedRowKeys: [],
  137. resVisible: false,
  138. selectedRows: [],
  139. loading: false,
  140. dataInfor: {},
  141. paginations: false,
  142. page: 1,
  143. pagination: {
  144. defaultCurrent: 1,
  145. defaultPageSize: 10,
  146. showQuickJumper: true,
  147. pageSize: 10,
  148. onChange: function (page) {
  149. this.loadData(page);
  150. }.bind(this),
  151. showTotal: function (total) {
  152. return "共" + total + "条数据";
  153. }
  154. },
  155. columns: [
  156. {
  157. title: "订单编号",
  158. dataIndex: "orderNo",
  159. key: "orderNo",
  160. render: (text, record) => {
  161. if (record.ischange == 1) {
  162. return (
  163. <span>
  164. <Tag color="#f50">变更</Tag>
  165. {text}
  166. </span>
  167. );
  168. } else {
  169. return <span>{text}</span>;
  170. }
  171. }
  172. },
  173. {
  174. title: "签单客户",
  175. dataIndex: "userName",
  176. key: "userName"
  177. },
  178. {
  179. title: "下单时间",
  180. dataIndex: "createDate",
  181. key: "createDate"
  182. },
  183. {
  184. title: "签单时间",
  185. dataIndex: "signDate",
  186. key: "signDate"
  187. },
  188. {
  189. title: "订单总金额(万)",
  190. dataIndex: "totalAmount",
  191. key: "totalAmount"
  192. },
  193. {
  194. title: "是否特批",
  195. dataIndex: "approval",
  196. key: "approval",
  197. render: text => {
  198. return getApproval(text);
  199. }
  200. },
  201. {
  202. title: "订单负责人",
  203. dataIndex: "salesmanName",
  204. key: "salesmanName"
  205. },
  206. {
  207. title: "订单部门",
  208. dataIndex: "depName",
  209. key: "depName"
  210. },
  211. {
  212. title: "财务负责人",
  213. dataIndex: "financeName",
  214. key: "financeName"
  215. },
  216. {
  217. title: "项目负责人",
  218. dataIndex: "consultantName",
  219. key: "consultantName"
  220. },
  221. {
  222. title: "分派状态",
  223. dataIndex: "processStatus",
  224. key: "processStatus",
  225. render: (text, record) => {
  226. return text == 6 || text == 7 ? getProcessStatus(text, record.examineName, record.approval) : "未分配";
  227. }
  228. },
  229. {
  230. title: "操作",
  231. dataIndex: "caozuo",
  232. key: "caouzo",
  233. render: (text, record) => {
  234. return (
  235. <div style={{ display: "flex" }}>
  236. {record.processStatus > 4 && <Tag color="#87d068">已审核</Tag>}
  237. {record.processStatus == 3 && record.myExamine == 0 &&
  238. <Button
  239. type="primary"
  240. onClick={(e) => {
  241. e.stopPropagation(), this.checkRemark(record);
  242. }}
  243. style={{ margin: "0 5px" }}
  244. >通过</Button>}
  245. {(record.processStatus == 3 || record.processStatus > 4) &&
  246. <Button
  247. type="primary"
  248. style={{ margin: "0 5px" }}
  249. onClick={e => {
  250. e.stopPropagation(), this.examNo(record);
  251. }}
  252. >驳回</Button>}
  253. </div>
  254. );
  255. }
  256. }
  257. ],
  258. columnsrizhi: [
  259. {
  260. title: "流程",
  261. dataIndex: "processName",
  262. key: "processName"
  263. },
  264. {
  265. title: "操作人",
  266. dataIndex: "adminName",
  267. key: "adminName"
  268. },
  269. {
  270. title: "时间",
  271. dataIndex: "createDate",
  272. key: "createDate"
  273. },
  274. {
  275. title: "备注",
  276. dataIndex: "remarks",
  277. key: "remarks"
  278. }
  279. ],
  280. dataSource: [],
  281. searchTime: [],
  282. columnsX: [
  283. {
  284. title: "业务项目名称",
  285. dataIndex: "commodityName",
  286. key: "commodityName",
  287. render: (text, record) => {
  288. return (
  289. <span>
  290. {record.change == 1 && <Tag color="#87d068">增</Tag>}
  291. {text}
  292. <span style={{ color: "red" }}>{record.patentTypeName}</span></span>
  293. )
  294. }
  295. },
  296. {
  297. title: "项目类别",
  298. dataIndex: "cname",
  299. key: "cname",
  300. },
  301. {
  302. title: "项目数量",
  303. dataIndex: "commodityQuantity",
  304. key: "commodityQuantity",
  305. render: (text, record) => {
  306. if (record.splitStatus == 1) {
  307. return (
  308. <span>
  309. {text}{" "}
  310. {/* {
  311. record.cSort != 6 &&
  312. <Tag
  313. color="#108ee9"
  314. onClick={e => {
  315. e.stopPropagation();
  316. this.showRes(record);
  317. }}
  318. >
  319. 已拆
  320. </Tag>
  321. } */}
  322. </span>
  323. );
  324. } else {
  325. return text;
  326. }
  327. }
  328. },
  329. {
  330. title: "金额(万元)",
  331. dataIndex: "commodityPrice",
  332. key: "commodityPrice",
  333. width: 80,
  334. },
  335. {
  336. title: "负责人",
  337. dataIndex: "contacts",
  338. key: "contacts",
  339. },
  340. {
  341. title: "负责人电话",
  342. dataIndex: "contactsMobile",
  343. key: "contactsMobile",
  344. },
  345. {
  346. title: "主要项目",
  347. dataIndex: "main",
  348. key: "main",
  349. width: 50,
  350. render: text => {
  351. return text ? "是" : "否";
  352. }
  353. },
  354. {
  355. title: "总年限",
  356. dataIndex: "yearSum",
  357. key: "yearSum",
  358. render: (text, record) => {
  359. return (
  360. <div>{["", "一年", "二年", "三年", "四年", "五年"][text]}</div>
  361. );
  362. }
  363. },
  364. {
  365. title: "年限",
  366. dataIndex: "serviceLife",
  367. key: "serviceLife",
  368. render: (text, record) => {
  369. return (
  370. <div>{!!text && JSON.parse(text).toString()}</div>
  371. );
  372. }
  373. },
  374. {
  375. title: "本次派单",
  376. dataIndex: "serviceYear",
  377. key: "serviceYear",
  378. render: (text, record) => {
  379. return (
  380. <div>{!text ? "" : text}</div>
  381. );
  382. }
  383. },
  384. {
  385. title: "项目说明",
  386. dataIndex: "taskComment",
  387. key: "taskComment",
  388. render: (text) => {
  389. return (
  390. <Tooltip title={text}>
  391. <div
  392. style={{
  393. width: 100,
  394. overflow: "hidden",
  395. whiteSpace: "nowrap",
  396. textOverflow: "ellipsis",
  397. }}
  398. >{text}</div>
  399. </Tooltip>
  400. )
  401. },
  402. },
  403. {
  404. title: "操作",
  405. dataIndex: "caozuo",
  406. key: "caouzo",
  407. width: 100,
  408. render: (text, record) => {
  409. return (
  410. <div>
  411. {(this.state.processStatus == 5 || this.state.processStatus == 6) &&
  412. record.taskStatus == 0 && record.cSort != 6 &&
  413. <Button
  414. type="primary"
  415. onClick={e => {
  416. e.stopPropagation(), this.evaluate(record);
  417. }}
  418. >
  419. 分配任务
  420. </Button>
  421. }
  422. </div>
  423. );
  424. }
  425. }
  426. ],
  427. dataSourceX: []
  428. };
  429. },
  430. /* 分派 */
  431. evaluate(record) {
  432. this.state.assignData = record;
  433. this.setState({
  434. assignVisible: true
  435. });
  436. },
  437. componentWillMount() {
  438. // this.departmentList();
  439. this.loadData();
  440. },
  441. tableRowClick(record) {
  442. this.state.RowData = record;
  443. this.setState({
  444. displayFees: "block",
  445. visible: true,
  446. orderNos: record.orderNo
  447. });
  448. this.xiangqing(record.orderNo);
  449. this.xiangmu(record.orderNo);
  450. this.jiedian(record.orderNo);
  451. },
  452. checkRemark(record) {
  453. this.setState({
  454. checkVisible: true,
  455. checkOrderNo: record.orderNo,
  456. });
  457. },
  458. // 同意
  459. checkOk() {
  460. if (!this.state.checkData) {
  461. message.warning("请填写审核内容");
  462. return;
  463. }
  464. if (!this.state.checkData.replace(/\s+/g, '')) {
  465. message.warning("请填写审核内容");
  466. return;
  467. }
  468. this.setState({
  469. loading: true,
  470. });
  471. let ajaxObj = $.ajax({
  472. method: "post",
  473. dataType: "json",
  474. crossDomain: false,
  475. url: globalConfig.context + "/api/admin/financial/financeApproval",
  476. data: {
  477. orderNo: this.state.checkOrderNo,
  478. remarks: this.state.checkData,
  479. },
  480. success: function (data) {
  481. let theArr = [];
  482. if (!data.data) {
  483. if (data.error && data.error.length) {
  484. message.warning(data.error[0].message);
  485. }
  486. } else {
  487. message.success("通过成功!");
  488. this.loadData();
  489. this.setState({
  490. checkVisible: false,
  491. checkData: "",
  492. });
  493. }
  494. }.bind(this),
  495. }).always(
  496. function () {
  497. this.setState({
  498. loading: false,
  499. });
  500. }.bind(this)
  501. );
  502. },
  503. //审核不通过
  504. examOks() {
  505. if (this.state.flag) return;
  506. if (!this.state.reason) {
  507. message.warning("请填写拒绝理由");
  508. return;
  509. }
  510. if (!this.state.reason.replace(/\s+/g, '')) {
  511. message.warning("请填写拒绝理由~");
  512. return;
  513. }
  514. this.setState({
  515. flag: true
  516. });
  517. $.ajax({
  518. method: "post",
  519. dataType: "json",
  520. crossDomain: false,
  521. url: globalConfig.context + "/api/admin/newOrder/technicianBackOrder",
  522. data: {
  523. orderNo: this.state.orderNo,
  524. reason: this.state.reason
  525. },
  526. success: function (data) {
  527. if (data.error.length || data.data == "") {
  528. if (data.error && data.error.length) {
  529. message.warning(data.error[0].message);
  530. this.setState({
  531. flag: false
  532. });
  533. }
  534. } else {
  535. message.success("该订单已被驳回~");
  536. this.setState({
  537. visible: false,
  538. noVisible: false,
  539. reason: "",
  540. flag: false
  541. });
  542. this.reset();
  543. }
  544. }.bind(this)
  545. }).always(
  546. function () {
  547. this.setState({
  548. loading: false
  549. });
  550. }.bind(this)
  551. );
  552. },
  553. //点击拒绝
  554. examNo(record) {
  555. this.setState({
  556. noVisible: true,
  557. orderNo: record.orderNo
  558. });
  559. },
  560. //关闭输入理由框
  561. noCancel() {
  562. this.setState({
  563. noVisible: false,
  564. reason: ""
  565. });
  566. },
  567. // 拆分详细
  568. showRes(record) {
  569. this.setState({
  570. resVisible: true,
  571. resRecord: record
  572. });
  573. },
  574. resCancel() {
  575. this.setState({
  576. resVisible: false
  577. });
  578. },
  579. //订单详情
  580. xiangqing(orderNos) {
  581. $.ajax({
  582. method: "get",
  583. dataType: "json",
  584. crossDomain: false,
  585. url: globalConfig.context + "/api/admin/newOrder/getOrderNewDetail",
  586. data: {
  587. orderNo: orderNos
  588. },
  589. success: function (data) {
  590. if (data.error.length || data.data.list == "") {
  591. if (data.error && data.error.length) {
  592. message.warning(data.error[0].message);
  593. }
  594. } else {
  595. let thisdata = data.data;
  596. this.setState({
  597. userType: thisdata.userType,
  598. salesType: thisdata.salesType,
  599. other: thisdata.other,
  600. orderNo: thisdata.orderNo, //订单编号
  601. contractNo: thisdata.contractNo, //合同编号
  602. userName: thisdata.userName, //客户名称
  603. depName: thisdata.depName, //订单部门
  604. signDate: thisdata.signDate, //签单时间
  605. examineName: thisdata.examineName,
  606. processStatus: thisdata.processStatus, //流程状态
  607. myExamine: thisdata.myExamine, // 0 待审核
  608. liquidationStatus: thisdata.liquidationStatus, //结算状态
  609. contacts: thisdata.contacts, //企业联系人
  610. contactMobile: thisdata.contactMobile, //联系人电话
  611. legalPerson: thisdata.legalPerson, //法人
  612. legalPersonTel: thisdata.legalPersonTel, //法人电话
  613. firstAmount: thisdata.firstAmount, //签单金额
  614. totalAmount: thisdata.totalAmount, //首付金额
  615. approval: thisdata.approval, //特批状态
  616. settlementAmount: thisdata.settlementAmount, //已收款项
  617. orderRemarks: thisdata.orderRemarks, //订单留言
  618. orgCodeUrl: thisdata.contractPictureUrl
  619. ? splitUrl(
  620. thisdata.contractPictureUrl,
  621. ",",
  622. globalConfig.avatarHost + "/upload"
  623. )
  624. : [], //图片地址
  625. contentUrl: thisdata.serviceContent
  626. ? splitUrl(
  627. thisdata.serviceContent,
  628. ",",
  629. globalConfig.avatarHost + "/upload"
  630. )
  631. : [], //图片地址
  632. replenishUrl: thisdata.agreementUrl
  633. ? splitUrl(
  634. thisdata.agreementUrl,
  635. ",",
  636. globalConfig.avatarHost + "/upload"
  637. )
  638. : [], //图片地址
  639. salesmanName: thisdata.salesmanName, //营销员名称
  640. salesmanMobile: thisdata.salesmanMobile, //营销员电话
  641. financeName: thisdata.financeName, //财务名称
  642. financeMobile: thisdata.financeMobile, //财务电话
  643. oldSalesmanName: thisdata.oldSalesmanName, //营销员名称
  644. oldSalesmanMobile: thisdata.oldSalesmanMobile, //营销员电话
  645. nowFinance: thisdata.nowFinance, //财务名称
  646. nowFinanceMobile: thisdata.nowFinanceMobile, //财务电话
  647. // 高新纯咨询合同说明
  648. knowledgeServices: thisdata.knowledgeServices, //知识产权服务
  649. auditServices: thisdata.auditServices, //审计服务
  650. addDeductionServices: thisdata.addDeductionServices, //加计扣除服务
  651. knowledgeOther: thisdata.knowledgeOther, //知识产权服务其他描述
  652. auditOther: thisdata.auditOther, //审计服务其他描述
  653. addDeductionOther: thisdata.addDeductionOther, //加计扣除服务其他描述
  654. });
  655. }
  656. }.bind(this)
  657. }).always(
  658. function () {
  659. this.setState({
  660. loading: false
  661. });
  662. }.bind(this)
  663. );
  664. },
  665. //项目列表
  666. xiangmu(orderNos) {
  667. $.ajax({
  668. method: "get",
  669. dataType: "json",
  670. crossDomain: false,
  671. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  672. data: {
  673. orderNo: orderNos
  674. },
  675. success: function (data) {
  676. let theArr = [];
  677. if (data.error.length || data.data.list == "") {
  678. if (data.error && data.error.length) {
  679. message.warning(data.error[0].message);
  680. }
  681. } else {
  682. for (let i = 0; i < data.data.length; i++) {
  683. let thisdata = data.data[i];
  684. thisdata.key = i;
  685. theArr.push(thisdata);
  686. }
  687. }
  688. this.setState({
  689. dataSourceX: theArr
  690. });
  691. }.bind(this)
  692. }).always(
  693. function () {
  694. this.setState({
  695. loading: false
  696. });
  697. }.bind(this)
  698. );
  699. },
  700. rizhi() {
  701. // console.log(this.state.orderNo);
  702. this.setState({
  703. loading: true
  704. });
  705. $.ajax({
  706. method: "get",
  707. dataType: "json",
  708. crossDomain: false,
  709. url: "/api/admin/newOrder/selectOrderLog",
  710. data: {
  711. orderNo: this.state.orderNo
  712. },
  713. success: function (data) {
  714. let theArr = [];
  715. let thisData = data.data;
  716. if (!thisData.length) {
  717. if (data.error && data.error.length) {
  718. message.warning(data.error[0].message);
  719. }
  720. thisData = {};
  721. } else {
  722. for (let i = 0; i < data.data.length; i++) {
  723. let thisdata = data.data[i];
  724. theArr.push({
  725. processName: thisdata.processName,
  726. adminName: thisdata.adminName,
  727. createDate: thisdata.createDate,
  728. remarks: thisdata.remarks
  729. });
  730. }
  731. }
  732. this.setState({
  733. dataSourcerizhi: theArr
  734. });
  735. }.bind(this)
  736. }).always(
  737. function () {
  738. this.setState({
  739. loading: false
  740. });
  741. }.bind(this)
  742. );
  743. },
  744. //查看订单日志
  745. getOrderLog() {
  746. this.setState({
  747. rizhivisible: true
  748. });
  749. this.rizhi();
  750. },
  751. closeOrderLog() {
  752. this.setState({
  753. rizhivisible: false
  754. });
  755. },
  756. supervisor(e, state) {
  757. //客户名称与服务名称自动补全
  758. $.ajax({
  759. method: "get",
  760. dataType: "json",
  761. crossDomain: false,
  762. url: "/api/admin/order/getBusinessProjectByName",
  763. data: {
  764. businessName: e
  765. },
  766. success: function (data) {
  767. let thedata = data.data;
  768. if (!thedata) {
  769. if (data.error && data.error.length) {
  770. message.warning(data.error[0].message);
  771. }
  772. thedata = {};
  773. }
  774. this.setState({
  775. states: state,
  776. customerArr: thedata
  777. });
  778. }.bind(this)
  779. }).always(
  780. function () {
  781. this.setState({
  782. loading: false
  783. });
  784. }.bind(this)
  785. );
  786. },
  787. //服务值改变时请求客户名称
  788. httpChange(e) {
  789. this.state.gid = "";
  790. if (e.length >= 1) {
  791. this.supervisor(e, false);
  792. }
  793. this.setState({
  794. commodityName: e
  795. });
  796. },
  797. //上级主管输入框失去焦点是判断客户是否存在
  798. selectAuto(value) {
  799. let kid = [];
  800. let fwList = this.state.customerArr;
  801. fwList.map(function (item) {
  802. if (value == item.bname) {
  803. kid = item;
  804. }
  805. });
  806. if (kid.type === 1) {
  807. this.setState({
  808. displayFees: "block",
  809. });
  810. } else {
  811. this.setState({
  812. displayFees: "none",
  813. });
  814. }
  815. this.setState({
  816. commodityName: value,
  817. gid: kid.id,
  818. //commodityPrice:kid.price==0?kid.price.toString():kid.price,
  819. isIso: value.indexOf("贯标") !== -1,// 是否为贯标项目
  820. addProjectType: kid.type,
  821. commodityFirstPayment:
  822. kid.firstPayment == 0 ? kid.firstPayment.toString() : kid.firstPayment
  823. });
  824. },
  825. //点击添加项目明细
  826. addDetailed() {
  827. this.setState({
  828. projectOperationVisible: true,
  829. newData: this.state.dataSourceX,
  830. });
  831. },
  832. //节点列表
  833. jiedian(orderNos) {
  834. $.ajax({
  835. method: "get",
  836. dataType: "json",
  837. crossDomain: false,
  838. url: globalConfig.context + "/api/admin/newOrder/selectOrderDun",
  839. data: {
  840. orderNo: orderNos
  841. },
  842. success: function (data) {
  843. let theArr = [];
  844. let thisData = [];
  845. if (data.error.length || data.data.list == "") {
  846. if (data.error && data.error.length) {
  847. message.warning(data.error[0].message);
  848. }
  849. } else {
  850. for (let i = 0; i < data.data.length; i++) {
  851. thisData = data.data[i];
  852. theArr.push({
  853. key: i,
  854. dunSubject: thisData.dunSubject
  855. ? thisData.dunSubject.toString()
  856. : "", //催款科目
  857. id: thisData.id, //节点Id
  858. money: thisData.money, //催款金额
  859. dunStatus: thisData.dunStatus //催款状态
  860. });
  861. }
  862. this.setState({
  863. contactList: theArr
  864. });
  865. }
  866. }.bind(this)
  867. }).always(
  868. function () {
  869. this.setState({
  870. loading: false
  871. });
  872. }.bind(this)
  873. );
  874. },
  875. closeDesc(e, s) {
  876. this.state.showDesc = e;
  877. if (s) {
  878. this.loadData(this.state.page);
  879. }
  880. },
  881. closeAssign(e, s) {
  882. this.state.assignVisible = e;
  883. if (s) {
  884. this.loadData(this.state.page);
  885. this.xiangqing(this.state.orderNo);
  886. this.xiangmu(this.state.orderNo);
  887. this.jiedian(this.state.orderNo);
  888. }
  889. },
  890. search() {
  891. this.loadData();
  892. },
  893. reset() {
  894. this.state.nameSearch = "";
  895. this.state.customerName = "";
  896. this.state.releaseDate = [];
  897. this.state.orderNoSearch = "";
  898. this.state.departmenttSearch = undefined;
  899. this.state.distribution = "0";
  900. this.Cascaders.empty();
  901. this.loadData(this.state.page);
  902. },
  903. nextCancel() {
  904. this.setState({
  905. infoVisible: false,
  906. projectOperationVisible: false,
  907. dataInfor: {},
  908. }, () => {
  909. this.xiangmu(this.state.orderNo);
  910. });
  911. },
  912. //点击打卡项目详情
  913. tableRowClickX(record) {
  914. this.setState({
  915. infoVisible: true,
  916. dataInfor: record,
  917. });
  918. },
  919. searchSwitch() {
  920. this.setState({
  921. searchMore: !this.state.searchMore
  922. });
  923. },
  924. //关闭详情
  925. visitCancel() {
  926. this.setState({
  927. visible: false
  928. });
  929. this.loadData(this.state.page);
  930. },
  931. visitOk() {
  932. this.setState({
  933. visible: false
  934. });
  935. this.loadData(this.state.page);
  936. },
  937. resets() {
  938. this.state.orderNo = "";
  939. this.state.customerName = "";
  940. this.state.departmenttSearch = undefined;
  941. this.state.releaseDate[0] = undefined;
  942. this.state.releaseDate[1] = undefined;
  943. this.Cascaders.empty();
  944. },
  945. //部门
  946. departmentList() {
  947. this.setState({
  948. loading: true
  949. });
  950. $.ajax({
  951. method: "get",
  952. dataType: "json",
  953. crossDomain: false,
  954. url: globalConfig.context + "/api/admin/organization/selectSuperId",
  955. data: {},
  956. success: function (data) {
  957. let thedata = data.data;
  958. let theArr = [];
  959. if (!thedata) {
  960. if (data.error && data.error.length) {
  961. message.warning(data.error[0].message);
  962. }
  963. thedata = {};
  964. } else {
  965. thedata.map(function (item, index) {
  966. theArr.push({
  967. key: index,
  968. name: item.name,
  969. id: item.id
  970. });
  971. });
  972. }
  973. this.setState({
  974. departmentArr: theArr
  975. });
  976. }.bind(this)
  977. }).always(
  978. function () {
  979. this.setState({
  980. loading: false
  981. });
  982. }.bind(this)
  983. );
  984. },
  985. changeList(arr) {
  986. const newArr = [];
  987. this.state.columns.forEach(item => {
  988. arr.forEach(val => {
  989. if (val === item.title) {
  990. newArr.push(item);
  991. }
  992. });
  993. });
  994. this.setState({
  995. changeList: newArr
  996. });
  997. },
  998. downImg() {
  999. let num = 0;
  1000. for (let i = 0; i < this.state.orgCodeUrl.length; i++) {
  1001. if (this.state.orgCodeUrl[i].url == this.state.previewImage) {
  1002. num = i;
  1003. }
  1004. }
  1005. if (num == this.state.orgCodeUrl.length - 1) {
  1006. return message.warning("已经是最后一张了哦");
  1007. }
  1008. this.state.previewImage = this.state.orgCodeUrl[num + 1].url;
  1009. this.setState({
  1010. previewImage: this.state.previewImage,
  1011. rotateDeg: 0,
  1012. });
  1013. },
  1014. upImg() {
  1015. let num = 0;
  1016. for (let i = 0; i < this.state.orgCodeUrl.length; i++) {
  1017. if (this.state.orgCodeUrl[i].url == this.state.previewImage) {
  1018. num = i;
  1019. }
  1020. }
  1021. if (num == 0) {
  1022. return message.warning("已经是第一张了哦");
  1023. }
  1024. this.state.previewImage = this.state.orgCodeUrl[num - 1].url;
  1025. this.setState({
  1026. previewImage: this.state.previewImage,
  1027. rotateDeg: 0,
  1028. });
  1029. },
  1030. rotate() {
  1031. let rotateDeg = this.state.rotateDeg + 90;
  1032. this.setState({
  1033. rotateDeg,
  1034. });
  1035. },
  1036. downImgs() {
  1037. let num = 0;
  1038. for (let i = 0; i < this.state.replenishUrl.length; i++) {
  1039. if (this.state.replenishUrl[i].url == this.state.previewImage) {
  1040. num = i;
  1041. }
  1042. }
  1043. if (num == this.state.replenishUrl.length - 1) {
  1044. return message.warning("已经是最后一张了哦");
  1045. }
  1046. this.state.previewImage = this.state.replenishUrl[num + 1].url;
  1047. this.setState({
  1048. previewImage: this.state.previewImage,
  1049. rotateDeg: 0,
  1050. });
  1051. },
  1052. upImgs() {
  1053. let num = 0;
  1054. for (let i = 0; i < this.state.replenishUrl.length; i++) {
  1055. if (this.state.replenishUrl[i].url == this.state.previewImage) {
  1056. num = i;
  1057. }
  1058. }
  1059. if (num == 0) {
  1060. return message.warning("已经是第一张了哦");
  1061. }
  1062. this.state.previewImage = this.state.replenishUrl[num - 1].url;
  1063. this.setState({
  1064. previewImage: this.state.previewImage,
  1065. rotateDeg: 0,
  1066. });
  1067. },
  1068. rotates() {
  1069. let rotateDeg = this.state.rotateDeg + 90;
  1070. this.setState({
  1071. rotateDeg,
  1072. });
  1073. },
  1074. getOrgCodeUrl(e) {
  1075. this.setState({ orgCodeUrl: e });
  1076. },
  1077. getReplenishUrl(e) {
  1078. this.setState({ replenishUrl: e });
  1079. },
  1080. // getVoucherUrl(e) {
  1081. // this.setState({ voucherUrl: e });
  1082. // },
  1083. // 可展开颜色不同
  1084. addRowColor(record) {
  1085. if (!!record.splitList && record.splitList.length > 0) {
  1086. return 'light'
  1087. } else {
  1088. return 'dark'
  1089. }
  1090. },
  1091. render() {
  1092. const expandedRowRenderVip = (e) => {
  1093. const data = e.splitList;
  1094. let columns = [];
  1095. if (data instanceof Array && data.length) {
  1096. if (e.cSort == 6) {
  1097. columns = [
  1098. {
  1099. title: "负责人",
  1100. dataIndex: "receiverName",
  1101. key: "receiverName",
  1102. },
  1103. {
  1104. title: "负责人电话",
  1105. dataIndex: "receiverMobile",
  1106. key: "receiverMobile",
  1107. },
  1108. {
  1109. title: "项目状态",
  1110. dataIndex: "projectStatus",
  1111. key: "projectStatus",
  1112. render: (text) => {
  1113. return getProjectName(text);
  1114. },
  1115. },
  1116. {
  1117. title: "本次派单",
  1118. dataIndex: "serviceYear",
  1119. key: "serviceYear",
  1120. },
  1121. {
  1122. title: "项目说明",
  1123. dataIndex: "taskComment",
  1124. key: "taskComment",
  1125. render: (text) => {
  1126. return (
  1127. <Tooltip title={text}>
  1128. <div
  1129. // style={{
  1130. // width: 100,
  1131. // overflow: "hidden",
  1132. // whiteSpace: "nowrap",
  1133. // textOverflow: "ellipsis",
  1134. // }}
  1135. >{text}</div>
  1136. </Tooltip>
  1137. )
  1138. },
  1139. },
  1140. {
  1141. title: "操作",
  1142. dataIndex: "caozuo",
  1143. key: "caouzo",
  1144. width: 100,
  1145. render: (text, record) => {
  1146. return (
  1147. <div>
  1148. {(this.state.processStatus == 5 || record.taskStatus == 0) &&
  1149. <Button
  1150. type="primary"
  1151. onClick={e => {
  1152. e.stopPropagation(), this.evaluate(record);
  1153. }}
  1154. >
  1155. 分配任务
  1156. </Button>
  1157. }
  1158. </div>
  1159. );
  1160. }
  1161. }
  1162. ];
  1163. } else {
  1164. columns = [
  1165. {
  1166. title: "子项目名称",
  1167. dataIndex: "taskName",
  1168. key: "taskName"
  1169. },
  1170. {
  1171. title: "子项目数量",
  1172. dataIndex: "commodityQuantity",
  1173. key: "commodityQuantity"
  1174. },
  1175. {
  1176. title: "拆分操作人",
  1177. dataIndex: "splitAname",
  1178. key: "splitAname"
  1179. },
  1180. {
  1181. title: "项目负责人",
  1182. dataIndex: "receiverName",
  1183. key: "receiverName"
  1184. },
  1185. {
  1186. title: "拆分时间",
  1187. dataIndex: "splitTimes",
  1188. key: "splitTimes"
  1189. }
  1190. ]
  1191. }
  1192. return (
  1193. <Table
  1194. columns={columns}
  1195. dataSource={data}
  1196. pagination={false}
  1197. />
  1198. );
  1199. } else {
  1200. columns = [];
  1201. return (
  1202. <p
  1203. style={{ fontWeight: "bold", color: "red", textAlign: "center" }}
  1204. >
  1205. {e.cSort == 6 ? "暂无派单" : "此项目暂未拆分"}
  1206. </p>
  1207. );
  1208. }
  1209. };
  1210. const rowSelection = {
  1211. selectedRowKeys: this.state.selectedRowKeys,
  1212. onChange: (selectedRowKeys, selectedRows) => {
  1213. this.setState({
  1214. selectedRows: selectedRows.slice(-1),
  1215. selectedRowKeys: selectedRowKeys.slice(-1)
  1216. });
  1217. }
  1218. };
  1219. const formItemLayout = {
  1220. labelCol: { span: 10 },
  1221. wrapperCol: { span: 14 }
  1222. };
  1223. const dataSources = this.state.customerArr || [];
  1224. const options = dataSources.map((group, index) => (
  1225. <Select.Option key={index} value={group.bname}>
  1226. {group.bname}
  1227. </Select.Option>
  1228. ));
  1229. const FormItem = Form.Item;
  1230. const { RangePicker } = DatePicker;
  1231. let departmentArr = this.state.departmentArr || [];
  1232. return (
  1233. <div className="user-content">
  1234. {this.state.resVisible ? (
  1235. <ResolutionDetail
  1236. cancel={this.resCancel}
  1237. detail={this.state.resRecord}
  1238. visible={this.state.resVisible}
  1239. id={this.state.resRecord.orderNo}
  1240. />
  1241. ) : (
  1242. ""
  1243. )}
  1244. <ShowModalDiv ShowModal={this.state.showModal} />
  1245. <div className="content-title" style={{ marginBottom: 10 }}>
  1246. <span style={{ fontWeight: 900, fontSize: 16 }}>项目派单管理</span>
  1247. </div>
  1248. <Tabs defaultActiveKey="1" onChange={this.callback} className="test">
  1249. <TabPane tab="搜索" key="1">
  1250. <div className="user-search">
  1251. <Input
  1252. placeholder="订单编号"
  1253. value={this.state.orderNoSearch}
  1254. onChange={(e) => {
  1255. this.setState({ orderNoSearch: e.target.value });
  1256. }}
  1257. />
  1258. <Input
  1259. placeholder="客户名称"
  1260. value={this.state.customerName}
  1261. style={{ marginLeft: 10 }}
  1262. onChange={(e) => {
  1263. this.setState({ customerName: e.target.value });
  1264. }}
  1265. />
  1266. <Cascaders
  1267. ref={node => this.Cascaders = node}
  1268. placeholder="选择部门"
  1269. id="id"
  1270. name="name"
  1271. children="list"
  1272. height={28}
  1273. onSel={(e) => {
  1274. this.setState({
  1275. departmenttSearch: JSON.stringify(e),
  1276. });
  1277. }}
  1278. />
  1279. {/* <Select
  1280. placeholder="选择部门"
  1281. style={{ width: 200, marginRight: "10px" }}
  1282. value={this.state.departmenttSearch}
  1283. onChange={(e) => {
  1284. this.setState({ departmenttSearch: e });
  1285. }}
  1286. >
  1287. {departmentArr.map(function (item) {
  1288. return (
  1289. <Select.Option key={item.id}>{item.name}</Select.Option>
  1290. );
  1291. })}
  1292. </Select> */}
  1293. <Select
  1294. onChange={(e) => {
  1295. this.setState({ distribution: e });
  1296. }}
  1297. style={{ width: 160, marginRight: 5 }}
  1298. placeholder="分派状态"
  1299. value={this.state.distribution}
  1300. >
  1301. <Option value="0">未审核</Option>
  1302. <Option value="1">未分配</Option>
  1303. <Option value="2">部分分配</Option>
  1304. <Option value="3">全部分配</Option>
  1305. </Select>
  1306. <Button type="primary" onClick={this.search}>
  1307. 搜索
  1308. </Button>
  1309. <Button onClick={this.reset}>重置</Button>
  1310. <span>
  1311. 更多搜索
  1312. <Switch
  1313. defaultChecked={false}
  1314. onChange={this.searchSwitch.bind(this)}
  1315. />
  1316. </span>
  1317. <div
  1318. className="search-more"
  1319. style={this.state.searchMore ? { display: "none" } : {}}
  1320. >
  1321. <span>订单时间 :</span>
  1322. <RangePicker
  1323. value={[
  1324. this.state.releaseDate[0]
  1325. ? moment(this.state.releaseDate[0])
  1326. : null,
  1327. this.state.releaseDate[1]
  1328. ? moment(this.state.releaseDate[1])
  1329. : null,
  1330. ]}
  1331. onChange={(data, dataString) => {
  1332. this.setState({ releaseDate: dataString });
  1333. }}
  1334. />
  1335. </div>
  1336. </div>
  1337. </TabPane>
  1338. <TabPane tab="更改表格显示数据" key="2">
  1339. <div style={{ marginLeft: 10 }}>
  1340. <ChooseList
  1341. columns={this.state.columns}
  1342. changeFn={this.changeList}
  1343. changeList={this.state.changeList}
  1344. top={55}
  1345. margin={11}
  1346. />
  1347. </div>
  1348. </TabPane>
  1349. </Tabs>
  1350. <div className="patent-table">
  1351. <Spin spinning={this.state.loading}>
  1352. <Table
  1353. columns={
  1354. this.state.changeList
  1355. ? this.state.changeList
  1356. : this.state.columns
  1357. }
  1358. style={{
  1359. cursor: 'pointer',
  1360. }}
  1361. dataSource={this.state.dataSource}
  1362. pagination={this.state.pagination}
  1363. onRowClick={this.tableRowClick.bind(this)}
  1364. bordered
  1365. size="small"
  1366. />
  1367. </Spin>
  1368. </div>
  1369. <Assign
  1370. title="项目"
  1371. type={0}
  1372. selApi="/api/admin/orderProject/projectDistribution"
  1373. data={this.state.assignData}
  1374. showDesc={this.state.assignVisible}
  1375. closeDesc={this.closeAssign.bind(this)}
  1376. fenpaiData={8}
  1377. roleName={"咨询师经理"}
  1378. requestMethod={"post"}
  1379. reset={this.reset}
  1380. />
  1381. {this.state.visible ?
  1382. <Modal
  1383. className="customeDetails"
  1384. footer=""
  1385. title="订单详情"
  1386. width="1200px"
  1387. visible={this.state.visible}
  1388. onOk={this.visitOk}
  1389. onCancel={this.visitCancel}
  1390. >
  1391. <Form
  1392. layout="horizontal"
  1393. onSubmit={this.handleSubmit}
  1394. id="demand-form"
  1395. style={{ paddingBottom: "40px" }}
  1396. >
  1397. <Spin spinning={this.state.loading}>
  1398. <div className="clearfix">
  1399. <FormItem
  1400. className="half-item"
  1401. {...formItemLayout}
  1402. label="订单编号"
  1403. >
  1404. <span>{this.state.orderNo}</span>
  1405. </FormItem>
  1406. <FormItem
  1407. className="half-item"
  1408. {...formItemLayout}
  1409. label="合同编号"
  1410. >
  1411. <span>{this.state.contractNo}</span>
  1412. </FormItem>
  1413. <FormItem
  1414. className="half-item"
  1415. {...formItemLayout}
  1416. label="客户名称"
  1417. >
  1418. <span>{this.state.userName}</span>
  1419. </FormItem>
  1420. <FormItem
  1421. className="half-item"
  1422. {...formItemLayout}
  1423. label="销售类型"
  1424. >
  1425. <span>
  1426. {(["私有客户-", "签单客户-"][this.state.userType] || " ") +
  1427. (salesList[this.state.salesType] || "")}
  1428. {
  1429. this.state.other != null && this.state.other != "" &&
  1430. <Tooltip title={this.state.other}>
  1431. <span>
  1432. {"(" + this.state.other.toString().slice(0, 10) + (this.state.other.toString().length > 9 ? "...)" : ")")}
  1433. </span>
  1434. </Tooltip>
  1435. }
  1436. </span>
  1437. </FormItem>
  1438. <FormItem
  1439. className="half-item"
  1440. {...formItemLayout}
  1441. label="合同签订时间"
  1442. >
  1443. <span>{this.state.signDate}</span>
  1444. </FormItem>
  1445. <FormItem
  1446. className="half-item"
  1447. {...formItemLayout}
  1448. label="流程状态"
  1449. >
  1450. <span>{getProcessStatus(this.state.processStatus, this.state.examineName, this.state.approval)}</span>
  1451. <FlowChart
  1452. orderNo={this.state.orderNo}
  1453. />
  1454. </FormItem>
  1455. <FormItem
  1456. className="half-item"
  1457. {...formItemLayout}
  1458. label="结算状态"
  1459. >
  1460. <span>
  1461. {getLiquidationStatus(this.state.liquidationStatus)}
  1462. </span>
  1463. </FormItem>
  1464. <FormItem
  1465. className="half-item"
  1466. {...formItemLayout}
  1467. label="企业联系人"
  1468. >
  1469. <span>{this.state.contacts}</span>
  1470. </FormItem>
  1471. <FormItem
  1472. className="half-item"
  1473. {...formItemLayout}
  1474. label="联系人电话"
  1475. >
  1476. <span>{this.state.contactMobile}</span>
  1477. </FormItem>
  1478. <FormItem
  1479. className="half-item"
  1480. {...formItemLayout}
  1481. label="企业法人"
  1482. >
  1483. <span>{this.state.legalPerson}</span>
  1484. </FormItem>
  1485. <FormItem
  1486. className="half-item"
  1487. {...formItemLayout}
  1488. label="法人电话"
  1489. >
  1490. <span>{this.state.legalPersonTel}</span>
  1491. </FormItem>
  1492. <FormItem
  1493. className="half-item"
  1494. {...formItemLayout}
  1495. label="签单金额(万元)"
  1496. >
  1497. <span>{this.state.totalAmount}</span>
  1498. </FormItem>
  1499. <FormItem
  1500. className="half-item"
  1501. {...formItemLayout}
  1502. label="首付金额(万元)"
  1503. >
  1504. <span>{this.state.firstAmount}</span>
  1505. </FormItem>
  1506. <FormItem
  1507. className="half-item"
  1508. {...formItemLayout}
  1509. label="特批立项"
  1510. >
  1511. <span>{getApprovedState(this.state.approval)}</span>
  1512. </FormItem>
  1513. <FormItem
  1514. className="half-item"
  1515. {...formItemLayout}
  1516. label="已收款项(万元)"
  1517. >
  1518. <span>{this.state.settlementAmount}</span>
  1519. </FormItem>
  1520. <div className="clearfix">
  1521. <FormItem
  1522. style={{ height: "auto" }}
  1523. labelCol={{ span: 5 }}
  1524. wrapperCol={{ span: 19 }}
  1525. label="订单留言"
  1526. >
  1527. <p style={{ width: 500, wordWrap: "break-word" }}>
  1528. {this.state.orderRemarks}
  1529. </p>
  1530. </FormItem>
  1531. </div>
  1532. <div className="clearfix">
  1533. {this.state.processStatus == 0 ? (
  1534. <div>
  1535. <FormItem
  1536. labelCol={{ span: 5 }}
  1537. wrapperCol={{ span: 19 }}
  1538. label={
  1539. <span>
  1540. <strong style={{ color: "#f00" }}>
  1541. *
  1542. </strong>
  1543. 合同扫描件
  1544. </span>
  1545. }
  1546. >
  1547. <PicturesWall
  1548. domId={"addService1"}
  1549. fileList={this.getOrgCodeUrl}
  1550. pictureUrl={this.state.orgCodeUrl}
  1551. url="/api/admin/order/uploadOrderImg"
  1552. sign=""
  1553. />
  1554. <p>图片建议:要清晰。</p>
  1555. <Button
  1556. style={{
  1557. float: "right",
  1558. marginRight: "140px",
  1559. marginTop: "20px",
  1560. }}
  1561. onClick={this.getOrderLog}
  1562. >
  1563. 查看订单日志
  1564. </Button>
  1565. </FormItem>
  1566. {/* 高新纯咨询合同说明详情 */}
  1567. <Gxczx
  1568. knowledgeServices={this.state.knowledgeServices}
  1569. auditServices={this.state.auditServices}
  1570. addDeductionServices={this.state.addDeductionServices}
  1571. knowledgeOther={this.state.knowledgeOther}
  1572. auditOther={this.state.auditOther}
  1573. addDeductionOther={this.state.addDeductionOther}
  1574. />
  1575. <FormItem
  1576. labelCol={{ span: 5 }}
  1577. wrapperCol={{ span: 19 }}
  1578. label={<span>补充协议</span>}
  1579. >
  1580. <PicturesWall
  1581. domId={"addService2"}
  1582. fileList={this.getReplenishUrl}
  1583. pictureUrl={this.state.replenishUrl}
  1584. url="/api/admin/order/uploadOrderImg"
  1585. sign=""
  1586. />
  1587. <p>图片建议:要清晰。</p>
  1588. </FormItem>
  1589. </div>
  1590. ) : (
  1591. <div>
  1592. <FormItem
  1593. labelCol={{ span: 5 }}
  1594. wrapperCol={{ span: 19 }}
  1595. label="合同扫描件"
  1596. >
  1597. <div
  1598. style={{
  1599. paddingTop: "10px",
  1600. paddingBottom: "10px",
  1601. }}
  1602. >
  1603. {this.state.orgCodeUrl &&
  1604. this.state.visible &&
  1605. this.state.activeKey === "1" ? (
  1606. <ImgList
  1607. domId={"addService3"}
  1608. fileList={this.state.orgCodeUrl}
  1609. ItemWidth={"96px"}
  1610. />
  1611. ) : (
  1612. <div />
  1613. )}
  1614. </div>
  1615. <Button
  1616. style={{
  1617. float: "right",
  1618. marginRight: "140px",
  1619. marginTop: "20px",
  1620. }}
  1621. onClick={this.getOrderLog}
  1622. >
  1623. 查看订单日志
  1624. </Button>
  1625. </FormItem>
  1626. {/* 高新纯咨询合同说明详情 */}
  1627. <Gxczx
  1628. knowledgeServices={this.state.knowledgeServices}
  1629. auditServices={this.state.auditServices}
  1630. addDeductionServices={this.state.addDeductionServices}
  1631. knowledgeOther={this.state.knowledgeOther}
  1632. auditOther={this.state.auditOther}
  1633. addDeductionOther={this.state.addDeductionOther}
  1634. />
  1635. <FormItem
  1636. style={{ right: "15px" }}
  1637. labelCol={{ span: 5 }}
  1638. wrapperCol={{ span: 19 }}
  1639. label="补充协议"
  1640. >
  1641. <div
  1642. style={{
  1643. paddingTop: "10px",
  1644. paddingBottom: "10px",
  1645. }}
  1646. >
  1647. {this.state.visible &&
  1648. this.state.activeKey === "1" &&
  1649. this.state.replenishUrl ? (
  1650. <ImgList
  1651. domId={"addService4"}
  1652. fileList={this.state.replenishUrl}
  1653. ItemWidth={"96px"}
  1654. />
  1655. ) : (
  1656. <div />
  1657. )}
  1658. </div>
  1659. </FormItem>
  1660. </div>
  1661. )}
  1662. </div>
  1663. <ContentUrl
  1664. processStatus={2}
  1665. domId={"projectsContents"}
  1666. contentUrl={this.state.contentUrl}
  1667. imgId={"projectsContentsImg"}
  1668. />
  1669. <div className="clearfix">
  1670. <FormItem
  1671. className="half-item"
  1672. {...formItemLayout}
  1673. label="订单负责人"
  1674. >
  1675. <span>{this.state.salesmanName}</span>
  1676. </FormItem>
  1677. <FormItem
  1678. className="half-item"
  1679. {...formItemLayout}
  1680. label="订单负责人电话"
  1681. >
  1682. <span>{this.state.salesmanMobile}</span>
  1683. </FormItem>
  1684. <FormItem
  1685. className="half-item"
  1686. {...formItemLayout}
  1687. label="订单部门"
  1688. >
  1689. <span>{this.state.depName}</span>
  1690. </FormItem>
  1691. </div>
  1692. <div className="clearfix">
  1693. <FormItem
  1694. className="half-item"
  1695. {...formItemLayout}
  1696. label="当前财务负责人"
  1697. >
  1698. <span>{this.state.nowFinance}</span>
  1699. </FormItem>
  1700. <FormItem
  1701. className="half-item"
  1702. {...formItemLayout}
  1703. label="当前财务负责人电话"
  1704. >
  1705. <span>{this.state.nowFinanceMobile}</span>
  1706. </FormItem>
  1707. </div>
  1708. <div className="clearfix">
  1709. <FormItem
  1710. className="half-item"
  1711. {...formItemLayout}
  1712. style={{ opacity: ".5" }}
  1713. label="原订单负责人"
  1714. >
  1715. <span>{this.state.oldSalesmanName}</span>
  1716. </FormItem>
  1717. <FormItem
  1718. className="half-item"
  1719. {...formItemLayout}
  1720. style={{ opacity: ".5" }}
  1721. label="原订单负责人电话"
  1722. >
  1723. <span>{this.state.oldSalesmanMobile}</span>
  1724. </FormItem>
  1725. </div>
  1726. <div className="clearfix">
  1727. <FormItem
  1728. className="half-item"
  1729. {...formItemLayout}
  1730. style={{ opacity: ".5" }}
  1731. label="实际财务操作人"
  1732. >
  1733. <span>{this.state.financeName}</span>
  1734. </FormItem>
  1735. <FormItem
  1736. className="half-item"
  1737. {...formItemLayout}
  1738. style={{ opacity: ".5" }}
  1739. label="实际财务操作人电话"
  1740. >
  1741. <span>{this.state.financeMobile}</span>
  1742. </FormItem>
  1743. </div>
  1744. <OrderCoor orderNo={this.state.orderNos} />
  1745. {
  1746. <div>
  1747. <span style={{ marginLeft: "50px", fontSize: "20px" }}>
  1748. 项目业务
  1749. </span>
  1750. {
  1751. <Button
  1752. type="primary"
  1753. onClick={this.addDetailed}
  1754. style={{ float: "right", marginRight: "50px" }}
  1755. >
  1756. 添加项目明细
  1757. </Button>
  1758. }
  1759. </div>
  1760. }
  1761. <div className="patent-table">
  1762. <Spin spinning={this.state.loading}>
  1763. <Table
  1764. columns={this.state.columnsX}
  1765. dataSource={this.state.dataSourceX}
  1766. pagination={this.state.paginations}
  1767. onRowClick={this.tableRowClickX}
  1768. expandedRowRender={expandedRowRenderVip}
  1769. rowClassName={this.addRowColor}
  1770. style={{
  1771. cursor: 'pointer',
  1772. }}
  1773. bordered
  1774. size={"small"}
  1775. />
  1776. </Spin>
  1777. </div>
  1778. </div>
  1779. </Spin>
  1780. </Form>
  1781. </Modal> : <div />}
  1782. {this.state.noVisible ? <Modal
  1783. maskClosable={false}
  1784. visible={this.state.noVisible}
  1785. onOk={this.noCancel}
  1786. onCancel={this.noCancel}
  1787. width="400px"
  1788. title={"驳回理由"}
  1789. footer=""
  1790. className="admin-desc-content"
  1791. >
  1792. <Form layout="horizontal" id="demand-form">
  1793. <Spin spinning={this.state.loading}>
  1794. <div className="clearfix">
  1795. <FormItem
  1796. labelCol={{ span: 4 }}
  1797. wrapperCol={{ span: 16 }}
  1798. label="拒绝理由"
  1799. >
  1800. <Input
  1801. type="textarea"
  1802. placeholder="请输入拒绝理由"
  1803. rows={4}
  1804. value={this.state.reason}
  1805. onChange={(e) => {
  1806. this.setState({ reason: e.target.value });
  1807. }}
  1808. />
  1809. </FormItem>
  1810. </div>
  1811. <div className="clearfix">
  1812. <Button
  1813. className="cancel"
  1814. type="primary"
  1815. onClick={this.examOks}
  1816. style={{ marginLeft: "50px" }}
  1817. htmlType="submit"
  1818. >
  1819. 确定
  1820. </Button>
  1821. <Button
  1822. className="cancel"
  1823. type="ghost"
  1824. onClick={this.noCancel}
  1825. style={{ marginLeft: "50px" }}
  1826. >
  1827. 取消
  1828. </Button>
  1829. </div>
  1830. </Spin>
  1831. </Form>
  1832. </Modal> : <div />}
  1833. {this.state.checkVisible &&
  1834. <Modal
  1835. title="审核订单"
  1836. visible={this.state.checkVisible}
  1837. onOk={this.checkOk}
  1838. confirmLoading={this.state.loading}
  1839. okText={"通过"}
  1840. onCancel={() => {
  1841. this.setState({
  1842. checkVisible: false,
  1843. checkData: "",
  1844. });
  1845. }}
  1846. >
  1847. <TextArea
  1848. value={this.state.checkData}
  1849. onChange={(e, recard) => {
  1850. this.setState({
  1851. checkData: e.target.value,
  1852. });
  1853. }}
  1854. placeholder="请填写审核内容"
  1855. />
  1856. </Modal>}
  1857. <OrderRiZi
  1858. dataSourcerizhi={this.state.dataSourcerizhi}
  1859. closeOrderLog={this.closeOrderLog}
  1860. visible={this.state.rizhivisible}
  1861. loading={this.state.loading}
  1862. />
  1863. {
  1864. this.state.projectOperationVisible &&
  1865. <NewAddProject
  1866. readOnly={this.state.dataInfor && Object.keys(this.state.dataInfor).length > 0 && this.state.processStatus !== 0}
  1867. orderNo={this.state.orderNo}
  1868. visible={this.state.projectOperationVisible}
  1869. newData={this.state.newData}
  1870. dataInfor={this.state.dataInfor}
  1871. onCancel={this.nextCancel}
  1872. />
  1873. }
  1874. {
  1875. this.state.infoVisible &&
  1876. <NewEditProject
  1877. readOnly={this.state.dataInfor && Object.keys(this.state.dataInfor).length > 0 && this.state.processStatus !== 0}
  1878. orderNo={this.state.orderNo}
  1879. visible={this.state.infoVisible}
  1880. dataInfor={this.state.dataInfor}
  1881. onCancel={this.nextCancel}
  1882. />
  1883. // <ProjectOperation
  1884. // readOnly={this.state.dataInfor && Object.keys(this.state.dataInfor).length > 0 && this.state.processStatus !== 0}
  1885. // orderNo={this.state.orderNo}
  1886. // visible={this.state.infoVisible}
  1887. // dataInfor={this.state.dataInfor}
  1888. // onCancel={this.nextCancel}
  1889. // />
  1890. }
  1891. </div>
  1892. );
  1893. }
  1894. });
  1895. export default PaiDan;