projectAssignment.jsx 54 KB

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