myTask.jsx 248 KB

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