shouKuanAll.jsx 65 KB

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