addService.jsx 244 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785
  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. domId={'addService1'}
  4763. fileList={this.getOrgCodeUrl}
  4764. pictureUrl={this.state.orgCodeUrl}
  4765. url="/api/admin/order/uploadOrderImg"
  4766. sign=""
  4767. />
  4768. <p>图片建议:要清晰。</p>
  4769. <Button
  4770. style={{
  4771. float: "right",
  4772. marginRight: "140px",
  4773. marginTop: "20px",
  4774. }}
  4775. onClick={this.getOrderLog}
  4776. >
  4777. 查看订单日志
  4778. </Button>
  4779. </FormItem>
  4780. <FormItem
  4781. labelCol={{ span: 4 }}
  4782. wrapperCol={{ span: 18 }}
  4783. label={<span>补充协议</span>}
  4784. >
  4785. <PicturesWall
  4786. domId={'addService2'}
  4787. fileList={this.getReplenishUrl}
  4788. pictureUrl={this.state.replenishUrl}
  4789. url="/api/admin/order/uploadOrderImg"
  4790. sign=""
  4791. />
  4792. <p>图片建议:要清晰。</p>
  4793. </FormItem>
  4794. </div>
  4795. ) : (
  4796. <div>
  4797. <FormItem
  4798. labelCol={{ span: 4 }}
  4799. wrapperCol={{ span: 18 }}
  4800. label="合同扫描件"
  4801. >
  4802. {/*<Upload*/}
  4803. {/* className="demandDetailShow-upload"*/}
  4804. {/* listType="picture-card"*/}
  4805. {/* fileList={this.state.orgCodeUrl}*/}
  4806. {/* onPreview={(file) => {*/}
  4807. {/* this.setState({*/}
  4808. {/* previewImage: file.url || file.thumbUrl,*/}
  4809. {/* previewVisible: true,*/}
  4810. {/* });*/}
  4811. {/* }}*/}
  4812. {/*/>*/}
  4813. <div style={{paddingTop:'10px',paddingBottom:'10px'}}>
  4814. {this.state.orgCodeUrl && this.state.visible && this.state.activeKey === '1'? <ImgList fileList={this.state.orgCodeUrl} ItemWidth={'96px'}/> : <div/>}
  4815. </div>
  4816. <Modal
  4817. maskClosable={false}
  4818. footer={null}
  4819. width={"50%"}
  4820. visible={this.state.previewVisible}
  4821. onCancel={() => {
  4822. this.setState({
  4823. previewVisible: false,
  4824. rotateDeg: 0,
  4825. });
  4826. }}
  4827. >
  4828. <img
  4829. alt=""
  4830. style={{
  4831. width: "100%",
  4832. transform: `rotate(${this.state.rotateDeg}deg)`,
  4833. }}
  4834. src={this.state.previewImage || ""}
  4835. />
  4836. <Button
  4837. onClick={this.rotate}
  4838. style={{
  4839. position: "relative",
  4840. left: "50%",
  4841. transform: "translateX(-50%)",
  4842. }}
  4843. >
  4844. 旋转
  4845. </Button>
  4846. <Button
  4847. onClick={this.upImg}
  4848. style={{
  4849. position: "absolute",
  4850. left: -81,
  4851. top: "50%",
  4852. transform: "translateY(-50%)",
  4853. }}
  4854. >
  4855. 上一张
  4856. </Button>
  4857. <Button
  4858. onClick={this.downImg}
  4859. style={{
  4860. position: "absolute",
  4861. right: -81,
  4862. top: "50%",
  4863. transform: "translateY(-50%)",
  4864. }}
  4865. >
  4866. 下一张
  4867. </Button>
  4868. </Modal>
  4869. <Button
  4870. style={{
  4871. float: "right",
  4872. marginRight: "140px",
  4873. marginTop: "20px",
  4874. }}
  4875. onClick={this.getOrderLog}
  4876. >
  4877. 查看订单日志
  4878. </Button>
  4879. </FormItem>
  4880. <FormItem
  4881. labelCol={{ span: 4 }}
  4882. wrapperCol={{ span: 18 }}
  4883. label="补充协议"
  4884. >
  4885. {/*<Upload*/}
  4886. {/* className="demandDetailShow-upload"*/}
  4887. {/* listType="picture-card"*/}
  4888. {/* fileList={this.state.replenishUrl}*/}
  4889. {/* onPreview={(file) => {*/}
  4890. {/* this.setState({*/}
  4891. {/* previewImage: file.url || file.thumbUrl,*/}
  4892. {/* previewVisibles: true,*/}
  4893. {/* });*/}
  4894. {/* }}*/}
  4895. {/*/>*/}
  4896. <div style={{paddingTop:'10px',paddingBottom:'10px'}}>
  4897. {
  4898. this.state.visible && this.state.activeKey === '1' && this.state.replenishUrl?
  4899. <ImgList fileList={this.state.replenishUrl} ItemWidth={'96px'}/> :
  4900. <div/>
  4901. }
  4902. </div>
  4903. <Modal
  4904. maskClosable={false}
  4905. footer={null}
  4906. width={"50%"}
  4907. visible={this.state.previewVisibles}
  4908. onCancel={() => {
  4909. this.setState({
  4910. previewVisibles: false,
  4911. rotateDeg: 0,
  4912. });
  4913. }}
  4914. >
  4915. <img
  4916. alt=""
  4917. style={{
  4918. width: "100%",
  4919. transform: `rotate(${this.state.rotateDeg}deg)`,
  4920. }}
  4921. src={this.state.previewImage || ""}
  4922. />
  4923. <Button
  4924. onClick={this.rotates}
  4925. style={{
  4926. position: "relative",
  4927. left: "50%",
  4928. transform: "translateX(-50%)",
  4929. }}
  4930. >
  4931. 旋转
  4932. </Button>
  4933. <Button
  4934. onClick={this.upImgs}
  4935. style={{
  4936. position: "absolute",
  4937. left: -81,
  4938. top: "50%",
  4939. transform: "translateY(-50%)",
  4940. }}
  4941. >
  4942. 上一张
  4943. </Button>
  4944. <Button
  4945. onClick={this.downImgs}
  4946. style={{
  4947. position: "absolute",
  4948. right: -81,
  4949. top: "50%",
  4950. transform: "translateY(-50%)",
  4951. }}
  4952. >
  4953. 下一张
  4954. </Button>
  4955. </Modal>
  4956. </FormItem>
  4957. </div>
  4958. )}
  4959. </div>
  4960. <div className="clearfix">
  4961. {this.state.processStatus == 0 ? (
  4962. <div className="clearfix">
  4963. <FormItem
  4964. labelCol={{ span: 4 }}
  4965. wrapperCol={{ span: 16 }}
  4966. label="订单留言"
  4967. >
  4968. <Input
  4969. type="textarea"
  4970. placeholder="请输入订单留言"
  4971. rows={4}
  4972. value={this.state.orderRemarks}
  4973. onChange={(e) => {
  4974. this.setState({
  4975. orderRemarks: e.target.value,
  4976. });
  4977. }}
  4978. style={{ width: "95%" }}
  4979. />
  4980. <span className="mandatory">*</span>
  4981. </FormItem>
  4982. </div>
  4983. ) : (
  4984. <FormItem
  4985. labelCol={{ span: 4 }}
  4986. wrapperCol={{ span: 16 }}
  4987. label="订单留言"
  4988. >
  4989. <p
  4990. style={{ width: 500, wordWrap: "break-word" }}
  4991. >
  4992. {this.state.orderRemarks}
  4993. </p>
  4994. </FormItem>
  4995. )}
  4996. </div>
  4997. <div className="clearfix">
  4998. <FormItem
  4999. className="half-item"
  5000. {...formItemLayout}
  5001. label="订单负责人"
  5002. >
  5003. <span>{this.state.salesmanName}</span>
  5004. </FormItem>
  5005. <FormItem
  5006. className="half-item"
  5007. {...formItemLayout}
  5008. label="订单负责人电话"
  5009. >
  5010. <span>{this.state.salesmanMobile}</span>
  5011. </FormItem>
  5012. </div>
  5013. <div className="clearfix">
  5014. <FormItem
  5015. className="half-item"
  5016. {...formItemLayout}
  5017. label="当前财务负责人"
  5018. >
  5019. <span>{this.state.nowFinance}</span>
  5020. </FormItem>
  5021. <FormItem
  5022. className="half-item"
  5023. {...formItemLayout}
  5024. label="当前财务负责人电话"
  5025. >
  5026. <span>{this.state.nowFinanceMobile}</span>
  5027. </FormItem>
  5028. </div>
  5029. <div className="clearfix">
  5030. <FormItem
  5031. className="half-item"
  5032. {...formItemLayout}
  5033. style={{ opacity: ".5" }}
  5034. label="原订单负责人"
  5035. >
  5036. <span>{this.state.oldSalesmanName}</span>
  5037. </FormItem>
  5038. <FormItem
  5039. className="half-item"
  5040. {...formItemLayout}
  5041. style={{ opacity: ".5" }}
  5042. label="原订单负责人电话"
  5043. >
  5044. <span>{this.state.oldSalesmanMobile}</span>
  5045. </FormItem>
  5046. </div>
  5047. <div className="clearfix">
  5048. <FormItem
  5049. className="half-item"
  5050. style={{ opacity: ".5" }}
  5051. {...formItemLayout}
  5052. label="实际财务操作人"
  5053. >
  5054. <span>{this.state.financeName}</span>
  5055. </FormItem>
  5056. <FormItem
  5057. className="half-item"
  5058. {...formItemLayout}
  5059. style={{ opacity: ".5" }}
  5060. label="实际财务操作人电话"
  5061. >
  5062. <span>{this.state.financeMobile}</span>
  5063. </FormItem>
  5064. </div>
  5065. <div>
  5066. <span
  5067. style={{ marginLeft: "50px", fontSize: "20px" }}
  5068. >
  5069. 项目业务
  5070. </span>
  5071. {this.state.processStatus == 0 ? (
  5072. <Button
  5073. type="primary"
  5074. onClick={this.addDetailed}
  5075. style={{
  5076. float: "right",
  5077. marginRight: "50px",
  5078. marginBottom: "15px",
  5079. }}
  5080. >
  5081. 添加项目明细
  5082. </Button>
  5083. ) : (
  5084. ""
  5085. )}
  5086. </div>
  5087. <div
  5088. className="patent-table"
  5089. style={{ marginBottom: 10 }}
  5090. >
  5091. <Spin spinning={this.state.loading}>
  5092. <Table
  5093. columns={this.state.columns}
  5094. scroll={{ x: "max-content", y: 0 }}
  5095. dataSource={this.state.dataSource}
  5096. pagination={this.state.pagination}
  5097. onRowClick={this.tableRowClick}
  5098. bordered
  5099. size="small"
  5100. />
  5101. </Spin>
  5102. </div>
  5103. <div
  5104. style={{
  5105. display: cuiDataList.length ? "block" : "none",
  5106. }}
  5107. >
  5108. <span
  5109. style={{ marginLeft: "50px", fontSize: "20px" }}
  5110. >
  5111. 旧催款节点
  5112. </span>
  5113. <Button
  5114. type="primary"
  5115. // onClick={this.addcontact}
  5116. disabled
  5117. onClick={(e) => {
  5118. cuiDataList.length
  5119. ? this.addcontact()
  5120. : this.addcontactNew();
  5121. }}
  5122. style={{
  5123. float: "right",
  5124. marginRight: "50px",
  5125. marginBottom: "15px",
  5126. display:
  5127. this.state.processStatus == 0
  5128. ? "block"
  5129. : "none",
  5130. }}
  5131. >
  5132. 添加催款节点
  5133. </Button>
  5134. </div>
  5135. <div
  5136. className="clearfix"
  5137. style={{
  5138. display: cuiDataList.length ? "block" : "none",
  5139. }}
  5140. >
  5141. <Spin spinning={this.state.loading}>
  5142. <Form layout="horizontal">
  5143. <Table
  5144. pagination={false}
  5145. columns={this.state.ContactsLists}
  5146. dataSource={this.state.contactList}
  5147. scroll={{ x: "max-content", y: 0 }}
  5148. bordered
  5149. size="small"
  5150. />
  5151. <Col
  5152. span={24}
  5153. offset={9}
  5154. style={{ marginTop: "15px" }}
  5155. ></Col>
  5156. </Form>
  5157. </Spin>
  5158. </div>
  5159. <div
  5160. style={{
  5161. display: cuiDataList.length ? "none" : "block",
  5162. }}
  5163. >
  5164. <span
  5165. style={{
  5166. marginLeft: "50px",
  5167. fontSize: "20px",
  5168. }}
  5169. >
  5170. 新催款节点
  5171. </span>
  5172. <span
  5173. style={{
  5174. display: "inline-block",
  5175. marginLeft: 10,
  5176. color: "red",
  5177. }}
  5178. >
  5179. 金额总计(万元): {this.state.totalCui}
  5180. </span>
  5181. <Button
  5182. type="primary"
  5183. disabled={this.state.addFlag ? true : false}
  5184. // onClick={this.addcontact}
  5185. onClick={(e) => {
  5186. this.setState({ addFlag: true });
  5187. this.addcontactNew();
  5188. }}
  5189. style={{
  5190. float: "right",
  5191. marginRight: "50px",
  5192. marginBottom: "15px",
  5193. display:
  5194. this.state.processStatus == 0
  5195. ? "block"
  5196. : "none",
  5197. }}
  5198. >
  5199. 添加催款节点
  5200. </Button>
  5201. </div>
  5202. <div
  5203. className="clearfix"
  5204. style={{
  5205. display: cuiDataList.length ? "none" : "block",
  5206. }}
  5207. >
  5208. <Spin spinning={this.state.loading}>
  5209. <Form layout="horizontal">
  5210. <Table
  5211. pagination={false}
  5212. columns={this.state.ContactsListsNew}
  5213. dataSource={this.state.contactListNew}
  5214. scroll={{ x: "max-content", y: 0 }}
  5215. bordered
  5216. size="small"
  5217. />
  5218. <Col
  5219. span={24}
  5220. offset={9}
  5221. style={{ marginTop: "15px" }}
  5222. ></Col>
  5223. </Form>
  5224. </Spin>
  5225. </div>
  5226. {this.state.processStatus == 0 ? (
  5227. <div
  5228. className="addSave"
  5229. style={{ marginTop: "15px" }}
  5230. >
  5231. <Button
  5232. className="cancel"
  5233. type="primary"
  5234. onClick={this.handleCancels}
  5235. style={{ marginLeft: "200px" }}
  5236. htmlType="submit"
  5237. >
  5238. 签单
  5239. </Button>
  5240. <Button
  5241. className="cancel"
  5242. type="primary"
  5243. onClick={this.handleCancelq}
  5244. style={{ marginLeft: "50px" }}
  5245. htmlType="submit"
  5246. >
  5247. 保存
  5248. </Button>
  5249. <Button
  5250. className="cancel"
  5251. type="ghost"
  5252. onClick={this.handleCancelclose}
  5253. style={{ marginLeft: "50px" }}
  5254. >
  5255. 取消
  5256. </Button>
  5257. </div>
  5258. ) : (
  5259. ""
  5260. )}
  5261. </div>
  5262. </TabPane>
  5263. <TabPane tab="合同变更发起" key="2">
  5264. {
  5265. <div>
  5266. <div className="clearfix">
  5267. <FormItem
  5268. className="half-item"
  5269. {...formItemLayout}
  5270. label="客户名称"
  5271. >
  5272. <span>{this.state.userName}</span>
  5273. </FormItem>
  5274. </div>
  5275. <div className="clearfix">
  5276. <FormItem
  5277. className="half-item"
  5278. {...formItemLayout}
  5279. label="合同编号"
  5280. >
  5281. <span>{this.state.contractNo}</span>
  5282. </FormItem>
  5283. </div>
  5284. <div className="clearfix">
  5285. <FormItem
  5286. className="half-item"
  5287. {...formItemLayout}
  5288. label="申请变更部门"
  5289. >
  5290. {/* {!this.state.mark ? ( */}
  5291. <span>{this.state.depName}</span>
  5292. {/* ) : (
  5293. <span>{contractData.depName}</span>
  5294. )} */}
  5295. </FormItem>
  5296. <FormItem
  5297. className="half-item"
  5298. {...formItemLayout}
  5299. label="申请人"
  5300. >
  5301. <span>{this.state.salesmanName}</span>
  5302. </FormItem>
  5303. </div>
  5304. <div className="clearfix">
  5305. <FormItem
  5306. labelCol={{ span: 4 }}
  5307. wrapperCol={{ span: 18 }}
  5308. label="变更类型"
  5309. >
  5310. {/* {!this.state.mark ? ( */}
  5311. <Select
  5312. placeholder="选择合同变更类型"
  5313. style={{ width: 200 }}
  5314. disabled={this.state.changeFlag}
  5315. value={this.state.typeChange}
  5316. onChange={(e) => {
  5317. this.setState({
  5318. typeChange: e,
  5319. changeFlag: true,
  5320. });
  5321. if (e == 1) {
  5322. this.setState({
  5323. hetongFlag: false,
  5324. listFlag: false,
  5325. listCuiFlag: false,
  5326. tuiKuanFlag: false,
  5327. displayList: false,
  5328. });
  5329. } else if (e == 2) {
  5330. this.setState({
  5331. hetongFlag: true,
  5332. listFlag: false,
  5333. listCuiFlag: false,
  5334. tuiKuanFlag: true,
  5335. displayList: false,
  5336. });
  5337. } else if (e == 3) {
  5338. this.setState({
  5339. listFlag: false,
  5340. hetongFlag: false,
  5341. listCuiFlag: false,
  5342. tuiKuanFlag: false,
  5343. displayList: true,
  5344. });
  5345. } else if (e == 4) {
  5346. this.setState({
  5347. listFlag: false,
  5348. listCuiFlag: false,
  5349. hetongFlag: false,
  5350. tuiKuanFlag: true,
  5351. displayList: false,
  5352. });
  5353. } else if (e == 5) {
  5354. this.setState({
  5355. listFlag: false,
  5356. listCuiFlag: false,
  5357. hetongFlag: true,
  5358. tuiKuanFlag: true,
  5359. displayList: false,
  5360. });
  5361. } else {
  5362. this.setState({
  5363. listFlag: true,
  5364. hetongFlag: true,
  5365. listCuiFlag: true,
  5366. tuiKuanFlag: false,
  5367. displayList: false,
  5368. });
  5369. }
  5370. }}
  5371. value={this.state.typeChange}
  5372. >
  5373. <Option value={0}>退单退款</Option>
  5374. <Option value={1}>项目及金额变更</Option>
  5375. <Option value={2}>仅项目变更</Option>
  5376. <Option value={3}>仅金额变更</Option>
  5377. <Option value={4}>重报</Option>
  5378. <Option value={5}>赠送</Option>
  5379. </Select>
  5380. <Button
  5381. style={{ marginLeft: 10 }}
  5382. onClick={(e) => {
  5383. this.setState({
  5384. listFlag: false,
  5385. hetongFlag: false,
  5386. listCuiFlag: false,
  5387. tuiKuanFlag: false,
  5388. displayList: false,
  5389. startRemarks: "",
  5390. remarksC: "",
  5391. voucherUrl: [],
  5392. changeAmount: "0",
  5393. applicant: undefined,
  5394. depNameChange: undefined,
  5395. typeChange: undefined,
  5396. changeFlag: false,
  5397. });
  5398. }}
  5399. >
  5400. 重置
  5401. </Button>
  5402. {/* <Button type="danger" >取消本次变更</Button> */}
  5403. </FormItem>
  5404. </div>
  5405. <div className="clearfix">
  5406. <FormItem
  5407. labelCol={{ span: 4 }}
  5408. wrapperCol={{ span: 18 }}
  5409. label="合同额(万元)"
  5410. >
  5411. {/* {!this.state.mark ? ( */}
  5412. <Input
  5413. placeholder="请输入合同额"
  5414. disabled={this.state.hetongFlag}
  5415. ref="signTotalAmount"
  5416. value={this.state.totalAmount}
  5417. onChange={(e) => {
  5418. this.setState({
  5419. totalAmount: e.target.value,
  5420. });
  5421. }}
  5422. style={{ width: "240px" }}
  5423. />
  5424. {/* ) : (
  5425. <span>{contractData.totalAmount}</span>
  5426. )} */}
  5427. </FormItem>
  5428. <FormItem
  5429. labelCol={{ span: 4 }}
  5430. wrapperCol={{ span: 18 }}
  5431. label="已收款(万元)"
  5432. >
  5433. <span>
  5434. {this.state.settlementAmount}
  5435. &nbsp;&nbsp;&nbsp;&nbsp;
  5436. <span style={{ color: "red" }}>
  5437. (注:已收款与现实收款不符,请与财务专员联系)
  5438. </span>
  5439. </span>
  5440. </FormItem>
  5441. <FormItem
  5442. labelCol={{ span: 4 }}
  5443. wrapperCol={{ span: 18 }}
  5444. label="申请退款(万元)"
  5445. >
  5446. {/* {!this.state.mark ? ( */}
  5447. <Input
  5448. placeholder="请输入申请退款"
  5449. ref="signTotalAmount"
  5450. disabled={this.state.tuiKuanFlag}
  5451. value={this.state.changeAmount}
  5452. onChange={(e) => {
  5453. this.setState({
  5454. changeAmount: e.target.value,
  5455. });
  5456. }}
  5457. style={{ width: "240px" }}
  5458. />
  5459. {/* ) : (
  5460. <span>{contractData.changeAmount}</span>
  5461. )} */}
  5462. </FormItem>
  5463. </div>
  5464. {/* 动态展示项目以及催款节点 */}
  5465. <div
  5466. style={{
  5467. display: this.state.isCaoGao ? "block" : "none",
  5468. }}
  5469. >
  5470. <div>
  5471. <span
  5472. style={{
  5473. marginLeft: "50px",
  5474. fontSize: "20px",
  5475. }}
  5476. >
  5477. 项目业务
  5478. </span>
  5479. <span style={{ color: "red" }}>
  5480. (注:项目删除后,此项目的全部节点、全部工时,全部被删除,请谨慎删除!双击可修改对应金额数量!)
  5481. </span>
  5482. <Button
  5483. type="primary"
  5484. onClick={this.changeAddPro}
  5485. disabled={this.state.listFlag}
  5486. style={{
  5487. float: "right",
  5488. marginRight: "50px",
  5489. marginBottom: "15px",
  5490. display: this.state.displayList
  5491. ? "none"
  5492. : "block",
  5493. }}
  5494. >
  5495. 添加项目明细
  5496. </Button>
  5497. </div>
  5498. <div
  5499. className="patent-table"
  5500. style={{ marginBottom: 10 }}
  5501. >
  5502. <Spin spinning={this.state.loading}>
  5503. <Table
  5504. columns={this.state.proColumns}
  5505. dataSource={this.state.proDataSource}
  5506. scroll={{ x: "max-content", y: 0 }}
  5507. expandedRowRender={expandedRowRender}
  5508. pagination={this.state.pagination}
  5509. onRowDoubleClick={
  5510. this.state.listFlag
  5511. ? this.not
  5512. : this.editPro
  5513. }
  5514. bordered
  5515. size="small"
  5516. />
  5517. </Spin>
  5518. </div>
  5519. <div>
  5520. <span
  5521. style={{
  5522. marginLeft: "50px",
  5523. fontSize: "20px",
  5524. }}
  5525. >
  5526. 催款节点
  5527. </span>
  5528. <span style={{ color: "red" }}>
  5529. (注:节点删除后,无论节点是否触发,均会删除,请谨慎删除!双击可修改对应金额!)
  5530. </span>
  5531. {/* <span
  5532. style={{
  5533. display: "inline-block",
  5534. marginLeft: 10,
  5535. color: "red"
  5536. }}
  5537. >
  5538. 金额总计(万元): {this.state.totalCui}
  5539. </span> */}
  5540. <Button
  5541. type="primary"
  5542. onClick={(e) => {
  5543. this.changeAddCui();
  5544. }}
  5545. disabled={this.state.listCuiFlag}
  5546. style={{
  5547. float: "right",
  5548. marginRight: "50px",
  5549. marginBottom: "15px",
  5550. display: this.state.displayList
  5551. ? "none"
  5552. : "block",
  5553. }}
  5554. >
  5555. 添加催款节点
  5556. </Button>
  5557. </div>
  5558. <div className="clearfix">
  5559. <Spin spinning={this.state.loading}>
  5560. <Form layout="horizontal">
  5561. <Table
  5562. pagination={false}
  5563. columns={this.state.changeCuiList}
  5564. dataSource={this.state.cuiDataSource}
  5565. scroll={{ x: "max-content", y: 0 }}
  5566. onRowDoubleClick={
  5567. this.state.listCuiFlag
  5568. ? this.not
  5569. : this.editCui
  5570. }
  5571. bordered
  5572. size="small"
  5573. />
  5574. <Col
  5575. span={24}
  5576. offset={9}
  5577. style={{ marginTop: "15px" }}
  5578. ></Col>
  5579. </Form>
  5580. </Spin>
  5581. </div>
  5582. </div>
  5583. <div className="clearfix">
  5584. <FormItem
  5585. style={{ height: "auto" }}
  5586. labelCol={{ span: 4 }}
  5587. wrapperCol={{ span: 18 }}
  5588. label="变更原因"
  5589. >
  5590. {/* {!this.state.mark ? ( */}
  5591. <TextArea
  5592. rows={4}
  5593. placeholder="请输入变更原因"
  5594. ref="signTotalAmount"
  5595. style={{ width: "95%" }}
  5596. value={this.state.remarksC}
  5597. onChange={(e) => {
  5598. this.setState({
  5599. remarksC: e.target.value,
  5600. });
  5601. }}
  5602. />
  5603. {/* ) : (
  5604. <span>{contractData.remarks}</span>
  5605. )} */}
  5606. </FormItem>
  5607. </div>
  5608. <div className="clearfix">
  5609. <FormItem
  5610. style={{ height: "auto" }}
  5611. labelCol={{ span: 4 }}
  5612. wrapperCol={{ span: 18 }}
  5613. label="备注"
  5614. >
  5615. {/* {!this.state.mark ? ( */}
  5616. <TextArea
  5617. rows={4}
  5618. placeholder="请输入备注"
  5619. ref="signTotalAmount"
  5620. style={{ width: "95%" }}
  5621. value={this.state.startRemarks}
  5622. onChange={(e) => {
  5623. this.setState({
  5624. startRemarks: e.target.value,
  5625. });
  5626. }}
  5627. />
  5628. {/* ) : (
  5629. <span>{contractData.startRemarks}</span>
  5630. )} */}
  5631. </FormItem>
  5632. </div>
  5633. {/* ---- */}
  5634. <div className="clearfix">
  5635. <FormItem
  5636. labelCol={{ span: 4 }}
  5637. wrapperCol={{ span: 18 }}
  5638. label="变更凭证"
  5639. >
  5640. {/* {!this.state.mark ? ( */}
  5641. <PicturesWall
  5642. domId={'addService3'}
  5643. fileList={this.getVoucherUrl}
  5644. pictureUrl={this.state.voucherUrl}
  5645. url="/api/admin/orderChange/uploadFile"
  5646. sign="order_change_file"
  5647. />
  5648. {/* ) : (
  5649. <div>
  5650. <Upload
  5651. className="demandDetailShow-upload"
  5652. listType="picture-card"
  5653. fileList={this.state.voucherUrl}
  5654. onPreview={file => {
  5655. this.setState({
  5656. previewImage:
  5657. file.url || file.thumbUrl,
  5658. previewVisible: true
  5659. });
  5660. }}
  5661. />
  5662. <Modal
  5663. maskClosable={false}
  5664. footer={null}
  5665. visible={this.state.previewVisible}
  5666. onCancel={() => {
  5667. this.setState({
  5668. previewVisible: false
  5669. });
  5670. }}
  5671. >
  5672. <img
  5673. alt=""
  5674. style={{ width: "100%" }}
  5675. src={this.state.previewImage || ""}
  5676. />
  5677. </Modal>
  5678. </div>
  5679. )} */}
  5680. <p>图片建议:要清晰。</p>
  5681. </FormItem>
  5682. </div>
  5683. {/* {!this.state.mark ? ( */}
  5684. <div className="clearfix">
  5685. <Button
  5686. type="primary"
  5687. style={{ float: "right", marginRight: 40 }}
  5688. // onClick={this.changeApply}
  5689. onClick={(e) => {
  5690. if (this.state.isCaoGao) {
  5691. this.submitChange();
  5692. } else {
  5693. this.changeApply();
  5694. }
  5695. }}
  5696. >
  5697. {this.state.isCaoGao
  5698. ? "发起变更申请"
  5699. : this.state.typeChange == 0
  5700. ? "发起变更申请"
  5701. : "下一步"}
  5702. </Button>
  5703. </div>
  5704. {/* ) : (
  5705. ""
  5706. )} */}
  5707. </div>
  5708. }
  5709. </TabPane>
  5710. {this.state.isJilu ? (
  5711. <TabPane tab={"最近变更记录"} key="3">
  5712. <div>
  5713. <div
  5714. style={{
  5715. borderRadius: "50%",
  5716. width: 300,
  5717. height: 300,
  5718. position: "absolute",
  5719. top: 230,
  5720. left: 525,
  5721. transform: "rotate(-5deg)",
  5722. zIndex: 1,
  5723. display:
  5724. this.state.detailChange.status == 4
  5725. ? "block"
  5726. : "none",
  5727. }}
  5728. >
  5729. <img src={tongguo} style={{ width: "100%" }} />
  5730. </div>
  5731. <div
  5732. style={{
  5733. borderRadius: "50%",
  5734. width: 300,
  5735. height: 300,
  5736. position: "absolute",
  5737. top: 284,
  5738. left: 586,
  5739. transform: "rotate(-5deg)",
  5740. zIndex: 1,
  5741. display:
  5742. this.state.detailChange.status == 5
  5743. ? "block"
  5744. : "none",
  5745. }}
  5746. >
  5747. <img src={quxiao} style={{ width: "63%" }} />
  5748. </div>
  5749. <div className="clearfix">
  5750. <FormItem
  5751. className="half-item"
  5752. {...formItemLayout}
  5753. label="客户名称"
  5754. >
  5755. <span>{this.state.userName}</span>
  5756. </FormItem>
  5757. {/* */}
  5758. <FormItem
  5759. className="half-item"
  5760. {...formItemLayout}
  5761. label="合同编号"
  5762. >
  5763. <span>{this.state.contractNo}</span>
  5764. </FormItem>
  5765. </div>
  5766. <div className="clearfix">
  5767. <FormItem
  5768. className="half-item"
  5769. {...formItemLayout}
  5770. label="时间"
  5771. >
  5772. <span>
  5773. {this.state.detailChange.createTimes}
  5774. </span>
  5775. </FormItem>
  5776. <FormItem
  5777. className="half-item"
  5778. {...formItemLayout}
  5779. label="申请人"
  5780. >
  5781. <span>{this.state.salesmanName}</span>
  5782. </FormItem>
  5783. </div>
  5784. <div className="clearfix">
  5785. <FormItem
  5786. className="half-item"
  5787. {...formItemLayout}
  5788. label="当前进度"
  5789. >
  5790. <span>
  5791. {getProcessStatusNew(
  5792. this.state.detailChange.processState,
  5793. this.state.detailChange.status
  5794. )}
  5795. </span>
  5796. </FormItem>
  5797. {/* <FormItem
  5798. className="half-item"
  5799. {...formItemLayout}
  5800. label="申请变更部门"
  5801. >
  5802. <span>{this.state.depName}</span>
  5803. </FormItem> */}
  5804. <FormItem
  5805. {...formItemLayout}
  5806. className="half-item"
  5807. label="变更类型"
  5808. >
  5809. <span>
  5810. {getChangeType(
  5811. this.state.detailChange.typeChange
  5812. )}
  5813. </span>
  5814. </FormItem>
  5815. </div>
  5816. {/* <div className="clearfix">
  5817. <FormItem
  5818. labelCol={{ span: 4 }}
  5819. wrapperCol={{ span: 18 }}
  5820. label="变更类型"
  5821. >
  5822. <span>
  5823. {getChangeType(
  5824. this.state.detailChange.typeChange
  5825. )}
  5826. </span>
  5827. </FormItem>
  5828. </div> */}
  5829. <div className="clearfix">
  5830. <FormItem
  5831. {...formItemLayout}
  5832. className="half-item"
  5833. label="合同额(万元)"
  5834. >
  5835. <span>
  5836. {this.state.detailChange.totalAmount}
  5837. </span>
  5838. </FormItem>
  5839. <FormItem
  5840. {...formItemLayout}
  5841. className="half-item"
  5842. label="已收款(万元)"
  5843. >
  5844. <span>
  5845. {this.state.detailChange.settlementAmount}
  5846. </span>
  5847. </FormItem>
  5848. </div>
  5849. <div className="clearfix">
  5850. <FormItem
  5851. {...formItemLayout}
  5852. className="half-item"
  5853. label="欠款(万元)"
  5854. >
  5855. <span>{this.state.detailChange.arrears}</span>
  5856. </FormItem>
  5857. <FormItem
  5858. {...formItemLayout}
  5859. className="half-item"
  5860. label="申请退款(万元)"
  5861. >
  5862. <span>
  5863. {this.state.detailChange.changeAmount}
  5864. </span>
  5865. </FormItem>
  5866. </div>
  5867. <div className="clearfix">
  5868. <FormItem
  5869. style={{ height: "auto" }}
  5870. labelCol={{ span: 4 }}
  5871. wrapperCol={{ span: 18 }}
  5872. label="变更原因"
  5873. >
  5874. <span>{this.state.detailChange.remarksC}</span>
  5875. </FormItem>
  5876. </div>
  5877. <div className="clearfix">
  5878. <FormItem
  5879. style={{ height: "auto" }}
  5880. labelCol={{ span: 4 }}
  5881. wrapperCol={{ span: 18 }}
  5882. label="备注"
  5883. >
  5884. <span>
  5885. {this.state.detailChange.startRemarks}
  5886. </span>
  5887. </FormItem>
  5888. </div>
  5889. {/* ---- */}
  5890. <div className="clearfix">
  5891. <FormItem
  5892. labelCol={{ span: 4 }}
  5893. wrapperCol={{ span: 18 }}
  5894. label="变更凭证"
  5895. >
  5896. <div>
  5897. {/*<Upload*/}
  5898. {/* className="demandDetailShow-upload"*/}
  5899. {/* listType="picture-card"*/}
  5900. {/* fileList={*/}
  5901. {/* this.state.detailChange.voucherUrl*/}
  5902. {/* }*/}
  5903. {/* onPreview={(file) => {*/}
  5904. {/* this.setState({*/}
  5905. {/* previewImage: file.url || file.thumbUrl,*/}
  5906. {/* previewVisible: true,*/}
  5907. {/* });*/}
  5908. {/* }}*/}
  5909. {/*/>*/}
  5910. <div style={{paddingTop:'10px',paddingBottom:'10px'}}>
  5911. {
  5912. this.state.detailChange &&
  5913. this.state.detailChange.voucherUrl &&
  5914. this.state.activeKey === '3' &&
  5915. this.state.visible?
  5916. <ImgList fileList={this.state.detailChange.voucherUrl} ItemWidth={'96px'}/>
  5917. : <div/>
  5918. }
  5919. </div>
  5920. {/*<Modal*/}
  5921. {/* maskClosable={false}*/}
  5922. {/* footer={null}*/}
  5923. {/* visible={this.state.previewVisible}*/}
  5924. {/* onCancel={() => {*/}
  5925. {/* this.setState({*/}
  5926. {/* previewVisible: false,*/}
  5927. {/* });*/}
  5928. {/* }}*/}
  5929. {/*>*/}
  5930. {/* <img*/}
  5931. {/* alt=""*/}
  5932. {/* style={{ width: "100%" }}*/}
  5933. {/* src={this.state.previewImage || ""}*/}
  5934. {/* />*/}
  5935. {/*</Modal>*/}
  5936. </div>
  5937. </FormItem>
  5938. </div>
  5939. <ul
  5940. style={{
  5941. width: "868px",
  5942. overflow: "hidden",
  5943. paddingLeft: "90px",
  5944. paddingTop: "10px",
  5945. position: "relative",
  5946. bottom: "20px",
  5947. fontSize: "12px",
  5948. color: "rgba(0, 0, 0, 0.65)",
  5949. }}
  5950. >
  5951. {/* <span>操作人:</span> */}
  5952. {this.state.logData.map((item, index) => {
  5953. if (item.status == 0) {
  5954. item.status = "发起";
  5955. } else if (item.status == 1) {
  5956. item.status = "审核中";
  5957. } else if (item.status == 2) {
  5958. item.status = "通过";
  5959. } else if (item.status == 3) {
  5960. item.status = "驳回";
  5961. } else if (item.status == 4) {
  5962. item.status = "完成";
  5963. }
  5964. return (
  5965. <li
  5966. key={index}
  5967. style={{
  5968. width: "100%",
  5969. height: "auto",
  5970. wordBreak: "break-all",
  5971. marginBottom: "10px",
  5972. }}
  5973. >
  5974. {item.aname +
  5975. ":" +
  5976. "(" +
  5977. item.status +
  5978. ")" +
  5979. item.remarks}
  5980. </li>
  5981. );
  5982. })}
  5983. </ul>
  5984. {/* 动态展示项目以及催款节点 */}
  5985. <div>
  5986. <div>
  5987. <span
  5988. style={{
  5989. marginLeft: "50px",
  5990. fontSize: "20px",
  5991. }}
  5992. >
  5993. 项目业务
  5994. </span>
  5995. </div>
  5996. <div
  5997. className="patent-table"
  5998. style={{ marginBottom: 10 }}
  5999. >
  6000. <Spin spinning={this.state.loading}>
  6001. <Table
  6002. columns={this.state.detailColumns}
  6003. dataSource={this.state.proDataSource}
  6004. expandedRowRender={expandedRowRenderDetail}
  6005. pagination={this.state.pagination}
  6006. // onRowClick={this.tableRowClick}
  6007. bordered
  6008. size="small"
  6009. />
  6010. </Spin>
  6011. </div>
  6012. <div>
  6013. <span
  6014. style={{
  6015. marginLeft: "50px",
  6016. fontSize: "20px",
  6017. }}
  6018. >
  6019. 催款节点
  6020. </span>
  6021. </div>
  6022. <div className="clearfix">
  6023. <Spin spinning={this.state.loading}>
  6024. <Form layout="horizontal">
  6025. <Table
  6026. pagination={false}
  6027. columns={this.state.detailContactsLists}
  6028. dataSource={this.state.cuiDataSource}
  6029. scroll={{ x: "max-content", y: 0 }}
  6030. bordered
  6031. size="small"
  6032. />
  6033. <Col
  6034. span={24}
  6035. offset={9}
  6036. style={{ marginTop: "15px" }}
  6037. ></Col>
  6038. </Form>
  6039. </Spin>
  6040. </div>
  6041. </div>
  6042. </div>
  6043. </TabPane>
  6044. ) : (
  6045. ""
  6046. )}
  6047. </Tabs>
  6048. )}
  6049. </div>
  6050. </Spin>
  6051. </Form>
  6052. </Modal>
  6053. <Modal
  6054. maskClosable={false}
  6055. visible={this.state.addnextVisible}
  6056. onOk={this.nextCancel}
  6057. onCancel={this.nextCancel}
  6058. width="800px"
  6059. title={this.state.addState ? "添加项目任务" : "项目任务详情"}
  6060. footer=""
  6061. className="admin-desc-content"
  6062. >
  6063. <Form
  6064. layout="horizontal"
  6065. onSubmit={this.nextSubmit}
  6066. // id="demand-form"
  6067. >
  6068. <Spin spinning={this.state.loading}>
  6069. {this.state.addState ? (
  6070. <div className="clearfix">
  6071. <FormItem
  6072. className="half-item"
  6073. {...formItemLayout}
  6074. label="服务名称"
  6075. >
  6076. <AutoComplete
  6077. className="certain-category-search"
  6078. dropdownClassName="certain-category-search-dropdown"
  6079. dropdownMatchSelectWidth={false}
  6080. dropdownStyle={{ width: 200 }}
  6081. style={{ width: "200px" }}
  6082. dataSource={options}
  6083. placeholder="输入服务名称"
  6084. value={this.state.commodityName}
  6085. onChange={this.httpChange}
  6086. filterOption={true}
  6087. onSelect={this.selectAuto}
  6088. >
  6089. <Input />
  6090. </AutoComplete>
  6091. <span className="mandatory">*</span>
  6092. </FormItem>
  6093. <FormItem
  6094. className="half-item"
  6095. {...formItemLayout}
  6096. label="服务数量"
  6097. >
  6098. <Input
  6099. placeholder="请输入服务数量"
  6100. value={this.state.commodityQuantity}
  6101. style={{ width: "200px" }}
  6102. onChange={(e) => {
  6103. this.setState({ commodityQuantity: e.target.value });
  6104. }}
  6105. ref="commodityQuantity"
  6106. />
  6107. <span className="mandatory">*</span>
  6108. </FormItem>
  6109. <FormItem
  6110. className="half-item"
  6111. labelCol={{ span: 3 }}
  6112. wrapperCol={{ span: 14 }}
  6113. label="官费:"
  6114. style={{
  6115. display: this.state.displayFees,
  6116. marginLeft: "55px",
  6117. }}
  6118. >
  6119. <span style={{ color: "red", marginRight: "27px" }}>
  6120. *
  6121. </span>
  6122. <Radio.Group
  6123. value={this.state.officialCost}
  6124. onChange={(e) => {
  6125. this.setState({ officialCost: e.target.value });
  6126. }}
  6127. >
  6128. <Radio value="1">含官费</Radio>
  6129. <Radio value="0">不含官费</Radio>
  6130. </Radio.Group>
  6131. </FormItem>
  6132. <FormItem
  6133. className="half-item"
  6134. labelCol={{ span: 3 }}
  6135. wrapperCol={{ span: 14 }}
  6136. label="费减:"
  6137. style={{
  6138. display: this.state.displayFees,
  6139. marginLeft: "55px",
  6140. }}
  6141. >
  6142. <span style={{ color: "red", marginRight: "27px" }}>
  6143. *
  6144. </span>
  6145. <Radio.Group
  6146. value={this.state.costReduction}
  6147. onChange={(e) => {
  6148. this.setState({ costReduction: e.target.value });
  6149. }}
  6150. >
  6151. <Radio value="1">有费减</Radio>
  6152. <Radio value="0">无费减</Radio>
  6153. </Radio.Group>
  6154. </FormItem>
  6155. <FormItem
  6156. className="half-item"
  6157. {...formItemLayout}
  6158. label="实签价格(万元)"
  6159. >
  6160. <Input
  6161. placeholder="请输入实签价格"
  6162. value={this.state.commodityPrice}
  6163. style={{ width: "200px" }}
  6164. onChange={(e) => {
  6165. this.setState({ commodityPrice: e.target.value });
  6166. }}
  6167. ref="commodityPrice"
  6168. />
  6169. <span className="mandatory">*</span>
  6170. </FormItem>
  6171. <FormItem
  6172. className="half-item"
  6173. {...formItemLayout}
  6174. label="主要业务"
  6175. >
  6176. <Select
  6177. placeholder="选择是否为主要业务"
  6178. style={{ width: "200px" }}
  6179. value={this.state.main}
  6180. onChange={(e) => {
  6181. this.setState({ main: e });
  6182. }}
  6183. >
  6184. {boutique.map(function (item) {
  6185. return (
  6186. <Select.Option key={item.value}>
  6187. {item.key}
  6188. </Select.Option>
  6189. );
  6190. })}
  6191. </Select>
  6192. <span className="mandatory">*</span>
  6193. </FormItem>
  6194. <div className="clearfix">
  6195. <FormItem
  6196. labelCol={{ span: 4 }}
  6197. wrapperCol={{ span: 16 }}
  6198. label="服务说明"
  6199. >
  6200. <Input
  6201. type="textarea"
  6202. placeholder="请输入服务说明"
  6203. value={this.state.taskComment}
  6204. onChange={(e) => {
  6205. this.setState({ taskComment: e.target.value });
  6206. }}
  6207. />
  6208. </FormItem>
  6209. </div>
  6210. <FormItem
  6211. wrapperCol={{ span: 12, offset: 4 }}
  6212. className="half-middle"
  6213. >
  6214. <Button
  6215. className="submitSave"
  6216. type="primary"
  6217. htmlType="submit"
  6218. >
  6219. 保存
  6220. </Button>
  6221. <Button
  6222. className="submitSave"
  6223. type="ghost"
  6224. onClick={this.nextCancel}
  6225. >
  6226. 取消
  6227. </Button>
  6228. </FormItem>
  6229. </div>
  6230. ) : (
  6231. <div className="clearfix">
  6232. {this.state.processStatus == 0 ? (
  6233. <div className="clearfix">
  6234. <FormItem
  6235. className="half-item"
  6236. {...formItemLayout}
  6237. label="项目名称"
  6238. >
  6239. <span>{this.state.commodityName}</span>
  6240. </FormItem>
  6241. <FormItem
  6242. className="half-item"
  6243. {...formItemLayout}
  6244. label="项目数量"
  6245. >
  6246. <Input
  6247. placeholder="请输入数量"
  6248. value={this.state.commodityQuantity}
  6249. style={{ width: "200px" }}
  6250. onChange={(e) => {
  6251. this.setState({
  6252. commodityQuantity: e.target.value,
  6253. });
  6254. }}
  6255. />
  6256. <span className="mandatory">*</span>
  6257. </FormItem>
  6258. <FormItem
  6259. className="half-item"
  6260. labelCol={{ span: 3 }}
  6261. wrapperCol={{ span: 14 }}
  6262. label="官费:"
  6263. style={{
  6264. display: this.state.displayFees,
  6265. marginLeft: "55px",
  6266. }}
  6267. >
  6268. <span style={{ color: "red", marginRight: "27px" }}>
  6269. *
  6270. </span>
  6271. <Radio.Group
  6272. value={this.state.officialCost}
  6273. onChange={(e) => {
  6274. this.setState({ officialCost: e.target.value });
  6275. }}
  6276. >
  6277. <Radio value={1}>含官费</Radio>
  6278. <Radio value={0}>不含官费</Radio>
  6279. </Radio.Group>
  6280. </FormItem>
  6281. <FormItem
  6282. className="half-item"
  6283. labelCol={{ span: 3 }}
  6284. wrapperCol={{ span: 14 }}
  6285. label="费减:"
  6286. style={{
  6287. display: this.state.displayFees,
  6288. marginLeft: "55px",
  6289. }}
  6290. >
  6291. <span style={{ color: "red", marginRight: "27px" }}>
  6292. *
  6293. </span>
  6294. <Radio.Group
  6295. value={this.state.costReduction}
  6296. onChange={(e) => {
  6297. this.setState({ costReduction: e.target.value });
  6298. }}
  6299. >
  6300. <Radio value={1}>有费减</Radio>
  6301. <Radio value={0}>无费减</Radio>
  6302. </Radio.Group>
  6303. </FormItem>
  6304. <FormItem
  6305. className="half-item"
  6306. {...formItemLayout}
  6307. label="金额(万元)"
  6308. >
  6309. <Input
  6310. placeholder="请输入签单金额"
  6311. value={this.state.commodityPrice}
  6312. style={{ width: "200px" }}
  6313. onChange={(e) => {
  6314. this.setState({ commodityPrice: e.target.value });
  6315. }}
  6316. />
  6317. <span className="mandatory">*</span>
  6318. </FormItem>
  6319. <FormItem
  6320. className="half-item"
  6321. {...formItemLayout}
  6322. label="主要项目"
  6323. >
  6324. <Select
  6325. placeholder="选择是否为主要业务"
  6326. style={{ width: "200px" }}
  6327. value={this.state.main}
  6328. onChange={(e) => {
  6329. this.setState({ main: e });
  6330. }}
  6331. >
  6332. {boutique.map(function (item) {
  6333. return (
  6334. <Select.Option key={item.value}>
  6335. {item.key}
  6336. </Select.Option>
  6337. );
  6338. })}
  6339. </Select>
  6340. <span className="mandatory">*</span>
  6341. </FormItem>
  6342. <div className="clearfix">
  6343. <FormItem
  6344. labelCol={{ span: 4 }}
  6345. wrapperCol={{ span: 16 }}
  6346. label="服务说明"
  6347. >
  6348. <Input
  6349. type="textarea"
  6350. placeholder="请输入服务说明"
  6351. value={this.state.taskComment}
  6352. onChange={(e) => {
  6353. this.setState({ taskComment: e.target.value });
  6354. }}
  6355. />
  6356. </FormItem>
  6357. </div>
  6358. <FormItem
  6359. wrapperCol={{ span: 12, offset: 4 }}
  6360. className="half-middle"
  6361. >
  6362. <Button
  6363. className="submitSave"
  6364. type="primary"
  6365. onClick={this.tabRowSave}
  6366. >
  6367. 保存
  6368. </Button>
  6369. <Button
  6370. className="submitSave"
  6371. type="ghost"
  6372. onClick={this.nextCancel}
  6373. >
  6374. 取消
  6375. </Button>
  6376. </FormItem>
  6377. </div>
  6378. ) : (
  6379. <div className="clearfix">
  6380. <FormItem
  6381. className="half-item"
  6382. {...formItemLayout}
  6383. label="项目名称"
  6384. >
  6385. <span>{this.state.commodityName}</span>
  6386. </FormItem>
  6387. <FormItem
  6388. className="half-item"
  6389. {...formItemLayout}
  6390. label="项目数量"
  6391. >
  6392. <span>{this.state.commodityQuantity}</span>
  6393. </FormItem>
  6394. <FormItem
  6395. className="half-item"
  6396. {...formItemLayout}
  6397. label="官费"
  6398. style={{ display: this.state.displayFees }}
  6399. >
  6400. <span>
  6401. {this.state.officialCost == 0 ? "无官费" : "有官费"}
  6402. </span>
  6403. </FormItem>
  6404. <FormItem
  6405. className="half-item"
  6406. {...formItemLayout}
  6407. label="费减"
  6408. style={{ display: this.state.displayFees }}
  6409. >
  6410. <span>
  6411. {this.state.costReduction == 0
  6412. ? "无费减"
  6413. : "有费减"}
  6414. </span>
  6415. </FormItem>
  6416. <FormItem
  6417. className="half-item"
  6418. {...formItemLayout}
  6419. label="金额(万元)"
  6420. >
  6421. <span>{this.state.commodityPrice}</span>
  6422. </FormItem>
  6423. <FormItem
  6424. className="half-item"
  6425. {...formItemLayout}
  6426. label="主要项目"
  6427. >
  6428. <span>{getboutique(this.state.main)}</span>
  6429. </FormItem>
  6430. <div className="clearfix">
  6431. <FormItem
  6432. labelCol={{ span: 4 }}
  6433. wrapperCol={{ span: 16 }}
  6434. label="服务说明"
  6435. >
  6436. <span>{this.state.taskComment}</span>
  6437. </FormItem>
  6438. </div>
  6439. </div>
  6440. )}
  6441. </div>
  6442. )}
  6443. </Spin>
  6444. </Form>
  6445. </Modal>
  6446. <Modal
  6447. maskClosable={false}
  6448. visible={this.state.changeVisible}
  6449. onOk={this.nextCancel}
  6450. onCancel={this.nextCancel}
  6451. width="800px"
  6452. title={"添加变更项目"}
  6453. footer=""
  6454. className="admin-desc-content"
  6455. >
  6456. <Form
  6457. layout="horizontal"
  6458. // id="demand-form"
  6459. >
  6460. <Spin spinning={this.state.loading}>
  6461. <div className="clearfix">
  6462. <FormItem
  6463. className="half-item"
  6464. {...formItemLayout}
  6465. label="服务名称"
  6466. >
  6467. <AutoComplete
  6468. className="certain-category-search"
  6469. dropdownClassName="certain-category-search-dropdown"
  6470. dropdownMatchSelectWidth={false}
  6471. dropdownStyle={{ width: 200 }}
  6472. style={{ width: "200px" }}
  6473. dataSource={options}
  6474. placeholder="输入服务名称"
  6475. value={this.state.commodityName}
  6476. onChange={this.httpChange}
  6477. filterOption={true}
  6478. onSelect={this.selectAuto}
  6479. >
  6480. <Input />
  6481. </AutoComplete>
  6482. <span className="mandatory">*</span>
  6483. </FormItem>
  6484. <FormItem
  6485. className="half-item"
  6486. {...formItemLayout}
  6487. label="服务数量"
  6488. >
  6489. <Input
  6490. placeholder="请输入服务数量"
  6491. value={this.state.commodityQuantity}
  6492. style={{ width: "200px" }}
  6493. onChange={(e) => {
  6494. this.setState({ commodityQuantity: e.target.value });
  6495. }}
  6496. ref="commodityQuantity"
  6497. />
  6498. <span className="mandatory">*</span>
  6499. </FormItem>
  6500. <FormItem
  6501. className="half-item"
  6502. {...formItemLayout}
  6503. label="实签价格(万元)"
  6504. >
  6505. <Input
  6506. placeholder="请输入实签价格"
  6507. value={this.state.commodityPrice}
  6508. style={{ width: "200px" }}
  6509. onChange={(e) => {
  6510. this.setState({ commodityPrice: e.target.value });
  6511. }}
  6512. ref="commodityPrice"
  6513. />
  6514. <span className="mandatory">*</span>
  6515. </FormItem>
  6516. <FormItem
  6517. className="half-item"
  6518. {...formItemLayout}
  6519. label="主要业务"
  6520. >
  6521. <Select
  6522. placeholder="选择是否为主要业务"
  6523. style={{ width: "200px" }}
  6524. value={this.state.main}
  6525. onChange={(e) => {
  6526. this.setState({ main: e });
  6527. }}
  6528. >
  6529. {boutique.map(function (item) {
  6530. return (
  6531. <Select.Option key={item.value}>
  6532. {item.key}
  6533. </Select.Option>
  6534. );
  6535. })}
  6536. </Select>
  6537. <span className="mandatory">*</span>
  6538. </FormItem>
  6539. <div className="clearfix">
  6540. <FormItem
  6541. labelCol={{ span: 4 }}
  6542. wrapperCol={{ span: 16 }}
  6543. label="服务说明"
  6544. >
  6545. <Input
  6546. type="textarea"
  6547. placeholder="请输入服务说明"
  6548. value={this.state.taskComment}
  6549. onChange={(e) => {
  6550. this.setState({ taskComment: e.target.value });
  6551. }}
  6552. />
  6553. </FormItem>
  6554. </div>
  6555. <FormItem
  6556. wrapperCol={{ span: 12, offset: 4 }}
  6557. className="half-middle"
  6558. >
  6559. <Button
  6560. className="submitSave"
  6561. type="primary"
  6562. onClick={this.changeProSubmit}
  6563. >
  6564. 保存
  6565. </Button>
  6566. <Button
  6567. className="submitSave"
  6568. type="ghost"
  6569. onClick={this.nextCancel}
  6570. >
  6571. 取消
  6572. </Button>
  6573. </FormItem>
  6574. </div>
  6575. </Spin>
  6576. </Form>
  6577. </Modal>
  6578. {this.state.lookVisible ? <Modal
  6579. maskClosable={false}
  6580. visible={this.state.lookVisible}
  6581. onOk={this.noCancel}
  6582. onCancel={this.noCancel}
  6583. width="800px"
  6584. title={"退单申请"}
  6585. footer=""
  6586. className="admin-desc-content"
  6587. >
  6588. <Form layout="horizontal">
  6589. <Spin spinning={this.state.loading}>
  6590. <div className="clearfix">
  6591. <FormItem
  6592. labelCol={{ span: 4 }}
  6593. wrapperCol={{ span: 16 }}
  6594. label="终止合同"
  6595. >
  6596. <Picture
  6597. domId={'addService4'}
  6598. fileList={(e) => {
  6599. this.setState({ contractUrl: e });
  6600. }}
  6601. pictureUrl={this.state.contractUrl}
  6602. visible={this.props.visible}
  6603. data={{
  6604. sign: "order_refund_file",
  6605. url: "/api/admin/newOrder/uploadRefundOrderFile",
  6606. number: 8,
  6607. }}
  6608. />
  6609. </FormItem>
  6610. </div>
  6611. <div className="clearfix">
  6612. <FormItem
  6613. labelCol={{ span: 4 }}
  6614. wrapperCol={{ span: 16 }}
  6615. label="退单申请表"
  6616. >
  6617. <Picture
  6618. domId={'addService5'}
  6619. fileList={(e) => {
  6620. this.setState({ applicationUrl: e });
  6621. }}
  6622. pictureUrl={this.state.applicationUrl}
  6623. visible={this.props.visible}
  6624. data={{
  6625. sign: "order_refund_file",
  6626. url: "/api/admin/newOrder/uploadRefundOrderFile",
  6627. number: 8,
  6628. }}
  6629. />
  6630. </FormItem>
  6631. </div>
  6632. <div className="clearfix">
  6633. <FormItem
  6634. labelCol={{ span: 4 }}
  6635. wrapperCol={{ span: 16 }}
  6636. label="退单理由"
  6637. >
  6638. <Input
  6639. type="textarea"
  6640. placeholder="请输入退单理由"
  6641. rows={4}
  6642. value={this.state.reason}
  6643. onChange={(e) => {
  6644. this.setState({ reason: e.target.value });
  6645. }}
  6646. />
  6647. </FormItem>
  6648. </div>
  6649. <div className="clearfix">
  6650. <Button
  6651. className="cancel"
  6652. type="primary"
  6653. onClick={this.tuidanOk}
  6654. style={{ marginLeft: "50px" }}
  6655. htmlType="submit"
  6656. >
  6657. 确定退单
  6658. </Button>
  6659. <Button
  6660. className="cancel"
  6661. type="ghost"
  6662. onClick={this.noCancel}
  6663. style={{ marginLeft: "50px" }}
  6664. >
  6665. 取消
  6666. </Button>
  6667. </div>
  6668. </Spin>
  6669. </Form>
  6670. </Modal> : <div/>}
  6671. <Modal
  6672. title="修改项目金额及数量"
  6673. visible={this.state.editProVisible}
  6674. onOk={this.submitEditPro}
  6675. width={300}
  6676. okText={"保存"}
  6677. onCancel={() => {
  6678. this.setState({
  6679. editProVisible: false,
  6680. });
  6681. }}
  6682. >
  6683. <div className="clearfix">
  6684. <FormItem
  6685. labelCol={{ span: 6 }}
  6686. wrapperCol={{ span: 14 }}
  6687. label="项目金额"
  6688. style={{
  6689. display: this.state.editSplitStatus == 2 ? "none" : "block",
  6690. }}
  6691. >
  6692. <Input
  6693. placeholder="请输入金额"
  6694. rows={4}
  6695. // disabled={this.state.editSplitStatus == 0 ? true : false}
  6696. value={this.state.editProMoney}
  6697. onChange={(e) => {
  6698. this.setState({ editProMoney: e.target.value });
  6699. }}
  6700. />
  6701. </FormItem>
  6702. <FormItem
  6703. labelCol={{ span: 6 }}
  6704. wrapperCol={{ span: 14 }}
  6705. label="项目数量"
  6706. >
  6707. <Input
  6708. placeholder="请输入数量"
  6709. rows={4}
  6710. value={this.state.editProCommodityQuantity}
  6711. onChange={(e) => {
  6712. this.setState({ editProCommodityQuantity: e.target.value });
  6713. }}
  6714. />
  6715. </FormItem>
  6716. </div>
  6717. </Modal>
  6718. <Modal
  6719. title="修改催款节点金额"
  6720. visible={this.state.editCuiVisible}
  6721. onOk={this.submitEditCui}
  6722. okText={"保存"}
  6723. width={300}
  6724. onCancel={(e) => {
  6725. this.setState({
  6726. editCuiVisible: false,
  6727. });
  6728. }}
  6729. >
  6730. <div className="clearfix">
  6731. <FormItem
  6732. labelCol={{ span: 6 }}
  6733. wrapperCol={{ span: 14 }}
  6734. label="催款金额"
  6735. >
  6736. <Input
  6737. placeholder="请输入金额"
  6738. rows={4}
  6739. value={this.state.editCuiMoney}
  6740. onChange={(e) => {
  6741. this.setState({ editCuiMoney: e.target.value });
  6742. }}
  6743. />
  6744. </FormItem>
  6745. </div>
  6746. </Modal>
  6747. <OrderRiZi
  6748. dataSourcerizhi={this.state.dataSourcerizhi}
  6749. closeOrderLog={this.closeOrderLog}
  6750. visible={this.state.rizhivisible}
  6751. loading={this.state.loading}
  6752. />
  6753. </div>
  6754. );
  6755. },
  6756. })
  6757. );
  6758. export default Form.create()(NewService);