myTask.jsx 240 KB

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