shouKuanAll.jsx 74 KB

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