myTask.jsx 352 KB

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