myTask.jsx 258 KB

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