shouKuanAll.jsx 65 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310
  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. splitStatus: thisdata.splitStatus
  1456. });
  1457. }
  1458. }
  1459. totalWaibao = (Math.round(totalWaibao * 10000) / 10000).toFixed(4);
  1460. this.setState({
  1461. proDataList: theArr,
  1462. totalWaibao
  1463. });
  1464. }.bind(this)
  1465. }).always(
  1466. function () {
  1467. this.setState({
  1468. loading: false
  1469. });
  1470. }.bind(this)
  1471. );
  1472. },
  1473. tableRowClickPro(record) {
  1474. this.setState({
  1475. pvisible: true,
  1476. record
  1477. });
  1478. },
  1479. render() {
  1480. const formItemLayout = {
  1481. labelCol: { span: 8 },
  1482. wrapperCol: { span: 14 }
  1483. };
  1484. const { RangePicker } = DatePicker;
  1485. var departmentArr = this.state.departmentArr || [];
  1486. const { loading, selectedRowKeys, visible } = this.state;
  1487. const rowSelection = {
  1488. selectedRowKeys,
  1489. onChange: this.onSelectChange,
  1490. hideDefaultSelections: true,
  1491. type: "radio"
  1492. };
  1493. return (
  1494. <div className="user-content">
  1495. <div className="content-title" style={{ marginBottom: 10 }}>
  1496. <span style={{ fontWeight: 900, fontSize: 16 }}>收款结算</span>
  1497. </div>
  1498. <Tabs defaultActiveKey="2" onChange={this.callback} className="test">
  1499. <TabPane tab="更改表格显示数据" key="1">
  1500. <div style={{ marginLeft: 10 }}>
  1501. <ChooseList
  1502. columns={this.state.columns}
  1503. changeFn={this.changeList}
  1504. changeList={this.state.changeList}
  1505. top={55}
  1506. margin={11}
  1507. />
  1508. </div>
  1509. </TabPane>
  1510. <TabPane tab="搜索" key="2">
  1511. <div className="user-search" style={{ marginLeft: 10 }}>
  1512. <Input
  1513. placeholder="订单编号"
  1514. value={this.state.orderNoSearch}
  1515. onChange={e => {
  1516. this.setState({ orderNoSearch: e.target.value });
  1517. }}
  1518. />
  1519. <Input
  1520. placeholder="客户名称"
  1521. value={this.state.nameSearch}
  1522. onChange={e => {
  1523. this.setState({ nameSearch: e.target.value });
  1524. }}
  1525. />
  1526. <Select
  1527. placeholder="订单部门"
  1528. style={{ width: 120, marginRight: 10 }}
  1529. value={this.state.departmenttList}
  1530. onChange={e => {
  1531. this.setState({ departmenttList: e });
  1532. }}
  1533. >
  1534. {departmentArr.map(function (item) {
  1535. return (
  1536. <Select.Option key={item.id}>{item.name}</Select.Option>
  1537. );
  1538. })}
  1539. </Select>
  1540. <Input
  1541. placeholder="合同编号"
  1542. value={this.state.contractNoSearch}
  1543. onChange={e => {
  1544. this.setState({
  1545. contractNoSearch: e.target.value
  1546. });
  1547. }}
  1548. />
  1549. <Select
  1550. placeholder="流程状态"
  1551. onChange={e => {
  1552. this.setState({ processStatusSearch: e });
  1553. }}
  1554. style={{ width: 120, marginRight: 5 }}
  1555. value={this.state.processStatusSearch}
  1556. >
  1557. <Option value="3">未分配</Option>
  1558. <Option value="4">已分配</Option>
  1559. <Option value="9">已驳回</Option>
  1560. </Select>
  1561. <Select
  1562. placeholder="结算状态"
  1563. onChange={e => {
  1564. this.setState({ liquidationStatus: e });
  1565. }}
  1566. style={{ width: 120, marginRight: 5 }}
  1567. value={this.state.liquidationStatus}
  1568. >
  1569. <Option value="0">首付待付清</Option>
  1570. <Option value="1">尾款待付清</Option>
  1571. <Option value="2">已付清</Option>
  1572. </Select>
  1573. <Select
  1574. style={{ width: 120 }}
  1575. placeholder="签单金额"
  1576. value={this.state.amountStatus}
  1577. onChange={e => {
  1578. this.setState({
  1579. amountStatus: e
  1580. });
  1581. }}
  1582. >
  1583. <Option value="0">10万元以下</Option>
  1584. <Option value="1">10~20万元</Option>
  1585. <Option value="2">20~30万元</Option>
  1586. <Option value="3">30~40万元</Option>
  1587. <Option value="4">40万元以上</Option>
  1588. </Select>
  1589. <span style={{}}>下单日期:</span>
  1590. <RangePicker
  1591. value={[
  1592. this.state.releaseDate[0]
  1593. ? moment(this.state.releaseDate[0])
  1594. : null,
  1595. this.state.releaseDate[1]
  1596. ? moment(this.state.releaseDate[1])
  1597. : null
  1598. ]}
  1599. onChange={(data, dataString) => {
  1600. this.setState({ releaseDate: dataString });
  1601. }}
  1602. />
  1603. <span style={{}}>最近收款:</span>
  1604. <RangePicker
  1605. value={[
  1606. this.state.shouKuanDate[0]
  1607. ? moment(this.state.shouKuanDate[0])
  1608. : null,
  1609. this.state.shouKuanDate[1]
  1610. ? moment(this.state.shouKuanDate[1])
  1611. : null
  1612. ]}
  1613. onChange={(data, dataString) => {
  1614. this.setState({ shouKuanDate: dataString });
  1615. }}
  1616. />
  1617. <Button
  1618. type="primary"
  1619. onClick={this.search}
  1620. style={{ marginLeft: 10 }}
  1621. disabled={this.state.loadingA ? true : false}
  1622. >
  1623. 搜索
  1624. </Button>
  1625. <Button onClick={this.reset}>重置</Button>
  1626. </div>
  1627. </TabPane>
  1628. <TabPane tab="打印" key="3">
  1629. <Button
  1630. type="primary"
  1631. style={{ margin: "11px 0px 10px 10px" }}
  1632. onClick={this.printAll}
  1633. disabled={!this.state.dataSource.length}
  1634. >
  1635. 打印所有列表信息
  1636. </Button>
  1637. <Button
  1638. type="primary"
  1639. disabled={this.state.selectedRowKeys.length != 1}
  1640. style={{ margin: "11px 0px 10px 10px" }}
  1641. onClick={() => {
  1642. this.inRecordData();
  1643. this.setState({
  1644. bvisible: true
  1645. });
  1646. }}
  1647. >
  1648. 打印开票详情
  1649. </Button>
  1650. <Button
  1651. type="primary"
  1652. disabled={this.state.selectedRowKeys.length != 1}
  1653. style={{ margin: "11px 0px 10px 10px" }}
  1654. onClick={() => {
  1655. this.waterData();
  1656. this.setState({
  1657. cvisible: true
  1658. });
  1659. }}
  1660. >
  1661. 打印收款流水
  1662. </Button>
  1663. <Button
  1664. type="primary"
  1665. disabled={this.state.selectedRowKeys.length != 1}
  1666. style={{ margin: "11px 0px 10px 10px" }}
  1667. onClick={() => {
  1668. this.timeData();
  1669. this.setState({
  1670. timeVisible: true
  1671. });
  1672. }}
  1673. >
  1674. 打印工时信息
  1675. </Button>
  1676. <Button
  1677. type="primary"
  1678. disabled={this.state.selectedRowKeys.length != 1}
  1679. style={{ margin: "11px 0px 10px 10px" }}
  1680. onClick={() => {
  1681. this.cuiData();
  1682. this.setState({
  1683. cuiVisible: true
  1684. });
  1685. }}
  1686. >
  1687. 打印催款信息
  1688. </Button>
  1689. <Button
  1690. type="primary"
  1691. disabled={this.state.selectedRowKeys.length != 1}
  1692. style={{ margin: "11px 0px 10px 10px" }}
  1693. onClick={() => {
  1694. this.proData();
  1695. this.setState({
  1696. proVisible: true
  1697. });
  1698. }}
  1699. >
  1700. 打印项目信息
  1701. </Button>
  1702. </TabPane>
  1703. <TabPane tab="导出Excel" key="4">
  1704. <Button
  1705. type="primary"
  1706. style={{ margin: "11px 0px 10px 10px" }}
  1707. onClick={this.exportAll}
  1708. >
  1709. 导出当前列表
  1710. </Button>
  1711. <Button
  1712. type="primary"
  1713. disabled={this.state.selectedRowKeys.length != 1}
  1714. style={{ margin: "11px 0px 10px 10px" }}
  1715. onClick={this.exportKaip}
  1716. >
  1717. 导出所选开票详情
  1718. </Button>
  1719. <Button
  1720. type="primary"
  1721. disabled={this.state.selectedRowKeys.length != 1}
  1722. style={{ margin: "11px 0px 10px 10px" }}
  1723. onClick={this.exportWater}
  1724. >
  1725. 导出所选收款详情流水
  1726. </Button>
  1727. <Button
  1728. type="primary"
  1729. disabled={this.state.selectedRowKeys.length != 1}
  1730. style={{ margin: "11px 0px 10px 10px" }}
  1731. onClick={this.exportTime}
  1732. >
  1733. 导出所选工时信息
  1734. </Button>
  1735. <Button
  1736. type="primary"
  1737. disabled={this.state.selectedRowKeys.length != 1}
  1738. style={{ margin: "11px 0px 10px 10px" }}
  1739. onClick={this.exportCui}
  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={this.exportPro}
  1748. >
  1749. 导出项目详情
  1750. </Button>
  1751. </TabPane>
  1752. <TabPane tab="查看" key="5">
  1753. <Button
  1754. type="primary"
  1755. disabled={this.state.selectedRowKeys.length != 1}
  1756. style={{ margin: "11px 0px 10px 10px" }}
  1757. onClick={() => {
  1758. this.inRecordData();
  1759. this.setState({
  1760. bvisible: true
  1761. });
  1762. }}
  1763. >
  1764. 查看开票详情
  1765. </Button>
  1766. <Button
  1767. type="primary"
  1768. disabled={this.state.selectedRowKeys.length != 1}
  1769. style={{ margin: "11px 0px 10px 10px" }}
  1770. onClick={() => {
  1771. this.waterData();
  1772. this.setState({
  1773. cvisible: true
  1774. });
  1775. }}
  1776. >
  1777. 详情收款流水
  1778. </Button>
  1779. <Button
  1780. type="primary"
  1781. disabled={this.state.selectedRowKeys.length != 1}
  1782. style={{ margin: "11px 0px 10px 10px" }}
  1783. onClick={() => {
  1784. this.timeData();
  1785. this.setState({
  1786. timeVisible: true
  1787. });
  1788. }}
  1789. >
  1790. 工时信息
  1791. </Button>
  1792. <Button
  1793. type="primary"
  1794. disabled={this.state.selectedRowKeys.length != 1}
  1795. style={{ margin: "11px 0px 10px 10px" }}
  1796. onClick={() => {
  1797. this.cuiData();
  1798. this.setState({
  1799. cuiVisible: true
  1800. });
  1801. }}
  1802. >
  1803. 催款信息
  1804. </Button>
  1805. <Button
  1806. type="primary"
  1807. disabled={this.state.selectedRowKeys.length != 1}
  1808. style={{ margin: "11px 0px 10px 10px" }}
  1809. onClick={() => {
  1810. this.proData();
  1811. this.setState({
  1812. proVisible: true
  1813. });
  1814. }}
  1815. >
  1816. 项目信息
  1817. </Button>
  1818. </TabPane>
  1819. {/* <TabPane tab="批量操作" key="6">
  1820. <Button
  1821. type="primary"
  1822. disabled={this.state.selectedRowKeys.length == 0}
  1823. style={{ margin: "0px 0px 10px 10px" }}
  1824. onClick={e => {
  1825. e.stopPropagation(),
  1826. this.evaluateY(this.state.selectedRowKeys, "财务专员");
  1827. }}
  1828. >
  1829. 转交
  1830. </Button>
  1831. </TabPane> */}
  1832. </Tabs>
  1833. <div className="patent-table">
  1834. <Spin spinning={this.state.loadingA}>
  1835. <Table
  1836. bordered
  1837. columns={
  1838. this.state.changeList == undefined
  1839. ? this.state.columns
  1840. : this.state.changeList
  1841. }
  1842. dataSource={this.state.dataSource}
  1843. rowSelection={rowSelection}
  1844. scroll={{ x: "max-content", y: 0 }}
  1845. pagination={this.state.pagination}
  1846. onRowDoubleClick={this.tableRowClick.bind(this)}
  1847. size="small"
  1848. />
  1849. </Spin>
  1850. <p
  1851. style={{ display: "inline-block", fontSize: "14px", color: "red" }}
  1852. >
  1853. {
  1854. <span style={{ marginRight: 10 }}>
  1855. {`收款金额总计(万元):${this.state.hui ? this.state.hui : "0"}`}
  1856. </span>
  1857. }
  1858. {
  1859. <span>
  1860. {`合同额总计(万元):${
  1861. this.state.totalHui ? this.state.totalHui : "0"
  1862. }`}
  1863. </span>
  1864. }
  1865. </p>
  1866. </div>
  1867. <Assign
  1868. title="任务"
  1869. selApi={"/api/admin/newOrder/updateFinance"}
  1870. data={this.state.assignDataY}
  1871. showDesc={this.state.assignVisibleY}
  1872. closeDesc={this.closeAssignY.bind(this)}
  1873. // fenpaiData={8}
  1874. specially={0}
  1875. roleName={this.state.nub}
  1876. requestMethod={"get"}
  1877. />
  1878. <OrderDesc
  1879. data={this.state.RowData}
  1880. showDesc={this.state.showDesc}
  1881. closeDesc={this.closeDesc.bind(this)}
  1882. />
  1883. <Receivable
  1884. title="收款记录"
  1885. api="/api/admin/financial/addReceiptsFlow"
  1886. data={this.state.assignDataX}
  1887. showDesc={this.state.assignVisibleX}
  1888. closeDesc={this.closeAssignX.bind(this)}
  1889. />
  1890. <Modal
  1891. visible={this.state.boHuiVisible}
  1892. width="400px"
  1893. title="驳回备注"
  1894. footer=""
  1895. onOk={this.boHuiOk}
  1896. onCancel={this.boHuiCancel}
  1897. >
  1898. <Form layout="horizontal" onSubmit={this.boHuiSubmit}>
  1899. <Spin spinning={this.state.loading}>
  1900. <FormItem
  1901. labelCol={{ span: 5 }}
  1902. wrapperCol={{ span: 16 }}
  1903. label={
  1904. <span>
  1905. <strong style={{ color: "#f00" }}>*</strong>驳回原因
  1906. </span>
  1907. }
  1908. >
  1909. <Input
  1910. type="textarea"
  1911. rows={4}
  1912. placeholder="请输入驳回原因"
  1913. value={this.state.content}
  1914. onChange={e => {
  1915. this.setState({ content: e.target.value });
  1916. }}
  1917. />
  1918. </FormItem>
  1919. <FormItem wrapperCol={{ span: 12, offset: 5 }}>
  1920. <Button
  1921. type="primary"
  1922. htmlType="submit"
  1923. style={{ marginRight: 20 }}
  1924. >
  1925. 驳回
  1926. </Button>
  1927. <Button
  1928. type="default"
  1929. onClick={() => {
  1930. this.boHuiCancel();
  1931. }}
  1932. >
  1933. 取消
  1934. </Button>
  1935. </FormItem>
  1936. </Spin>
  1937. </Form>
  1938. </Modal>
  1939. <Modal
  1940. visible={this.state.bvisible}
  1941. footer=""
  1942. title="开票历史记录"
  1943. className="admin-desc-content"
  1944. width="900px"
  1945. onCancel={this.inRecordCanl}
  1946. >
  1947. <Spin spinning={this.state.loading}>
  1948. <div
  1949. className="patent-table"
  1950. ref={e => {
  1951. this.refs.kaiPiao = e;
  1952. }}
  1953. >
  1954. <Table
  1955. columns={this.state.columnsDate}
  1956. dataSource={this.state.recordData}
  1957. pagination={false}
  1958. bordered
  1959. size="small"
  1960. />
  1961. <div className="clearfix" style={{ marginTop: "20px" }}>
  1962. <FormItem
  1963. className="half-item"
  1964. {...formItemLayout}
  1965. label={<span style={{ fontSize: "14px" }}>开票总计</span>}
  1966. >
  1967. <span>{this.state.sum + "(万元)"}</span>
  1968. </FormItem>
  1969. </div>
  1970. <ReactToPrint
  1971. trigger={() => (
  1972. <Button
  1973. type="primary"
  1974. style={{
  1975. float: "right",
  1976. // marginTop: 10,
  1977. position: "absolute",
  1978. top: -54,
  1979. right: 30
  1980. }}
  1981. >
  1982. 打印
  1983. </Button>
  1984. )}
  1985. content={() => this.refs.kaiPiao}
  1986. />
  1987. </div>
  1988. </Spin>
  1989. </Modal>
  1990. <Modal
  1991. visible={this.state.cvisible}
  1992. footer=""
  1993. title="详细收款流水"
  1994. className="admin-desc-content"
  1995. width="1300px"
  1996. onCancel={this.waterCanl}
  1997. >
  1998. <Spin spinning={this.state.loading}>
  1999. <div
  2000. className="patent-table"
  2001. ref={e => {
  2002. this.refs.shouKuan = e;
  2003. }}
  2004. >
  2005. <Table
  2006. columns={this.state.waterlistDate}
  2007. dataSource={this.state.waterData}
  2008. pagination={false}
  2009. scroll={{ x: "max-content", y: 0 }}
  2010. bordered
  2011. size="small"
  2012. />
  2013. <div className="clearfix" style={{ marginTop: "20px" }}>
  2014. <FormItem
  2015. className="half-item"
  2016. {...formItemLayout}
  2017. label={<span style={{ fontSize: "14px" }}>总计金额</span>}
  2018. >
  2019. <span>{this.state.waterSum + "(万元)"}</span>
  2020. </FormItem>
  2021. </div>
  2022. <ReactToPrint
  2023. trigger={() => (
  2024. <Button
  2025. type="primary"
  2026. style={{
  2027. float: "right",
  2028. position: "absolute",
  2029. top: -54,
  2030. right: 30
  2031. }}
  2032. >
  2033. 打印
  2034. </Button>
  2035. )}
  2036. content={() => this.refs.shouKuan}
  2037. />
  2038. </div>
  2039. </Spin>
  2040. </Modal>
  2041. <Modal
  2042. visible={this.state.dvisible}
  2043. footer=""
  2044. title="所有列表信息"
  2045. className="admin-desc-content"
  2046. width="1300px"
  2047. onCancel={() => {
  2048. this.loadData();
  2049. this.setState({
  2050. dvisible: false
  2051. });
  2052. }}
  2053. >
  2054. <Spin spinning={this.state.loading}>
  2055. <div
  2056. className="patent-table"
  2057. style={{
  2058. // width: 900,
  2059. // position: "relative",
  2060. // left: "50%",
  2061. // transform: "translate(-50%)",
  2062. padding: "25px 0 30px 30px"
  2063. }}
  2064. ref={e => {
  2065. this.refs.all = e;
  2066. }}
  2067. >
  2068. <Table
  2069. columns={this.state.printColumns}
  2070. dataSource={this.state.dataSource}
  2071. pagination={false}
  2072. bordered
  2073. size="small"
  2074. />
  2075. </div>
  2076. </Spin>
  2077. <ReactToPrint
  2078. trigger={() => (
  2079. <Button
  2080. type="primary"
  2081. style={{
  2082. float: "right",
  2083. marginTop: 10,
  2084. position: "absolute",
  2085. top: 0,
  2086. right: 30
  2087. }}
  2088. >
  2089. 打印
  2090. </Button>
  2091. )}
  2092. content={() => this.refs.all}
  2093. />
  2094. </Modal>
  2095. <Modal
  2096. visible={this.state.timeVisible}
  2097. footer=""
  2098. title="工时详情"
  2099. className="admin-desc-content"
  2100. width="1300px"
  2101. pagination={false}
  2102. onCancel={() => {
  2103. this.loadData();
  2104. this.setState({
  2105. timeVisible: false
  2106. });
  2107. }}
  2108. >
  2109. <Spin spinning={this.state.loading}>
  2110. <Project
  2111. record={this.state.record}
  2112. visible={this.state.pvisible}
  2113. cancel={() => {
  2114. this.setState({ pvisible: false });
  2115. }}
  2116. />
  2117. <div
  2118. className="patent-table"
  2119. style={
  2120. {
  2121. // width: 900,
  2122. // position: "relative",
  2123. // left: "50%",
  2124. // transform: "translate(-50%)",
  2125. // padding: "25px 0 30px 30px"
  2126. }
  2127. }
  2128. ref={e => {
  2129. this.refs.all = e;
  2130. }}
  2131. >
  2132. <Table
  2133. columns={this.state.timeColumns}
  2134. dataSource={this.state.timeDataList}
  2135. onRowClick={this.tableRowClickPro}
  2136. scroll={{ x: "max-content", y: 0 }}
  2137. pagination={false}
  2138. bordered
  2139. size="small"
  2140. />
  2141. </div>
  2142. </Spin>
  2143. <ReactToPrint
  2144. trigger={() => (
  2145. <Button
  2146. type="primary"
  2147. style={{
  2148. float: "right",
  2149. marginTop: 10,
  2150. position: "absolute",
  2151. top: 0,
  2152. right: 30
  2153. }}
  2154. >
  2155. 打印
  2156. </Button>
  2157. )}
  2158. content={() => this.refs.all}
  2159. />
  2160. </Modal>
  2161. <Modal
  2162. visible={this.state.cuiVisible}
  2163. footer=""
  2164. title="催款详情"
  2165. className="admin-desc-content"
  2166. width="1300px"
  2167. pagination={false}
  2168. onCancel={() => {
  2169. this.loadData();
  2170. this.setState({
  2171. cuiVisible: false
  2172. });
  2173. }}
  2174. >
  2175. <Spin spinning={this.state.loading}>
  2176. <div
  2177. className="patent-table"
  2178. style={
  2179. {
  2180. // width: 900,
  2181. // position: "relative",
  2182. // left: "50%",
  2183. // transform: "translate(-50%)",
  2184. // padding: "25px 0 30px 30px"
  2185. }
  2186. }
  2187. ref={e => {
  2188. this.refs.all = e;
  2189. }}
  2190. >
  2191. <Table
  2192. columns={this.state.cuiColumns}
  2193. dataSource={this.state.cuiDataList}
  2194. scroll={{ x: "max-content", y: 0 }}
  2195. pagination={false}
  2196. bordered
  2197. size="small"
  2198. />
  2199. </div>
  2200. </Spin>
  2201. <ReactToPrint
  2202. trigger={() => (
  2203. <Button
  2204. type="primary"
  2205. style={{
  2206. float: "right",
  2207. marginTop: 10,
  2208. position: "absolute",
  2209. top: 0,
  2210. right: 30
  2211. }}
  2212. >
  2213. 打印
  2214. </Button>
  2215. )}
  2216. content={() => this.refs.all}
  2217. />
  2218. </Modal>
  2219. <Modal
  2220. visible={this.state.proVisible}
  2221. footer=""
  2222. title="项目详情"
  2223. className="admin-desc-content"
  2224. width="1300px"
  2225. pagination={false}
  2226. onCancel={() => {
  2227. this.loadData();
  2228. this.setState({
  2229. proVisible: false
  2230. });
  2231. }}
  2232. >
  2233. <Spin spinning={this.state.loading}>
  2234. <Project
  2235. record={this.state.record}
  2236. visible={this.state.pvisible}
  2237. cancel={() => {
  2238. this.setState({ pvisible: false });
  2239. }}
  2240. />
  2241. <div
  2242. className="patent-table"
  2243. style={
  2244. {
  2245. // width: 900,
  2246. // position: "relative",
  2247. // left: "50%",
  2248. // transform: "translate(-50%)",
  2249. // padding: "25px 0 30px 30px"
  2250. }
  2251. }
  2252. ref={e => {
  2253. this.refs.all = e;
  2254. }}
  2255. >
  2256. <Table
  2257. columns={this.state.proColumns}
  2258. dataSource={this.state.proDataList}
  2259. onRowClick={this.tableRowClickPro}
  2260. scroll={{ x: "max-content", y: 0 }}
  2261. pagination={false}
  2262. bordered
  2263. size="small"
  2264. />
  2265. </div>
  2266. <span style={{ display: "block", marginTop: 10, color: "red" }}>
  2267. 外包(内部)价格总计(万元):{this.state.totalWaibao}
  2268. </span>
  2269. </Spin>
  2270. <ReactToPrint
  2271. trigger={() => (
  2272. <Button
  2273. type="primary"
  2274. style={{
  2275. float: "right",
  2276. marginTop: 10,
  2277. position: "absolute",
  2278. top: 0,
  2279. right: 30
  2280. }}
  2281. >
  2282. 打印
  2283. </Button>
  2284. )}
  2285. content={() => this.refs.all}
  2286. />
  2287. </Modal>
  2288. </div>
  2289. );
  2290. }
  2291. });
  2292. export default ShouKuang;