addService.jsx 264 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052
  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: 12 },
  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" style={{paddingTop:'15px'}}>
  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. size='small'
  4431. placeholder="请选择客户所属类型"
  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. size='small'
  4460. showTime
  4461. format="YYYY-MM-DD"
  4462. onOk={() => {}}
  4463. value={
  4464. this.state.signDate
  4465. ? moment(this.state.signDate)
  4466. : null
  4467. }
  4468. onChange={(data, dataString) => {
  4469. this.setState({ signDate: dataString });
  4470. }}
  4471. />
  4472. <span
  4473. className="mandatory"
  4474. style={{ marginLeft: 20 }}
  4475. >
  4476. *
  4477. </span>
  4478. </FormItem>
  4479. <FormItem
  4480. className="half-item"
  4481. {...formItemLayout}
  4482. label="订单部门"
  4483. >
  4484. <Select
  4485. size='small'
  4486. placeholder="请输入订单部门"
  4487. value={this.state.organizationSearch}
  4488. onChange={(e) => {
  4489. this.setState({ organizationSearch: e });
  4490. }}
  4491. >
  4492. {departmentArr.map(function (item) {
  4493. return (
  4494. <Select.Option key={item.id}>
  4495. {item.name}
  4496. </Select.Option>
  4497. );
  4498. })}
  4499. </Select>
  4500. </FormItem>
  4501. </div>
  4502. ) : (
  4503. <div className="clearfix">
  4504. <FormItem
  4505. className="half-item"
  4506. {...formItemLayout}
  4507. label="特批立项"
  4508. >
  4509. <span>
  4510. {getApprovedState(this.state.approval)}
  4511. </span>
  4512. </FormItem>
  4513. <FormItem
  4514. className="half-item"
  4515. {...formItemLayout}
  4516. label="合同签订时间"
  4517. >
  4518. <span>{this.state.signDate}</span>
  4519. </FormItem>
  4520. <FormItem
  4521. className="half-item"
  4522. {...formItemLayout}
  4523. label="订单部门"
  4524. >
  4525. <span>{this.state.depName}</span>
  4526. </FormItem>
  4527. {/*<FormItem*/}
  4528. {/* className="half-item"*/}
  4529. {/* {...formItemLayout}*/}
  4530. {/* label="是否外包"*/}
  4531. {/*>*/}
  4532. {/* <span>*/}
  4533. {/* {this.state.outsource == 0 ? "否" : "是"}*/}
  4534. {/* </span>*/}
  4535. {/*</FormItem>*/}
  4536. </div>
  4537. )}
  4538. </div>
  4539. <h3
  4540. style={{
  4541. marginLeft: 10,
  4542. fontWeight: 800,
  4543. marginBottom: 10,
  4544. }}
  4545. >
  4546. 收款项目
  4547. </h3>
  4548. {this.state.processStatus === 0 ? (
  4549. <div className="clearfix">
  4550. <FormItem
  4551. className="half-item"
  4552. {...formItemLayout}
  4553. label="签单金额(万元)"
  4554. >
  4555. <Input
  4556. size='small'
  4557. placeholder="签单金额"
  4558. ref="signTotalAmount"
  4559. value={this.state.totalAmount}
  4560. onChange={(e) => {
  4561. this.setState({
  4562. totalAmount: e.target.value,
  4563. });
  4564. }}
  4565. />
  4566. {/* <span className="mandatory">*</span> */}
  4567. </FormItem>
  4568. <FormItem
  4569. className="half-item"
  4570. {...formItemLayout}
  4571. label="首付金额(万元)"
  4572. >
  4573. <Input
  4574. size='small'
  4575. placeholder="请输入实签首款金额"
  4576. ref="signFirstPayment"
  4577. value={this.state.firstAmount}
  4578. onChange={(e) => {
  4579. this.setState({
  4580. firstAmount: e.target.value,
  4581. });
  4582. }}
  4583. />
  4584. {/* <span className="mandatory">*</span> */}
  4585. </FormItem>
  4586. <FormItem
  4587. className="half-item"
  4588. {...formItemLayout}
  4589. label="已收款项"
  4590. >
  4591. <span>
  4592. {this.state.settlementAmount + "万元"}
  4593. </span>
  4594. {/* {this.state.settlementAmount ? (
  4595. <Button
  4596. type="primary"
  4597. onClick={this.tuikuan}
  4598. style={{
  4599. float: "right",
  4600. marginRight: "50px",
  4601. marginBottom: "15px"
  4602. }}
  4603. >
  4604. 退单
  4605. </Button>
  4606. ) : (
  4607. ""
  4608. )} */}
  4609. </FormItem>
  4610. </div>
  4611. ) : (
  4612. <div className="clearfix">
  4613. <FormItem
  4614. className="half-item"
  4615. {...formItemLayout}
  4616. label="签单金额(万元)"
  4617. >
  4618. <span>{this.state.totalAmount}</span>
  4619. </FormItem>
  4620. <FormItem
  4621. className="half-item"
  4622. {...formItemLayout}
  4623. label="首付金额(万元)"
  4624. >
  4625. <span>{this.state.firstAmount}</span>
  4626. </FormItem>
  4627. <FormItem
  4628. className="half-item"
  4629. {...formItemLayout}
  4630. label="已收款项"
  4631. >
  4632. <span>
  4633. {this.state.settlementAmount + "万元"}
  4634. </span>
  4635. {/* {this.state.settlementAmount ? (
  4636. <Button
  4637. type="primary"
  4638. onClick={this.tuikuan}
  4639. style={{
  4640. float: "right",
  4641. marginRight: "50px",
  4642. marginBottom: "15px"
  4643. }}
  4644. >
  4645. 退单
  4646. </Button>
  4647. ) : (
  4648. ""
  4649. )} */}
  4650. </FormItem>
  4651. </div>
  4652. )}
  4653. <h3
  4654. style={{
  4655. marginLeft: 10,
  4656. fontWeight: 800,
  4657. marginBottom: 10,
  4658. }}
  4659. >
  4660. 联系信息
  4661. </h3>
  4662. {this.state.processStatus == 0 ? (
  4663. <div className="clearfix">
  4664. <div className="clearfix">
  4665. <FormItem
  4666. className="half-item"
  4667. {...formItemLayout}
  4668. label="客户名称"
  4669. >
  4670. <span>{this.state.userName}</span>
  4671. </FormItem>
  4672. </div>
  4673. <FormItem
  4674. className="half-item"
  4675. {...formItemLayout}
  4676. label="企业联系人"
  4677. >
  4678. <Input
  4679. size='small'
  4680. placeholder="请输入联系人"
  4681. ref="signTotalAmount"
  4682. value={this.state.contacts}
  4683. onChange={(e) => {
  4684. this.setState({ contacts: e.target.value });
  4685. }}
  4686. />
  4687. </FormItem>
  4688. <FormItem
  4689. className="half-item"
  4690. {...formItemLayout}
  4691. label="联系人电话"
  4692. >
  4693. <Input
  4694. size='small'
  4695. placeholder="请输入联系人电话"
  4696. ref="signTotalAmount"
  4697. value={this.state.contactMobile}
  4698. onChange={(e) => {
  4699. this.setState({
  4700. contactMobile: e.target.value,
  4701. });
  4702. }}
  4703. />
  4704. </FormItem>
  4705. <FormItem
  4706. className="half-item"
  4707. {...formItemLayout}
  4708. label="企业法人"
  4709. >
  4710. <Input
  4711. size='small'
  4712. placeholder="请输入法人"
  4713. ref="signTotalAmount"
  4714. value={this.state.legalPerson}
  4715. onChange={(e) => {
  4716. this.setState({
  4717. legalPerson: e.target.value,
  4718. });
  4719. }}
  4720. />
  4721. </FormItem>
  4722. <FormItem
  4723. className="half-item"
  4724. {...formItemLayout}
  4725. label="法人电话"
  4726. >
  4727. <Input
  4728. size='small'
  4729. placeholder="请输入法人电话"
  4730. ref="signTotalAmount"
  4731. value={this.state.legalPersonTel}
  4732. onChange={(e) => {
  4733. this.setState({
  4734. legalPersonTel: e.target.value,
  4735. });
  4736. }}
  4737. />
  4738. </FormItem>
  4739. </div>
  4740. ) : (
  4741. <div className="clearfix">
  4742. {formItemList.map((data, index) => {
  4743. return (
  4744. <FormItem
  4745. className="half-item"
  4746. {...formItemLayout}
  4747. key={index}
  4748. label={data.label}
  4749. >
  4750. {data.content}
  4751. </FormItem>
  4752. );
  4753. })}
  4754. </div>
  4755. )}
  4756. <div className="clearfix">
  4757. {this.state.processStatus == 0 ? (
  4758. <div>
  4759. <FormItem
  4760. labelCol={{ span: 4 }}
  4761. wrapperCol={{ span: 18 }}
  4762. label={
  4763. <span>
  4764. <strong style={{ color: "#f00" }}>
  4765. *
  4766. </strong>
  4767. 合同扫描件
  4768. </span>
  4769. }
  4770. >
  4771. <PicturesWall
  4772. domId={'addService1'}
  4773. fileList={this.getOrgCodeUrl}
  4774. pictureUrl={this.state.orgCodeUrl}
  4775. url="/api/admin/order/uploadOrderImg"
  4776. sign=""
  4777. />
  4778. <p>图片建议:要清晰。</p>
  4779. <Button
  4780. style={{
  4781. float: "right",
  4782. marginRight: "140px",
  4783. marginTop: "20px",
  4784. }}
  4785. onClick={this.getOrderLog}
  4786. >
  4787. 查看订单日志
  4788. </Button>
  4789. </FormItem>
  4790. <FormItem
  4791. labelCol={{ span: 4 }}
  4792. wrapperCol={{ span: 18 }}
  4793. label={<span>补充协议</span>}
  4794. >
  4795. <PicturesWall
  4796. domId={'addService2'}
  4797. fileList={this.getReplenishUrl}
  4798. pictureUrl={this.state.replenishUrl}
  4799. url="/api/admin/order/uploadOrderImg"
  4800. sign=""
  4801. />
  4802. <p>图片建议:要清晰。</p>
  4803. </FormItem>
  4804. </div>
  4805. ) : (
  4806. <div>
  4807. <FormItem
  4808. labelCol={{ span: 4 }}
  4809. wrapperCol={{ span: 18 }}
  4810. label="合同扫描件"
  4811. >
  4812. <div style={{paddingTop:'10px',paddingBottom:'10px'}}>
  4813. {this.state.orgCodeUrl && this.state.visible && this.state.activeKey === '1'? <ImgList domId={'addService3'} fileList={this.state.orgCodeUrl} ItemWidth={'96px'}/> : <div/>}
  4814. </div>
  4815. <Modal
  4816. maskClosable={false}
  4817. footer={null}
  4818. width={"50%"}
  4819. visible={this.state.previewVisible}
  4820. onCancel={() => {
  4821. this.setState({
  4822. previewVisible: false,
  4823. rotateDeg: 0,
  4824. });
  4825. }}
  4826. >
  4827. <img
  4828. alt=""
  4829. style={{
  4830. width: "100%",
  4831. transform: `rotate(${this.state.rotateDeg}deg)`,
  4832. }}
  4833. src={this.state.previewImage || ""}
  4834. />
  4835. <Button
  4836. onClick={this.rotate}
  4837. style={{
  4838. position: "relative",
  4839. left: "50%",
  4840. transform: "translateX(-50%)",
  4841. }}
  4842. >
  4843. 旋转
  4844. </Button>
  4845. <Button
  4846. onClick={this.upImg}
  4847. style={{
  4848. position: "absolute",
  4849. left: -81,
  4850. top: "50%",
  4851. transform: "translateY(-50%)",
  4852. }}
  4853. >
  4854. 上一张
  4855. </Button>
  4856. <Button
  4857. onClick={this.downImg}
  4858. style={{
  4859. position: "absolute",
  4860. right: -81,
  4861. top: "50%",
  4862. transform: "translateY(-50%)",
  4863. }}
  4864. >
  4865. 下一张
  4866. </Button>
  4867. </Modal>
  4868. <Button
  4869. style={{
  4870. float: "right",
  4871. marginRight: "140px",
  4872. marginTop: "20px",
  4873. }}
  4874. onClick={this.getOrderLog}
  4875. >
  4876. 查看订单日志
  4877. </Button>
  4878. </FormItem>
  4879. <FormItem
  4880. labelCol={{ span: 4 }}
  4881. wrapperCol={{ span: 18 }}
  4882. label="补充协议"
  4883. >
  4884. {/*<Upload*/}
  4885. {/* className="demandDetailShow-upload"*/}
  4886. {/* listType="picture-card"*/}
  4887. {/* fileList={this.state.replenishUrl}*/}
  4888. {/* onPreview={(file) => {*/}
  4889. {/* this.setState({*/}
  4890. {/* previewImage: file.url || file.thumbUrl,*/}
  4891. {/* previewVisibles: true,*/}
  4892. {/* });*/}
  4893. {/* }}*/}
  4894. {/*/>*/}
  4895. <div style={{paddingTop:'10px',paddingBottom:'10px'}}>
  4896. {
  4897. this.state.visible && this.state.activeKey === '1' && this.state.replenishUrl?
  4898. <ImgList domId={'addService4'} fileList={this.state.replenishUrl} ItemWidth={'96px'}/> :
  4899. <div/>
  4900. }
  4901. </div>
  4902. <Modal
  4903. maskClosable={false}
  4904. footer={null}
  4905. width={"50%"}
  4906. visible={this.state.previewVisibles}
  4907. onCancel={() => {
  4908. this.setState({
  4909. previewVisibles: false,
  4910. rotateDeg: 0,
  4911. });
  4912. }}
  4913. >
  4914. <img
  4915. alt=""
  4916. style={{
  4917. width: "100%",
  4918. transform: `rotate(${this.state.rotateDeg}deg)`,
  4919. }}
  4920. src={this.state.previewImage || ""}
  4921. />
  4922. <Button
  4923. onClick={this.rotates}
  4924. style={{
  4925. position: "relative",
  4926. left: "50%",
  4927. transform: "translateX(-50%)",
  4928. }}
  4929. >
  4930. 旋转
  4931. </Button>
  4932. <Button
  4933. onClick={this.upImgs}
  4934. style={{
  4935. position: "absolute",
  4936. left: -81,
  4937. top: "50%",
  4938. transform: "translateY(-50%)",
  4939. }}
  4940. >
  4941. 上一张
  4942. </Button>
  4943. <Button
  4944. onClick={this.downImgs}
  4945. style={{
  4946. position: "absolute",
  4947. right: -81,
  4948. top: "50%",
  4949. transform: "translateY(-50%)",
  4950. }}
  4951. >
  4952. 下一张
  4953. </Button>
  4954. </Modal>
  4955. </FormItem>
  4956. </div>
  4957. )}
  4958. </div>
  4959. <div className="clearfix">
  4960. {this.state.processStatus == 0 ? (
  4961. <div className="clearfix">
  4962. <FormItem
  4963. labelCol={{ span: 4 }}
  4964. wrapperCol={{ span: 16 }}
  4965. label="订单留言"
  4966. >
  4967. <Input
  4968. type="textarea"
  4969. placeholder="请输入订单留言"
  4970. rows={4}
  4971. value={this.state.orderRemarks}
  4972. onChange={(e) => {
  4973. this.setState({
  4974. orderRemarks: e.target.value,
  4975. });
  4976. }}
  4977. style={{ width: "95%" }}
  4978. />
  4979. <span className="mandatory">*</span>
  4980. </FormItem>
  4981. </div>
  4982. ) : (
  4983. <FormItem
  4984. labelCol={{ span: 4 }}
  4985. wrapperCol={{ span: 16 }}
  4986. label="订单留言"
  4987. >
  4988. <p
  4989. style={{ width: 500, wordWrap: "break-word" }}
  4990. >
  4991. {this.state.orderRemarks}
  4992. </p>
  4993. </FormItem>
  4994. )}
  4995. </div>
  4996. <div className="clearfix">
  4997. <FormItem
  4998. className="half-item"
  4999. {...formItemLayout}
  5000. label="订单负责人"
  5001. >
  5002. <span>{this.state.salesmanName}</span>
  5003. </FormItem>
  5004. <FormItem
  5005. className="half-item"
  5006. {...formItemLayout}
  5007. label="订单负责人电话"
  5008. >
  5009. <span>{this.state.salesmanMobile}</span>
  5010. </FormItem>
  5011. </div>
  5012. <div className="clearfix">
  5013. <FormItem
  5014. className="half-item"
  5015. {...formItemLayout}
  5016. label="当前财务负责人"
  5017. >
  5018. <span>{this.state.nowFinance}</span>
  5019. </FormItem>
  5020. <FormItem
  5021. className="half-item"
  5022. {...formItemLayout}
  5023. label="当前财务负责人电话"
  5024. >
  5025. <span>{this.state.nowFinanceMobile}</span>
  5026. </FormItem>
  5027. </div>
  5028. {/*<div className="clearfix">*/}
  5029. {/* <FormItem*/}
  5030. {/* className="half-item"*/}
  5031. {/* {...formItemLayout}*/}
  5032. {/* style={{ opacity: ".5" }}*/}
  5033. {/* label="原订单负责人"*/}
  5034. {/* >*/}
  5035. {/* <span>{this.state.oldSalesmanName}</span>*/}
  5036. {/* </FormItem>*/}
  5037. {/* <FormItem*/}
  5038. {/* className="half-item"*/}
  5039. {/* {...formItemLayout}*/}
  5040. {/* style={{ opacity: ".5" }}*/}
  5041. {/* label="原订单负责人电话"*/}
  5042. {/* >*/}
  5043. {/* <span>{this.state.oldSalesmanMobile}</span>*/}
  5044. {/* </FormItem>*/}
  5045. {/*</div>*/}
  5046. {/*<div className="clearfix">*/}
  5047. {/* <FormItem*/}
  5048. {/* className="half-item"*/}
  5049. {/* style={{ opacity: ".5" }}*/}
  5050. {/* {...formItemLayout}*/}
  5051. {/* label="实际财务操作人"*/}
  5052. {/* >*/}
  5053. {/* <span>{this.state.financeName}</span>*/}
  5054. {/* </FormItem>*/}
  5055. {/* <FormItem*/}
  5056. {/* className="half-item"*/}
  5057. {/* {...formItemLayout}*/}
  5058. {/* style={{ opacity: ".5" }}*/}
  5059. {/* label="实际财务操作人电话"*/}
  5060. {/* >*/}
  5061. {/* <span>{this.state.financeMobile}</span>*/}
  5062. {/* </FormItem>*/}
  5063. {/*</div>*/}
  5064. <div>
  5065. <span
  5066. style={{ marginLeft: "50px", fontSize: "20px" }}
  5067. >
  5068. 项目业务
  5069. </span>
  5070. {this.state.processStatus == 0 ? (
  5071. <Button
  5072. type="primary"
  5073. onClick={this.addDetailed}
  5074. style={{
  5075. float: "right",
  5076. marginRight: "50px",
  5077. marginBottom: "15px",
  5078. }}
  5079. >
  5080. 添加项目明细
  5081. </Button>
  5082. ) : (
  5083. ""
  5084. )}
  5085. </div>
  5086. <div
  5087. className="patent-table"
  5088. style={{ marginBottom: 10 }}
  5089. >
  5090. <Spin spinning={this.state.loading}>
  5091. <Table
  5092. columns={this.state.columns}
  5093. scroll={{ x: "max-content", y: 0 }}
  5094. dataSource={this.state.dataSource}
  5095. pagination={this.state.pagination}
  5096. onRowClick={this.tableRowClick}
  5097. bordered
  5098. size="small"
  5099. />
  5100. </Spin>
  5101. </div>
  5102. {/*<div*/}
  5103. {/* style={{*/}
  5104. {/* display: cuiDataList.length ? "block" : "none",*/}
  5105. {/* }}*/}
  5106. {/*>*/}
  5107. {/* <span*/}
  5108. {/* style={{ marginLeft: "50px", fontSize: "20px" }}*/}
  5109. {/* >*/}
  5110. {/* 旧催款节点*/}
  5111. {/* </span>*/}
  5112. {/* <Button*/}
  5113. {/* type="primary"*/}
  5114. {/* // onClick={this.addcontact}*/}
  5115. {/* disabled*/}
  5116. {/* onClick={(e) => {*/}
  5117. {/* cuiDataList.length*/}
  5118. {/* ? this.addcontact()*/}
  5119. {/* : this.addcontactNew();*/}
  5120. {/* }}*/}
  5121. {/* style={{*/}
  5122. {/* float: "right",*/}
  5123. {/* marginRight: "50px",*/}
  5124. {/* marginBottom: "15px",*/}
  5125. {/* display:*/}
  5126. {/* this.state.processStatus == 0*/}
  5127. {/* ? "block"*/}
  5128. {/* : "none",*/}
  5129. {/* }}*/}
  5130. {/* >*/}
  5131. {/* 添加催款节点*/}
  5132. {/* </Button>*/}
  5133. {/*</div>*/}
  5134. {/*<div*/}
  5135. {/* className="clearfix"*/}
  5136. {/* style={{*/}
  5137. {/* display: cuiDataList.length ? "block" : "none",*/}
  5138. {/* }}*/}
  5139. {/*>*/}
  5140. {/* <Spin spinning={this.state.loading}>*/}
  5141. {/* <Form layout="horizontal">*/}
  5142. {/* <Table*/}
  5143. {/* pagination={false}*/}
  5144. {/* columns={this.state.ContactsLists}*/}
  5145. {/* dataSource={this.state.contactList}*/}
  5146. {/* scroll={{ x: "max-content", y: 0 }}*/}
  5147. {/* bordered*/}
  5148. {/* size="small"*/}
  5149. {/* />*/}
  5150. {/* <Col*/}
  5151. {/* span={24}*/}
  5152. {/* offset={9}*/}
  5153. {/* style={{ marginTop: "15px" }}*/}
  5154. {/* ></Col>*/}
  5155. {/* </Form>*/}
  5156. {/* </Spin>*/}
  5157. {/*</div>*/}
  5158. {/*<div*/}
  5159. {/* style={{*/}
  5160. {/* display: cuiDataList.length ? "none" : "block",*/}
  5161. {/* }}*/}
  5162. {/*>*/}
  5163. {/* <span*/}
  5164. {/* style={{*/}
  5165. {/* marginLeft: "50px",*/}
  5166. {/* fontSize: "20px",*/}
  5167. {/* }}*/}
  5168. {/* >*/}
  5169. {/* 新催款节点*/}
  5170. {/* </span>*/}
  5171. {/* <span*/}
  5172. {/* style={{*/}
  5173. {/* display: "inline-block",*/}
  5174. {/* marginLeft: 10,*/}
  5175. {/* color: "red",*/}
  5176. {/* }}*/}
  5177. {/* >*/}
  5178. {/* 金额总计(万元): {this.state.totalCui}*/}
  5179. {/* </span>*/}
  5180. {/* <Button*/}
  5181. {/* type="primary"*/}
  5182. {/* disabled={this.state.addFlag ? true : false}*/}
  5183. {/* // onClick={this.addcontact}*/}
  5184. {/* onClick={(e) => {*/}
  5185. {/* this.setState({ addFlag: true });*/}
  5186. {/* this.addcontactNew();*/}
  5187. {/* }}*/}
  5188. {/* style={{*/}
  5189. {/* float: "right",*/}
  5190. {/* marginRight: "50px",*/}
  5191. {/* marginBottom: "15px",*/}
  5192. {/* display:*/}
  5193. {/* this.state.processStatus == 0*/}
  5194. {/* ? "block"*/}
  5195. {/* : "none",*/}
  5196. {/* }}*/}
  5197. {/* >*/}
  5198. {/* 添加催款节点*/}
  5199. {/* </Button>*/}
  5200. {/*</div>*/}
  5201. {/*<div*/}
  5202. {/* className="clearfix"*/}
  5203. {/* style={{*/}
  5204. {/* display: cuiDataList.length ? "none" : "block",*/}
  5205. {/* }}*/}
  5206. {/*>*/}
  5207. {/* <Spin spinning={this.state.loading}>*/}
  5208. {/* <Form layout="horizontal">*/}
  5209. {/* <Table*/}
  5210. {/* pagination={false}*/}
  5211. {/* columns={this.state.ContactsListsNew}*/}
  5212. {/* dataSource={this.state.contactListNew}*/}
  5213. {/* scroll={{ x: "max-content", y: 0 }}*/}
  5214. {/* bordered*/}
  5215. {/* size="small"*/}
  5216. {/* />*/}
  5217. {/* <Col*/}
  5218. {/* span={24}*/}
  5219. {/* offset={9}*/}
  5220. {/* style={{ marginTop: "15px" }}*/}
  5221. {/* ></Col>*/}
  5222. {/* </Form>*/}
  5223. {/* </Spin>*/}
  5224. {/*</div>*/}
  5225. {this.state.processStatus == 0 ? (
  5226. <div
  5227. className="addSave"
  5228. style={{ marginTop: "15px" }}
  5229. >
  5230. <Button
  5231. className="cancel"
  5232. type="primary"
  5233. onClick={this.handleCancels}
  5234. style={{ marginLeft: "200px" }}
  5235. htmlType="submit"
  5236. >
  5237. 签单
  5238. </Button>
  5239. <Button
  5240. className="cancel"
  5241. type="primary"
  5242. onClick={this.handleCancelq}
  5243. style={{ marginLeft: "50px" }}
  5244. htmlType="submit"
  5245. >
  5246. 保存
  5247. </Button>
  5248. <Button
  5249. className="cancel"
  5250. type="ghost"
  5251. onClick={this.handleCancelclose}
  5252. style={{ marginLeft: "50px" }}
  5253. >
  5254. 取消
  5255. </Button>
  5256. </div>
  5257. ) : (
  5258. ""
  5259. )}
  5260. </div>
  5261. </TabPane>
  5262. {/*<TabPane tab="合同变更发起" key="2">*/}
  5263. {/* {*/}
  5264. {/* <div>*/}
  5265. {/* <div className="clearfix">*/}
  5266. {/* <FormItem*/}
  5267. {/* className="half-item"*/}
  5268. {/* {...formItemLayout}*/}
  5269. {/* label="客户名称"*/}
  5270. {/* >*/}
  5271. {/* <span>{this.state.userName}</span>*/}
  5272. {/* </FormItem>*/}
  5273. {/* </div>*/}
  5274. {/* <div className="clearfix">*/}
  5275. {/* <FormItem*/}
  5276. {/* className="half-item"*/}
  5277. {/* {...formItemLayout}*/}
  5278. {/* label="合同编号"*/}
  5279. {/* >*/}
  5280. {/* <span>{this.state.contractNo}</span>*/}
  5281. {/* </FormItem>*/}
  5282. {/* </div>*/}
  5283. {/* <div className="clearfix">*/}
  5284. {/* <FormItem*/}
  5285. {/* className="half-item"*/}
  5286. {/* {...formItemLayout}*/}
  5287. {/* label="申请变更部门"*/}
  5288. {/* >*/}
  5289. {/* /!* {!this.state.mark ? ( *!/*/}
  5290. {/* <span>{this.state.depName}</span>*/}
  5291. {/* /!* ) : (*/}
  5292. {/* <span>{contractData.depName}</span>*/}
  5293. {/* )} *!/*/}
  5294. {/* </FormItem>*/}
  5295. {/* <FormItem*/}
  5296. {/* className="half-item"*/}
  5297. {/* {...formItemLayout}*/}
  5298. {/* label="申请人"*/}
  5299. {/* >*/}
  5300. {/* <span>{this.state.salesmanName}</span>*/}
  5301. {/* </FormItem>*/}
  5302. {/* </div>*/}
  5303. {/* <div className="clearfix">*/}
  5304. {/* <FormItem*/}
  5305. {/* labelCol={{ span: 4 }}*/}
  5306. {/* wrapperCol={{ span: 18 }}*/}
  5307. {/* label="变更类型"*/}
  5308. {/* >*/}
  5309. {/* /!* {!this.state.mark ? ( *!/*/}
  5310. {/* <Select*/}
  5311. {/* placeholder="选择合同变更类型"*/}
  5312. {/* style={{ width: 200 }}*/}
  5313. {/* disabled={this.state.changeFlag}*/}
  5314. {/* value={this.state.typeChange}*/}
  5315. {/* onChange={(e) => {*/}
  5316. {/* this.setState({*/}
  5317. {/* typeChange: e,*/}
  5318. {/* changeFlag: true,*/}
  5319. {/* });*/}
  5320. {/* if (e == 1) {*/}
  5321. {/* this.setState({*/}
  5322. {/* hetongFlag: false,*/}
  5323. {/* listFlag: false,*/}
  5324. {/* listCuiFlag: false,*/}
  5325. {/* tuiKuanFlag: false,*/}
  5326. {/* displayList: false,*/}
  5327. {/* });*/}
  5328. {/* } else if (e == 2) {*/}
  5329. {/* this.setState({*/}
  5330. {/* hetongFlag: true,*/}
  5331. {/* listFlag: false,*/}
  5332. {/* listCuiFlag: false,*/}
  5333. {/* tuiKuanFlag: true,*/}
  5334. {/* displayList: false,*/}
  5335. {/* });*/}
  5336. {/* } else if (e == 3) {*/}
  5337. {/* this.setState({*/}
  5338. {/* listFlag: false,*/}
  5339. {/* hetongFlag: false,*/}
  5340. {/* listCuiFlag: false,*/}
  5341. {/* tuiKuanFlag: false,*/}
  5342. {/* displayList: true,*/}
  5343. {/* });*/}
  5344. {/* } else if (e == 4) {*/}
  5345. {/* this.setState({*/}
  5346. {/* listFlag: false,*/}
  5347. {/* listCuiFlag: false,*/}
  5348. {/* hetongFlag: false,*/}
  5349. {/* tuiKuanFlag: true,*/}
  5350. {/* displayList: false,*/}
  5351. {/* });*/}
  5352. {/* } else if (e == 5) {*/}
  5353. {/* this.setState({*/}
  5354. {/* listFlag: false,*/}
  5355. {/* listCuiFlag: false,*/}
  5356. {/* hetongFlag: true,*/}
  5357. {/* tuiKuanFlag: true,*/}
  5358. {/* displayList: false,*/}
  5359. {/* });*/}
  5360. {/* } else {*/}
  5361. {/* this.setState({*/}
  5362. {/* listFlag: true,*/}
  5363. {/* hetongFlag: true,*/}
  5364. {/* listCuiFlag: true,*/}
  5365. {/* tuiKuanFlag: false,*/}
  5366. {/* displayList: false,*/}
  5367. {/* });*/}
  5368. {/* }*/}
  5369. {/* }}*/}
  5370. {/* value={this.state.typeChange}*/}
  5371. {/* >*/}
  5372. {/* <Option value={0}>退单退款</Option>*/}
  5373. {/* <Option value={1}>项目及金额变更</Option>*/}
  5374. {/* <Option value={2}>仅项目变更</Option>*/}
  5375. {/* <Option value={3}>仅金额变更</Option>*/}
  5376. {/* <Option value={4}>重报</Option>*/}
  5377. {/* <Option value={5}>赠送</Option>*/}
  5378. {/* </Select>*/}
  5379. {/* <Button*/}
  5380. {/* style={{ marginLeft: 10 }}*/}
  5381. {/* onClick={(e) => {*/}
  5382. {/* this.setState({*/}
  5383. {/* listFlag: false,*/}
  5384. {/* hetongFlag: false,*/}
  5385. {/* listCuiFlag: false,*/}
  5386. {/* tuiKuanFlag: false,*/}
  5387. {/* displayList: false,*/}
  5388. {/* startRemarks: "",*/}
  5389. {/* remarksC: "",*/}
  5390. {/* voucherUrl: [],*/}
  5391. {/* changeAmount: "0",*/}
  5392. {/* applicant: undefined,*/}
  5393. {/* depNameChange: undefined,*/}
  5394. {/* typeChange: undefined,*/}
  5395. {/* changeFlag: false,*/}
  5396. {/* });*/}
  5397. {/* }}*/}
  5398. {/* >*/}
  5399. {/* 重置*/}
  5400. {/* </Button>*/}
  5401. {/* {this.state.status === 3 ? (*/}
  5402. {/* <Button*/}
  5403. {/* type="danger"*/}
  5404. {/* style={{*/}
  5405. {/* float: "right",*/}
  5406. {/* backgroundColor: "red",*/}
  5407. {/* color: "white",*/}
  5408. {/* position: "absolute",*/}
  5409. {/* right: 0,*/}
  5410. {/* height: 50,*/}
  5411. {/* borderRadius: 20,*/}
  5412. {/* zIndex: 100,*/}
  5413. {/* top: 0,*/}
  5414. {/* }}*/}
  5415. {/* onClick={(e) => {*/}
  5416. {/* e.stopPropagation();*/}
  5417. {/* this.showConfirmChange(this.deleteChange);*/}
  5418. {/* }}*/}
  5419. {/* >*/}
  5420. {/* 取消本次变更*/}
  5421. {/* </Button>*/}
  5422. {/* ) : (*/}
  5423. {/* ""*/}
  5424. {/* )}*/}
  5425. {/* /!* <Button type="danger" >取消本次变更</Button> *!/*/}
  5426. {/* </FormItem>*/}
  5427. {/* </div>*/}
  5428. {/* <div className="clearfix">*/}
  5429. {/* <FormItem*/}
  5430. {/* labelCol={{ span: 4 }}*/}
  5431. {/* wrapperCol={{ span: 18 }}*/}
  5432. {/* label="合同额(万元)"*/}
  5433. {/* >*/}
  5434. {/* /!* {!this.state.mark ? ( *!/*/}
  5435. {/* <Input*/}
  5436. {/* placeholder="请输入合同额"*/}
  5437. {/* disabled={this.state.hetongFlag}*/}
  5438. {/* ref="signTotalAmount"*/}
  5439. {/* value={this.state.totalAmount}*/}
  5440. {/* onChange={(e) => {*/}
  5441. {/* this.setState({*/}
  5442. {/* totalAmount: e.target.value,*/}
  5443. {/* });*/}
  5444. {/* }}*/}
  5445. {/* style={{ width: "240px" }}*/}
  5446. {/* />*/}
  5447. {/* /!* ) : (*/}
  5448. {/* <span>{contractData.totalAmount}</span>*/}
  5449. {/* )} *!/*/}
  5450. {/* </FormItem>*/}
  5451. {/* <FormItem*/}
  5452. {/* labelCol={{ span: 4 }}*/}
  5453. {/* wrapperCol={{ span: 18 }}*/}
  5454. {/* label="已收款(万元)"*/}
  5455. {/* >*/}
  5456. {/* <span>*/}
  5457. {/* {this.state.settlementAmount}*/}
  5458. {/* &nbsp;&nbsp;&nbsp;&nbsp;*/}
  5459. {/* <span style={{ color: "red" }}>*/}
  5460. {/* (注:已收款与现实收款不符,请与财务专员联系)*/}
  5461. {/* </span>*/}
  5462. {/* </span>*/}
  5463. {/* </FormItem>*/}
  5464. {/* <FormItem*/}
  5465. {/* labelCol={{ span: 4 }}*/}
  5466. {/* wrapperCol={{ span: 18 }}*/}
  5467. {/* label="申请退款(万元)"*/}
  5468. {/* >*/}
  5469. {/* /!* {!this.state.mark ? ( *!/*/}
  5470. {/* <Input*/}
  5471. {/* placeholder="请输入申请退款"*/}
  5472. {/* ref="signTotalAmount"*/}
  5473. {/* disabled={this.state.tuiKuanFlag}*/}
  5474. {/* value={this.state.changeAmount}*/}
  5475. {/* onChange={(e) => {*/}
  5476. {/* this.setState({*/}
  5477. {/* changeAmount: e.target.value,*/}
  5478. {/* });*/}
  5479. {/* }}*/}
  5480. {/* style={{ width: "240px" }}*/}
  5481. {/* />*/}
  5482. {/* /!* ) : (*/}
  5483. {/* <span>{contractData.changeAmount}</span>*/}
  5484. {/* )} *!/*/}
  5485. {/* </FormItem>*/}
  5486. {/* </div>*/}
  5487. {/* /!* 动态展示项目以及催款节点 *!/*/}
  5488. {/* <div*/}
  5489. {/* style={{*/}
  5490. {/* display: this.state.isCaoGao ? "block" : "none",*/}
  5491. {/* }}*/}
  5492. {/* >*/}
  5493. {/* <div>*/}
  5494. {/* <span*/}
  5495. {/* style={{*/}
  5496. {/* marginLeft: "50px",*/}
  5497. {/* fontSize: "20px",*/}
  5498. {/* }}*/}
  5499. {/* >*/}
  5500. {/* 项目业务*/}
  5501. {/* </span>*/}
  5502. {/* <span style={{ color: "red" }}>*/}
  5503. {/* (注:项目删除后,此项目的全部节点、全部工时,全部被删除,请谨慎删除!双击可修改对应金额数量!)*/}
  5504. {/* </span>*/}
  5505. {/* <Button*/}
  5506. {/* type="primary"*/}
  5507. {/* onClick={this.changeAddPro}*/}
  5508. {/* disabled={this.state.listFlag}*/}
  5509. {/* style={{*/}
  5510. {/* float: "right",*/}
  5511. {/* marginRight: "50px",*/}
  5512. {/* marginBottom: "15px",*/}
  5513. {/* display: this.state.displayList*/}
  5514. {/* ? "none"*/}
  5515. {/* : "block",*/}
  5516. {/* }}*/}
  5517. {/* >*/}
  5518. {/* 添加项目明细*/}
  5519. {/* </Button>*/}
  5520. {/* </div>*/}
  5521. {/* <div*/}
  5522. {/* className="patent-table"*/}
  5523. {/* style={{ marginBottom: 10 }}*/}
  5524. {/* >*/}
  5525. {/* <Spin spinning={this.state.loading}>*/}
  5526. {/* <Table*/}
  5527. {/* columns={this.state.proColumns}*/}
  5528. {/* dataSource={this.state.proDataSource}*/}
  5529. {/* scroll={{ x: "max-content", y: 0 }}*/}
  5530. {/* expandedRowRender={expandedRowRender}*/}
  5531. {/* pagination={this.state.pagination}*/}
  5532. {/* onRowDoubleClick={*/}
  5533. {/* this.state.listFlag*/}
  5534. {/* ? this.not*/}
  5535. {/* : this.editPro*/}
  5536. {/* }*/}
  5537. {/* bordered*/}
  5538. {/* size="small"*/}
  5539. {/* />*/}
  5540. {/* </Spin>*/}
  5541. {/* </div>*/}
  5542. {/* <div>*/}
  5543. {/* <span*/}
  5544. {/* style={{*/}
  5545. {/* marginLeft: "50px",*/}
  5546. {/* fontSize: "20px",*/}
  5547. {/* }}*/}
  5548. {/* >*/}
  5549. {/* 催款节点*/}
  5550. {/* </span>*/}
  5551. {/* <span style={{ color: "red" }}>*/}
  5552. {/* (注:节点删除后,无论节点是否触发,均会删除,请谨慎删除!双击可修改对应金额!)*/}
  5553. {/* </span>*/}
  5554. {/* /!* <span*/}
  5555. {/* style={{*/}
  5556. {/* display: "inline-block",*/}
  5557. {/* marginLeft: 10,*/}
  5558. {/* color: "red"*/}
  5559. {/* }}*/}
  5560. {/* >*/}
  5561. {/* 金额总计(万元): {this.state.totalCui}*/}
  5562. {/* </span> *!/*/}
  5563. {/* <Button*/}
  5564. {/* type="primary"*/}
  5565. {/* onClick={(e) => {*/}
  5566. {/* this.changeAddCui();*/}
  5567. {/* }}*/}
  5568. {/* disabled={this.state.listCuiFlag}*/}
  5569. {/* style={{*/}
  5570. {/* float: "right",*/}
  5571. {/* marginRight: "50px",*/}
  5572. {/* marginBottom: "15px",*/}
  5573. {/* display: this.state.displayList*/}
  5574. {/* ? "none"*/}
  5575. {/* : "block",*/}
  5576. {/* }}*/}
  5577. {/* >*/}
  5578. {/* 添加催款节点*/}
  5579. {/* </Button>*/}
  5580. {/* </div>*/}
  5581. {/* <div className="clearfix">*/}
  5582. {/* <Spin spinning={this.state.loading}>*/}
  5583. {/* <Form layout="horizontal">*/}
  5584. {/* <Table*/}
  5585. {/* pagination={false}*/}
  5586. {/* columns={this.state.changeCuiList}*/}
  5587. {/* dataSource={this.state.cuiDataSource}*/}
  5588. {/* scroll={{ x: "max-content", y: 0 }}*/}
  5589. {/* onRowDoubleClick={*/}
  5590. {/* this.state.listCuiFlag*/}
  5591. {/* ? this.not*/}
  5592. {/* : this.editCui*/}
  5593. {/* }*/}
  5594. {/* bordered*/}
  5595. {/* size="small"*/}
  5596. {/* />*/}
  5597. {/* <Col*/}
  5598. {/* span={24}*/}
  5599. {/* offset={9}*/}
  5600. {/* style={{ marginTop: "15px" }}*/}
  5601. {/* ></Col>*/}
  5602. {/* </Form>*/}
  5603. {/* </Spin>*/}
  5604. {/* </div>*/}
  5605. {/* </div>*/}
  5606. {/* <div className="clearfix">*/}
  5607. {/* <FormItem*/}
  5608. {/* style={{ height: "auto" }}*/}
  5609. {/* labelCol={{ span: 4 }}*/}
  5610. {/* wrapperCol={{ span: 18 }}*/}
  5611. {/* label="变更原因"*/}
  5612. {/* >*/}
  5613. {/* /!* {!this.state.mark ? ( *!/*/}
  5614. {/* <TextArea*/}
  5615. {/* rows={4}*/}
  5616. {/* placeholder="请输入变更原因"*/}
  5617. {/* ref="signTotalAmount"*/}
  5618. {/* style={{ width: "95%" }}*/}
  5619. {/* value={this.state.remarksC}*/}
  5620. {/* onChange={(e) => {*/}
  5621. {/* this.setState({*/}
  5622. {/* remarksC: e.target.value,*/}
  5623. {/* });*/}
  5624. {/* }}*/}
  5625. {/* />*/}
  5626. {/* /!* ) : (*/}
  5627. {/* <span>{contractData.remarks}</span>*/}
  5628. {/* )} *!/*/}
  5629. {/* </FormItem>*/}
  5630. {/* </div>*/}
  5631. {/* <div className="clearfix">*/}
  5632. {/* <FormItem*/}
  5633. {/* style={{ height: "auto" }}*/}
  5634. {/* labelCol={{ span: 4 }}*/}
  5635. {/* wrapperCol={{ span: 18 }}*/}
  5636. {/* label="备注"*/}
  5637. {/* >*/}
  5638. {/* /!* {!this.state.mark ? ( *!/*/}
  5639. {/* <TextArea*/}
  5640. {/* rows={4}*/}
  5641. {/* placeholder="请输入备注"*/}
  5642. {/* ref="signTotalAmount"*/}
  5643. {/* style={{ width: "95%" }}*/}
  5644. {/* value={this.state.startRemarks}*/}
  5645. {/* onChange={(e) => {*/}
  5646. {/* this.setState({*/}
  5647. {/* startRemarks: e.target.value,*/}
  5648. {/* });*/}
  5649. {/* }}*/}
  5650. {/* />*/}
  5651. {/* /!* ) : (*/}
  5652. {/* <span>{contractData.startRemarks}</span>*/}
  5653. {/* )} *!/*/}
  5654. {/* </FormItem>*/}
  5655. {/* </div>*/}
  5656. {/* /!* ---- *!/*/}
  5657. {/* <div className="clearfix">*/}
  5658. {/* <FormItem*/}
  5659. {/* labelCol={{ span: 4 }}*/}
  5660. {/* wrapperCol={{ span: 18 }}*/}
  5661. {/* label="变更凭证"*/}
  5662. {/* >*/}
  5663. {/* /!* {!this.state.mark ? ( *!/*/}
  5664. {/* <PicturesWall*/}
  5665. {/* domId={'addService5'}*/}
  5666. {/* fileList={this.getVoucherUrl}*/}
  5667. {/* pictureUrl={this.state.voucherUrl}*/}
  5668. {/* url="/api/admin/orderChange/uploadFile"*/}
  5669. {/* sign="order_change_file"*/}
  5670. {/* />*/}
  5671. {/* /!* ) : (*/}
  5672. {/* <div>*/}
  5673. {/* <Upload*/}
  5674. {/* className="demandDetailShow-upload"*/}
  5675. {/* listType="picture-card"*/}
  5676. {/* fileList={this.state.voucherUrl}*/}
  5677. {/* onPreview={file => {*/}
  5678. {/* this.setState({*/}
  5679. {/* previewImage:*/}
  5680. {/* file.url || file.thumbUrl,*/}
  5681. {/* previewVisible: true*/}
  5682. {/* });*/}
  5683. {/* }}*/}
  5684. {/* />*/}
  5685. {/* <Modal*/}
  5686. {/* maskClosable={false}*/}
  5687. {/* footer={null}*/}
  5688. {/* visible={this.state.previewVisible}*/}
  5689. {/* onCancel={() => {*/}
  5690. {/* this.setState({*/}
  5691. {/* previewVisible: false*/}
  5692. {/* });*/}
  5693. {/* }}*/}
  5694. {/* >*/}
  5695. {/* <img*/}
  5696. {/* alt=""*/}
  5697. {/* style={{ width: "100%" }}*/}
  5698. {/* src={this.state.previewImage || ""}*/}
  5699. {/* />*/}
  5700. {/* </Modal>*/}
  5701. {/* </div>*/}
  5702. {/* )} *!/*/}
  5703. {/* <p>图片建议:要清晰。</p>*/}
  5704. {/* </FormItem>*/}
  5705. {/* </div>*/}
  5706. {/* /!* {!this.state.mark ? ( *!/*/}
  5707. {/* <div className="clearfix">*/}
  5708. {/* <Button*/}
  5709. {/* type="primary"*/}
  5710. {/* style={{ float: "right", marginRight: 40 }}*/}
  5711. {/* // onClick={this.changeApply}*/}
  5712. {/* onClick={(e) => {*/}
  5713. {/* if (this.state.isCaoGao) {*/}
  5714. {/* this.submitChange();*/}
  5715. {/* } else {*/}
  5716. {/* this.changeApply();*/}
  5717. {/* }*/}
  5718. {/* }}*/}
  5719. {/* >*/}
  5720. {/* {this.state.isCaoGao*/}
  5721. {/* ? "发起变更申请"*/}
  5722. {/* : this.state.typeChange == 0*/}
  5723. {/* ? "发起变更申请"*/}
  5724. {/* : "下一步"}*/}
  5725. {/* </Button>*/}
  5726. {/* </div>*/}
  5727. {/* /!* ) : (*/}
  5728. {/* ""*/}
  5729. {/* )} *!/*/}
  5730. {/* </div>*/}
  5731. {/* }*/}
  5732. {/*</TabPane>*/}
  5733. {/*{this.state.isJilu ? (*/}
  5734. {/* <TabPane tab={"最近变更记录"} key="3">*/}
  5735. {/* <div>*/}
  5736. {/* <div*/}
  5737. {/* style={{*/}
  5738. {/* borderRadius: "50%",*/}
  5739. {/* width: 300,*/}
  5740. {/* height: 300,*/}
  5741. {/* position: "absolute",*/}
  5742. {/* top: 230,*/}
  5743. {/* left: 525,*/}
  5744. {/* transform: "rotate(-5deg)",*/}
  5745. {/* zIndex: 1,*/}
  5746. {/* display:*/}
  5747. {/* this.state.detailChange.status == 4*/}
  5748. {/* ? "block"*/}
  5749. {/* : "none",*/}
  5750. {/* }}*/}
  5751. {/* >*/}
  5752. {/* <img src={tongguo} style={{ width: "100%" }} />*/}
  5753. {/* </div>*/}
  5754. {/* <div*/}
  5755. {/* style={{*/}
  5756. {/* borderRadius: "50%",*/}
  5757. {/* width: 300,*/}
  5758. {/* height: 300,*/}
  5759. {/* position: "absolute",*/}
  5760. {/* top: 284,*/}
  5761. {/* left: 586,*/}
  5762. {/* transform: "rotate(-5deg)",*/}
  5763. {/* zIndex: 1,*/}
  5764. {/* display:*/}
  5765. {/* this.state.detailChange.status == 5*/}
  5766. {/* ? "block"*/}
  5767. {/* : "none",*/}
  5768. {/* }}*/}
  5769. {/* >*/}
  5770. {/* <img src={quxiao} style={{ width: "63%" }} />*/}
  5771. {/* </div>*/}
  5772. {/* <div className="clearfix">*/}
  5773. {/* <FormItem*/}
  5774. {/* className="half-item"*/}
  5775. {/* {...formItemLayout}*/}
  5776. {/* label="客户名称"*/}
  5777. {/* >*/}
  5778. {/* <span>{this.state.userName}</span>*/}
  5779. {/* </FormItem>*/}
  5780. {/* /!* *!/*/}
  5781. {/* <FormItem*/}
  5782. {/* className="half-item"*/}
  5783. {/* {...formItemLayout}*/}
  5784. {/* label="合同编号"*/}
  5785. {/* >*/}
  5786. {/* <span>{this.state.contractNo}</span>*/}
  5787. {/* </FormItem>*/}
  5788. {/* </div>*/}
  5789. {/* <div className="clearfix">*/}
  5790. {/* <FormItem*/}
  5791. {/* className="half-item"*/}
  5792. {/* {...formItemLayout}*/}
  5793. {/* label="时间"*/}
  5794. {/* >*/}
  5795. {/* <span>*/}
  5796. {/* {this.state.detailChange.createTimes}*/}
  5797. {/* </span>*/}
  5798. {/* </FormItem>*/}
  5799. {/* <FormItem*/}
  5800. {/* className="half-item"*/}
  5801. {/* {...formItemLayout}*/}
  5802. {/* label="申请人"*/}
  5803. {/* >*/}
  5804. {/* <span>{this.state.salesmanName}</span>*/}
  5805. {/* </FormItem>*/}
  5806. {/* </div>*/}
  5807. {/* <div className="clearfix">*/}
  5808. {/* <FormItem*/}
  5809. {/* className="half-item"*/}
  5810. {/* {...formItemLayout}*/}
  5811. {/* label="当前进度"*/}
  5812. {/* >*/}
  5813. {/* <span>*/}
  5814. {/* /!*当前是进度角色是咨询师以及咨询师经理时使用shenhePeo函数,其他流程正常显示*!/*/}
  5815. {/* {*/}
  5816. {/* this.state.detailChange.processState === 2 || this.state.detailChange.processState === 3*/}
  5817. {/* ? shenghePeo(*/}
  5818. {/* this.state.detailChange.processState === 2*/}
  5819. {/* ? this.state.detailChange.consultantExamine*/}
  5820. {/* : this.state.detailChange.managerExamine,*/}
  5821. {/* this.state.detailChange.processState*/}
  5822. {/* )*/}
  5823. {/* : getProcessStatusNew(*/}
  5824. {/* this.state.detailChange.processState,*/}
  5825. {/* this.state.detailChange.status*/}
  5826. {/* )*/}
  5827. {/* }*/}
  5828. {/* </span>*/}
  5829. {/* </FormItem>*/}
  5830. {/* /!* <FormItem*/}
  5831. {/* className="half-item"*/}
  5832. {/* {...formItemLayout}*/}
  5833. {/* label="申请变更部门"*/}
  5834. {/* >*/}
  5835. {/* <span>{this.state.depName}</span>*/}
  5836. {/* </FormItem> *!/*/}
  5837. {/* <FormItem*/}
  5838. {/* {...formItemLayout}*/}
  5839. {/* className="half-item"*/}
  5840. {/* label="变更类型"*/}
  5841. {/* >*/}
  5842. {/* <span>*/}
  5843. {/* {getChangeType(*/}
  5844. {/* this.state.detailChange.typeChange*/}
  5845. {/* )}*/}
  5846. {/* </span>*/}
  5847. {/* </FormItem>*/}
  5848. {/* </div>*/}
  5849. {/* /!* <div className="clearfix">*/}
  5850. {/* <FormItem*/}
  5851. {/* labelCol={{ span: 4 }}*/}
  5852. {/* wrapperCol={{ span: 18 }}*/}
  5853. {/* label="变更类型"*/}
  5854. {/* >*/}
  5855. {/* <span>*/}
  5856. {/* {getChangeType(*/}
  5857. {/* this.state.detailChange.typeChange*/}
  5858. {/* )}*/}
  5859. {/* </span>*/}
  5860. {/* </FormItem>*/}
  5861. {/* </div> *!/*/}
  5862. {/* <div className="clearfix">*/}
  5863. {/* <FormItem*/}
  5864. {/* {...formItemLayout}*/}
  5865. {/* className="half-item"*/}
  5866. {/* label="合同额(万元)"*/}
  5867. {/* >*/}
  5868. {/* <span>*/}
  5869. {/* {this.state.detailChange.totalAmount}*/}
  5870. {/* </span>*/}
  5871. {/* </FormItem>*/}
  5872. {/* <FormItem*/}
  5873. {/* {...formItemLayout}*/}
  5874. {/* className="half-item"*/}
  5875. {/* label="已收款(万元)"*/}
  5876. {/* >*/}
  5877. {/* <span>*/}
  5878. {/* {this.state.detailChange.settlementAmount}*/}
  5879. {/* </span>*/}
  5880. {/* </FormItem>*/}
  5881. {/* </div>*/}
  5882. {/* <div className="clearfix">*/}
  5883. {/* <FormItem*/}
  5884. {/* {...formItemLayout}*/}
  5885. {/* className="half-item"*/}
  5886. {/* label="欠款(万元)"*/}
  5887. {/* >*/}
  5888. {/* <span>{this.state.detailChange.arrears}</span>*/}
  5889. {/* </FormItem>*/}
  5890. {/* <FormItem*/}
  5891. {/* {...formItemLayout}*/}
  5892. {/* className="half-item"*/}
  5893. {/* label="申请退款(万元)"*/}
  5894. {/* >*/}
  5895. {/* <span>*/}
  5896. {/* {this.state.detailChange.changeAmount}*/}
  5897. {/* </span>*/}
  5898. {/* </FormItem>*/}
  5899. {/* </div>*/}
  5900. {/* <div className="clearfix">*/}
  5901. {/* <FormItem*/}
  5902. {/* style={{ height: "auto" }}*/}
  5903. {/* labelCol={{ span: 4 }}*/}
  5904. {/* wrapperCol={{ span: 18 }}*/}
  5905. {/* label="变更原因"*/}
  5906. {/* >*/}
  5907. {/* <span>{this.state.detailChange.remarksC}</span>*/}
  5908. {/* </FormItem>*/}
  5909. {/* </div>*/}
  5910. {/* <div className="clearfix">*/}
  5911. {/* <FormItem*/}
  5912. {/* style={{ height: "auto" }}*/}
  5913. {/* labelCol={{ span: 4 }}*/}
  5914. {/* wrapperCol={{ span: 18 }}*/}
  5915. {/* label="备注"*/}
  5916. {/* >*/}
  5917. {/* <span>*/}
  5918. {/* {this.state.detailChange.startRemarks}*/}
  5919. {/* </span>*/}
  5920. {/* </FormItem>*/}
  5921. {/* </div>*/}
  5922. {/* /!* ---- *!/*/}
  5923. {/* <div className="clearfix">*/}
  5924. {/* <FormItem*/}
  5925. {/* labelCol={{ span: 4 }}*/}
  5926. {/* wrapperCol={{ span: 18 }}*/}
  5927. {/* label="变更凭证"*/}
  5928. {/* >*/}
  5929. {/* <div>*/}
  5930. {/* /!*<Upload*!/*/}
  5931. {/* /!* className="demandDetailShow-upload"*!/*/}
  5932. {/* /!* listType="picture-card"*!/*/}
  5933. {/* /!* fileList={*!/*/}
  5934. {/* /!* this.state.detailChange.voucherUrl*!/*/}
  5935. {/* /!* }*!/*/}
  5936. {/* /!* onPreview={(file) => {*!/*/}
  5937. {/* /!* this.setState({*!/*/}
  5938. {/* /!* previewImage: file.url || file.thumbUrl,*!/*/}
  5939. {/* /!* previewVisible: true,*!/*/}
  5940. {/* /!* });*!/*/}
  5941. {/* /!* }}*!/*/}
  5942. {/*/>*/}
  5943. {/* <div style={{paddingTop:'10px',paddingBottom:'10px'}}>*/}
  5944. {/* {*/}
  5945. {/* this.state.detailChange &&*/}
  5946. {/* this.state.detailChange.voucherUrl &&*/}
  5947. {/* this.state.activeKey === '3' &&*/}
  5948. {/* this.state.visible?*/}
  5949. {/* <ImgList fileList={this.state.detailChange.voucherUrl} ItemWidth={'96px'}/>*/}
  5950. {/* : <div/>*/}
  5951. {/* }*/}
  5952. {/* </div>*/}
  5953. {/* /!*<Modal*!/*/}
  5954. {/* /!* maskClosable={false}*!/*/}
  5955. {/* /!* footer={null}*!/*/}
  5956. {/* /!* visible={this.state.previewVisible}*!/*/}
  5957. {/* /!* onCancel={() => {*!/*/}
  5958. {/* /!* this.setState({*!/*/}
  5959. {/* /!* previewVisible: false,*!/*/}
  5960. {/* /!* });*!/*/}
  5961. {/* /!* }}*!/*/}
  5962. {/* /!*>*!/*/}
  5963. {/* /!* <img*!/*/}
  5964. {/* /!* alt=""*!/*/}
  5965. {/* /!* style={{ width: "100%" }}*!/*/}
  5966. {/* /!* src={this.state.previewImage || ""}*!/*/}
  5967. {/* /!* />*!/*/}
  5968. {/* /!*</Modal>*!/*/}
  5969. {/* {this.state.status === 3 ? (*/}
  5970. {/* <Button*/}
  5971. {/* type="danger"*/}
  5972. {/* style={{*/}
  5973. {/* float: "right",*/}
  5974. {/* backgroundColor: "red",*/}
  5975. {/* color: "white",*/}
  5976. {/* position: "absolute",*/}
  5977. {/* right: 0,*/}
  5978. {/* height: 50,*/}
  5979. {/* borderRadius: 20,*/}
  5980. {/* zIndex: 100,*/}
  5981. {/* top: 0,*/}
  5982. {/* }}*/}
  5983. {/* onClick={(e) => {*/}
  5984. {/* e.stopPropagation();*/}
  5985. {/* this.showConfirmChange(this.deleteChange);*/}
  5986. {/* }}*/}
  5987. {/* >*/}
  5988. {/* 取消本次变更*/}
  5989. {/* </Button>*/}
  5990. {/* ) : (*/}
  5991. {/* ""*/}
  5992. {/* )}*/}
  5993. {/* </div>*/}
  5994. {/* </FormItem>*/}
  5995. {/* </div>*/}
  5996. {/* <ul*/}
  5997. {/* style={{*/}
  5998. {/* width: "868px",*/}
  5999. {/* overflow: "hidden",*/}
  6000. {/* paddingLeft: "90px",*/}
  6001. {/* paddingTop: "10px",*/}
  6002. {/* position: "relative",*/}
  6003. {/* bottom: "20px",*/}
  6004. {/* fontSize: "12px",*/}
  6005. {/* color: "rgba(0, 0, 0, 0.65)",*/}
  6006. {/* }}*/}
  6007. {/* >*/}
  6008. {/* /!* <span>操作人:</span> *!/*/}
  6009. {/* {this.state.logData.map((item, index) => {*/}
  6010. {/* if (item.status == 0) {*/}
  6011. {/* item.status = "发起";*/}
  6012. {/* } else if (item.status == 1) {*/}
  6013. {/* item.status = "审核中";*/}
  6014. {/* } else if (item.status == 2) {*/}
  6015. {/* item.status = "通过";*/}
  6016. {/* } else if (item.status == 3) {*/}
  6017. {/* item.status = "驳回";*/}
  6018. {/* } else if (item.status == 4) {*/}
  6019. {/* item.status = "完成";*/}
  6020. {/* }*/}
  6021. {/* return (*/}
  6022. {/* <li*/}
  6023. {/* key={index}*/}
  6024. {/* style={{*/}
  6025. {/* width: "100%",*/}
  6026. {/* height: "auto",*/}
  6027. {/* wordBreak: "break-all",*/}
  6028. {/* marginBottom: "10px",*/}
  6029. {/* }}*/}
  6030. {/* >*/}
  6031. {/* {item.aname +*/}
  6032. {/* ":" +*/}
  6033. {/* "(" +*/}
  6034. {/* item.status +*/}
  6035. {/* ")" +*/}
  6036. {/* item.remarks}*/}
  6037. {/* </li>*/}
  6038. {/* );*/}
  6039. {/* })}*/}
  6040. {/* </ul>*/}
  6041. {/* /!* 动态展示项目以及催款节点 *!/*/}
  6042. {/* <div>*/}
  6043. {/* <div>*/}
  6044. {/* <span*/}
  6045. {/* style={{*/}
  6046. {/* marginLeft: "50px",*/}
  6047. {/* fontSize: "20px",*/}
  6048. {/* }}*/}
  6049. {/* >*/}
  6050. {/* 项目业务*/}
  6051. {/* </span>*/}
  6052. {/* </div>*/}
  6053. {/* <div*/}
  6054. {/* className="patent-table"*/}
  6055. {/* style={{ marginBottom: 10 }}*/}
  6056. {/* >*/}
  6057. {/* <Spin spinning={this.state.loading}>*/}
  6058. {/* <Table*/}
  6059. {/* columns={this.state.detailColumns}*/}
  6060. {/* dataSource={this.state.proDataSource}*/}
  6061. {/* expandedRowRender={expandedRowRenderDetail}*/}
  6062. {/* pagination={this.state.pagination}*/}
  6063. {/* // onRowClick={this.tableRowClick}*/}
  6064. {/* bordered*/}
  6065. {/* size="small"*/}
  6066. {/* />*/}
  6067. {/* </Spin>*/}
  6068. {/* </div>*/}
  6069. {/* <div>*/}
  6070. {/* <span*/}
  6071. {/* style={{*/}
  6072. {/* marginLeft: "50px",*/}
  6073. {/* fontSize: "20px",*/}
  6074. {/* }}*/}
  6075. {/* >*/}
  6076. {/* 催款节点*/}
  6077. {/* </span>*/}
  6078. {/* </div>*/}
  6079. {/* <div className="clearfix">*/}
  6080. {/* <Spin spinning={this.state.loading}>*/}
  6081. {/* <Form layout="horizontal">*/}
  6082. {/* <Table*/}
  6083. {/* pagination={false}*/}
  6084. {/* columns={this.state.detailContactsLists}*/}
  6085. {/* dataSource={this.state.cuiDataSource}*/}
  6086. {/* scroll={{ x: "max-content", y: 0 }}*/}
  6087. {/* bordered*/}
  6088. {/* size="small"*/}
  6089. {/* />*/}
  6090. {/* <Col*/}
  6091. {/* span={24}*/}
  6092. {/* offset={9}*/}
  6093. {/* style={{ marginTop: "15px" }}*/}
  6094. {/* ></Col>*/}
  6095. {/* </Form>*/}
  6096. {/* </Spin>*/}
  6097. {/* </div>*/}
  6098. {/* </div>*/}
  6099. {/* </div>*/}
  6100. {/* </TabPane>*/}
  6101. {/*) : (*/}
  6102. {/* ""*/}
  6103. {/*)}*/}
  6104. </Tabs>
  6105. )}
  6106. </div>
  6107. </Spin>
  6108. </Form>
  6109. </Modal>
  6110. <Modal
  6111. maskClosable={false}
  6112. visible={this.state.addnextVisible}
  6113. onOk={this.nextCancel}
  6114. onCancel={this.nextCancel}
  6115. width="800px"
  6116. title={this.state.addState ? "添加项目任务" : "项目任务详情"}
  6117. footer=""
  6118. className="admin-desc-content"
  6119. >
  6120. <Form
  6121. layout="horizontal"
  6122. onSubmit={this.nextSubmit}
  6123. // id="demand-form"
  6124. >
  6125. <Spin spinning={this.state.loading}>
  6126. {this.state.addState ? (
  6127. <div className="clearfix">
  6128. <FormItem
  6129. className="half-item"
  6130. {...formItemLayout}
  6131. label="服务名称"
  6132. >
  6133. <AutoComplete
  6134. size='small'
  6135. className="certain-category-search"
  6136. dropdownClassName="certain-category-search-dropdown"
  6137. dropdownMatchSelectWidth={false}
  6138. dropdownStyle={{ width: 200 }}
  6139. style={{ width: "200px" }}
  6140. dataSource={options}
  6141. placeholder="输入服务名称"
  6142. value={this.state.commodityName}
  6143. onChange={this.httpChange}
  6144. filterOption={true}
  6145. onSelect={this.selectAuto}
  6146. >
  6147. <Input />
  6148. </AutoComplete>
  6149. <span className="mandatory">*</span>
  6150. </FormItem>
  6151. <FormItem
  6152. className="half-item"
  6153. {...formItemLayout}
  6154. label="服务数量"
  6155. >
  6156. <Input
  6157. placeholder="请输入服务数量"
  6158. value={this.state.commodityQuantity}
  6159. style={{ width: "200px" }}
  6160. onChange={(e) => {
  6161. this.setState({ commodityQuantity: e.target.value });
  6162. }}
  6163. ref="commodityQuantity"
  6164. />
  6165. <span className="mandatory">*</span>
  6166. </FormItem>
  6167. {/*<FormItem*/}
  6168. {/* className="half-item"*/}
  6169. {/* labelCol={{ span: 3 }}*/}
  6170. {/* wrapperCol={{ span: 14 }}*/}
  6171. {/* label="官费:"*/}
  6172. {/* style={{*/}
  6173. {/* display: this.state.displayFees,*/}
  6174. {/* marginLeft: "55px",*/}
  6175. {/* }}*/}
  6176. {/*>*/}
  6177. {/* <span style={{ color: "red", marginRight: "27px" }}>*/}
  6178. {/* **/}
  6179. {/* </span>*/}
  6180. {/* <Radio.Group*/}
  6181. {/* value={this.state.officialCost}*/}
  6182. {/* onChange={(e) => {*/}
  6183. {/* this.setState({ officialCost: e.target.value });*/}
  6184. {/* }}*/}
  6185. {/* >*/}
  6186. {/* <Radio value="1">含官费</Radio>*/}
  6187. {/* <Radio value="0">不含官费</Radio>*/}
  6188. {/* </Radio.Group>*/}
  6189. {/*</FormItem>*/}
  6190. <FormItem
  6191. className="half-item"
  6192. labelCol={{ span: 3 }}
  6193. wrapperCol={{ span: 14 }}
  6194. label="费减:"
  6195. style={{
  6196. display: this.state.displayFees,
  6197. marginLeft: "55px",
  6198. }}
  6199. >
  6200. <span style={{ color: "red", marginRight: "27px" }}>
  6201. *
  6202. </span>
  6203. <Radio.Group
  6204. value={this.state.costReduction}
  6205. onChange={(e) => {
  6206. this.setState({ costReduction: e.target.value });
  6207. }}
  6208. >
  6209. <Radio value="1">有费减</Radio>
  6210. <Radio value="0">无费减</Radio>
  6211. </Radio.Group>
  6212. </FormItem>
  6213. <FormItem
  6214. className="half-item"
  6215. {...formItemLayout}
  6216. label="实签价格(万元)"
  6217. >
  6218. <Input
  6219. placeholder="请输入实签价格"
  6220. value={this.state.commodityPrice}
  6221. style={{ width: "200px" }}
  6222. onChange={(e) => {
  6223. this.setState({ commodityPrice: e.target.value });
  6224. }}
  6225. ref="commodityPrice"
  6226. />
  6227. <span className="mandatory">*</span>
  6228. </FormItem>
  6229. <FormItem
  6230. className="half-item"
  6231. {...formItemLayout}
  6232. label="主要业务"
  6233. >
  6234. <Select
  6235. placeholder="选择是否为主要业务"
  6236. style={{ width: "200px" }}
  6237. value={this.state.main}
  6238. onChange={(e) => {
  6239. this.setState({ main: e });
  6240. }}
  6241. >
  6242. {boutique.map(function (item) {
  6243. return (
  6244. <Select.Option key={item.value}>
  6245. {item.key}
  6246. </Select.Option>
  6247. );
  6248. })}
  6249. </Select>
  6250. <span className="mandatory">*</span>
  6251. </FormItem>
  6252. <div className="clearfix">
  6253. <FormItem
  6254. labelCol={{ span: 4 }}
  6255. wrapperCol={{ span: 16 }}
  6256. label="服务说明"
  6257. >
  6258. <Input
  6259. type="textarea"
  6260. placeholder="请输入服务说明"
  6261. value={this.state.taskComment}
  6262. onChange={(e) => {
  6263. this.setState({ taskComment: e.target.value });
  6264. }}
  6265. />
  6266. </FormItem>
  6267. </div>
  6268. {/*0通用 1专利 2软著 3审计 4双软 5高新 6商标*/}
  6269. {this.state.addProjectType === 5 ?
  6270. <div className="clearfix">
  6271. <FormItem
  6272. className="half-item"
  6273. {...formItemLayout}
  6274. label="企业要求申报批次"
  6275. >
  6276. <Select
  6277. placeholder="请选择企业要求申报批次"
  6278. style={{ width: "200px" }}
  6279. value={this.state.declarationBatch}
  6280. onChange={(e) => {
  6281. this.setState({ declarationBatch: e });
  6282. }}
  6283. >
  6284. <Select.Option value={1}>
  6285. 第一批
  6286. </Select.Option>
  6287. <Select.Option value={2}>
  6288. 第二批
  6289. </Select.Option>
  6290. <Select.Option value={3}>
  6291. 第三批
  6292. </Select.Option>
  6293. <Select.Option value={4}>
  6294. 第四批
  6295. </Select.Option>
  6296. </Select>
  6297. <span className="mandatory">*</span>
  6298. </FormItem>
  6299. </div>: null
  6300. }
  6301. {
  6302. this.state.isIso?<div className="clearfix">
  6303. <FormItem
  6304. className="half-item"
  6305. {...formItemLayout}
  6306. label="是否包含认证费用"
  6307. >
  6308. <Select
  6309. placeholder="请选择是否包含认证费用"
  6310. style={{ width: "200px" }}
  6311. value={this.state.ifCertificationFee}
  6312. onChange={(e) => {
  6313. this.setState({ ifCertificationFee: e });
  6314. }}
  6315. >
  6316. <Select.Option value={'0'}>
  6317. </Select.Option>
  6318. <Select.Option value={'1'}>
  6319. </Select.Option>
  6320. </Select>
  6321. <span className="mandatory">*</span>
  6322. </FormItem>
  6323. </div>: null
  6324. }
  6325. <FormItem
  6326. wrapperCol={{ span: 12, offset: 4 }}
  6327. className="half-middle"
  6328. >
  6329. <Button
  6330. className="submitSave"
  6331. type="primary"
  6332. htmlType="submit"
  6333. >
  6334. 保存
  6335. </Button>
  6336. <Button
  6337. className="submitSave"
  6338. type="ghost"
  6339. onClick={this.nextCancel}
  6340. >
  6341. 取消
  6342. </Button>
  6343. </FormItem>
  6344. </div>
  6345. ) : (
  6346. <div className="clearfix">
  6347. {this.state.processStatus == 0 ? (
  6348. <div className="clearfix">
  6349. <FormItem
  6350. className="half-item"
  6351. {...formItemLayout}
  6352. label="项目名称"
  6353. >
  6354. <span>{this.state.commodityName}</span>
  6355. </FormItem>
  6356. <FormItem
  6357. className="half-item"
  6358. {...formItemLayout}
  6359. label="项目数量"
  6360. >
  6361. <Input
  6362. placeholder="请输入数量"
  6363. value={this.state.commodityQuantity}
  6364. style={{ width: "200px" }}
  6365. onChange={(e) => {
  6366. this.setState({
  6367. commodityQuantity: e.target.value,
  6368. });
  6369. }}
  6370. />
  6371. <span className="mandatory">*</span>
  6372. </FormItem>
  6373. {/*<FormItem*/}
  6374. {/* className="half-item"*/}
  6375. {/* labelCol={{ span: 3 }}*/}
  6376. {/* wrapperCol={{ span: 14 }}*/}
  6377. {/* label="官费:"*/}
  6378. {/* style={{*/}
  6379. {/* display: this.state.displayFees,*/}
  6380. {/* marginLeft: "55px",*/}
  6381. {/* }}*/}
  6382. {/*>*/}
  6383. {/* <span style={{ color: "red", marginRight: "27px" }}>*/}
  6384. {/* **/}
  6385. {/* </span>*/}
  6386. {/* <Radio.Group*/}
  6387. {/* value={this.state.officialCost}*/}
  6388. {/* onChange={(e) => {*/}
  6389. {/* this.setState({ officialCost: e.target.value });*/}
  6390. {/* }}*/}
  6391. {/* >*/}
  6392. {/* <Radio value={1}>含官费</Radio>*/}
  6393. {/* <Radio value={0}>不含官费</Radio>*/}
  6394. {/* </Radio.Group>*/}
  6395. {/*</FormItem>*/}
  6396. <FormItem
  6397. className="half-item"
  6398. labelCol={{ span: 3 }}
  6399. wrapperCol={{ span: 14 }}
  6400. label="费减:"
  6401. style={{
  6402. display: this.state.displayFees,
  6403. marginLeft: "55px",
  6404. }}
  6405. >
  6406. <span style={{ color: "red", marginRight: "27px" }}>
  6407. *
  6408. </span>
  6409. <Radio.Group
  6410. value={this.state.costReduction}
  6411. onChange={(e) => {
  6412. this.setState({ costReduction: e.target.value });
  6413. }}
  6414. >
  6415. <Radio value={1}>有费减</Radio>
  6416. <Radio value={0}>无费减</Radio>
  6417. </Radio.Group>
  6418. </FormItem>
  6419. <FormItem
  6420. className="half-item"
  6421. {...formItemLayout}
  6422. label="金额(万元)"
  6423. >
  6424. <Input
  6425. placeholder="请输入签单金额"
  6426. value={this.state.commodityPrice}
  6427. style={{ width: "200px" }}
  6428. onChange={(e) => {
  6429. this.setState({ commodityPrice: e.target.value });
  6430. }}
  6431. />
  6432. <span className="mandatory">*</span>
  6433. </FormItem>
  6434. <FormItem
  6435. className="half-item"
  6436. {...formItemLayout}
  6437. label="主要项目"
  6438. >
  6439. <Select
  6440. placeholder="选择是否为主要业务"
  6441. style={{ width: "200px" }}
  6442. value={this.state.main}
  6443. onChange={(e) => {
  6444. this.setState({ main: e });
  6445. }}
  6446. >
  6447. {boutique.map(function (item) {
  6448. return (
  6449. <Select.Option key={item.value}>
  6450. {item.key}
  6451. </Select.Option>
  6452. );
  6453. })}
  6454. </Select>
  6455. <span className="mandatory">*</span>
  6456. </FormItem>
  6457. <div className="clearfix">
  6458. <FormItem
  6459. labelCol={{ span: 4 }}
  6460. wrapperCol={{ span: 16 }}
  6461. label="服务说明"
  6462. >
  6463. <Input
  6464. type="textarea"
  6465. placeholder="请输入服务说明"
  6466. value={this.state.taskComment}
  6467. onChange={(e) => {
  6468. this.setState({ taskComment: e.target.value });
  6469. }}
  6470. />
  6471. </FormItem>
  6472. </div>
  6473. {this.state.addProjectType === 5 ?
  6474. <div className="clearfix">
  6475. <FormItem
  6476. className="half-item"
  6477. {...formItemLayout}
  6478. label="企业要求申报批次"
  6479. >
  6480. <Select
  6481. placeholder="请选择企业要求申报批次"
  6482. style={{ width: "200px" }}
  6483. value={this.state.declarationBatch}
  6484. onChange={(e) => {
  6485. this.setState({ declarationBatch: e });
  6486. }}
  6487. >
  6488. <Select.Option value={1}>
  6489. 第一批
  6490. </Select.Option>
  6491. <Select.Option value={2}>
  6492. 第二批
  6493. </Select.Option>
  6494. <Select.Option value={3}>
  6495. 第三批
  6496. </Select.Option>
  6497. <Select.Option value={4}>
  6498. 第四批
  6499. </Select.Option>
  6500. </Select>
  6501. <span className="mandatory">*</span>
  6502. </FormItem>
  6503. </div>: null
  6504. }
  6505. {
  6506. this.state.isIso ?<div className="clearfix">
  6507. <FormItem
  6508. className="half-item"
  6509. {...formItemLayout}
  6510. label="认证费用"
  6511. >
  6512. <Select
  6513. placeholder="请选择是否包含认证费用"
  6514. style={{ width: "200px" }}
  6515. value={this.state.ifCertificationFee}
  6516. onChange={(e) => {
  6517. this.setState({ ifCertificationFee: e });
  6518. }}
  6519. >
  6520. <Select.Option value={0}>
  6521. 不包含
  6522. </Select.Option>
  6523. <Select.Option value={1}>
  6524. 包含
  6525. </Select.Option>
  6526. </Select>
  6527. <span className="mandatory">*</span>
  6528. </FormItem>
  6529. </div>: null
  6530. }
  6531. <FormItem
  6532. wrapperCol={{ span: 12, offset: 4 }}
  6533. className="half-middle"
  6534. >
  6535. <Button
  6536. className="submitSave"
  6537. type="primary"
  6538. onClick={this.tabRowSave}
  6539. >
  6540. 保存
  6541. </Button>
  6542. <Button
  6543. className="submitSave"
  6544. type="ghost"
  6545. onClick={this.nextCancel}
  6546. >
  6547. 取消
  6548. </Button>
  6549. </FormItem>
  6550. </div>
  6551. ) : (
  6552. <div className="clearfix">
  6553. <FormItem
  6554. className="half-item"
  6555. {...formItemLayout}
  6556. label="项目名称"
  6557. >
  6558. <span>{this.state.commodityName}</span>
  6559. </FormItem>
  6560. <FormItem
  6561. className="half-item"
  6562. {...formItemLayout}
  6563. label="项目数量"
  6564. >
  6565. <span>{this.state.commodityQuantity}</span>
  6566. </FormItem>
  6567. {/*<FormItem*/}
  6568. {/* className="half-item"*/}
  6569. {/* {...formItemLayout}*/}
  6570. {/* label="官费"*/}
  6571. {/* style={{ display: this.state.displayFees }}*/}
  6572. {/*>*/}
  6573. {/* <span>*/}
  6574. {/* {this.state.officialCost == 0 ? "无官费" : "有官费"}*/}
  6575. {/* </span>*/}
  6576. {/*</FormItem>*/}
  6577. <FormItem
  6578. className="half-item"
  6579. {...formItemLayout}
  6580. label="费减"
  6581. style={{ display: this.state.displayFees }}
  6582. >
  6583. <span>
  6584. {this.state.costReduction == 0
  6585. ? "无费减"
  6586. : "有费减"}
  6587. </span>
  6588. </FormItem>
  6589. <FormItem
  6590. className="half-item"
  6591. {...formItemLayout}
  6592. label="金额(万元)"
  6593. >
  6594. <span>{this.state.commodityPrice}</span>
  6595. </FormItem>
  6596. <FormItem
  6597. className="half-item"
  6598. {...formItemLayout}
  6599. label="主要项目"
  6600. >
  6601. <span>{getboutique(this.state.main)}</span>
  6602. </FormItem>
  6603. {this.state.dataInfor && this.state.dataInfor.type === 5 && <FormItem
  6604. className="half-item"
  6605. {...formItemLayout}
  6606. label="企业申报批次"
  6607. >
  6608. <span>
  6609. {
  6610. this.state.declarationBatch === 1 ? '第一批' :
  6611. this.state.declarationBatch === 2 ? '第二批' :
  6612. this.state.declarationBatch === 3 ? '第三批' :
  6613. this.state.declarationBatch === 4 ? '第四批' : '未知'
  6614. }
  6615. </span>
  6616. </FormItem>}
  6617. {this.state.isIso && <FormItem
  6618. className="half-item"
  6619. {...formItemLayout}
  6620. label="认证费"
  6621. >
  6622. <span>
  6623. {
  6624. this.state.ifCertificationFee === 1 ? '包含' :
  6625. this.state.ifCertificationFee === 0 ? '不包含' :'未知'
  6626. }
  6627. </span>
  6628. </FormItem> }
  6629. {this.state.isIso && this.state.ifCertificationFee === 1 ?<FormItem
  6630. className="half-item"
  6631. {...formItemLayout}
  6632. label="认证费(万元)"
  6633. >
  6634. <span>{this.state.ifCertificationFee || '暂无'}</span>
  6635. </FormItem> : null}
  6636. {this.state.isIso && this.state.ifCertificationFee === 1 ? <FormItem
  6637. className="half-item"
  6638. {...formItemLayout}
  6639. label=""
  6640. /> : null}
  6641. {this.state.isIso && this.state.ifCertificationFee === 1 ? <FormItem
  6642. className="half-item"
  6643. {...formItemLayout}
  6644. label="付款公司名称"
  6645. >
  6646. <span>{this.state.certificationCorporate || '暂无'}</span>
  6647. </FormItem>:null}
  6648. <div className="clearfix">
  6649. <FormItem
  6650. labelCol={{ span: 4 }}
  6651. wrapperCol={{ span: 16 }}
  6652. label="服务说明"
  6653. >
  6654. <span>{this.state.taskComment}</span>
  6655. </FormItem>
  6656. </div>
  6657. </div>
  6658. )}
  6659. </div>
  6660. )}
  6661. </Spin>
  6662. </Form>
  6663. </Modal>
  6664. <Modal
  6665. maskClosable={false}
  6666. visible={this.state.changeVisible}
  6667. onOk={this.nextCancel}
  6668. onCancel={this.nextCancel}
  6669. width="800px"
  6670. title={"添加变更项目"}
  6671. footer=""
  6672. className="admin-desc-content"
  6673. >
  6674. <Form
  6675. layout="horizontal"
  6676. // id="demand-form"
  6677. >
  6678. <Spin spinning={this.state.loading}>
  6679. <div className="clearfix">
  6680. <FormItem
  6681. className="half-item"
  6682. {...formItemLayout}
  6683. label="服务名称"
  6684. >
  6685. <AutoComplete
  6686. className="certain-category-search"
  6687. dropdownClassName="certain-category-search-dropdown"
  6688. dropdownMatchSelectWidth={false}
  6689. dropdownStyle={{ width: 200 }}
  6690. style={{ width: "200px" }}
  6691. dataSource={options}
  6692. placeholder="输入服务名称"
  6693. value={this.state.commodityName}
  6694. onChange={this.httpChange}
  6695. filterOption={true}
  6696. onSelect={this.selectAuto}
  6697. >
  6698. <Input />
  6699. </AutoComplete>
  6700. <span className="mandatory">*</span>
  6701. </FormItem>
  6702. <FormItem
  6703. className="half-item"
  6704. {...formItemLayout}
  6705. label="服务数量"
  6706. >
  6707. <Input
  6708. placeholder="请输入服务数量"
  6709. value={this.state.commodityQuantity}
  6710. style={{ width: "200px" }}
  6711. onChange={(e) => {
  6712. this.setState({ commodityQuantity: e.target.value });
  6713. }}
  6714. ref="commodityQuantity"
  6715. />
  6716. <span className="mandatory">*</span>
  6717. </FormItem>
  6718. {/*<FormItem*/}
  6719. {/* className="half-item"*/}
  6720. {/* labelCol={{ span: 3 }}*/}
  6721. {/* wrapperCol={{ span: 14 }}*/}
  6722. {/* label="官费:"*/}
  6723. {/* style={{*/}
  6724. {/* display: this.state.displayFees,*/}
  6725. {/* marginLeft: "55px",*/}
  6726. {/* }}*/}
  6727. {/*>*/}
  6728. {/* <span style={{ color: "red", marginRight: "27px" }}>*/}
  6729. {/* **/}
  6730. {/* </span>*/}
  6731. {/* <Radio.Group*/}
  6732. {/* value={this.state.officialCost}*/}
  6733. {/* onChange={(e) => {*/}
  6734. {/* this.setState({ officialCost: e.target.value });*/}
  6735. {/* }}*/}
  6736. {/* >*/}
  6737. {/* <Radio value="1">含官费</Radio>*/}
  6738. {/* <Radio value="0">不含官费</Radio>*/}
  6739. {/* </Radio.Group>*/}
  6740. {/*</FormItem>*/}
  6741. <FormItem
  6742. className="half-item"
  6743. labelCol={{ span: 3 }}
  6744. wrapperCol={{ span: 14 }}
  6745. label="费减:"
  6746. style={{
  6747. display: this.state.displayFees,
  6748. marginLeft: "55px",
  6749. }}
  6750. >
  6751. <span style={{ color: "red", marginRight: "27px" }}>
  6752. *
  6753. </span>
  6754. <Radio.Group
  6755. value={this.state.costReduction}
  6756. onChange={(e) => {
  6757. this.setState({ costReduction: e.target.value });
  6758. }}
  6759. >
  6760. <Radio value="1">有费减</Radio>
  6761. <Radio value="0">无费减</Radio>
  6762. </Radio.Group>
  6763. </FormItem>
  6764. <FormItem
  6765. className="half-item"
  6766. {...formItemLayout}
  6767. label="实签价格(万元)"
  6768. >
  6769. <Input
  6770. placeholder="请输入实签价格"
  6771. value={this.state.commodityPrice}
  6772. style={{ width: "200px" }}
  6773. onChange={(e) => {
  6774. this.setState({ commodityPrice: e.target.value });
  6775. }}
  6776. ref="commodityPrice"
  6777. />
  6778. <span className="mandatory">*</span>
  6779. </FormItem>
  6780. <FormItem
  6781. className="half-item"
  6782. {...formItemLayout}
  6783. label="主要业务"
  6784. >
  6785. <Select
  6786. placeholder="选择是否为主要业务"
  6787. style={{ width: "200px" }}
  6788. value={this.state.main}
  6789. onChange={(e) => {
  6790. this.setState({ main: e });
  6791. }}
  6792. >
  6793. {boutique.map(function (item) {
  6794. return (
  6795. <Select.Option key={item.value}>
  6796. {item.key}
  6797. </Select.Option>
  6798. );
  6799. })}
  6800. </Select>
  6801. <span className="mandatory">*</span>
  6802. </FormItem>
  6803. <div className="clearfix">
  6804. <FormItem
  6805. labelCol={{ span: 4 }}
  6806. wrapperCol={{ span: 16 }}
  6807. label="服务说明"
  6808. >
  6809. <Input
  6810. type="textarea"
  6811. placeholder="请输入服务说明"
  6812. value={this.state.taskComment}
  6813. onChange={(e) => {
  6814. this.setState({ taskComment: e.target.value });
  6815. }}
  6816. />
  6817. </FormItem>
  6818. </div>
  6819. <FormItem
  6820. wrapperCol={{ span: 12, offset: 4 }}
  6821. className="half-middle"
  6822. >
  6823. <Button
  6824. className="submitSave"
  6825. type="primary"
  6826. onClick={this.changeProSubmit}
  6827. >
  6828. 保存
  6829. </Button>
  6830. <Button
  6831. className="submitSave"
  6832. type="ghost"
  6833. onClick={this.nextCancel}
  6834. >
  6835. 取消
  6836. </Button>
  6837. </FormItem>
  6838. </div>
  6839. </Spin>
  6840. </Form>
  6841. </Modal>
  6842. {this.state.lookVisible ? <Modal
  6843. maskClosable={false}
  6844. visible={this.state.lookVisible}
  6845. onOk={this.noCancel}
  6846. onCancel={this.noCancel}
  6847. width="800px"
  6848. title={"退单申请"}
  6849. footer=""
  6850. className="admin-desc-content"
  6851. >
  6852. <Form layout="horizontal">
  6853. <Spin spinning={this.state.loading}>
  6854. <div className="clearfix">
  6855. <FormItem
  6856. labelCol={{ span: 4 }}
  6857. wrapperCol={{ span: 16 }}
  6858. label="终止合同"
  6859. >
  6860. <Picture
  6861. domId={'addService6'}
  6862. fileList={(e) => {
  6863. this.setState({ contractUrl: e });
  6864. }}
  6865. pictureUrl={this.state.contractUrl}
  6866. visible={this.props.visible}
  6867. data={{
  6868. sign: "order_refund_file",
  6869. url: "/api/admin/newOrder/uploadRefundOrderFile",
  6870. number: 8,
  6871. }}
  6872. />
  6873. </FormItem>
  6874. </div>
  6875. <div className="clearfix">
  6876. <FormItem
  6877. labelCol={{ span: 4 }}
  6878. wrapperCol={{ span: 16 }}
  6879. label="退单申请表"
  6880. >
  6881. <Picture
  6882. domId={'addService7'}
  6883. fileList={(e) => {
  6884. this.setState({ applicationUrl: e });
  6885. }}
  6886. pictureUrl={this.state.applicationUrl}
  6887. visible={this.props.visible}
  6888. data={{
  6889. sign: "order_refund_file",
  6890. url: "/api/admin/newOrder/uploadRefundOrderFile",
  6891. number: 8,
  6892. }}
  6893. />
  6894. </FormItem>
  6895. </div>
  6896. <div className="clearfix">
  6897. <FormItem
  6898. labelCol={{ span: 4 }}
  6899. wrapperCol={{ span: 16 }}
  6900. label="退单理由"
  6901. >
  6902. <Input
  6903. type="textarea"
  6904. placeholder="请输入退单理由"
  6905. rows={4}
  6906. value={this.state.reason}
  6907. onChange={(e) => {
  6908. this.setState({ reason: e.target.value });
  6909. }}
  6910. />
  6911. </FormItem>
  6912. </div>
  6913. <div className="clearfix">
  6914. <Button
  6915. className="cancel"
  6916. type="primary"
  6917. onClick={this.tuidanOk}
  6918. style={{ marginLeft: "50px" }}
  6919. htmlType="submit"
  6920. >
  6921. 确定退单
  6922. </Button>
  6923. <Button
  6924. className="cancel"
  6925. type="ghost"
  6926. onClick={this.noCancel}
  6927. style={{ marginLeft: "50px" }}
  6928. >
  6929. 取消
  6930. </Button>
  6931. </div>
  6932. </Spin>
  6933. </Form>
  6934. </Modal> : <div/>}
  6935. <Modal
  6936. title="修改项目金额及数量"
  6937. visible={this.state.editProVisible}
  6938. onOk={this.submitEditPro}
  6939. width={300}
  6940. okText={"保存"}
  6941. onCancel={() => {
  6942. this.setState({
  6943. editProVisible: false,
  6944. });
  6945. }}
  6946. >
  6947. <div className="clearfix">
  6948. <FormItem
  6949. labelCol={{ span: 6 }}
  6950. wrapperCol={{ span: 14 }}
  6951. label="项目金额"
  6952. style={{
  6953. display: this.state.editSplitStatus == 2 ? "none" : "block",
  6954. }}
  6955. >
  6956. <Input
  6957. placeholder="请输入金额"
  6958. rows={4}
  6959. // disabled={this.state.editSplitStatus == 0 ? true : false}
  6960. value={this.state.editProMoney}
  6961. onChange={(e) => {
  6962. this.setState({ editProMoney: e.target.value });
  6963. }}
  6964. />
  6965. </FormItem>
  6966. <FormItem
  6967. labelCol={{ span: 6 }}
  6968. wrapperCol={{ span: 14 }}
  6969. label="项目数量"
  6970. >
  6971. <Input
  6972. placeholder="请输入数量"
  6973. rows={4}
  6974. value={this.state.editProCommodityQuantity}
  6975. onChange={(e) => {
  6976. this.setState({ editProCommodityQuantity: e.target.value });
  6977. }}
  6978. />
  6979. </FormItem>
  6980. </div>
  6981. </Modal>
  6982. <Modal
  6983. title="修改催款节点金额"
  6984. visible={this.state.editCuiVisible}
  6985. onOk={this.submitEditCui}
  6986. okText={"保存"}
  6987. width={300}
  6988. onCancel={(e) => {
  6989. this.setState({
  6990. editCuiVisible: false,
  6991. });
  6992. }}
  6993. >
  6994. <div className="clearfix">
  6995. <FormItem
  6996. labelCol={{ span: 6 }}
  6997. wrapperCol={{ span: 14 }}
  6998. label="催款金额"
  6999. >
  7000. <Input
  7001. placeholder="请输入金额"
  7002. rows={4}
  7003. value={this.state.editCuiMoney}
  7004. onChange={(e) => {
  7005. this.setState({ editCuiMoney: e.target.value });
  7006. }}
  7007. />
  7008. </FormItem>
  7009. </div>
  7010. </Modal>
  7011. <OrderRiZi
  7012. dataSourcerizhi={this.state.dataSourcerizhi}
  7013. closeOrderLog={this.closeOrderLog}
  7014. visible={this.state.rizhivisible}
  7015. loading={this.state.loading}
  7016. />
  7017. </div>
  7018. );
  7019. },
  7020. })
  7021. );
  7022. export default Form.create()(NewService);