myTask.jsx 254 KB

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