myTask.jsx 255 KB

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