myTask.jsx 263 KB

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