approvedOutsourcingAll.jsx 95 KB

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