myTask.jsx 238 KB

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