shouKuanAll.jsx 76 KB

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