myTask.jsx 264 KB

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