addService.jsx 264 KB

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