myTask.jsx 241 KB

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