addService.jsx 244 KB

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