shouKuang.jsx 68 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432
  1. import React from "react";
  2. import $ from "jquery/src/ajax";
  3. import moment from "moment";
  4. import "./public.less";
  5. import "./shouKuan.less";
  6. import {
  7. Button,
  8. Form,
  9. Input,
  10. Spin,
  11. Table,
  12. Select,
  13. message,
  14. DatePicker,
  15. Modal,
  16. Tabs,
  17. Col,
  18. Tag,
  19. Popconfirm
  20. } from "antd";
  21. import OrderDesc from "../orderDetail/orderDesc";
  22. import Receivable from "./receivable";
  23. import Assign from "@/manageCenter/publicComponent/assign";
  24. import ReactToPrint from "react-to-print";
  25. import {
  26. getLiquidationStatus,
  27. getProcessStatus,
  28. getApproval,
  29. getInvoiceStatus,
  30. getTransactionProject,
  31. getTaskStatus,
  32. getNewOrderStatus,
  33. getProjectStatus,
  34. getjiedian
  35. } from "@/tools";
  36. import { ChooseList } from "../../order/orderNew/chooseList"
  37. import Project from "../../../../component/project"
  38. import { throws } from "assert";
  39. const FormItem = Form.Item;
  40. const { TabPane } = Tabs;
  41. const { TextArea } = Input;
  42. const ShouKuang = React.createClass({
  43. departmentList() {
  44. // this.setState({
  45. // loading: true
  46. // });
  47. $.ajax({
  48. method: "get",
  49. dataType: "json",
  50. crossDomain: false,
  51. url: globalConfig.context + "/api/admin/organization/selectSuperId",
  52. data: {},
  53. success: function (data) {
  54. let thedata = data.data;
  55. let theArr = [];
  56. if (!thedata) {
  57. if (data.error && data.error.length) {
  58. message.warning(data.error[0].message);
  59. }
  60. } else {
  61. thedata.map(function (item, index) {
  62. theArr.push({
  63. key: index,
  64. name: item.name,
  65. id: item.id
  66. });
  67. });
  68. }
  69. this.setState({
  70. departmentArr: theArr
  71. });
  72. }.bind(this)
  73. }).always(
  74. function () {
  75. // this.setState({
  76. // loading: false
  77. // });
  78. }.bind(this)
  79. );
  80. },
  81. loadData(pageNo, pageSize) {
  82. this.state.data = [];
  83. this.state.pagination.pageSize = 10;
  84. this.setState({
  85. // selectedRowKeys: [],
  86. // selectedRowKey: [],
  87. page: pageNo || this.state.pageNo,
  88. loadingA: true,
  89. pagination: this.state.pagination
  90. });
  91. $.ajax({
  92. method: "get",
  93. dataType: "json",
  94. crossDomain: false,
  95. url: globalConfig.context + "/api/admin/financial/financeList",
  96. data: {
  97. pageNo: pageNo || 1,
  98. pageSize: pageSize || this.state.pagination.pageSize,
  99. buyerName: this.state.nameSearch, //客户名称
  100. orderNo: this.state.orderNoSearch,
  101. startTime: this.state.releaseDate[0],
  102. endTime: this.state.releaseDate[1],
  103. startFinalReceivablesTime: this.state.shouKuanDate[0],
  104. endFinalReceivablesTime: this.state.shouKuanDate[1],
  105. departmentId: this.state.departmenttList,
  106. processStatus: this.state.processStatusSearch,
  107. contractNo: this.state.contractNoSearch,
  108. liquidationStatus: this.state.liquidationStatus,
  109. amountStatus: this.state.amountStatus
  110. },
  111. success: function (data) {
  112. let theArr = [];
  113. if (!data.data || !data.data.pagination.list) {
  114. if (data.error && data.error.length) {
  115. message.warning(data.error[0].message);
  116. }
  117. } else {
  118. for (let i = 0; i < data.data.pagination.list.length; i++) {
  119. let thisdata = data.data.pagination.list[i];
  120. theArr.push({
  121. key: thisdata.orderNo,
  122. orderNo: thisdata.orderNo,
  123. orderType: thisdata.orderType,
  124. orderStatus: thisdata.orderStatus,
  125. sellerName: thisdata.sellerName,
  126. processStatus: thisdata.processStatus,
  127. liquidationStatus: thisdata.liquidationStatus,
  128. approval: thisdata.approval,
  129. buyerName: thisdata.buyerName,
  130. actuallyTotalAmount: thisdata.actuallyTotalAmount,
  131. signTime: thisdata.signTime,
  132. companyId: thisdata.companyId,
  133. companyName: thisdata.companyName,
  134. buyerId: thisdata.buyerId,
  135. buyerName: thisdata.buyerName,
  136. contractNo: thisdata.contractNo,
  137. createTime: thisdata.createTime,
  138. departmentName: thisdata.departmentName,
  139. invoiceAmount: thisdata.invoiceAmount,
  140. finalReceivables: thisdata.finalReceivables,
  141. finalReceivablesTime: thisdata.finalReceivablesTime,
  142. signTotalAmount: thisdata.signTotalAmount,
  143. financeName: thisdata.financeName,
  144. backStatus: thisdata.backStatus
  145. });
  146. }
  147. }
  148. this.state.pagination.current = data.data.pagination.pageNo;
  149. this.state.pagination.total = data.data.pagination.totalCount;
  150. if (
  151. data.data &&
  152. data.data.pagination.list &&
  153. !data.data.pagination.list.length
  154. ) {
  155. this.state.pagination.current = 0;
  156. this.state.pagination.total = 0;
  157. }
  158. this.setState({
  159. totalPage: data.data.pagination.totalPage,
  160. dataSource: theArr,
  161. pagination: this.state.pagination,
  162. totalHui: data.data.count ? data.data.count.signTotalAmount : 0,
  163. hui: data.data.count ? data.data.count.actuallyTotalAmount : 0
  164. });
  165. }.bind(this)
  166. }).always(
  167. function () {
  168. // window.setTimeout(() => {
  169. this.setState({
  170. loadingA: false
  171. });
  172. // },5000)
  173. }.bind(this)
  174. );
  175. },
  176. getInitialState() {
  177. return {
  178. //默认搜索无流程状态
  179. processStatusSearch: [],
  180. searchMore: true,
  181. dvisible: false,
  182. pageNo: 1,
  183. assignVisibleX: false,
  184. assignVisibleY: false,
  185. releaseDate: [],
  186. shouKuanDate: [],
  187. assignDataX: [],
  188. assignDataY: [],
  189. totalPage: 0,
  190. // processStatusSearch: "3",
  191. boHuivisible: false,
  192. selectedRowKeys: [],
  193. selectedRows: [],
  194. loading: false,
  195. loadingA: false,
  196. pagination: {
  197. defaultCurrent: 1,
  198. defaultPageSize: 10,
  199. showQuickJumper: true,
  200. pageSize: 10,
  201. onChange: function (page) {
  202. console.log(page);
  203. this.setState({
  204. pageNo: page
  205. })
  206. this.loadData(page);
  207. }.bind(this),
  208. showTotal: function (total) {
  209. return "共" + total + "条数据";
  210. }
  211. },
  212. // 子组件改变的表格title数组
  213. changeList: undefined,
  214. proColumns: [
  215. {
  216. title: "序号",
  217. dataIndex: "key",
  218. key: "key"
  219. },
  220. {
  221. title: "合同编号",
  222. dataIndex: "contractNo",
  223. key: "contractNo"
  224. },
  225. {
  226. title: "订单编号",
  227. dataIndex: "orderNo",
  228. key: "orderNo"
  229. },
  230. // {
  231. // title: "项目编号",
  232. // dataIndex: "id",
  233. // key: "id"
  234. // },
  235. {
  236. title: "客户名称",
  237. dataIndex: "userName",
  238. key: "userName"
  239. },
  240. {
  241. title: "订单负责人",
  242. dataIndex: "salesmanName",
  243. key: "salesmanName"
  244. },
  245. {
  246. title: "是否主项目",
  247. dataIndex: "main",
  248. key: "main",
  249. render: text => {
  250. return text == 0 ? "否" : "是";
  251. }
  252. },
  253. {
  254. title: "项目类别",
  255. dataIndex: "cname",
  256. key: "cname"
  257. },
  258. {
  259. title: "项目名称",
  260. dataIndex: "commodityName",
  261. key: "commodityName"
  262. },
  263. {
  264. title: "项目数量",
  265. dataIndex: "commodityQuantity",
  266. key: "commodityQuantity"
  267. },
  268. {
  269. title: "服务市价",
  270. dataIndex: "commodityPrice",
  271. key: "commodityPrice"
  272. },
  273. {
  274. title: "证书编号",
  275. dataIndex: "certificateNumber",
  276. key: "certificateNumber"
  277. },
  278. {
  279. title: "项目状态",
  280. dataIndex: "projectStatus",
  281. key: "projectStatus",
  282. render: text => {
  283. return getProjectStatus(text);
  284. }
  285. },
  286. {
  287. title: "项目说明",
  288. dataIndex: "taskComment",
  289. key: "taskComment"
  290. },
  291. {
  292. title: "是否外包",
  293. dataIndex: "outsource",
  294. key: "outsource",
  295. render: text => {
  296. if (text == 0) {
  297. return "否"
  298. } else if (text == 1) {
  299. return "是"
  300. }
  301. }
  302. },
  303. {
  304. title: "外包(内部)公司",
  305. dataIndex: "outsourceName",
  306. key: "outsourceName"
  307. },
  308. {
  309. title: "外包(内部)价格",
  310. dataIndex: "outsourcePrice",
  311. key: "outsourcePrice"
  312. }
  313. ],
  314. cuiColumns: [
  315. {
  316. title: "序号",
  317. dataIndex: "key",
  318. key: "key"
  319. },
  320. {
  321. title: "合同编号",
  322. dataIndex: "contractNo",
  323. key: "contractNo"
  324. },
  325. {
  326. title: "订单编号",
  327. dataIndex: "orderNo",
  328. key: "orderNo"
  329. },
  330. {
  331. title: "客户名称",
  332. dataIndex: "userName",
  333. key: "userName"
  334. },
  335. {
  336. title: "订单负责人",
  337. dataIndex: "salesmanName",
  338. key: "salesmanName"
  339. },
  340. {
  341. title: "订单部门",
  342. dataIndex: "depName",
  343. key: "depName"
  344. },
  345. {
  346. title: "订单状态",
  347. dataIndex: "orderStatus",
  348. key: "orderStatus",
  349. render: text => {
  350. return getNewOrderStatus(text);
  351. }
  352. },
  353. {
  354. title: "项目状态",
  355. dataIndex: "projectStatus",
  356. key: "projectStatus",
  357. render: text => {
  358. return getProjectStatus(text);
  359. }
  360. },
  361. {
  362. title: "签单金额",
  363. dataIndex: "totalAmount",
  364. key: "totalAmount"
  365. },
  366. {
  367. title: "结算状态",
  368. dataIndex: "liquidationStatus",
  369. key: "liquidationStatus",
  370. render: text => {
  371. return getLiquidationStatus(text);
  372. }
  373. },
  374. {
  375. title: "已收款",
  376. dataIndex: "settlementAmount",
  377. key: "settlementAmount"
  378. },
  379. {
  380. title: "应收款",
  381. dataIndex: "accountsReceivable",
  382. key: "accountsReceivable"
  383. },
  384. {
  385. title: "催收科目",
  386. dataIndex: "dunSubject",
  387. key: "dunSubject"
  388. // render: text => {
  389. // return getjiedian(text);
  390. // }
  391. },
  392. {
  393. title: "催款状态",
  394. dataIndex: "dunStatus",
  395. key: "dunStatus"
  396. },
  397. {
  398. title: "催收启动时间",
  399. dataIndex: "startDate",
  400. key: "startDate"
  401. }
  402. ],
  403. timeColumns: [
  404. {
  405. title: "合同编号",
  406. dataIndex: "contractNo",
  407. key: "contractNo"
  408. },
  409. {
  410. title: "订单编号",
  411. dataIndex: "orderNo",
  412. key: "orderNo"
  413. },
  414. {
  415. title: "客户名称",
  416. dataIndex: "userName",
  417. key: "userName",
  418. render: text => {
  419. return text && text.length > 9 ? text.substr(0, 9) + "..." : text;
  420. }
  421. },
  422. {
  423. title: "订单部门",
  424. dataIndex: "depName",
  425. key: "depName"
  426. },
  427. {
  428. title: "订单负责人",
  429. dataIndex: "salesmanName",
  430. key: "salesmanName"
  431. },
  432. {
  433. title: "项目类别",
  434. dataIndex: "cname",
  435. key: "cname"
  436. },
  437. {
  438. title: "项目编号",
  439. dataIndex: "id",
  440. key: "id"
  441. },
  442. {
  443. title: "项目名称",
  444. dataIndex: "taskName",
  445. key: "taskName"
  446. },
  447. {
  448. title: "项目负责人",
  449. dataIndex: "receiverName",
  450. key: "receiverName"
  451. },
  452. {
  453. title: "项目价格(万元)",
  454. dataIndex: "commodityPrice",
  455. key: "commodityPrice"
  456. },
  457. {
  458. title: "数量(个)",
  459. dataIndex: "commodityQuantity",
  460. key: "commodityQuantity"
  461. },
  462. {
  463. title: "任务状态",
  464. dataIndex: "taskStatus",
  465. key: "taskStatus",
  466. render: text => {
  467. return getTaskStatus(text);
  468. }
  469. },
  470. {
  471. title: "项目状态",
  472. dataIndex: "projectStatus",
  473. key: "projectStatus",
  474. render: text => {
  475. return getProjectStatus(text);
  476. }
  477. },
  478. {
  479. title: "工时",
  480. dataIndex: "hours",
  481. key: "hours"
  482. },
  483. {
  484. title: "是否外包",
  485. dataIndex: "outsource",
  486. key: "outsource",
  487. render: text => {
  488. if (text == 0) {
  489. return "否"
  490. } else if (text == 1) {
  491. return "是"
  492. }
  493. }
  494. },
  495. {
  496. title: "签单日期",
  497. dataIndex: "signTime",
  498. key: "signTime"
  499. },
  500. {
  501. title: "派单日期",
  502. dataIndex: "creteTime",
  503. key: "creteTime"
  504. },
  505. {
  506. title: "分配时间",
  507. dataIndex: "taskDistributionTime",
  508. key: "taskDistributionTime"
  509. },
  510. {
  511. title: "完成时间",
  512. dataIndex: "taskEndTime",
  513. key: "taskEndTime"
  514. }
  515. ],
  516. printColumns: [
  517. {
  518. title: "合同编号",
  519. dataIndex: "contractNo",
  520. key: "contractNo"
  521. },
  522. {
  523. title: "订单编号",
  524. dataIndex: "orderNo",
  525. key: "orderNo"
  526. // fixed: "left"
  527. },
  528. {
  529. title: "客户名称",
  530. dataIndex: "buyerName",
  531. key: "buyerName"
  532. },
  533. {
  534. title: "订单部门",
  535. dataIndex: "departmentName",
  536. key: "departmentName"
  537. },
  538. {
  539. title: "订单负责人",
  540. dataIndex: "sellerName",
  541. key: "sellerName"
  542. },
  543. {
  544. title: "签单日期",
  545. dataIndex: "signTime",
  546. key: "signTime"
  547. },
  548. {
  549. title: "下单日期",
  550. dataIndex: "createTime",
  551. key: "createTime"
  552. },
  553. {
  554. title: "签单金额(万元)",
  555. dataIndex: "signTotalAmount",
  556. key: "signTotalAmount"
  557. },
  558. {
  559. title: "开票金额(万元)",
  560. dataIndex: "invoiceAmount",
  561. key: "invoiceAmount"
  562. },
  563. {
  564. title: "已收款(万元)",
  565. dataIndex: "actuallyTotalAmount",
  566. key: "actuallyTotalAmount"
  567. },
  568. {
  569. title: "最近收款(万元)",
  570. dataIndex: "finalReceivables",
  571. key: "finalReceivables"
  572. },
  573. {
  574. title: "最近收款时间",
  575. dataIndex: "finalReceivablesTime",
  576. key: "finalReceivablesTime"
  577. },
  578. {
  579. title: "结算状态",
  580. dataIndex: "liquidationStatus",
  581. key: "liquidationStatus",
  582. render: text => {
  583. return getLiquidationStatus(text);
  584. }
  585. },
  586. {
  587. title: "流程状态",
  588. dataIndex: "processStatus",
  589. key: "processStatus",
  590. render: text => {
  591. return getProcessStatus(text);
  592. }
  593. },
  594. {
  595. title: "特批状态",
  596. dataIndex: "approval",
  597. key: "approval",
  598. render: text => {
  599. return getApproval(text);
  600. }
  601. }
  602. ],
  603. columns: [
  604. {
  605. title: "合同编号",
  606. dataIndex: "contractNo",
  607. key: "contractNo",
  608. className: "title-table",
  609. fixed: 'left',
  610. },
  611. {
  612. title: "客户名称",
  613. dataIndex: "buyerName",
  614. key: "buyerName",
  615. className: "title-table",
  616. fixed: 'left',
  617. },
  618. {
  619. title: "订单编号",
  620. dataIndex: "orderNo",
  621. key: "orderNo",
  622. className: "title-table"
  623. // fixed: "left"
  624. },
  625. {
  626. title: "特批状态",
  627. dataIndex: "approval",
  628. key: "approval",
  629. className: "title-table",
  630. render: text => {
  631. if (text == 1 || text == 2) {
  632. return <Tag color="#f50">{getApproval(text)}</Tag>;
  633. }
  634. return getApproval(text);
  635. }
  636. },
  637. {
  638. title: "订单部门",
  639. dataIndex: "departmentName",
  640. key: "departmentName",
  641. className: "title-table"
  642. },
  643. {
  644. title: "订单负责人",
  645. dataIndex: "sellerName",
  646. key: "sellerName",
  647. className: "title-table"
  648. },
  649. {
  650. title: "财务负责人",
  651. dataIndex: "financeName",
  652. key: "financeName",
  653. className: "title-table"
  654. },
  655. {
  656. title: "签单日期",
  657. dataIndex: "signTime",
  658. key: "signTime",
  659. className: "title-table"
  660. },
  661. {
  662. title: "下单日期",
  663. dataIndex: "createTime",
  664. key: "createTime",
  665. className: "title-table"
  666. },
  667. {
  668. title: "签单金额(万元)",
  669. dataIndex: "signTotalAmount",
  670. key: "signTotalAmount",
  671. className: "title-table"
  672. },
  673. {
  674. title: "开票金额(万元)",
  675. dataIndex: "invoiceAmount",
  676. key: "invoiceAmount",
  677. className: "title-table"
  678. },
  679. {
  680. title: "已收款(万元)",
  681. dataIndex: "actuallyTotalAmount",
  682. key: "actuallyTotalAmount",
  683. className: "title-table"
  684. },
  685. {
  686. title: "最近收款(万元)",
  687. dataIndex: "finalReceivables",
  688. key: "finalReceivables",
  689. className: "title-table"
  690. },
  691. {
  692. title: "最近收款时间",
  693. dataIndex: "finalReceivablesTime",
  694. key: "finalReceivablesTime",
  695. className: "title-table"
  696. },
  697. {
  698. title: "结算状态",
  699. dataIndex: "liquidationStatus",
  700. key: "liquidationStatus",
  701. className: "title-table",
  702. render: text => {
  703. return getLiquidationStatus(text);
  704. }
  705. },
  706. {
  707. title: "流程状态",
  708. dataIndex: "processStatus",
  709. key: "processStatus",
  710. className: "title-table",
  711. render: text => {
  712. return getProcessStatus(text);
  713. }
  714. },
  715. // {
  716. // title: '订单状态',
  717. // dataIndex: 'orderStatus',
  718. // key: 'orderStatus',
  719. // render: text => { return getNewOrderStatus(text)}
  720. // },
  721. {
  722. title: "操作",
  723. dataIndex: "caozuo",
  724. key: "caouzo",
  725. className: "title-table",
  726. render: (text, recard) => {
  727. return (
  728. <div>
  729. {/* {recard.liquidationStatus < 2 &&
  730. (recard.approval === 1 || recard.approval === 2) ? (
  731. <Button
  732. style={{ background: "rgb(192,192,192)" }}
  733. onClick={e => {
  734. e.stopPropagation(), this.evaluateX(recard);
  735. }}
  736. >
  737. 收款
  738. </Button>
  739. ) : (
  740. <Button
  741. type="primary"
  742. onClick={e => {
  743. e.stopPropagation(), this.evaluateX(recard);
  744. }}
  745. >
  746. 收款
  747. </Button>
  748. )} */}
  749. {recard.backStatus == 3 ? (<Tag>已驳回</Tag>) : ("")}
  750. {recard.processStatus == 3 ? (
  751. <Button
  752. type="primary"
  753. onClick={e => {
  754. // e.stopPropagation(), this.evaluateZ(recard);
  755. e.stopPropagation(), this.checkRemark(recard);
  756. }}
  757. style={{ marginLeft: "5px" }}
  758. >
  759. 通过
  760. </Button>
  761. ) : (
  762. ""
  763. )}
  764. {!(
  765. recard.actuallyTotalAmount &&
  766. Number(recard.actuallyTotalAmount) > 0
  767. ) && (
  768. <Button
  769. type="danger"
  770. style={{ marginLeft: "5px", display: recard.processStatus == 3 ? "inline-block" : "none" }}
  771. onClick={e => {
  772. e.stopPropagation(), this.reject(recard);
  773. }}
  774. >
  775. 驳回
  776. </Button>
  777. )}
  778. {
  779. // <Button
  780. // type="primary"
  781. // style={{ marginLeft: "5px" }}
  782. // onClick={e => {
  783. // e.stopPropagation(), this.evaluateY(recard, "财务专员");
  784. // console.log(recard);
  785. // }}
  786. // >
  787. // 转交
  788. // </Button>
  789. }
  790. </div>
  791. );
  792. }
  793. }
  794. ],
  795. dataSource: [],
  796. searchTime: [],
  797. columnsDate: [
  798. {
  799. title: "编号",
  800. dataIndex: "id",
  801. key: "id"
  802. },
  803. {
  804. title: "订单编号",
  805. dataIndex: "orderno",
  806. key: "orderno"
  807. },
  808. {
  809. title: "开票金额(万元)",
  810. dataIndex: "amount",
  811. key: "amount"
  812. },
  813. {
  814. title: "申请时间",
  815. dataIndex: "createTime",
  816. key: "createTime"
  817. },
  818. {
  819. title: "开票状态",
  820. dataIndex: "status",
  821. key: "status",
  822. render: text => {
  823. return getInvoiceStatus(text);
  824. }
  825. }
  826. ],
  827. waterlistDate: [
  828. {
  829. title: "订单编号",
  830. dataIndex: "orderNo",
  831. key: "orderNo"
  832. },
  833. {
  834. title: "平台流水号",
  835. dataIndex: "billNo",
  836. key: "billNo"
  837. // fixed: "left"
  838. },
  839. {
  840. title: "收款金额(万元)",
  841. dataIndex: "transactionAmount",
  842. key: "transactionAmount"
  843. },
  844. {
  845. title: "收款方",
  846. dataIndex: "payeeName",
  847. key: "payeeName"
  848. },
  849. {
  850. title: "付款方",
  851. dataIndex: "payerName",
  852. key: "payerName"
  853. },
  854. {
  855. title: "流水科目",
  856. dataIndex: "transactionSubject",
  857. key: "transactionSubject",
  858. render: text => {
  859. return getTransactionProject(text);
  860. }
  861. },
  862. {
  863. title: "收款类型",
  864. dataIndex: "type",
  865. key: "type"
  866. },
  867. {
  868. title: "财务流水时间",
  869. dataIndex: "financialPayTimes",
  870. key: "financialPayTimes"
  871. },
  872. {
  873. title: "财务流水号",
  874. dataIndex: "financialPayNo",
  875. key: "financialPayNo"
  876. },
  877. {
  878. title: "订单负责人",
  879. dataIndex: "saleName",
  880. key: "saleName"
  881. },
  882. {
  883. title: "创建时间",
  884. dataIndex: "createTimes",
  885. key: "createTimes"
  886. },
  887. {
  888. title: "退款时间",
  889. dataIndex: "refundTimes",
  890. key: "refundTimes"
  891. },
  892. {
  893. title: "删除时间",
  894. dataIndex: "deleteTimes",
  895. key: "deleteTimes"
  896. },
  897. {
  898. title: "备注",
  899. dataIndex: "remarks",
  900. key: "remarks"
  901. },
  902. {
  903. title: "流水状态",
  904. dataIndex: "deleteSign",
  905. key: "deleteSign",
  906. render: (text, record) => {
  907. if (!text) {
  908. return (
  909. <Popconfirm
  910. title="是否删除?"
  911. onConfirm={() => {
  912. this.changeWater(record.billNo);
  913. }}
  914. okText="删除"
  915. cancelText="不删除"
  916. >
  917. <Button>
  918. 删除
  919. </Button>
  920. </Popconfirm>
  921. )
  922. } else {
  923. return (
  924. <Tag>已删除</Tag>
  925. )
  926. }
  927. }
  928. }
  929. ],
  930. waterData: []
  931. };
  932. },
  933. changeWater(billNo) {
  934. this.setState({
  935. loading: true
  936. });
  937. $.ajax({
  938. method: "get",
  939. dataType: "json",
  940. crossDomain: false,
  941. url: globalConfig.context + "/api/admin/financial/deleteMyBill",
  942. data: {
  943. billNo
  944. },
  945. success: function (data) {
  946. let theArr = [];
  947. if (data.error && data.error.length) {
  948. message.warning(data.error[0].message);
  949. } else {
  950. message.warning("删除流水成功!")
  951. this.waterData()
  952. this.loadData()
  953. }
  954. }.bind(this)
  955. }).always(
  956. function () {
  957. this.setState({
  958. loading: false
  959. });
  960. }.bind(this)
  961. );
  962. },
  963. // 特批通过
  964. evaluateZ(record) {
  965. $.ajax({
  966. method: "POST",
  967. dataType: "json",
  968. crossDomain: false,
  969. url: globalConfig.context + "/api/admin/financial/financeApproval",
  970. data: {
  971. orderNo: record.orderNo
  972. }
  973. }).done(
  974. function (data) {
  975. if (!data.error.length) {
  976. message.success("通过成功!");
  977. this.setState({
  978. loading: false
  979. });
  980. this.loadData();
  981. } else {
  982. message.warning(data.error[0].message);
  983. }
  984. }.bind(this)
  985. );
  986. },
  987. /* 收款 */
  988. evaluateX(recard) {
  989. this.state.assignDataX = recard;
  990. this.setState({
  991. assignVisibleX: true
  992. });
  993. },
  994. /* 转交 */
  995. evaluateY(recard, nub) {
  996. this.state.assignDataY = recard;
  997. this.setState({
  998. nub,
  999. assignVisibleY: true
  1000. });
  1001. },
  1002. /* 驳回 */
  1003. reject(recard) {
  1004. this.setState({
  1005. bohuiData: recard,
  1006. boHuiVisible: true,
  1007. content: ""
  1008. });
  1009. },
  1010. boHuiOk() {
  1011. this.setState({
  1012. boHuiVisible: false
  1013. });
  1014. if (
  1015. this.state.pagination.current == this.state.totalPage &&
  1016. this.state.pagination.total % 10 == 1
  1017. ) {
  1018. this.loadData(this.state.page - 1);
  1019. } else {
  1020. this.loadData(this.state.page);
  1021. }
  1022. },
  1023. boHuiCancel() {
  1024. this.setState({
  1025. boHuiVisible: false
  1026. });
  1027. },
  1028. componentWillMount() {
  1029. this.loadData();
  1030. this.departmentList();
  1031. },
  1032. tableRowClick(record) {
  1033. this.state.RowData = record;
  1034. this.setState({
  1035. showDesc: true
  1036. });
  1037. },
  1038. closeDesc(e, s) {
  1039. this.state.showDesc = e;
  1040. if (s) {
  1041. this.loadData(this.state.page);
  1042. }
  1043. },
  1044. closeAssignX(e, s) {
  1045. this.state.assignDataX = {};
  1046. this.state.assignVisibleX = e;
  1047. if (s) {
  1048. this.loadData(this.state.page);
  1049. }
  1050. },
  1051. closeAssignY(e, s) {
  1052. this.state.assignDataY = {};
  1053. this.state.assignVisibleY = e;
  1054. if (s) {
  1055. this.loadData(this.state.page);
  1056. }
  1057. },
  1058. search() {
  1059. this.loadData();
  1060. },
  1061. reset() {
  1062. this.state.nameSearch = "";
  1063. this.state.releaseDate = [];
  1064. this.state.shouKuanDate = [];
  1065. this.state.orderNoSearch = "";
  1066. this.state.departmenttList = undefined;
  1067. this.state.amountStatus = undefined;
  1068. this.state.processStatus = [];
  1069. this.state.contractNoSearch = "";
  1070. this.state.liquidationStatus = [];
  1071. this.state.processStatusSearch = [];
  1072. this.state.contractNo = "";
  1073. this.loadData();
  1074. },
  1075. //驳回
  1076. boHuiSubmit(e) {
  1077. e.preventDefault();
  1078. if (!this.state.content) {
  1079. message.warning("请填写驳回原因");
  1080. return false;
  1081. }
  1082. this.setState({
  1083. loading: true
  1084. });
  1085. $.ajax({
  1086. method: "POST",
  1087. dataType: "json",
  1088. crossDomain: false,
  1089. url: globalConfig.context + "/api/admin/financial/reject",
  1090. data: {
  1091. orderNo: this.state.bohuiData.orderNo,
  1092. reason: this.state.content
  1093. }
  1094. }).done(
  1095. function (data) {
  1096. if (!data.error.length) {
  1097. message.success("驳回成功!");
  1098. this.setState({
  1099. loading: false
  1100. });
  1101. this.boHuiOk();
  1102. } else {
  1103. message.warning(data.error[0].message);
  1104. }
  1105. }.bind(this)
  1106. );
  1107. },
  1108. searchSwitch() {
  1109. this.setState({
  1110. searchMore: !this.state.searchMore
  1111. });
  1112. },
  1113. changeList(arr) {
  1114. const newArr = [];
  1115. this.state.columns.forEach(item => {
  1116. arr.forEach(val => {
  1117. if (val === item.title) {
  1118. newArr.push(item);
  1119. }
  1120. });
  1121. });
  1122. this.setState({
  1123. changeList: newArr
  1124. });
  1125. },
  1126. callback(key) {
  1127. console.log(key);
  1128. },
  1129. onSelectChange(selectedRowKeys) {
  1130. // for(var i=0; i<selectedRowKeys.length; i++){
  1131. // for(var j=i+1; j<selectedRowKeys.length; j++){
  1132. // if(selectedRowKeys[i]==selectedRowKeys[j]){
  1133. // selectedRowKeys.splice(j,1);
  1134. // j--;
  1135. // }
  1136. // }
  1137. // }
  1138. this.setState({ selectedRowKeys });
  1139. },
  1140. inRecordCanl() {
  1141. this.setState({
  1142. bvisible: false
  1143. });
  1144. },
  1145. inRecordData() {
  1146. this.setState({
  1147. loading: true
  1148. });
  1149. $.ajax({
  1150. method: "get",
  1151. dataType: "json",
  1152. crossDomain: false,
  1153. url:
  1154. globalConfig.context +
  1155. "/api/admin/orderInvoice/salesmanOrderInvoiceList",
  1156. data: {
  1157. orderNo: this.state.selectedRowKeys[0],
  1158. pageSize: 9999
  1159. },
  1160. success: function (data) {
  1161. let theArr = [];
  1162. let sum = 0;
  1163. if (!data.data) {
  1164. if (data.error && data.error.length) {
  1165. message.warning(data.error[0].message);
  1166. }
  1167. } else {
  1168. for (let i = 0; i < data.data.list.length; i++) {
  1169. let thisdata = data.data.list[i];
  1170. sum += parseFloat(thisdata.amount);
  1171. theArr.push({
  1172. id: thisdata.id,
  1173. orderno: thisdata.orderno, //订单编号
  1174. amount: thisdata.amount, //签单金额
  1175. createTime: thisdata.createTime, //流程状态
  1176. status: thisdata.status, //结算状态
  1177. rejectReason: thisdata.rejectReason
  1178. });
  1179. }
  1180. }
  1181. this.setState({
  1182. recordData: theArr,
  1183. sum: sum.toFixed(4)
  1184. });
  1185. }.bind(this)
  1186. }).done(
  1187. function () {
  1188. this.setState({
  1189. loading: false
  1190. });
  1191. }.bind(this)
  1192. );
  1193. },
  1194. waterData() {
  1195. this.state.data = [];
  1196. this.setState({
  1197. loading: true
  1198. });
  1199. $.ajax({
  1200. method: "get",
  1201. dataType: "json",
  1202. crossDomain: false,
  1203. url: globalConfig.context + "/api/admin/financial/myBillList",
  1204. data: {
  1205. orderNo: this.state.selectedRowKeys[0],
  1206. pageSize: 9999,
  1207. whoType: 1
  1208. },
  1209. success: function (data) {
  1210. let theArr = [];
  1211. let waterSum = 0;
  1212. if (!data.data || !data.data.list) {
  1213. if (data.error && data.error.length) {
  1214. message.warning(data.error[0].message);
  1215. }
  1216. } else {
  1217. for (let i = 0; i < data.data.list.length; i++) {
  1218. let thisdata = data.data.list[i];
  1219. if (thisdata.deleteSign == 0) {
  1220. waterSum += parseFloat(thisdata.transactionAmount);
  1221. }
  1222. theArr.push({
  1223. key: i,
  1224. orderNo: thisdata.orderNo,
  1225. billNo: thisdata.billNo,
  1226. transactionAmount: thisdata.transactionAmount,
  1227. payeeName: thisdata.payeeName,
  1228. payerName: thisdata.payerName,
  1229. transactionSubject: thisdata.transactionSubject,
  1230. transactionChannel: thisdata.transactionChannel,
  1231. financialPayTimes: thisdata.financialPayTimes,
  1232. financialPayNo: thisdata.financialPayNo,
  1233. createrName: thisdata.createrName,
  1234. saleName: thisdata.saleName,
  1235. createTimes: thisdata.createTimes,
  1236. type: thisdata.type == 0 ? "手工" : thisdata.type == 1 ? "批量" : "合同变更退款",
  1237. deleteSign: thisdata.deleteSign,
  1238. deleteTimes: thisdata.deleteTimes,
  1239. refundTimes: thisdata.refundTimes,
  1240. remarks: thisdata.remarks
  1241. });
  1242. }
  1243. }
  1244. this.setState({
  1245. waterData: theArr,
  1246. waterSum: (Math.round(waterSum * 10000) / 10000).toFixed(4)
  1247. });
  1248. }.bind(this)
  1249. }).always(
  1250. function () {
  1251. this.setState({
  1252. loading: false
  1253. });
  1254. }.bind(this)
  1255. );
  1256. },
  1257. waterCanl() {
  1258. this.setState({
  1259. cvisible: false
  1260. });
  1261. },
  1262. exportKaip() {
  1263. window.location.href =
  1264. globalConfig.context +
  1265. "/api/admin/receivables/exportInvoice?" +
  1266. `orderNo=${this.state.selectedRowKeys}`;
  1267. },
  1268. exportAll() {
  1269. window.location.href =
  1270. globalConfig.context +
  1271. "/api/admin/receivables/exportReceivables?" +
  1272. `orderNo=${
  1273. this.state.orderNoSearch ? this.state.orderNoSearch : ""
  1274. }&buyerName=${
  1275. this.state.nameSearch ? this.state.nameSearch : ""
  1276. }&departmentId=${
  1277. this.state.departmenttList ? this.state.departmenttList : ""
  1278. }&contractNo=${
  1279. this.state.contractNoSearch ? this.state.contractNoSearch : ""
  1280. }&processStatus=${this.state.processStatusSearch}`;
  1281. },
  1282. exportWater() {
  1283. window.location.href =
  1284. globalConfig.context +
  1285. "/api/admin/receivables/exportMyBill?" +
  1286. `orderNo=${this.state.selectedRowKeys}&whoType=1`;
  1287. },
  1288. printAll() {
  1289. this.setState({
  1290. dvisible: true
  1291. });
  1292. this.loadData(1, 9999);
  1293. },
  1294. timeData() {
  1295. this.setState({
  1296. loading: true
  1297. });
  1298. $.ajax({
  1299. method: "get",
  1300. dataType: "json",
  1301. crossDomain: false,
  1302. url: globalConfig.context + "/api/admin/orderProject/taskHoursList",
  1303. data: {
  1304. orderNo: this.state.selectedRowKeys[0],
  1305. pageSize: 9999
  1306. },
  1307. success: function (data) {
  1308. let theArr = [];
  1309. if (!data.data || !data.data.list) {
  1310. if (data.error && data.error.length) {
  1311. message.warning(data.error[0].message);
  1312. }
  1313. } else {
  1314. for (let i = 0; i < data.data.list.length; i++) {
  1315. let thisdata = data.data.list[i];
  1316. theArr.push({
  1317. key: i + 1,
  1318. id: thisdata.id, //ID
  1319. orderNo: thisdata.orderNo, //订单编号
  1320. taskName: thisdata.taskName, //任务名称
  1321. userName: thisdata.userName, //客户名称
  1322. cname: thisdata.cname, //项目品类
  1323. taskStatus: thisdata.taskStatus, //任务状态
  1324. receiverName: thisdata.receiverName, //负责人
  1325. hours: thisdata.hours, //任务工时
  1326. depName: thisdata.depName, //派单公司
  1327. contractNo: thisdata.contractNo,
  1328. signTime: thisdata.signTime,
  1329. creteTime: thisdata.creteTime,
  1330. projectStatus: thisdata.projectStatus,
  1331. commodityPrice: thisdata.commodityPrice, //价格
  1332. commodityQuantity: thisdata.commodityQuantity, //数量
  1333. salesmanName: thisdata.salesmanName, //订单负责人
  1334. taskDistributionTime: thisdata.taskDistributionTime,
  1335. taskEndTime: thisdata.taskEndTime,
  1336. outsource: thisdata.outsource
  1337. });
  1338. }
  1339. }
  1340. this.setState({
  1341. timeDataList: theArr
  1342. });
  1343. }.bind(this)
  1344. }).always(
  1345. function () {
  1346. this.setState({
  1347. loading: false
  1348. });
  1349. }.bind(this)
  1350. );
  1351. },
  1352. exportTime() {
  1353. const data = {
  1354. orderNo: this.state.selectedRowKeys[0],
  1355. pageSize: 9999
  1356. };
  1357. window.location.href =
  1358. globalConfig.context +
  1359. "/api/admin/orderProject/exportMyTaskList?" +
  1360. $.param(data);
  1361. },
  1362. exportPro() {
  1363. const data = {
  1364. orderNo: this.state.selectedRowKeys[0]
  1365. };
  1366. window.location.href =
  1367. globalConfig.context +
  1368. "/api/admin/newOrder/exportOrderTaskData?" +
  1369. $.param(data);
  1370. },
  1371. exportCui() {
  1372. var data = {
  1373. orderNo: this.state.selectedRowKeys[0]
  1374. ? this.state.selectedRowKeys[0]
  1375. : undefined, //订单编号
  1376. // specially: 1,
  1377. pageSize: 9999
  1378. };
  1379. window.location.href =
  1380. globalConfig.context +
  1381. "/api/admin/newOrder/exportOrderDunData?" +
  1382. $.param(data);
  1383. },
  1384. cuiData() {
  1385. this.setState({
  1386. loading: true
  1387. });
  1388. $.ajax({
  1389. method: "get",
  1390. dataType: "json",
  1391. crossDomain: false,
  1392. url: globalConfig.context + "/api/admin/newOrder/dunOrderNewList",
  1393. data: {
  1394. orderNo: this.state.selectedRowKeys[0],
  1395. pageSize: 9999
  1396. },
  1397. success: function (data) {
  1398. let theArr = [];
  1399. if (!data.data || !data.data.list) {
  1400. if (data.error && data.error.length) {
  1401. message.warning(data.error[0].message);
  1402. }
  1403. } else {
  1404. for (let i = 0; i < data.data.list.length; i++) {
  1405. let thisdata = data.data.list[i];
  1406. theArr.push({
  1407. key: i + 1,
  1408. orderNo: thisdata.orderNo,
  1409. contractNo: thisdata.contractNo,
  1410. userName: thisdata.userName,
  1411. buyerName: thisdata.buyerName,
  1412. departmentName: thisdata.departmentName,
  1413. salesmanName: thisdata.salesmanName,
  1414. depName: thisdata.depName,
  1415. orderStatus: thisdata.orderStatus,
  1416. projectStatus: thisdata.projectStatus,
  1417. totalAmount: thisdata.totalAmount,
  1418. liquidationStatus: thisdata.liquidationStatus,
  1419. settlementAmount: thisdata.settlementAmount,
  1420. accountsReceivable: thisdata.accountsReceivable,
  1421. dunSubject: thisdata.dunSubject,
  1422. startDate: thisdata.startDate,
  1423. taskStatus: thisdata.taskStatus,
  1424. cname: thisdata.cname,
  1425. id: thisdata.id,
  1426. taskName: thisdata.taskName,
  1427. hours: thisdata.hours,
  1428. taskDistributionTime: thisdata.taskDistributionTime,
  1429. taskEndTime: thisdata.taskEndTime,
  1430. dunStatus: thisdata.dunStatus == 0 ? "未触发" : "已触发"
  1431. });
  1432. }
  1433. }
  1434. this.setState({
  1435. cuiDataList: theArr
  1436. });
  1437. }.bind(this)
  1438. }).always(
  1439. function () {
  1440. this.setState({
  1441. loading: false
  1442. });
  1443. }.bind(this)
  1444. );
  1445. },
  1446. proData() {
  1447. this.setState({
  1448. loading: true
  1449. });
  1450. $.ajax({
  1451. method: "get",
  1452. dataType: "json",
  1453. crossDomain: false,
  1454. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  1455. data: {
  1456. orderNo: this.state.selectedRowKeys[0],
  1457. pageSize: 9999
  1458. },
  1459. success: function (data) {
  1460. let theArr = [];
  1461. let totalWaibao = 0;
  1462. if (!data.data) {
  1463. if (data.error && data.error.length) {
  1464. message.warning(data.error[0].message);
  1465. }
  1466. } else {
  1467. for (let i = 0; i < data.data.length; i++) {
  1468. let thisdata = data.data[i];
  1469. totalWaibao += thisdata.outsourcePrice;
  1470. theArr.push({
  1471. key: i + 1,
  1472. id: thisdata.id,
  1473. orderNo: thisdata.orderNo,
  1474. contractNo: thisdata.contractNo,
  1475. userName: thisdata.userName,
  1476. buyerName: thisdata.buyerName,
  1477. departmentName: thisdata.departmentName,
  1478. salesmanName: thisdata.salesmanName,
  1479. depName: thisdata.depName,
  1480. orderStatus: thisdata.orderStatus,
  1481. projectStatus: thisdata.projectStatus,
  1482. commodityName: thisdata.commodityName,
  1483. totalAmount: thisdata.totalAmount,
  1484. liquidationStatus: thisdata.liquidationStatus,
  1485. settlementAmount: thisdata.settlementAmount,
  1486. accountsReceivable: thisdata.accountsReceivable,
  1487. dunSubject: thisdata.dunSubject,
  1488. startDate: thisdata.startDate,
  1489. taskStatus: thisdata.taskStatus,
  1490. cname: thisdata.cname,
  1491. id: thisdata.id,
  1492. taskName: thisdata.taskName,
  1493. hours: thisdata.hours,
  1494. taskDistributionTime: thisdata.taskDistributionTime,
  1495. taskEndTime: thisdata.taskEndTime,
  1496. commodityQuantity: thisdata.commodityQuantity,
  1497. commodityPrice: thisdata.commodityPrice,
  1498. certificateNumber: thisdata.certificateNumber,
  1499. taskComment: thisdata.taskComment,
  1500. outsourceName: thisdata.outsourceName,
  1501. outsourcePrice: thisdata.outsourcePrice,
  1502. outsource: thisdata.outsource,
  1503. });
  1504. }
  1505. }
  1506. totalWaibao = (Math.round(totalWaibao * 10000) / 10000).toFixed(4);
  1507. this.setState({
  1508. proDataList: theArr,
  1509. totalWaibao
  1510. });
  1511. }.bind(this)
  1512. }).always(
  1513. function () {
  1514. this.setState({
  1515. loading: false
  1516. });
  1517. }.bind(this)
  1518. );
  1519. },
  1520. checkRemark(record) {
  1521. this.setState({
  1522. checkVisible: true,
  1523. checkOrderNo: record.orderNo
  1524. });
  1525. },
  1526. checkOk() {
  1527. if (this.state.checkData == "" || this.state.checkData == undefined) {
  1528. message.warning("请填写审核内容");
  1529. return;
  1530. }
  1531. this.setState({
  1532. loading: true
  1533. });
  1534. $.ajax({
  1535. method: "post",
  1536. dataType: "json",
  1537. crossDomain: false,
  1538. url: globalConfig.context + "/api/admin/financial/financeApproval",
  1539. data: {
  1540. orderNo: this.state.checkOrderNo,
  1541. remarks: this.state.checkData
  1542. },
  1543. success: function (data) {
  1544. let theArr = [];
  1545. if (!data.data) {
  1546. if (data.error && data.error.length) {
  1547. message.warning(data.error[0].message);
  1548. }
  1549. } else {
  1550. message.success("通过成功!");
  1551. this.loadData();
  1552. this.setState({
  1553. checkVisible: false,
  1554. checkData: ""
  1555. });
  1556. }
  1557. }.bind(this)
  1558. }).always(
  1559. function () {
  1560. this.setState({
  1561. loading: false
  1562. });
  1563. }.bind(this)
  1564. );
  1565. },
  1566. tableRowClickPro(record) {
  1567. this.setState({
  1568. pvisible: true,
  1569. record
  1570. });
  1571. },
  1572. render() {
  1573. const formItemLayout = {
  1574. labelCol: { span: 8 },
  1575. wrapperCol: { span: 14 }
  1576. };
  1577. const { RangePicker } = DatePicker;
  1578. var departmentArr = this.state.departmentArr || [];
  1579. const { loading, selectedRowKeys, visible } = this.state;
  1580. const rowSelection = {
  1581. selectedRowKeys,
  1582. onChange: this.onSelectChange,
  1583. hideDefaultSelections: true,
  1584. type: "radio"
  1585. };
  1586. return (
  1587. <div className="user-content">
  1588. <div className="content-title" style={{ marginBottom: 10 }}>
  1589. <span style={{ fontWeight: 900, fontSize: 16 }}>收款结算</span>
  1590. </div>
  1591. <Tabs defaultActiveKey="2" onChange={this.callback} className="test">
  1592. <TabPane tab="更改表格显示数据" key="1">
  1593. <div style={{ marginLeft: 10 }}>
  1594. <ChooseList
  1595. columns={this.state.columns}
  1596. changeFn={this.changeList}
  1597. changeList={this.state.changeList}
  1598. top={55}
  1599. margin={11}
  1600. />
  1601. </div>
  1602. </TabPane>
  1603. <TabPane tab="搜索" key="2">
  1604. <div className="user-search" style={{ marginLeft: 10 }}>
  1605. <Input
  1606. placeholder="订单编号"
  1607. value={this.state.orderNoSearch}
  1608. onChange={e => {
  1609. this.setState({ orderNoSearch: e.target.value });
  1610. }}
  1611. />
  1612. <Input
  1613. placeholder="客户名称"
  1614. value={this.state.nameSearch}
  1615. onChange={e => {
  1616. this.setState({ nameSearch: e.target.value });
  1617. }}
  1618. />
  1619. <Select
  1620. placeholder="订单部门"
  1621. style={{ width: 120, marginRight: 10 }}
  1622. value={this.state.departmenttList}
  1623. onChange={e => {
  1624. this.setState({ departmenttList: e });
  1625. }}
  1626. >
  1627. {departmentArr.map(function (item) {
  1628. return (
  1629. <Select.Option key={item.id}>{item.name}</Select.Option>
  1630. );
  1631. })}
  1632. </Select>
  1633. <Input
  1634. placeholder="合同编号"
  1635. value={this.state.contractNoSearch}
  1636. onChange={e => {
  1637. this.setState({
  1638. contractNoSearch: e.target.value
  1639. });
  1640. }}
  1641. />
  1642. <Select
  1643. placeholder="流程状态"
  1644. onChange={e => {
  1645. this.setState({ processStatusSearch: e });
  1646. }}
  1647. style={{ width: 120, marginRight: 5 }}
  1648. value={this.state.processStatusSearch}
  1649. >
  1650. <Option value="3">未分配</Option>
  1651. <Option value="4">已分配</Option>
  1652. <Option value="9">已驳回</Option>
  1653. </Select>
  1654. <Select
  1655. placeholder="结算状态"
  1656. onChange={e => {
  1657. this.setState({ liquidationStatus: e });
  1658. }}
  1659. style={{ width: 120, marginRight: 5 }}
  1660. value={this.state.liquidationStatus}
  1661. >
  1662. <Option value="0">首付待付清</Option>
  1663. <Option value="1">尾款待付清</Option>
  1664. <Option value="2">已付清</Option>
  1665. </Select>
  1666. <Select
  1667. style={{ width: 120 }}
  1668. placeholder="签单金额"
  1669. value={this.state.amountStatus}
  1670. onChange={e => {
  1671. this.setState({
  1672. amountStatus: e
  1673. });
  1674. }}
  1675. >
  1676. <Option value="0">10万元以下</Option>
  1677. <Option value="1">10~20万元</Option>
  1678. <Option value="2">20~30万元</Option>
  1679. <Option value="3">30~40万元</Option>
  1680. <Option value="4">40万元以上</Option>
  1681. </Select>
  1682. <span style={{}}>下单日期:</span>
  1683. <RangePicker
  1684. value={[
  1685. this.state.releaseDate[0]
  1686. ? moment(this.state.releaseDate[0])
  1687. : null,
  1688. this.state.releaseDate[1]
  1689. ? moment(this.state.releaseDate[1])
  1690. : null
  1691. ]}
  1692. onChange={(data, dataString) => {
  1693. this.setState({ releaseDate: dataString });
  1694. }}
  1695. />
  1696. <span style={{}}>最近收款:</span>
  1697. <RangePicker
  1698. value={[
  1699. this.state.shouKuanDate[0]
  1700. ? moment(this.state.shouKuanDate[0])
  1701. : null,
  1702. this.state.shouKuanDate[1]
  1703. ? moment(this.state.shouKuanDate[1])
  1704. : null
  1705. ]}
  1706. onChange={(data, dataString) => {
  1707. this.setState({ shouKuanDate: dataString });
  1708. }}
  1709. />
  1710. <Button
  1711. type="primary"
  1712. onClick={this.search}
  1713. style={{ marginLeft: 10 }}
  1714. disabled={this.state.loadingA ? true : false}
  1715. >
  1716. 搜索
  1717. </Button>
  1718. <Button onClick={this.reset}>重置</Button>
  1719. </div>
  1720. </TabPane>
  1721. <TabPane tab="打印" key="3">
  1722. <Button
  1723. type="primary"
  1724. style={{ margin: "11px 0px 10px 10px" }}
  1725. onClick={this.printAll}
  1726. disabled={!this.state.dataSource.length}
  1727. >
  1728. 打印所有列表信息
  1729. </Button>
  1730. <Button
  1731. type="primary"
  1732. disabled={this.state.selectedRowKeys.length != 1}
  1733. style={{ margin: "11px 0px 10px 10px" }}
  1734. onClick={() => {
  1735. this.inRecordData();
  1736. this.setState({
  1737. bvisible: true
  1738. });
  1739. }}
  1740. >
  1741. 打印开票详情
  1742. </Button>
  1743. <Button
  1744. type="primary"
  1745. disabled={this.state.selectedRowKeys.length != 1}
  1746. style={{ margin: "11px 0px 10px 10px" }}
  1747. onClick={() => {
  1748. this.waterData();
  1749. this.setState({
  1750. cvisible: true
  1751. });
  1752. }}
  1753. >
  1754. 打印收款流水
  1755. </Button>
  1756. <Button
  1757. type="primary"
  1758. disabled={this.state.selectedRowKeys.length != 1}
  1759. style={{ margin: "11px 0px 10px 10px" }}
  1760. onClick={() => {
  1761. this.timeData();
  1762. this.setState({
  1763. timeVisible: true
  1764. });
  1765. }}
  1766. >
  1767. 打印工时信息
  1768. </Button>
  1769. <Button
  1770. type="primary"
  1771. disabled={this.state.selectedRowKeys.length != 1}
  1772. style={{ margin: "11px 0px 10px 10px" }}
  1773. onClick={() => {
  1774. this.cuiData();
  1775. this.setState({
  1776. cuiVisible: true
  1777. });
  1778. }}
  1779. >
  1780. 打印催款信息
  1781. </Button>
  1782. <Button
  1783. type="primary"
  1784. disabled={this.state.selectedRowKeys.length != 1}
  1785. style={{ margin: "11px 0px 10px 10px" }}
  1786. onClick={() => {
  1787. this.proData();
  1788. this.setState({
  1789. proVisible: true
  1790. });
  1791. }}
  1792. >
  1793. 打印项目信息
  1794. </Button>
  1795. </TabPane>
  1796. <TabPane tab="导出Excel" key="4">
  1797. <Button
  1798. type="primary"
  1799. style={{ margin: "11px 0px 10px 10px" }}
  1800. onClick={this.exportAll}
  1801. >
  1802. 导出当前列表
  1803. </Button>
  1804. <Button
  1805. type="primary"
  1806. disabled={this.state.selectedRowKeys.length != 1}
  1807. style={{ margin: "11px 0px 10px 10px" }}
  1808. onClick={this.exportKaip}
  1809. >
  1810. 导出所选开票详情
  1811. </Button>
  1812. <Button
  1813. type="primary"
  1814. disabled={this.state.selectedRowKeys.length != 1}
  1815. style={{ margin: "11px 0px 10px 10px" }}
  1816. onClick={this.exportWater}
  1817. >
  1818. 导出所选收款详情流水
  1819. </Button>
  1820. <Button
  1821. type="primary"
  1822. disabled={this.state.selectedRowKeys.length != 1}
  1823. style={{ margin: "11px 0px 10px 10px" }}
  1824. onClick={this.exportTime}
  1825. >
  1826. 导出所选工时信息
  1827. </Button>
  1828. <Button
  1829. type="primary"
  1830. disabled={this.state.selectedRowKeys.length != 1}
  1831. style={{ margin: "11px 0px 10px 10px" }}
  1832. onClick={this.exportCui}
  1833. >
  1834. 导出催款信息
  1835. </Button>
  1836. <Button
  1837. type="primary"
  1838. disabled={this.state.selectedRowKeys.length != 1}
  1839. style={{ margin: "11px 0px 10px 10px" }}
  1840. onClick={this.exportPro}
  1841. >
  1842. 导出项目详情
  1843. </Button>
  1844. </TabPane>
  1845. <TabPane tab="查看" key="5">
  1846. <Button
  1847. type="primary"
  1848. disabled={this.state.selectedRowKeys.length != 1}
  1849. style={{ margin: "11px 0px 10px 10px" }}
  1850. onClick={() => {
  1851. this.inRecordData();
  1852. this.setState({
  1853. bvisible: true
  1854. });
  1855. }}
  1856. >
  1857. 查看开票详情
  1858. </Button>
  1859. <Button
  1860. type="primary"
  1861. disabled={this.state.selectedRowKeys.length != 1}
  1862. style={{ margin: "11px 0px 10px 10px" }}
  1863. onClick={() => {
  1864. this.waterData();
  1865. this.setState({
  1866. cvisible: true
  1867. });
  1868. }}
  1869. >
  1870. 详情收款流水
  1871. </Button>
  1872. <Button
  1873. type="primary"
  1874. disabled={this.state.selectedRowKeys.length != 1}
  1875. style={{ margin: "11px 0px 10px 10px" }}
  1876. onClick={() => {
  1877. this.timeData();
  1878. this.setState({
  1879. timeVisible: true
  1880. });
  1881. }}
  1882. >
  1883. 工时信息
  1884. </Button>
  1885. <Button
  1886. type="primary"
  1887. disabled={this.state.selectedRowKeys.length != 1}
  1888. style={{ margin: "11px 0px 10px 10px" }}
  1889. onClick={() => {
  1890. this.cuiData();
  1891. this.setState({
  1892. cuiVisible: true
  1893. });
  1894. }}
  1895. >
  1896. 催款信息
  1897. </Button>
  1898. <Button
  1899. type="primary"
  1900. disabled={this.state.selectedRowKeys.length != 1}
  1901. style={{ margin: "11px 0px 10px 10px" }}
  1902. onClick={() => {
  1903. this.proData();
  1904. this.setState({
  1905. proVisible: true
  1906. });
  1907. }}
  1908. >
  1909. 项目信息
  1910. </Button>
  1911. </TabPane>
  1912. {/* <TabPane tab="批量操作" key="6">
  1913. <Button
  1914. type="primary"
  1915. disabled={this.state.selectedRowKeys.length == 0}
  1916. style={{ margin: "0px 0px 10px 10px" }}
  1917. onClick={e => {
  1918. e.stopPropagation(),
  1919. this.evaluateY(this.state.selectedRowKeys, "财务专员");
  1920. }}
  1921. >
  1922. 转交
  1923. </Button>
  1924. </TabPane> */}
  1925. </Tabs>
  1926. <div className="patent-table">
  1927. <Spin spinning={this.state.loadingA}>
  1928. <Table
  1929. bordered
  1930. columns={
  1931. this.state.changeList == undefined
  1932. ? this.state.columns
  1933. : this.state.changeList
  1934. }
  1935. dataSource={this.state.dataSource}
  1936. rowSelection={rowSelection}
  1937. scroll={{ x: "max-content", y: 0 }}
  1938. pagination={this.state.pagination}
  1939. onRowDoubleClick={this.tableRowClick.bind(this)}
  1940. size="small"
  1941. />
  1942. </Spin>
  1943. <p
  1944. style={{ display: "inline-block", fontSize: "14px", color: "red" }}
  1945. >
  1946. {
  1947. <span style={{ marginRight: 10 }}>
  1948. {`收款金额总计(万元):${this.state.hui ? this.state.hui : "0"}`}
  1949. </span>
  1950. }
  1951. {
  1952. <span>
  1953. {`合同额总计(万元):${
  1954. this.state.totalHui ? this.state.totalHui : "0"
  1955. }`}
  1956. </span>
  1957. }
  1958. </p>
  1959. </div>
  1960. <Assign
  1961. title="任务"
  1962. selApi={"/api/admin/newOrder/updateFinance"}
  1963. data={this.state.assignDataY}
  1964. showDesc={this.state.assignVisibleY}
  1965. closeDesc={this.closeAssignY.bind(this)}
  1966. // fenpaiData={8}
  1967. specially={0}
  1968. roleName={this.state.nub}
  1969. requestMethod={"get"}
  1970. />
  1971. <OrderDesc
  1972. data={this.state.RowData}
  1973. showDesc={this.state.showDesc}
  1974. closeDesc={this.closeDesc.bind(this)}
  1975. />
  1976. <Receivable
  1977. title="收款记录"
  1978. api="/api/admin/financial/addReceiptsFlow"
  1979. data={this.state.assignDataX}
  1980. showDesc={this.state.assignVisibleX}
  1981. closeDesc={this.closeAssignX.bind(this)}
  1982. />
  1983. <Modal
  1984. visible={this.state.boHuiVisible}
  1985. width="400px"
  1986. title="驳回备注"
  1987. footer=""
  1988. onOk={this.boHuiOk}
  1989. onCancel={this.boHuiCancel}
  1990. >
  1991. <Form layout="horizontal" onSubmit={this.boHuiSubmit}>
  1992. <Spin spinning={this.state.loading}>
  1993. <FormItem
  1994. labelCol={{ span: 5 }}
  1995. wrapperCol={{ span: 16 }}
  1996. label={
  1997. <span>
  1998. <strong style={{ color: "#f00" }}>*</strong>驳回原因
  1999. </span>
  2000. }
  2001. >
  2002. <Input
  2003. type="textarea"
  2004. rows={4}
  2005. placeholder="请输入驳回原因"
  2006. value={this.state.content}
  2007. onChange={e => {
  2008. this.setState({ content: e.target.value });
  2009. }}
  2010. />
  2011. </FormItem>
  2012. <FormItem wrapperCol={{ span: 12, offset: 5 }}>
  2013. <Button
  2014. type="primary"
  2015. htmlType="submit"
  2016. style={{ marginRight: 20 }}
  2017. >
  2018. 驳回
  2019. </Button>
  2020. <Button
  2021. type="default"
  2022. onClick={() => {
  2023. this.boHuiCancel();
  2024. }}
  2025. >
  2026. 取消
  2027. </Button>
  2028. </FormItem>
  2029. </Spin>
  2030. </Form>
  2031. </Modal>
  2032. <Modal
  2033. visible={this.state.bvisible}
  2034. footer=""
  2035. title="开票历史记录"
  2036. className="admin-desc-content"
  2037. width="900px"
  2038. onCancel={this.inRecordCanl}
  2039. >
  2040. <Spin spinning={this.state.loading}>
  2041. <div
  2042. className="patent-table"
  2043. ref={e => {
  2044. this.refs.kaiPiao = e;
  2045. }}
  2046. >
  2047. <Table
  2048. columns={this.state.columnsDate}
  2049. dataSource={this.state.recordData}
  2050. pagination={false}
  2051. bordered
  2052. size="small"
  2053. />
  2054. <div className="clearfix" style={{ marginTop: "20px" }}>
  2055. <FormItem
  2056. className="half-item"
  2057. {...formItemLayout}
  2058. label={<span style={{ fontSize: "14px" }}>开票总计</span>}
  2059. >
  2060. <span>{this.state.sum + "(万元)"}</span>
  2061. </FormItem>
  2062. </div>
  2063. <ReactToPrint
  2064. trigger={() => (
  2065. <Button
  2066. type="primary"
  2067. style={{
  2068. float: "right",
  2069. // marginTop: 10,
  2070. position: "absolute",
  2071. top: -54,
  2072. right: 30
  2073. }}
  2074. >
  2075. 打印
  2076. </Button>
  2077. )}
  2078. content={() => this.refs.kaiPiao}
  2079. />
  2080. </div>
  2081. </Spin>
  2082. </Modal>
  2083. <Modal
  2084. visible={this.state.cvisible}
  2085. footer=""
  2086. title="详细收款流水"
  2087. className="admin-desc-content"
  2088. width="1300px"
  2089. onCancel={this.waterCanl}
  2090. >
  2091. <Spin spinning={this.state.loading}>
  2092. <div
  2093. className="patent-table"
  2094. ref={e => {
  2095. this.refs.shouKuan = e;
  2096. }}
  2097. >
  2098. <Table
  2099. columns={this.state.waterlistDate}
  2100. dataSource={this.state.waterData}
  2101. pagination={false}
  2102. scroll={{ x: "max-content", y: 0 }}
  2103. bordered
  2104. size="small"
  2105. />
  2106. <div className="clearfix" style={{ marginTop: "20px" }}>
  2107. <FormItem
  2108. className="half-item"
  2109. {...formItemLayout}
  2110. label={<span style={{ fontSize: "14px" }}>总计金额</span>}
  2111. >
  2112. <span>{this.state.waterSum + "(万元)"}</span>
  2113. </FormItem>
  2114. </div>
  2115. <ReactToPrint
  2116. trigger={() => (
  2117. <Button
  2118. type="primary"
  2119. style={{
  2120. float: "right",
  2121. position: "absolute",
  2122. top: -54,
  2123. right: 30
  2124. }}
  2125. >
  2126. 打印
  2127. </Button>
  2128. )}
  2129. content={() => this.refs.shouKuan}
  2130. />
  2131. </div>
  2132. </Spin>
  2133. </Modal>
  2134. <Modal
  2135. visible={this.state.dvisible}
  2136. footer=""
  2137. title="所有列表信息"
  2138. className="admin-desc-content"
  2139. width="1300px"
  2140. onCancel={() => {
  2141. this.loadData();
  2142. this.setState({
  2143. dvisible: false
  2144. });
  2145. }}
  2146. >
  2147. <Spin spinning={this.state.loading}>
  2148. <div
  2149. className="patent-table"
  2150. style={{
  2151. // width: 900,
  2152. // position: "relative",
  2153. // left: "50%",
  2154. // transform: "translate(-50%)",
  2155. padding: "25px 0 30px 30px"
  2156. }}
  2157. ref={e => {
  2158. this.refs.all = e;
  2159. }}
  2160. >
  2161. <Table
  2162. columns={this.state.printColumns}
  2163. dataSource={this.state.dataSource}
  2164. pagination={false}
  2165. bordered
  2166. size="small"
  2167. />
  2168. </div>
  2169. </Spin>
  2170. <ReactToPrint
  2171. trigger={() => (
  2172. <Button
  2173. type="primary"
  2174. style={{
  2175. float: "right",
  2176. marginTop: 10,
  2177. position: "absolute",
  2178. top: 0,
  2179. right: 30
  2180. }}
  2181. >
  2182. 打印
  2183. </Button>
  2184. )}
  2185. content={() => this.refs.all}
  2186. />
  2187. </Modal>
  2188. <Modal
  2189. visible={this.state.timeVisible}
  2190. footer=""
  2191. title="工时详情"
  2192. className="admin-desc-content"
  2193. width="1300px"
  2194. pagination={false}
  2195. onCancel={() => {
  2196. this.loadData();
  2197. this.setState({
  2198. timeVisible: false
  2199. });
  2200. }}
  2201. >
  2202. <Spin spinning={this.state.loading}>
  2203. <Project
  2204. record={this.state.record}
  2205. visible={this.state.pvisible}
  2206. cancel={() => {
  2207. this.setState({ pvisible: false });
  2208. }}
  2209. />
  2210. <div
  2211. className="patent-table"
  2212. style={
  2213. {
  2214. // width: 900,
  2215. // position: "relative",
  2216. // left: "50%",
  2217. // transform: "translate(-50%)",
  2218. // padding: "25px 0 30px 30px"
  2219. }
  2220. }
  2221. ref={e => {
  2222. this.refs.all = e;
  2223. }}
  2224. >
  2225. <Table
  2226. columns={this.state.timeColumns}
  2227. dataSource={this.state.timeDataList}
  2228. onRowClick={this.tableRowClickPro}
  2229. scroll={{ x: "max-content", y: 0 }}
  2230. pagination={false}
  2231. bordered
  2232. size="small"
  2233. />
  2234. </div>
  2235. </Spin>
  2236. <ReactToPrint
  2237. trigger={() => (
  2238. <Button
  2239. type="primary"
  2240. style={{
  2241. float: "right",
  2242. marginTop: 10,
  2243. position: "absolute",
  2244. top: 0,
  2245. right: 30
  2246. }}
  2247. >
  2248. 打印
  2249. </Button>
  2250. )}
  2251. content={() => this.refs.all}
  2252. />
  2253. </Modal>
  2254. <Modal
  2255. visible={this.state.cuiVisible}
  2256. footer=""
  2257. title="催款详情"
  2258. className="admin-desc-content"
  2259. width="1300px"
  2260. pagination={false}
  2261. onCancel={() => {
  2262. this.loadData();
  2263. this.setState({
  2264. cuiVisible: false
  2265. });
  2266. }}
  2267. >
  2268. <Spin spinning={this.state.loading}>
  2269. <div
  2270. className="patent-table"
  2271. style={
  2272. {
  2273. // width: 900,
  2274. // position: "relative",
  2275. // left: "50%",
  2276. // transform: "translate(-50%)",
  2277. // padding: "25px 0 30px 30px"
  2278. }
  2279. }
  2280. ref={e => {
  2281. this.refs.all = e;
  2282. }}
  2283. >
  2284. <Table
  2285. columns={this.state.cuiColumns}
  2286. dataSource={this.state.cuiDataList}
  2287. scroll={{ x: "max-content", y: 0 }}
  2288. pagination={false}
  2289. bordered
  2290. size="small"
  2291. />
  2292. </div>
  2293. </Spin>
  2294. <ReactToPrint
  2295. trigger={() => (
  2296. <Button
  2297. type="primary"
  2298. style={{
  2299. float: "right",
  2300. marginTop: 10,
  2301. position: "absolute",
  2302. top: 0,
  2303. right: 30
  2304. }}
  2305. >
  2306. 打印
  2307. </Button>
  2308. )}
  2309. content={() => this.refs.all}
  2310. />
  2311. </Modal>
  2312. <Modal
  2313. visible={this.state.proVisible}
  2314. footer=""
  2315. title="项目详情"
  2316. className="admin-desc-content"
  2317. width="1300px"
  2318. pagination={false}
  2319. onCancel={() => {
  2320. this.loadData();
  2321. this.setState({
  2322. proVisible: false
  2323. });
  2324. }}
  2325. >
  2326. <Spin spinning={this.state.loading}>
  2327. <Project
  2328. record={this.state.record}
  2329. visible={this.state.pvisible}
  2330. cancel={() => {
  2331. this.setState({ pvisible: false });
  2332. }}
  2333. />
  2334. <div
  2335. className="patent-table"
  2336. style={
  2337. {
  2338. // width: 900,
  2339. // position: "relative",
  2340. // left: "50%",
  2341. // transform: "translate(-50%)",
  2342. // padding: "25px 0 30px 30px"
  2343. }
  2344. }
  2345. ref={e => {
  2346. this.refs.all = e;
  2347. }}
  2348. >
  2349. <Table
  2350. columns={this.state.proColumns}
  2351. dataSource={this.state.proDataList}
  2352. scroll={{ x: "max-content", y: 0 }}
  2353. onRowClick={this.tableRowClickPro}
  2354. pagination={false}
  2355. bordered
  2356. size="small"
  2357. />
  2358. </div>
  2359. <span style={{ display: "block", marginTop: 10, color: "red" }}>
  2360. 外包(内部)价格总计(万元):{this.state.totalWaibao}
  2361. </span>
  2362. </Spin>
  2363. <ReactToPrint
  2364. trigger={() => (
  2365. <Button
  2366. type="primary"
  2367. style={{
  2368. float: "right",
  2369. marginTop: 10,
  2370. position: "absolute",
  2371. top: 0,
  2372. right: 30
  2373. }}
  2374. >
  2375. 打印
  2376. </Button>
  2377. )}
  2378. content={() => this.refs.all}
  2379. />
  2380. </Modal>
  2381. <Spin spinning={this.state.loading}>
  2382. <Modal
  2383. title="审核订单"
  2384. visible={this.state.checkVisible}
  2385. onOk={this.checkOk}
  2386. okText={"通过"}
  2387. onCancel={() => {
  2388. this.loadData();
  2389. this.setState({
  2390. checkVisible: false,
  2391. checkData: ""
  2392. });
  2393. }}
  2394. >
  2395. <TextArea
  2396. value={this.state.checkData}
  2397. onChange={(e, recard) => {
  2398. this.setState({
  2399. checkData: e.target.value
  2400. });
  2401. }}
  2402. placeholder="请填写审核内容"
  2403. />
  2404. </Modal>
  2405. </Spin>
  2406. </div>
  2407. );
  2408. }
  2409. });
  2410. export default ShouKuang;