approvedOutsourcingAll.jsx 129 KB

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