myTask.jsx 264 KB

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