shouKuanAll.jsx 74 KB

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