approvedOutsourcingAll.jsx 120 KB

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