shouKuang.jsx 75 KB

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