addService.jsx 264 KB

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