myTask.jsx 353 KB

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