myTask.jsx 252 KB

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