myTask.jsx 340 KB

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