addService.jsx 264 KB

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