myTask.jsx 346 KB

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