myTask.jsx 341 KB

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