myTask.jsx 213 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114
  1. import React from 'react'
  2. import $ from 'jquery'
  3. import moment from 'moment'
  4. import Picture from '@/manageCenter/publicComponent/picture'
  5. import '@/manageCenter/financialManage/distribute/public.less'
  6. import '@/manageCenter/financialManage/distribute/shouKuan.less'
  7. import OrderDetail from '../../order/orderNew/changeComponent/orderDetail'
  8. import ResolutionDetail from '@/resolutionDetail'
  9. import {Button,
  10. Form,
  11. Input,
  12. Select,
  13. Spin,
  14. Table,
  15. message,
  16. DatePicker,
  17. Modal,
  18. Radio,
  19. Cascader,
  20. Popconfirm,
  21. Switch,
  22. Tabs,
  23. Col,
  24. Icon,
  25. Upload,
  26. AutoComplete,
  27. Tag, Row,
  28. } from 'antd'
  29. import Assign from '@/manageCenter/publicComponent/assign'
  30. import { areaSelect } from '@/NewDicProvinceList'
  31. import { ChooseList } from '../../order/orderNew/chooseList'
  32. import OrderRiZi from '@/orderRiZi.jsx'
  33. import './table.less'
  34. import {getMaterialStatus,
  35. getUrgentStatus,
  36. getProcessStatus,
  37. getApproval,
  38. getTaskStatus,
  39. getLiquidationStatus,
  40. getProjectStatus,
  41. splitUrl,
  42. getboutique,
  43. ShowModal,
  44. getRefundStatus,} from '@/tools'
  45. import { taskStatus, projectStatus, cuiJieDian } from '@/dataDic.js'
  46. import ShowModalDiv from '@/showModal.jsx'
  47. import CheckProject from '../../components/checkProject';
  48. import NewSupplier from './newSupplier';
  49. import ImgList from "../../../common/imgList";
  50. import OperationPayNode from "./operationPayNode";
  51. import {object} from "prop-types";
  52. const confirm = Modal.confirm
  53. const FormItem = Form.Item
  54. const { TabPane } = Tabs
  55. const { TextArea } = Input
  56. const { Option } = Select
  57. const { MonthPicker, RangePicker } = DatePicker
  58. const PicturesWall = React.createClass({
  59. getInitialState() {
  60. return {
  61. fileList: [],
  62. }
  63. },
  64. handleChange(info) {
  65. let fileList = info.fileList
  66. this.setState({
  67. fileList,
  68. })
  69. this.props.fileList(fileList)
  70. },
  71. componentWillReceiveProps(nextProps) {
  72. this.state.fileList = nextProps.pictureUrl
  73. this.state.pojectApplicationUrl = undefined
  74. },
  75. render() {
  76. const { fileList } = this.state
  77. return (
  78. <div style={{ display: 'inline-block' }}>
  79. <ImgList
  80. domId={this.props.domId}
  81. uploadConfig={{
  82. action:globalConfig.context + '/api/admin/outsourceOrg/uploadOutsourceFile',
  83. multiple:true,
  84. data:{ sign: 'order_outsource' },
  85. listType:"picture-card",
  86. }}
  87. onChange={(infor)=>{
  88. this.handleChange(infor)
  89. }}
  90. fileList={fileList}
  91. />
  92. </div>
  93. )
  94. },
  95. })
  96. const Task = React.createClass({
  97. loadData(pageNo) {
  98. this.state.data = []
  99. this.setState({
  100. page: pageNo,
  101. loading: true,
  102. })
  103. $.ajax({
  104. method: 'get',
  105. dataType: 'json',
  106. crossDomain: false,
  107. url: globalConfig.context + '/api/admin/orderProject/orderTaskList',
  108. data: {
  109. pageNo: pageNo || 1,
  110. pageSize: this.state.pagination.pageSize,
  111. specially: 0, //个人
  112. name: this.state.nameSearch, //客户名称
  113. depId: this.state.departmenttSearch, //订单部门
  114. orderNo: this.state.orderNoSearch, //订单编号
  115. contractNo: this.state.contractNoSearch, //合同编号
  116. taskId: this.state.taskNoSearch, //项目编号
  117. taskStatus: this.state.taskStatuSearch, //项目状态
  118. projectStatus: this.state.projectStatusSearch, //项目状态
  119. adminName: this.state.adminName, //项目受理人
  120. approval: this.state.approvalSearch, //特批状态搜索
  121. outsourceStatus:
  122. this.state.outsourceStatusSearch >= 999
  123. ? undefined
  124. : this.state.outsourceStatusSearch, //外包状态搜索
  125. },
  126. success: function (data) {
  127. ShowModal(this)
  128. let theArr = []
  129. if (!data.data || !data.data.list) {
  130. if (data.error && data.error.length) {
  131. message.warning(data.error[0].message)
  132. }
  133. } else {
  134. for (let i = 0; i < data.data.list.length; i++) {
  135. let thisdata = data.data.list[i];
  136. thisdata.key = i;
  137. thisdata.userName = thisdata.taskName.substring(0, 5) === '软件著作权'
  138. ? thisdata.userName +
  139. '(' +
  140. thisdata.commodityQuantity.toString() +
  141. '/' +
  142. thisdata.alreadyNumber +
  143. ')'
  144. : thisdata.userName;
  145. theArr.push(thisdata)
  146. }
  147. }
  148. this.state.pagination.current = data.data.pageNo
  149. this.state.pagination.total = data.data.totalCount
  150. if (data.data && data.data.list && !data.data.list.length) {
  151. this.state.pagination.current = 0
  152. this.state.pagination.total = 0
  153. }
  154. this.setState({
  155. dataSource: theArr,
  156. pagination: this.state.pagination,
  157. })
  158. }.bind(this),
  159. }).always(
  160. function () {
  161. this.setState({
  162. loading: false,
  163. })
  164. }.bind(this)
  165. )
  166. },
  167. getInitialState() {
  168. return {
  169. audit: 1,
  170. projectType: '', //项目分类
  171. paySubject: [],
  172. paySubjectName: '', //付款科目名称
  173. PayNodeCompany: [],
  174. thirdMaterial: 0, //第三方信息材料 0-无 1-有
  175. thirdUrgent: 0, //第三方信息加急状态
  176. thirdCompanyName: '',
  177. thirdUnitPrice: '',
  178. currentCompanyName: '', //当前选中供应商名称
  179. thirdQuantity: 1,
  180. payNodeQuantity: 1,
  181. thirdRemarks: '',
  182. customerArr: [],
  183. currentTotalPrice: 0, //当前修改页面的总价
  184. saveThirdList: [],
  185. orderData: [],
  186. orderNo: '',
  187. jiedian: [],
  188. jiedianNew: [],
  189. timeVisible: false,
  190. ThirdListVisible: false,
  191. PayNodeVisible: false, //新增付款节点
  192. searchMore: true,
  193. assignVisible: false,
  194. releaseDate: [],
  195. patentType: -1,
  196. patentNameType: -1,
  197. startType: 0, //外包供应商类型
  198. // 判断是否是退回给咨询师经理
  199. flag: false,
  200. roleName: '',
  201. activeKey: '1',
  202. //特批状态搜索
  203. approvalSearch: undefined,
  204. testFlag: true,
  205. boHuivisible: false,
  206. selectedRowKeys: [],
  207. avisible: false,
  208. departmentArr: [],
  209. selectedRows: [],
  210. attachmentUrl: [],
  211. contactList: [],
  212. paginations: false,
  213. loading: false,
  214. pagination: {
  215. defaultCurrent: 1,
  216. defaultPageSize: 10,
  217. showQuickJumper: true,
  218. pageSize: 10,
  219. onChange: function (page) {
  220. this.loadData(page)
  221. }.bind(this),
  222. showTotal: function (total) {
  223. return '共' + total + '条数据'
  224. },
  225. },
  226. // 子组件改变的表格title数组
  227. changeList: undefined,
  228. columnsTime: [
  229. {
  230. title: '工作时长(小时)',
  231. dataIndex: 'hours',
  232. key: 'hours',
  233. },
  234. {
  235. title: '工作时间',
  236. dataIndex: 'taskDays',
  237. key: 'taskDays',
  238. },
  239. // {
  240. // title: "项目负责人",
  241. // dataIndex: "remarks",
  242. // key: "remarks"
  243. // },
  244. {
  245. title: '备注',
  246. dataIndex: 'remarks',
  247. key: 'remarks',
  248. },
  249. ],
  250. columns: [
  251. {
  252. title: '项目编号',
  253. dataIndex: 'id',
  254. key: 'id',
  255. render: (text, record) => {
  256. if (record.splitStatus == 2) {
  257. return <span>{record.splitSuper + '-' + record.splitId}</span>
  258. } else {
  259. return text
  260. }
  261. },
  262. },
  263. {
  264. title: '项目名称',
  265. dataIndex: 'taskName',
  266. key: 'taskName',
  267. render: (text) => {
  268. return text && text.length > 8 ? text.substr(0, 8) + '…' : text
  269. },
  270. },
  271. {
  272. title: '项目数量',
  273. dataIndex: 'commodityQuantity',
  274. key: 'commodityQuantity',
  275. },
  276. {
  277. title: '订单编号',
  278. dataIndex: 'orderNo',
  279. key: 'orderNo',
  280. },
  281. {
  282. title: '合同编号',
  283. dataIndex: 'contractNo',
  284. key: 'contractNo',
  285. },
  286. {
  287. title: '业务类别',
  288. dataIndex: 'cname',
  289. key: 'cname',
  290. },
  291. {
  292. title: '客户名称',
  293. dataIndex: 'userName',
  294. key: 'userName',
  295. className: 'userName',
  296. },
  297. {
  298. title: '分配状态',
  299. dataIndex: 'taskStatus',
  300. key: 'taskStatus',
  301. render: (text) => {
  302. return getTaskStatus(text)
  303. },
  304. },
  305. {
  306. title: '项目状态',
  307. dataIndex: 'projectStatus',
  308. key: 'projectStatus',
  309. render: (text) => {
  310. return getProjectStatus(text)
  311. },
  312. },
  313. {
  314. title: '审核状态',
  315. dataIndex: 'outsourceStatus',
  316. key: 'outsourceStatus',
  317. render: (text,record) => {
  318. if(record.outsourceType === 1){
  319. return '供应商'
  320. }else{
  321. if (text === 0) {
  322. return <Tag color="#f50">外包待审核</Tag>
  323. } else if (text === 1) {
  324. return <Tag color="#87d068">外包已通过</Tag>
  325. } else if (text === 2) {
  326. return <Tag color="#2db7f5">外包被驳回</Tag>
  327. } else {
  328. return <div style={{textAlign:'center'}}>/</div>
  329. }
  330. return text
  331. }
  332. },
  333. },
  334. {
  335. title: '分配时间',
  336. dataIndex: 'taskDate',
  337. key: 'taskDate',
  338. },
  339. {
  340. title: '订单部门',
  341. dataIndex: 'depName',
  342. key: 'depName',
  343. },
  344. {
  345. title: '累计工时(小时)',
  346. dataIndex: 'hours',
  347. key: 'hours',
  348. },
  349. {
  350. title: "项目金额(万元)",
  351. dataIndex: "commodityPrice",
  352. key: "commodityPrice",
  353. },
  354. {
  355. title: "外包成本(万元)",
  356. dataIndex: "costAmount",
  357. key: "costAmount",
  358. render: (text, record) => {
  359. return (<span>
  360. {
  361. isNaN(parseFloat(text)) ? text : parseFloat(text)
  362. }
  363. </span>)
  364. }
  365. },
  366. {
  367. title: "已付(万元)",
  368. dataIndex: "partyAmount",
  369. key: "partyAmount",
  370. render: (text, record) => {
  371. return (<span>
  372. {
  373. isNaN(parseFloat(text)) ? text : parseFloat(text)
  374. }
  375. </span>)
  376. }
  377. },
  378. {
  379. title: '操作',
  380. dataIndex: 'caozuo',
  381. key: 'caozuo',
  382. render: (text, record) => {
  383. return (
  384. <div>
  385. <Button
  386. type="primary"
  387. onClick={(e) => {
  388. e.stopPropagation(), this.evaluate(record, '咨询师')
  389. }}
  390. >
  391. 转交
  392. </Button>
  393. <Button
  394. type="primary"
  395. style={{ marginLeft: 10 }}
  396. onClick={(e) => {
  397. e.stopPropagation(),
  398. this.evaluate(record, '咨询师经理', true)
  399. }}
  400. >
  401. 回退
  402. </Button>
  403. <Button
  404. type="primary"
  405. style={{ margin: '0 10px' }}
  406. onClick={(e) => {
  407. e.stopPropagation(), this.okCancel(record)
  408. }}
  409. >
  410. 添加工时
  411. </Button>
  412. <Button
  413. type="primary"
  414. onClick={(e) => {
  415. e.stopPropagation()
  416. this.setState({
  417. timeVisible: true,
  418. })
  419. this.timeDetail(record)
  420. }}
  421. >
  422. 工时记录
  423. </Button>
  424. </div>
  425. )
  426. },
  427. },
  428. ],
  429. dataSource: [],
  430. searchTime: [],
  431. columnsX: [
  432. {
  433. title: '业务项目名称',
  434. dataIndex: 'commodityName',
  435. key: 'commodityName',
  436. },
  437. {
  438. title: '项目类别',
  439. dataIndex: 'cname',
  440. key: 'cname',
  441. },
  442. {
  443. title: '项目数量',
  444. dataIndex: 'commodityQuantity',
  445. key: 'commodityQuantity',
  446. render: (text, record) => {
  447. if (record.splitStatus == 1) {
  448. return (
  449. <span>
  450. {text}{' '}
  451. <Tag
  452. color="#108ee9"
  453. onClick={(e) => {
  454. e.stopPropagation()
  455. this.showRes(record)
  456. }}
  457. >
  458. 已拆
  459. </Tag>
  460. </span>
  461. )
  462. } else {
  463. return text
  464. }
  465. },
  466. },
  467. {
  468. title: '金额(万元)',
  469. dataIndex: 'commodityPrice',
  470. key: 'commodityPrice',
  471. },
  472. {
  473. title: '负责人',
  474. dataIndex: 'contacts',
  475. key: 'contacts',
  476. },
  477. {
  478. title: '负责人电话',
  479. dataIndex: 'contactsMobile',
  480. key: 'contactsMobile',
  481. },
  482. {
  483. title: '主要项目',
  484. dataIndex: 'main',
  485. key: 'main',
  486. render: (text) => {
  487. return text ? '是' : '否'
  488. },
  489. },
  490. {
  491. title: '项目说明',
  492. dataIndex: 'taskComment',
  493. key: 'taskComment',
  494. render: (text) => {
  495. return text && text.length > 8 ? text.substr(0, 8) + '…' : text
  496. },
  497. },
  498. ],
  499. columnsA: [
  500. {
  501. title: '流程',
  502. dataIndex: 'content',
  503. key: 'content',
  504. align: 'center',
  505. },
  506. {
  507. title: '操作人',
  508. dataIndex: 'aName',
  509. key: 'aName',
  510. align: 'center',
  511. },
  512. {
  513. title: '时间',
  514. dataIndex: 'createTimes',
  515. key: 'createTimes',
  516. align: 'center',
  517. },
  518. ],
  519. dataSourceX: [],
  520. dataSourceA: [],
  521. ContactsLists: [
  522. {
  523. title: '批次',
  524. dataIndex: 'num',
  525. key: 'num',
  526. },
  527. {
  528. title: '下证时间',
  529. dataIndex: 'licenceTimes',
  530. key: 'licenceTimes',
  531. render: (text, record) => {
  532. return (
  533. <div>
  534. <DatePicker
  535. style={{ marginTop: '5px' }}
  536. showTime
  537. format="YYYY-MM-DD"
  538. onOk={() => {}}
  539. value={
  540. record.licenceTimes ? moment(record.licenceTimes) : null
  541. }
  542. onChange={(data, dataString) => {
  543. record.licenceTimes = dataString
  544. this.setState({ contactList: this.state.contactList })
  545. }}
  546. />
  547. </div>
  548. )
  549. },
  550. },
  551. {
  552. title: '下证数量',
  553. dataIndex: 'alreadyNumber',
  554. key: 'alreadyNumber',
  555. render: (text, record) => {
  556. return (
  557. <div>
  558. {
  559. <Input
  560. value={record.alreadyNumber}
  561. placeholder="请输入下证数量"
  562. key={record.id}
  563. required="required"
  564. onChange={(e) => {
  565. record.alreadyNumber = e.target.value
  566. this.setState({ contactList: this.state.contactList })
  567. }}
  568. style={{ width: '120px' }}
  569. />
  570. }
  571. </div>
  572. )
  573. },
  574. },
  575. {
  576. title: '未下证数量',
  577. dataIndex: 'notCount',
  578. key: 'notCount',
  579. },
  580. {
  581. title: '操作',
  582. dataIndex: 'dels',
  583. key: 'dels',
  584. render: (text, record, index) => {
  585. return (
  586. <div>
  587. {
  588. <Popconfirm
  589. title="是否删除?"
  590. onConfirm={() => {
  591. this.confirmDelet(record)
  592. }}
  593. okText="删除"
  594. cancelText="不删除"
  595. >
  596. <Button
  597. style={{
  598. marginRight: '10px',
  599. color: '#ffffff',
  600. background: '#f00',
  601. border: 'none',
  602. }}
  603. >
  604. 删除
  605. </Button>
  606. </Popconfirm>
  607. }
  608. {record.flag ? (
  609. ''
  610. ) : (
  611. <Button
  612. type="primary"
  613. onClick={(e) => {
  614. e.stopPropagation(), this.contactSave(record, index)
  615. }}
  616. >
  617. 保存
  618. </Button>
  619. )}
  620. </div>
  621. )
  622. },
  623. },
  624. ],
  625. // 专利
  626. ContactsListsNew: [],
  627. //付款节点表头
  628. PayNodeTableColunms: [],
  629. }
  630. },
  631. /* 分派 */
  632. evaluate(record, nub, flag) {
  633. this.setState(
  634. {
  635. nub: nub,
  636. assignData: record,
  637. flag,
  638. },
  639. () => {
  640. this.setState({
  641. assignVisible: true,
  642. })
  643. }
  644. )
  645. },
  646. componentWillMount() {
  647. this.departmentList()
  648. this.loadData()
  649. },
  650. componentDidMount() {
  651. this.setColor()
  652. },
  653. //用于判断 第三方信息表格显示
  654. projectTypeTabContent(projectType) {
  655. if(projectType === 0 || !projectType){ //0正常 1专利 2软著 3审计
  656. this.setState({
  657. ContactsListsNew: [
  658. {
  659. title: '供应商名称',
  660. dataIndex: 'companyName',
  661. key: 'companyName',
  662. render: (text, record, index) => {
  663. if (text) {
  664. return <span>{text}</span>
  665. }
  666. },
  667. },
  668. {
  669. title: '单价(万元)',
  670. dataIndex: 'unitPrice',
  671. key: 'unitPrice',
  672. render: (text, record) => {
  673. if (text) {
  674. return <span>
  675. {
  676. isNaN(text) ? text : parseFloat(text)
  677. }
  678. </span>
  679. }
  680. },
  681. },
  682. {
  683. title: '数量',
  684. dataIndex: 'quantity',
  685. key: 'quantity',
  686. render: (text, record) => {
  687. if (text) {
  688. return <span>{text}</span>
  689. }
  690. },
  691. },
  692. {
  693. title: '总价(万元)',
  694. dataIndex: 'totalAmount',
  695. key: 'totalAmount',
  696. render: (text, record) => {
  697. return <span>
  698. {
  699. isNaN(text) ? text : parseFloat(text)
  700. }
  701. </span>
  702. },
  703. },
  704. {
  705. title: '备注',
  706. dataIndex: 'remarks',
  707. key: 'remarks',
  708. },
  709. {
  710. title: '操作',
  711. dataIndex: 'action',
  712. key: 'action',
  713. render: (text, record) => {
  714. return (
  715. <div>
  716. {/*外包审核通过后,咨询师/咨询经理可申请付款*/}
  717. {/*存在支付节点时不显示第三方的申请付款*/}
  718. {/*0-待审核 ,1-审核通过,2-审核拒绝 true [NULL]*/}
  719. {
  720. <Button disabled={
  721. !(this.props.isPreviewPay && (this.props.status === 1 || parseInt(this.props.startType) === 1) && this.props.dataSource.length === 0)
  722. } type="primary" onClick={() => {
  723. this.setState({
  724. previewPayVisible: true,
  725. previewPayInfor: record,
  726. })
  727. }}>
  728. 申请付款
  729. </Button>
  730. }
  731. <Popconfirm
  732. title="是否删除?"
  733. onConfirm={() => {
  734. this.confirmDeletNew(record)
  735. }}
  736. okText="删除"
  737. cancelText="不删除"
  738. >
  739. <Button
  740. onClick={(e) => {
  741. e.stopPropagation()
  742. }}
  743. style={{
  744. marginLeft: '10px',
  745. color: '#ffffff',
  746. background: '#f00',
  747. border: 'none',
  748. }}
  749. >
  750. 删除
  751. </Button>
  752. </Popconfirm>
  753. </div>
  754. )
  755. },
  756. },
  757. ],
  758. })
  759. }else if(projectType === 2){ //2软著
  760. this.setState({
  761. ContactsListsNew: [
  762. {
  763. title: '供应商名称',
  764. dataIndex: 'companyName',
  765. key: 'companyName',
  766. render: (text, record, index) => {
  767. if (text) {
  768. return <span>{text}</span>
  769. }
  770. },
  771. },
  772. {
  773. title: '单价(万元)',
  774. dataIndex: 'unitPrice',
  775. key: 'unitPrice',
  776. render: (text, record) => {
  777. if (text) {
  778. return <span>
  779. {
  780. isNaN(text) ? text : parseFloat(text)
  781. }
  782. </span>
  783. }
  784. },
  785. },
  786. {
  787. title: '数量',
  788. dataIndex: 'quantity',
  789. key: 'quantity',
  790. render: (text, record) => {
  791. if (text) {
  792. return <span>{text}</span>
  793. }
  794. },
  795. },
  796. {
  797. title: '总价(万元)',
  798. dataIndex: 'totalAmount',
  799. key: 'totalAmount',
  800. render: (text, record) => {
  801. return <span>
  802. {
  803. isNaN(text) ? text : parseFloat(text)
  804. }
  805. </span>
  806. },
  807. },
  808. {
  809. title: '材料',
  810. dataIndex: 'material',
  811. key: 'material',
  812. render: (text, record) => {
  813. return getMaterialStatus(text)
  814. },
  815. },
  816. {
  817. title: '加急',
  818. dataIndex: 'urgent',
  819. key: 'urgent',
  820. render: (text, record) => {
  821. return getUrgentStatus(text)
  822. },
  823. },
  824. {
  825. title: '操作',
  826. dataIndex: 'action',
  827. key: 'action',
  828. render: (text, record) => {
  829. return (
  830. <div>
  831. {/*外包审核通过后,咨询师/咨询经理可申请付款*/}
  832. {/*存在支付节点时不显示第三方的申请付款*/}
  833. {/*0-待审核 ,1-审核通过,2-审核拒绝 true [NULL]*/}
  834. {
  835. <Button disabled={
  836. !(this.props.isPreviewPay && (this.props.status === 1 || parseInt(this.props.startType) === 1) && this.props.dataSource.length === 0)
  837. } type="primary" onClick={() => {
  838. this.setState({
  839. previewPayVisible: true,
  840. previewPayInfor: record,
  841. })
  842. }}>
  843. 申请付款
  844. </Button>
  845. }
  846. <Popconfirm
  847. title="是否删除?"
  848. onConfirm={() => {
  849. this.confirmDeletNew(record)
  850. }}
  851. okText="删除"
  852. cancelText="不删除"
  853. >
  854. <Button
  855. onClick={(e) => {
  856. e.stopPropagation()
  857. }}
  858. style={{
  859. marginLeft: '10px',
  860. color: '#ffffff',
  861. background: '#f00',
  862. border: 'none',
  863. }}
  864. >
  865. 删除
  866. </Button>
  867. </Popconfirm>
  868. </div>
  869. )
  870. },
  871. },
  872. ],
  873. })
  874. }else if(projectType === 1){ //1专利
  875. if(this.state.patentType === 0){ //专利申请
  876. this.setState({
  877. ContactsListsNew: [
  878. {
  879. title: '供应商名称',
  880. dataIndex: 'companyName',
  881. key: 'companyName',
  882. render: (text, record, index) => {
  883. if (text) {
  884. return <span>{text}</span>
  885. }
  886. },
  887. },
  888. {
  889. title: '单价(万元)',
  890. dataIndex: 'unitPrice',
  891. key: 'unitPrice',
  892. render: (text, record) => {
  893. if (text) {
  894. return <span>
  895. {
  896. isNaN(text) ? text : parseFloat(text)
  897. }
  898. </span>
  899. }
  900. },
  901. },
  902. {
  903. title: '数量',
  904. dataIndex: 'quantity',
  905. key: 'quantity',
  906. render: (text, record) => {
  907. if (text) {
  908. return <span>{text}</span>
  909. }
  910. },
  911. },
  912. {
  913. title: "官费",
  914. dataIndex: "officialCost",
  915. key: "officialCost",
  916. render: (text) => {
  917. return text === 1 ? '有官费' : '无官费'
  918. },
  919. },
  920. {
  921. title: "费减",
  922. dataIndex: "costReduction",
  923. key: "costReduction",
  924. render: (text) => {
  925. return text === 1 ? '有费减' : '无费减'
  926. },
  927. },
  928. {
  929. title: '总价(万元)',
  930. dataIndex: 'totalAmount',
  931. key: 'totalAmount',
  932. render: (text, record) => {
  933. return <span>
  934. {
  935. isNaN(text) ? text : parseFloat(text)
  936. }
  937. </span>
  938. },
  939. },
  940. {
  941. title: '备注',
  942. dataIndex: 'remarks',
  943. key: 'remarks',
  944. },
  945. {
  946. title: '操作',
  947. dataIndex: 'action',
  948. key: 'action',
  949. render: (text, record) => {
  950. return (
  951. <div>
  952. {/*外包审核通过后,咨询师/咨询经理可申请付款*/}
  953. {/*存在支付节点时不显示第三方的申请付款*/}
  954. {/*0-待审核 ,1-审核通过,2-审核拒绝 true [NULL]*/}
  955. {
  956. <Button disabled={
  957. !(this.props.isPreviewPay && (this.props.status === 1 || parseInt(this.props.startType) === 1) && this.props.dataSource.length === 0)
  958. } type="primary" onClick={() => {
  959. this.setState({
  960. previewPayVisible: true,
  961. previewPayInfor: record,
  962. })
  963. }}>
  964. 申请付款
  965. </Button>
  966. }
  967. {
  968. <Button
  969. type="primary"
  970. style={{
  971. marginLeft: '10px',
  972. }}
  973. disabled={!(this.props.isPreviewPay && (this.props.status === 1 || parseInt(this.props.startType) === 1) && this.props.dataSource.length === 0)}
  974. onClick={() => {
  975. this.setState({
  976. previewPayVisible: true,
  977. previewPayInfor: record,
  978. })
  979. }}>
  980. 付官费
  981. </Button>
  982. }
  983. <Popconfirm
  984. title="是否删除?"
  985. onConfirm={() => {
  986. this.confirmDeletNew(record)
  987. }}
  988. okText="删除"
  989. cancelText="不删除"
  990. >
  991. <Button
  992. onClick={(e) => {
  993. e.stopPropagation()
  994. }}
  995. style={{
  996. marginLeft: '10px',
  997. color: '#ffffff',
  998. background: '#f00',
  999. border: 'none',
  1000. }}
  1001. >
  1002. 删除
  1003. </Button>
  1004. </Popconfirm>
  1005. </div>
  1006. )
  1007. },
  1008. },
  1009. ]
  1010. })
  1011. }else{
  1012. this.setState({
  1013. ContactsListsNew: [
  1014. {
  1015. title: '供应商名称',
  1016. dataIndex: 'companyName',
  1017. key: 'companyName',
  1018. render: (text, record, index) => {
  1019. if (text) {
  1020. return <span>{text}</span>
  1021. }
  1022. },
  1023. },
  1024. {
  1025. title: '单价(万元)',
  1026. dataIndex: 'unitPrice',
  1027. key: 'unitPrice',
  1028. render: (text, record) => {
  1029. if (text) {
  1030. return <span>
  1031. {
  1032. isNaN(text) ? text : parseFloat(text)
  1033. }
  1034. </span>
  1035. }
  1036. },
  1037. },
  1038. {
  1039. title: '数量',
  1040. dataIndex: 'quantity',
  1041. key: 'quantity',
  1042. render: (text, record) => {
  1043. if (text) {
  1044. return <span>{text}</span>
  1045. }
  1046. },
  1047. },
  1048. {
  1049. title: '总价(万元)',
  1050. dataIndex: 'totalAmount',
  1051. key: 'totalAmount',
  1052. render: (text, record) => {
  1053. return <span>
  1054. {
  1055. isNaN(text) ? text : parseFloat(text)
  1056. }
  1057. </span>
  1058. },
  1059. },
  1060. {
  1061. title: '备注',
  1062. dataIndex: 'remarks',
  1063. key: 'remarks',
  1064. },
  1065. {
  1066. title: '操作',
  1067. dataIndex: 'action',
  1068. key: 'action',
  1069. render: (text, record) => {
  1070. return (
  1071. <div>
  1072. {/*外包审核通过后,咨询师/咨询经理可申请付款*/}
  1073. {/*存在支付节点时不显示第三方的申请付款*/}
  1074. {/*0-待审核 ,1-审核通过,2-审核拒绝 true [NULL]*/}
  1075. {
  1076. <Button disabled={
  1077. !(this.props.isPreviewPay && (this.props.status === 1 || parseInt(this.props.startType) === 1) && this.props.dataSource.length === 0)
  1078. } type="primary" onClick={() => {
  1079. this.setState({
  1080. previewPayVisible: true,
  1081. previewPayInfor: record,
  1082. })
  1083. }}>
  1084. 申请付款
  1085. </Button>
  1086. }
  1087. <Popconfirm
  1088. title="是否删除?"
  1089. onConfirm={() => {
  1090. this.confirmDeletNew(record)
  1091. }}
  1092. okText="删除"
  1093. cancelText="不删除"
  1094. >
  1095. <Button
  1096. onClick={(e) => {
  1097. e.stopPropagation()
  1098. }}
  1099. style={{
  1100. marginLeft: '10px',
  1101. color: '#ffffff',
  1102. background: '#f00',
  1103. border: 'none',
  1104. }}
  1105. >
  1106. 删除
  1107. </Button>
  1108. </Popconfirm>
  1109. </div>
  1110. )
  1111. },
  1112. },
  1113. ]
  1114. })
  1115. }
  1116. }else if(projectType === 3){ //3审计
  1117. this.setState({
  1118. ContactsListsNew: [
  1119. {
  1120. title: '供应商名称',
  1121. dataIndex: 'companyName',
  1122. key: 'companyName',
  1123. render: (text, record, index) => {
  1124. if (text) {
  1125. return <span>{text}</span>
  1126. }
  1127. },
  1128. },
  1129. {
  1130. title: '单价(万元)',
  1131. dataIndex: 'unitPrice',
  1132. key: 'unitPrice',
  1133. render: (text, record) => {
  1134. if (text) {
  1135. return <span>
  1136. {
  1137. isNaN(text) ? text : parseFloat(text)
  1138. }
  1139. </span>
  1140. }
  1141. },
  1142. },
  1143. {
  1144. title: '数量',
  1145. dataIndex: 'quantity',
  1146. key: 'quantity',
  1147. render: (text, record) => {
  1148. if (text) {
  1149. return <span>{text}</span>
  1150. }
  1151. },
  1152. },
  1153. {
  1154. title: '总价(万元)',
  1155. dataIndex: 'totalAmount',
  1156. key: 'totalAmount',
  1157. render: (text, record) => {
  1158. return <span>
  1159. {
  1160. isNaN(text) ? text : parseFloat(text)
  1161. }
  1162. </span>
  1163. },
  1164. },
  1165. {
  1166. title: '审计',
  1167. dataIndex: 'audit',
  1168. key: 'audit',
  1169. render: (text, record) => {
  1170. if (text) {
  1171. return <span>{text===0?'无审计':text===1?'年审':'专审'}</span>
  1172. }
  1173. },
  1174. },
  1175. {
  1176. title: '公司资产(万元)',
  1177. dataIndex: 'assets',
  1178. key: 'assets',
  1179. render: (text, record) => {
  1180. if (text) {
  1181. return <span>{text}</span>
  1182. }
  1183. },
  1184. },
  1185. {
  1186. title: '收入(万元)',
  1187. dataIndex: 'income',
  1188. key: 'income',
  1189. render: (text, record) => {
  1190. return <span>
  1191. {
  1192. isNaN(text) ? text : parseFloat(text)
  1193. }
  1194. </span>
  1195. },
  1196. },
  1197. {
  1198. title: '操作',
  1199. dataIndex: 'action',
  1200. key: 'action',
  1201. render: (text, record) => {
  1202. return (
  1203. <div>
  1204. {/*外包审核通过后,咨询师/咨询经理可申请付款*/}
  1205. {/*存在支付节点时不显示第三方的申请付款*/}
  1206. {/*0-待审核 ,1-审核通过,2-审核拒绝 true [NULL]*/}
  1207. {
  1208. <Button disabled={
  1209. !(this.props.isPreviewPay && (this.props.status === 1 || parseInt(this.props.startType) === 1) && this.props.dataSource.length === 0)
  1210. } type="primary" onClick={() => {
  1211. this.setState({
  1212. previewPayVisible: true,
  1213. previewPayInfor: record,
  1214. })
  1215. }}>
  1216. 申请付款
  1217. </Button>
  1218. }
  1219. <Popconfirm
  1220. title="是否删除?"
  1221. onConfirm={() => {
  1222. this.confirmDeletNew(record)
  1223. }}
  1224. okText="删除"
  1225. cancelText="不删除"
  1226. >
  1227. <Button
  1228. onClick={(e) => {
  1229. e.stopPropagation()
  1230. }}
  1231. style={{
  1232. marginLeft: '10px',
  1233. color: '#ffffff',
  1234. background: '#f00',
  1235. border: 'none',
  1236. }}
  1237. >
  1238. 删除
  1239. </Button>
  1240. </Popconfirm>
  1241. </div>
  1242. )
  1243. },
  1244. },
  1245. ]
  1246. })
  1247. }
  1248. this.setState({
  1249. //付款节点表头
  1250. PayNodeTableColunms: [
  1251. {
  1252. title: '供应商名称',
  1253. dataIndex: 'companyName',
  1254. key: 'companyName',
  1255. render: (text, record, index) => {
  1256. if (text) {
  1257. return <span>{text}</span>
  1258. }
  1259. },
  1260. },
  1261. {
  1262. title: '付款科目',
  1263. dataIndex: 'dunType',
  1264. key: 'dunType',
  1265. render: (text, record) => {
  1266. if (text) {
  1267. return <span>{text}</span>
  1268. }
  1269. },
  1270. },
  1271. {
  1272. title: '付款时间',
  1273. dataIndex: 'partyTimes',
  1274. key: 'partyTimes',
  1275. render: (text, record) => {
  1276. return <span>{text ? text : '/'}</span>
  1277. },
  1278. },
  1279. {
  1280. title: '数量',
  1281. dataIndex: 'quantity',
  1282. key: 'quantity',
  1283. render: (text, record) => {
  1284. if (text) {
  1285. return <span>{text}</span>
  1286. }
  1287. },
  1288. },
  1289. {
  1290. title: '总价(万元)',
  1291. dataIndex: 'totalAmount',
  1292. key: 'totalAmount',
  1293. render: (text, record) => {
  1294. return <span>
  1295. {
  1296. isNaN(text) ? text : parseFloat(text)
  1297. }
  1298. </span>
  1299. },
  1300. },
  1301. {
  1302. title: '已付',
  1303. dataIndex: 'partyAmount',
  1304. key: 'partyAmount',
  1305. render: (text, record) => {
  1306. if (text) {
  1307. return <span>{text}</span>
  1308. }
  1309. },
  1310. },
  1311. {
  1312. title: '操作',
  1313. dataIndex: 'dels',
  1314. key: 'dels',
  1315. render: (text, record, index) => {
  1316. return (
  1317. <div>
  1318. <Popconfirm
  1319. title="是否删除?"
  1320. onConfirm={() => {
  1321. this.payNodeConfirmDeletNew(record)
  1322. }}
  1323. okText="删除"
  1324. cancelText="不删除"
  1325. >
  1326. <Button
  1327. onClick={(e) => {
  1328. e.stopPropagation()
  1329. }}
  1330. style={{
  1331. marginRight: '10px',
  1332. color: '#ffffff',
  1333. background: '#f00',
  1334. border: 'none',
  1335. }}
  1336. >
  1337. 删除
  1338. </Button>
  1339. </Popconfirm>
  1340. </div>
  1341. )
  1342. },
  1343. },
  1344. ],
  1345. })
  1346. },
  1347. setColor() {
  1348. $('.userName span').after(
  1349. "(<span class='ruanzhu'>软著数</span>/<span class='xiazheng'>下证数</span>)"
  1350. )
  1351. },
  1352. // 获取csort下的数据
  1353. getCsortData(cSort) {
  1354. cuiJieDian.map((item) => {
  1355. if (item.value == cSort) {
  1356. console.log(item.children)
  1357. this.setState({
  1358. paySubject: item.children,
  1359. })
  1360. }
  1361. })
  1362. },
  1363. tableRowClick(record) {
  1364. this.state.RowData = record
  1365. let str = record.taskName
  1366. let test = str.indexOf('会员')
  1367. if (test == -1) {
  1368. this.setState({
  1369. isHuiyuan: false,
  1370. })
  1371. } else {
  1372. this.setState({
  1373. isHuiyuan: true,
  1374. })
  1375. }
  1376. if (record.taskName.substring(0, 5) === '软件著作权') {
  1377. this.setState({
  1378. speVisible: true,
  1379. id: record.id,
  1380. splitStatus: record.splitStatus,
  1381. splitSuper: record.splitSuper,
  1382. splitId: record.splitId,
  1383. dataArr: record,
  1384. commodityQuantity: record.commodityQuantity,
  1385. })
  1386. } else {
  1387. this.setState({
  1388. visible: true,
  1389. splitStatus: record.splitStatus,
  1390. splitSuper: record.splitSuper,
  1391. splitId: record.splitId,
  1392. })
  1393. }
  1394. this.setState({
  1395. projectType: record.projectType
  1396. })
  1397. this.xiangqing(record.id, record.taskName)
  1398. this.xiangqings(record.orderNo)
  1399. this.xiangmu(record.orderNo)
  1400. this.loaduserss(record)
  1401. // 获取第三方信息表格
  1402. this.thirdTable(record.id);
  1403. //获取支付节点信息表格
  1404. this.payNodeTable(record.id);
  1405. //查看外包状态日志
  1406. this.getSelectOutsourceLog(record.id);
  1407. // 获取Csort
  1408. this.getCsortData(localStorage.getItem('cSort'))
  1409. this.projectTypeTabContent(record.projectType)
  1410. },
  1411. //点击修改项目详情
  1412. tijiaoOk() {
  1413. let attachmentUrls = []
  1414. if (this.state.attachmentUrl.length) {
  1415. let picArr = []
  1416. this.state.attachmentUrl.map(function (item) {
  1417. if (item.response && item.response.data && item.response.data.length) {
  1418. picArr.push(item.response.data)
  1419. }
  1420. })
  1421. attachmentUrls = picArr.join(',')
  1422. }
  1423. this.setState({
  1424. loading: true,
  1425. })
  1426. $.ajax({
  1427. method: 'POST',
  1428. dataType: 'json',
  1429. crossDomain: false,
  1430. url: globalConfig.context + '/api/admin/orderProject/updateOrderTask',
  1431. data: {
  1432. id: this.state.id, //项目编号
  1433. orderNo: this.state.orderNo, //订单编号
  1434. projectStatus: this.state.projectStatus, //项目状态
  1435. taskStatus: this.state.taskStatus, //项目状态
  1436. taskComment: this.state.taskComment, //说明
  1437. startDate: this.state.startDate, //启动日期
  1438. endDate: this.state.endDate, //结束日期
  1439. acceptDate: this.state.acceptDate, //受理日期
  1440. reviewDate: this.state.reviewDate, //评审日期
  1441. publicityDate: this.state.publicityDate, //公示日期
  1442. licenceDate: this.state.licenceDate, //发证日期
  1443. attachmentUrl: attachmentUrls.length ? attachmentUrls : '', //附件
  1444. contacts: this.state.contacts, //联系人
  1445. contactMobile: this.state.contactMobile, //联系人电话
  1446. legalPerson: this.state.legalPerson, //法人
  1447. legalPersonTel: this.state.legalPersonTel, //法人电话
  1448. certificateNumber: this.state.certificateNumber, //证书编号
  1449. status: this.state.status, //状态
  1450. formRetrieve: this.state.formRetrieve, //满意度表格
  1451. taskRefund: this.state.taskRefund, //退单
  1452. refundContent: this.state.refundContent, //退单信息
  1453. retrieveContent: this.state.retrieveContent, //回收信息
  1454. locationProvince: this.state.ProvinceCity[0],
  1455. locationCity: this.state.ProvinceCity[1],
  1456. locationArea: this.state.ProvinceCity[2],
  1457. postalAddress: this.state.postalAddress, //详细地址
  1458. arrivalMoney: this.state.arrivalMoney, //是否到款
  1459. setUpAmount: this.state.setUpAmount, //立项金额
  1460. declareUser: this.state.declareUser, //账号
  1461. declarePwd: this.state.declarePwd, //密码
  1462. outsourceName: this.state.outsourceName, //外包公司
  1463. outsourcePrice: this.state.outsourcePrice, //外包价格
  1464. declarationBatch: this.state.declarationBatch,
  1465. },
  1466. }).done(
  1467. function (data) {
  1468. this.setState({
  1469. loading: false,
  1470. })
  1471. if (!data.error.length) {
  1472. message.success('保存成功!')
  1473. this.visitCancel()
  1474. } else {
  1475. message.warning(data.error[0].message)
  1476. }
  1477. }.bind(this)
  1478. )
  1479. },
  1480. //点击修改项目详情
  1481. tianjiaOk() {
  1482. if (this.state.attachmentUrl.length) {
  1483. let picArr = []
  1484. this.state.attachmentUrl.map(function (item) {
  1485. if (item.response && item.response.data && item.response.data.length) {
  1486. picArr.push(item.response.data)
  1487. }
  1488. })
  1489. }
  1490. $.ajax({
  1491. method: 'POST',
  1492. dataType: 'json',
  1493. crossDomain: false,
  1494. url: globalConfig.context + '/api/admin/orderProject/addTaskHours',
  1495. data: {
  1496. taskId: this.state.taskId, //项目编号
  1497. hours: this.state.hours, //工时
  1498. remarks: this.state.remarks, //说明
  1499. taskDate: this.state.taskDate, //日期
  1500. taskComment: this.state.taskComment, //说明
  1501. },
  1502. }).done(
  1503. function (data) {
  1504. this.setState({
  1505. loading: false,
  1506. })
  1507. if (!data.error.length) {
  1508. message.success('保存成功!')
  1509. this.noCancel()
  1510. } else {
  1511. message.warning(data.error[0].message)
  1512. }
  1513. }.bind(this)
  1514. )
  1515. },
  1516. //订单详情
  1517. xiangqing(id) {
  1518. $.ajax({
  1519. method: 'get',
  1520. dataType: 'json',
  1521. crossDomain: false,
  1522. url: globalConfig.context + '/api/admin/orderProject/orderTaskDetail',
  1523. data: {
  1524. id: id,
  1525. },
  1526. success: function (data) {
  1527. let thisdata = data.data
  1528. if (data.error.length || data.data.list == '') {
  1529. if (data.error && data.error.length) {
  1530. message.warning(data.error[0].message)
  1531. }
  1532. } else {
  1533. this.setState({
  1534. id: thisdata.id, //ID
  1535. splitId: thisdata.splitId,//拆分序号
  1536. splitStatus: thisdata.splitStatus,//0未拆分 1已拆分
  1537. splitSuper: thisdata.splitSuper,//拆分前项目编号
  1538. orderNo: thisdata.orderNo, //订单编号
  1539. userName: thisdata.userName, //客户名称
  1540. taskName: thisdata.taskName, //项目名称
  1541. cname: thisdata.cname, //项目品类
  1542. contractNo: thisdata.contractNo, //合同编号
  1543. projectStatus: thisdata.projectStatus.toString(), //项目状态
  1544. taskStatus: thisdata.taskStatus.toString(), //项目状态
  1545. taskDate: thisdata.taskDate, //分配时间
  1546. taskComment: thisdata.taskComment, //说明
  1547. attachmentUrl: thisdata.attachmentUrl
  1548. ? splitUrl(
  1549. thisdata.attachmentUrl,
  1550. ',',
  1551. globalConfig.avatarHost + '/upload'
  1552. )
  1553. : [], //图片地址
  1554. salesmanName: thisdata.salesmanName, //订单负责人
  1555. startDate: thisdata.startDate, //启动日期
  1556. endDate: thisdata.endDate, //结束日期
  1557. acceptDate: thisdata.acceptDate, //受理日期
  1558. reviewDate: thisdata.reviewDate, //评审日期
  1559. publicityDate: thisdata.publicityDate, //公示日期
  1560. licenceDate: thisdata.licenceDate, //发证日期
  1561. contacts: thisdata.contacts, //联系人
  1562. contactMobile: thisdata.contactMobile, //联系人电话
  1563. legalPerson: thisdata.legalPerson, //法人
  1564. legalPersonTel: thisdata.legalPersonTel, //法人电话
  1565. certificateNumber: thisdata.certificateNumber, //证书编号
  1566. status: thisdata.status, //状态
  1567. formRetrieve: thisdata.formRetrieve, //满意度表格
  1568. taskRefund: thisdata.taskRefund, //退单
  1569. refundContent: thisdata.refundContent, //退单信息
  1570. retrieveContent: thisdata.retrieveContent, //回收信息
  1571. arrivalMoney: thisdata.arrivalMoney, //是否到款
  1572. setUpAmount: thisdata.setUpAmount, //立项金额
  1573. declareUser: thisdata.declareUser, //账号
  1574. declarePwd: thisdata.declarePwd, //密码
  1575. outsourceName: thisdata.outsourceName, //外包公司
  1576. outsourcePrice: thisdata.outsourcePrice, //外包价格
  1577. declarationBatch: thisdata.declarationBatch,
  1578. })
  1579. }
  1580. }.bind(this),
  1581. }).always(
  1582. function () {
  1583. this.setState({
  1584. loading: false,
  1585. })
  1586. }.bind(this)
  1587. )
  1588. },
  1589. //订单详情
  1590. xiangqings(orderNos) {
  1591. $.ajax({
  1592. method: 'get',
  1593. dataType: 'json',
  1594. crossDomain: false,
  1595. url: globalConfig.context + '/api/admin/newOrder/getOrderNewDetail',
  1596. data: {
  1597. orderNo: orderNos,
  1598. },
  1599. success: function (data) {
  1600. let thisdata = data.data
  1601. let ProvinceCityArr = []
  1602. let ProvinceS = thisdata.locationProvince //省
  1603. let citys = thisdata.locationCity //市
  1604. let Areas = thisdata.locationArea //区
  1605. ProvinceCityArr.push(ProvinceS, citys, Areas)
  1606. if (data.error.length || data.data.list == '') {
  1607. if (data.error && data.error.length) {
  1608. message.warning(data.error[0].message)
  1609. }
  1610. } else {
  1611. this.setState({
  1612. processStatus: thisdata.processStatus, //流程状态
  1613. liquidationStatus: thisdata.liquidationStatus, //结算状态
  1614. approval: thisdata.approval, //特批状态
  1615. orderRemarks: thisdata.orderRemarks, //订单留言
  1616. salesmanName: thisdata.salesmanName, //营销员名称
  1617. salesmanMobile: thisdata.salesmanMobile, //营销员电话
  1618. financeName: thisdata.financeName, //财务名称
  1619. financeMobile: thisdata.financeMobile, //财务电话
  1620. oldSalesmanName: thisdata.oldSalesmanName, //营销员名称
  1621. oldSalesmanMobile: thisdata.oldSalesmanMobile, //营销员电话
  1622. nowFinance: thisdata.nowFinance, //财务名称
  1623. nowFinanceMobile: thisdata.nowFinanceMobile, //财务电话
  1624. depName: thisdata.depName, //订单部门
  1625. ProvinceCity: ProvinceCityArr[0] === null ? [] : ProvinceCityArr,
  1626. postalAddress: thisdata.postalAddress, //详细地址
  1627. })
  1628. }
  1629. }.bind(this),
  1630. }).always(
  1631. function () {
  1632. this.setState({
  1633. loading: false,
  1634. })
  1635. }.bind(this)
  1636. )
  1637. },
  1638. //项目列表
  1639. xiangmu(orderNos) {
  1640. $.ajax({
  1641. method: 'get',
  1642. dataType: 'json',
  1643. crossDomain: false,
  1644. url: globalConfig.context + '/api/admin/newOrder/getOrderTask',
  1645. data: {
  1646. orderNo: orderNos,
  1647. },
  1648. success: function (data) {
  1649. let theArr = []
  1650. if (data.error.length || data.data.list == '') {
  1651. if (data.error && data.error.length) {
  1652. message.warning(data.error[0].message)
  1653. }
  1654. } else {
  1655. for (let i = 0; i < data.data.length; i++) {
  1656. let thisdata = data.data[i]
  1657. localStorage.setItem('cSort', thisdata.cSort)
  1658. theArr.push({
  1659. key: i,
  1660. id: thisdata.id,
  1661. orderNo: thisdata.orderNo, //订单编号
  1662. commodityId: thisdata.commodityId, //项目ID
  1663. commodityName: thisdata.commodityName, //项目名称
  1664. cname: thisdata.cname, //项目类别
  1665. commodityPrice: thisdata.commodityPrice, //项目价格
  1666. commodityQuantity: thisdata.commodityQuantity, //项目数量
  1667. main: thisdata.main, //是否为主要项目
  1668. taskComment: thisdata.taskComment, //项目说明
  1669. contacts: thisdata.contacts, //联系人
  1670. contactsMobile: thisdata.contactsMobile, //联系人电话
  1671. taskStatus: thisdata.taskStatus, //是否分配
  1672. contractNo: thisdata.contractNo, //合同编号
  1673. certificateNumber: thisdata.certificateNumber,
  1674. splitStatus: thisdata.splitStatus,
  1675. officialCost: thisdata.officialCost,
  1676. costReduction: thisdata.costReduction,
  1677. type: thisdata.type,
  1678. cSort: thisdata.cSort,
  1679. })
  1680. }
  1681. }
  1682. this.setState({
  1683. dataSourceX: theArr,
  1684. type: theArr[0].type,
  1685. cSort: theArr[0].cSort,
  1686. })
  1687. }.bind(this),
  1688. }).always(
  1689. function () {
  1690. this.setState({
  1691. loading: false,
  1692. })
  1693. }.bind(this)
  1694. )
  1695. },
  1696. //导出
  1697. exportExec() {
  1698. let departmentName = '',
  1699. depart = this.state.departmentArr || []
  1700. depart.map((item) => {
  1701. if (this.state.departmentId == item.id) {
  1702. departmentName = item.name
  1703. return
  1704. }
  1705. })
  1706. let data = {
  1707. departmentId: this.state.departmentId,
  1708. departmentName: departmentName,
  1709. salesName: this.state.orderRefundSearch, //订单负责人
  1710. startTime: this.state.releaseDate[0],
  1711. endTime: this.state.releaseDate[1],
  1712. grantStatus: this.state.grantStatus,
  1713. }
  1714. window.location.href =
  1715. globalConfig.context +
  1716. '/api/admin/orderProject/exporProjectList?' +
  1717. $.param(data)
  1718. },
  1719. //关闭详情
  1720. visitCancel() {
  1721. this.setState({
  1722. visible: false,
  1723. speVisible: false,
  1724. activeKey: '1',
  1725. })
  1726. this.reset()
  1727. },
  1728. visitOk() {
  1729. this.setState({
  1730. visible: false,
  1731. speVisible: false,
  1732. })
  1733. this.reset()
  1734. },
  1735. closeDesc(e, s) {
  1736. this.state.showDesc = e
  1737. if (s) {
  1738. this.loadData(this.state.page)
  1739. }
  1740. },
  1741. closeAssign(e, s) {
  1742. this.state.roleName = ''
  1743. this.state.assignVisible = e
  1744. if (s) {
  1745. this.loadData(this.state.page)
  1746. }
  1747. },
  1748. //添加工时
  1749. okCancel(record) {
  1750. this.setState({
  1751. lookVisible: true,
  1752. taskId: record.id,
  1753. })
  1754. },
  1755. //测试
  1756. getOrgCodeUrl(e) {
  1757. this.setState({ orgCodeUrl: e })
  1758. },
  1759. //查看下证信息
  1760. loaduserss(record) {
  1761. $.ajax({
  1762. method: 'get',
  1763. dataType: 'json',
  1764. crossDomain: false,
  1765. url: globalConfig.context + '/api/admin/orderProject/selectTaskProgress',
  1766. data: {
  1767. tid: record.id,
  1768. },
  1769. success: function (data) {
  1770. let theArr = []
  1771. let thisData = []
  1772. if (!thisData) {
  1773. if (data.error && data.error.length) {
  1774. message.warning(data.error[0].message)
  1775. }
  1776. thisData = {}
  1777. } else {
  1778. for (let i = 0; i < data.data.length; i++) {
  1779. thisData = data.data[i]
  1780. theArr.push({
  1781. num: i + 1,
  1782. key: i,
  1783. id: thisData.id, //编号
  1784. alreadyNumber: thisData.alreadyNumber, //下证数
  1785. licenceTimes: thisData.licenceTimes, //下证时间
  1786. notCount: thisData.notCount, //未下证数
  1787. flag: true,
  1788. })
  1789. }
  1790. this.setState({
  1791. contactList: theArr,
  1792. tid: record.id,
  1793. })
  1794. }
  1795. }.bind(this),
  1796. }).always(
  1797. function () {
  1798. this.setState({
  1799. loading: false,
  1800. })
  1801. }.bind(this)
  1802. )
  1803. },
  1804. // 拆分详细
  1805. showRes(record) {
  1806. this.setState({
  1807. resVisible: true,
  1808. resRecord: record,
  1809. })
  1810. },
  1811. resCancel() {
  1812. this.setState({
  1813. resVisible: false,
  1814. })
  1815. },
  1816. //下证信息保存
  1817. contactSave(record) {
  1818. if (!record.licenceTimes) {
  1819. message.warning('下证日期不能为空')
  1820. return
  1821. }
  1822. if (!record.alreadyNumber) {
  1823. message.warning('下证数量不能为空')
  1824. return
  1825. }
  1826. this.setState({
  1827. loading: true,
  1828. })
  1829. $.ajax({
  1830. url: globalConfig.context + '/api/admin/orderProject/createTaskProgress',
  1831. method: 'post',
  1832. data: {
  1833. taskId: this.state.id,
  1834. licenceTimes: record.licenceTimes,
  1835. alreadyNumber: record.alreadyNumber,
  1836. },
  1837. }).done(
  1838. function (data) {
  1839. this.setState({
  1840. loading: false,
  1841. })
  1842. if (!data.error.length) {
  1843. message.success('保存成功!')
  1844. record.flag = true
  1845. this.loaduserss(this.state.dataArr)
  1846. } else {
  1847. message.warning(data.error[0].message)
  1848. }
  1849. }.bind(this)
  1850. )
  1851. },
  1852. //下证信息删除
  1853. contactDele(record) {
  1854. this.setState({
  1855. loading: true,
  1856. })
  1857. $.ajax({
  1858. url: globalConfig.context + '/api/admin/orderProject/delectTaskProgress',
  1859. method: 'post',
  1860. data: {
  1861. id: record.id,
  1862. },
  1863. }).done(
  1864. function (data) {
  1865. this.setState({
  1866. loading: false,
  1867. })
  1868. if (!data.error.length) {
  1869. this.loaduserss(this.state.dataArr)
  1870. } else {
  1871. message.warning(data.error[0].message)
  1872. }
  1873. }.bind(this)
  1874. )
  1875. },
  1876. //点击新增下证信息
  1877. addcontact() {
  1878. this.state.contactList.push({
  1879. num: this.state.contactList.length + 1,
  1880. key: this.state.contactList.length,
  1881. licenceTimes: '',
  1882. alreadyNumber: '',
  1883. notCount: '',
  1884. dels: '',
  1885. flag: false,
  1886. aflag: false,
  1887. })
  1888. this.setState({
  1889. contactList: this.state.contactList,
  1890. })
  1891. },
  1892. //删除下证信息
  1893. confirmDelet(record) {
  1894. this.state.contactList.splice(record.key, 1)
  1895. this.setState({
  1896. contactList: this.state.contactList,
  1897. })
  1898. if (record.id) {
  1899. this.contactDele(record)
  1900. }
  1901. },
  1902. caozuorizhi() {
  1903. this.setState({
  1904. visibleA: true,
  1905. })
  1906. $.ajax({
  1907. method: 'get',
  1908. dataType: 'json',
  1909. crossDomain: false,
  1910. url: globalConfig.context + '/api/admin/orderProject/TaskLogList',
  1911. data: {
  1912. id: this.state.id,
  1913. },
  1914. success: function (data) {
  1915. let theArr = []
  1916. if (data.error.length || data.data.list == '') {
  1917. if (data.error && data.error.length) {
  1918. message.warning(data.error[0].message)
  1919. }
  1920. } else {
  1921. for (let i = 0; i < data.data.length; i++) {
  1922. let thisdata = data.data[i]
  1923. theArr.push({
  1924. key: i,
  1925. id: thisdata.id, //日志ID
  1926. content: thisdata.content, //流程
  1927. taskId: thisdata.taskId, //项目ID
  1928. aName: thisdata.aName, //负责人
  1929. createTimes: thisdata.createTimes, //时间
  1930. })
  1931. }
  1932. }
  1933. this.setState({
  1934. dataSourceA: theArr,
  1935. })
  1936. }.bind(this),
  1937. }).always(
  1938. function () {
  1939. this.setState({
  1940. loading: false,
  1941. })
  1942. }.bind(this)
  1943. )
  1944. },
  1945. //关闭操作工时
  1946. visitCancelA() {
  1947. this.setState({
  1948. visibleA: false,
  1949. })
  1950. },
  1951. nextCancel() {
  1952. this.setState({
  1953. addnextVisible: false,
  1954. displayFees: 'none',
  1955. officialCost: '', //是否有官费
  1956. costReduction: '', //是否有费减
  1957. })
  1958. },
  1959. //点击打卡项目详情
  1960. tableRowClickX(record) {
  1961. if (record.type == '1') {
  1962. this.setState({
  1963. displayFees: 'block',
  1964. costReduction: record.costReduction,
  1965. officialCost: record.officialCost,
  1966. })
  1967. }
  1968. this.setState({
  1969. jid: record.id, //项目ID
  1970. kid: record.commodityId, //商品ID
  1971. commodityName: record.commodityName, //金额
  1972. commodityPrice: record.commodityPrice, //金额
  1973. commodityQuantity: record.commodityQuantity, //数量
  1974. taskComment: record.taskComment, //备注
  1975. main: record.main.toString(), //是否为主要
  1976. addnextVisible: true,
  1977. addState: 0,
  1978. })
  1979. },
  1980. //关闭添加工时
  1981. noCancel() {
  1982. this.setState({
  1983. lookVisible: false,
  1984. })
  1985. this.reset()
  1986. },
  1987. search() {
  1988. this.loadData()
  1989. },
  1990. reset(flag) {
  1991. if (flag) {
  1992. this.state.nameSearch = ''
  1993. this.state.orderNoSearch = ''
  1994. this.state.contractNoSearch = undefined
  1995. this.state.taskNoSearch = ''
  1996. this.state.departmenttSearch = undefined
  1997. this.state.projectStatusSearch = undefined //项目状态
  1998. this.state.approvalSearch = undefined
  1999. this.state.outsourceStatusSearch = []
  2000. }
  2001. this.state.id = '' //项目编号
  2002. this.state.orderNo = '' //订单编号
  2003. this.state.projectStatus = undefined //项目状态
  2004. this.state.taskStatuSearch = undefined //项目状态
  2005. this.state.taskComment = '' //说明
  2006. this.state.startDate = '' //启动日期
  2007. this.state.endDate = '' //结束日期
  2008. this.state.acceptDate = '' //受理日期
  2009. this.state.reviewDate = '' //评审日期
  2010. this.state.publicityDate = '' //公示日期
  2011. this.state.licenceDate = '' //发证日期
  2012. this.state.partyTimes = '' //付款时间
  2013. attachmentUrl: [] //附件
  2014. this.state.contacts = '' //联系人
  2015. this.state.contactMobile = '' //联系人电话
  2016. this.state.legalPerson = '' //法人
  2017. this.state.legalPersonTel = '' //法人电话
  2018. this.state.taskId = '' //项目编号
  2019. this.state.hours = '' //工时
  2020. this.state.remarks = '' //说明
  2021. this.state.taskDate = '' //日期
  2022. this.state.taskComment = '' //说明
  2023. this.state.releaseDate = []
  2024. this.state.outsourceName = ''
  2025. this.state.outsourcePrice = undefined
  2026. this.state.distribution = undefined
  2027. this.loadData(this.state.page)
  2028. this.state.companyName = undefined
  2029. this.state.unitPrice = undefined
  2030. this.state.unitNumber = undefined
  2031. this.state.amount = undefined
  2032. this.state.outsourceRemarks = undefined
  2033. this.state.pictureUrl = []
  2034. this.setState({
  2035. oldInfor: {}
  2036. })
  2037. },
  2038. searchSwitch() {
  2039. this.setState({
  2040. searchMore: !this.state.searchMore,
  2041. })
  2042. },
  2043. //部门
  2044. departmentList() {
  2045. this.setState({
  2046. loading: true,
  2047. })
  2048. $.ajax({
  2049. method: 'get',
  2050. dataType: 'json',
  2051. crossDomain: false,
  2052. url: globalConfig.context + '/api/admin/organization/selectSuperId',
  2053. data: {},
  2054. success: function (data) {
  2055. let thedata = data.data
  2056. let theArr = []
  2057. if (!thedata) {
  2058. if (data.error && data.error.length) {
  2059. message.warning(data.error[0].message)
  2060. }
  2061. thedata = {}
  2062. } else {
  2063. thedata.map(function (item, index) {
  2064. theArr.push({
  2065. key: index,
  2066. name: item.name,
  2067. id: item.id,
  2068. })
  2069. })
  2070. }
  2071. this.setState({
  2072. departmentArr: theArr,
  2073. })
  2074. }.bind(this),
  2075. }).always(
  2076. function () {
  2077. this.setState({
  2078. loading: false,
  2079. })
  2080. }.bind(this)
  2081. )
  2082. },
  2083. changeList(arr) {
  2084. const newArr = []
  2085. this.state.columns.forEach((item) => {
  2086. arr.forEach((val) => {
  2087. if (val === item.title) {
  2088. newArr.push(item)
  2089. }
  2090. })
  2091. })
  2092. this.setState({
  2093. changeList: newArr,
  2094. })
  2095. },
  2096. timeClose() {
  2097. this.setState({
  2098. timeVisible: false,
  2099. })
  2100. },
  2101. timeDetail(record) {
  2102. console.log(record)
  2103. this.setState({
  2104. loading: true,
  2105. recordHour: record.hours,
  2106. })
  2107. $.ajax({
  2108. method: 'get',
  2109. dataType: 'json',
  2110. crossDomain: false,
  2111. url:
  2112. globalConfig.context + '/api/admin/orderProject/taskHoursDetailsList',
  2113. data: {
  2114. taskId: record.id,
  2115. },
  2116. success: function (data) {
  2117. if (data.error && data.error.length) {
  2118. message.warning(data.error[0].message)
  2119. } else {
  2120. this.setState({
  2121. dataSourceTime: data.data,
  2122. })
  2123. console.log(this.state.dataSourceTime)
  2124. }
  2125. }.bind(this),
  2126. }).always(
  2127. function () {
  2128. this.setState({
  2129. loading: false,
  2130. })
  2131. }.bind(this)
  2132. )
  2133. },
  2134. showDeleteConfirm(num, fn) {
  2135. let text = getProjectStatus(num)
  2136. confirm({
  2137. title: <p style={{ fontSize: 16, fontWeight: 900 }}>注意</p>,
  2138. content: (
  2139. <p style={{ fontWeight: 900, color: 'red' }}>
  2140. 当前的项目状态为{text},保存后将触发对应的催款节点!!!您确定保存?
  2141. </p>
  2142. ),
  2143. okText: '确定',
  2144. okType: 'danger',
  2145. cancelText: '取消',
  2146. onOk() {
  2147. fn()
  2148. },
  2149. onCancel() {},
  2150. })
  2151. },
  2152. // 项目发起外包
  2153. sureOut(startType) {
  2154. if (this.state.startType !== 0 && this.state.startType !== 1) {
  2155. message.warning('请选择类型')
  2156. return
  2157. }
  2158. //0正常 1专利 2软著 3审计
  2159. if (this.state.projectType === 1) {
  2160. //专利
  2161. if (this.state.patentType === -1) {
  2162. message.warning('请选择专利类型')
  2163. return
  2164. }
  2165. if (this.state.patentNameType === -1) {
  2166. message.warning('请选择专利类型名称')
  2167. return
  2168. }
  2169. if (this.state.patentNameType == 3) {
  2170. if (!this.state.patentName) {
  2171. message.warning('请填写专利名称')
  2172. return
  2173. }
  2174. }
  2175. }
  2176. if (!this.state.outsourceRemarks) {
  2177. message.warning('备注不能为空')
  2178. return
  2179. }
  2180. //refundStatus 0-待审核 ,1-审核通过,2-审核拒绝
  2181. if(!this.state.reason && (this.state.refundStatus === 2 || typeof this.state.refundStatus === 'undefined')){
  2182. message.warning('发起原因不能为空')
  2183. return
  2184. }
  2185. // if (!this.state.pictureUrl && !Array.isArray(this.state.pictureUrl)) {
  2186. // message.warning('合同扫描件不能为空')
  2187. // return
  2188. // }
  2189. // if(this.state.pictureUrl.length === 0){
  2190. // message.warning('合同扫描件不能为空')
  2191. // return
  2192. // }
  2193. let _this = this;
  2194. confirm({
  2195. title: startType === 0 ? '确定要发起外包吗?' : '确定要提交供应商信息吗?',
  2196. content: startType === 0 ? '高于总部价格,费用个人承担' : '确定提交供应商信息后,不可修改',
  2197. onOk() {
  2198. return new Promise((resolve, reject) => {
  2199. _this.setState({
  2200. loading: true,
  2201. })
  2202. let data = {
  2203. tid: _this.state.id,
  2204. orderNo: _this.state.orderNo,
  2205. type: 1, //分类 0订单 1项目
  2206. startType: _this.state.startType, //支付类型 0外包 1供应商 false 0
  2207. companyName: _this.state.companyName,
  2208. amount: _this.state.amount,
  2209. outsourceRemarks: _this.state.outsourceRemarks,
  2210. unitNumber: _this.state.unitNumber,
  2211. unitPrice: _this.state.unitPrice,
  2212. id: _this.state.refundStatus === 2 ? _this.state.mid : undefined,//被拒绝外包申请时,需要传id
  2213. }
  2214. //refundStatus 0-待审核 ,1-审核通过,2-审核拒绝 审核被驳回时和第一次发起外包时,要填写发起原因
  2215. if(_this.state.refundStatus === 2 || typeof _this.state.refundStatus === 'undefined'){
  2216. data.reason = _this.state.reason
  2217. }
  2218. if (_this.state.projectType === 1) {
  2219. data.patentType = _this.state.patentType;
  2220. data.patentNameType = _this.state.patentNameType;
  2221. if (_this.state.patentNameType == 3) {
  2222. data.patentName = _this.state.patentName;
  2223. }
  2224. }
  2225. if (_this.state.pictureUrl && Array.isArray(_this.state.pictureUrl) && _this.state.pictureUrl.length !== 0){
  2226. data.pictureUrl = _this.getUrl(_this.state.pictureUrl).length
  2227. ? _this.getUrl(_this.state.pictureUrl)
  2228. : ''
  2229. }
  2230. $.ajax({
  2231. method: 'POST',
  2232. dataType: 'json',
  2233. crossDomain: false,
  2234. url:
  2235. globalConfig.context + '/api/admin/outsourceOrg/outsourceProjectAudit',
  2236. data: data,
  2237. }).done(
  2238. function (data) {
  2239. _this.setState({
  2240. loading: false,
  2241. })
  2242. if (!data.error.length) {
  2243. resolve();
  2244. message.success('提交成功!')
  2245. _this.visitCancel()
  2246. } else {
  2247. reject();
  2248. message.warning(data.error[0].message)
  2249. }
  2250. }.bind(_this)
  2251. )
  2252. }).catch((err) => console.log(err));
  2253. },
  2254. onCancel() {},
  2255. });
  2256. },
  2257. callback(e) {
  2258. this.setState({
  2259. activeKey: e,
  2260. })
  2261. if (e == 3) {
  2262. this.orderDetailData(this.state.orderNo)
  2263. this.xiangmu(this.state.orderNo)
  2264. this.jiedian(this.state.orderNo)
  2265. this.jiedianNew(this.state.orderNo)
  2266. }
  2267. },
  2268. getOrgCodeUrlWai(e) {
  2269. this.setState({ pictureUrl: e })
  2270. },
  2271. getUrl(url) {
  2272. let theorgCodeUrl = []
  2273. if (url.length) {
  2274. let picArr = []
  2275. url.map(function (item) {
  2276. if (item.response && item.response.data && item.response.data.length) {
  2277. picArr.push(item.response.data)
  2278. }
  2279. })
  2280. theorgCodeUrl = picArr.join(',')
  2281. }
  2282. return theorgCodeUrl
  2283. },
  2284. waiDetail() {
  2285. let url = window.location.href.substring(7)
  2286. this.setState({
  2287. loading: true,
  2288. })
  2289. $.ajax({
  2290. method: 'get',
  2291. dataType: 'json',
  2292. crossDomain: false,
  2293. url:
  2294. globalConfig.context + '/api/admin/outsourceOrg/orderOutsourceDtails',
  2295. data: {
  2296. tid: this.state.id,
  2297. orderNo: this.state.orderNo,
  2298. },
  2299. }).done(
  2300. function (data) {
  2301. this.setState({
  2302. loading: false,
  2303. })
  2304. if (!data.error.length && data.data) {
  2305. if(data.data.unitNumber){
  2306. this.setState({
  2307. oldInfor: {
  2308. companyName:data.data.companyName,
  2309. unitPrice:data.data.unitPrice,
  2310. unitNumber:data.data.unitNumber,
  2311. amount:data.data.amount,
  2312. outsourceRemarks:data.data.outsourceRemarks,
  2313. refundStatus: data.data.refundStatus,
  2314. pictureUrl: data.data.pictureUrl
  2315. ? splitUrl(
  2316. data.data.pictureUrl,
  2317. ',',
  2318. globalConfig.avatarHost + '/upload',
  2319. url
  2320. )
  2321. : [], //图片地址
  2322. },
  2323. })
  2324. }else{
  2325. this.setState({
  2326. oldInfor: {},
  2327. })
  2328. }
  2329. this.setState({
  2330. startType: data.data.startType, //类型
  2331. patentType: data.data.patentType, //专利类型
  2332. patentNameType: data.data.patentNameType, //专利名称类型
  2333. patentName: data.data.patentName, //专利名称
  2334. outsourceRemarks: data.data.outsourceRemarks,
  2335. remarks: data.data.remarks,
  2336. companyName: data.data.companyName,
  2337. amount: data.data.amount,
  2338. mid: data.data.id,
  2339. unitPrice: data.data.unitPrice,
  2340. refundStatus: data.data.refundStatus,
  2341. unitNumber: data.data.unitNumber, //如果存在 证明是以前的旧数据
  2342. pictureUrl: data.data.pictureUrl
  2343. ? splitUrl(
  2344. data.data.pictureUrl,
  2345. ',',
  2346. globalConfig.avatarHost + '/upload',
  2347. url
  2348. )
  2349. : [], //图片地址
  2350. createTimes: data.data.createTimes,
  2351. auditTimes: data.data.auditTimes,
  2352. })
  2353. } else if (data.error && data.error.length) {
  2354. message.warning(data.error[0].message)
  2355. } else if (!data.data) {
  2356. this.setState({
  2357. refundStatus: undefined,
  2358. })
  2359. }
  2360. }.bind(this)
  2361. )
  2362. },
  2363. rizhi() {
  2364. this.setState({
  2365. loading: true,
  2366. })
  2367. $.ajax({
  2368. method: 'get',
  2369. dataType: 'json',
  2370. crossDomain: false,
  2371. url: '/api/admin/newOrder/selectOrderLog',
  2372. data: {
  2373. orderNo: this.state.orderNo,
  2374. },
  2375. success: function (data) {
  2376. let theArr = []
  2377. let thisData = data.data
  2378. if (!thisData.length) {
  2379. if (data.error && data.error.length) {
  2380. message.warning(data.error[0].message)
  2381. }
  2382. thisData = {}
  2383. } else {
  2384. for (let i = 0; i < data.data.length; i++) {
  2385. let thisdata = data.data[i]
  2386. theArr.push({
  2387. processName: thisdata.processName,
  2388. adminName: thisdata.adminName,
  2389. createDate: thisdata.createDate,
  2390. remarks: thisdata.remarks,
  2391. })
  2392. }
  2393. }
  2394. this.setState({
  2395. dataSourceY: theArr,
  2396. })
  2397. }.bind(this),
  2398. }).always(
  2399. function () {
  2400. this.setState({
  2401. loading: false,
  2402. })
  2403. }.bind(this)
  2404. )
  2405. },
  2406. closeOrderLog() {
  2407. this.setState({
  2408. avisible: false,
  2409. })
  2410. },
  2411. getOrderLog() {
  2412. this.setState({
  2413. avisible: true,
  2414. })
  2415. this.rizhi()
  2416. },
  2417. orderChange(key) {
  2418. this.setState({
  2419. activeKey: key,
  2420. })
  2421. if (key === '3') {
  2422. this.orderDetailData(this.state.orderNo)
  2423. this.xiangmu(this.state.orderNo)
  2424. this.jiedian(this.state.orderNo)
  2425. this.jiedianNew(this.state.orderNo)
  2426. }else if (key === '2') {
  2427. this.waiDetail()
  2428. }else if(key === "1"){
  2429. this.xiangqing(this.state.tid);
  2430. }
  2431. },
  2432. //节点列表
  2433. jiedian(orderNos) {
  2434. $.ajax({
  2435. method: 'get',
  2436. dataType: 'json',
  2437. crossDomain: false,
  2438. url: globalConfig.context + '/api/admin/newOrder/selectOrderDun',
  2439. data: {
  2440. orderNo: orderNos,
  2441. },
  2442. success: function (data) {
  2443. let theArr = []
  2444. let thisData = []
  2445. if (data.error.length || data.data.list == '') {
  2446. if (data.error && data.error.length) {
  2447. message.warning(data.error[0].message)
  2448. }
  2449. } else {
  2450. for (let i = 0; i < data.data.length; i++) {
  2451. thisData = data.data[i]
  2452. theArr.push({
  2453. key: i,
  2454. dunSubject: thisData.dunSubject
  2455. ? thisData.dunSubject.toString()
  2456. : '', //催款科目
  2457. id: thisData.id, //节点Id
  2458. money: thisData.money, //催款金额
  2459. dunStatus: thisData.dunStatus, //催款状态
  2460. })
  2461. }
  2462. this.setState({
  2463. jiedian: theArr,
  2464. })
  2465. }
  2466. }.bind(this),
  2467. })
  2468. },
  2469. jiedianNew(orderNos) {
  2470. $.ajax({
  2471. method: 'get',
  2472. dataType: 'json',
  2473. crossDomain: false,
  2474. url:
  2475. globalConfig.context + '/api/admin/newOrderDun/selectListNewOrderDun',
  2476. data: {
  2477. orderNo: orderNos,
  2478. },
  2479. success: function (data) {
  2480. if (data.error && data.error.length) {
  2481. message.warning(data.error[0].message)
  2482. } else {
  2483. let theArr = []
  2484. let thisData = []
  2485. let arr = data.data || []
  2486. let totalCui = 0
  2487. for (let i = 0; i < arr.length; i++) {
  2488. thisData = arr[i]
  2489. totalCui += +thisData.money
  2490. theArr.push({
  2491. key: i,
  2492. dunSubject: thisData.dunSubject
  2493. ? thisData.dunSubject.toString()
  2494. : '', //催款科目
  2495. id: thisData.id, //节点Id
  2496. tid: thisData.tid, //节点指定的第三方id
  2497. money: thisData.money, //催款金额
  2498. // orderNo: record ? record.orderNo : this.props.datauser.orderNo,
  2499. commodityName: thisData.commodityName,
  2500. projectType: thisData.projectType,
  2501. dunTypeName: thisData.dunTypeName,
  2502. status: thisData.status,
  2503. waitDay: thisData.waitDay,
  2504. effectiveCount: thisData.effectiveCount,
  2505. startDate: thisData.startDate,
  2506. dunType: thisData.dunType,
  2507. appropriationRatio: thisData.appropriationRatio,
  2508. customizeName: thisData.customizeName,
  2509. customizeTimes: thisData.customizeTimes,
  2510. })
  2511. }
  2512. if (!totalCui) {
  2513. totalCui = 0
  2514. }
  2515. totalCui = (Math.round(totalCui * 1000000) / 1000000).toFixed(6)
  2516. this.setState({
  2517. jiedianNew: theArr,
  2518. totalCui,
  2519. })
  2520. }
  2521. }.bind(this),
  2522. }).always(
  2523. function () {
  2524. this.setState({
  2525. loading: false,
  2526. })
  2527. }.bind(this)
  2528. )
  2529. },
  2530. orderDetailData(orderNos) {
  2531. this.setState({
  2532. loading: true,
  2533. })
  2534. $.ajax({
  2535. method: 'get',
  2536. dataType: 'json',
  2537. crossDomain: false,
  2538. url: globalConfig.context + '/api/admin/newOrder/getOrderNewDetail',
  2539. data: {
  2540. orderNo: orderNos,
  2541. },
  2542. success: function (data) {
  2543. if (data.error.length || data.data.list == '') {
  2544. if (data.error && data.error.length) {
  2545. message.warning(data.error[0].message)
  2546. this.setState({
  2547. loading: false,
  2548. })
  2549. }
  2550. } else {
  2551. let thisdata = data.data
  2552. this.setState({
  2553. loading: false,
  2554. userName: thisdata.userName,
  2555. primaryOrderNo: thisdata.primaryOrder,
  2556. additionalOrder: thisdata.additionalOrder,
  2557. contractNo: thisdata.contractNo,
  2558. orderData: thisdata,
  2559. isAddition: thisdata.additionalOrder ? true : false,
  2560. contractPictureUrl: thisdata.contractPictureUrl
  2561. ? splitUrl(
  2562. thisdata.contractPictureUrl,
  2563. ',',
  2564. globalConfig.avatarHost + '/upload'
  2565. )
  2566. : [],
  2567. })
  2568. }
  2569. }.bind(this),
  2570. })
  2571. },
  2572. //点击新增供应商
  2573. addcontactNew() {
  2574. this.state.contactListNew.push({
  2575. key: this.state.contactListNew.length,
  2576. money: '',
  2577. dunSubject: undefined,
  2578. orderNo: this.state.orderNo,
  2579. dunTarget: this.state.kehuId,
  2580. })
  2581. this.setState({
  2582. contactListNew: this.state.contactListNew,
  2583. cuiFlag: true,
  2584. })
  2585. },
  2586. //查看第三方信息表格
  2587. thirdTable(id) {
  2588. this.setState({
  2589. loadData: true,
  2590. })
  2591. $.ajax({
  2592. method: 'get',
  2593. dataType: 'json',
  2594. crossDomain: false,
  2595. url: globalConfig.context + '/api/admin/company/selectCompany',
  2596. data: {
  2597. tid: id,
  2598. },
  2599. success: function (data) {
  2600. if (data.error && data.error.length) {
  2601. message.warning(data.error[0].message)
  2602. } else {
  2603. let companyNameArr = []
  2604. let theArr = []
  2605. let thisData = []
  2606. let arr = data.data || []
  2607. let allTotalAmount = 0
  2608. let type = 0;
  2609. let patentNameType = 0;
  2610. for (let i = 0; i < arr.length; i++) {
  2611. thisData = arr[i]
  2612. allTotalAmount =
  2613. (allTotalAmount * 10000 + thisData.totalAmount * 10000) / 10000
  2614. companyNameArr.push(thisData.companyName);
  2615. thisData.key = i;
  2616. thisData.patentType = thisData.type;
  2617. theArr.push(thisData);
  2618. type=thisData.type
  2619. patentNameType= thisData.patentNameType
  2620. }
  2621. if (!allTotalAmount) {
  2622. allTotalAmount = 0
  2623. }
  2624. for(let d=0;d<theArr.length;d++){
  2625. theArr[d].companyName = theArr[d].companyName+ '-' + theArr[d].id;
  2626. companyNameArr[d] = {
  2627. companyName: theArr[d].companyName,
  2628. id: theArr[d].id,
  2629. }
  2630. }
  2631. if(type === 1 || type === 2){
  2632. this.setState({
  2633. patentType: type === 1 ? 0 : type === 2 ? 1 : -1, //0其他 1专利申请 2专利买卖
  2634. patentNameType: patentNameType, //0实用新型 1发明专利 2外观专利 3 其他
  2635. })
  2636. }
  2637. this.setState({
  2638. tid: id,
  2639. PayNodeCompany: companyNameArr,
  2640. thirdInfoList: theArr,
  2641. allTotalAmount: allTotalAmount,
  2642. },()=>{
  2643. this.projectTypeTabContent(this.state.projectType);
  2644. })
  2645. }
  2646. }.bind(this),
  2647. }).always(
  2648. function () {
  2649. this.setState({
  2650. loading: false,
  2651. })
  2652. }.bind(this)
  2653. )
  2654. },
  2655. //外包日志列表
  2656. getSelectOutsourceLog(tid){
  2657. $.ajax({
  2658. method: 'get',
  2659. dataType: 'json',
  2660. crossDomain: false,
  2661. url: globalConfig.context + '/api/admin/outsourceOrg/selectOutsourceLog',
  2662. data: {
  2663. tid: tid,
  2664. },
  2665. success: function (data) {
  2666. if (data.error.length) {
  2667. if (data.error && data.error.length) {
  2668. message.warning(data.error[0].message);
  2669. }
  2670. } else {
  2671. this.setState({
  2672. outsourceLogs: data.data
  2673. })
  2674. }
  2675. }.bind(this),
  2676. }).always(
  2677. function () {
  2678. }.bind(this)
  2679. )
  2680. },
  2681. payNodeTable(id) {
  2682. this.setState({
  2683. loadData: true,
  2684. })
  2685. $.ajax({
  2686. method: 'get',
  2687. dataType: 'json',
  2688. crossDomain: false,
  2689. url: globalConfig.context + '/api/admin/company/selectPaymentNode',
  2690. data: {
  2691. tid: id,
  2692. },
  2693. success: function (data) {
  2694. if (data.error && data.error.length) {
  2695. message.warning(data.error[0].message)
  2696. } else {
  2697. let payNodeArr = []
  2698. let thisData = []
  2699. let arr = data.data || []
  2700. // console.log('this.state.paySubject', this.state.paySubject)
  2701. //对#5283自定义的补充展示
  2702. this.state.paySubject.push({ key: '自定义', value: '0' })
  2703. for (let i = 0; i < arr.length; i++) {
  2704. thisData = arr[i]
  2705. //遍历paySubject,获取当前dunType对应的key
  2706. this.state.paySubject.map((item) => {
  2707. if (item.value == thisData.dunType) {
  2708. thisData.dunType = item.key
  2709. }
  2710. })
  2711. payNodeArr.push({
  2712. key: i,
  2713. id: thisData.id, //付款节点Id
  2714. nodeId: thisData.id, //付款节点Id
  2715. tid: thisData.tid,
  2716. companyName: thisData.companyName, //供应商名称
  2717. projectType: thisData.projectType, //项目分类
  2718. dunType: thisData.dunType, //催款分类
  2719. unitPrice: thisData.unitPrice, //单价
  2720. quantity: thisData.quantity, //数量
  2721. totalAmount: thisData.totalAmount, //总价
  2722. partyAmount: thisData.partyAmount, //付款
  2723. partyTimes: thisData.partyTimes, //付款时间
  2724. cid: thisData.cid, //机构id
  2725. status: thisData.status, //催款状态 0-未支付 1-待全款 ,2已全款 status=2的时候已经全款,申请付款按钮可以去掉了
  2726. })
  2727. }
  2728. for(let d=0;d<payNodeArr.length;d++){
  2729. payNodeArr[d].companyName = payNodeArr[d].companyName+ '-' + payNodeArr[d].cid;
  2730. }
  2731. console.log('payNodeArr:', payNodeArr)
  2732. this.setState({
  2733. tid: id,
  2734. payNodeList: payNodeArr,
  2735. })
  2736. }
  2737. }.bind(this),
  2738. }).always(
  2739. function () {
  2740. this.setState({
  2741. loading: false,
  2742. })
  2743. }.bind(this)
  2744. )
  2745. },
  2746. // 新增第三方供应商信息
  2747. addThirdList() {
  2748. this.setState({
  2749. ThirdListVisible: true,
  2750. })
  2751. },
  2752. // 新增支付节点
  2753. addPayNode() {
  2754. this.setState({
  2755. PayNodeVisible: true,
  2756. })
  2757. },
  2758. // 第三方信息自动计算总金额
  2759. calculatedAmount() {
  2760. let currentTotalPrice
  2761. currentTotalPrice = this.state.thirdUnitPrice * this.state.thirdQuantity
  2762. currentTotalPrice = currentTotalPrice.toFixed(6)
  2763. this.setState({
  2764. currentTotalPrice: currentTotalPrice,
  2765. })
  2766. },
  2767. // 付款节点自动计算总金额
  2768. payNodeCalculatedAmount(num) {
  2769. let currentTotalPrice,quantity,unitPrice
  2770. //获取当前供应商名称对应的单价并更新
  2771. this.state.thirdInfoList.forEach((item) => {
  2772. if (item.companyName === this.state.thirdCompanyName) {
  2773. currentTotalPrice = num ? item.unitPrice * num : item.quantity * item.unitPrice;
  2774. currentTotalPrice = currentTotalPrice.toFixed(6);
  2775. quantity = num ? num : item.quantity;
  2776. unitPrice = item.unitPrice;
  2777. }
  2778. })
  2779. this.setState({
  2780. payNodeQuantity: num ? num : quantity,
  2781. })
  2782. if(this.state.projectType !== 2){
  2783. this.setState({
  2784. currentTotalPrice: currentTotalPrice,
  2785. thirdUnitPrice: unitPrice
  2786. })
  2787. }
  2788. },
  2789. // 保存供应商信息
  2790. handleCancelq() {
  2791. let api
  2792. if (this.state.ThirdId) {
  2793. //修改
  2794. api = '/api/admin/company/updateCompany'
  2795. } else {
  2796. //新增
  2797. api = '/api/admin/company/addCompany'
  2798. }
  2799. let customerId = 0;
  2800. let isHave =this.state.customerArr.some((value)=>{
  2801. if(value.companyName === this.state.thirdCompanyName){
  2802. customerId = value.id
  2803. return true;
  2804. }
  2805. });
  2806. if(!isHave && this.state.projectType !== 0){
  2807. message.warning('请输入正确的供应商名称')
  2808. return;
  2809. }
  2810. this.setState({
  2811. loading: true,
  2812. })
  2813. // material: this.state.thirdMaterial, //材料
  2814. // urgent: this.state.thirdUrgent, //加急
  2815. // unitPrice: this.state.thirdUnitPrice, //单价
  2816. let data = {
  2817. id: this.state.ThirdId, //id
  2818. tid: this.state.tid, //订单编号
  2819. companyName: this.state.thirdCompanyName, //第三方名称
  2820. quantity: this.state.thirdQuantity, //数量
  2821. // totalAmount: this.state.currentTotalPrice, //总价
  2822. remarks: this.state.thirdRemarks, //备注
  2823. }
  2824. if(this.state.projectType === 0){
  2825. data.unitPrice = this.state.thirdUnitPrice;
  2826. }
  2827. if(isHave){
  2828. data.cid = customerId ////公司id
  2829. }
  2830. $.ajax({
  2831. url: globalConfig.context + api,
  2832. method: 'post',
  2833. dataType: 'json',
  2834. crossDomain: false,
  2835. data: data,
  2836. }).done(
  2837. function (data) {
  2838. this.setState({
  2839. loading: false,
  2840. })
  2841. if (!data.error.length) {
  2842. message.success('保存成功!')
  2843. this.setState({
  2844. ThirdId: '',
  2845. ThirdListVisible: false,
  2846. thirdCompanyName: '', //第三方名称
  2847. thirdUnitPrice: '', //单价
  2848. thirdQuantity: '', //数量
  2849. currentTotalPrice: '', //总价
  2850. thirdRemarks: '',
  2851. thirdUrgent: 0,
  2852. })
  2853. // this.visitCancel();
  2854. this.thirdTable(this.state.tid)
  2855. } else {
  2856. message.warning(data.error[0].message)
  2857. }
  2858. }.bind(this)
  2859. )
  2860. },
  2861. //保存付款节点
  2862. savePayNode() {
  2863. let api
  2864. if (this.state.ThirdId) {
  2865. //修改
  2866. api = '/api/admin/company/updatePaymentNode'
  2867. } else {
  2868. //新增
  2869. api = '/api/admin/company/addPaymentNode'
  2870. }
  2871. // totalAmount: this.state.currentTotalPrice, //总价
  2872. // partyAmount: this.state.partyAmount, //付款金额
  2873. //
  2874. let customerId=0;
  2875. this.state.PayNodeCompany.some((value)=>{
  2876. if(value.companyName === this.state.thirdCompanyName){
  2877. customerId = value.id
  2878. return true;
  2879. }
  2880. });
  2881. if(!this.state.thirdCompanyName){
  2882. message.error('请选择供应商名称');
  2883. return;
  2884. }
  2885. if(!this.state.paySubjectName){
  2886. message.error('请选择付款科目');
  2887. return;
  2888. }
  2889. if(!this.state.payNodeQuantity){
  2890. message.error('请输入数量');
  2891. return;
  2892. }
  2893. let data = {
  2894. id: this.state.ThirdId, //id
  2895. tid: this.state.tid, //订单编号
  2896. cid: customerId,//对应的第三方信息
  2897. companyName: this.state.thirdCompanyName.split('-')[0], //第三方名称
  2898. quantity: this.state.payNodeQuantity, //数量
  2899. dunType: this.state.dunType, //催款节点
  2900. projectType: this.state.cSort, //项目分类
  2901. }
  2902. if(this.state.paySubjectName === '0'){
  2903. if(!this.state.partyTimes){
  2904. message.error('请选择付款时间');
  2905. return;
  2906. }
  2907. data.partyTimes = this.state.partyTimes //付款时间
  2908. }
  2909. if(this.state.projectType !== 2){ //其他类型 0正常 1专利 2软著 3审计
  2910. data.totalAmount = this.state.currentTotalPrice //总价
  2911. data.unitPrice = this.state.thirdUnitPrice //单价
  2912. }
  2913. this.setState({
  2914. loading: true,
  2915. })
  2916. $.ajax({
  2917. url: globalConfig.context + api,
  2918. method: 'post',
  2919. dataType: 'json',
  2920. crossDomain: false,
  2921. data: data,
  2922. }).done(
  2923. function (data) {
  2924. this.setState({
  2925. loading: false,
  2926. })
  2927. if (!data.error.length) {
  2928. message.success('保存成功!')
  2929. this.setState({
  2930. ThirdId: '',
  2931. PayNodeVisible: false,
  2932. thirdCompanyName: '', //第三方名称
  2933. paySubjectName: '', //付款科目名称
  2934. thirdUnitPrice: '', //单价
  2935. thirdQuantity: '', //数量
  2936. payNodeQuantity: 1, //付款节点数量
  2937. currentTotalPrice: '', //总价
  2938. partyAmount: '', //付款金额
  2939. partyTimes: '', //付款时间
  2940. dunType: '', //催款节点
  2941. })
  2942. // this.visitCancel();
  2943. this.payNodeTable(this.state.tid)
  2944. } else {
  2945. message.warning(data.error[0].message)
  2946. }
  2947. }.bind(this)
  2948. )
  2949. },
  2950. // 取消
  2951. handleCancelclose() {
  2952. this.setState({
  2953. PayNodeVisible: false,
  2954. payNodeInfor: {},
  2955. ThirdId: '',
  2956. ThirdListVisible: false,
  2957. thirdCompanyName: '', //第三方名称
  2958. paySubjectName: '', //付款科目名称
  2959. thirdUnitPrice: '', //单价
  2960. partyTimes: '',
  2961. thirdQuantity: 1, //数量
  2962. payNodeQuantity: 1,
  2963. currentTotalPrice: '', //总价
  2964. thirdRemarks: '',
  2965. thirdUrgent: 0, //加急状态
  2966. })
  2967. },
  2968. // 删除供应商信息
  2969. confirmDeletNew(index,resolve=()=>{},reject=()=>{}) {
  2970. this.setState({
  2971. loading: true,
  2972. ThirdListVisible: false,
  2973. })
  2974. let id = '';
  2975. if(index === -1){
  2976. if(this.state.thirdInfoList.length === 1){
  2977. id = this.state.thirdInfoList[0].id
  2978. }else{
  2979. this.state.thirdInfoList.map((value,index)=>{
  2980. id+=value.id+',';
  2981. })
  2982. }
  2983. }else{
  2984. id = index.id
  2985. }
  2986. $.ajax({
  2987. url: globalConfig.context + '/api/admin/company/deleteCompany',
  2988. method: 'post',
  2989. data: {
  2990. id: id,
  2991. },
  2992. }).done(
  2993. function (data) {
  2994. this.setState({
  2995. loading: false,
  2996. })
  2997. if (!data.error.length) {
  2998. message.success('删除成功!')
  2999. this.thirdTable(this.state.tid)
  3000. resolve();
  3001. } else {
  3002. message.warning(data.error[0].message)
  3003. reject();
  3004. }
  3005. }.bind(this)
  3006. )
  3007. },
  3008. // 删除付款节点
  3009. payNodeConfirmDeletNew(index,resolve=()=>{},reject=()=>{}) {
  3010. this.setState({
  3011. loading: true,
  3012. PayNodeVisible: false,
  3013. })
  3014. let id = '';
  3015. if(index === -1){
  3016. this.state.payNodeList.map((value,index)=>{
  3017. id+=value.id+',';
  3018. })
  3019. }else{
  3020. id = index.id
  3021. }
  3022. $.ajax({
  3023. url: globalConfig.context + '/api/admin/company/deletePaymentNode',
  3024. method: 'post',
  3025. data: {
  3026. id: id,
  3027. },
  3028. }).done(
  3029. function (data) {
  3030. this.setState({
  3031. loading: false,
  3032. })
  3033. if (!data.error.length) {
  3034. message.success('删除成功!')
  3035. resolve();
  3036. this.payNodeTable(this.state.tid)
  3037. } else {
  3038. message.warning(data.error[0].message)
  3039. reject();
  3040. }
  3041. }.bind(this)
  3042. )
  3043. },
  3044. //点击供应商详情
  3045. tableRowClickOne(record) {
  3046. this.setState({
  3047. ThirdListVisible: true,
  3048. ThirdId: record.id, //供应商id
  3049. thirdCompanyName: record.companyName, //第三方名称
  3050. thirdUnitPrice: record.unitPrice, //单价
  3051. thirdQuantity: record.quantity, //数量
  3052. currentTotalPrice: record.totalAmount, //总价
  3053. thirdMaterial: record.material, //有无材料
  3054. thirdUrgent: record.urgent, //加急情况
  3055. thirdRemarks: record.remarks,
  3056. audit: record.audit,//审计
  3057. assets: record.assets,//公司资产
  3058. income: record.income,//收入
  3059. })
  3060. },
  3061. //点击付款节点详情
  3062. payNodeTableRowClickOne(record) {
  3063. this.setState({
  3064. PayNodeVisible: true,
  3065. ThirdId: record.id, //供应商id
  3066. thirdCompanyName: record.companyName, //第三方名称
  3067. thirdUnitPrice: record.unitPrice, //单价
  3068. thirdQuantity: record.quantity, //供应商数量
  3069. payNodeQuantity: record.quantity, //付款节点数量
  3070. currentTotalPrice: record.totalAmount, //总价
  3071. partyTimes: record.partyTimes,
  3072. paySubjectName: record.dunType,
  3073. });
  3074. let obj = JSON.parse(JSON.stringify(record));
  3075. this.state.paySubject.some((value)=>{
  3076. if(value.key === obj.dunType){
  3077. obj.dunType = value.value;
  3078. return true;
  3079. }
  3080. });
  3081. this.setState({
  3082. payNodeInfor: obj, //付款节点详情
  3083. });
  3084. },
  3085. render() {
  3086. const formItemLayout = {
  3087. labelCol: { span: 8 },
  3088. wrapperCol: { span: 14 },
  3089. }
  3090. let departmentArr = this.state.departmentArr || []
  3091. return (
  3092. <div className="user-content">
  3093. {this.state.resVisible ? (
  3094. <ResolutionDetail
  3095. cancel={this.resCancel}
  3096. detail={this.state.resRecord}
  3097. visible={this.state.resVisible}
  3098. id={this.state.resRecord.orderNo}
  3099. />
  3100. ) : (
  3101. ''
  3102. )}
  3103. <ShowModalDiv ShowModal={this.state.showModal} />
  3104. <div className="content-title" style={{ marginBottom: 10 }}>
  3105. <span style={{ fontWeight: 900, fontSize: 16 }}>项目任务</span>
  3106. </div>
  3107. <Tabs defaultActiveKey="2" className="test" bordered>
  3108. <TabPane tab="更改表格显示数据" key="1">
  3109. <div style={{ marginLeft: 10 }}>
  3110. <ChooseList
  3111. columns={this.state.columns}
  3112. changeFn={this.changeList}
  3113. changeList={this.state.changeList}
  3114. top={55}
  3115. margin={11}
  3116. />
  3117. </div>
  3118. </TabPane>
  3119. <TabPane tab="搜索" key="2">
  3120. <div className="user-search" style={{ marginLeft: 10 }}>
  3121. <Input
  3122. placeholder="客户名称"
  3123. value={this.state.nameSearch}
  3124. onChange={(e) => {
  3125. this.setState({ nameSearch: e.target.value })
  3126. }}
  3127. />
  3128. <Input
  3129. placeholder="订单编号"
  3130. value={this.state.orderNoSearch}
  3131. onChange={(e) => {
  3132. this.setState({ orderNoSearch: e.target.value })
  3133. }}
  3134. />
  3135. <Input
  3136. placeholder="合同编号"
  3137. value={this.state.contractNoSearch}
  3138. onChange={(e) => {
  3139. this.setState({ contractNoSearch: e.target.value })
  3140. }}
  3141. />
  3142. <Input
  3143. placeholder="项目编号"
  3144. value={this.state.taskNoSearch}
  3145. onChange={(e) => {
  3146. this.setState({ taskNoSearch: e.target.value })
  3147. }}
  3148. />
  3149. <Select
  3150. placeholder="选择部门"
  3151. style={{ width: 150, marginRight: '10px' }}
  3152. value={this.state.departmenttSearch}
  3153. onChange={(e) => {
  3154. this.setState({ departmenttSearch: e })
  3155. }}
  3156. >
  3157. {departmentArr.map(function (item) {
  3158. return (
  3159. <Select.Option key={item.id}>{item.name}</Select.Option>
  3160. )
  3161. })}
  3162. </Select>
  3163. <Select
  3164. placeholder="项目状态"
  3165. style={{ width: 150, marginRight: '10px' }}
  3166. value={this.state.projectStatusSearch}
  3167. onChange={(e) => {
  3168. this.setState({ projectStatusSearch: e })
  3169. console.log(this.state.projectStatusSearch)
  3170. }}
  3171. >
  3172. {projectStatus.map(function (item) {
  3173. return (
  3174. <Select.Option key={item.value}>{item.key}</Select.Option>
  3175. )
  3176. })}
  3177. </Select>
  3178. <Select
  3179. placeholder="特批状态"
  3180. style={{ width: 150, marginRight: '10px' }}
  3181. value={this.state.approvalSearch}
  3182. onChange={(e) => {
  3183. this.setState({ approvalSearch: e })
  3184. console.log(this.state.approvalSearch)
  3185. }}
  3186. >
  3187. <Select.Option key={0}>非特批</Select.Option>
  3188. <Select.Option key={1}>特批</Select.Option>
  3189. </Select>
  3190. <Select
  3191. placeholder="外包状态"
  3192. style={{ width: 150, marginRight: '10px' }}
  3193. value={this.state.outsourceStatusSearch}
  3194. onChange={(e) => {
  3195. this.setState({ outsourceStatusSearch: e })
  3196. console.log(this.state.outsourceStatusSearch)
  3197. }}
  3198. >
  3199. <Select.Option key={0}>外包待审核</Select.Option>
  3200. {/* <Select.Option key={1}>外包审核通过</Select.Option> */}
  3201. <Select.Option key={2}>外包审核驳回</Select.Option>
  3202. <Select.Option key={999}>全部</Select.Option>
  3203. </Select>
  3204. <Button type="primary" onClick={this.search}>
  3205. 搜索
  3206. </Button>
  3207. <Button
  3208. onClick={(e) => {
  3209. this.reset(true)
  3210. }}
  3211. >
  3212. 重置
  3213. </Button>
  3214. {/* <span>更多搜索<Switch defaultChecked={false} onChange={this.searchSwitch.bind(this)} /></span>
  3215. <div className="search-more" style={this.state.searchMore ? { display: 'none' } : {}}>
  3216. <span>订单时间 :</span>
  3217. <RangePicker
  3218. value={[this.state.releaseDate[0] ? moment(this.state.releaseDate[0]) : null,
  3219. this.state.releaseDate[1] ? moment(this.state.releaseDate[1]) : null]}
  3220. onChange={(data, dataString) => { this.setState({ releaseDate: dataString }); }} />
  3221. </div> */}
  3222. </div>
  3223. </TabPane>
  3224. <TabPane tab="导出Excel" key="3">
  3225. <Button
  3226. type="primary"
  3227. style={{ margin: '11px 0 10px 10px' }}
  3228. onClick={this.exportExec}
  3229. >
  3230. 导出Excel
  3231. </Button>
  3232. </TabPane>
  3233. {/* <TabPane tab="批量操作" key="6">
  3234. <Button
  3235. type="primary"
  3236. disabled={this.state.selectedRowKeys.length == 0}
  3237. style={{ margin: "0px 0px 10px 10px" }}
  3238. onClick={e => {
  3239. e.stopPropagation(),
  3240. this.evaluateY(this.state.selectedRowKeys, "财务专员");
  3241. }}
  3242. >
  3243. 转交
  3244. </Button>
  3245. </TabPane> */}
  3246. </Tabs>
  3247. {/* <div className="user-search">
  3248. <Input
  3249. placeholder="客户名称"
  3250. value={this.state.nameSearch}
  3251. onChange={e => {
  3252. this.setState({ nameSearch: e.target.value });
  3253. }}
  3254. />
  3255. <Input
  3256. placeholder="订单编号"
  3257. value={this.state.orderNoSearch}
  3258. onChange={e => {
  3259. this.setState({ orderNoSearch: e.target.value });
  3260. }}
  3261. />
  3262. <Input
  3263. placeholder="项目编号"
  3264. value={this.state.taskNoSearch}
  3265. onChange={e => {
  3266. this.setState({ taskNoSearch: e.target.value });
  3267. }}
  3268. />
  3269. <Select
  3270. placeholder="选择部门"
  3271. style={{ width: 150, marginRight: "10px" }}
  3272. value={this.state.departmenttSearch}
  3273. onChange={e => {
  3274. this.setState({ departmenttSearch: e });
  3275. }}
  3276. >
  3277. {departmentArr.map(function(item) {
  3278. return <Select.Option key={item.id}>{item.name}</Select.Option>;
  3279. })}
  3280. </Select>
  3281. <Button type="primary" onClick={this.search}>
  3282. 搜索
  3283. </Button>
  3284. <Button onClick={this.reset}>重置</Button>
  3285. <Button
  3286. type="primary"
  3287. style={{ marginLeft: "10px" }}
  3288. onClick={this.exportExec}
  3289. >
  3290. 导出Excel
  3291. </Button>
  3292. <span>更多搜索<Switch defaultChecked={false} onChange={this.searchSwitch.bind(this)} /></span>
  3293. <div className="search-more" style={this.state.searchMore ? { display: 'none' } : {}}>
  3294. <span>订单时间 :</span>
  3295. <RangePicker
  3296. value={[this.state.releaseDate[0] ? moment(this.state.releaseDate[0]) : null,
  3297. this.state.releaseDate[1] ? moment(this.state.releaseDate[1]) : null]}
  3298. onChange={(data, dataString) => { this.setState({ releaseDate: dataString }); }} />
  3299. </div>
  3300. </div> */}
  3301. <div className="patent-table">
  3302. <Spin spinning={this.state.loading}>
  3303. <Table
  3304. columns={
  3305. this.state.changeList == undefined
  3306. ? this.state.columns
  3307. : this.state.changeList
  3308. }
  3309. dataSource={this.state.dataSource}
  3310. pagination={this.state.pagination}
  3311. scroll={{ x: 'max-content', y: 0 }}
  3312. onRowClick={this.tableRowClick.bind(this)}
  3313. bordered
  3314. size={'small'}
  3315. />
  3316. </Spin>
  3317. </div>
  3318. <Assign
  3319. title="项目"
  3320. selApi={'/api/admin/orderProject/projectDistribution'}
  3321. data={this.state.assignData}
  3322. showDesc={this.state.assignVisible}
  3323. closeDesc={this.closeAssign.bind(this)}
  3324. fenpaiData={8}
  3325. specially={0}
  3326. roleName={this.state.nub}
  3327. requestMethod={'post'}
  3328. flag={this.state.flag}
  3329. all={this.state}
  3330. />
  3331. {this.state.visible ? <Modal
  3332. className="customeDetails"
  3333. footer=""
  3334. title=""
  3335. width="900px"
  3336. visible={this.state.visible}
  3337. onOk={this.visitOk}
  3338. onCancel={this.visitCancel}
  3339. >
  3340. <Tabs
  3341. tabBarExtraContent={
  3342. <div style={{fontWeight:'bold',paddingRight:'15px'}}>
  3343. <span>
  3344. 项目名称:
  3345. <span style={{color:'#F00',paddingRight:'5px'}}>{this.state.taskName}</span>
  3346. </span>
  3347. <span style={{marginLeft:'15px'}}>
  3348. 项目编号:
  3349. <span style={{color:'#F00',paddingRight:'5px'}}>
  3350. {this.state.id}
  3351. {
  3352. this.state.splitStatus === 2 ? '('+this.state.splitSuper+'-'+this.state.splitId+')' : ''
  3353. }
  3354. </span>
  3355. </span>
  3356. </div>
  3357. }
  3358. activeKey={this.state.activeKey}
  3359. onChange={(e) => {
  3360. this.callback(e)
  3361. if (e === "2") {
  3362. this.waiDetail();
  3363. this.thirdTable(this.state.tid);
  3364. this.payNodeTable(this.state.tid);
  3365. this.getSelectOutsourceLog(this.state.tid);
  3366. }else if(e === "1"){
  3367. this.xiangqing(this.state.tid);
  3368. }
  3369. }}
  3370. >
  3371. <TabPane tab="项目概况" key="1">
  3372. {this.state.activeKey === "1" ? <Form
  3373. layout="horizontal"
  3374. onSubmit={this.handleSubmit}
  3375. id="demand-form"
  3376. style={{ paddingBottom: '00px' }}
  3377. >
  3378. <Spin spinning={this.state.loading}>
  3379. <div className="clearfix">
  3380. <div className="clearfix">
  3381. <FormItem
  3382. className="half-item"
  3383. {...formItemLayout}
  3384. label="当前项目情况"
  3385. >
  3386. <Radio.Group
  3387. value={this.state.status}
  3388. onChange={(e) => {
  3389. this.setState({ status: e.target.value })
  3390. }}
  3391. >
  3392. <Radio value={0}>开启</Radio>
  3393. <Radio value={1}>暂停</Radio>
  3394. </Radio.Group>
  3395. <Button
  3396. type="primary"
  3397. size="small"
  3398. style={{ marginTop: '5px', position: 'absolute' }}
  3399. onClick={this.caozuorizhi}
  3400. >
  3401. 操作日志
  3402. </Button>
  3403. </FormItem>
  3404. <FormItem
  3405. className="half-item"
  3406. {...formItemLayout}
  3407. label="合同编号"
  3408. >
  3409. <span>{this.state.contractNo}</span>
  3410. </FormItem>
  3411. </div>
  3412. <div className="clearfix">
  3413. <FormItem
  3414. className="half-item"
  3415. {...formItemLayout}
  3416. label="项目状态"
  3417. >
  3418. <Select
  3419. placeholder="选择项目状态"
  3420. style={{ width: '200px' }}
  3421. value={this.state.projectStatus}
  3422. onChange={(e) => {
  3423. this.setState({ projectStatus: e })
  3424. }}
  3425. >
  3426. {projectStatus.map(function (item) {
  3427. return (
  3428. <Select.Option key={item.value}>
  3429. {item.key}
  3430. </Select.Option>
  3431. )
  3432. })}
  3433. </Select>
  3434. </FormItem>
  3435. <FormItem
  3436. className="half-item"
  3437. {...formItemLayout}
  3438. label="是否特批"
  3439. >
  3440. <span>{getApproval(this.state.approval)}</span>
  3441. </FormItem>
  3442. <FormItem
  3443. className="half-item"
  3444. {...formItemLayout}
  3445. label="结算状态"
  3446. >
  3447. <span>
  3448. {getLiquidationStatus(this.state.liquidationStatus)}
  3449. </span>
  3450. </FormItem>
  3451. <FormItem
  3452. className="half-item"
  3453. {...formItemLayout}
  3454. label="流程状态"
  3455. >
  3456. <span>
  3457. {getProcessStatus(this.state.processStatus)}
  3458. </span>
  3459. </FormItem>
  3460. <FormItem
  3461. className="half-item"
  3462. {...formItemLayout}
  3463. label="订单编号"
  3464. >
  3465. <span>{this.state.orderNo}</span>
  3466. </FormItem>
  3467. </div>
  3468. <div className="clearfix">
  3469. <FormItem
  3470. className="half-item"
  3471. {...formItemLayout}
  3472. label="满意度表格"
  3473. >
  3474. <Radio.Group
  3475. value={this.state.formRetrieve}
  3476. onChange={(e) => {
  3477. this.setState({ formRetrieve: e.target.value })
  3478. }}
  3479. >
  3480. <Radio value={0}>未收回</Radio>
  3481. <Radio value={1}>已收回</Radio>
  3482. <Radio value={2}>其他</Radio>
  3483. </Radio.Group>
  3484. </FormItem>
  3485. <FormItem
  3486. className="half-item"
  3487. {...formItemLayout}
  3488. label="退单"
  3489. >
  3490. <Radio.Group
  3491. value={this.state.taskRefund}
  3492. onChange={(e) => {
  3493. this.setState({ taskRefund: e.target.value })
  3494. }}
  3495. >
  3496. <Radio value={0}>已完成</Radio>
  3497. <Radio value={1}>未完成</Radio>
  3498. <Radio value={2}>其他</Radio>
  3499. </Radio.Group>
  3500. </FormItem>
  3501. </div>
  3502. <div className="clearfix">
  3503. {
  3504. <FormItem
  3505. className="half-item"
  3506. {...formItemLayout}
  3507. label="(满意度)备注"
  3508. >
  3509. <Input
  3510. type="textarea"
  3511. placeholder="请输入备注"
  3512. rows={2}
  3513. value={this.state.retrieveContent}
  3514. onChange={(e) => {
  3515. this.setState({
  3516. retrieveContent: e.target.value,
  3517. })
  3518. }}
  3519. />
  3520. </FormItem>
  3521. }
  3522. {
  3523. <FormItem
  3524. className="half-item"
  3525. {...formItemLayout}
  3526. label="(退单)备注"
  3527. >
  3528. <Input
  3529. type="textarea"
  3530. placeholder="请输入备注"
  3531. rows={2}
  3532. value={this.state.refundContent}
  3533. onChange={(e) => {
  3534. this.setState({ refundContent: e.target.value })
  3535. }}
  3536. />
  3537. </FormItem>
  3538. }
  3539. </div>
  3540. <div className="clearfix">
  3541. <h3 className="sub-title">订单负责人信息</h3>
  3542. <FormItem
  3543. className="half-item"
  3544. {...formItemLayout}
  3545. label="负责人"
  3546. >
  3547. <span>
  3548. {this.state.salesmanName +
  3549. '(' +
  3550. this.state.depName +
  3551. ')'}
  3552. </span>
  3553. </FormItem>
  3554. <FormItem
  3555. className="half-item"
  3556. {...formItemLayout}
  3557. label="负责人电话"
  3558. >
  3559. <span>{this.state.salesmanMobile}</span>
  3560. </FormItem>
  3561. <FormItem
  3562. className="half-item"
  3563. {...formItemLayout}
  3564. label="当前财务负责人"
  3565. >
  3566. <span>{this.state.nowFinance}</span>
  3567. </FormItem>
  3568. <FormItem
  3569. className="half-item"
  3570. {...formItemLayout}
  3571. label="当前财务负责人电话"
  3572. >
  3573. <span>{this.state.nowFinanceMobile}</span>
  3574. </FormItem>
  3575. <FormItem
  3576. className="half-item"
  3577. {...formItemLayout}
  3578. style={{ opacity: '.5' }}
  3579. label="原负责人"
  3580. >
  3581. <span>{this.state.oldSalesmanName}</span>
  3582. </FormItem>
  3583. <FormItem
  3584. className="half-item"
  3585. {...formItemLayout}
  3586. style={{ opacity: '.5' }}
  3587. label="原负责人电话"
  3588. >
  3589. <span>{this.state.oldSalesmanMobile}</span>
  3590. </FormItem>
  3591. <FormItem
  3592. className="half-item"
  3593. {...formItemLayout}
  3594. style={{ opacity: '.5' }}
  3595. label="实际财务操作人"
  3596. >
  3597. <span>{this.state.financeName}</span>
  3598. </FormItem>
  3599. <FormItem
  3600. className="half-item"
  3601. {...formItemLayout}
  3602. style={{ opacity: '.5' }}
  3603. label="实际财务操作人电话"
  3604. >
  3605. <span>{this.state.financeMobile}</span>
  3606. </FormItem>
  3607. <FormItem
  3608. className="half-item"
  3609. {...formItemLayout}
  3610. label="订单留言"
  3611. >
  3612. <span>{this.state.orderRemarks}</span>
  3613. </FormItem>
  3614. <FormItem
  3615. className="half-item"
  3616. {...formItemLayout}
  3617. label=""
  3618. >
  3619. <Button onClick={this.getOrderLog}>查看订单日志</Button>
  3620. </FormItem>
  3621. <OrderRiZi
  3622. dataSourcerizhi={this.state.dataSourceY}
  3623. closeOrderLog={this.closeOrderLog}
  3624. visible={this.state.avisible}
  3625. loading={this.state.loading}
  3626. />
  3627. </div>
  3628. {/*<div className="clearfix">*/}
  3629. {/* <h3 className="sub-title">外包信息</h3>*/}
  3630. {/* <FormItem*/}
  3631. {/* className="half-item"*/}
  3632. {/* {...formItemLayout}*/}
  3633. {/* label="外包公司"*/}
  3634. {/* >*/}
  3635. {/* <Input*/}
  3636. {/* value={this.state.outsourceName}*/}
  3637. {/* onChange={(e) => {*/}
  3638. {/* this.setState({*/}
  3639. {/* outsourceName: e.target.value,*/}
  3640. {/* })*/}
  3641. {/* }}*/}
  3642. {/* placeholder="请输入外包公司"*/}
  3643. {/* style={{ width: '200px' }}*/}
  3644. {/* />*/}
  3645. {/* </FormItem>*/}
  3646. {/* <FormItem*/}
  3647. {/* className="half-item"*/}
  3648. {/* {...formItemLayout}*/}
  3649. {/* label="外包成本(万元)"*/}
  3650. {/* >*/}
  3651. {/* <Input*/}
  3652. {/* value={this.state.outsourcePrice}*/}
  3653. {/* onChange={(e) => {*/}
  3654. {/* this.setState({*/}
  3655. {/* outsourcePrice: e.target.value,*/}
  3656. {/* })*/}
  3657. {/* }}*/}
  3658. {/* placeholder="请输入外包成本"*/}
  3659. {/* style={{ width: '200px' }}*/}
  3660. {/* />*/}
  3661. {/* </FormItem>*/}
  3662. {/*</div>*/}
  3663. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  3664. <div className="clearfix">
  3665. <h3 className="sub-title">联系信息</h3>
  3666. <FormItem
  3667. className="half-item"
  3668. {...formItemLayout}
  3669. label="客户名称"
  3670. >
  3671. <span>{this.state.userName}</span>
  3672. </FormItem>
  3673. <FormItem
  3674. className="half-item"
  3675. {...formItemLayout}
  3676. label="企业法人"
  3677. >
  3678. <Input
  3679. placeholder="请输入法人名称"
  3680. value={this.state.legalPerson}
  3681. style={{ width: '200px' }}
  3682. onChange={(e) => {
  3683. this.setState({ legalPerson: e.target.value })
  3684. }}
  3685. ref="commodityQuantity"
  3686. />
  3687. </FormItem>
  3688. <FormItem
  3689. className="half-item"
  3690. {...formItemLayout}
  3691. label="法人电话"
  3692. >
  3693. <Input
  3694. placeholder="请输入法人电话"
  3695. value={this.state.legalPersonTel}
  3696. style={{ width: '200px' }}
  3697. onChange={(e) => {
  3698. this.setState({ legalPersonTel: e.target.value })
  3699. }}
  3700. ref="commodityQuantity"
  3701. />
  3702. </FormItem>
  3703. <FormItem
  3704. className="half-item"
  3705. {...formItemLayout}
  3706. label="客户联系人"
  3707. >
  3708. <Input
  3709. placeholder="请输入联系人名称"
  3710. value={this.state.contacts}
  3711. style={{ width: '200px' }}
  3712. onChange={(e) => {
  3713. this.setState({ contacts: e.target.value })
  3714. }}
  3715. ref="commodityQuantity"
  3716. />
  3717. </FormItem>
  3718. <FormItem
  3719. className="half-item"
  3720. {...formItemLayout}
  3721. label="联系人电话"
  3722. >
  3723. <Input
  3724. placeholder="请输入联系人电话"
  3725. value={this.state.contactMobile}
  3726. style={{ width: '200px' }}
  3727. onChange={(e) => {
  3728. this.setState({ contactMobile: e.target.value })
  3729. }}
  3730. ref="commodityQuantity"
  3731. />
  3732. </FormItem>
  3733. <FormItem
  3734. className="half-item"
  3735. {...formItemLayout}
  3736. label="企业地址"
  3737. >
  3738. <Cascader
  3739. options={areaSelect()}
  3740. value={this.state.ProvinceCity}
  3741. placeholder="选择城市"
  3742. style={{ width: '200px' }}
  3743. onChange={(e) => {
  3744. this.setState({ ProvinceCity: e })
  3745. }}
  3746. />
  3747. </FormItem>
  3748. <FormItem
  3749. className="half-item"
  3750. {...formItemLayout}
  3751. label=""
  3752. ></FormItem>
  3753. <FormItem
  3754. className="half-item"
  3755. {...formItemLayout}
  3756. label=""
  3757. >
  3758. <Input
  3759. placeholder="请输入详细地址"
  3760. value={this.state.postalAddress}
  3761. style={{ width: '200px', marginLeft: '12em' }}
  3762. onChange={(e) => {
  3763. this.setState({ postalAddress: e.target.value })
  3764. }}
  3765. ref="commodityQuantity"
  3766. />
  3767. </FormItem>
  3768. </div>
  3769. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  3770. <div className="clearfix">
  3771. <h3 className="sub-title">项目信息</h3>
  3772. <FormItem
  3773. className="half-item"
  3774. {...formItemLayout}
  3775. label="项目编号"
  3776. >
  3777. <span>
  3778. {this.state.splitStatus == 2
  3779. ? this.state.splitSuper + '-' + this.state.splitId
  3780. : this.state.id}
  3781. </span>
  3782. </FormItem>
  3783. <FormItem
  3784. className="half-item"
  3785. {...formItemLayout}
  3786. label="项目名称"
  3787. >
  3788. <span>{this.state.taskName}</span>
  3789. </FormItem>
  3790. <FormItem
  3791. className="half-item"
  3792. {...formItemLayout}
  3793. label="项目状态"
  3794. >
  3795. <Select
  3796. placeholder="选择项目状态"
  3797. style={{ width: '200px' }}
  3798. value={this.state.taskStatus}
  3799. onChange={(e) => {
  3800. this.setState({ taskStatus: e })
  3801. }}
  3802. >
  3803. {taskStatus.map(function (item) {
  3804. return (
  3805. <Select.Option key={item.value}>
  3806. {item.key}
  3807. </Select.Option>
  3808. )
  3809. })}
  3810. </Select>
  3811. </FormItem>
  3812. <FormItem
  3813. className="half-item"
  3814. {...formItemLayout}
  3815. label="项目类别"
  3816. >
  3817. <span>{this.state.cname}</span>
  3818. </FormItem>
  3819. <FormItem
  3820. className="half-item"
  3821. {...formItemLayout}
  3822. label="证书编号"
  3823. >
  3824. <Input
  3825. placeholder="请输入证书编号"
  3826. value={this.state.certificateNumber}
  3827. style={{ width: '200px' }}
  3828. onChange={(e) => {
  3829. this.setState({
  3830. certificateNumber: e.target.value,
  3831. })
  3832. }}
  3833. ref="commodityQuantity"
  3834. />
  3835. </FormItem>
  3836. </div>
  3837. <div className="clearfix">
  3838. <h3 className="sub-title">申报系统账户信息</h3>
  3839. {/*<span style={{color:'red'}}>注:仅技术部可见</span>*/}
  3840. <FormItem
  3841. className="half-item"
  3842. {...formItemLayout}
  3843. label="用户名"
  3844. >
  3845. <Input
  3846. placeholder="请输入用户名"
  3847. value={this.state.declareUser}
  3848. style={{ width: '200px' }}
  3849. onChange={(e) => {
  3850. this.setState({ declareUser: e.target.value })
  3851. }}
  3852. />
  3853. </FormItem>
  3854. <FormItem
  3855. className="half-item"
  3856. {...formItemLayout}
  3857. label="密码"
  3858. >
  3859. <Input
  3860. placeholder="请输入密码"
  3861. value={this.state.declarePwd}
  3862. style={{ width: '200px' }}
  3863. onChange={(e) => {
  3864. this.setState({ declarePwd: e.target.value })
  3865. }}
  3866. />
  3867. </FormItem>
  3868. </div>
  3869. <div className="clearfix">
  3870. <h3 className="sub-title">项目申报进度</h3>
  3871. <FormItem
  3872. className="half-item"
  3873. {...formItemLayout}
  3874. label="申报批次"
  3875. >
  3876. <Select
  3877. style={{ width: 200 }}
  3878. placeholder="请选择批次"
  3879. value={
  3880. this.state.declarationBatch
  3881. ? this.state.declarationBatch
  3882. : undefined
  3883. }
  3884. onChange={(e) => {
  3885. this.setState({
  3886. declarationBatch: e,
  3887. })
  3888. }}
  3889. >
  3890. <Option value={1}>第一批</Option>
  3891. <Option value={2}>第二批</Option>
  3892. <Option value={3}>第三批</Option>
  3893. <Option value={4}>第四批</Option>
  3894. </Select>
  3895. </FormItem>
  3896. <FormItem
  3897. className="half-item"
  3898. {...formItemLayout}
  3899. label="启动时间"
  3900. >
  3901. <DatePicker
  3902. style={{
  3903. marginTop: '2px',
  3904. width: '200px',
  3905. height: '32px',
  3906. }}
  3907. showTime
  3908. format="YYYY-MM-DD"
  3909. onOk={() => {}}
  3910. value={
  3911. this.state.startDate
  3912. ? moment(this.state.startDate)
  3913. : null
  3914. }
  3915. onChange={(data, dataString) => {
  3916. this.setState({ startDate: dataString })
  3917. }}
  3918. />
  3919. </FormItem>
  3920. <FormItem
  3921. className="half-item"
  3922. {...formItemLayout}
  3923. label="完成时间"
  3924. >
  3925. <DatePicker
  3926. style={{
  3927. marginTop: '2px',
  3928. width: '200px',
  3929. height: '32px',
  3930. }}
  3931. showTime
  3932. format="YYYY-MM-DD"
  3933. onOk={() => {}}
  3934. value={
  3935. this.state.endDate
  3936. ? moment(this.state.endDate)
  3937. : null
  3938. }
  3939. onChange={(data, dataString) => {
  3940. this.setState({ endDate: dataString })
  3941. }}
  3942. />
  3943. </FormItem>
  3944. <FormItem
  3945. className="half-item"
  3946. {...formItemLayout}
  3947. label="受理时间"
  3948. >
  3949. <DatePicker
  3950. style={{
  3951. marginTop: '2px',
  3952. width: '200px',
  3953. height: '32px',
  3954. }}
  3955. showTime
  3956. format="YYYY-MM-DD"
  3957. onOk={() => {}}
  3958. value={
  3959. this.state.acceptDate
  3960. ? moment(this.state.acceptDate)
  3961. : null
  3962. }
  3963. onChange={(data, dataString) => {
  3964. this.setState({ acceptDate: dataString })
  3965. }}
  3966. />
  3967. </FormItem>
  3968. <FormItem
  3969. className="half-item"
  3970. {...formItemLayout}
  3971. label="评审时间"
  3972. >
  3973. <DatePicker
  3974. style={{
  3975. marginTop: '2px',
  3976. width: '200px',
  3977. height: '32px',
  3978. }}
  3979. showTime
  3980. format="YYYY-MM-DD"
  3981. onOk={() => {}}
  3982. value={
  3983. this.state.reviewDate
  3984. ? moment(this.state.reviewDate)
  3985. : null
  3986. }
  3987. onChange={(data, dataString) => {
  3988. this.setState({ reviewDate: dataString })
  3989. }}
  3990. />
  3991. </FormItem>
  3992. <FormItem
  3993. className="half-item"
  3994. {...formItemLayout}
  3995. label="公示时间"
  3996. >
  3997. <DatePicker
  3998. style={{
  3999. marginTop: '2px',
  4000. width: '200px',
  4001. height: '32px',
  4002. }}
  4003. showTime
  4004. format="YYYY-MM-DD"
  4005. onOk={() => {}}
  4006. value={
  4007. this.state.publicityDate
  4008. ? moment(this.state.publicityDate)
  4009. : null
  4010. }
  4011. onChange={(data, dataString) => {
  4012. this.setState({ publicityDate: dataString })
  4013. }}
  4014. />
  4015. </FormItem>
  4016. <FormItem
  4017. className="half-item"
  4018. {...formItemLayout}
  4019. label="发证时间"
  4020. >
  4021. <DatePicker
  4022. style={{
  4023. marginTop: '2px',
  4024. width: '200px',
  4025. height: '32px',
  4026. }}
  4027. showTime
  4028. format="YYYY-MM-DD"
  4029. onOk={() => {}}
  4030. value={
  4031. this.state.licenceDate
  4032. ? moment(this.state.licenceDate)
  4033. : null
  4034. }
  4035. onChange={(data, dataString) => {
  4036. this.setState({ licenceDate: dataString })
  4037. }}
  4038. />
  4039. </FormItem>
  4040. <FormItem
  4041. className="half-item"
  4042. {...formItemLayout}
  4043. label="立项金额(万元)"
  4044. >
  4045. <Input
  4046. placeholder="请输入立项金额"
  4047. value={this.state.setUpAmount}
  4048. style={{ width: '200px' }}
  4049. onChange={(e) => {
  4050. this.setState({ setUpAmount: e.target.value })
  4051. }}
  4052. ref="commodityQuantity"
  4053. />
  4054. </FormItem>
  4055. <FormItem
  4056. className="half-item"
  4057. {...formItemLayout}
  4058. label="是否到款"
  4059. >
  4060. <Radio.Group
  4061. value={this.state.arrivalMoney}
  4062. onChange={(e) => {
  4063. this.setState({ arrivalMoney: e.target.value })
  4064. }}
  4065. >
  4066. <Radio value={0}>未到企业</Radio>
  4067. <Radio value={1}>已到企业</Radio>
  4068. </Radio.Group>
  4069. </FormItem>
  4070. </div>
  4071. <div className="clearfix">
  4072. <FormItem
  4073. labelCol={{ span: 3 }}
  4074. wrapperCol={{ span: 16 }}
  4075. label="附件"
  4076. >
  4077. <Picture
  4078. domId={'myTask1'}
  4079. fileList={(e) => {
  4080. this.setState({ attachmentUrl: e })
  4081. }}
  4082. pictureUrl={this.state.attachmentUrl}
  4083. visible={this.props.visible}
  4084. data={{
  4085. sign: 'order_task_file',
  4086. url: '/api/admin/orderProject/uploadOrderTaskFile',
  4087. }}
  4088. />
  4089. </FormItem>
  4090. </div>
  4091. <div className="clearfix">
  4092. <FormItem
  4093. labelCol={{ span: 3 }}
  4094. wrapperCol={{ span: 16 }}
  4095. label="备注"
  4096. >
  4097. <Input
  4098. type="textarea"
  4099. placeholder="请输入备注"
  4100. rows={4}
  4101. value={this.state.taskComment}
  4102. onChange={(e) => {
  4103. this.setState({ taskComment: e.target.value })
  4104. }}
  4105. />
  4106. </FormItem>
  4107. </div>
  4108. <div>
  4109. <h3 className="sub-title">项目业务</h3>
  4110. {this.state.processStatus == 0 ? (
  4111. <Button
  4112. type="primary"
  4113. onClick={this.addDetailed}
  4114. style={{
  4115. float: 'right',
  4116. marginRight: '50px',
  4117. marginBottom: '15px',
  4118. }}
  4119. >
  4120. 添加项目明细
  4121. </Button>
  4122. ) : (
  4123. ''
  4124. )}
  4125. </div>
  4126. <div className="patent-table">
  4127. <Spin spinning={this.state.loading}>
  4128. <Table
  4129. columns={this.state.columnsX}
  4130. dataSource={this.state.dataSourceX}
  4131. pagination={this.state.paginations}
  4132. onRowClick={this.tableRowClickX}
  4133. bordered
  4134. size="small"
  4135. />
  4136. </Spin>
  4137. </div>
  4138. <div className="clearfix">
  4139. <Button
  4140. className="cancel"
  4141. type="primary"
  4142. // onClick={this.tijiaoOk}
  4143. onClick={() => {
  4144. let num = this.state.projectStatus
  4145. if (
  4146. num != 0 &&
  4147. num != 10 &&
  4148. num != 11 &&
  4149. num != 12 &&
  4150. num != 2 &&
  4151. num != 5 &&
  4152. num != 6
  4153. ) {
  4154. this.showDeleteConfirm(num, this.tijiaoOk)
  4155. } else {
  4156. this.tijiaoOk()
  4157. }
  4158. }}
  4159. style={{ marginLeft: '200px', marginTop: '10px' }}
  4160. htmlType="submit"
  4161. >
  4162. 保存
  4163. </Button>
  4164. <Button
  4165. className="cancel"
  4166. type="ghost"
  4167. onClick={this.visitCancel}
  4168. style={{ marginLeft: '50px', marginTop: '10px' }}
  4169. >
  4170. 取消
  4171. </Button>
  4172. </div>
  4173. </div>
  4174. </Spin>
  4175. </Form> : <div/>}
  4176. </TabPane>
  4177. <TabPane tab="外包/供应商信息" key="2">
  4178. {this.state.refundStatus != 0 && this.state.refundStatus != 1 ? (
  4179. <div style={{ marginTop: 10 }}>
  4180. <div className="clearfix">
  4181. <FormItem
  4182. className="half-item"
  4183. {...formItemLayout}
  4184. label={
  4185. <span>
  4186. <strong style={{ color: '#f00' }}>*</strong>
  4187. 类型
  4188. </span>
  4189. }
  4190. >
  4191. <Radio.Group
  4192. value={this.state.startType}
  4193. onChange={(e) => {
  4194. this.setState({ startType: e.target.value })
  4195. }}
  4196. >
  4197. <Radio value={0}>外包(不走总部)</Radio>
  4198. <Radio value={1}>供应商信息</Radio>
  4199. </Radio.Group>
  4200. </FormItem>
  4201. </div>
  4202. {/* 专利类型 */}
  4203. <div
  4204. className="clearfix"
  4205. style={{
  4206. display: this.state.projectType === 1 ? 'block' : 'none',
  4207. }}
  4208. >
  4209. <FormItem
  4210. className="half-item"
  4211. {...formItemLayout}
  4212. label={
  4213. <span>
  4214. <strong style={{ color: '#f00' }}>*</strong>
  4215. 专利类型
  4216. </span>
  4217. }
  4218. >
  4219. <Radio.Group
  4220. value={this.state.patentType}
  4221. onChange={(e) => {
  4222. let _this = this;
  4223. if(this.state.thirdInfoList.length >0){
  4224. confirm({
  4225. title: '确定要切换吗?',
  4226. content: '切换将删除所有第三信息和付款节点',
  4227. onOk() {
  4228. return new Promise((resolve, reject) => {
  4229. _this.setState({ patentType: e.target.value },()=>{
  4230. _this.projectTypeTabContent(_this.state.projectType);
  4231. })
  4232. _this.confirmDeletNew(-1,resolve,reject)
  4233. if(_this.state.payNodeList.length > 0){
  4234. _this.payNodeConfirmDeletNew(-1,resolve,reject);
  4235. }
  4236. }).catch(() => console.log('Oops errors!'));
  4237. },
  4238. onCancel() {},
  4239. });
  4240. }else{
  4241. this.setState({ patentType: e.target.value },()=>{
  4242. this.projectTypeTabContent(this.state.projectType);
  4243. })
  4244. }
  4245. }}
  4246. >
  4247. <Radio value={0}>专利申请/变更/转让</Radio>
  4248. <Radio value={1}>专利买卖</Radio>
  4249. </Radio.Group>
  4250. </FormItem>
  4251. </div>
  4252. <div
  4253. className="clearfix"
  4254. style={{
  4255. display: this.state.projectType === 1? 'block' : 'none',
  4256. }}
  4257. >
  4258. <FormItem
  4259. className="half-item"
  4260. {...formItemLayout}
  4261. label={
  4262. <span>
  4263. <strong style={{ color: '#f00' }}>*</strong>
  4264. 专利名称
  4265. </span>
  4266. }
  4267. >
  4268. <Radio.Group
  4269. value={this.state.patentNameType}
  4270. onChange={(e) => {
  4271. let _this = this;
  4272. if(this.state.thirdInfoList.length >0){
  4273. confirm({
  4274. title: '确定要切换吗?',
  4275. content: '切换将删除所有第三信息和付款节点',
  4276. onOk() {
  4277. return new Promise((resolve, reject) => {
  4278. _this.setState({ patentNameType: e.target.value },()=>{
  4279. _this.projectTypeTabContent(_this.state.projectType);
  4280. })
  4281. _this.confirmDeletNew(-1,resolve,reject)
  4282. if(_this.state.payNodeList.length > 0){
  4283. _this.payNodeConfirmDeletNew(-1,resolve,reject);
  4284. }
  4285. }).catch(() => console.log('Oops errors!'));
  4286. },
  4287. onCancel() {},
  4288. });
  4289. }else{
  4290. this.setState({ patentNameType: e.target.value },()=>{
  4291. this.projectTypeTabContent(this.state.projectType);
  4292. })
  4293. }
  4294. }}
  4295. >
  4296. <Radio value={0}>实用新型专利</Radio>
  4297. <Radio value={1}>发明专利</Radio>
  4298. <Radio value={2}>外观专利</Radio>
  4299. {/*<Radio value={3}>*/}
  4300. {/* 其他*/}
  4301. {/* <Input*/}
  4302. {/* disabled={this.state.patentNameType !== 3}*/}
  4303. {/* value={this.state.patentName}*/}
  4304. {/* style={{ marginLeft: '15px' }}*/}
  4305. {/* onChange={(e) => {*/}
  4306. {/* this.setState({*/}
  4307. {/* patentName: e.target.value,*/}
  4308. {/* })*/}
  4309. {/* }}*/}
  4310. {/* placeholder="请填写专利名称"*/}
  4311. {/* />*/}
  4312. {/*</Radio>*/}
  4313. </Radio.Group>
  4314. </FormItem>
  4315. </div>
  4316. {/* 第三方信息专利 */}
  4317. <div
  4318. style={{
  4319. // display: this.state.type == 1 ? "block" : "none",
  4320. display: this.state.type == 1 ? 'block' : 'block',
  4321. }}
  4322. >
  4323. <span
  4324. style={{
  4325. marginLeft: '50px',
  4326. fontSize: '18px',
  4327. }}
  4328. >
  4329. 第三方信息
  4330. </span>
  4331. <span
  4332. style={{
  4333. display: 'inline-block',
  4334. marginLeft: 10,
  4335. color: 'red',
  4336. }}
  4337. >
  4338. 金额总计(万元): {this.state.allTotalAmount}
  4339. </span>
  4340. <Button
  4341. type="primary"
  4342. onClick={(e) => {
  4343. if(this.state.projectType === 1 && this.state.patentType === -1){
  4344. message.info('请先选择专利类型');
  4345. }else if(this.state.projectType === 1 && this.state.patentNameType === -1){
  4346. message.info('请先选择专利名称');
  4347. }
  4348. else{
  4349. this.addThirdList()
  4350. }
  4351. }}
  4352. style={{
  4353. float: 'right',
  4354. marginRight: '50px',
  4355. marginBottom: '15px',
  4356. }}
  4357. >
  4358. +新增供应商名称
  4359. </Button>
  4360. </div>
  4361. <div
  4362. className="clearfix"
  4363. style={{
  4364. // display: this.state.type == 1 ? "block" : "none",
  4365. display: this.state.type == 1 ? 'block' : 'block',
  4366. }}
  4367. >
  4368. <Spin spinning={this.state.loading}>
  4369. <Form layout="horizontal">
  4370. <Table
  4371. pagination={false}
  4372. columns={this.state.ContactsListsNew}
  4373. dataSource={this.state.thirdInfoList}
  4374. onRowClick={this.tableRowClickOne}
  4375. scroll={{ x: 'max-content', y: 0 }}
  4376. bordered
  4377. size="small"
  4378. />
  4379. <Col
  4380. span={24}
  4381. offset={9}
  4382. style={{ marginTop: '15px' }}
  4383. />
  4384. </Form>
  4385. </Spin>
  4386. </div>
  4387. {/*如果是软著类或者专利类的专利申请,隐藏付款节点*/}
  4388. <div
  4389. style={{
  4390. display: (this.state.projectType === 1 && this.state.patentType === 0) || this.state.projectType === 2? 'none' : 'block', //0正常 1专利 2软著 3审计
  4391. }}
  4392. >
  4393. <span
  4394. style={{
  4395. marginLeft: '50px',
  4396. fontSize: '18px',
  4397. }}
  4398. >
  4399. 付款节点
  4400. </span>
  4401. <span
  4402. style={{
  4403. display: 'inline-block',
  4404. marginLeft: 10,
  4405. color: 'red',
  4406. }}
  4407. ></span>
  4408. <Button
  4409. type="primary"
  4410. onClick={(e) => {
  4411. this.addPayNode()
  4412. }}
  4413. style={{
  4414. float: 'right',
  4415. marginRight: '50px',
  4416. marginBottom: '15px',
  4417. }}
  4418. >
  4419. +新增付款节点
  4420. </Button>
  4421. </div>
  4422. {/*如果是软著类或者专利类的专利申请,隐藏付款节点*/}
  4423. <div
  4424. className="clearfix"
  4425. style={{
  4426. display: (this.state.projectType === 1 && this.state.patentType === 0) || this.state.projectType === 2? 'none' : 'block', //0正常 1专利 2软著 3审计
  4427. }}
  4428. >
  4429. <Spin spinning={this.state.loading}>
  4430. <Form layout="horizontal">
  4431. <Table
  4432. pagination={false}
  4433. columns={this.state.PayNodeTableColunms}
  4434. dataSource={this.state.payNodeList}
  4435. onRowClick={this.payNodeTableRowClickOne}
  4436. scroll={{ x: 'max-content', y: 0 }}
  4437. bordered
  4438. size="small"
  4439. />
  4440. <Col
  4441. span={24}
  4442. offset={9}
  4443. style={{ marginTop: '15px' }}
  4444. />
  4445. </Form>
  4446. </Spin>
  4447. </div>
  4448. <div className="clearfix">
  4449. <FormItem
  4450. className="half-item"
  4451. {...formItemLayout}
  4452. label={
  4453. <span>
  4454. <strong style={{ color: '#f00' }}>*</strong>备注
  4455. </span>
  4456. }
  4457. >
  4458. <TextArea
  4459. rows={4}
  4460. value={this.state.outsourceRemarks}
  4461. onChange={(e) => {
  4462. this.setState({
  4463. outsourceRemarks: e.target.value,
  4464. })
  4465. }}
  4466. placeholder="请输入备注"
  4467. />
  4468. </FormItem>
  4469. </div>
  4470. {/*<div className="clearfix">
  4471. <FormItem className="half-item"
  4472. {...formItemLayout}
  4473. label="上传协议文件" style={{height:"auto"}}>
  4474. <Upload header={{authorization: 'authorization-text'}} action={globalConfig.context + "/api/admin/outsourceOrg/uploadOutsourceFile"}
  4475. data={(e)=>{
  4476. return {
  4477. 'sign': e.name.substring(0,e.name.lastIndexOf("."))
  4478. }
  4479. }}
  4480. fileList={this.state.fileUrl}
  4481. onChange={(e)=>{
  4482. this.setState({
  4483. attachmentUrl:e.fileList,
  4484. fileUrl:e.fileList
  4485. })
  4486. }}>
  4487. {fileUrl.length>1?null:<Button>
  4488. <Icon type="upload" /> 点击上传
  4489. </Button>}
  4490. </Upload>
  4491. <span className="tip" style={{display:"inline-block"}}>支持文件格式: doc,excel,ppt</span>
  4492. </FormItem>
  4493. </div>*/}
  4494. <p
  4495. className="tip"
  4496. style={{
  4497. paddingBottom: '12px',
  4498. width: '240px',
  4499. marginLeft: '145px',
  4500. color: 'red',
  4501. }}
  4502. >
  4503. 首次派单项目,需上传协议,第2次起,同项目,只需写外包公司
  4504. </p>
  4505. <div className="clearfix">
  4506. <FormItem
  4507. labelCol={{ span: 4 }}
  4508. wrapperCol={{ span: 18 }}
  4509. label={
  4510. <span>
  4511. 合同/协议扫描件
  4512. </span>
  4513. }
  4514. >
  4515. <PicturesWall
  4516. domId={'myTask3'}
  4517. fileList={this.getOrgCodeUrlWai}
  4518. pictureUrl={this.state.pictureUrl}
  4519. />
  4520. <p style={{ color: 'red' }}>图片建议:要清晰。</p>
  4521. </FormItem>
  4522. </div>
  4523. {/*只有审核拒绝和第一次发起外包的时候才要填写发起原因*/}
  4524. {typeof this.state.refundStatus === 'undefined' || this.state.refundStatus === 2 ? <div className="clearfix">
  4525. <FormItem
  4526. className="half-item"
  4527. {...formItemLayout}
  4528. label={
  4529. <span>
  4530. <strong style={{ color: '#f00' }}>*</strong>发起原因
  4531. </span>
  4532. }
  4533. >
  4534. <TextArea
  4535. rows={4}
  4536. value={this.state.reason}
  4537. onChange={(e) => {
  4538. this.setState({
  4539. reason: e.target.value,
  4540. })
  4541. }}
  4542. placeholder="请输入发起原因"
  4543. />
  4544. </FormItem>
  4545. </div> : <div/>}
  4546. <div className="clearfix">
  4547. <div
  4548. style={{
  4549. display: 'inline-black',
  4550. textAlign: 'center',
  4551. }}
  4552. >
  4553. <Button
  4554. type="primary"
  4555. loading={this.state.loading}
  4556. onClick={()=>{
  4557. this.sureOut(this.state.startType);
  4558. }}
  4559. >
  4560. {
  4561. this.state.startType === 0 ? "确认发起外包,不通过总部" : "提交供应商信息"
  4562. }
  4563. </Button>
  4564. <p className="tip" style={{ color: 'red' }}>
  4565. {
  4566. this.state.startType === 0 ? "提示:高于总部价格,费用个人承担" : "确定提交供应商信息,提交后,不可修改"
  4567. }
  4568. </p>
  4569. </div>
  4570. </div>
  4571. </div>
  4572. ) : (
  4573. <div>
  4574. {
  4575. this.state.visible && this.state.activeKey === '2' ?
  4576. <CheckProject
  4577. {...this.props}
  4578. tid={this.state.tid}
  4579. oldInfor={this.state.oldInfor}
  4580. projectType={this.state.projectType} //0正常 1专利 2软著 3审计
  4581. patentNameType={this.state.patentNameType}
  4582. patentName={this.state.patentName}
  4583. patentType={this.state.patentType}
  4584. status={this.state.refundStatus}
  4585. isPreviewPay={true}
  4586. thirdInfoList={this.state.thirdInfoList}
  4587. dataSource={this.state.payNodeList}
  4588. outsourceRemarks={this.state.outsourceRemarks}
  4589. fileList={this.state.pictureUrl}
  4590. startType={this.state.startType}
  4591. projectStatus={this.state.projectStatus}
  4592. onRefresh={()=>{
  4593. this.waiDetail();
  4594. this.thirdTable(this.state.tid);
  4595. this.getSelectOutsourceLog(this.state.tid);
  4596. this.payNodeTable(this.state.tid)
  4597. this.loadData(this.state.page)
  4598. }}
  4599. /> : <div/>
  4600. }
  4601. </div>
  4602. )}
  4603. {(this.state.refundStatus == 1 ||
  4604. this.state.refundStatus == 0 ||
  4605. this.state.refundStatus == 2) &&
  4606. this.state.startType !== 1
  4607. ? (
  4608. <div className="clearfix"
  4609. style={{
  4610. display: this.state.refundStatus == 0 ? 'none' : 'block',
  4611. }}
  4612. >
  4613. <hr className="division" />
  4614. {parseInt(this.state.startType) !== 1 ? <div style={{
  4615. color:'#F00',
  4616. fontWeight: 'bolder',
  4617. paddingBottom: '20px',
  4618. }}>
  4619. 审核结果: <span style={{paddingLeft:'20px'}}>{getRefundStatus(this.state.refundStatus)}</span>
  4620. </div> : <div/>}
  4621. <div className="outsourceLogList">
  4622. {
  4623. this.state.outsourceLogs && this.state.outsourceLogs.map((value,index)=>(
  4624. <div key={index} className="outsourceLogItem outsource">
  4625. <div style={{
  4626. display:'flex',
  4627. flexFlow:'row nowrap',
  4628. paddingBottom: '3px',
  4629. paddingTop: '3px',
  4630. }}>
  4631. <div>
  4632. {value.aname}
  4633. </div>
  4634. <div style={{paddingLeft:'5px'}}>
  4635. {
  4636. value.status === 0 ?
  4637. <Tag color="#2db7f5">发起外包审核</Tag> :
  4638. value.status === 1 ? <Tag color="#87d068">通过</Tag> :
  4639. <Tag color="#f50">驳回</Tag>
  4640. }
  4641. </div>
  4642. <div style={{
  4643. wordBreak: 'break-all',
  4644. maxWidth:'67%',
  4645. }}>
  4646. {value.remarks}
  4647. </div>
  4648. <div style={{paddingLeft: '10px'}}>
  4649. {value.createTimes}
  4650. </div>
  4651. </div>
  4652. </div>
  4653. ))
  4654. }
  4655. </div>
  4656. {/* <div*/}
  4657. {/* className="clearfix"*/}
  4658. {/* style={{*/}
  4659. {/* display: this.state.refundStatus == 0 ? 'none' : 'block',*/}
  4660. {/* }}*/}
  4661. {/* >*/}
  4662. {/* <FormItem*/}
  4663. {/* className="half-item"*/}
  4664. {/* {...formItemLayout}*/}
  4665. {/* label="审核意见"*/}
  4666. {/* >*/}
  4667. {/* <span>{this.state.remarks}</span>*/}
  4668. {/* </FormItem>*/}
  4669. {/* </div>*/}
  4670. {/* {parseInt(this.state.startType) !== 1 ?<div className="clearfix">*/}
  4671. {/* <FormItem*/}
  4672. {/* className="half-item"*/}
  4673. {/* {...formItemLayout}*/}
  4674. {/* label="审核结果"*/}
  4675. {/* >*/}
  4676. {/* <span>{getRefundStatus(this.state.refundStatus)}</span>*/}
  4677. {/* </FormItem>*/}
  4678. {/* </div> : <div/>}*/}
  4679. {/* <div*/}
  4680. {/* className="clearfix"*/}
  4681. {/* style={{*/}
  4682. {/* display: this.state.refundStatus == 0 ? 'none' : 'block',*/}
  4683. {/* }}*/}
  4684. {/* >*/}
  4685. {/* <FormItem*/}
  4686. {/* className="half-item"*/}
  4687. {/* {...formItemLayout}*/}
  4688. {/* label="审核时间"*/}
  4689. {/* >*/}
  4690. {/* <span>{this.state.auditTimes}</span>*/}
  4691. {/* </FormItem>*/}
  4692. {/* </div>*/}
  4693. </div>
  4694. ) : (
  4695. ''
  4696. )}
  4697. </TabPane>
  4698. {!this.props.isZxs || (this.state.isHuiyuan && this.props.isZxs) ? (
  4699. <TabPane tab="订单详情" key="3">
  4700. <Spin spinning={this.state.loading}>
  4701. {this.state.activeKey === "3" ? <OrderDetail
  4702. orderData={this.state.orderData}
  4703. getOrderLog={this.getOrderLog}
  4704. dataSourceX={this.state.dataSourceX}
  4705. contactList={this.state.jiedian}
  4706. orderNo={this.state.orderNo}
  4707. totalCui={this.state.totalCui}
  4708. contactListNew={this.state.jiedianNew}
  4709. pictureUrl={this.state.contractPictureUrl}
  4710. /> : <div/>}
  4711. </Spin>
  4712. </TabPane>
  4713. ) : (
  4714. ''
  4715. )}
  4716. </Tabs>
  4717. </Modal> : <div/>}
  4718. <Modal
  4719. maskClosable={false}
  4720. visible={this.state.lookVisible}
  4721. onOk={this.noCancel}
  4722. onCancel={this.noCancel}
  4723. width="500px"
  4724. title={'添加工时'}
  4725. footer=""
  4726. className="admin-desc-content"
  4727. >
  4728. <Form layout="horizontal" id="demand-form">
  4729. <Spin spinning={this.state.loading}>
  4730. <div className="clearfix">
  4731. <FormItem {...formItemLayout} label="工作日期">
  4732. <DatePicker
  4733. style={{ marginTop: '2px', width: '200px', height: '32px' }}
  4734. showTime
  4735. format="YYYY-MM-DD"
  4736. onOk={() => {}}
  4737. value={
  4738. this.state.taskDate ? moment(this.state.taskDate) : null
  4739. }
  4740. onChange={(data, dataString) => {
  4741. this.setState({ taskDate: dataString })
  4742. }}
  4743. />
  4744. </FormItem>
  4745. </div>
  4746. <div className="clearfix">
  4747. <FormItem {...formItemLayout} label="工作时长">
  4748. <Input
  4749. placeholder="请输入工作时长"
  4750. value={this.state.hours}
  4751. style={{ width: '200px' }}
  4752. onChange={(e) => {
  4753. this.setState({ hours: e.target.value })
  4754. }}
  4755. ref="commodityQuantity"
  4756. />
  4757. </FormItem>
  4758. </div>
  4759. <div className="clearfix">
  4760. <FormItem {...formItemLayout} label="工作内容">
  4761. <Input
  4762. type="textarea"
  4763. placeholder="请输入备注"
  4764. rows={4}
  4765. value={this.state.remarks}
  4766. onChange={(e) => {
  4767. this.setState({ remarks: e.target.value })
  4768. }}
  4769. />
  4770. </FormItem>
  4771. </div>
  4772. <div className="clearfix">
  4773. <Button
  4774. className="cancel"
  4775. type="primary"
  4776. onClick={this.tianjiaOk}
  4777. style={{ marginLeft: '100px' }}
  4778. htmlType="submit"
  4779. >
  4780. 确定
  4781. </Button>
  4782. <Button
  4783. className="cancel"
  4784. type="ghost"
  4785. onClick={this.noCancel}
  4786. style={{ marginLeft: '50px' }}
  4787. >
  4788. 取消
  4789. </Button>
  4790. </div>
  4791. </Spin>
  4792. </Form>
  4793. </Modal>
  4794. {this.state.addnextVisible ? <Modal
  4795. maskClosable={false}
  4796. visible={this.state.addnextVisible}
  4797. onOk={this.nextCancel}
  4798. onCancel={this.nextCancel}
  4799. width="800px"
  4800. title="项目详情"
  4801. footer=""
  4802. className="admin-desc-content"
  4803. >
  4804. <Form layout="horizontal" onSubmit={this.nextSubmit} id="demand-form">
  4805. <Spin spinning={this.state.loading}>
  4806. <div className="clearfix">
  4807. <FormItem
  4808. className="half-item"
  4809. {...formItemLayout}
  4810. label="项目名称"
  4811. >
  4812. <span>{this.state.commodityName}</span>
  4813. </FormItem>
  4814. <FormItem
  4815. className="half-item"
  4816. {...formItemLayout}
  4817. label="项目数量"
  4818. >
  4819. <span>{this.state.commodityQuantity}</span>
  4820. </FormItem>
  4821. <FormItem
  4822. className="half-item"
  4823. {...formItemLayout}
  4824. label="官费"
  4825. style={{ display: this.state.displayFees }}
  4826. >
  4827. <span>
  4828. {this.state.officialCost == 0 ? '无官费' : '有官费'}
  4829. </span>
  4830. </FormItem>
  4831. <FormItem
  4832. className="half-item"
  4833. {...formItemLayout}
  4834. label="费减"
  4835. style={{ display: this.state.displayFees }}
  4836. >
  4837. <span>
  4838. {this.state.costReduction == 0 ? '无费减' : '有费减'}
  4839. </span>
  4840. </FormItem>
  4841. <FormItem
  4842. className="half-item"
  4843. {...formItemLayout}
  4844. label="金额(万元)"
  4845. >
  4846. <span>{this.state.commodityPrice ? '***' : 0}</span>
  4847. </FormItem>
  4848. <FormItem
  4849. className="half-item"
  4850. {...formItemLayout}
  4851. label="主要项目"
  4852. >
  4853. <span>{getboutique(this.state.main)}</span>
  4854. </FormItem>
  4855. <div className="clearfix">
  4856. <FormItem
  4857. labelCol={{ span: 3 }}
  4858. wrapperCol={{ span: 18 }}
  4859. label="服务说明"
  4860. >
  4861. <span>{this.state.taskComment}</span>
  4862. </FormItem>
  4863. </div>
  4864. </div>
  4865. </Spin>
  4866. </Form>
  4867. </Modal> : <div/>}
  4868. <Modal
  4869. maskClosable={false}
  4870. visible={this.state.speVisible}
  4871. onOk={this.visitOk}
  4872. onCancel={this.visitCancel}
  4873. width="900px"
  4874. title=""
  4875. footer=""
  4876. className="admin-desc-content"
  4877. >
  4878. <Tabs
  4879. tabBarExtraContent={
  4880. <div style={{fontWeight:'bold',paddingRight:'15px'}}>
  4881. <span>
  4882. 项目名称:
  4883. <span style={{color:'#F00',paddingRight:'5px'}}>{this.state.taskName}</span>
  4884. </span>
  4885. <span style={{marginLeft:'15px'}}>
  4886. 项目编号:
  4887. <span style={{color:'#F00',paddingRight:'5px'}}>
  4888. {this.state.id}
  4889. {
  4890. this.state.splitStatus === 2 ? '('+this.state.splitSuper+'-'+this.state.splitId+')' : ''
  4891. }
  4892. </span>
  4893. </span>
  4894. </div>
  4895. }
  4896. activeKey={this.state.activeKey}
  4897. onChange={this.orderChange}
  4898. >
  4899. <TabPane tab="项目概况" key="1">
  4900. <div className="clearfix">
  4901. <FormItem
  4902. className="half-item"
  4903. {...formItemLayout}
  4904. label="当前项目情况"
  4905. >
  4906. <Radio.Group
  4907. value={this.state.status}
  4908. onChange={(e) => {
  4909. this.setState({ status: e.target.value })
  4910. }}
  4911. >
  4912. <Radio value={0}>开启</Radio>
  4913. <Radio value={1}>暂停</Radio>
  4914. </Radio.Group>
  4915. <Button
  4916. type="primary"
  4917. size="small"
  4918. style={{ marginTop: '5px', position: 'absolute' }}
  4919. onClick={this.caozuorizhi}
  4920. >
  4921. 操作日志
  4922. </Button>
  4923. </FormItem>
  4924. <FormItem
  4925. className="half-item"
  4926. {...formItemLayout}
  4927. label="合同编号"
  4928. >
  4929. <span>{this.state.contractNo}</span>
  4930. </FormItem>
  4931. </div>
  4932. <div className="clearfix">
  4933. <FormItem
  4934. className="half-item"
  4935. {...formItemLayout}
  4936. label="项目状态"
  4937. >
  4938. <Select
  4939. placeholder="选择项目状态"
  4940. style={{ width: '200px' }}
  4941. value={this.state.projectStatus}
  4942. onChange={(e) => {
  4943. this.setState({ projectStatus: e })
  4944. }}
  4945. >
  4946. {projectStatus.map(function (item) {
  4947. return (
  4948. <Select.Option key={item.value}>
  4949. {item.key}
  4950. </Select.Option>
  4951. )
  4952. })}
  4953. </Select>
  4954. </FormItem>
  4955. <FormItem
  4956. className="half-item"
  4957. {...formItemLayout}
  4958. label="是否特批"
  4959. >
  4960. <span>{getApproval(this.state.approval)}</span>
  4961. </FormItem>
  4962. <FormItem
  4963. className="half-item"
  4964. {...formItemLayout}
  4965. label="结算状态"
  4966. >
  4967. <span>
  4968. {getLiquidationStatus(this.state.liquidationStatus)}
  4969. </span>
  4970. </FormItem>
  4971. <FormItem
  4972. className="half-item"
  4973. {...formItemLayout}
  4974. label="流程状态"
  4975. >
  4976. <span>{getProcessStatus(this.state.processStatus)}</span>
  4977. </FormItem>
  4978. <FormItem
  4979. className="half-item"
  4980. {...formItemLayout}
  4981. label="订单编号"
  4982. >
  4983. <span>{this.state.orderNo}</span>
  4984. </FormItem>
  4985. </div>
  4986. <div className="clearfix">
  4987. <FormItem
  4988. className="half-item"
  4989. {...formItemLayout}
  4990. label="满意度表格"
  4991. >
  4992. <Radio.Group
  4993. value={this.state.formRetrieve}
  4994. onChange={(e) => {
  4995. this.setState({ formRetrieve: e.target.value })
  4996. }}
  4997. >
  4998. <Radio value={0}>未收回</Radio>
  4999. <Radio value={1}>已收回</Radio>
  5000. <Radio value={2}>其他</Radio>
  5001. </Radio.Group>
  5002. </FormItem>
  5003. <FormItem
  5004. className="half-item"
  5005. {...formItemLayout}
  5006. label="退单"
  5007. >
  5008. <Radio.Group
  5009. value={this.state.taskRefund}
  5010. onChange={(e) => {
  5011. this.setState({ taskRefund: e.target.value })
  5012. }}
  5013. >
  5014. <Radio value={0}>已完成</Radio>
  5015. <Radio value={1}>未完成</Radio>
  5016. <Radio value={2}>其他</Radio>
  5017. </Radio.Group>
  5018. </FormItem>
  5019. </div>
  5020. <div className="clearfix">
  5021. {
  5022. <FormItem
  5023. className="half-item"
  5024. {...formItemLayout}
  5025. label="(满意度)备注"
  5026. >
  5027. <Input
  5028. type="textarea"
  5029. placeholder="请输入备注"
  5030. rows={2}
  5031. value={this.state.retrieveContent}
  5032. onChange={(e) => {
  5033. this.setState({ retrieveContent: e.target.value })
  5034. }}
  5035. />
  5036. </FormItem>
  5037. }
  5038. {
  5039. <FormItem
  5040. className="half-item"
  5041. {...formItemLayout}
  5042. label="(退单)备注"
  5043. >
  5044. <Input
  5045. type="textarea"
  5046. placeholder="请输入备注"
  5047. rows={2}
  5048. value={this.state.refundContent}
  5049. onChange={(e) => {
  5050. this.setState({ refundContent: e.target.value })
  5051. }}
  5052. />
  5053. </FormItem>
  5054. }
  5055. </div>
  5056. <div className="clearfix">
  5057. <h3 className="sub-title">订单负责人信息</h3>
  5058. <FormItem
  5059. className="half-item"
  5060. {...formItemLayout}
  5061. label="负责人"
  5062. >
  5063. <span>
  5064. {this.state.salesmanName + '(' + this.state.depName + ')'}
  5065. </span>
  5066. </FormItem>
  5067. <FormItem
  5068. className="half-item"
  5069. {...formItemLayout}
  5070. label="负责人电话"
  5071. >
  5072. <span>{this.state.salesmanMobile}</span>
  5073. </FormItem>
  5074. <FormItem
  5075. className="half-item"
  5076. {...formItemLayout}
  5077. label="当前财务负责人"
  5078. >
  5079. <span>{this.state.nowFinance}</span>
  5080. </FormItem>
  5081. <FormItem
  5082. className="half-item"
  5083. {...formItemLayout}
  5084. label="当前财务负责人电话"
  5085. >
  5086. <span>{this.state.nowFinanceMobile}</span>
  5087. </FormItem>
  5088. <FormItem
  5089. className="half-item"
  5090. {...formItemLayout}
  5091. style={{ opacity: '.5' }}
  5092. label="原负责人"
  5093. >
  5094. <span>{this.state.oldSalesmanName}</span>
  5095. </FormItem>
  5096. <FormItem
  5097. className="half-item"
  5098. {...formItemLayout}
  5099. style={{ opacity: '.5' }}
  5100. label="原负责人电话"
  5101. >
  5102. <span>{this.state.oldSalesmanMobile}</span>
  5103. </FormItem>
  5104. <FormItem
  5105. className="half-item"
  5106. {...formItemLayout}
  5107. style={{ opacity: '.5' }}
  5108. label="实际财务操作人"
  5109. >
  5110. <span>{this.state.financeName}</span>
  5111. </FormItem>
  5112. <FormItem
  5113. className="half-item"
  5114. {...formItemLayout}
  5115. style={{ opacity: '.5' }}
  5116. label="实际财务操作人电话"
  5117. >
  5118. <span>{this.state.financeMobile}</span>
  5119. </FormItem>
  5120. <FormItem
  5121. className="half-item"
  5122. {...formItemLayout}
  5123. label="订单留言"
  5124. >
  5125. <span>{this.state.orderRemarks}</span>
  5126. </FormItem>
  5127. <FormItem className="half-item" {...formItemLayout} label="">
  5128. <Button onClick={this.getOrderLog}>查看订单日志</Button>
  5129. </FormItem>
  5130. <OrderRiZi
  5131. dataSourcerizhi={this.state.dataSourceY}
  5132. closeOrderLog={this.closeOrderLog}
  5133. visible={this.state.avisible}
  5134. loading={this.state.loading}
  5135. />
  5136. </div>
  5137. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  5138. <div className="clearfix">
  5139. <h3 className="sub-title">联系信息</h3>
  5140. <FormItem
  5141. className="half-item"
  5142. {...formItemLayout}
  5143. label="客户名称"
  5144. >
  5145. <span>{this.state.userName}</span>
  5146. </FormItem>
  5147. <FormItem
  5148. className="half-item"
  5149. {...formItemLayout}
  5150. label="企业法人"
  5151. >
  5152. <Input
  5153. placeholder="请输入法人名称"
  5154. value={this.state.legalPerson}
  5155. style={{ width: '200px' }}
  5156. onChange={(e) => {
  5157. this.setState({ legalPerson: e.target.value })
  5158. }}
  5159. ref="commodityQuantity"
  5160. />
  5161. </FormItem>
  5162. <FormItem
  5163. className="half-item"
  5164. {...formItemLayout}
  5165. label="法人电话"
  5166. >
  5167. <Input
  5168. placeholder="请输入法人电话"
  5169. value={this.state.legalPersonTel}
  5170. style={{ width: '200px' }}
  5171. onChange={(e) => {
  5172. this.setState({ legalPersonTel: e.target.value })
  5173. }}
  5174. ref="commodityQuantity"
  5175. />
  5176. </FormItem>
  5177. <FormItem
  5178. className="half-item"
  5179. {...formItemLayout}
  5180. label="客户联系人"
  5181. >
  5182. <Input
  5183. placeholder="请输入联系人名称"
  5184. value={this.state.contacts}
  5185. style={{ width: '200px' }}
  5186. onChange={(e) => {
  5187. this.setState({ contacts: e.target.value })
  5188. }}
  5189. ref="commodityQuantity"
  5190. />
  5191. </FormItem>
  5192. <FormItem
  5193. className="half-item"
  5194. {...formItemLayout}
  5195. label="联系人电话"
  5196. >
  5197. <Input
  5198. placeholder="请输入联系人电话"
  5199. value={this.state.contactMobile}
  5200. style={{ width: '200px' }}
  5201. onChange={(e) => {
  5202. this.setState({ contactMobile: e.target.value })
  5203. }}
  5204. ref="commodityQuantity"
  5205. />
  5206. </FormItem>
  5207. <FormItem
  5208. className="half-item"
  5209. {...formItemLayout}
  5210. label="企业地址"
  5211. >
  5212. <Cascader
  5213. options={areaSelect()}
  5214. value={this.state.ProvinceCity}
  5215. placeholder="选择城市"
  5216. style={{ width: '200px' }}
  5217. onChange={(e) => {
  5218. this.setState({ ProvinceCity: e })
  5219. }}
  5220. />
  5221. </FormItem>
  5222. <FormItem
  5223. className="half-item"
  5224. {...formItemLayout}
  5225. label=""
  5226. ></FormItem>
  5227. <FormItem className="half-item" {...formItemLayout} label="">
  5228. <Input
  5229. placeholder="请输入详细地址"
  5230. value={this.state.postalAddress}
  5231. style={{ width: '200px', marginLeft: '12em' }}
  5232. onChange={(e) => {
  5233. this.setState({ postalAddress: e.target.value })
  5234. }}
  5235. ref="commodityQuantity"
  5236. />
  5237. </FormItem>
  5238. </div>
  5239. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  5240. <div className="clearfix">
  5241. <h3 className="sub-title">项目信息</h3>
  5242. <FormItem
  5243. className="half-item"
  5244. {...formItemLayout}
  5245. label="项目编号"
  5246. >
  5247. <span>
  5248. {this.state.splitStatus == 2
  5249. ? this.state.splitSuper + '-' + this.state.splitId
  5250. : this.state.id}
  5251. </span>
  5252. </FormItem>
  5253. <FormItem
  5254. className="half-item"
  5255. {...formItemLayout}
  5256. label="项目名称"
  5257. >
  5258. <span>{this.state.taskName}</span>
  5259. </FormItem>
  5260. <FormItem
  5261. className="half-item"
  5262. {...formItemLayout}
  5263. label="项目状态"
  5264. >
  5265. <Select
  5266. placeholder="选择项目状态"
  5267. style={{ width: '200px' }}
  5268. value={this.state.taskStatus}
  5269. onChange={(e) => {
  5270. this.setState({ taskStatus: e })
  5271. }}
  5272. >
  5273. {taskStatus.map(function (item) {
  5274. return (
  5275. <Select.Option key={item.value}>
  5276. {item.key}
  5277. </Select.Option>
  5278. )
  5279. })}
  5280. </Select>
  5281. </FormItem>
  5282. <FormItem
  5283. className="half-item"
  5284. {...formItemLayout}
  5285. label="项目类别"
  5286. >
  5287. <span>{this.state.cname}</span>
  5288. </FormItem>
  5289. <FormItem
  5290. className="half-item"
  5291. {...formItemLayout}
  5292. label="证书编号"
  5293. >
  5294. <Input
  5295. placeholder="请输入证书编号"
  5296. value={this.state.certificateNumber}
  5297. style={{ width: '200px' }}
  5298. onChange={(e) => {
  5299. this.setState({ certificateNumber: e.target.value })
  5300. }}
  5301. ref="commodityQuantity"
  5302. />
  5303. </FormItem>
  5304. </div>
  5305. <div className="clearfix" style={{ marginTop: '10px' }}>
  5306. <FormItem
  5307. labelCol={{ span: 3 }}
  5308. wrapperCol={{ span: 14 }}
  5309. label="附件"
  5310. >
  5311. <Picture
  5312. domId={'myTask2'}
  5313. fileList={(e) => {
  5314. this.setState({ attachmentUrl: e })
  5315. }}
  5316. pictureUrl={this.state.attachmentUrl}
  5317. visible={this.props.visible}
  5318. data={{
  5319. sign: 'order_task_file',
  5320. url: '/api/admin/orderProject/uploadOrderTaskFile',
  5321. }}
  5322. />
  5323. </FormItem>
  5324. </div>
  5325. <div className="clearfix">
  5326. <FormItem
  5327. labelCol={{ span: 3 }}
  5328. wrapperCol={{ span: 16 }}
  5329. label="备注"
  5330. >
  5331. <Input
  5332. type="textarea"
  5333. placeholder="请输入备注"
  5334. rows={4}
  5335. value={this.state.taskComment}
  5336. onChange={(e) => {
  5337. this.setState({ taskComment: e.target.value })
  5338. }}
  5339. />
  5340. </FormItem>
  5341. </div>
  5342. <div className="clearfix">
  5343. <h3 className="sub-title">项目申报进度</h3>
  5344. <FormItem
  5345. className="half-item"
  5346. {...formItemLayout}
  5347. label="申报批次"
  5348. >
  5349. <Select
  5350. value={
  5351. this.state.declarationBatch
  5352. ? this.state.declarationBatch
  5353. : undefined
  5354. }
  5355. placeholder="请选择批次"
  5356. style={{ width: 200 }}
  5357. onChange={(e) => {
  5358. this.setState({
  5359. declarationBatch: e,
  5360. })
  5361. }}
  5362. >
  5363. <Option value={1}>第一批</Option>
  5364. <Option value={2}>第二批</Option>
  5365. <Option value={3}>第三批</Option>
  5366. <Option value={4}>第四批</Option>
  5367. </Select>
  5368. </FormItem>
  5369. <FormItem
  5370. className="half-item"
  5371. {...formItemLayout}
  5372. label="软著派单数量"
  5373. >
  5374. <span>{this.state.commodityQuantity}</span>
  5375. <Button
  5376. type="primary"
  5377. size="small"
  5378. style={{ marginLeft: '45px' }}
  5379. onClick={this.addcontact}
  5380. >
  5381. +增加下证信息
  5382. </Button>
  5383. </FormItem>
  5384. <div className="patent-table">
  5385. <Spin spinning={this.state.loading}>
  5386. <Table
  5387. columns={this.state.ContactsLists}
  5388. dataSource={this.state.contactList}
  5389. pagination={false}
  5390. bordered
  5391. size="small"
  5392. />
  5393. </Spin>
  5394. </div>
  5395. </div>
  5396. <div className="clearfix">
  5397. <h3 className="sub-title">项目业务</h3>
  5398. <div className="patent-table">
  5399. <Spin spinning={this.state.loading}>
  5400. <Table
  5401. columns={this.state.columnsX}
  5402. dataSource={this.state.dataSourceX}
  5403. pagination={this.state.paginations}
  5404. onRowClick={this.tableRowClickX}
  5405. bordered
  5406. size="small"
  5407. />
  5408. </Spin>
  5409. </div>
  5410. </div>
  5411. <div className="clearfix">
  5412. <Button
  5413. className="cancel"
  5414. type="primary"
  5415. onClick={this.tijiaoOk}
  5416. style={{ marginLeft: '200px', marginTop: '10px' }}
  5417. htmlType="submit"
  5418. >
  5419. 保存
  5420. </Button>
  5421. <Button
  5422. className="cancel"
  5423. type="ghost"
  5424. onClick={this.visitCancel}
  5425. style={{ marginLeft: '50px', marginTop: '10px' }}
  5426. >
  5427. 取消
  5428. </Button>
  5429. </div>
  5430. </TabPane>
  5431. <TabPane tab="外包/供应商信息" key="2">
  5432. {this.state.refundStatus != 0 && this.state.refundStatus != 1 ? (
  5433. <div style={{ marginTop: 10 }}>
  5434. <div className="clearfix">
  5435. <FormItem
  5436. className="half-item"
  5437. {...formItemLayout}
  5438. label={
  5439. <span>
  5440. <strong style={{ color: '#f00' }}>*</strong>
  5441. 类型
  5442. </span>
  5443. }
  5444. >
  5445. <Radio.Group
  5446. value={this.state.startType}
  5447. onChange={(e) => {
  5448. this.setState({ startType: e.target.value })
  5449. }}
  5450. >
  5451. <Radio value={0}>外包(不走总部)</Radio>
  5452. <Radio value={1}>供应商信息</Radio>
  5453. </Radio.Group>
  5454. </FormItem>
  5455. </div>
  5456. {/* 专利类型 */}
  5457. <div
  5458. className="clearfix"
  5459. style={{
  5460. display: this.state.projectType === 1 ? 'block' : 'none',
  5461. }}
  5462. >
  5463. <FormItem
  5464. className="half-item"
  5465. {...formItemLayout}
  5466. label={
  5467. <span>
  5468. <strong style={{ color: '#f00' }}>*</strong>
  5469. 专利类型
  5470. </span>
  5471. }
  5472. >
  5473. <Radio.Group
  5474. value={this.state.patentType}
  5475. onChange={(e) => {
  5476. let _this = this;
  5477. if(this.state.thirdInfoList.length >0){
  5478. confirm({
  5479. title: '确定要切换吗?',
  5480. content: '切换将删除所有第三信息和付款节点',
  5481. onOk() {
  5482. return new Promise((resolve, reject) => {
  5483. _this.setState({ patentType: e.target.value },()=>{
  5484. _this.projectTypeTabContent(_this.state.projectType);
  5485. })
  5486. _this.confirmDeletNew(-1,resolve,reject)
  5487. if(_this.state.payNodeList.length > 0){
  5488. _this.payNodeConfirmDeletNew(-1,resolve,reject);
  5489. }
  5490. }).catch(() => console.log('Oops errors!'));
  5491. },
  5492. onCancel() {},
  5493. });
  5494. }else{
  5495. this.setState({ patentType: e.target.value },()=>{
  5496. this.projectTypeTabContent(this.state.projectType);
  5497. })
  5498. }
  5499. }}
  5500. >
  5501. <Radio value={0}>专利申请/变更/转让</Radio>
  5502. <Radio value={1}>专利买卖</Radio>
  5503. </Radio.Group>
  5504. </FormItem>
  5505. </div>
  5506. <div
  5507. className="clearfix"
  5508. style={{
  5509. display: this.state.projectType === 1? 'block' : 'none',
  5510. }}
  5511. >
  5512. <FormItem
  5513. className="half-item"
  5514. {...formItemLayout}
  5515. label={
  5516. <span>
  5517. <strong style={{ color: '#f00' }}>*</strong>
  5518. 专利名称
  5519. </span>
  5520. }
  5521. >
  5522. <Radio.Group
  5523. value={this.state.patentNameType}
  5524. onChange={(e) => {
  5525. let _this = this;
  5526. if(this.state.thirdInfoList.length >0){
  5527. confirm({
  5528. title: '确定要切换吗?',
  5529. content: '切换将删除所有第三信息和付款节点',
  5530. onOk() {
  5531. return new Promise((resolve, reject) => {
  5532. _this.setState({ patentNameType: e.target.value },()=>{
  5533. _this.projectTypeTabContent(_this.state.projectType);
  5534. })
  5535. _this.confirmDeletNew(-1,resolve,reject)
  5536. if(_this.state.payNodeList.length > 0){
  5537. _this.payNodeConfirmDeletNew(-1,resolve,reject);
  5538. }
  5539. }).catch(() => console.log('Oops errors!'));
  5540. },
  5541. onCancel() {},
  5542. });
  5543. }else{
  5544. this.setState({ patentNameType: e.target.value },()=>{
  5545. this.projectTypeTabContent(this.state.projectType);
  5546. })
  5547. }
  5548. }}
  5549. >
  5550. <Radio value={0}>实用新型专利</Radio>
  5551. <Radio value={1}>发明专利</Radio>
  5552. <Radio value={2}>外观专利</Radio>
  5553. {/*<Radio value={3}>*/}
  5554. {/* 其他*/}
  5555. {/* <Input*/}
  5556. {/* disabled={this.state.patentNameType !== 3}*/}
  5557. {/* value={this.state.patentName}*/}
  5558. {/* style={{ marginLeft: '15px' }}*/}
  5559. {/* onChange={(e) => {*/}
  5560. {/* this.setState({*/}
  5561. {/* patentName: e.target.value,*/}
  5562. {/* })*/}
  5563. {/* }}*/}
  5564. {/* placeholder="请填写专利名称"*/}
  5565. {/* />*/}
  5566. {/*</Radio>*/}
  5567. </Radio.Group>
  5568. </FormItem>
  5569. </div>
  5570. {/* 第三方信息专利 */}
  5571. <div
  5572. style={{
  5573. // display: this.state.type == 1 ? "block" : "none",
  5574. display: this.state.type == 1 ? 'block' : 'block',
  5575. }}
  5576. >
  5577. <span
  5578. style={{
  5579. marginLeft: '50px',
  5580. fontSize: '18px',
  5581. }}
  5582. >
  5583. 第三方信息
  5584. </span>
  5585. <span
  5586. style={{
  5587. display: 'inline-block',
  5588. marginLeft: 10,
  5589. color: 'red',
  5590. }}
  5591. >
  5592. 金额总计(万元): {this.state.allTotalAmount}
  5593. </span>
  5594. <Button
  5595. type="primary"
  5596. onClick={(e) => {
  5597. if(this.state.projectType === 1 && this.state.patentType === -1){
  5598. message.info('请先选择专利类型');
  5599. }else if(this.state.projectType === 1 && this.state.patentNameType === -1){
  5600. message.info('请先选择专利名称');
  5601. }
  5602. else{
  5603. this.addThirdList()
  5604. }
  5605. }}
  5606. style={{
  5607. float: 'right',
  5608. marginRight: '50px',
  5609. marginBottom: '15px',
  5610. }}
  5611. >
  5612. +新增供应商名称
  5613. </Button>
  5614. </div>
  5615. <div
  5616. className="clearfix"
  5617. style={{
  5618. // display: this.state.type == 1 ? "block" : "none",
  5619. display: this.state.type == 1 ? 'block' : 'block',
  5620. }}
  5621. >
  5622. <Spin spinning={this.state.loading}>
  5623. <Form layout="horizontal">
  5624. <Table
  5625. pagination={false}
  5626. columns={this.state.ContactsListsNew}
  5627. dataSource={this.state.thirdInfoList}
  5628. onRowClick={this.tableRowClickOne}
  5629. scroll={{ x: 'max-content', y: 0 }}
  5630. bordered
  5631. size="small"
  5632. />
  5633. <Col
  5634. span={24}
  5635. offset={9}
  5636. style={{ marginTop: '15px' }}
  5637. />
  5638. </Form>
  5639. </Spin>
  5640. </div>
  5641. {/*如果是软著类或者专利类的专利申请,隐藏付款节点*/}
  5642. <div
  5643. style={{
  5644. display: (this.state.projectType === 1 && this.state.patentType === 0) || this.state.projectType === 2? 'none' : 'block', //0正常 1专利 2软著 3审计
  5645. }}
  5646. >
  5647. <span
  5648. style={{
  5649. marginLeft: '50px',
  5650. fontSize: '18px',
  5651. }}
  5652. >
  5653. 付款节点
  5654. </span>
  5655. <span
  5656. style={{
  5657. display: 'inline-block',
  5658. marginLeft: 10,
  5659. color: 'red',
  5660. }}
  5661. ></span>
  5662. <Button
  5663. type="primary"
  5664. onClick={(e) => {
  5665. this.addPayNode()
  5666. }}
  5667. style={{
  5668. float: 'right',
  5669. marginRight: '50px',
  5670. marginBottom: '15px',
  5671. }}
  5672. >
  5673. +新增付款节点
  5674. </Button>
  5675. </div>
  5676. {/*如果是软著类或者专利类的专利申请,隐藏付款节点*/}
  5677. <div
  5678. className="clearfix"
  5679. style={{
  5680. display: (this.state.projectType === 1 && this.state.patentType === 0) || this.state.projectType === 2? 'none' : 'block', //0正常 1专利 2软著 3审计
  5681. }}
  5682. >
  5683. <Spin spinning={this.state.loading}>
  5684. <Form layout="horizontal">
  5685. <Table
  5686. pagination={false}
  5687. columns={this.state.PayNodeTableColunms}
  5688. dataSource={this.state.payNodeList}
  5689. onRowClick={this.payNodeTableRowClickOne}
  5690. scroll={{ x: 'max-content', y: 0 }}
  5691. bordered
  5692. size="small"
  5693. />
  5694. <Col
  5695. span={24}
  5696. offset={9}
  5697. style={{ marginTop: '15px' }}
  5698. />
  5699. </Form>
  5700. </Spin>
  5701. </div>
  5702. <div className="clearfix">
  5703. <FormItem
  5704. className="half-item"
  5705. {...formItemLayout}
  5706. label={
  5707. <span>
  5708. <strong style={{ color: '#f00' }}>*</strong>备注
  5709. </span>
  5710. }
  5711. >
  5712. <TextArea
  5713. rows={4}
  5714. value={this.state.outsourceRemarks}
  5715. onChange={(e) => {
  5716. this.setState({
  5717. outsourceRemarks: e.target.value,
  5718. })
  5719. }}
  5720. placeholder="请输入备注"
  5721. />
  5722. </FormItem>
  5723. </div>
  5724. {/*<div className="clearfix">
  5725. <FormItem className="half-item"
  5726. {...formItemLayout}
  5727. label="上传协议文件" style={{height:"auto"}}>
  5728. <Upload header={{authorization: 'authorization-text'}} action={globalConfig.context + "/api/admin/outsourceOrg/uploadOutsourceFile"}
  5729. data={(e)=>{
  5730. return {
  5731. 'sign': e.name.substring(0,e.name.lastIndexOf("."))
  5732. }
  5733. }}
  5734. fileList={this.state.fileUrl}
  5735. onChange={(e)=>{
  5736. this.setState({
  5737. attachmentUrl:e.fileList,
  5738. fileUrl:e.fileList
  5739. })
  5740. }}>
  5741. {fileUrl.length>1?null:<Button>
  5742. <Icon type="upload" /> 点击上传
  5743. </Button>}
  5744. </Upload>
  5745. <span className="tip" style={{display:"inline-block"}}>支持文件格式: doc,excel,ppt</span>
  5746. </FormItem>
  5747. </div>*/}
  5748. <p
  5749. className="tip"
  5750. style={{
  5751. paddingBottom: '12px',
  5752. width: '240px',
  5753. marginLeft: '145px',
  5754. color: 'red',
  5755. }}
  5756. >
  5757. 首次派单项目,需上传协议,第2次起,同项目,只需写外包公司
  5758. </p>
  5759. <div className="clearfix">
  5760. <FormItem
  5761. labelCol={{ span: 4 }}
  5762. wrapperCol={{ span: 18 }}
  5763. label={
  5764. <span>
  5765. 合同/协议扫描件
  5766. </span>
  5767. }
  5768. >
  5769. <PicturesWall
  5770. domId={'myTask4'}
  5771. fileList={this.getOrgCodeUrlWai}
  5772. pictureUrl={this.state.pictureUrl}
  5773. />
  5774. <p style={{ color: 'red' }}>图片建议:要清晰。</p>
  5775. </FormItem>
  5776. </div>
  5777. {/*只有审核拒绝和第一次发起外包的时候才要填写发起原因*/}
  5778. {typeof this.state.refundStatus === 'undefined' || this.state.refundStatus === 2 ? <div className="clearfix">
  5779. <FormItem
  5780. className="half-item"
  5781. {...formItemLayout}
  5782. label={
  5783. <span>
  5784. <strong style={{ color: '#f00' }}>*</strong>发起原因
  5785. </span>
  5786. }
  5787. >
  5788. <TextArea
  5789. rows={4}
  5790. value={this.state.reason}
  5791. onChange={(e) => {
  5792. this.setState({
  5793. reason: e.target.value,
  5794. })
  5795. }}
  5796. placeholder="请输入发起原因"
  5797. />
  5798. </FormItem>
  5799. </div> : <div/>}
  5800. <div className="clearfix">
  5801. <div
  5802. style={{
  5803. display: 'inline-black',
  5804. textAlign: 'center',
  5805. }}
  5806. >
  5807. <Button
  5808. type="primary"
  5809. loading={this.state.loading}
  5810. onClick={()=>{
  5811. this.sureOut(this.state.startType);
  5812. }}
  5813. >
  5814. {
  5815. this.state.startType === 0 ? "确认发起外包,不通过总部" : "提交供应商信息"
  5816. }
  5817. </Button>
  5818. <p className="tip" style={{ color: 'red' }}>
  5819. {
  5820. this.state.startType === 0 ? "提示:高于总部价格,费用个人承担" : "确定提交供应商信息,提交后,不可修改"
  5821. }
  5822. </p>
  5823. </div>
  5824. </div>
  5825. </div>
  5826. ) : (
  5827. <div>
  5828. {
  5829. this.state.speVisible && this.state.activeKey === '2' ?
  5830. <CheckProject
  5831. {...this.props}
  5832. tid={this.state.tid}
  5833. oldInfor={this.state.oldInfor}
  5834. projectType={this.state.projectType} //0正常 1专利 2软著 3审计
  5835. patentNameType={this.state.patentNameType}
  5836. patentName={this.state.patentName}
  5837. patentType={this.state.patentType}
  5838. status={this.state.refundStatus}
  5839. isPreviewPay={true}
  5840. thirdInfoList={this.state.thirdInfoList}
  5841. dataSource={this.state.payNodeList}
  5842. outsourceRemarks={this.state.outsourceRemarks}
  5843. fileList={this.state.pictureUrl}
  5844. startType={this.state.startType}
  5845. projectStatus={this.state.projectStatus}
  5846. onRefresh={()=>{
  5847. this.waiDetail();
  5848. this.thirdTable(this.state.tid);
  5849. this.getSelectOutsourceLog(this.state.tid);
  5850. this.payNodeTable(this.state.tid)
  5851. this.loadData(this.state.page)
  5852. }}
  5853. /> : <div/>
  5854. }
  5855. </div>
  5856. )}
  5857. {(this.state.refundStatus == 1 ||
  5858. this.state.refundStatus == 0 ||
  5859. this.state.refundStatus == 2) &&
  5860. this.state.startType !== 1
  5861. ? (
  5862. <div className="clearfix"
  5863. style={{
  5864. display: this.state.refundStatus == 0 ? 'none' : 'block',
  5865. }}
  5866. >
  5867. <hr className="division" />
  5868. {parseInt(this.state.startType) !== 1 ? <div style={{
  5869. color:'#F00',
  5870. fontWeight: 'bolder',
  5871. paddingBottom: '20px',
  5872. }}>
  5873. 审核结果: <span style={{paddingLeft:'20px'}}>{getRefundStatus(this.state.refundStatus)}</span>
  5874. </div> : <div/>}
  5875. <div className="outsourceLogList">
  5876. {
  5877. this.state.outsourceLogs && this.state.outsourceLogs.map((value,index)=>(
  5878. <div key={index} className="outsourceLogItem outsource">
  5879. <div style={{
  5880. display:'flex',
  5881. flexFlow:'row nowrap',
  5882. paddingBottom: '3px',
  5883. paddingTop: '3px',
  5884. }}>
  5885. <div>
  5886. {value.aname}
  5887. </div>
  5888. <div style={{paddingLeft:'5px'}}>
  5889. {
  5890. value.status === 0 ?
  5891. <Tag color="#2db7f5">发起外包审核</Tag> :
  5892. value.status === 1 ? <Tag color="#87d068">通过</Tag> :
  5893. <Tag color="#f50">驳回</Tag>
  5894. }
  5895. </div>
  5896. <div style={{
  5897. wordBreak: 'break-all',
  5898. maxWidth:'67%',
  5899. }}>
  5900. {value.remarks}
  5901. </div>
  5902. <div style={{paddingLeft: '10px'}}>
  5903. {value.createTimes}
  5904. </div>
  5905. </div>
  5906. </div>
  5907. ))
  5908. }
  5909. </div>
  5910. {/* <div*/}
  5911. {/* className="clearfix"*/}
  5912. {/* style={{*/}
  5913. {/* display: this.state.refundStatus == 0 ? 'none' : 'block',*/}
  5914. {/* }}*/}
  5915. {/* >*/}
  5916. {/* <FormItem*/}
  5917. {/* className="half-item"*/}
  5918. {/* {...formItemLayout}*/}
  5919. {/* label="审核意见"*/}
  5920. {/* >*/}
  5921. {/* <span>{this.state.remarks}</span>*/}
  5922. {/* </FormItem>*/}
  5923. {/* </div>*/}
  5924. {/* {parseInt(this.state.startType) !== 1 ?<div className="clearfix">*/}
  5925. {/* <FormItem*/}
  5926. {/* className="half-item"*/}
  5927. {/* {...formItemLayout}*/}
  5928. {/* label="审核结果"*/}
  5929. {/* >*/}
  5930. {/* <span>{getRefundStatus(this.state.refundStatus)}</span>*/}
  5931. {/* </FormItem>*/}
  5932. {/* </div> : <div/>}*/}
  5933. {/* <div*/}
  5934. {/* className="clearfix"*/}
  5935. {/* style={{*/}
  5936. {/* display: this.state.refundStatus == 0 ? 'none' : 'block',*/}
  5937. {/* }}*/}
  5938. {/* >*/}
  5939. {/* <FormItem*/}
  5940. {/* className="half-item"*/}
  5941. {/* {...formItemLayout}*/}
  5942. {/* label="审核时间"*/}
  5943. {/* >*/}
  5944. {/* <span>{this.state.auditTimes}</span>*/}
  5945. {/* </FormItem>*/}
  5946. {/* </div>*/}
  5947. </div>
  5948. ) : (
  5949. ''
  5950. )}
  5951. </TabPane>
  5952. {!this.props.isZxs || (this.state.isHuiyuan && this.props.isZxs) ? (
  5953. <TabPane tab="订单详情" key="3">
  5954. <Spin spinning={this.state.loading}>
  5955. <OrderDetail
  5956. orderData={this.state.orderData}
  5957. getOrderLog={this.getOrderLog}
  5958. dataSourceX={this.state.dataSourceX}
  5959. contactList={this.state.jiedian}
  5960. orderNo={this.state.orderNo}
  5961. totalCui={this.state.totalCui}
  5962. contactListNew={this.state.jiedianNew}
  5963. pictureUrl={this.state.contractPictureUrl}
  5964. />
  5965. </Spin>
  5966. </TabPane>
  5967. ) : (
  5968. ''
  5969. )}
  5970. </Tabs>
  5971. </Modal>
  5972. <Modal
  5973. width="800px"
  5974. visible={this.state.visibleA}
  5975. onCancel={this.visitCancelA}
  5976. title="操作日志"
  5977. footer=""
  5978. className="admin-desc-content"
  5979. >
  5980. <div className="patent-table patent-table-center">
  5981. <Spin spinning={this.state.loading}>
  5982. <Table
  5983. columns={this.state.columnsA}
  5984. dataSource={this.state.dataSourceA}
  5985. pagination={false}
  5986. bordered
  5987. size="small"
  5988. />
  5989. </Spin>
  5990. </div>
  5991. </Modal>
  5992. <Modal
  5993. title="工时记录"
  5994. visible={this.state.timeVisible}
  5995. onCancel={this.timeClose}
  5996. width={800}
  5997. footer={null}
  5998. >
  5999. <Spin spinning={this.state.loading}>
  6000. <Table
  6001. columns={this.state.columnsTime}
  6002. dataSource={this.state.dataSourceTime}
  6003. pagination={false}
  6004. scroll={{ x: 'max-content', y: 0 }}
  6005. bordered
  6006. size={'small'}
  6007. />
  6008. <p style={{ marginTop: 10, color: 'red' }}>
  6009. 累计工时(小时):{this.state.recordHour}
  6010. </p>
  6011. </Spin>
  6012. </Modal>
  6013. {this.state.ThirdListVisible ? <NewSupplier
  6014. patentNameType={this.state.patentNameType}
  6015. ThirdId={this.state.ThirdId}
  6016. tid={this.state.tid}
  6017. patentType={this.state.patentType}
  6018. projectType={this.state.projectType}
  6019. thirdCompanyName={this.state.thirdCompanyName}
  6020. thirdUnitPrice={this.state.thirdUnitPrice}
  6021. thirdQuantity={this.state.thirdQuantity}
  6022. thirdRemarks={this.state.thirdRemarks}
  6023. spinning={this.state.loading}
  6024. visible={this.state.ThirdListVisible}
  6025. thirdMaterial={this.state.thirdMaterial}
  6026. thirdUrgent={this.state.thirdUrgent}
  6027. audit={this.state.audit}
  6028. assets={this.state.assets}
  6029. income={this.state.income}
  6030. onDetermine={this.handleCancelq}
  6031. onCancel={()=>{
  6032. this.thirdTable(this.state.tid);
  6033. this.setState({
  6034. ThirdListVisible: false,
  6035. ThirdId: '', //供应商id
  6036. thirdCompanyName: '', //第三方名称
  6037. thirdUnitPrice: '', //单价
  6038. thirdQuantity: '', //数量
  6039. currentTotalPrice: '', //总价
  6040. thirdMaterial: 0, //有无材料
  6041. thirdUrgent: 0, //加急情况
  6042. thirdRemarks: '',
  6043. audit: 1,
  6044. assets: '',
  6045. income: '',
  6046. })
  6047. }}
  6048. otherOperations={(data)=>{
  6049. this.setState({
  6050. thirdMaterial: data.thirdMaterial,
  6051. thirdUrgent: data.thirdUrgent,
  6052. customerArr: data.customerArr,
  6053. thirdCompanyName: data.thirdCompanyName
  6054. })
  6055. }}/> : <div/>}
  6056. {this.state.PayNodeVisible ? <OperationPayNode
  6057. tid={this.state.tid}
  6058. cSort={this.state.cSort}
  6059. visible={this.state.PayNodeVisible}
  6060. thirdId={this.state.ThirdId}
  6061. thirdInfoList={this.state.thirdInfoList}
  6062. supplierList={this.state.PayNodeCompany}
  6063. payNodeInfor={this.state.payNodeInfor}
  6064. thirdUnitPrice={this.state.thirdUnitPrice}
  6065. onCancel={()=>{
  6066. this.setState({
  6067. PayNodeVisible: false,
  6068. payNodeInfor: {},
  6069. ThirdId: '',
  6070. thirdUnitPrice: '',
  6071. })
  6072. this.payNodeTable(this.state.tid)
  6073. }}
  6074. /> : <div/>}
  6075. </div>
  6076. )
  6077. },
  6078. })
  6079. export default Task