myTask.jsx 253 KB

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