shouKuanAll.jsx 79 KB

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