myTask.jsx 352 KB

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