myTask.jsx 247 KB

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