myTask.jsx 347 KB

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