myTask.jsx 353 KB

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