myTask.jsx 235 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512
  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. attachmentUrl: thisdata.attachmentUrl
  1559. ? splitUrl(
  1560. thisdata.attachmentUrl,
  1561. ',',
  1562. globalConfig.avatarHost + '/upload'
  1563. )
  1564. : [], //图片地址
  1565. salesmanName: thisdata.salesmanName, //订单负责人
  1566. startDate: thisdata.startDate, //启动日期
  1567. endDate: thisdata.endDate, //结束日期
  1568. acceptDate: thisdata.acceptDate, //受理日期
  1569. reviewDate: thisdata.reviewDate, //评审日期
  1570. publicityDate: thisdata.publicityDate, //公示日期
  1571. licenceDate: thisdata.licenceDate, //发证日期
  1572. contacts: thisdata.contacts, //联系人
  1573. contactMobile: thisdata.contactMobile, //联系人电话
  1574. legalPerson: thisdata.legalPerson, //法人
  1575. legalPersonTel: thisdata.legalPersonTel, //法人电话
  1576. certificateNumber: thisdata.certificateNumber, //证书编号
  1577. status: thisdata.status, //状态 0未开始 1已开始 2已暂停 3已完成 4已驳回 5已退单
  1578. modifyProjectStatus: thisdata.status,
  1579. formRetrieve: thisdata.formRetrieve, //满意度表格
  1580. taskRefund: thisdata.taskRefund, //退单
  1581. refundContent: thisdata.refundContent, //退单信息
  1582. retrieveContent: thisdata.retrieveContent, //回收信息
  1583. arrivalMoney: thisdata.arrivalMoney, //是否到款
  1584. setUpAmount: thisdata.setUpAmount, //立项金额
  1585. declareUser: thisdata.declareUser, //账号
  1586. declarePwd: thisdata.declarePwd, //密码
  1587. outsourceName: thisdata.outsourceName, //外包公司
  1588. outsourcePrice: thisdata.outsourcePrice, //外包价格
  1589. declarationBatch: thisdata.declarationBatch,
  1590. orderTaskOfficialCost: thisdata.officialCost, //官费 0无 1有
  1591. })
  1592. }
  1593. }.bind(this),
  1594. }).always(
  1595. function () {
  1596. this.setState({
  1597. loading: false,
  1598. })
  1599. }.bind(this)
  1600. )
  1601. },
  1602. //订单详情
  1603. xiangqings(orderNos) {
  1604. $.ajax({
  1605. method: 'get',
  1606. dataType: 'json',
  1607. crossDomain: false,
  1608. url: globalConfig.context + '/api/admin/newOrder/getOrderNewDetail',
  1609. data: {
  1610. orderNo: orderNos,
  1611. },
  1612. success: function (data) {
  1613. let thisdata = data.data
  1614. let ProvinceCityArr = []
  1615. let ProvinceS = thisdata.locationProvince //省
  1616. let citys = thisdata.locationCity //市
  1617. let Areas = thisdata.locationArea //区
  1618. ProvinceCityArr.push(ProvinceS, citys, Areas)
  1619. if (data.error.length || data.data.list == '') {
  1620. if (data.error && data.error.length) {
  1621. message.warning(data.error[0].message)
  1622. }
  1623. } else {
  1624. this.setState({
  1625. processStatus: thisdata.processStatus, //流程状态
  1626. liquidationStatus: thisdata.liquidationStatus, //结算状态
  1627. approval: thisdata.approval, //特批状态
  1628. orderRemarks: thisdata.orderRemarks, //订单留言
  1629. salesmanName: thisdata.salesmanName, //营销员名称
  1630. salesmanMobile: thisdata.salesmanMobile, //营销员电话
  1631. financeName: thisdata.financeName, //财务名称
  1632. financeMobile: thisdata.financeMobile, //财务电话
  1633. oldSalesmanName: thisdata.oldSalesmanName, //营销员名称
  1634. oldSalesmanMobile: thisdata.oldSalesmanMobile, //营销员电话
  1635. nowFinance: thisdata.nowFinance, //财务名称
  1636. nowFinanceMobile: thisdata.nowFinanceMobile, //财务电话
  1637. depName: thisdata.depName, //订单部门
  1638. ProvinceCity: ProvinceCityArr[0] === null ? [] : ProvinceCityArr,
  1639. postalAddress: thisdata.postalAddress, //详细地址
  1640. })
  1641. }
  1642. }.bind(this),
  1643. }).always(
  1644. function () {
  1645. this.setState({
  1646. loading: false,
  1647. })
  1648. }.bind(this)
  1649. )
  1650. },
  1651. //项目列表
  1652. xiangmu(orderNos) {
  1653. $.ajax({
  1654. method: 'get',
  1655. dataType: 'json',
  1656. crossDomain: false,
  1657. url: globalConfig.context + '/api/admin/newOrder/getOrderTask',
  1658. data: {
  1659. orderNo: orderNos,
  1660. },
  1661. success: function (data) {
  1662. let theArr = []
  1663. if (data.error.length || data.data.list == '') {
  1664. if (data.error && data.error.length) {
  1665. message.warning(data.error[0].message)
  1666. }
  1667. } else {
  1668. for (let i = 0; i < data.data.length; i++) {
  1669. let thisdata = data.data[i]
  1670. localStorage.setItem('cSort', thisdata.cSort)
  1671. theArr.push({
  1672. key: i,
  1673. id: thisdata.id,
  1674. orderNo: thisdata.orderNo, //订单编号
  1675. commodityId: thisdata.commodityId, //项目ID
  1676. commodityName: thisdata.commodityName, //项目名称
  1677. cname: thisdata.cname, //项目类别
  1678. commodityPrice: thisdata.commodityPrice, //项目价格
  1679. commodityQuantity: thisdata.commodityQuantity, //项目数量
  1680. main: thisdata.main, //是否为主要项目
  1681. taskComment: thisdata.taskComment, //项目说明
  1682. contacts: thisdata.contacts, //联系人
  1683. contactsMobile: thisdata.contactsMobile, //联系人电话
  1684. taskStatus: thisdata.taskStatus, //是否分配
  1685. contractNo: thisdata.contractNo, //合同编号
  1686. certificateNumber: thisdata.certificateNumber,
  1687. splitStatus: thisdata.splitStatus,
  1688. officialCost: thisdata.officialCost,
  1689. costReduction: thisdata.costReduction,
  1690. type: thisdata.type,
  1691. cSort: thisdata.cSort,
  1692. })
  1693. }
  1694. }
  1695. this.setState({
  1696. dataSourceX: theArr,
  1697. type: theArr[0].type,
  1698. cSort: theArr[0].cSort,
  1699. })
  1700. }.bind(this),
  1701. }).always(
  1702. function () {
  1703. this.setState({
  1704. loading: false,
  1705. })
  1706. }.bind(this)
  1707. )
  1708. },
  1709. //导出
  1710. exportExec() {
  1711. let departmentName = '',
  1712. depart = this.state.departmentArr || []
  1713. depart.map((item) => {
  1714. if (this.state.departmentId == item.id) {
  1715. departmentName = item.name
  1716. return
  1717. }
  1718. })
  1719. let data = {
  1720. departmentId: this.state.departmentId,
  1721. departmentName: departmentName,
  1722. salesName: this.state.orderRefundSearch, //订单负责人
  1723. startTime: this.state.releaseDate[0],
  1724. endTime: this.state.releaseDate[1],
  1725. grantStatus: this.state.grantStatus,
  1726. }
  1727. window.location.href =
  1728. globalConfig.context +
  1729. '/api/admin/orderProject/exporProjectList?' +
  1730. $.param(data)
  1731. },
  1732. //关闭详情
  1733. visitCancel() {
  1734. this.setState({
  1735. visible: false,
  1736. speVisible: false,
  1737. activeKey: '1',
  1738. updataSwicth: false,
  1739. projectSituationVisible: false,
  1740. })
  1741. this.reset()
  1742. },
  1743. visitOk() {
  1744. this.setState({
  1745. visible: false,
  1746. speVisible: false,
  1747. })
  1748. this.reset()
  1749. },
  1750. closeDesc(e, s) {
  1751. this.state.showDesc = e
  1752. if (s) {
  1753. this.loadData(this.state.page)
  1754. }
  1755. },
  1756. closeAssign(e, s) {
  1757. this.state.roleName = ''
  1758. this.state.assignVisible = e
  1759. if (s) {
  1760. this.loadData(this.state.page)
  1761. }
  1762. },
  1763. //添加工时
  1764. okCancel(record) {
  1765. this.setState({
  1766. lookVisible: true,
  1767. taskId: record.id,
  1768. })
  1769. },
  1770. //测试
  1771. getOrgCodeUrl(e) {
  1772. this.setState({ orgCodeUrl: e })
  1773. },
  1774. //查看下证信息
  1775. loaduserss(record) {
  1776. $.ajax({
  1777. method: 'get',
  1778. dataType: 'json',
  1779. crossDomain: false,
  1780. url: globalConfig.context + '/api/admin/orderProject/selectTaskProgress',
  1781. data: {
  1782. tid: record.id,
  1783. },
  1784. success: function (data) {
  1785. let theArr = []
  1786. let thisData = []
  1787. if (!thisData) {
  1788. if (data.error && data.error.length) {
  1789. message.warning(data.error[0].message)
  1790. }
  1791. thisData = {}
  1792. } else {
  1793. for (let i = 0; i < data.data.length; i++) {
  1794. thisData = data.data[i]
  1795. theArr.push({
  1796. num: i + 1,
  1797. key: i,
  1798. id: thisData.id, //编号
  1799. alreadyNumber: thisData.alreadyNumber, //下证数
  1800. licenceTimes: thisData.licenceTimes, //下证时间
  1801. notCount: thisData.notCount, //未下证数
  1802. flag: true,
  1803. })
  1804. }
  1805. this.setState({
  1806. contactList: theArr,
  1807. tid: record.id,
  1808. })
  1809. }
  1810. }.bind(this),
  1811. }).always(
  1812. function () {
  1813. this.setState({
  1814. loading: false,
  1815. })
  1816. }.bind(this)
  1817. )
  1818. },
  1819. // 拆分详细
  1820. showRes(record) {
  1821. this.setState({
  1822. resVisible: true,
  1823. resRecord: record,
  1824. })
  1825. },
  1826. resCancel() {
  1827. this.setState({
  1828. resVisible: false,
  1829. })
  1830. },
  1831. //下证信息保存
  1832. contactSave(record) {
  1833. if (!record.licenceTimes) {
  1834. message.warning('下证日期不能为空')
  1835. return
  1836. }
  1837. if (!record.alreadyNumber) {
  1838. message.warning('下证数量不能为空')
  1839. return
  1840. }
  1841. this.setState({
  1842. loading: true,
  1843. })
  1844. $.ajax({
  1845. url: globalConfig.context + '/api/admin/orderProject/createTaskProgress',
  1846. method: 'post',
  1847. data: {
  1848. taskId: this.state.id,
  1849. licenceTimes: record.licenceTimes,
  1850. alreadyNumber: record.alreadyNumber,
  1851. },
  1852. }).done(
  1853. function (data) {
  1854. this.setState({
  1855. loading: false,
  1856. })
  1857. if (!data.error.length) {
  1858. message.success('保存成功!')
  1859. record.flag = true
  1860. this.loaduserss(this.state.dataArr)
  1861. } else {
  1862. message.warning(data.error[0].message)
  1863. }
  1864. }.bind(this)
  1865. )
  1866. },
  1867. //下证信息删除
  1868. contactDele(record) {
  1869. this.setState({
  1870. loading: true,
  1871. })
  1872. $.ajax({
  1873. url: globalConfig.context + '/api/admin/orderProject/delectTaskProgress',
  1874. method: 'post',
  1875. data: {
  1876. id: record.id,
  1877. },
  1878. }).done(
  1879. function (data) {
  1880. this.setState({
  1881. loading: false,
  1882. })
  1883. if (!data.error.length) {
  1884. this.loaduserss(this.state.dataArr)
  1885. } else {
  1886. message.warning(data.error[0].message)
  1887. }
  1888. }.bind(this)
  1889. )
  1890. },
  1891. //点击新增下证信息
  1892. addcontact() {
  1893. this.state.contactList.push({
  1894. num: this.state.contactList.length + 1,
  1895. key: this.state.contactList.length,
  1896. licenceTimes: '',
  1897. alreadyNumber: '',
  1898. notCount: '',
  1899. dels: '',
  1900. flag: false,
  1901. aflag: false,
  1902. })
  1903. this.setState({
  1904. contactList: this.state.contactList,
  1905. })
  1906. },
  1907. //删除下证信息
  1908. confirmDelet(record) {
  1909. this.state.contactList.splice(record.key, 1)
  1910. this.setState({
  1911. contactList: this.state.contactList,
  1912. })
  1913. if (record.id) {
  1914. this.contactDele(record)
  1915. }
  1916. },
  1917. caozuorizhi() {
  1918. this.setState({
  1919. visibleA: true,
  1920. })
  1921. $.ajax({
  1922. method: 'get',
  1923. dataType: 'json',
  1924. crossDomain: false,
  1925. url: globalConfig.context + '/api/admin/orderProject/TaskLogList',
  1926. data: {
  1927. id: this.state.id,
  1928. },
  1929. success: function (data) {
  1930. let theArr = []
  1931. if (data.error.length || data.data.list == '') {
  1932. if (data.error && data.error.length) {
  1933. message.warning(data.error[0].message)
  1934. }
  1935. } else {
  1936. for (let i = 0; i < data.data.length; i++) {
  1937. let thisdata = data.data[i]
  1938. theArr.push({
  1939. key: i,
  1940. id: thisdata.id, //日志ID
  1941. content: thisdata.content, //流程
  1942. taskId: thisdata.taskId, //项目ID
  1943. aName: thisdata.aName, //负责人
  1944. createTimes: thisdata.createTimes, //时间
  1945. })
  1946. }
  1947. }
  1948. this.setState({
  1949. dataSourceA: theArr,
  1950. })
  1951. }.bind(this),
  1952. }).always(
  1953. function () {
  1954. this.setState({
  1955. loading: false,
  1956. })
  1957. }.bind(this)
  1958. )
  1959. },
  1960. //关闭操作工时
  1961. visitCancelA() {
  1962. this.setState({
  1963. visibleA: false,
  1964. })
  1965. },
  1966. nextCancel() {
  1967. this.setState({
  1968. addnextVisible: false,
  1969. displayFees: 'none',
  1970. officialCost: '', //是否有官费
  1971. costReduction: '', //是否有费减
  1972. })
  1973. },
  1974. //点击打卡项目详情
  1975. tableRowClickX(record) {
  1976. if (record.type == '1') {
  1977. this.setState({
  1978. displayFees: 'block',
  1979. costReduction: record.costReduction,
  1980. officialCost: record.officialCost,
  1981. })
  1982. }
  1983. this.setState({
  1984. jid: record.id, //项目ID
  1985. kid: record.commodityId, //商品ID
  1986. commodityName: record.commodityName, //金额
  1987. commodityPrice: record.commodityPrice, //金额
  1988. commodityQuantity: record.commodityQuantity, //数量
  1989. taskComment: record.taskComment, //备注
  1990. main: record.main.toString(), //是否为主要
  1991. addnextVisible: true,
  1992. addState: 0,
  1993. })
  1994. },
  1995. //关闭添加工时
  1996. noCancel() {
  1997. this.setState({
  1998. lookVisible: false,
  1999. })
  2000. this.reset()
  2001. },
  2002. search() {
  2003. this.loadData()
  2004. },
  2005. reset(flag) {
  2006. if (flag) {
  2007. this.setState({
  2008. nameSearch : '',
  2009. orderNoSearch : '',
  2010. contractNoSearch : undefined,
  2011. taskNoSearch : '',
  2012. departmenttSearch : undefined,
  2013. projectStatusSearch : undefined, //项目状态
  2014. approvalSearch : undefined,
  2015. outsourceStatusSearch : [],
  2016. })
  2017. }
  2018. this.setState({
  2019. oldInfor: {},
  2020. outsourceRemarks: undefined,
  2021. thirdInfoList: [],
  2022. payNodeList: [],
  2023. orderNo: '',//订单编号
  2024. tid: '',
  2025. id : '', //项目编号
  2026. projectStatus : undefined, //项目状态
  2027. taskStatuSearch : undefined, //项目状态
  2028. startDate : '', //启动日期
  2029. endDate : '', //结束日期
  2030. acceptDate : '', //受理日期
  2031. reviewDate : '', //评审日期
  2032. publicityDate : '', //公示日期
  2033. licenceDate : '', //发证日期
  2034. partyTimes : '', //付款时间
  2035. attachmentUrl: [], //附件
  2036. contacts : '', //联系人
  2037. contactMobile : '', //联系人电话
  2038. legalPerson : '', //法人
  2039. legalPersonTel : '', //法人电话
  2040. taskId : '', //项目编号
  2041. hours : '', //工时
  2042. remarks : '', //说明
  2043. taskDate : '', //日期
  2044. taskComment : '', //说明
  2045. releaseDate : [],
  2046. outsourceName : '',
  2047. outsourcePrice : undefined,
  2048. distribution : undefined,
  2049. companyName : undefined,
  2050. unitPrice : undefined,
  2051. unitNumber : undefined,
  2052. amount : undefined,
  2053. pictureUrl : [],
  2054. allTotalAmount: 0,
  2055. })
  2056. this.loadData(flag ? '' : this.state.page)
  2057. },
  2058. searchSwitch() {
  2059. this.setState({
  2060. searchMore: !this.state.searchMore,
  2061. })
  2062. },
  2063. //部门
  2064. departmentList() {
  2065. this.setState({
  2066. loading: true,
  2067. })
  2068. $.ajax({
  2069. method: 'get',
  2070. dataType: 'json',
  2071. crossDomain: false,
  2072. url: globalConfig.context + '/api/admin/organization/selectSuperId',
  2073. data: {},
  2074. success: function (data) {
  2075. let thedata = data.data
  2076. let theArr = []
  2077. if (!thedata) {
  2078. if (data.error && data.error.length) {
  2079. message.warning(data.error[0].message)
  2080. }
  2081. thedata = {}
  2082. } else {
  2083. thedata.map(function (item, index) {
  2084. theArr.push({
  2085. key: index,
  2086. name: item.name,
  2087. id: item.id,
  2088. })
  2089. })
  2090. }
  2091. this.setState({
  2092. departmentArr: theArr,
  2093. })
  2094. }.bind(this),
  2095. }).always(
  2096. function () {
  2097. this.setState({
  2098. loading: false,
  2099. })
  2100. }.bind(this)
  2101. )
  2102. },
  2103. changeList(arr) {
  2104. const newArr = []
  2105. this.state.columns.forEach((item) => {
  2106. arr.forEach((val) => {
  2107. if (val === item.title) {
  2108. newArr.push(item)
  2109. }
  2110. })
  2111. })
  2112. this.setState({
  2113. changeList: newArr,
  2114. })
  2115. },
  2116. timeClose() {
  2117. this.setState({
  2118. timeVisible: false,
  2119. })
  2120. },
  2121. timeDetail(record) {
  2122. console.log(record)
  2123. this.setState({
  2124. loading: true,
  2125. recordHour: record.hours,
  2126. })
  2127. $.ajax({
  2128. method: 'get',
  2129. dataType: 'json',
  2130. crossDomain: false,
  2131. url:
  2132. globalConfig.context + '/api/admin/orderProject/taskHoursDetailsList',
  2133. data: {
  2134. taskId: record.id,
  2135. },
  2136. success: function (data) {
  2137. if (data.error && data.error.length) {
  2138. message.warning(data.error[0].message)
  2139. } else {
  2140. this.setState({
  2141. dataSourceTime: data.data,
  2142. })
  2143. console.log(this.state.dataSourceTime)
  2144. }
  2145. }.bind(this),
  2146. }).always(
  2147. function () {
  2148. this.setState({
  2149. loading: false,
  2150. })
  2151. }.bind(this)
  2152. )
  2153. },
  2154. showDeleteConfirm(num, fn) {
  2155. let text = getProjectStatus(num)
  2156. confirm({
  2157. title: <p style={{ fontSize: 16, fontWeight: 900 }}>注意</p>,
  2158. content: (
  2159. <p style={{ fontWeight: 900, color: 'red' }}>
  2160. 当前的项目状态为{text},保存后将触发对应的催款节点!!!您确定保存?
  2161. </p>
  2162. ),
  2163. okText: '确定',
  2164. okType: 'danger',
  2165. cancelText: '取消',
  2166. onOk() {
  2167. fn()
  2168. },
  2169. onCancel() {},
  2170. })
  2171. },
  2172. // 项目发起外包
  2173. sureOut(startType) {
  2174. if (this.state.startType !== 0 && this.state.startType !== 1) {
  2175. message.warning('请选择类型')
  2176. return
  2177. }
  2178. //0正常 1专利 2软著 3审计
  2179. if (this.state.projectType === 1) {
  2180. //专利
  2181. if (this.state.patentType === -1) {
  2182. message.warning('请选择专利类型')
  2183. return
  2184. }
  2185. if (this.state.patentNameType === -1) {
  2186. message.warning('请选择专利类型名称')
  2187. return
  2188. }
  2189. if (this.state.patentNameType == 3) {
  2190. if (!this.state.patentName) {
  2191. message.warning('请填写专利名称')
  2192. return
  2193. }
  2194. }
  2195. }
  2196. if (!this.state.outsourceRemarks) {
  2197. message.warning('备注不能为空')
  2198. return
  2199. }
  2200. //refundStatus 0-待审核 ,1-审核通过,2-审核拒绝
  2201. //类型为供应商时不需要发起原因
  2202. //this.state.startType 0外包 1供应商
  2203. if(!this.state.reason && (this.state.refundStatus === 2 || typeof this.state.refundStatus === 'undefined') && this.state.startType !== 1){
  2204. message.warning('发起原因不能为空')
  2205. return
  2206. }
  2207. // if (!this.state.pictureUrl && !Array.isArray(this.state.pictureUrl)) {
  2208. // message.warning('合同扫描件不能为空')
  2209. // return
  2210. // }
  2211. // if(this.state.pictureUrl.length === 0){
  2212. // message.warning('合同扫描件不能为空')
  2213. // return
  2214. // }
  2215. let _this = this;
  2216. let ajaxObj = null;
  2217. confirm({
  2218. title: startType === 0 ? '确定要发起外包吗?' : '确定要提交供应商信息吗?',
  2219. content: startType === 0 ? '高于总部价格,费用个人承担' : '确定提交供应商信息后,不可修改',
  2220. onOk() {
  2221. return new Promise((resolve, reject) => {
  2222. _this.setState({
  2223. sureOutLoading: true,
  2224. })
  2225. let data = {
  2226. tid: _this.state.id,
  2227. orderNo: _this.state.orderNo,
  2228. type: 1, //分类 0订单 1项目
  2229. startType: _this.state.startType, //支付类型 0外包 1供应商 false 0
  2230. companyName: _this.state.companyName,
  2231. amount: _this.state.amount,
  2232. outsourceRemarks: _this.state.outsourceRemarks,
  2233. unitNumber: _this.state.unitNumber,
  2234. unitPrice: _this.state.unitPrice,
  2235. id: _this.state.refundStatus === 2 ? _this.state.mid : undefined,//被拒绝外包申请时,需要传id
  2236. }
  2237. if(_this.state.startType !== 0){
  2238. data.actualOfficial = _this.state.containOfficialFees;//0实际已缴费 1实际未缴费
  2239. }
  2240. //refundStatus 0-待审核 ,1-审核通过,2-审核拒绝 审核被驳回时和第一次发起外包时,要填写发起原因
  2241. //this.state.startType 0外包 1供应商
  2242. //类型为外包时不需要传 发起原因
  2243. if((_this.state.refundStatus === 2 || typeof _this.state.refundStatus === 'undefined') && _this.state.startType !== 1){
  2244. data.reason = _this.state.reason
  2245. }
  2246. if (_this.state.projectType === 1) {
  2247. data.patentType = _this.state.patentType;
  2248. data.patentNameType = _this.state.patentNameType;
  2249. if (_this.state.patentNameType == 3) {
  2250. data.patentName = _this.state.patentName;
  2251. }
  2252. }
  2253. if (_this.state.pictureUrl && Array.isArray(_this.state.pictureUrl) && _this.state.pictureUrl.length !== 0){
  2254. data.pictureUrl = _this.getUrl(_this.state.pictureUrl).length
  2255. ? _this.getUrl(_this.state.pictureUrl)
  2256. : ''
  2257. }
  2258. ajaxObj = $.ajax({
  2259. method: 'POST',
  2260. dataType: 'json',
  2261. crossDomain: false,
  2262. url:
  2263. globalConfig.context + '/api/admin/outsourceOrg/outsourceProjectAudit',
  2264. data: data,
  2265. }).done(
  2266. function (data) {
  2267. _this.setState({
  2268. sureOutLoading: false,
  2269. })
  2270. if (!data.error.length) {
  2271. resolve();
  2272. message.success('提交成功!')
  2273. _this.waiDetail();
  2274. _this.thirdTable(_this.state.tid);
  2275. _this.getSelectOutsourceLog(_this.state.tid);
  2276. _this.payNodeTable(_this.state.tid)
  2277. } else {
  2278. message.warning(data.error[0].message);
  2279. reject();
  2280. }
  2281. }.bind(_this)
  2282. )
  2283. }).catch((err) => console.log(err));
  2284. },
  2285. onCancel() {
  2286. ajaxObj ? ajaxObj.abort() : '';
  2287. _this.setState({
  2288. sureOutLoading: false,
  2289. })
  2290. },
  2291. });
  2292. },
  2293. callback(e) {
  2294. this.setState({
  2295. activeKey: e,
  2296. })
  2297. if (e == 3) {
  2298. this.orderDetailData(this.state.orderNo)
  2299. this.xiangmu(this.state.orderNo)
  2300. this.jiedian(this.state.orderNo)
  2301. this.jiedianNew(this.state.orderNo)
  2302. }
  2303. },
  2304. getOrgCodeUrlWai(e) {
  2305. this.setState({ pictureUrl: e })
  2306. },
  2307. getUrl(url) {
  2308. let theorgCodeUrl = []
  2309. if (url.length) {
  2310. let picArr = []
  2311. url.map(function (item) {
  2312. if (item.response && item.response.data && item.response.data.length) {
  2313. picArr.push(item.response.data)
  2314. }
  2315. })
  2316. theorgCodeUrl = picArr.join(',')
  2317. }
  2318. return theorgCodeUrl
  2319. },
  2320. waiDetail() {
  2321. let url = window.location.href.substring(7)
  2322. this.setState({
  2323. waiDetailLoading: true,
  2324. })
  2325. let ajaxObj = $.ajax({
  2326. method: 'get',
  2327. dataType: 'json',
  2328. crossDomain: false,
  2329. url:
  2330. globalConfig.context + '/api/admin/outsourceOrg/orderOutsourceDtails',
  2331. data: {
  2332. tid: this.state.id,
  2333. orderNo: this.state.orderNo,
  2334. },
  2335. }).done(
  2336. function (data) {
  2337. if (!data.error.length && data.data) {
  2338. if(!isNaN(parseFloat(data.data.unitNumber))){
  2339. this.setState({
  2340. oldInfor: {
  2341. companyName:data.data.companyName,
  2342. unitPrice:data.data.unitPrice,
  2343. unitNumber:data.data.unitNumber,
  2344. amount:data.data.amount,
  2345. outsourceRemarks:data.data.outsourceRemarks,
  2346. refundStatus: data.data.refundStatus,
  2347. pictureUrl: data.data.pictureUrl
  2348. ? splitUrl(
  2349. data.data.pictureUrl,
  2350. ',',
  2351. globalConfig.avatarHost + '/upload',
  2352. url
  2353. )
  2354. : [], //图片地址
  2355. },
  2356. })
  2357. }else{
  2358. this.setState({
  2359. oldInfor: {},
  2360. })
  2361. }
  2362. this.setState({
  2363. containOfficialFees: data.data.actualOfficial,//官费类型 0实际已缴费 1实际未缴费
  2364. startType: data.data.startType, //类型
  2365. patentType: data.data.patentType, //专利类型
  2366. patentNameType: data.data.patentNameType, //专利名称类型
  2367. patentName: data.data.patentName, //专利名称
  2368. outsourceRemarks: data.data.outsourceRemarks,
  2369. remarks: data.data.remarks,
  2370. companyName: data.data.companyName,
  2371. amount: data.data.amount,
  2372. mid: data.data.id,
  2373. unitPrice: data.data.unitPrice,
  2374. refundStatus: data.data.refundStatus,
  2375. unitNumber: data.data.unitNumber, //如果存在 证明是以前的旧数据
  2376. pictureUrl: data.data.pictureUrl
  2377. ? splitUrl(
  2378. data.data.pictureUrl,
  2379. ',',
  2380. globalConfig.avatarHost + '/upload',
  2381. url
  2382. )
  2383. : [], //图片地址
  2384. createTimes: data.data.createTimes,
  2385. auditTimes: data.data.auditTimes,
  2386. },()=>{
  2387. this.setState({
  2388. waiDetailLoading: false,
  2389. })
  2390. })
  2391. } else if (data.error && data.error.length) {
  2392. message.warning(data.error[0].message);
  2393. this.setState({
  2394. waiDetailLoading: false,
  2395. })
  2396. } else if (!data.data) {
  2397. this.setState({
  2398. refundStatus: undefined,
  2399. waiDetailLoading: false,
  2400. })
  2401. }
  2402. }.bind(this)
  2403. )
  2404. this.setState({
  2405. orderOutsourceDtailsAjaxObj: ajaxObj
  2406. })
  2407. },
  2408. rizhi() {
  2409. this.setState({
  2410. loading: true,
  2411. })
  2412. $.ajax({
  2413. method: 'get',
  2414. dataType: 'json',
  2415. crossDomain: false,
  2416. url: '/api/admin/newOrder/selectOrderLog',
  2417. data: {
  2418. orderNo: this.state.orderNo,
  2419. },
  2420. success: function (data) {
  2421. let theArr = []
  2422. let thisData = data.data
  2423. if (!thisData.length) {
  2424. if (data.error && data.error.length) {
  2425. message.warning(data.error[0].message)
  2426. }
  2427. thisData = {}
  2428. } else {
  2429. for (let i = 0; i < data.data.length; i++) {
  2430. let thisdata = data.data[i]
  2431. theArr.push({
  2432. processName: thisdata.processName,
  2433. adminName: thisdata.adminName,
  2434. createDate: thisdata.createDate,
  2435. remarks: thisdata.remarks,
  2436. })
  2437. }
  2438. }
  2439. this.setState({
  2440. dataSourceY: theArr,
  2441. })
  2442. }.bind(this),
  2443. }).always(
  2444. function () {
  2445. this.setState({
  2446. loading: false,
  2447. })
  2448. }.bind(this)
  2449. )
  2450. },
  2451. closeOrderLog() {
  2452. this.setState({
  2453. avisible: false,
  2454. })
  2455. },
  2456. getOrderLog() {
  2457. this.setState({
  2458. avisible: true,
  2459. })
  2460. this.rizhi()
  2461. },
  2462. orderChange(key) {
  2463. this.setState({
  2464. activeKey: key,
  2465. })
  2466. if (key === '3') {
  2467. this.orderDetailData(this.state.orderNo)
  2468. this.xiangmu(this.state.orderNo)
  2469. this.jiedian(this.state.orderNo)
  2470. this.jiedianNew(this.state.orderNo)
  2471. }else if (key === '2') {
  2472. this.waiDetail();
  2473. this.thirdTable(this.state.tid);
  2474. this.payNodeTable(this.state.tid);
  2475. this.getSelectOutsourceLog(this.state.tid);
  2476. }else if(key === "1"){
  2477. this.xiangqing(this.state.tid);
  2478. }
  2479. },
  2480. //节点列表
  2481. jiedian(orderNos) {
  2482. $.ajax({
  2483. method: 'get',
  2484. dataType: 'json',
  2485. crossDomain: false,
  2486. url: globalConfig.context + '/api/admin/newOrder/selectOrderDun',
  2487. data: {
  2488. orderNo: orderNos,
  2489. },
  2490. success: function (data) {
  2491. let theArr = []
  2492. let thisData = []
  2493. if (data.error.length || data.data.list == '') {
  2494. if (data.error && data.error.length) {
  2495. message.warning(data.error[0].message)
  2496. }
  2497. } else {
  2498. for (let i = 0; i < data.data.length; i++) {
  2499. thisData = data.data[i]
  2500. theArr.push({
  2501. key: i,
  2502. dunSubject: thisData.dunSubject
  2503. ? thisData.dunSubject.toString()
  2504. : '', //催款科目
  2505. id: thisData.id, //节点Id
  2506. money: thisData.money, //催款金额
  2507. dunStatus: thisData.dunStatus, //催款状态
  2508. })
  2509. }
  2510. this.setState({
  2511. jiedian: theArr,
  2512. })
  2513. }
  2514. }.bind(this),
  2515. })
  2516. },
  2517. jiedianNew(orderNos) {
  2518. $.ajax({
  2519. method: 'get',
  2520. dataType: 'json',
  2521. crossDomain: false,
  2522. url:
  2523. globalConfig.context + '/api/admin/newOrderDun/selectListNewOrderDun',
  2524. data: {
  2525. orderNo: orderNos,
  2526. },
  2527. success: function (data) {
  2528. if (data.error && data.error.length) {
  2529. message.warning(data.error[0].message)
  2530. } else {
  2531. let theArr = []
  2532. let thisData = []
  2533. let arr = data.data || []
  2534. let totalCui = 0
  2535. for (let i = 0; i < arr.length; i++) {
  2536. thisData = arr[i]
  2537. totalCui += +thisData.money
  2538. theArr.push({
  2539. key: i,
  2540. dunSubject: thisData.dunSubject
  2541. ? thisData.dunSubject.toString()
  2542. : '', //催款科目
  2543. id: thisData.id, //节点Id
  2544. tid: thisData.tid, //节点指定的第三方id
  2545. money: thisData.money, //催款金额
  2546. // orderNo: record ? record.orderNo : this.props.datauser.orderNo,
  2547. commodityName: thisData.commodityName,
  2548. projectType: thisData.projectType,
  2549. dunTypeName: thisData.dunTypeName,
  2550. status: thisData.status,
  2551. waitDay: thisData.waitDay,
  2552. effectiveCount: thisData.effectiveCount,
  2553. startDate: thisData.startDate,
  2554. dunType: thisData.dunType,
  2555. appropriationRatio: thisData.appropriationRatio,
  2556. customizeName: thisData.customizeName,
  2557. customizeTimes: thisData.customizeTimes,
  2558. })
  2559. }
  2560. if (!totalCui) {
  2561. totalCui = 0
  2562. }
  2563. totalCui = (Math.round(totalCui * 1000000) / 1000000).toFixed(6)
  2564. this.setState({
  2565. jiedianNew: theArr,
  2566. totalCui,
  2567. })
  2568. }
  2569. }.bind(this),
  2570. }).always(
  2571. function () {
  2572. this.setState({
  2573. loading: false,
  2574. })
  2575. }.bind(this)
  2576. )
  2577. },
  2578. orderDetailData(orderNos) {
  2579. this.setState({
  2580. loading: true,
  2581. })
  2582. $.ajax({
  2583. method: 'get',
  2584. dataType: 'json',
  2585. crossDomain: false,
  2586. url: globalConfig.context + '/api/admin/newOrder/getOrderNewDetail',
  2587. data: {
  2588. orderNo: orderNos,
  2589. },
  2590. success: function (data) {
  2591. if (data.error.length || data.data.list == '') {
  2592. if (data.error && data.error.length) {
  2593. message.warning(data.error[0].message)
  2594. this.setState({
  2595. loading: false,
  2596. })
  2597. }
  2598. } else {
  2599. let thisdata = data.data
  2600. this.setState({
  2601. loading: false,
  2602. userName: thisdata.userName,
  2603. primaryOrderNo: thisdata.primaryOrder,
  2604. additionalOrder: thisdata.additionalOrder,
  2605. contractNo: thisdata.contractNo,
  2606. orderData: thisdata,
  2607. isAddition: thisdata.additionalOrder ? true : false,
  2608. contractPictureUrl: thisdata.contractPictureUrl
  2609. ? splitUrl(
  2610. thisdata.contractPictureUrl,
  2611. ',',
  2612. globalConfig.avatarHost + '/upload'
  2613. )
  2614. : [],
  2615. })
  2616. }
  2617. }.bind(this),
  2618. })
  2619. },
  2620. //点击新增供应商
  2621. addcontactNew() {
  2622. this.state.contactListNew.push({
  2623. key: this.state.contactListNew.length,
  2624. money: '',
  2625. dunSubject: undefined,
  2626. orderNo: this.state.orderNo,
  2627. dunTarget: this.state.kehuId,
  2628. })
  2629. this.setState({
  2630. contactListNew: this.state.contactListNew,
  2631. cuiFlag: true,
  2632. })
  2633. },
  2634. //查看第三方信息表格
  2635. thirdTable(id) {
  2636. this.setState({
  2637. thirdInfoLoading: true,
  2638. })
  2639. let ajaxObj = $.ajax({
  2640. method: 'get',
  2641. dataType: 'json',
  2642. crossDomain: false,
  2643. url: globalConfig.context + '/api/admin/company/selectCompany',
  2644. data: {
  2645. tid: id,
  2646. },
  2647. success: function (data) {
  2648. if (data.error && data.error.length) {
  2649. message.warning(data.error[0].message)
  2650. } else {
  2651. let companyNameArr = [];
  2652. let theArr = [];
  2653. let thisData = [];
  2654. let arr = data.data || [];
  2655. let allTotalAmount = 0;
  2656. let type = 0;
  2657. let startType = 0;
  2658. let patentNameType = 0;
  2659. for (let i = 0; i < arr.length; i++) {
  2660. thisData = arr[i]
  2661. allTotalAmount =
  2662. (allTotalAmount * 10000 + thisData.totalAmount * 10000) / 10000
  2663. companyNameArr.push(thisData.companyName);
  2664. thisData.key = i;
  2665. type=thisData.patentType;
  2666. thisData.patentType = thisData.type;
  2667. theArr.push(thisData);
  2668. startType=thisData.startType;
  2669. patentNameType= thisData.patentNameType
  2670. }
  2671. if (!allTotalAmount) {
  2672. allTotalAmount = 0
  2673. }
  2674. for(let d=0;d<theArr.length;d++){
  2675. theArr[d].companyName = theArr[d].companyName+ '-' + theArr[d].id;
  2676. companyNameArr[d] = {
  2677. companyName: theArr[d].companyName,
  2678. id: theArr[d].id,
  2679. }
  2680. }
  2681. if(type === 0 || type === 1){
  2682. this.setState({
  2683. patentType: type === 0 ? 0 : 1, //0专利申请 1专利买卖
  2684. patentNameType: patentNameType, //0实用新型 1发明专利 2外观专利 3 其他
  2685. })
  2686. }
  2687. //设置项目类型
  2688. if(arr.length >0){
  2689. this.setState({
  2690. startType: startType
  2691. })
  2692. }
  2693. this.setState({
  2694. tid: id,
  2695. PayNodeCompany: companyNameArr,
  2696. thirdInfoList: theArr,
  2697. allTotalAmount: allTotalAmount,
  2698. },()=>{
  2699. this.projectTypeTabContent(this.state.projectType);
  2700. })
  2701. }
  2702. }.bind(this),
  2703. }).always(
  2704. function () {
  2705. this.setState({
  2706. thirdInfoLoading: false,
  2707. })
  2708. }.bind(this)
  2709. )
  2710. this.setState({
  2711. selectCompanyAjaxObj:ajaxObj
  2712. })
  2713. },
  2714. //外包日志列表
  2715. getSelectOutsourceLog(tid){
  2716. this.setState({
  2717. loading: true,
  2718. })
  2719. $.ajax({
  2720. method: 'get',
  2721. dataType: 'json',
  2722. crossDomain: false,
  2723. url: globalConfig.context + '/api/admin/outsourceOrg/selectOutsourceLog',
  2724. data: {
  2725. tid: tid,
  2726. },
  2727. success: function (data) {
  2728. if (data.error.length) {
  2729. if (data.error && data.error.length) {
  2730. message.warning(data.error[0].message);
  2731. }
  2732. } else {
  2733. this.setState({
  2734. outsourceLogs: data.data
  2735. })
  2736. }
  2737. this.setState({
  2738. loading: false,
  2739. })
  2740. }.bind(this),
  2741. }).always(
  2742. function () {
  2743. this.setState({
  2744. loading: false,
  2745. })
  2746. }.bind(this)
  2747. )
  2748. },
  2749. payNodeTable(id) {
  2750. this.setState({
  2751. payNodeLoading: true,
  2752. })
  2753. let ajaxObj = $.ajax({
  2754. method: 'get',
  2755. dataType: 'json',
  2756. crossDomain: false,
  2757. url: globalConfig.context + '/api/admin/company/selectPaymentNode',
  2758. data: {
  2759. tid: id,
  2760. },
  2761. success: function (data) {
  2762. if (data.error && data.error.length) {
  2763. message.warning(data.error[0].message)
  2764. } else {
  2765. let payNodeArr = []
  2766. let thisData = []
  2767. let arr = data.data || []
  2768. // console.log('this.state.paySubject', this.state.paySubject)
  2769. //对#5283自定义的补充展示
  2770. this.state.paySubject.push({ key: '自定义', value: '0' })
  2771. for (let i = 0; i < arr.length; i++) {
  2772. thisData = arr[i]
  2773. //遍历paySubject,获取当前dunType对应的key
  2774. this.state.paySubject.map((item) => {
  2775. if (item.value == thisData.dunType) {
  2776. thisData.dunType = item.key
  2777. }
  2778. })
  2779. payNodeArr.push({
  2780. key: i,
  2781. id: thisData.id, //付款节点Id
  2782. nodeId: thisData.id, //付款节点Id
  2783. tid: thisData.tid,
  2784. companyName: thisData.companyName, //供应商名称
  2785. projectType: thisData.projectType, //项目分类
  2786. dunType: thisData.dunType, //催款分类
  2787. unitPrice: thisData.unitPrice, //单价
  2788. quantity: thisData.quantity, //数量
  2789. totalAmount: thisData.totalAmount, //总价
  2790. partyAmount: thisData.partyAmount, //付款
  2791. partyTimes: thisData.partyTimes, //付款时间
  2792. cid: thisData.cid, //机构id
  2793. status: thisData.status, //催款状态 0-未支付 1-待全款 ,2已全款 status=2的时候已经全款,申请付款按钮可以去掉了
  2794. })
  2795. }
  2796. for(let d=0;d<payNodeArr.length;d++){
  2797. payNodeArr[d].companyName = payNodeArr[d].companyName+ '-' + payNodeArr[d].cid;
  2798. }
  2799. this.setState({
  2800. tid: id,
  2801. payNodeList: payNodeArr,
  2802. })
  2803. }
  2804. }.bind(this),
  2805. }).always(
  2806. function () {
  2807. this.setState({
  2808. payNodeLoading: false,
  2809. })
  2810. }.bind(this)
  2811. )
  2812. this.setState({
  2813. selectPaymentNodeAjaxObj: ajaxObj
  2814. })
  2815. },
  2816. // 新增第三方供应商信息
  2817. addThirdList() {
  2818. this.setState({
  2819. ThirdListVisible: true,
  2820. })
  2821. },
  2822. // 新增支付节点
  2823. addPayNode() {
  2824. this.setState({
  2825. PayNodeVisible: true,
  2826. })
  2827. },
  2828. // 第三方信息自动计算总金额
  2829. calculatedAmount() {
  2830. let currentTotalPrice
  2831. currentTotalPrice = this.state.thirdUnitPrice * this.state.thirdQuantity
  2832. currentTotalPrice = currentTotalPrice.toFixed(6)
  2833. this.setState({
  2834. currentTotalPrice: currentTotalPrice,
  2835. })
  2836. },
  2837. // 付款节点自动计算总金额
  2838. payNodeCalculatedAmount(num) {
  2839. let currentTotalPrice,quantity,unitPrice
  2840. //获取当前供应商名称对应的单价并更新
  2841. this.state.thirdInfoList.forEach((item) => {
  2842. if (item.companyName === this.state.thirdCompanyName) {
  2843. currentTotalPrice = num ? item.unitPrice * num : item.quantity * item.unitPrice;
  2844. currentTotalPrice = currentTotalPrice.toFixed(6);
  2845. quantity = num ? num : item.quantity;
  2846. unitPrice = item.unitPrice;
  2847. }
  2848. })
  2849. this.setState({
  2850. payNodeQuantity: num ? num : quantity,
  2851. })
  2852. if(this.state.projectType !== 2){
  2853. this.setState({
  2854. currentTotalPrice: currentTotalPrice,
  2855. thirdUnitPrice: unitPrice
  2856. })
  2857. }
  2858. },
  2859. // 保存供应商信息
  2860. handleCancelq() {
  2861. let api
  2862. if (this.state.ThirdId) {
  2863. //修改
  2864. api = '/api/admin/company/updateCompany'
  2865. } else {
  2866. //新增
  2867. api = '/api/admin/company/addCompany'
  2868. }
  2869. let customerId = 0;
  2870. let isHave =this.state.customerArr.some((value)=>{
  2871. if(value.companyName === this.state.thirdCompanyName){
  2872. customerId = value.id
  2873. return true;
  2874. }
  2875. });
  2876. if(!isHave && this.state.projectType !== 0){
  2877. message.warning('请输入正确的供应商名称')
  2878. return;
  2879. }
  2880. this.setState({
  2881. loading: true,
  2882. })
  2883. // material: this.state.thirdMaterial, //材料
  2884. // urgent: this.state.thirdUrgent, //加急
  2885. // unitPrice: this.state.thirdUnitPrice, //单价
  2886. let data = {
  2887. id: this.state.ThirdId, //id
  2888. tid: this.state.tid, //订单编号
  2889. companyName: this.state.thirdCompanyName, //第三方名称
  2890. quantity: this.state.thirdQuantity, //数量
  2891. // totalAmount: this.state.currentTotalPrice, //总价
  2892. remarks: this.state.thirdRemarks, //备注
  2893. }
  2894. if(this.state.projectType === 0){
  2895. data.unitPrice = this.state.thirdUnitPrice;
  2896. }
  2897. if(isHave){
  2898. data.cid = customerId ////公司id
  2899. }
  2900. $.ajax({
  2901. url: globalConfig.context + api,
  2902. method: 'post',
  2903. dataType: 'json',
  2904. crossDomain: false,
  2905. data: data,
  2906. }).done(
  2907. function (data) {
  2908. this.setState({
  2909. loading: false,
  2910. })
  2911. if (!data.error.length) {
  2912. message.success('保存成功!')
  2913. this.setState({
  2914. ThirdId: '',
  2915. ThirdListVisible: false,
  2916. thirdCompanyName: '', //第三方名称
  2917. thirdUnitPrice: '', //单价
  2918. thirdQuantity: '', //数量
  2919. currentTotalPrice: '', //总价
  2920. thirdRemarks: '',
  2921. thirdUrgent: 0,
  2922. })
  2923. // this.visitCancel();
  2924. this.thirdTable(this.state.tid)
  2925. } else {
  2926. message.warning(data.error[0].message)
  2927. }
  2928. }.bind(this)
  2929. )
  2930. },
  2931. //保存付款节点
  2932. savePayNode() {
  2933. let api
  2934. if (this.state.ThirdId) {
  2935. //修改
  2936. api = '/api/admin/company/updatePaymentNode'
  2937. } else {
  2938. //新增
  2939. api = '/api/admin/company/addPaymentNode'
  2940. }
  2941. // totalAmount: this.state.currentTotalPrice, //总价
  2942. // partyAmount: this.state.partyAmount, //付款金额
  2943. //
  2944. let customerId=0;
  2945. this.state.PayNodeCompany.some((value)=>{
  2946. if(value.companyName === this.state.thirdCompanyName){
  2947. customerId = value.id
  2948. return true;
  2949. }
  2950. });
  2951. if(!this.state.thirdCompanyName){
  2952. message.error('请选择供应商名称');
  2953. return;
  2954. }
  2955. if(!this.state.paySubjectName){
  2956. message.error('请选择付款科目');
  2957. return;
  2958. }
  2959. if(!this.state.payNodeQuantity){
  2960. message.error('请输入数量');
  2961. return;
  2962. }
  2963. let data = {
  2964. id: this.state.ThirdId, //id
  2965. tid: this.state.tid, //订单编号
  2966. cid: customerId,//对应的第三方信息
  2967. companyName: this.state.thirdCompanyName.split('-')[0], //第三方名称
  2968. quantity: this.state.payNodeQuantity, //数量
  2969. dunType: this.state.dunType, //催款节点
  2970. projectType: this.state.cSort, //项目分类
  2971. }
  2972. if(this.state.paySubjectName === '0'){
  2973. if(!this.state.partyTimes){
  2974. message.error('请选择付款时间');
  2975. return;
  2976. }
  2977. data.partyTimes = this.state.partyTimes //付款时间
  2978. }
  2979. if(this.state.projectType !== 2){ //其他类型 0正常 1专利 2软著 3审计
  2980. data.totalAmount = this.state.currentTotalPrice //总价
  2981. data.unitPrice = this.state.thirdUnitPrice //单价
  2982. }
  2983. this.setState({
  2984. loading: true,
  2985. })
  2986. $.ajax({
  2987. url: globalConfig.context + api,
  2988. method: 'post',
  2989. dataType: 'json',
  2990. crossDomain: false,
  2991. data: data,
  2992. }).done(
  2993. function (data) {
  2994. this.setState({
  2995. loading: false,
  2996. })
  2997. if (!data.error.length) {
  2998. message.success('保存成功!')
  2999. this.setState({
  3000. ThirdId: '',
  3001. PayNodeVisible: false,
  3002. thirdCompanyName: '', //第三方名称
  3003. paySubjectName: '', //付款科目名称
  3004. thirdUnitPrice: '', //单价
  3005. thirdQuantity: '', //数量
  3006. payNodeQuantity: 1, //付款节点数量
  3007. currentTotalPrice: '', //总价
  3008. partyAmount: '', //付款金额
  3009. partyTimes: '', //付款时间
  3010. dunType: '', //催款节点
  3011. })
  3012. // this.visitCancel();
  3013. this.payNodeTable(this.state.tid)
  3014. } else {
  3015. message.warning(data.error[0].message)
  3016. }
  3017. }.bind(this)
  3018. )
  3019. },
  3020. // 取消
  3021. handleCancelclose() {
  3022. this.setState({
  3023. PayNodeVisible: false,
  3024. payNodeInfor: {},
  3025. ThirdId: '',
  3026. ThirdListVisible: false,
  3027. thirdCompanyName: '', //第三方名称
  3028. paySubjectName: '', //付款科目名称
  3029. thirdUnitPrice: '', //单价
  3030. partyTimes: '',
  3031. thirdQuantity: 1, //数量
  3032. payNodeQuantity: 1,
  3033. currentTotalPrice: '', //总价
  3034. thirdRemarks: '',
  3035. thirdUrgent: 0, //加急状态
  3036. })
  3037. },
  3038. // 删除供应商信息
  3039. confirmDeletNew(index,resolve=()=>{},reject=()=>{}) {
  3040. let arr = this.state.payNodeList.filter((v)=>{
  3041. return v.companyName === index.companyName
  3042. });
  3043. let _this = this;
  3044. if(arr.length > 0){
  3045. confirm({
  3046. title: '确定要删除此供应商信息吗?',
  3047. content: '此供应商存在'+arr.length+'条付款节点信息,删除后对应的付款节点也会一起删除',
  3048. onOk() {
  3049. return new Promise((resolve, reject) => {
  3050. let str = '';
  3051. arr.map((value)=>{
  3052. str+=value.id+',';
  3053. })
  3054. _this.payNodeConfirmDeletNew({
  3055. id: str
  3056. });
  3057. _this.handleConfirmDelet(index,resolve,reject)
  3058. }).catch(() => console.log('Oops errors!'));
  3059. },
  3060. onCancel() {},
  3061. });
  3062. }else{
  3063. this.handleConfirmDelet(index,resolve,reject)
  3064. }
  3065. },
  3066. handleConfirmDelet(index,resolve=()=>{},reject=()=>{}) {
  3067. this.setState({
  3068. loading: true,
  3069. ThirdListVisible: false,
  3070. })
  3071. let id = '';
  3072. if(index === -1){
  3073. if(this.state.thirdInfoList.length === 1){
  3074. id = this.state.thirdInfoList[0].id
  3075. }else{
  3076. this.state.thirdInfoList.map((value,index)=>{
  3077. id+=value.id+',';
  3078. })
  3079. }
  3080. }else{
  3081. id = index.id
  3082. }
  3083. $.ajax({
  3084. url: globalConfig.context + '/api/admin/company/deleteCompany',
  3085. method: 'post',
  3086. data: {
  3087. id: id,
  3088. },
  3089. }).done(
  3090. function (data) {
  3091. this.setState({
  3092. loading: false,
  3093. })
  3094. if (!data.error.length) {
  3095. message.success('删除成功!')
  3096. this.thirdTable(this.state.tid)
  3097. resolve();
  3098. } else {
  3099. message.warning(data.error[0].message)
  3100. reject();
  3101. }
  3102. }.bind(this)
  3103. )
  3104. },
  3105. // 删除付款节点
  3106. payNodeConfirmDeletNew(index,resolve=()=>{},reject=()=>{}) {
  3107. this.setState({
  3108. loading: true,
  3109. PayNodeVisible: false,
  3110. })
  3111. let id = '';
  3112. if(index === -1){
  3113. this.state.payNodeList.map((value,index)=>{
  3114. id+=value.id+',';
  3115. })
  3116. }else{
  3117. id = index.id
  3118. }
  3119. $.ajax({
  3120. url: globalConfig.context + '/api/admin/company/deletePaymentNode',
  3121. method: 'post',
  3122. data: {
  3123. id: id,
  3124. },
  3125. }).done(
  3126. function (data) {
  3127. this.setState({
  3128. loading: false,
  3129. })
  3130. if (!data.error.length) {
  3131. message.success('删除成功!')
  3132. resolve();
  3133. this.payNodeTable(this.state.tid)
  3134. } else {
  3135. message.warning(data.error[0].message)
  3136. reject();
  3137. }
  3138. }.bind(this)
  3139. )
  3140. },
  3141. //点击供应商详情
  3142. tableRowClickOne(record) {
  3143. this.setState({
  3144. ThirdListVisible: true,
  3145. ThirdId: record.id, //供应商id
  3146. thirdCompanyName: record.companyName, //第三方名称
  3147. thirdUnitPrice: record.unitPrice, //单价
  3148. thirdQuantity: record.quantity, //数量
  3149. currentTotalPrice: record.totalAmount, //总价
  3150. thirdMaterial: record.material, //有无材料
  3151. thirdUrgent: record.urgent, //加急情况
  3152. thirdRemarks: record.remarks,
  3153. audit: record.audit,//审计
  3154. assets: record.assets,//公司资产
  3155. income: record.income,//收入
  3156. })
  3157. },
  3158. //点击付款节点详情
  3159. payNodeTableRowClickOne(record) {
  3160. this.setState({
  3161. PayNodeVisible: true,
  3162. ThirdId: record.id, //供应商id
  3163. thirdCompanyName: record.companyName, //第三方名称
  3164. thirdUnitPrice: record.unitPrice, //单价
  3165. thirdQuantity: record.quantity, //供应商数量
  3166. payNodeQuantity: record.quantity, //付款节点数量
  3167. currentTotalPrice: record.totalAmount, //总价
  3168. partyTimes: record.partyTimes,
  3169. paySubjectName: record.dunType,
  3170. });
  3171. let obj = JSON.parse(JSON.stringify(record));
  3172. this.state.paySubject.some((value)=>{
  3173. if(value.key === obj.dunType){
  3174. obj.dunType = value.value;
  3175. return true;
  3176. }
  3177. });
  3178. this.setState({
  3179. payNodeInfor: obj, //付款节点详情
  3180. });
  3181. },
  3182. render() {
  3183. const formItemLayout = {
  3184. labelCol: { span: 8 },
  3185. wrapperCol: { span: 14 },
  3186. }
  3187. let departmentArr = this.state.departmentArr || []
  3188. return (
  3189. <div className="user-content">
  3190. {this.state.resVisible ? (
  3191. <ResolutionDetail
  3192. cancel={this.resCancel}
  3193. detail={this.state.resRecord}
  3194. visible={this.state.resVisible}
  3195. id={this.state.resRecord.orderNo}
  3196. />
  3197. ) : (
  3198. ''
  3199. )}
  3200. <ShowModalDiv ShowModal={this.state.showModal} />
  3201. <div className="content-title" style={{ marginBottom: 10 }}>
  3202. <span style={{ fontWeight: 900, fontSize: 16 }}>项目任务</span>
  3203. </div>
  3204. <Tabs defaultActiveKey="2" className="test" bordered>
  3205. <TabPane tab="搜索" key="2">
  3206. <div className="user-search" style={{ marginLeft: 10 }}>
  3207. <Input
  3208. placeholder="客户名称"
  3209. value={this.state.nameSearch}
  3210. onChange={(e) => {
  3211. this.setState({ nameSearch: e.target.value })
  3212. }}
  3213. />
  3214. <Input
  3215. placeholder="订单编号"
  3216. value={this.state.orderNoSearch}
  3217. onChange={(e) => {
  3218. this.setState({ orderNoSearch: e.target.value })
  3219. }}
  3220. />
  3221. <Input
  3222. placeholder="合同编号"
  3223. value={this.state.contractNoSearch}
  3224. onChange={(e) => {
  3225. this.setState({ contractNoSearch: e.target.value })
  3226. }}
  3227. />
  3228. <Input
  3229. placeholder="项目编号"
  3230. value={this.state.taskNoSearch}
  3231. onChange={(e) => {
  3232. this.setState({ taskNoSearch: e.target.value })
  3233. }}
  3234. />
  3235. <Select
  3236. placeholder="选择部门"
  3237. style={{ width: 150, marginRight: '10px' }}
  3238. value={this.state.departmenttSearch}
  3239. onChange={(e) => {
  3240. this.setState({ departmenttSearch: e })
  3241. }}
  3242. >
  3243. {departmentArr.map(function (item) {
  3244. return (
  3245. <Select.Option key={item.id}>{item.name}</Select.Option>
  3246. )
  3247. })}
  3248. </Select>
  3249. <Select
  3250. placeholder="项目状态"
  3251. style={{ width: 150, marginRight: '10px' }}
  3252. value={this.state.projectStatusSearch}
  3253. onChange={(e) => {
  3254. this.setState({ projectStatusSearch: e })
  3255. console.log(this.state.projectStatusSearch)
  3256. }}
  3257. >
  3258. {projectStatus.map(function (item) {
  3259. return (
  3260. <Select.Option key={item.value}>{item.key}</Select.Option>
  3261. )
  3262. })}
  3263. </Select>
  3264. <Select
  3265. placeholder="特批状态"
  3266. style={{ width: 150, marginRight: '10px' }}
  3267. value={this.state.approvalSearch}
  3268. onChange={(e) => {
  3269. this.setState({ approvalSearch: e })
  3270. console.log(this.state.approvalSearch)
  3271. }}
  3272. >
  3273. <Select.Option key={0}>非特批</Select.Option>
  3274. <Select.Option key={1}>特批</Select.Option>
  3275. </Select>
  3276. <Select
  3277. placeholder="外包状态"
  3278. style={{ width: 150, marginRight: '10px' }}
  3279. value={this.state.outsourceStatusSearch}
  3280. onChange={(e) => {
  3281. this.setState({ outsourceStatusSearch: e })
  3282. console.log(this.state.outsourceStatusSearch)
  3283. }}
  3284. >
  3285. <Select.Option key={0}>外包待审核</Select.Option>
  3286. {/* <Select.Option key={1}>外包审核通过</Select.Option> */}
  3287. <Select.Option key={2}>外包审核驳回</Select.Option>
  3288. <Select.Option key={999}>全部</Select.Option>
  3289. </Select>
  3290. <Button type="primary" onClick={this.search}>
  3291. 搜索
  3292. </Button>
  3293. <Button
  3294. onClick={(e) => {
  3295. this.reset(true)
  3296. }}
  3297. >
  3298. 重置
  3299. </Button>
  3300. {/* <span>更多搜索<Switch defaultChecked={false} onChange={this.searchSwitch.bind(this)} /></span>
  3301. <div className="search-more" style={this.state.searchMore ? { display: 'none' } : {}}>
  3302. <span>订单时间 :</span>
  3303. <RangePicker
  3304. value={[this.state.releaseDate[0] ? moment(this.state.releaseDate[0]) : null,
  3305. this.state.releaseDate[1] ? moment(this.state.releaseDate[1]) : null]}
  3306. onChange={(data, dataString) => { this.setState({ releaseDate: dataString }); }} />
  3307. </div> */}
  3308. </div>
  3309. </TabPane>
  3310. <TabPane tab="导出Excel" key="3">
  3311. <Button
  3312. type="primary"
  3313. style={{ margin: '11px 0 10px 10px' }}
  3314. onClick={this.exportExec}
  3315. >
  3316. 导出Excel
  3317. </Button>
  3318. </TabPane>
  3319. <TabPane tab="更改表格显示数据" key="1">
  3320. <div style={{ marginLeft: 10 }}>
  3321. <ChooseList
  3322. columns={this.state.columns}
  3323. changeFn={this.changeList}
  3324. changeList={this.state.changeList}
  3325. top={55}
  3326. margin={11}
  3327. />
  3328. </div>
  3329. </TabPane>
  3330. {/* <TabPane tab="批量操作" key="6">
  3331. <Button
  3332. type="primary"
  3333. disabled={this.state.selectedRowKeys.length == 0}
  3334. style={{ margin: "0px 0px 10px 10px" }}
  3335. onClick={e => {
  3336. e.stopPropagation(),
  3337. this.evaluateY(this.state.selectedRowKeys, "财务专员");
  3338. }}
  3339. >
  3340. 转交
  3341. </Button>
  3342. </TabPane> */}
  3343. </Tabs>
  3344. {/* <div className="user-search">
  3345. <Input
  3346. placeholder="客户名称"
  3347. value={this.state.nameSearch}
  3348. onChange={e => {
  3349. this.setState({ nameSearch: e.target.value });
  3350. }}
  3351. />
  3352. <Input
  3353. placeholder="订单编号"
  3354. value={this.state.orderNoSearch}
  3355. onChange={e => {
  3356. this.setState({ orderNoSearch: e.target.value });
  3357. }}
  3358. />
  3359. <Input
  3360. placeholder="项目编号"
  3361. value={this.state.taskNoSearch}
  3362. onChange={e => {
  3363. this.setState({ taskNoSearch: e.target.value });
  3364. }}
  3365. />
  3366. <Select
  3367. placeholder="选择部门"
  3368. style={{ width: 150, marginRight: "10px" }}
  3369. value={this.state.departmenttSearch}
  3370. onChange={e => {
  3371. this.setState({ departmenttSearch: e });
  3372. }}
  3373. >
  3374. {departmentArr.map(function(item) {
  3375. return <Select.Option key={item.id}>{item.name}</Select.Option>;
  3376. })}
  3377. </Select>
  3378. <Button type="primary" onClick={this.search}>
  3379. 搜索
  3380. </Button>
  3381. <Button onClick={this.reset}>重置</Button>
  3382. <Button
  3383. type="primary"
  3384. style={{ marginLeft: "10px" }}
  3385. onClick={this.exportExec}
  3386. >
  3387. 导出Excel
  3388. </Button>
  3389. <span>更多搜索<Switch defaultChecked={false} onChange={this.searchSwitch.bind(this)} /></span>
  3390. <div className="search-more" style={this.state.searchMore ? { display: 'none' } : {}}>
  3391. <span>订单时间 :</span>
  3392. <RangePicker
  3393. value={[this.state.releaseDate[0] ? moment(this.state.releaseDate[0]) : null,
  3394. this.state.releaseDate[1] ? moment(this.state.releaseDate[1]) : null]}
  3395. onChange={(data, dataString) => { this.setState({ releaseDate: dataString }); }} />
  3396. </div>
  3397. </div> */}
  3398. <div className="patent-table">
  3399. <Spin spinning={this.state.loading}>
  3400. <Table
  3401. columns={
  3402. this.state.changeList == undefined
  3403. ? this.state.columns
  3404. : this.state.changeList
  3405. }
  3406. dataSource={this.state.dataSource}
  3407. pagination={this.state.pagination}
  3408. scroll={{ x: 'max-content', y: 0 }}
  3409. onRowClick={this.tableRowClick.bind(this)}
  3410. bordered
  3411. size={'small'}
  3412. />
  3413. </Spin>
  3414. </div>
  3415. <Assign
  3416. title="项目"
  3417. selApi={'/api/admin/orderProject/projectDistribution'}
  3418. data={this.state.assignData}
  3419. showDesc={this.state.assignVisible}
  3420. closeDesc={this.closeAssign.bind(this)}
  3421. fenpaiData={8}
  3422. specially={0}
  3423. roleName={this.state.nub}
  3424. requestMethod={'post'}
  3425. flag={this.state.flag}
  3426. all={this.state}
  3427. />
  3428. {this.state.visible ? <Modal
  3429. className="customeDetails"
  3430. footer=""
  3431. title=""
  3432. width="900px"
  3433. visible={this.state.visible}
  3434. maskClosable={false}
  3435. onOk={()=>{
  3436. this.visitOk();
  3437. this.state.selectCompanyAjaxObj ? this.state.selectCompanyAjaxObj.abort() : null;
  3438. this.state.selectPaymentNodeAjaxObj ? this.state.selectPaymentNodeAjaxObj.abort() : null;
  3439. this.state.orderOutsourceDtailsAjaxObj ? this.state.orderOutsourceDtailsAjaxObj.abort() : null;
  3440. }}
  3441. onCancel={()=>{
  3442. this.visitCancel();
  3443. this.state.selectCompanyAjaxObj ? this.state.selectCompanyAjaxObj.abort() : null;
  3444. this.state.selectPaymentNodeAjaxObj ? this.state.selectPaymentNodeAjaxObj.abort() : null;
  3445. this.state.orderOutsourceDtailsAjaxObj ? this.state.orderOutsourceDtailsAjaxObj.abort() : null;
  3446. }}
  3447. >
  3448. <div style={{position:"relative"}}>
  3449. <div style={{
  3450. position: "absolute",
  3451. inset:'-15px',
  3452. zIndex: 1000,
  3453. //0未开始 1已开始 2已暂停 3已完成 4已驳回 5已退单
  3454. display: this.state.status === 0 ? 'flex' : 'none',
  3455. justifyContent:'center',
  3456. paddingTop: '300px',
  3457. background: 'rgba(0,0,0,0.7)',
  3458. borderRadius: '4px',
  3459. borderTopRightRadius: '96px',
  3460. }}>
  3461. <Button
  3462. type="primary"
  3463. size='large'
  3464. onClick={()=>{
  3465. //0未开始 1已开始 2已暂停 3已完成 4已驳回 5已退单
  3466. this.tijiaoOk(1,()=>{
  3467. this.xiangqing(this.state.id)
  3468. });
  3469. }}>
  3470. 开始启动项目
  3471. </Button>
  3472. </div>
  3473. <Tabs
  3474. tabBarExtraContent={
  3475. <div style={{fontWeight:'bold',paddingRight:'15px'}}>
  3476. <span>
  3477. 项目名称:
  3478. <span style={{color:'#F00',paddingRight:'5px'}}>{this.state.taskName}</span>
  3479. </span>
  3480. <span style={{marginLeft:'15px'}}>
  3481. 项目编号:
  3482. <span style={{color:'#F00',paddingRight:'5px'}}>
  3483. {this.state.id}
  3484. {
  3485. this.state.splitStatus === 2 ? '('+this.state.splitSuper+'-'+this.state.splitId+')' : ''
  3486. }
  3487. </span>
  3488. </span>
  3489. </div>
  3490. }
  3491. activeKey={this.state.activeKey}
  3492. onChange={(e) => {
  3493. this.callback(e)
  3494. if (e === "2") {
  3495. this.waiDetail();
  3496. this.thirdTable(this.state.tid);
  3497. this.payNodeTable(this.state.tid);
  3498. this.getSelectOutsourceLog(this.state.tid);
  3499. }else if(e === "1"){
  3500. this.xiangqing(this.state.tid);
  3501. }
  3502. }}
  3503. >
  3504. <TabPane tab="项目概况" key="1">
  3505. {this.state.activeKey === "1" ? <Form
  3506. layout="horizontal"
  3507. onSubmit={this.handleSubmit}
  3508. id="demand-form"
  3509. style={{ paddingBottom: '00px' }}
  3510. >
  3511. <Spin spinning={this.state.loading}>
  3512. <div className="clearfix">
  3513. <div className="clearfix">
  3514. <FormItem
  3515. className="half-item"
  3516. {...formItemLayout}
  3517. label="当前项目情况"
  3518. >
  3519. {/*<Radio.Group*/}
  3520. {/* value={this.state.status}*/}
  3521. {/* onChange={(e) => {*/}
  3522. {/* this.setState({ status: e.target.value })*/}
  3523. {/* }}*/}
  3524. {/*>*/}
  3525. {/* <Radio value={0}>开启</Radio>*/}
  3526. {/* <Radio value={1}>暂停</Radio>*/}
  3527. {/*</Radio.Group>*/}
  3528. {/*<Button*/}
  3529. {/* type="primary"*/}
  3530. {/* size="small"*/}
  3531. {/* style={{ marginTop: '5px', position: 'absolute' }}*/}
  3532. {/* onClick={this.caozuorizhi}*/}
  3533. {/*>*/}
  3534. {/* 操作日志*/}
  3535. {/*</Button>*/}
  3536. {/*0未开始 1已开始 2已暂停 3已完成 4已驳回 5已退单*/}
  3537. {
  3538. this.state.status === 0 ? '未开始':
  3539. this.state.status === 1 ? '已开始':
  3540. this.state.status === 2 ? '已暂停':
  3541. this.state.status === 3 ? '已完成':
  3542. this.state.status === 4 ? '已驳回':
  3543. this.state.status === 5 ? '已退单': ''
  3544. }
  3545. {
  3546. this.state.status !== 0 ? <Button
  3547. type="primary"
  3548. size="small"
  3549. style={{ marginTop: "5px" }}
  3550. onClick={()=>{
  3551. this.setState({
  3552. projectSituationVisible: true,
  3553. })
  3554. }}
  3555. >
  3556. 修改
  3557. </Button> : null
  3558. }
  3559. <Button
  3560. type="primary"
  3561. size="small"
  3562. style={{ marginTop: "5px", position: "absolute" }}
  3563. onClick={this.caozuorizhi}
  3564. >
  3565. 操作日志
  3566. </Button>
  3567. </FormItem>
  3568. <FormItem
  3569. className="half-item"
  3570. {...formItemLayout}
  3571. label="合同编号"
  3572. >
  3573. <span>{this.state.contractNo}</span>
  3574. </FormItem>
  3575. </div>
  3576. <div className="clearfix">
  3577. <FormItem
  3578. className="half-item"
  3579. {...formItemLayout}
  3580. label="项目状态"
  3581. >
  3582. <Select
  3583. placeholder="选择项目状态"
  3584. style={{ width: '200px' }}
  3585. value={this.state.projectStatus}
  3586. onChange={(e) => {
  3587. this.setState({ projectStatus: e })
  3588. }}
  3589. >
  3590. {projectStatus.map(function (item) {
  3591. return (
  3592. <Select.Option key={item.value}>
  3593. {item.key}
  3594. </Select.Option>
  3595. )
  3596. })}
  3597. </Select>
  3598. </FormItem>
  3599. <FormItem
  3600. className="half-item"
  3601. {...formItemLayout}
  3602. label="是否特批"
  3603. >
  3604. <span>{getApproval(this.state.approval)}</span>
  3605. </FormItem>
  3606. <FormItem
  3607. className="half-item"
  3608. {...formItemLayout}
  3609. label="结算状态"
  3610. >
  3611. <span>
  3612. {getLiquidationStatus(this.state.liquidationStatus)}
  3613. </span>
  3614. </FormItem>
  3615. <FormItem
  3616. className="half-item"
  3617. {...formItemLayout}
  3618. label="流程状态"
  3619. >
  3620. <span>
  3621. {getProcessStatus(this.state.processStatus)}
  3622. </span>
  3623. </FormItem>
  3624. <FormItem
  3625. className="half-item"
  3626. {...formItemLayout}
  3627. label="订单编号"
  3628. >
  3629. <span>{this.state.orderNo}</span>
  3630. </FormItem>
  3631. </div>
  3632. <div className="clearfix">
  3633. <FormItem
  3634. className="half-item"
  3635. {...formItemLayout}
  3636. label="满意度表格"
  3637. >
  3638. <Radio.Group
  3639. value={this.state.formRetrieve}
  3640. onChange={(e) => {
  3641. this.setState({ formRetrieve: e.target.value })
  3642. }}
  3643. >
  3644. <Radio value={0}>未收回</Radio>
  3645. <Radio value={1}>已收回</Radio>
  3646. <Radio value={2}>其他</Radio>
  3647. </Radio.Group>
  3648. </FormItem>
  3649. <FormItem
  3650. className="half-item"
  3651. {...formItemLayout}
  3652. label="退单"
  3653. >
  3654. <Radio.Group
  3655. value={this.state.taskRefund}
  3656. onChange={(e) => {
  3657. this.setState({ taskRefund: e.target.value })
  3658. }}
  3659. >
  3660. <Radio value={0}>已完成</Radio>
  3661. <Radio value={1}>未完成</Radio>
  3662. <Radio value={2}>其他</Radio>
  3663. </Radio.Group>
  3664. </FormItem>
  3665. </div>
  3666. <div className="clearfix">
  3667. {
  3668. <FormItem
  3669. className="half-item"
  3670. {...formItemLayout}
  3671. label="(满意度)备注"
  3672. >
  3673. <Input
  3674. type="textarea"
  3675. placeholder="请输入备注"
  3676. rows={2}
  3677. value={this.state.retrieveContent}
  3678. onChange={(e) => {
  3679. this.setState({
  3680. retrieveContent: e.target.value,
  3681. })
  3682. }}
  3683. />
  3684. </FormItem>
  3685. }
  3686. {
  3687. <FormItem
  3688. className="half-item"
  3689. {...formItemLayout}
  3690. label="(退单)备注"
  3691. >
  3692. <Input
  3693. type="textarea"
  3694. placeholder="请输入备注"
  3695. rows={2}
  3696. value={this.state.refundContent}
  3697. onChange={(e) => {
  3698. this.setState({ refundContent: e.target.value })
  3699. }}
  3700. />
  3701. </FormItem>
  3702. }
  3703. </div>
  3704. <div className="clearfix">
  3705. <h3 className="sub-title">订单负责人信息</h3>
  3706. <FormItem
  3707. className="half-item"
  3708. {...formItemLayout}
  3709. label="负责人"
  3710. >
  3711. <span>
  3712. {this.state.salesmanName +
  3713. '(' +
  3714. this.state.depName +
  3715. ')'}
  3716. </span>
  3717. </FormItem>
  3718. <FormItem
  3719. className="half-item"
  3720. {...formItemLayout}
  3721. label="负责人电话"
  3722. >
  3723. <span>{this.state.salesmanMobile}</span>
  3724. </FormItem>
  3725. <FormItem
  3726. className="half-item"
  3727. {...formItemLayout}
  3728. label="当前财务负责人"
  3729. >
  3730. <span>{this.state.nowFinance}</span>
  3731. </FormItem>
  3732. <FormItem
  3733. className="half-item"
  3734. {...formItemLayout}
  3735. label="当前财务负责人电话"
  3736. >
  3737. <span>{this.state.nowFinanceMobile}</span>
  3738. </FormItem>
  3739. <FormItem
  3740. className="half-item"
  3741. {...formItemLayout}
  3742. style={{ opacity: '.5' }}
  3743. label="原负责人"
  3744. >
  3745. <span>{this.state.oldSalesmanName}</span>
  3746. </FormItem>
  3747. <FormItem
  3748. className="half-item"
  3749. {...formItemLayout}
  3750. style={{ opacity: '.5' }}
  3751. label="原负责人电话"
  3752. >
  3753. <span>{this.state.oldSalesmanMobile}</span>
  3754. </FormItem>
  3755. <FormItem
  3756. className="half-item"
  3757. {...formItemLayout}
  3758. style={{ opacity: '.5' }}
  3759. label="实际财务操作人"
  3760. >
  3761. <span>{this.state.financeName}</span>
  3762. </FormItem>
  3763. <FormItem
  3764. className="half-item"
  3765. {...formItemLayout}
  3766. style={{ opacity: '.5' }}
  3767. label="实际财务操作人电话"
  3768. >
  3769. <span>{this.state.financeMobile}</span>
  3770. </FormItem>
  3771. <FormItem
  3772. className="half-item"
  3773. {...formItemLayout}
  3774. label="订单留言"
  3775. >
  3776. <span>{this.state.orderRemarks}</span>
  3777. </FormItem>
  3778. <FormItem
  3779. className="half-item"
  3780. {...formItemLayout}
  3781. label=""
  3782. >
  3783. <Button onClick={this.getOrderLog}>查看订单日志</Button>
  3784. </FormItem>
  3785. <OrderRiZi
  3786. dataSourcerizhi={this.state.dataSourceY}
  3787. closeOrderLog={this.closeOrderLog}
  3788. visible={this.state.avisible}
  3789. loading={this.state.loading}
  3790. />
  3791. </div>
  3792. {/*<div className="clearfix">*/}
  3793. {/* <h3 className="sub-title">外包信息</h3>*/}
  3794. {/* <FormItem*/}
  3795. {/* className="half-item"*/}
  3796. {/* {...formItemLayout}*/}
  3797. {/* label="外包公司"*/}
  3798. {/* >*/}
  3799. {/* <Input*/}
  3800. {/* value={this.state.outsourceName}*/}
  3801. {/* onChange={(e) => {*/}
  3802. {/* this.setState({*/}
  3803. {/* outsourceName: e.target.value,*/}
  3804. {/* })*/}
  3805. {/* }}*/}
  3806. {/* placeholder="请输入外包公司"*/}
  3807. {/* style={{ width: '200px' }}*/}
  3808. {/* />*/}
  3809. {/* </FormItem>*/}
  3810. {/* <FormItem*/}
  3811. {/* className="half-item"*/}
  3812. {/* {...formItemLayout}*/}
  3813. {/* label="外包成本(万元)"*/}
  3814. {/* >*/}
  3815. {/* <Input*/}
  3816. {/* value={this.state.outsourcePrice}*/}
  3817. {/* onChange={(e) => {*/}
  3818. {/* this.setState({*/}
  3819. {/* outsourcePrice: e.target.value,*/}
  3820. {/* })*/}
  3821. {/* }}*/}
  3822. {/* placeholder="请输入外包成本"*/}
  3823. {/* style={{ width: '200px' }}*/}
  3824. {/* />*/}
  3825. {/* </FormItem>*/}
  3826. {/*</div>*/}
  3827. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  3828. <div className="clearfix">
  3829. <h3 className="sub-title">联系信息</h3>
  3830. <FormItem
  3831. className="half-item"
  3832. {...formItemLayout}
  3833. label="客户名称"
  3834. >
  3835. <span>{this.state.userName}</span>
  3836. </FormItem>
  3837. <FormItem
  3838. className="half-item"
  3839. {...formItemLayout}
  3840. label="企业法人"
  3841. >
  3842. <Input
  3843. placeholder="请输入法人名称"
  3844. value={this.state.legalPerson}
  3845. style={{ width: '200px' }}
  3846. onChange={(e) => {
  3847. this.setState({ legalPerson: e.target.value })
  3848. }}
  3849. ref="commodityQuantity"
  3850. />
  3851. </FormItem>
  3852. <FormItem
  3853. className="half-item"
  3854. {...formItemLayout}
  3855. label="法人电话"
  3856. >
  3857. <Input
  3858. placeholder="请输入法人电话"
  3859. value={this.state.legalPersonTel}
  3860. style={{ width: '200px' }}
  3861. onChange={(e) => {
  3862. this.setState({ legalPersonTel: e.target.value })
  3863. }}
  3864. ref="commodityQuantity"
  3865. />
  3866. </FormItem>
  3867. <FormItem
  3868. className="half-item"
  3869. {...formItemLayout}
  3870. label="客户联系人"
  3871. >
  3872. <Input
  3873. placeholder="请输入联系人名称"
  3874. value={this.state.contacts}
  3875. style={{ width: '200px' }}
  3876. onChange={(e) => {
  3877. this.setState({ contacts: e.target.value })
  3878. }}
  3879. ref="commodityQuantity"
  3880. />
  3881. </FormItem>
  3882. <FormItem
  3883. className="half-item"
  3884. {...formItemLayout}
  3885. label="联系人电话"
  3886. >
  3887. <Input
  3888. placeholder="请输入联系人电话"
  3889. value={this.state.contactMobile}
  3890. style={{ width: '200px' }}
  3891. onChange={(e) => {
  3892. this.setState({ contactMobile: e.target.value })
  3893. }}
  3894. ref="commodityQuantity"
  3895. />
  3896. </FormItem>
  3897. <FormItem
  3898. className="half-item"
  3899. {...formItemLayout}
  3900. label="企业地址"
  3901. >
  3902. <Cascader
  3903. options={areaSelect()}
  3904. value={this.state.ProvinceCity}
  3905. placeholder="选择城市"
  3906. style={{ width: '200px' }}
  3907. onChange={(e) => {
  3908. this.setState({ ProvinceCity: e })
  3909. }}
  3910. />
  3911. </FormItem>
  3912. <FormItem
  3913. className="half-item"
  3914. {...formItemLayout}
  3915. label=""
  3916. ></FormItem>
  3917. <FormItem
  3918. className="half-item"
  3919. {...formItemLayout}
  3920. label=""
  3921. >
  3922. <Input
  3923. placeholder="请输入详细地址"
  3924. value={this.state.postalAddress}
  3925. style={{ width: '200px', marginLeft: '12em' }}
  3926. onChange={(e) => {
  3927. this.setState({ postalAddress: e.target.value })
  3928. }}
  3929. ref="commodityQuantity"
  3930. />
  3931. </FormItem>
  3932. </div>
  3933. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  3934. <div className="clearfix">
  3935. <h3 className="sub-title">项目信息</h3>
  3936. <FormItem
  3937. className="half-item"
  3938. {...formItemLayout}
  3939. label="项目编号"
  3940. >
  3941. <span>
  3942. {this.state.splitStatus == 2
  3943. ? this.state.splitSuper + '-' + this.state.splitId
  3944. : this.state.id}
  3945. </span>
  3946. </FormItem>
  3947. <FormItem
  3948. className="half-item"
  3949. {...formItemLayout}
  3950. label="项目名称"
  3951. >
  3952. <span>{this.state.taskName}</span>
  3953. </FormItem>
  3954. <FormItem
  3955. className="half-item"
  3956. {...formItemLayout}
  3957. label="项目状态"
  3958. >
  3959. <Select
  3960. placeholder="选择项目状态"
  3961. style={{ width: '200px' }}
  3962. value={this.state.taskStatus}
  3963. onChange={(e) => {
  3964. this.setState({ taskStatus: e })
  3965. }}
  3966. >
  3967. {taskStatus.map(function (item) {
  3968. return (
  3969. <Select.Option key={item.value}>
  3970. {item.key}
  3971. </Select.Option>
  3972. )
  3973. })}
  3974. </Select>
  3975. </FormItem>
  3976. <FormItem
  3977. className="half-item"
  3978. {...formItemLayout}
  3979. label="项目类别"
  3980. >
  3981. <span>{this.state.cname}</span>
  3982. </FormItem>
  3983. <FormItem
  3984. className="half-item"
  3985. {...formItemLayout}
  3986. label="证书编号"
  3987. >
  3988. <Input
  3989. placeholder="请输入证书编号"
  3990. value={this.state.certificateNumber}
  3991. style={{ width: '200px' }}
  3992. onChange={(e) => {
  3993. this.setState({
  3994. certificateNumber: e.target.value,
  3995. })
  3996. }}
  3997. ref="commodityQuantity"
  3998. />
  3999. </FormItem>
  4000. </div>
  4001. <div className="clearfix">
  4002. <h3 className="sub-title">申报系统账户信息</h3>
  4003. {/*<span style={{color:'red'}}>注:仅技术部可见</span>*/}
  4004. <FormItem
  4005. className="half-item"
  4006. {...formItemLayout}
  4007. label="用户名"
  4008. >
  4009. <Input
  4010. placeholder="请输入用户名"
  4011. value={this.state.declareUser}
  4012. style={{ width: '200px' }}
  4013. onChange={(e) => {
  4014. this.setState({ declareUser: e.target.value })
  4015. }}
  4016. />
  4017. </FormItem>
  4018. <FormItem
  4019. className="half-item"
  4020. {...formItemLayout}
  4021. label="密码"
  4022. >
  4023. <Input
  4024. placeholder="请输入密码"
  4025. value={this.state.declarePwd}
  4026. style={{ width: '200px' }}
  4027. onChange={(e) => {
  4028. this.setState({ declarePwd: e.target.value })
  4029. }}
  4030. />
  4031. </FormItem>
  4032. </div>
  4033. <div className="clearfix">
  4034. <h3 className="sub-title">项目申报进度</h3>
  4035. <FormItem
  4036. className="half-item"
  4037. {...formItemLayout}
  4038. label="申报批次"
  4039. >
  4040. <Select
  4041. style={{ width: 200 }}
  4042. placeholder="请选择批次"
  4043. value={
  4044. this.state.declarationBatch
  4045. ? this.state.declarationBatch
  4046. : undefined
  4047. }
  4048. onChange={(e) => {
  4049. this.setState({
  4050. declarationBatch: e,
  4051. })
  4052. }}
  4053. >
  4054. <Option value={1}>第一批</Option>
  4055. <Option value={2}>第二批</Option>
  4056. <Option value={3}>第三批</Option>
  4057. <Option value={4}>第四批</Option>
  4058. </Select>
  4059. </FormItem>
  4060. <FormItem
  4061. className="half-item"
  4062. {...formItemLayout}
  4063. label="启动时间"
  4064. >
  4065. <DatePicker
  4066. style={{
  4067. marginTop: '2px',
  4068. width: '200px',
  4069. height: '32px',
  4070. }}
  4071. showTime
  4072. format="YYYY-MM-DD"
  4073. onOk={() => {}}
  4074. value={
  4075. this.state.startDate
  4076. ? moment(this.state.startDate)
  4077. : null
  4078. }
  4079. onChange={(data, dataString) => {
  4080. this.setState({ startDate: dataString })
  4081. }}
  4082. />
  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.endDate
  4100. ? moment(this.state.endDate)
  4101. : null
  4102. }
  4103. onChange={(data, dataString) => {
  4104. this.setState({ endDate: 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.acceptDate
  4124. ? moment(this.state.acceptDate)
  4125. : null
  4126. }
  4127. onChange={(data, dataString) => {
  4128. this.setState({ acceptDate: 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.reviewDate
  4148. ? moment(this.state.reviewDate)
  4149. : null
  4150. }
  4151. onChange={(data, dataString) => {
  4152. this.setState({ reviewDate: 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.publicityDate
  4172. ? moment(this.state.publicityDate)
  4173. : null
  4174. }
  4175. onChange={(data, dataString) => {
  4176. this.setState({ publicityDate: 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.licenceDate
  4196. ? moment(this.state.licenceDate)
  4197. : null
  4198. }
  4199. onChange={(data, dataString) => {
  4200. this.setState({ licenceDate: dataString })
  4201. }}
  4202. />
  4203. </FormItem>
  4204. <FormItem
  4205. className="half-item"
  4206. {...formItemLayout}
  4207. label="立项金额(万元)"
  4208. >
  4209. <Input
  4210. placeholder="请输入立项金额"
  4211. value={this.state.setUpAmount}
  4212. style={{ width: '200px' }}
  4213. onChange={(e) => {
  4214. this.setState({ setUpAmount: e.target.value })
  4215. }}
  4216. ref="commodityQuantity"
  4217. />
  4218. </FormItem>
  4219. <FormItem
  4220. className="half-item"
  4221. {...formItemLayout}
  4222. label="是否到款"
  4223. >
  4224. <Radio.Group
  4225. value={this.state.arrivalMoney}
  4226. onChange={(e) => {
  4227. this.setState({ arrivalMoney: e.target.value })
  4228. }}
  4229. >
  4230. <Radio value={0}>未到企业</Radio>
  4231. <Radio value={1}>已到企业</Radio>
  4232. </Radio.Group>
  4233. </FormItem>
  4234. </div>
  4235. <div className="clearfix">
  4236. <FormItem
  4237. labelCol={{ span: 3 }}
  4238. wrapperCol={{ span: 16 }}
  4239. label="附件"
  4240. >
  4241. <Picture
  4242. domId={'myTask1'}
  4243. fileList={(e) => {
  4244. this.setState({ attachmentUrl: e })
  4245. }}
  4246. pictureUrl={this.state.attachmentUrl}
  4247. visible={this.props.visible}
  4248. data={{
  4249. sign: 'order_task_file',
  4250. url: '/api/admin/orderProject/uploadOrderTaskFile',
  4251. }}
  4252. />
  4253. </FormItem>
  4254. </div>
  4255. <div className="clearfix">
  4256. <FormItem
  4257. labelCol={{ span: 3 }}
  4258. wrapperCol={{ span: 16 }}
  4259. label="备注"
  4260. >
  4261. <Input
  4262. type="textarea"
  4263. placeholder="请输入备注"
  4264. rows={4}
  4265. value={this.state.taskComment}
  4266. onChange={(e) => {
  4267. this.setState({ taskComment: e.target.value })
  4268. }}
  4269. />
  4270. </FormItem>
  4271. </div>
  4272. <div>
  4273. <h3 className="sub-title">项目业务</h3>
  4274. {this.state.processStatus == 0 ? (
  4275. <Button
  4276. type="primary"
  4277. onClick={this.addDetailed}
  4278. style={{
  4279. float: 'right',
  4280. marginRight: '50px',
  4281. marginBottom: '15px',
  4282. }}
  4283. >
  4284. 添加项目明细
  4285. </Button>
  4286. ) : (
  4287. ''
  4288. )}
  4289. </div>
  4290. <div className="patent-table">
  4291. <Spin spinning={this.state.loading}>
  4292. <Table
  4293. columns={this.state.columnsX}
  4294. dataSource={this.state.dataSourceX}
  4295. pagination={this.state.paginations}
  4296. onRowClick={this.tableRowClickX}
  4297. bordered
  4298. size="small"
  4299. />
  4300. </Spin>
  4301. </div>
  4302. <div className="clearfix">
  4303. <Button
  4304. className="cancel"
  4305. type="primary"
  4306. // onClick={this.tijiaoOk}
  4307. onClick={() => {
  4308. let num = this.state.projectStatus
  4309. if (
  4310. num != 0 &&
  4311. num != 10 &&
  4312. num != 11 &&
  4313. num != 12 &&
  4314. num != 2 &&
  4315. num != 5 &&
  4316. num != 6
  4317. ) {
  4318. this.showDeleteConfirm(num, this.tijiaoOk)
  4319. } else {
  4320. this.tijiaoOk()
  4321. }
  4322. }}
  4323. style={{ marginLeft: '200px', marginTop: '10px' }}
  4324. htmlType="submit"
  4325. >
  4326. 保存
  4327. </Button>
  4328. <Button
  4329. className="cancel"
  4330. type="ghost"
  4331. onClick={this.visitCancel}
  4332. style={{ marginLeft: '50px', marginTop: '10px' }}
  4333. >
  4334. 取消
  4335. </Button>
  4336. </div>
  4337. </div>
  4338. </Spin>
  4339. </Form> : <div/>}
  4340. </TabPane>
  4341. <TabPane tab="外包/供应商信息" key="2">
  4342. <Spin spinning={this.state.sureOutLoading || this.state.waiDetailLoading || this.state.payNodeLoading || this.state.thirdInfoLoading}>
  4343. {this.state.refundStatus != 0 && this.state.refundStatus != 1 ? (
  4344. <div style={{ marginTop: 10 }}>
  4345. <div className="clearfix">
  4346. <FormItem
  4347. className="half-item"
  4348. labelCol={{ span: 3 }}
  4349. wrapperCol={{ span: 14 }}
  4350. label={
  4351. <span>
  4352. <strong style={{ color: '#f00' }}>*</strong>
  4353. 类型
  4354. </span>
  4355. }
  4356. >
  4357. <Radio.Group
  4358. disabled={this.state.payNodeLoading || this.state.thirdInfoLoading}
  4359. value={this.state.startType}
  4360. onChange={(e) => {
  4361. let _this = this;
  4362. if(this.state.thirdInfoList.length >0){
  4363. confirm({
  4364. title: '确定要切换吗?',
  4365. content: '切换将删除所有第三信息和付款节点',
  4366. onOk() {
  4367. return new Promise((resolve, reject) => {
  4368. _this.setState({ startType: e.target.value },()=>{
  4369. _this.projectTypeTabContent(_this.state.projectType);
  4370. })
  4371. _this.confirmDeletNew(-1,resolve,reject)
  4372. if(_this.state.payNodeList.length > 0){
  4373. _this.payNodeConfirmDeletNew(-1,resolve,reject);
  4374. }
  4375. }).catch(() => console.log('Oops errors!'));
  4376. },
  4377. onCancel() {},
  4378. });
  4379. }else{
  4380. this.setState({ startType: e.target.value },()=>{
  4381. this.projectTypeTabContent(this.state.projectType);
  4382. })
  4383. }
  4384. }}
  4385. >
  4386. <Radio value={0}>外包(不走总部)</Radio>
  4387. <Radio value={1}>供应商信息</Radio>
  4388. </Radio.Group>
  4389. </FormItem>
  4390. </div>
  4391. {/* 专利类型 */}
  4392. <div
  4393. className="clearfix"
  4394. style={{
  4395. display: this.state.projectType === 1 ? 'block' : 'none',
  4396. }}
  4397. >
  4398. <FormItem
  4399. className="half-item"
  4400. labelCol={{ span: 4 }}
  4401. wrapperCol={{ span: 14 }}
  4402. label={
  4403. <span>
  4404. <strong style={{ color: '#f00' }}>*</strong>
  4405. 专利类型
  4406. </span>
  4407. }
  4408. >
  4409. <Radio.Group
  4410. disabled={this.state.payNodeLoading || this.state.thirdInfoLoading}
  4411. value={this.state.patentType}
  4412. onChange={(e) => {
  4413. let _this = this;
  4414. if(this.state.thirdInfoList.length >0){
  4415. confirm({
  4416. title: '确定要切换吗?',
  4417. content: '切换将删除所有第三信息和付款节点',
  4418. onOk() {
  4419. return new Promise((resolve, reject) => {
  4420. _this.setState({ patentType: e.target.value },()=>{
  4421. _this.projectTypeTabContent(_this.state.projectType);
  4422. })
  4423. _this.confirmDeletNew(-1,resolve,reject)
  4424. if(_this.state.payNodeList.length > 0){
  4425. _this.payNodeConfirmDeletNew(-1,resolve,reject);
  4426. }
  4427. }).catch(() => console.log('Oops errors!'));
  4428. },
  4429. onCancel() {},
  4430. });
  4431. }else{
  4432. this.setState({ patentType: e.target.value },()=>{
  4433. this.projectTypeTabContent(this.state.projectType);
  4434. })
  4435. }
  4436. }}
  4437. >
  4438. <Radio value={0}>专利申请/变更/转让</Radio>
  4439. <Radio value={1}>专利买卖</Radio>
  4440. </Radio.Group>
  4441. </FormItem>
  4442. </div>
  4443. <div
  4444. className="clearfix"
  4445. style={{
  4446. display: this.state.projectType === 1? 'block' : 'none',
  4447. }}
  4448. >
  4449. <FormItem
  4450. className="half-item"
  4451. labelCol={{ span: 4 }}
  4452. wrapperCol={{ span: 14 }}
  4453. label={
  4454. <span>
  4455. <strong style={{ color: '#f00' }}>*</strong>
  4456. 专利名称
  4457. </span>
  4458. }
  4459. >
  4460. <Radio.Group
  4461. disabled={this.state.payNodeLoading || this.state.thirdInfoLoading}
  4462. value={this.state.patentNameType}
  4463. onChange={(e) => {
  4464. let _this = this;
  4465. if(this.state.thirdInfoList.length >0){
  4466. confirm({
  4467. title: '确定要切换吗?',
  4468. content: '切换将删除所有第三信息和付款节点',
  4469. onOk() {
  4470. return new Promise((resolve, reject) => {
  4471. _this.setState({ patentNameType: e.target.value },()=>{
  4472. _this.projectTypeTabContent(_this.state.projectType);
  4473. })
  4474. _this.confirmDeletNew(-1,resolve,reject)
  4475. if(_this.state.payNodeList.length > 0){
  4476. _this.payNodeConfirmDeletNew(-1,resolve,reject);
  4477. }
  4478. }).catch(() => console.log('Oops errors!'));
  4479. },
  4480. onCancel() {},
  4481. });
  4482. }else{
  4483. this.setState({ patentNameType: e.target.value },()=>{
  4484. this.projectTypeTabContent(this.state.projectType);
  4485. })
  4486. }
  4487. }}
  4488. >
  4489. <Radio value={0}>实用新型专利</Radio>
  4490. <Radio value={1}>发明专利</Radio>
  4491. <Radio value={2}>外观专利</Radio>
  4492. {/*<Radio value={3}>*/}
  4493. {/* 其他*/}
  4494. {/* <Input*/}
  4495. {/* disabled={this.state.patentNameType !== 3}*/}
  4496. {/* value={this.state.patentName}*/}
  4497. {/* style={{ marginLeft: '15px' }}*/}
  4498. {/* onChange={(e) => {*/}
  4499. {/* this.setState({*/}
  4500. {/* patentName: e.target.value,*/}
  4501. {/* })*/}
  4502. {/* }}*/}
  4503. {/* placeholder="请填写专利名称"*/}
  4504. {/* />*/}
  4505. {/*</Radio>*/}
  4506. </Radio.Group>
  4507. </FormItem>
  4508. </div>
  4509. {/*外包类型无此选项*/}
  4510. {this.state.orderTaskOfficialCost === 1 && this.state.startType !== 0 ? <div className="clearfix">
  4511. <FormItem
  4512. className="half-item"
  4513. labelCol={{ span: 4 }}
  4514. wrapperCol={{ span: 14 }}
  4515. label={<span>官费</span>}>
  4516. <Radio.Group
  4517. value={this.state.containOfficialFees}
  4518. onChange={(e) => {
  4519. this.setState({ containOfficialFees: e.target.value })
  4520. }}
  4521. >
  4522. <Radio value={0}>实际已缴费</Radio>
  4523. <Radio value={1}>实际未缴费</Radio>
  4524. </Radio.Group>
  4525. </FormItem>
  4526. </div> : <div/>}
  4527. {/* 第三方信息专利 */}
  4528. <div>
  4529. <span
  4530. style={{
  4531. fontSize: '18px',
  4532. }}
  4533. >
  4534. 第三方信息
  4535. </span>
  4536. <span
  4537. style={{
  4538. display: 'inline-block',
  4539. marginLeft: 10,
  4540. color: 'red',
  4541. }}
  4542. >
  4543. 金额总计(万元): {this.state.allTotalAmount}
  4544. </span>
  4545. <Button
  4546. type="primary"
  4547. onClick={(e) => {
  4548. //this.state.startType 0外包 1供应商 类型为外包时,当普通单
  4549. if(this.state.projectType === 1 && this.state.patentType === -1){
  4550. message.info('请先选择专利类型');
  4551. }else if(this.state.projectType === 1 && this.state.patentNameType === -1){
  4552. message.info('请先选择专利名称');
  4553. } else{
  4554. this.addThirdList()
  4555. }
  4556. }}
  4557. style={{
  4558. float: 'right',
  4559. marginRight: '50px',
  4560. marginBottom: '15px',
  4561. }}
  4562. >
  4563. +新增供应商名称
  4564. </Button>
  4565. </div>
  4566. <div
  4567. className="clearfix"
  4568. style={{
  4569. // display: this.state.type == 1 ? "block" : "none",
  4570. display: this.state.type == 1 ? 'block' : 'block',
  4571. }}
  4572. >
  4573. <Spin spinning={this.state.thirdInfoLoading}>
  4574. <Form layout="horizontal">
  4575. <Table
  4576. pagination={false}
  4577. columns={this.state.ContactsListsNew}
  4578. dataSource={this.state.thirdInfoList}
  4579. onRowClick={this.tableRowClickOne}
  4580. scroll={{ x: 'max-content', y: 0 }}
  4581. bordered
  4582. size="small"
  4583. />
  4584. <Col
  4585. span={24}
  4586. offset={9}
  4587. style={{ marginTop: '15px' }}
  4588. />
  4589. </Form>
  4590. </Spin>
  4591. </div>
  4592. {/*如果是软著类或者专利类的专利申请,隐藏付款节点 但当为外包类型时,无需隐藏*/}
  4593. {/*this.state.startType 0外包 1供应商*/}
  4594. <div
  4595. style={{
  4596. display: this.state.startType === 0 ? 'block' : ((this.state.projectType === 1 && this.state.patentType === 0) || this.state.projectType === 2? 'none' : 'block'), //0正常 1专利 2软著 3审计
  4597. }}
  4598. >
  4599. <span
  4600. style={{
  4601. fontSize: '18px',
  4602. }}
  4603. >
  4604. 付款节点
  4605. </span>
  4606. <span
  4607. style={{
  4608. display: 'inline-block',
  4609. marginLeft: 10,
  4610. color: 'red',
  4611. }}
  4612. />
  4613. <Button
  4614. type="primary"
  4615. onClick={(e) => {
  4616. this.addPayNode()
  4617. }}
  4618. style={{
  4619. float: 'right',
  4620. marginRight: '50px',
  4621. marginBottom: '15px',
  4622. }}
  4623. >
  4624. +新增付款节点
  4625. </Button>
  4626. </div>
  4627. {/*如果是软著类或者专利类的专利申请,隐藏付款节点 但当为外包类型时,无需隐藏*/}
  4628. <div
  4629. className="clearfix"
  4630. style={{
  4631. display: this.state.startType === 0 ? 'block' : ((this.state.projectType === 1 && this.state.patentType === 0) || this.state.projectType === 2? 'none' : 'block'), //0正常 1专利 2软著 3审计
  4632. }}
  4633. >
  4634. <Spin spinning={this.state.payNodeLoading}>
  4635. <Form layout="horizontal">
  4636. <Table
  4637. pagination={false}
  4638. columns={this.state.PayNodeTableColunms}
  4639. dataSource={this.state.payNodeList}
  4640. onRowClick={this.payNodeTableRowClickOne}
  4641. scroll={{ x: 'max-content', y: 0 }}
  4642. bordered
  4643. size="small"
  4644. />
  4645. <Col
  4646. span={24}
  4647. offset={9}
  4648. style={{ marginTop: '15px' }}
  4649. />
  4650. </Form>
  4651. </Spin>
  4652. </div>
  4653. <div className="clearfix">
  4654. <FormItem
  4655. className="half-item"
  4656. {...formItemLayout}
  4657. label={
  4658. <span>
  4659. <strong style={{ color: '#f00' }}>*</strong>备注
  4660. </span>
  4661. }
  4662. >
  4663. <TextArea
  4664. rows={4}
  4665. value={this.state.outsourceRemarks}
  4666. onChange={(e) => {
  4667. this.setState({
  4668. outsourceRemarks: e.target.value,
  4669. })
  4670. }}
  4671. placeholder="请输入备注"
  4672. />
  4673. </FormItem>
  4674. </div>
  4675. {/*<div className="clearfix">
  4676. <FormItem className="half-item"
  4677. {...formItemLayout}
  4678. label="上传协议文件" style={{height:"auto"}}>
  4679. <Upload header={{authorization: 'authorization-text'}} action={globalConfig.context + "/api/admin/outsourceOrg/uploadOutsourceFile"}
  4680. data={(e)=>{
  4681. return {
  4682. 'sign': e.name.substring(0,e.name.lastIndexOf("."))
  4683. }
  4684. }}
  4685. fileList={this.state.fileUrl}
  4686. onChange={(e)=>{
  4687. this.setState({
  4688. attachmentUrl:e.fileList,
  4689. fileUrl:e.fileList
  4690. })
  4691. }}>
  4692. {fileUrl.length>1?null:<Button>
  4693. <Icon type="upload" /> 点击上传
  4694. </Button>}
  4695. </Upload>
  4696. <span className="tip" style={{display:"inline-block"}}>支持文件格式: doc,excel,ppt</span>
  4697. </FormItem>
  4698. </div>*/}
  4699. <p
  4700. className="tip"
  4701. style={{
  4702. paddingBottom: '12px',
  4703. width: '240px',
  4704. marginLeft: '145px',
  4705. color: 'red',
  4706. }}
  4707. >
  4708. 首次派单项目,需上传协议,第2次起,同项目,只需写外包公司
  4709. </p>
  4710. <div className="clearfix">
  4711. <FormItem
  4712. labelCol={{ span: 4 }}
  4713. wrapperCol={{ span: 18 }}
  4714. label={
  4715. <span>
  4716. 合同/协议扫描件
  4717. </span>
  4718. }
  4719. >
  4720. <PicturesWall
  4721. domId={'myTask3'}
  4722. fileList={this.getOrgCodeUrlWai}
  4723. pictureUrl={this.state.pictureUrl}
  4724. />
  4725. <p style={{ color: 'red' }}>图片建议:要清晰。</p>
  4726. </FormItem>
  4727. </div>
  4728. {/*只有审核拒绝和第一次发起外包的时候才要填写发起原因 如果是类型为供应商则不需要发起原因*/}
  4729. {/*this.state.startType 0外包 1供应商*/}
  4730. {(typeof this.state.refundStatus === 'undefined' || this.state.refundStatus === 2) && this.state.startType !== 1 ? <div className="clearfix">
  4731. <FormItem
  4732. className="half-item"
  4733. {...formItemLayout}
  4734. label={
  4735. <span>
  4736. <strong style={{ color: '#f00' }}>*</strong>发起原因
  4737. </span>
  4738. }
  4739. >
  4740. <TextArea
  4741. rows={4}
  4742. value={this.state.reason}
  4743. onChange={(e) => {
  4744. this.setState({
  4745. reason: e.target.value,
  4746. })
  4747. }}
  4748. placeholder="请输入发起原因"
  4749. />
  4750. </FormItem>
  4751. </div> : <div/>}
  4752. <div className="clearfix">
  4753. <div
  4754. style={{
  4755. display: 'inline-black',
  4756. textAlign: 'center',
  4757. }}
  4758. >
  4759. <Button
  4760. type="primary"
  4761. loading={this.state.loading}
  4762. onClick={()=>{
  4763. this.sureOut(this.state.startType);
  4764. }}
  4765. >
  4766. {
  4767. this.state.startType === 0 ? "确认发起外包,不通过总部" : "提交供应商信息"
  4768. }
  4769. </Button>
  4770. <p className="tip" style={{ color: 'red' }}>
  4771. {
  4772. this.state.startType === 0 ? "提示:高于总部价格,费用个人承担" : "确定提交供应商信息,提交后,不可修改"
  4773. }
  4774. </p>
  4775. </div>
  4776. </div>
  4777. </div>
  4778. ) : (
  4779. <div>
  4780. {
  4781. this.state.visible && this.state.activeKey === '2' ?
  4782. <CheckProject
  4783. {...this.props}
  4784. orderTaskOfficialCost={this.state.orderTaskOfficialCost} //是否含官费 0无1有
  4785. containOfficialFees={this.state.containOfficialFees} //0:实际已缴费 1:实际未缴费
  4786. tid={this.state.tid}
  4787. oldInfor={this.state.oldInfor}
  4788. projectType={this.state.projectType} //0正常 1专利 2软著 3审计
  4789. patentNameType={this.state.patentNameType}
  4790. patentName={this.state.patentName}
  4791. patentType={this.state.patentType}
  4792. status={this.state.refundStatus}
  4793. isPreviewPay={true}
  4794. mid={this.state.mid}
  4795. thirdInfoList={this.state.thirdInfoList}
  4796. dataSource={this.state.payNodeList}
  4797. outsourceRemarks={this.state.outsourceRemarks}
  4798. fileList={this.state.pictureUrl}
  4799. startType={this.state.startType}
  4800. projectStatus={this.state.projectStatus}
  4801. onRefresh={()=>{
  4802. this.waiDetail();
  4803. this.thirdTable(this.state.tid);
  4804. this.getSelectOutsourceLog(this.state.tid);
  4805. this.payNodeTable(this.state.tid)
  4806. this.loadData(this.state.page)
  4807. }}
  4808. /> : <div/>
  4809. }
  4810. </div>
  4811. )}
  4812. {(this.state.refundStatus == 1 ||
  4813. this.state.refundStatus == 0 ||
  4814. this.state.refundStatus == 2) &&
  4815. this.state.startType !== 1
  4816. ? (
  4817. <div className="clearfix"
  4818. style={{
  4819. display: this.state.refundStatus == 0 ? 'none' : 'block',
  4820. }}
  4821. >
  4822. <hr className="division" />
  4823. {parseInt(this.state.startType) !== 1 ? <div style={{
  4824. color:'#F00',
  4825. fontWeight: 'bolder',
  4826. paddingBottom: '20px',
  4827. }}>
  4828. 审核结果: <span style={{paddingLeft:'20px'}}>{getRefundStatus(this.state.refundStatus)}</span>
  4829. </div> : <div/>}
  4830. <div className="outsourceLogList">
  4831. {
  4832. this.state.outsourceLogs && this.state.outsourceLogs.map((value,index)=>(
  4833. <div key={index} className="outsourceLogItem outsource">
  4834. <div style={{
  4835. display:'flex',
  4836. flexFlow:'row nowrap',
  4837. paddingBottom: '3px',
  4838. paddingTop: '3px',
  4839. }}>
  4840. <div>
  4841. {value.aname}
  4842. </div>
  4843. <div style={{paddingLeft:'5px'}}>
  4844. {
  4845. value.status === 0 ?
  4846. <Tag color="#2db7f5">发起外包审核</Tag> :
  4847. value.status === 1 ? <Tag color="#87d068">通过</Tag> :
  4848. <Tag color="#f50">驳回</Tag>
  4849. }
  4850. </div>
  4851. <div style={{
  4852. wordBreak: 'break-all',
  4853. maxWidth:'67%',
  4854. }}>
  4855. {value.remarks}
  4856. </div>
  4857. <div style={{paddingLeft: '10px'}}>
  4858. {value.createTimes}
  4859. </div>
  4860. </div>
  4861. </div>
  4862. ))
  4863. }
  4864. </div>
  4865. {/* <div*/}
  4866. {/* className="clearfix"*/}
  4867. {/* style={{*/}
  4868. {/* display: this.state.refundStatus == 0 ? 'none' : 'block',*/}
  4869. {/* }}*/}
  4870. {/* >*/}
  4871. {/* <FormItem*/}
  4872. {/* className="half-item"*/}
  4873. {/* {...formItemLayout}*/}
  4874. {/* label="审核意见"*/}
  4875. {/* >*/}
  4876. {/* <span>{this.state.remarks}</span>*/}
  4877. {/* </FormItem>*/}
  4878. {/* </div>*/}
  4879. {/* {parseInt(this.state.startType) !== 1 ?<div className="clearfix">*/}
  4880. {/* <FormItem*/}
  4881. {/* className="half-item"*/}
  4882. {/* {...formItemLayout}*/}
  4883. {/* label="审核结果"*/}
  4884. {/* >*/}
  4885. {/* <span>{getRefundStatus(this.state.refundStatus)}</span>*/}
  4886. {/* </FormItem>*/}
  4887. {/* </div> : <div/>}*/}
  4888. {/* <div*/}
  4889. {/* className="clearfix"*/}
  4890. {/* style={{*/}
  4891. {/* display: this.state.refundStatus == 0 ? 'none' : 'block',*/}
  4892. {/* }}*/}
  4893. {/* >*/}
  4894. {/* <FormItem*/}
  4895. {/* className="half-item"*/}
  4896. {/* {...formItemLayout}*/}
  4897. {/* label="审核时间"*/}
  4898. {/* >*/}
  4899. {/* <span>{this.state.auditTimes}</span>*/}
  4900. {/* </FormItem>*/}
  4901. {/* </div>*/}
  4902. </div>
  4903. ) : (
  4904. ''
  4905. )}
  4906. </Spin>
  4907. </TabPane>
  4908. {!this.props.isZxs || (this.state.isHuiyuan && this.props.isZxs) ? (
  4909. <TabPane tab="订单详情" key="3">
  4910. <Spin spinning={this.state.loading}>
  4911. {this.state.activeKey === "3" ? <OrderDetail
  4912. orderData={this.state.orderData}
  4913. getOrderLog={this.getOrderLog}
  4914. dataSourceX={this.state.dataSourceX}
  4915. contactList={this.state.jiedian}
  4916. orderNo={this.state.orderNo}
  4917. totalCui={this.state.totalCui}
  4918. contactListNew={this.state.jiedianNew}
  4919. pictureUrl={this.state.contractPictureUrl}
  4920. /> : <div/>}
  4921. </Spin>
  4922. <OrderRiZi
  4923. dataSourcerizhi={this.state.dataSourceY}
  4924. closeOrderLog={this.closeOrderLog}
  4925. visible={this.state.avisible}
  4926. loading={this.state.loading}
  4927. />
  4928. </TabPane>
  4929. ) : (
  4930. ''
  4931. )}
  4932. </Tabs>
  4933. </div>
  4934. </Modal> : <div/>}
  4935. <Modal
  4936. maskClosable={false}
  4937. visible={this.state.lookVisible}
  4938. onOk={this.noCancel}
  4939. onCancel={this.noCancel}
  4940. width="500px"
  4941. title={'添加工时'}
  4942. footer=""
  4943. className="admin-desc-content"
  4944. >
  4945. <Form layout="horizontal" id="demand-form">
  4946. <Spin spinning={this.state.loading}>
  4947. <div className="clearfix">
  4948. <FormItem {...formItemLayout} label="工作日期">
  4949. <DatePicker
  4950. style={{ marginTop: '2px', width: '200px', height: '32px' }}
  4951. showTime
  4952. format="YYYY-MM-DD"
  4953. onOk={() => {}}
  4954. value={
  4955. this.state.taskDate ? moment(this.state.taskDate) : null
  4956. }
  4957. onChange={(data, dataString) => {
  4958. this.setState({ taskDate: dataString })
  4959. }}
  4960. />
  4961. </FormItem>
  4962. </div>
  4963. <div className="clearfix">
  4964. <FormItem {...formItemLayout} label="工作时长">
  4965. <Input
  4966. placeholder="请输入工作时长"
  4967. value={this.state.hours}
  4968. style={{ width: '200px' }}
  4969. onChange={(e) => {
  4970. this.setState({ hours: e.target.value })
  4971. }}
  4972. ref="commodityQuantity"
  4973. />
  4974. </FormItem>
  4975. </div>
  4976. <div className="clearfix">
  4977. <FormItem {...formItemLayout} label="工作内容">
  4978. <Input
  4979. type="textarea"
  4980. placeholder="请输入备注"
  4981. rows={4}
  4982. value={this.state.remarks}
  4983. onChange={(e) => {
  4984. this.setState({ remarks: e.target.value })
  4985. }}
  4986. />
  4987. </FormItem>
  4988. </div>
  4989. <div className="clearfix">
  4990. <Button
  4991. className="cancel"
  4992. type="primary"
  4993. onClick={this.tianjiaOk}
  4994. style={{ marginLeft: '100px' }}
  4995. htmlType="submit"
  4996. >
  4997. 确定
  4998. </Button>
  4999. <Button
  5000. className="cancel"
  5001. type="ghost"
  5002. onClick={this.noCancel}
  5003. style={{ marginLeft: '50px' }}
  5004. >
  5005. 取消
  5006. </Button>
  5007. </div>
  5008. </Spin>
  5009. </Form>
  5010. </Modal>
  5011. {this.state.addnextVisible ? <Modal
  5012. maskClosable={false}
  5013. visible={this.state.addnextVisible}
  5014. onOk={this.nextCancel}
  5015. onCancel={this.nextCancel}
  5016. width="800px"
  5017. title="项目详情"
  5018. footer=""
  5019. className="admin-desc-content"
  5020. >
  5021. <Form layout="horizontal" onSubmit={this.nextSubmit} id="demand-form">
  5022. <Spin spinning={this.state.loading}>
  5023. <div className="clearfix">
  5024. <FormItem
  5025. className="half-item"
  5026. {...formItemLayout}
  5027. label="项目名称"
  5028. >
  5029. <span>{this.state.commodityName}</span>
  5030. </FormItem>
  5031. <FormItem
  5032. className="half-item"
  5033. {...formItemLayout}
  5034. label="项目数量"
  5035. >
  5036. <span>{this.state.commodityQuantity}</span>
  5037. </FormItem>
  5038. <FormItem
  5039. className="half-item"
  5040. {...formItemLayout}
  5041. label="官费"
  5042. style={{ display: this.state.displayFees }}
  5043. >
  5044. <span>
  5045. {this.state.officialCost == 0 ? '无官费' : '有官费'}
  5046. </span>
  5047. </FormItem>
  5048. <FormItem
  5049. className="half-item"
  5050. {...formItemLayout}
  5051. label="费减"
  5052. style={{ display: this.state.displayFees }}
  5053. >
  5054. <span>
  5055. {this.state.costReduction == 0 ? '无费减' : '有费减'}
  5056. </span>
  5057. </FormItem>
  5058. <FormItem
  5059. className="half-item"
  5060. {...formItemLayout}
  5061. label="金额(万元)"
  5062. >
  5063. <span>{this.state.commodityPrice ? '***' : 0}</span>
  5064. </FormItem>
  5065. <FormItem
  5066. className="half-item"
  5067. {...formItemLayout}
  5068. label="主要项目"
  5069. >
  5070. <span>{getboutique(this.state.main)}</span>
  5071. </FormItem>
  5072. <div className="clearfix">
  5073. <FormItem
  5074. labelCol={{ span: 3 }}
  5075. wrapperCol={{ span: 18 }}
  5076. label="服务说明"
  5077. >
  5078. <span>{this.state.taskComment}</span>
  5079. </FormItem>
  5080. </div>
  5081. </div>
  5082. </Spin>
  5083. </Form>
  5084. </Modal> : <div/>}
  5085. {this.state.speVisible ? <Modal
  5086. maskClosable={false}
  5087. visible={this.state.speVisible}
  5088. onOk={()=>{
  5089. this.visitOk();
  5090. this.state.selectCompanyAjaxObj ? this.state.selectCompanyAjaxObj.abort() : null;
  5091. this.state.selectPaymentNodeAjaxObj ? this.state.selectPaymentNodeAjaxObj.abort() : null;
  5092. this.state.orderOutsourceDtailsAjaxObj ? this.state.orderOutsourceDtailsAjaxObj.abort() : null;
  5093. }}
  5094. onCancel={()=>{
  5095. this.visitCancel();
  5096. this.state.selectCompanyAjaxObj ? this.state.selectCompanyAjaxObj.abort() : null;
  5097. this.state.selectPaymentNodeAjaxObj ? this.state.selectPaymentNodeAjaxObj.abort() : null;
  5098. this.state.orderOutsourceDtailsAjaxObj ? this.state.orderOutsourceDtailsAjaxObj.abort() : null;
  5099. }}
  5100. width="900px"
  5101. title=""
  5102. footer=""
  5103. className="admin-desc-content"
  5104. >
  5105. <div style={{position:"relative"}}>
  5106. <div style={{
  5107. position: "absolute",
  5108. inset:'-15px',
  5109. zIndex: 1000,
  5110. //0未开始 1已开始 2已暂停 3已完成 4已驳回 5已退单
  5111. display: this.state.status === 0 ? 'flex' : 'none',
  5112. justifyContent:'center',
  5113. paddingTop: '300px',
  5114. background: 'rgba(0,0,0,0.7)',
  5115. borderRadius: '4px',
  5116. borderTopRightRadius: '96px',
  5117. }}>
  5118. <Button
  5119. type="primary"
  5120. size='large'
  5121. onClick={()=>{
  5122. //0未开始 1已开始 2已暂停 3已完成 4已驳回 5已退单
  5123. this.tijiaoOk(1,()=>{
  5124. this.xiangqing(this.state.id)
  5125. });
  5126. }}>
  5127. 开始启动项目
  5128. </Button>
  5129. </div>
  5130. <Tabs
  5131. tabBarExtraContent={
  5132. <div style={{fontWeight:'bold',paddingRight:'15px'}}>
  5133. <span>
  5134. 项目名称:
  5135. <span style={{color:'#F00',paddingRight:'5px'}}>{this.state.taskName}</span>
  5136. </span>
  5137. <span style={{marginLeft:'15px'}}>
  5138. 项目编号:
  5139. <span style={{color:'#F00',paddingRight:'5px'}}>
  5140. {this.state.id}
  5141. {
  5142. this.state.splitStatus === 2 ? '('+this.state.splitSuper+'-'+this.state.splitId+')' : ''
  5143. }
  5144. </span>
  5145. </span>
  5146. </div>
  5147. }
  5148. activeKey={this.state.activeKey}
  5149. onChange={this.orderChange}
  5150. >
  5151. <TabPane tab="项目概况" key="1">
  5152. <div className="clearfix">
  5153. <FormItem
  5154. className="half-item"
  5155. {...formItemLayout}
  5156. label="当前项目情况"
  5157. >
  5158. {/*<Radio.Group*/}
  5159. {/* value={this.state.status}*/}
  5160. {/* onChange={(e) => {*/}
  5161. {/* this.setState({ status: e.target.value })*/}
  5162. {/* }}*/}
  5163. {/*>*/}
  5164. {/* <Radio value={0}>开启</Radio>*/}
  5165. {/* <Radio value={1}>暂停</Radio>*/}
  5166. {/*</Radio.Group>*/}
  5167. {
  5168. this.state.status === 0 ? '未开始':
  5169. this.state.status === 1 ? '已开始':
  5170. this.state.status === 2 ? '已暂停':
  5171. this.state.status === 3 ? '已完成':
  5172. this.state.status === 4 ? '已驳回':
  5173. this.state.status === 5 ? '已退单': ''
  5174. }
  5175. {
  5176. this.state.status !== 0 ? <Button
  5177. type="primary"
  5178. size="small"
  5179. style={{ marginTop: "5px" }}
  5180. onClick={()=>{
  5181. this.setState({
  5182. projectSituationVisible: true,
  5183. })
  5184. }}
  5185. >
  5186. 修改
  5187. </Button> : null
  5188. }
  5189. <Button
  5190. type="primary"
  5191. size="small"
  5192. style={{ marginTop: '5px', position: 'absolute' }}
  5193. onClick={this.caozuorizhi}
  5194. >
  5195. 操作日志
  5196. </Button>
  5197. </FormItem>
  5198. <FormItem
  5199. className="half-item"
  5200. {...formItemLayout}
  5201. label="合同编号"
  5202. >
  5203. <span>{this.state.contractNo}</span>
  5204. </FormItem>
  5205. </div>
  5206. <div className="clearfix">
  5207. <FormItem
  5208. className="half-item"
  5209. {...formItemLayout}
  5210. label="项目状态"
  5211. >
  5212. <Select
  5213. placeholder="选择项目状态"
  5214. style={{ width: '200px' }}
  5215. value={this.state.projectStatus}
  5216. onChange={(e) => {
  5217. this.setState({ projectStatus: e })
  5218. }}
  5219. >
  5220. {projectStatus.map(function (item) {
  5221. return (
  5222. <Select.Option key={item.value}>
  5223. {item.key}
  5224. </Select.Option>
  5225. )
  5226. })}
  5227. </Select>
  5228. </FormItem>
  5229. <FormItem
  5230. className="half-item"
  5231. {...formItemLayout}
  5232. label="是否特批"
  5233. >
  5234. <span>{getApproval(this.state.approval)}</span>
  5235. </FormItem>
  5236. <FormItem
  5237. className="half-item"
  5238. {...formItemLayout}
  5239. label="结算状态"
  5240. >
  5241. <span>
  5242. {getLiquidationStatus(this.state.liquidationStatus)}
  5243. </span>
  5244. </FormItem>
  5245. <FormItem
  5246. className="half-item"
  5247. {...formItemLayout}
  5248. label="流程状态"
  5249. >
  5250. <span>{getProcessStatus(this.state.processStatus)}</span>
  5251. </FormItem>
  5252. <FormItem
  5253. className="half-item"
  5254. {...formItemLayout}
  5255. label="订单编号"
  5256. >
  5257. <span>{this.state.orderNo}</span>
  5258. </FormItem>
  5259. </div>
  5260. <div className="clearfix">
  5261. <FormItem
  5262. className="half-item"
  5263. {...formItemLayout}
  5264. label="满意度表格"
  5265. >
  5266. <Radio.Group
  5267. value={this.state.formRetrieve}
  5268. onChange={(e) => {
  5269. this.setState({ formRetrieve: e.target.value })
  5270. }}
  5271. >
  5272. <Radio value={0}>未收回</Radio>
  5273. <Radio value={1}>已收回</Radio>
  5274. <Radio value={2}>其他</Radio>
  5275. </Radio.Group>
  5276. </FormItem>
  5277. <FormItem
  5278. className="half-item"
  5279. {...formItemLayout}
  5280. label="退单"
  5281. >
  5282. <Radio.Group
  5283. value={this.state.taskRefund}
  5284. onChange={(e) => {
  5285. this.setState({ taskRefund: e.target.value })
  5286. }}
  5287. >
  5288. <Radio value={0}>已完成</Radio>
  5289. <Radio value={1}>未完成</Radio>
  5290. <Radio value={2}>其他</Radio>
  5291. </Radio.Group>
  5292. </FormItem>
  5293. </div>
  5294. <div className="clearfix">
  5295. {
  5296. <FormItem
  5297. className="half-item"
  5298. {...formItemLayout}
  5299. label="(满意度)备注"
  5300. >
  5301. <Input
  5302. type="textarea"
  5303. placeholder="请输入备注"
  5304. rows={2}
  5305. value={this.state.retrieveContent}
  5306. onChange={(e) => {
  5307. this.setState({ retrieveContent: e.target.value })
  5308. }}
  5309. />
  5310. </FormItem>
  5311. }
  5312. {
  5313. <FormItem
  5314. className="half-item"
  5315. {...formItemLayout}
  5316. label="(退单)备注"
  5317. >
  5318. <Input
  5319. type="textarea"
  5320. placeholder="请输入备注"
  5321. rows={2}
  5322. value={this.state.refundContent}
  5323. onChange={(e) => {
  5324. this.setState({ refundContent: e.target.value })
  5325. }}
  5326. />
  5327. </FormItem>
  5328. }
  5329. </div>
  5330. <div className="clearfix">
  5331. <h3 className="sub-title">订单负责人信息</h3>
  5332. <FormItem
  5333. className="half-item"
  5334. {...formItemLayout}
  5335. label="负责人"
  5336. >
  5337. <span>
  5338. {this.state.salesmanName + '(' + this.state.depName + ')'}
  5339. </span>
  5340. </FormItem>
  5341. <FormItem
  5342. className="half-item"
  5343. {...formItemLayout}
  5344. label="负责人电话"
  5345. >
  5346. <span>{this.state.salesmanMobile}</span>
  5347. </FormItem>
  5348. <FormItem
  5349. className="half-item"
  5350. {...formItemLayout}
  5351. label="当前财务负责人"
  5352. >
  5353. <span>{this.state.nowFinance}</span>
  5354. </FormItem>
  5355. <FormItem
  5356. className="half-item"
  5357. {...formItemLayout}
  5358. label="当前财务负责人电话"
  5359. >
  5360. <span>{this.state.nowFinanceMobile}</span>
  5361. </FormItem>
  5362. <FormItem
  5363. className="half-item"
  5364. {...formItemLayout}
  5365. style={{ opacity: '.5' }}
  5366. label="原负责人"
  5367. >
  5368. <span>{this.state.oldSalesmanName}</span>
  5369. </FormItem>
  5370. <FormItem
  5371. className="half-item"
  5372. {...formItemLayout}
  5373. style={{ opacity: '.5' }}
  5374. label="原负责人电话"
  5375. >
  5376. <span>{this.state.oldSalesmanMobile}</span>
  5377. </FormItem>
  5378. <FormItem
  5379. className="half-item"
  5380. {...formItemLayout}
  5381. style={{ opacity: '.5' }}
  5382. label="实际财务操作人"
  5383. >
  5384. <span>{this.state.financeName}</span>
  5385. </FormItem>
  5386. <FormItem
  5387. className="half-item"
  5388. {...formItemLayout}
  5389. style={{ opacity: '.5' }}
  5390. label="实际财务操作人电话"
  5391. >
  5392. <span>{this.state.financeMobile}</span>
  5393. </FormItem>
  5394. <FormItem
  5395. className="half-item"
  5396. {...formItemLayout}
  5397. label="订单留言"
  5398. >
  5399. <span>{this.state.orderRemarks}</span>
  5400. </FormItem>
  5401. <FormItem className="half-item" {...formItemLayout} label="">
  5402. <Button onClick={this.getOrderLog}>查看订单日志</Button>
  5403. </FormItem>
  5404. <OrderRiZi
  5405. dataSourcerizhi={this.state.dataSourceY}
  5406. closeOrderLog={this.closeOrderLog}
  5407. visible={this.state.avisible}
  5408. loading={this.state.loading}
  5409. />
  5410. </div>
  5411. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  5412. <div className="clearfix">
  5413. <h3 className="sub-title">联系信息</h3>
  5414. <FormItem
  5415. className="half-item"
  5416. {...formItemLayout}
  5417. label="客户名称"
  5418. >
  5419. <span>{this.state.userName}</span>
  5420. </FormItem>
  5421. <FormItem
  5422. className="half-item"
  5423. {...formItemLayout}
  5424. label="企业法人"
  5425. >
  5426. <Input
  5427. placeholder="请输入法人名称"
  5428. value={this.state.legalPerson}
  5429. style={{ width: '200px' }}
  5430. onChange={(e) => {
  5431. this.setState({ legalPerson: e.target.value })
  5432. }}
  5433. ref="commodityQuantity"
  5434. />
  5435. </FormItem>
  5436. <FormItem
  5437. className="half-item"
  5438. {...formItemLayout}
  5439. label="法人电话"
  5440. >
  5441. <Input
  5442. placeholder="请输入法人电话"
  5443. value={this.state.legalPersonTel}
  5444. style={{ width: '200px' }}
  5445. onChange={(e) => {
  5446. this.setState({ legalPersonTel: e.target.value })
  5447. }}
  5448. ref="commodityQuantity"
  5449. />
  5450. </FormItem>
  5451. <FormItem
  5452. className="half-item"
  5453. {...formItemLayout}
  5454. label="客户联系人"
  5455. >
  5456. <Input
  5457. placeholder="请输入联系人名称"
  5458. value={this.state.contacts}
  5459. style={{ width: '200px' }}
  5460. onChange={(e) => {
  5461. this.setState({ contacts: e.target.value })
  5462. }}
  5463. ref="commodityQuantity"
  5464. />
  5465. </FormItem>
  5466. <FormItem
  5467. className="half-item"
  5468. {...formItemLayout}
  5469. label="联系人电话"
  5470. >
  5471. <Input
  5472. placeholder="请输入联系人电话"
  5473. value={this.state.contactMobile}
  5474. style={{ width: '200px' }}
  5475. onChange={(e) => {
  5476. this.setState({ contactMobile: e.target.value })
  5477. }}
  5478. ref="commodityQuantity"
  5479. />
  5480. </FormItem>
  5481. <FormItem
  5482. className="half-item"
  5483. {...formItemLayout}
  5484. label="企业地址"
  5485. >
  5486. <Cascader
  5487. options={areaSelect()}
  5488. value={this.state.ProvinceCity}
  5489. placeholder="选择城市"
  5490. style={{ width: '200px' }}
  5491. onChange={(e) => {
  5492. this.setState({ ProvinceCity: e })
  5493. }}
  5494. />
  5495. </FormItem>
  5496. <FormItem
  5497. className="half-item"
  5498. {...formItemLayout}
  5499. label=""
  5500. />
  5501. <FormItem className="half-item" {...formItemLayout} label="">
  5502. <Input
  5503. placeholder="请输入详细地址"
  5504. value={this.state.postalAddress}
  5505. style={{ width: '200px', marginLeft: '12em' }}
  5506. onChange={(e) => {
  5507. this.setState({ postalAddress: e.target.value })
  5508. }}
  5509. ref="commodityQuantity"
  5510. />
  5511. </FormItem>
  5512. </div>
  5513. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  5514. <div className="clearfix">
  5515. <h3 className="sub-title">项目信息</h3>
  5516. <FormItem
  5517. className="half-item"
  5518. {...formItemLayout}
  5519. label="项目编号"
  5520. >
  5521. <span>
  5522. {this.state.splitStatus == 2
  5523. ? this.state.splitSuper + '-' + this.state.splitId
  5524. : this.state.id}
  5525. </span>
  5526. </FormItem>
  5527. <FormItem
  5528. className="half-item"
  5529. {...formItemLayout}
  5530. label="项目名称"
  5531. >
  5532. <span>{this.state.taskName}</span>
  5533. </FormItem>
  5534. <FormItem
  5535. className="half-item"
  5536. {...formItemLayout}
  5537. label="项目状态"
  5538. >
  5539. <Select
  5540. placeholder="选择项目状态"
  5541. style={{ width: '200px' }}
  5542. value={this.state.taskStatus}
  5543. onChange={(e) => {
  5544. this.setState({ taskStatus: e })
  5545. }}
  5546. >
  5547. {taskStatus.map(function (item) {
  5548. return (
  5549. <Select.Option key={item.value}>
  5550. {item.key}
  5551. </Select.Option>
  5552. )
  5553. })}
  5554. </Select>
  5555. </FormItem>
  5556. <FormItem
  5557. className="half-item"
  5558. {...formItemLayout}
  5559. label="项目类别"
  5560. >
  5561. <span>{this.state.cname}</span>
  5562. </FormItem>
  5563. <FormItem
  5564. className="half-item"
  5565. {...formItemLayout}
  5566. label="证书编号"
  5567. >
  5568. <Input
  5569. placeholder="请输入证书编号"
  5570. value={this.state.certificateNumber}
  5571. style={{ width: '200px' }}
  5572. onChange={(e) => {
  5573. this.setState({ certificateNumber: e.target.value })
  5574. }}
  5575. ref="commodityQuantity"
  5576. />
  5577. </FormItem>
  5578. </div>
  5579. <div className="clearfix" style={{ marginTop: '10px' }}>
  5580. <FormItem
  5581. labelCol={{ span: 3 }}
  5582. wrapperCol={{ span: 14 }}
  5583. label="附件"
  5584. >
  5585. <Picture
  5586. domId={'myTask2'}
  5587. fileList={(e) => {
  5588. this.setState({ attachmentUrl: e })
  5589. }}
  5590. pictureUrl={this.state.attachmentUrl}
  5591. visible={this.props.visible}
  5592. data={{
  5593. sign: 'order_task_file',
  5594. url: '/api/admin/orderProject/uploadOrderTaskFile',
  5595. }}
  5596. />
  5597. </FormItem>
  5598. </div>
  5599. <div className="clearfix">
  5600. <FormItem
  5601. labelCol={{ span: 3 }}
  5602. wrapperCol={{ span: 16 }}
  5603. label="备注"
  5604. >
  5605. <Input
  5606. type="textarea"
  5607. placeholder="请输入备注"
  5608. rows={4}
  5609. value={this.state.taskComment}
  5610. onChange={(e) => {
  5611. this.setState({ taskComment: e.target.value })
  5612. }}
  5613. />
  5614. </FormItem>
  5615. </div>
  5616. <div className="clearfix">
  5617. <h3 className="sub-title">项目申报进度</h3>
  5618. <FormItem
  5619. className="half-item"
  5620. {...formItemLayout}
  5621. label="申报批次"
  5622. >
  5623. <Select
  5624. value={
  5625. this.state.declarationBatch
  5626. ? this.state.declarationBatch
  5627. : undefined
  5628. }
  5629. placeholder="请选择批次"
  5630. style={{ width: 200 }}
  5631. onChange={(e) => {
  5632. this.setState({
  5633. declarationBatch: e,
  5634. })
  5635. }}
  5636. >
  5637. <Option value={1}>第一批</Option>
  5638. <Option value={2}>第二批</Option>
  5639. <Option value={3}>第三批</Option>
  5640. <Option value={4}>第四批</Option>
  5641. </Select>
  5642. </FormItem>
  5643. <FormItem
  5644. className="half-item"
  5645. {...formItemLayout}
  5646. label="软著派单数量"
  5647. >
  5648. <span>{this.state.commodityQuantity}</span>
  5649. <Button
  5650. type="primary"
  5651. size="small"
  5652. style={{ marginLeft: '45px' }}
  5653. onClick={this.addcontact}
  5654. >
  5655. +增加下证信息
  5656. </Button>
  5657. </FormItem>
  5658. <div className="patent-table">
  5659. <Spin spinning={this.state.loading}>
  5660. <Table
  5661. columns={this.state.ContactsLists}
  5662. dataSource={this.state.contactList}
  5663. pagination={false}
  5664. bordered
  5665. size="small"
  5666. />
  5667. </Spin>
  5668. </div>
  5669. </div>
  5670. <div className="clearfix">
  5671. <h3 className="sub-title">项目业务</h3>
  5672. <div className="patent-table">
  5673. <Spin spinning={this.state.loading}>
  5674. <Table
  5675. columns={this.state.columnsX}
  5676. dataSource={this.state.dataSourceX}
  5677. pagination={this.state.paginations}
  5678. onRowClick={this.tableRowClickX}
  5679. bordered
  5680. size="small"
  5681. />
  5682. </Spin>
  5683. </div>
  5684. </div>
  5685. <div className="clearfix">
  5686. <Button
  5687. className="cancel"
  5688. type="primary"
  5689. onClick={()=>{
  5690. this.tijiaoOk();
  5691. }}
  5692. style={{ marginLeft: '200px', marginTop: '10px' }}
  5693. htmlType="submit"
  5694. >
  5695. 保存
  5696. </Button>
  5697. <Button
  5698. className="cancel"
  5699. type="ghost"
  5700. onClick={this.visitCancel}
  5701. style={{ marginLeft: '50px', marginTop: '10px' }}
  5702. >
  5703. 取消
  5704. </Button>
  5705. </div>
  5706. </TabPane>
  5707. <TabPane tab="外包/供应商信息" key="2">
  5708. <Spin spinning={this.state.sureOutLoading || this.state.waiDetailLoading || this.state.payNodeLoading || this.state.thirdInfoLoading}>
  5709. {this.state.refundStatus != 0 && this.state.refundStatus != 1 ? (
  5710. <div style={{ marginTop: 10 }}>
  5711. <div className="clearfix">
  5712. <FormItem
  5713. className="half-item"
  5714. labelCol={{ span: 3 }}
  5715. wrapperCol={{ span: 14 }}
  5716. label={
  5717. <span>
  5718. <strong style={{ color: '#f00' }}>*</strong>
  5719. 类型
  5720. </span>
  5721. }
  5722. >
  5723. <Radio.Group
  5724. disabled={this.state.payNodeLoading || this.state.thirdInfoLoading}
  5725. value={this.state.startType}
  5726. onChange={(e) => {
  5727. let _this = this;
  5728. if(this.state.thirdInfoList.length >0){
  5729. confirm({
  5730. title: '确定要切换吗?',
  5731. content: '切换将删除所有第三信息和付款节点',
  5732. onOk() {
  5733. return new Promise((resolve, reject) => {
  5734. _this.setState({ startType: e.target.value },()=>{
  5735. _this.projectTypeTabContent(_this.state.projectType);
  5736. })
  5737. _this.confirmDeletNew(-1,resolve,reject)
  5738. if(_this.state.payNodeList.length > 0){
  5739. _this.payNodeConfirmDeletNew(-1,resolve,reject);
  5740. }
  5741. }).catch(() => console.log('Oops errors!'));
  5742. },
  5743. onCancel() {},
  5744. });
  5745. }else{
  5746. this.setState({ startType: e.target.value },()=>{
  5747. this.projectTypeTabContent(this.state.projectType);
  5748. })
  5749. }
  5750. }}
  5751. >
  5752. <Radio value={0}>外包(不走总部)</Radio>
  5753. <Radio value={1}>供应商信息</Radio>
  5754. </Radio.Group>
  5755. </FormItem>
  5756. </div>
  5757. {/* 专利类型 */}
  5758. <div
  5759. className="clearfix"
  5760. style={{
  5761. display: this.state.projectType === 1 ? 'block' : 'none',
  5762. }}
  5763. >
  5764. <FormItem
  5765. className="half-item"
  5766. labelCol={{ span: 4 }}
  5767. wrapperCol={{ span: 14 }}
  5768. label={
  5769. <span>
  5770. <strong style={{ color: '#f00' }}>*</strong>
  5771. 专利类型
  5772. </span>
  5773. }
  5774. >
  5775. <Radio.Group
  5776. disabled={this.state.payNodeLoading || this.state.thirdInfoLoading}
  5777. value={this.state.patentType}
  5778. onChange={(e) => {
  5779. let _this = this;
  5780. if(this.state.thirdInfoList.length >0){
  5781. confirm({
  5782. title: '确定要切换吗?',
  5783. content: '切换将删除所有第三信息和付款节点',
  5784. onOk() {
  5785. return new Promise((resolve, reject) => {
  5786. _this.setState({ patentType: e.target.value },()=>{
  5787. _this.projectTypeTabContent(_this.state.projectType);
  5788. })
  5789. _this.confirmDeletNew(-1,resolve,reject)
  5790. if(_this.state.payNodeList.length > 0){
  5791. _this.payNodeConfirmDeletNew(-1,resolve,reject);
  5792. }
  5793. }).catch(() => console.log('Oops errors!'));
  5794. },
  5795. onCancel() {},
  5796. });
  5797. }else{
  5798. this.setState({ patentType: e.target.value },()=>{
  5799. this.projectTypeTabContent(this.state.projectType);
  5800. })
  5801. }
  5802. }}
  5803. >
  5804. <Radio value={0}>专利申请/变更/转让</Radio>
  5805. <Radio value={1}>专利买卖</Radio>
  5806. </Radio.Group>
  5807. </FormItem>
  5808. </div>
  5809. <div
  5810. className="clearfix"
  5811. style={{
  5812. display: this.state.projectType === 1? 'block' : 'none',
  5813. }}
  5814. >
  5815. <FormItem
  5816. className="half-item"
  5817. labelCol={{ span: 3 }}
  5818. wrapperCol={{ span: 14 }}
  5819. label={
  5820. <span>
  5821. <strong style={{ color: '#f00' }}>*</strong>
  5822. 专利名称
  5823. </span>
  5824. }
  5825. >
  5826. <Radio.Group
  5827. disabled={this.state.payNodeLoading || this.state.thirdInfoLoading}
  5828. value={this.state.patentNameType}
  5829. onChange={(e) => {
  5830. let _this = this;
  5831. if(this.state.thirdInfoList.length >0){
  5832. confirm({
  5833. title: '确定要切换吗?',
  5834. content: '切换将删除所有第三信息和付款节点',
  5835. onOk() {
  5836. return new Promise((resolve, reject) => {
  5837. _this.setState({ patentNameType: e.target.value },()=>{
  5838. _this.projectTypeTabContent(_this.state.projectType);
  5839. })
  5840. _this.confirmDeletNew(-1,resolve,reject)
  5841. if(_this.state.payNodeList.length > 0){
  5842. _this.payNodeConfirmDeletNew(-1,resolve,reject);
  5843. }
  5844. }).catch(() => console.log('Oops errors!'));
  5845. },
  5846. onCancel() {},
  5847. });
  5848. }else{
  5849. this.setState({ patentNameType: e.target.value },()=>{
  5850. this.projectTypeTabContent(this.state.projectType);
  5851. })
  5852. }
  5853. }}
  5854. >
  5855. <Radio value={0}>实用新型专利</Radio>
  5856. <Radio value={1}>发明专利</Radio>
  5857. <Radio value={2}>外观专利</Radio>
  5858. {/*<Radio value={3}>*/}
  5859. {/* 其他*/}
  5860. {/* <Input*/}
  5861. {/* disabled={this.state.patentNameType !== 3}*/}
  5862. {/* value={this.state.patentName}*/}
  5863. {/* style={{ marginLeft: '15px' }}*/}
  5864. {/* onChange={(e) => {*/}
  5865. {/* this.setState({*/}
  5866. {/* patentName: e.target.value,*/}
  5867. {/* })*/}
  5868. {/* }}*/}
  5869. {/* placeholder="请填写专利名称"*/}
  5870. {/* />*/}
  5871. {/*</Radio>*/}
  5872. </Radio.Group>
  5873. </FormItem>
  5874. </div>
  5875. {this.state.orderTaskOfficialCost === 1 && this.state.startType !== 0 ? <div className="clearfix">
  5876. <FormItem
  5877. className="half-item"
  5878. labelCol={{ span: 4 }}
  5879. wrapperCol={{ span: 14 }}
  5880. label={<span>官费</span>}>
  5881. <Radio.Group
  5882. value={this.state.containOfficialFees}
  5883. onChange={(e) => {
  5884. this.setState({ containOfficialFees: e.target.value })
  5885. }}
  5886. >
  5887. <Radio value={0}>实际已缴费</Radio>
  5888. <Radio value={1}>实际未缴费</Radio>
  5889. </Radio.Group>
  5890. </FormItem>
  5891. </div> : <div/>}
  5892. {/* 第三方信息专利 */}
  5893. <div
  5894. style={{
  5895. // display: this.state.type == 1 ? "block" : "none",
  5896. display: this.state.type == 1 ? 'block' : 'block',
  5897. }}
  5898. >
  5899. <span
  5900. style={{
  5901. fontSize: '18px',
  5902. }}
  5903. >
  5904. 第三方信息
  5905. </span>
  5906. <span
  5907. style={{
  5908. display: 'inline-block',
  5909. marginLeft: 10,
  5910. color: 'red',
  5911. }}
  5912. >
  5913. 金额总计(万元): {this.state.allTotalAmount}
  5914. </span>
  5915. <Button
  5916. type="primary"
  5917. onClick={(e) => {
  5918. //this.state.startType 类型为外包时,当普通单
  5919. if(this.state.projectType === 1 && this.state.patentType === -1){
  5920. message.info('请先选择专利类型');
  5921. }else if(this.state.projectType === 1 && this.state.patentNameType === -1){
  5922. message.info('请先选择专利名称');
  5923. } else{
  5924. this.addThirdList()
  5925. }
  5926. }}
  5927. style={{
  5928. float: 'right',
  5929. marginRight: '50px',
  5930. marginBottom: '15px',
  5931. }}>
  5932. +新增供应商名称
  5933. </Button>
  5934. </div>
  5935. <div
  5936. className="clearfix"
  5937. style={{
  5938. // display: this.state.type == 1 ? "block" : "none",
  5939. display: this.state.type == 1 ? 'block' : 'block',
  5940. }}
  5941. >
  5942. <Spin spinning={this.state.thirdInfoLoading}>
  5943. <Form layout="horizontal">
  5944. <Table
  5945. pagination={false}
  5946. columns={this.state.ContactsListsNew}
  5947. dataSource={this.state.thirdInfoList}
  5948. onRowClick={this.tableRowClickOne}
  5949. scroll={{ x: 'max-content', y: 0 }}
  5950. bordered
  5951. size="small"
  5952. />
  5953. <Col
  5954. span={24}
  5955. offset={9}
  5956. style={{ marginTop: '15px' }}
  5957. />
  5958. </Form>
  5959. </Spin>
  5960. </div>
  5961. {/*如果是软著类或者专利类的专利申请,隐藏付款节点*/}
  5962. <div
  5963. style={{
  5964. display: this.state.startType === 0 ? 'block' : ((this.state.projectType === 1 && this.state.patentType === 0) || this.state.projectType === 2? 'none' : 'block'), //0正常 1专利 2软著 3审计
  5965. }}
  5966. >
  5967. <span
  5968. style={{
  5969. fontSize: '18px',
  5970. }}
  5971. >
  5972. 付款节点
  5973. </span>
  5974. <span
  5975. style={{
  5976. display: 'inline-block',
  5977. marginLeft: 10,
  5978. color: 'red',
  5979. }}
  5980. />
  5981. <Button
  5982. type="primary"
  5983. onClick={(e) => {
  5984. this.addPayNode()
  5985. }}
  5986. style={{
  5987. float: 'right',
  5988. marginRight: '50px',
  5989. marginBottom: '15px',
  5990. }}
  5991. >
  5992. +新增付款节点
  5993. </Button>
  5994. </div>
  5995. {/*如果是软著类或者专利类的专利申请,隐藏付款节点但当为外包类型时,无需隐藏*/}
  5996. <div
  5997. className="clearfix"
  5998. style={{
  5999. display: this.state.startType === 0 ? 'block' : ((this.state.projectType === 1 && this.state.patentType === 0) || this.state.projectType === 2? 'none' : 'block'), //0正常 1专利 2软著 3审计
  6000. }}
  6001. >
  6002. <Spin spinning={this.state.payNodeLoading}>
  6003. <Form layout="horizontal">
  6004. <Table
  6005. pagination={false}
  6006. columns={this.state.PayNodeTableColunms}
  6007. dataSource={this.state.payNodeList}
  6008. onRowClick={this.payNodeTableRowClickOne}
  6009. scroll={{ x: 'max-content', y: 0 }}
  6010. bordered
  6011. size="small"
  6012. />
  6013. <Col
  6014. span={24}
  6015. offset={9}
  6016. style={{ marginTop: '15px' }}
  6017. />
  6018. </Form>
  6019. </Spin>
  6020. </div>
  6021. <div className="clearfix">
  6022. <FormItem
  6023. className="half-item"
  6024. {...formItemLayout}
  6025. label={
  6026. <span>
  6027. <strong style={{ color: '#f00' }}>*</strong>备注
  6028. </span>
  6029. }
  6030. >
  6031. <TextArea
  6032. rows={4}
  6033. value={this.state.outsourceRemarks}
  6034. onChange={(e) => {
  6035. this.setState({
  6036. outsourceRemarks: e.target.value,
  6037. })
  6038. }}
  6039. placeholder="请输入备注"
  6040. />
  6041. </FormItem>
  6042. </div>
  6043. {/*<div className="clearfix">
  6044. <FormItem className="half-item"
  6045. {...formItemLayout}
  6046. label="上传协议文件" style={{height:"auto"}}>
  6047. <Upload header={{authorization: 'authorization-text'}} action={globalConfig.context + "/api/admin/outsourceOrg/uploadOutsourceFile"}
  6048. data={(e)=>{
  6049. return {
  6050. 'sign': e.name.substring(0,e.name.lastIndexOf("."))
  6051. }
  6052. }}
  6053. fileList={this.state.fileUrl}
  6054. onChange={(e)=>{
  6055. this.setState({
  6056. attachmentUrl:e.fileList,
  6057. fileUrl:e.fileList
  6058. })
  6059. }}>
  6060. {fileUrl.length>1?null:<Button>
  6061. <Icon type="upload" /> 点击上传
  6062. </Button>}
  6063. </Upload>
  6064. <span className="tip" style={{display:"inline-block"}}>支持文件格式: doc,excel,ppt</span>
  6065. </FormItem>
  6066. </div>*/}
  6067. <p
  6068. className="tip"
  6069. style={{
  6070. paddingBottom: '12px',
  6071. width: '240px',
  6072. marginLeft: '145px',
  6073. color: 'red',
  6074. }}
  6075. >
  6076. 首次派单项目,需上传协议,第2次起,同项目,只需写外包公司
  6077. </p>
  6078. <div className="clearfix">
  6079. <FormItem
  6080. labelCol={{ span: 4 }}
  6081. wrapperCol={{ span: 18 }}
  6082. label={
  6083. <span>
  6084. 合同/协议扫描件
  6085. </span>
  6086. }
  6087. >
  6088. <PicturesWall
  6089. domId={'myTask4'}
  6090. fileList={this.getOrgCodeUrlWai}
  6091. pictureUrl={this.state.pictureUrl}
  6092. />
  6093. <p style={{ color: 'red' }}>图片建议:要清晰。</p>
  6094. </FormItem>
  6095. </div>
  6096. {/*只有审核拒绝和第一次发起外包的时候才要填写发起原因 如果是类型为供应商则不需要发起原因*/}
  6097. {/*this.state.startType 0外包 1供应商*/}
  6098. {(typeof this.state.refundStatus === 'undefined' || this.state.refundStatus === 2) && this.state.startType !== 1 ? <div className="clearfix">
  6099. <FormItem
  6100. className="half-item"
  6101. {...formItemLayout}
  6102. label={
  6103. <span>
  6104. <strong style={{ color: '#f00' }}>*</strong>发起原因
  6105. </span>
  6106. }
  6107. >
  6108. <TextArea
  6109. rows={4}
  6110. value={this.state.reason}
  6111. onChange={(e) => {
  6112. this.setState({
  6113. reason: e.target.value,
  6114. })
  6115. }}
  6116. placeholder="请输入发起原因"
  6117. />
  6118. </FormItem>
  6119. </div> : <div/>}
  6120. <div className="clearfix">
  6121. <div
  6122. style={{
  6123. display: 'inline-black',
  6124. textAlign: 'center',
  6125. }}
  6126. >
  6127. <Button
  6128. type="primary"
  6129. loading={this.state.loading}
  6130. onClick={()=>{
  6131. this.sureOut(this.state.startType);
  6132. }}
  6133. >
  6134. {
  6135. this.state.startType === 0 ? "确认发起外包,不通过总部" : "提交供应商信息"
  6136. }
  6137. </Button>
  6138. <p className="tip" style={{ color: 'red' }}>
  6139. {
  6140. this.state.startType === 0 ? "提示:高于总部价格,费用个人承担" : "确定提交供应商信息,提交后,不可修改"
  6141. }
  6142. </p>
  6143. </div>
  6144. </div>
  6145. </div>
  6146. ) : (
  6147. <div>
  6148. {
  6149. this.state.speVisible && this.state.activeKey === '2' ?
  6150. <CheckProject
  6151. {...this.props}
  6152. tid={this.state.tid}
  6153. orderTaskOfficialCost={this.state.orderTaskOfficialCost} //是否含官费 0无1有
  6154. containOfficialFees={this.state.containOfficialFees} //0:实际已缴费 1:实际未缴费
  6155. oldInfor={this.state.oldInfor}
  6156. projectType={this.state.projectType} //0正常 1专利 2软著 3审计
  6157. patentNameType={this.state.patentNameType}
  6158. patentName={this.state.patentName}
  6159. patentType={this.state.patentType}
  6160. status={this.state.refundStatus}
  6161. isPreviewPay={true}
  6162. mid={this.state.mid}
  6163. thirdInfoList={this.state.thirdInfoList}
  6164. dataSource={this.state.payNodeList}
  6165. outsourceRemarks={this.state.outsourceRemarks}
  6166. fileList={this.state.pictureUrl}
  6167. startType={this.state.startType}
  6168. projectStatus={this.state.projectStatus}
  6169. onRefresh={()=>{
  6170. this.waiDetail();
  6171. this.thirdTable(this.state.tid);
  6172. this.getSelectOutsourceLog(this.state.tid);
  6173. this.payNodeTable(this.state.tid)
  6174. this.loadData(this.state.page)
  6175. }}
  6176. /> : <div/>
  6177. }
  6178. </div>
  6179. )}
  6180. {(this.state.refundStatus == 1 ||
  6181. this.state.refundStatus == 0 ||
  6182. this.state.refundStatus == 2) &&
  6183. this.state.startType !== 1
  6184. ? (
  6185. <div className="clearfix"
  6186. style={{
  6187. display: this.state.refundStatus == 0 ? 'none' : 'block',
  6188. }}
  6189. >
  6190. <hr className="division" />
  6191. {parseInt(this.state.startType) !== 1 ? <div style={{
  6192. color:'#F00',
  6193. fontWeight: 'bolder',
  6194. paddingBottom: '20px',
  6195. }}>
  6196. 审核结果: <span style={{paddingLeft:'20px'}}>{getRefundStatus(this.state.refundStatus)}</span>
  6197. </div> : <div/>}
  6198. <div className="outsourceLogList">
  6199. {
  6200. this.state.outsourceLogs && this.state.outsourceLogs.map((value,index)=>(
  6201. <div key={index} className="outsourceLogItem outsource">
  6202. <div style={{
  6203. display:'flex',
  6204. flexFlow:'row nowrap',
  6205. paddingBottom: '3px',
  6206. paddingTop: '3px',
  6207. }}>
  6208. <div>
  6209. {value.aname}
  6210. </div>
  6211. <div style={{paddingLeft:'5px'}}>
  6212. {
  6213. value.status === 0 ?
  6214. <Tag color="#2db7f5">发起外包审核</Tag> :
  6215. value.status === 1 ? <Tag color="#87d068">通过</Tag> :
  6216. <Tag color="#f50">驳回</Tag>
  6217. }
  6218. </div>
  6219. <div style={{
  6220. wordBreak: 'break-all',
  6221. maxWidth:'67%',
  6222. }}>
  6223. {value.remarks}
  6224. </div>
  6225. <div style={{paddingLeft: '10px'}}>
  6226. {value.createTimes}
  6227. </div>
  6228. </div>
  6229. </div>
  6230. ))
  6231. }
  6232. </div>
  6233. {/* <div*/}
  6234. {/* className="clearfix"*/}
  6235. {/* style={{*/}
  6236. {/* display: this.state.refundStatus == 0 ? 'none' : 'block',*/}
  6237. {/* }}*/}
  6238. {/* >*/}
  6239. {/* <FormItem*/}
  6240. {/* className="half-item"*/}
  6241. {/* {...formItemLayout}*/}
  6242. {/* label="审核意见"*/}
  6243. {/* >*/}
  6244. {/* <span>{this.state.remarks}</span>*/}
  6245. {/* </FormItem>*/}
  6246. {/* </div>*/}
  6247. {/* {parseInt(this.state.startType) !== 1 ?<div className="clearfix">*/}
  6248. {/* <FormItem*/}
  6249. {/* className="half-item"*/}
  6250. {/* {...formItemLayout}*/}
  6251. {/* label="审核结果"*/}
  6252. {/* >*/}
  6253. {/* <span>{getRefundStatus(this.state.refundStatus)}</span>*/}
  6254. {/* </FormItem>*/}
  6255. {/* </div> : <div/>}*/}
  6256. {/* <div*/}
  6257. {/* className="clearfix"*/}
  6258. {/* style={{*/}
  6259. {/* display: this.state.refundStatus == 0 ? 'none' : 'block',*/}
  6260. {/* }}*/}
  6261. {/* >*/}
  6262. {/* <FormItem*/}
  6263. {/* className="half-item"*/}
  6264. {/* {...formItemLayout}*/}
  6265. {/* label="审核时间"*/}
  6266. {/* >*/}
  6267. {/* <span>{this.state.auditTimes}</span>*/}
  6268. {/* </FormItem>*/}
  6269. {/* </div>*/}
  6270. </div>
  6271. ) : (
  6272. ''
  6273. )}
  6274. </Spin>
  6275. </TabPane>
  6276. {!this.props.isZxs || (this.state.isHuiyuan && this.props.isZxs) ? (
  6277. <TabPane tab="订单详情" key="3">
  6278. <Spin spinning={this.state.loading}>
  6279. <OrderDetail
  6280. orderData={this.state.orderData}
  6281. getOrderLog={this.getOrderLog}
  6282. dataSourceX={this.state.dataSourceX}
  6283. contactList={this.state.jiedian}
  6284. orderNo={this.state.orderNo}
  6285. totalCui={this.state.totalCui}
  6286. contactListNew={this.state.jiedianNew}
  6287. pictureUrl={this.state.contractPictureUrl}
  6288. />
  6289. </Spin>
  6290. </TabPane>
  6291. ) : (
  6292. ''
  6293. )}
  6294. </Tabs>
  6295. </div>
  6296. </Modal> : <div/>}
  6297. <Modal
  6298. width="800px"
  6299. visible={this.state.visibleA}
  6300. onCancel={this.visitCancelA}
  6301. title="操作日志"
  6302. footer=""
  6303. className="admin-desc-content"
  6304. >
  6305. <div className="patent-table patent-table-center">
  6306. <Spin spinning={this.state.loading}>
  6307. <Table
  6308. columns={this.state.columnsA}
  6309. dataSource={this.state.dataSourceA}
  6310. pagination={false}
  6311. bordered
  6312. size="small"
  6313. />
  6314. </Spin>
  6315. </div>
  6316. </Modal>
  6317. <Modal
  6318. title="工时记录"
  6319. visible={this.state.timeVisible}
  6320. onCancel={this.timeClose}
  6321. width={800}
  6322. footer={null}
  6323. >
  6324. <Spin spinning={this.state.loading}>
  6325. <Table
  6326. columns={this.state.columnsTime}
  6327. dataSource={this.state.dataSourceTime}
  6328. pagination={false}
  6329. scroll={{ x: 'max-content', y: 0 }}
  6330. bordered
  6331. size={'small'}
  6332. />
  6333. <p style={{ marginTop: 10, color: 'red' }}>
  6334. 累计工时(小时):{this.state.recordHour}
  6335. </p>
  6336. </Spin>
  6337. </Modal>
  6338. {this.state.ThirdListVisible ? <NewSupplier
  6339. patentNameType={this.state.patentNameType}
  6340. ThirdId={this.state.ThirdId}
  6341. tid={this.state.tid}
  6342. patentType={this.state.patentType}
  6343. projectType={this.state.startType === 0 ? 0 : this.state.projectType}
  6344. realProjectType={this.state.projectType} //真实的项目类型
  6345. startType={this.state.startType} //项目类型 0外包 1供应商
  6346. thirdCompanyName={this.state.thirdCompanyName}
  6347. thirdUnitPrice={this.state.thirdUnitPrice}
  6348. thirdQuantity={this.state.thirdQuantity}
  6349. thirdRemarks={this.state.thirdRemarks}
  6350. spinning={this.state.loading}
  6351. visible={this.state.ThirdListVisible}
  6352. thirdMaterial={this.state.thirdMaterial}
  6353. thirdUrgent={this.state.thirdUrgent}
  6354. audit={this.state.audit}
  6355. assets={this.state.assets}
  6356. income={this.state.income}
  6357. onDetermine={this.handleCancelq}
  6358. onCancel={()=>{
  6359. this.thirdTable(this.state.tid);
  6360. this.setState({
  6361. ThirdListVisible: false,
  6362. ThirdId: '', //供应商id
  6363. thirdCompanyName: '', //第三方名称
  6364. thirdUnitPrice: '', //单价
  6365. thirdQuantity: '', //数量
  6366. currentTotalPrice: '', //总价
  6367. thirdMaterial: 0, //有无材料
  6368. thirdUrgent: 0, //加急情况
  6369. thirdRemarks: '',
  6370. audit: 1,
  6371. assets: '',
  6372. income: '',
  6373. })
  6374. }}
  6375. otherOperations={(data)=>{
  6376. this.setState({
  6377. thirdMaterial: data.thirdMaterial,
  6378. thirdUrgent: data.thirdUrgent,
  6379. customerArr: data.customerArr,
  6380. thirdCompanyName: data.thirdCompanyName
  6381. })
  6382. }}/> : <div/>}
  6383. {this.state.PayNodeVisible ? <OperationPayNode
  6384. tid={this.state.tid}
  6385. cSort={this.state.cSort}
  6386. visible={this.state.PayNodeVisible}
  6387. thirdId={this.state.ThirdId}
  6388. thirdInfoList={this.state.thirdInfoList}
  6389. supplierList={this.state.PayNodeCompany}
  6390. payNodeInfor={this.state.payNodeInfor}
  6391. thirdUnitPrice={this.state.thirdUnitPrice}
  6392. onCancel={()=>{
  6393. this.setState({
  6394. PayNodeVisible: false,
  6395. payNodeInfor: {},
  6396. ThirdId: '',
  6397. thirdUnitPrice: '',
  6398. })
  6399. this.payNodeTable(this.state.tid)
  6400. }}
  6401. /> : <div/>}
  6402. {this.state.projectSituationVisible ? <Modal
  6403. className="customeDetails"
  6404. footer=""
  6405. title=""
  6406. width="500px"
  6407. visible={this.state.projectSituationVisible}
  6408. onOk={()=>{
  6409. this.setState({
  6410. projectSituationVisible: false
  6411. })
  6412. }}
  6413. onCancel={()=>{
  6414. this.setState({
  6415. projectSituationVisible: false
  6416. })
  6417. }}
  6418. >
  6419. <div>
  6420. <div style={{
  6421. paddingBottom: '15px',
  6422. fontSize:'18px',
  6423. fontWeight:"bolder",
  6424. }}>
  6425. 当前项目情况:
  6426. </div>
  6427. <div>
  6428. {/*0未开始 1已开始 2已暂停 3已完成 4已驳回 5已退单*/}
  6429. <Radio.Group
  6430. style={{
  6431. dispaly:'flex',
  6432. flexRow:'column'
  6433. }}
  6434. value={this.state.modifyProjectStatus}
  6435. onChange={(e) => {
  6436. this.setState({ modifyProjectStatus: e.target.value });
  6437. }}
  6438. >
  6439. <Radio value={1}>进行中</Radio>
  6440. <Radio value={2}>已暂停</Radio>
  6441. <Radio value={3}>已完成</Radio>
  6442. <Radio value={4}>已驳回</Radio>
  6443. <Radio value={5}>已退单</Radio>
  6444. </Radio.Group>
  6445. <div style={{
  6446. display:'flex',
  6447. justifyContent:'center',
  6448. paddingTop:'20px',
  6449. paddingBottom: '20px',
  6450. }}>
  6451. <Button
  6452. className="cancel"
  6453. type="ghost"
  6454. onClick={()=>{
  6455. this.tijiaoOk(this.state.modifyProjectStatus,()=>{
  6456. this.xiangqing(this.state.id)
  6457. this.setState({
  6458. projectSituationVisible: false
  6459. })
  6460. })
  6461. }}
  6462. >
  6463. 保存
  6464. </Button>
  6465. </div>
  6466. <div style={{textAlign:'center'}}>注:请根据实际项目情况填写</div>
  6467. </div>
  6468. </div>
  6469. </Modal> : null}
  6470. </div>
  6471. )
  6472. },
  6473. })
  6474. export default Task