shouKuanAll.jsx 74 KB

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