approvedOutsourcing.jsx 135 KB

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