myTask.jsx 240 KB

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