myTask.jsx 202 KB

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