addService.jsx 244 KB

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