myTask.jsx 339 KB

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