myTask.jsx 242 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432
  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. $.ajax({
  1523. method: 'POST',
  1524. dataType: 'json',
  1525. crossDomain: false,
  1526. url: globalConfig.context + '/api/admin/orderProject/addTaskHours',
  1527. data: {
  1528. taskId: this.state.taskId, //项目编号
  1529. hours: this.state.hours, //工时
  1530. remarks: this.state.remarks, //说明
  1531. taskDate: this.state.taskDate, //日期
  1532. taskComment: this.state.taskComment, //说明
  1533. },
  1534. }).done(
  1535. function (data) {
  1536. this.setState({
  1537. loading: false,
  1538. })
  1539. if (!data.error.length) {
  1540. message.success('保存成功!')
  1541. this.noCancel()
  1542. } else {
  1543. message.warning(data.error[0].message)
  1544. }
  1545. }.bind(this)
  1546. )
  1547. },
  1548. //订单详情
  1549. xiangqing(id){
  1550. return $.ajax({
  1551. method: 'get',
  1552. dataType: 'json',
  1553. crossDomain: false,
  1554. url: globalConfig.context + '/api/admin/orderProject/orderTaskDetail',
  1555. data: {
  1556. id: id,
  1557. },
  1558. success: function (data) {
  1559. let thisdata = data.data
  1560. if (data.error.length || data.data.list == '') {
  1561. if (data.error && data.error.length) {
  1562. message.warning(data.error[0].message)
  1563. }
  1564. } else {
  1565. localStorage.setItem('cSort', thisdata.sort)
  1566. this.setState({
  1567. certificationCorporate: thisdata.certificationCorporate,//认证费公司
  1568. certificationFee: thisdata.certificationFee,//认证费
  1569. ifCertificationFee: thisdata.ifCertificationFee,//是否包含认证费
  1570. sort: thisdata.sort,
  1571. cSort: thisdata.sort,
  1572. id: thisdata.id, //ID
  1573. splitId: thisdata.splitId,//拆分序号
  1574. splitStatus: thisdata.splitStatus,//0未拆分 1已拆分
  1575. splitSuper: thisdata.splitSuper,//拆分前项目编号
  1576. orderNo: thisdata.orderNo, //订单编号
  1577. userName: thisdata.userName, //客户名称
  1578. taskName: thisdata.taskName, //项目名称
  1579. cname: thisdata.cname, //项目品类
  1580. contractNo: thisdata.contractNo, //合同编号
  1581. projectStatus: thisdata.projectStatus.toString(), //项目状态
  1582. taskStatus: thisdata.taskStatus.toString(), //项目状态
  1583. taskDate: thisdata.taskDate, //分配时间
  1584. taskComment: thisdata.taskComment, //说明
  1585. taskCommentData: thisdata.taskComment,
  1586. attachmentUrl: thisdata.attachmentUrl
  1587. ? splitUrl(
  1588. thisdata.attachmentUrl,
  1589. ',',
  1590. globalConfig.avatarHost + '/upload'
  1591. )
  1592. : [], //图片地址
  1593. salesmanName: thisdata.salesmanName, //订单负责人
  1594. startDate: thisdata.startDate, //启动日期
  1595. endDate: thisdata.endDate, //结束日期
  1596. acceptDate: thisdata.acceptDate, //受理日期
  1597. reviewDate: thisdata.reviewDate, //评审日期
  1598. publicityDate: thisdata.publicityDate, //公示日期
  1599. licenceDate: thisdata.licenceDate, //发证日期
  1600. contacts: thisdata.contacts, //联系人
  1601. contactMobile: thisdata.contactMobile, //联系人电话
  1602. legalPerson: thisdata.legalPerson, //法人
  1603. legalPersonTel: thisdata.legalPersonTel, //法人电话
  1604. certificateNumber: thisdata.certificateNumber, //证书编号
  1605. status: thisdata.status, //状态 0未开始 1已开始 2已暂停 3已完成 4已驳回 5已退单
  1606. formRetrieve: thisdata.formRetrieve, //满意度表格
  1607. taskRefund: thisdata.taskRefund, //退单
  1608. refundContent: thisdata.refundContent, //退单信息
  1609. retrieveContent: thisdata.retrieveContent, //回收信息
  1610. arrivalMoney: thisdata.arrivalMoney, //是否到款
  1611. setUpAmount: thisdata.setUpAmount, //立项金额
  1612. declareUser: thisdata.declareUser, //账号
  1613. declarePwd: thisdata.declarePwd, //密码
  1614. outsourceName: thisdata.outsourceName, //外包公司
  1615. outsourcePrice: thisdata.outsourcePrice, //外包价格
  1616. declarationBatch: thisdata.declarationBatch,
  1617. orderTaskOfficialCost: thisdata.officialCost, //官费 0无 1有
  1618. bpType:thisdata.bpType,//0 正常 1专利 2软著 3审计 4双软 5高新 6商标
  1619. specialComment: thisdata.specialComment,
  1620. urgentDay: thisdata.urgentDay, //有无材料
  1621. ifMaterial: thisdata.ifMaterial, //加急情况
  1622. spotCheckStatus: thisdata.spotCheckStatus,
  1623. setUpStatus: thisdata.setUpStatus,
  1624. setUpTime: thisdata.setUpTime,
  1625. highTechStatus: thisdata.highTechStatus,
  1626. acceptCount:thisdata.acceptCount, //受理数
  1627. certificatesCount:thisdata.certificatesCount, //授权数
  1628. rejectCount:thisdata.rejectCount, //驳回数
  1629. commodityQuantity:thisdata.commodityQuantity, //派单项目数
  1630. timeRecord: thisdata.timeRecord || '{}',//项目状态JSON
  1631. timeRecordparse: thisdata.timeRecord ? JSON.parse(thisdata.timeRecord) : {},//项目状态JSON
  1632. })
  1633. }
  1634. }.bind(this),
  1635. }).always(
  1636. function () {
  1637. this.setState({
  1638. loading: false,
  1639. })
  1640. }.bind(this)
  1641. )
  1642. },
  1643. //订单详情
  1644. xiangqings(orderNos) {
  1645. $.ajax({
  1646. method: 'get',
  1647. dataType: 'json',
  1648. crossDomain: false,
  1649. url: globalConfig.context + '/api/admin/newOrder/getOrderNewDetail',
  1650. data: {
  1651. orderNo: orderNos,
  1652. },
  1653. success: function (data) {
  1654. let thisdata = data.data
  1655. let ProvinceCityArr = []
  1656. let ProvinceS = thisdata.locationProvince //省
  1657. let citys = thisdata.locationCity //市
  1658. let Areas = thisdata.locationArea //区
  1659. ProvinceCityArr.push(ProvinceS, citys, Areas)
  1660. if (data.error.length || data.data.list == '') {
  1661. if (data.error && data.error.length) {
  1662. message.warning(data.error[0].message)
  1663. }
  1664. } else {
  1665. this.setState({
  1666. processStatus: thisdata.processStatus, //流程状态
  1667. liquidationStatus: thisdata.liquidationStatus, //结算状态
  1668. approval: thisdata.approval, //特批状态
  1669. orderRemarks: thisdata.orderRemarks, //订单留言
  1670. salesmanName: thisdata.salesmanName, //营销员名称
  1671. salesmanMobile: thisdata.salesmanMobile, //营销员电话
  1672. financeName: thisdata.financeName, //财务名称
  1673. financeMobile: thisdata.financeMobile, //财务电话
  1674. oldSalesmanName: thisdata.oldSalesmanName, //营销员名称
  1675. oldSalesmanMobile: thisdata.oldSalesmanMobile, //营销员电话
  1676. nowFinance: thisdata.nowFinance, //财务名称
  1677. nowFinanceMobile: thisdata.nowFinanceMobile, //财务电话
  1678. depName: thisdata.depName, //订单部门
  1679. ProvinceCity: ProvinceCityArr[0] === null ? [] : ProvinceCityArr,
  1680. postalAddress: thisdata.postalAddress, //详细地址
  1681. })
  1682. }
  1683. }.bind(this),
  1684. }).always(
  1685. function () {
  1686. this.setState({
  1687. loading: false,
  1688. })
  1689. }.bind(this)
  1690. )
  1691. },
  1692. //项目列表
  1693. xiangmu(orderNos) {
  1694. $.ajax({
  1695. method: 'get',
  1696. dataType: 'json',
  1697. crossDomain: false,
  1698. url: globalConfig.context + '/api/admin/newOrder/getOrderTask',
  1699. data: {
  1700. orderNo: orderNos,
  1701. },
  1702. success: function (data) {
  1703. let theArr = []
  1704. if (data.error.length || data.data.list == '') {
  1705. if (data.error && data.error.length) {
  1706. message.warning(data.error[0].message)
  1707. }
  1708. } else {
  1709. for (let i = 0; i < data.data.length; i++) {
  1710. let thisdata = data.data[i]
  1711. thisdata.key = i;
  1712. thisdata.sort = thisdata.cSort;
  1713. theArr.push(thisdata);
  1714. }
  1715. }
  1716. this.setState({
  1717. dataSourceX: theArr,
  1718. type: theArr[0].type,
  1719. })
  1720. }.bind(this),
  1721. }).always(
  1722. function () {
  1723. this.setState({
  1724. loading: false,
  1725. })
  1726. }.bind(this)
  1727. )
  1728. },
  1729. //导出
  1730. exportExec() {
  1731. let departmentName = '',
  1732. depart = this.state.departmentArr || []
  1733. depart.map((item) => {
  1734. if (this.state.departmentId == item.id) {
  1735. departmentName = item.name
  1736. return
  1737. }
  1738. })
  1739. let data = {
  1740. departmentId: this.state.departmentId,
  1741. departmentName: departmentName,
  1742. salesName: this.state.orderRefundSearch, //订单负责人
  1743. startTime: this.state.releaseDate[0],
  1744. endTime: this.state.releaseDate[1],
  1745. grantStatus: this.state.grantStatus,
  1746. }
  1747. window.location.href =
  1748. globalConfig.context +
  1749. '/api/admin/orderProject/exporProjectList?' +
  1750. $.param(data)
  1751. },
  1752. //关闭详情
  1753. visitCancel() {
  1754. this.setState({
  1755. visible: false,
  1756. speVisible: false,
  1757. activeKey: '1',
  1758. updataSwicth: false,
  1759. projectSituationVisible: false,
  1760. })
  1761. this.reset()
  1762. },
  1763. visitOk() {
  1764. this.setState({
  1765. visible: false,
  1766. speVisible: false,
  1767. })
  1768. this.reset()
  1769. },
  1770. closeDesc(e, s) {
  1771. this.state.showDesc = e
  1772. if (s) {
  1773. this.loadData(this.state.page)
  1774. }
  1775. },
  1776. closeAssign(e, s) {
  1777. this.state.roleName = ''
  1778. this.state.assignVisible = e
  1779. if (s) {
  1780. this.loadData(this.state.page)
  1781. }
  1782. },
  1783. //添加工时
  1784. okCancel(record) {
  1785. this.setState({
  1786. lookVisible: true,
  1787. taskId: record.id,
  1788. })
  1789. },
  1790. //测试
  1791. getOrgCodeUrl(e) {
  1792. this.setState({ orgCodeUrl: e })
  1793. },
  1794. //查看下证信息
  1795. loaduserss(record) {
  1796. $.ajax({
  1797. method: 'get',
  1798. dataType: 'json',
  1799. crossDomain: false,
  1800. url: globalConfig.context + '/api/admin/orderProject/selectTaskProgress',
  1801. data: {
  1802. tid: record.id,
  1803. },
  1804. success: function (data) {
  1805. let theArr = []
  1806. let thisData = []
  1807. if (!thisData) {
  1808. if (data.error && data.error.length) {
  1809. message.warning(data.error[0].message)
  1810. }
  1811. thisData = {}
  1812. } else {
  1813. for (let i = 0; i < data.data.length; i++) {
  1814. thisData = data.data[i]
  1815. theArr.push({
  1816. num: i + 1,
  1817. key: i,
  1818. id: thisData.id, //编号
  1819. alreadyNumber: thisData.alreadyNumber, //下证数
  1820. licenceTimes: thisData.licenceTimes, //下证时间
  1821. notCount: thisData.notCount, //未下证数
  1822. flag: true,
  1823. })
  1824. }
  1825. this.setState({
  1826. contactList: theArr,
  1827. tid: record.id,
  1828. })
  1829. }
  1830. }.bind(this),
  1831. }).always(
  1832. function () {
  1833. this.setState({
  1834. loading: false,
  1835. })
  1836. }.bind(this)
  1837. )
  1838. },
  1839. // 拆分详细
  1840. showRes(record) {
  1841. this.setState({
  1842. resVisible: true,
  1843. resRecord: record,
  1844. })
  1845. },
  1846. resCancel() {
  1847. this.setState({
  1848. resVisible: false,
  1849. })
  1850. },
  1851. //下证信息保存
  1852. contactSave(record) {
  1853. if (!record.licenceTimes) {
  1854. message.warning('下证日期不能为空')
  1855. return
  1856. }
  1857. if (!record.alreadyNumber) {
  1858. message.warning('下证数量不能为空')
  1859. return
  1860. }
  1861. this.setState({
  1862. loading: true,
  1863. })
  1864. $.ajax({
  1865. url: globalConfig.context + '/api/admin/orderProject/createTaskProgress',
  1866. method: 'post',
  1867. data: {
  1868. taskId: this.state.id,
  1869. licenceTimes: record.licenceTimes,
  1870. alreadyNumber: record.alreadyNumber,
  1871. },
  1872. }).done(
  1873. function (data) {
  1874. this.setState({
  1875. loading: false,
  1876. })
  1877. if (!data.error.length) {
  1878. message.success('保存成功!')
  1879. record.flag = true
  1880. this.loaduserss(this.state.dataArr)
  1881. } else {
  1882. message.warning(data.error[0].message)
  1883. }
  1884. }.bind(this)
  1885. )
  1886. },
  1887. //下证信息删除
  1888. contactDele(record) {
  1889. this.setState({
  1890. loading: true,
  1891. })
  1892. $.ajax({
  1893. url: globalConfig.context + '/api/admin/orderProject/delectTaskProgress',
  1894. method: 'post',
  1895. data: {
  1896. id: record.id,
  1897. },
  1898. }).done(
  1899. function (data) {
  1900. this.setState({
  1901. loading: false,
  1902. })
  1903. if (!data.error.length) {
  1904. this.loaduserss(this.state.dataArr)
  1905. } else {
  1906. message.warning(data.error[0].message)
  1907. }
  1908. }.bind(this)
  1909. )
  1910. },
  1911. //点击新增下证信息
  1912. addcontact() {
  1913. this.state.contactList.push({
  1914. num: this.state.contactList.length + 1,
  1915. key: this.state.contactList.length,
  1916. licenceTimes: '',
  1917. alreadyNumber: '',
  1918. notCount: '',
  1919. dels: '',
  1920. flag: false,
  1921. aflag: false,
  1922. })
  1923. this.setState({
  1924. contactList: this.state.contactList,
  1925. })
  1926. },
  1927. //删除下证信息
  1928. confirmDelet(record) {
  1929. this.state.contactList.splice(record.key, 1)
  1930. this.setState({
  1931. contactList: this.state.contactList,
  1932. })
  1933. if (record.id) {
  1934. this.contactDele(record)
  1935. }
  1936. },
  1937. caozuorizhi() {
  1938. this.setState({
  1939. visibleA: true,
  1940. })
  1941. $.ajax({
  1942. method: 'get',
  1943. dataType: 'json',
  1944. crossDomain: false,
  1945. url: globalConfig.context + '/api/admin/orderProject/TaskLogList',
  1946. data: {
  1947. id: this.state.id,
  1948. },
  1949. success: function (data) {
  1950. let theArr = []
  1951. if (data.error.length || data.data.list == '') {
  1952. if (data.error && data.error.length) {
  1953. message.warning(data.error[0].message)
  1954. }
  1955. } else {
  1956. for (let i = 0; i < data.data.length; i++) {
  1957. let thisdata = data.data[i]
  1958. theArr.push({
  1959. key: i,
  1960. id: thisdata.id, //日志ID
  1961. content: thisdata.content, //流程
  1962. taskId: thisdata.taskId, //项目ID
  1963. aName: thisdata.aName, //负责人
  1964. createTimes: thisdata.createTimes, //时间
  1965. })
  1966. }
  1967. }
  1968. this.setState({
  1969. dataSourceA: theArr,
  1970. })
  1971. }.bind(this),
  1972. }).always(
  1973. function () {
  1974. this.setState({
  1975. loading: false,
  1976. })
  1977. }.bind(this)
  1978. )
  1979. },
  1980. //关闭操作工时
  1981. visitCancelA() {
  1982. this.setState({
  1983. visibleA: false,
  1984. })
  1985. },
  1986. nextCancel() {
  1987. this.setState({
  1988. addnextVisible: false,
  1989. displayFees: 'none',
  1990. officialCost: '', //是否有官费
  1991. costReduction: '', //是否有费减
  1992. })
  1993. },
  1994. //点击打卡项目详情
  1995. tableRowClickX(record) {
  1996. if (record.type == '1') {
  1997. this.setState({
  1998. displayFees: 'block',
  1999. costReduction: record.costReduction,
  2000. officialCost: record.officialCost,
  2001. })
  2002. }
  2003. this.setState({
  2004. jid: record.id, //项目ID
  2005. kid: record.commodityId, //商品ID
  2006. commodityName: record.commodityName, //金额
  2007. commodityPrice: record.commodityPrice, //金额
  2008. commodityQuantity: record.commodityQuantity, //数量
  2009. taskComment: record.taskComment, //备注
  2010. taskCommentData: record.taskComment,
  2011. main: record.main.toString(), //是否为主要
  2012. addnextVisible: true,
  2013. dataInfor:record,
  2014. addState: 0,
  2015. })
  2016. },
  2017. //关闭添加工时
  2018. noCancel() {
  2019. this.setState({
  2020. lookVisible: false,
  2021. })
  2022. this.reset()
  2023. },
  2024. search() {
  2025. this.loadData()
  2026. },
  2027. reset(flag) {
  2028. if (flag) {
  2029. this.setState({
  2030. nameSearch : '',
  2031. orderNoSearch : '',
  2032. contractNoSearch : undefined,
  2033. taskNoSearch : '',
  2034. departmenttSearch : undefined,
  2035. projectStatusSearch : [], //项目状态
  2036. approvalSearch : undefined,
  2037. outsourceStatusSearch : [],
  2038. })
  2039. }
  2040. this.setState({
  2041. oldInfor: {},
  2042. outsourceRemarks: undefined,
  2043. thirdInfoList: [],
  2044. payNodeList: [],
  2045. orderNo: '',//订单编号
  2046. tid: '',
  2047. id : '', //项目编号
  2048. projectStatus : undefined, //项目状态
  2049. taskStatuSearch : undefined, //项目状态
  2050. startDate : '', //启动日期
  2051. endDate : '', //结束日期
  2052. acceptDate : '', //受理日期
  2053. reviewDate : '', //评审日期
  2054. publicityDate : '', //公示日期
  2055. licenceDate : '', //发证日期
  2056. partyTimes : '', //付款时间
  2057. attachmentUrl: [], //附件
  2058. contacts : '', //联系人
  2059. contactMobile : '', //联系人电话
  2060. legalPerson : '', //法人
  2061. legalPersonTel : '', //法人电话
  2062. taskId : '', //项目编号
  2063. hours : '', //工时
  2064. remarks : '', //说明
  2065. taskDate : '', //日期
  2066. taskComment : '', //说明
  2067. taskCommentData: '',
  2068. releaseDate : [],
  2069. outsourceName : '',
  2070. outsourcePrice : undefined,
  2071. distribution : undefined,
  2072. companyName : undefined,
  2073. unitPrice : undefined,
  2074. unitNumber : undefined,
  2075. amount : undefined,
  2076. pictureUrl : [],
  2077. allTotalAmount: 0,
  2078. urgentDay: '', //有无材料
  2079. ifMaterial: '', //加急情况
  2080. specialComment: '', //特别说明
  2081. spotCheckStatus: '',
  2082. setUpStatus: '',
  2083. setUpTime: '',
  2084. highTechStatus: '',
  2085. },()=>{
  2086. this.loadData(flag ? '' : this.state.page)
  2087. })
  2088. },
  2089. searchSwitch() {
  2090. this.setState({
  2091. searchMore: !this.state.searchMore,
  2092. })
  2093. },
  2094. //部门
  2095. departmentList() {
  2096. this.setState({
  2097. loading: true,
  2098. })
  2099. $.ajax({
  2100. method: 'get',
  2101. dataType: 'json',
  2102. crossDomain: false,
  2103. url: globalConfig.context + '/api/admin/organization/selectSuperId',
  2104. data: {},
  2105. success: function (data) {
  2106. let thedata = data.data
  2107. let theArr = []
  2108. if (!thedata) {
  2109. if (data.error && data.error.length) {
  2110. message.warning(data.error[0].message)
  2111. }
  2112. thedata = {}
  2113. } else {
  2114. thedata.map(function (item, index) {
  2115. theArr.push({
  2116. key: index,
  2117. name: item.name,
  2118. id: item.id,
  2119. })
  2120. })
  2121. }
  2122. this.setState({
  2123. departmentArr: theArr,
  2124. })
  2125. }.bind(this),
  2126. }).always(
  2127. function () {
  2128. this.setState({
  2129. loading: false,
  2130. })
  2131. }.bind(this)
  2132. )
  2133. },
  2134. changeList(arr) {
  2135. const newArr = []
  2136. this.state.columns.forEach((item) => {
  2137. arr.forEach((val) => {
  2138. if (val === item.title) {
  2139. newArr.push(item)
  2140. }
  2141. })
  2142. })
  2143. this.setState({
  2144. changeList: newArr,
  2145. })
  2146. },
  2147. timeClose() {
  2148. this.setState({
  2149. timeVisible: false,
  2150. })
  2151. },
  2152. timeDetail(record) {
  2153. console.log(record)
  2154. this.setState({
  2155. loading: true,
  2156. recordHour: record.hours,
  2157. })
  2158. $.ajax({
  2159. method: 'get',
  2160. dataType: 'json',
  2161. crossDomain: false,
  2162. url:
  2163. globalConfig.context + '/api/admin/orderProject/taskHoursDetailsList',
  2164. data: {
  2165. taskId: record.id,
  2166. },
  2167. success: function (data) {
  2168. if (data.error && data.error.length) {
  2169. message.warning(data.error[0].message)
  2170. } else {
  2171. this.setState({
  2172. dataSourceTime: data.data,
  2173. })
  2174. console.log(this.state.dataSourceTime)
  2175. }
  2176. }.bind(this),
  2177. }).always(
  2178. function () {
  2179. this.setState({
  2180. loading: false,
  2181. })
  2182. }.bind(this)
  2183. )
  2184. },
  2185. showDeleteConfirm(num, fn) {
  2186. let text = getProjectName(num)
  2187. confirm({
  2188. title: <p style={{ fontSize: 16, fontWeight: 900 }}>注意</p>,
  2189. content: (
  2190. <p style={{ fontWeight: 900, color: 'red' }}>
  2191. 当前的项目状态为{text},保存后将触发对应的催款节点!!!您确定保存?
  2192. </p>
  2193. ),
  2194. okText: '确定',
  2195. okType: 'danger',
  2196. cancelText: '取消',
  2197. onOk() {
  2198. fn()
  2199. },
  2200. onCancel() {},
  2201. })
  2202. },
  2203. // 项目发起外包
  2204. sureOut(startType) {
  2205. if (this.state.startType !== 0 && this.state.startType !== 1) {
  2206. message.warning('请选择类型')
  2207. return
  2208. }
  2209. //0正常 1专利 2软著 3审计
  2210. if (this.state.projectType === 1) {
  2211. //专利
  2212. if (this.state.patentType === -1) {
  2213. message.warning('请选择专利类型')
  2214. return
  2215. }
  2216. if (this.state.patentNameType === -1) {
  2217. message.warning('请选择专利类型名称')
  2218. return
  2219. }
  2220. if (this.state.patentNameType == 3) {
  2221. if (!this.state.patentName) {
  2222. message.warning('请填写专利名称')
  2223. return
  2224. }
  2225. }
  2226. }
  2227. if (!this.state.outsourceRemarks) {
  2228. message.warning('备注不能为空')
  2229. return
  2230. }
  2231. //refundStatus 0-待审核 ,1-审核通过,2-审核拒绝
  2232. //类型为供应商时不需要发起原因
  2233. //this.state.startType 0外包 1供应商
  2234. if(!this.state.reason && (this.state.refundStatus === 2 || typeof this.state.refundStatus === 'undefined') && this.state.startType !== 1){
  2235. message.warning('发起原因不能为空')
  2236. return
  2237. }
  2238. // if (!this.state.pictureUrl && !Array.isArray(this.state.pictureUrl)) {
  2239. // message.warning('合同扫描件不能为空')
  2240. // return
  2241. // }
  2242. // if(this.state.pictureUrl.length === 0){
  2243. // message.warning('合同扫描件不能为空')
  2244. // return
  2245. // }
  2246. let _this = this;
  2247. let ajaxObj = null;
  2248. confirm({
  2249. title: startType === 0 ? '确定要发起外包吗?' : '确定要提交供应商信息吗?',
  2250. content: startType === 0 ? '高于总部价格,费用个人承担' : '确定提交供应商信息后,不可修改',
  2251. onOk() {
  2252. return new Promise((resolve, reject) => {
  2253. _this.setState({
  2254. sureOutLoading: true,
  2255. })
  2256. let data = {
  2257. tid: _this.state.id,
  2258. orderNo: _this.state.orderNo,
  2259. type: 1, //分类 0订单 1项目
  2260. startType: _this.state.startType, //支付类型 0外包 1供应商 false 0
  2261. companyName: _this.state.companyName,
  2262. amount: _this.state.amount,
  2263. outsourceRemarks: _this.state.outsourceRemarks,
  2264. unitNumber: _this.state.unitNumber,
  2265. unitPrice: _this.state.unitPrice,
  2266. id: _this.state.refundStatus === 2 ? _this.state.mid : undefined,//被拒绝外包申请时,需要传id
  2267. }
  2268. if(_this.state.startType !== 0){
  2269. data.actualOfficial = _this.state.containOfficialFees;//0实际已缴费 1实际未缴费
  2270. }
  2271. //refundStatus 0-待审核 ,1-审核通过,2-审核拒绝 审核被驳回时和第一次发起外包时,要填写发起原因
  2272. //this.state.startType 0外包 1供应商
  2273. //类型为外包时不需要传 发起原因
  2274. if((_this.state.refundStatus === 2 || typeof _this.state.refundStatus === 'undefined') && _this.state.startType !== 1){
  2275. data.reason = _this.state.reason
  2276. }
  2277. if (_this.state.projectType === 1) {
  2278. data.patentType = _this.state.patentType;
  2279. data.patentNameType = _this.state.patentNameType;
  2280. if (_this.state.patentNameType == 3) {
  2281. data.patentName = _this.state.patentName;
  2282. }
  2283. }
  2284. if (_this.state.pictureUrl && Array.isArray(_this.state.pictureUrl) && _this.state.pictureUrl.length !== 0){
  2285. data.pictureUrl = _this.getUrl(_this.state.pictureUrl).length
  2286. ? _this.getUrl(_this.state.pictureUrl)
  2287. : ''
  2288. }
  2289. ajaxObj = $.ajax({
  2290. method: 'POST',
  2291. dataType: 'json',
  2292. crossDomain: false,
  2293. url:
  2294. globalConfig.context + '/api/admin/outsourceOrg/outsourceProjectAudit',
  2295. data: data,
  2296. }).done(
  2297. async function (data) {
  2298. _this.setState({
  2299. sureOutLoading: false,
  2300. })
  2301. if (!data.error.length) {
  2302. resolve();
  2303. message.success('提交成功!')
  2304. _this.waiDetail();
  2305. _this.thirdTable(_this.state.tid);
  2306. _this.getSelectOutsourceLog(_this.state.tid);
  2307. if(_this.state.paySubject.length === 0 ){
  2308. await _this.xiangqing(_this.state.tid);
  2309. // 获取Csort
  2310. await _this.getCsortData(localStorage.getItem('cSort'))
  2311. await _this.payNodeTable(_this.state.tid);
  2312. }else{
  2313. _this.payNodeTable(_this.state.tid)
  2314. }
  2315. } else {
  2316. message.warning(data.error[0].message);
  2317. reject();
  2318. }
  2319. }.bind(_this)
  2320. )
  2321. }).catch((err) => console.log(err));
  2322. },
  2323. onCancel() {
  2324. ajaxObj ? ajaxObj.abort() : '';
  2325. _this.setState({
  2326. sureOutLoading: false,
  2327. })
  2328. },
  2329. });
  2330. },
  2331. callback(e) {
  2332. this.setState({
  2333. activeKey: e,
  2334. })
  2335. if (e == 3) {
  2336. this.orderDetailData(this.state.orderNo)
  2337. this.xiangmu(this.state.orderNo)
  2338. this.jiedian(this.state.orderNo)
  2339. this.jiedianNew(this.state.orderNo)
  2340. }
  2341. },
  2342. getOrgCodeUrlWai(e) {
  2343. this.setState({ pictureUrl: e })
  2344. },
  2345. getUrl(url) {
  2346. let theorgCodeUrl = []
  2347. if (url.length) {
  2348. let picArr = []
  2349. url.map(function (item) {
  2350. if (item.response && item.response.data && item.response.data.length) {
  2351. picArr.push(item.response.data)
  2352. }
  2353. })
  2354. theorgCodeUrl = picArr.join(',')
  2355. }
  2356. return theorgCodeUrl
  2357. },
  2358. waiDetail() {
  2359. let url = window.location.href.substring(7)
  2360. this.setState({
  2361. waiDetailLoading: true,
  2362. })
  2363. let ajaxObj = $.ajax({
  2364. method: 'get',
  2365. dataType: 'json',
  2366. crossDomain: false,
  2367. url:
  2368. globalConfig.context + '/api/admin/outsourceOrg/orderOutsourceDtails',
  2369. data: {
  2370. tid: this.state.id,
  2371. orderNo: this.state.orderNo,
  2372. },
  2373. }).done(
  2374. function (data) {
  2375. if (!data.error.length && data.data) {
  2376. if(!isNaN(parseFloat(data.data.unitNumber))){
  2377. this.setState({
  2378. oldInfor: {
  2379. companyName:data.data.companyName,
  2380. unitPrice:data.data.unitPrice,
  2381. unitNumber:data.data.unitNumber,
  2382. amount:data.data.amount,
  2383. outsourceRemarks:data.data.outsourceRemarks,
  2384. refundStatus: data.data.refundStatus,
  2385. pictureUrl: data.data.pictureUrl
  2386. ? splitUrl(
  2387. data.data.pictureUrl,
  2388. ',',
  2389. globalConfig.avatarHost + '/upload',
  2390. url
  2391. )
  2392. : [], //图片地址
  2393. },
  2394. })
  2395. }else{
  2396. this.setState({
  2397. oldInfor: {},
  2398. })
  2399. }
  2400. this.setState({
  2401. containOfficialFees: data.data.actualOfficial,//官费类型 0实际已缴费 1实际未缴费
  2402. startType: data.data.startType, //类型
  2403. patentType: data.data.patentType, //专利类型
  2404. patentNameType: data.data.patentNameType, //专利名称类型
  2405. patentName: data.data.patentName, //专利名称
  2406. outsourceRemarks: data.data.outsourceRemarks,
  2407. remarks: data.data.remarks,
  2408. companyName: data.data.companyName,
  2409. amount: data.data.amount,
  2410. mid: data.data.id,
  2411. unitPrice: data.data.unitPrice,
  2412. refundStatus: data.data.refundStatus,
  2413. unitNumber: data.data.unitNumber, //如果存在 证明是以前的旧数据
  2414. pictureUrl: data.data.pictureUrl
  2415. ? splitUrl(
  2416. data.data.pictureUrl,
  2417. ',',
  2418. globalConfig.avatarHost + '/upload',
  2419. url
  2420. )
  2421. : [], //图片地址
  2422. createTimes: data.data.createTimes,
  2423. auditTimes: data.data.auditTimes,
  2424. },()=>{
  2425. this.setState({
  2426. waiDetailLoading: false,
  2427. })
  2428. })
  2429. } else if (data.error && data.error.length) {
  2430. message.warning(data.error[0].message);
  2431. this.setState({
  2432. waiDetailLoading: false,
  2433. })
  2434. } else if (!data.data) {
  2435. this.setState({
  2436. refundStatus: undefined,
  2437. waiDetailLoading: false,
  2438. })
  2439. }
  2440. }.bind(this)
  2441. )
  2442. this.setState({
  2443. orderOutsourceDtailsAjaxObj: ajaxObj
  2444. })
  2445. },
  2446. rizhi() {
  2447. this.setState({
  2448. loading: true,
  2449. })
  2450. $.ajax({
  2451. method: 'get',
  2452. dataType: 'json',
  2453. crossDomain: false,
  2454. url: '/api/admin/newOrder/selectOrderLog',
  2455. data: {
  2456. orderNo: this.state.orderNo,
  2457. },
  2458. success: function (data) {
  2459. let theArr = []
  2460. let thisData = data.data
  2461. if (!thisData.length) {
  2462. if (data.error && data.error.length) {
  2463. message.warning(data.error[0].message)
  2464. }
  2465. thisData = {}
  2466. } else {
  2467. for (let i = 0; i < data.data.length; i++) {
  2468. let thisdata = data.data[i]
  2469. theArr.push({
  2470. processName: thisdata.processName,
  2471. adminName: thisdata.adminName,
  2472. createDate: thisdata.createDate,
  2473. remarks: thisdata.remarks,
  2474. })
  2475. }
  2476. }
  2477. this.setState({
  2478. dataSourceY: theArr,
  2479. })
  2480. }.bind(this),
  2481. }).always(
  2482. function () {
  2483. this.setState({
  2484. loading: false,
  2485. })
  2486. }.bind(this)
  2487. )
  2488. },
  2489. closeOrderLog() {
  2490. this.setState({
  2491. avisible: false,
  2492. })
  2493. },
  2494. getOrderLog() {
  2495. this.setState({
  2496. avisible: true,
  2497. })
  2498. this.rizhi()
  2499. },
  2500. async orderChange(key) {
  2501. this.setState({
  2502. activeKey: key,
  2503. })
  2504. if (key === '3') {
  2505. this.orderDetailData(this.state.orderNo)
  2506. this.xiangmu(this.state.orderNo)
  2507. this.jiedian(this.state.orderNo)
  2508. this.jiedianNew(this.state.orderNo)
  2509. }else if (key === '2') {
  2510. this.waiDetail();
  2511. this.thirdTable(this.state.tid);
  2512. if(this.state.paySubject.length === 0 ){
  2513. await this.xiangqing(this.state.tid);
  2514. // 获取Csort
  2515. await this.getCsortData(localStorage.getItem('cSort'))
  2516. await this.payNodeTable(this.state.tid);
  2517. }else{
  2518. await this.payNodeTable(this.state.tid)
  2519. }
  2520. this.getSelectOutsourceLog(this.state.tid);
  2521. }else if(key === "1"){
  2522. this.xiangqing(this.state.tid);
  2523. }
  2524. },
  2525. //节点列表
  2526. jiedian(orderNos) {
  2527. $.ajax({
  2528. method: 'get',
  2529. dataType: 'json',
  2530. crossDomain: false,
  2531. url: globalConfig.context + '/api/admin/newOrder/selectOrderDun',
  2532. data: {
  2533. orderNo: orderNos,
  2534. },
  2535. success: function (data) {
  2536. let theArr = []
  2537. let thisData = []
  2538. if (data.error.length || data.data.list == '') {
  2539. if (data.error && data.error.length) {
  2540. message.warning(data.error[0].message)
  2541. }
  2542. } else {
  2543. for (let i = 0; i < data.data.length; i++) {
  2544. thisData = data.data[i]
  2545. theArr.push({
  2546. key: i,
  2547. dunSubject: thisData.dunSubject
  2548. ? thisData.dunSubject.toString()
  2549. : '', //催款科目
  2550. id: thisData.id, //节点Id
  2551. money: thisData.money, //催款金额
  2552. dunStatus: thisData.dunStatus, //催款状态
  2553. })
  2554. }
  2555. this.setState({
  2556. jiedian: theArr,
  2557. })
  2558. }
  2559. }.bind(this),
  2560. })
  2561. },
  2562. jiedianNew(orderNos) {
  2563. $.ajax({
  2564. method: 'get',
  2565. dataType: 'json',
  2566. crossDomain: false,
  2567. url:
  2568. globalConfig.context + '/api/admin/newOrderDun/selectListNewOrderDun',
  2569. data: {
  2570. orderNo: orderNos,
  2571. },
  2572. success: function (data) {
  2573. if (data.error && data.error.length) {
  2574. message.warning(data.error[0].message)
  2575. } else {
  2576. let theArr = []
  2577. let thisData = []
  2578. let arr = data.data || []
  2579. let totalCui = 0
  2580. for (let i = 0; i < arr.length; i++) {
  2581. thisData = arr[i]
  2582. totalCui += +thisData.money
  2583. theArr.push({
  2584. key: i,
  2585. dunSubject: thisData.dunSubject
  2586. ? thisData.dunSubject.toString()
  2587. : '', //催款科目
  2588. id: thisData.id, //节点Id
  2589. tid: thisData.tid, //节点指定的第三方id
  2590. money: thisData.money, //催款金额
  2591. // orderNo: record ? record.orderNo : this.props.datauser.orderNo,
  2592. commodityName: thisData.commodityName,
  2593. projectType: thisData.projectType,
  2594. dunTypeName: thisData.dunTypeName,
  2595. status: thisData.status,
  2596. waitDay: thisData.waitDay,
  2597. effectiveCount: thisData.effectiveCount,
  2598. startDate: thisData.startDate,
  2599. dunType: thisData.dunType,
  2600. appropriationRatio: thisData.appropriationRatio,
  2601. customizeName: thisData.customizeName,
  2602. customizeTimes: thisData.customizeTimes,
  2603. })
  2604. }
  2605. if (!totalCui) {
  2606. totalCui = 0
  2607. }
  2608. totalCui = (Math.round(totalCui * 1000000) / 1000000).toFixed(6)
  2609. this.setState({
  2610. jiedianNew: theArr,
  2611. totalCui,
  2612. })
  2613. }
  2614. }.bind(this),
  2615. }).always(
  2616. function () {
  2617. this.setState({
  2618. loading: false,
  2619. })
  2620. }.bind(this)
  2621. )
  2622. },
  2623. orderDetailData(orderNos) {
  2624. this.setState({
  2625. loading: true,
  2626. })
  2627. $.ajax({
  2628. method: 'get',
  2629. dataType: 'json',
  2630. crossDomain: false,
  2631. url: globalConfig.context + '/api/admin/newOrder/getOrderNewDetail',
  2632. data: {
  2633. orderNo: orderNos,
  2634. },
  2635. success: function (data) {
  2636. if (data.error.length || data.data.list == '') {
  2637. if (data.error && data.error.length) {
  2638. message.warning(data.error[0].message)
  2639. this.setState({
  2640. loading: false,
  2641. })
  2642. }
  2643. } else {
  2644. let thisdata = data.data
  2645. this.setState({
  2646. loading: false,
  2647. userName: thisdata.userName,
  2648. primaryOrderNo: thisdata.primaryOrder,
  2649. additionalOrder: thisdata.additionalOrder,
  2650. contractNo: thisdata.contractNo,
  2651. orderData: thisdata,
  2652. isAddition: thisdata.additionalOrder ? true : false,
  2653. contractPictureUrl: thisdata.contractPictureUrl
  2654. ? splitUrl(
  2655. thisdata.contractPictureUrl,
  2656. ',',
  2657. globalConfig.avatarHost + '/upload'
  2658. )
  2659. : [],
  2660. })
  2661. }
  2662. }.bind(this),
  2663. })
  2664. },
  2665. //点击新增供应商
  2666. addcontactNew() {
  2667. this.state.contactListNew.push({
  2668. key: this.state.contactListNew.length,
  2669. money: '',
  2670. dunSubject: undefined,
  2671. orderNo: this.state.orderNo,
  2672. dunTarget: this.state.kehuId,
  2673. })
  2674. this.setState({
  2675. contactListNew: this.state.contactListNew,
  2676. cuiFlag: true,
  2677. })
  2678. },
  2679. //查看第三方信息表格
  2680. thirdTable(id) {
  2681. this.setState({
  2682. thirdInfoLoading: true,
  2683. })
  2684. let ajaxObj = $.ajax({
  2685. method: 'get',
  2686. dataType: 'json',
  2687. crossDomain: false,
  2688. url: globalConfig.context + '/api/admin/company/selectCompany',
  2689. data: {
  2690. tid: id,
  2691. },
  2692. success: function (data) {
  2693. if (data.error && data.error.length) {
  2694. message.warning(data.error[0].message)
  2695. } else {
  2696. let companyNameArr = [];
  2697. let theArr = [];
  2698. let thisData = [];
  2699. let arr = data.data || [];
  2700. let allTotalAmount = 0;
  2701. let type = 0;
  2702. let startType = 0;
  2703. let patentNameType = 0;
  2704. for (let i = 0; i < arr.length; i++) {
  2705. thisData = arr[i]
  2706. allTotalAmount =
  2707. (allTotalAmount * 10000 + thisData.totalAmount * 10000) / 10000
  2708. companyNameArr.push(thisData.companyName);
  2709. thisData.key = i;
  2710. type=thisData.patentType;
  2711. thisData.patentType = thisData.type;
  2712. theArr.push(thisData);
  2713. startType=thisData.startType;
  2714. patentNameType= thisData.patentNameType
  2715. }
  2716. if (!allTotalAmount) {
  2717. allTotalAmount = 0
  2718. }
  2719. for(let d=0;d<theArr.length;d++){
  2720. theArr[d].companyName = theArr[d].companyName+ '-' + theArr[d].id;
  2721. companyNameArr[d] = {
  2722. companyName: theArr[d].companyName,
  2723. id: theArr[d].id,
  2724. }
  2725. }
  2726. if(type === 0 || type === 1){
  2727. this.setState({
  2728. patentType: type === 0 ? 0 : 1, //0专利申请 1专利买卖
  2729. patentNameType: patentNameType, //0实用新型 1发明专利 2外观专利 3 其他
  2730. })
  2731. }
  2732. //设置项目类型
  2733. if(arr.length >0){
  2734. this.setState({
  2735. startType: startType
  2736. })
  2737. }
  2738. this.setState({
  2739. tid: id,
  2740. PayNodeCompany: companyNameArr,
  2741. thirdInfoList: theArr,
  2742. allTotalAmount: allTotalAmount,
  2743. },()=>{
  2744. this.projectTypeTabContent(this.state.projectType);
  2745. })
  2746. }
  2747. }.bind(this),
  2748. }).always(
  2749. function () {
  2750. this.setState({
  2751. thirdInfoLoading: false,
  2752. })
  2753. }.bind(this)
  2754. )
  2755. this.setState({
  2756. selectCompanyAjaxObj:ajaxObj
  2757. })
  2758. },
  2759. //外包日志列表
  2760. getSelectOutsourceLog(tid){
  2761. this.setState({
  2762. loading: true,
  2763. })
  2764. $.ajax({
  2765. method: 'get',
  2766. dataType: 'json',
  2767. crossDomain: false,
  2768. url: globalConfig.context + '/api/admin/outsourceOrg/selectOutsourceLog',
  2769. data: {
  2770. tid: tid,
  2771. },
  2772. success: function (data) {
  2773. if (data.error.length) {
  2774. if (data.error && data.error.length) {
  2775. message.warning(data.error[0].message);
  2776. }
  2777. } else {
  2778. this.setState({
  2779. outsourceLogs: data.data
  2780. })
  2781. }
  2782. this.setState({
  2783. loading: false,
  2784. })
  2785. }.bind(this),
  2786. }).always(
  2787. function () {
  2788. this.setState({
  2789. loading: false,
  2790. })
  2791. }.bind(this)
  2792. )
  2793. },
  2794. payNodeTable(id) {
  2795. this.setState({
  2796. payNodeLoading: true,
  2797. })
  2798. let ajaxObj = $.ajax({
  2799. method: 'get',
  2800. dataType: 'json',
  2801. crossDomain: false,
  2802. url: globalConfig.context + '/api/admin/company/selectPaymentNode',
  2803. data: {
  2804. tid: id,
  2805. },
  2806. success: function (data) {
  2807. if (data.error && data.error.length) {
  2808. message.warning(data.error[0].message)
  2809. } else {
  2810. let payNodeArr = []
  2811. let thisData = []
  2812. let arr = data.data || []
  2813. //对#5283自定义的补充展示
  2814. let infor = [...this.state.paySubject];
  2815. infor.push({ key: '自定义', value: '0' });
  2816. this.setState({
  2817. paySubject: infor
  2818. });
  2819. for (let i = 0; i < arr.length; i++) {
  2820. thisData = arr[i]
  2821. //遍历paySubject,获取当前dunType对应的key
  2822. infor.map((item) => {
  2823. if (item.value == thisData.dunType) {
  2824. thisData.dunType = item.key
  2825. }
  2826. })
  2827. payNodeArr.push({
  2828. key: i,
  2829. id: thisData.id, //付款节点Id
  2830. nodeId: thisData.id, //付款节点Id
  2831. tid: thisData.tid,
  2832. companyName: thisData.companyName, //供应商名称
  2833. projectType: thisData.projectType, //项目分类
  2834. dunType: thisData.dunType, //催款分类
  2835. unitPrice: thisData.unitPrice, //单价
  2836. quantity: thisData.quantity, //数量
  2837. totalAmount: thisData.totalAmount, //总价
  2838. partyAmount: thisData.partyAmount, //付款
  2839. partyTimes: thisData.partyTimes, //付款时间
  2840. cid: thisData.cid, //机构id
  2841. status: thisData.status, //催款状态 0-未支付 1-待全款 ,2已全款 status=2的时候已经全款,申请付款按钮可以去掉了
  2842. })
  2843. }
  2844. for(let d=0;d<payNodeArr.length;d++){
  2845. payNodeArr[d].companyName = payNodeArr[d].companyName+ '-' + payNodeArr[d].cid;
  2846. }
  2847. this.setState({
  2848. tid: id,
  2849. payNodeList: payNodeArr,
  2850. })
  2851. }
  2852. }.bind(this),
  2853. }).always(
  2854. function () {
  2855. this.setState({
  2856. payNodeLoading: false,
  2857. })
  2858. }.bind(this)
  2859. )
  2860. this.setState({
  2861. selectPaymentNodeAjaxObj: ajaxObj
  2862. })
  2863. return ajaxObj;
  2864. },
  2865. // 新增第三方供应商信息
  2866. addThirdList() {
  2867. this.setState({
  2868. ThirdListVisible: true,
  2869. })
  2870. },
  2871. updateProjectStatus(projectStatus,fn){
  2872. $.ajax({
  2873. url: globalConfig.context + '/api/admin/orderProject/updateProjectStatus',
  2874. method: 'post',
  2875. data: {
  2876. tid:this.state.tid,
  2877. projectStatus: projectStatus,
  2878. timeRecord: '{}'
  2879. },
  2880. }).done(
  2881. function (data) {
  2882. if (!data.error.length) {
  2883. this.setState({
  2884. timeRecordparse: {},
  2885. })
  2886. message.success('保存成功!');
  2887. fn();
  2888. } else {
  2889. message.warning(data.error[0].message)
  2890. }
  2891. }.bind(this)
  2892. )
  2893. },
  2894. // 新增支付节点
  2895. addPayNode() {
  2896. this.setState({
  2897. PayNodeVisible: true,
  2898. })
  2899. },
  2900. // 第三方信息自动计算总金额
  2901. calculatedAmount() {
  2902. let currentTotalPrice
  2903. currentTotalPrice = this.state.thirdUnitPrice * this.state.thirdQuantity
  2904. currentTotalPrice = currentTotalPrice.toFixed(6)
  2905. this.setState({
  2906. currentTotalPrice: currentTotalPrice,
  2907. })
  2908. },
  2909. // 付款节点自动计算总金额
  2910. payNodeCalculatedAmount(num) {
  2911. let currentTotalPrice,quantity,unitPrice
  2912. //获取当前供应商名称对应的单价并更新
  2913. this.state.thirdInfoList.forEach((item) => {
  2914. if (item.companyName === this.state.thirdCompanyName) {
  2915. currentTotalPrice = num ? item.unitPrice * num : item.quantity * item.unitPrice;
  2916. currentTotalPrice = currentTotalPrice.toFixed(6);
  2917. quantity = num ? num : item.quantity;
  2918. unitPrice = item.unitPrice;
  2919. }
  2920. })
  2921. this.setState({
  2922. payNodeQuantity: num ? num : quantity,
  2923. })
  2924. if(this.state.projectType !== 2){
  2925. this.setState({
  2926. currentTotalPrice: currentTotalPrice,
  2927. thirdUnitPrice: unitPrice
  2928. })
  2929. }
  2930. },
  2931. // 保存供应商信息
  2932. handleCancelq() {
  2933. let api
  2934. if (this.state.ThirdId) {
  2935. //修改
  2936. api = '/api/admin/company/updateCompany'
  2937. } else {
  2938. //新增
  2939. api = '/api/admin/company/addCompany'
  2940. }
  2941. let customerId = 0;
  2942. let isHave =this.state.customerArr.some((value)=>{
  2943. if(value.companyName === this.state.thirdCompanyName){
  2944. customerId = value.id
  2945. return true;
  2946. }
  2947. });
  2948. if(!isHave && this.state.projectType !== 0){
  2949. message.warning('请输入正确的供应商名称')
  2950. return;
  2951. }
  2952. this.setState({
  2953. loading: true,
  2954. })
  2955. // material: this.state.thirdMaterial, //材料
  2956. // urgent: this.state.thirdUrgent, //加急
  2957. // unitPrice: this.state.thirdUnitPrice, //单价
  2958. let data = {
  2959. id: this.state.ThirdId, //id
  2960. tid: this.state.tid, //订单编号
  2961. companyName: this.state.thirdCompanyName, //第三方名称
  2962. quantity: this.state.thirdQuantity, //数量
  2963. // totalAmount: this.state.currentTotalPrice, //总价
  2964. remarks: this.state.thirdRemarks, //备注
  2965. }
  2966. if(this.state.projectType === 0){
  2967. data.unitPrice = this.state.thirdUnitPrice;
  2968. }
  2969. if(isHave){
  2970. data.cid = customerId ////公司id
  2971. }
  2972. $.ajax({
  2973. url: globalConfig.context + api,
  2974. method: 'post',
  2975. dataType: 'json',
  2976. crossDomain: false,
  2977. data: data,
  2978. }).done(
  2979. function (data) {
  2980. this.setState({
  2981. loading: false,
  2982. })
  2983. if (!data.error.length) {
  2984. message.success('保存成功!')
  2985. this.setState({
  2986. ThirdId: '',
  2987. ThirdListVisible: false,
  2988. thirdCompanyName: '', //第三方名称
  2989. thirdUnitPrice: '', //单价
  2990. thirdQuantity: '', //数量
  2991. currentTotalPrice: '', //总价
  2992. thirdRemarks: '',
  2993. thirdUrgent: 0,
  2994. })
  2995. // this.visitCancel();
  2996. this.thirdTable(this.state.tid)
  2997. } else {
  2998. message.warning(data.error[0].message)
  2999. }
  3000. }.bind(this)
  3001. )
  3002. },
  3003. //保存付款节点
  3004. savePayNode() {
  3005. let api
  3006. if (this.state.ThirdId) {
  3007. //修改
  3008. api = '/api/admin/company/updatePaymentNode'
  3009. } else {
  3010. //新增
  3011. api = '/api/admin/company/addPaymentNode'
  3012. }
  3013. // totalAmount: this.state.currentTotalPrice, //总价
  3014. // partyAmount: this.state.partyAmount, //付款金额
  3015. //
  3016. let customerId=0;
  3017. this.state.PayNodeCompany.some((value)=>{
  3018. if(value.companyName === this.state.thirdCompanyName){
  3019. customerId = value.id
  3020. return true;
  3021. }
  3022. });
  3023. if(!this.state.thirdCompanyName){
  3024. message.error('请选择供应商名称');
  3025. return;
  3026. }
  3027. if(!this.state.paySubjectName){
  3028. message.error('请选择付款科目');
  3029. return;
  3030. }
  3031. if(!this.state.payNodeQuantity){
  3032. message.error('请输入数量');
  3033. return;
  3034. }
  3035. let data = {
  3036. id: this.state.ThirdId, //id
  3037. tid: this.state.tid, //订单编号
  3038. cid: customerId,//对应的第三方信息
  3039. companyName: this.state.thirdCompanyName.split('-')[0], //第三方名称
  3040. quantity: this.state.payNodeQuantity, //数量
  3041. dunType: this.state.dunType, //催款节点
  3042. projectType: this.state.cSort, //项目分类
  3043. }
  3044. if(this.state.paySubjectName === '0'){
  3045. if(!this.state.partyTimes){
  3046. message.error('请选择付款时间');
  3047. return;
  3048. }
  3049. data.partyTimes = this.state.partyTimes //付款时间
  3050. }
  3051. if(this.state.projectType !== 2){ //其他类型 0正常 1专利 2软著 3审计
  3052. data.totalAmount = this.state.currentTotalPrice //总价
  3053. data.unitPrice = this.state.thirdUnitPrice //单价
  3054. }
  3055. this.setState({
  3056. loading: true,
  3057. })
  3058. $.ajax({
  3059. url: globalConfig.context + api,
  3060. method: 'post',
  3061. dataType: 'json',
  3062. crossDomain: false,
  3063. data: data,
  3064. }).done(
  3065. function (data) {
  3066. this.setState({
  3067. loading: false,
  3068. })
  3069. if (!data.error.length) {
  3070. message.success('保存成功!')
  3071. this.setState({
  3072. ThirdId: '',
  3073. PayNodeVisible: false,
  3074. thirdCompanyName: '', //第三方名称
  3075. paySubjectName: '', //付款科目名称
  3076. thirdUnitPrice: '', //单价
  3077. thirdQuantity: '', //数量
  3078. payNodeQuantity: 1, //付款节点数量
  3079. currentTotalPrice: '', //总价
  3080. partyAmount: '', //付款金额
  3081. partyTimes: '', //付款时间
  3082. dunType: '', //催款节点
  3083. })
  3084. // this.visitCancel();
  3085. this.payNodeTable(this.state.tid)
  3086. } else {
  3087. message.warning(data.error[0].message)
  3088. }
  3089. }.bind(this)
  3090. )
  3091. },
  3092. // 取消
  3093. handleCancelclose() {
  3094. this.setState({
  3095. PayNodeVisible: false,
  3096. payNodeInfor: {},
  3097. ThirdId: '',
  3098. ThirdListVisible: false,
  3099. thirdCompanyName: '', //第三方名称
  3100. paySubjectName: '', //付款科目名称
  3101. thirdUnitPrice: '', //单价
  3102. partyTimes: '',
  3103. thirdQuantity: 1, //数量
  3104. payNodeQuantity: 1,
  3105. currentTotalPrice: '', //总价
  3106. thirdRemarks: '',
  3107. thirdUrgent: 0, //加急状态
  3108. })
  3109. },
  3110. // 删除供应商信息
  3111. confirmDeletNew(index,resolve=()=>{},reject=()=>{}) {
  3112. let arr = this.state.payNodeList.filter((v)=>{
  3113. return v.companyName === index.companyName
  3114. });
  3115. let _this = this;
  3116. if(arr.length > 0){
  3117. confirm({
  3118. title: '确定要删除此供应商信息吗?',
  3119. content: '此供应商存在'+arr.length+'条付款节点信息,删除后对应的付款节点也会一起删除',
  3120. onOk() {
  3121. return new Promise((resolve, reject) => {
  3122. let str = '';
  3123. arr.map((value)=>{
  3124. str+=value.id+',';
  3125. })
  3126. _this.payNodeConfirmDeletNew({
  3127. id: str
  3128. });
  3129. _this.handleConfirmDelet(index,resolve,reject)
  3130. }).catch(() => console.log('Oops errors!'));
  3131. },
  3132. onCancel() {},
  3133. });
  3134. }else{
  3135. this.handleConfirmDelet(index,resolve,reject)
  3136. }
  3137. },
  3138. handleConfirmDelet(index,resolve=()=>{},reject=()=>{}) {
  3139. this.setState({
  3140. loading: true,
  3141. ThirdListVisible: false,
  3142. })
  3143. let id = '';
  3144. if(index === -1){
  3145. if(this.state.thirdInfoList.length === 1){
  3146. id = this.state.thirdInfoList[0].id
  3147. }else{
  3148. this.state.thirdInfoList.map((value,index)=>{
  3149. id+=value.id+',';
  3150. })
  3151. }
  3152. }else{
  3153. id = index.id
  3154. }
  3155. $.ajax({
  3156. url: globalConfig.context + '/api/admin/company/deleteCompany',
  3157. method: 'post',
  3158. data: {
  3159. id: id,
  3160. },
  3161. }).done(
  3162. function (data) {
  3163. this.setState({
  3164. loading: false,
  3165. })
  3166. if (!data.error.length) {
  3167. message.success('删除成功!')
  3168. this.thirdTable(this.state.tid)
  3169. resolve();
  3170. } else {
  3171. message.warning(data.error[0].message)
  3172. reject();
  3173. }
  3174. }.bind(this)
  3175. )
  3176. },
  3177. // 删除付款节点
  3178. payNodeConfirmDeletNew(index,resolve=()=>{},reject=()=>{}) {
  3179. this.setState({
  3180. loading: true,
  3181. PayNodeVisible: false,
  3182. })
  3183. let id = '';
  3184. if(index === -1){
  3185. this.state.payNodeList.map((value,index)=>{
  3186. id+=value.id+',';
  3187. })
  3188. }else{
  3189. id = index.id
  3190. }
  3191. $.ajax({
  3192. url: globalConfig.context + '/api/admin/company/deletePaymentNode',
  3193. method: 'post',
  3194. data: {
  3195. id: id,
  3196. },
  3197. }).done(
  3198. function (data) {
  3199. this.setState({
  3200. loading: false,
  3201. })
  3202. if (!data.error.length) {
  3203. message.success('删除成功!')
  3204. resolve();
  3205. this.payNodeTable(this.state.tid)
  3206. } else {
  3207. message.warning(data.error[0].message)
  3208. reject();
  3209. }
  3210. }.bind(this)
  3211. )
  3212. },
  3213. //点击供应商详情
  3214. tableRowClickOne(record) {
  3215. this.setState({
  3216. ThirdListVisible: true,
  3217. ThirdId: record.id, //供应商id
  3218. thirdCompanyName: record.companyName, //第三方名称
  3219. thirdUnitPrice: record.unitPrice, //单价
  3220. thirdQuantity: record.quantity, //数量
  3221. currentTotalPrice: record.totalAmount, //总价
  3222. thirdMaterial: record.material, //有无材料
  3223. thirdUrgent: record.urgent, //加急情况
  3224. thirdRemarks: record.remarks,
  3225. audit: record.audit,//审计
  3226. assets: record.assets,//公司资产
  3227. income: record.income,//收入
  3228. })
  3229. },
  3230. //点击付款节点详情
  3231. payNodeTableRowClickOne(record) {
  3232. this.setState({
  3233. PayNodeVisible: true,
  3234. ThirdId: record.id, //供应商id
  3235. thirdCompanyName: record.companyName, //第三方名称
  3236. thirdUnitPrice: record.unitPrice, //单价
  3237. thirdQuantity: record.quantity, //供应商数量
  3238. payNodeQuantity: record.quantity, //付款节点数量
  3239. currentTotalPrice: record.totalAmount, //总价
  3240. partyTimes: record.partyTimes,
  3241. paySubjectName: record.dunType,
  3242. });
  3243. let obj = JSON.parse(JSON.stringify(record));
  3244. this.state.paySubject.some((value)=>{
  3245. if(value.key === obj.dunType){
  3246. obj.dunType = value.value;
  3247. return true;
  3248. }
  3249. });
  3250. this.setState({
  3251. payNodeInfor: obj, //付款节点详情
  3252. });
  3253. },
  3254. render() {
  3255. const formItemLayout = {
  3256. labelCol: { span: 8 },
  3257. wrapperCol: { span: 14 },
  3258. }
  3259. let departmentArr = this.state.departmentArr || []
  3260. return (
  3261. <div className="user-content">
  3262. {this.state.resVisible ? (
  3263. <ResolutionDetail
  3264. cancel={this.resCancel}
  3265. detail={this.state.resRecord}
  3266. visible={this.state.resVisible}
  3267. id={this.state.resRecord.orderNo}
  3268. />
  3269. ) : (
  3270. ''
  3271. )}
  3272. <ShowModalDiv ShowModal={this.state.showModal} />
  3273. <div className="content-title" style={{ marginBottom: 10 }}>
  3274. <span style={{ fontWeight: 900, fontSize: 16 }}>项目任务</span>
  3275. </div>
  3276. <Tabs defaultActiveKey="2" className="test" bordered>
  3277. <TabPane tab="搜索" key="2">
  3278. <div className="user-search" style={{ marginLeft: 10 }}>
  3279. <Input
  3280. placeholder="客户名称"
  3281. value={this.state.nameSearch}
  3282. onChange={(e) => {
  3283. this.setState({ nameSearch: e.target.value })
  3284. }}
  3285. />
  3286. <Input
  3287. placeholder="订单编号"
  3288. value={this.state.orderNoSearch}
  3289. onChange={(e) => {
  3290. this.setState({ orderNoSearch: e.target.value })
  3291. }}
  3292. />
  3293. <Input
  3294. placeholder="合同编号"
  3295. value={this.state.contractNoSearch}
  3296. onChange={(e) => {
  3297. this.setState({ contractNoSearch: e.target.value })
  3298. }}
  3299. />
  3300. <Input
  3301. placeholder="项目编号"
  3302. value={this.state.taskNoSearch}
  3303. onChange={(e) => {
  3304. this.setState({ taskNoSearch: e.target.value })
  3305. }}
  3306. />
  3307. <Select
  3308. placeholder="选择部门"
  3309. style={{ width: 150, marginRight: '10px' }}
  3310. value={this.state.departmenttSearch}
  3311. onChange={(e) => {
  3312. this.setState({ departmenttSearch: e })
  3313. }}
  3314. >
  3315. {departmentArr.map(function (item) {
  3316. return (
  3317. <Select.Option key={item.id}>{item.name}</Select.Option>
  3318. )
  3319. })}
  3320. </Select>
  3321. <Cascader
  3322. placeholder="项目状态"
  3323. style={{ width: 150, marginRight: '10px' }}
  3324. options={projectStatusCascader}
  3325. value={this.state.projectStatusSearch}
  3326. onChange={(e)=>{
  3327. this.setState({
  3328. projectStatusSearch: e
  3329. })
  3330. }}
  3331. />
  3332. <Select
  3333. placeholder="特批状态"
  3334. style={{ width: 150, marginRight: '10px' }}
  3335. value={this.state.approvalSearch}
  3336. onChange={(e) => {
  3337. this.setState({ approvalSearch: e })
  3338. console.log(this.state.approvalSearch)
  3339. }}
  3340. >
  3341. <Select.Option key={0}>非特批</Select.Option>
  3342. <Select.Option key={1}>特批</Select.Option>
  3343. </Select>
  3344. <Select
  3345. placeholder="外包状态"
  3346. style={{ width: 150, marginRight: '10px' }}
  3347. value={this.state.outsourceStatusSearch}
  3348. onChange={(e) => {
  3349. this.setState({ outsourceStatusSearch: e })
  3350. console.log(this.state.outsourceStatusSearch)
  3351. }}
  3352. >
  3353. <Select.Option key={0}>外包待审核</Select.Option>
  3354. {/* <Select.Option key={1}>外包审核通过</Select.Option> */}
  3355. <Select.Option key={2}>外包审核驳回</Select.Option>
  3356. <Select.Option key={999}>全部</Select.Option>
  3357. </Select>
  3358. <Button type="primary" onClick={this.search}>
  3359. 搜索
  3360. </Button>
  3361. <Button
  3362. onClick={(e) => {
  3363. this.reset(true)
  3364. }}
  3365. >
  3366. 重置
  3367. </Button>
  3368. {/* <span>更多搜索<Switch defaultChecked={false} onChange={this.searchSwitch.bind(this)} /></span>
  3369. <div className="search-more" style={this.state.searchMore ? { display: 'none' } : {}}>
  3370. <span>订单时间 :</span>
  3371. <RangePicker
  3372. value={[this.state.releaseDate[0] ? moment(this.state.releaseDate[0]) : null,
  3373. this.state.releaseDate[1] ? moment(this.state.releaseDate[1]) : null]}
  3374. onChange={(data, dataString) => { this.setState({ releaseDate: dataString }); }} />
  3375. </div> */}
  3376. </div>
  3377. </TabPane>
  3378. <TabPane tab="导出Excel" key="3">
  3379. <Button
  3380. type="primary"
  3381. style={{ margin: '11px 0 10px 10px' }}
  3382. onClick={this.exportExec}
  3383. >
  3384. 导出Excel
  3385. </Button>
  3386. </TabPane>
  3387. <TabPane tab="更改表格显示数据" key="1">
  3388. <div style={{ marginLeft: 10 }}>
  3389. <ChooseList
  3390. columns={this.state.columns}
  3391. changeFn={this.changeList}
  3392. changeList={this.state.changeList}
  3393. top={55}
  3394. margin={11}
  3395. />
  3396. </div>
  3397. </TabPane>
  3398. {/* <TabPane tab="批量操作" key="6">
  3399. <Button
  3400. type="primary"
  3401. disabled={this.state.selectedRowKeys.length == 0}
  3402. style={{ margin: "0px 0px 10px 10px" }}
  3403. onClick={e => {
  3404. e.stopPropagation(),
  3405. this.evaluateY(this.state.selectedRowKeys, "财务专员");
  3406. }}
  3407. >
  3408. 转交
  3409. </Button>
  3410. </TabPane> */}
  3411. </Tabs>
  3412. {/* <div className="user-search">
  3413. <Input
  3414. placeholder="客户名称"
  3415. value={this.state.nameSearch}
  3416. onChange={e => {
  3417. this.setState({ nameSearch: e.target.value });
  3418. }}
  3419. />
  3420. <Input
  3421. placeholder="订单编号"
  3422. value={this.state.orderNoSearch}
  3423. onChange={e => {
  3424. this.setState({ orderNoSearch: e.target.value });
  3425. }}
  3426. />
  3427. <Input
  3428. placeholder="项目编号"
  3429. value={this.state.taskNoSearch}
  3430. onChange={e => {
  3431. this.setState({ taskNoSearch: e.target.value });
  3432. }}
  3433. />
  3434. <Select
  3435. placeholder="选择部门"
  3436. style={{ width: 150, marginRight: "10px" }}
  3437. value={this.state.departmenttSearch}
  3438. onChange={e => {
  3439. this.setState({ departmenttSearch: e });
  3440. }}
  3441. >
  3442. {departmentArr.map(function(item) {
  3443. return <Select.Option key={item.id}>{item.name}</Select.Option>;
  3444. })}
  3445. </Select>
  3446. <Button type="primary" onClick={this.search}>
  3447. 搜索
  3448. </Button>
  3449. <Button onClick={this.reset}>重置</Button>
  3450. <Button
  3451. type="primary"
  3452. style={{ marginLeft: "10px" }}
  3453. onClick={this.exportExec}
  3454. >
  3455. 导出Excel
  3456. </Button>
  3457. <span>更多搜索<Switch defaultChecked={false} onChange={this.searchSwitch.bind(this)} /></span>
  3458. <div className="search-more" style={this.state.searchMore ? { display: 'none' } : {}}>
  3459. <span>订单时间 :</span>
  3460. <RangePicker
  3461. value={[this.state.releaseDate[0] ? moment(this.state.releaseDate[0]) : null,
  3462. this.state.releaseDate[1] ? moment(this.state.releaseDate[1]) : null]}
  3463. onChange={(data, dataString) => { this.setState({ releaseDate: dataString }); }} />
  3464. </div>
  3465. </div> */}
  3466. <div className="patent-table">
  3467. <Spin spinning={this.state.loading}>
  3468. <Table
  3469. columns={
  3470. this.state.changeList == undefined
  3471. ? this.state.columns
  3472. : this.state.changeList
  3473. }
  3474. dataSource={this.state.dataSource}
  3475. pagination={this.state.pagination}
  3476. scroll={{ x: 'max-content', y: 0 }}
  3477. onRowClick={this.tableRowClick.bind(this)}
  3478. bordered
  3479. size={'small'}
  3480. />
  3481. </Spin>
  3482. </div>
  3483. <Assign
  3484. title="项目"
  3485. selApi={'/api/admin/orderProject/projectDistribution'}
  3486. data={this.state.assignData}
  3487. showDesc={this.state.assignVisible}
  3488. closeDesc={this.closeAssign.bind(this)}
  3489. fenpaiData={8}
  3490. specially={0}
  3491. roleName={this.state.nub}
  3492. requestMethod={'post'}
  3493. flag={this.state.flag}
  3494. all={this.state}
  3495. />
  3496. {this.state.visible ? <Modal
  3497. className="customeDetails"
  3498. footer=""
  3499. title=""
  3500. width="900px"
  3501. visible={this.state.visible}
  3502. maskClosable={false}
  3503. onOk={()=>{
  3504. this.visitOk();
  3505. this.state.selectCompanyAjaxObj ? this.state.selectCompanyAjaxObj.abort() : null;
  3506. this.state.selectPaymentNodeAjaxObj ? this.state.selectPaymentNodeAjaxObj.abort() : null;
  3507. this.state.orderOutsourceDtailsAjaxObj ? this.state.orderOutsourceDtailsAjaxObj.abort() : null;
  3508. }}
  3509. onCancel={()=>{
  3510. this.visitCancel();
  3511. this.state.selectCompanyAjaxObj ? this.state.selectCompanyAjaxObj.abort() : null;
  3512. this.state.selectPaymentNodeAjaxObj ? this.state.selectPaymentNodeAjaxObj.abort() : null;
  3513. this.state.orderOutsourceDtailsAjaxObj ? this.state.orderOutsourceDtailsAjaxObj.abort() : null;
  3514. }}
  3515. >
  3516. <div style={{position:"relative"}}>
  3517. <div style={{
  3518. position: "absolute",
  3519. inset:'-15px',
  3520. zIndex: 1000,
  3521. //0未开始 1已开始 2已暂停 3已完成 4已驳回 5已退单
  3522. display: parseInt(this.state.projectStatus) === 0 ? 'flex' : 'none',
  3523. justifyContent:'center',
  3524. paddingTop: '300px',
  3525. background: 'rgba(0,0,0,0.7)',
  3526. borderRadius: '4px',
  3527. borderTopRightRadius: '96px',
  3528. }}>
  3529. <Button
  3530. type="primary"
  3531. size='large'
  3532. onClick={()=>{
  3533. //0未开始 1已开始 2已暂停 3已完成 4已驳回 5已退单
  3534. this.updateProjectStatus(1,()=>{
  3535. this.xiangqing(this.state.id)
  3536. });
  3537. }}>
  3538. 开始启动项目
  3539. </Button>
  3540. </div>
  3541. <Tabs
  3542. tabBarExtraContent={
  3543. <div style={{fontWeight:'bold',paddingRight:'15px'}}>
  3544. <span>
  3545. 项目名称:
  3546. <span style={{color:'#F00',paddingRight:'5px'}}>{this.state.taskName}</span>
  3547. </span>
  3548. <span style={{marginLeft:'15px'}}>
  3549. 项目编号:
  3550. <span style={{color:'#F00',paddingRight:'5px'}}>
  3551. {this.state.id}
  3552. {
  3553. this.state.splitStatus === 2 ? '('+this.state.splitSuper+'-'+this.state.splitId+')' : ''
  3554. }
  3555. </span>
  3556. </span>
  3557. </div>
  3558. }
  3559. activeKey={this.state.activeKey}
  3560. onChange={(e) => {
  3561. this.callback(e)
  3562. if (e === "2") {
  3563. this.waiDetail();
  3564. this.thirdTable(this.state.tid);
  3565. this.payNodeTable(this.state.tid);
  3566. this.getSelectOutsourceLog(this.state.tid);
  3567. }else if(e === "1"){
  3568. this.xiangqing(this.state.tid);
  3569. }
  3570. }}
  3571. >
  3572. <TabPane tab="项目概况" key="1">
  3573. {this.state.activeKey === "1" ? <Form
  3574. layout="horizontal"
  3575. onSubmit={this.handleSubmit}
  3576. id="demand-form"
  3577. style={{ paddingBottom: '00px' }}
  3578. >
  3579. <Spin spinning={this.state.loading}>
  3580. <div className="clearfix">
  3581. <div className="clearfix">
  3582. <FormItem
  3583. className="half-item"
  3584. {...formItemLayout}
  3585. label="项目状态"
  3586. >
  3587. {
  3588. getProjectName(parseInt(this.state.projectStatus))
  3589. }
  3590. {
  3591. this.state.projectStatus !== 0 ? <Button
  3592. type="primary"
  3593. size="small"
  3594. style={{ marginTop: "5px" }}
  3595. onClick={()=>{
  3596. this.setState({
  3597. projectSituationVisible: true,
  3598. })
  3599. }}
  3600. >
  3601. 修改
  3602. </Button> : null
  3603. }
  3604. <Button
  3605. type="primary"
  3606. size="small"
  3607. style={{ marginTop: "5px", position: "absolute" }}
  3608. onClick={this.caozuorizhi}
  3609. >
  3610. 操作日志
  3611. </Button>
  3612. </FormItem>
  3613. <FormItem
  3614. className="half-item"
  3615. {...formItemLayout}
  3616. label="合同编号"
  3617. >
  3618. <span>{this.state.contractNo}</span>
  3619. </FormItem>
  3620. </div>
  3621. <div className="clearfix">
  3622. <FormItem
  3623. className="half-item"
  3624. {...formItemLayout}
  3625. label="是否特批"
  3626. >
  3627. <span>{getApproval(this.state.approval)}</span>
  3628. </FormItem>
  3629. <FormItem
  3630. className="half-item"
  3631. {...formItemLayout}
  3632. label="结算状态"
  3633. >
  3634. <span>
  3635. {getLiquidationStatus(this.state.liquidationStatus)}
  3636. </span>
  3637. </FormItem>
  3638. <FormItem
  3639. className="half-item"
  3640. {...formItemLayout}
  3641. label="流程状态"
  3642. >
  3643. <span>
  3644. {getProcessStatus(this.state.processStatus)}
  3645. </span>
  3646. </FormItem>
  3647. <FormItem
  3648. className="half-item"
  3649. {...formItemLayout}
  3650. label="订单编号"
  3651. >
  3652. <span>{this.state.orderNo}</span>
  3653. </FormItem>
  3654. </div>
  3655. <div className="clearfix">
  3656. <FormItem
  3657. className="half-item"
  3658. {...formItemLayout}
  3659. label="满意度表格"
  3660. >
  3661. <Radio.Group
  3662. value={this.state.formRetrieve}
  3663. onChange={(e) => {
  3664. this.setState({ formRetrieve: e.target.value })
  3665. }}
  3666. >
  3667. <Radio value={0}>未收回</Radio>
  3668. <Radio value={1}>已收回</Radio>
  3669. <Radio value={2}>其他</Radio>
  3670. </Radio.Group>
  3671. </FormItem>
  3672. <FormItem
  3673. className="half-item"
  3674. {...formItemLayout}
  3675. label="(满意度)备注"
  3676. >
  3677. <Input
  3678. type="textarea"
  3679. placeholder="请输入备注"
  3680. rows={2}
  3681. value={this.state.retrieveContent}
  3682. onChange={(e) => {
  3683. this.setState({
  3684. retrieveContent: e.target.value,
  3685. })
  3686. }}
  3687. />
  3688. </FormItem>
  3689. {/*<FormItem*/}
  3690. {/* className="half-item"*/}
  3691. {/* {...formItemLayout}*/}
  3692. {/* label="退单"*/}
  3693. {/*>*/}
  3694. {/* <Radio.Group*/}
  3695. {/* value={this.state.taskRefund}*/}
  3696. {/* onChange={(e) => {*/}
  3697. {/* this.setState({ taskRefund: e.target.value })*/}
  3698. {/* }}*/}
  3699. {/* >*/}
  3700. {/* <Radio value={0}>已完成</Radio>*/}
  3701. {/* <Radio value={1}>未完成</Radio>*/}
  3702. {/* <Radio value={2}>其他</Radio>*/}
  3703. {/* </Radio.Group>*/}
  3704. {/*</FormItem>*/}
  3705. </div>
  3706. <div className="clearfix">
  3707. {/*<FormItem*/}
  3708. {/* className="half-item"*/}
  3709. {/* {...formItemLayout}*/}
  3710. {/* label="(退单)备注"*/}
  3711. {/*>*/}
  3712. {/* <Input*/}
  3713. {/* type="textarea"*/}
  3714. {/* placeholder="请输入备注"*/}
  3715. {/* rows={2}*/}
  3716. {/* value={this.state.refundContent}*/}
  3717. {/* onChange={(e) => {*/}
  3718. {/* this.setState({ refundContent: e.target.value })*/}
  3719. {/* }}*/}
  3720. {/* />*/}
  3721. {/*</FormItem>*/}
  3722. <div style={{
  3723. paddingLeft: '8%',
  3724. }}>
  3725. <div style={{color:'#000',fontWeight:500}}>
  3726. 特别说明
  3727. <span style={{color: '#58a3ff',}}>(针对项目的特殊情况说明)</span>
  3728. </div>
  3729. <div style={{display:'flex',alignItems:'center',paddingTop: '10px'}}>
  3730. <div>备注:</div>
  3731. <Input
  3732. type="textarea"
  3733. placeholder="请输入备注"
  3734. rows={3}
  3735. style={{
  3736. width:'33%',
  3737. marginLeft: '10px',
  3738. }}
  3739. value={this.state.specialComment}
  3740. onChange={(e) => {
  3741. this.setState({ specialComment: e.target.value });
  3742. }}
  3743. />
  3744. </div>
  3745. </div>
  3746. </div>
  3747. <div className="clearfix">
  3748. <h3 className="sub-title">订单负责人信息</h3>
  3749. <FormItem
  3750. className="half-item"
  3751. {...formItemLayout}
  3752. label="负责人"
  3753. >
  3754. <span>
  3755. {this.state.salesmanName +
  3756. '(' +
  3757. this.state.depName +
  3758. ')'}
  3759. </span>
  3760. </FormItem>
  3761. <FormItem
  3762. className="half-item"
  3763. {...formItemLayout}
  3764. label="负责人电话"
  3765. >
  3766. <span>{this.state.salesmanMobile}</span>
  3767. </FormItem>
  3768. <FormItem
  3769. className="half-item"
  3770. {...formItemLayout}
  3771. label="当前财务负责人"
  3772. >
  3773. <span>{this.state.nowFinance}</span>
  3774. </FormItem>
  3775. <FormItem
  3776. className="half-item"
  3777. {...formItemLayout}
  3778. label="当前财务负责人电话"
  3779. >
  3780. <span>{this.state.nowFinanceMobile}</span>
  3781. </FormItem>
  3782. <FormItem
  3783. className="half-item"
  3784. {...formItemLayout}
  3785. style={{ opacity: '.5' }}
  3786. label="原负责人"
  3787. >
  3788. <span>{this.state.oldSalesmanName}</span>
  3789. </FormItem>
  3790. <FormItem
  3791. className="half-item"
  3792. {...formItemLayout}
  3793. style={{ opacity: '.5' }}
  3794. label="原负责人电话"
  3795. >
  3796. <span>{this.state.oldSalesmanMobile}</span>
  3797. </FormItem>
  3798. <FormItem
  3799. className="half-item"
  3800. {...formItemLayout}
  3801. style={{ opacity: '.5' }}
  3802. label="实际财务操作人"
  3803. >
  3804. <span>{this.state.financeName}</span>
  3805. </FormItem>
  3806. <FormItem
  3807. className="half-item"
  3808. {...formItemLayout}
  3809. style={{ opacity: '.5' }}
  3810. label="实际财务操作人电话"
  3811. >
  3812. <span>{this.state.financeMobile}</span>
  3813. </FormItem>
  3814. <FormItem
  3815. className="half-item"
  3816. {...formItemLayout}
  3817. label="订单留言"
  3818. >
  3819. <span>{this.state.orderRemarks}</span>
  3820. </FormItem>
  3821. <FormItem
  3822. className="half-item"
  3823. {...formItemLayout}
  3824. label=""
  3825. >
  3826. <Button onClick={this.getOrderLog}>查看订单日志</Button>
  3827. </FormItem>
  3828. <OrderRiZi
  3829. dataSourcerizhi={this.state.dataSourceY}
  3830. closeOrderLog={this.closeOrderLog}
  3831. visible={this.state.avisible}
  3832. loading={this.state.loading}
  3833. />
  3834. </div>
  3835. {/*<div className="clearfix">*/}
  3836. {/* <h3 className="sub-title">外包信息</h3>*/}
  3837. {/* <FormItem*/}
  3838. {/* className="half-item"*/}
  3839. {/* {...formItemLayout}*/}
  3840. {/* label="外包公司"*/}
  3841. {/* >*/}
  3842. {/* <Input*/}
  3843. {/* value={this.state.outsourceName}*/}
  3844. {/* onChange={(e) => {*/}
  3845. {/* this.setState({*/}
  3846. {/* outsourceName: e.target.value,*/}
  3847. {/* })*/}
  3848. {/* }}*/}
  3849. {/* placeholder="请输入外包公司"*/}
  3850. {/* style={{ width: '200px' }}*/}
  3851. {/* />*/}
  3852. {/* </FormItem>*/}
  3853. {/* <FormItem*/}
  3854. {/* className="half-item"*/}
  3855. {/* {...formItemLayout}*/}
  3856. {/* label="外包成本(万元)"*/}
  3857. {/* >*/}
  3858. {/* <Input*/}
  3859. {/* value={this.state.outsourcePrice}*/}
  3860. {/* onChange={(e) => {*/}
  3861. {/* this.setState({*/}
  3862. {/* outsourcePrice: e.target.value,*/}
  3863. {/* })*/}
  3864. {/* }}*/}
  3865. {/* placeholder="请输入外包成本"*/}
  3866. {/* style={{ width: '200px' }}*/}
  3867. {/* />*/}
  3868. {/* </FormItem>*/}
  3869. {/*</div>*/}
  3870. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  3871. <div className="clearfix">
  3872. <h3 className="sub-title">联系信息</h3>
  3873. <FormItem
  3874. className="half-item"
  3875. {...formItemLayout}
  3876. label="客户名称"
  3877. >
  3878. <span>{this.state.userName}</span>
  3879. </FormItem>
  3880. <FormItem
  3881. className="half-item"
  3882. {...formItemLayout}
  3883. label="企业法人"
  3884. >
  3885. <Input
  3886. placeholder="请输入法人名称"
  3887. value={this.state.legalPerson}
  3888. style={{ width: '200px' }}
  3889. onChange={(e) => {
  3890. this.setState({ legalPerson: e.target.value })
  3891. }}
  3892. ref="commodityQuantity"
  3893. />
  3894. </FormItem>
  3895. <FormItem
  3896. className="half-item"
  3897. {...formItemLayout}
  3898. label="法人电话"
  3899. >
  3900. <Input
  3901. placeholder="请输入法人电话"
  3902. value={this.state.legalPersonTel}
  3903. style={{ width: '200px' }}
  3904. onChange={(e) => {
  3905. this.setState({ legalPersonTel: e.target.value })
  3906. }}
  3907. ref="commodityQuantity"
  3908. />
  3909. </FormItem>
  3910. <FormItem
  3911. className="half-item"
  3912. {...formItemLayout}
  3913. label="客户联系人"
  3914. >
  3915. <Input
  3916. placeholder="请输入联系人名称"
  3917. value={this.state.contacts}
  3918. style={{ width: '200px' }}
  3919. onChange={(e) => {
  3920. this.setState({ contacts: e.target.value })
  3921. }}
  3922. ref="commodityQuantity"
  3923. />
  3924. </FormItem>
  3925. <FormItem
  3926. className="half-item"
  3927. {...formItemLayout}
  3928. label="联系人电话"
  3929. >
  3930. <Input
  3931. placeholder="请输入联系人电话"
  3932. value={this.state.contactMobile}
  3933. style={{ width: '200px' }}
  3934. onChange={(e) => {
  3935. this.setState({ contactMobile: e.target.value })
  3936. }}
  3937. ref="commodityQuantity"
  3938. />
  3939. </FormItem>
  3940. <FormItem
  3941. className="half-item"
  3942. {...formItemLayout}
  3943. label="企业地址"
  3944. >
  3945. <Cascader
  3946. options={areaSelect()}
  3947. value={this.state.ProvinceCity}
  3948. placeholder="选择城市"
  3949. style={{ width: '200px' }}
  3950. onChange={(e) => {
  3951. this.setState({ ProvinceCity: e })
  3952. }}
  3953. />
  3954. </FormItem>
  3955. <FormItem
  3956. className="half-item"
  3957. {...formItemLayout}
  3958. label=""
  3959. ></FormItem>
  3960. <FormItem
  3961. className="half-item"
  3962. {...formItemLayout}
  3963. label=""
  3964. >
  3965. <Input
  3966. placeholder="请输入详细地址"
  3967. value={this.state.postalAddress}
  3968. style={{ width: '200px', marginLeft: '12em' }}
  3969. onChange={(e) => {
  3970. this.setState({ postalAddress: e.target.value })
  3971. }}
  3972. ref="commodityQuantity"
  3973. />
  3974. </FormItem>
  3975. </div>
  3976. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  3977. <div className="clearfix">
  3978. <h3 className="sub-title">项目信息</h3>
  3979. {/*0通用 1专利 2软著 3审计 4双软 5高新 6商标*/}
  3980. {/*贯标需要显示*/}
  3981. {
  3982. this.state.isIso ?
  3983. <div>
  3984. <FormItem
  3985. className="half-item"
  3986. {...formItemLayout}
  3987. label="认证费"
  3988. >
  3989. <span>
  3990. {
  3991. this.state.ifCertificationFee === 1 ? '包含' : '不包含'
  3992. }
  3993. </span>
  3994. </FormItem>
  3995. {this.state.ifCertificationFee === 1 ?<FormItem
  3996. className="half-item"
  3997. {...formItemLayout}
  3998. label="认证费(万元)"
  3999. >
  4000. <Input
  4001. placeholder="请输入认证金额"
  4002. value={this.state.certificationFee}
  4003. style={{ width: '200px'}}
  4004. onChange={(e) => {
  4005. this.setState({ certificationFee: e.target.value })
  4006. }}
  4007. />
  4008. </FormItem> : null}
  4009. {this.state.ifCertificationFee === 1 ? <FormItem
  4010. className="half-item"
  4011. {...formItemLayout}
  4012. label=""
  4013. /> : null}
  4014. {this.state.ifCertificationFee === 1 ? <FormItem
  4015. className="half-item"
  4016. {...formItemLayout}
  4017. label="付款公司名称"
  4018. >
  4019. <Input
  4020. placeholder="请输入代付款公司名称"
  4021. value={this.state.certificationCorporate}
  4022. style={{ width: '200px'}}
  4023. onChange={(e) => {
  4024. this.setState({ certificationCorporate: e.target.value })
  4025. }}
  4026. ref="commodityQuantity"
  4027. />
  4028. </FormItem>:null}
  4029. </div> : null
  4030. }
  4031. <FormItem
  4032. className="half-item"
  4033. {...formItemLayout}
  4034. label="项目编号"
  4035. >
  4036. <span>
  4037. {this.state.splitStatus == 2
  4038. ? this.state.splitSuper + '-' + this.state.splitId
  4039. : this.state.id}
  4040. </span>
  4041. </FormItem>
  4042. <FormItem
  4043. className="half-item"
  4044. {...formItemLayout}
  4045. label="项目名称"
  4046. >
  4047. <span>{this.state.taskName}</span>
  4048. </FormItem>
  4049. {/*<FormItem*/}
  4050. {/* className="half-item"*/}
  4051. {/* {...formItemLayout}*/}
  4052. {/* label="项目状态"*/}
  4053. {/*>*/}
  4054. {/* <Select*/}
  4055. {/* placeholder="选择项目状态"*/}
  4056. {/* style={{ width: '200px' }}*/}
  4057. {/* value={this.state.taskStatus}*/}
  4058. {/* onChange={(e) => {*/}
  4059. {/* this.setState({ taskStatus: e })*/}
  4060. {/* }}*/}
  4061. {/* >*/}
  4062. {/* {taskStatus.map(function (item) {*/}
  4063. {/* return (*/}
  4064. {/* <Select.Option key={item.value}>*/}
  4065. {/* {item.key}*/}
  4066. {/* </Select.Option>*/}
  4067. {/* )*/}
  4068. {/* })}*/}
  4069. {/* </Select>*/}
  4070. {/*</FormItem>*/}
  4071. <FormItem
  4072. className="half-item"
  4073. {...formItemLayout}
  4074. label="项目类别"
  4075. >
  4076. <span>{this.state.cname}</span>
  4077. </FormItem>
  4078. <FormItem
  4079. className="half-item"
  4080. {...formItemLayout}
  4081. label="证书编号"
  4082. >
  4083. {this.state.certificateNumber}
  4084. </FormItem>
  4085. </div>
  4086. <div className="clearfix">
  4087. <h3 className="sub-title">申报系统账户信息</h3>
  4088. {/*<span style={{color:'red'}}>注:仅技术部可见</span>*/}
  4089. <FormItem
  4090. className="half-item"
  4091. {...formItemLayout}
  4092. label="用户名"
  4093. >
  4094. <Input
  4095. placeholder="请输入用户名"
  4096. value={this.state.declareUser}
  4097. style={{ width: '200px' }}
  4098. onChange={(e) => {
  4099. this.setState({ declareUser: e.target.value })
  4100. }}
  4101. />
  4102. </FormItem>
  4103. <FormItem
  4104. className="half-item"
  4105. {...formItemLayout}
  4106. label="密码"
  4107. >
  4108. <Input
  4109. placeholder="请输入密码"
  4110. value={this.state.declarePwd}
  4111. style={{ width: '200px' }}
  4112. onChange={(e) => {
  4113. this.setState({ declarePwd: e.target.value })
  4114. }}
  4115. />
  4116. </FormItem>
  4117. </div>
  4118. <div className="clearfix">
  4119. <h3 className="sub-title">项目申报进度</h3>
  4120. <DeclarationProgress
  4121. timeRecordparse={this.state.timeRecordparse}
  4122. startDate={this.state.startDate}
  4123. taskDate={this.state.taskDate}
  4124. list={[
  4125. {id:4,name:'完成时间',value:this.state.endDate},
  4126. {id:6,name:'受理时间',value:this.state.acceptDate},
  4127. {id:8,name:'公示时间',value:this.state.publicityDate},
  4128. {id:10,name:'发证时间',value:this.state.licenceDate},
  4129. {id:15,name:'立项金额',value:this.state.setUpAmount}
  4130. ]}/>
  4131. {/*专利显示 bpType: 0 正常 1专利 2软著 3审计 4双软 5高新 6商标*/}
  4132. {
  4133. this.state.bpType === 1 || this.state.bpType === 6 ?
  4134. <div>
  4135. <FormItem
  4136. className="half-item"
  4137. {...formItemLayout}
  4138. label="是否高新企业"
  4139. >
  4140. <Radio.Group
  4141. value={this.state.highTechStatus}
  4142. onChange={(e) => {
  4143. this.setState({ highTechStatus: e.target.value })
  4144. }}
  4145. >
  4146. <Radio value={1}>是</Radio>
  4147. <Radio value={0}>否</Radio>
  4148. </Radio.Group>
  4149. </FormItem>
  4150. <FormItem/>
  4151. <PatentSchedule
  4152. taskId={this.state.id}
  4153. bpType={this.state.bpType}
  4154. acceptCount={this.state.acceptCount}
  4155. certificatesCount={this.state.certificatesCount}
  4156. rejectCount={this.state.rejectCount}
  4157. commodityQuantity={this.state.commodityQuantity}
  4158. refresh={()=>{this.xiangqing(this.state.id)}}
  4159. onChange={(key,value)=>{
  4160. if(key === 'acceptCount'){
  4161. this.setState({
  4162. acceptCount: value
  4163. })
  4164. }
  4165. if(key === 'certificatesCount'){
  4166. this.setState({
  4167. certificatesCount: value
  4168. })
  4169. }
  4170. if(key === 'rejectCount'){
  4171. this.setState({
  4172. rejectCount: value
  4173. })
  4174. }
  4175. }}
  4176. />
  4177. </div> :
  4178. <div>
  4179. {/*高新显示 bpType: 0 正常 1专利 2软著 3审计 4双软 5高新 6商标*/}
  4180. {this.state.bpType === 5 ? <FormItem
  4181. className="half-item"
  4182. {...formItemLayout}
  4183. label="是否抽查">
  4184. <Radio.Group
  4185. value={this.state.spotCheckStatus}
  4186. onChange={(e) => {
  4187. this.setState({ spotCheckStatus: e.target.value })
  4188. }}
  4189. >
  4190. <Radio value={0}>否</Radio>
  4191. <Radio value={1}>是,未通过</Radio>
  4192. <Radio value={2}>是,通过</Radio>
  4193. </Radio.Group>
  4194. </FormItem> : null}
  4195. {this.state.bpType === 5 ? <FormItem/> : null}
  4196. {this.state.bpType === 5 ? <FormItem
  4197. className="half-item"
  4198. {...formItemLayout}
  4199. label="是否立项"
  4200. >
  4201. <Radio.Group
  4202. value={this.state.setUpStatus}
  4203. onChange={(e) => {
  4204. this.setState({ setUpStatus: e.target.value })
  4205. }}
  4206. >
  4207. <Radio value={0}>否</Radio>
  4208. <Radio value={1}>是</Radio>
  4209. </Radio.Group>
  4210. </FormItem> : null}
  4211. {this.state.bpType === 5 ? <FormItem
  4212. className="half-item"
  4213. {...formItemLayout}
  4214. label={this.state.setUpStatus === 1 ? "立项时间" : ''}
  4215. >
  4216. {this.state.setUpStatus === 1 ?<DatePicker
  4217. style={{
  4218. marginTop: '2px',
  4219. width: '200px',
  4220. height: '32px',
  4221. }}
  4222. showTime
  4223. format="YYYY-MM-DD"
  4224. onOk={() => {}}
  4225. value={
  4226. this.state.setUpTime
  4227. ? moment(this.state.setUpTime)
  4228. : null
  4229. }
  4230. onChange={(data, dataString) => {
  4231. this.setState({ setUpTime: dataString })
  4232. }}
  4233. /> : null }
  4234. </FormItem> : null}
  4235. {/*高新和科技项目显示 bpType: 0 正常 1专利 2软著 3审计 4双软 5高新 6商标*/}
  4236. {/*cSort: 3 科技项目 6: 会员*/}
  4237. {(this.state.bpType === 5 || this.state.cSort === 3) && <FormItem
  4238. className="half-item"
  4239. {...formItemLayout}
  4240. label="申报批次"
  4241. >
  4242. <Select
  4243. style={{ width: 200 }}
  4244. placeholder="请选择批次"
  4245. value={
  4246. this.state.declarationBatch
  4247. ? this.state.declarationBatch
  4248. : undefined
  4249. }
  4250. onChange={(e) => {
  4251. this.setState({
  4252. declarationBatch: e,
  4253. })
  4254. }}
  4255. >
  4256. <Option value={1}>第一批</Option>
  4257. <Option value={2}>第二批</Option>
  4258. <Option value={3}>第三批</Option>
  4259. <Option value={4}>第四批</Option>
  4260. </Select>
  4261. </FormItem>}
  4262. {/*只有科技项目才有是否到款*/}
  4263. {/*cSort: 3 科技项目 6: 会员*/}
  4264. {this.state.cSort === 3 && <FormItem
  4265. className="half-item"
  4266. {...formItemLayout}
  4267. label="是否到款"
  4268. >
  4269. <Radio.Group
  4270. value={this.state.arrivalMoney}
  4271. onChange={(e) => {
  4272. this.setState({ arrivalMoney: e.target.value })
  4273. }}
  4274. >
  4275. <Radio value={0}>未到企业</Radio>
  4276. <Radio value={1}>已到企业</Radio>
  4277. </Radio.Group>
  4278. </FormItem>}
  4279. </div>}
  4280. </div>
  4281. {this.state.bpType !== 1 && this.state.bpType !== 6 ? <div className="clearfix">
  4282. <FormItem
  4283. labelCol={{ span: 3 }}
  4284. wrapperCol={{ span: 16 }}
  4285. label="附件"
  4286. >
  4287. <Picture
  4288. domId={'myTask1'}
  4289. fileList={(e) => {
  4290. this.setState({ attachmentUrl: e })
  4291. }}
  4292. pictureUrl={this.state.attachmentUrl}
  4293. visible={this.props.visible}
  4294. data={{
  4295. sign: 'order_task_file',
  4296. url: '/api/admin/orderProject/uploadOrderTaskFile',
  4297. }}
  4298. />
  4299. </FormItem>
  4300. </div> : null}
  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. <Input
  4308. type="textarea"
  4309. placeholder="请输入项目说明"
  4310. rows={4}
  4311. disabled
  4312. value={this.state.taskComment}
  4313. onChange={(e) => {
  4314. if(this.state.taskCommentData){
  4315. let len = this.state.taskCommentData.length;
  4316. if(e.target.value.slice(0,len) !== this.state.taskCommentData){
  4317. message.warning('项目说明不允许删除与修改已存在的内容');
  4318. return;
  4319. }
  4320. }
  4321. this.setState({ taskComment: e.target.value })
  4322. }}
  4323. />
  4324. </FormItem>
  4325. </div> : null}
  4326. <div>
  4327. <h3 className="sub-title">项目业务</h3>
  4328. {this.state.processStatus == 0 ? (
  4329. <Button
  4330. type="primary"
  4331. onClick={this.addDetailed}
  4332. style={{
  4333. float: 'right',
  4334. marginRight: '50px',
  4335. marginBottom: '15px',
  4336. }}
  4337. >
  4338. 添加项目明细
  4339. </Button>
  4340. ) : (
  4341. ''
  4342. )}
  4343. </div>
  4344. <div className="patent-table">
  4345. <Spin spinning={this.state.loading}>
  4346. <Table
  4347. columns={this.state.columnsX}
  4348. dataSource={this.state.dataSourceX}
  4349. pagination={this.state.paginations}
  4350. onRowClick={this.tableRowClickX}
  4351. bordered
  4352. size="small"
  4353. />
  4354. </Spin>
  4355. </div>
  4356. <div className="clearfix">
  4357. <Button
  4358. className="cancel"
  4359. type="primary"
  4360. // onClick={this.tijiaoOk}
  4361. onClick={() => {
  4362. let num = this.state.projectStatus
  4363. if (
  4364. num != 1 &&
  4365. num != 20 &&
  4366. num != 21
  4367. ) {
  4368. this.showDeleteConfirm(num, this.tijiaoOk)
  4369. } else {
  4370. this.tijiaoOk()
  4371. }
  4372. }}
  4373. style={{ marginLeft: '200px', marginTop: '10px' }}
  4374. htmlType="submit"
  4375. >
  4376. 保存
  4377. </Button>
  4378. <Button
  4379. className="cancel"
  4380. type="ghost"
  4381. onClick={this.visitCancel}
  4382. style={{ marginLeft: '50px', marginTop: '10px' }}
  4383. >
  4384. 取消
  4385. </Button>
  4386. </div>
  4387. </div>
  4388. </Spin>
  4389. </Form> : <div/>}
  4390. </TabPane>
  4391. {/*<TabPane tab="外包/供应商信息" key="2">*/}
  4392. {/* <Spin spinning={this.state.sureOutLoading || this.state.waiDetailLoading || this.state.payNodeLoading || this.state.thirdInfoLoading}>*/}
  4393. {/* {this.state.refundStatus != 0 && this.state.refundStatus != 1 ? (*/}
  4394. {/* <div style={{ marginTop: 10 }}>*/}
  4395. {/* <div className="clearfix">*/}
  4396. {/* <FormItem*/}
  4397. {/* className="half-item"*/}
  4398. {/* labelCol={{ span: 3 }}*/}
  4399. {/* wrapperCol={{ span: 14 }}*/}
  4400. {/* label={*/}
  4401. {/* <span>*/}
  4402. {/* <strong style={{ color: '#f00' }}>*</strong>*/}
  4403. {/* 类型*/}
  4404. {/* </span>*/}
  4405. {/* }*/}
  4406. {/* >*/}
  4407. {/* <Radio.Group*/}
  4408. {/* disabled={this.state.payNodeLoading || this.state.thirdInfoLoading}*/}
  4409. {/* value={this.state.startType}*/}
  4410. {/* onChange={(e) => {*/}
  4411. {/* let _this = this;*/}
  4412. {/* if(this.state.thirdInfoList.length >0){*/}
  4413. {/* confirm({*/}
  4414. {/* title: '确定要切换吗?',*/}
  4415. {/* content: '切换将删除所有第三信息和付款节点',*/}
  4416. {/* onOk() {*/}
  4417. {/* return new Promise((resolve, reject) => {*/}
  4418. {/* _this.setState({ startType: e.target.value },()=>{*/}
  4419. {/* _this.projectTypeTabContent(_this.state.projectType);*/}
  4420. {/* })*/}
  4421. {/* _this.confirmDeletNew(-1,resolve,reject)*/}
  4422. {/* if(_this.state.payNodeList.length > 0){*/}
  4423. {/* _this.payNodeConfirmDeletNew(-1,resolve,reject);*/}
  4424. {/* }*/}
  4425. {/* }).catch(() => console.log('Oops errors!'));*/}
  4426. {/* },*/}
  4427. {/* onCancel() {},*/}
  4428. {/* });*/}
  4429. {/* }else{*/}
  4430. {/* this.setState({ startType: e.target.value },()=>{*/}
  4431. {/* this.projectTypeTabContent(this.state.projectType);*/}
  4432. {/* })*/}
  4433. {/* }*/}
  4434. {/* }}*/}
  4435. {/* >*/}
  4436. {/* <Radio value={0}>外包(不走总部)</Radio>*/}
  4437. {/* <Radio value={1}>供应商信息</Radio>*/}
  4438. {/* </Radio.Group>*/}
  4439. {/* </FormItem>*/}
  4440. {/* </div>*/}
  4441. {/* /!* 专利类型 *!/*/}
  4442. {/* <div*/}
  4443. {/* className="clearfix"*/}
  4444. {/* style={{*/}
  4445. {/* display: this.state.projectType === 1 ? 'block' : 'none',*/}
  4446. {/* }}*/}
  4447. {/* >*/}
  4448. {/* <FormItem*/}
  4449. {/* className="half-item"*/}
  4450. {/* labelCol={{ span: 4 }}*/}
  4451. {/* wrapperCol={{ span: 14 }}*/}
  4452. {/* label={*/}
  4453. {/* <span>*/}
  4454. {/* <strong style={{ color: '#f00' }}>*</strong>*/}
  4455. {/* 专利类型*/}
  4456. {/* </span>*/}
  4457. {/* }*/}
  4458. {/* >*/}
  4459. {/* <Radio.Group*/}
  4460. {/* disabled={this.state.payNodeLoading || this.state.thirdInfoLoading}*/}
  4461. {/* value={this.state.patentType}*/}
  4462. {/* onChange={(e) => {*/}
  4463. {/* let _this = this;*/}
  4464. {/* if(this.state.thirdInfoList.length >0){*/}
  4465. {/* confirm({*/}
  4466. {/* title: '确定要切换吗?',*/}
  4467. {/* content: '切换将删除所有第三信息和付款节点',*/}
  4468. {/* onOk() {*/}
  4469. {/* return new Promise((resolve, reject) => {*/}
  4470. {/* _this.setState({ patentType: e.target.value },()=>{*/}
  4471. {/* _this.projectTypeTabContent(_this.state.projectType);*/}
  4472. {/* })*/}
  4473. {/* _this.confirmDeletNew(-1,resolve,reject)*/}
  4474. {/* if(_this.state.payNodeList.length > 0){*/}
  4475. {/* _this.payNodeConfirmDeletNew(-1,resolve,reject);*/}
  4476. {/* }*/}
  4477. {/* }).catch(() => console.log('Oops errors!'));*/}
  4478. {/* },*/}
  4479. {/* onCancel() {},*/}
  4480. {/* });*/}
  4481. {/* }else{*/}
  4482. {/* this.setState({ patentType: e.target.value },()=>{*/}
  4483. {/* this.projectTypeTabContent(this.state.projectType);*/}
  4484. {/* })*/}
  4485. {/* }*/}
  4486. {/* }}*/}
  4487. {/* >*/}
  4488. {/* <Radio value={0}>专利申请/变更/转让</Radio>*/}
  4489. {/* <Radio value={1}>专利买卖</Radio>*/}
  4490. {/* </Radio.Group>*/}
  4491. {/* </FormItem>*/}
  4492. {/* </div>*/}
  4493. {/* <div*/}
  4494. {/* className="clearfix"*/}
  4495. {/* style={{*/}
  4496. {/* display: this.state.projectType === 1? 'block' : 'none',*/}
  4497. {/* }}*/}
  4498. {/* >*/}
  4499. {/* <FormItem*/}
  4500. {/* className="half-item"*/}
  4501. {/* labelCol={{ span: 4 }}*/}
  4502. {/* wrapperCol={{ span: 14 }}*/}
  4503. {/* label={*/}
  4504. {/* <span>*/}
  4505. {/* <strong style={{ color: '#f00' }}>*</strong>*/}
  4506. {/* 专利名称*/}
  4507. {/* </span>*/}
  4508. {/* }*/}
  4509. {/* >*/}
  4510. {/* <Radio.Group*/}
  4511. {/* disabled={this.state.payNodeLoading || this.state.thirdInfoLoading}*/}
  4512. {/* value={this.state.patentNameType}*/}
  4513. {/* onChange={(e) => {*/}
  4514. {/* let _this = this;*/}
  4515. {/* if(this.state.thirdInfoList.length >0){*/}
  4516. {/* confirm({*/}
  4517. {/* title: '确定要切换吗?',*/}
  4518. {/* content: '切换将删除所有第三信息和付款节点',*/}
  4519. {/* onOk() {*/}
  4520. {/* return new Promise((resolve, reject) => {*/}
  4521. {/* _this.setState({ patentNameType: e.target.value },()=>{*/}
  4522. {/* _this.projectTypeTabContent(_this.state.projectType);*/}
  4523. {/* })*/}
  4524. {/* _this.confirmDeletNew(-1,resolve,reject)*/}
  4525. {/* if(_this.state.payNodeList.length > 0){*/}
  4526. {/* _this.payNodeConfirmDeletNew(-1,resolve,reject);*/}
  4527. {/* }*/}
  4528. {/* }).catch(() => console.log('Oops errors!'));*/}
  4529. {/* },*/}
  4530. {/* onCancel() {},*/}
  4531. {/* });*/}
  4532. {/* }else{*/}
  4533. {/* this.setState({ patentNameType: e.target.value },()=>{*/}
  4534. {/* this.projectTypeTabContent(this.state.projectType);*/}
  4535. {/* })*/}
  4536. {/* }*/}
  4537. {/* }}*/}
  4538. {/* >*/}
  4539. {/* <Radio value={0}>实用新型专利</Radio>*/}
  4540. {/* <Radio value={1}>发明专利</Radio>*/}
  4541. {/* <Radio value={2}>外观专利</Radio>*/}
  4542. {/* /!*<Radio value={3}>*!/*/}
  4543. {/* /!* 其他*!/*/}
  4544. {/* /!* <Input*!/*/}
  4545. {/* /!* disabled={this.state.patentNameType !== 3}*!/*/}
  4546. {/* /!* value={this.state.patentName}*!/*/}
  4547. {/* /!* style={{ marginLeft: '15px' }}*!/*/}
  4548. {/* /!* onChange={(e) => {*!/*/}
  4549. {/* /!* this.setState({*!/*/}
  4550. {/* /!* patentName: e.target.value,*!/*/}
  4551. {/* /!* })*!/*/}
  4552. {/* /!* }}*!/*/}
  4553. {/* /!* placeholder="请填写专利名称"*!/*/}
  4554. {/* /!* />*!/*/}
  4555. {/* /!*</Radio>*!/*/}
  4556. {/* </Radio.Group>*/}
  4557. {/* </FormItem>*/}
  4558. {/* </div>*/}
  4559. {/* /!*外包类型无此选项*!/*/}
  4560. {/* {this.state.orderTaskOfficialCost === 1 && this.state.startType !== 0 ? <div className="clearfix">*/}
  4561. {/* <FormItem*/}
  4562. {/* className="half-item"*/}
  4563. {/* labelCol={{ span: 4 }}*/}
  4564. {/* wrapperCol={{ span: 14 }}*/}
  4565. {/* label={<span>官费</span>}>*/}
  4566. {/* <Radio.Group*/}
  4567. {/* value={this.state.containOfficialFees}*/}
  4568. {/* onChange={(e) => {*/}
  4569. {/* this.setState({ containOfficialFees: e.target.value })*/}
  4570. {/* }}*/}
  4571. {/* >*/}
  4572. {/* <Radio value={0}>实际已缴费</Radio>*/}
  4573. {/* <Radio value={1}>实际未缴费</Radio>*/}
  4574. {/* </Radio.Group>*/}
  4575. {/* </FormItem>*/}
  4576. {/* </div> : <div/>}*/}
  4577. {/* /!* 第三方信息专利 *!/*/}
  4578. {/* <div>*/}
  4579. {/* <span*/}
  4580. {/* style={{*/}
  4581. {/* fontSize: '18px',*/}
  4582. {/* }}*/}
  4583. {/* >*/}
  4584. {/* 第三方信息*/}
  4585. {/* </span>*/}
  4586. {/* <span*/}
  4587. {/* style={{*/}
  4588. {/* display: 'inline-block',*/}
  4589. {/* marginLeft: 10,*/}
  4590. {/* color: 'red',*/}
  4591. {/* }}*/}
  4592. {/* >*/}
  4593. {/* 金额总计(万元): {this.state.allTotalAmount}*/}
  4594. {/* </span>*/}
  4595. {/* <Button*/}
  4596. {/* type="primary"*/}
  4597. {/* onClick={(e) => {*/}
  4598. {/* //this.state.startType 0外包 1供应商 类型为外包时,当普通单*/}
  4599. {/* if(this.state.projectType === 1 && this.state.patentType === -1){*/}
  4600. {/* message.info('请先选择专利类型');*/}
  4601. {/* }else if(this.state.projectType === 1 && this.state.patentNameType === -1){*/}
  4602. {/* message.info('请先选择专利名称');*/}
  4603. {/* } else{*/}
  4604. {/* this.addThirdList()*/}
  4605. {/* }*/}
  4606. {/* }}*/}
  4607. {/* style={{*/}
  4608. {/* float: 'right',*/}
  4609. {/* marginRight: '50px',*/}
  4610. {/* marginBottom: '15px',*/}
  4611. {/* }}*/}
  4612. {/* >*/}
  4613. {/* +新增供应商名称*/}
  4614. {/* </Button>*/}
  4615. {/* </div>*/}
  4616. {/* <div*/}
  4617. {/* className="clearfix"*/}
  4618. {/* style={{*/}
  4619. {/* // display: this.state.type == 1 ? "block" : "none",*/}
  4620. {/* display: this.state.type == 1 ? 'block' : 'block',*/}
  4621. {/* }}*/}
  4622. {/* >*/}
  4623. {/* <Spin spinning={this.state.thirdInfoLoading}>*/}
  4624. {/* <Form layout="horizontal">*/}
  4625. {/* <Table*/}
  4626. {/* pagination={false}*/}
  4627. {/* columns={this.state.ContactsListsNew}*/}
  4628. {/* dataSource={this.state.thirdInfoList}*/}
  4629. {/* onRowClick={this.tableRowClickOne}*/}
  4630. {/* scroll={{ x: 'max-content', y: 0 }}*/}
  4631. {/* bordered*/}
  4632. {/* size="small"*/}
  4633. {/* />*/}
  4634. {/* <Col*/}
  4635. {/* span={24}*/}
  4636. {/* offset={9}*/}
  4637. {/* style={{ marginTop: '15px' }}*/}
  4638. {/* />*/}
  4639. {/* </Form>*/}
  4640. {/* </Spin>*/}
  4641. {/* </div>*/}
  4642. {/* /!*如果是软著类或者专利类的专利申请,隐藏付款节点 但当为外包类型时,无需隐藏*!/*/}
  4643. {/* /!*this.state.startType 0外包 1供应商*!/*/}
  4644. {/* <div*/}
  4645. {/* style={{*/}
  4646. {/* display: this.state.startType === 0 ? 'block' : ((this.state.projectType === 1 && this.state.patentType === 0) || this.state.projectType === 2? 'none' : 'block'), //0正常 1专利 2软著 3审计*/}
  4647. {/* }}*/}
  4648. {/* >*/}
  4649. {/* <span*/}
  4650. {/* style={{*/}
  4651. {/* fontSize: '18px',*/}
  4652. {/* }}*/}
  4653. {/* >*/}
  4654. {/* 付款节点*/}
  4655. {/* </span>*/}
  4656. {/* <span*/}
  4657. {/* style={{*/}
  4658. {/* display: 'inline-block',*/}
  4659. {/* marginLeft: 10,*/}
  4660. {/* color: 'red',*/}
  4661. {/* }}*/}
  4662. {/* />*/}
  4663. {/* <Button*/}
  4664. {/* type="primary"*/}
  4665. {/* onClick={(e) => {*/}
  4666. {/* this.addPayNode()*/}
  4667. {/* }}*/}
  4668. {/* style={{*/}
  4669. {/* float: 'right',*/}
  4670. {/* marginRight: '50px',*/}
  4671. {/* marginBottom: '15px',*/}
  4672. {/* }}*/}
  4673. {/* >*/}
  4674. {/* +新增付款节点*/}
  4675. {/* </Button>*/}
  4676. {/* </div>*/}
  4677. {/* /!*如果是软著类或者专利类的专利申请,隐藏付款节点 但当为外包类型时,无需隐藏*!/*/}
  4678. {/* <div*/}
  4679. {/* className="clearfix"*/}
  4680. {/* style={{*/}
  4681. {/* display: this.state.startType === 0 ? 'block' : ((this.state.projectType === 1 && this.state.patentType === 0) || this.state.projectType === 2? 'none' : 'block'), //0正常 1专利 2软著 3审计*/}
  4682. {/* }}*/}
  4683. {/* >*/}
  4684. {/* <Spin spinning={this.state.payNodeLoading}>*/}
  4685. {/* <Form layout="horizontal">*/}
  4686. {/* <Table*/}
  4687. {/* pagination={false}*/}
  4688. {/* columns={this.state.PayNodeTableColunms}*/}
  4689. {/* dataSource={this.state.payNodeList}*/}
  4690. {/* onRowClick={this.payNodeTableRowClickOne}*/}
  4691. {/* scroll={{ x: 'max-content', y: 0 }}*/}
  4692. {/* bordered*/}
  4693. {/* size="small"*/}
  4694. {/* />*/}
  4695. {/* <Col*/}
  4696. {/* span={24}*/}
  4697. {/* offset={9}*/}
  4698. {/* style={{ marginTop: '15px' }}*/}
  4699. {/* />*/}
  4700. {/* </Form>*/}
  4701. {/* </Spin>*/}
  4702. {/* </div>*/}
  4703. {/* <div className="clearfix">*/}
  4704. {/* <FormItem*/}
  4705. {/* className="half-item"*/}
  4706. {/* {...formItemLayout}*/}
  4707. {/* label={*/}
  4708. {/* <span>*/}
  4709. {/* <strong style={{ color: '#f00' }}>*</strong>备注*/}
  4710. {/* </span>*/}
  4711. {/* }*/}
  4712. {/* >*/}
  4713. {/* <TextArea*/}
  4714. {/* rows={4}*/}
  4715. {/* value={this.state.outsourceRemarks}*/}
  4716. {/* onChange={(e) => {*/}
  4717. {/* this.setState({*/}
  4718. {/* outsourceRemarks: e.target.value,*/}
  4719. {/* })*/}
  4720. {/* }}*/}
  4721. {/* placeholder="请输入备注"*/}
  4722. {/* />*/}
  4723. {/* </FormItem>*/}
  4724. {/* </div>*/}
  4725. {/* /!*<div className="clearfix">*/}
  4726. {/* <FormItem className="half-item"*/}
  4727. {/* {...formItemLayout}*/}
  4728. {/* label="上传协议文件" style={{height:"auto"}}>*/}
  4729. {/* <Upload header={{authorization: 'authorization-text'}} action={globalConfig.context + "/api/admin/outsourceOrg/uploadOutsourceFile"}*/}
  4730. {/* data={(e)=>{*/}
  4731. {/* return {*/}
  4732. {/* 'sign': e.name.substring(0,e.name.lastIndexOf("."))*/}
  4733. {/* }*/}
  4734. {/* }}*/}
  4735. {/* fileList={this.state.fileUrl}*/}
  4736. {/* onChange={(e)=>{*/}
  4737. {/* this.setState({*/}
  4738. {/* attachmentUrl:e.fileList,*/}
  4739. {/* fileUrl:e.fileList*/}
  4740. {/* })*/}
  4741. {/* }}>*/}
  4742. {/* {fileUrl.length>1?null:<Button>*/}
  4743. {/* <Icon type="upload" /> 点击上传*/}
  4744. {/* </Button>}*/}
  4745. {/* </Upload>*/}
  4746. {/* <span className="tip" style={{display:"inline-block"}}>支持文件格式: doc,excel,ppt</span>*/}
  4747. {/* </FormItem>*/}
  4748. {/* </div>*!/*/}
  4749. {/* <p*/}
  4750. {/* className="tip"*/}
  4751. {/* style={{*/}
  4752. {/* paddingBottom: '12px',*/}
  4753. {/* width: '240px',*/}
  4754. {/* marginLeft: '145px',*/}
  4755. {/* color: 'red',*/}
  4756. {/* }}*/}
  4757. {/* >*/}
  4758. {/* 首次派单项目,需上传协议,第2次起,同项目,只需写外包公司*/}
  4759. {/* </p>*/}
  4760. {/* <div className="clearfix">*/}
  4761. {/* <FormItem*/}
  4762. {/* labelCol={{ span: 4 }}*/}
  4763. {/* wrapperCol={{ span: 18 }}*/}
  4764. {/* label={*/}
  4765. {/* <span>*/}
  4766. {/* 合同/协议扫描件*/}
  4767. {/* </span>*/}
  4768. {/* }*/}
  4769. {/* >*/}
  4770. {/* <PicturesWall*/}
  4771. {/* domId={'myTask3'}*/}
  4772. {/* fileList={this.getOrgCodeUrlWai}*/}
  4773. {/* pictureUrl={this.state.pictureUrl}*/}
  4774. {/* />*/}
  4775. {/* <p style={{ color: 'red' }}>图片建议:要清晰。</p>*/}
  4776. {/* </FormItem>*/}
  4777. {/* </div>*/}
  4778. {/* /!*只有审核拒绝和第一次发起外包的时候才要填写发起原因 如果是类型为供应商则不需要发起原因*!/*/}
  4779. {/* /!*this.state.startType 0外包 1供应商*!/*/}
  4780. {/* {(typeof this.state.refundStatus === 'undefined' || this.state.refundStatus === 2) && this.state.startType !== 1 ? <div className="clearfix">*/}
  4781. {/* <FormItem*/}
  4782. {/* className="half-item"*/}
  4783. {/* {...formItemLayout}*/}
  4784. {/* label={*/}
  4785. {/* <span>*/}
  4786. {/* <strong style={{ color: '#f00' }}>*</strong>发起原因*/}
  4787. {/* </span>*/}
  4788. {/* }*/}
  4789. {/* >*/}
  4790. {/* <TextArea*/}
  4791. {/* rows={4}*/}
  4792. {/* value={this.state.reason}*/}
  4793. {/* onChange={(e) => {*/}
  4794. {/* this.setState({*/}
  4795. {/* reason: e.target.value,*/}
  4796. {/* })*/}
  4797. {/* }}*/}
  4798. {/* placeholder="请输入发起原因"*/}
  4799. {/* />*/}
  4800. {/* </FormItem>*/}
  4801. {/* </div> : <div/>}*/}
  4802. {/* <div className="clearfix">*/}
  4803. {/* <div*/}
  4804. {/* style={{*/}
  4805. {/* display: 'inline-black',*/}
  4806. {/* textAlign: 'center',*/}
  4807. {/* }}*/}
  4808. {/* >*/}
  4809. {/* <Button*/}
  4810. {/* type="primary"*/}
  4811. {/* loading={this.state.loading}*/}
  4812. {/* onClick={()=>{*/}
  4813. {/* this.sureOut(this.state.startType);*/}
  4814. {/* }}*/}
  4815. {/* >*/}
  4816. {/* {*/}
  4817. {/* this.state.startType === 0 ? "确认发起外包,不通过总部" : "提交供应商信息"*/}
  4818. {/* }*/}
  4819. {/* </Button>*/}
  4820. {/* <p className="tip" style={{ color: 'red' }}>*/}
  4821. {/* {*/}
  4822. {/* this.state.startType === 0 ? "提示:高于总部价格,费用个人承担" : "确定提交供应商信息,提交后,不可修改"*/}
  4823. {/* }*/}
  4824. {/* </p>*/}
  4825. {/* </div>*/}
  4826. {/* </div>*/}
  4827. {/* </div>*/}
  4828. {/* ) : (*/}
  4829. {/* <div>*/}
  4830. {/* {*/}
  4831. {/* this.state.visible && this.state.activeKey === '2' ?*/}
  4832. {/* <CheckProject*/}
  4833. {/* {...this.props}*/}
  4834. {/* orderTaskOfficialCost={this.state.orderTaskOfficialCost} //是否含官费 0无1有*/}
  4835. {/* containOfficialFees={this.state.containOfficialFees} //0:实际已缴费 1:实际未缴费*/}
  4836. {/* tid={this.state.tid}*/}
  4837. {/* oldInfor={this.state.oldInfor}*/}
  4838. {/* projectType={this.state.projectType} //0正常 1专利 2软著 3审计*/}
  4839. {/* patentNameType={this.state.patentNameType}*/}
  4840. {/* patentName={this.state.patentName}*/}
  4841. {/* patentType={this.state.patentType}*/}
  4842. {/* status={this.state.refundStatus}*/}
  4843. {/* isPreviewPay={true}*/}
  4844. {/* mid={this.state.mid}*/}
  4845. {/* thirdInfoList={this.state.thirdInfoList}*/}
  4846. {/* dataSource={this.state.payNodeList}*/}
  4847. {/* outsourceRemarks={this.state.outsourceRemarks}*/}
  4848. {/* fileList={this.state.pictureUrl}*/}
  4849. {/* startType={this.state.startType}*/}
  4850. {/* projectStatus={this.state.projectStatus}*/}
  4851. {/* onRefresh={()=>{*/}
  4852. {/* this.waiDetail();*/}
  4853. {/* this.thirdTable(this.state.tid);*/}
  4854. {/* this.getSelectOutsourceLog(this.state.tid);*/}
  4855. {/* this.payNodeTable(this.state.tid)*/}
  4856. {/* this.loadData(this.state.page)*/}
  4857. {/* }}*/}
  4858. {/* /> : <div/>*/}
  4859. {/* }*/}
  4860. {/* </div>*/}
  4861. {/* )}*/}
  4862. {/* {(this.state.refundStatus == 1 ||*/}
  4863. {/* this.state.refundStatus == 0 ||*/}
  4864. {/* this.state.refundStatus == 2) &&*/}
  4865. {/* this.state.startType !== 1*/}
  4866. {/* ? (*/}
  4867. {/* <div className="clearfix"*/}
  4868. {/* style={{*/}
  4869. {/* display: this.state.refundStatus == 0 ? 'none' : 'block',*/}
  4870. {/* }}*/}
  4871. {/* >*/}
  4872. {/* <hr className="division" />*/}
  4873. {/* {parseInt(this.state.startType) !== 1 ? <div style={{*/}
  4874. {/* color:'#F00',*/}
  4875. {/* fontWeight: 'bolder',*/}
  4876. {/* paddingBottom: '20px',*/}
  4877. {/* }}>*/}
  4878. {/* 审核结果: <span style={{paddingLeft:'20px'}}>{getRefundStatus(this.state.refundStatus)}</span>*/}
  4879. {/* </div> : <div/>}*/}
  4880. {/* <div className="outsourceLogList">*/}
  4881. {/* {*/}
  4882. {/* this.state.outsourceLogs && this.state.outsourceLogs.map((value,index)=>(*/}
  4883. {/* <div key={index} className="outsourceLogItem outsource">*/}
  4884. {/* <div style={{*/}
  4885. {/* display:'flex',*/}
  4886. {/* flexFlow:'row nowrap',*/}
  4887. {/* paddingBottom: '3px',*/}
  4888. {/* paddingTop: '3px',*/}
  4889. {/* }}>*/}
  4890. {/* <div>*/}
  4891. {/* {value.aname}*/}
  4892. {/* </div>*/}
  4893. {/* <div style={{paddingLeft:'5px'}}>*/}
  4894. {/* {*/}
  4895. {/* value.status === 0 ?*/}
  4896. {/* <Tag color="#2db7f5">发起外包审核</Tag> :*/}
  4897. {/* value.status === 1 ? <Tag color="#87d068">通过</Tag> :*/}
  4898. {/* <Tag color="#f50">驳回</Tag>*/}
  4899. {/* }*/}
  4900. {/* </div>*/}
  4901. {/* <div style={{*/}
  4902. {/* wordBreak: 'break-all',*/}
  4903. {/* maxWidth:'67%',*/}
  4904. {/* }}>*/}
  4905. {/* {value.remarks}*/}
  4906. {/* </div>*/}
  4907. {/* <div style={{paddingLeft: '10px'}}>*/}
  4908. {/* {value.createTimes}*/}
  4909. {/* </div>*/}
  4910. {/* </div>*/}
  4911. {/* </div>*/}
  4912. {/* ))*/}
  4913. {/* }*/}
  4914. {/* </div>*/}
  4915. {/* /!* <div*!/*/}
  4916. {/* /!* className="clearfix"*!/*/}
  4917. {/* /!* style={{*!/*/}
  4918. {/* /!* display: this.state.refundStatus == 0 ? 'none' : 'block',*!/*/}
  4919. {/* /!* }}*!/*/}
  4920. {/* /!* >*!/*/}
  4921. {/* /!* <FormItem*!/*/}
  4922. {/* /!* className="half-item"*!/*/}
  4923. {/* /!* {...formItemLayout}*!/*/}
  4924. {/* /!* label="审核意见"*!/*/}
  4925. {/* /!* >*!/*/}
  4926. {/* /!* <span>{this.state.remarks}</span>*!/*/}
  4927. {/* /!* </FormItem>*!/*/}
  4928. {/* /!* </div>*!/*/}
  4929. {/* /!* {parseInt(this.state.startType) !== 1 ?<div className="clearfix">*!/*/}
  4930. {/* /!* <FormItem*!/*/}
  4931. {/* /!* className="half-item"*!/*/}
  4932. {/* /!* {...formItemLayout}*!/*/}
  4933. {/* /!* label="审核结果"*!/*/}
  4934. {/* /!* >*!/*/}
  4935. {/* /!* <span>{getRefundStatus(this.state.refundStatus)}</span>*!/*/}
  4936. {/* /!* </FormItem>*!/*/}
  4937. {/* /!* </div> : <div/>}*!/*/}
  4938. {/* /!* <div*!/*/}
  4939. {/* /!* className="clearfix"*!/*/}
  4940. {/* /!* style={{*!/*/}
  4941. {/* /!* display: this.state.refundStatus == 0 ? 'none' : 'block',*!/*/}
  4942. {/* /!* }}*!/*/}
  4943. {/* /!* >*!/*/}
  4944. {/* /!* <FormItem*!/*/}
  4945. {/* /!* className="half-item"*!/*/}
  4946. {/* /!* {...formItemLayout}*!/*/}
  4947. {/* /!* label="审核时间"*!/*/}
  4948. {/* /!* >*!/*/}
  4949. {/* /!* <span>{this.state.auditTimes}</span>*!/*/}
  4950. {/* /!* </FormItem>*!/*/}
  4951. {/* /!* </div>*!/*/}
  4952. {/* </div>*/}
  4953. {/* ) : (*/}
  4954. {/* ''*/}
  4955. {/* )}*/}
  4956. {/* </Spin>*/}
  4957. {/*</TabPane>*/}
  4958. {!this.props.isZxs || (this.state.isHuiyuan && this.props.isZxs) ? (
  4959. <TabPane tab="订单详情" key="3">
  4960. <Spin spinning={this.state.loading}>
  4961. {this.state.activeKey === "3" ? <OrderDetail
  4962. orderData={this.state.orderData}
  4963. getOrderLog={this.getOrderLog}
  4964. dataSourceX={this.state.dataSourceX}
  4965. contactList={this.state.jiedian}
  4966. orderNo={this.state.orderNo}
  4967. totalCui={this.state.totalCui}
  4968. contactListNew={this.state.jiedianNew}
  4969. pictureUrl={this.state.contractPictureUrl}
  4970. /> : <div/>}
  4971. </Spin>
  4972. <OrderRiZi
  4973. dataSourcerizhi={this.state.dataSourceY}
  4974. closeOrderLog={this.closeOrderLog}
  4975. visible={this.state.avisible}
  4976. loading={this.state.loading}
  4977. />
  4978. </TabPane>
  4979. ) : (
  4980. ''
  4981. )}
  4982. </Tabs>
  4983. </div>
  4984. </Modal> : <div/>}
  4985. <Modal
  4986. maskClosable={false}
  4987. visible={this.state.lookVisible}
  4988. onOk={this.noCancel}
  4989. onCancel={this.noCancel}
  4990. width="500px"
  4991. title={'添加工时'}
  4992. footer=""
  4993. className="admin-desc-content"
  4994. >
  4995. <Form layout="horizontal" id="demand-form">
  4996. <Spin spinning={this.state.loading}>
  4997. <div className="clearfix">
  4998. <FormItem {...formItemLayout} label="工作日期">
  4999. <DatePicker
  5000. style={{ marginTop: '2px', width: '200px', height: '32px' }}
  5001. showTime
  5002. format="YYYY-MM-DD"
  5003. onOk={() => {}}
  5004. value={
  5005. this.state.taskDate ? moment(this.state.taskDate) : null
  5006. }
  5007. onChange={(data, dataString) => {
  5008. this.setState({ taskDate: dataString })
  5009. }}
  5010. />
  5011. </FormItem>
  5012. </div>
  5013. <div className="clearfix">
  5014. <FormItem {...formItemLayout} label="工作时长">
  5015. <Input
  5016. placeholder="请输入工作时长"
  5017. value={this.state.hours}
  5018. style={{ width: '200px' }}
  5019. onChange={(e) => {
  5020. this.setState({ hours: e.target.value })
  5021. }}
  5022. ref="commodityQuantity"
  5023. />
  5024. </FormItem>
  5025. </div>
  5026. <div className="clearfix">
  5027. <FormItem {...formItemLayout} label="工作内容">
  5028. <Input
  5029. type="textarea"
  5030. placeholder="请输入备注"
  5031. rows={4}
  5032. value={this.state.remarks}
  5033. onChange={(e) => {
  5034. this.setState({ remarks: e.target.value })
  5035. }}
  5036. />
  5037. </FormItem>
  5038. </div>
  5039. <div className="clearfix">
  5040. <Button
  5041. className="cancel"
  5042. type="primary"
  5043. onClick={this.tianjiaOk}
  5044. style={{ marginLeft: '100px' }}
  5045. htmlType="submit"
  5046. >
  5047. 确定
  5048. </Button>
  5049. <Button
  5050. className="cancel"
  5051. type="ghost"
  5052. onClick={this.noCancel}
  5053. style={{ marginLeft: '50px' }}
  5054. >
  5055. 取消
  5056. </Button>
  5057. </div>
  5058. </Spin>
  5059. </Form>
  5060. </Modal>
  5061. {this.state.speVisible ? <Modal
  5062. maskClosable={false}
  5063. visible={this.state.speVisible}
  5064. onOk={()=>{
  5065. this.visitOk();
  5066. this.state.selectCompanyAjaxObj ? this.state.selectCompanyAjaxObj.abort() : null;
  5067. this.state.selectPaymentNodeAjaxObj ? this.state.selectPaymentNodeAjaxObj.abort() : null;
  5068. this.state.orderOutsourceDtailsAjaxObj ? this.state.orderOutsourceDtailsAjaxObj.abort() : null;
  5069. }}
  5070. onCancel={()=>{
  5071. this.visitCancel();
  5072. this.state.selectCompanyAjaxObj ? this.state.selectCompanyAjaxObj.abort() : null;
  5073. this.state.selectPaymentNodeAjaxObj ? this.state.selectPaymentNodeAjaxObj.abort() : null;
  5074. this.state.orderOutsourceDtailsAjaxObj ? this.state.orderOutsourceDtailsAjaxObj.abort() : null;
  5075. }}
  5076. width="900px"
  5077. title=""
  5078. footer=""
  5079. className="admin-desc-content"
  5080. >
  5081. <div style={{position:"relative"}}>
  5082. <div style={{
  5083. position: "absolute",
  5084. inset:'-15px',
  5085. zIndex: 1000,
  5086. display: parseInt(this.state.projectStatus) === 0 ? 'flex' : 'none',
  5087. justifyContent:'center',
  5088. paddingTop: '300px',
  5089. background: 'rgba(0,0,0,0.7)',
  5090. borderRadius: '4px',
  5091. borderTopRightRadius: '96px',
  5092. }}>
  5093. <Button
  5094. type="primary"
  5095. size='large'
  5096. onClick={()=>{
  5097. //0未开始 1已开始 2已暂停 3已完成 4已驳回 5已退单
  5098. this.updateProjectStatus(1,()=>{
  5099. this.xiangqing(this.state.id)
  5100. });
  5101. }}>
  5102. 开始启动项目
  5103. </Button>
  5104. </div>
  5105. <Tabs
  5106. tabBarExtraContent={
  5107. <div style={{fontWeight:'bold',paddingRight:'15px'}}>
  5108. <span>
  5109. 项目名称:
  5110. <span style={{color:'#F00',paddingRight:'5px'}}>{this.state.taskName}</span>
  5111. </span>
  5112. <span style={{marginLeft:'15px'}}>
  5113. 项目编号:
  5114. <span style={{color:'#F00',paddingRight:'5px'}}>
  5115. {this.state.id}
  5116. {
  5117. this.state.splitStatus === 2 ? '('+this.state.splitSuper+'-'+this.state.splitId+')' : ''
  5118. }
  5119. </span>
  5120. </span>
  5121. </div>
  5122. }
  5123. activeKey={this.state.activeKey}
  5124. onChange={this.orderChange}
  5125. >
  5126. <TabPane tab="项目概况" key="1">
  5127. <div className="clearfix">
  5128. <FormItem
  5129. className="half-item"
  5130. {...formItemLayout}
  5131. label="项目状态"
  5132. >
  5133. {
  5134. getProjectName(parseInt(this.state.projectStatus))
  5135. }
  5136. {
  5137. this.state.projectStatus !== 0 ? <Button
  5138. type="primary"
  5139. size="small"
  5140. style={{ marginTop: "5px" }}
  5141. onClick={()=>{
  5142. this.setState({
  5143. projectSituationVisible: true,
  5144. })
  5145. }}
  5146. >
  5147. 修改
  5148. </Button> : null
  5149. }
  5150. <Button
  5151. type="primary"
  5152. size="small"
  5153. style={{ marginTop: "5px", position: "absolute" }}
  5154. onClick={this.caozuorizhi}
  5155. >
  5156. 操作日志
  5157. </Button>
  5158. </FormItem>
  5159. <FormItem
  5160. className="half-item"
  5161. {...formItemLayout}
  5162. label="合同编号"
  5163. >
  5164. <span>{this.state.contractNo}</span>
  5165. </FormItem>
  5166. </div>
  5167. <div className="clearfix">
  5168. <FormItem
  5169. className="half-item"
  5170. {...formItemLayout}
  5171. label="是否特批"
  5172. >
  5173. <span>{getApproval(this.state.approval)}</span>
  5174. </FormItem>
  5175. <FormItem
  5176. className="half-item"
  5177. {...formItemLayout}
  5178. label="结算状态"
  5179. >
  5180. <span>
  5181. {getLiquidationStatus(this.state.liquidationStatus)}
  5182. </span>
  5183. </FormItem>
  5184. <FormItem
  5185. className="half-item"
  5186. {...formItemLayout}
  5187. label="流程状态"
  5188. >
  5189. <span>{getProcessStatus(this.state.processStatus)}</span>
  5190. </FormItem>
  5191. <FormItem
  5192. className="half-item"
  5193. {...formItemLayout}
  5194. label="订单编号"
  5195. >
  5196. <span>{this.state.orderNo}</span>
  5197. </FormItem>
  5198. </div>
  5199. <div className="clearfix">
  5200. <FormItem
  5201. className="half-item"
  5202. {...formItemLayout}
  5203. label="满意度表格"
  5204. >
  5205. <Radio.Group
  5206. value={this.state.formRetrieve}
  5207. onChange={(e) => {
  5208. this.setState({ formRetrieve: e.target.value })
  5209. }}
  5210. >
  5211. <Radio value={0}>未收回</Radio>
  5212. <Radio value={1}>已收回</Radio>
  5213. <Radio value={2}>其他</Radio>
  5214. </Radio.Group>
  5215. </FormItem>
  5216. {
  5217. <FormItem
  5218. className="half-item"
  5219. {...formItemLayout}
  5220. label="(满意度)备注"
  5221. >
  5222. <Input
  5223. type="textarea"
  5224. placeholder="请输入备注"
  5225. rows={2}
  5226. value={this.state.retrieveContent}
  5227. onChange={(e) => {
  5228. this.setState({ retrieveContent: e.target.value })
  5229. }}
  5230. />
  5231. </FormItem>
  5232. }
  5233. {/*<FormItem*/}
  5234. {/* className="half-item"*/}
  5235. {/* {...formItemLayout}*/}
  5236. {/* label="退单"*/}
  5237. {/*>*/}
  5238. {/* <Radio.Group*/}
  5239. {/* value={this.state.taskRefund}*/}
  5240. {/* onChange={(e) => {*/}
  5241. {/* this.setState({ taskRefund: e.target.value })*/}
  5242. {/* }}*/}
  5243. {/* >*/}
  5244. {/* <Radio value={0}>已完成</Radio>*/}
  5245. {/* <Radio value={1}>未完成</Radio>*/}
  5246. {/* <Radio value={2}>其他</Radio>*/}
  5247. {/* </Radio.Group>*/}
  5248. {/*</FormItem>*/}
  5249. </div>
  5250. {/*软著显示 bpType: 0 正常 1专利 2软著 3审计 4双软 5高新 6商标*/}
  5251. {this.state.bpType === 2 ? <div className="clearfix">
  5252. <FormItem
  5253. className="half-item"
  5254. {...formItemLayout}
  5255. label="加急天数"
  5256. >
  5257. <Radio.Group
  5258. value={this.state.urgentDay}
  5259. onChange={(e) => {
  5260. this.setState({ urgentDay: e.target.value })
  5261. }}
  5262. >
  5263. <Radio value={1}>是</Radio>
  5264. <Radio value={0}>否</Radio>
  5265. </Radio.Group>
  5266. </FormItem>
  5267. <FormItem
  5268. className="half-item"
  5269. {...formItemLayout}
  5270. label="有无材料"
  5271. >
  5272. <Radio.Group
  5273. value={this.state.ifMaterial}
  5274. onChange={(e) => {
  5275. this.setState({ ifMaterial: e.target.value })
  5276. }}
  5277. >
  5278. <Radio value={1}>是</Radio>
  5279. <Radio value={0}>否</Radio>
  5280. </Radio.Group>
  5281. </FormItem>
  5282. </div> : null}
  5283. <div className="clearfix">
  5284. <div style={{
  5285. paddingLeft: '8%',
  5286. }}>
  5287. <div style={{color:'#000',fontWeight:500}}>
  5288. 特别说明
  5289. <span style={{color: '#58a3ff',}}>(针对项目的特殊情况说明)</span>
  5290. </div>
  5291. <div style={{display:'flex',alignItems:'center',paddingTop: '10px'}}>
  5292. <div>备注:</div>
  5293. <Input
  5294. type="textarea"
  5295. placeholder="请输入备注"
  5296. rows={3}
  5297. style={{
  5298. width:'33%',
  5299. marginLeft: '10px',
  5300. }}
  5301. value={this.state.specialComment}
  5302. onChange={(e) => {
  5303. this.setState({ specialComment: e.target.value });
  5304. }}
  5305. />
  5306. </div>
  5307. </div>
  5308. {
  5309. // <FormItem
  5310. // className="half-item"
  5311. // {...formItemLayout}
  5312. // label="(退单)备注"
  5313. // >
  5314. // <Input
  5315. // type="textarea"
  5316. // placeholder="请输入备注"
  5317. // rows={2}
  5318. // value={this.state.refundContent}
  5319. // onChange={(e) => {
  5320. // this.setState({ refundContent: e.target.value })
  5321. // }}
  5322. // />
  5323. // </FormItem>
  5324. }
  5325. </div>
  5326. <div className="clearfix">
  5327. <h3 className="sub-title">订单负责人信息</h3>
  5328. <FormItem
  5329. className="half-item"
  5330. {...formItemLayout}
  5331. label="负责人"
  5332. >
  5333. <span>
  5334. {this.state.salesmanName + '(' + this.state.depName + ')'}
  5335. </span>
  5336. </FormItem>
  5337. <FormItem
  5338. className="half-item"
  5339. {...formItemLayout}
  5340. label="负责人电话"
  5341. >
  5342. <span>{this.state.salesmanMobile}</span>
  5343. </FormItem>
  5344. <FormItem
  5345. className="half-item"
  5346. {...formItemLayout}
  5347. label="当前财务负责人"
  5348. >
  5349. <span>{this.state.nowFinance}</span>
  5350. </FormItem>
  5351. <FormItem
  5352. className="half-item"
  5353. {...formItemLayout}
  5354. label="当前财务负责人电话"
  5355. >
  5356. <span>{this.state.nowFinanceMobile}</span>
  5357. </FormItem>
  5358. <FormItem
  5359. className="half-item"
  5360. {...formItemLayout}
  5361. style={{ opacity: '.5' }}
  5362. label="原负责人"
  5363. >
  5364. <span>{this.state.oldSalesmanName}</span>
  5365. </FormItem>
  5366. <FormItem
  5367. className="half-item"
  5368. {...formItemLayout}
  5369. style={{ opacity: '.5' }}
  5370. label="原负责人电话"
  5371. >
  5372. <span>{this.state.oldSalesmanMobile}</span>
  5373. </FormItem>
  5374. <FormItem
  5375. className="half-item"
  5376. {...formItemLayout}
  5377. style={{ opacity: '.5' }}
  5378. label="实际财务操作人"
  5379. >
  5380. <span>{this.state.financeName}</span>
  5381. </FormItem>
  5382. <FormItem
  5383. className="half-item"
  5384. {...formItemLayout}
  5385. style={{ opacity: '.5' }}
  5386. label="实际财务操作人电话"
  5387. >
  5388. <span>{this.state.financeMobile}</span>
  5389. </FormItem>
  5390. <FormItem
  5391. className="half-item"
  5392. {...formItemLayout}
  5393. label="订单留言"
  5394. >
  5395. <span>{this.state.orderRemarks}</span>
  5396. </FormItem>
  5397. <FormItem className="half-item" {...formItemLayout} label="">
  5398. <Button onClick={this.getOrderLog}>查看订单日志</Button>
  5399. </FormItem>
  5400. <OrderRiZi
  5401. dataSourcerizhi={this.state.dataSourceY}
  5402. closeOrderLog={this.closeOrderLog}
  5403. visible={this.state.avisible}
  5404. loading={this.state.loading}
  5405. />
  5406. </div>
  5407. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  5408. <div className="clearfix">
  5409. <h3 className="sub-title">联系信息</h3>
  5410. <FormItem
  5411. className="half-item"
  5412. {...formItemLayout}
  5413. label="客户名称"
  5414. >
  5415. <span>{this.state.userName}</span>
  5416. </FormItem>
  5417. <FormItem
  5418. className="half-item"
  5419. {...formItemLayout}
  5420. label="企业法人"
  5421. >
  5422. <Input
  5423. placeholder="请输入法人名称"
  5424. value={this.state.legalPerson}
  5425. style={{ width: '200px' }}
  5426. onChange={(e) => {
  5427. this.setState({ legalPerson: e.target.value })
  5428. }}
  5429. ref="commodityQuantity"
  5430. />
  5431. </FormItem>
  5432. <FormItem
  5433. className="half-item"
  5434. {...formItemLayout}
  5435. label="法人电话"
  5436. >
  5437. <Input
  5438. placeholder="请输入法人电话"
  5439. value={this.state.legalPersonTel}
  5440. style={{ width: '200px' }}
  5441. onChange={(e) => {
  5442. this.setState({ legalPersonTel: e.target.value })
  5443. }}
  5444. ref="commodityQuantity"
  5445. />
  5446. </FormItem>
  5447. <FormItem
  5448. className="half-item"
  5449. {...formItemLayout}
  5450. label="客户联系人"
  5451. >
  5452. <Input
  5453. placeholder="请输入联系人名称"
  5454. value={this.state.contacts}
  5455. style={{ width: '200px' }}
  5456. onChange={(e) => {
  5457. this.setState({ contacts: e.target.value })
  5458. }}
  5459. ref="commodityQuantity"
  5460. />
  5461. </FormItem>
  5462. <FormItem
  5463. className="half-item"
  5464. {...formItemLayout}
  5465. label="联系人电话"
  5466. >
  5467. <Input
  5468. placeholder="请输入联系人电话"
  5469. value={this.state.contactMobile}
  5470. style={{ width: '200px' }}
  5471. onChange={(e) => {
  5472. this.setState({ contactMobile: e.target.value })
  5473. }}
  5474. ref="commodityQuantity"
  5475. />
  5476. </FormItem>
  5477. <FormItem
  5478. className="half-item"
  5479. {...formItemLayout}
  5480. label="企业地址"
  5481. >
  5482. <Cascader
  5483. options={areaSelect()}
  5484. value={this.state.ProvinceCity}
  5485. placeholder="选择城市"
  5486. style={{ width: '200px' }}
  5487. onChange={(e) => {
  5488. this.setState({ ProvinceCity: e })
  5489. }}
  5490. />
  5491. </FormItem>
  5492. <FormItem
  5493. className="half-item"
  5494. {...formItemLayout}
  5495. label=""
  5496. />
  5497. <FormItem className="half-item" {...formItemLayout} label="">
  5498. <Input
  5499. placeholder="请输入详细地址"
  5500. value={this.state.postalAddress}
  5501. style={{ width: '200px', marginLeft: '12em' }}
  5502. onChange={(e) => {
  5503. this.setState({ postalAddress: e.target.value })
  5504. }}
  5505. ref="commodityQuantity"
  5506. />
  5507. </FormItem>
  5508. </div>
  5509. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  5510. <div className="clearfix">
  5511. <h3 className="sub-title">项目信息</h3>
  5512. <FormItem
  5513. className="half-item"
  5514. {...formItemLayout}
  5515. label="项目编号"
  5516. >
  5517. <span>
  5518. {this.state.splitStatus == 2
  5519. ? this.state.splitSuper + '-' + this.state.splitId
  5520. : this.state.id}
  5521. </span>
  5522. </FormItem>
  5523. <FormItem
  5524. className="half-item"
  5525. {...formItemLayout}
  5526. label="项目名称"
  5527. >
  5528. <span>{this.state.taskName}</span>
  5529. </FormItem>
  5530. {/*<FormItem*/}
  5531. {/* className="half-item"*/}
  5532. {/* {...formItemLayout}*/}
  5533. {/* label="项目状态"*/}
  5534. {/*>*/}
  5535. {/* <Select*/}
  5536. {/* placeholder="选择项目状态"*/}
  5537. {/* style={{ width: '200px' }}*/}
  5538. {/* value={this.state.taskStatus}*/}
  5539. {/* onChange={(e) => {*/}
  5540. {/* this.setState({ taskStatus: e })*/}
  5541. {/* }}*/}
  5542. {/* >*/}
  5543. {/* {taskStatus.map(function (item) {*/}
  5544. {/* return (*/}
  5545. {/* <Select.Option key={item.value}>*/}
  5546. {/* {item.key}*/}
  5547. {/* </Select.Option>*/}
  5548. {/* )*/}
  5549. {/* })}*/}
  5550. {/* </Select>*/}
  5551. {/*</FormItem>*/}
  5552. <FormItem
  5553. className="half-item"
  5554. {...formItemLayout}
  5555. label="项目类别"
  5556. >
  5557. <span>{this.state.cname}</span>
  5558. </FormItem>
  5559. <FormItem
  5560. className="half-item"
  5561. {...formItemLayout}
  5562. label="证书编号"
  5563. >
  5564. {this.state.certificateNumber}
  5565. </FormItem>
  5566. </div>
  5567. <div className="clearfix" style={{ marginTop: '10px' }}>
  5568. <FormItem
  5569. labelCol={{ span: 3 }}
  5570. wrapperCol={{ span: 14 }}
  5571. label="附件"
  5572. >
  5573. <Picture
  5574. domId={'myTask2'}
  5575. fileList={(e) => {
  5576. this.setState({ attachmentUrl: e })
  5577. }}
  5578. pictureUrl={this.state.attachmentUrl}
  5579. visible={this.props.visible}
  5580. data={{
  5581. sign: 'order_task_file',
  5582. url: '/api/admin/orderProject/uploadOrderTaskFile',
  5583. }}
  5584. />
  5585. </FormItem>
  5586. </div>
  5587. <div className="clearfix">
  5588. <FormItem
  5589. labelCol={{ span: 3 }}
  5590. wrapperCol={{ span: 16 }}
  5591. label="项目说明"
  5592. >
  5593. <Input
  5594. type="textarea"
  5595. placeholder="请输入项目说明"
  5596. rows={4}
  5597. disabled
  5598. value={this.state.taskComment}
  5599. onChange={(e) => {
  5600. if(this.state.taskCommentData){
  5601. let len = this.state.taskCommentData.length;
  5602. if(e.target.value.slice(0,len) !== this.state.taskCommentData){
  5603. message.warning('项目说明不允许删除与修改已存在的内容');
  5604. return;
  5605. }
  5606. }
  5607. this.setState({ taskComment: e.target.value })
  5608. }}
  5609. />
  5610. </FormItem>
  5611. </div>
  5612. <div className="clearfix">
  5613. <h3 className="sub-title">项目申报进度</h3>
  5614. <DeclarationProgress
  5615. timeRecordparse={this.state.timeRecordparse}
  5616. startDate={this.state.startDate}
  5617. taskDate={this.state.taskDate}
  5618. list={[
  5619. {id:4,name:'完成时间',value:this.state.endDate},
  5620. {id:6,name:'受理时间',value:this.state.acceptDate},
  5621. {id:8,name:'公示时间',value:this.state.publicityDate},
  5622. {id:10,name:'发证时间',value:this.state.licenceDate},
  5623. {id:15,name:'立项金额',value:this.state.setUpAmount}
  5624. ]}/>
  5625. {/*高新和科技项目显示 bpType: 0 正常 1专利 2软著 3审计 4双软 5高新 6商标*/}
  5626. {/*cSort: 3 科技项目 6: 会员*/}
  5627. {(this.state.bpType === 5 || this.state.cSort === 3) && <FormItem
  5628. className="half-item"
  5629. {...formItemLayout}
  5630. label="申报批次"
  5631. >
  5632. <Select
  5633. value={
  5634. this.state.declarationBatch
  5635. ? this.state.declarationBatch
  5636. : undefined
  5637. }
  5638. placeholder="请选择批次"
  5639. style={{ width: 200 }}
  5640. onChange={(e) => {
  5641. this.setState({
  5642. declarationBatch: e,
  5643. })
  5644. }}
  5645. >
  5646. <Option value={1}>第一批</Option>
  5647. <Option value={2}>第二批</Option>
  5648. <Option value={3}>第三批</Option>
  5649. <Option value={4}>第四批</Option>
  5650. </Select>
  5651. </FormItem>}
  5652. <FormItem
  5653. className="half-item"
  5654. {...formItemLayout}
  5655. label="软著派单数量"
  5656. >
  5657. <span>{this.state.commodityQuantity}</span>
  5658. <Button
  5659. type="primary"
  5660. size="small"
  5661. style={{ marginLeft: '45px' }}
  5662. onClick={this.addcontact}
  5663. >
  5664. +增加下证信息
  5665. </Button>
  5666. </FormItem>
  5667. <div className="patent-table">
  5668. <Spin spinning={this.state.loading}>
  5669. <Table
  5670. columns={this.state.ContactsLists}
  5671. dataSource={this.state.contactList}
  5672. pagination={false}
  5673. bordered
  5674. size="small"
  5675. />
  5676. </Spin>
  5677. </div>
  5678. </div>
  5679. <div className="clearfix">
  5680. <h3 className="sub-title">项目业务</h3>
  5681. <div className="patent-table">
  5682. <Spin spinning={this.state.loading}>
  5683. <Table
  5684. columns={this.state.columnsX}
  5685. dataSource={this.state.dataSourceX}
  5686. pagination={this.state.paginations}
  5687. onRowClick={this.tableRowClickX}
  5688. bordered
  5689. size="small"
  5690. />
  5691. </Spin>
  5692. </div>
  5693. </div>
  5694. <div className="clearfix">
  5695. <Button
  5696. className="cancel"
  5697. type="primary"
  5698. onClick={()=>{
  5699. this.tijiaoOk();
  5700. }}
  5701. style={{ marginLeft: '200px', marginTop: '10px' }}
  5702. htmlType="submit"
  5703. >
  5704. 保存
  5705. </Button>
  5706. <Button
  5707. className="cancel"
  5708. type="ghost"
  5709. onClick={this.visitCancel}
  5710. style={{ marginLeft: '50px', marginTop: '10px' }}
  5711. >
  5712. 取消
  5713. </Button>
  5714. </div>
  5715. </TabPane>
  5716. {/*<TabPane tab="外包/供应商信息" key="2">*/}
  5717. {/* <Spin spinning={this.state.sureOutLoading || this.state.waiDetailLoading || this.state.payNodeLoading || this.state.thirdInfoLoading}>*/}
  5718. {/* {this.state.refundStatus != 0 && this.state.refundStatus != 1 ? (*/}
  5719. {/* <div style={{ marginTop: 10 }}>*/}
  5720. {/* <div className="clearfix">*/}
  5721. {/* <FormItem*/}
  5722. {/* className="half-item"*/}
  5723. {/* labelCol={{ span: 3 }}*/}
  5724. {/* wrapperCol={{ span: 14 }}*/}
  5725. {/* label={*/}
  5726. {/* <span>*/}
  5727. {/* <strong style={{ color: '#f00' }}>*</strong>*/}
  5728. {/* 类型*/}
  5729. {/* </span>*/}
  5730. {/* }*/}
  5731. {/* >*/}
  5732. {/* <Radio.Group*/}
  5733. {/* disabled={this.state.payNodeLoading || this.state.thirdInfoLoading}*/}
  5734. {/* value={this.state.startType}*/}
  5735. {/* onChange={(e) => {*/}
  5736. {/* let _this = this;*/}
  5737. {/* if(this.state.thirdInfoList.length >0){*/}
  5738. {/* confirm({*/}
  5739. {/* title: '确定要切换吗?',*/}
  5740. {/* content: '切换将删除所有第三信息和付款节点',*/}
  5741. {/* onOk() {*/}
  5742. {/* return new Promise((resolve, reject) => {*/}
  5743. {/* _this.setState({ startType: e.target.value },()=>{*/}
  5744. {/* _this.projectTypeTabContent(_this.state.projectType);*/}
  5745. {/* })*/}
  5746. {/* _this.confirmDeletNew(-1,resolve,reject)*/}
  5747. {/* if(_this.state.payNodeList.length > 0){*/}
  5748. {/* _this.payNodeConfirmDeletNew(-1,resolve,reject);*/}
  5749. {/* }*/}
  5750. {/* }).catch(() => console.log('Oops errors!'));*/}
  5751. {/* },*/}
  5752. {/* onCancel() {},*/}
  5753. {/* });*/}
  5754. {/* }else{*/}
  5755. {/* this.setState({ startType: e.target.value },()=>{*/}
  5756. {/* this.projectTypeTabContent(this.state.projectType);*/}
  5757. {/* })*/}
  5758. {/* }*/}
  5759. {/* }}*/}
  5760. {/* >*/}
  5761. {/* <Radio value={0}>外包(不走总部)</Radio>*/}
  5762. {/* <Radio value={1}>供应商信息</Radio>*/}
  5763. {/* </Radio.Group>*/}
  5764. {/* </FormItem>*/}
  5765. {/* </div>*/}
  5766. {/* /!* 专利类型 *!/*/}
  5767. {/* <div*/}
  5768. {/* className="clearfix"*/}
  5769. {/* style={{*/}
  5770. {/* display: this.state.projectType === 1 ? 'block' : 'none',*/}
  5771. {/* }}*/}
  5772. {/* >*/}
  5773. {/* <FormItem*/}
  5774. {/* className="half-item"*/}
  5775. {/* labelCol={{ span: 4 }}*/}
  5776. {/* wrapperCol={{ span: 14 }}*/}
  5777. {/* label={*/}
  5778. {/* <span>*/}
  5779. {/* <strong style={{ color: '#f00' }}>*</strong>*/}
  5780. {/* 专利类型*/}
  5781. {/* </span>*/}
  5782. {/* }*/}
  5783. {/* >*/}
  5784. {/* <Radio.Group*/}
  5785. {/* disabled={this.state.payNodeLoading || this.state.thirdInfoLoading}*/}
  5786. {/* value={this.state.patentType}*/}
  5787. {/* onChange={(e) => {*/}
  5788. {/* let _this = this;*/}
  5789. {/* if(this.state.thirdInfoList.length >0){*/}
  5790. {/* confirm({*/}
  5791. {/* title: '确定要切换吗?',*/}
  5792. {/* content: '切换将删除所有第三信息和付款节点',*/}
  5793. {/* onOk() {*/}
  5794. {/* return new Promise((resolve, reject) => {*/}
  5795. {/* _this.setState({ patentType: e.target.value },()=>{*/}
  5796. {/* _this.projectTypeTabContent(_this.state.projectType);*/}
  5797. {/* })*/}
  5798. {/* _this.confirmDeletNew(-1,resolve,reject)*/}
  5799. {/* if(_this.state.payNodeList.length > 0){*/}
  5800. {/* _this.payNodeConfirmDeletNew(-1,resolve,reject);*/}
  5801. {/* }*/}
  5802. {/* }).catch(() => console.log('Oops errors!'));*/}
  5803. {/* },*/}
  5804. {/* onCancel() {},*/}
  5805. {/* });*/}
  5806. {/* }else{*/}
  5807. {/* this.setState({ patentType: e.target.value },()=>{*/}
  5808. {/* this.projectTypeTabContent(this.state.projectType);*/}
  5809. {/* })*/}
  5810. {/* }*/}
  5811. {/* }}*/}
  5812. {/* >*/}
  5813. {/* <Radio value={0}>专利申请/变更/转让</Radio>*/}
  5814. {/* <Radio value={1}>专利买卖</Radio>*/}
  5815. {/* </Radio.Group>*/}
  5816. {/* </FormItem>*/}
  5817. {/* </div>*/}
  5818. {/* <div*/}
  5819. {/* className="clearfix"*/}
  5820. {/* style={{*/}
  5821. {/* display: this.state.projectType === 1? 'block' : 'none',*/}
  5822. {/* }}*/}
  5823. {/* >*/}
  5824. {/* <FormItem*/}
  5825. {/* className="half-item"*/}
  5826. {/* labelCol={{ span: 3 }}*/}
  5827. {/* wrapperCol={{ span: 14 }}*/}
  5828. {/* label={*/}
  5829. {/* <span>*/}
  5830. {/* <strong style={{ color: '#f00' }}>*</strong>*/}
  5831. {/* 专利名称*/}
  5832. {/* </span>*/}
  5833. {/* }*/}
  5834. {/* >*/}
  5835. {/* <Radio.Group*/}
  5836. {/* disabled={this.state.payNodeLoading || this.state.thirdInfoLoading}*/}
  5837. {/* value={this.state.patentNameType}*/}
  5838. {/* onChange={(e) => {*/}
  5839. {/* let _this = this;*/}
  5840. {/* if(this.state.thirdInfoList.length >0){*/}
  5841. {/* confirm({*/}
  5842. {/* title: '确定要切换吗?',*/}
  5843. {/* content: '切换将删除所有第三信息和付款节点',*/}
  5844. {/* onOk() {*/}
  5845. {/* return new Promise((resolve, reject) => {*/}
  5846. {/* _this.setState({ patentNameType: e.target.value },()=>{*/}
  5847. {/* _this.projectTypeTabContent(_this.state.projectType);*/}
  5848. {/* })*/}
  5849. {/* _this.confirmDeletNew(-1,resolve,reject)*/}
  5850. {/* if(_this.state.payNodeList.length > 0){*/}
  5851. {/* _this.payNodeConfirmDeletNew(-1,resolve,reject);*/}
  5852. {/* }*/}
  5853. {/* }).catch(() => console.log('Oops errors!'));*/}
  5854. {/* },*/}
  5855. {/* onCancel() {},*/}
  5856. {/* });*/}
  5857. {/* }else{*/}
  5858. {/* this.setState({ patentNameType: e.target.value },()=>{*/}
  5859. {/* this.projectTypeTabContent(this.state.projectType);*/}
  5860. {/* })*/}
  5861. {/* }*/}
  5862. {/* }}*/}
  5863. {/* >*/}
  5864. {/* <Radio value={0}>实用新型专利</Radio>*/}
  5865. {/* <Radio value={1}>发明专利</Radio>*/}
  5866. {/* <Radio value={2}>外观专利</Radio>*/}
  5867. {/* /!*<Radio value={3}>*!/*/}
  5868. {/* /!* 其他*!/*/}
  5869. {/* /!* <Input*!/*/}
  5870. {/* /!* disabled={this.state.patentNameType !== 3}*!/*/}
  5871. {/* /!* value={this.state.patentName}*!/*/}
  5872. {/* /!* style={{ marginLeft: '15px' }}*!/*/}
  5873. {/* /!* onChange={(e) => {*!/*/}
  5874. {/* /!* this.setState({*!/*/}
  5875. {/* /!* patentName: e.target.value,*!/*/}
  5876. {/* /!* })*!/*/}
  5877. {/* /!* }}*!/*/}
  5878. {/* /!* placeholder="请填写专利名称"*!/*/}
  5879. {/* /!* />*!/*/}
  5880. {/* /!*</Radio>*!/*/}
  5881. {/* </Radio.Group>*/}
  5882. {/* </FormItem>*/}
  5883. {/* </div>*/}
  5884. {/* {this.state.orderTaskOfficialCost === 1 && this.state.startType !== 0 ? <div className="clearfix">*/}
  5885. {/* <FormItem*/}
  5886. {/* className="half-item"*/}
  5887. {/* labelCol={{ span: 4 }}*/}
  5888. {/* wrapperCol={{ span: 14 }}*/}
  5889. {/* label={<span>官费</span>}>*/}
  5890. {/* <Radio.Group*/}
  5891. {/* value={this.state.containOfficialFees}*/}
  5892. {/* onChange={(e) => {*/}
  5893. {/* this.setState({ containOfficialFees: e.target.value })*/}
  5894. {/* }}*/}
  5895. {/* >*/}
  5896. {/* <Radio value={0}>实际已缴费</Radio>*/}
  5897. {/* <Radio value={1}>实际未缴费</Radio>*/}
  5898. {/* </Radio.Group>*/}
  5899. {/* </FormItem>*/}
  5900. {/* </div> : <div/>}*/}
  5901. {/* /!* 第三方信息专利 *!/*/}
  5902. {/* <div*/}
  5903. {/* style={{*/}
  5904. {/* // display: this.state.type == 1 ? "block" : "none",*/}
  5905. {/* display: this.state.type == 1 ? 'block' : 'block',*/}
  5906. {/* }}*/}
  5907. {/* >*/}
  5908. {/* <span*/}
  5909. {/* style={{*/}
  5910. {/* fontSize: '18px',*/}
  5911. {/* }}*/}
  5912. {/* >*/}
  5913. {/* 第三方信息*/}
  5914. {/* </span>*/}
  5915. {/* <span*/}
  5916. {/* style={{*/}
  5917. {/* display: 'inline-block',*/}
  5918. {/* marginLeft: 10,*/}
  5919. {/* color: 'red',*/}
  5920. {/* }}*/}
  5921. {/* >*/}
  5922. {/* 金额总计(万元): {this.state.allTotalAmount}*/}
  5923. {/* </span>*/}
  5924. {/* <Button*/}
  5925. {/* type="primary"*/}
  5926. {/* onClick={(e) => {*/}
  5927. {/* //this.state.startType 类型为外包时,当普通单*/}
  5928. {/* if(this.state.projectType === 1 && this.state.patentType === -1){*/}
  5929. {/* message.info('请先选择专利类型');*/}
  5930. {/* }else if(this.state.projectType === 1 && this.state.patentNameType === -1){*/}
  5931. {/* message.info('请先选择专利名称');*/}
  5932. {/* } else{*/}
  5933. {/* this.addThirdList()*/}
  5934. {/* }*/}
  5935. {/* }}*/}
  5936. {/* style={{*/}
  5937. {/* float: 'right',*/}
  5938. {/* marginRight: '50px',*/}
  5939. {/* marginBottom: '15px',*/}
  5940. {/* }}>*/}
  5941. {/* +新增供应商名称*/}
  5942. {/* </Button>*/}
  5943. {/* </div>*/}
  5944. {/* <div*/}
  5945. {/* className="clearfix"*/}
  5946. {/* style={{*/}
  5947. {/* // display: this.state.type == 1 ? "block" : "none",*/}
  5948. {/* display: this.state.type == 1 ? 'block' : 'block',*/}
  5949. {/* }}*/}
  5950. {/* >*/}
  5951. {/* <Spin spinning={this.state.thirdInfoLoading}>*/}
  5952. {/* <Form layout="horizontal">*/}
  5953. {/* <Table*/}
  5954. {/* pagination={false}*/}
  5955. {/* columns={this.state.ContactsListsNew}*/}
  5956. {/* dataSource={this.state.thirdInfoList}*/}
  5957. {/* onRowClick={this.tableRowClickOne}*/}
  5958. {/* scroll={{ x: 'max-content', y: 0 }}*/}
  5959. {/* bordered*/}
  5960. {/* size="small"*/}
  5961. {/* />*/}
  5962. {/* <Col*/}
  5963. {/* span={24}*/}
  5964. {/* offset={9}*/}
  5965. {/* style={{ marginTop: '15px' }}*/}
  5966. {/* />*/}
  5967. {/* </Form>*/}
  5968. {/* </Spin>*/}
  5969. {/* </div>*/}
  5970. {/* /!*如果是软著类或者专利类的专利申请,隐藏付款节点*!/*/}
  5971. {/* <div*/}
  5972. {/* style={{*/}
  5973. {/* display: this.state.startType === 0 ? 'block' : ((this.state.projectType === 1 && this.state.patentType === 0) || this.state.projectType === 2? 'none' : 'block'), //0正常 1专利 2软著 3审计*/}
  5974. {/* }}*/}
  5975. {/* >*/}
  5976. {/* <span*/}
  5977. {/* style={{*/}
  5978. {/* fontSize: '18px',*/}
  5979. {/* }}*/}
  5980. {/* >*/}
  5981. {/* 付款节点*/}
  5982. {/* </span>*/}
  5983. {/* <span*/}
  5984. {/* style={{*/}
  5985. {/* display: 'inline-block',*/}
  5986. {/* marginLeft: 10,*/}
  5987. {/* color: 'red',*/}
  5988. {/* }}*/}
  5989. {/* />*/}
  5990. {/* <Button*/}
  5991. {/* type="primary"*/}
  5992. {/* onClick={(e) => {*/}
  5993. {/* this.addPayNode()*/}
  5994. {/* }}*/}
  5995. {/* style={{*/}
  5996. {/* float: 'right',*/}
  5997. {/* marginRight: '50px',*/}
  5998. {/* marginBottom: '15px',*/}
  5999. {/* }}*/}
  6000. {/* >*/}
  6001. {/* +新增付款节点*/}
  6002. {/* </Button>*/}
  6003. {/* </div>*/}
  6004. {/* /!*如果是软著类或者专利类的专利申请,隐藏付款节点但当为外包类型时,无需隐藏*!/*/}
  6005. {/* <div*/}
  6006. {/* className="clearfix"*/}
  6007. {/* style={{*/}
  6008. {/* display: this.state.startType === 0 ? 'block' : ((this.state.projectType === 1 && this.state.patentType === 0) || this.state.projectType === 2? 'none' : 'block'), //0正常 1专利 2软著 3审计*/}
  6009. {/* }}*/}
  6010. {/* >*/}
  6011. {/* <Spin spinning={this.state.payNodeLoading}>*/}
  6012. {/* <Form layout="horizontal">*/}
  6013. {/* <Table*/}
  6014. {/* pagination={false}*/}
  6015. {/* columns={this.state.PayNodeTableColunms}*/}
  6016. {/* dataSource={this.state.payNodeList}*/}
  6017. {/* onRowClick={this.payNodeTableRowClickOne}*/}
  6018. {/* scroll={{ x: 'max-content', y: 0 }}*/}
  6019. {/* bordered*/}
  6020. {/* size="small"*/}
  6021. {/* />*/}
  6022. {/* <Col*/}
  6023. {/* span={24}*/}
  6024. {/* offset={9}*/}
  6025. {/* style={{ marginTop: '15px' }}*/}
  6026. {/* />*/}
  6027. {/* </Form>*/}
  6028. {/* </Spin>*/}
  6029. {/* </div>*/}
  6030. {/* <div className="clearfix">*/}
  6031. {/* <FormItem*/}
  6032. {/* className="half-item"*/}
  6033. {/* {...formItemLayout}*/}
  6034. {/* label={*/}
  6035. {/* <span>*/}
  6036. {/* <strong style={{ color: '#f00' }}>*</strong>备注*/}
  6037. {/* </span>*/}
  6038. {/* }*/}
  6039. {/* >*/}
  6040. {/* <TextArea*/}
  6041. {/* rows={4}*/}
  6042. {/* value={this.state.outsourceRemarks}*/}
  6043. {/* onChange={(e) => {*/}
  6044. {/* this.setState({*/}
  6045. {/* outsourceRemarks: e.target.value,*/}
  6046. {/* })*/}
  6047. {/* }}*/}
  6048. {/* placeholder="请输入备注"*/}
  6049. {/* />*/}
  6050. {/* </FormItem>*/}
  6051. {/* </div>*/}
  6052. {/* <p*/}
  6053. {/* className="tip"*/}
  6054. {/* style={{*/}
  6055. {/* paddingBottom: '12px',*/}
  6056. {/* width: '240px',*/}
  6057. {/* marginLeft: '145px',*/}
  6058. {/* color: 'red',*/}
  6059. {/* }}*/}
  6060. {/* >*/}
  6061. {/* 首次派单项目,需上传协议,第2次起,同项目,只需写外包公司*/}
  6062. {/* </p>*/}
  6063. {/* <div className="clearfix">*/}
  6064. {/* <FormItem*/}
  6065. {/* labelCol={{ span: 4 }}*/}
  6066. {/* wrapperCol={{ span: 18 }}*/}
  6067. {/* label={*/}
  6068. {/* <span>*/}
  6069. {/* 合同/协议扫描件*/}
  6070. {/* </span>*/}
  6071. {/* }*/}
  6072. {/* >*/}
  6073. {/* <PicturesWall*/}
  6074. {/* domId={'myTask4'}*/}
  6075. {/* fileList={this.getOrgCodeUrlWai}*/}
  6076. {/* pictureUrl={this.state.pictureUrl}*/}
  6077. {/* />*/}
  6078. {/* <p style={{ color: 'red' }}>图片建议:要清晰。</p>*/}
  6079. {/* </FormItem>*/}
  6080. {/* </div>*/}
  6081. {/* /!*只有审核拒绝和第一次发起外包的时候才要填写发起原因 如果是类型为供应商则不需要发起原因*!/*/}
  6082. {/* /!*this.state.startType 0外包 1供应商*!/*/}
  6083. {/* {(typeof this.state.refundStatus === 'undefined' || this.state.refundStatus === 2) && this.state.startType !== 1 ? <div className="clearfix">*/}
  6084. {/* <FormItem*/}
  6085. {/* className="half-item"*/}
  6086. {/* {...formItemLayout}*/}
  6087. {/* label={*/}
  6088. {/* <span>*/}
  6089. {/* <strong style={{ color: '#f00' }}>*</strong>发起原因*/}
  6090. {/* </span>*/}
  6091. {/* }*/}
  6092. {/* >*/}
  6093. {/* <TextArea*/}
  6094. {/* rows={4}*/}
  6095. {/* value={this.state.reason}*/}
  6096. {/* onChange={(e) => {*/}
  6097. {/* this.setState({*/}
  6098. {/* reason: e.target.value,*/}
  6099. {/* })*/}
  6100. {/* }}*/}
  6101. {/* placeholder="请输入发起原因"*/}
  6102. {/* />*/}
  6103. {/* </FormItem>*/}
  6104. {/* </div> : <div/>}*/}
  6105. {/* <div className="clearfix">*/}
  6106. {/* <div*/}
  6107. {/* style={{*/}
  6108. {/* display: 'inline-black',*/}
  6109. {/* textAlign: 'center',*/}
  6110. {/* }}*/}
  6111. {/* >*/}
  6112. {/* <Button*/}
  6113. {/* type="primary"*/}
  6114. {/* loading={this.state.loading}*/}
  6115. {/* onClick={()=>{*/}
  6116. {/* this.sureOut(this.state.startType);*/}
  6117. {/* }}*/}
  6118. {/* >*/}
  6119. {/* {*/}
  6120. {/* this.state.startType === 0 ? "确认发起外包,不通过总部" : "提交供应商信息"*/}
  6121. {/* }*/}
  6122. {/* </Button>*/}
  6123. {/* <p className="tip" style={{ color: 'red' }}>*/}
  6124. {/* {*/}
  6125. {/* this.state.startType === 0 ? "提示:高于总部价格,费用个人承担" : "确定提交供应商信息,提交后,不可修改"*/}
  6126. {/* }*/}
  6127. {/* </p>*/}
  6128. {/* </div>*/}
  6129. {/* </div>*/}
  6130. {/* </div>*/}
  6131. {/* ) : (*/}
  6132. {/* <div>*/}
  6133. {/* {*/}
  6134. {/* this.state.speVisible && this.state.activeKey === '2' ?*/}
  6135. {/* <CheckProject*/}
  6136. {/* {...this.props}*/}
  6137. {/* tid={this.state.tid}*/}
  6138. {/* orderTaskOfficialCost={this.state.orderTaskOfficialCost} //是否含官费 0无1有*/}
  6139. {/* containOfficialFees={this.state.containOfficialFees} //0:实际已缴费 1:实际未缴费*/}
  6140. {/* oldInfor={this.state.oldInfor}*/}
  6141. {/* projectType={this.state.projectType} //0正常 1专利 2软著 3审计*/}
  6142. {/* patentNameType={this.state.patentNameType}*/}
  6143. {/* patentName={this.state.patentName}*/}
  6144. {/* patentType={this.state.patentType}*/}
  6145. {/* status={this.state.refundStatus}*/}
  6146. {/* isPreviewPay={true}*/}
  6147. {/* mid={this.state.mid}*/}
  6148. {/* thirdInfoList={this.state.thirdInfoList}*/}
  6149. {/* dataSource={this.state.payNodeList}*/}
  6150. {/* outsourceRemarks={this.state.outsourceRemarks}*/}
  6151. {/* fileList={this.state.pictureUrl}*/}
  6152. {/* startType={this.state.startType}*/}
  6153. {/* projectStatus={this.state.projectStatus}*/}
  6154. {/* onRefresh={()=>{*/}
  6155. {/* this.waiDetail();*/}
  6156. {/* this.thirdTable(this.state.tid);*/}
  6157. {/* this.getSelectOutsourceLog(this.state.tid);*/}
  6158. {/* this.payNodeTable(this.state.tid)*/}
  6159. {/* this.loadData(this.state.page)*/}
  6160. {/* }}*/}
  6161. {/* /> : <div/>*/}
  6162. {/* }*/}
  6163. {/* </div>*/}
  6164. {/* )}*/}
  6165. {/* {(this.state.refundStatus == 1 ||*/}
  6166. {/* this.state.refundStatus == 0 ||*/}
  6167. {/* this.state.refundStatus == 2) &&*/}
  6168. {/* this.state.startType !== 1*/}
  6169. {/* ? (*/}
  6170. {/* <div className="clearfix"*/}
  6171. {/* style={{*/}
  6172. {/* display: this.state.refundStatus == 0 ? 'none' : 'block',*/}
  6173. {/* }}*/}
  6174. {/* >*/}
  6175. {/* <hr className="division" />*/}
  6176. {/* {parseInt(this.state.startType) !== 1 ? <div style={{*/}
  6177. {/* color:'#F00',*/}
  6178. {/* fontWeight: 'bolder',*/}
  6179. {/* paddingBottom: '20px',*/}
  6180. {/* }}>*/}
  6181. {/* 审核结果: <span style={{paddingLeft:'20px'}}>{getRefundStatus(this.state.refundStatus)}</span>*/}
  6182. {/* </div> : <div/>}*/}
  6183. {/* <div className="outsourceLogList">*/}
  6184. {/* {*/}
  6185. {/* this.state.outsourceLogs && this.state.outsourceLogs.map((value,index)=>(*/}
  6186. {/* <div key={index} className="outsourceLogItem outsource">*/}
  6187. {/* <div style={{*/}
  6188. {/* display:'flex',*/}
  6189. {/* flexFlow:'row nowrap',*/}
  6190. {/* paddingBottom: '3px',*/}
  6191. {/* paddingTop: '3px',*/}
  6192. {/* }}>*/}
  6193. {/* <div>*/}
  6194. {/* {value.aname}*/}
  6195. {/* </div>*/}
  6196. {/* <div style={{paddingLeft:'5px'}}>*/}
  6197. {/* {*/}
  6198. {/* value.status === 0 ?*/}
  6199. {/* <Tag color="#2db7f5">发起外包审核</Tag> :*/}
  6200. {/* value.status === 1 ? <Tag color="#87d068">通过</Tag> :*/}
  6201. {/* <Tag color="#f50">驳回</Tag>*/}
  6202. {/* }*/}
  6203. {/* </div>*/}
  6204. {/* <div style={{*/}
  6205. {/* wordBreak: 'break-all',*/}
  6206. {/* maxWidth:'67%',*/}
  6207. {/* }}>*/}
  6208. {/* {value.remarks}*/}
  6209. {/* </div>*/}
  6210. {/* <div style={{paddingLeft: '10px'}}>*/}
  6211. {/* {value.createTimes}*/}
  6212. {/* </div>*/}
  6213. {/* </div>*/}
  6214. {/* </div>*/}
  6215. {/* ))*/}
  6216. {/* }*/}
  6217. {/* </div>*/}
  6218. {/* </div>*/}
  6219. {/* ) : (*/}
  6220. {/* ''*/}
  6221. {/* )}*/}
  6222. {/* </Spin>*/}
  6223. {/*</TabPane>*/}
  6224. {!this.props.isZxs || (this.state.isHuiyuan && this.props.isZxs) ? (
  6225. <TabPane tab="订单详情" key="3">
  6226. <Spin spinning={this.state.loading}>
  6227. <OrderDetail
  6228. orderData={this.state.orderData}
  6229. getOrderLog={this.getOrderLog}
  6230. dataSourceX={this.state.dataSourceX}
  6231. contactList={this.state.jiedian}
  6232. orderNo={this.state.orderNo}
  6233. totalCui={this.state.totalCui}
  6234. contactListNew={this.state.jiedianNew}
  6235. pictureUrl={this.state.contractPictureUrl}
  6236. />
  6237. </Spin>
  6238. </TabPane>
  6239. ) : (
  6240. ''
  6241. )}
  6242. </Tabs>
  6243. </div>
  6244. </Modal> : <div/>}
  6245. {this.state.visibleA ? <Modal
  6246. width="800px"
  6247. visible={this.state.visibleA}
  6248. onCancel={this.visitCancelA}
  6249. title="操作日志"
  6250. footer=""
  6251. className="admin-desc-content"
  6252. >
  6253. <div className="patent-table patent-table-center">
  6254. <Spin spinning={this.state.loading}>
  6255. <Table
  6256. columns={this.state.columnsA}
  6257. dataSource={this.state.dataSourceA}
  6258. pagination={false}
  6259. bordered
  6260. size="small"
  6261. />
  6262. </Spin>
  6263. </div>
  6264. </Modal> : null}
  6265. {this.state.timeVisible ? <Modal
  6266. title="工时记录"
  6267. visible={this.state.timeVisible}
  6268. onCancel={this.timeClose}
  6269. width={800}
  6270. footer={null}
  6271. >
  6272. <Spin spinning={this.state.loading}>
  6273. <Table
  6274. columns={this.state.columnsTime}
  6275. dataSource={this.state.dataSourceTime}
  6276. pagination={false}
  6277. scroll={{ x: 'max-content', y: 0 }}
  6278. bordered
  6279. size={'small'}
  6280. />
  6281. <p style={{ marginTop: 10, color: 'red' }}>
  6282. 累计工时(小时):{this.state.recordHour}
  6283. </p>
  6284. </Spin>
  6285. </Modal> :null}
  6286. {this.state.ThirdListVisible ? <NewSupplier
  6287. patentNameType={this.state.patentNameType}
  6288. ThirdId={this.state.ThirdId}
  6289. tid={this.state.tid}
  6290. patentType={this.state.patentType}
  6291. projectType={this.state.startType === 0 ? 0 : this.state.projectType}
  6292. realProjectType={this.state.projectType} //真实的项目类型
  6293. startType={this.state.startType} //项目类型 0外包 1供应商
  6294. thirdCompanyName={this.state.thirdCompanyName}
  6295. thirdUnitPrice={this.state.thirdUnitPrice}
  6296. thirdQuantity={this.state.thirdQuantity}
  6297. thirdRemarks={this.state.thirdRemarks}
  6298. spinning={this.state.loading}
  6299. visible={this.state.ThirdListVisible}
  6300. thirdMaterial={this.state.thirdMaterial}
  6301. thirdUrgent={this.state.thirdUrgent}
  6302. audit={this.state.audit}
  6303. assets={this.state.assets}
  6304. income={this.state.income}
  6305. onDetermine={this.handleCancelq}
  6306. onCancel={()=>{
  6307. this.thirdTable(this.state.tid);
  6308. this.setState({
  6309. ThirdListVisible: false,
  6310. ThirdId: '', //供应商id
  6311. thirdCompanyName: '', //第三方名称
  6312. thirdUnitPrice: '', //单价
  6313. thirdQuantity: '', //数量
  6314. currentTotalPrice: '', //总价
  6315. thirdMaterial: 0, //有无材料
  6316. thirdUrgent: 0, //加急情况
  6317. thirdRemarks: '',
  6318. audit: 1,
  6319. assets: '',
  6320. income: '',
  6321. })
  6322. }}
  6323. otherOperations={(data)=>{
  6324. this.setState({
  6325. thirdMaterial: data.thirdMaterial,
  6326. thirdUrgent: data.thirdUrgent,
  6327. customerArr: data.customerArr,
  6328. thirdCompanyName: data.thirdCompanyName
  6329. })
  6330. }}/> : <div/>}
  6331. {this.state.PayNodeVisible ? <OperationPayNode
  6332. tid={this.state.tid}
  6333. cSort={this.state.cSort}
  6334. visible={this.state.PayNodeVisible}
  6335. thirdId={this.state.ThirdId}
  6336. thirdInfoList={this.state.thirdInfoList}
  6337. supplierList={this.state.PayNodeCompany}
  6338. payNodeInfor={this.state.payNodeInfor}
  6339. thirdUnitPrice={this.state.thirdUnitPrice}
  6340. onCancel={async ()=>{
  6341. this.setState({
  6342. PayNodeVisible: false,
  6343. payNodeInfor: {},
  6344. ThirdId: '',
  6345. thirdUnitPrice: '',
  6346. })
  6347. if(this.state.paySubject.length === 0 ){
  6348. await this.xiangqing(this.state.tid);
  6349. // 获取Csort
  6350. await this.getCsortData(localStorage.getItem('cSort'))
  6351. await this.payNodeTable(this.state.tid);
  6352. }else{
  6353. await this.payNodeTable(this.state.tid)
  6354. }
  6355. }}
  6356. /> : <div/>}
  6357. {this.state.projectSituationVisible ?
  6358. <NowProjectStatus
  6359. tid={this.state.tid}
  6360. cSort={parseInt(this.state.cSort)}
  6361. projectTypeJSON={this.state.timeRecord ? JSON.parse(this.state.timeRecord) : {}}
  6362. projectType={this.state.projectType}
  6363. projectStatus={this.state.projectStatus}
  6364. visible={this.state.projectSituationVisible}
  6365. oldData={{
  6366. endDate:this.state.endDate, //完成时间
  6367. acceptDate:this.state.acceptDate,//受理时间
  6368. publicityDate:this.state.publicityDate,//公示时间
  6369. licenceDate:this.state.licenceDate,//发证时间
  6370. setUpAmount:this.state.setUpAmount,//立项金额
  6371. }}
  6372. onCancel={()=>{
  6373. this.setState({
  6374. projectSituationVisible: false
  6375. })
  6376. }}
  6377. onPreservation={(value)=>{
  6378. this.xiangqing(this.state.id)
  6379. this.setState({
  6380. projectSituationVisible: false
  6381. })
  6382. }}
  6383. /> : null
  6384. }
  6385. {this.state.addnextVisible && <ProjectDetailsReadOnly
  6386. infor={this.state.dataInfor}
  6387. visible={this.state.addnextVisible}
  6388. onCancel={this.nextCancel}
  6389. />}
  6390. </div>
  6391. )
  6392. },
  6393. })
  6394. export default Task