myTask.jsx 242 KB

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