addService.jsx 375 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961
  1. // 开单=》合同变更发起
  2. import React from "react";
  3. import {
  4. Table,
  5. Modal,
  6. message,
  7. Spin,
  8. Input,
  9. Select,
  10. Button,
  11. Form,
  12. Upload,
  13. Popconfirm,
  14. AutoComplete,
  15. DatePicker,
  16. Col,
  17. Tabs,
  18. Tag,
  19. Radio,
  20. Icon,
  21. Tooltip,
  22. Switch,
  23. Checkbox,
  24. } from "antd";
  25. // import $ from "jquery/src/ajax";
  26. import "../userMangagement.less";
  27. import "../billing.less";
  28. import moment from "moment";
  29. import { shenghePeo } from "@/tools.js";
  30. import Picture from "@/manageCenter/publicComponent/picture";
  31. import ResolutionDetail from "@/resolutionDetail";
  32. import quxiao from "../../../../../image/quxiao.png";
  33. import tongguo from "../../../../../image/tongguo.png";
  34. import $ from "jquery";
  35. import OrderRiZi from "@/orderRiZi.jsx";
  36. import {
  37. orderTypes,
  38. customerType,
  39. jiedian,
  40. boutique,
  41. ssalesType,
  42. qsalesType,
  43. wsalesType,
  44. cuiJieDian,
  45. salesList,
  46. vipYear,
  47. knowledgeList,
  48. auditList,
  49. addDeductionList,
  50. } from "@/dataDic.js";
  51. import {
  52. splitUrl,
  53. getProcessStatus,
  54. getLiquidationStatus,
  55. getboutique,
  56. getApprovedState,
  57. getApprovedType,
  58. compare,
  59. getjiedian,
  60. getCuikuan,
  61. getProjectName,
  62. moneyVerify,
  63. getProcessStatusNew,
  64. stopStatus,
  65. } from "../../../tools.js";
  66. import PicturesWall from "./changeComponent/picturesWall.js";
  67. import { getChangeType } from "./changeComponent/changeDetailYxgly";
  68. import ImgList from "../../../common/imgList";
  69. import OrderItemStatus from "../../../common/orderItemStatus";
  70. import EnterpriseNameChange from "../../../common/enterpriseNameChange";
  71. import ProjectOperation from "../../../common/projectOperation";
  72. import ProjectOperationVip from "../../../common/projectOperation/vip";
  73. import NewAddProject from "../../../common/projectOperation/newAddProject"
  74. import NewEditProject from "../../../common/projectOperation/newEditProject"
  75. import { instanceOf } from "prop-types";
  76. import UpdateSales from './updatesales';
  77. import SelectList from '../../../common/mysuspend/selectList'; //
  78. import FlowChart from '../../../common/flowchart'; // 流程图
  79. import Gxczx from '../../../common/orderDetail/gxczx' // 高新纯咨询合同说明详情
  80. import Property from '../../../common/orderDetail/property' // 知识产权情况
  81. import ApproveTypeTooltip from "../../../common/ApproveTypeTooltip/index.js";
  82. // 订单保密&违约说明
  83. import ConfidenBreach from "./confidenBreach.jsx";
  84. import ConfidenBreachView from "./confidenBreachView.jsx";
  85. const Option = AutoComplete.Option;
  86. const CheckboxGroup = Checkbox.Group;
  87. const confirm = Modal.confirm;
  88. const RadioButton = Radio.Button;
  89. const RadioGroup = Radio.Group;
  90. const NewService = Form.create()(
  91. React.createClass({
  92. //查看项目列表
  93. loadData(record) {
  94. this.state.data = [];
  95. this.setState({
  96. loading: true,
  97. });
  98. if (!record && !this.props.datauser.orderNo) {
  99. return
  100. }
  101. $.ajax({
  102. method: "get",
  103. dataType: "json",
  104. crossDomain: false,
  105. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  106. data: {
  107. orderNo: record ? record.orderNo : this.props.datauser.orderNo,
  108. },
  109. success: function (data) {
  110. let theArr = [];
  111. if (!data.data) {
  112. if (data.error && data.error.length) {
  113. message.warning(data.error[0].message);
  114. }
  115. } else {
  116. for (let i = 0; i < data.data.length; i++) {
  117. let thisdata = data.data[i];
  118. thisdata.key = i;
  119. thisdata.sort = thisdata.cSort;
  120. thisdata.declarationBatch =
  121. thisdata.declarationBatch || undefined; //申报批次
  122. thisdata.ifCertificationFee = isNaN(
  123. parseInt(thisdata.ifCertificationFee)
  124. )
  125. ? undefined
  126. : thisdata.ifCertificationFee; //是否包含申报批次
  127. theArr.push(thisdata);
  128. }
  129. }
  130. this.departmentList();
  131. this.setState({
  132. dataSource: theArr,
  133. pagination: false,
  134. // 禁用变更类型
  135. changeFlag: false,
  136. });
  137. }.bind(this),
  138. }).always(
  139. function () {
  140. this.setState({
  141. loading: false,
  142. });
  143. }.bind(this)
  144. );
  145. },
  146. //收款节点
  147. loadDatas(record) {
  148. this.state.data = [];
  149. this.setState({
  150. loading: true,
  151. });
  152. $.ajax({
  153. method: "get",
  154. dataType: "json",
  155. crossDomain: false,
  156. url: globalConfig.context + "/api/admin/newOrder/selectOrderDun",
  157. data: {
  158. orderNo: record ? record.orderNo : this.props.datauser.orderNo,
  159. },
  160. success: function (data) {
  161. let theArr = [];
  162. if (!data.data) {
  163. if (data.error && data.error.length) {
  164. message.warning(data.error[0].message);
  165. }
  166. } else {
  167. for (let i = 0; i < data.data.length; i++) {
  168. let thisdata = data.data[i];
  169. theArr.push({
  170. key: i,
  171. id: thisdata.id,
  172. });
  173. }
  174. }
  175. this.setState({
  176. dataSource: theArr,
  177. pagination: false,
  178. });
  179. }.bind(this),
  180. }).always(
  181. function () {
  182. this.setState({
  183. loading: false,
  184. });
  185. }.bind(this)
  186. );
  187. },
  188. getInitialState() {
  189. return {
  190. // 保密&违约说明
  191. confidenBreachData: {},
  192. confidenBreachChangeData: {},
  193. confidenBreachDtData: {},
  194. marks: "",
  195. score: "",
  196. type: "",
  197. approvaType: [],
  198. typeExplain: "",
  199. isShow: true, // 高新纯咨询合同默认填写
  200. knowledgeOther: "",
  201. auditOther: "",
  202. addDeductionOther: "",
  203. dataView: null,
  204. PublicView: null,
  205. contentView: '',
  206. remarksView: '',
  207. contentViewLength: 0,
  208. contentViewLength1: 0,
  209. columnsView: [
  210. {
  211. title: "服务时间",
  212. dataIndex: "serviceTimes",
  213. key: "serviceTimes",
  214. width: '80px'
  215. },
  216. {
  217. title: "服务内容",
  218. dataIndex: "content",
  219. key: "content",
  220. width: '300'
  221. },
  222. {
  223. title: "备注",
  224. dataIndex: "remarks",
  225. key: "remarks",
  226. width: '300'
  227. },
  228. {
  229. title: "操作",
  230. dataIndex: "cz",
  231. key: "cz",
  232. width: '100px',
  233. render: (text, record) => {
  234. return (
  235. <div>
  236. {this.state.processStatus == 0 ? (
  237. <Button
  238. onClick={(e) => {
  239. e.stopPropagation();
  240. this.viewConfirm(this.delectView, record);
  241. // this.setState({
  242. // addFlag: false,
  243. // });
  244. }}
  245. >
  246. 删除
  247. </Button>
  248. ) : (
  249. ""
  250. )}
  251. </div>
  252. );
  253. },
  254. },
  255. ],
  256. columnsRecord: [
  257. {
  258. title: "序号",
  259. dataIndex: "id",
  260. key: "id",
  261. },
  262. {
  263. title: "客户名称",
  264. dataIndex: "nickname",
  265. key: "nickname",
  266. },
  267. {
  268. title: "公出申请人",
  269. dataIndex: "aname",
  270. key: "aname",
  271. },
  272. {
  273. title: "公出时长",
  274. dataIndex: "duration",
  275. key: "duration",
  276. render: (text, record) => {
  277. return <div>{text + "小时"}</div>;
  278. },
  279. },
  280. {
  281. title: "公出地点",
  282. dataIndex: "userName",
  283. key: "userName",
  284. },
  285. {
  286. title: "公出时间",
  287. dataIndex: "releaseStarts",
  288. key: "releaseStarts",
  289. render: (text, record) => {
  290. return (
  291. <div>
  292. <div>{text}</div>
  293. <div style={{ paddingLeft: "44px" }}>至</div>
  294. <div>{record.releaseEnds}</div>
  295. </div>
  296. );
  297. },
  298. },
  299. {
  300. title: "打卡时间",
  301. dataIndex: "clockInTimes",
  302. key: "clockInTimes",
  303. },
  304. {
  305. title: "公出目标",
  306. dataIndex: "remarks",
  307. key: "remarks",
  308. width: '300'
  309. },
  310. ],
  311. dataSourceView: [],
  312. coorVisible: "none",
  313. personnel: [],
  314. viewKey: 0,
  315. modalView: false,
  316. modalRecord: false,
  317. closable: false,
  318. disabledView: "none",
  319. patentType: "",
  320. patentTypeList: [],
  321. rotateDeg: 0,
  322. isCaoGao: false,
  323. cuiFlag: false,
  324. startRemarks: "",
  325. remarksC: "",
  326. loading: false,
  327. logData: [],
  328. visible: false,
  329. cuiDataSource: [],
  330. status: 4,
  331. orgCodeUrl: [],
  332. voucherUrl: [],
  333. replenishUrl: [],
  334. contentUrl: [],
  335. newContractUrl: [],
  336. customerArr: [],
  337. declarationBatch: 1, //申报批次 默认第一批
  338. // 禁用变更类型转换
  339. changeFlag: false,
  340. // 合同额禁用
  341. hetongFlag: true,
  342. // 项目及催款禁用
  343. listFlag: true,
  344. mark: false,
  345. activeKey: "1",
  346. typeChange: undefined,
  347. bussStats: false,
  348. checkedKeys: [],
  349. lookflowList: [],
  350. contractUrl: [],
  351. applicationUrl: [],
  352. changeAmount: "0",
  353. active: {
  354. applySign: false,
  355. },
  356. lookState: false,
  357. signBillVisible: false,
  358. commod: "",
  359. columns: [
  360. {
  361. title: "业务项目名称",
  362. dataIndex: "commodityName",
  363. key: "commodityName",
  364. render: (text, record) => {
  365. return <span>
  366. {text}<span style={{ color: "red" }}>{record.patentTypeName}</span>{"-" + record.id}
  367. <div>
  368. {record.cSort == 6 && record.projectType == 1 && <span>(含{record.htMember == 1 ? '高新会员&' : ''}{record.additionalDeduction == 1 ? '加计扣除&' : ''}{record.rdAwardsubsidy == 1 ? '研发奖补' : ''})</span>}
  369. {record.cSort == 6 && ([0, 3].indexOf(record.projectType) > -1) && <span>(仅提供单边会员服务)</span>}
  370. {record.cSort == 6 && record.projectType == 2 && <span>(仅填报表,仅咨询,不出备查资料)</span>}
  371. {record.cSort == 3 && <span>{record.technologyProjectType == 0 ? '(简易项目)' : record.technologyProjectType == 1 ? '(市区级)' : record.technologyProjectType == 2 ? '(省级)' : record.technologyProjectType == 3 ? '(国家级)' : ''}</span>}
  372. {record.cSort == 8 ? (record.type != 2 && record.patentType == 1) ? <span>(变更)</span> : <span>{record.ordinaryRisk == 0 ? '(普通申请)' : record.ordinaryRisk == 1 ? '(风险代理)' : ''}</span> : ""}
  373. {record.type == 2 && <span>({record.days == 0 ? '普通' : record.days == 1 ? '加急' : ''}{record.scheme == 0 ? '&无方案' : record.scheme == 1 ? '&有方案' : ''})</span>}
  374. </div>
  375. </span>
  376. }
  377. },
  378. {
  379. title: "项目类别",
  380. dataIndex: "cname",
  381. key: "cname",
  382. },
  383. {
  384. title: "项目数量",
  385. dataIndex: "commodityQuantity",
  386. key: "commodityQuantity",
  387. render: (text, record) => {
  388. if (record.splitStatus == 1) {
  389. return (
  390. <span>
  391. {text}{" "}
  392. </span>
  393. );
  394. } else {
  395. return text;
  396. }
  397. },
  398. },
  399. {
  400. title: "金额(万元)",
  401. dataIndex: "commodityPrice",
  402. key: "commodityPrice",
  403. width: 50,
  404. },
  405. {
  406. title: "负责人",
  407. dataIndex: "contacts",
  408. key: "contacts",
  409. },
  410. {
  411. title: "负责人电话",
  412. dataIndex: "contactsMobile",
  413. key: "contactsMobile",
  414. },
  415. {
  416. title: "项目状态",
  417. dataIndex: "projectStatus",
  418. key: "projectStatus",
  419. width: 70,
  420. textAlign: "center",
  421. render: (text) => {
  422. return getProjectName(text);
  423. },
  424. },
  425. {
  426. title: "主要项目",
  427. dataIndex: "main",
  428. key: "main",
  429. width: 50,
  430. render: (text) => {
  431. return text ? "是" : "否";
  432. },
  433. },
  434. {
  435. title: "总年限",
  436. dataIndex: "yearSum",
  437. key: "yearSum",
  438. render: (text, record) => {
  439. return (
  440. <div>{["", "一年", "二年", "三年", "四年", "五年"][text]}</div>
  441. );
  442. }
  443. },
  444. {
  445. title: "年限",
  446. dataIndex: "serviceLife",
  447. key: "serviceLife",
  448. render: (text, record) => {
  449. return (
  450. <div>{!!text && JSON.parse(text).toString()}</div>
  451. );
  452. }
  453. },
  454. {
  455. title: "本次派单",
  456. dataIndex: "serviceYear",
  457. key: "serviceYear",
  458. render: (text, record) => {
  459. return (
  460. <div>{!text ? "" : text}</div>
  461. );
  462. }
  463. },
  464. {
  465. title: "项目说明",
  466. dataIndex: "taskComment",
  467. key: "taskComment",
  468. render: (text, record) => {
  469. let textStr = text;
  470. // let textArr = [];
  471. // if (record.projectType == 1) {
  472. // if (record.htMember === 1) {
  473. // textArr.push("高新会员");
  474. // }
  475. // if (record.additionalDeduction === 1) {
  476. // textArr.push("加计扣除");
  477. // }
  478. // if (record.rdAwardsubsidy === 1) {
  479. // textArr.push("研发奖补");
  480. // }
  481. // }
  482. // if (textArr.length) {
  483. // textStr = `${textArr.join("&")} ${!!text ? `(${text})` : ''}`
  484. // }
  485. return (
  486. <Tooltip title={textStr}>
  487. <div
  488. style={{
  489. overflow: "hidden",
  490. whiteSpace: "nowrap",
  491. textOverflow: "ellipsis",
  492. }}
  493. >{textStr}</div>
  494. </Tooltip>
  495. )
  496. },
  497. },
  498. {
  499. title: "操作",
  500. dataIndex: "ABC",
  501. key: "ABC",
  502. width: 110,
  503. render: (text, record) => {
  504. return (
  505. <div>
  506. {stopStatus(record.stopType, record.stopStatus)}
  507. {
  508. this.state.processStatus == 0 &&
  509. <div>
  510. <Button
  511. onClick={(e) => {
  512. e.stopPropagation();
  513. this.showConfirm(this.delectRow, record);
  514. this.setState({
  515. addFlag: false,
  516. });
  517. }}
  518. >
  519. 删除
  520. </Button>
  521. </div>
  522. }
  523. {
  524. this.state.processStatus == 0 &&
  525. <div>
  526. <Button
  527. onClick={(e) => {
  528. e.stopPropagation();
  529. this.tableRowClick(record)
  530. }}
  531. >
  532. 编辑
  533. </Button>
  534. </div>
  535. }
  536. {
  537. record.scoreStatus == 1 &&
  538. <div>
  539. <Button
  540. type="primary"
  541. onClick={(e) => {
  542. e.stopPropagation();
  543. this.setState({
  544. tid: record.id,
  545. score: "add",
  546. cSort: record.sort,
  547. cname: record.commodityName,
  548. tname: record.name,
  549. })
  550. }}
  551. >
  552. 待评分
  553. </Button>
  554. </div>
  555. }
  556. {
  557. !!record.scoreNumber &&
  558. <Button
  559. type="primary"
  560. onClick={(e) => {
  561. e.stopPropagation();
  562. this.setState({
  563. cSort: record.sort,
  564. cname: record.commodityName,
  565. tname: record.name,
  566. })
  567. this.queryByTid(record.id)
  568. }}
  569. >
  570. 已评{record.scoreNumber}分
  571. </Button>
  572. }
  573. </div>
  574. );
  575. },
  576. },
  577. ],
  578. proColumns: [
  579. {
  580. title: "变更状态",
  581. dataIndex: "type",
  582. key: "type",
  583. width: 70, textAlign: "center",
  584. render: (text, record) => {
  585. let str = "";
  586. let color = "";
  587. if (text == 1) {
  588. str = "增";
  589. color = "#87d068";
  590. } else if (text == 2) {
  591. str = "改";
  592. color = "#108ee9";
  593. } else if (text == 3) {
  594. str = "删";
  595. color = "#f50";
  596. }
  597. return (
  598. <span>
  599. <Tag
  600. color={color}
  601. style={{ display: text == 0 ? "none" : "inline-block" }}
  602. >
  603. {str}
  604. </Tag>
  605. {/* {record.splitStatus == 1 ? (
  606. <Tag color="#108ee9">父项目</Tag>
  607. ) : (
  608. ""
  609. )}
  610. {record.splitStatus == 2 ? (
  611. <Tag color="#108ee9">子项目</Tag>
  612. ) : (
  613. ""
  614. )} */}
  615. </span>
  616. );
  617. },
  618. },
  619. {
  620. title: "业务项目名称",
  621. dataIndex: "commodityName",
  622. key: "commodityName",
  623. render: (text, record) => {
  624. return <span>
  625. {text}<span style={{ color: "red" }}>{record.patentTypeName}</span>{"-" + record.id}
  626. <div>
  627. {record.cSort == 6 && record.projectType == 1 && <span>(含{record.htMember == 1 ? '高新会员&' : ''}{record.additionalDeduction == 1 ? '加计扣除&' : ''}{record.rdAwardsubsidy == 1 ? '研发奖补' : ''})</span>}
  628. {record.cSort == 6 && ([0, 3].indexOf(record.projectType) > -1) && <span>(仅提供单边会员服务)</span>}
  629. {record.cSort == 6 && record.projectType == 2 && <span>(仅填报表,仅咨询,不出备查资料)</span>}
  630. {record.cSort == 3 && <span>{record.technologyProjectType == 0 ? '(简易项目)' : record.technologyProjectType == 1 ? '(市区级)' : record.technologyProjectType == 2 ? '(省级)' : record.technologyProjectType == 3 ? '(国家级)' : ''}</span>}
  631. {record.cSort == 8 ? (record.type != 2 && record.patentType == 1) ? <span>(变更)</span> : <span>{record.ordinaryRisk == 0 ? '(普通申请)' : record.ordinaryRisk == 1 ? '(风险代理)' : ''}</span> : ""}
  632. {record.type == 2 && <span>({record.days == 0 ? '普通' : record.days == 1 ? '加急' : ''}{record.scheme == 0 ? '&无方案' : record.scheme == 1 ? '&有方案' : ''})</span>}
  633. </div>
  634. </span>
  635. }
  636. },
  637. {
  638. title: "项目类别",
  639. dataIndex: "cname",
  640. key: "cname",
  641. },
  642. {
  643. title: "项目数量",
  644. dataIndex: "commodityQuantity",
  645. key: "commodityQuantity",
  646. width: 50,
  647. },
  648. {
  649. title: "金额(万元)",
  650. dataIndex: "commodityPrice",
  651. key: "commodityPrice",
  652. width: 50,
  653. render: (text, record) => {
  654. if (record.splitStatus == 2) {
  655. return "/";
  656. } else {
  657. return text;
  658. }
  659. },
  660. },
  661. {
  662. title: "主要项目",
  663. dataIndex: "main",
  664. key: "main",
  665. width: 50,
  666. render: (text) => {
  667. return text ? "是" : "否";
  668. },
  669. },
  670. {
  671. title: "项目负责人",
  672. dataIndex: "receiverName",
  673. key: "receiverName",
  674. },
  675. {
  676. title: "总年限",
  677. dataIndex: "yearSum",
  678. key: "yearSum",
  679. render: (text, record) => {
  680. return (
  681. <div>{["", "一年", "二年", "三年", "四年", "五年"][text]}</div>
  682. );
  683. }
  684. },
  685. {
  686. title: "年限",
  687. dataIndex: "serviceLife",
  688. key: "serviceLife",
  689. render: (text, record) => {
  690. return (
  691. <div>{!!text && JSON.parse(text).toString()}</div>
  692. );
  693. }
  694. },
  695. {
  696. title: "本次派单",
  697. dataIndex: "serviceYear",
  698. key: "serviceYear",
  699. render: (text, record) => {
  700. return (
  701. <div>{!text ? "" : text}</div>
  702. );
  703. }
  704. },
  705. {
  706. title: "项目说明",
  707. dataIndex: "taskComment",
  708. key: "taskComment",
  709. render: (text, record) => {
  710. let textStr = text;
  711. let textArr = [];
  712. if (record.projectType == 1) {
  713. if (record.htMember === 1) {
  714. textArr.push("高新会员");
  715. }
  716. if (record.additionalDeduction === 1) {
  717. textArr.push("加计扣除");
  718. }
  719. if (record.rdAwardsubsidy === 1) {
  720. textArr.push("研发奖补");
  721. }
  722. }
  723. // if (textArr.length) {
  724. // textStr = `${textArr.join("&")} ${!!text ? `(${text})` : ''}`
  725. // }
  726. return (
  727. <Tooltip title={textStr}>
  728. <div
  729. style={{
  730. overflow: "hidden",
  731. whiteSpace: "nowrap",
  732. textOverflow: "ellipsis",
  733. }}
  734. >{textStr}</div>
  735. </Tooltip>
  736. )
  737. },
  738. },
  739. {
  740. title: "操作",
  741. dataIndex: "ABC",
  742. key: "ABC",
  743. width: 70, textAlign: "center",
  744. render: (text, record) => {
  745. return (
  746. <div>
  747. <div>
  748. <Button
  749. onClick={(e) => {
  750. e.stopPropagation();
  751. this.showConfirm(this.changeDeletePro, record);
  752. }}
  753. disabled={this.state.listFlag}
  754. style={{
  755. display: this.state.displayList ? "none" : "block",
  756. }}
  757. >
  758. 删除
  759. </Button>
  760. </div>
  761. <div>
  762. <Button
  763. onClick={(e) => {
  764. e.stopPropagation();
  765. this.editPro(record);
  766. }}
  767. disabled={this.state.listFlag}
  768. style={{
  769. display: this.state.displayList ? "none" : "block",
  770. }}
  771. >
  772. 编辑
  773. </Button>
  774. </div>
  775. </div>
  776. );
  777. },
  778. },
  779. ],
  780. detailColumns: [
  781. {
  782. title: "变更状态",
  783. dataIndex: "type",
  784. key: "type",
  785. render: (text, record) => {
  786. let str = "";
  787. let color = "";
  788. if (text == 1) {
  789. str = "增";
  790. color = "#87d068";
  791. } else if (text == 2) {
  792. str = "改";
  793. color = "#108ee9";
  794. } else if (text == 3) {
  795. str = "删";
  796. color = "#f50";
  797. }
  798. return (
  799. <span>
  800. <Tag
  801. color={color}
  802. style={{ display: text == 0 ? "none" : "inline-block" }}
  803. >
  804. {str}
  805. </Tag>
  806. {/* {record.splitStatus == 1 ? (
  807. <Tag color="#108ee9">父项目</Tag>
  808. ) : (
  809. ""
  810. )}
  811. {record.splitStatus == 2 ? (
  812. <Tag color="#108ee9">子项目</Tag>
  813. ) : (
  814. ""
  815. )} */}
  816. </span>
  817. );
  818. },
  819. },
  820. {
  821. title: "业务项目名称",
  822. dataIndex: "commodityName",
  823. key: "commodityName",
  824. render: (text, record) => {
  825. return <span>
  826. {text}<span style={{ color: "red" }}>{record.patentTypeName}</span>{"-" + record.id}
  827. <div>
  828. {record.cSort == 6 && record.projectType == 1 && <span>(含{record.htMember == 1 ? '高新会员&' : ''}{record.additionalDeduction == 1 ? '加计扣除&' : ''}{record.rdAwardsubsidy == 1 ? '研发奖补' : ''})</span>}
  829. {record.cSort == 6 && ([0, 3].indexOf(record.projectType) > -1) && <span>(仅提供单边会员服务)</span>}
  830. {record.cSort == 6 && record.projectType == 2 && <span>(仅填报表,仅咨询,不出备查资料)</span>}
  831. {record.cSort == 3 && <span>{record.technologyProjectType == 0 ? '(简易项目)' : record.technologyProjectType == 1 ? '(市区级)' : record.technologyProjectType == 2 ? '(省级)' : record.technologyProjectType == 3 ? '(国家级)' : ''}</span>}
  832. {record.cSort == 8 ? (record.type != 2 && record.patentType == 1) ? <span>(变更)</span> : <span>{record.ordinaryRisk == 0 ? '(普通申请)' : record.ordinaryRisk == 1 ? '(风险代理)' : ''}</span> : ""}
  833. {record.type == 2 && <span>({record.days == 0 ? '普通' : record.days == 1 ? '加急' : ''}{record.scheme == 0 ? '&无方案' : record.scheme == 1 ? '&有方案' : ''})</span>}
  834. </div>
  835. </span>
  836. }
  837. },
  838. {
  839. title: "项目类别",
  840. dataIndex: "cname",
  841. key: "cname",
  842. },
  843. {
  844. title: "项目数量",
  845. dataIndex: "commodityQuantity",
  846. key: "commodityQuantity",
  847. width: 50,
  848. },
  849. {
  850. title: "金额(万元)",
  851. dataIndex: "commodityPrice",
  852. key: "commodityPrice",
  853. width: 50,
  854. render: (text, record) => {
  855. if (this.props.isZxs) {
  856. return <span>***</span>;
  857. } else if (record.splitStatus == 2) {
  858. return "/";
  859. } else {
  860. return <span>{text}</span>;
  861. }
  862. },
  863. },
  864. {
  865. title: "主要项目",
  866. dataIndex: "main",
  867. key: "main",
  868. width: 50,
  869. render: (text) => {
  870. return text ? "是" : "否";
  871. },
  872. },
  873. {
  874. title: "项目负责人",
  875. dataIndex: "receiverName",
  876. key: "receiverName",
  877. },
  878. {
  879. title: "总年限",
  880. dataIndex: "yearSum",
  881. key: "yearSum",
  882. render: (text, record) => {
  883. return (
  884. <div>{["", "一年", "二年", "三年", "四年", "五年"][text]}</div>
  885. );
  886. }
  887. },
  888. {
  889. title: "年限",
  890. dataIndex: "serviceLife",
  891. key: "serviceLife",
  892. render: (text, record) => {
  893. return (
  894. <div>{!!text && JSON.parse(text).toString()}</div>
  895. );
  896. }
  897. },
  898. {
  899. title: "本次派单",
  900. dataIndex: "serviceYear",
  901. key: "serviceYear",
  902. render: (text, record) => {
  903. return (
  904. <div>{!text ? "" : text}</div>
  905. );
  906. }
  907. },
  908. {
  909. title: "项目说明",
  910. dataIndex: "taskComment",
  911. key: "taskComment",
  912. render: (text, record) => {
  913. let textStr = text;
  914. let textArr = [];
  915. if (record.projectType == 1) {
  916. if (record.htMember === 1) {
  917. textArr.push("高新会员");
  918. }
  919. if (record.additionalDeduction === 1) {
  920. textArr.push("加计扣除");
  921. }
  922. if (record.rdAwardsubsidy === 1) {
  923. textArr.push("研发奖补");
  924. }
  925. }
  926. // if (textArr.length) {
  927. // textStr = `${textArr.join("&")} ${!!text ? `(${text})` : ''}`
  928. // }
  929. return (
  930. <Tooltip title={textStr}>
  931. <div
  932. style={{
  933. overflow: "hidden",
  934. whiteSpace: "nowrap",
  935. textOverflow: "ellipsis",
  936. }}
  937. >{textStr}</div>
  938. </Tooltip>
  939. )
  940. },
  941. },
  942. ],
  943. detailContactsLists: [
  944. {
  945. title: "变更状态",
  946. dataIndex: "type",
  947. key: "type",
  948. render: (text) => {
  949. let str = "";
  950. let color = "";
  951. if (text == 1) {
  952. str = "增";
  953. color = "#87d068";
  954. } else if (text == 2) {
  955. str = "改";
  956. color = "#108ee9";
  957. } else if (text == 3) {
  958. str = "删";
  959. color = "#f50";
  960. }
  961. return (
  962. <Tag
  963. color={color}
  964. style={{ display: text == 0 ? "none" : "inline-block" }}
  965. >
  966. {str}
  967. </Tag>
  968. );
  969. },
  970. },
  971. {
  972. title: "项目名称",
  973. dataIndex: "commodityName",
  974. key: "commodityName",
  975. render: (text, record) => {
  976. let dataArr = this.state.proDataSource || [];
  977. if (record.ctid) {
  978. return <span>{text + "-" + record.ctid}</span>;
  979. } else {
  980. let tid = record.tid;
  981. let ctid = "";
  982. dataArr.forEach((item, index) => {
  983. if (item.tid == tid) {
  984. ctid = item.id;
  985. }
  986. });
  987. return <span>{text + "-" + ctid}</span>;
  988. }
  989. },
  990. },
  991. {
  992. title: "项目分类",
  993. dataIndex: "projectType",
  994. key: "projectType",
  995. render: (text) => {
  996. let arr = this.state.proDataSource || [];
  997. let str = "";
  998. for (let i = 0; i < arr.length; i++) {
  999. if (this.state.proDataSource[i].cSort == text) {
  1000. str = this.state.proDataSource[i].cname;
  1001. return <span>{str}</span>;
  1002. }
  1003. }
  1004. },
  1005. },
  1006. {
  1007. title: "催款科目",
  1008. dataIndex: "dunTypeName",
  1009. key: "dunTypeName",
  1010. render: (text, record) => {
  1011. return <span>{text}</span>;
  1012. },
  1013. },
  1014. {
  1015. title: "时间",
  1016. dataIndex: "waitDay",
  1017. key: "waitDay",
  1018. render: (text, record) => {
  1019. if (record.dunTypeName) {
  1020. if (record.customizeTimes) {
  1021. return record.customizeTimes;
  1022. }
  1023. return <span>{text}</span>;
  1024. }
  1025. },
  1026. },
  1027. {
  1028. title: "金额(万元)",
  1029. dataIndex: "money",
  1030. key: "money",
  1031. render: (text, record) => {
  1032. if (record.dunTypeName) {
  1033. if (record.appropriationRatio) {
  1034. let percent = Number(record.appropriationRatio * 100).toFixed(2);
  1035. percent += "%";
  1036. return <span>{percent}(拨款比例)</span>;
  1037. } else {
  1038. if (this.props.isZxs) {
  1039. return <span>***</span>;
  1040. }
  1041. return <span>{text}</span>;
  1042. }
  1043. }
  1044. },
  1045. },
  1046. {
  1047. title: "服务年限",
  1048. dataIndex: "startDate",
  1049. key: "startDate",
  1050. render: (text, record) => {
  1051. if (record.dunTypeName) {
  1052. return <span>{text}</span>;
  1053. }
  1054. },
  1055. },
  1056. {
  1057. title: "催款状态",
  1058. dataIndex: "status",
  1059. key: "status",
  1060. render: (text) => {
  1061. return <span>{text == 1 ? "已启动" : "未启动"}</span>;
  1062. },
  1063. },
  1064. ],
  1065. resVisible: false,
  1066. columnsrizhi: [
  1067. {
  1068. title: "流程",
  1069. dataIndex: "processName",
  1070. key: "processName",
  1071. },
  1072. {
  1073. title: "操作人",
  1074. dataIndex: "adminName",
  1075. key: "adminName",
  1076. },
  1077. {
  1078. title: "时间",
  1079. dataIndex: "createDate",
  1080. key: "createDate",
  1081. },
  1082. ],
  1083. contactList: [],
  1084. ContactsLists: [
  1085. {
  1086. title: "催款科目",
  1087. dataIndex: "dunSubject",
  1088. key: "dunSubject",
  1089. render: (text, record) => {
  1090. return (
  1091. <Select
  1092. placeholder="请选择催款科目"
  1093. value={record.dunSubject}
  1094. style={{ width: "150px" }}
  1095. disabled
  1096. onChange={(e) => {
  1097. record.dunSubject = e;
  1098. this.setState({ contactList: this.state.contactList });
  1099. }}
  1100. >
  1101. {jiedian.map(function (item) {
  1102. return (
  1103. <Select.Option key={item.value}>{item.key}</Select.Option>
  1104. );
  1105. })}
  1106. </Select>
  1107. );
  1108. },
  1109. },
  1110. {
  1111. title: "金额(万元)",
  1112. dataIndex: "money",
  1113. key: "money",
  1114. render: (text, record) => {
  1115. return (
  1116. <Input
  1117. type="number"
  1118. value={record.money}
  1119. placeholder="请输入金额(必填项)"
  1120. disabled
  1121. key={record.id}
  1122. required="required"
  1123. onChange={(e) => {
  1124. record.money = e.target.value;
  1125. this.setState({ contactList: this.state.contactList });
  1126. }}
  1127. style={{ width: "120px" }}
  1128. />
  1129. );
  1130. },
  1131. },
  1132. {
  1133. title: "催款状态",
  1134. dataIndex: "dunStatus",
  1135. key: "dunStatus",
  1136. render: (text) => {
  1137. return getCuikuan(text);
  1138. },
  1139. },
  1140. {
  1141. title: "操作",
  1142. dataIndex: "dels",
  1143. key: "dels",
  1144. render: (text, record) => {
  1145. return (
  1146. <div>
  1147. {
  1148. <Popconfirm
  1149. title="是否删除?"
  1150. onConfirm={() => {
  1151. this.confirmDelet(record.key);
  1152. }}
  1153. okText="删除"
  1154. cancelText="不删除"
  1155. >
  1156. <Button
  1157. style={{
  1158. marginRight: "10px",
  1159. color: "#ffffff",
  1160. background: "#f00",
  1161. border: "none",
  1162. display:
  1163. this.state.processStatus == 0 ? "block" : "none",
  1164. }}
  1165. >
  1166. 删除
  1167. </Button>
  1168. </Popconfirm>
  1169. }
  1170. {record.id ? (
  1171. ""
  1172. ) : (
  1173. <Button type="primary" onClick={this.contactSave}>
  1174. 保存
  1175. </Button>
  1176. )}
  1177. </div>
  1178. );
  1179. },
  1180. },
  1181. ],
  1182. ContactsListsNew: [
  1183. {
  1184. title: "项目名称",
  1185. dataIndex: "commodityName",
  1186. key: "commodityName",
  1187. render: (text, record, index) => {
  1188. let dataArr = this.state.dataSource || [];
  1189. if (text) {
  1190. return <span>{text + "-" + record.tid}</span>;
  1191. }
  1192. return (
  1193. <Select
  1194. placeholder="请选择名称"
  1195. style={{ width: "150px" }}
  1196. disabled={
  1197. this.state.getLoad && record.sortName ? true : false
  1198. }
  1199. onChange={(e) => {
  1200. // let num = e.lastIndexOf("-");
  1201. // let ctid = e.substr(num + 1);
  1202. // record.sortName = e.substring(0, num);
  1203. // dataArr.forEach((item) => {
  1204. // if (
  1205. // item.commodityName == record.sortName &&
  1206. // ctid == item.id
  1207. // ) {
  1208. // record.cname = item.cname;
  1209. // record.tid = item.id;
  1210. // record.isSave = true;
  1211. // record.sort = item.sort;
  1212. // cuiJieDian.forEach((item) => {
  1213. // if (item.value == record.sort) {
  1214. // record.arr = item.children;
  1215. // let yearFlag = true;
  1216. // if (record.sort == 6) {
  1217. // yearFlag = false;
  1218. // }
  1219. // this.setState({
  1220. // getLoad: true,
  1221. // yearFlag,
  1222. // });
  1223. // }
  1224. // });
  1225. // }
  1226. // });
  1227. let proData = dataArr[e];
  1228. record.cname = proData.cname;
  1229. record.tid = proData.id;
  1230. record.isSave = true;
  1231. record.sort = proData.sort;
  1232. cuiJieDian.forEach((item) => {
  1233. if (item.value == record.sort) {
  1234. record.arr = item.children;
  1235. let yearFlag = true;
  1236. if (record.sort == 6) {
  1237. yearFlag = false;
  1238. }
  1239. this.setState({
  1240. getLoad: true,
  1241. yearFlag,
  1242. });
  1243. }
  1244. });
  1245. }}
  1246. >
  1247. {dataArr.map((item) => {
  1248. return (
  1249. <Select.Option key={item.id} value={item.key}>
  1250. {item.commodityName + "-" + item.id}
  1251. </Select.Option>
  1252. );
  1253. })}
  1254. </Select>
  1255. );
  1256. },
  1257. },
  1258. {
  1259. title: "项目分类",
  1260. dataIndex: "projectType",
  1261. key: "projectType",
  1262. render: (text, record) => {
  1263. if (text) {
  1264. let arr = this.state.dataSource || [];
  1265. let str = "";
  1266. for (let i = 0; i < arr.length; i++) {
  1267. if (this.state.dataSource[i].sort == text) {
  1268. str = this.state.dataSource[i].cname;
  1269. return <span>{str}</span>;
  1270. }
  1271. }
  1272. if (!str) {
  1273. return <span>未知</span>;
  1274. }
  1275. }
  1276. if (this.state.getLoad) {
  1277. return (
  1278. <Select
  1279. style={{ width: "150px" }}
  1280. placeholder="请选择分类"
  1281. value={record.cname}
  1282. >
  1283. <Select.Option key={record.sort} value={record.cname}>
  1284. {record.cname}
  1285. </Select.Option>
  1286. </Select>
  1287. );
  1288. } else {
  1289. return (
  1290. <Select style={{ width: "150px" }} placeholder="请选择分类">
  1291. <Select.Option key={record.sort} value={record.cname}>
  1292. {record.cname}
  1293. </Select.Option>
  1294. </Select>
  1295. );
  1296. }
  1297. },
  1298. },
  1299. {
  1300. title: "催款科目",
  1301. dataIndex: "dunTypeName",
  1302. key: "dunTypeName",
  1303. render: (text, record) => {
  1304. if (text) {
  1305. if (record.customizeName) {
  1306. return text + record.customizeName;
  1307. }
  1308. return <span>{text}</span>;
  1309. }
  1310. if (this.state.getLoad) {
  1311. let arr = record.arr || [];
  1312. return (
  1313. <div>
  1314. <Select
  1315. style={{ width: "150px", marginRight: 5 }}
  1316. placeholder="请选择分类"
  1317. onChange={(e) => {
  1318. record.dunType = e;
  1319. if (record.dunType == 0) {
  1320. record.customizeTimes = "";
  1321. record.customizeName = "";
  1322. }
  1323. if (e == 0) {
  1324. record.dunTypeCustom = true;
  1325. } else {
  1326. record.dunTypeCustom = false;
  1327. }
  1328. if (e != 1) {
  1329. this.setState({
  1330. timeFlag: true,
  1331. });
  1332. } else {
  1333. this.setState({
  1334. timeFlag: false,
  1335. });
  1336. }
  1337. if (e == 1 && record.sort == 6) {
  1338. this.setState({
  1339. yearFlag: true,
  1340. });
  1341. } else if (e != 1 && record.sort == 6) {
  1342. this.setState({
  1343. yearFlag: false,
  1344. });
  1345. }
  1346. if (record.sort == 3 && e == 3) {
  1347. this.setState({
  1348. boFlag: true,
  1349. });
  1350. } else {
  1351. this.setState({
  1352. boFlag: false,
  1353. });
  1354. }
  1355. }}
  1356. >
  1357. {arr.map((item) => {
  1358. return (
  1359. <Select.Option key={item.value} value={item.value}>
  1360. {item.key}
  1361. </Select.Option>
  1362. );
  1363. })}
  1364. <Select.Option key={0} value={0}>
  1365. 自定义
  1366. </Select.Option>
  1367. </Select>
  1368. {record.dunType == 0 ? (
  1369. <Input
  1370. value={record.customizeName}
  1371. placeholder="请输入自定义名称"
  1372. required="required"
  1373. onChange={(e) => {
  1374. record.customizeName = e.target.value;
  1375. this.setState({
  1376. contactList: this.state.contactList,
  1377. });
  1378. }}
  1379. style={{ width: "120px" }}
  1380. />
  1381. ) : (
  1382. ""
  1383. )}
  1384. </div>
  1385. );
  1386. } else {
  1387. return (
  1388. <Select style={{ width: "150px" }} placeholder="请选择分类">
  1389. <Select.Option
  1390. key={0}
  1391. value={"请选择上一项"}
  1392. ></Select.Option>
  1393. </Select>
  1394. );
  1395. }
  1396. },
  1397. },
  1398. {
  1399. title: "收款时间(特批需选择时间)",
  1400. dataIndex: "waitDay",
  1401. key: "waitDay",
  1402. render: (text, record) => {
  1403. if (record.dunTypeName) {
  1404. if (record.customizeTimes) {
  1405. return record.customizeTimes;
  1406. }
  1407. if (text == 0) {
  1408. var str = "当天";
  1409. } else if (!text) {
  1410. var str = "";
  1411. } else {
  1412. var str = text + "天";
  1413. }
  1414. return <span>{str}</span>;
  1415. }
  1416. return (
  1417. <div>
  1418. {record.dunType == 0 ? (
  1419. <DatePicker
  1420. style={{ width: 150 }}
  1421. disabledDate={(e) => {
  1422. let time = moment(e).valueOf();
  1423. let today = Date.parse(new Date());
  1424. if (time <= today) {
  1425. return true;
  1426. }
  1427. }}
  1428. onChange={(e, t) => {
  1429. record.customizeTimes = t;
  1430. }}
  1431. />
  1432. ) : (
  1433. <Select
  1434. placeholder="请选择时间"
  1435. style={{ width: "160px" }}
  1436. disabled={
  1437. this.state.approval != 0 && !this.state.timeFlag
  1438. ? false
  1439. : true
  1440. }
  1441. onChange={(e) => {
  1442. record.waitDay = e;
  1443. }}
  1444. >
  1445. <Select.Option key={0}>当天</Select.Option>
  1446. <Select.Option key={3}>3天</Select.Option>
  1447. <Select.Option key={5}>5天</Select.Option>
  1448. <Select.Option key={7}>7天</Select.Option>
  1449. <Select.Option key={15}>15天</Select.Option>
  1450. </Select>
  1451. )}
  1452. </div>
  1453. );
  1454. },
  1455. },
  1456. {
  1457. title: "金额(万元)",
  1458. dataIndex: "money",
  1459. key: "money",
  1460. render: (text, record) => {
  1461. if (record.dunTypeName) {
  1462. if (record.appropriationRatio) {
  1463. let percent = Number(record.appropriationRatio * 100).toFixed(2);
  1464. percent += "%";
  1465. return <span>{percent}(拨款比例)</span>;
  1466. } else {
  1467. return <span>{text}</span>;
  1468. }
  1469. }
  1470. return (
  1471. <div>
  1472. <div style={{ width: 70, textAlign: "center", float: "left", marginRight: 5 }}>
  1473. <Select
  1474. placeholder="选择"
  1475. defaultValue={"金额"}
  1476. onChange={(e) => {
  1477. record.boStatus = e;
  1478. }}
  1479. >
  1480. <Select.Option key={true}>比例</Select.Option>
  1481. <Select.Option key={false}>金额</Select.Option>
  1482. </Select>
  1483. </div>
  1484. <div style={{ float: "right" }}>
  1485. <Input
  1486. type="number"
  1487. value={record.money}
  1488. key={record.id}
  1489. required="required"
  1490. onChange={(e) => {
  1491. record.money = e.target.value;
  1492. this.setState({
  1493. contactList: this.state.contactList,
  1494. });
  1495. }}
  1496. style={{ width: "120px" }}
  1497. />
  1498. </div>
  1499. </div>
  1500. )
  1501. // if (this.state.boFlag) {
  1502. // return (
  1503. // <div>
  1504. // <div style={{ width: 70, textAlign: "center", float: "left", marginRight: 5 }}>
  1505. // <Select
  1506. // placeholder="选择"
  1507. // defaultValue={"金额"}
  1508. // onChange={(e) => {
  1509. // record.boStatus = e;
  1510. // }}
  1511. // >
  1512. // <Select.Option key={true}>比例</Select.Option>
  1513. // <Select.Option key={false}>金额</Select.Option>
  1514. // </Select>
  1515. // </div>
  1516. // <div style={{ float: "right" }}>
  1517. // <Input
  1518. // type="number"
  1519. // value={record.money}
  1520. // key={record.id}
  1521. // required="required"
  1522. // onChange={(e) => {
  1523. // record.money = e.target.value;
  1524. // this.setState({
  1525. // contactList: this.state.contactList,
  1526. // });
  1527. // }}
  1528. // style={{ width: "120px" }}
  1529. // />
  1530. // </div>
  1531. // </div>
  1532. // );
  1533. // } else {
  1534. // return (
  1535. // <div>
  1536. // <Input
  1537. // type="number"
  1538. // value={record.money}
  1539. // placeholder="请输入金额(必填项)"
  1540. // key={record.id}
  1541. // required="required"
  1542. // onChange={(e) => {
  1543. // record.money = e.target.value;
  1544. // this.setState({ contactList: this.state.contactList });
  1545. // }}
  1546. // style={{ width: "120px" }}
  1547. // />
  1548. // </div>
  1549. // );
  1550. // }
  1551. },
  1552. },
  1553. {
  1554. title: "服务年限",
  1555. dataIndex: "startDate",
  1556. key: "startDate",
  1557. render: (text, record) => {
  1558. if (record.dunTypeName) {
  1559. return <span>{text}</span>;
  1560. }
  1561. return (
  1562. <div>
  1563. {record.dunType != 0 ? (
  1564. <Select
  1565. placeholder="请选择年限"
  1566. style={{ width: "150px" }}
  1567. disabled={this.state.yearFlag ? true : false}
  1568. onChange={(e) => {
  1569. record.effectiveCount = e;
  1570. }}
  1571. >
  1572. {/* <Select.Option key={null}>无</Select.Option> */}
  1573. <Select.Option key={1}>一年</Select.Option>
  1574. <Select.Option key={3}>两年</Select.Option>
  1575. <Select.Option key={5}>三年</Select.Option>
  1576. <Select.Option key={7}>四年</Select.Option>
  1577. <Select.Option key={9}>五年</Select.Option>
  1578. </Select>
  1579. ) : (
  1580. <div />
  1581. )}
  1582. </div>
  1583. );
  1584. },
  1585. },
  1586. {
  1587. title: "催款状态",
  1588. dataIndex: "status",
  1589. key: "status",
  1590. render: (text) => {
  1591. return <span>{text == 1 ? "已启动" : "未启动"}</span>;
  1592. },
  1593. },
  1594. {
  1595. title: "操作",
  1596. dataIndex: "dels",
  1597. key: "dels",
  1598. render: (text, record, index) => {
  1599. return (
  1600. <div>
  1601. {this.state.processStatus == 0 ? (
  1602. <Popconfirm
  1603. title="是否删除?"
  1604. onConfirm={() => {
  1605. this.confirmDeletNew(record);
  1606. }}
  1607. okText="删除"
  1608. cancelText="不删除"
  1609. >
  1610. <Button
  1611. style={{
  1612. marginRight: "10px",
  1613. color: "#ffffff",
  1614. background: "#f00",
  1615. border: "none",
  1616. }}
  1617. >
  1618. 删除
  1619. </Button>
  1620. </Popconfirm>
  1621. ) : (
  1622. ""
  1623. )}
  1624. {record.isSave ? (
  1625. <Button
  1626. type="primary"
  1627. onClick={(e) => {
  1628. this.contactSaveNew(record);
  1629. }}
  1630. >
  1631. 保存
  1632. </Button>
  1633. ) : (
  1634. ""
  1635. )}
  1636. </div>
  1637. );
  1638. },
  1639. },
  1640. ],
  1641. changeCuiList: [
  1642. {
  1643. title: "变更状态",
  1644. dataIndex: "type",
  1645. key: "type",
  1646. render: (text) => {
  1647. let str = "";
  1648. let color = "";
  1649. if (text == 1) {
  1650. str = "增";
  1651. color = "#87d068";
  1652. } else if (text == 2) {
  1653. str = "改";
  1654. color = "#108ee9";
  1655. } else if (text == 3) {
  1656. str = "删";
  1657. color = "#f50";
  1658. }
  1659. return (
  1660. <Tag
  1661. color={color}
  1662. style={{ display: text == 0 ? "none" : "inline-block" }}
  1663. >
  1664. {str}
  1665. </Tag>
  1666. );
  1667. },
  1668. },
  1669. {
  1670. title: "项目名称",
  1671. dataIndex: "commodityName",
  1672. key: "commodityName",
  1673. render: (text, record, index) => {
  1674. let dataArr = this.state.proDataSource || [];
  1675. if (text) {
  1676. // return <span>{text + "-" + record.ctid}</span>;
  1677. if (record.ctid) {
  1678. return <span>{text + "-" + record.ctid}</span>;
  1679. } else {
  1680. let tid = record.tid;
  1681. let ctid = "";
  1682. dataArr.forEach((item, index) => {
  1683. if (item.tid == tid) {
  1684. ctid = item.id;
  1685. }
  1686. });
  1687. return <span>{text + "-" + ctid}</span>;
  1688. }
  1689. }
  1690. return (
  1691. <Select
  1692. placeholder="请选择名称"
  1693. style={{ width: "150px" }}
  1694. disabled={
  1695. this.state.getLoad && record.sortName ? true : false
  1696. }
  1697. onChange={(e) => {
  1698. let proData = dataArr[e];
  1699. record.cname = proData.cname;
  1700. record.ctid = proData.id;
  1701. record.isSave = true;
  1702. record.sort = proData.cSort;
  1703. cuiJieDian.forEach((item) => {
  1704. if (item.value == record.sort) {
  1705. record.arr = item.children;
  1706. let yearFlag = true;
  1707. if (record.sort == 6) {
  1708. yearFlag = false;
  1709. }
  1710. this.setState({
  1711. getLoad: true,
  1712. yearFlag,
  1713. });
  1714. }
  1715. });
  1716. }}
  1717. >
  1718. {dataArr.map((item, index) => {
  1719. if (item.type == 3) {
  1720. return (
  1721. <Select.Option key={item.id} value={item.key} disabled>
  1722. {item.commodityName + "-" + item.id}
  1723. </Select.Option>
  1724. );
  1725. } else {
  1726. return (
  1727. <Select.Option key={item.id} value={item.key}>
  1728. {item.commodityName + "-" + item.id}
  1729. </Select.Option>
  1730. );
  1731. }
  1732. })}
  1733. </Select>
  1734. );
  1735. },
  1736. },
  1737. {
  1738. title: "项目分类",
  1739. dataIndex: "projectType",
  1740. key: "projectType",
  1741. render: (text, record) => {
  1742. if (text) {
  1743. let arr = this.state.proDataSource || [];
  1744. let str = "";
  1745. for (let i = 0; i < arr.length; i++) {
  1746. if (this.state.proDataSource[i].cSort == text) {
  1747. str = this.state.proDataSource[i].cname;
  1748. return <span>{str}</span>;
  1749. }
  1750. }
  1751. }
  1752. if (this.state.getLoad) {
  1753. return (
  1754. <Select
  1755. style={{ width: "150px" }}
  1756. placeholder="请选择分类"
  1757. value={record.cname}
  1758. >
  1759. <Select.Option key={record.sort} value={record.cname}>
  1760. {record.cname}
  1761. </Select.Option>
  1762. </Select>
  1763. );
  1764. } else {
  1765. return (
  1766. <Select style={{ width: "150px" }} placeholder="请选择分类">
  1767. <Select.Option key={record.sort} value={record.cname}>
  1768. {record.cname}
  1769. </Select.Option>
  1770. </Select>
  1771. );
  1772. }
  1773. },
  1774. },
  1775. {
  1776. title: "催款科目",
  1777. dataIndex: "dunTypeName",
  1778. key: "dunTypeName",
  1779. render: (text, record) => {
  1780. if (text) {
  1781. return <span>{text}</span>;
  1782. }
  1783. if (this.state.getLoad) {
  1784. let arr = record.arr || [];
  1785. return (
  1786. <div>
  1787. <Select
  1788. style={{ width: "150px", marginRight: 5 }}
  1789. placeholder="请选择分类"
  1790. onChange={(e) => {
  1791. record.dunType = e;
  1792. if (record.dunType != 0) {
  1793. record.customizeTimes = "";
  1794. record.customizeName = "";
  1795. }
  1796. if (e != 1) {
  1797. this.setState({
  1798. timeFlag: true,
  1799. });
  1800. } else {
  1801. this.setState({
  1802. timeFlag: false,
  1803. });
  1804. }
  1805. if (e == 1 && record.sort == 6) {
  1806. this.setState({
  1807. yearFlag: true,
  1808. });
  1809. } else if (e != 1 && record.sort == 6) {
  1810. this.setState({
  1811. yearFlag: false,
  1812. });
  1813. }
  1814. if (record.sort == 3 && e == 3) {
  1815. this.setState({
  1816. boFlag: true,
  1817. });
  1818. } else {
  1819. this.setState({
  1820. boFlag: false,
  1821. });
  1822. }
  1823. }}
  1824. >
  1825. {arr.map((item) => {
  1826. record;
  1827. return (
  1828. <Select.Option key={item.value} value={item.value}>
  1829. {item.key}
  1830. </Select.Option>
  1831. );
  1832. })}
  1833. <Select.Option key={0} value={0}>
  1834. 自定义
  1835. </Select.Option>
  1836. </Select>
  1837. {record.dunType == 0 ? (
  1838. <Input
  1839. value={record.customizeName}
  1840. placeholder="请输入自定义名称"
  1841. required="required"
  1842. onChange={(e) => {
  1843. record.customizeName = e.target.value;
  1844. this.setState({
  1845. contactList: this.state.contactList,
  1846. });
  1847. }}
  1848. style={{ width: "120px" }}
  1849. />
  1850. ) : (
  1851. ""
  1852. )}
  1853. </div>
  1854. );
  1855. } else {
  1856. return (
  1857. <Select style={{ width: "150px" }} placeholder="请选择分类">
  1858. <Select.Option
  1859. key={0}
  1860. value={"请选择上一项"}
  1861. ></Select.Option>
  1862. </Select>
  1863. );
  1864. }
  1865. },
  1866. },
  1867. {
  1868. title: "收款时间(特批需选择时间)",
  1869. dataIndex: "waitDay",
  1870. key: "waitDay",
  1871. render: (text, record) => {
  1872. if (record.dunTypeName) {
  1873. if (record.customizeTimes) {
  1874. return record.customizeTimes;
  1875. }
  1876. if (text == 0) {
  1877. var str = "当天";
  1878. } else if (!text) {
  1879. var str = "";
  1880. } else {
  1881. var str = text + "天";
  1882. }
  1883. return <span>{str}</span>;
  1884. }
  1885. return (
  1886. <div>
  1887. {record.dunType == 0 ? (
  1888. <DatePicker
  1889. style={{ width: 150 }}
  1890. disabledDate={(e) => {
  1891. let time = moment(e).valueOf();
  1892. let today = Date.parse(new Date());
  1893. if (time <= today) {
  1894. return true;
  1895. }
  1896. }}
  1897. onChange={(e, t) => {
  1898. record.customizeTimes = t;
  1899. }}
  1900. />
  1901. ) : (
  1902. <Select
  1903. placeholder="请选择时间"
  1904. style={{ width: "160px" }}
  1905. disabled={
  1906. this.state.approval != 0 && !this.state.timeFlag
  1907. ? false
  1908. : true
  1909. }
  1910. onChange={(e) => {
  1911. record.waitDay = e;
  1912. }}
  1913. >
  1914. <Select.Option key={0}>当天</Select.Option>
  1915. <Select.Option key={3}>3天</Select.Option>
  1916. <Select.Option key={5}>5天</Select.Option>
  1917. <Select.Option key={7}>7天</Select.Option>
  1918. <Select.Option key={15}>15天</Select.Option>
  1919. </Select>
  1920. )}
  1921. </div>
  1922. );
  1923. },
  1924. },
  1925. {
  1926. title: "金额(万元)",
  1927. dataIndex: "money",
  1928. key: "money",
  1929. render: (text, record) => {
  1930. if (record.dunTypeName) {
  1931. if (record.appropriationRatio) {
  1932. let percent = Number(record.appropriationRatio * 100).toFixed(2);
  1933. percent += "%";
  1934. return <span>{percent}(拨款比例)</span>;
  1935. } else {
  1936. return <span>{text}</span>;
  1937. }
  1938. }
  1939. return (
  1940. <div>
  1941. <div style={{ width: 70, textAlign: "center", float: "left", marginRight: 5 }}>
  1942. <Select
  1943. placeholder="选择"
  1944. defaultValue={"金额"}
  1945. onChange={(e) => {
  1946. record.boStatus = e;
  1947. }}
  1948. >
  1949. <Select.Option key={true}>比例</Select.Option>
  1950. <Select.Option key={false}>金额</Select.Option>
  1951. </Select>
  1952. </div>
  1953. <div style={{ float: "right" }}>
  1954. <Input
  1955. type="number"
  1956. value={record.money}
  1957. key={record.id}
  1958. required="required"
  1959. onChange={(e) => {
  1960. record.money = e.target.value;
  1961. this.setState({
  1962. contactList: this.state.contactList,
  1963. });
  1964. }}
  1965. style={{ width: "120px" }}
  1966. />
  1967. </div>
  1968. </div>
  1969. );
  1970. // if (this.state.boFlag) {
  1971. // return (
  1972. // <div>
  1973. // <div style={{ width: 70, textAlign: "center", float: "left", marginRight: 5 }}>
  1974. // <Select
  1975. // placeholder="选择"
  1976. // defaultValue={"金额"}
  1977. // onChange={(e) => {
  1978. // record.boStatus = e;
  1979. // }}
  1980. // >
  1981. // <Select.Option key={true}>比例</Select.Option>
  1982. // <Select.Option key={false}>金额</Select.Option>
  1983. // </Select>
  1984. // </div>
  1985. // <div style={{ float: "right" }}>
  1986. // <Input
  1987. // type="number"
  1988. // value={record.money}
  1989. // key={record.id}
  1990. // required="required"
  1991. // onChange={(e) => {
  1992. // record.money = e.target.value;
  1993. // this.setState({
  1994. // contactList: this.state.contactList,
  1995. // });
  1996. // }}
  1997. // style={{ width: "120px" }}
  1998. // />
  1999. // </div>
  2000. // </div>
  2001. // );
  2002. // } else {
  2003. // return (
  2004. // <div>
  2005. // <Input
  2006. // type="number"
  2007. // value={record.money}
  2008. // placeholder="请输入金额(必填项)"
  2009. // key={record.id}
  2010. // required="required"
  2011. // onChange={(e) => {
  2012. // record.money = e.target.value;
  2013. // this.setState({ contactList: this.state.contactList });
  2014. // }}
  2015. // style={{ width: "120px" }}
  2016. // />
  2017. // </div>
  2018. // );
  2019. // }
  2020. },
  2021. },
  2022. {
  2023. title: "服务年限",
  2024. dataIndex: "startDate",
  2025. key: "startDate",
  2026. render: (text, record) => {
  2027. if (record.dunTypeName) {
  2028. return <span>{text}</span>;
  2029. }
  2030. return (
  2031. <Select
  2032. placeholder="请选择年限"
  2033. style={{ width: "150px" }}
  2034. disabled={this.state.yearFlag ? true : false}
  2035. onChange={(e) => {
  2036. record.effectiveCount = e;
  2037. }}
  2038. >
  2039. {/* <Select.Option key={null}>无</Select.Option> */}
  2040. <Select.Option key={1}>一年</Select.Option>
  2041. <Select.Option key={3}>两年</Select.Option>
  2042. <Select.Option key={5}>三年</Select.Option>
  2043. <Select.Option key={7}>四年</Select.Option>
  2044. <Select.Option key={9}>五年</Select.Option>
  2045. </Select>
  2046. );
  2047. },
  2048. },
  2049. {
  2050. title: "催款状态",
  2051. dataIndex: "status",
  2052. key: "status",
  2053. render: (text) => {
  2054. return <span>{text == 1 ? "已启动" : "未启动"}</span>;
  2055. },
  2056. },
  2057. {
  2058. title: "操作",
  2059. dataIndex: "dels",
  2060. key: "dels",
  2061. render: (text, record, index) => {
  2062. return (
  2063. <div>
  2064. <Popconfirm
  2065. title="是否删除?"
  2066. onConfirm={() => {
  2067. this.changeDeleteCui(record);
  2068. }}
  2069. okText="删除"
  2070. cancelText="不删除"
  2071. >
  2072. <Button
  2073. disabled={this.state.listCuiFlag}
  2074. style={{
  2075. marginRight: "10px",
  2076. display: this.state.displayList ? "none" : "block",
  2077. }}
  2078. >
  2079. 删除
  2080. </Button>
  2081. </Popconfirm>
  2082. {record.isSave ? (
  2083. <Button
  2084. type="primary"
  2085. style={{ marginTop: 5 }}
  2086. onClick={(e) => {
  2087. this.changeSaveCui(record);
  2088. }}
  2089. >
  2090. 保存
  2091. </Button>
  2092. ) : (
  2093. ""
  2094. )}
  2095. </div>
  2096. );
  2097. },
  2098. },
  2099. ],
  2100. updatas: {},//销售类型修改数据
  2101. newData: {},//新建会员记忆数据
  2102. serviceLife: [],
  2103. isVip: undefined,//是否会员
  2104. isIso: undefined,//是否贯标
  2105. histYear: [],
  2106. contractTerm: [],//合同期
  2107. isEdit: false,//是否可编辑
  2108. addyear: undefined,//
  2109. isGive: 0,//是否赠送
  2110. cPeriod: false, // 合同期是否可编辑
  2111. isNew: false,// 是否替换合同
  2112. sType: "",
  2113. selectList: [],// 可操作项目集
  2114. };
  2115. },
  2116. getpatentTypeList() {
  2117. $.ajax({
  2118. method: "get",
  2119. dataType: "json",
  2120. crossDomain: false,
  2121. url: globalConfig.context + "/api/admin/orderProject/getPatentType",
  2122. success: function (data) {
  2123. if (data.error.length === 0) {
  2124. this.setState({
  2125. patentTypeList: data.data,
  2126. });
  2127. } else {
  2128. message.warning(data.error[0].message);
  2129. }
  2130. }.bind(this),
  2131. });
  2132. },
  2133. departmentList() {
  2134. this.setState({
  2135. loading: true,
  2136. });
  2137. $.ajax({
  2138. method: "get",
  2139. dataType: "json",
  2140. crossDomain: false,
  2141. url: globalConfig.context + "/api/admin/organization/selectSuperId",
  2142. data: {},
  2143. success: function (data) {
  2144. let thedata = data.data;
  2145. let theArr = [];
  2146. if (!thedata) {
  2147. if (data.error && data.error.length) {
  2148. message.warning(data.error[0].message);
  2149. }
  2150. thedata = {};
  2151. } else {
  2152. thedata.forEach((item) => {
  2153. theArr.push({
  2154. key: item.id,
  2155. name: item.name,
  2156. id: item.id,
  2157. depNo: item.depNo,
  2158. })
  2159. if (item.list) {
  2160. item.list.forEach((itl) => {
  2161. theArr.push({
  2162. key: itl.id,
  2163. name: itl.name,
  2164. id: itl.id,
  2165. depNo: itl.depNo,
  2166. })
  2167. });
  2168. }
  2169. })
  2170. }
  2171. this.setState({
  2172. departmentArr: theArr,
  2173. });
  2174. }.bind(this),
  2175. }).always(
  2176. function () {
  2177. this.setState({
  2178. loading: false,
  2179. });
  2180. }.bind(this)
  2181. );
  2182. },
  2183. // 拆分详细
  2184. showRes(record) {
  2185. this.setState({
  2186. resVisible: true,
  2187. resRecord: record,
  2188. });
  2189. },
  2190. resCancel() {
  2191. this.setState({
  2192. resVisible: false,
  2193. });
  2194. },
  2195. validConfiderBreachForm(data) {
  2196. let flag = true;
  2197. let msg = '';
  2198. data.ndaUrl = data.ndaUrl || []
  2199. data.breachClauseUrl = data.breachClauseUrl || []
  2200. if (data.nda === undefined || data.nda === null || data.nda === '') {
  2201. flag = false;
  2202. msg = '请选择是否签订保密协议'
  2203. } else if (data.nda == '1' && !data.ndaUrl.length) {
  2204. flag = false;
  2205. msg = '请上传保密协议图片'
  2206. } else if (data.breachClause1 === undefined || data.breachClause1 === null || data.breachClause1 === '') {
  2207. flag = false;
  2208. msg = '请选择是否有违约条款'
  2209. } else if (data.breachClause1 != '0' && !data.breachClause2) {
  2210. flag = false;
  2211. msg = '请选择与技术有关/无关'
  2212. } else if (data.breachClause1 != '0' && !data.breachClauseUrl.length) {
  2213. flag = false;
  2214. msg = '请上传签约条款图片'
  2215. }
  2216. return { flag, msg }
  2217. },
  2218. // 获取保密&违约说明数据
  2219. getConfidenBreachFormData(data) {
  2220. const _data = Object.assign({}, data);
  2221. _data.ndaUrl = _data.ndaUrl || [];
  2222. _data.breachClauseUrl = _data.breachClauseUrl || [];
  2223. if (_data.breachClause1 == '0') {
  2224. _data.breachClause = '0'
  2225. } else if (_data.breachClause1 == '1' && _data.breachClause2 == '1') {
  2226. // 有限责任违约条款、与技术服务有关
  2227. _data.breachClause = '1'
  2228. } else if (_data.breachClause1 == '1' && _data.breachClause2 == '0') {
  2229. // 有限责任违约条款、与技术服务无关
  2230. _data.breachClause = '2'
  2231. } else if (_data.breachClause1 == '2' && _data.breachClause2 == '1') {
  2232. // 无限责任违约条款、与技术服务有关
  2233. _data.breachClause = '3'
  2234. } else if (_data.breachClause1 == '2' && _data.breachClause2 == '0') {
  2235. // 无限责任违约条款、与技术服务无关
  2236. _data.breachClause = '4'
  2237. }
  2238. _data.ndaUrl = _data.ndaUrl.map(item => item.response.data).join(',')
  2239. _data.breachClauseUrl = _data.breachClauseUrl.map(item => item.response.data).join(',')
  2240. delete _data.breachClause1
  2241. delete _data.breachClause2
  2242. return _data;
  2243. },
  2244. setConfidenBreachFormData(data) {
  2245. let breachClause1, breachClause2 = ''
  2246. if (data.breachClause == 0) {
  2247. breachClause1 = '0'
  2248. } else if (data.breachClause == 1) {
  2249. breachClause1 = '1'
  2250. breachClause2 = '1'
  2251. } else if (data.breachClause == 2) {
  2252. breachClause1 = '1'
  2253. breachClause2 = '0'
  2254. } else if (data.breachClause == 3) {
  2255. breachClause1 = '2'
  2256. breachClause2 = '1'
  2257. } else if (data.breachClause == 4) {
  2258. breachClause1 = '2'
  2259. breachClause2 = '0'
  2260. }
  2261. return {
  2262. nda: data.nda,
  2263. ndaUrl: data.ndaUrl ? splitUrl(
  2264. data.ndaUrl,
  2265. ",",
  2266. globalConfig.avatarHost + "/upload"
  2267. ) : [],
  2268. breachClause1,
  2269. breachClause2,
  2270. breachClauseUrl: data.breachClauseUrl ? splitUrl(
  2271. data.breachClauseUrl,
  2272. ",",
  2273. globalConfig.avatarHost + "/upload"
  2274. ) : []
  2275. }
  2276. },
  2277. //新建订单、编辑订单保存
  2278. handleSubmit(e) {
  2279. e.preventDefault();
  2280. let theorgCodeUrl = [];
  2281. if (this.state.orgCodeUrl.length) {
  2282. let picArr = [];
  2283. this.state.orgCodeUrl.map(function (item) {
  2284. if (
  2285. item.response &&
  2286. item.response.data &&
  2287. item.response.data.length
  2288. ) {
  2289. picArr.push(item.response.data);
  2290. }
  2291. });
  2292. theorgCodeUrl = picArr.join(",");
  2293. }
  2294. let theReplenishUrl = [];
  2295. if (this.state.replenishUrl.length) {
  2296. let picArr = [];
  2297. this.state.replenishUrl.map(function (item) {
  2298. if (
  2299. item.response &&
  2300. item.response.data &&
  2301. item.response.data.length
  2302. ) {
  2303. picArr.push(item.response.data);
  2304. }
  2305. });
  2306. theReplenishUrl = picArr.join(",");
  2307. }
  2308. // 服务内容上传图片
  2309. let contentUrl = [];
  2310. if (this.props.userDetaile) {
  2311. if (this.state.contentUrl.length) {
  2312. let picArr = [];
  2313. this.state.contentUrl.map(function (item) {
  2314. if (
  2315. item.response &&
  2316. item.response.data &&
  2317. item.response.data.length
  2318. ) {
  2319. picArr.push(item.response.data);
  2320. }
  2321. });
  2322. contentUrl = picArr.join(",");
  2323. } else {
  2324. message.info("请上传服务内容图片")
  2325. return
  2326. }
  2327. }
  2328. if (this.props.userDetaile) {
  2329. if (!this.state.signDate) {
  2330. message.warning("签单日期不能为空");
  2331. $(".signDateRef input").focus();
  2332. return false;
  2333. }
  2334. if (isNaN(parseInt(this.state.totalAmount))) {
  2335. message.warning("签单金额不能为空");
  2336. this.refs.totalAmountRef.focus();
  2337. return false;
  2338. }
  2339. if (isNaN(parseInt(this.state.firstAmount))) {
  2340. message.warning("首付金额不能为空");
  2341. this.refs.firstAmountRef.focus();
  2342. return false;
  2343. }
  2344. if (moneyVerify(this.state.firstAmount)) {
  2345. return;
  2346. }
  2347. if (moneyVerify(this.state.totalAmount)) {
  2348. return;
  2349. }
  2350. if (!this.state.contacts) {
  2351. message.warning("企业联系人不能为空");
  2352. return
  2353. }
  2354. if (!this.state.contactMobile) {
  2355. message.warning("企业联系人电话不能为空");
  2356. return
  2357. }
  2358. var regeX1 = /^1[3456789]\d{9}$/;
  2359. var regex2 = /^((0\d{2,3})-)?(\d{7,8})$/;
  2360. if (regeX1.test(this.state.contactMobile) == false && regex2.test(this.state.contactMobile) == false) {
  2361. message.warning("请输入正确的企业联系人电话");
  2362. return false;
  2363. }
  2364. if (!theorgCodeUrl) {
  2365. message.warning("图片过大,上传失败");
  2366. this.refs.signFirstPayment.focus();
  2367. return false;
  2368. }
  2369. if (this.state.isShow) {
  2370. if (this.state.knowledgeServices == null ||
  2371. this.state.auditServices == null ||
  2372. this.state.addDeductionServices == null) {
  2373. message.warn("请完善高新纯咨询合同说明!")
  2374. return
  2375. }
  2376. }
  2377. if (!this.state.isProperty) {
  2378. message.warn("请完善知识产权情况!")
  2379. return
  2380. }
  2381. if (this.state.isProperty == 2 && !this.state.patentStatus) {
  2382. message.warn("请完善知识产权情况!")
  2383. return
  2384. }
  2385. if (!this.state.orderRemarks) {
  2386. message.warning("订单留言不能为空");
  2387. this.refs.orderRemarksRef.focus();
  2388. return false;
  2389. }
  2390. if (this.state.approval == 1) {
  2391. if (this.state.approvaType && this.state.approvaType.length == 0) {
  2392. message.warning("请勾选特批状态!");
  2393. return false;
  2394. }
  2395. if (this.state.approvaType.indexOf(0) !== -1 && !this.state.typeExplain) {
  2396. message.warning("请填写特批其他说明!");
  2397. return false;
  2398. }
  2399. }
  2400. }
  2401. const arr = this.state.contactListNew || [];
  2402. for (let i = 0; i < arr.length; i++) {
  2403. if (
  2404. arr[i].dunType == 1 &&
  2405. arr[i].waitDay != null &&
  2406. this.state.approval == 0
  2407. ) {
  2408. message.warning(
  2409. "非特批存在填写催款节点首付时间的情况,请删除后重新填写保存"
  2410. );
  2411. return false;
  2412. } else if (
  2413. arr[i].dunType == 1 &&
  2414. arr[i].waitDay == null &&
  2415. this.state.approval == 1
  2416. ) {
  2417. message.warning(
  2418. "特批存在首付催款节点未填写时间的情况,请删除后重新填写保存"
  2419. );
  2420. return false;
  2421. }
  2422. if (!this.state.contactListNew[i].id && this.props.userDetaile) {
  2423. message.warning("请保存催款节点");
  2424. return false;
  2425. }
  2426. }
  2427. if (this.props.userDetaile) {
  2428. let breachValid = this.validConfiderBreachForm(this.state.confidenBreachData)
  2429. if (!breachValid.flag) {
  2430. message.warning(breachValid.msg);
  2431. return false;
  2432. }
  2433. }
  2434. this.setState({
  2435. loading: true,
  2436. });
  2437. let api = this.props.userDetaile
  2438. ? this.state.isSubmit == 1 ? "/api/admin/newOrder/submitOrder" : "/api/admin/newOrder/updateServiceOrderNew"
  2439. : "/api/admin/newOrder/createOrder";
  2440. const { selectSales, other, channelid, channelname, userType } = this.state
  2441. // 开单
  2442. let datas = {
  2443. uid: this.state.autoId,//用户id
  2444. orderType: this.state.orderType,//订单类型
  2445. salesType: selectSales,//销售类型
  2446. userType: userType,//客户所属类型
  2447. };
  2448. if (selectSales == "3") { //传渠道编号 other里面传渠道名称
  2449. datas = Object.assign(datas, {
  2450. channelId: channelid,
  2451. other: channelname,
  2452. })
  2453. } else if (selectSales == "4" || selectSales == "5") { //4,5要传描述
  2454. datas = Object.assign(datas, {
  2455. other: other,
  2456. })
  2457. }
  2458. let confidenBreachData = this.getConfidenBreachFormData(this.state.confidenBreachData)
  2459. $.ajax({
  2460. method: "POST",
  2461. dataType: "json",
  2462. crossDomain: false,
  2463. url: globalConfig.context + api,
  2464. data: !this.props.userDetaile
  2465. ? datas
  2466. : {
  2467. // 签单、保存
  2468. orderNo: this.state.orderNo, //订单编号
  2469. totalAmount: this.state.totalAmount, //总金额
  2470. firstAmount: this.state.firstAmount, //首付
  2471. isSubmit: this.state.isSubmit, //保存草稿还是提交
  2472. signDate: this.state.signDate, //签单日期
  2473. contacts: this.state.contacts, //企业负责人
  2474. contactMobile: this.state.contactMobile, //负责人联系方式
  2475. legalPerson: this.state.legalPerson, //企业法人
  2476. legalPersonTel: this.state.legalPersonTel, //企业法人联系电话
  2477. approval: this.state.approval, //特批状态
  2478. orderRemarks: this.state.orderRemarks, //订单备注
  2479. contractPictureUrl: theorgCodeUrl.length ? theorgCodeUrl : "",
  2480. agreementUrl: theReplenishUrl.length ? theReplenishUrl : "",
  2481. serviceContent: contentUrl.length ? contentUrl : "",
  2482. orderDep: this.state.organizationSearch,
  2483. knowledgeServices: this.state.isShow ? this.state.knowledgeServices : undefined, //知识产权服务
  2484. auditServices: this.state.isShow ? this.state.auditServices : undefined, //审计服务
  2485. addDeductionServices: this.state.isShow ? this.state.addDeductionServices : undefined, //加计扣除服务
  2486. knowledgeOther: this.state.isShow ? this.state.knowledgeOther : undefined, //知识产权服务其他描述
  2487. auditOther: this.state.isShow ? this.state.auditOther : undefined, //审计服务其他描述
  2488. addDeductionOther: this.state.isShow ? this.state.addDeductionOther : undefined, //加计扣除服务其他描述
  2489. patentStatus: this.state.patentStatus, //知识产权情况
  2490. type: this.state.approvaType.sort(compare).toString(), // 特批类型
  2491. typeExplain: this.state.approvaType.indexOf(0) === -1 ? "" : this.state.typeExplain, // 其他备注
  2492. nda: confidenBreachData.nda,
  2493. ndaUrl: confidenBreachData.ndaUrl,
  2494. breachClause: confidenBreachData.breachClause,
  2495. breachClauseUrl: confidenBreachData.breachClauseUrl
  2496. },
  2497. }).done(
  2498. function (data) {
  2499. this.setState({
  2500. loading: false,
  2501. });
  2502. if (!data.error.length) {
  2503. message.success("保存成功!");
  2504. this.handleOk();
  2505. if (this.state.autoId) {
  2506. this.loadData();
  2507. }
  2508. } else {
  2509. message.warning(data.error[0].message);
  2510. }
  2511. }.bind(this)
  2512. );
  2513. },
  2514. //订单作废
  2515. examOks() {
  2516. this.setState({
  2517. loading: true,
  2518. });
  2519. $.ajax({
  2520. method: "post",
  2521. dataType: "json",
  2522. crossDomain: false,
  2523. url: globalConfig.context + "/api/admin/newOrder/deleteOrderNew",
  2524. data: {
  2525. orderNo: this.state.orderNo, //订单编号
  2526. },
  2527. success: function (data) {
  2528. if (data.error.length || data.data.list == "") {
  2529. if (data.error && data.error.length) {
  2530. message.warning(data.error[0].message);
  2531. }
  2532. } else {
  2533. message.success("操作成功~");
  2534. this.setState({
  2535. visible: false,
  2536. loading: false,
  2537. });
  2538. this.props.closeDesc(false);
  2539. }
  2540. }.bind(this),
  2541. }).always(
  2542. function () {
  2543. this.setState({
  2544. loading: false,
  2545. });
  2546. }.bind(this)
  2547. );
  2548. },
  2549. //订单详情修改
  2550. xiangqingClick(e) {
  2551. e.preventDefault();
  2552. this.setState({
  2553. loading: true,
  2554. });
  2555. if (this.state.approval == 2 || this.state.approval == 3) {
  2556. message.warning("特批状态不正确");
  2557. this.setState({
  2558. loading: false,
  2559. });
  2560. return;
  2561. }
  2562. $.ajax({
  2563. url: globalConfig.context + this.state.isSubmit == 1 ? "/api/admin/newOrder/submitOrder" : "/api/admin/newOrder/updateServiceOrderNew",
  2564. method: "post",
  2565. data: {
  2566. orderNo: this.state.orderNo, //订单编号
  2567. totalAmount: this.state.totalAmount, //总金额
  2568. firstAmount: this.state.firstAmount, //首付
  2569. isSubmit: this.state.isSubmit, //保存草稿还是提交
  2570. signDate: this.state.selTime, //签单日期
  2571. contacts: this.state.contacts, //企业负责人
  2572. contactMobile: this.state.contactMobile, //负责人联系方式
  2573. legalPerson: this.state.legalPerson, //企业法人
  2574. legalPersonTel: this.state.legalPersonTel, //企业法人联系电话
  2575. approval: this.state.approval, //特批状态
  2576. orderRemarks: this.state.orderRemarks, //订单备注
  2577. },
  2578. }).done(
  2579. function (data) {
  2580. this.setState({
  2581. loading: false,
  2582. });
  2583. if (!data.error.length) {
  2584. message.success("保存成功!");
  2585. this.loaduser();
  2586. } else {
  2587. message.warning(data.error[0].message);
  2588. }
  2589. }.bind(this)
  2590. );
  2591. },
  2592. not() { },
  2593. //查看基本详情基本信息
  2594. loaduser(record) {
  2595. this.setState({
  2596. closable: false,
  2597. disabledView: "none",
  2598. });
  2599. this.state.orderList = [];
  2600. $.ajax({
  2601. method: "get",
  2602. dataType: "json",
  2603. crossDomain: false,
  2604. url: globalConfig.context + "/api/admin/newOrder/getOrderNewDetail",
  2605. data: {
  2606. orderNo: record ? record.orderNo : this.props.datauser.orderNo,
  2607. },
  2608. success: function (data) {
  2609. let thisData = data.data;
  2610. if (!thisData) {
  2611. if (data.error && data.error.length) {
  2612. message.warning(data.error[0].message);
  2613. }
  2614. thisData = {};
  2615. }
  2616. // if (thisData.approval == 2) {
  2617. // thisData.approval = "特批通过";
  2618. // } else if (thisData.approval == 3) {
  2619. // thisData.approval = "特批驳回";
  2620. // }
  2621. this.setState({
  2622. id: thisData.id,
  2623. kehuId: thisData.buyerId,
  2624. orderNo: thisData.orderNo, //订单编号
  2625. orderType: thisData.orderType, //订单类型
  2626. firstAmount: thisData.firstAmount, //首付金额
  2627. totalAmount: thisData.totalAmount, //总金额
  2628. settlementAmount: thisData.settlementAmount, //结算金额
  2629. liquidationStatus: thisData.liquidationStatus, //清算状态
  2630. examineName: thisData.examineName,
  2631. processStatus: thisData.processStatus, //流程状态
  2632. approval: thisData.approval, //特批状态
  2633. orderRemarks: thisData.orderRemarks, //订单备注
  2634. contractNo: thisData.contractNo, //合同编号
  2635. contacts: thisData.contacts, //联系人
  2636. contactMobile: thisData.contactMobile, //联系人电话
  2637. legalPerson: thisData.legalPerson, //法人
  2638. legalPersonTel: thisData.legalPersonTel, //法人电话
  2639. knowledgeServices: thisData.knowledgeServices, //知识产权服务
  2640. auditServices: thisData.auditServices, //审计服务
  2641. addDeductionServices: thisData.addDeductionServices, //加计扣除服务
  2642. knowledgeOther: thisData.knowledgeOther, //知识产权服务其他描述
  2643. auditOther: thisData.auditOther, //审计服务其他描述
  2644. addDeductionOther: thisData.addDeductionOther, //加计扣除服务其他描述
  2645. patentStatus: thisData.patentStatus, // 知识产权情况
  2646. isProperty: thisData.patentStatus == null ? null : thisData.patentStatus == 0 ? 1 : 2,
  2647. approvaType: thisData.type ? thisData.type.split(",").map(Number) : [], // 特批类型
  2648. typeExplain: thisData.typeExplain,
  2649. orgCodeUrl: thisData.contractPictureUrl
  2650. ? splitUrl(
  2651. thisData.contractPictureUrl,
  2652. ",",
  2653. globalConfig.avatarHost + "/upload"
  2654. )
  2655. : [], //图片地址
  2656. replenishUrl: thisData.agreementUrl
  2657. ? splitUrl(
  2658. thisData.agreementUrl,
  2659. ",",
  2660. globalConfig.avatarHost + "/upload"
  2661. )
  2662. : [], //图片地址
  2663. contentUrl: thisData.serviceContent
  2664. ? splitUrl(
  2665. thisData.serviceContent,
  2666. ",",
  2667. globalConfig.avatarHost + "/upload"
  2668. )
  2669. : [], //图片地址
  2670. signDate: thisData.signDate, //签单时间
  2671. userName: thisData.userName, //客户名称
  2672. salesmanName: thisData.salesmanName, //营销员名称
  2673. salesmanMobile: thisData.salesmanMobile, //营销员电话
  2674. oldSalesmanName: thisData.oldSalesmanName, //营销员名称
  2675. oldSalesmanMobile: thisData.oldSalesmanMobile, //营销员电话
  2676. financeName: thisData.financeName, //财务名称
  2677. financeMobile: thisData.financeMobile, //财务电话
  2678. nowFinanceMobile: thisData.nowFinanceMobile,
  2679. nowFinance: thisData.nowFinance,
  2680. // approval:
  2681. // thisData.approval == 0
  2682. // ? thisData.approval.toString()
  2683. // : thisData.approval,
  2684. organizationSearch: thisData.orderDep,
  2685. depName: thisData.depName,
  2686. status: thisData.status,
  2687. outsource: thisData.outsource,
  2688. deleteSign: thisData.deleteSign,
  2689. orderUid: thisData.uid,
  2690. userType: thisData.userType,
  2691. updatas: {
  2692. salesType: thisData.salesType,//销售类型
  2693. userType: thisData.userType,//客户所属类型
  2694. other: thisData.other,//3渠道名 4,5描述
  2695. },
  2696. channelName: thisData.salesType == "3" ? thisData.other : "",//销售类型为渠道的时候给编辑出的渠道名称赋值
  2697. confidenBreachData: this.setConfidenBreachFormData(thisData),
  2698. confidenBreachChangeData: this.setConfidenBreachFormData(thisData),
  2699. confidenBreachDtData: {
  2700. nda: thisData.nda,
  2701. ndaUrl: thisData.ndaUrl
  2702. ? splitUrl(
  2703. thisData.ndaUrl,
  2704. ",",
  2705. globalConfig.avatarHost + "/upload"
  2706. )
  2707. : [],
  2708. breachClause: thisData.breachClause,
  2709. breachClauseUrl: thisData.breachClauseUrl
  2710. ? splitUrl(
  2711. thisData.breachClauseUrl,
  2712. ",",
  2713. globalConfig.avatarHost + "/upload"
  2714. )
  2715. : [],
  2716. },
  2717. });
  2718. // 判断状态
  2719. if (this.state.processStatus === 0) {
  2720. this.setState({
  2721. closable: true,
  2722. disabledView: "inline-block",
  2723. });
  2724. }
  2725. }.bind(this),
  2726. }).always(
  2727. function () {
  2728. this.setState({
  2729. loading: false,
  2730. });
  2731. }.bind(this)
  2732. );
  2733. },
  2734. //节点列表
  2735. jiedian(orderNos) {
  2736. this.setState({
  2737. loadData: true,
  2738. });
  2739. $.ajax({
  2740. method: "get",
  2741. dataType: "json",
  2742. crossDomain: false,
  2743. url: globalConfig.context + "/api/admin/newOrder/selectOrderDun",
  2744. data: {
  2745. orderNo: orderNos,
  2746. },
  2747. success: function (data) {
  2748. let theArr = [];
  2749. let thisData = [];
  2750. if (data.error.length || data.data.list == "") {
  2751. if (data.error && data.error.length) {
  2752. message.warning(data.error[0].message);
  2753. }
  2754. } else {
  2755. for (let i = 0; i < data.data.length; i++) {
  2756. thisData = data.data[i];
  2757. theArr.push({
  2758. key: i,
  2759. dunSubject: thisData.dunSubject
  2760. ? thisData.dunSubject.toString()
  2761. : "", //催款科目
  2762. id: thisData.id, //节点Id
  2763. money: thisData.money, //催款金额
  2764. dunStatus: thisData.dunStatus, //催款状态
  2765. orderNo: thisData.orderNo,
  2766. });
  2767. }
  2768. this.setState({
  2769. contactList: theArr,
  2770. });
  2771. }
  2772. }.bind(this),
  2773. }).always(
  2774. function () {
  2775. this.setState({
  2776. loading: false,
  2777. });
  2778. }.bind(this)
  2779. );
  2780. },
  2781. //查看催款节点
  2782. jiedianNew(orderNos) {
  2783. this.setState({
  2784. loadData: true,
  2785. });
  2786. $.ajax({
  2787. method: "get",
  2788. dataType: "json",
  2789. crossDomain: false,
  2790. url:
  2791. globalConfig.context + "/api/admin/newOrderDun/selectListNewOrderDun",
  2792. data: {
  2793. orderNo: orderNos,
  2794. },
  2795. success: function (data) {
  2796. if (data.error && data.error.length) {
  2797. message.warning(data.error[0].message);
  2798. } else {
  2799. let theArr = [];
  2800. let thisData = [];
  2801. let arr = data.data || [];
  2802. let totalCui = 0;
  2803. for (let i = 0; i < arr.length; i++) {
  2804. thisData = arr[i];
  2805. totalCui += +thisData.money;
  2806. theArr.push({
  2807. key: i,
  2808. dunSubject: thisData.dunSubject
  2809. ? thisData.dunSubject.toString()
  2810. : "", //催款科目
  2811. id: thisData.id, //节点Id
  2812. money: thisData.money, //催款金额
  2813. // orderNo: record ? record.orderNo : this.props.datauser.orderNo,
  2814. commodityName: thisData.commodityName,
  2815. projectType: thisData.projectType,
  2816. dunTypeName: thisData.dunTypeName,
  2817. status: thisData.status,
  2818. waitDay: thisData.waitDay,
  2819. effectiveCount: thisData.effectiveCount,
  2820. startDate: thisData.startDate,
  2821. dunType: thisData.dunType,
  2822. appropriationRatio: thisData.appropriationRatio,
  2823. customizeName: thisData.customizeName,
  2824. customizeTimes: thisData.customizeTimes,
  2825. tid: thisData.tid,
  2826. });
  2827. }
  2828. if (!totalCui) {
  2829. totalCui = 0;
  2830. }
  2831. totalCui = (Math.round(totalCui * 1000000) / 1000000).toFixed(6);
  2832. this.setState({
  2833. contactListNew: theArr,
  2834. totalCui: parseFloat(totalCui),
  2835. });
  2836. }
  2837. }.bind(this),
  2838. }).always(
  2839. function () {
  2840. this.setState({
  2841. loading: false,
  2842. });
  2843. }.bind(this)
  2844. );
  2845. },
  2846. //催款节点保存
  2847. contactSave(record) {
  2848. for (let i = 0; i < this.state.contactList.length; i++) {
  2849. if (moneyVerify(this.state.contactList[i].money)) {
  2850. return;
  2851. }
  2852. }
  2853. this.setState({
  2854. loading: true,
  2855. });
  2856. $.ajax({
  2857. url: globalConfig.context + "/api/admin/newOrder/createOrderDun",
  2858. method: "post",
  2859. data: {
  2860. orderNo: this.state.orderNo,
  2861. orderDun: JSON.stringify(this.state.contactList),
  2862. },
  2863. }).done(
  2864. function (data) {
  2865. this.setState({
  2866. loading: false,
  2867. });
  2868. if (!data.error.length) {
  2869. message.success("保存成功!");
  2870. this.jiedian(record.orderNo);
  2871. } else {
  2872. message.warning(data.error[0].message);
  2873. }
  2874. }.bind(this)
  2875. );
  2876. },
  2877. //催款节点保存
  2878. contactSaveNew(record) {
  2879. if (record.dunType == 0) {
  2880. if (!record.customizeTimes) {
  2881. message.warning("请输入自定义时间");
  2882. return;
  2883. } else if (!record.customizeName) {
  2884. message.warning("请输入自定义科目");
  2885. return;
  2886. }
  2887. }
  2888. if (
  2889. this.state.approval == 1 &&
  2890. record.dunType == 1 &&
  2891. !record.waitDay
  2892. ) {
  2893. message.warning("请填写收款时间");
  2894. return
  2895. }
  2896. if (record.boStatus == "false") {
  2897. record.boStatus = false;
  2898. } else if (record.boStatus == "true") {
  2899. record.boStatus = true;
  2900. }
  2901. if (!this.state.yearFlag) {
  2902. if (!record.effectiveCount && !record.dunTypeCustom) {
  2903. message.warning("请选择服务年限");
  2904. return;
  2905. }
  2906. } else {
  2907. record.effectiveCount = "";
  2908. }
  2909. if (record.money == "") {
  2910. message.warning("请填写金额");
  2911. return;
  2912. }
  2913. if (record.boStatus) {
  2914. if (
  2915. typeof +record.money == "number" &&
  2916. +record.money >= 0 &&
  2917. +record.money <= 1
  2918. ) {
  2919. record.appropriationRatio = record.money;
  2920. } else {
  2921. message.warning("金额比例填写错误,比例范围0~1");
  2922. return;
  2923. }
  2924. }
  2925. if (!record.dunType && record.dunType != 0) {
  2926. message.warning("请选择对应科目");
  2927. return;
  2928. }
  2929. if (record.dunType != 1) {
  2930. record.waitDay = "";
  2931. }
  2932. this.setState({
  2933. loading: true,
  2934. });
  2935. if (record.boStatus) {
  2936. $.ajax({
  2937. url: globalConfig.context + "/api/admin/newOrderDun/createDun",
  2938. method: "post",
  2939. data: {
  2940. orderNo: record.orderNo,
  2941. tid: record.tid,
  2942. projectType: record.sort,
  2943. dunType: record.dunType,
  2944. appropriationRatio: record.appropriationRatio,
  2945. waitDay: record.waitDay,
  2946. effectiveCount: record.effectiveCount,
  2947. customizeTimes:
  2948. record.dunType == 0 ? record.customizeTimes : undefined,
  2949. customizeName:
  2950. record.dunType == 0 ? record.customizeName : undefined,
  2951. },
  2952. }).done(
  2953. function (data) {
  2954. this.setState({
  2955. loading: false,
  2956. });
  2957. if (!data.error.length) {
  2958. message.success("保存成功!");
  2959. this.setState({
  2960. cuiFlag: false,
  2961. boFlag: false,
  2962. addFlag: false,
  2963. });
  2964. this.jiedianNew(record.orderNo);
  2965. } else {
  2966. message.warning(data.error[0].message);
  2967. }
  2968. }.bind(this)
  2969. );
  2970. } else {
  2971. $.ajax({
  2972. url: globalConfig.context + "/api/admin/newOrderDun/createDun",
  2973. method: "post",
  2974. data: {
  2975. orderNo: record.orderNo,
  2976. tid: record.tid,
  2977. projectType: record.sort,
  2978. dunType: record.dunType,
  2979. money: record.money,
  2980. waitDay: record.waitDay,
  2981. effectiveCount: record.effectiveCount,
  2982. customizeTimes:
  2983. record.dunType == 0 ? record.customizeTimes : undefined,
  2984. customizeName:
  2985. record.dunType == 0 ? record.customizeName : undefined,
  2986. },
  2987. }).done(
  2988. function (data) {
  2989. this.setState({
  2990. loading: false,
  2991. });
  2992. if (!data.error.length) {
  2993. message.success("保存成功!");
  2994. this.setState({
  2995. cuiFlag: false,
  2996. boFlag: false,
  2997. addFlag: false,
  2998. });
  2999. this.jiedianNew(record.orderNo);
  3000. } else {
  3001. message.warning(data.error[0].message);
  3002. }
  3003. }.bind(this)
  3004. );
  3005. }
  3006. },
  3007. //点击新增催款节点
  3008. addcontact() {
  3009. this.state.contactList.push({
  3010. key: this.state.contactList.length,
  3011. money: "",
  3012. dunSubject: undefined,
  3013. orderNo: this.state.orderNo,
  3014. dunTarget: this.state.kehuId,
  3015. });
  3016. this.setState({
  3017. contactList: this.state.contactList,
  3018. });
  3019. },
  3020. //点击新增催款节点
  3021. addcontactNew() {
  3022. this.state.contactListNew.push({
  3023. key: this.state.contactListNew.length,
  3024. money: "",
  3025. dunSubject: undefined,
  3026. orderNo: this.state.orderNo,
  3027. dunTarget: this.state.kehuId,
  3028. });
  3029. this.setState({
  3030. contactListNew: this.state.contactListNew,
  3031. cuiFlag: true,
  3032. });
  3033. },
  3034. //删除收款节点
  3035. confirmDelet(index) {
  3036. this.state.contactList.splice(index, 1);
  3037. this.setState({
  3038. contactList: this.state.contactList,
  3039. });
  3040. this.contactSave();
  3041. },
  3042. //删除收款节点
  3043. confirmDeletNew(index) {
  3044. if (index.id) {
  3045. this.state.contactListNew.splice(index.id, 1);
  3046. this.setState({
  3047. contactListNew: this.state.contactListNew,
  3048. cuiFlag: false,
  3049. addFlag: false,
  3050. boFlag: false,
  3051. });
  3052. $.ajax({
  3053. url: globalConfig.context + "/api/admin/newOrderDun/deleteDun",
  3054. method: "post",
  3055. data: {
  3056. id: index.id,
  3057. },
  3058. }).done(
  3059. function (data) {
  3060. this.setState({
  3061. loading: false,
  3062. });
  3063. if (!data.error.length) {
  3064. message.success("删除成功!");
  3065. this.setState({
  3066. cuiFlag: false,
  3067. });
  3068. this.jiedianNew(this.state.orderNo);
  3069. } else {
  3070. message.warning(data.error[0].message);
  3071. }
  3072. }.bind(this)
  3073. );
  3074. } else {
  3075. this.state.contactListNew.splice(index.key, 1);
  3076. this.setState({
  3077. contactListNew: this.state.contactListNew,
  3078. cuiFlag: false,
  3079. addFlag: false,
  3080. boFlag: false,
  3081. });
  3082. }
  3083. },
  3084. //
  3085. handleOk() {
  3086. this.setState({
  3087. visible: false,
  3088. mark: false,
  3089. });
  3090. this.props.closeDesc(false, true);
  3091. },
  3092. //
  3093. handleCancel() {
  3094. if (this.state.orderType == undefined) {
  3095. return false;
  3096. }
  3097. if (!this.state.autoId) {
  3098. return false;
  3099. }
  3100. this.setState({
  3101. visible: false,
  3102. mark: false,
  3103. });
  3104. this.props.closeDesc(false);
  3105. },
  3106. //
  3107. handleCancelclose() {
  3108. this.setState(
  3109. {
  3110. visible: false,
  3111. mark: false,
  3112. cuiFlag: false,
  3113. addFlag: false,
  3114. boFlag: false,
  3115. isJilu: false,
  3116. },
  3117. () => {
  3118. this.setState({
  3119. activeKey: "1",
  3120. });
  3121. }
  3122. );
  3123. this.props.closeDesc(false);
  3124. this.reset();
  3125. },
  3126. //点击签单
  3127. handleCancels() {
  3128. this.setState({
  3129. isSubmit: 1,
  3130. });
  3131. },
  3132. //点击保存
  3133. handleCancelq() {
  3134. this.setState({
  3135. isSubmit: 0,
  3136. });
  3137. },
  3138. //删除
  3139. delectRow(record) {
  3140. this.setState({
  3141. loading: true,
  3142. });
  3143. $.ajax({
  3144. method: "post",
  3145. dataType: "json",
  3146. crossDomain: false,
  3147. url: globalConfig.context + "/api/admin/newOrder/deleteOrderTask",
  3148. data: {
  3149. id: record.id,
  3150. },
  3151. }).done(
  3152. function (data) {
  3153. if (!data.error.length) {
  3154. message.success("删除成功!");
  3155. this.setState({
  3156. loading: false,
  3157. });
  3158. this.jiedian(this.state.orderNo);
  3159. this.jiedianNew(this.state.orderNo);
  3160. // this.loaduser();
  3161. this.loadData();
  3162. } else {
  3163. message.warning(data.error[0].message);
  3164. }
  3165. }.bind(this)
  3166. );
  3167. },
  3168. //
  3169. nextCancel(type) {
  3170. this.setState(
  3171. {
  3172. editProVisible: false,
  3173. changeVisible: false,
  3174. projectOperationVisible: false,
  3175. editProjectOperationVisible: false,//
  3176. vipVisible: false,
  3177. gid: "",
  3178. dataInfor: {},
  3179. addProjectType: undefined,
  3180. isVip: undefined,
  3181. isIso: undefined,
  3182. commodityQuantity: undefined,
  3183. histYear: [],
  3184. yearSum: undefined,
  3185. serviceLife: [],
  3186. serviceYear: undefined,
  3187. isEdit: false, // 可编辑
  3188. },
  3189. () => {
  3190. this.loadData();
  3191. this.proList();
  3192. }
  3193. );
  3194. },
  3195. //
  3196. rizhi() {
  3197. this.setState({
  3198. loading: true,
  3199. });
  3200. $.ajax({
  3201. method: "get",
  3202. dataType: "json",
  3203. crossDomain: false,
  3204. url: "/api/admin/newOrder/selectOrderLog",
  3205. data: {
  3206. orderNo: this.props.datauser.orderNo,
  3207. },
  3208. success: function (data) {
  3209. let theArr = [];
  3210. let thisData = data.data;
  3211. if (!thisData.length) {
  3212. if (data.error && data.error.length) {
  3213. message.warning(data.error[0].message);
  3214. }
  3215. thisData = {};
  3216. } else {
  3217. for (let i = 0; i < data.data.length; i++) {
  3218. let thisdata = data.data[i];
  3219. theArr.push({
  3220. processName: thisdata.processName,
  3221. adminName: thisdata.adminName,
  3222. createDate: thisdata.createDate,
  3223. remarks: thisdata.remarks,
  3224. });
  3225. }
  3226. }
  3227. this.setState({
  3228. dataSourcerizhi: theArr,
  3229. });
  3230. }.bind(this),
  3231. }).always(
  3232. function () {
  3233. this.setState({
  3234. loading: false,
  3235. });
  3236. }.bind(this)
  3237. );
  3238. },
  3239. //查看订单日志
  3240. getOrderLog() {
  3241. this.setState({
  3242. rizhivisible: true,
  3243. });
  3244. this.rizhi();
  3245. },
  3246. //
  3247. closeOrderLog() {
  3248. this.setState({
  3249. rizhivisible: false,
  3250. });
  3251. },
  3252. //
  3253. callback(key) {
  3254. this.setState({
  3255. activeKey: key,
  3256. });
  3257. if (key === "1") {
  3258. this.jiedian(this.props.datauser.orderNo);
  3259. this.jiedianNew(this.props.datauser.orderNo);
  3260. this.loaduser();
  3261. // this.loaduser();
  3262. }
  3263. if (key === "3") {
  3264. this.getChangeData();
  3265. }
  3266. if (key === "2" || key === "3") {
  3267. let url = window.location.href.substring(7);
  3268. $.ajax({
  3269. method: "get",
  3270. dataType: "json",
  3271. crossDomain: false,
  3272. url:
  3273. globalConfig.context + "/api/admin/orderChange/orderChangeDetails",
  3274. data: {
  3275. orderNo: this.props.datauser.orderNo,
  3276. },
  3277. success: function (data) {
  3278. if (data.data && data.data.length) {
  3279. let thisdata = data.data[data.data.length - 1];
  3280. if (
  3281. thisdata.status === 0 ||
  3282. (thisdata.processState == 0 && thisdata.status != 5)
  3283. ) {
  3284. this.setState({
  3285. changeId: thisdata.id,
  3286. typeChange: thisdata.type,
  3287. totalAmount: thisdata.totalAmount,
  3288. firstAmount: thisdata.firstAmount,
  3289. settlementAmount: thisdata.settlementAmount,
  3290. changeAmount: thisdata.changeAmount,
  3291. remarksC: thisdata.remarks,
  3292. startRemarks: thisdata.zxsRemarks,
  3293. isCaoGao: true,
  3294. arrears: thisdata.arrears,
  3295. changeFlag: true,
  3296. createTimes: thisdata.createTimes,
  3297. voucherUrl: thisdata.voucherUrl
  3298. ? splitUrl(
  3299. thisdata.voucherUrl,
  3300. ",",
  3301. globalConfig.avatarHost + "/upload",
  3302. url
  3303. )
  3304. : [],
  3305. newContractUrl: thisdata.contractPictureUrl
  3306. ? splitUrl(
  3307. thisdata.contractPictureUrl,
  3308. ",",
  3309. globalConfig.avatarHost + "/upload",
  3310. url
  3311. )
  3312. : [],
  3313. isNew: !thisdata.contractPictureUrl ? false : true,
  3314. processState: thisdata.processState,
  3315. status: thisdata.status,
  3316. contacts: thisdata.contacts, // 企业联系人
  3317. contactMobile: thisdata.contactMobile, // 企业联系方式
  3318. managerContacts: thisdata.managerContacts, // 企业总经理
  3319. managerContactMobile: thisdata.managerContactMobile, // 企业总经理联系方式
  3320. });
  3321. this.proList();
  3322. this.cuiList();
  3323. let e = thisdata.type;
  3324. if (e == 1) {
  3325. this.setState({
  3326. hetongFlag: false,
  3327. listFlag: false,
  3328. listCuiFlag: false,
  3329. tuiKuanFlag: false,
  3330. displayList: false,
  3331. });
  3332. } else if (e == 2) {
  3333. this.setState({
  3334. hetongFlag: true,
  3335. listFlag: false,
  3336. listCuiFlag: false,
  3337. tuiKuanFlag: true,
  3338. displayList: false,
  3339. });
  3340. } else if (e == 3) {
  3341. this.setState({
  3342. listFlag: false,
  3343. hetongFlag: false,
  3344. listCuiFlag: false,
  3345. tuiKuanFlag: false,
  3346. displayList: true,
  3347. });
  3348. } else if (e == 4) {
  3349. this.setState({
  3350. listFlag: false,
  3351. listCuiFlag: false,
  3352. hetongFlag: false,
  3353. tuiKuanFlag: true,
  3354. displayList: false,
  3355. });
  3356. } else if (e == 5) {
  3357. this.setState({
  3358. listFlag: false,
  3359. listCuiFlag: false,
  3360. hetongFlag: true,
  3361. tuiKuanFlag: true,
  3362. displayList: false,
  3363. });
  3364. } else if (e == 6) {
  3365. this.setState({
  3366. // listFlag: true,
  3367. // listCuiFlag: true,
  3368. // hetongFlag: true,
  3369. // tuiKuanFlag: true,
  3370. // displayList: false,
  3371. listFlag: false,
  3372. listCuiFlag: false,
  3373. hetongFlag: false,
  3374. tuiKuanFlag: false,
  3375. displayList: false,
  3376. });
  3377. } else if (e == 7) {
  3378. this.setState({
  3379. listFlag: true,
  3380. listCuiFlag: true,
  3381. hetongFlag: true,
  3382. tuiKuanFlag: true,
  3383. displayList: false,
  3384. isNew: true,
  3385. });
  3386. } else {
  3387. this.setState({
  3388. hetongFlag: false,
  3389. listFlag: false,
  3390. listCuiFlag: false,
  3391. tuiKuanFlag: false,
  3392. displayList: false,
  3393. });
  3394. }
  3395. } else {
  3396. this.setState({
  3397. listFlag: false,
  3398. hetongFlag: false,
  3399. listCuiFlag: false,
  3400. tuiKuanFlag: false,
  3401. displayList: false,
  3402. // 置空
  3403. changeId: undefined,
  3404. isCaoGao: false,
  3405. });
  3406. }
  3407. } else {
  3408. this.setState({
  3409. isCaoGao: false,
  3410. });
  3411. }
  3412. }.bind(this),
  3413. });
  3414. }
  3415. },
  3416. //
  3417. cuiList(id) {
  3418. this.setState({
  3419. loadData: true,
  3420. });
  3421. $.ajax({
  3422. method: "get",
  3423. dataType: "json",
  3424. crossDomain: false,
  3425. url: globalConfig.context + "/api/admin/orderChange/selectChangeDun",
  3426. data: {
  3427. id: id || this.state.changeId,
  3428. },
  3429. success: function (data) {
  3430. this.setState({
  3431. cuiDataSource: data.data,
  3432. });
  3433. if (data.data && data.data.length) {
  3434. if (id) {
  3435. this.setState({
  3436. listCuiFlag: true,
  3437. });
  3438. }
  3439. this.setState({
  3440. cuiDataSource: data.data,
  3441. });
  3442. this.setState({
  3443. loadData: false,
  3444. });
  3445. } else if (data.error && data.error.length) {
  3446. message.warning(data.error[0].message);
  3447. this.setState({
  3448. loadData: false,
  3449. });
  3450. }
  3451. }.bind(this),
  3452. });
  3453. },
  3454. //
  3455. proList(id) {
  3456. if (!id && !this.state.changeId) {
  3457. return
  3458. }
  3459. this.setState({
  3460. loadData: true,
  3461. });
  3462. $.ajax({
  3463. method: "get",
  3464. dataType: "json",
  3465. crossDomain: false,
  3466. url: globalConfig.context + "/api/admin/orderChange/selectChangeTask",
  3467. data: {
  3468. id: id || this.state.changeId,
  3469. },
  3470. success: function (data) {
  3471. if (data.data && data.data.length) {
  3472. if (id) {
  3473. this.setState({
  3474. listFlag: true,
  3475. });
  3476. }
  3477. data.data.forEach((item, index) => {
  3478. item.key = index;
  3479. });
  3480. this.setState({
  3481. proDataSource: data.data,
  3482. });
  3483. this.setState({
  3484. loadData: false,
  3485. });
  3486. } else if (data.error && data.error.length) {
  3487. // message.warning(data.error[0].message);
  3488. this.setState({
  3489. loadData: false,
  3490. });
  3491. }
  3492. }.bind(this),
  3493. });
  3494. },
  3495. //
  3496. logList(id) {
  3497. this.setState({
  3498. loading: true,
  3499. });
  3500. $.ajax({
  3501. method: "get",
  3502. dataType: "json",
  3503. async: false,
  3504. crossDomain: false,
  3505. url: globalConfig.context + "/api/admin/orderChange/orderChangeLogList",
  3506. data: {
  3507. changeId: id,
  3508. },
  3509. success: function (data) {
  3510. if (data.error.length || data.data.list == "") {
  3511. if (data.error && data.error.length) {
  3512. message.warning(data.error[0].message);
  3513. this.setState({
  3514. loading: false,
  3515. });
  3516. }
  3517. } else {
  3518. this.setState({
  3519. logData: data.data,
  3520. loading: false,
  3521. });
  3522. }
  3523. }.bind(this),
  3524. });
  3525. },
  3526. getOrgCodeUrl(e) {
  3527. this.setState({ orgCodeUrl: e });
  3528. },
  3529. getReplenishUrl(e) {
  3530. this.setState({ replenishUrl: e });
  3531. },
  3532. getContentUrl(e) {
  3533. this.setState({ contentUrl: e });
  3534. },
  3535. getVoucherUrl(e) {
  3536. this.setState({ voucherUrl: e });
  3537. },
  3538. getNewContractUrl(e) {
  3539. this.setState({ newContractUrl: e });
  3540. },
  3541. //加载(自动补全)
  3542. supervisor(e, state) {
  3543. //客户名称与服务名称自动补全
  3544. let api = state
  3545. ? "/api/admin/customer/getCustomerByName"
  3546. : "/api/admin/order/getBusinessProjectByName";
  3547. $.ajax({
  3548. method: "get",
  3549. dataType: "json",
  3550. crossDomain: false,
  3551. url: globalConfig.context + api,
  3552. data: state
  3553. ? {
  3554. name: e,
  3555. type: this.state.userType,
  3556. }
  3557. : {
  3558. businessName: e,
  3559. },
  3560. success: function (data) {
  3561. let thedata = data.data;
  3562. if (!thedata) {
  3563. if (data.error && data.error.length) {
  3564. message.warning(data.error[0].message);
  3565. }
  3566. thedata = {};
  3567. }
  3568. this.setState({
  3569. states: state,
  3570. customerArr: thedata,
  3571. });
  3572. }.bind(this),
  3573. }).always(
  3574. function () {
  3575. this.setState({
  3576. loading: false,
  3577. });
  3578. }.bind(this)
  3579. );
  3580. },
  3581. // 渠道查询
  3582. selectChannel(e) {
  3583. $.ajax({
  3584. method: "get",
  3585. dataType: "json",
  3586. crossDomain: false,
  3587. url: globalConfig.context + "/api/admin/customer/selectChannelUserList",
  3588. data: {
  3589. name: e,
  3590. },
  3591. success: function (data) {
  3592. let thedata = data.data;
  3593. if (!thedata) {
  3594. if (data.error && data.error.length) {
  3595. message.warning(data.error[0].message);
  3596. }
  3597. thedata = {};
  3598. }
  3599. this.setState({
  3600. channelArr: thedata,
  3601. });
  3602. }.bind(this),
  3603. }).always(
  3604. function () {
  3605. this.setState({
  3606. loading: false,
  3607. });
  3608. }.bind(this)
  3609. );
  3610. },
  3611. supervisorCui(e) {
  3612. //客户名称与服务名称自动补全
  3613. let api = "/api/admin/order/getBusinessProjectByName";
  3614. $.ajax({
  3615. method: "get",
  3616. dataType: "json",
  3617. crossDomain: false,
  3618. url: globalConfig.context + api,
  3619. data: {
  3620. businessName: e,
  3621. },
  3622. success: function (data) {
  3623. let thedata = data.data;
  3624. if (!thedata) {
  3625. if (data.error && data.error.length) {
  3626. message.warning(data.error[0].message);
  3627. }
  3628. thedata = {};
  3629. }
  3630. this.setState({
  3631. customerCuiArr: thedata,
  3632. });
  3633. }.bind(this),
  3634. }).always(
  3635. function () {
  3636. this.setState({
  3637. loading: false,
  3638. });
  3639. }.bind(this)
  3640. );
  3641. },
  3642. //上级主管输入框失去焦点是判断客户是否存在
  3643. selectAuto(value) {
  3644. const newData = this.state.proDataSource
  3645. let kid = [];
  3646. let fwList = this.state.customerArr;
  3647. fwList.map(function (item) {
  3648. if (value == item.bname) {
  3649. kid = item;
  3650. }
  3651. });
  3652. if (kid.type == "1") {
  3653. this.setState({
  3654. displayFees: "block",
  3655. });
  3656. } else {
  3657. this.setState({
  3658. displayFees: "none",
  3659. });
  3660. }
  3661. //0通用 1专利 2软著 3审计 4双软 5高新 6商标
  3662. this.setState({
  3663. commodityName: value,
  3664. gid: kid.id,
  3665. addProjectType: kid.type,
  3666. isIso: value.indexOf("贯标") !== -1, // 是否为贯标项目
  3667. //commodityPrice:kid.price==0?kid.price.toString():kid.price,
  3668. commodityFirstPayment: kid.firstPayment == 0 ? kid.firstPayment.toString() : kid.firstPayment,
  3669. isVip: kid.cSort,//暂时判断等于6的时候会员
  3670. commodityQuantity: kid.cSort == 6 ? 1 : undefined,//服务数量
  3671. histYear: [],
  3672. });
  3673. if (newData && newData.length > 0 && kid.cSort == 6) {
  3674. let llist = []
  3675. for (var i = 0; i < newData.length; i++) {
  3676. if (newData[i].commodityId == kid.id) {
  3677. llist.push(newData[i].serviceYear)
  3678. }
  3679. }
  3680. this.setState({
  3681. histYear: llist
  3682. })
  3683. for (var i = newData.length - 1; i >= 0; i--) {
  3684. if (newData[i].commodityId == kid.id) {
  3685. this.setState({
  3686. commodityPrice: newData[i].commodityPrice, // 实签价格
  3687. main: "0", // 是否为主要项目
  3688. yearSum: newData[i].yearSum.toString(), // 会员总服务年限
  3689. serviceLife: !newData[i].serviceLife ? [] : JSON.parse(newData[i].serviceLife), // 会员服务年限
  3690. contractTerm: !newData[i].contractTerm ? [] : JSON.parse(newData[i].contractTerm), // 合同期
  3691. taskComment: newData[i].taskComment, // 项目说明
  3692. // isEdit: true, // 不可编辑
  3693. isEdit: true, // 同一会员项目有且只有一条时可编辑 其他情况不可编辑
  3694. cPeriod: !newData[i].contractTerm ? false : true, //合同期
  3695. })
  3696. return
  3697. } else {
  3698. this.setState({
  3699. commodityPrice: undefined,
  3700. main: undefined,
  3701. yearSum: undefined,
  3702. serviceLife: [],
  3703. contractTerm: [],
  3704. taskComment: undefined,
  3705. isEdit: false, // 可编辑
  3706. cPeriod: false,
  3707. })
  3708. }
  3709. }
  3710. }
  3711. },
  3712. selectAutoCui(value) {
  3713. let kid = [];
  3714. let fwList = this.state.customerCuiArr;
  3715. fwList.map(function (item) {
  3716. if (value == item.bname) {
  3717. kid = item;
  3718. }
  3719. });
  3720. this.setState({
  3721. commodityNameCui: value,
  3722. cid: kid.id,
  3723. //commodityPrice:kid.price==0?kid.price.toString():kid.price,
  3724. commodityFirstPayment:
  3725. kid.firstPayment == 0
  3726. ? kid.firstPayment.toString()
  3727. : kid.firstPayment,
  3728. });
  3729. },
  3730. //客户
  3731. selectAutoCUT(value) {
  3732. let autoIds;
  3733. let fwList = this.state.customerArr;
  3734. fwList.map(function (item) {
  3735. if (value == item.name) {
  3736. autoIds = item.id;
  3737. }
  3738. });
  3739. this.setState({
  3740. customerName: value,
  3741. autoId: autoIds,
  3742. });
  3743. },
  3744. goSelect(value) {
  3745. let channelid;
  3746. let fwList = this.state.channelArr;
  3747. fwList.map(function (item) {
  3748. if (value == item.name) {
  3749. channelid = item.id;
  3750. }
  3751. });
  3752. this.setState({
  3753. channelname: value,
  3754. channelid: channelid,
  3755. });
  3756. },
  3757. //服务值改变时请求客户名称
  3758. httpChange(e) {
  3759. this.state.gid = "";
  3760. if (e.length >= 1) {
  3761. this.supervisor(e, false);
  3762. }
  3763. this.setState({
  3764. commodityName: e,
  3765. });
  3766. },
  3767. httpChangeCui(e) {
  3768. if (e.length >= 1) {
  3769. this.supervisorCui(e, false);
  3770. }
  3771. this.setState({
  3772. commodityNameCui: e,
  3773. });
  3774. },
  3775. //客户名称自动补全
  3776. customerChange(e) {
  3777. if (this.state.userType) {
  3778. this.state.autoId = "";
  3779. if (e.length >= 2) {
  3780. this.supervisor(e, true);
  3781. }
  3782. this.setState({
  3783. customerName: e,
  3784. });
  3785. } else {
  3786. this.setState({
  3787. customerName: "",
  3788. });
  3789. message.warning("客户所属类型必须指定");
  3790. }
  3791. },
  3792. //渠道名称自动补全
  3793. channelChange(e) {
  3794. this.setState({
  3795. channelName: e
  3796. })
  3797. if (e.length >= 2) {
  3798. this.selectChannel(e);
  3799. }
  3800. },
  3801. //点击添加项目明细
  3802. addDetailed() {
  3803. const { dataSource = [] } = this.state
  3804. this.setState({
  3805. projectOperationVisible: true,
  3806. newData: dataSource,
  3807. });
  3808. },
  3809. //点击添加会员项目明细
  3810. addVip() {
  3811. const { dataSource = [] } = this.state
  3812. this.setState({
  3813. vipVisible: true,
  3814. newData: dataSource,
  3815. });
  3816. },
  3817. // 可展开颜色不同
  3818. addRowColor(record) {
  3819. if (!!record.splitList && record.splitList.length > 0) {
  3820. return 'light'
  3821. } else if (!!record.list && record.list.length > 0) {
  3822. return 'light'
  3823. } else {
  3824. return 'dark'
  3825. }
  3826. },
  3827. //点击项目详情
  3828. tableRowClick(record) {
  3829. const { dataSource = [] } = this.state
  3830. this.setState({
  3831. // projectOperationVisible: true,
  3832. editProjectOperationVisible: true,
  3833. dataInfor: record,
  3834. newData: dataSource,
  3835. });
  3836. },
  3837. //签单时间选择
  3838. selTime(e, index) {
  3839. this.setState({
  3840. entryTime: e,
  3841. signDate: e,
  3842. selTime: index,
  3843. });
  3844. },
  3845. //退单操作
  3846. //点击退单
  3847. tuikuan() {
  3848. this.setState({
  3849. lookVisible: true,
  3850. contractUrl: [],
  3851. applicationUrl: [],
  3852. reason: "",
  3853. });
  3854. },
  3855. //关闭退单
  3856. noCancel() {
  3857. this.setState({
  3858. lookVisible: false,
  3859. });
  3860. },
  3861. //点击确认退单
  3862. tuidanOk() {
  3863. let contractUrls = [];
  3864. let applicationUrls = [];
  3865. if (this.state.contractUrl.length) {
  3866. let picArr = [];
  3867. this.state.contractUrl.map(function (item) {
  3868. if (
  3869. item.response &&
  3870. item.response.data &&
  3871. item.response.data.length
  3872. ) {
  3873. picArr.push(item.response.data);
  3874. }
  3875. });
  3876. contractUrls = picArr.join(",");
  3877. }
  3878. if (this.state.applicationUrl.length) {
  3879. let picArr = [];
  3880. this.state.applicationUrl.map(function (item) {
  3881. if (
  3882. item.response &&
  3883. item.response.data &&
  3884. item.response.data.length
  3885. ) {
  3886. picArr.push(item.response.data);
  3887. }
  3888. });
  3889. applicationUrls = picArr.join(",");
  3890. }
  3891. $.ajax({
  3892. method: "POST",
  3893. dataType: "json",
  3894. crossDomain: false,
  3895. url: globalConfig.context + "/api/admin/newOrder/addOrderRefund",
  3896. data: {
  3897. orderNo: this.state.orderNo, //订单编号
  3898. contractUrl: contractUrls.length ? contractUrls : "", //终止合同
  3899. applicationUrl: applicationUrls.length ? applicationUrls : "", //退单申请表
  3900. reason: this.state.reason, //退单原因
  3901. },
  3902. }).done(
  3903. function (data) {
  3904. this.setState({
  3905. loading: false,
  3906. });
  3907. if (!data.error.length) {
  3908. message.success("退单成功!");
  3909. this.noCancel();
  3910. this.handleCancelclose();
  3911. } else {
  3912. message.warning(data.error[0].message);
  3913. }
  3914. }.bind(this)
  3915. );
  3916. },
  3917. //开单选择订单类型骚操作
  3918. orderTypeFn(e) {
  3919. if (e == 0) {
  3920. this.setState({
  3921. bussStats: true,
  3922. orderType: e,
  3923. });
  3924. this.category();
  3925. } else {
  3926. this.setState({
  3927. contractType: undefined,
  3928. bussStats: false,
  3929. orderType: e,
  3930. });
  3931. }
  3932. },
  3933. //品类数据获取
  3934. category() {
  3935. $.ajax({
  3936. method: "get",
  3937. dataType: "json",
  3938. crossDomain: false,
  3939. url: globalConfig.context + "/api/admin/Varieties/getSuperList",
  3940. data: {},
  3941. success: function (data) {
  3942. let thedata = data.data;
  3943. let theArr = [];
  3944. if (!thedata) {
  3945. if (data.error && data.error.length) {
  3946. message.warning(data.error[0].message);
  3947. }
  3948. thedata = {};
  3949. } else {
  3950. thedata.map(function (item, index) {
  3951. theArr.push({
  3952. key: index,
  3953. name: item.cname,
  3954. id: item.id,
  3955. });
  3956. });
  3957. }
  3958. this.setState({
  3959. contractType: undefined,
  3960. categoryArr: theArr,
  3961. });
  3962. }.bind(this),
  3963. });
  3964. },
  3965. //变更申请
  3966. changeApply() {
  3967. if (
  3968. this.state.typeChange == undefined ||
  3969. (this.state.typeChange == "" && this.state.typeChange != 0)
  3970. ) {
  3971. message.warning("请选择变更类型");
  3972. return false;
  3973. }
  3974. if (this.state.totalAmount === "") {
  3975. message.warning("合同金额不能为空!");
  3976. return false;
  3977. }
  3978. if (this.state.firstAmount === "") {
  3979. message.warning("首付款金额不能为空!");
  3980. return false;
  3981. }
  3982. if (Number(this.state.totalAmount) < Number(this.state.firstAmount)) {
  3983. message.warning("首付款不能大于合同额!");
  3984. return;
  3985. }
  3986. if (
  3987. this.state.typeChange == 0 ||
  3988. this.state.typeChange == 1 ||
  3989. this.state.typeChange == 3 ||
  3990. this.state.typeChange == 8
  3991. ) {
  3992. if (Number(this.state.settlementAmount) < Number(this.state.changeAmount)) {
  3993. message.warning("退款金额大于已收款金额");
  3994. return;
  3995. }
  3996. }
  3997. if (this.state.processStatus != 7 && this.state.processStatus != 8) {
  3998. message.warning("当前订单流程不能发起变更!");
  3999. return false;
  4000. }
  4001. if (this.state.changeAmount === "") {
  4002. message.warning("申请退款金额不能为空!");
  4003. return false;
  4004. }
  4005. if (this.state.remarksC == "") {
  4006. message.warning("请正确填写变更原因");
  4007. return false;
  4008. }
  4009. if (this.state.startRemarks == "") {
  4010. message.warning("请正确填写备注信息");
  4011. return false;
  4012. }
  4013. let theorgCodeUrl = [];
  4014. if (this.state.voucherUrl.length) {
  4015. let picArr = [];
  4016. this.state.voucherUrl.map(function (item) {
  4017. if (
  4018. item.response &&
  4019. item.response.data &&
  4020. item.response.data.length
  4021. ) {
  4022. picArr.push(item.response.data);
  4023. }
  4024. });
  4025. theorgCodeUrl = picArr.join(",");
  4026. }
  4027. let newContractUrl = [];
  4028. if (this.state.newContractUrl.length) {
  4029. let cArr = [];
  4030. this.state.newContractUrl.map(function (item) {
  4031. if (
  4032. item.response &&
  4033. item.response.data &&
  4034. item.response.data.length
  4035. ) {
  4036. cArr.push(item.response.data);
  4037. }
  4038. });
  4039. newContractUrl = cArr.join(",");
  4040. }
  4041. if (this.state.isNew && newContractUrl.length == 0) {
  4042. message.warning("请上传新合同扫描件!");
  4043. return
  4044. }
  4045. const paramsData = {
  4046. orderNo: this.state.orderNo, //订单编号
  4047. processState: 0,
  4048. status: 0,
  4049. startRemarks: this.state.startRemarks,
  4050. remarks: this.state.remarksC,
  4051. voucherUrl: theorgCodeUrl.length ? theorgCodeUrl : "",
  4052. totalAmount: this.state.totalAmount,
  4053. firstAmount: this.state.firstAmount,
  4054. settlementAmount: this.state.settlementAmount,
  4055. changeAmount: this.state.changeAmount,
  4056. applicant: this.state.salesmanName,
  4057. depName: this.state.depName,
  4058. type: this.state.typeChange,
  4059. contractPictureUrl: this.state.isNew
  4060. ? newContractUrl : undefined,//合同替换件
  4061. }
  4062. if (this.state.typeChange == 7) {
  4063. let breachValid = this.validConfiderBreachForm(this.state.confidenBreachChangeData)
  4064. if (!breachValid.flag) {
  4065. message.warning(breachValid.msg);
  4066. return false;
  4067. }
  4068. let confidenBreachData = this.getConfidenBreachFormData(this.state.confidenBreachChangeData)
  4069. paramsData.nda = confidenBreachData.nda
  4070. paramsData.ndaUrl = confidenBreachData.ndaUrl
  4071. paramsData.breachClause = confidenBreachData.breachClause
  4072. paramsData.breachClauseUrl = confidenBreachData.breachClauseUrl
  4073. }
  4074. this.setState({
  4075. loading: true,
  4076. });
  4077. $.ajax({
  4078. method: "post",
  4079. dataType: "json",
  4080. crossDomain: false,
  4081. url: globalConfig.context + "/api/admin/orderChange/addOrderChange",
  4082. data: paramsData,
  4083. }).done(
  4084. function (data) {
  4085. this.setState({
  4086. loading: false,
  4087. });
  4088. if (!data.error.length) {
  4089. message.success("发起变更草稿");
  4090. this.setState(
  4091. {
  4092. isCaoGao: true,
  4093. loading: false,
  4094. },
  4095. () => {
  4096. this.callback("2");
  4097. }
  4098. );
  4099. } else {
  4100. message.warning(data.error[0].message);
  4101. }
  4102. }.bind(this)
  4103. );
  4104. // if (this.state.typeChange == 0) {
  4105. // $.ajax({
  4106. // method: "post",
  4107. // dataType: "json",
  4108. // crossDomain: false,
  4109. // url: globalConfig.context + "/api/admin/orderChange/addOrderChange",
  4110. // data: {
  4111. // orderNo: this.state.orderNo, //订单编号
  4112. // processState: 1,
  4113. // status: 1,
  4114. // startRemarks: this.state.startRemarks,
  4115. // remarks: this.state.remarksC,
  4116. // voucherUrl: theorgCodeUrl.length ? theorgCodeUrl : "",
  4117. // totalAmount: this.state.totalAmount,
  4118. // firstAmount: this.state.firstAmount,
  4119. // settlementAmount: this.state.settlementAmount,
  4120. // changeAmount: this.state.changeAmount,
  4121. // applicant: this.state.salesmanName,
  4122. // depName: this.state.depName,
  4123. // type: this.state.typeChange,
  4124. // contractPictureUrl: this.state.isNew
  4125. // ? newContractUrl : undefined,//合同替换件
  4126. // },
  4127. // }).done(
  4128. // function (data) {
  4129. // this.setState({
  4130. // loading: false,
  4131. // });
  4132. // if (!data.error.length) {
  4133. // message.success("发起变更成功");
  4134. // this.handleCancelclose();
  4135. // } else {
  4136. // message.warning(data.error[0].message);
  4137. // this.setState({
  4138. // loading: false,
  4139. // });
  4140. // }
  4141. // }.bind(this)
  4142. // );
  4143. // } else {
  4144. // $.ajax({
  4145. // method: "post",
  4146. // dataType: "json",
  4147. // crossDomain: false,
  4148. // url: globalConfig.context + "/api/admin/orderChange/addOrderChange",
  4149. // data: {
  4150. // orderNo: this.state.orderNo, //订单编号
  4151. // processState: 0,
  4152. // status: 0,
  4153. // startRemarks: this.state.startRemarks,
  4154. // remarks: this.state.remarksC,
  4155. // voucherUrl: theorgCodeUrl.length ? theorgCodeUrl : "",
  4156. // totalAmount: this.state.totalAmount,
  4157. // firstAmount: this.state.firstAmount,
  4158. // settlementAmount: this.state.settlementAmount,
  4159. // changeAmount: this.state.changeAmount,
  4160. // applicant: this.state.salesmanName,
  4161. // depName: this.state.depName,
  4162. // type: this.state.typeChange,
  4163. // contractPictureUrl: this.state.isNew
  4164. // ? newContractUrl : undefined,//合同替换件
  4165. // },
  4166. // }).done(
  4167. // function (data) {
  4168. // this.setState({
  4169. // loading: false,
  4170. // });
  4171. // if (!data.error.length) {
  4172. // message.success("发起变更草稿");
  4173. // this.setState(
  4174. // {
  4175. // isCaoGao: true,
  4176. // loading: false,
  4177. // },
  4178. // () => {
  4179. // this.callback("2");
  4180. // }
  4181. // );
  4182. // } else {
  4183. // message.warning(data.error[0].message);
  4184. // }
  4185. // }.bind(this)
  4186. // );
  4187. // }
  4188. },
  4189. reset() {
  4190. this.setState({
  4191. startRemarks: "",
  4192. remarksC: "",
  4193. voucherUrl: [],
  4194. newContractUrl: [],
  4195. totalAmount: undefined,
  4196. settlementAmount: undefined,
  4197. changeAmount: "0",
  4198. applicant: undefined,
  4199. depNameChange: undefined,
  4200. typeChange: undefined,
  4201. displayFees: "none",
  4202. officialCost: "",
  4203. costReduction: "",
  4204. });
  4205. },
  4206. componentWillMount() {
  4207. const nextProps = this.props
  4208. this.state.visible = nextProps.showDesc;
  4209. this.state.signBillVisible = nextProps.signBillVisible;
  4210. if (this.state.signBillVisible) {
  4211. this.loaduser(nextProps.uid);
  4212. this.assistList(nextProps.uid);
  4213. this.orderServiceList(nextProps.uid);
  4214. // this.publicByOrder(nextProps.uid);
  4215. }
  4216. if (nextProps.userDetaile && nextProps.showDesc) {
  4217. this.loaduser(nextProps.datauser);
  4218. this.assistList(nextProps.datauser);
  4219. this.orderServiceList(nextProps.datauser);
  4220. // this.publicByOrder(nextProps.datauser);
  4221. this.jiedian(nextProps.datauser.orderNo);
  4222. this.jiedianNew(nextProps.datauser.orderNo);
  4223. this.loadData(nextProps.datauser);
  4224. this.getChangeData(nextProps.datauser);
  4225. } else {
  4226. this.setState({
  4227. orderType: undefined,
  4228. customerName: "",
  4229. autoId: "",
  4230. customerArr: [],
  4231. contractType: undefined,
  4232. bussStats: false,
  4233. userType: undefined,
  4234. channelName: "",
  4235. channelid: "",
  4236. channelArr: [],
  4237. selectSales: undefined,
  4238. });
  4239. }
  4240. },
  4241. // componentWillReceiveProps(nextProps) {
  4242. // //props改变时触发
  4243. // },
  4244. //查看变更记录
  4245. getChangeData(record) {
  4246. this.setState({
  4247. loading: true,
  4248. });
  4249. $.ajax({
  4250. method: "get",
  4251. dataType: "json",
  4252. crossDomain: false,
  4253. url: globalConfig.context + "/api/admin/orderChange/orderChangeDetails",
  4254. data: {
  4255. orderNo: record ? record.orderNo : this.props.datauser.orderNo,
  4256. },
  4257. success: function (data) {
  4258. this.setState({
  4259. loading: false,
  4260. });
  4261. let url = window.location.href.substring(7);
  4262. if (data.data && data.data.length) {
  4263. let thisdata = data.data[data.data.length - 1];
  4264. thisdata.typeChange = thisdata.type;
  4265. thisdata.remarksC = thisdata.remarks;
  4266. thisdata.startRemarks = thisdata.zxsRemarks;
  4267. thisdata.voucherUrl = thisdata.voucherUrl
  4268. ? splitUrl(
  4269. thisdata.voucherUrl,
  4270. ",",
  4271. globalConfig.avatarHost + "/upload",
  4272. url
  4273. )
  4274. : [];
  4275. thisdata.contractPictureUrl = thisdata.contractPictureUrl
  4276. ? splitUrl(
  4277. thisdata.contractPictureUrl,
  4278. ",",
  4279. globalConfig.avatarHost + "/upload",
  4280. url
  4281. )
  4282. : [];
  4283. this.proList(thisdata.id);
  4284. this.cuiList(thisdata.id);
  4285. this.logList(thisdata.id);
  4286. this.setState({
  4287. //判断是否有合同变更记录
  4288. isJilu: true,
  4289. detailChange: thisdata,
  4290. });
  4291. }
  4292. }.bind(this),
  4293. });
  4294. },
  4295. showConfirm(fn, record) {
  4296. confirm({
  4297. title: "确定删除此项目吗?",
  4298. content: (
  4299. <span style={{ color: "red" }}>
  4300. 删除后会将该项目下的所有催款节点自动清除!!!
  4301. </span>
  4302. ),
  4303. onOk() {
  4304. fn(record);
  4305. },
  4306. onCancel() { },
  4307. });
  4308. },
  4309. viewConfirm(fn, record) {
  4310. confirm({
  4311. title: "确定删除此服务记录吗?",
  4312. // content: (
  4313. // <span style={{ color: "red" }}>
  4314. // 删除后会将该项目下的所有催款节点自动清除!!!
  4315. // </span>
  4316. // ),
  4317. onOk() {
  4318. fn(record);
  4319. },
  4320. onCancel() { },
  4321. });
  4322. },
  4323. changeAddPro() {
  4324. // this.getpatentTypeList();
  4325. this.setState({
  4326. changeVisible: true,
  4327. newData: this.state.proDataSource,
  4328. // gid: "",
  4329. // customerArr: [],
  4330. // commodityName: "",
  4331. // commodityQuantity: "",
  4332. // commodityId: "",
  4333. // taskComment: "",
  4334. // main: undefined,
  4335. // commodityPrice: "",
  4336. // displayFees: "none",
  4337. // officialCost: "",
  4338. // costReduction: "",
  4339. });
  4340. },
  4341. changeProSubmit() {
  4342. if (this.state.gid == undefined || !this.state.gid) {
  4343. message.warning("服务名称不匹配!");
  4344. return
  4345. }
  4346. let reg = /^([0]|[1-9][0-9]*)$/;
  4347. if (
  4348. !this.state.commodityQuantity ||
  4349. !reg.test(this.state.commodityQuantity)
  4350. ) {
  4351. message.warning("请输入正确商品数量!");
  4352. return
  4353. }
  4354. if (this.state.displayFees === 'block') {
  4355. if (this.state.patentType === "" && !this.state.patentTransfer) {
  4356. message.warning("请选择专利类型!");
  4357. return
  4358. }
  4359. if (this.state.officialCost === '') {
  4360. message.warning("请选择官费!");
  4361. return
  4362. }
  4363. if (this.state.costReduction === "" && (this.state.patentType === 0 || this.state.patentType === 2) && this.state.officialCost === 1) {
  4364. message.warning("请选择费减!");
  4365. return
  4366. }
  4367. }
  4368. if (isNaN(parseFloat(this.state.commodityPrice))) {
  4369. message.warning("请输入正确的金额!");
  4370. return;
  4371. }
  4372. if (this.state.addProjectType == "3") {// 3审计
  4373. if (this.state.serviceLife.length === 0) {
  4374. message.warning("请选择服务年限!");
  4375. return
  4376. }
  4377. if (this.state.serviceLife.length != this.state.commodityQuantity) {
  4378. message.warning("服务数量与服务年限不符!");
  4379. return
  4380. }
  4381. }
  4382. if (!this.state.main) {
  4383. message.warning("请选择是否为主要项目!");
  4384. return
  4385. }
  4386. if (this.state.addProjectType === 5) {// 5高新
  4387. if (!this.state.declarationBatch) {
  4388. message.warning("请选择企业要求申报批次!");
  4389. return
  4390. }
  4391. if (!this.state.serviceYear) {
  4392. message.warning("请选择申报年份!");
  4393. return
  4394. }
  4395. }
  4396. if (this.state.isVip == 6) {//会员
  4397. if (this.state.yearSum === undefined) {
  4398. message.warning("请选择会员总服务年限!");
  4399. return
  4400. }
  4401. if (this.state.serviceLife.length === 0) {
  4402. message.warning("请添加会员服务年限!");
  4403. return
  4404. }
  4405. if (this.state.serviceLife.length != this.state.yearSum) {
  4406. message.warning("会员服务年限与总年限不符合!");
  4407. return
  4408. }
  4409. if (this.state.serviceYear === undefined) {
  4410. message.warning("请选择本次派单年份!");
  4411. return
  4412. }
  4413. if (this.state.contractTerm.length === 0) {
  4414. message.warning("请填写合同期!");
  4415. return
  4416. }
  4417. }
  4418. this.setState({
  4419. loading: true,
  4420. });
  4421. let type = 0;
  4422. if (this.state.typeChange == 4 || this.state.typeChange == 5) {
  4423. type = 1;
  4424. }
  4425. let infor = {
  4426. commodityId: this.state.gid, //商品ID
  4427. orderNo: this.props.datauser.orderNo, //订单编号
  4428. commodityName: this.state.commodityName, //商品名称
  4429. commodityQuantity: this.state.commodityQuantity, //商品数量
  4430. commodityPrice: this.state.commodityPrice, //签单总价
  4431. taskComment: this.state.taskComment, //服务说明
  4432. main: this.state.main, //是否为主要项目
  4433. cid: this.state.changeId, //变更ID
  4434. type,
  4435. }
  4436. if (this.state.displayFees === 'block') {
  4437. infor.officialCost = this.state.officialCost //是否有官费
  4438. infor.costReduction = (this.state.patentType === 0 || this.state.patentType === 2) ? (this.state.officialCost === 1 ? this.state.costReduction : 0) : 0//是否有费减
  4439. infor.patentType = this.state.patentType //专利类型
  4440. }
  4441. if (this.state.isIso) {
  4442. infor.ifCertificationFee = this.state.ifCertificationFee || undefined;//是否包含认证费用
  4443. }
  4444. if (this.state.addProjectType == "3") {//审计
  4445. infor.serviceLife = JSON.stringify(this.state.serviceLife) //服务年限
  4446. }
  4447. if (this.state.addProjectType == "5") {//高新
  4448. infor.declarationBatch = this.state.declarationBatch || 1//申报批次
  4449. infor.serviceYear = this.state.serviceYear //申报年份
  4450. }
  4451. if (this.state.isVip == 6) {//会员
  4452. infor.yearSum = this.state.yearSum //会员总服务年限
  4453. infor.serviceLife = JSON.stringify(this.state.serviceLife) //会员服务年限
  4454. infor.serviceYear = this.state.serviceYear //本次派单年份
  4455. infor.contractTerm = JSON.stringify(this.state.contractTerm)//合同期
  4456. }
  4457. $.ajax({
  4458. method: "post",
  4459. dataType: "json",
  4460. crossDomain: false,
  4461. url: globalConfig.context + "/api/admin/orderChange/addChangeTask",
  4462. data: infor,
  4463. success: function (data) {
  4464. let theArr = [];
  4465. if (data.error && data.error.length) {
  4466. message.warning(data.error[0].message);
  4467. } else {
  4468. message.success("保存成功");
  4469. this.nextCancel();
  4470. this.proList();
  4471. }
  4472. }.bind(this),
  4473. }).always(
  4474. function () {
  4475. this.setState({
  4476. loading: false,
  4477. });
  4478. }.bind(this)
  4479. );
  4480. },
  4481. changeDeletePro(record) {
  4482. this.setState({
  4483. loading: true,
  4484. });
  4485. $.ajax({
  4486. method: "post",
  4487. dataType: "json",
  4488. crossDomain: false,
  4489. url: globalConfig.context + "/api/admin/orderChange/updateChangeTask",
  4490. data: {
  4491. id: record.id,
  4492. type: 3,
  4493. tid: record.tid,
  4494. splitStatus: record.splitStatus,
  4495. },
  4496. success: function (data) {
  4497. let theArr = [];
  4498. if (data.error && data.error.length) {
  4499. message.warning(data.error[0].message);
  4500. } else {
  4501. message.success("删除成功");
  4502. this.proList();
  4503. this.cuiList();
  4504. this.loadData();
  4505. }
  4506. }.bind(this),
  4507. }).always(
  4508. function () {
  4509. this.setState({
  4510. loading: false,
  4511. });
  4512. }.bind(this)
  4513. );
  4514. },
  4515. //点击新增变更催款节点
  4516. changeAddCui() {
  4517. this.state.cuiDataSource.push({
  4518. key: this.state.cuiDataSource.length,
  4519. money: "",
  4520. dunSubject: undefined,
  4521. orderNo: this.state.orderNo,
  4522. dunTarget: this.state.kehuId,
  4523. });
  4524. this.setState({
  4525. cuiDataSource: this.state.cuiDataSource,
  4526. cuiFlag: true,
  4527. });
  4528. },
  4529. //删除变更收款节点
  4530. changeDeleteCui(index) {
  4531. if (index.id) {
  4532. this.state.cuiDataSource.splice(index.id, 1);
  4533. this.setState({
  4534. contactListNew: this.state.cuiDataSource,
  4535. cuiFlag: false,
  4536. addFlag: false,
  4537. boFlag: false,
  4538. });
  4539. $.ajax({
  4540. url: globalConfig.context + "/api/admin/orderChange/updateChangeDun",
  4541. method: "post",
  4542. data: {
  4543. id: index.id,
  4544. type: 3,
  4545. tid: index.tid,
  4546. did: index.did,
  4547. },
  4548. }).done(
  4549. function (data) {
  4550. this.setState({
  4551. loading: false,
  4552. });
  4553. if (!data.error.length) {
  4554. message.success("删除成功!");
  4555. this.setState({
  4556. cuiFlag: false,
  4557. });
  4558. this.cuiList();
  4559. this.proList();
  4560. } else {
  4561. message.warning(data.error[0].message);
  4562. }
  4563. }.bind(this)
  4564. );
  4565. } else {
  4566. this.state.cuiDataSource.splice(index.key, 1);
  4567. this.setState({
  4568. cuiDataSource: this.state.cuiDataSource,
  4569. cuiFlag: false,
  4570. addFlag: false,
  4571. boFlag: false,
  4572. });
  4573. }
  4574. },
  4575. changeSaveCui(record) {
  4576. if (record.dunType == 0) {
  4577. if (!record.customizeTimes) {
  4578. message.warning("请输入自定义时间");
  4579. return;
  4580. } else if (!record.customizeName) {
  4581. message.warning("请输入自定义科目");
  4582. return;
  4583. }
  4584. }
  4585. if (record.boStatus == "false") {
  4586. record.boStatus = false;
  4587. } else if (record.boStatus == "true") {
  4588. record.boStatus = true;
  4589. }
  4590. if (!this.state.yearFlag) {
  4591. if (!record.effectiveCount) {
  4592. message.warning("请选择服务年限");
  4593. return;
  4594. }
  4595. } else {
  4596. record.effectiveCount = "";
  4597. }
  4598. if (isNaN(parseInt(record.money)) && !record.boStatus) {
  4599. message.warning("请填写金额");
  4600. return;
  4601. } else if (isNaN(parseInt(record.money)) && record.boStatus) {
  4602. message.warning("请填写比例");
  4603. return;
  4604. }
  4605. if (record.boStatus) {
  4606. if (
  4607. typeof +record.money == "number" &&
  4608. +record.money >= 0 &&
  4609. +record.money <= 1
  4610. ) {
  4611. record.appropriationRatio = record.money;
  4612. } else {
  4613. message.warning("金额比例填写错误,比例范围0~1");
  4614. return;
  4615. }
  4616. }
  4617. if (!record.dunType && record.dunType != 0) {
  4618. message.warning("请选择对应科目");
  4619. return;
  4620. }
  4621. if (record.dunType != 1) {
  4622. record.waitDay = "";
  4623. }
  4624. this.setState({
  4625. loading: true,
  4626. });
  4627. if (record.boStatus) {
  4628. $.ajax({
  4629. url: globalConfig.context + "/api/admin/orderChange/addChangeDun",
  4630. method: "post",
  4631. data: {
  4632. orderNo: record.orderNo,
  4633. ctid: record.ctid,
  4634. projectType: record.sort,
  4635. dunType: record.dunType,
  4636. appropriationRatio: record.appropriationRatio,
  4637. waitDay: record.waitDay,
  4638. effectiveCount: record.effectiveCount,
  4639. cid: this.state.changeId, //变更ID
  4640. customizeTimes:
  4641. record.dunType == 0 ? record.customizeTimes : undefined,
  4642. customizeName:
  4643. record.dunType == 0 ? record.customizeName : undefined,
  4644. },
  4645. }).done(
  4646. function (data) {
  4647. this.setState({
  4648. loading: false,
  4649. });
  4650. if (!data.error.length) {
  4651. message.success("保存成功!");
  4652. this.setState({
  4653. cuiFlag: false,
  4654. boFlag: false,
  4655. addFlag: false,
  4656. });
  4657. this.cuiList();
  4658. } else {
  4659. message.warning(data.error[0].message);
  4660. }
  4661. }.bind(this)
  4662. );
  4663. } else {
  4664. $.ajax({
  4665. url: globalConfig.context + "/api/admin/orderChange/addChangeDun",
  4666. method: "post",
  4667. data: {
  4668. orderNo: record.orderNo,
  4669. ctid: record.ctid,
  4670. projectType: record.sort,
  4671. dunType: record.dunType,
  4672. money: record.money,
  4673. waitDay: record.waitDay,
  4674. effectiveCount: record.effectiveCount,
  4675. cid: this.state.changeId, //变更ID
  4676. customizeTimes:
  4677. record.dunType == 0 ? record.customizeTimes : undefined,
  4678. customizeName:
  4679. record.dunType == 0 ? record.customizeName : undefined,
  4680. },
  4681. }).done(
  4682. function (data) {
  4683. this.setState({
  4684. loading: false,
  4685. });
  4686. if (!data.error.length) {
  4687. message.success("保存成功!");
  4688. this.setState({
  4689. cuiFlag: false,
  4690. boFlag: false,
  4691. addFlag: false,
  4692. });
  4693. this.cuiList();
  4694. } else {
  4695. message.warning(data.error[0].message);
  4696. }
  4697. }.bind(this)
  4698. );
  4699. }
  4700. },
  4701. submitChange() {
  4702. if (
  4703. this.state.typeChange == undefined ||
  4704. (this.state.typeChange == "" && this.state.typeChange != 0)
  4705. ) {
  4706. message.warning("请选择变更类型");
  4707. return false;
  4708. }
  4709. if (this.state.totalAmount === "") {
  4710. message.warning("合同金额不能为空!");
  4711. return false;
  4712. }
  4713. if (this.state.firstAmount === "") {
  4714. message.warning("首付款金额不能为空!");
  4715. return false;
  4716. }
  4717. if (Number(this.state.totalAmount) < Number(this.state.firstAmount)) {
  4718. message.warning("首付款不能大于合同额!");
  4719. return;
  4720. }
  4721. if (
  4722. this.state.typeChange == 0 ||
  4723. this.state.typeChange == 1 ||
  4724. this.state.typeChange == 3 ||
  4725. this.state.typeChange == 8
  4726. ) {
  4727. if (Number(this.state.settlementAmount) < Number(this.state.changeAmount)) {
  4728. message.warning("退款金额大于已收款金额");
  4729. return;
  4730. }
  4731. }
  4732. if (this.state.processStatus != 7 && this.state.processStatus != 8) {
  4733. message.warning("当前订单流程不能发起变更!");
  4734. return false;
  4735. }
  4736. if (this.state.changeAmount === "") {
  4737. message.warning("申请退款金额不能为空!");
  4738. return false;
  4739. }
  4740. if (this.state.remarksC == "") {
  4741. message.warning("请正确填写变更原因");
  4742. return false;
  4743. }
  4744. if (this.state.startRemarks == "") {
  4745. message.warning("请正确填写备注信息");
  4746. return false;
  4747. }
  4748. if (this.state.typeChange == 0) {
  4749. let reg1 = /^1[3456789]\d{9}$/
  4750. let reg2 = /^0\d{2,3}-?\d{7,8}$/
  4751. let reg3 = /[^\u4E00-\u9FA5]/g
  4752. if (!this.state.managerContacts || reg3.test(this.state.managerContacts)) {
  4753. message.warning("请正确填写企业总经理姓名");
  4754. return false;
  4755. }
  4756. if (!this.state.managerContactMobile) {
  4757. message.warning("请正确填写企业总经理联系电话");
  4758. return false;
  4759. }
  4760. if (!reg1.test(this.state.managerContactMobile) && !reg2.test(this.state.managerContactMobile)) {
  4761. message.warning("请正确填写企业总经理联系电话");
  4762. return false;
  4763. }
  4764. if (!this.state.contacts || reg3.test(this.state.contacts)) {
  4765. message.warning("请正确填写企业联系人姓名");
  4766. return false;
  4767. }
  4768. if (!this.state.contactMobile) {
  4769. message.warning("请正确填写企业联系人联系方式");
  4770. return false;
  4771. }
  4772. if (!reg1.test(this.state.contactMobile) && !reg2.test(this.state.contactMobile)) {
  4773. message.warning("请正确填写企业联系人联系方式");
  4774. return false;
  4775. }
  4776. }
  4777. let theorgCodeUrl = [];
  4778. if (this.state.voucherUrl.length) {
  4779. let picArr = [];
  4780. this.state.voucherUrl.map(function (item) {
  4781. if (
  4782. item.response &&
  4783. item.response.data &&
  4784. item.response.data.length
  4785. ) {
  4786. picArr.push(item.response.data);
  4787. }
  4788. });
  4789. theorgCodeUrl = picArr.join(",");
  4790. }
  4791. let newContractUrl = [];
  4792. if (this.state.newContractUrl.length) {
  4793. let cArr = [];
  4794. this.state.newContractUrl.map(function (item) {
  4795. if (
  4796. item.response &&
  4797. item.response.data &&
  4798. item.response.data.length
  4799. ) {
  4800. cArr.push(item.response.data);
  4801. }
  4802. });
  4803. newContractUrl = cArr.join(",");
  4804. }
  4805. if (this.state.isNew && newContractUrl.length == 0) {
  4806. message.warning("请上传新合同扫描件!");
  4807. return
  4808. }
  4809. this.setState({
  4810. loading: true,
  4811. });
  4812. $.ajax({
  4813. url: globalConfig.context + "/api/admin/orderChange/updateOrderChange",
  4814. method: "post",
  4815. data: {
  4816. id: this.state.changeId,
  4817. changeType: 0,
  4818. orderNo: this.state.orderNo, //订单编号
  4819. processState: 0,
  4820. startRemarks: this.state.startRemarks,
  4821. remarks: this.state.remarksC,
  4822. voucherUrl: theorgCodeUrl.length ? theorgCodeUrl : "",
  4823. totalAmount: this.state.totalAmount,//合同额
  4824. firstAmount: this.state.firstAmount,//首付款
  4825. settlementAmount: this.state.settlementAmount,
  4826. changeAmount: this.state.changeAmount,
  4827. applicant: this.state.salesmanName,
  4828. depName: this.state.depName,
  4829. type: this.state.typeChange,
  4830. contractPictureUrl: this.state.isNew
  4831. ? newContractUrl : undefined,//合同替换件
  4832. contacts: this.state.typeChange == 0 ? this.state.contacts : undefined,
  4833. contactMobile: this.state.typeChange == 0 ? this.state.contactMobile : undefined,
  4834. managerContacts: this.state.typeChange == 0 ? this.state.managerContacts : undefined,
  4835. managerContactMobile: this.state.typeChange == 0 ? this.state.managerContactMobile : undefined,
  4836. },
  4837. }).done(
  4838. function (data) {
  4839. if (!data.error.length) {
  4840. this.setState({
  4841. loading: false,
  4842. });
  4843. message.success("发起变更成功");
  4844. this.handleCancelclose();
  4845. } else {
  4846. message.warning(data.error[0].message);
  4847. this.setState({
  4848. loading: false,
  4849. });
  4850. }
  4851. }.bind(this)
  4852. );
  4853. },
  4854. editCui(record) {
  4855. this.setState({
  4856. editCuiVisible: true,
  4857. editCuiMoney: record.appropriationRatio
  4858. ? record.appropriationRatio
  4859. : record.money,
  4860. appropriationRatio: record.appropriationRatio,
  4861. editCuiTid: record.tid,
  4862. editCuiDid: record.did,
  4863. editCuiId: record.id,
  4864. });
  4865. },
  4866. editPro(record) {
  4867. this.setState({
  4868. editProVisible: true,
  4869. dataInfor: record,
  4870. newData: this.state.proDataSource,
  4871. });
  4872. // this.setState({
  4873. // editProVisible: true,
  4874. // editSplitStatus: record.splitStatus,
  4875. // editProMoney: record.commodityPrice,
  4876. // editProCommodityQuantity: record.commodityQuantity,
  4877. // editProTid: record.tid,
  4878. // editProId: record.id,
  4879. // });
  4880. },
  4881. submitEditCui(type) {
  4882. if (isNaN(parseFloat(this.state.editCuiMoney))) {
  4883. if (type === 1) {
  4884. message.warn("请输入比例");
  4885. } else {
  4886. message.warn("请输入金额");
  4887. }
  4888. return;
  4889. }
  4890. this.setState({
  4891. loading: true,
  4892. });
  4893. let data = {
  4894. id: this.state.editCuiId,
  4895. type: this.state.editCuiTid ? 2 : 1,
  4896. tid: this.state.editCuiTid,
  4897. };
  4898. if (type === 1) {
  4899. data.appropriationRatio = this.state.editCuiMoney;
  4900. } else {
  4901. data.money = this.state.editCuiMoney;
  4902. }
  4903. $.ajax({
  4904. url: globalConfig.context + "/api/admin/orderChange/updateChangeDun",
  4905. method: "post",
  4906. data,
  4907. }).done(
  4908. function (data) {
  4909. this.setState({
  4910. loading: false,
  4911. });
  4912. if (!data.error.length) {
  4913. message.success("修改成功!");
  4914. this.cuiList();
  4915. this.proList();
  4916. this.setState({
  4917. editCuiVisible: false,
  4918. });
  4919. } else {
  4920. message.warning(data.error[0].message);
  4921. }
  4922. }.bind(this)
  4923. );
  4924. },
  4925. submitEditPro() {
  4926. this.setState({
  4927. loading: true,
  4928. });
  4929. $.ajax({
  4930. url: globalConfig.context + "/api/admin/orderChange/updateChangeTask",
  4931. method: "post",
  4932. data: {
  4933. id: this.state.editProId,
  4934. type: this.state.editProTid ? 2 : 1,
  4935. commodityPrice: this.state.editProMoney,
  4936. commodityQuantity: this.state.editProCommodityQuantity,
  4937. tid: this.state.editProTid,
  4938. },
  4939. }).done(
  4940. function (data) {
  4941. this.setState({
  4942. loading: false,
  4943. });
  4944. if (!data.error.length) {
  4945. message.success("修改成功!");
  4946. this.cuiList();
  4947. this.proList();
  4948. this.setState({
  4949. editProVisible: false,
  4950. });
  4951. } else {
  4952. message.warning(data.error[0].message);
  4953. }
  4954. }.bind(this)
  4955. );
  4956. },
  4957. downImg() {
  4958. let num = 0;
  4959. for (let i = 0; i < this.state.orgCodeUrl.length; i++) {
  4960. if (this.state.orgCodeUrl[i].url == this.state.previewImage) {
  4961. num = i;
  4962. }
  4963. }
  4964. if (num == this.state.orgCodeUrl.length - 1) {
  4965. return message.warning("已经是最后一张了哦");
  4966. }
  4967. this.state.previewImage = this.state.orgCodeUrl[num + 1].url;
  4968. this.setState({
  4969. previewImage: this.state.previewImage,
  4970. rotateDeg: 0,
  4971. });
  4972. },
  4973. upImg() {
  4974. let num = 0;
  4975. for (let i = 0; i < this.state.orgCodeUrl.length; i++) {
  4976. if (this.state.orgCodeUrl[i].url == this.state.previewImage) {
  4977. num = i;
  4978. }
  4979. }
  4980. if (num == 0) {
  4981. return message.warning("已经是第一张了哦");
  4982. }
  4983. this.state.previewImage = this.state.orgCodeUrl[num - 1].url;
  4984. this.setState({
  4985. previewImage: this.state.previewImage,
  4986. rotateDeg: 0,
  4987. });
  4988. },
  4989. rotate() {
  4990. let rotateDeg = this.state.rotateDeg + 90;
  4991. this.setState({
  4992. rotateDeg,
  4993. });
  4994. },
  4995. downImgs() {
  4996. let num = 0;
  4997. for (let i = 0; i < this.state.replenishUrl.length; i++) {
  4998. if (this.state.replenishUrl[i].url == this.state.previewImage) {
  4999. num = i;
  5000. }
  5001. }
  5002. if (num == this.state.replenishUrl.length - 1) {
  5003. return message.warning("已经是最后一张了哦");
  5004. }
  5005. this.state.previewImage = this.state.replenishUrl[num + 1].url;
  5006. this.setState({
  5007. previewImage: this.state.previewImage,
  5008. rotateDeg: 0,
  5009. });
  5010. },
  5011. upImgs() {
  5012. let num = 0;
  5013. for (let i = 0; i < this.state.replenishUrl.length; i++) {
  5014. if (this.state.replenishUrl[i].url == this.state.previewImage) {
  5015. num = i;
  5016. }
  5017. }
  5018. if (num == 0) {
  5019. return message.warning("已经是第一张了哦");
  5020. }
  5021. this.state.previewImage = this.state.replenishUrl[num - 1].url;
  5022. this.setState({
  5023. previewImage: this.state.previewImage,
  5024. rotateDeg: 0,
  5025. });
  5026. },
  5027. rotates() {
  5028. let rotateDeg = this.state.rotateDeg + 90;
  5029. this.setState({
  5030. rotateDeg,
  5031. });
  5032. },
  5033. downImgCont() {
  5034. let num = 0;
  5035. for (let i = 0; i < this.state.contentUrl.length; i++) {
  5036. if (this.state.contentUrl[i].url == this.state.previewImage) {
  5037. num = i;
  5038. }
  5039. }
  5040. if (num == this.state.replenishUrl.length - 1) {
  5041. return message.warning("已经是最后一张了哦");
  5042. }
  5043. this.state.previewImage = this.state.contentUrl[num + 1].url;
  5044. this.setState({
  5045. previewImage: this.state.previewImage,
  5046. rotateDeg: 0,
  5047. });
  5048. },
  5049. upImgCont() {
  5050. let num = 0;
  5051. for (let i = 0; i < this.state.contentUrl.length; i++) {
  5052. if (this.state.contentUrl[i].url == this.state.previewImage) {
  5053. num = i;
  5054. }
  5055. }
  5056. if (num == 0) {
  5057. return message.warning("已经是第一张了哦");
  5058. }
  5059. this.state.previewImage = this.state.contentUrl[num - 1].url;
  5060. this.setState({
  5061. previewImage: this.state.previewImage,
  5062. rotateDeg: 0,
  5063. });
  5064. },
  5065. rotateCont() {
  5066. let rotateDeg = this.state.rotateDeg + 90;
  5067. this.setState({
  5068. rotateDeg,
  5069. });
  5070. },
  5071. showConfirmChange(fn, record) {
  5072. confirm({
  5073. title: "确定取消本次变更吗?",
  5074. content: (
  5075. <span style={{ color: "red" }}>取消后本次变更将作废!!!</span>
  5076. ),
  5077. onOk() {
  5078. fn();
  5079. },
  5080. onCancel() { },
  5081. });
  5082. },
  5083. deleteChange() {
  5084. this.setState({
  5085. loading: true,
  5086. });
  5087. $.ajax({
  5088. url: globalConfig.context + "/api/admin/orderChange/cancelOrderChange",
  5089. method: "post",
  5090. data: {
  5091. id: this.state.changeId,
  5092. status: this.state.status,
  5093. processState: this.state.processState,
  5094. orderNo: this.state.orderNo,
  5095. },
  5096. }).done(
  5097. function (data) {
  5098. this.setState({
  5099. loading: false,
  5100. });
  5101. if (!data.error.length) {
  5102. message.success("取消成功!");
  5103. this.handleCancelclose();
  5104. } else {
  5105. message.warning(data.error[0].message);
  5106. }
  5107. }.bind(this)
  5108. );
  5109. },
  5110. // 新增协单人员
  5111. submitOrder() {
  5112. if (!this.state.coor) {
  5113. message.warning("请选择协单人员");
  5114. return;
  5115. }
  5116. this.setState({
  5117. loading: true,
  5118. });
  5119. $.ajax({
  5120. method: "post",
  5121. dataType: "json",
  5122. crossDomain: false,
  5123. url: globalConfig.context + "/api/admin/newOrder/addAssist",
  5124. data: {
  5125. orderNo: this.state.orderNo,
  5126. aid: this.state.coor,
  5127. },
  5128. success: function (data) {
  5129. if (data.error.length) {
  5130. this.setState({
  5131. loading: false,
  5132. });
  5133. message.warning(data.error[0].message);
  5134. } else {
  5135. this.setState({
  5136. loading: false,
  5137. coor: '',
  5138. dataSourceView: [],
  5139. coorVisible: "none",
  5140. });
  5141. this.assistList();
  5142. message.success("添加成功");
  5143. }
  5144. }.bind(this),
  5145. }).always(
  5146. function () {
  5147. this.setState({
  5148. loading: false,
  5149. });
  5150. }.bind(this)
  5151. );
  5152. },
  5153. // // 删除协单人员
  5154. // onClosable(id) {
  5155. // $.ajax({
  5156. // method: "post",
  5157. // dataType: "json",
  5158. // crossDomain: false,
  5159. // url: globalConfig.context + "/api/admin/newOrder/deleteAssist",
  5160. // data: {
  5161. // id: id,
  5162. // },
  5163. // success: function (data) {
  5164. // if (!data.error.length) {
  5165. // message.warning(data.error[0].message);
  5166. // } else {
  5167. // message.success("删除成功");
  5168. // }
  5169. // }.bind(this),
  5170. // }).always(
  5171. // function () {
  5172. // this.setState({
  5173. // loading: false,
  5174. // });
  5175. // }.bind(this)
  5176. // );
  5177. // },
  5178. // 新增上门服务数据
  5179. submitView() {
  5180. if (!this.state.dateView) {
  5181. message.warning("请选择上门日期");
  5182. return;
  5183. } else if (!this.state.contentView) {
  5184. message.warning("请填写服务内容");
  5185. return;
  5186. }
  5187. this.setState({
  5188. loading: true,
  5189. });
  5190. $.ajax({
  5191. method: "post",
  5192. dataType: "json",
  5193. crossDomain: false,
  5194. url: globalConfig.context + "/api/admin/newOrder/addOrderService",
  5195. data: {
  5196. orderNo: this.state.orderNo,
  5197. serviceTimes: this.state.dateView,
  5198. content: this.state.contentView,
  5199. remarks: this.state.remarksView,
  5200. },
  5201. success: function (data) {
  5202. if (data.error.length) {
  5203. this.setState({
  5204. loading: false,
  5205. });
  5206. message.warning(data.error[0].message);
  5207. } else {
  5208. this.setState({
  5209. loading: false,
  5210. modalView: false,
  5211. viewKey: this.state.viewKey + 1,
  5212. dateView: '',
  5213. contentView: '',
  5214. remarksView: '',
  5215. contentViewLength: 0,
  5216. contentViewLength1: 0,
  5217. });
  5218. message.success("添加成功");
  5219. this.orderServiceList();
  5220. }
  5221. }.bind(this),
  5222. }).always(
  5223. function () {
  5224. this.setState({
  5225. loading: false,
  5226. });
  5227. }.bind(this)
  5228. );
  5229. },
  5230. //获取上门人员
  5231. assistList(record) {
  5232. this.state.orderList = [];
  5233. $.ajax({
  5234. method: "get",
  5235. dataType: "json",
  5236. crossDomain: false,
  5237. url: globalConfig.context + "/api/admin/newOrder/assistList",
  5238. data: {
  5239. orderNo: record ? record.orderNo : this.props.datauser.orderNo,
  5240. },
  5241. success: function (data) {
  5242. if (data.error.length) {
  5243. this.setState({
  5244. loading: false,
  5245. });
  5246. message.warning(data.error[0].message);
  5247. } else {
  5248. this.setState({
  5249. personnel: data.data,
  5250. });
  5251. // message.success("添加成功");
  5252. }
  5253. }.bind(this),
  5254. }).always(
  5255. function () {
  5256. this.setState({
  5257. loading: false,
  5258. });
  5259. }.bind(this)
  5260. );
  5261. },
  5262. // 上门服务列表
  5263. orderServiceList(record) {
  5264. $.ajax({
  5265. method: "get",
  5266. dataType: "json",
  5267. crossDomain: false,
  5268. url: globalConfig.context + "/api/admin/newOrder/orderServiceList",
  5269. data: {
  5270. orderNo: record ? record.orderNo : this.props.datauser.orderNo,
  5271. },
  5272. success: function (data) {
  5273. if (data.error.length) {
  5274. this.setState({
  5275. loading: false,
  5276. });
  5277. message.warning(data.error[0].message);
  5278. } else {
  5279. this.setState({
  5280. dataView: data.data,
  5281. });
  5282. // message.success("添加成功");
  5283. }
  5284. }.bind(this),
  5285. }).always(
  5286. function () {
  5287. this.setState({
  5288. loading: false,
  5289. });
  5290. }.bind(this)
  5291. );
  5292. },
  5293. // 删除上门服务列表
  5294. delectView(record) {
  5295. $.ajax({
  5296. method: "POST",
  5297. dataType: "json",
  5298. crossDomain: false,
  5299. url: globalConfig.context + "/api/admin/newOrder/deleteOrderService",
  5300. data: {
  5301. id: record.id,
  5302. },
  5303. success: function (data) {
  5304. if (data.error.length) {
  5305. this.setState({
  5306. loading: false,
  5307. });
  5308. message.warning(data.error[0].message);
  5309. } else {
  5310. // this.setState({
  5311. // publicView: data.data,
  5312. // });
  5313. this.orderServiceList();
  5314. message.success("删除成功");
  5315. }
  5316. }.bind(this),
  5317. }).always(
  5318. function () {
  5319. this.setState({
  5320. loading: false,
  5321. });
  5322. }.bind(this)
  5323. );
  5324. },
  5325. // 上门查看
  5326. publicByOrder() {
  5327. $.ajax({
  5328. method: "get",
  5329. dataType: "json",
  5330. crossDomain: false,
  5331. url: globalConfig.context + "/api/admin/release/publicByOrder",
  5332. data: {
  5333. orderNo: this.state.orderNo,
  5334. },
  5335. success: function (data) {
  5336. if (data.error.length) {
  5337. this.setState({
  5338. loading: false,
  5339. });
  5340. message.warning(data.error[0].message);
  5341. } else {
  5342. this.setState({
  5343. publicView: data.data,
  5344. });
  5345. // message.success("添加成功");
  5346. }
  5347. }.bind(this),
  5348. }).always(
  5349. function () {
  5350. this.setState({
  5351. loading: false,
  5352. });
  5353. }.bind(this)
  5354. );
  5355. },
  5356. // 获取动态数据名称
  5357. handleSearch(value) {
  5358. $.ajax({
  5359. method: "get",
  5360. dataType: "json",
  5361. crossDomain: false,
  5362. url: globalConfig.context + "/api/admin/customer/listAdminByName",
  5363. data: {
  5364. adminName: value,
  5365. },
  5366. success: function (data) {
  5367. if (data.error.length) {
  5368. this.setState({
  5369. loading: false,
  5370. });
  5371. message.warning(data.error[0].message);
  5372. } else {
  5373. this.setState({
  5374. dataSourceView: data.data,
  5375. });
  5376. // message.success("添加成功");
  5377. }
  5378. }.bind(this),
  5379. }).always(
  5380. function () {
  5381. this.setState({
  5382. loading: false,
  5383. });
  5384. }.bind(this)
  5385. );
  5386. },
  5387. //
  5388. onSelectView(v, o) {
  5389. this.setState({
  5390. coor: v,
  5391. });
  5392. },
  5393. //
  5394. handleClose(removedTag) {
  5395. let serviceLife = this.state.serviceLife.filter(tag => { return tag !== removedTag });
  5396. this.setState({ serviceLife, serviceYear: undefined });
  5397. },
  5398. onSelectChange(selectedRowKeys, selectedRows) {
  5399. this.setState({
  5400. selectedRowKeys,
  5401. selectedRows,
  5402. });
  5403. },
  5404. getRadioList(val, cSort, name) {
  5405. let array = []
  5406. let list = []
  5407. let vlist1 = [30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20]
  5408. let vlist2 = [20, 19, 18, 17, 16, 15, 14, 13]
  5409. let vlist3 = [15, 14, 13, 12, 11]
  5410. let vlist4 = [10, 9, 8, 7]
  5411. let mlist1 = [19, 18, 17, 16, 15, 14, 13, 12, 11, 10]
  5412. let mlist2 = [12, 11, 10, 9, 8, 7]
  5413. let mlist3 = [10, 9, 8, 7, 6]
  5414. let mlist4 = [6, 5, 4]
  5415. let clist1 = [9, 8, 7, 6, 5, 4, 3, 2, , 1]
  5416. let clist2 = [6, 5, 4, 3, 2, 1]
  5417. let clist3 = [5, 4, 3, 2, 1]
  5418. let clist4 = [3, 2, 1]
  5419. if (cSort == 6) {
  5420. if (name == "zyd" || name == "gtl" || name == "ydhb") {
  5421. list = [
  5422. { value: 1, list: vlist2 },
  5423. { value: 2, list: mlist2 },
  5424. { value: 3, list: clist2 },
  5425. { value: 4, list: [0] }
  5426. ]
  5427. } else if (name == "xyd" || name == "gcxx" || name == "fwtd" || name == "ndhb") {
  5428. list = [
  5429. { value: 1, list: vlist4 },
  5430. { value: 2, list: mlist4 },
  5431. { value: 3, list: clist4 },
  5432. { value: 4, list: [0] }
  5433. ]
  5434. }
  5435. } else {
  5436. if (name == "zyd" || name == "gtl") {
  5437. list = [
  5438. { value: 1, list: vlist1 },
  5439. { value: 2, list: mlist1 },
  5440. { value: 3, list: clist1 },
  5441. { value: 4, list: [0] }
  5442. ]
  5443. } else if (name == "gcxx" || name == "fwtd") {
  5444. list = [
  5445. { value: 1, list: vlist3 },
  5446. { value: 2, list: mlist3 },
  5447. { value: 3, list: clist3 },
  5448. { value: 4, list: [0] }
  5449. ]
  5450. } else if (name == "xyd") {
  5451. list = [
  5452. { value: 1, list: vlist4 },
  5453. { value: 2, list: mlist4 },
  5454. { value: 3, list: clist4 },
  5455. { value: 4, list: [0] }
  5456. ]
  5457. }
  5458. }
  5459. list.map(function (item) {
  5460. if (item.value == val) {
  5461. array = item.list
  5462. }
  5463. })
  5464. return array
  5465. },
  5466. getPaddingLeft(val) {
  5467. let num = 7
  5468. let arr = [
  5469. { value: 1, key: 7 },
  5470. { value: 2, key: 7 },
  5471. { value: 3, key: 7 },
  5472. { value: 4, key: 7 }
  5473. ]
  5474. arr.map(function (item) {
  5475. if (item.value == val) {
  5476. num = item.key
  5477. }
  5478. })
  5479. return num
  5480. },
  5481. getScore(name, cSort, val) {
  5482. let data = ""
  5483. let list = []
  5484. if (cSort == 6) {
  5485. if (name == "zyd" || name == "gtl" || name == "ydhb") {
  5486. list = [
  5487. { title: name == "zyd" ? "很专业" : "很满意", list: [20, 19, 18, 17, 16, 15, 14, 13] },
  5488. { title: name == "zyd" ? "专业" : "满意", list: [12, 11, 10, 9, 8, 7] },
  5489. { title: "一般", list: [6, 5, 4, 3, 2, 1] },
  5490. { title: name == "zyd" ? "不专业" : "不满意", list: [0] },
  5491. ]
  5492. } else if (name == "xyd" || name == "gcxx" || name == "fwtd" || name == "ndhb") {
  5493. list = [
  5494. { title: name == "xyd" ? "很速度" : "很满意", list: [10, 9, 8, 7] },
  5495. { title: name == "xyd" ? "速度" : "满意", list: [6, 5, 4] },
  5496. { title: "一般", list: [3, 2, 1] },
  5497. { title: name == "xyd" ? "很慢" : "不满意", list: [0] },
  5498. ]
  5499. }
  5500. } else {
  5501. if (name == "zyd" || name == "gtl") {
  5502. list = [
  5503. { title: name == "zyd" ? "很专业" : "很满意", list: [30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20] },
  5504. { title: name == "zyd" ? "专业" : "满意", list: [19, 18, 17, 16, 15, 14, 13, 12, 11, 10] },
  5505. { title: "一般", list: [9, 8, 7, 6, 5, 4, 3, 2, 1] },
  5506. { title: name == "zyd" ? "不专业" : "不满意", list: [0] },
  5507. ]
  5508. } else if (name == "gcxx" || name == "fwtd") {
  5509. list = [
  5510. { title: "很满意", list: [15, 14, 13, 12, 11] },
  5511. { title: "满意", list: [10, 9, 8, 7, 6] },
  5512. { title: "一般", list: [5, 4, 3, 2, 1] },
  5513. { title: "不满意", list: [0] },
  5514. ]
  5515. } else if (name == "xyd") {
  5516. list = [
  5517. { title: "很速度", list: [10, 9, 8, 7] },
  5518. { title: "速度", list: [6, 5, 4] },
  5519. { title: "一般", list: [3, 2, 1] },
  5520. { title: "很慢", list: [0] },
  5521. ]
  5522. }
  5523. }
  5524. list.map(function (item) {
  5525. if (item.list.includes(val)) {
  5526. data = item.title + "(" + val + "分)"
  5527. }
  5528. })
  5529. return data
  5530. },
  5531. updateByTid() {
  5532. $.ajax({
  5533. method: "POST",
  5534. dataType: "json",
  5535. crossDomain: false,
  5536. url: globalConfig.context + "/api/admin/taskScore/updateByTid",
  5537. data: {
  5538. tid: this.state.tid,
  5539. professionalism: this.state.professionalism,
  5540. communicationSkills: this.state.communicationSkills,
  5541. responsiveness: this.state.responsiveness,
  5542. publicImage: this.state.publicImage,
  5543. serviceAttitude: this.state.serviceAttitude,
  5544. monthlyReport: this.state.cSort == 6 ? this.state.monthlyReport : undefined,
  5545. yearReport: this.state.cSort == 6 ? this.state.yearReport : undefined,
  5546. remarks: this.state.marks,
  5547. },
  5548. success: function (data) {
  5549. if (data.error.length) {
  5550. this.setState({
  5551. loading: false,
  5552. });
  5553. message.error(data.error[0].message);
  5554. } else {
  5555. message.success("操作成功");
  5556. this.onCloses()
  5557. this.loadData();
  5558. }
  5559. }.bind(this),
  5560. }).always(
  5561. function () {
  5562. this.setState({
  5563. loading: false,
  5564. });
  5565. }.bind(this)
  5566. );
  5567. },
  5568. onCloses() {
  5569. this.setState({
  5570. score: "",
  5571. tid: "",
  5572. cSort: "",
  5573. cname: "",
  5574. tname: "",
  5575. zyd: undefined,
  5576. zydList: [],
  5577. professionalism: undefined,
  5578. gtl: undefined,
  5579. gtlList: [],
  5580. communicationSkills: undefined,
  5581. xyd: undefined,
  5582. yxdList: [],
  5583. responsiveness: undefined,
  5584. gcxx: undefined,
  5585. gcxxList: [],
  5586. publicImage: undefined,
  5587. fwtd: undefined,
  5588. fwtdList: [],
  5589. serviceAttitude: undefined,
  5590. ydhb: undefined,
  5591. ydhbList: [],
  5592. monthlyReport: undefined,
  5593. ndhb: undefined,
  5594. ndhbList: [],
  5595. yearReport: undefined,
  5596. remarks: undefined,
  5597. })
  5598. },
  5599. queryByTid(value) {
  5600. this.setState({
  5601. loading: true,
  5602. })
  5603. $.ajax({
  5604. method: "get",
  5605. dataType: "json",
  5606. crossDomain: false,
  5607. url: globalConfig.context + "/api/admin/taskScore/queryByTid",
  5608. data: {
  5609. tid: value,
  5610. },
  5611. success: function (data) {
  5612. if (data.error.length) {
  5613. this.setState({
  5614. loading: false,
  5615. });
  5616. message.warning(data.error[0].message);
  5617. } else {
  5618. this.setState({
  5619. score: "selcet",
  5620. dataScore: data.data,
  5621. });
  5622. }
  5623. }.bind(this),
  5624. }).always(
  5625. function () {
  5626. this.setState({
  5627. loading: false,
  5628. });
  5629. }.bind(this)
  5630. );
  5631. },
  5632. render() {
  5633. const expandedRowRender = (e) => {
  5634. const data = e.list;
  5635. if (e.cSort != 6) {
  5636. let columns = [];
  5637. if (data instanceof Array && data.length) {
  5638. columns = [
  5639. {
  5640. title: "变更状态",
  5641. dataIndex: "type",
  5642. key: "type",
  5643. render: (text, record) => {
  5644. let str = "";
  5645. let color = "";
  5646. if (text == 1) {
  5647. str = "增";
  5648. color = "#87d068";
  5649. } else if (text == 2) {
  5650. str = "改";
  5651. color = "#108ee9";
  5652. } else if (text == 3) {
  5653. str = "删";
  5654. color = "#f50";
  5655. }
  5656. return (
  5657. <span>
  5658. <Tag
  5659. color={color}
  5660. style={{ display: text == 0 ? "none" : "inline-block" }}
  5661. >
  5662. {str}
  5663. </Tag>
  5664. </span>
  5665. );
  5666. },
  5667. },
  5668. {
  5669. title: "业务项目名称",
  5670. dataIndex: "commodityName",
  5671. key: "commodityName",
  5672. render: (text, record) => {
  5673. return <span>
  5674. {text}<span style={{ color: "red" }}>{record.patentTypeName}</span>{"-" + record.id}
  5675. <div>
  5676. {record.cSort == 6 && record.projectType == 1 && <span>(含{record.htMember == 1 ? '高新会员&' : ''}{record.additionalDeduction == 1 ? '加计扣除&' : ''}{record.rdAwardsubsidy == 1 ? '研发奖补' : ''})</span>}
  5677. {record.cSort == 6 && ([0, 3].indexOf(record.projectType) > -1) && <span>(仅提供单边会员服务)</span>}
  5678. {record.cSort == 6 && record.projectType == 2 && <span>(仅填报表,仅咨询,不出备查资料)</span>}
  5679. {record.cSort == 3 && <span>{record.technologyProjectType == 0 ? '(简易项目)' : record.technologyProjectType == 1 ? '(市区级)' : record.technologyProjectType == 2 ? '(省级)' : record.technologyProjectType == 3 ? '(国家级)' : ''}</span>}
  5680. {record.cSort == 8 ? (record.type != 2 && record.patentType == 1) ? <span>(变更)</span> : <span>{record.ordinaryRisk == 0 ? '(普通申请)' : record.ordinaryRisk == 1 ? '(风险代理)' : ''}</span> : ""}
  5681. {record.type == 2 && <span>({record.days == 0 ? '普通' : record.days == 1 ? '加急' : ''}{record.scheme == 0 ? '&无方案' : record.scheme == 1 ? '&有方案' : ''})</span>}
  5682. </div>
  5683. </span>
  5684. }
  5685. },
  5686. {
  5687. title: "项目类别",
  5688. dataIndex: "cname",
  5689. key: "cname",
  5690. },
  5691. {
  5692. title: "项目数量",
  5693. dataIndex: "commodityQuantity",
  5694. key: "commodityQuantity",
  5695. width: 50,
  5696. },
  5697. {
  5698. title: "金额(万元)",
  5699. dataIndex: "commodityPrice",
  5700. key: "commodityPrice",
  5701. width: 50,
  5702. render: (text, record) => {
  5703. if (record.splitStatus == 2) {
  5704. return "/";
  5705. } else {
  5706. return text;
  5707. }
  5708. },
  5709. },
  5710. {
  5711. title: "主要项目",
  5712. dataIndex: "main",
  5713. key: "main",
  5714. width: 50,
  5715. render: (text) => {
  5716. return text ? "是" : "否";
  5717. },
  5718. },
  5719. {
  5720. title: "项目负责人",
  5721. dataIndex: "receiverName",
  5722. key: "receiverName",
  5723. width: 90
  5724. },
  5725. {
  5726. title: "项目说明",
  5727. dataIndex: "taskComment",
  5728. key: "taskComment",
  5729. render: (text, record) => {
  5730. let textStr = text;
  5731. return (
  5732. <Tooltip title={textStr}>
  5733. <div
  5734. style={{
  5735. overflow: "hidden",
  5736. whiteSpace: "nowrap",
  5737. textOverflow: "ellipsis",
  5738. }}
  5739. >{textStr}</div>
  5740. </Tooltip>
  5741. )
  5742. },
  5743. },
  5744. {
  5745. title: "操作",
  5746. dataIndex: "ABC",
  5747. key: "ABC",
  5748. render: (text, record) => {
  5749. return (
  5750. <div>
  5751. <Button
  5752. onClick={(e) => {
  5753. e.stopPropagation();
  5754. this.showConfirm(this.changeDeletePro, record);
  5755. }}
  5756. disabled={this.state.listFlag}
  5757. style={{
  5758. display: this.state.displayList ? "none" : "block",
  5759. }}
  5760. >
  5761. 删除
  5762. </Button>
  5763. </div>
  5764. );
  5765. },
  5766. },
  5767. ];
  5768. return (
  5769. <Table
  5770. columns={columns}
  5771. scroll={{ x: "max-content", y: 0 }}
  5772. dataSource={data}
  5773. pagination={false}
  5774. onRowDoubleClick={this.state.listFlag ? this.not : this.editPro}
  5775. />
  5776. );
  5777. } else {
  5778. columns = [];
  5779. return (
  5780. <p
  5781. style={{ fontWeight: "bold", color: "red", textAlign: "center" }}
  5782. >
  5783. 此项目暂未拆分
  5784. </p>
  5785. );
  5786. }
  5787. } else {
  5788. let columns = [];
  5789. if (data instanceof Array && data.length) {
  5790. columns = [
  5791. {
  5792. title: "变更状态",
  5793. dataIndex: "type",
  5794. key: "type",
  5795. render: (text, record) => {
  5796. let str = "";
  5797. let color = "";
  5798. if (text == 1) {
  5799. str = "增";
  5800. color = "#87d068";
  5801. } else if (text == 2) {
  5802. str = "改";
  5803. color = "#108ee9";
  5804. } else if (text == 3) {
  5805. str = "删";
  5806. color = "#f50";
  5807. }
  5808. return (
  5809. <span>
  5810. <Tag
  5811. color={color}
  5812. style={{ display: text == 0 ? "none" : "inline-block" }}
  5813. >
  5814. {str}
  5815. </Tag>
  5816. </span>
  5817. );
  5818. },
  5819. },
  5820. {
  5821. title: "负责人",
  5822. dataIndex: "receiverName",
  5823. key: "receiverName",
  5824. },
  5825. {
  5826. title: "负责人电话",
  5827. dataIndex: "receiverMobile",
  5828. key: "receiverMobile",
  5829. },
  5830. {
  5831. title: "项目状态",
  5832. dataIndex: "projectStatus",
  5833. key: "projectStatus",
  5834. render: (text) => {
  5835. return getProjectName(text);
  5836. },
  5837. },
  5838. {
  5839. title: "本次派单",
  5840. dataIndex: "serviceYear",
  5841. key: "serviceYear",
  5842. },
  5843. {
  5844. title: "项目说明",
  5845. dataIndex: "taskComment",
  5846. key: "taskComment",
  5847. render: (text, record) => {
  5848. let textStr = text;
  5849. let textArr = [];
  5850. if (record.htMember === 1) {
  5851. textArr.push("高新会员");
  5852. }
  5853. if (record.additionalDeduction === 1) {
  5854. textArr.push("加计扣除");
  5855. }
  5856. if (record.rdAwardsubsidy === 1) {
  5857. textArr.push("研发奖补");
  5858. }
  5859. if (textArr.length) {
  5860. textStr = `${textArr.join("&")} ${!!text ? `(${text})` : ''}`
  5861. }
  5862. return (
  5863. <Tooltip title={textStr}>
  5864. <div
  5865. // style={{
  5866. // width: 100,
  5867. // overflow: "hidden",
  5868. // whiteSpace: "nowrap",
  5869. // textOverflow: "ellipsis",
  5870. // }}
  5871. >{textStr}</div>
  5872. </Tooltip>
  5873. )
  5874. },
  5875. },
  5876. ];
  5877. return (
  5878. <Table
  5879. columns={columns}
  5880. dataSource={data}
  5881. pagination={false}
  5882. />
  5883. );
  5884. } else {
  5885. columns = [];
  5886. return (
  5887. <p
  5888. style={{ fontWeight: "bold", color: "red", textAlign: "center" }}
  5889. >
  5890. 暂无派单
  5891. </p>
  5892. );
  5893. }
  5894. }
  5895. };
  5896. const expandedRowRenderDetail = (e) => {
  5897. const data = e.list;
  5898. let columns = [];
  5899. if (data instanceof Array && data.length) {
  5900. if (e.cSort == 6) {
  5901. columns = [
  5902. {
  5903. title: "变更状态",
  5904. dataIndex: "type",
  5905. key: "type",
  5906. render: (text, record) => {
  5907. let str = "";
  5908. let color = "";
  5909. if (text == 1) {
  5910. str = "增";
  5911. color = "#87d068";
  5912. } else if (text == 2) {
  5913. str = "改";
  5914. color = "#108ee9";
  5915. } else if (text == 3) {
  5916. str = "删";
  5917. color = "#f50";
  5918. }
  5919. return (
  5920. <span>
  5921. <Tag
  5922. color={color}
  5923. style={{ display: text == 0 ? "none" : "inline-block" }}
  5924. >
  5925. {str}
  5926. </Tag>
  5927. {/* {record.splitStatus == 1 ? (
  5928. <Tag
  5929. color="#108ee9"
  5930. // onClick={e => {
  5931. // e.stopPropagation();
  5932. // this.showRes(record);
  5933. // }}
  5934. >
  5935. 父项目
  5936. </Tag>
  5937. ) : (
  5938. ""
  5939. )}
  5940. {record.splitStatus == 2 ? (
  5941. <Tag
  5942. color="#108ee9"
  5943. // onClick={e => {
  5944. // e.stopPropagation();
  5945. // this.showRes(record);
  5946. // }}
  5947. >
  5948. 子项目
  5949. </Tag>
  5950. ) : (
  5951. ""
  5952. )} */}
  5953. </span>
  5954. );
  5955. },
  5956. },
  5957. {
  5958. title: "负责人",
  5959. dataIndex: "receiverName",
  5960. key: "receiverName",
  5961. width: 140,
  5962. },
  5963. {
  5964. title: "负责人电话",
  5965. dataIndex: "receiverMobile",
  5966. key: "receiverMobile",
  5967. align: "center",
  5968. width: 120,
  5969. },
  5970. {
  5971. title: "会员负责人",
  5972. dataIndex: "projectMemberName",
  5973. key: "projectMemberName",
  5974. width: 140,
  5975. align: "center",
  5976. },
  5977. {
  5978. title: "项目状态",
  5979. dataIndex: "projectStatus",
  5980. key: "projectStatus",
  5981. align: "center",
  5982. width: 100,
  5983. render: (text) => {
  5984. return getProjectName(text);
  5985. },
  5986. },
  5987. {
  5988. title: "本次派单",
  5989. dataIndex: "serviceYear",
  5990. key: "serviceYear",
  5991. width: 80,
  5992. align: "center"
  5993. },
  5994. {
  5995. title: "项目说明",
  5996. dataIndex: "taskComment",
  5997. key: "taskComment",
  5998. render: (text, record) => {
  5999. let textStr = text;
  6000. let textArr = [];
  6001. if (record.htMember === 1) {
  6002. textArr.push("高新会员");
  6003. }
  6004. if (record.additionalDeduction === 1) {
  6005. textArr.push("加计扣除");
  6006. }
  6007. if (record.rdAwardsubsidy === 1) {
  6008. textArr.push("研发奖补");
  6009. }
  6010. if (textArr.length) {
  6011. textStr = `${textArr.join("&")} ${!!text ? `(${text})` : ''}`
  6012. }
  6013. return (
  6014. <Tooltip title={textStr}>
  6015. <div
  6016. // style={{
  6017. // width: 100,
  6018. // overflow: "hidden",
  6019. // whiteSpace: "nowrap",
  6020. // textOverflow: "ellipsis",
  6021. // }}
  6022. >{textStr}</div>
  6023. </Tooltip>
  6024. )
  6025. },
  6026. },
  6027. ];
  6028. } else {
  6029. columns = [
  6030. {
  6031. title: "变更状态",
  6032. dataIndex: "type",
  6033. key: "type",
  6034. render: (text, record) => {
  6035. let str = "";
  6036. let color = "";
  6037. if (text == 1) {
  6038. str = "增";
  6039. color = "#87d068";
  6040. } else if (text == 2) {
  6041. str = "改";
  6042. color = "#108ee9";
  6043. } else if (text == 3) {
  6044. str = "删";
  6045. color = "#f50";
  6046. }
  6047. return (
  6048. <span>
  6049. <Tag
  6050. color={color}
  6051. style={{ display: text == 0 ? "none" : "inline-block" }}
  6052. >
  6053. {str}
  6054. </Tag>
  6055. {/* {record.splitStatus == 1 ? (
  6056. <Tag
  6057. color="#108ee9"
  6058. // onClick={e => {
  6059. // e.stopPropagation();
  6060. // this.showRes(record);
  6061. // }}
  6062. >
  6063. 父项目
  6064. </Tag>
  6065. ) : (
  6066. ""
  6067. )}
  6068. {record.splitStatus == 2 ? (
  6069. <Tag
  6070. color="#108ee9"
  6071. // onClick={e => {
  6072. // e.stopPropagation();
  6073. // this.showRes(record);
  6074. // }}
  6075. >
  6076. 子项目
  6077. </Tag>
  6078. ) : (
  6079. ""
  6080. )} */}
  6081. </span>
  6082. );
  6083. },
  6084. },
  6085. {
  6086. title: "业务项目名称",
  6087. dataIndex: "commodityName",
  6088. key: "commodityName",
  6089. render: (text, record) => {
  6090. return <span>
  6091. {text}<span style={{ color: "red" }}>{record.patentTypeName}</span>{"-" + record.id}
  6092. <div>
  6093. {record.cSort == 6 && record.projectType == 1 && <span>(含{record.htMember == 1 ? '高新会员&' : ''}{record.additionalDeduction == 1 ? '加计扣除&' : ''}{record.rdAwardsubsidy == 1 ? '研发奖补' : ''})</span>}
  6094. {record.cSort == 6 && ([0, 3].indexOf(record.projectType) > -1) && <span>(仅提供单边会员服务)</span>}
  6095. {record.cSort == 6 && record.projectType == 2 && <span>(仅填报表,仅咨询,不出备查资料)</span>}
  6096. {record.cSort == 3 && <span>{record.technologyProjectType == 0 ? '(简易项目)' : record.technologyProjectType == 1 ? '(市区级)' : record.technologyProjectType == 2 ? '(省级)' : record.technologyProjectType == 3 ? '(国家级)' : ''}</span>}
  6097. {record.cSort == 8 ? (record.type != 2 && record.patentType == 1) ? <span>(变更)</span> : <span>{record.ordinaryRisk == 0 ? '(普通申请)' : record.ordinaryRisk == 1 ? '(风险代理)' : ''}</span> : ""}
  6098. {record.type == 2 && <span>({record.days == 0 ? '普通' : record.days == 1 ? '加急' : ''}{record.scheme == 0 ? '&无方案' : record.scheme == 1 ? '&有方案' : ''})</span>}
  6099. </div>
  6100. </span>
  6101. }
  6102. },
  6103. {
  6104. title: "项目类别",
  6105. dataIndex: "cname",
  6106. key: "cname",
  6107. },
  6108. {
  6109. title: "项目数量",
  6110. dataIndex: "commodityQuantity",
  6111. key: "commodityQuantity",
  6112. width: 50,
  6113. },
  6114. {
  6115. title: "金额(万元)",
  6116. dataIndex: "commodityPrice",
  6117. key: "commodityPrice",
  6118. width: 50,
  6119. render: (text, record) => {
  6120. if (record.splitStatus == 2) {
  6121. return "/";
  6122. } else {
  6123. return text;
  6124. }
  6125. },
  6126. },
  6127. {
  6128. title: "主要项目",
  6129. dataIndex: "main",
  6130. key: "main",
  6131. width: 50,
  6132. render: (text) => {
  6133. return text ? "是" : "否";
  6134. },
  6135. },
  6136. {
  6137. title: "项目负责人",
  6138. dataIndex: "receiverName",
  6139. key: "receiverName",
  6140. },
  6141. {
  6142. title: "项目说明",
  6143. dataIndex: "taskComment",
  6144. key: "taskComment",
  6145. render: (text) => {
  6146. return (
  6147. <Tooltip title={text}>
  6148. <div
  6149. style={{
  6150. width: 100,
  6151. overflow: "hidden",
  6152. whiteSpace: "nowrap",
  6153. textOverflow: "ellipsis",
  6154. }}
  6155. >{textStr}</div>
  6156. </Tooltip>
  6157. )
  6158. },
  6159. },
  6160. ];
  6161. }
  6162. return (
  6163. <Table
  6164. columns={columns}
  6165. scroll={{ x: "max-content", y: 0 }}
  6166. dataSource={data}
  6167. pagination={false}
  6168. />
  6169. );
  6170. } else {
  6171. columns = [];
  6172. return (
  6173. <p
  6174. style={{ fontWeight: "bold", color: "red", textAlign: "center" }}
  6175. >
  6176. {e.cSort == 6 ? "暂无派单" : "此项目暂未拆分"}
  6177. </p>
  6178. );
  6179. }
  6180. };
  6181. const expandedRowRenderVip = (e) => {
  6182. const data = e.splitList;
  6183. let columns = [];
  6184. if (data instanceof Array && data.length) {
  6185. if (e.cSort == 6) {
  6186. columns = [
  6187. {
  6188. title: "负责人",
  6189. dataIndex: "receiverName",
  6190. key: "receiverName",
  6191. width: 140,
  6192. },
  6193. {
  6194. title: "负责人电话",
  6195. dataIndex: "receiverMobile",
  6196. key: "receiverMobile",
  6197. align: "center",
  6198. width: 120,
  6199. },
  6200. {
  6201. title: "会员负责人",
  6202. dataIndex: "projectMemberName",
  6203. key: "projectMemberName",
  6204. width: 140,
  6205. align: "center",
  6206. },
  6207. {
  6208. title: "项目状态",
  6209. dataIndex: "projectStatus",
  6210. key: "projectStatus",
  6211. align: "center",
  6212. width: 100,
  6213. render: (text) => {
  6214. return getProjectName(text);
  6215. },
  6216. },
  6217. {
  6218. title: "本次派单",
  6219. dataIndex: "serviceYear",
  6220. key: "serviceYear",
  6221. width: 80,
  6222. align: "center"
  6223. },
  6224. {
  6225. title: "项目说明",
  6226. dataIndex: "taskComment",
  6227. key: "taskComment",
  6228. render: (text, record) => {
  6229. let textStr = text;
  6230. let textArr = [];
  6231. if (record.htMember === 1) {
  6232. textArr.push("高新会员");
  6233. }
  6234. if (record.additionalDeduction === 1) {
  6235. textArr.push("加计扣除");
  6236. }
  6237. if (record.rdAwardsubsidy === 1) {
  6238. textArr.push("研发奖补");
  6239. }
  6240. if (textArr.length) {
  6241. textStr = `${textArr.join("&")} ${!!text ? `(${text})` : ''}`
  6242. }
  6243. return (
  6244. <Tooltip title={textStr}>
  6245. <div
  6246. style={{
  6247. overflow: "hidden",
  6248. whiteSpace: "nowrap",
  6249. textOverflow: "ellipsis",
  6250. }}
  6251. >{textStr}</div>
  6252. </Tooltip>
  6253. )
  6254. },
  6255. },
  6256. {
  6257. title: "操作",
  6258. dataIndex: "op",
  6259. key: "op",
  6260. width: 110,
  6261. render: (text, record) => {
  6262. return (
  6263. <div>
  6264. {
  6265. record.scoreStatus == 1 &&
  6266. <Button
  6267. type="primary"
  6268. onClick={(e) => {
  6269. e.stopPropagation();
  6270. this.setState({
  6271. tid: record.id,
  6272. score: "add",
  6273. cSort: 6,
  6274. cname: record.taskName,
  6275. tname: record.receiverName,
  6276. })
  6277. }}
  6278. >
  6279. 待评分
  6280. </Button>
  6281. }
  6282. {
  6283. !!record.scoreNumber &&
  6284. <Button
  6285. type="primary"
  6286. onClick={(e) => {
  6287. e.stopPropagation();
  6288. this.setState({
  6289. cSort: 6,
  6290. cname: record.taskName,
  6291. tname: record.receiverName,
  6292. })
  6293. this.queryByTid(record.id)
  6294. }}
  6295. >
  6296. 已评{record.scoreNumber}分
  6297. </Button>
  6298. }
  6299. </div >
  6300. )
  6301. },
  6302. }
  6303. ];
  6304. } else {
  6305. columns = [
  6306. {
  6307. title: "子项目名称",
  6308. dataIndex: "taskName",
  6309. key: "taskName"
  6310. },
  6311. {
  6312. title: "子项目数量",
  6313. dataIndex: "commodityQuantity",
  6314. key: "commodityQuantity"
  6315. },
  6316. {
  6317. title: "拆分操作人",
  6318. dataIndex: "splitAname",
  6319. key: "splitAname"
  6320. },
  6321. {
  6322. title: "项目负责人",
  6323. dataIndex: "receiverName",
  6324. key: "receiverName"
  6325. },
  6326. {
  6327. title: "拆分时间",
  6328. dataIndex: "splitTimes",
  6329. key: "splitTimes"
  6330. }
  6331. ]
  6332. }
  6333. return (
  6334. <Table
  6335. columns={columns}
  6336. dataSource={data}
  6337. pagination={false}
  6338. />
  6339. );
  6340. } else {
  6341. columns = [];
  6342. return (
  6343. <p
  6344. style={{ fontWeight: "bold", color: "red", textAlign: "center" }}
  6345. >
  6346. {e.cSort == 6 ? "暂无派单" : "此项目暂未拆分"}
  6347. </p>
  6348. );
  6349. }
  6350. };
  6351. const FormItem = Form.Item;
  6352. const { TabPane } = Tabs;
  6353. const { TextArea } = Input;
  6354. const radioStyle = {
  6355. display: 'block',
  6356. height: '30px',
  6357. lineHeight: '30px',
  6358. };
  6359. const formItemLayout = {
  6360. labelCol: { span: 10 },
  6361. wrapperCol: { span: 14 },
  6362. };
  6363. const contractData = this.state.contractData;
  6364. const formItemList = [
  6365. {
  6366. label: "企业联系人",
  6367. content: <span>{this.state.contacts}</span>,
  6368. },
  6369. {
  6370. label: "客户名称",
  6371. content: (
  6372. <span>
  6373. {this.state.userName}
  6374. <EnterpriseNameChange
  6375. type="journal"
  6376. style={{ marginLeft: 10 }}
  6377. enterpriseId={this.state.orderUid}
  6378. />
  6379. </span>
  6380. ),
  6381. },
  6382. {
  6383. label: "联系人电话",
  6384. content: <span>{this.state.contactMobile}</span>,
  6385. },
  6386. {
  6387. label: "企业法人",
  6388. content: <span>{this.state.legalPerson}</span>,
  6389. },
  6390. {
  6391. label: "法人电话",
  6392. content: <span>{this.state.legalPersonTel}</span>,
  6393. },
  6394. // {
  6395. // label: "签单金额(万元)",
  6396. // content: <span>{this.state.totalAmount}</span>
  6397. // },
  6398. // {
  6399. // label: "首付金额(万元)",
  6400. // content: <span>{this.state.firstAmount}</span>
  6401. // },
  6402. // {
  6403. // label: "特批立项",
  6404. // content: <span>{getApprovedState(this.state.approval)}</span>
  6405. // },
  6406. // {
  6407. // label: "合同签订时间",
  6408. // content: <span>{this.state.signDate}</span>
  6409. // },
  6410. // {
  6411. // label: "订单部门",
  6412. // content: <span>{this.state.depName}</span>
  6413. // }
  6414. ];
  6415. let dataSources = this.state.customerArr || [];
  6416. let cdataSources = this.state.channelArr || [];
  6417. const cuiDataList = this.state.contactList || [];
  6418. let departmentArr = this.state.departmentArr || [];
  6419. let options = this.state.states
  6420. ? dataSources.map((group) => (
  6421. <Select.Option key={group.id} value={group.name}>
  6422. {group.name}
  6423. </Select.Option>
  6424. ))
  6425. : dataSources.map((group, index) => (
  6426. <Select.Option key={index} value={group.bname}>
  6427. {group.bname}
  6428. </Select.Option>
  6429. ));
  6430. let channeloptions = cdataSources.map((group) => (
  6431. <Select.Option key={group.id} value={group.name}>
  6432. {group.name}
  6433. </Select.Option>
  6434. ));
  6435. let dataSourceView = this.state.dataSourceView ? this.state.dataSourceView.map((group, index) => (
  6436. <Select.Option key={index} value={group.aid}>
  6437. {group.name}
  6438. </Select.Option>
  6439. )) : '';
  6440. let children = vipYear.map(its => (
  6441. <Option key={its}>{its}</Option>
  6442. ));
  6443. let approvalOptions = [
  6444. { label: '无前期款', value: 1 },
  6445. { label: '前期款已收到,合同未收到,且在派单前仍不能收到的,预估合同收回时间', value: 2 },
  6446. { label: '合同条款存在明显风险的,如涉及到违约金、赔偿或退款的', value: 3 },
  6447. { label: '所有新项目的首单合同', value: 4 },
  6448. { label: '所有通过率低于80%的科技项目合同', value: 5 },
  6449. { label: '合同签订金额每年低于3万的会员合同', value: 6 },
  6450. { label: '认证类项目的前期款低于5000元', value: 7 },
  6451. { label: '合同已收到,前期款延期支付,预估前期款收款时间', value: 8 },
  6452. { label: '合同与前期款均未收到,且在派单前仍不能收到的,预估收回时间', value: 9 },
  6453. { label: '收款与满意度关联', value: 11 },
  6454. { label: '非常规合同', value: 10 },
  6455. {
  6456. label: <span>
  6457. <span>其他&nbsp;&nbsp;</span>
  6458. <Input
  6459. type="text"
  6460. style={{ width: 150, borderStyle: "none none solid none" }}
  6461. value={this.state.typeExplain}
  6462. // disabled={this.state.approvaType.indexOf(0) === -1 ? true : false}
  6463. placeholder=""
  6464. onChange={e => {
  6465. this.setState({
  6466. typeExplain: e.target.value
  6467. })
  6468. }}
  6469. />
  6470. </span>
  6471. , value: 0
  6472. },
  6473. ];
  6474. let { closable } = this.state;
  6475. let assistList = this.assistList;
  6476. const { addPop = "" } = this.props
  6477. return (
  6478. <div>
  6479. {this.state.resVisible ? (
  6480. <ResolutionDetail
  6481. cancel={this.resCancel}
  6482. detail={this.state.resRecord}
  6483. visible={this.state.resVisible}
  6484. id={this.state.resRecord.orderNo}
  6485. />
  6486. ) : (
  6487. ""
  6488. )}
  6489. <Modal
  6490. maskClosable={false}
  6491. visible={this.props.addPop == "add" ? this.props.showDesc : this.state.visible}
  6492. onOk={this.handleOk}
  6493. onCancel={this.handleCancelclose}
  6494. width={!this.props.userDetaile ? "600px" : "1200px"}
  6495. title={!this.props.userDetaile ? "创建订单" : ""}
  6496. footer=""
  6497. className="admin-desc-content"
  6498. >
  6499. <Form
  6500. layout="horizontal"
  6501. onSubmit={this.handleSubmit}
  6502. style={{ paddingBottom: "40px" }}
  6503. >
  6504. <Spin spinning={this.state.loading}>
  6505. <div className="clearfix">
  6506. {
  6507. addPop == "add" &&
  6508. <div className="clearfix">
  6509. <div className="clearfix">
  6510. <FormItem {...formItemLayout} label="订单类型">
  6511. <Select
  6512. placeholder="请选择订单类型"
  6513. style={{ width: "200px" }}
  6514. value={this.state.orderType}
  6515. onChange={(e) => {
  6516. this.setState({ orderType: e });
  6517. }}
  6518. >
  6519. {orderTypes.map(function (item) {
  6520. return (
  6521. <Select.Option key={item.value}>
  6522. {item.key}
  6523. </Select.Option>
  6524. );
  6525. })}
  6526. </Select>
  6527. <span className="mandatory">*</span>
  6528. </FormItem>
  6529. </div>
  6530. <FormItem {...formItemLayout} label="客户所属类型">
  6531. <Select
  6532. placeholder="请选择客户所属类型"
  6533. style={{ width: "200px" }}
  6534. value={this.state.userType}
  6535. onChange={(e) => {
  6536. this.setState({
  6537. userType: e,
  6538. customerArr: [],
  6539. autoId: "",
  6540. customerName: "",
  6541. selectSales: undefined
  6542. });
  6543. }}
  6544. >
  6545. {customerType.map(function (item) {
  6546. return (
  6547. <Select.Option key={item.value}>
  6548. {item.key}
  6549. </Select.Option>
  6550. );
  6551. })}
  6552. </Select>
  6553. </FormItem>
  6554. <div className="clearfix">
  6555. <FormItem {...formItemLayout} label="客户名称">
  6556. <AutoComplete
  6557. className="certain-category-search"
  6558. dropdownClassName="certain-category-search-dropdown"
  6559. dropdownMatchSelectWidth={false}
  6560. dropdownStyle={{ width: 200 }}
  6561. size="large"
  6562. style={{ width: "200px" }}
  6563. dataSource={options}
  6564. placeholder="输入名称"
  6565. value={this.state.customerName}
  6566. onChange={this.customerChange}
  6567. filterOption={true}
  6568. onSelect={this.selectAutoCUT}
  6569. >
  6570. <Input />
  6571. </AutoComplete>
  6572. <span className="mandatory">*</span>
  6573. </FormItem>
  6574. </div>
  6575. <FormItem {...formItemLayout} label="销售类型">
  6576. <Select
  6577. placeholder="请选择销售类型"
  6578. style={{ width: "200px" }}
  6579. value={this.state.selectSales}
  6580. onChange={(e) => {
  6581. this.setState({
  6582. selectSales: e,
  6583. });
  6584. }}
  6585. >
  6586. {(this.state.userType == "0"
  6587. ? ssalesType : this.state.userType == "1"
  6588. ? qsalesType : this.state.userType == "2"
  6589. ? wsalesType : this.state.userType == "3"
  6590. ? qsalesType : []).map(function (item) {
  6591. return (
  6592. <Select.Option key={item.value} disabled={item.value == "5"}>
  6593. {item.key}
  6594. </Select.Option>
  6595. );
  6596. })}
  6597. </Select>
  6598. <span className="mandatory">*</span>
  6599. </FormItem>
  6600. {
  6601. (this.state.selectSales == "4" || this.state.selectSales == "5") &&
  6602. <FormItem {...formItemLayout} label="描述">
  6603. <TextArea
  6604. placeholder="请填写描述"
  6605. style={{ width: 300, height: 80 }}
  6606. onChange={(e) => {
  6607. this.setState({
  6608. other: e.target.value
  6609. })
  6610. }}
  6611. />
  6612. </FormItem>
  6613. }
  6614. {
  6615. this.state.selectSales == "3" &&
  6616. <div className="clearfix">
  6617. <FormItem {...formItemLayout} label="渠道名称">
  6618. <AutoComplete
  6619. className="certain-category-search"
  6620. dropdownClassName="certain-category-search-dropdown"
  6621. dropdownMatchSelectWidth={false}
  6622. dropdownStyle={{ width: 200 }}
  6623. size="large"
  6624. style={{ width: "200px" }}
  6625. dataSource={channeloptions}
  6626. placeholder="请输入渠道关键字"
  6627. value={this.state.channelName}
  6628. onChange={this.channelChange}
  6629. filterOption={true}
  6630. onSelect={this.goSelect}
  6631. >
  6632. <Input />
  6633. </AutoComplete>
  6634. <span className="mandatory">*</span>
  6635. </FormItem>
  6636. </div>
  6637. }
  6638. <div className="addSave" style={{ marginTop: "30px" }}>
  6639. <Button
  6640. className="cancel"
  6641. type="primary"
  6642. // onClick={this.handleCancel}
  6643. style={{ marginLeft: "220px" }}
  6644. htmlType="submit"
  6645. >
  6646. 开单
  6647. </Button>
  6648. <Button
  6649. className="cancel"
  6650. type="ghost"
  6651. onClick={this.handleCancelclose}
  6652. style={{ marginLeft: "50px" }}
  6653. >
  6654. 取消
  6655. </Button>
  6656. </div>
  6657. </div>
  6658. }
  6659. {
  6660. addPop == "edit" &&
  6661. <Tabs
  6662. onChange={this.callback}
  6663. activeKey={this.state.activeKey}
  6664. tabBarExtraContent={
  6665. <div
  6666. style={{ fontWeight: "bold", paddingRight: "15px" }}
  6667. >
  6668. <OrderItemStatus deleteSign={this.state.deleteSign} />
  6669. </div>
  6670. }
  6671. >
  6672. <TabPane tab={"最新订单"} key="1">
  6673. {
  6674. this.state.activeKey == "1" &&
  6675. <div className="clearfix">
  6676. <div className="clearfix">
  6677. <FormItem
  6678. className="half-item"
  6679. {...formItemLayout}
  6680. label="合同编号"
  6681. >
  6682. {<span>{this.state.contractNo}</span>}
  6683. </FormItem>
  6684. <FormItem
  6685. className="half-item"
  6686. {...formItemLayout}
  6687. label="订单编号"
  6688. >
  6689. <span>{this.state.orderNo}</span>
  6690. </FormItem>
  6691. <FormItem
  6692. className="half-item"
  6693. {...formItemLayout}
  6694. label="流程状态"
  6695. >
  6696. <span>
  6697. {getProcessStatus(this.state.processStatus, this.state.examineName, this.state.approval)}
  6698. </span>
  6699. <FlowChart
  6700. orderNo={this.state.orderNo}
  6701. />
  6702. </FormItem>
  6703. <FormItem
  6704. className="half-item"
  6705. {...formItemLayout}
  6706. label="销售类型"
  6707. >
  6708. <span>
  6709. {(["私有客户-", "签单客户-"][this.state.updatas.userType] || " ") +
  6710. (salesList[this.state.updatas.salesType] || "")}
  6711. </span>
  6712. {
  6713. this.state.processStatus === 0 &&
  6714. <UpdateSales
  6715. orderNo={this.state.orderNo}
  6716. updatas={this.state.updatas}
  6717. onRefresh={
  6718. e => {
  6719. let ups = this.state.updatas
  6720. ups.salesType = e.salesType
  6721. if (e.salesType == "3") {
  6722. ups.channelId = e.channelId
  6723. ups.other = e.other
  6724. } else if (e.salesType == "4" || e.salesType == "5") {
  6725. ups.other = e.other
  6726. }
  6727. this.setState({
  6728. updatas: ups,
  6729. userType: ups.userType
  6730. })
  6731. }
  6732. // this.loaduser.bind(this, {orderNo: this.state.orderNo })
  6733. }
  6734. />
  6735. }
  6736. </FormItem>
  6737. <FormItem
  6738. className="half-item"
  6739. {...formItemLayout}
  6740. label="结算状态"
  6741. >
  6742. <span>
  6743. {getLiquidationStatus(
  6744. this.state.liquidationStatus
  6745. )}
  6746. </span>
  6747. </FormItem>
  6748. {this.state.processStatus === 0 ? (
  6749. <div className="clearfix">
  6750. <FormItem
  6751. labelCol={{ span: 5 }}
  6752. wrapperCol={{ span: 19 }}
  6753. label="特批立项"
  6754. >
  6755. <Select
  6756. placeholder="请选择客户所属类型"
  6757. style={{ width: "240px" }}
  6758. value={["非特批", "特批", "特批通过", "特批驳回", "特批", "特批通过", "特批驳回"][Number(this.state.approval)]
  6759. }
  6760. onChange={(e) => {
  6761. this.setState({ approval: e });
  6762. }}
  6763. >
  6764. <Select.Option key={0}>非特批</Select.Option>
  6765. <Select.Option key={1}>特批</Select.Option>
  6766. </Select>
  6767. {
  6768. this.state.approval == 1 &&
  6769. <div>
  6770. <CheckboxGroup
  6771. options={approvalOptions}
  6772. value={this.state.approvaType}
  6773. onChange={e => {
  6774. this.setState({
  6775. approvaType: e
  6776. })
  6777. }}
  6778. />
  6779. </div>
  6780. }
  6781. </FormItem>
  6782. { this.state.approval > 0 && <div className="clearfix">
  6783. <FormItem
  6784. labelCol={{ span: 5 }}
  6785. wrapperCol={{ span: 19 }}
  6786. label={
  6787. <span className="mandatory" style={{fontSize: '12px'}}>
  6788. 提示
  6789. </span>
  6790. }
  6791. >
  6792. <ApproveTypeTooltip />
  6793. </FormItem>
  6794. </div>
  6795. }
  6796. <FormItem
  6797. className="half-item"
  6798. {...formItemLayout}
  6799. label={
  6800. <span>
  6801. <strong style={{ color: "#f00" }}>*</strong>
  6802. 合同签订时间
  6803. </span>
  6804. }
  6805. >
  6806. <DatePicker
  6807. className="signDateRef"
  6808. style={{
  6809. marginTop: "2px",
  6810. // width: "240px",
  6811. height: "27px",
  6812. }}
  6813. showTime
  6814. format="YYYY-MM-DD"
  6815. onOk={() => { }}
  6816. value={
  6817. this.state.signDate
  6818. ? moment(this.state.signDate)
  6819. : null
  6820. }
  6821. onChange={(data, dataString) => {
  6822. this.setState({ signDate: dataString });
  6823. }}
  6824. />
  6825. </FormItem>
  6826. <div className="clearfix">
  6827. <FormItem
  6828. className="half-item"
  6829. {...formItemLayout}
  6830. label="订单部门"
  6831. >
  6832. <Select
  6833. placeholder="请选择订单部门"
  6834. style={{ width: 240 }}
  6835. value={this.state.organizationSearch}
  6836. onChange={(e) => {
  6837. this.setState({ organizationSearch: e });
  6838. }}
  6839. >
  6840. {departmentArr.map(function (item) {
  6841. return (
  6842. <Select.Option key={item.id}>
  6843. {item.name}
  6844. </Select.Option>
  6845. );
  6846. })}
  6847. </Select>
  6848. </FormItem>
  6849. </div>
  6850. </div>
  6851. ) : (
  6852. <div className="clearfix">
  6853. <FormItem
  6854. labelCol={{ span: 5 }}
  6855. wrapperCol={{ span: 19 }}
  6856. label="特批立项"
  6857. >
  6858. <span>
  6859. {/* {["非特批", "特批待审核", "特批通过", "特批驳回"][this.state.approval]} */}
  6860. {getApprovedState(this.state.approval)}
  6861. {getApprovedType(this.state.approvaType, this.state.typeExplain, 1)}
  6862. </span>
  6863. </FormItem>
  6864. { this.state.approval > 0 && <div className="clearfix">
  6865. <FormItem
  6866. labelCol={{ span: 5 }}
  6867. wrapperCol={{ span: 19 }}
  6868. label={
  6869. <span className="mandatory" style={{fontSize: '12px'}}>
  6870. 提示
  6871. </span>
  6872. }
  6873. >
  6874. <ApproveTypeTooltip />
  6875. </FormItem>
  6876. </div>
  6877. }
  6878. <FormItem
  6879. className="half-item"
  6880. {...formItemLayout}
  6881. label="合同签订时间"
  6882. >
  6883. <span>{this.state.signDate}</span>
  6884. </FormItem>
  6885. <FormItem
  6886. className="half-item"
  6887. {...formItemLayout}
  6888. label="订单部门"
  6889. >
  6890. <span>{this.state.depName}</span>
  6891. </FormItem>
  6892. <FormItem
  6893. className="half-item"
  6894. {...formItemLayout}
  6895. label="是否外包"
  6896. >
  6897. <span>
  6898. {this.state.outsource == 0 ? "否" : "是"}
  6899. </span>
  6900. </FormItem>
  6901. </div>
  6902. )}
  6903. </div>
  6904. <h3
  6905. style={{
  6906. marginLeft: 10,
  6907. fontWeight: 800,
  6908. marginBottom: 10,
  6909. }}
  6910. >
  6911. 收款项目
  6912. </h3>
  6913. {this.state.processStatus === 0 ? (
  6914. <div className="clearfix">
  6915. <FormItem
  6916. className="half-item"
  6917. {...formItemLayout}
  6918. label="签单金额(万元)"
  6919. >
  6920. <Input
  6921. placeholder="签单金额"
  6922. ref="totalAmountRef"
  6923. value={this.state.totalAmount}
  6924. onChange={(e) => {
  6925. this.setState({
  6926. totalAmount: e.target.value,
  6927. });
  6928. }}
  6929. style={{ width: "240px" }}
  6930. />
  6931. </FormItem>
  6932. <FormItem
  6933. className="half-item"
  6934. {...formItemLayout}
  6935. label="首付金额(万元)"
  6936. >
  6937. <Input
  6938. placeholder="请输入实签首款金额"
  6939. ref="firstAmountRef"
  6940. value={this.state.firstAmount}
  6941. onChange={(e) => {
  6942. this.setState({
  6943. firstAmount: e.target.value,
  6944. });
  6945. }}
  6946. style={{ width: "240px" }}
  6947. />
  6948. </FormItem>
  6949. <FormItem
  6950. className="half-item"
  6951. {...formItemLayout}
  6952. label="已收款项"
  6953. >
  6954. <span>
  6955. {this.state.settlementAmount + "万元"}
  6956. </span>
  6957. {/* {this.state.settlementAmount ? (
  6958. <Button
  6959. type="primary"
  6960. onClick={this.tuikuan}
  6961. style={{
  6962. float: "right",
  6963. marginRight: "50px",
  6964. marginBottom: "15px"
  6965. }}
  6966. >
  6967. 退单
  6968. </Button>
  6969. ) : (
  6970. ""
  6971. )} */}
  6972. </FormItem>
  6973. </div>
  6974. ) : (
  6975. <div className="clearfix">
  6976. <FormItem
  6977. className="half-item"
  6978. {...formItemLayout}
  6979. label="签单金额(万元)"
  6980. >
  6981. <span>{this.state.totalAmount}</span>
  6982. </FormItem>
  6983. <FormItem
  6984. className="half-item"
  6985. {...formItemLayout}
  6986. label="首付金额(万元)"
  6987. >
  6988. <span>{this.state.firstAmount}</span>
  6989. </FormItem>
  6990. <FormItem
  6991. className="half-item"
  6992. {...formItemLayout}
  6993. label="已收款项"
  6994. >
  6995. <span>
  6996. {this.state.settlementAmount + "万元"}
  6997. </span>
  6998. {/* {this.state.settlementAmount ? (
  6999. <Button
  7000. type="primary"
  7001. onClick={this.tuikuan}
  7002. style={{
  7003. float: "right",
  7004. marginRight: "50px",
  7005. marginBottom: "15px"
  7006. }}
  7007. >
  7008. 退单
  7009. </Button>
  7010. ) : (
  7011. ""
  7012. )} */}
  7013. </FormItem>
  7014. </div>
  7015. )}
  7016. <h3
  7017. style={{
  7018. marginLeft: 10,
  7019. fontWeight: 800,
  7020. marginBottom: 10,
  7021. }}
  7022. >
  7023. 联系信息
  7024. </h3>
  7025. {this.state.processStatus == 0 ? (
  7026. <div className="clearfix">
  7027. <div className="clearfix">
  7028. <FormItem
  7029. className="half-item"
  7030. style={{ width: "100%" }}
  7031. labelCol={{ span: 5 }}
  7032. wrapperCol={{ span: 19 }}
  7033. label="客户名称"
  7034. >
  7035. <span>{this.state.userName}</span>
  7036. <EnterpriseNameChange
  7037. type="journal"
  7038. style={{ marginLeft: 10 }}
  7039. enterpriseId={this.state.orderUid}
  7040. />
  7041. </FormItem>
  7042. </div>
  7043. <FormItem
  7044. className="half-item"
  7045. {...formItemLayout}
  7046. label={
  7047. <span>
  7048. <strong style={{ color: "#f00" }}>*</strong>
  7049. 企业联系人
  7050. </span>
  7051. }
  7052. >
  7053. <Input
  7054. placeholder="请输入联系人"
  7055. ref="signTotalAmount"
  7056. value={this.state.contacts}
  7057. onChange={(e) => {
  7058. this.setState({ contacts: e.target.value });
  7059. }}
  7060. style={{ width: "240px" }}
  7061. />
  7062. </FormItem>
  7063. <FormItem
  7064. className="half-item"
  7065. {...formItemLayout}
  7066. label={
  7067. <span>
  7068. <strong style={{ color: "#f00" }}>*</strong>
  7069. 联系人电话
  7070. </span>
  7071. }
  7072. >
  7073. <Input
  7074. placeholder="请输入联系人电话"
  7075. ref="signTotalAmount"
  7076. value={this.state.contactMobile}
  7077. onChange={(e) => {
  7078. this.setState({
  7079. contactMobile: e.target.value,
  7080. });
  7081. }}
  7082. style={{ width: "240px" }}
  7083. />
  7084. </FormItem>
  7085. <FormItem
  7086. className="half-item"
  7087. {...formItemLayout}
  7088. label="企业法人"
  7089. >
  7090. <Input
  7091. placeholder="请输入法人"
  7092. ref="signTotalAmount"
  7093. value={this.state.legalPerson}
  7094. onChange={(e) => {
  7095. this.setState({
  7096. legalPerson: e.target.value,
  7097. });
  7098. }}
  7099. style={{ width: "240px" }}
  7100. />
  7101. </FormItem>
  7102. <FormItem
  7103. className="half-item"
  7104. {...formItemLayout}
  7105. label="法人电话"
  7106. >
  7107. <Input
  7108. placeholder="请输入法人电话"
  7109. ref="signTotalAmount"
  7110. value={this.state.legalPersonTel}
  7111. onChange={(e) => {
  7112. this.setState({
  7113. legalPersonTel: e.target.value,
  7114. });
  7115. }}
  7116. style={{ width: "240px" }}
  7117. />
  7118. </FormItem>
  7119. </div>
  7120. ) : (
  7121. <div className="clearfix">
  7122. {formItemList.map((data, index) => {
  7123. return (
  7124. <FormItem
  7125. className="half-item"
  7126. {...formItemLayout}
  7127. key={index}
  7128. label={data.label}
  7129. >
  7130. {data.content}
  7131. </FormItem>
  7132. );
  7133. })}
  7134. </div>
  7135. )}
  7136. <div className="clearfix">
  7137. {this.state.processStatus == 0 ? (
  7138. <div>
  7139. <FormItem
  7140. labelCol={{ span: 5 }}
  7141. wrapperCol={{ span: 19 }}
  7142. label={
  7143. <span>
  7144. <strong style={{ color: "#f00" }}>
  7145. *
  7146. </strong>
  7147. 合同扫描件
  7148. </span>
  7149. }
  7150. >
  7151. <PicturesWall
  7152. domId={"addService1"}
  7153. fileList={this.getOrgCodeUrl}
  7154. pictureUrl={this.state.orgCodeUrl}
  7155. url="/api/admin/order/uploadOrderImg"
  7156. orderNo={this.state.orderNo}
  7157. sign="contract"
  7158. deleteApi="/api/admin/order/deleteOrderImg"
  7159. />
  7160. <p>图片建议:要清晰。</p>
  7161. <Button
  7162. style={{
  7163. float: "right",
  7164. marginRight: "140px",
  7165. marginTop: "20px",
  7166. }}
  7167. onClick={this.getOrderLog}
  7168. >
  7169. 查看订单日志
  7170. </Button>
  7171. </FormItem>
  7172. {/* 违约&保密说明 */}
  7173. <ConfidenBreach
  7174. orderNo={this.state.orderNo}
  7175. data={this.state.confidenBreachData}
  7176. onChange={(value, updateKey) => {
  7177. const { confidenBreachData } = this.state;
  7178. confidenBreachData[updateKey] = value;
  7179. this.setState({ confidenBreachData })
  7180. }}
  7181. />
  7182. <Gxczx
  7183. isShow={this.state.isShow}
  7184. isCreat={true}
  7185. knowledgeServices={this.state.knowledgeServices}
  7186. auditServices={this.state.auditServices}
  7187. addDeductionServices={this.state.addDeductionServices}
  7188. knowledgeOther={this.state.knowledgeOther}
  7189. auditOther={this.state.auditOther}
  7190. addDeductionOther={this.state.addDeductionOther}
  7191. selknowledge={e => { this.setState({ knowledgeServices: e.knowledgeServices, knowledgeOther: e.knowledgeOther }) }}
  7192. selaudit={e => { this.setState({ auditServices: e.auditServices, auditOther: e.auditOther }) }}
  7193. seladdDeduction={e => { this.setState({ addDeductionServices: e.addDeductionServices, addDeductionOther: e.addDeductionOther }) }}
  7194. onSwitch={e => { this.setState({ isShow: e }) }}
  7195. />
  7196. <FormItem
  7197. labelCol={{ span: 5 }}
  7198. wrapperCol={{ span: 19 }}
  7199. label={<span>补充协议</span>}
  7200. >
  7201. <PicturesWall
  7202. domId={"addService2"}
  7203. fileList={this.getReplenishUrl}
  7204. pictureUrl={this.state.replenishUrl}
  7205. url="/api/admin/order/uploadOrderImg"
  7206. orderNo={this.state.orderNo}
  7207. sign="supplement"
  7208. deleteApi="/api/admin/order/deleteOrderImg"
  7209. />
  7210. <p>图片建议:要清晰。</p>
  7211. </FormItem>
  7212. </div>
  7213. ) : (
  7214. <div>
  7215. <FormItem
  7216. labelCol={{ span: 5 }}
  7217. wrapperCol={{ span: 19 }}
  7218. label="合同扫描件"
  7219. >
  7220. <div
  7221. style={{
  7222. paddingTop: "10px",
  7223. paddingBottom: "10px",
  7224. }}
  7225. >
  7226. {this.state.orgCodeUrl &&
  7227. this.state.visible &&
  7228. this.state.activeKey === "1" ? (
  7229. <ImgList
  7230. domId={"addService3"}
  7231. fileList={this.state.orgCodeUrl}
  7232. ItemWidth={"96px"}
  7233. />
  7234. ) : (
  7235. <div />
  7236. )}
  7237. </div>
  7238. <Button
  7239. style={{
  7240. float: "right",
  7241. marginRight: "140px",
  7242. marginTop: "20px",
  7243. }}
  7244. onClick={this.getOrderLog}
  7245. >
  7246. 查看订单日志
  7247. </Button>
  7248. </FormItem>
  7249. {/* 高新纯咨询合同说明详情 */}
  7250. <Gxczx
  7251. knowledgeServices={this.state.knowledgeServices}
  7252. auditServices={this.state.auditServices}
  7253. addDeductionServices={this.state.addDeductionServices}
  7254. knowledgeOther={this.state.knowledgeOther}
  7255. auditOther={this.state.auditOther}
  7256. addDeductionOther={this.state.addDeductionOther}
  7257. />
  7258. <FormItem
  7259. labelCol={{ span: 5 }}
  7260. wrapperCol={{ span: 19 }}
  7261. label="补充协议"
  7262. >
  7263. <div
  7264. style={{
  7265. paddingTop: "10px",
  7266. paddingBottom: "10px",
  7267. }}
  7268. >
  7269. {this.state.visible &&
  7270. this.state.activeKey === "1" &&
  7271. this.state.replenishUrl ? (
  7272. <ImgList
  7273. domId={"addService4"}
  7274. fileList={this.state.replenishUrl}
  7275. ItemWidth={"96px"}
  7276. />
  7277. ) : (
  7278. <div />
  7279. )}
  7280. </div>
  7281. </FormItem>
  7282. </div>
  7283. )}
  7284. </div>
  7285. {/* 服务内容 */}
  7286. <div class="clearfix">
  7287. <FormItem
  7288. labelCol={{ span: 5 }}
  7289. wrapperCol={{ span: 19 }}
  7290. label={
  7291. <span>
  7292. <strong style={{ color: "#f00" }}>*</strong>
  7293. 服务内容
  7294. </span>
  7295. }
  7296. >
  7297. <div>
  7298. {this.state.processStatus == 0 ?
  7299. <div>
  7300. <PicturesWall
  7301. domId={"addServiceContent"}
  7302. fileList={this.getContentUrl}
  7303. pictureUrl={this.state.contentUrl}
  7304. url="/api/admin/order/uploadOrderImg"
  7305. orderNo={this.state.orderNo}
  7306. sign="content"
  7307. deleteApi="/api/admin/order/deleteOrderImg"
  7308. />
  7309. </div> :
  7310. this.state.contentUrl.length > 0 ?
  7311. <div>
  7312. <ImgList
  7313. domId={"addService13"}
  7314. fileList={this.state.contentUrl}
  7315. ItemWidth={"96px"}
  7316. />
  7317. </div> : "暂无附件!"}
  7318. <p> <span style={{ color: "red", display: "inline-block" }}>(注:必需上传服务内容、服务年限、时间节点、乙方权利与责任、违约条款、保密条款!)</span>图片建议:要清晰。</p>
  7319. </div>
  7320. </FormItem>
  7321. </div>
  7322. {/* 知识产权情况 */}
  7323. {this.state.processStatus == 0 ?
  7324. <Property
  7325. isCreat={true}
  7326. isProperty={this.state.isProperty}
  7327. setProperty={e => { this.setState({ isProperty: e, patentStatus: e == 1 && 0 }) }}
  7328. patentStatus={this.state.patentStatus}
  7329. setPatentS={e => { this.setState({ patentStatus: e }) }}
  7330. /> :
  7331. <Property
  7332. patentStatus={this.state.patentStatus}
  7333. />}
  7334. <div className="clearfix">
  7335. {this.state.processStatus == 0 ? (
  7336. <div className="clearfix">
  7337. <FormItem
  7338. labelCol={{ span: 5 }}
  7339. wrapperCol={{ span: 16 }}
  7340. label={
  7341. <span>
  7342. <strong style={{ color: "#f00" }}>*</strong>
  7343. 订单留言
  7344. </span>
  7345. }
  7346. >
  7347. <Input
  7348. ref="orderRemarksRef"
  7349. type="textarea"
  7350. placeholder="请输入订单留言"
  7351. rows={4}
  7352. value={this.state.orderRemarks}
  7353. onChange={(e) => {
  7354. this.setState({
  7355. orderRemarks: e.target.value,
  7356. });
  7357. }}
  7358. style={{ width: "95%" }}
  7359. />
  7360. <div className="mandatory">
  7361. 重要提示:请详细填写合同中包含的服务内容、服务年限、时间节点等
  7362. </div>
  7363. </FormItem>
  7364. </div>
  7365. ) : (
  7366. <div>
  7367. <FormItem
  7368. labelCol={{ span: 4 }}
  7369. wrapperCol={{ span: 16 }}
  7370. label="订单留言"
  7371. >
  7372. <p
  7373. style={{ width: 500, wordWrap: "break-word" }}
  7374. >
  7375. {this.state.orderRemarks}
  7376. </p>
  7377. </FormItem>
  7378. <ConfidenBreachView data={this.state.confidenBreachDtData} />
  7379. </div>
  7380. )}
  7381. </div>
  7382. <div className="clearfix">
  7383. <FormItem
  7384. className="half-item"
  7385. {...formItemLayout}
  7386. label="订单负责人"
  7387. >
  7388. <span>{this.state.salesmanName}</span>
  7389. </FormItem>
  7390. <FormItem
  7391. className="half-item"
  7392. {...formItemLayout}
  7393. label="订单负责人电话"
  7394. >
  7395. <span>{this.state.salesmanMobile}</span>
  7396. </FormItem>
  7397. </div>
  7398. <div className="clearfix">
  7399. <FormItem
  7400. className="half-item"
  7401. {...formItemLayout}
  7402. label="当前财务负责人"
  7403. >
  7404. <span>{this.state.nowFinance}</span>
  7405. </FormItem>
  7406. <FormItem
  7407. className="half-item"
  7408. {...formItemLayout}
  7409. label="当前财务负责人电话"
  7410. >
  7411. <span>{this.state.nowFinanceMobile}</span>
  7412. </FormItem>
  7413. </div>
  7414. <div className="clearfix">
  7415. <FormItem
  7416. className="half-item"
  7417. {...formItemLayout}
  7418. style={{ opacity: ".5" }}
  7419. label="原订单负责人"
  7420. >
  7421. <span>{this.state.oldSalesmanName}</span>
  7422. </FormItem>
  7423. <FormItem
  7424. className="half-item"
  7425. {...formItemLayout}
  7426. style={{ opacity: ".5" }}
  7427. label="原订单负责人电话"
  7428. >
  7429. <span>{this.state.oldSalesmanMobile}</span>
  7430. </FormItem>
  7431. </div>
  7432. <div className="clearfix">
  7433. <FormItem
  7434. className="half-item"
  7435. style={{ opacity: ".5" }}
  7436. {...formItemLayout}
  7437. label="实际财务操作人"
  7438. >
  7439. <span>{this.state.financeName}</span>
  7440. </FormItem>
  7441. <FormItem
  7442. className="half-item"
  7443. {...formItemLayout}
  7444. style={{ opacity: ".5" }}
  7445. label="实际财务操作人电话"
  7446. >
  7447. <span>{this.state.financeMobile}</span>
  7448. </FormItem>
  7449. </div>
  7450. {/* 新增协单人员 */}
  7451. <div>
  7452. <div style={{ marginLeft: "50px", display: 'flex' }}>
  7453. <div
  7454. style={{
  7455. minWidth: '66px',
  7456. maxWidth: '100px',
  7457. fontSize: "12px",
  7458. color: "red",
  7459. }}
  7460. >
  7461. 协单人员 :
  7462. </div>
  7463. <div>
  7464. {this.state.personnel.length > 0
  7465. ? this.state.personnel.map(function (value, key) {
  7466. return (
  7467. <Tag
  7468. style={{ marginBottom: '5px' }}
  7469. key={value.id}
  7470. closable={closable}
  7471. onClose={(e) => {
  7472. e.preventDefault();
  7473. confirm({
  7474. title: "确定删除此人员吗?",
  7475. // content: (
  7476. // <span style={{ color: "red" }}>
  7477. // 删除后会将该项目下的所有催款节点自动清除!!!
  7478. // </span>
  7479. // ),
  7480. onOk() {
  7481. $.ajax({
  7482. method: "post",
  7483. dataType: "json",
  7484. crossDomain: false,
  7485. url:
  7486. globalConfig.context +
  7487. "/api/admin/newOrder/deleteAssist",
  7488. data: {
  7489. id: value.id,
  7490. },
  7491. success: function (data) {
  7492. if (data.error.length) {
  7493. message.warning(
  7494. data.error[0].message
  7495. );
  7496. } else {
  7497. message.success("删除成功");
  7498. assistList();
  7499. }
  7500. }.bind(this),
  7501. }).always(
  7502. function () {
  7503. this.setState({
  7504. loading: false,
  7505. });
  7506. }.bind(this)
  7507. );
  7508. },
  7509. onCancel() { },
  7510. });
  7511. }}
  7512. >
  7513. {value.name}
  7514. </Tag>
  7515. );
  7516. })
  7517. : "无"}
  7518. </div>
  7519. </div>
  7520. <div
  7521. style={{
  7522. margin: "10px 0 0 50px",
  7523. display: this.state.disabledView,
  7524. }}
  7525. >
  7526. <Button
  7527. type="primary"
  7528. onClick={() => {
  7529. this.setState({
  7530. coorVisible: "block",
  7531. coor: "",
  7532. });
  7533. }}
  7534. >
  7535. 添加协单人员
  7536. </Button>
  7537. {/* 提示 */}
  7538. <div style={{ color: "red" }}>
  7539. 注:协单人员为技术人员,陪同营销人员进行订单协作等相关工作,填写后将统计至相关的奖金、提成等
  7540. </div>
  7541. </div>
  7542. {/*添加协单人员 */}
  7543. <div
  7544. style={{
  7545. margin: "10px 0 0 50px",
  7546. display: this.state.coorVisible,
  7547. }}
  7548. >
  7549. <Form
  7550. onSubmit={this.handleSubmit}
  7551. ref={this.formRef}
  7552. >
  7553. <Form.Item
  7554. {...formItemLayout}
  7555. label=""
  7556. name="coor"
  7557. hasFeedback
  7558. >
  7559. <AutoComplete
  7560. // autocomplete="off"
  7561. allowClear
  7562. dataSource={dataSourceView}
  7563. style={{ width: 200 }}
  7564. onSelect={this.onSelectView}
  7565. onSearch={this.handleSearch}
  7566. placeholder="请输入名称"
  7567. />
  7568. </Form.Item>
  7569. </Form>
  7570. <div style={{ marginLeft: "10px" }}>
  7571. <Button
  7572. type="primary"
  7573. style={{ marginRight: "54px" }}
  7574. onClick={this.submitOrder}
  7575. loading={this.state.loading}
  7576. >
  7577. 保存
  7578. </Button>
  7579. <Button
  7580. onClick={() => {
  7581. this.setState({
  7582. coorVisible: "none",
  7583. });
  7584. }}
  7585. >
  7586. 取消
  7587. </Button>
  7588. </div>
  7589. </div>
  7590. </div>
  7591. {/* 分界线 */}
  7592. <div
  7593. style={{
  7594. borderTop: "1px solid #333",
  7595. margin: "5px 0",
  7596. }}
  7597. ></div>
  7598. {/* 上门服务次数 */}
  7599. <div>
  7600. <div
  7601. style={{
  7602. display: "flex",
  7603. justifyContent: "space-between",
  7604. }}
  7605. >
  7606. <div
  7607. style={{ marginLeft: "50px", fontSize: "20px" }}
  7608. >
  7609. 上门服务次数
  7610. </div>
  7611. <div>
  7612. <Button
  7613. type="primary"
  7614. style={{ marginBottom: 15 }}
  7615. onClick={() => {
  7616. this.publicByOrder();
  7617. this.setState({
  7618. modalRecord: true,
  7619. });
  7620. }}
  7621. >
  7622. 查看上门记录
  7623. </Button>
  7624. <Button
  7625. style={{ marginLeft: 5, display: this.state.disabledView }}
  7626. type="primary"
  7627. onClick={() => {
  7628. this.setState({
  7629. modalView: true,
  7630. dateView: '',
  7631. contentView: '',
  7632. remarksView: '',
  7633. contentViewLength: 0,
  7634. contentViewLength1: 0,
  7635. });
  7636. }}
  7637. >
  7638. 添加上门次数
  7639. </Button>
  7640. </div>
  7641. </div>
  7642. {/* 上门服务表格 */}
  7643. <div
  7644. className="patent-table"
  7645. style={{ marginBottom: 10 }}
  7646. >
  7647. <Spin spinning={this.state.loading}>
  7648. <Table
  7649. columns={this.state.columnsView}
  7650. scroll={{ x: "max-content", y: 0 }}
  7651. dataSource={this.state.dataView}
  7652. pagination={false}
  7653. // onRowClick={this.tableRowClick}
  7654. bordered
  7655. size="small"
  7656. />
  7657. </Spin>
  7658. </div>
  7659. {/* 查看上门记录 */}
  7660. <Modal
  7661. footer=""
  7662. title="技术人员上门详细记录"
  7663. visible={this.state.modalRecord}
  7664. width="1200px"
  7665. onCancel={() => {
  7666. this.setState({
  7667. modalRecord: false,
  7668. });
  7669. }}
  7670. >
  7671. <Spin spinning={this.state.loading}>
  7672. <Table
  7673. columns={this.state.columnsRecord}
  7674. scroll={{ x: "max-content", y: 0 }}
  7675. dataSource={this.state.publicView}
  7676. pagination={false}
  7677. // onRowClick={this.tableRowClick}
  7678. bordered
  7679. size="small"
  7680. />
  7681. </Spin>
  7682. </Modal>
  7683. {/* 添加上门次数模态框 */}
  7684. <Modal
  7685. footer=""
  7686. title="新增上门次数"
  7687. visible={this.state.modalView}
  7688. key={this.state.viewKey}
  7689. onCancel={() => {
  7690. this.setState({
  7691. modalView: false,
  7692. viewKey: this.state.viewKey + 1,
  7693. });
  7694. }}
  7695. >
  7696. <Form
  7697. onSubmit={this.handleSubmit}
  7698. ref={this.formRef}
  7699. style={{ marginRight: "120px" }}
  7700. >
  7701. <Form.Item
  7702. {...formItemLayout}
  7703. label="上门时间"
  7704. name="date"
  7705. hasFeedback
  7706. >
  7707. <DatePicker
  7708. placeholder="预计技术员上门服务时间"
  7709. onChange={(date, dateString) => {
  7710. this.setState({
  7711. dateView: dateString,
  7712. });
  7713. }}
  7714. />
  7715. </Form.Item>
  7716. <Form.Item
  7717. {...formItemLayout}
  7718. label="服务内容"
  7719. name="remarks"
  7720. hasFeedback
  7721. style={{ position: 'relative' }}
  7722. >
  7723. <TextArea
  7724. rows={4}
  7725. placeholder="需要技术员上门服务内容"
  7726. onChange={(e) => {
  7727. this.setState({
  7728. contentView: e.target.value,
  7729. }, () => {
  7730. if (!this.state.contentView) {
  7731. this.setState({
  7732. contentViewLength: 0,
  7733. })
  7734. } else {
  7735. this.setState({
  7736. contentViewLength: this.state.contentView.length
  7737. })
  7738. }
  7739. });
  7740. }}
  7741. maxLength={500}
  7742. >
  7743. </TextArea>
  7744. <div style={{ position: 'absolute', right: '20px', bottom: '-5px', zIndex: '10' }}>{this.state.contentViewLength + '/500'}</div>
  7745. </Form.Item>
  7746. <Form.Item
  7747. {...formItemLayout}
  7748. label="备注"
  7749. name="remarks"
  7750. hasFeedback
  7751. style={{ position: 'relative' }}
  7752. >
  7753. <TextArea
  7754. rows={4}
  7755. maxLength={500}
  7756. placeholder="需要技术员注意事项"
  7757. onChange={(e) => {
  7758. this.setState({
  7759. remarksView: e.target.value,
  7760. }, () => {
  7761. if (!this.state.remarksView) {
  7762. this.setState({
  7763. contentViewLength1: 0,
  7764. })
  7765. } else {
  7766. this.setState({
  7767. contentViewLength1: this.state.remarksView.length
  7768. })
  7769. }
  7770. });
  7771. }}
  7772. />
  7773. <div style={{ position: 'absolute', right: '20px', bottom: '-5px', zIndex: '10' }}>{this.state.contentViewLength1 + '/500'}</div>
  7774. </Form.Item>
  7775. </Form>
  7776. <div
  7777. style={{
  7778. display: "flex",
  7779. justifyContent: "center",
  7780. }}
  7781. >
  7782. <Button
  7783. onClick={this.submitView}
  7784. type="primary"
  7785. loading={this.state.loading}
  7786. >
  7787. 提交
  7788. </Button>
  7789. <Button
  7790. type="dashed"
  7791. style={{ marginLeft: "15px" }}
  7792. onClick={() => {
  7793. this.setState({
  7794. modalView: false,
  7795. viewKey: this.state.viewKey + 1,
  7796. dateView: '',
  7797. contentView: '',
  7798. remarksView: '',
  7799. contentViewLength: 0,
  7800. contentViewLength1: 0,
  7801. });
  7802. }}
  7803. >
  7804. 取消
  7805. </Button>
  7806. </div>
  7807. </Modal>
  7808. </div>
  7809. <div>
  7810. <span
  7811. style={{ marginLeft: "50px", fontSize: "20px" }}
  7812. >
  7813. 项目业务
  7814. </span>
  7815. {
  7816. // 新需求 除湖南和内蒙古外 不让其他省操作
  7817. (adminData.province == "21" || adminData.province == "11" || adminData.province == "2") &&
  7818. <div>
  7819. {
  7820. this.state.processStatus == 0 &&
  7821. <Button
  7822. type="primary"
  7823. onClick={this.addDetailed}
  7824. style={{
  7825. float: "right",
  7826. marginRight: "50px",
  7827. marginBottom: "15px",
  7828. }}
  7829. >
  7830. 添加项目明细
  7831. </Button>
  7832. }
  7833. {
  7834. this.props.datauser.projectType == 1 && this.state.processStatus > 1 &&
  7835. <Button
  7836. type="primary"
  7837. onClick={this.addVip}
  7838. style={{
  7839. float: "right",
  7840. marginRight: "50px",
  7841. marginBottom: "15px",
  7842. }}
  7843. >
  7844. 添加会员项目
  7845. </Button>
  7846. }
  7847. {
  7848. (this.state.processStatus == 7 || this.state.processStatus == 8) &&
  7849. <Button
  7850. type="primary"
  7851. style={{
  7852. float: "right",
  7853. marginRight: "50px",
  7854. marginBottom: "15px",
  7855. }}
  7856. onClick={() => {
  7857. if (this.state.deleteSign == 2 || this.state.deleteSign == 3) {
  7858. message.warning("项目变更中,无法发起项目重启");
  7859. return
  7860. }
  7861. this.setState({
  7862. selectVisible: true,
  7863. sType: "restart",
  7864. })
  7865. }}
  7866. >
  7867. 项目重启
  7868. </Button>
  7869. }
  7870. {
  7871. (this.state.processStatus == 7 || this.state.processStatus == 8) &&
  7872. <Button
  7873. type="primary"
  7874. style={{
  7875. float: "right",
  7876. marginRight: "50px",
  7877. marginBottom: "15px",
  7878. }}
  7879. onClick={() => {
  7880. if (this.state.deleteSign == 2 || this.state.deleteSign == 3) {
  7881. message.warning("项目变更中,无法发起项目暂停");
  7882. return
  7883. }
  7884. this.setState({
  7885. selectVisible: true,
  7886. sType: "suspend",
  7887. })
  7888. }}
  7889. >
  7890. 项目暂停
  7891. </Button>
  7892. }
  7893. </div>
  7894. }
  7895. </div>
  7896. <div
  7897. className="patent-table"
  7898. style={{ marginBottom: 10 }}
  7899. >
  7900. <Spin spinning={this.state.loading}>
  7901. {
  7902. // 项目暂停&重启勾选
  7903. this.state.selectVisible &&
  7904. <SelectList
  7905. type={this.state.sType}
  7906. contractNo={this.state.contractNo}
  7907. orderNo={this.state.orderNo}
  7908. userName={this.state.userName}
  7909. list={this.state.dataSource}
  7910. visible={this.state.selectVisible}
  7911. subClose={() => {
  7912. this.loadData();
  7913. this.setState({
  7914. selectVisible: false,
  7915. })
  7916. }}
  7917. />
  7918. }
  7919. <Table
  7920. rowKey="id"
  7921. columns={this.state.columns}
  7922. dataSource={this.state.dataSource}
  7923. pagination={this.state.pagination}
  7924. expandedRowRender={expandedRowRenderVip}
  7925. rowClassName={this.addRowColor}
  7926. onRowClick={this.tableRowClick}
  7927. bordered
  7928. size="small"
  7929. />
  7930. </Spin>
  7931. </div>
  7932. <div
  7933. style={{
  7934. display: cuiDataList.length ? "block" : "none",
  7935. }}
  7936. >
  7937. <span
  7938. style={{ marginLeft: "50px", fontSize: "20px" }}
  7939. >
  7940. 旧催款节点
  7941. </span>
  7942. <Button
  7943. type="primary"
  7944. // onClick={this.addcontact}
  7945. disabled
  7946. onClick={(e) => {
  7947. cuiDataList.length
  7948. ? this.addcontact()
  7949. : this.addcontactNew();
  7950. }}
  7951. style={{
  7952. float: "right",
  7953. marginRight: "50px",
  7954. marginBottom: "15px",
  7955. display:
  7956. this.state.processStatus == 0
  7957. ? "block"
  7958. : "none",
  7959. }}
  7960. >
  7961. 添加催款节点
  7962. </Button>
  7963. </div>
  7964. <div
  7965. className="clearfix"
  7966. style={{
  7967. display: cuiDataList.length ? "block" : "none",
  7968. }}
  7969. >
  7970. <Spin spinning={this.state.loading}>
  7971. <Form layout="horizontal">
  7972. <Table
  7973. pagination={false}
  7974. columns={this.state.ContactsLists}
  7975. dataSource={this.state.contactList}
  7976. scroll={{ x: "max-content", y: 0 }}
  7977. bordered
  7978. size="small"
  7979. />
  7980. <Col
  7981. span={24}
  7982. offset={9}
  7983. style={{ marginTop: "15px" }}
  7984. ></Col>
  7985. </Form>
  7986. </Spin>
  7987. </div>
  7988. <div
  7989. style={{
  7990. display: cuiDataList.length ? "none" : "block",
  7991. }}
  7992. >
  7993. <span
  7994. style={{
  7995. marginLeft: "50px",
  7996. fontSize: "20px",
  7997. }}
  7998. >
  7999. 新催款节点
  8000. </span>
  8001. <span
  8002. style={{
  8003. display: "inline-block",
  8004. marginLeft: 10,
  8005. color: "red",
  8006. }}
  8007. >
  8008. 金额总计(万元): {this.state.totalCui}
  8009. </span>
  8010. <Button
  8011. type="primary"
  8012. disabled={this.state.addFlag ? true : false}
  8013. // onClick={this.addcontact}
  8014. onClick={(e) => {
  8015. this.setState({ addFlag: true });
  8016. this.addcontactNew();
  8017. }}
  8018. style={{
  8019. float: "right",
  8020. marginRight: "50px",
  8021. marginBottom: "15px",
  8022. display:
  8023. this.state.processStatus == 0
  8024. ? "block"
  8025. : "none",
  8026. }}
  8027. >
  8028. 添加催款节点
  8029. </Button>
  8030. </div>
  8031. <div
  8032. className="clearfix"
  8033. style={{
  8034. display: cuiDataList.length ? "none" : "block",
  8035. }}
  8036. >
  8037. <Spin spinning={this.state.loading}>
  8038. <Form layout="horizontal">
  8039. <Table
  8040. pagination={false}
  8041. columns={this.state.ContactsListsNew}
  8042. dataSource={this.state.contactListNew}
  8043. scroll={{ x: "max-content", y: 0 }}
  8044. bordered
  8045. size="small"
  8046. />
  8047. <Col
  8048. span={24}
  8049. offset={9}
  8050. style={{ marginTop: "15px" }}
  8051. ></Col>
  8052. </Form>
  8053. </Spin>
  8054. </div>
  8055. {this.state.processStatus == 0 &&
  8056. <div
  8057. className="addSave"
  8058. style={{
  8059. marginTop: "15px",
  8060. display: "flex",
  8061. justifyContent: "center",
  8062. }}
  8063. >
  8064. <Button
  8065. className="cancel"
  8066. type="primary"
  8067. onClick={this.handleCancels}
  8068. style={{ margin: "0 25px" }}
  8069. htmlType="submit"
  8070. loading={this.state.loading}
  8071. >
  8072. 签单
  8073. </Button>
  8074. <Button
  8075. className="cancel"
  8076. type="primary"
  8077. onClick={this.handleCancelq}
  8078. style={{ margin: "0 25px" }}
  8079. htmlType="submit"
  8080. loading={this.state.loading}
  8081. >
  8082. 保存
  8083. </Button>
  8084. <Popconfirm
  8085. title="请确认您是否作废此订单??"
  8086. onConfirm={(e) => {
  8087. this.examOks()
  8088. }}
  8089. okText="确认"
  8090. cancelText="取消"
  8091. >
  8092. <Button
  8093. className="cancel"
  8094. type="danger"
  8095. // onClick={this.examOks}
  8096. style={{ margin: "0 25px" }}
  8097. loading={this.state.loading}
  8098. >
  8099. 订单作废
  8100. </Button>
  8101. </Popconfirm>
  8102. <Button
  8103. className="cancel"
  8104. type="ghost"
  8105. onClick={this.handleCancelclose}
  8106. style={{ margin: "0 25px" }}
  8107. >
  8108. 取消
  8109. </Button>
  8110. </div>
  8111. }
  8112. </div>
  8113. }
  8114. </TabPane>
  8115. {
  8116. // 新需求 除湖南和内蒙古外 不让其他省操作
  8117. (adminData.province == "21" || adminData.province == "11" || adminData.province == "2") &&
  8118. <TabPane tab="合同变更发起" key="2">
  8119. {
  8120. this.state.activeKey == "2" &&
  8121. <div className="contractchange">
  8122. {
  8123. !(this.state.processStatus == 7 || this.state.processStatus == 8) &&
  8124. <div className="cmask">当前状态不能发起合同变更</div>
  8125. }
  8126. <div className="clearfix">
  8127. <FormItem
  8128. className="half-item"
  8129. {...formItemLayout}
  8130. label="客户名称"
  8131. >
  8132. <span>{this.state.userName}</span>
  8133. <EnterpriseNameChange
  8134. type="journal"
  8135. style={{ marginLeft: 10 }}
  8136. enterpriseId={this.state.orderUid}
  8137. />
  8138. </FormItem>
  8139. </div>
  8140. <div className="clearfix">
  8141. <FormItem
  8142. className="half-item"
  8143. {...formItemLayout}
  8144. label="合同编号"
  8145. >
  8146. <span>{this.state.contractNo}</span>
  8147. </FormItem>
  8148. </div>
  8149. <div className="clearfix">
  8150. <FormItem
  8151. className="half-item"
  8152. {...formItemLayout}
  8153. label="申请变更部门"
  8154. >
  8155. <span>{this.state.depName}</span>
  8156. </FormItem>
  8157. <FormItem
  8158. className="half-item"
  8159. {...formItemLayout}
  8160. label="申请人"
  8161. >
  8162. <span>{this.state.salesmanName}</span>
  8163. </FormItem>
  8164. </div>
  8165. <div className="clearfix">
  8166. <FormItem
  8167. labelCol={{ span: 5 }}
  8168. wrapperCol={{ span: 19 }}
  8169. label="变更类型"
  8170. >
  8171. <Select
  8172. placeholder="选择合同变更类型"
  8173. style={{ width: 200 }}
  8174. disabled={this.state.changeFlag}
  8175. value={this.state.typeChange}
  8176. onChange={(e) => {
  8177. this.setState({
  8178. typeChange: e,
  8179. changeFlag: true,
  8180. });
  8181. if (e == 1) {
  8182. this.setState({
  8183. hetongFlag: false,
  8184. listFlag: false,
  8185. listCuiFlag: false,
  8186. tuiKuanFlag: false,
  8187. displayList: false,
  8188. });
  8189. } else if (e == 2) {
  8190. this.setState({
  8191. hetongFlag: true,
  8192. listFlag: false,
  8193. listCuiFlag: false,
  8194. tuiKuanFlag: true,
  8195. displayList: false,
  8196. });
  8197. } else if (e == 3) {
  8198. this.setState({
  8199. listFlag: false,
  8200. hetongFlag: false,
  8201. listCuiFlag: false,
  8202. tuiKuanFlag: false,
  8203. displayList: true,
  8204. });
  8205. } else if (e == 4) {
  8206. this.setState({
  8207. listFlag: false,
  8208. listCuiFlag: false,
  8209. hetongFlag: false,
  8210. tuiKuanFlag: true,
  8211. displayList: false,
  8212. });
  8213. } else if (e == 5) {
  8214. this.setState({
  8215. listFlag: false,
  8216. listCuiFlag: false,
  8217. hetongFlag: true,
  8218. tuiKuanFlag: true,
  8219. displayList: false,
  8220. });
  8221. } else if (e == 6) {
  8222. this.setState({
  8223. // listFlag: true,
  8224. // listCuiFlag: true,
  8225. // hetongFlag: true,
  8226. // tuiKuanFlag: true,
  8227. // displayList: false,
  8228. listFlag: false,
  8229. listCuiFlag: false,
  8230. hetongFlag: false,
  8231. tuiKuanFlag: false,
  8232. displayList: false,
  8233. });
  8234. } else if (e == 7) {
  8235. this.setState({
  8236. listFlag: true,
  8237. listCuiFlag: true,
  8238. hetongFlag: true,
  8239. tuiKuanFlag: true,
  8240. displayList: false,
  8241. isNew: true, //上传替换合同
  8242. });
  8243. } else {
  8244. this.setState({
  8245. hetongFlag: false,
  8246. listFlag: false,
  8247. listCuiFlag: false,
  8248. tuiKuanFlag: false,
  8249. displayList: false,
  8250. });
  8251. }
  8252. }}
  8253. >
  8254. <Option value={0}>退单退款</Option>
  8255. <Option value={1}>项目及金额变更</Option>
  8256. <Option value={2}>仅项目变更</Option>
  8257. <Option value={3}>仅金额变更</Option>
  8258. <Option value={4}>重报</Option>
  8259. <Option value={5}>赠送</Option>
  8260. <Option value={6}>退单不退款</Option>
  8261. <Option value={7}>仅变更合同</Option>
  8262. <Option value={8}>框架协议(仅已签框架合同适用)</Option>
  8263. </Select>
  8264. <Button
  8265. style={{ marginLeft: 10 }}
  8266. onClick={(e) => {
  8267. this.setState({
  8268. listFlag: false,
  8269. hetongFlag: false,
  8270. listCuiFlag: false,
  8271. tuiKuanFlag: false,
  8272. displayList: false,
  8273. startRemarks: "",
  8274. remarksC: "",
  8275. voucherUrl: [],
  8276. newContractUrl: [],
  8277. isNew: false,
  8278. changeAmount: "0",
  8279. applicant: undefined,
  8280. depNameChange: undefined,
  8281. typeChange: undefined,
  8282. changeFlag: false,
  8283. });
  8284. }}
  8285. >
  8286. 重置
  8287. </Button>
  8288. {(this.state.status === 3 || this.state.status == 0) ? (
  8289. <Button
  8290. type="danger"
  8291. style={{
  8292. float: "right",
  8293. backgroundColor: "red",
  8294. color: "white",
  8295. position: "absolute",
  8296. right: 0,
  8297. height: 50,
  8298. borderRadius: 20,
  8299. zIndex: 100,
  8300. top: 0,
  8301. }}
  8302. onClick={(e) => {
  8303. e.stopPropagation();
  8304. this.showConfirmChange(this.deleteChange);
  8305. }}
  8306. >
  8307. 取消本次变更
  8308. </Button>
  8309. ) : (
  8310. ""
  8311. )}
  8312. </FormItem>
  8313. </div>
  8314. <div className="clearfix">
  8315. <FormItem
  8316. labelCol={{ span: 5 }}
  8317. wrapperCol={{ span: 19 }}
  8318. label="合同额(万元)"
  8319. >
  8320. <Input
  8321. placeholder="请输入合同额"
  8322. disabled={this.state.hetongFlag}
  8323. ref="signTotalAmount"
  8324. value={this.state.totalAmount}
  8325. onChange={(e) => {
  8326. this.setState({
  8327. totalAmount: e.target.value,
  8328. });
  8329. }}
  8330. style={{ width: "240px" }}
  8331. />
  8332. </FormItem>
  8333. <FormItem
  8334. labelCol={{ span: 5 }}
  8335. wrapperCol={{ span: 19 }}
  8336. label="首付款(万元)"
  8337. >
  8338. <Input
  8339. placeholder="请输入首付款"
  8340. disabled={this.state.hetongFlag}
  8341. ref="signTotalAmount"
  8342. value={this.state.firstAmount}
  8343. onChange={(e) => {
  8344. this.setState({
  8345. firstAmount: e.target.value,
  8346. });
  8347. }}
  8348. style={{ width: "240px" }}
  8349. />
  8350. </FormItem>
  8351. <FormItem
  8352. labelCol={{ span: 5 }}
  8353. wrapperCol={{ span: 19 }}
  8354. label="已收款(万元)"
  8355. >
  8356. <span>
  8357. {this.state.settlementAmount}
  8358. &nbsp;&nbsp;&nbsp;&nbsp;
  8359. <span style={{ color: "red" }}>
  8360. (注:已收款与现实收款不符,请与财务专员联系)
  8361. </span>
  8362. </span>
  8363. </FormItem>
  8364. <FormItem
  8365. labelCol={{ span: 5 }}
  8366. wrapperCol={{ span: 19 }}
  8367. label="申请退款(万元)"
  8368. >
  8369. <Input
  8370. placeholder="请输入申请退款"
  8371. ref="signTotalAmount"
  8372. disabled={this.state.tuiKuanFlag}
  8373. value={this.state.changeAmount}
  8374. onChange={(e) => {
  8375. this.setState({
  8376. changeAmount: e.target.value,
  8377. });
  8378. }}
  8379. style={{ width: "240px" }}
  8380. />
  8381. </FormItem>
  8382. </div>
  8383. {/* 退单退款 */}
  8384. {this.state.isCaoGao && this.state.typeChange == 0 &&
  8385. <div className="clearfix">
  8386. <div className="clearfix">
  8387. <FormItem
  8388. className="half-item"
  8389. {...formItemLayout}
  8390. label="企业总经理姓名"
  8391. >
  8392. <Input
  8393. placeholder="请输入企业总经理姓名"
  8394. value={this.state.managerContacts}
  8395. onChange={(e) => {
  8396. this.setState({
  8397. managerContacts: e.target.value,
  8398. });
  8399. }}
  8400. style={{ width: "240px" }}
  8401. />
  8402. </FormItem>
  8403. <FormItem
  8404. className="half-item"
  8405. {...formItemLayout}
  8406. label="企业总经理联系电话"
  8407. >
  8408. <Input
  8409. placeholder="请输入企业总经理联系电话"
  8410. value={this.state.managerContactMobile}
  8411. onChange={(e) => {
  8412. this.setState({
  8413. managerContactMobile: e.target.value,
  8414. });
  8415. }}
  8416. style={{ width: "240px" }}
  8417. />
  8418. </FormItem>
  8419. </div>
  8420. <div className="clearfix">
  8421. <FormItem
  8422. className="half-item"
  8423. {...formItemLayout}
  8424. label="企业联系人姓名"
  8425. >
  8426. <Input
  8427. placeholder="请输入企业联系人姓名"
  8428. value={this.state.contacts}
  8429. onChange={(e) => {
  8430. this.setState({
  8431. contacts: e.target.value,
  8432. });
  8433. }}
  8434. style={{ width: "240px" }}
  8435. />
  8436. </FormItem>
  8437. <FormItem
  8438. className="half-item"
  8439. {...formItemLayout}
  8440. label="企业联系人联系方式"
  8441. >
  8442. <Input
  8443. placeholder="请输入企业联系人联系方式"
  8444. value={this.state.contactMobile}
  8445. onChange={(e) => {
  8446. this.setState({
  8447. contactMobile: e.target.value,
  8448. });
  8449. }}
  8450. style={{ width: "240px" }}
  8451. />
  8452. </FormItem>
  8453. </div>
  8454. <div className="clearfix">
  8455. <FormItem
  8456. className="half-item"
  8457. {...formItemLayout}
  8458. label={<span style={{ color: "red" }}>注</span>}
  8459. >
  8460. <span style={{ color: "red" }}>
  8461. 请填写以上信息,公司总经理将与企业联系交流
  8462. </span>
  8463. </FormItem>
  8464. </div>
  8465. </div>
  8466. }
  8467. <div
  8468. style={{
  8469. display: this.state.isCaoGao ? "block" : "none",
  8470. }}
  8471. >
  8472. <div>
  8473. <span
  8474. style={{
  8475. marginLeft: "50px",
  8476. fontSize: "20px",
  8477. }}
  8478. >
  8479. 项目业务
  8480. </span>
  8481. <span style={{ color: "red" }}>
  8482. (注:项目删除后,此项目的全部节点、全部工时,全部被删除,请谨慎删除!)
  8483. </span>
  8484. <Button
  8485. type="primary"
  8486. onClick={this.changeAddPro}
  8487. disabled={this.state.listFlag}
  8488. style={{
  8489. float: "right",
  8490. marginRight: "50px",
  8491. marginBottom: "15px",
  8492. display: this.state.displayList
  8493. ? "none"
  8494. : "block",
  8495. }}
  8496. >
  8497. 添加项目明细
  8498. </Button>
  8499. </div>
  8500. <div
  8501. className="patent-table"
  8502. style={{ marginBottom: 10 }}
  8503. >
  8504. <Spin spinning={this.state.loading}>
  8505. <Table
  8506. columns={this.state.proColumns}
  8507. dataSource={this.state.proDataSource}
  8508. expandedRowRender={expandedRowRender}
  8509. pagination={this.state.pagination}
  8510. rowClassName={this.addRowColor}
  8511. // onRowDoubleClick={
  8512. // this.state.listFlag
  8513. // ? this.not
  8514. // : this.editPro
  8515. // }
  8516. bordered
  8517. size="small"
  8518. />
  8519. </Spin>
  8520. </div>
  8521. <div>
  8522. <span
  8523. style={{
  8524. marginLeft: "50px",
  8525. fontSize: "20px",
  8526. }}
  8527. >
  8528. 催款节点
  8529. </span>
  8530. <span style={{ color: "red" }}>
  8531. (注:节点删除后,无论节点是否触发,均会删除,请谨慎删除!双击可修改对应金额!)
  8532. </span>
  8533. <Button
  8534. type="primary"
  8535. onClick={(e) => {
  8536. this.changeAddCui();
  8537. }}
  8538. disabled={this.state.listCuiFlag}
  8539. style={{
  8540. float: "right",
  8541. marginRight: "50px",
  8542. marginBottom: "15px",
  8543. display: this.state.displayList
  8544. ? "none"
  8545. : "block",
  8546. }}
  8547. >
  8548. 添加催款节点
  8549. </Button>
  8550. </div>
  8551. <div className="clearfix">
  8552. <Spin spinning={this.state.loading}>
  8553. <Form layout="horizontal">
  8554. <Table
  8555. pagination={false}
  8556. columns={this.state.changeCuiList}
  8557. dataSource={this.state.cuiDataSource}
  8558. scroll={{ x: "max-content", y: 0 }}
  8559. onRowDoubleClick={
  8560. this.state.listCuiFlag
  8561. ? this.not
  8562. : this.editCui
  8563. }
  8564. bordered
  8565. size="small"
  8566. />
  8567. <Col
  8568. span={24}
  8569. offset={9}
  8570. style={{ marginTop: "15px" }}
  8571. ></Col>
  8572. </Form>
  8573. </Spin>
  8574. </div>
  8575. </div>
  8576. <div className="clearfix">
  8577. <FormItem
  8578. style={{ height: "auto" }}
  8579. labelCol={{ span: 5 }}
  8580. wrapperCol={{ span: 19 }}
  8581. label="变更原因"
  8582. >
  8583. <TextArea
  8584. rows={4}
  8585. placeholder="请输入变更原因"
  8586. ref="signTotalAmount"
  8587. style={{ width: "95%" }}
  8588. value={this.state.remarksC}
  8589. onChange={(e) => {
  8590. this.setState({
  8591. remarksC: e.target.value,
  8592. });
  8593. }}
  8594. />
  8595. </FormItem>
  8596. </div>
  8597. <div className="clearfix">
  8598. <FormItem
  8599. style={{ height: "auto" }}
  8600. labelCol={{ span: 5 }}
  8601. wrapperCol={{ span: 19 }}
  8602. label="备注"
  8603. >
  8604. <TextArea
  8605. rows={4}
  8606. placeholder="请输入备注"
  8607. ref="signTotalAmount"
  8608. style={{ width: "95%" }}
  8609. value={this.state.startRemarks}
  8610. onChange={(e) => {
  8611. this.setState({
  8612. startRemarks: e.target.value,
  8613. });
  8614. }}
  8615. />
  8616. </FormItem>
  8617. </div>
  8618. <div className="clearfix">
  8619. <FormItem
  8620. labelCol={{ span: 5 }}
  8621. wrapperCol={{ span: 19 }}
  8622. label="变更凭证"
  8623. >
  8624. <PicturesWall
  8625. domId={"addService5"}
  8626. fileList={this.getVoucherUrl}
  8627. pictureUrl={this.state.voucherUrl}
  8628. url="/api/admin/orderChange/uploadFile"
  8629. sign="order_change_file"
  8630. />
  8631. <p>图片建议:要清晰。</p>
  8632. </FormItem>
  8633. </div>
  8634. <div className="clearfix">
  8635. <FormItem
  8636. labelCol={{ span: 5 }}
  8637. wrapperCol={{ span: 19 }}
  8638. label="上传替换合同"
  8639. >
  8640. <Switch disabled={this.state.typeChange == 7} checked={this.state.isNew} onChange={e => { this.setState({ isNew: e }) }} />,
  8641. <p style={{ color: "red" }}>注:原上传合同为空或作废时,需上传替换合同</p>
  8642. </FormItem>
  8643. </div>
  8644. {
  8645. this.state.isNew &&
  8646. <div className="clearfix">
  8647. <FormItem
  8648. labelCol={{ span: 5 }}
  8649. wrapperCol={{ span: 19 }}
  8650. label="合同扫描件"
  8651. >
  8652. <PicturesWall
  8653. domId={"newcontract"}
  8654. fileList={this.getNewContractUrl}
  8655. pictureUrl={this.state.newContractUrl}
  8656. url="/api/admin/orderChange/uploadFile"
  8657. sign=""
  8658. />
  8659. <p>图片建议:要清晰。</p>
  8660. </FormItem>
  8661. </div>
  8662. }
  8663. {/* 违约&保密说明 */}
  8664. { this.state.typeChange == 7 ? (
  8665. <ConfidenBreach
  8666. orderNo={this.state.orderNo}
  8667. data={this.state.confidenBreachChangeData}
  8668. onChange={(value, updateKey) => {
  8669. const { confidenBreachChangeData } = this.state;
  8670. confidenBreachChangeData[updateKey] = value;
  8671. this.setState({ confidenBreachChangeData })
  8672. }}
  8673. labelCol={4}
  8674. wrapperCol={18}
  8675. />
  8676. ) : null }
  8677. <div className="clearfix">
  8678. <Button
  8679. type="primary"
  8680. style={{ float: "right", marginRight: 40 }}
  8681. loading={this.state.loading}
  8682. onClick={(e) => {
  8683. if (this.state.isCaoGao) {
  8684. this.submitChange();
  8685. } else {
  8686. this.changeApply();
  8687. }
  8688. }}
  8689. >
  8690. {/* {this.state.isCaoGao
  8691. ? "发起变更申请"
  8692. : this.state.typeChange == 0
  8693. ? "发起变更申请"
  8694. : "下一步"} */}
  8695. {this.state.isCaoGao ? "发起变更申请" : "下一步"}
  8696. </Button>
  8697. </div>
  8698. </div>
  8699. }
  8700. </TabPane>
  8701. }
  8702. {this.state.isJilu &&
  8703. <TabPane tab={"最近变更记录"} key="3">
  8704. {
  8705. this.state.activeKey == "3" &&
  8706. <div>
  8707. <div
  8708. style={{
  8709. borderRadius: "50%",
  8710. width: 300,
  8711. height: 300,
  8712. position: "absolute",
  8713. top: 230,
  8714. left: 525,
  8715. transform: "rotate(-5deg)",
  8716. zIndex: 1,
  8717. display:
  8718. this.state.detailChange.status == 4
  8719. ? "block"
  8720. : "none",
  8721. }}
  8722. >
  8723. <img src={tongguo} style={{ width: "100%" }} />
  8724. </div>
  8725. <div
  8726. style={{
  8727. borderRadius: "50%",
  8728. width: 300,
  8729. height: 300,
  8730. position: "absolute",
  8731. top: 284,
  8732. left: 586,
  8733. transform: "rotate(-5deg)",
  8734. zIndex: 1,
  8735. display:
  8736. this.state.detailChange.status == 5
  8737. ? "block"
  8738. : "none",
  8739. }}
  8740. >
  8741. <img src={quxiao} style={{ width: "63%" }} />
  8742. </div>
  8743. <div className="clearfix">
  8744. <FormItem
  8745. className="half-item"
  8746. {...formItemLayout}
  8747. label="客户名称"
  8748. >
  8749. <span>{this.state.userName}</span>
  8750. <EnterpriseNameChange
  8751. type="journal"
  8752. style={{ marginLeft: 10 }}
  8753. enterpriseId={this.state.orderUid}
  8754. />
  8755. </FormItem>
  8756. {/* */}
  8757. <FormItem
  8758. className="half-item"
  8759. {...formItemLayout}
  8760. label="合同编号"
  8761. >
  8762. <span>{this.state.contractNo}</span>
  8763. </FormItem>
  8764. </div>
  8765. <div className="clearfix">
  8766. <FormItem
  8767. className="half-item"
  8768. {...formItemLayout}
  8769. label="时间"
  8770. >
  8771. <span>
  8772. {this.state.detailChange.createTimes}
  8773. </span>
  8774. </FormItem>
  8775. <FormItem
  8776. className="half-item"
  8777. {...formItemLayout}
  8778. label="申请人"
  8779. >
  8780. <span>{this.state.salesmanName}</span>
  8781. </FormItem>
  8782. </div>
  8783. <div className="clearfix">
  8784. <FormItem
  8785. className="half-item"
  8786. {...formItemLayout}
  8787. label="当前进度"
  8788. >
  8789. <span>
  8790. {/*当前是进度角色是咨询师以及咨询师经理时使用shenhePeo函数,其他流程正常显示*/}
  8791. {this.state.detailChange.processState === 3 ||
  8792. this.state.detailChange.processState === 4
  8793. ? shenghePeo(this.state.detailChange.examineName, this.state.detailChange.processState)
  8794. : getProcessStatusNew(
  8795. this.state.detailChange.examineName,
  8796. this.state.detailChange.processState,
  8797. this.state.detailChange.status
  8798. )}
  8799. </span>
  8800. <FlowChart id={this.state.detailChange.id} />
  8801. </FormItem>
  8802. {/* <FormItem
  8803. className="half-item"
  8804. {...formItemLayout}
  8805. label="申请变更部门"
  8806. >
  8807. <span>{this.state.depName}</span>
  8808. </FormItem> */}
  8809. <FormItem
  8810. {...formItemLayout}
  8811. className="half-item"
  8812. label="变更类型"
  8813. >
  8814. <span>
  8815. {getChangeType(
  8816. this.state.detailChange.typeChange
  8817. )}
  8818. </span>
  8819. </FormItem>
  8820. </div>
  8821. {/* <div className="clearfix">
  8822. <FormItem
  8823. labelCol={{ span: 4 }}
  8824. wrapperCol={{ span: 18 }}
  8825. label="变更类型"
  8826. >
  8827. <span>
  8828. {getChangeType(
  8829. this.state.detailChange.typeChange
  8830. )}
  8831. </span>
  8832. </FormItem>
  8833. </div> */}
  8834. {this.state.detailChange.typeChange == 0 &&
  8835. <div className="clearfix">
  8836. <FormItem
  8837. {...formItemLayout}
  8838. className="half-item"
  8839. label="企业总经理姓名"
  8840. >
  8841. <span>
  8842. {this.state.detailChange.managerContacts}
  8843. </span>
  8844. </FormItem>
  8845. <FormItem
  8846. {...formItemLayout}
  8847. className="half-item"
  8848. label="企业总经理联系电话"
  8849. >
  8850. <span>
  8851. {this.state.detailChange.managerContactMobile}
  8852. </span>
  8853. </FormItem>
  8854. </div>
  8855. }
  8856. {this.state.detailChange.typeChange == 0 &&
  8857. <div className="clearfix">
  8858. <FormItem
  8859. {...formItemLayout}
  8860. className="half-item"
  8861. label="企业联系人姓名"
  8862. >
  8863. <span>
  8864. {this.state.detailChange.contacts}
  8865. </span>
  8866. </FormItem>
  8867. <FormItem
  8868. {...formItemLayout}
  8869. className="half-item"
  8870. label="企业联系人联系方式"
  8871. >
  8872. <span>
  8873. {this.state.detailChange.contactMobile}
  8874. </span>
  8875. </FormItem>
  8876. </div>
  8877. }
  8878. <div className="clearfix">
  8879. <FormItem
  8880. {...formItemLayout}
  8881. className="half-item"
  8882. label="合同额(万元)"
  8883. >
  8884. <span>
  8885. {this.state.detailChange.totalAmount}
  8886. </span>
  8887. </FormItem>
  8888. <FormItem
  8889. {...formItemLayout}
  8890. className="half-item"
  8891. label="已收款(万元)"
  8892. >
  8893. <span>
  8894. {this.state.detailChange.settlementAmount}
  8895. </span>
  8896. </FormItem>
  8897. </div>
  8898. <div className="clearfix">
  8899. <FormItem
  8900. {...formItemLayout}
  8901. className="half-item"
  8902. label="欠款(万元)"
  8903. >
  8904. <span>{this.state.detailChange.arrears}</span>
  8905. </FormItem>
  8906. <FormItem
  8907. {...formItemLayout}
  8908. className="half-item"
  8909. label="申请退款(万元)"
  8910. >
  8911. <span>
  8912. {this.state.detailChange.changeAmount}
  8913. </span>
  8914. </FormItem>
  8915. </div>
  8916. <div className="clearfix">
  8917. <FormItem
  8918. style={{ height: "auto" }}
  8919. labelCol={{ span: 5 }}
  8920. wrapperCol={{ span: 19 }}
  8921. label="首付款(万元)"
  8922. >
  8923. <span>{this.state.detailChange.firstAmount}</span>
  8924. </FormItem>
  8925. </div>
  8926. <div className="clearfix">
  8927. <FormItem
  8928. style={{ height: "auto" }}
  8929. labelCol={{ span: 5 }}
  8930. wrapperCol={{ span: 19 }}
  8931. label="变更原因"
  8932. >
  8933. <span>{this.state.detailChange.remarksC}</span>
  8934. </FormItem>
  8935. </div>
  8936. <div className="clearfix">
  8937. <FormItem
  8938. style={{ height: "auto" }}
  8939. labelCol={{ span: 5 }}
  8940. wrapperCol={{ span: 19 }}
  8941. label="备注"
  8942. >
  8943. <span>
  8944. {this.state.detailChange.startRemarks}
  8945. </span>
  8946. </FormItem>
  8947. </div>
  8948. {/* ---- */}
  8949. <div className="clearfix">
  8950. <FormItem
  8951. labelCol={{ span: 5 }}
  8952. wrapperCol={{ span: 19 }}
  8953. label="变更凭证"
  8954. >
  8955. <div>
  8956. <div
  8957. style={{
  8958. paddingTop: "10px",
  8959. }}
  8960. >
  8961. {this.state.detailChange &&
  8962. this.state.detailChange.voucherUrl &&
  8963. this.state.activeKey === "3" &&
  8964. this.state.visible ? (
  8965. <ImgList
  8966. fileList={
  8967. this.state.detailChange.voucherUrl
  8968. }
  8969. ItemWidth={"96px"}
  8970. />
  8971. ) : (
  8972. <div />
  8973. )}
  8974. </div>
  8975. {this.state.status === 3 ? (
  8976. <Button
  8977. type="danger"
  8978. style={{
  8979. float: "right",
  8980. backgroundColor: "red",
  8981. color: "white",
  8982. position: "absolute",
  8983. right: 0,
  8984. height: 50,
  8985. borderRadius: 20,
  8986. zIndex: 100,
  8987. top: 0,
  8988. }}
  8989. onClick={(e) => {
  8990. e.stopPropagation();
  8991. this.showConfirmChange(
  8992. this.deleteChange
  8993. );
  8994. }}
  8995. >
  8996. 取消本次变更
  8997. </Button>
  8998. ) : (
  8999. ""
  9000. )}
  9001. </div>
  9002. </FormItem>
  9003. </div>
  9004. {
  9005. this.state.detailChange.contractPictureUrl.length != 0 &&
  9006. <div className="clearfix">
  9007. <FormItem
  9008. labelCol={{ span: 5 }}
  9009. wrapperCol={{ span: 19 }}
  9010. label="最新合同"
  9011. >
  9012. <div style={{ paddingTop: 10 }}>
  9013. <ImgList
  9014. fileList={
  9015. this.state.detailChange.contractPictureUrl
  9016. }
  9017. ItemWidth={"96px"}
  9018. />
  9019. </div>
  9020. </FormItem>
  9021. </div>
  9022. }
  9023. { this.state.detailChange.typeChange == 7 ? (
  9024. <ConfidenBreachView data={this.state.detailChange} />
  9025. ) : null }
  9026. <ul
  9027. style={{
  9028. width: "868px",
  9029. overflow: "hidden",
  9030. paddingLeft: "90px",
  9031. paddingTop: "10px",
  9032. position: "relative",
  9033. bottom: "20px",
  9034. fontSize: "12px",
  9035. color: "rgba(0, 0, 0, 0.65)",
  9036. }}
  9037. >
  9038. {/* <span>操作人:</span> */}
  9039. {this.state.logData.map((item, index) => {
  9040. if (item.status == 0) {
  9041. item.status = "发起";
  9042. } else if (item.status == 1) {
  9043. item.status = "审核中";
  9044. } else if (item.status == 2) {
  9045. item.status = "通过";
  9046. } else if (item.status == 3) {
  9047. item.status = "驳回";
  9048. } else if (item.status == 4) {
  9049. item.status = "完成";
  9050. } else if (item.status == 5) {
  9051. item.status = "撤销";
  9052. }
  9053. return (
  9054. <li
  9055. key={index}
  9056. style={{
  9057. width: "100%",
  9058. height: "auto",
  9059. wordBreak: "break-all",
  9060. marginBottom: "10px",
  9061. }}
  9062. >
  9063. {item.aname + ":" + "【" + item.status + "】" + item.remarks + "(" + item.createTimes + ")"}
  9064. </li>
  9065. );
  9066. })}
  9067. </ul>
  9068. {/* 动态展示项目以及催款节点 */}
  9069. <div>
  9070. <div>
  9071. <span
  9072. style={{
  9073. marginLeft: "50px",
  9074. fontSize: "20px",
  9075. }}
  9076. >
  9077. 项目业务
  9078. </span>
  9079. </div>
  9080. <div
  9081. className="patent-table"
  9082. style={{ marginBottom: 10 }}
  9083. >
  9084. <Spin spinning={this.state.loading}>
  9085. <Table
  9086. columns={this.state.detailColumns}
  9087. dataSource={this.state.proDataSource}
  9088. expandedRowRender={expandedRowRenderDetail}
  9089. pagination={this.state.pagination}
  9090. // onRowClick={this.tableRowClick}
  9091. onRowClick={(record) => {
  9092. this.setState({
  9093. dataInfor: record,
  9094. infoVisible: true
  9095. })
  9096. }}
  9097. rowClassName={this.addRowColor}
  9098. bordered
  9099. size="small"
  9100. />
  9101. </Spin>
  9102. </div>
  9103. <div>
  9104. <span
  9105. style={{
  9106. marginLeft: "50px",
  9107. fontSize: "20px",
  9108. }}
  9109. >
  9110. 催款节点
  9111. </span>
  9112. </div>
  9113. <div className="clearfix">
  9114. <Spin spinning={this.state.loading}>
  9115. <Form layout="horizontal">
  9116. <Table
  9117. pagination={false}
  9118. columns={this.state.detailContactsLists}
  9119. dataSource={this.state.cuiDataSource}
  9120. scroll={{ x: "max-content", y: 0 }}
  9121. bordered
  9122. size="small"
  9123. />
  9124. <Col
  9125. span={24}
  9126. offset={9}
  9127. style={{ marginTop: "15px" }}
  9128. ></Col>
  9129. </Form>
  9130. </Spin>
  9131. </div>
  9132. </div>
  9133. </div>
  9134. }
  9135. </TabPane>
  9136. }
  9137. </Tabs>
  9138. }
  9139. </div>
  9140. </Spin>
  9141. </Form>
  9142. </Modal>
  9143. {
  9144. // 添加变更项目
  9145. this.state.changeVisible &&
  9146. <NewAddProject
  9147. type="change"
  9148. children="list"
  9149. typeChange={this.state.typeChange}
  9150. cid={this.state.changeId}
  9151. readOnly={false}
  9152. orderNo={this.state.orderNo}
  9153. visible={this.state.changeVisible}
  9154. newData={this.state.newData}
  9155. onCancel={() => [this.nextCancel("change")]}
  9156. />
  9157. }
  9158. {
  9159. // 编辑变更项目
  9160. this.state.editProVisible &&
  9161. <NewEditProject
  9162. type="change"
  9163. children="list"
  9164. typeChange={this.state.typeChange}
  9165. cid={this.state.changeId}
  9166. readOnly={false}
  9167. orderNo={this.props.datauser.orderNo}
  9168. visible={this.state.editProVisible}
  9169. dataInfor={this.state.dataInfor}
  9170. newData={this.state.newData}
  9171. onCancel={() => [this.nextCancel("change")]}
  9172. />
  9173. }
  9174. {
  9175. this.state.lookVisible ? (
  9176. <Modal
  9177. maskClosable={false}
  9178. visible={this.state.lookVisible}
  9179. onOk={this.noCancel}
  9180. onCancel={this.noCancel}
  9181. width="800px"
  9182. title={"退单申请"}
  9183. footer=""
  9184. className="admin-desc-content"
  9185. >
  9186. <Form layout="horizontal">
  9187. <Spin spinning={this.state.loading}>
  9188. <div className="clearfix">
  9189. <FormItem
  9190. labelCol={{ span: 4 }}
  9191. wrapperCol={{ span: 16 }}
  9192. label="终止合同"
  9193. >
  9194. <Picture
  9195. domId={"addService6"}
  9196. fileList={(e) => {
  9197. this.setState({ contractUrl: e });
  9198. }}
  9199. pictureUrl={this.state.contractUrl}
  9200. visible={this.props.visible}
  9201. data={{
  9202. sign: "order_refund_file",
  9203. url: "/api/admin/newOrder/uploadRefundOrderFile",
  9204. number: 8,
  9205. }}
  9206. />
  9207. </FormItem>
  9208. </div>
  9209. <div className="clearfix">
  9210. <FormItem
  9211. labelCol={{ span: 4 }}
  9212. wrapperCol={{ span: 16 }}
  9213. label="退单申请表"
  9214. >
  9215. <Picture
  9216. domId={"addService7"}
  9217. fileList={(e) => {
  9218. this.setState({ applicationUrl: e });
  9219. }}
  9220. pictureUrl={this.state.applicationUrl}
  9221. visible={this.props.visible}
  9222. data={{
  9223. sign: "order_refund_file",
  9224. url: "/api/admin/newOrder/uploadRefundOrderFile",
  9225. number: 8,
  9226. }}
  9227. />
  9228. </FormItem>
  9229. </div>
  9230. <div className="clearfix">
  9231. <FormItem
  9232. labelCol={{ span: 4 }}
  9233. wrapperCol={{ span: 16 }}
  9234. label="退单理由"
  9235. >
  9236. <Input
  9237. type="textarea"
  9238. placeholder="请输入退单理由"
  9239. rows={4}
  9240. value={this.state.reason}
  9241. onChange={(e) => {
  9242. this.setState({ reason: e.target.value });
  9243. }}
  9244. />
  9245. </FormItem>
  9246. </div>
  9247. <div className="clearfix">
  9248. <Button
  9249. className="cancel"
  9250. type="primary"
  9251. onClick={this.tuidanOk}
  9252. style={{ marginLeft: "50px" }}
  9253. htmlType="submit"
  9254. >
  9255. 确定退单
  9256. </Button>
  9257. <Button
  9258. className="cancel"
  9259. type="ghost"
  9260. onClick={this.noCancel}
  9261. style={{ marginLeft: "50px" }}
  9262. >
  9263. 取消
  9264. </Button>
  9265. </div>
  9266. </Spin>
  9267. </Form>
  9268. </Modal>
  9269. ) : (
  9270. <div />
  9271. )
  9272. }
  9273. <Modal
  9274. maskClosable={false}
  9275. title={
  9276. isNaN(parseFloat(this.state.appropriationRatio))
  9277. ? "修改催款节点金额"
  9278. : "修改催款节点比例"
  9279. }
  9280. visible={this.state.editCuiVisible}
  9281. onOk={() => {
  9282. this.submitEditCui(
  9283. isNaN(parseFloat(this.state.appropriationRatio)) ? 0 : 1
  9284. );
  9285. }}
  9286. okText={"保存"}
  9287. width={300}
  9288. onCancel={(e) => {
  9289. this.setState({
  9290. editCuiVisible: false,
  9291. appropriationRatio: "",
  9292. });
  9293. }}
  9294. >
  9295. <div className="clearfix">
  9296. <FormItem
  9297. labelCol={{ span: 6 }}
  9298. wrapperCol={{ span: 14 }}
  9299. label={
  9300. isNaN(parseFloat(this.state.appropriationRatio))
  9301. ? "催款金额"
  9302. : "催款比例"
  9303. }
  9304. >
  9305. <Input
  9306. type="number"
  9307. placeholder={
  9308. isNaN(parseFloat(this.state.appropriationRatio))
  9309. ? "请输入金额"
  9310. : "请输入比例"
  9311. }
  9312. rows={4}
  9313. value={this.state.editCuiMoney}
  9314. onChange={(e) => {
  9315. this.setState({ editCuiMoney: e.target.value });
  9316. }}
  9317. />
  9318. </FormItem>
  9319. </div>
  9320. </Modal>
  9321. <OrderRiZi
  9322. dataSourcerizhi={this.state.dataSourcerizhi}
  9323. closeOrderLog={this.closeOrderLog}
  9324. visible={this.state.rizhivisible}
  9325. loading={this.state.loading}
  9326. />
  9327. {
  9328. // 添加项目
  9329. this.state.projectOperationVisible &&
  9330. <NewAddProject
  9331. readOnly={
  9332. this.state.dataInfor &&
  9333. Object.keys(this.state.dataInfor).length > 0 &&
  9334. this.state.processStatus !== 0
  9335. }
  9336. orderNo={this.props.datauser.orderNo}
  9337. visible={this.state.projectOperationVisible}
  9338. newData={this.state.newData}
  9339. onCancel={this.nextCancel}
  9340. />
  9341. }
  9342. {
  9343. // 编辑项目
  9344. this.state.editProjectOperationVisible &&
  9345. <NewEditProject
  9346. readOnly={
  9347. this.state.dataInfor &&
  9348. Object.keys(this.state.dataInfor).length > 0 &&
  9349. this.state.processStatus !== 0
  9350. }
  9351. orderNo={this.props.datauser.orderNo}
  9352. visible={this.state.editProjectOperationVisible}
  9353. dataInfor={this.state.dataInfor}
  9354. newData={this.state.newData}
  9355. onCancel={this.nextCancel}
  9356. />
  9357. }
  9358. {
  9359. // 会员项目添加
  9360. this.state.vipVisible &&
  9361. <NewAddProject
  9362. type="vipAdd"
  9363. readOnly={
  9364. this.state.dataInfor &&
  9365. Object.keys(this.state.dataInfor).length > 0 &&
  9366. this.state.processStatus !== 0
  9367. }
  9368. orderNo={this.props.datauser.orderNo}
  9369. visible={this.state.vipVisible}
  9370. newData={this.state.newData}
  9371. onCancel={this.nextCancel}
  9372. />
  9373. // <ProjectOperationVip
  9374. // readOnly={
  9375. // this.state.dataInfor &&
  9376. // Object.keys(this.state.dataInfor).length > 0 &&
  9377. // this.state.processStatus !== 0
  9378. // }
  9379. // orderNo={this.props.datauser.orderNo}
  9380. // visible={this.state.vipVisible}
  9381. // dataInfor={this.state.dataInfor}
  9382. // newData={this.state.newData}
  9383. // onCancel={this.nextCancel}
  9384. // />
  9385. }
  9386. {
  9387. // 变更记录详情
  9388. this.state.infoVisible &&
  9389. <NewEditProject
  9390. children="list"
  9391. type="change"
  9392. readOnly={
  9393. this.state.dataInfor &&
  9394. Object.keys(this.state.dataInfor).length > 0 &&
  9395. this.state.processStatus !== 0
  9396. }
  9397. visible={this.state.infoVisible}
  9398. dataInfor={this.state.dataInfor}
  9399. onCancel={() => { this.setState({ infoVisible: false }) }}
  9400. />
  9401. }
  9402. <Modal
  9403. maskClosable={false}
  9404. visible={this.state.score != ""}
  9405. footer=""
  9406. title="项目评分"
  9407. width={this.state.score == "selcet" ? 400 : 740}
  9408. onCancel={() => {
  9409. this.onCloses()
  9410. }}
  9411. >
  9412. {
  9413. this.state.score == "add" &&
  9414. <div>
  9415. <div style={{ marginBottom: 10 }}>项目名称:{this.state.cname}</div>
  9416. <div style={{ marginBottom: 10 }}>项目咨询:{this.state.tname}</div>
  9417. <div>
  9418. <span style={{ width: 50, display: "inline-block" }}>专&nbsp;业&nbsp;度</span>:
  9419. <RadioGroup
  9420. onChange={e => {
  9421. this.setState({
  9422. zyd: e.target.value,
  9423. zydList: this.getRadioList(e.target.value, this.state.cSort, "zyd"),
  9424. professionalism: e.target.value == 4 ? 0 : undefined,
  9425. })
  9426. }}
  9427. value={this.state.zyd}>
  9428. {
  9429. [
  9430. { key: "很专业", value: 1, },
  9431. { key: "专业", value: 2, },
  9432. { key: "一般", value: 3, },
  9433. { key: "不专业", value: 4, },
  9434. ].map(item =>
  9435. <RadioButton style={{ width: 80, textAlign: "center" }} value={item.value} key={item.value}>{item.key}</RadioButton>
  9436. )
  9437. }
  9438. </RadioGroup>
  9439. </div>
  9440. <div
  9441. style={{
  9442. padding: "5px 0 10px 0",
  9443. paddingLeft: this.getPaddingLeft(this.state.zyd),
  9444. margin: "5px 0 10px 55px",
  9445. borderBottom: "1px dotted black"
  9446. }}
  9447. >
  9448. <RadioGroup
  9449. onChange={e => {
  9450. this.setState({
  9451. professionalism: e.target.value
  9452. })
  9453. }}
  9454. value={this.state.professionalism}>
  9455. {
  9456. !!this.state.zydList && this.state.zydList.map(item =>
  9457. <RadioButton style={{ textAlign: "center" }} value={item} key={item}>{item}分</RadioButton>
  9458. )
  9459. }
  9460. </RadioGroup>
  9461. </div>
  9462. <div>
  9463. <span style={{ width: 50, display: "inline-block" }}>沟&nbsp;通&nbsp;力</span>:
  9464. <RadioGroup
  9465. onChange={e => {
  9466. this.setState({
  9467. gtl: e.target.value,
  9468. gtlList: this.getRadioList(e.target.value, this.state.cSort, "gtl"),
  9469. communicationSkills: e.target.value == 4 ? 0 : undefined,
  9470. })
  9471. }}
  9472. value={this.state.gtl}>
  9473. {
  9474. [
  9475. { key: "很满意", value: 1, },
  9476. { key: "满意", value: 2, },
  9477. { key: "一般", value: 3, },
  9478. { key: "不满意", value: 4, },
  9479. ].map(item =>
  9480. <RadioButton style={{ width: 80, textAlign: "center" }} value={item.value} key={item.value}>{item.key}</RadioButton>
  9481. )
  9482. }
  9483. </RadioGroup>
  9484. </div>
  9485. <div
  9486. style={{
  9487. padding: "5px 0 10px 0",
  9488. paddingLeft: this.getPaddingLeft(this.state.gtl),
  9489. margin: "5px 0 10px 55px",
  9490. borderBottom: "1px dotted black"
  9491. }}
  9492. >
  9493. <RadioGroup
  9494. onChange={e => {
  9495. this.setState({
  9496. communicationSkills: e.target.value
  9497. })
  9498. }}
  9499. value={this.state.communicationSkills}>
  9500. {
  9501. !!this.state.gtlList && this.state.gtlList.map(item =>
  9502. <RadioButton style={{ textAlign: "center" }} value={item} key={item}>{item}分</RadioButton>
  9503. )
  9504. }
  9505. </RadioGroup>
  9506. </div>
  9507. <div>
  9508. <span style={{ width: 50, display: "inline-block" }}>响&nbsp;应&nbsp;度</span>:
  9509. <RadioGroup
  9510. onChange={e => {
  9511. this.setState({
  9512. xyd: e.target.value,
  9513. yxdList: this.getRadioList(e.target.value, this.state.cSort, "xyd"),
  9514. responsiveness: e.target.value == 4 ? 0 : undefined,
  9515. })
  9516. }}
  9517. value={this.state.xyd}>
  9518. {
  9519. [
  9520. { key: "很速度", value: 1, },
  9521. { key: "速度", value: 2, },
  9522. { key: "一般", value: 3, },
  9523. { key: "很慢", value: 4, },
  9524. ].map(item =>
  9525. <RadioButton style={{ width: 80, textAlign: "center" }} value={item.value} key={item.value}>{item.key}</RadioButton>
  9526. )
  9527. }
  9528. </RadioGroup>
  9529. </div>
  9530. <div
  9531. style={{
  9532. padding: "5px 0 10px 0",
  9533. paddingLeft: this.getPaddingLeft(this.state.xyd),
  9534. margin: "5px 0 10px 55px",
  9535. borderBottom: "1px dotted black"
  9536. }}
  9537. >
  9538. <RadioGroup
  9539. onChange={e => {
  9540. this.setState({
  9541. responsiveness: e.target.value
  9542. })
  9543. }}
  9544. value={this.state.responsiveness}>
  9545. {
  9546. !!this.state.yxdList && this.state.yxdList.map(item =>
  9547. <RadioButton style={{ textAlign: "center" }} value={item} key={item}>{item}分</RadioButton>
  9548. )
  9549. }
  9550. </RadioGroup>
  9551. </div>
  9552. <div>
  9553. <span style={{ width: 50, display: "inline-block" }}>公出形象</span>:
  9554. <RadioGroup
  9555. onChange={e => {
  9556. this.setState({
  9557. gcxx: e.target.value,
  9558. gcxxList: this.getRadioList(e.target.value, this.state.cSort, "gcxx"),
  9559. publicImage: e.target.value == 4 ? 0 : undefined,
  9560. })
  9561. }}
  9562. value={this.state.gcxx}>
  9563. {
  9564. [
  9565. { key: "很满意", value: 1, },
  9566. { key: "满意", value: 2, },
  9567. { key: "一般", value: 3, },
  9568. { key: "不满意", value: 4, },
  9569. ].map(item =>
  9570. <RadioButton style={{ width: 80, textAlign: "center" }} value={item.value} key={item.value}>{item.key}</RadioButton>
  9571. )
  9572. }
  9573. </RadioGroup>
  9574. </div>
  9575. <div
  9576. style={{
  9577. padding: "5px 0 10px 0",
  9578. paddingLeft: this.getPaddingLeft(this.state.gcxx),
  9579. margin: "5px 0 10px 55px",
  9580. borderBottom: "1px dotted black"
  9581. }}
  9582. >
  9583. <RadioGroup
  9584. onChange={e => {
  9585. this.setState({
  9586. publicImage: e.target.value
  9587. })
  9588. }}
  9589. value={this.state.publicImage}>
  9590. {
  9591. !!this.state.gcxxList && this.state.gcxxList.map(item =>
  9592. <RadioButton style={{ textAlign: "center" }} value={item} key={item}>{item}分</RadioButton>
  9593. )
  9594. }
  9595. </RadioGroup>
  9596. </div>
  9597. <div>
  9598. <span style={{ width: 50, display: "inline-block" }}>服务态度</span>:
  9599. <RadioGroup
  9600. onChange={e => {
  9601. this.setState({
  9602. fwtd: e.target.value,
  9603. fwtdList: this.getRadioList(e.target.value, this.state.cSort, "fwtd"),
  9604. serviceAttitude: e.target.value == 4 ? 0 : undefined,
  9605. })
  9606. }}
  9607. value={this.state.fwtd}>
  9608. {
  9609. [
  9610. { key: "很满意", value: 1, },
  9611. { key: "满意", value: 2, },
  9612. { key: "一般", value: 3, },
  9613. { key: "不满意", value: 4, },
  9614. ].map(item =>
  9615. <RadioButton style={{ width: 80, textAlign: "center" }} value={item.value} key={item.value}>{item.key}</RadioButton>
  9616. )
  9617. }
  9618. </RadioGroup>
  9619. </div>
  9620. <div
  9621. style={{
  9622. padding: "5px 0 10px 0",
  9623. paddingLeft: this.getPaddingLeft(this.state.fwtd),
  9624. margin: "5px 0 10px 55px",
  9625. borderBottom: this.state.cSort == 6 ? "1px dotted black" : 0
  9626. }}
  9627. >
  9628. <RadioGroup
  9629. onChange={e => {
  9630. this.setState({
  9631. serviceAttitude: e.target.value
  9632. })
  9633. }}
  9634. value={this.state.serviceAttitude}>
  9635. {
  9636. !!this.state.fwtdList && this.state.fwtdList.map(item =>
  9637. <RadioButton style={{ textAlign: "center" }} value={item} key={item}>{item}分</RadioButton>
  9638. )
  9639. }
  9640. </RadioGroup>
  9641. </div>
  9642. {
  9643. this.state.cSort == 6 &&
  9644. <div>
  9645. <span style={{ width: 50, display: "inline-block" }}>月度汇报</span>:
  9646. <RadioGroup
  9647. onChange={e => {
  9648. this.setState({
  9649. ydhb: e.target.value,
  9650. ydhbList: this.getRadioList(e.target.value, this.state.cSort, "ydhb"),
  9651. monthlyReport: e.target.value == 4 ? 0 : undefined,
  9652. })
  9653. }}
  9654. value={this.state.ydhb}>
  9655. {
  9656. [
  9657. { key: "很满意", value: 1, },
  9658. { key: "满意", value: 2, },
  9659. { key: "一般", value: 3, },
  9660. { key: "不满意", value: 4, },
  9661. ].map(item =>
  9662. <RadioButton style={{ width: 80, textAlign: "center" }} value={item.value} key={item.value}>{item.key}</RadioButton>
  9663. )
  9664. }
  9665. </RadioGroup>
  9666. </div>
  9667. }
  9668. {
  9669. this.state.cSort == 6 &&
  9670. <div
  9671. style={{
  9672. padding: "5px 0 10px 0",
  9673. paddingLeft: this.getPaddingLeft(this.state.ydhb),
  9674. margin: "5px 0 10px 55px",
  9675. borderBottom: "1px dotted black"
  9676. }}
  9677. >
  9678. <RadioGroup
  9679. onChange={e => {
  9680. this.setState({
  9681. monthlyReport: e.target.value
  9682. })
  9683. }}
  9684. value={this.state.monthlyReport}>
  9685. {
  9686. !!this.state.ydhbList && this.state.ydhbList.map(item =>
  9687. <RadioButton style={{ textAlign: "center" }} value={item} key={item}>{item}分</RadioButton>
  9688. )
  9689. }
  9690. </RadioGroup>
  9691. </div>
  9692. }
  9693. {
  9694. this.state.cSort == 6 &&
  9695. <div>
  9696. <span style={{ width: 50, display: "inline-block" }}>年度汇报</span>:
  9697. <RadioGroup
  9698. onChange={e => {
  9699. this.setState({
  9700. ndhb: e.target.value,
  9701. ndhbList: this.getRadioList(e.target.value, this.state.cSort, "ndhb"),
  9702. yearReport: e.target.value == 4 ? 0 : undefined,
  9703. })
  9704. }}
  9705. value={this.state.ndhb}>
  9706. {
  9707. [
  9708. { key: "很满意", value: 1, },
  9709. { key: "满意", value: 2, },
  9710. { key: "一般", value: 3, },
  9711. { key: "不满意", value: 4, },
  9712. ].map(item =>
  9713. <RadioButton style={{ width: 80, textAlign: "center" }} value={item.value} key={item.value}>{item.key}</RadioButton>
  9714. )
  9715. }
  9716. </RadioGroup>
  9717. </div>
  9718. }
  9719. {
  9720. this.state.cSort == 6 &&
  9721. <div
  9722. style={{
  9723. padding: "5px 0 10px 0",
  9724. paddingLeft: this.getPaddingLeft(this.state.ndhb),
  9725. margin: "5px 0 10px 55px",
  9726. }}
  9727. >
  9728. <RadioGroup
  9729. onChange={e => {
  9730. this.setState({
  9731. yearReport: e.target.value
  9732. })
  9733. }}
  9734. value={this.state.yearReport}>
  9735. {
  9736. !!this.state.ndhbList && this.state.ndhbList.map(item =>
  9737. <RadioButton style={{ textAlign: "center" }} value={item} key={item}>{item}分</RadioButton>
  9738. )
  9739. }
  9740. </RadioGroup>
  9741. </div>
  9742. }
  9743. <div style={{ marginBottom: 5, display: "flex", flexDirection: "row" }}>
  9744. <span style={{ width: 50, display: "inline-block" }}>评分理由</span>:
  9745. <TextArea
  9746. style={{ width: 600 }}
  9747. rows={3}
  9748. value={this.state.marks}
  9749. onChange={(e) => {
  9750. this.setState({
  9751. marks: e.target.value,
  9752. })
  9753. }}
  9754. placeholder="请填写本次评分的判断依据,至少10字以上"
  9755. />
  9756. </div>
  9757. <div style={{ marginTop: 10, textAlign: "center" }}>
  9758. <Button
  9759. type="primary"
  9760. onClick={() => {
  9761. if (!this.state.professionalism && this.state.professionalism != 0) {
  9762. message.warning("专业度未打分")
  9763. return
  9764. }
  9765. if (!this.state.communicationSkills && this.state.communicationSkills != 0) {
  9766. message.warning("沟通力未打分")
  9767. return
  9768. }
  9769. if (!this.state.responsiveness && this.state.responsiveness != 0) {
  9770. message.warning("响应度未打分")
  9771. return
  9772. }
  9773. if (!this.state.publicImage && this.state.publicImage != 0) {
  9774. message.warning("公出形象未打分")
  9775. return
  9776. }
  9777. if (!this.state.serviceAttitude && this.state.serviceAttitude != 0) {
  9778. message.warning("服务态度未打分")
  9779. return
  9780. }
  9781. if (this.state.cSort == 6 && !this.state.monthlyReport && this.state.monthlyReport != 0) {
  9782. message.warning("月度汇报未打分")
  9783. return
  9784. }
  9785. if (this.state.cSort == 6 && !this.state.yearReport && this.state.yearReport != 0) {
  9786. message.warning("年度汇报未打分")
  9787. return
  9788. }
  9789. if (this.state.marks.length < 10) {
  9790. message.warning("请填写10字以上的评分依据")
  9791. return
  9792. }
  9793. const _this = this
  9794. confirm({
  9795. title: '您确定提交本次评分吗?',
  9796. content: '',
  9797. onOk() {
  9798. _this.updateByTid()
  9799. },
  9800. });
  9801. }}
  9802. >
  9803. 确定
  9804. </Button>
  9805. </div>
  9806. <div style={{ textAlign: "center", marginBottom: 10, color: "red" }}>注:请公平公正为本项目咨询老师评分!评分后不可修改</div>
  9807. </div>
  9808. }
  9809. {
  9810. this.state.score == "selcet" &&
  9811. <div style={{ position: "relative" }}>
  9812. <div
  9813. style={{
  9814. position: "absolute",
  9815. right: 100,
  9816. top: 50,
  9817. fontSize: "40px",
  9818. color: "red"
  9819. }}
  9820. >{this.state.dataScore.professionalism + this.state.dataScore.communicationSkills + this.state.dataScore.responsiveness + this.state.dataScore.publicImage + this.state.dataScore.serviceAttitude + this.state.dataScore.monthlyReport + this.state.dataScore.yearReport}分</div>
  9821. <div>
  9822. <span style={{ width: 50, display: "inline-block", margin: "5px 0" }}>项目名称</span>:{this.state.cname}
  9823. </div>
  9824. <div>
  9825. <span style={{ width: 50, display: "inline-block", margin: "5px 0" }}>项目咨询</span>:{this.state.tname}
  9826. </div>
  9827. <div>
  9828. <span style={{ width: 50, display: "inline-block", margin: "5px 0" }}>专&nbsp;业&nbsp;度</span>:{this.getScore("zyd", this.state.cSort, this.state.dataScore.professionalism)}
  9829. </div>
  9830. <div>
  9831. <span style={{ width: 50, display: "inline-block", margin: "5px 0" }}>沟&nbsp;通&nbsp;力</span>:{this.getScore("gtl", this.state.cSort, this.state.dataScore.communicationSkills)}
  9832. </div>
  9833. <div>
  9834. <span style={{ width: 50, display: "inline-block", margin: "5px 0" }}>响&nbsp;应&nbsp;度</span>:{this.getScore("xyd", this.state.cSort, this.state.dataScore.responsiveness)}
  9835. </div>
  9836. <div>
  9837. <span style={{ width: 50, display: "inline-block", margin: "5px 0" }}>公出形象</span>:{this.getScore("gcxx", this.state.cSort, this.state.dataScore.publicImage)}
  9838. </div>
  9839. <div>
  9840. <span style={{ width: 50, display: "inline-block", margin: "5px 0" }}>服务态度</span>:{this.getScore("fwtd", this.state.cSort, this.state.dataScore.serviceAttitude)}
  9841. </div>
  9842. {this.state.cSort == 6 &&
  9843. <div>
  9844. <span style={{ width: 50, display: "inline-block", margin: "5px 0" }}>月度汇报</span>:{this.getScore("ydhb", this.state.cSort, this.state.dataScore.monthlyReport)}
  9845. </div>}
  9846. {this.state.cSort == 6 &&
  9847. <div>
  9848. <span style={{ width: 50, display: "inline-block", margin: "5px 0" }}>年度汇报</span>:{this.getScore("ndhb", this.state.cSort, this.state.dataScore.yearReport)}
  9849. </div>}
  9850. <div>
  9851. <span style={{ width: 50, display: "inline-block", margin: "5px 0" }}>评分理由</span>:{this.state.dataScore.remarks}
  9852. </div>
  9853. <div>
  9854. <span style={{ width: 50, display: "inline-block", margin: "5px 0" }}>评分时间</span>:{moment(this.state.dataScore.createTime).format('YYYY-MM-DD HH:mm:ss')}
  9855. </div>
  9856. <div style={{ marginTop: 10, textAlign: "center" }}>
  9857. <Button
  9858. type="primary"
  9859. onClick={() => {
  9860. this.setState({
  9861. score: ""
  9862. })
  9863. }}
  9864. >
  9865. 关闭
  9866. </Button>
  9867. </div>
  9868. </div>
  9869. }
  9870. </Modal>
  9871. </div >);
  9872. },
  9873. })
  9874. );
  9875. export default Form.create()(NewService);