shouKuang.jsx 68 KB

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