myTask.jsx 340 KB

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