approvedOutsourcing.jsx 135 KB

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