myTask.jsx 351 KB

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