myTask.jsx 238 KB

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