shouKuanAll.jsx 78 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651
  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.setState({
  1163. selectedRowKeys: []
  1164. })
  1165. this.loadData();
  1166. },
  1167. // 拆分详细
  1168. showRes(record) {
  1169. this.setState({
  1170. resVisible: true,
  1171. resRecord: record,
  1172. });
  1173. },
  1174. resCancel() {
  1175. this.setState({
  1176. resVisible: false,
  1177. });
  1178. },
  1179. reset() {
  1180. this.state.nameSearch = "";
  1181. this.state.releaseDate = [];
  1182. this.state.shouKuanDate = [];
  1183. this.state.orderNoSearch = "";
  1184. this.state.departmenttList = undefined;
  1185. this.state.amountStatus = undefined;
  1186. this.state.processStatus = [];
  1187. this.state.processStatusSearch = [];
  1188. this.state.contractNoSearch = "";
  1189. this.state.liquidationStatus = [];
  1190. this.state.contractNo = "";
  1191. this.loadData();
  1192. },
  1193. //驳回
  1194. boHuiSubmit(e) {
  1195. e.preventDefault();
  1196. if (!this.state.content) {
  1197. message.warning("请填写驳回原因");
  1198. return false;
  1199. }
  1200. this.setState({
  1201. loading: true,
  1202. });
  1203. $.ajax({
  1204. method: "POST",
  1205. dataType: "json",
  1206. crossDomain: false,
  1207. url: globalConfig.context + "/api/admin/financial/reject",
  1208. data: {
  1209. orderNo: this.state.bohuiData.orderNo,
  1210. reason: this.state.content,
  1211. },
  1212. }).done(
  1213. function (data) {
  1214. if (!data.error.length) {
  1215. message.success("驳回成功!");
  1216. this.setState({
  1217. loading: false,
  1218. });
  1219. this.boHuiOk();
  1220. } else {
  1221. message.warning(data.error[0].message);
  1222. }
  1223. }.bind(this)
  1224. );
  1225. },
  1226. searchSwitch() {
  1227. this.setState({
  1228. searchMore: !this.state.searchMore,
  1229. });
  1230. },
  1231. changeList(arr) {
  1232. const newArr = [];
  1233. this.state.columns.forEach((item) => {
  1234. arr.forEach((val) => {
  1235. if (val === item.title) {
  1236. newArr.push(item);
  1237. }
  1238. });
  1239. });
  1240. this.setState({
  1241. changeList: newArr,
  1242. });
  1243. },
  1244. onSelectChange(selectedRowKeys) {
  1245. // for(var i=0; i<selectedRowKeys.length; i++){
  1246. // for(var j=i+1; j<selectedRowKeys.length; j++){
  1247. // if(selectedRowKeys[i]==selectedRowKeys[j]){
  1248. // selectedRowKeys.splice(j,1);
  1249. // j--;
  1250. // }
  1251. // }
  1252. // }
  1253. this.setState({ selectedRowKeys });
  1254. },
  1255. inRecordCanl() {
  1256. this.setState({
  1257. bvisible: false,
  1258. });
  1259. },
  1260. inRecordData() {
  1261. this.setState({
  1262. loading: true,
  1263. });
  1264. $.ajax({
  1265. method: "get",
  1266. dataType: "json",
  1267. crossDomain: false,
  1268. url:
  1269. globalConfig.context +
  1270. "/api/admin/orderInvoice/salesmanOrderInvoiceList",
  1271. data: {
  1272. orderNo: this.state.selectedRowKeys[0],
  1273. pageSize: 9999,
  1274. },
  1275. success: function (data) {
  1276. let theArr = [];
  1277. let sum = 0;
  1278. if (!data.data) {
  1279. if (data.error && data.error.length) {
  1280. message.warning(data.error[0].message);
  1281. }
  1282. } else {
  1283. for (let i = 0; i < data.data.list.length; i++) {
  1284. let thisdata = data.data.list[i];
  1285. sum += parseFloat(thisdata.amount);
  1286. theArr.push({
  1287. id: thisdata.id,
  1288. orderno: thisdata.orderno, //订单编号
  1289. amount: thisdata.amount, //签单金额
  1290. createTime: thisdata.createTime, //流程状态
  1291. status: thisdata.status, //结算状态
  1292. rejectReason: thisdata.rejectReason,
  1293. });
  1294. }
  1295. }
  1296. this.setState({
  1297. recordData: theArr,
  1298. sum: sum.toFixed(6),
  1299. });
  1300. }.bind(this),
  1301. }).done(
  1302. function () {
  1303. this.setState({
  1304. loading: false,
  1305. });
  1306. }.bind(this)
  1307. );
  1308. },
  1309. waterData() {
  1310. this.state.data = [];
  1311. this.setState({
  1312. loading: true,
  1313. });
  1314. $.ajax({
  1315. method: "get",
  1316. dataType: "json",
  1317. crossDomain: false,
  1318. url: globalConfig.context + "/api/admin/financial/myBillList",
  1319. data: {
  1320. orderNo: this.state.selectedRowKeys[0],
  1321. pageSize: 9999,
  1322. whoType: 1,
  1323. },
  1324. success: function (data) {
  1325. let theArr = [];
  1326. let waterSum = 0;
  1327. if (!data.data || !data.data.list) {
  1328. if (data.error && data.error.length) {
  1329. message.warning(data.error[0].message);
  1330. }
  1331. } else {
  1332. for (let i = 0; i < data.data.list.length; i++) {
  1333. let thisdata = data.data.list[i];
  1334. if (thisdata.deleteSign == 0) {
  1335. waterSum += parseFloat(thisdata.transactionAmount);
  1336. }
  1337. theArr.push({
  1338. key: i,
  1339. orderNo: thisdata.orderNo,
  1340. billNo: thisdata.billNo,
  1341. transactionAmount: thisdata.transactionAmount,
  1342. payeeName: thisdata.payeeName,
  1343. payerName: thisdata.payerName,
  1344. transactionSubject: thisdata.transactionSubject,
  1345. transactionChannel: thisdata.transactionChannel,
  1346. financialPayTimes: thisdata.financialPayTimes,
  1347. financialPayNo: thisdata.financialPayNo,
  1348. createrName: thisdata.createrName,
  1349. saleName: thisdata.saleName,
  1350. createTimes: thisdata.createTimes,
  1351. type:
  1352. thisdata.type == 0
  1353. ? "手工"
  1354. : thisdata.type == 1
  1355. ? "批量"
  1356. : "合同变更退款",
  1357. deleteSign: thisdata.deleteSign,
  1358. deleteTimes: thisdata.deleteTimes,
  1359. refundTimes: thisdata.refundTimes,
  1360. remarks: thisdata.remarks,
  1361. });
  1362. }
  1363. }
  1364. this.setState({
  1365. waterData: theArr,
  1366. waterSum: (Math.round(waterSum * 1000000) / 1000000).toFixed(6),
  1367. });
  1368. }.bind(this),
  1369. }).always(
  1370. function () {
  1371. this.setState({
  1372. loading: false,
  1373. });
  1374. }.bind(this)
  1375. );
  1376. },
  1377. waterCanl() {
  1378. this.setState({
  1379. cvisible: false,
  1380. });
  1381. },
  1382. exportKaip() {
  1383. window.location.href =
  1384. globalConfig.context +
  1385. "/api/admin/receivables/exportInvoice?" +
  1386. `orderNo=${this.state.selectedRowKeys}`;
  1387. },
  1388. exportAll() {
  1389. window.location.href =
  1390. globalConfig.context +
  1391. "/api/admin/receivables/exportReceivables?" +
  1392. `orderNo=${
  1393. this.state.orderNoSearch ? this.state.orderNoSearch : ""
  1394. }&buyerName=${
  1395. this.state.nameSearch ? this.state.nameSearch : ""
  1396. }&departmentId=${
  1397. this.state.departmenttList ? this.state.departmenttList : ""
  1398. }&contractNo=${
  1399. this.state.contractNoSearch ? this.state.contractNoSearch : ""
  1400. }&processStatus=${this.state.processStatusSearch}`;
  1401. },
  1402. exportWater() {
  1403. window.location.href =
  1404. globalConfig.context +
  1405. "/api/admin/receivables/exportMyBill?" +
  1406. `orderNo=${this.state.selectedRowKeys}&whoType=1`;
  1407. },
  1408. printAll() {
  1409. this.setState({
  1410. dvisible: true,
  1411. });
  1412. this.loadData(1, 9999);
  1413. },
  1414. timeData() {
  1415. this.setState({
  1416. loading: true,
  1417. });
  1418. $.ajax({
  1419. method: "get",
  1420. dataType: "json",
  1421. crossDomain: false,
  1422. url: globalConfig.context + "/api/admin/orderProject/taskHoursList",
  1423. data: {
  1424. orderNo: this.state.selectedRowKeys[0],
  1425. pageSize: 9999,
  1426. },
  1427. success: function (data) {
  1428. let theArr = [];
  1429. if (!data.data || !data.data.list) {
  1430. if (data.error && data.error.length) {
  1431. message.warning(data.error[0].message);
  1432. }
  1433. } else {
  1434. for (let i = 0; i < data.data.list.length; i++) {
  1435. let thisdata = data.data.list[i];
  1436. theArr.push({
  1437. key: i + 1,
  1438. id: thisdata.id, //ID
  1439. orderNo: thisdata.orderNo, //订单编号
  1440. taskName: thisdata.taskName, //任务名称
  1441. userName: thisdata.userName, //客户名称
  1442. cname: thisdata.cname, //项目品类
  1443. taskStatus: thisdata.taskStatus, //任务状态
  1444. receiverName: thisdata.receiverName, //负责人
  1445. hours: thisdata.hours, //任务工时
  1446. depName: thisdata.depName, //派单公司
  1447. contractNo: thisdata.contractNo,
  1448. signTime: thisdata.signTime,
  1449. creteTime: thisdata.creteTime,
  1450. projectStatus: thisdata.projectStatus,
  1451. commodityPrice: thisdata.commodityPrice, //价格
  1452. commodityQuantity: thisdata.commodityQuantity, //数量
  1453. salesmanName: thisdata.salesmanName, //订单负责人
  1454. taskDistributionTime: thisdata.taskDistributionTime,
  1455. taskEndTime: thisdata.taskEndTime,
  1456. outsource: thisdata.outsource,
  1457. splitStatus: thisdata.splitStatus,
  1458. splitSuper: thisdata.splitSuper,
  1459. splitId: thisdata.splitId,
  1460. });
  1461. }
  1462. }
  1463. this.setState({
  1464. timeDataList: theArr,
  1465. });
  1466. }.bind(this),
  1467. }).always(
  1468. function () {
  1469. this.setState({
  1470. loading: false,
  1471. });
  1472. }.bind(this)
  1473. );
  1474. },
  1475. exportTime() {
  1476. const data = {
  1477. orderNo: this.state.selectedRowKeys[0],
  1478. pageSize: 9999,
  1479. };
  1480. window.location.href =
  1481. globalConfig.context +
  1482. "/api/admin/orderProject/exportMyTaskList?" +
  1483. $.param(data);
  1484. },
  1485. exportPro() {
  1486. const data = {
  1487. orderNo: this.state.selectedRowKeys[0],
  1488. };
  1489. window.location.href =
  1490. globalConfig.context +
  1491. "/api/admin/newOrder/exportOrderTaskData?" +
  1492. $.param(data);
  1493. },
  1494. exportCui() {
  1495. var data = {
  1496. orderNo: this.state.selectedRowKeys[0]
  1497. ? this.state.selectedRowKeys[0]
  1498. : undefined, //订单编号
  1499. // specially: 1,
  1500. pageSize: 9999,
  1501. };
  1502. window.location.href =
  1503. globalConfig.context +
  1504. "/api/admin/newOrder/exportOrderDunData?" +
  1505. $.param(data);
  1506. },
  1507. cuiData() {
  1508. this.setState({
  1509. loading: true,
  1510. });
  1511. $.ajax({
  1512. method: "get",
  1513. dataType: "json",
  1514. crossDomain: false,
  1515. url: globalConfig.context + "/api/admin/newOrder/dunOrderNewList",
  1516. data: {
  1517. orderNo: this.state.selectedRowKeys[0],
  1518. pageSize: 9999,
  1519. },
  1520. success: function (data) {
  1521. let theArr = [];
  1522. if (!data.data || !data.data.list) {
  1523. if (data.error && data.error.length) {
  1524. message.warning(data.error[0].message);
  1525. }
  1526. } else {
  1527. for (let i = 0; i < data.data.list.length; i++) {
  1528. let thisdata = data.data.list[i];
  1529. theArr.push({
  1530. key: i + 1,
  1531. orderNo: thisdata.orderNo,
  1532. contractNo: thisdata.contractNo,
  1533. userName: thisdata.userName,
  1534. buyerName: thisdata.buyerName,
  1535. departmentName: thisdata.departmentName,
  1536. salesmanName: thisdata.salesmanName,
  1537. depName: thisdata.depName,
  1538. orderStatus: thisdata.orderStatus,
  1539. projectStatus: thisdata.projectStatus,
  1540. totalAmount: thisdata.totalAmount,
  1541. liquidationStatus: thisdata.liquidationStatus,
  1542. settlementAmount: thisdata.settlementAmount,
  1543. accountsReceivable: thisdata.accountsReceivable,
  1544. dunSubject: thisdata.dunSubject,
  1545. startDate: thisdata.startDate,
  1546. taskStatus: thisdata.taskStatus,
  1547. cname: thisdata.cname,
  1548. id: thisdata.id,
  1549. taskName: thisdata.taskName,
  1550. hours: thisdata.hours,
  1551. taskDistributionTime: thisdata.taskDistributionTime,
  1552. taskEndTime: thisdata.taskEndTime,
  1553. dunStatus: thisdata.dunStatus == 0 ? "未触发" : "已触发",
  1554. });
  1555. }
  1556. }
  1557. this.setState({
  1558. cuiDataList: theArr,
  1559. });
  1560. }.bind(this),
  1561. }).always(
  1562. function () {
  1563. this.setState({
  1564. loading: false,
  1565. });
  1566. }.bind(this)
  1567. );
  1568. },
  1569. cuiTabChange(index) {
  1570. this.setState({
  1571. cuiTabKey: index,
  1572. });
  1573. if (index == 2) {
  1574. this.setState({
  1575. loading: true,
  1576. });
  1577. $.ajax({
  1578. method: "get",
  1579. dataType: "json",
  1580. crossDomain: false,
  1581. url: globalConfig.context + "/api/admin/newOrder/arrearsDunList",
  1582. data: {
  1583. orderNo: this.state.selectedRowKeys[0],
  1584. pageSize: 9999,
  1585. },
  1586. success: function (data) {
  1587. let theArr = [];
  1588. if (data.error.length || data.data.list == "") {
  1589. if (data.error && data.error.length) {
  1590. message.warning(data.error[0].message);
  1591. }
  1592. } else {
  1593. for (let i = 0; i < data.data.list.length; i++) {
  1594. let thisdata = data.data.list[i];
  1595. let obj = thisdata;
  1596. obj.key = i;
  1597. theArr.push(obj);
  1598. }
  1599. }
  1600. this.setState({
  1601. qianDataList: theArr,
  1602. });
  1603. }.bind(this),
  1604. }).always(
  1605. function () {
  1606. this.setState({
  1607. loading: false,
  1608. });
  1609. }.bind(this)
  1610. );
  1611. }
  1612. },
  1613. proData() {
  1614. this.setState({
  1615. loading: true,
  1616. });
  1617. $.ajax({
  1618. method: "get",
  1619. dataType: "json",
  1620. crossDomain: false,
  1621. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  1622. data: {
  1623. orderNo: this.state.selectedRowKeys[0],
  1624. pageSize: 9999,
  1625. },
  1626. success: function (data) {
  1627. let theArr = [];
  1628. let totalWaibao = 0;
  1629. if (!data.data) {
  1630. if (data.error && data.error.length) {
  1631. message.warning(data.error[0].message);
  1632. }
  1633. } else {
  1634. for (let i = 0; i < data.data.length; i++) {
  1635. let thisdata = data.data[i];
  1636. totalWaibao += thisdata.outsourcePrice;
  1637. theArr.push({
  1638. key: i + 1,
  1639. orderNo: thisdata.orderNo,
  1640. contractNo: thisdata.contractNo,
  1641. userName: thisdata.userName,
  1642. buyerName: thisdata.buyerName,
  1643. departmentName: thisdata.departmentName,
  1644. salesmanName: thisdata.salesmanName,
  1645. depName: thisdata.depName,
  1646. orderStatus: thisdata.orderStatus,
  1647. projectStatus: thisdata.projectStatus,
  1648. commodityName: thisdata.commodityName,
  1649. totalAmount: thisdata.totalAmount,
  1650. liquidationStatus: thisdata.liquidationStatus,
  1651. settlementAmount: thisdata.settlementAmount,
  1652. accountsReceivable: thisdata.accountsReceivable,
  1653. dunSubject: thisdata.dunSubject,
  1654. startDate: thisdata.startDate,
  1655. taskStatus: thisdata.taskStatus,
  1656. cname: thisdata.cname,
  1657. id: thisdata.id,
  1658. taskName: thisdata.taskName,
  1659. hours: thisdata.hours,
  1660. taskDistributionTime: thisdata.taskDistributionTime,
  1661. taskEndTime: thisdata.taskEndTime,
  1662. commodityQuantity: thisdata.commodityQuantity,
  1663. commodityPrice: thisdata.commodityPrice,
  1664. certificateNumber: thisdata.certificateNumber,
  1665. taskComment: thisdata.taskComment,
  1666. outsourceName: thisdata.outsourceName,
  1667. outsourcePrice: thisdata.outsourcePrice,
  1668. outsource: thisdata.outsource,
  1669. splitStatus: thisdata.splitStatus,
  1670. });
  1671. }
  1672. }
  1673. totalWaibao = (Math.round(totalWaibao * 1000000) / 1000000).toFixed(6);
  1674. this.setState({
  1675. proDataList: theArr,
  1676. totalWaibao,
  1677. });
  1678. }.bind(this),
  1679. }).always(
  1680. function () {
  1681. this.setState({
  1682. loading: false,
  1683. });
  1684. }.bind(this)
  1685. );
  1686. },
  1687. tableRowClickPro(record) {
  1688. this.setState({
  1689. pvisible: true,
  1690. record,
  1691. });
  1692. },
  1693. kaiPiaoData(record) {
  1694. this.setState({
  1695. avisible: true,
  1696. });
  1697. this.invoiceData(record.id);
  1698. },
  1699. invoiceData(id) {
  1700. this.setState({
  1701. loading: true,
  1702. });
  1703. $.ajax({
  1704. method: "get",
  1705. dataType: "json",
  1706. crossDomain: false,
  1707. url:
  1708. globalConfig.context + "/api/admin/orderInvoice/selectByIdOrderInvoice",
  1709. data: {
  1710. id,
  1711. },
  1712. success: function (data) {
  1713. let thisdata = data.data;
  1714. let obj = {
  1715. contractNo: thisdata.contractNo,
  1716. orderNo: thisdata.orderNo,
  1717. approval: thisdata.approval,
  1718. type: thisdata.type,
  1719. status: thisdata.status,
  1720. remarks: thisdata.remarks,
  1721. invoiceType: thisdata.invoiceType,
  1722. unitName: thisdata.unitName,
  1723. taxNumber: thisdata.taxNumber,
  1724. amount: thisdata.amount,
  1725. banks: thisdata.banks,
  1726. content: thisdata.content,
  1727. unitAddress: thisdata.unitAddress,
  1728. invoiceRemarks: thisdata.invoiceRemarks,
  1729. unitMobile: thisdata.unitMobile,
  1730. post: thisdata.post,
  1731. addressee: thisdata.addressee,
  1732. addresseeMobile: thisdata.addresseeMobile,
  1733. addresseeProvince: thisdata.addresseeProvince,
  1734. addresseeCity: thisdata.addresseeCity,
  1735. addresseeArea: thisdata.addresseeArea,
  1736. alreadyAmount: thisdata.alreadyAmount,
  1737. recipientAddress: thisdata.recipientAddress,
  1738. orgCodeUrl: thisdata.voucherUrl
  1739. ? splitUrl(
  1740. thisdata.voucherUrl,
  1741. ",",
  1742. globalConfig.avatarHost + "/upload"
  1743. )
  1744. : [],
  1745. };
  1746. this.setState({
  1747. modalData: obj,
  1748. });
  1749. }.bind(this),
  1750. }).done(
  1751. function () {
  1752. this.setState({
  1753. loading: false,
  1754. });
  1755. }.bind(this)
  1756. );
  1757. },
  1758. visitCancels() {
  1759. this.setState({
  1760. avisible: false,
  1761. });
  1762. },
  1763. render() {
  1764. const formItemLayout = {
  1765. labelCol: { span: 8 },
  1766. wrapperCol: { span: 14 },
  1767. };
  1768. const { RangePicker } = DatePicker;
  1769. var departmentArr = this.state.departmentArr || [];
  1770. const { loading, selectedRowKeys, visible } = this.state;
  1771. const rowSelection = {
  1772. selectedRowKeys,
  1773. onChange: this.onSelectChange,
  1774. hideDefaultSelections: true,
  1775. type: "radio",
  1776. };
  1777. return (
  1778. <div className="user-content">
  1779. {this.state.resVisible ? (
  1780. <ResolutionDetail
  1781. cancel={this.resCancel}
  1782. detail={this.state.resRecord}
  1783. visible={this.state.resVisible}
  1784. id={this.state.resRecord.orderNo}
  1785. />
  1786. ) : (
  1787. ""
  1788. )}
  1789. <div className="content-title" style={{ marginBottom: 10 }}>
  1790. <span style={{ fontWeight: 900, fontSize: 16 }}>收款结算</span>
  1791. </div>
  1792. <Tabs defaultActiveKey="2" className="test">
  1793. <TabPane tab="搜索" key="2">
  1794. <div className="user-search" style={{ marginLeft: 10 }}>
  1795. <Input
  1796. placeholder="订单编号"
  1797. value={this.state.orderNoSearch}
  1798. onChange={(e) => {
  1799. this.setState({ orderNoSearch: e.target.value });
  1800. }}
  1801. />
  1802. <Input
  1803. placeholder="客户名称"
  1804. value={this.state.nameSearch}
  1805. onChange={(e) => {
  1806. this.setState({ nameSearch: e.target.value });
  1807. }}
  1808. />
  1809. <Select
  1810. placeholder="订单部门"
  1811. style={{ width: 120, marginRight: 10 }}
  1812. value={this.state.departmenttList}
  1813. onChange={(e) => {
  1814. this.setState({ departmenttList: e });
  1815. }}
  1816. >
  1817. {departmentArr.map(function (item) {
  1818. return (
  1819. <Select.Option key={item.id}>{item.name}</Select.Option>
  1820. );
  1821. })}
  1822. </Select>
  1823. <Input
  1824. placeholder="合同编号"
  1825. value={this.state.contractNoSearch}
  1826. onChange={(e) => {
  1827. this.setState({
  1828. contractNoSearch: e.target.value,
  1829. });
  1830. }}
  1831. />
  1832. <Select
  1833. placeholder="流程状态"
  1834. onChange={(e) => {
  1835. this.setState({ processStatusSearch: e });
  1836. }}
  1837. style={{ width: 120, marginRight: 5 }}
  1838. value={this.state.processStatusSearch}
  1839. >
  1840. <Option value="3">未分配</Option>
  1841. <Option value="4">已分配</Option>
  1842. <Option value="9">已驳回</Option>
  1843. </Select>
  1844. <Select
  1845. placeholder="结算状态"
  1846. onChange={(e) => {
  1847. this.setState({ liquidationStatus: e });
  1848. }}
  1849. style={{ width: 120, marginRight: 5 }}
  1850. value={this.state.liquidationStatus}
  1851. >
  1852. <Option value="0">首付待付清</Option>
  1853. <Option value="1">尾款待付清</Option>
  1854. <Option value="2">已付清</Option>
  1855. </Select>
  1856. <Select
  1857. style={{ width: 120 }}
  1858. placeholder="签单金额"
  1859. value={this.state.amountStatus}
  1860. onChange={(e) => {
  1861. this.setState({
  1862. amountStatus: e,
  1863. });
  1864. }}
  1865. >
  1866. <Option value="0">10万元以下</Option>
  1867. <Option value="1">10~20万元</Option>
  1868. <Option value="2">20~30万元</Option>
  1869. <Option value="3">30~40万元</Option>
  1870. <Option value="4">40万元以上</Option>
  1871. </Select>
  1872. <span style={{}}>下单日期:</span>
  1873. <RangePicker
  1874. style={{ width: 170 }}
  1875. value={[
  1876. this.state.releaseDate[0]
  1877. ? moment(this.state.releaseDate[0])
  1878. : null,
  1879. this.state.releaseDate[1]
  1880. ? moment(this.state.releaseDate[1])
  1881. : null,
  1882. ]}
  1883. onChange={(data, dataString) => {
  1884. this.setState({ releaseDate: dataString });
  1885. }}
  1886. />
  1887. <span style={{}}>最近收款:</span>
  1888. <RangePicker
  1889. style={{ width: 170 }}
  1890. value={[
  1891. this.state.shouKuanDate[0]
  1892. ? moment(this.state.shouKuanDate[0])
  1893. : null,
  1894. this.state.shouKuanDate[1]
  1895. ? moment(this.state.shouKuanDate[1])
  1896. : null,
  1897. ]}
  1898. onChange={(data, dataString) => {
  1899. this.setState({ shouKuanDate: dataString });
  1900. }}
  1901. />
  1902. <Button
  1903. type="primary"
  1904. onClick={this.search}
  1905. style={{ marginLeft: 10 }}
  1906. disabled={this.state.loadingA ? true : false}
  1907. >
  1908. 搜索
  1909. </Button>
  1910. <Button onClick={this.reset}>重置</Button>
  1911. </div>
  1912. </TabPane>
  1913. <TabPane tab="打印" key="3">
  1914. <Button
  1915. type="primary"
  1916. style={{ margin: "11px 0px 10px 10px" }}
  1917. onClick={this.printAll}
  1918. disabled={!this.state.dataSource.length}
  1919. >
  1920. 打印所有列表信息
  1921. </Button>
  1922. <Button
  1923. type="primary"
  1924. disabled={this.state.selectedRowKeys.length != 1}
  1925. style={{ margin: "11px 0px 10px 10px" }}
  1926. onClick={() => {
  1927. this.inRecordData();
  1928. this.setState({
  1929. bvisible: true,
  1930. });
  1931. }}
  1932. >
  1933. 打印开票详情
  1934. </Button>
  1935. <Button
  1936. type="primary"
  1937. disabled={this.state.selectedRowKeys.length != 1}
  1938. style={{ margin: "11px 0px 10px 10px" }}
  1939. onClick={() => {
  1940. this.waterData();
  1941. this.setState({
  1942. cvisible: true,
  1943. });
  1944. }}
  1945. >
  1946. 打印收款流水
  1947. </Button>
  1948. <Button
  1949. type="primary"
  1950. disabled={this.state.selectedRowKeys.length != 1}
  1951. style={{ margin: "11px 0px 10px 10px" }}
  1952. onClick={() => {
  1953. this.timeData();
  1954. this.setState({
  1955. timeVisible: true,
  1956. });
  1957. }}
  1958. >
  1959. 打印工时信息
  1960. </Button>
  1961. <Button
  1962. type="primary"
  1963. disabled={this.state.selectedRowKeys.length != 1}
  1964. style={{ margin: "11px 0px 10px 10px" }}
  1965. onClick={() => {
  1966. this.cuiData();
  1967. this.setState({
  1968. cuiVisible: true,
  1969. });
  1970. }}
  1971. >
  1972. 打印催款信息
  1973. </Button>
  1974. <Button
  1975. type="primary"
  1976. disabled={this.state.selectedRowKeys.length != 1}
  1977. style={{ margin: "11px 0px 10px 10px" }}
  1978. onClick={() => {
  1979. this.proData();
  1980. this.setState({
  1981. proVisible: true,
  1982. });
  1983. }}
  1984. >
  1985. 打印项目进度
  1986. </Button>
  1987. </TabPane>
  1988. <TabPane tab="导出Excel" key="4">
  1989. <Button
  1990. type="primary"
  1991. style={{ margin: "11px 0px 10px 10px" }}
  1992. onClick={this.exportAll}
  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={this.exportKaip}
  2001. >
  2002. 导出所选开票详情
  2003. </Button>
  2004. <Button
  2005. type="primary"
  2006. disabled={this.state.selectedRowKeys.length != 1}
  2007. style={{ margin: "11px 0px 10px 10px" }}
  2008. onClick={this.exportWater}
  2009. >
  2010. 导出所选收款详情流水
  2011. </Button>
  2012. <Button
  2013. type="primary"
  2014. disabled={this.state.selectedRowKeys.length != 1}
  2015. style={{ margin: "11px 0px 10px 10px" }}
  2016. onClick={this.exportTime}
  2017. >
  2018. 导出所选工时信息
  2019. </Button>
  2020. <Button
  2021. type="primary"
  2022. disabled={this.state.selectedRowKeys.length != 1}
  2023. style={{ margin: "11px 0px 10px 10px" }}
  2024. onClick={this.exportCui}
  2025. >
  2026. 导出催款信息
  2027. </Button>
  2028. <Button
  2029. type="primary"
  2030. disabled={this.state.selectedRowKeys.length != 1}
  2031. style={{ margin: "11px 0px 10px 10px" }}
  2032. onClick={this.exportPro}
  2033. >
  2034. 导出项目进度
  2035. </Button>
  2036. </TabPane>
  2037. <TabPane tab="查看" key="5">
  2038. <Button
  2039. type="primary"
  2040. disabled={this.state.selectedRowKeys.length != 1}
  2041. style={{ margin: "11px 0px 10px 10px" }}
  2042. onClick={() => {
  2043. this.inRecordData();
  2044. this.setState({
  2045. bvisible: true,
  2046. });
  2047. }}
  2048. >
  2049. 查看开票详情
  2050. </Button>
  2051. <Button
  2052. type="primary"
  2053. disabled={this.state.selectedRowKeys.length != 1}
  2054. style={{ margin: "11px 0px 10px 10px" }}
  2055. onClick={() => {
  2056. this.waterData();
  2057. this.setState({
  2058. cvisible: true,
  2059. });
  2060. }}
  2061. >
  2062. 详情收款流水
  2063. </Button>
  2064. <Button
  2065. type="primary"
  2066. disabled={this.state.selectedRowKeys.length != 1}
  2067. style={{ margin: "11px 0px 10px 10px" }}
  2068. onClick={() => {
  2069. this.timeData();
  2070. this.setState({
  2071. timeVisible: true,
  2072. });
  2073. }}
  2074. >
  2075. 工时信息
  2076. </Button>
  2077. <Button
  2078. type="primary"
  2079. disabled={this.state.selectedRowKeys.length != 1}
  2080. style={{ margin: "11px 0px 10px 10px" }}
  2081. onClick={() => {
  2082. this.cuiData();
  2083. this.setState({
  2084. cuiVisible: true,
  2085. });
  2086. }}
  2087. >
  2088. 催款信息
  2089. </Button>
  2090. <Button
  2091. type="primary"
  2092. disabled={this.state.selectedRowKeys.length != 1}
  2093. style={{ margin: "11px 0px 10px 10px" }}
  2094. onClick={() => {
  2095. this.proData();
  2096. this.setState({
  2097. proVisible: true,
  2098. });
  2099. }}
  2100. >
  2101. 项目进度
  2102. </Button>
  2103. </TabPane>
  2104. <TabPane tab="更改表格显示数据" key="1">
  2105. <div style={{ marginLeft: 10 }}>
  2106. <ChooseList
  2107. columns={this.state.columns}
  2108. changeFn={this.changeList}
  2109. changeList={this.state.changeList}
  2110. top={55}
  2111. margin={11}
  2112. />
  2113. </div>
  2114. </TabPane>
  2115. {/* <TabPane tab="批量操作" key="6">
  2116. <Button
  2117. type="primary"
  2118. disabled={this.state.selectedRowKeys.length == 0}
  2119. style={{ margin: "0px 0px 10px 10px" }}
  2120. onClick={e => {
  2121. e.stopPropagation(),
  2122. this.evaluateY(this.state.selectedRowKeys, "财务专员");
  2123. }}
  2124. >
  2125. 转交
  2126. </Button>
  2127. </TabPane> */}
  2128. </Tabs>
  2129. <div className="patent-table">
  2130. <Spin spinning={this.state.loadingA}>
  2131. <Table
  2132. bordered
  2133. columns={
  2134. this.state.changeList == undefined
  2135. ? this.state.columns
  2136. : this.state.changeList
  2137. }
  2138. style={{
  2139. cursor: 'pointer',
  2140. }}
  2141. dataSource={this.state.dataSource}
  2142. rowSelection={rowSelection}
  2143. scroll={{ x: "max-content", y: 0 }}
  2144. pagination={this.state.pagination}
  2145. onRowDoubleClick={this.tableRowClick.bind(this)}
  2146. size="small"
  2147. />
  2148. </Spin>
  2149. <p
  2150. style={{ display: "inline-block", fontSize: "14px", color: "red" }}
  2151. >
  2152. {
  2153. <span style={{ marginRight: 10 }}>
  2154. {`收款金额总计(万元):${this.state.hui ? this.state.hui : "0"}`}
  2155. </span>
  2156. }
  2157. {
  2158. <span>
  2159. {`合同额总计(万元):${
  2160. this.state.totalHui ? this.state.totalHui : "0"
  2161. }`}
  2162. </span>
  2163. }
  2164. </p>
  2165. </div>
  2166. <Assign
  2167. title="任务"
  2168. selApi={"/api/admin/newOrder/updateFinance"}
  2169. data={this.state.assignDataY}
  2170. showDesc={this.state.assignVisibleY}
  2171. closeDesc={this.closeAssignY.bind(this)}
  2172. // fenpaiData={8}
  2173. specially={0}
  2174. roleName={this.state.nub}
  2175. requestMethod={"get"}
  2176. />
  2177. <OrderDesc
  2178. data={this.state.RowData}
  2179. showDesc={this.state.showDesc}
  2180. closeDesc={this.closeDesc.bind(this)}
  2181. />
  2182. <Receivable
  2183. title="收款记录"
  2184. api="/api/admin/financial/addReceiptsFlow"
  2185. data={this.state.assignDataX}
  2186. showDesc={this.state.assignVisibleX}
  2187. closeDesc={this.closeAssignX.bind(this)}
  2188. />
  2189. <Modal
  2190. visible={this.state.boHuiVisible}
  2191. width="400px"
  2192. title="驳回备注"
  2193. footer=""
  2194. onOk={this.boHuiOk}
  2195. onCancel={this.boHuiCancel}
  2196. >
  2197. <Form layout="horizontal" onSubmit={this.boHuiSubmit}>
  2198. <Spin spinning={this.state.loading}>
  2199. <FormItem
  2200. labelCol={{ span: 5 }}
  2201. wrapperCol={{ span: 16 }}
  2202. label={
  2203. <span>
  2204. <strong style={{ color: "#f00" }}>*</strong>驳回原因
  2205. </span>
  2206. }
  2207. >
  2208. <Input
  2209. type="textarea"
  2210. rows={4}
  2211. placeholder="请输入驳回原因"
  2212. value={this.state.content}
  2213. onChange={(e) => {
  2214. this.setState({ content: e.target.value });
  2215. }}
  2216. />
  2217. </FormItem>
  2218. <FormItem wrapperCol={{ span: 12, offset: 5 }}>
  2219. <Button
  2220. type="primary"
  2221. htmlType="submit"
  2222. style={{ marginRight: 20 }}
  2223. >
  2224. 驳回
  2225. </Button>
  2226. <Button
  2227. type="default"
  2228. onClick={() => {
  2229. this.boHuiCancel();
  2230. }}
  2231. >
  2232. 取消
  2233. </Button>
  2234. </FormItem>
  2235. </Spin>
  2236. </Form>
  2237. </Modal>
  2238. <Modal
  2239. visible={this.state.bvisible}
  2240. footer=""
  2241. title="开票历史记录"
  2242. className="admin-desc-content"
  2243. width="900px"
  2244. onCancel={this.inRecordCanl}
  2245. >
  2246. <Spin spinning={this.state.loading}>
  2247. <div
  2248. className="patent-table"
  2249. ref={(e) => {
  2250. this.refs.kaiPiao = e;
  2251. }}
  2252. >
  2253. <Table
  2254. columns={this.state.columnsDate}
  2255. dataSource={this.state.recordData}
  2256. onRowClick={this.kaiPiaoData}
  2257. pagination={false}
  2258. bordered
  2259. size="small"
  2260. />
  2261. <div className="clearfix" style={{ marginTop: "20px" }}>
  2262. <FormItem
  2263. className="half-item"
  2264. {...formItemLayout}
  2265. label={<span style={{ fontSize: "14px" }}>开票总计</span>}
  2266. >
  2267. <span>{this.state.sum + "(万元)"}</span>
  2268. </FormItem>
  2269. </div>
  2270. <ReactToPrint
  2271. trigger={() => (
  2272. <Button
  2273. type="primary"
  2274. style={{
  2275. float: "right",
  2276. // marginTop: 10,
  2277. position: "absolute",
  2278. top: -54,
  2279. right: 30,
  2280. }}
  2281. >
  2282. 打印
  2283. </Button>
  2284. )}
  2285. content={() => this.refs.kaiPiao}
  2286. />
  2287. </div>
  2288. </Spin>
  2289. </Modal>
  2290. <Modal
  2291. visible={this.state.cvisible}
  2292. footer=""
  2293. title="详细收款流水"
  2294. className="admin-desc-content"
  2295. width="1300px"
  2296. onCancel={this.waterCanl}
  2297. >
  2298. <Spin spinning={this.state.loading}>
  2299. <div
  2300. className="patent-table"
  2301. ref={(e) => {
  2302. this.refs.shouKuan = e;
  2303. }}
  2304. >
  2305. <Table
  2306. columns={this.state.waterlistDate}
  2307. dataSource={this.state.waterData}
  2308. pagination={false}
  2309. scroll={{ x: "max-content", y: 0 }}
  2310. bordered
  2311. size="small"
  2312. />
  2313. <div className="clearfix" style={{ marginTop: "20px" }}>
  2314. <FormItem
  2315. className="half-item"
  2316. {...formItemLayout}
  2317. label={<span style={{ fontSize: "14px" }}>总计金额</span>}
  2318. >
  2319. <span>{this.state.waterSum + "(万元)"}</span>
  2320. </FormItem>
  2321. </div>
  2322. <ReactToPrint
  2323. trigger={() => (
  2324. <Button
  2325. type="primary"
  2326. style={{
  2327. float: "right",
  2328. position: "absolute",
  2329. top: -54,
  2330. right: 30,
  2331. }}
  2332. >
  2333. 打印
  2334. </Button>
  2335. )}
  2336. content={() => this.refs.shouKuan}
  2337. />
  2338. </div>
  2339. </Spin>
  2340. </Modal>
  2341. <Modal
  2342. visible={this.state.dvisible}
  2343. footer=""
  2344. title="所有列表信息"
  2345. className="admin-desc-content"
  2346. width="1300px"
  2347. onCancel={() => {
  2348. this.loadData();
  2349. this.setState({
  2350. dvisible: false,
  2351. });
  2352. }}
  2353. >
  2354. <Spin spinning={this.state.loading}>
  2355. <div
  2356. className="patent-table"
  2357. style={{
  2358. // width: 900,
  2359. // position: "relative",
  2360. // left: "50%",
  2361. // transform: "translate(-50%)",
  2362. padding: "25px 0 30px 30px",
  2363. }}
  2364. ref={(e) => {
  2365. this.refs.all = e;
  2366. }}
  2367. >
  2368. <Table
  2369. columns={this.state.printColumns}
  2370. dataSource={this.state.dataSource}
  2371. pagination={false}
  2372. bordered
  2373. size="small"
  2374. />
  2375. </div>
  2376. </Spin>
  2377. <ReactToPrint
  2378. trigger={() => (
  2379. <Button
  2380. type="primary"
  2381. style={{
  2382. float: "right",
  2383. marginTop: 10,
  2384. position: "absolute",
  2385. top: 0,
  2386. right: 30,
  2387. }}
  2388. >
  2389. 打印
  2390. </Button>
  2391. )}
  2392. content={() => this.refs.all}
  2393. />
  2394. </Modal>
  2395. <Modal
  2396. visible={this.state.timeVisible}
  2397. footer=""
  2398. title="工时详情"
  2399. className="admin-desc-content"
  2400. width="1300px"
  2401. pagination={false}
  2402. onCancel={() => {
  2403. this.loadData();
  2404. this.setState({
  2405. timeVisible: false,
  2406. });
  2407. }}
  2408. >
  2409. <Spin spinning={this.state.loading}>
  2410. <Project
  2411. record={this.state.record}
  2412. visible={this.state.pvisible}
  2413. isAuditPaymentGLY={true}
  2414. cancel={() => {
  2415. this.setState({ pvisible: false });
  2416. }}
  2417. />
  2418. <div
  2419. className="patent-table"
  2420. style={
  2421. {
  2422. // width: 900,
  2423. // position: "relative",
  2424. // left: "50%",
  2425. // transform: "translate(-50%)",
  2426. // padding: "25px 0 30px 30px"
  2427. }
  2428. }
  2429. ref={(e) => {
  2430. this.refs.all = e;
  2431. }}
  2432. >
  2433. <Table
  2434. columns={this.state.timeColumns}
  2435. dataSource={this.state.timeDataList}
  2436. // onRowClick={this.tableRowClickPro}
  2437. scroll={{ x: "max-content", y: 0 }}
  2438. pagination={false}
  2439. bordered
  2440. size="small"
  2441. />
  2442. </div>
  2443. </Spin>
  2444. <ReactToPrint
  2445. trigger={() => (
  2446. <Button
  2447. type="primary"
  2448. style={{
  2449. float: "right",
  2450. marginTop: 10,
  2451. position: "absolute",
  2452. top: 0,
  2453. right: 30,
  2454. }}
  2455. >
  2456. 打印
  2457. </Button>
  2458. )}
  2459. content={() => this.refs.all}
  2460. />
  2461. </Modal>
  2462. <Modal
  2463. visible={this.state.cuiVisible}
  2464. footer=""
  2465. title="催款详情"
  2466. className="admin-desc-content"
  2467. width="1300px"
  2468. pagination={false}
  2469. onCancel={() => {
  2470. this.loadData();
  2471. this.setState({
  2472. cuiVisible: false,
  2473. cuiTabKey: "1",
  2474. });
  2475. }}
  2476. >
  2477. <Tabs activeKey={this.state.cuiTabKey} onChange={this.cuiTabChange}>
  2478. <TabPane tab="催款节点" key="1">
  2479. <Spin spinning={this.state.loading}>
  2480. <div
  2481. className="patent-table"
  2482. ref={(e) => {
  2483. this.refs.all = e;
  2484. }}
  2485. >
  2486. <Table
  2487. columns={this.state.cuiColumns}
  2488. dataSource={this.state.cuiDataList}
  2489. scroll={{ x: "max-content", y: 0 }}
  2490. pagination={false}
  2491. bordered
  2492. size="small"
  2493. />
  2494. </div>
  2495. <ReactToPrint
  2496. trigger={() => (
  2497. <Button
  2498. type="primary"
  2499. style={{
  2500. float: "right",
  2501. marginTop: 10,
  2502. position: "absolute",
  2503. top: "-60px",
  2504. right: 30,
  2505. }}
  2506. >
  2507. 打印
  2508. </Button>
  2509. )}
  2510. content={() => this.refs.all}
  2511. />
  2512. </Spin>
  2513. </TabPane>
  2514. <TabPane tab="欠款催收记录" key="2">
  2515. <Spin spinning={this.state.loading}>
  2516. <div
  2517. className="patent-table"
  2518. ref={(e) => {
  2519. this.refs.all = e;
  2520. }}
  2521. >
  2522. <Table
  2523. columns={this.state.qianColumns}
  2524. dataSource={this.state.qianDataList}
  2525. scroll={{ x: "max-content", y: 0 }}
  2526. pagination={false}
  2527. bordered
  2528. size="small"
  2529. />
  2530. </div>
  2531. <ReactToPrint
  2532. trigger={() => (
  2533. <Button
  2534. type="primary"
  2535. style={{
  2536. float: "right",
  2537. marginTop: 10,
  2538. position: "absolute",
  2539. top: "-60px",
  2540. right: 30,
  2541. }}
  2542. >
  2543. 打印
  2544. </Button>
  2545. )}
  2546. content={() => this.refs.all}
  2547. />
  2548. </Spin>
  2549. </TabPane>
  2550. </Tabs>
  2551. </Modal>
  2552. <Modal
  2553. visible={this.state.proVisible}
  2554. footer=""
  2555. title="项目进度"
  2556. className="admin-desc-content"
  2557. width="1300px"
  2558. pagination={false}
  2559. onCancel={() => {
  2560. this.loadData(this.state.page);
  2561. this.setState({
  2562. proVisible: false,
  2563. });
  2564. }}
  2565. >
  2566. <Spin spinning={this.state.loading}>
  2567. <Project
  2568. record={this.state.record}
  2569. visible={this.state.pvisible}
  2570. isAuditPaymentGLY={true}
  2571. cancel={() => {
  2572. this.setState({ pvisible: false });
  2573. }}
  2574. />
  2575. <div
  2576. className="patent-table"
  2577. style={
  2578. {
  2579. // width: 900,
  2580. // position: "relative",
  2581. // left: "50%",
  2582. // transform: "translate(-50%)",
  2583. // padding: "25px 0 30px 30px"
  2584. }
  2585. }
  2586. ref={(e) => {
  2587. this.refs.all = e;
  2588. }}
  2589. >
  2590. <Table
  2591. columns={this.state.proColumns}
  2592. dataSource={this.state.proDataList}
  2593. onRowClick={this.tableRowClickPro}
  2594. scroll={{ x: "max-content", y: 0 }}
  2595. pagination={false}
  2596. bordered
  2597. size="small"
  2598. />
  2599. </div>
  2600. <span style={{ display: "block", marginTop: 10, color: "red" }}>
  2601. 外包(内部)价格总计(万元):{this.state.totalWaibao}
  2602. </span>
  2603. </Spin>
  2604. <ReactToPrint
  2605. trigger={() => (
  2606. <Button
  2607. type="primary"
  2608. style={{
  2609. float: "right",
  2610. marginTop: 10,
  2611. position: "absolute",
  2612. top: 0,
  2613. right: 30,
  2614. }}
  2615. >
  2616. 打印
  2617. </Button>
  2618. )}
  2619. content={() => this.refs.all}
  2620. />
  2621. </Modal>
  2622. <KaiPiaoModal
  2623. visible={this.state.avisible}
  2624. data={this.state.modalData}
  2625. onCancel={this.visitCancels}
  2626. loading={this.state.loading}
  2627. />
  2628. </div>
  2629. );
  2630. },
  2631. });
  2632. export default ShouKuang;