myTask.jsx 227 KB

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