approvedOutsourcing.jsx 118 KB

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