shouKuanAll.jsx 76 KB

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