myTask.jsx 240 KB

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