123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480 |
- <template>
- <div class="cost-all" v-loading.fullscreen.lock="costloading">
- <div class="cost-box">
- <el-dialog width="85%" title="地接历史费用" :visible.sync="historyCarDialog" @close="dialogClose">
- <div style="display: flex;">
- <div style="width: 30%;">
- <el-input v-model="historyCarInput" placeholder="请输入城市名称"></el-input>
- </div>
- <div style="width: 2%;"></div>
- <div><el-button type="primary" @click="historyCarSearch">搜索</el-button></div>
- </div>
- <br />
-
- <el-table @current-change="historyCarChange" highlight-current-row border
- :data="historyCarData.slice((currentPage - 1) * pageSize, currentPage * pageSize)">
- <template slot-scope="scope">
- <el-table-column v-for="(item, index) in historyCarCloumns" :property="item.value"
- :label="item.label" :key="item.value"></el-table-column>
- </template>
- </el-table>
- <div class="btn-dialog-cost">
- <el-button size="small" @click="historyCarYes" type="primary">采用历史的行程数据</el-button>
-
- <el-button @click="historyCarDialog = false; historyCarSelectObject = {}"
- size="small">采用现有的自定义数据</el-button>
- </div>
- <div class="block">
- <el-pagination align='center' @current-change="handleCurrentChange" :current-page="currentPage"
- :page-sizes="[5, 7, 10, 20]" :page-size="pageSize" layout="total, sizes, prev, pager, next"
- @size-change="handleSizeChange" :total="historyCarData.length">
- </el-pagination>
- </div>
- </el-dialog>
- <el-dialog width="500" title="机票行程数据" :visible.sync="dialogTableVisible">
- <el-table border :data="gridData">
- <el-table-column property="day" label="DAY" width="150"></el-table-column>
- <el-table-column property="date" label="DATE" width="200"></el-table-column>
- <el-table-column property="itin" label="ITIN"></el-table-column>
- </el-table>
- <div class="btn-dialog-cost">
- <el-button @click="confirmationTP" size="small" type="primary">采用机票同事的行程数据</el-button>
-
- <el-button @click="dialogTableVisible = false" size="small">采用现有的自定义数据</el-button>
- </div>
- </el-dialog>
- <el-dialog width="80%" title="酒店询价数据" :visible.sync="dialogTableVisibleXJ">
- <el-table :data="tableDatas" border>
- <el-table-column type="index" label="选中" width="55">
- <template slot-scope="scope">
- <el-checkbox :value='checkboxsXJ.includes(scope.row.id)'
- @change='CheckboxChangeXJ(scope.row.id)'></el-checkbox>
- </template>
- </el-table-column>
- <el-table-column prop="city" label="城市" width="120">
- </el-table-column>
- <el-table-column prop="name" label="酒店名称">
- </el-table-column>
- <el-table-column prop="checkInDate" label="入住日期" width="100">
- <template slot-scope="scope">
- {{ scope.row.checkInDate | filter_time }}
- </template>
- </el-table-column>
- <el-table-column prop="checkOutDate" label="退房日期" width="100">
- <template slot-scope="scope">
- {{ scope.row.checkOutDate | filter_time }}
- </template>
- </el-table-column>
- <el-table-column prop="selectDt" label="查询时间" width="150">
- </el-table-column>
- <el-table-column prop="createTime" label="SGR(价格/币种/数量)" width="120">
- <template slot-scope="scope">
- {{ scope.row.singlePrice | townum }} / {{ scope.row.singleCurrency }} / {{
- scope.row.singleQuantity }}
- </template>
- </el-table-column>
- <el-table-column prop="createTime" label="TBR(价格/币种/数量)" width="120">
- <template slot-scope="scope">
- {{ scope.row.doublePrice | townum }} / {{ scope.row.doubleCurrency }} / {{
- scope.row.doubleQuantity }}
- </template>
- </el-table-column>
- <el-table-column prop="createTime" label="JS/ES(价格/币种/数量)" width="120">
- <template slot-scope="scope">
- {{ scope.row.suitePrice | townum }} / {{ scope.row.suiteCurrency }} / {{
- scope.row.suiteQuantity }}
- </template>
- </el-table-column>
- <el-table-column prop="createTime" label="SUITE(价格/币种/数量)" width="120">
- <template slot-scope="scope">
- {{ scope.row.otherPrice | townum }} / {{ scope.row.otherCurrency }} / {{
- scope.row.otherQuantity }}
- </template>
- </el-table-column>
- <el-table-column prop="createUserName" label="查询人" width="80">
- </el-table-column>
-
-
- </el-table>
- <div class="btn-dialog-cost">
- <el-button size="small" type="primary" @click='adoptHotelData'>采用酒店同事的询价数据</el-button>
-
- <el-button @click="dialogTableVisibleXJ = false" size="small">采用现有的自定义数据</el-button>
- </div>
- </el-dialog>
- <div class="cost-haed">
- <div class="ser-btn">
- <div class="ser-btn-li Cost_topFlex" style="display: flex;">
- <el-select size="small" v-model="diid" filterable placeholder="请选择" @change="groupChange">
- <el-option v-for="item in options" :key="item.id" :label="item.groupName" :value="item.id">
- <span v-if="item.isTrue == 'True'" style="color:#409EFF">{{ item.groupName }}</span>
- <span v-else style="color:gray">{{ item.groupName }}</span>
- </el-option>
- </el-select>
- <div
- style="line-height: 28px;font-size: 14px;width: 90px;color: #555;text-align: right;padding-right: 12px;">
- 分段类型:
- </div>
- <el-select style="width:200px" size="small" v-model="costTypevalue" placeholder="请选择"
- @change="costTypeSelect">
- <el-option v-for="item in costType" :key="item.value" :label="item.label" :value="item.value">
- </el-option>
- </el-select>
- </div>
- <div class="ser-btn-li">
- <el-button size="small" :type="blackCodeIsTrue ? 'primary' : 'danger'"
- @click="importBlackCode">导入机票行程数据</el-button>
- <el-button size="small" :type="hotelIsTrue ? 'primary' : 'danger'"
- @click="PostHotelInquiryPageItem">查看酒店询价价格</el-button>
-
- <el-button size="small" type="primary" @click="GetPriceCheckWord">生成报价单</el-button>
- <el-button size="small" type="primary" @click="GetClientWord">导出客户报表</el-button>
- <el-button size="small" type="primary" @click="GetGroupCostExcel">导出成本</el-button>
-
- <el-button v-if="isShare == 1" size="small" type="info" @click="GroupIsShare">取消成本通知</el-button>
- <el-button v-if="isShare == 0" size="small" type="primary" @click="GroupIsShare">成本通知</el-button>
- <el-button size="small" type="primary" @click="save">保存设置</el-button>
- </div>
- </div>
- <div class="cost-input">
- <el-form :inline="true" class="demo-form-inline" :model='AGroupCostParameter' ref="inputs"
- :rules="rules">
- <el-form-item label="税率:" prop="tax">
- <el-input size="small" v-model="AGroupCostParameter.tax" placeholder="税率"></el-input>
- </el-form-item>
- <el-form-item label="货币:">
- <el-select size="small" v-model="AGroupCostParameter.currency" @change="changeCurrency"
- placeholder="请选择">
- <el-option v-for="item in currencyOption" :key="item.currencyId" :label="item.currencyCode"
- :value="item.currencyId">
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="汇率:" prop="rate">
- <el-input size="small" v-model="AGroupCostParameter.rate" placeholder="汇率"></el-input>
- </el-form-item>
- </el-form>
- <div v-show="costTypevalue == 'A'">
- <el-form :inline="true" class="demo-form-inline" :rules="HotelRules" ref="DHotel"
- :model="costTypeHotelNumbers.filter(item => item.type == 'Default')[0]">
- <el-form-item label="TBR:" prop="tbr">
- <el-input size="small" @blur='inSelectChangeCheck'
- v-model.number="costTypeHotelNumbers.filter(item => item.type == 'Default')[0].tbr"
- placeholder="TBR"><i slot="suffix"
- style="font-style:normal;margin-right: 10px;">间</i></el-input>
- </el-form-item>
- <el-form-item label="SGR:" prop="sgr">
- <el-input size="small" @blur='inSelectChangeCheck'
- v-model.number="costTypeHotelNumbers.filter(item => item.type == 'Default')[0].sgr"
- placeholder="SGR"><i slot="suffix"
- style="font-style:normal;margin-right: 10px;">间</i></el-input>
- </el-form-item>
- <el-form-item label="JS/ES:" prop="jses">
- <el-input size="small" @blur='inSelectChangeCheck'
- v-model.number="costTypeHotelNumbers.filter(item => item.type == 'Default')[0].jses"
- placeholder="JS/ES"><i slot="suffix"
- style="font-style:normal;margin-right: 10px;">间</i></el-input>
- </el-form-item>
- <el-form-item label="SUITE:" prop="suite">
- <el-input size="small" @blur='inSelectChangeCheck'
- v-model.number="costTypeHotelNumbers.filter(item => item.type == 'Default')[0].suite"
- placeholder="SUITE"><i slot="suffix"
- style="font-style:normal;margin-right: 10px;">间</i></el-input>
- </el-form-item>
- </el-form>
- </div>
- <div v-show="costTypevalue == 'B'" class="CostBShow">
- <el-row>
- <el-form ref="Asection" :inline="true" class="demo-form-inline" :rules="CostTimeRules"
- :model="AGroupCostParameter">
- <el-col :span="5">
- <div> <el-form-item label="第一段开始:" prop="costTypeStartTime">
- <el-date-picker size="small" v-model="AGroupCostParameter.costTypeStartTime"
- type="date" placeholder="第一段开始" format="yyyy-MM-dd"
- value-format="yyyy-MM-dd">
- </el-date-picker>
- </el-form-item>
- </div>
- </el-col>
- <el-col :span="4">
- <div> <el-form-item label="结束:" prop="costTypeendTime"><el-date-picker size="small"
- v-model="AGroupCostParameter.costTypeendTime" type="date" placeholder="结束"
- format="yyyy-MM-dd" value-format="yyyy-MM-dd">
- </el-date-picker>
- </el-form-item>
- </div>
- </el-col>
- <el-col :span="3">
- <div>
- <el-form-item label="人数:" prop="costTypenumber"><el-input size="small"
- placeholder="人数" v-model.number="AGroupCostParameter.costTypenumber"
- clearable>
- </el-input>
- </el-form-item>
- </div>
- </el-col>
- </el-form>
- <el-form ref="AHotel" :inline="true" class="demo-form-inline" :rules="HotelRules"
- :model="costTypeHotelNumbers.filter(item => item.type == 'A')[0]">
- <el-col :span="3">
- <div><el-form-item label="TBR:" prop="tbr">
- <el-input size="small" @blur='inSelectChangeCheck'
- v-model.number="costTypeHotelNumbers.filter(item => item.type == 'A')[0].tbr"
- placeholder="TBR"><i slot="suffix"
- style="font-style:normal;margin-right: 10px;">间</i></el-input>
- </el-form-item></div>
- </el-col>
- <el-col :span="3">
- <div> <el-form-item label="SGR:" prop="sgr">
- <el-input size="small" @blur='inSelectChangeCheck'
- v-model.number="costTypeHotelNumbers.filter(item => item.type == 'A')[0].sgr"
- placeholder="SGR"><i slot="suffix"
- style="font-style:normal;margin-right: 10px;">间</i></el-input>
- </el-form-item></div>
- </el-col>
- <el-col :span="3">
- <div><el-form-item label="JS/ES:" prop="jses">
- <el-input size="small" @blur='inSelectChangeCheck'
- v-model.number="costTypeHotelNumbers.filter(item => item.type == 'A')[0].jses"
- placeholder="JS/ES"><i slot="suffix"
- style="font-style:normal;margin-right: 10px;">间</i></el-input>
- </el-form-item></div>
- </el-col>
- <el-col :span="3">
- <div><el-form-item label="SUITE:" prop="suite">
- <el-input size="small" @blur='inSelectChangeCheck'
- v-model.number="costTypeHotelNumbers.filter(item => item.type == 'A')[0].suite"
- placeholder="SUITE"><i slot="suffix"
- style="font-style:normal;margin-right: 10px;">间</i></el-input>
- </el-form-item></div>
- </el-col>
- </el-form>
- </el-row>
- <el-row>
- <el-form ref="Bsection" :inline="true" class="demo-form-inline" :rules="CostTimeRules"
- :model="BGroupCostParameter">
- <el-col :span="5">
- <div> <el-form-item label="第二段开始:" prop="costTypeStartTime">
- <el-date-picker size="small" v-model="BGroupCostParameter.costTypeStartTime"
- type="date" placeholder="第二段开始" format="yyyy-MM-dd"
- value-format="yyyy-MM-dd">
- </el-date-picker>
- </el-form-item>
- </div>
- </el-col>
- <el-col :span="4">
- <div> <el-form-item label="结束:" prop="costTypeendTime"><el-date-picker size="small"
- v-model="BGroupCostParameter.costTypeendTime" type="date" placeholder="结束"
- format="yyyy-MM-dd" value-format="yyyy-MM-dd">
- </el-date-picker>
- </el-form-item>
- </div>
- </el-col>
- <el-col :span="3">
- <div>
- <el-form-item label="人数:" prop="costTypenumber"><el-input size="small"
- placeholder="人数" v-model.number="BGroupCostParameter.costTypenumber"
- clearable>
- </el-input>
- </el-form-item>
- </div>
- </el-col>
- </el-form>
- <el-form ref="BHotel" :inline="true" class="demo-form-inline" :rules="HotelRules"
- :model="costTypeHotelNumbers.filter(item => item.type == 'B')[0]">
- <el-col :span="3">
- <div>
- <el-form-item label="TBR:" prop="tbr">
- <el-input size="small" @blur='inSelectChangeCheck'
- v-model.number="costTypeHotelNumbers.filter(item => item.type == 'B')[0].tbr"
- placeholder="TBR"><i slot="suffix"
- style="font-style:normal;margin-right: 10px;">间</i></el-input>
- </el-form-item>
- </div>
- </el-col>
- <el-col :span="3">
- <div> <el-form-item label="SGR:" prop="sgr">
- <el-input size="small" @blur='inSelectChangeCheck'
- v-model.number="costTypeHotelNumbers.filter(item => item.type == 'B')[0].sgr"
- placeholder="SGR"><i slot="suffix"
- style="font-style:normal;margin-right: 10px;">间</i></el-input>
- </el-form-item></div>
- </el-col>
- <el-col :span="3">
- <div><el-form-item label="JS/ES:" prop="jses">
- <el-input size="small" @blur='inSelectChangeCheck'
- v-model.number="costTypeHotelNumbers.filter(item => item.type == 'B')[0].jses"
- placeholder="JS/ES"><i slot="suffix"
- style="font-style:normal;margin-right: 10px;">间</i></el-input>
- </el-form-item></div>
- </el-col>
- <el-col :span="3">
- <div><el-form-item label="SUITE:" prop="suite">
- <el-input size="small" @blur='inSelectChangeCheck'
- v-model.number="costTypeHotelNumbers.filter(item => item.type == 'B')[0].suite"
- placeholder="SUITE"><i slot="suffix"
- style="font-style:normal;margin-right: 10px;">间</i></el-input>
- </el-form-item></div>
- </el-col>
- </el-form>
- </el-row>
- </div>
- </div>
- <div class="cost-info">
- <div class="cost-info-li">
- <label>团 号:</label>
- <span>{{ grouptitleinfo.tourCode }}</span>
- </div>
- <div class="cost-info-li">
- <label>客 户:</label>
- <span>{{ grouptitleinfo.clientName }}</span>
- </div>
- <div class="cost-info-li">
- <label>出访国家:</label>
- <span>{{ grouptitleinfo.visitCountry }}</span>
- </div>
- <div class="cost-info-li">
- <label>起止日期:</label>
- <span>{{ grouptitleinfo.visitStartDate }} -
- {{ grouptitleinfo.visitEndDate
- }}</span>
- </div>
- <div class="cost-info-li">
- <label>天数/人数:</label>
- <span>{{ grouptitleinfo.visitDays }}天/{{ grouptitleinfo.visitPNumber }}人</span>
- </div>
- <div class="cost-info-li">
-
- <el-popover class="clientinfo" placement="bottom" width="952" trigger="hover">
- <el-table :cell-style="{ 'text-align': 'center' }"
- :header-cell-style="{ 'text-align': 'center' }" max-height="600" border :data="rollcallarr">
- <el-table-column width="100" property="date" label="姓名" align="center">
- <template slot-scope="scope">
- {{ scope.row.lastName }}{{ scope.row.firstName }}
- </template>
- </el-table-column>
- <el-table-column width="200" property="lastName" label="拼音" align="center">
- <template slot-scope="scope">
- {{ pinyingxing(scope.row.lastName) }}/{{ pinyingxing(scope.row.firstName) }}
- </template>
- </el-table-column>
- <el-table-column width="50" property="sex" label="性别" align="center">
- <template slot-scope="scope">
- {{ scope.row.sex == 0 ? '男' : '女' }}
- </template>
- </el-table-column>
- <el-table-column width="200" property="companyFullName" label="单位" align="center">
- <template slot-scope="scope">
- {{ scope.row.companyFullName }}
- </template>
- </el-table-column>
- <el-table-column width="200" property="job" label="职位" align="center">
- <template slot-scope="scope">
- {{ scope.row.job }}
- </template>
- </el-table-column>
- <el-table-column width="200" property="idCardNo" label="身份证号码" align="center">
- <template slot-scope="scope">
- {{ scope.row.idCardNo }}
- </template>
- </el-table-column>
-
- {{ fgarr(scope.row.birthDay) }}
- </el-table>
- <span slot="reference"
- style="cursor: pointer;margin-left: 20px;color:red;font-size:14px">"移上查看客户名单"</span>
- </el-popover>
- </div>
- </div>
- </div>
- <div style="color: #606266;font-size: 15px;font-weight: 600;">请选择要显示的项:</div>
- <el-checkbox-group class="form-ss" v-model="CheckBoxListSelect.filter(item => item.cbType == 'Top')[0].cbValues"
- @change="TopChange">
- <el-checkbox v-for="( item, index ) in checkOptions " :key="index" :title="item.tips"
- :label="item.label" @change="(val) => { topcheckboxChange(val, item.label) }"></el-checkbox>
- </el-checkbox-group>
- <el-table :stripe='true' class="tables" style="font-size:10px" :summary-method="getSummaries" show-summary
- show-overflow-tooltip :data="tableData" :border="true" size="small" row-class-name="row"
- cell-class-name="column" :highlight-current-row="true" :fit="true">
-
- <template v-for="( item, index ) in tableLabel">
- <el-table-column :key="index" :prop="item.prop" :width="item.width != '100' ? columnWidth : item.width"
- :label="item.label"
- v-if="CheckBoxListSelect.filter(item => item.cbType == 'Top')[0].cbValues.includes(item.label)">
-
- <template slot="header" slot-scope="scope">
- <el-tooltip effect="dark" :content="item.describe" placement="top">
- <div>
- <span class="rapAddress">{{ item.label }}</span>
- <span v-show="item.describe.indexOf('个人成本') != -1" style=" color:red">*</span>
- </div>
- </el-tooltip>
- </template>
- <template slot-scope="scope">
- <div v-if="item.prop === 'sales'">
- <el-input size="mini" :ref="'el-input-' + index" v-model="scope.row[item.prop]"
- show-word-limit />
- </div>
- <div v-else-if="item.prop === 'day'">
- <el-input size="mini" :ref="'el-input-' + index" v-model="scope.row[item.prop]"
- type="number" controls-position="right" min="0"
- @change="NumberSetTime(scope.row[item.prop], scope.$index)">
- <div style="display: flex;flex-direction: column;height: 28px;justify-content: center;margin-right: -5px;font-size: 14px;"
- slot="suffix" class="number-input-icon">
- <i class="el-icon-caret-top btntop" @click="increase(scope.$index)"></i>
- <i class="el-icon-caret-bottom btnbottom" @click="decrease(scope.$index)"></i>
- </div>
- </el-input>
- </div>
- <div v-else-if="item.prop === 'date'">
- <span :title="scope.row[item.prop]">
-
- <el-date-picker @change="TimeUpdateAnewOrderby(scope.$index)" :clearable="false"
- size="mini" v-model="scope.row[item.prop]" type="date" value-format="yyyy-MM-dd"
- placeholder="选择日期">
- </el-date-picker>
- </span>
- <div style="position: absolute;left: 36%;">
- {{ GetWeek(scope.row[item.prop]) }}
- </div>
- </div>
- <div v-else-if="item.prop === 'sale'">
- <el-row class="figures-btn">
- <el-button @click="handleEdit(scope.$index, scope.row, 1)" size="mini"
- type="primary">司兼导</el-button>
- <el-button @click="handleEdit(scope.$index, scope.row, 2)" size="mini" type="primary">导
- 游</el-button>
- <el-button @click="handleEdit(scope.$index, scope.row, 3)" size="mini"
- type="primary">车数据</el-button>
- <el-button @click="handleEdit(scope.$index, scope.row, 4)" size="mini" type="primary">景
- 点</el-button>
- <el-button style='display:flex' class="history-btn"
- @click="GetHistoryCarData(scope.$index)" size="mini" type="primary">历史数据
- </el-button>
- </el-row>
- </div>
- <div v-else-if="item.width == 100">
- <div v-if="item.label == 'ITIN'">
- <el-input type="textarea" @input="capslk(scope.row[item.prop], scope.$index)" :rows="6"
- placeholder="请输入内容" v-model="scope.row[item.prop]"></el-input>
- </div>
- <div class="accon-box" v-else-if="item.label == 'ACCO N'">
- <el-input @focus="acconinput(scope.row[item.prop], scope.$index)"
- @blur="acconblur(scope.$index)"
- @input="acconinput(scope.row[item.prop], scope.$index)" style="position: relative;"
- type="textarea" :rows="6" placeholder="请输入内容"
- v-model="scope.row[item.prop]"></el-input>
- <div class="accon-ul">
- <div @click="acconclick(item, scope.$index)" v-for="(item, index) in acconarrs"
- :key="index" class="accon-li">{{ item }}</div>
- </div>
- </div>
- <div v-else>
- <el-input type="textarea" :rows="6" placeholder="请输入内容"
- v-model="scope.row[item.prop]"></el-input>
- </div>
- </div>
- <div v-else-if="item.prop == 'b' || item.prop == 'l' || item.prop == 'd'">
- <el-popover placement="top-start" title="餐食报批费用:" trigger="hover">
- <div>
- <span style="color:red;">*具体价格以当前货币汇率为准!</span><br />
- <div v-if="ShowMeals.length == 0">
- <br />
- <span style="color:red">暂无数据!</span>
- </div>
- <div v-else>
- <div v-for="( item, index ) in ShowMeals" :key="index">
- {{ item.countryOrCity }} <span style="color:green;">{{
- item.price }}</span>元/人
- <span v-if="item.currPrice">(<span style="color:green;">{{
- item.currPrice }}</span> </span>
- <span v-if="item.currStr">{{
- item.currStr }})</span>
- <br>
- </div>
- </div>
- </div>
- <el-input size="mini" slot="reference" v-model="scope.row[item.prop]">
- </el-input>
- </el-popover>
- </div>
- <div
- v-else-if="item.prop == 'suite' || item.prop == 'jS_ES' || item.prop == 'sgr' || item.prop == 'tbr'">
- <el-popover placement="top-start" title="酒店报批费用:" trigger="hover">
- <div>
- <span style="color:red;">*具体价格以当前货币汇率为准!</span><br />
- <div v-if="ShowHotel.length == 0">
- <br />
- <span style="color:red">暂无数据!</span>
- </div>
- <div v-else>
- <div v-for="( item, index ) in ShowHotel" :key="index">
- {{ item.countryOrCity }} <span style="color:green;">{{
- item.price }}</span>元/人
- <span v-if="item.currPrice">(<span style="color:green;">{{
- item.currPrice }}</span> </span>
- <span v-if="item.currStr">{{
- item.currStr }})</span>
- <br>
- </div>
- </div>
- </div>
- <el-input size="mini" slot="reference" v-model="scope.row[item.prop]">
- </el-input>
- </el-popover>
- </div>
- <span v-else :title="scope.row[item.prop]">
- <el-input size="mini" v-model="scope.row[item.prop]">
- </el-input></span>
- </template>
- </el-table-column>
- </template>
- <el-table-column class="czbtn" label="操作">
-
- <template slot-scope="scope">
- <el-button class="czbtn" size="mini" @click="insertRow(scope.$index, scope.row, 'UP')"
- type="primary">
- 插入行↑
- </el-button>
- <br />
- <el-button class="czbtn" style="margin: 10px 0;" size="mini"
- @click="handleDelete(scope.$index, scope.row, tableData)" type="danger">
- 删除<i class="el-icon-delete"></i>
- </el-button>
- <br />
- <el-button class="czbtn" size="mini" @click="insertRow(scope.$index, scope.row, 'DOWN')"
- type="primary">插入行↓
- </el-button>
- </template>
- </el-table-column>
- </el-table>
- <div style="text-align: center;padding: 10px 0;"><el-button @click="addStrip" type="primary">添 加 <i
- class="el-icon-plus"></i></el-button></div>
- <div>
- <el-table :data="[{ a: 1 }]" border style="width: 100%;font-size:12px">
- <el-table-column v-for="item in columnTotalData" :key="item.label"
- :width="item.width != '100' ? columnWidth : item.width"
- :label="item.tips ? item.tips + getCurr : ''"
- v-if="CheckBoxListSelect.filter(item => item.cbType == 'Top')[0].cbValues.includes(item.label)">
- {{ item.totalPrice }}
- </el-table-column>
- <el-table-column class="czbtn">
- </el-table-column>
- </el-table>
- </div>
- <div>
- <el-table :data="[{ a: 1 }]" border style="width: 100%;font-size:12px">
- <el-table-column v-for="item in columnTotalData" :key="item.label"
- :width="item.width != '100' ? columnWidth : item.width"
- :label="item.singleTips ? item.singleTips + getCurr : ''"
- v-if="CheckBoxListSelect.filter(item => item.cbType == 'Top')[0].cbValues.includes(item.label)">
- {{ item.singlePrice }}
-
- {{item.singleTips ? item.singleTips:''}}
- {{getCurr().toString}}
- </el-table-column>
- <el-table-column class="czbtn">
- </el-table-column>
- </el-table>
- </div>
- <div class="sheet-box">
- <div class="sheet-li">
- <div style="color: #606266;font-size: 15px;font-weight: 600;">请选择要显示的项:</div>
- <el-checkbox-group v-model="CheckBoxListSelect.filter(item => item.cbType == 'Left')[0].cbValues">
- <el-checkbox v-for="( item, index ) in sheetoneOptions " :key="index"
- :label="item"></el-checkbox>
- </el-checkbox-group>
- <div style="display: flex;font-size: 12px">
- <div :style="{ 'width': costTypevalue == 'A' ? '100%' : '49%' }">
- <div style="width: 200px;margin-bottom:0px;margin-top: 20px;"
- v-if="CheckBoxListSelect.filter(item => item.cbType == 'Left')[0].cbValues.includes('签证') && visaCountryInfoArr.length > 0">
- <el-table :data="visaCountryInfoArr" border style="width: 100%">
- <el-table-column prop="visaCountry" label="签证国家">
- </el-table-column>
- <el-table-column prop="visaPrice" label="签证费用">
- </el-table-column>
- </el-table>
- </div>
- <div v-for="(sheetitem, index) in sheetDatal" :key="index">
- <div class="biaoge" :class="{ 'biaogeKz': costTypevalue == 'B' }"
- v-if="CheckBoxListSelect.filter(item => item.cbType == 'Left')[0].cbValues.includes(sheetitem.label)">
- <el-table :data="[{ a: 1 }]" border style="width: 100%">
- <el-table-column
- v-for="( itemsheetone, index ) in sheetitem.childList "
- :key="index" :prop="itemsheetone.prop" :label="itemsheetone.childLabel">
-
- <template slot-scope="scope">
- <div v-if="itemsheetone.prop.indexOf(sheetitem.EnLabel) != -1">
- <div v-if="itemsheetone.isBind">
- <span>{{ AGroupCostParameter[itemsheetone.prop] }}</span>
- </div>
- <div v-else>
-
-
- <div v-if="itemsheetone.tips">
- <el-popover placement="top-start" :title="itemsheetone.title"
- width="200" trigger="hover">
-
- <div v-if="itemsheetone.tips != '暂无!'">
- <span style="color:green">{{ itemsheetone.tips
- }}</span>
- 元/人
- </div>
- <div v-else>
- <span style="color:red">{{ itemsheetone.tips
- }}</span>
- </div>
- <el-input-number slot="reference"
- v-model="AGroupCostParameter[itemsheetone.prop]"
- @change="handleChange" :min="0" size="small"
- :controls="false"></el-input-number>
- </el-popover>
- </div>
- <div
- v-else-if="(typeof itemsheetone.title).toString() != 'undefined'">
- <el-popover placement="top-start" :title="itemsheetone.title"
- width="200" trigger="hover">
- <span style="color:red">暂无数据!</span>
- <el-input-number slot="reference"
- v-model="AGroupCostParameter[itemsheetone.prop]"
- @change="handleChange" :min="0" size="small"
- :controls="false"></el-input-number>
- </el-popover>
- </div>
- <div v-else>
- <el-input-number
- v-model="AGroupCostParameter[itemsheetone.prop]"
- @change="handleChange" :min="0" size="small"
- :controls="false"></el-input-number>
- </div>
- </div>
- </div>
- <div v-else-if="itemsheetone.prop === 'ZCB'">
- {{ calculateZCB(sheetitem.EnLabel) }}
- </div>
- <div v-else-if="itemsheetone.prop === 'DRBJ'">
- {{ calculateDRBJ(sheetitem.EnLabel) }}
- </div>
- <div v-else-if="itemsheetone.prop === 'ZBJ'">
- {{ calculateZBJ(sheetitem.EnLabel) }}
- </div>
- <div v-else-if="itemsheetone.prop === 'DRLR'">
- {{ calculateDRLR(sheetitem.EnLabel) }}
- </div>
- <div v-else-if="itemsheetone.prop === 'ZLR'">
- {{ calculateZLR(sheetitem.EnLabel) }}
- </div>
-
- </template>
- </el-table-column>
- </el-table>
- </div>
- </div>
- </div>
- <div style="width: 2%;" v-show="costTypevalue != 'A'"></div>
- <div style="width: 49%;" v-show="costTypevalue != 'A'">
- <div class="" style="width: 200px;margin-bottom:0px;margin-top: 20px;visibility: hidden;"
- v-if="CheckBoxListSelect.filter(item => item.cbType == 'Left')[0].cbValues.includes('签证') && visaCountryInfoArr.length > 0">
- <el-table :data="visaCountryInfoArr" border style="width: 100%">
- <el-table-column prop="visaCountry" label="签证国家">
- </el-table-column>
- <el-table-column prop="visaPrice" label="签证费用">
- </el-table-column>
- </el-table>
- </div>
- <div v-for="( sheetitem, index ) in sheetDatal " :key="index">
- <div class="biaogeB"
- v-if="CheckBoxListSelect.filter(item => item.cbType == 'Left')[0].cbValues.includes(sheetitem.label)">
- <el-table :data="[{ a: 1 }]" border style="width: 100%"
- :class="{ 'hiddenElement': (sheetitem.EnLabel == 'visa' || sheetitem.EnLabel == 'bx') ? true : false }">
- <el-table-column v-for="(itemsheetone, index) in sheetitem.childList" :key="index"
- :prop="itemsheetone.prop" :label="itemsheetone.childLabel">
-
- <template slot-scope="scope">
- <div v-if="itemsheetone.prop.indexOf(sheetitem.EnLabel) != -1">
- <div v-if="itemsheetone.isBind">
- <span>{{ BGroupCostParameter[itemsheetone.prop] }}</span>
- </div>
- <div v-else>
-
- <el-input-number v-model="BGroupCostParameter[itemsheetone.prop]"
- @change="handleChange" :min="0" size="small"
- :controls="false"></el-input-number>
- </div>
- </div>
- <div v-else-if="itemsheetone.prop === 'ZCB'">
- {{ BcalculateZCB(sheetitem.EnLabel) }}
- </div>
- <div v-else-if="itemsheetone.prop === 'DRBJ'">
- {{ BcalculateDRBJ(sheetitem.EnLabel) }}
- </div>
- <div v-else-if="itemsheetone.prop === 'ZBJ'">
- {{ BcalculateZBJ(sheetitem.EnLabel) }}
- </div>
- <div v-else-if="itemsheetone.prop === 'DRLR'">
- {{ BcalculateDRLR(sheetitem.EnLabel) }}
- </div>
- <div v-else-if="itemsheetone.prop === 'ZLR'">
- {{ BcalculateZLR(sheetitem.EnLabel) }}
- </div>
-
- </template>
- </el-table-column>
- </el-table>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="cabin-box">
- <div class="cabin-li">
- <div style="color: #606266;font-size: 15px;font-weight: 600;">请选择要显示的项:</div>
- <el-checkbox-group v-model="CheckBoxListSelect.filter(item => item.cbType == 'Right')[0].cbValues">
- <el-checkbox v-for="( item, index ) in cabinoneOptions " :key="index"
- :label="item"></el-checkbox>
- </el-checkbox-group>
- <div style="display: flex;">
- <div :style="{ 'width': costTypevalue == 'A' ? '100%' : '49%' }">
- <div v-for="( cabinitem, index ) in cabinDatal " :key="index">
- <div class="biaoge"
- v-if="CheckBoxListSelect.filter(item => item.cbType == 'Right')[0].cbValues.includes(cabinitem.label)">
- <div style=" color: rgb(96, 98, 102);font-size: 15px;font-weight: 600;">{{
- cabinitem.label }}
- </div>
- <el-table :data="cabinitem.sheetInfo" border style="width: 100%">
- <el-table-column
- v-for="( itemcabinone, index ) in cabinitem.childList "
- :key="index" :prop="itemcabinone.prop" :label="itemcabinone.childLabel">
- <template slot-scope="scope">
- <div v-if="itemcabinone.prop === 'toll'">
- <el-input size="small" :ref="'el-input-' + index"
- v-model="scope.row[itemcabinone.prop]" show-word-limit disabled />
- </div>
- <span
- v-else-if="itemcabinone.prop === 'costPerson' || itemcabinone.prop === 'singleQuote'"
- :title="scope.row[itemcabinone.prop]">
- <span v-if="itemcabinone.prop === 'singleQuote'">
- <span v-if="itemcabinone.tips">
- <el-popover placement="top-start" :title="itemcabinone.title"
- width="200" trigger="hover">
- <span v-if="itemcabinone.tips != '暂无!'"
- style="color:green">{{ itemcabinone.tips
- }}元/人</span>
- <span v-else style="color: red">暂无!</span>
- <span slot="reference">{{ scope.row[itemcabinone.prop]
- }}</span>
- </el-popover>
- </span>
- <span v-else>
- <el-popover placement="top-start" :title="itemcabinone.title"
- width="200" trigger="hover">
- <span style="color: red">暂无!</span>
- <span slot="reference">{{ scope.row[itemcabinone.prop]
- }}</span>
- </el-popover>
- </span>
- </span>
- <span v-else>{{ scope.row[itemcabinone.prop] }}</span>
- </span>
- <span v-else-if="itemcabinone.prop === 'totalCost'"
- :title="scope.row[itemcabinone.prop]">{{
- (scope.row['toll'] * scope.row['costPerson']).toFixed(2)
- }}</span>
- <span v-else-if="itemcabinone.prop === 'totalQuote'"
- :title="scope.row[itemcabinone.prop]">{{
- (scope.row['toll'] * scope.row['singleQuote']).toFixed(2)
- }}</span>
- <span v-else-if="itemcabinone.prop === 'singleProfit'"
- :title="scope.row[itemcabinone.prop]">{{
- ((scope.row['singleQuote'] - scope.row['costPerson'])).toFixed(2)
- }}</span>
- <span v-else-if="itemcabinone.prop === 'totalProfit'"
- :title="scope.row[itemcabinone.prop]">{{
- ((scope.row['singleQuote'] - scope.row['costPerson']) *
- scope.row['toll']).toFixed(2)
- }}</span>
- <span v-else :title="scope.row[itemcabinone.prop]">{{
- scope.row[itemcabinone.prop]
- }}</span>
- </template>
- </el-table-column>
- </el-table>
- </div>
- </div>
- </div>
- <div style="width: 2%;" v-show="costTypevalue != 'A'"></div>
- <div style="width: 49%;" v-show="costTypevalue != 'A'">
- <div v-for="( cabinitem, index ) in BcabinDatal " :key="index">
- <div class="biaogeB"
- v-if="CheckBoxListSelect.filter(item => item.cbType == 'Right')[0].cbValues.includes(cabinitem.label)">
- <div style="color: rgb(96, 98, 102);font-size: 15px;font-weight: 600;">{{
- cabinitem.label }}
- </div>
- <el-table :data="cabinitem.sheetInfo" border style="width: 100%">
- <el-table-column
- v-for="( itemcabinone, index ) in cabinitem.childList "
- :key="index" :prop="itemcabinone.prop" :label="itemcabinone.childLabel">
- <template slot-scope="scope">
- <div v-if="itemcabinone.prop === 'toll'">
- <el-input size="small" :ref="'el-input-' + index"
- v-model="scope.row[itemcabinone.prop]" show-word-limit disabled />
- </div>
- <span
- v-else-if="itemcabinone.prop === 'costPerson' || itemcabinone.prop === 'singleQuote'"
- :title="scope.row[itemcabinone.prop]">{{
- scope.row[itemcabinone.prop]
- }}</span>
- <span v-else-if="itemcabinone.prop === 'totalCost'"
- :title="scope.row[itemcabinone.prop]">{{
- (scope.row['toll'] * scope.row['costPerson']).toFixed(2)
- }}</span>
- <span v-else-if="itemcabinone.prop === 'totalQuote'"
- :title="scope.row[itemcabinone.prop]">{{
- (scope.row['toll'] * scope.row['singleQuote']).toFixed(2)
- }}</span>
- <span v-else-if="itemcabinone.prop === 'singleProfit'"
- :title="scope.row[itemcabinone.prop]">{{
- (scope.row['singleQuote'] - scope.row['costPerson']).toFixed(2)
- }}</span>
- <span v-else-if="itemcabinone.prop === 'totalProfit'"
- :title="scope.row[itemcabinone.prop]">{{
- ((scope.row['singleQuote'] - scope.row['costPerson']) *
- scope.row['toll']).toFixed(2)
- }}</span>
- <span v-else :title="scope.row[itemcabinone.prop]">{{
- scope.row[itemcabinone.prop]
- }}</span>
- </template>
- </el-table-column>
- </el-table>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <el-dialog :title="DialogTitle" :visible.sync="outerVisible" :width="'60%'" :close-on-click-modal="false"
- @close="dialogClose">
- <div>
- <div style="display: flex;">
- <div style="width: 30%;">
- <el-input v-model="dialogSearchInput" placeholder="请输入城市名称"></el-input>
- </div>
- <div style="width: 2%;"></div>
-
- </div>
- <br />
- <el-table ref="singleTable" border @current-change="SelChange"
- :data="filterdialogSearchInput.slice((currentPage - 1) * pageSize, currentPage * pageSize)"
- highlight-current-row style="width: 100%">
- <el-table-column v-for=" item, index in SeldialogColumn " :key="index"
- :prop="item.prop" :label="item.title">
- <template slot-scope="scope">
- <div>
- {{ scope.row[item.prop] }}
- </div>
- </template>
- </el-table-column>
- </el-table>
- <div class="block">
- <el-pagination align='center' @current-change="handleCurrentChange" :current-page="currentPage"
- :page-sizes="[5, 10]" :page-size="pageSize" layout="total, sizes, prev, pager, next"
- @size-change="handleSizeChange" :total="filterdialogSearchInput.length">
- </el-pagination>
- </div>
- </div>
-
-
- <div slot="footer" class="dialog-footer">
- <el-button @click="outerVisible = false; dialogSelectObject = {}">取 消</el-button>
- <el-button type="primary" @click="confirm">确定</el-button>
- </div>
- </el-dialog>
- </div>
- </template>
- <script>
- import { pinyin } from 'pinyin-pro';
- export default {
- data() {
- return {
- costloading: true,
- outerVisible: false,
- innerVisible: false,
-
- checkOptions: [
- { label: 'DAY', tips: '时间(DATE)' },
- { label: 'DATE', tips: '行程描述(ITINERARY)' },
- { label: 'ITIN', tips: '行程描述(ITINERARY)' },
- { label: 'VA', tips: '车服务区域(Vehicle Area)' },
- { label: 'VT', tips: '车型(VEHICLE TYPE)' },
- { label: 'VF', tips: '车费用(VEHICLE FEES)' },
- { label: 'VN', tips: '车数量(VEHICLE Number)' },
- { label: 'VRD', tips: '用车时间(VEHICLE RENTAL DURATION)' },
- { label: 'T/G S', tips: '导游工资(TOUR GUIDE SALARY)' },
- { label: 'T/G N', tips: '导游数量(TOUR GUIDE Number)' },
- { label: 'T/G WH', tips: '导游工作时间(导游工作时间)' },
- { label: 'T/G OF', tips: '导游超时费用(TOUR GUIDE OVERTIME FEES)' },
- { label: 'T/G M', tips: '导游餐补(TOUR GUIDE MEALS)' },
- { label: 'T/G A', tips: '导游房补(TOUR GUIDE ACCOMMODATION)' },
- { label: 'T/G TF', tips: '导游交通费(TOUR GUIDE TRANSPORATION FEES)' },
- { label: 'T/G EF', tips: '导游景点费(TOUR GUIDE ENTRANCE FEES)' },
- { label: 'C/F M', tips: '司机餐补(CHAUFFEUR MEALS)' },
- { label: 'C/F OF', tips: '司机超时费用(CHAUFFEUR OVERTIME FEES)' },
- { label: 'B', tips: '早餐(BREAKFAST) #个人成本' },
- { label: 'L', tips: '午餐(LUNCH) #个人成本' },
- { label: 'D', tips: '晚餐(DINNER) #个人成本' },
- { label: 'TBR', tips: '双人间(TWIN BED ROOM) #个人成本' },
- { label: 'SGR', tips: '单间(SINGLE ROOM) #个人成本' },
- { label: 'JS/ES', tips: '小套房/豪华套房(JUNIOR SUITE/EXECUTIVE SUITE) #个人成本' },
- { label: 'SUITE', tips: '套房(SUITE) #个人成本' },
- { label: 'ACCO N', tips: '住宿地名称(ACCOMMODATION NAME)' },
-
- { label: 'TV/N', tips: '公务场次' },
- { label: 'IF/N', tips: '翻译场次' },
-
- { label: 'T/V', tips: '公务活动费用(T/V)' },
- { label: '1/L', tips: '公务活动费用(1/L)' },
- { label: 'I/F', tips: '公务翻译费用(INTERPRETER FEES)' },
- { label: 'EF', tips: '景点门票(ENTRANCE FEE) #个人成本' },
- { label: 'B/R/F', tips: '饮料零食水果(BEVERAGE/RRESHMENT/FRUIT)' },
- { label: 'TE', tips: '出行物资(TRAVELLLING ESSENTIALS) #个人成本' },
- { label: 'T/G T', tips: '导游小费(T/G TIPS) #个人成本' },
- { label: 'DRV T', tips: '司机小费(DRIVER TIPS #个人成本)' },
- { label: 'P/C', tips: '零用金(PETTY CASH) #个人成本' },
- { label: 'T/L F', tips: '领队费(TOUR LEADER FEES)' },
- { label: 'E/C T', tips: '会务费(EXPO/CONFERENCE TICKET)' }
- ],
- tableLabel: [
- { label: 'DAY', width: '50', prop: 'day', describe: '天数(DAY)' },
- { label: 'DATE', width: '100', prop: 'date', describe: '时间(DATE)' },
- { label: 'ITIN', width: '100', prop: 'itin', describe: '行程描述(ITINERARY)' },
- { label: 'VA', width: '100', prop: 'sale', describe: '车服务区域(Vehicle Area)' },
- { label: 'VT', width: '100', prop: 'carType', describe: '车型(VEHICLE TYPE)' },
- { label: 'VF', width: '60', prop: 'carCost', describe: '车费用(VEHICLE FEES)' },
- { label: 'VN', width: '60', prop: 'carNumber', describe: '车数量(VEHICLE Number)' },
- { label: 'VRD', width: '60', prop: 'carTiming', describe: '用车时间(VEHICLE RENTAL DURATION)' },
- { label: 'T/G S', width: '60', prop: 'tgs', describe: '导游工资(TOUR GUIDE SALARY)' },
- { label: 'T/G N', width: '60', prop: 'tgn', describe: '导游数量(TOUR GUIDE Number' },
- { label: 'T/G WH', width: '60', prop: 'tgwh', describe: '导游工作时间(导游工作时间)' },
- { label: 'T/G OF', width: '60', prop: 'tgof', describe: '导游超时费用(TOUR GUIDE OVERTIME FEES)' },
- { label: 'T/G M', width: '60', prop: 'tgm', describe: '导游餐补(TOUR GUIDE MEALS)' },
- { label: 'T/G A', width: '60', prop: 'tga', describe: '导游房补(TOUR GUIDE ACCOMMODATION)' },
- { label: 'T/G TF', width: '60', prop: 'tgtf', describe: '导游交通费(TOUR GUIDE TRANSPORATION FEES)' },
- { label: 'T/G EF', width: '60', prop: 'tgef', describe: '导游景点费(TOUR GUIDE ENTRANCE FEES)' },
- { label: 'C/F M', width: '60', prop: 'cfm', describe: '司机餐补(CHAUFFEUR MEALS)' },
- { label: 'C/F OF', width: '60', prop: 'cfof', describe: '司机超时费用(CHAUFFEUR OVERTIME FEES)' },
- { label: 'B', width: '60', prop: 'b', describe: '早餐(BREAKFAST) #个人成本' },
- { label: 'L', width: '60', prop: 'l', describe: '午餐(LUNCH) #个人成本' },
- { label: 'D', width: '60', prop: 'd', describe: '晚餐(DINNER) #个人成本' },
- { label: 'TBR', width: '60', prop: 'tbr', describe: '双人间(TWIN BED ROOM) #个人成本' },
- { label: 'SGR', width: '60', prop: 'sgr', describe: '单间(SINGLE ROOM) #个人成本' },
- { label: 'JS/ES', width: '60', prop: 'jS_ES', describe: '小套房/豪华套房(JUNIOR SUITE/EXECUTIVE SUITE) #个人成本' },
- { label: 'SUITE', width: '60', prop: 'suite', describe: '套房(SUITE) #个人成本' },
- { label: 'ACCO N', width: '100', prop: 'accon', describe: '住宿地名称(ACCOMMODATION NAME)' },
-
- { label: 'TV/N', width: '60', prop: 'gwCount', describe: '公务场次' },
- { label: 'IF/N', width: '60', prop: 'fyCount', describe: '翻译场次' },
-
- { label: 'T/V', width: '60', prop: 'tv', describe: '公务活动费用(T/V)' },
- { label: '1/L', width: '60', prop: 'iL', describe: '邀请函相关费用(1/L)' },
- { label: 'I/F', width: '60', prop: 'if', describe: '公务翻译费用(INTERPRETER FEES)' },
- { label: 'EF', width: '60', prop: 'ef', describe: '景点门票(ENTRANCE FEE) #个人成本' },
-
- { label: 'EFR', width: '100', prop: 'efr', describe: '景点门票详细信息 (ENTRANCE FEE REMARK)' },
-
- { label: 'B/R/F', width: '60', prop: 'b_R_F', describe: '饮料零食水果(BEVERAGE/RRESHMENT/FRUIT)' },
- { label: 'TE', width: '60', prop: 'te', describe: '出行物资(TRAVELLLING ESSENTIALS) #个人成本' },
- { label: 'T/G T', width: '60', prop: 'tgTips', describe: '导游小费(T/G TIPS) #个人成本' },
- { label: 'DRV T', width: '60', prop: 'drvTips', describe: '司机小费(DRIVER TIPS #个人成本)' },
- { label: 'P/C', width: '60', prop: 'pc', describe: '零用金(PETTY CASH) #个人成本' },
- { label: 'T/L F', width: '60', prop: 'tlf', describe: '领队费(TOUR LEADER FEES)' },
- { label: 'E/C T', width: '60', prop: 'ect', describe: '会务费(EXPO/CONFERENCE TICKET)' }
- ],
- statisticsArr: [
- { label: 'DAY', total: '', individual: '' },
- { label: 'DATE', total: '', individual: '' },
- { label: 'ITIN', total: '', individual: '' },
- { label: 'VA', total: '', individual: '' },
- { label: 'VT', total: '', individual: '' },
- { label: 'VF', total: '车费', individual: '车费人均' },
- { label: 'VN', total: '', individual: '' },
- { label: 'VRD', total: '', individual: '' },
- { label: 'T/G S', total: '导游工资', individual: '导游工资人均' },
- { label: 'T/G N', total: '', individual: '' },
- { label: 'T/G WH', total: '', individual: '' },
- { label: 'T/G OF', total: '', individual: '' },
- { label: 'T/G M', total: '', individual: '' },
- { label: 'T/G A', total: '', individual: '' },
- { label: 'T/G TF', total: '', individual: '' }
- ],
- tableData: [],
- options: [],
- diid: '',
- currencyOption: [],
- currencyValueL: 'CNY',
- formInline: {
- user: '',
- region: ''
- },
-
- sheetoneOptions: ['签证', '保险', '机票', '火车票', '船票', '核酸检测', '酒店TBR', '酒店SGR', '酒店JSES', '酒店SUITE', '地接', '公务', '零用金'],
- sheetDatal: [
- {
- label: '签证',
- EnLabel: 'visa',
- childList: [
- {
- childLabel: '签证单人成本(CNY)',
- prop: 'visaCB',
- tips: '这是一个tips',
- title: '签证报批费用:'
- },
- {
- childLabel: '人数',
- prop: 'visaRS'
- },
- {
- childLabel: '签证系数',
- prop: 'visaXS'
- },
- {
- childLabel: '签证总成本(CNY)',
- prop: 'ZCB'
- },
- {
- childLabel: '签证单人报价(CNY)',
- prop: 'DRBJ'
- },
- {
- childLabel: '签证总报价(CNY)',
- prop: 'ZBJ'
- },
- {
- childLabel: '签证单人利润(CNY)',
- prop: 'DRLR'
- },
- {
- childLabel: '签证总利润(CNY)',
- prop: 'ZLR'
- },
- ],
- },
- {
- label: '保险',
- EnLabel: 'bx',
- childList: [
- {
- childLabel: '保险单人成本(CNY)',
- prop: 'bxcb',
- title: '保险报批费用:',
- tips: '这是一个tips',
- },
- {
- childLabel: '人数',
- prop: 'bxrs'
- },
- {
- childLabel: '保险系数',
- prop: 'bxxs'
- },
- {
- childLabel: '保险总成本(CNY)',
- prop: 'ZCB'
- },
- {
- childLabel: '保险单人报价(CNY)',
- prop: 'DRBJ'
- },
- {
- childLabel: '保险总报价(CNY)',
- prop: 'ZBJ'
- },
- {
- childLabel: '保险单人利润(CNY)',
- prop: 'DRLR'
- },
- {
- childLabel: '保险总利润(CNY)',
- prop: 'ZLR'
- },
- ],
- },
- {
- label: '火车票',
- EnLabel: 'hcp',
- childList: [
- {
- childLabel: '火车票单人成本(CNY)',
- prop: 'hcpcb'
- },
- {
- childLabel: '人数',
- prop: 'hcprs'
- },
- {
- childLabel: '火车票系数',
- prop: 'hcpxs'
- },
- {
- childLabel: '火车票总成本(CNY)',
- prop: 'ZCB'
- },
- {
- childLabel: '火车票单人报价(CNY)',
- prop: 'DRBJ'
- },
- {
- childLabel: '火车票总报价(CNY)',
- prop: 'ZBJ'
- },
- {
- childLabel: '火车票单人利润(CNY)',
- prop: 'DRLR'
- },
- {
- childLabel: '火车票总利润(CNY)',
- prop: 'ZLR'
- },
- ],
- },
- {
- label: '机票',
- EnLabel: 'jjc',
- childList: [
- {
- childLabel: '经济舱单人成本(CNY)',
- prop: 'jjccb',
- title: '经济舱报批费用:',
- tips: '这是一个tips',
- },
- {
- childLabel: '人数',
- prop: 'jjcrs'
- },
- {
- childLabel: '经济舱系数',
- prop: 'jjcxs'
- },
- {
- childLabel: '经济舱总成本(CNY)',
- prop: 'ZCB'
- },
- {
- childLabel: '经济舱单人报价(CNY)',
- prop: 'DRBJ'
- },
- {
- childLabel: '经济舱总报价(CNY)',
- prop: 'ZBJ'
- },
- {
- childLabel: '经济舱单人利润(CNY)',
- prop: 'DRLR'
- },
- {
- childLabel: '经济舱总利润(CNY)',
- prop: 'ZLR'
- },
- ],
- },
- {
- label: '机票',
- EnLabel: 'gwc',
- childList: [
- {
- childLabel: '公务舱单人成本(CNY)',
- prop: 'gwccb',
- title: '公务舱报批费用:',
- tips: '这是一个tips',
- },
- {
- childLabel: '人数',
- prop: 'gwcrs'
- },
- {
- childLabel: '公务舱系数',
- prop: 'gwcxs'
- },
- {
- childLabel: '公务舱总成本(CNY)',
- prop: 'ZCB'
- },
- {
- childLabel: '公务舱单人报价(CNY)',
- prop: 'DRBJ'
- },
- {
- childLabel: '公务舱总报价(CNY)',
- prop: 'ZBJ'
- },
- {
- childLabel: '公务舱单人利润(CNY)',
- prop: 'DRLR'
- },
- {
- childLabel: '公务舱总利润(CNY)',
- prop: 'ZLR'
- },
- ],
- },
- {
- label: '船票',
- EnLabel: 'cp',
- childList: [
- {
- childLabel: '船票单人成本(CNY)',
- prop: 'cpcb'
- },
- {
- childLabel: '人数',
- prop: 'cprs'
- },
- {
- childLabel: '船票系数',
- prop: 'cpxs'
- },
- {
- childLabel: '船票总成本(CNY)',
- prop: 'ZCB'
- },
- {
- childLabel: '船票单人报价(CNY)',
- prop: 'DRBJ'
- },
- {
- childLabel: '船票总报价(CNY)',
- prop: 'ZBJ'
- },
- {
- childLabel: '船票单人利润(CNY)',
- prop: 'DRLR'
- },
- {
- childLabel: '船票总利润(CNY)',
- prop: 'ZLR'
- },
- ],
- },
- {
- label: '核酸检测',
- EnLabel: 'hs',
- childList: [
- {
- childLabel: '核酸检测单人成本(CNY)',
- prop: 'hscb',
- title: '核酸检测报批费用:',
- tips: '这是一个tips',
- },
- {
- childLabel: '人数',
- prop: 'hsrs'
- },
- {
- childLabel: '核酸检测系数',
- prop: 'hsxs'
- },
- {
- childLabel: '核酸检测总成本(CNY)',
- prop: 'ZCB'
- },
- {
- childLabel: '核酸检测单人报价(CNY)',
- prop: 'DRBJ'
- },
- {
- childLabel: '核酸检测总报价(CNY)',
- prop: 'ZBJ'
- },
- {
- childLabel: '核酸检测单人利润(CNY)',
- prop: 'DRLR'
- },
- {
- childLabel: '核酸检测总利润(CNY)',
- prop: 'ZLR'
- },
- ],
- },
-
- {
- label: '酒店TBR',
- EnLabel: 'tbr',
- childList: [
- {
- childLabel: '酒店TBR单间成本(CNY)',
- prop: 'tbrcb',
- isBind: true
- },
- {
- childLabel: '间数',
- prop: 'tbrNumber'
- },
- {
- childLabel: '酒店TBR系数',
- prop: 'tbrxs'
- },
- {
- childLabel: '酒店TBR总成本(CNY)',
- prop: 'ZCB'
- },
- {
- childLabel: '酒店TBR单间报价(CNY)',
- prop: 'DRBJ'
- },
- {
- childLabel: '酒店TBR总报价(CNY)',
- prop: 'ZBJ'
- },
- {
- childLabel: '酒店TBR单间利润(CNY)',
- prop: 'DRLR'
- },
- {
- childLabel: '酒店TBR总利润(CNY)',
- prop: 'ZLR'
- },
- ],
- },
- {
- label: '酒店SGR',
- EnLabel: 'sgr',
- childList: [
- {
- childLabel: '酒店SGR单间成本(CNY)',
- prop: 'sgrcb',
- isBind: true
- },
- {
- childLabel: '间数',
- prop: 'sgrNumber'
- },
- {
- childLabel: '酒店SGR系数',
- prop: 'sgrxs'
- },
- {
- childLabel: '酒店SGR总成本(CNY)',
- prop: 'ZCB'
- },
- {
- childLabel: '酒店SGR单间报价(CNY)',
- prop: 'DRBJ'
- },
- {
- childLabel: '酒店SGR总报价(CNY)',
- prop: 'ZBJ'
- },
- {
- childLabel: '酒店SGR单间利润(CNY)',
- prop: 'DRLR'
- },
- {
- childLabel: '酒店SGR总利润(CNY)',
- prop: 'ZLR'
- },
- ],
- },
- {
- label: '酒店JSES',
- EnLabel: 'jses',
- childList: [
- {
- childLabel: '酒店JSES单间成本(CNY)',
- prop: 'jsescb',
- isBind: true
- },
- {
- childLabel: '间数',
- prop: 'jsesNumber'
- },
- {
- childLabel: '酒店JSES系数',
- prop: 'jsesxs'
- },
- {
- childLabel: '酒店JSES总成本(CNY)',
- prop: 'ZCB'
- },
- {
- childLabel: '酒店JSES单间报价(CNY)',
- prop: 'DRBJ'
- },
- {
- childLabel: '酒店JSES总报价(CNY)',
- prop: 'ZBJ'
- },
- {
- childLabel: '酒店JSES单间利润(CNY)',
- prop: 'DRLR'
- },
- {
- childLabel: '酒店JSES总利润(CNY)',
- prop: 'ZLR'
- },
- ],
- },
- {
- label: '酒店SUITE',
- EnLabel: 'suite',
- childList: [
- {
- childLabel: '酒店SUITE单间成本(CNY)',
- prop: 'suitecb',
- isBind: true
- },
- {
- childLabel: '间数',
- prop: 'suiteNumber'
- },
- {
- childLabel: '酒店SUITE系数',
- prop: 'suitexs'
- },
- {
- childLabel: '酒店SUITE总成本(CNY)',
- prop: 'ZCB'
- },
- {
- childLabel: '酒店SUITE单间报价(CNY)',
- prop: 'DRBJ'
- },
- {
- childLabel: '酒店SUITE总报价(CNY)',
- prop: 'ZBJ'
- },
- {
- childLabel: '酒店SUITE单间利润(CNY)',
- prop: 'DRLR'
- },
- {
- childLabel: '酒店SUITE总利润(CNY)',
- prop: 'ZLR'
- },
- ],
- },
- {
- label: '地接',
- EnLabel: 'dj',
- childList: [
- {
- childLabel: '地接单人成本(CNY)',
- prop: 'djcb',
- isBind: true
- },
- {
- childLabel: '人数',
- prop: 'djrs'
- },
- {
- childLabel: '地接系数',
- prop: 'djxs'
- },
- {
- childLabel: '地接总成本(CNY)',
- prop: 'ZCB'
- },
- {
- childLabel: '地接单人报价(CNY)',
- prop: 'DRBJ'
- },
- {
- childLabel: '地接总报价(CNY)',
- prop: 'ZBJ'
- },
- {
- childLabel: '地接单人利润(CNY)',
- prop: 'DRLR'
- },
- {
- childLabel: '地接总利润(CNY)',
- prop: 'ZLR'
- },
- ],
- },
- {
- label: '公务',
- EnLabel: 'gw',
- childList: [
- {
- childLabel: '公务单人成本(CNY)',
- prop: 'gwcb',
- isBind: true
- },
- {
- childLabel: '人数',
- prop: 'gwrs'
- },
- {
- childLabel: '公务系数',
- prop: 'gwxs'
- },
- {
- childLabel: '公务总成本(CNY)',
- prop: 'ZCB'
- },
- {
- childLabel: '公务单人报价(CNY)',
- prop: 'DRBJ'
- },
- {
- childLabel: '公务总报价(CNY)',
- prop: 'ZBJ'
- },
- {
- childLabel: '公务单人利润(CNY)',
- prop: 'DRLR'
- },
- {
- childLabel: '公务总利润(CNY)',
- prop: 'ZLR'
- },
- ],
- },
- {
- label: '零用金',
- EnLabel: 'lyj',
- childList: [
- {
- childLabel: '零用金单人成本(CNY)',
- prop: 'lyjcb',
- isBind: true
- },
- {
- childLabel: '人数',
- prop: 'lyjrs'
- },
- {
- childLabel: '零用金系数',
- prop: 'lyjxs'
- },
- {
- childLabel: '零用金总成本(CNY)',
- prop: 'ZCB'
- },
- {
- childLabel: '零用金单人报价(CNY)',
- prop: 'DRBJ'
- },
- {
- childLabel: '零用金总报价(CNY)',
- prop: 'ZBJ'
- },
- {
- childLabel: '零用金单人利润(CNY)',
- prop: 'DRLR'
- },
- {
- childLabel: '零用金总利润(CNY)',
- prop: 'ZLR'
- },
- ],
- },
- ],
-
- cabinoneOptions: ['经济舱 TBR', '经济舱 SGR', '公务舱 SGR', '公务舱 JS/ES', '公务舱 SUITE', '经济舱 SUITE'],
- cabinDatal: [
- {
- label: '经济舱 TBR',
- childList: [
- {
- childLabel: '单人成本(CNY)',
- prop: 'costPerson'
- },
- {
- childLabel: '人数',
- prop: 'toll'
- },
- {
- childLabel: '总成本(CNY)',
- prop: 'totalCost'
- },
- {
- childLabel: '单人报价(CNY)',
- prop: 'singleQuote',
- title: '报批(单人经济舱总报价):',
- tips: '这是一个tips',
- },
- {
- childLabel: '总报价(CNY)',
- prop: 'totalQuote'
- },
- {
- childLabel: '单人利润(CNY)',
- prop: 'singleProfit'
- },
- {
- childLabel: '总利润(CNY)',
- prop: 'totalProfit'
- },
- ],
- sheetInfo: [
- {
- costPerson: 1,
- toll: 11,
- totalCost: 137597.76,
- singleQuote: 102203.71,
- totalQuote: 35394.05,
- singleProfit: 35394.05,
- totalProfit: 35394.05
- },
- ]
- },
- {
- label: '经济舱 SGR',
- childList: [
- {
- childLabel: '单人成本(CNY)',
- prop: 'costPerson'
- },
- {
- childLabel: '人数',
- prop: 'toll'
- },
- {
- childLabel: '总成本(CNY)',
- prop: 'totalCost'
- },
- {
- childLabel: '单人报价(CNY)',
- prop: 'singleQuote',
- title: '报批(单人经济舱总报价):',
- tips: '这是一个tips',
- },
- {
- childLabel: '总报价(CNY)',
- prop: 'totalQuote'
- },
- {
- childLabel: '单人利润(CNY)',
- prop: 'singleProfit'
- },
- {
- childLabel: '总利润(CNY)',
- prop: 'totalProfit'
- },
- ],
- sheetInfo: [
- {
- costPerson: 1,
- toll: 11,
- totalCost: 137597.76,
- singleQuote: 102203.71,
- totalQuote: 35394.05,
- singleProfit: 35394.05,
- totalProfit: 35394.05
- },
- ]
- },
- {
- label: '公务舱 SGR',
- childList: [
- {
- childLabel: '单人成本(CNY)',
- prop: 'costPerson'
- },
- {
- childLabel: '人数',
- prop: 'toll'
- },
- {
- childLabel: '总成本(CNY)',
- prop: 'totalCost'
- },
- {
- childLabel: '单人报价(CNY)',
- prop: 'singleQuote',
- title: '报批(单人公务舱总报价):',
- tips: '这是一个tips',
- },
- {
- childLabel: '总报价(CNY)',
- prop: 'totalQuote'
- },
- {
- childLabel: '单人利润(CNY)',
- prop: 'singleProfit'
- },
- {
- childLabel: '总利润(CNY)',
- prop: 'totalProfit'
- },
- ],
- sheetInfo: [
- {
- costPerson: 1,
- toll: 11,
- totalCost: 137597.76,
- singleQuote: 102203.71,
- totalQuote: 35394.05,
- singleProfit: 35394.05,
- totalProfit: 35394.05
- },
- ]
- },
- {
- label: '公务舱 JS/ES',
- childList: [
- {
- childLabel: '单人成本(CNY)',
- prop: 'costPerson'
- },
- {
- childLabel: '人数',
- prop: 'toll'
- },
- {
- childLabel: '总成本(CNY)',
- prop: 'totalCost'
- },
- {
- childLabel: '单人报价(CNY)',
- prop: 'singleQuote',
- title: '报批(单人公务舱总报价):',
- tips: '这是一个tips',
- },
- {
- childLabel: '总报价(CNY)',
- prop: 'totalQuote'
- },
- {
- childLabel: '单人利润(CNY)',
- prop: 'singleProfit'
- },
- {
- childLabel: '总利润(CNY)',
- prop: 'totalProfit'
- },
- ],
- sheetInfo: [
- {
- costPerson: 1,
- toll: 11,
- totalCost: 137597.76,
- singleQuote: 102203.71,
- totalQuote: 35394.05,
- singleProfit: 35394.05,
- totalProfit: 35394.05
- },
- ]
- },
- {
- label: '公务舱 SUITE',
- childList: [
- {
- childLabel: '单人成本(CNY)',
- prop: 'costPerson'
- },
- {
- childLabel: '人数',
- prop: 'toll'
- },
- {
- childLabel: '总成本(CNY)',
- prop: 'totalCost'
- },
- {
- childLabel: '单人报价(CNY)',
- prop: 'singleQuote',
- title: '报批(单人公务舱总报价):',
- tips: '这是一个tips',
- },
- {
- childLabel: '总报价(CNY)',
- prop: 'totalQuote'
- },
- {
- childLabel: '单人利润(CNY)',
- prop: 'singleProfit'
- },
- {
- childLabel: '总利润(CNY)',
- prop: 'totalProfit'
- },
- ],
- sheetInfo: [
- {
- costPerson: 1,
- toll: 11,
- totalCost: 137597.76,
- singleQuote: 102203.71,
- totalQuote: 35394.05,
- singleProfit: 35394.05,
- totalProfit: 35394.05
- },
- ]
- }
- ,
- {
- label: '经济舱 SUITE',
- childList: [
- {
- childLabel: '单人成本(CNY)',
- prop: 'costPerson'
- },
- {
- childLabel: '人数',
- prop: 'toll'
- },
- {
- childLabel: '总成本(CNY)',
- prop: 'totalCost'
- },
- {
- childLabel: '单人报价(CNY)',
- prop: 'singleQuote',
- title: '报批(单人经济舱总报价):',
- tips: '这是一个tips',
- },
- {
- childLabel: '总报价(CNY)',
- prop: 'totalQuote'
- },
- {
- childLabel: '单人利润(CNY)',
- prop: 'singleProfit'
- },
- {
- childLabel: '总利润(CNY)',
- prop: 'totalProfit'
- },
- ],
- sheetInfo: [
- {
- costPerson: 1,
- toll: 11,
- totalCost: 137597.76,
- singleQuote: 102203.71,
- totalQuote: 35394.05,
- singleProfit: 35394.05,
- totalProfit: 35394.05
- },
- ]
- },
- {
- label: '团组预算明细',
- childList: [
- {
- childLabel: '团组成本(CNY)',
- prop: 'groupCosts'
- },
- {
- childLabel: '团组报价(CNY)',
- prop: 'gtroupQuotes'
- },
- {
- childLabel: '团组利润(CNY)',
- prop: 'groupProfit'
- }
- ],
- sheetInfo: [
- {
- groupCosts: 1,
- gtroupQuotes: 11,
- groupProfit: 137597.76,
- },
- ]
- }
- ],
- BcabinDatal: [
- {
- label: '经济舱 TBR',
- childList: [
- {
- childLabel: '单人成本(CNY)',
- prop: 'costPerson'
- },
- {
- childLabel: '人数',
- prop: 'toll'
- },
- {
- childLabel: '总成本(CNY)',
- prop: 'totalCost'
- },
- {
- childLabel: '单人报价(CNY)',
- prop: 'singleQuote',
- title: '报批(单人经济舱总报价):',
- tips: '这是一个tips',
- },
- {
- childLabel: '总报价(CNY)',
- prop: 'totalQuote'
- },
- {
- childLabel: '单人利润(CNY)',
- prop: 'singleProfit'
- },
- {
- childLabel: '总利润(CNY)',
- prop: 'totalProfit'
- },
- ],
- sheetInfo: [
- {
- costPerson: 0,
- toll: 0,
- totalCost: 137597.76,
- singleQuote: 102203.71,
- totalQuote: 35394.05,
- singleProfit: 35394.05,
- totalProfit: 35394.05
- },
- ]
- },
- {
- label: '经济舱 SGR',
- childList: [
- {
- childLabel: '单人成本(CNY)',
- prop: 'costPerson'
- },
- {
- childLabel: '人数',
- prop: 'toll'
- },
- {
- childLabel: '总成本(CNY)',
- prop: 'totalCost'
- },
- {
- childLabel: '单人报价(CNY)',
- prop: 'singleQuote',
- title: '报批(单人经济舱总报价):',
- tips: '这是一个tips',
- },
- {
- childLabel: '总报价(CNY)',
- prop: 'totalQuote'
- },
- {
- childLabel: '单人利润(CNY)',
- prop: 'singleProfit'
- },
- {
- childLabel: '总利润(CNY)',
- prop: 'totalProfit'
- },
- ],
- sheetInfo: [
- {
- costPerson: 1,
- toll: 11,
- totalCost: 137597.76,
- singleQuote: 102203.71,
- totalQuote: 35394.05,
- singleProfit: 35394.05,
- totalProfit: 35394.05
- },
- ]
- },
- {
- label: '公务舱 SGR',
- childList: [
- {
- childLabel: '单人成本(CNY)',
- prop: 'costPerson'
- },
- {
- childLabel: '人数',
- prop: 'toll'
- },
- {
- childLabel: '总成本(CNY)',
- prop: 'totalCost'
- },
- {
- childLabel: '单人报价(CNY)',
- prop: 'singleQuote',
- title: '报批(单人公务舱总报价):',
- tips: '这是一个tips',
- },
- {
- childLabel: '总报价(CNY)',
- prop: 'totalQuote'
- },
- {
- childLabel: '单人利润(CNY)',
- prop: 'singleProfit'
- },
- {
- childLabel: '总利润(CNY)',
- prop: 'totalProfit'
- },
- ],
- sheetInfo: [
- {
- costPerson: 1,
- toll: 11,
- totalCost: 137597.76,
- singleQuote: 102203.71,
- totalQuote: 35394.05,
- singleProfit: 35394.05,
- totalProfit: 35394.05
- },
- ]
- },
- {
- label: '公务舱 JS/ES',
- childList: [
- {
- childLabel: '单人成本(CNY)',
- prop: 'costPerson'
- },
- {
- childLabel: '人数',
- prop: 'toll'
- },
- {
- childLabel: '总成本(CNY)',
- prop: 'totalCost'
- },
- {
- childLabel: '单人报价(CNY)',
- prop: 'singleQuote',
- title: '报批(单人公务舱总报价):',
- tips: '这是一个tips',
- },
- {
- childLabel: '总报价(CNY)',
- prop: 'totalQuote'
- },
- {
- childLabel: '单人利润(CNY)',
- prop: 'singleProfit'
- },
- {
- childLabel: '总利润(CNY)',
- prop: 'totalProfit'
- },
- ],
- sheetInfo: [
- {
- costPerson: 1,
- toll: 11,
- totalCost: 137597.76,
- singleQuote: 102203.71,
- totalQuote: 35394.05,
- singleProfit: 35394.05,
- totalProfit: 35394.05
- },
- ]
- },
- {
- label: '公务舱 SUITE',
- childList: [
- {
- childLabel: '单人成本(CNY)',
- prop: 'costPerson'
- },
- {
- childLabel: '人数',
- prop: 'toll'
- },
- {
- childLabel: '总成本(CNY)',
- prop: 'totalCost'
- },
- {
- childLabel: '单人报价(CNY)',
- prop: 'singleQuote',
- title: '报批(单人公务舱总报价):',
- tips: '这是一个tips',
- },
- {
- childLabel: '总报价(CNY)',
- prop: 'totalQuote'
- },
- {
- childLabel: '单人利润(CNY)',
- prop: 'singleProfit'
- },
- {
- childLabel: '总利润(CNY)',
- prop: 'totalProfit'
- },
- ],
- sheetInfo: [
- {
- costPerson: 1,
- toll: 11,
- totalCost: 137597.76,
- singleQuote: 102203.71,
- totalQuote: 35394.05,
- singleProfit: 35394.05,
- totalProfit: 35394.05
- },
- ]
- }
- ,
- {
- label: '经济舱 SUITE',
- childList: [
- {
- childLabel: '单人成本(CNY)',
- prop: 'costPerson'
- },
- {
- childLabel: '人数',
- prop: 'toll'
- },
- {
- childLabel: '总成本(CNY)',
- prop: 'totalCost'
- },
- {
- childLabel: '单人报价(CNY)',
- prop: 'singleQuote',
- title: '报批(单人经济舱总报价):',
- tips: '这是一个tips',
- },
- {
- childLabel: '总报价(CNY)',
- prop: 'totalQuote'
- },
- {
- childLabel: '单人利润(CNY)',
- prop: 'singleProfit'
- },
- {
- childLabel: '总利润(CNY)',
- prop: 'totalProfit'
- },
- ],
- sheetInfo: [
- {
- costPerson: 1,
- toll: 11,
- totalCost: 137597.76,
- singleQuote: 102203.71,
- totalQuote: 35394.05,
- singleProfit: 35394.05,
- totalProfit: 35394.05
- },
- ]
- }
- ],
- costType: [
- {
- value: 'A',
- label: '单段模式'
- },
- {
- value: 'B',
- label: '双段模式'
- }
- ],
- userId: 0,
- token: '',
- costTypevalue: 'A',
- grouptitleinfo: {},
- costTypeHotelNumbers: [{
- "sgr": 0,
- "tbr": 0,
- "jses": 0,
- "suite": 0,
- "type": "Default",
- "diid": 0,
- id: 0,
- },
- {
- "sgr": 0,
- "tbr": 0,
- "jses": 0,
- "suite": 0,
- "type": "A",
- "diid": 0,
- id: 0,
- },
- {
- "sgr": 0,
- "tbr": 0,
- "jses": 0,
- "suite": 0,
- "type": "B",
- "diid": 0,
- id: 0,
- }],
- CheckBoxListSelect: [
- {
- "diid": 0,
- "cbType": "Top",
- "cbValues": ['DAY', 'DATE', 'ITIN', 'VA', 'VT', 'VF', 'VRD', 'T/G S', 'T/G WH', 'C/F M', 'L', 'D', 'SGR', 'SUITE', 'ACCO N', 'T/V', 'EF', 'B/R/F', 'TE', 'DRV T', 'P/C']
- },
- {
- "diid": 0,
- "cbType": "Left",
- "cbValues": ['签证', '机票', '保险', '火车票', '地接', '公务', '零用金']
- },
- {
- "diid": 0,
- "cbType": "Right",
- "cbValues": ['公务舱 SGR', '经济舱 SGR', '团组预算明细']
- }
- ],
- AGroupCostParameter: {
- "id": 0,
- "diId": 0,
- "currency": "CNY",
- "rate": 0,
- "tax": 0,
- "ffys": 0,
- "hotelXS": 0,
- "jjccb": 0,
- "jjcxs": 0,
- "jjcrs": 0,
- "gwccb": 0,
- "gwcxs": 0,
- "gwcrs": 0,
- "hcpcb": 0,
- "hcpxs": 0,
- "hcprs": 0,
- "cpcb": 0,
- "cpxs": 0,
- "cprs": 0,
- "bxcb": 0,
- "bxxs": 25,
- "bxrs": 0,
- "hscb": 0,
- "hsxs": 0,
- "hsrs": 0,
- "visaCB": 0,
- "visaXS": 0,
- "visaRS": 0,
- "gwcb": 0,
- "gwxs": 0,
- "gwrs": 0,
- "djcb": 0,
- "djrs": 0,
- "djxs": 0,
- "sgrcb": 0,
- "sgrNumber": 0,
- "sgrxs": 0,
- "tbrcb": 0,
- "tbrNumber": 0,
- "tbrxs": 0,
- "jsescb": 0,
- "jsesNumber": 0,
- "jsesxs": 0,
- "suitecb": 0,
- "suiteNumber": 0,
- "suitexs": 0,
- "lyjcb": 0,
- "lyjxs": 0,
- "lyjrs": 0,
- "isShare": 0,
- "costType": "A",
- "costTypeStartTime": "",
- "costTypeendTime": "",
- "costTypenumber": 0
- },
- BGroupCostParameter: {
- "id": 0,
- "diId": 0,
- "currency": "",
- "rate": 0,
- "tax": 0,
- "ffys": 0,
- "hotelXS": 0,
- "jjccb": 0,
- "jjcxs": 0,
- "jjcrs": 0,
- "gwccb": 0,
- "gwcxs": 0,
- "gwcrs": 0,
- "hcpcb": 0,
- "hcpxs": 0,
- "hcprs": 0,
- "cpcb": 0,
- "cpxs": 0,
- "cprs": 0,
- "bxcb": 0,
- "bxxs": 25,
- "bxrs": 0,
- "hscb": 0,
- "hsxs": 0,
- "hsrs": 0,
- "visaCB": 0,
- "visaXS": 0,
- "visaRS": 0,
- "gwcb": 0,
- "gwxs": 0,
- "gwrs": 0,
- "djcb": 0,
- "djxs": 0,
- "djrs": 0,
- "sgrcb": 0,
- "sgrNumber": 0,
- "sgrxs": 0,
- "tbrcb": 0,
- "tbrNumber": 0,
- "tbrxs": 0,
- "jsescb": 0,
- "jsesNumber": 0,
- "jsesxs": 0,
- "suitecb": 0,
- "suiteNumber": 0,
- "suitexs": 0,
- "lyjcb": 0,
- "lyjxs": 0,
- "lyjrs": 0,
- "isShare": 0,
- "costType": "B",
- "costTypeStartTime": "",
- "costTypeendTime": "",
- "costTypenumber": 0
- },
- dialogColumn: [
- {
- index: 1, data: [
- { title: "国家", prop: "country" },
- { title: "城市", prop: "city" },
- { title: "服务类型", prop: "serviceType" },
- { title: "用车类型", prop: "carType" },
- { title: "用车报价", prop: "offer" },
- { title: "车兼导费用", prop: "cgCost" },
- { title: "用车时长", prop: "runingTime" },
- { title: "车超时费用/时", prop: "overtimeFee" },
- { title: "司兼导超时费/时", prop: "cgOvertimeFee" },
- { title: "币种", prop: "currency" },
- { title: "备注", prop: "remark" }
- ]
- },
- {
- index: 2, data: [
- { title: "国家", prop: "country" },
- { title: "城市", prop: "city" },
- { title: "导游服务类型", prop: "serviceType" },
- { title: "导游工资", prop: "price" },
- { title: "翻译工资", prop: "translationPrice" },
- { title: "超时费用", prop: "overtimeFee" },
- { title: "币种", prop: "currency" },
- { title: "备注", prop: "remark" }
- ]
- },
- {
- index: 3, data: [
- { title: "国家", prop: "country" },
- { title: "城市", prop: "city" },
- { title: "车类型", prop: "carType" },
- { title: "服务类型", prop: "serviceType" },
- { title: "用车时间", prop: "when" },
- { title: "工资", prop: "price" },
- { title: "超时费用", prop: "overtimeFee" },
- { title: "币种", prop: "currency" },
- { title: "备注", prop: "remark" }
- ]
- },
- {
- index: 4, data: [
- { title: "国家", prop: "country" },
- { title: "城市", prop: "city" },
- { title: "景点", prop: "scenicSpot" },
- { title: "景点项目描述", prop: "scenicSpotDetail" },
- { title: "景点价格", prop: "price" },
- { title: "币种", prop: "currency" },
- { title: "景点地址", prop: "address" }
- ]
- }
-
-
-
-
- ],
- dialogTableData: [],
- SeldialogColumn: [],
- DialogTitle: '',
- pageSize: 5,
- currentPage: 1,
- dialogSearchInput: '',
- selectRow: {},
- rowIndex: 0,
- sumTopPrice: [],
- DJLables: ['VF', 'T/G S', 'T/G OF', 'T/G M', 'T/G A', 'T/G TF', 'T/G EF', 'C/F M', 'C/F OF', 'B', 'L', 'D', 'EF', 'B/R/F', 'TE', 'T/G T', 'DRV T', 'T/L F'],
- GwLables: ['T/V', 'E/C T', 'I/F', '1/L'],
- OtherCostProperty: ['visaCB', 'hcpcb', 'cpcb', 'bxcb', 'hscb', 'djcb', 'gwcb', 'lyjcb'],
- OtherCostPropertyBJ: ['visa', 'hcp', 'cp', 'bx', 'hs', 'dj', 'gw', 'lyj'],
- peopleNumber: 1,
- centerheight: 700,
- defaultheight: 50,
- rules: {
- rate: [
- { pattern: /^-?\d+\.?\d*$/, message: '请输入正确数据', trigger: 'blur', required: true, }
- ],
- tax: [
- { pattern: /^-?\d+\.?\d*$/, message: '请输入正确数据', trigger: 'blur', required: true, }
- ],
- },
- HotelRules: {
- sgr: [
- { type: 'number', min: 0, message: '请输入整数', trigger: 'blur', required: true, },
- ],
- tbr: [
- { type: 'number', min: 0, message: '请输入整数', trigger: 'blur', required: true, },
- ],
- suite: [
- { type: 'number', min: 0, message: '请输入整数', trigger: 'blur', required: true, },
- ],
- jses: [
- { type: 'number', min: 0, message: '请输入整数', trigger: 'blur', required: true, },
- ],
- },
- CostTimeRules: {
- costTypeendTime: [
- { message: '请输入结束时间', trigger: 'blur', required: true, },
- ],
- costTypenumber: [
- { type: 'number', min: 0, message: '请输入整数', trigger: 'blur', required: true, },
- ],
- costTypeStartTime: [
- { message: '请输入开始时间', trigger: 'blur', required: true, },
- ],
- },
- titleText: [],
- vehicleLables: ['VF', 'T/G OF', 'T/G S', 'T/G TF', 'C/F OF'],
- DJMeal: ['B', 'L', 'D'],
- SubsidizedMeals: ['T/G M', 'C/F M'],
- NightRepair: ['T/G A'],
- AttractionsTickets: ['T/G EF', 'EF'],
- MiscellaneousFees: ['B/R/F', 'TE', 'T/L F'],
- ATip: ['T/G T', 'DRV T'],
- visaCountryInfoArr: [],
- equalWhere: [
- { "Visa": "visa" },
- { "HeSuan": "hs" },
- { "Insurance": "bx" },
- { "JJC": "jjc" },
- { "GWC": "gwc" }
- ],
- ShowBaoPi: [
- ],
- dialogSelectObject: {
- },
- columnTotalData: [
- {
- "label": "DAY",
- "tips": "",
- "totalPrice": 0,
- "singlePrice": 0,
- "singleTips": "",
- "width": 50,
- },
- {
- "label": "DATE",
- "tips": "",
- "totalPrice": 0,
- "singlePrice": 0,
- "singleTips": "",
- "width": 100,
- },
- {
- "label": "ITIN",
- "tips": "",
- "totalPrice": 0,
- "singlePrice": 0,
- "singleTips": "",
- "width": 100,
- },
- {
- "label": "VA",
- "tips": "",
- "totalPrice": 0,
- "singlePrice": 0,
- "singleTips": "",
- "width": 100,
- },
- {
- "label": "VT",
- "tips": "",
- "totalPrice": 0,
- "singlePrice": 0,
- "singleTips": "",
- "width": 100,
- },
- {
- "label": "VF",
- "tips": "车费用\n",
- "totalPrice": 0,
- "singlePrice": 0,
- "singleTips": "车费用人均\n",
- "width": 60,
- },
- {
- "label": "VN",
- "tips": "",
- "totalPrice": 0,
- "singlePrice": 0,
- "singleTips": "",
- "width": 60,
- },
- {
- "label": "VRD",
- "tips": "",
- "totalPrice": 0,
- "singlePrice": 0,
- "singleTips": "",
- "width": 60,
- },
- {
- "label": "T/G S",
- "tips": "导游工资\n",
- "totalPrice": 0,
- "singlePrice": 0,
- "singleTips": "导游工资人均\n",
- "width": 60,
- },
- {
- "label": "T/G N",
- "tips": "",
- "totalPrice": 0,
- "singlePrice": 0,
- "singleTips": "",
- "width": 60,
- },
- {
- "label": "T/G WH",
- "tips": "",
- "totalPrice": 0,
- "singlePrice": 0,
- "singleTips": "",
- "width": 60,
- },
- {
- "label": "T/G OF",
- "tips": "导游超时费用\n",
- "totalPrice": 0,
- "singlePrice": 0,
- "singleTips": "导游超时费用人均\n",
- "width": 60,
- },
- {
- "label": "T/G M",
- "tips": "导游餐补\n",
- "totalPrice": 0,
- "singlePrice": 0,
- "singleTips": "导游餐补人均\n",
- "width": 60,
- },
- {
- "label": "T/G A",
- "tips": "导游房补\n",
- "totalPrice": 0,
- "singlePrice": 0,
- "singleTips": "导游房补人均\n",
- "width": 60,
- },
- {
- "label": "T/G TF",
- "tips": "导游交通费\n",
- "totalPrice": 0,
- "singlePrice": 0,
- "singleTips": "导游交通费人均\n",
- "width": 60,
- },
- {
- "label": "T/G EF",
- "tips": "导游景点费\n",
- "totalPrice": 0,
- "singlePrice": 0,
- "singleTips": "导游景点费人均\n",
- "width": 60,
- },
- {
- "label": "C/F M",
- "tips": "司机餐补\n",
- "totalPrice": 0,
- "singlePrice": 0,
- "singleTips": "司机餐补人均\n",
- "width": 60,
- },
- {
- "label": "C/F OF",
- "tips": "司机超时费用\n",
- "totalPrice": 0,
- "singlePrice": 0,
- "singleTips": "司机超时费用人均\n",
- "width": 60,
- },
- {
- "label": "B",
- "tips": "早餐费用\n",
- "totalPrice": 0,
- "singlePrice": 0,
- "singleTips": "早餐费用人均\n",
- "width": 60,
- },
- {
- "label": "L",
- "tips": "午餐费用\n",
- "totalPrice": 0,
- "singlePrice": 0,
- "singleTips": "午餐费用人均\n",
- "width": 60,
- },
- {
- "label": "D",
- "tips": "晚餐费用\n",
- "totalPrice": 0,
- "singlePrice": 0,
- "singleTips": "晚餐费用人均\n",
- "width": 60,
- },
- {
- "label": "TBR",
- "tips": "双人间费用\n",
- "totalPrice": 0,
- "singlePrice": 0,
- "singleTips": "双人间费用人均\n",
- "width": 60,
- },
- {
- "label": "SGR",
- "tips": "单间费用\n",
- "totalPrice": 0,
- "singlePrice": 0,
- "singleTips": "单间费用人均\n",
- "width": 60,
- },
- {
- "label": "JS/ES",
- "tips": "小套房/豪华套房费用\n",
- "totalPrice": 0,
- "singlePrice": 0,
- "singleTips": "小套房/豪华套房费用人均\n",
- "width": 60,
- },
- {
- "label": "SUITE",
- "tips": "套房费用\n",
- "totalPrice": 0,
- "singlePrice": 0,
- "singleTips": "套房费用人均\n",
- "width": 60,
- },
- {
- "label": "ACCO N",
- "tips": "",
- "totalPrice": 0,
- "singlePrice": 0,
- "singleTips": "",
- "width": 100,
- },
- {
- "label": "TV/N",
- "tips": "",
- "totalPrice": 0,
- "singlePrice": 0,
- "singleTips": "",
- "width": 60,
- },
- {
- "label": "IF/N",
- "tips": "",
- "totalPrice": 0,
- "singlePrice": 0,
- "singleTips": "",
- "width": 60,
- },
- {
- "label": "T/V",
- "tips": "公务活动费用\n",
- "totalPrice": 0,
- "singlePrice": 0,
- "singleTips": "公务活动费用人均\n",
- "width": 60,
- },
- {
- "label": "1/L",
- "tips": "公务活动费用\n",
- "totalPrice": 0,
- "singlePrice": 0,
- "singleTips": "公务活动费用人均\n",
- "width": 60,
- },
- {
- "label": "I/F",
- "tips": "公务翻译费用\n",
- "totalPrice": 0,
- "singlePrice": 0,
- "singleTips": "公务翻译费用人均\n",
- "width": 60,
- },
- {
- "label": "EF",
- "tips": "景点门票\n",
- "totalPrice": 0,
- "singlePrice": 0,
- "singleTips": "景点门票人均\n",
- "width": 60,
- },
- {
- "label": "EFR",
- "tips": "",
- "totalPrice": 0,
- "singlePrice": 0,
- "singleTips": "",
- "width": 100,
- },
- {
- "label": "B/R/F",
- "tips": "饮料零食水果\n",
- "totalPrice": 0,
- "singlePrice": 0,
- "singleTips": "饮料零食水果人均\n",
- "width": 60,
- },
- {
- "label": "TE",
- "tips": "出行物资\n",
- "totalPrice": 0,
- "singlePrice": 0,
- "singleTips": "出行物资人均\n",
- "width": 60,
- },
- {
- "label": "T/G T",
- "tips": "导游小费\n",
- "totalPrice": 0,
- "singlePrice": 0,
- "singleTips": "导游小费人均\n",
- "width": 60,
- },
- {
- "label": "DRV T",
- "tips": "司机小费\n",
- "totalPrice": 0,
- "singlePrice": 0,
- "singleTips": "司机小费人均\n",
- "width": 60,
- },
- {
- "label": "P/C",
- "tips": "零用金\n",
- "totalPrice": 0,
- "singlePrice": 0,
- "singleTips": "零用金人均\n",
- "width": 60,
- },
- {
- "label": "T/L F",
- "tips": "领队费\n",
- "totalPrice": 0,
- "singlePrice": 0,
- "singleTips": "领队费人均\n",
- "width": 60,
- },
- {
- "label": "E/C T",
- "tips": "会务费\n",
- "totalPrice": 0,
- "singlePrice": 0,
- "singleTips": "会务费人均\n",
- "width": 60,
- }
- ],
- autoSave: null,
- acconarr: [],
- acconarrs: [],
- isShare: 0,
- blackCodeIsTrue: false,
- dialogTableVisible: false,
- gridData: [],
-
-
- x: 0,
- y: 0,
- tableDatas: [],
- dialogTableVisibleXJ: false,
- checkboxsXJ: [],
- historyCarInput: '',
- historyCarDialog: false,
- historyCarData: [],
-
-
-
-
- historyCarCloumns: [
- {
- "value": "teamName",
- "label": "团组名称"
- },
- {
- "value": "start",
- "label": "开始时间"
- },
- {
- "value": "end",
- "label": "结束时间"
- },
- {
- "value": "area",
- "label": "地区"
- },
- {
- "value": "price",
- "label": "总价格"
- },
- {
- "value": "dayPrice",
- "label": "单日价格"
- },
- {
- "value": "priceName",
- "label": "费用名称"
- },
- {
- "value": "priceContent",
- "label": "费用明细"
- },
- {
- "value": "datePrice",
- "label": "费用准确日期"
- }
- ],
- historyCarSelectObject: {},
- historyCarIndex: -1,
- hotelIsTrue: false,
- rollcallarr: []
- };
- },
- watch: {
- costTypeHotelNumbers: {
- handler(val) {
- for (var i = 0; i < val.length; i++) {
-
- if (val[i].tbr == '') {
- val[i].tbr = 0
- }
- if (val[i].sgr == '') {
- val[i].sgr = 0
- }
- if (val[i].jses == '') {
- val[i].jses = 0
- }
- if (val[i].suite == '') {
- val[i].suite = 0
- }
- }
- },
- deep: true
- },
- 'tableData.length': {
- handler(newValue, oldValue) {
- if (newValue !== oldValue) {
- if (this.tableData.length > 3) {
- this.centerheight = 700;
- } else {
- this.centerheight = this.defaultheight + (this.tableData.length * 230) - ((this.tableData.length - 1) * 50);
- }
-
- }
- }
- }
- },
- methods: {
- capslk(val, index) {
- this.tableData[index].itin = val.toUpperCase()
- },
- acconblur(index) {
- setTimeout(() => {
- document.querySelectorAll('.accon-ul')[index].classList.remove('accons-ul')
- }, 150)
- },
- acconinput(val, index) {
- this.acconarr = [];
- this.acconarrs = [];
-
-
- for (var i = 0; i < this.tableData.length; i++) {
- this.acconarr.push(this.tableData[i].accon)
- }
- for (var j = 0; j < this.acconarr.length; j++) {
- if (this.acconarr[j].includes(val)) {
- this.acconarrs.push(this.acconarr[j])
- }
- }
- this.acconarrs = Array.from(new Set(this.acconarrs));
-
- document.querySelectorAll('.accon-ul')[index].classList.add('accons-ul')
- },
- acconclick(val, index) {
- this.tableData[index].accon = val;
- },
- getSummaries(param) {
- var that = this;
-
- const { columns, data } = param;
- const sums = [];
- const sums1 = [];
- const texts = [];
- var prices = [];
- var BUpdate = []
- var thisData = data;
- var ATime = { start: that.addOneDay(that.AGroupCostParameter.costTypeStartTime, 0), end: that.addOneDay(that.AGroupCostParameter.costTypeendTime, 0) };
- var BTime = { start: that.addOneDay(that.BGroupCostParameter.costTypeStartTime, 0), end: that.addOneDay(that.BGroupCostParameter.costTypeendTime, 0) };
-
- var data1 = [];
- var data2 = [];
-
- if (that.costTypevalue == 'B') {
- for (var i = 0; i < thisData.length; i++) {
- var forTime = thisData[i].date;
- if (forTime == '' && i != 0) {
- forTime = thisData[i - 1].date;
- }
- if (forTime) {
- forTime = new Date(forTime).getTime();
- }
- if (forTime >= new Date(ATime.start).getTime() && forTime <= new Date(ATime.end).getTime()) {
- data1.push(thisData[i])
- }
- if (forTime >= new Date(BTime.start).getTime() && forTime <= new Date(BTime.end).getTime()) {
- data2.push(thisData[i])
- }
- }
- thisData = data1;
- if (isNaN(Number(that.AGroupCostParameter.costTypenumber)) || Number(that.AGroupCostParameter.costTypenumber) < 1) {
- that.peopleNumber = 1;
- } else {
- that.peopleNumber = Number(that.AGroupCostParameter.costTypenumber);
- }
- }
-
- columns.forEach((column, index) => {
- if (index === 0) {
- prices[index] = "总计:";
- that.lableSetPrice(column.label, '', '');
- return;
- }
- if (column.label == 'DATE' || column.label == 'ITIN' || column.label == 'VT' || column.label == 'VN' || column.label == 'ACCO N' || column.label == 'VA' || column.label == 'VRD' || column.label == 'T/G N' || column.label == 'T/G WH' || column.label == '操作' || column.label == 'TV/N' || column.label == 'IF/N' || column.label == 'EFR') {
- prices[index] = "——";
- that.lableSetPrice(column.label, '', '');
- return;
- }
- const values = thisData.map(item => Number(item[column.property]));
- if (!values.every(value => isNaN(value))) {
- sums[index] = values.reduce((prev, curr) => {
- const value = Number(curr);
- if (!isNaN(value)) {
- return prev + curr;
- } else {
- return prev;
- }
- }, 0);
- if (column.label == 'B' || column.label == 'L' || column.label == 'D' || column.label == 'EF' || column.label == 'TE' || column.label == 'T/G T' || column.label == 'P/C' || column.label == 'DRV T' || column.label == 'DRV T') {
- that.lableSetPrice(column.label, (sums[index] * that.peopleNumber).toFixed(2), (sums[index]).toFixed(2));
- prices[index] = '共' + (sums[index] * that.peopleNumber).toFixed(2) + ' ' + this.getCurr + '\r\n人均' + (sums[index]).toFixed(2) + " " + this.getCurr
- }
- else if (column.label == 'SGR' || column.label == 'JS/ES' || column.label == 'SUITE' || column.label == 'TBR') {
- if (column.label == 'TBR') {
- that.lableSetPrice(column.label, (sums[index]).toFixed(2), (sums[index] / 2).toFixed(2));
- prices[index] = '共' + (sums[index]).toFixed(2) + ' ' + this.getCurr + '\r\n人均' + (sums[index] / 2).toFixed(2) + " " + this.getCurr
- } else {
- that.lableSetPrice(column.label, (sums[index]).toFixed(2), (sums[index]).toFixed(2));
- prices[index] = '共' + (sums[index]).toFixed(2) + ' ' + this.getCurr + '\r\n人均' + (sums[index]).toFixed(2) + " " + this.getCurr
- }
- }
- else {
- that.lableSetPrice(column.label, sums[index].toFixed(2), (sums[index] / that.peopleNumber).toFixed(2));
- prices[index] = '共' + sums[index].toFixed(2) + ' ' + this.getCurr + '\r\n人均' + (sums[index] / that.peopleNumber).toFixed(2) + " " + this.getCurr
- sums[index] = parseFloat((sums[index] / that.peopleNumber).toFixed(2));
- }
- } else {
- prices[index] = 'N/A';
- }
- if (that.costTypevalue == 'B') {
- const values1 = data2.map(item => Number(item[column.property]));
- if (!values1.every(value => isNaN(value))) {
- sums1[index] = values1.reduce((prev, curr) => {
- const value = Number(curr);
- if (!isNaN(value)) {
- return prev + curr;
- } else {
- return prev;
- }
- }, 0);
- if (column.label == 'B' || column.label == 'L' || column.label == 'D' || column.label == 'EF' || column.label == 'TE' || column.label == 'T/G T' || column.label == 'P/C' || column.label == 'DRV T' || column.label == 'DRV T') {
- BUpdate.push({ label: column.label, total: (sums1[index] * that.BGroupCostParameter.costTypenumber).toFixed(2), single: (sums1[index]).toFixed(2) });
- prices[index] = 'A段费用' + prices[index] + '\r\nB段费用共' + (sums1[index] * that.BGroupCostParameter.costTypenumber).toFixed(2) + " " + this.getCurr + '\r\n人均' + (sums1[index]).toFixed(2) + " " + this.getCurr
- }
- else if (column.label == 'SGR' || column.label == 'JS/ES' || column.label == 'SUITE' || column.label == 'TBR') {
- if (column.label == 'TBR') {
- BUpdate.push({ label: column.label, total: (sums1[index]).toFixed(2), single: (sums1[index] / 2).toFixed(2) });
- prices[index] = 'A段费用' + prices[index] + '\r\nB段费用共' + (sums1[index]).toFixed(2) + " " + this.getCurr + '\r\n人均' + (sums1[index] / 2).toFixed(2) + " " + this.getCurr
- } else {
- BUpdate.push({ label: column.label, total: (sums1[index]).toFixed(2), single: (sums1[index]).toFixed(2) });
- prices[index] = 'A段费用' + prices[index] + '\r\nB段费用共' + (sums1[index]).toFixed(2) + " " + this.getCurr + '\r\n人均' + (sums1[index]).toFixed(2) + " " + this.getCurr
- }
- }
- else {
- BUpdate.push({ label: column.label, total: sums1[index].toFixed(2), single: (sums1[index] / that.BGroupCostParameter.costTypenumber).toFixed(2) });
- prices[index] = 'A段费用' + prices[index] + '\r\nB段费用共' + sums1[index].toFixed(2) + " " + this.getCurr + '\r\n人均' + (sums1[index] / that.BGroupCostParameter.costTypenumber).toFixed(2) + " " + this.getCurr
- sums1[index] = ((sums1[index] / that.BGroupCostParameter.costTypenumber).toFixed(2));
- }
- } else {
- prices[index] = 'A段费用' + prices[index] + ' B段费用' + 'N/A';
- }
- }
- var fliterList = that.sumTopPrice.filter(function (x) {
- return x.name == column.property;
- })
- if (fliterList.length == 0) {
- that.sumTopPrice.push({ name: column.property, label: column.label, Aprice: sums[index], Bprice: sums1[index] == undefined ? 0 : sums1[index] });
- } else {
- fliterList[0].Aprice = sums[index];
- fliterList[0].Bprice = sums1[index] == undefined ? 0 : sums1[index];
- }
- var TextfliterList = texts.filter(function (x) {
- return x.label == column.label;
- })
- var text = prices[index];
- if (TextfliterList.length == 0) {
- texts.push({ label: column.label, text: text });
- } else {
- TextfliterList[0].text = text;
- }
- });
- this.titleText = texts;
-
- this.CalculatedPrice();
-
- setTimeout(() => {
- this.setLastTitle(prices);
- if (that.costTypevalue == 'B') {
-
- BUpdate.forEach(function (item) {
- that.BlableSetPrice(item.label, item.total, item.single);
- })
- }
- }, 1000);
- return prices;
- },
- handleEdit(index, row, buttonIndex) {
-
- this.rowIndex = index;
- var api = '';
- switch (buttonIndex) {
- case 1:
- api = 'GetCarGuides';
- this.DialogTitle = '选择车导数据';
- break;
- case 2:
- api = 'GetGuidesInfo';
- this.DialogTitle = '导游信息';
- break;
- case 3:
- api = 'GetCarInfo';
- this.DialogTitle = '选择车数据';
- break;
- case 4:
- api = 'GetScenicSpotInfo';
- this.DialogTitle = '景点信息';
- break;
- }
- if (api == '') {
- this.$message.error('程序异常!');
- return;
- }
- this.dialogSearchInput = this.grouptitleinfo.visitCountry;
- var dataC = this.dialogColumn.filter(x => x.index == buttonIndex);
- if (dataC.length == 0) {
- this.SeldialogColumn = [];
- } else {
- this.SeldialogColumn = dataC[0].data;
- }
- var that = this;
- this.$axios.post('/api/Groups/' + api, {}, {
- headers: {
- 'Authorization': that.token,
- }
- }).then(resp => {
-
- that.outerVisible = true;
- if (resp.data.code == 200) {
- that.dialogTableData = resp.data.data;
- } else {
- that.$message.error('获取数据失败!' + resp.data.msg);
- }
- })
- },
- handleDelete(index, row, rows) {
-
- this.$confirm('此操作将删除该条信息, 是否继续?', '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- }).then(() => {
- this.$message({
- message: '已删除',
- type: 'success',
- offset: 50
- });
- rows.splice(index, 1);
- }).catch(() => {
- this.$message({
- type: 'info',
- message: '已取消删除'
- });
- });
- },
-
- increase(val) {
-
- if (this.tableData[val].day == "-") {
- this.tableData[val].day = 0
- }
- if (this.tableData[val].day <= 1) {
- return
- }
- this.tableData[val].day--
- this.NumberSetTime(this.tableData[val].day, val)
- },
-
- decrease(val) {
- if (this.tableData[val].day == "-") {
- this.tableData[val].day = 0
- }
- this.tableData[val].day++
- this.NumberSetTime(this.tableData[val].day, val)
- },
- addStrip() {
- var souerLength = this.tableData.length - 1;
- var dataStr = "";
- var day = '-';
- if (souerLength >= 0) {
- dataStr = this.tableData[souerLength].date;
- dataStr = this.addOneDay(dataStr, 1);
- var getDay = this.tableData[souerLength].day;
- if (getDay) {
- day = parseInt(getDay) + 1;
- } else {
- try {
- day = parseInt(this.tableData[souerLength - 1].day) + 1;
- dataStr = this.addOneDay(this.tableData[souerLength - 1].date, 1)
- } catch (e) {
- dataStr = "";
- day = '-';
- }
- }
- }
- this.tableData.push(
- {
- "diid": this.diid,
- "day": day,
- "date": dataStr,
- "itin": "",
- "carType": "",
- "carCost": "",
- "carNumber": "",
- "carTiming": "",
- "tgs": "",
- "tgwh": "",
- "tgn": "",
- "tgof": "",
- "tgm": "",
- "tga": "",
- "tgtf": "",
- "tgef": "",
- "cfs": "",
- "cfm": "",
- "cfof": "",
- "b": "",
- "l": "",
- "d": "",
- "tbr": "",
- "sgr": "",
- "jS_ES": "",
- "suite": "",
- "accon": "",
- "tv": "",
- "iL": "",
- "if": "",
- "ef": "",
- "b_R_F": "",
- "te": "",
- "tgTips": "",
- "drvTips": "",
- "pc": "",
- "tlf": "",
- "ect": "",
- "id": 1,
- "gwCount": "",
- "fyCount": "",
- "efr": "",
- }
- )
- },
- loadData(id) {
- this.costloading = true;
- this.tableData = [];
- var that = this;
- this.$axios.post('/api/Groups/GroupCostInit', {
- Diid: id
- }, {
- headers: {
- 'Authorization': that.token,
- }
- }).then(resp => {
- setTimeout(() => {
- that.PostTourClientListByDiId(id);
- }, 1000)
-
- if (resp.data.code == 200) {
- that.options = resp.data.data.groupList;
- that.grouptitleinfo = resp.data.data.groupInfo.data;
- that.diid = that.grouptitleinfo.id;
- localStorage.setItem('costLoadData', JSON.stringify({
- diid: that.diid
- }))
- that.QueryRate();
- for (var i = 0; i < that.CheckBoxListSelect.length; i++) {
- that.CheckBoxListSelect[i].diid = that.diid;
- }
- if (resp.data.data.groupChecks.length > 0) {
- resp.data.data.groupChecks.forEach(item => {
- for (var i = 0; i < that.CheckBoxListSelect.length; i++) {
- if (item.cbType == that.CheckBoxListSelect[i].cbType) {
- that.CheckBoxListSelect[i].cbValues = item.cbValues.split(',');
-
- break;
- }
- if (that.CheckBoxListSelect[i].diid == 0) {
- that.CheckBoxListSelect[i].diid = that.diid;
- }
- }
- })
- } else {
- that.CheckBoxListSelect = [
- {
- "diid": that.diid,
- "cbType": "Top",
- "cbValues": ['DAY', 'DATE', 'ITIN', 'VA', 'VT', 'VF', 'VRD', 'T/G S', 'T/G WH', 'C/F M', 'L', 'D', 'SGR', 'SUITE', 'ACCO N', 'T/V', 'EF', 'EFR', 'B/R/F', 'TE', 'DRV T', 'P/C']
- },
- {
- "diid": that.diid,
- "cbType": "Left",
- "cbValues": ['签证', '机票', '保险', '火车票', '地接', '公务', '零用金']
- },
- {
- "diid": that.diid,
- "cbType": "Right",
- "cbValues": ['公务舱 SGR', '经济舱 SGR', '团组预算明细']
- }
- ]
- }
- that.CheckBoxListSelect.forEach(x => {
- if (x.cbType == 'Top') {
- if (x.cbValues.includes("EF") && !x.cbValues.includes("EFR")) {
- x.cbValues.push("EFR");
- }
- }
- });
- that.grouptitleinfo.visitStartDate = that.grouptitleinfo.visitStartDate.split(' ')[0];
- that.grouptitleinfo.visitEndDate = that.grouptitleinfo.visitEndDate.split(' ')[0];
- that.peopleNumber = that.grouptitleinfo.visitPNumber > 0 ? that.grouptitleinfo.visitPNumber : 1;
- if (resp.data.data.groupCost.length > 0) {
- that.tableData = resp.data.data.groupCost;
-
- for (var i = 0; i < that.tableData.length; i++) {
- for (var prop in that.tableData[i]) {
-
- if (that.tableData[i][prop] == 0) {
- that.tableData[i][prop] = ''
- }
- }
- }
- } else {
- that.tableData = [
- {
- "diid": that.diid,
- "day": "-",
- "date": "",
- "itin": "",
- "carType": "",
- "carCost": "",
- "carNumber": "",
- "carTiming": "",
- "tgs": "",
- "tgwh": "",
- "tgn": "",
- "tgof": "",
- "tgm": "",
- "tga": "",
- "tgtf": "",
- "tgef": "",
- "cfs": "",
- "cfm": "",
- "cfof": "",
- "b": "",
- "l": "",
- "d": "",
- "tbr": "",
- "sgr": "",
- "jS_ES": "",
- "suite": "",
- "accon": "",
- "tv": "",
- "iL": "",
- "if": "",
- "ef": "",
- "b_R_F": "",
- "te": "",
- "tgTips": "",
- "drvTips": "",
- "pc": "",
- "tlf": "",
- "ect": "",
- "id": 1,
- "gwCount": "",
- "fyCount": "",
- "efr": "",
- }
- ]
- }
- if (resp.data.data.groupCostParameter.length > 0) {
- var acostvalue = resp.data.data.groupCostParameter.filter(x => x.costType == 'A')[0];
- if (acostvalue != undefined) {
- that.AGroupCostParameter = acostvalue;
- that.isShare = that.AGroupCostParameter.isShare;
-
- var result = Number(that.AGroupCostParameter.currency);
- if (isNaN(result)) {
- } else {
- that.AGroupCostParameter.currency = result;
- }
- } else {
- that.AGroupCostParameter = {
- "id": 0,
- "diId": 0,
- "currency": "CNY",
- "rate": 0,
- "tax": 0,
- "ffys": 0,
- "hotelXS": 0,
- "jjccb": 0,
- "jjcxs": 0,
- "jjcrs": 0,
- "gwccb": 0,
- "gwcxs": 0,
- "gwcrs": 0,
- "hcpcb": 0,
- "hcpxs": 0,
- "hcprs": 0,
- "cpcb": 0,
- "cpxs": 0,
- "cprs": 0,
- "bxcb": 0,
- "bxxs": 25,
- "bxrs": 0,
- "hscb": 0,
- "hsxs": 0,
- "hsrs": 0,
- "visaCB": 0,
- "visaXS": 0,
- "visaRS": 0,
- "gwcb": 0,
- "gwxs": 0,
- "gwrs": 0,
- "djcb": 0,
- "djrs": 0,
- "djxs": 0,
- "sgrcb": 0,
- "sgrNumber": 0,
- "sgrxs": 0,
- "tbrcb": 0,
- "tbrNumber": 0,
- "tbrxs": 0,
- "jsescb": 0,
- "jsesNumber": 0,
- "jsesxs": 0,
- "suitecb": 0,
- "suiteNumber": 0,
- "suitexs": 0,
- "lyjcb": 0,
- "lyjxs": 0,
- "lyjrs": 0,
- "isShare": 0,
- "costType": "A",
- "costTypeStartTime": "",
- "costTypeendTime": "",
- "costTypenumber": 0
- };
- }
- var bcostvalue = resp.data.data.groupCostParameter.filter(x => x.costType == 'B')[0];
- if (bcostvalue != undefined) {
- that.BGroupCostParameter = bcostvalue;
- } else {
- that.BGroupCostParameter = {
- "id": 0,
- "diId": 0,
- "currency": "",
- "rate": 0,
- "tax": 0,
- "ffys": 0,
- "hotelXS": 0,
- "jjccb": 0,
- "jjcxs": 0,
- "jjcrs": 0,
- "gwccb": 0,
- "gwcxs": 0,
- "gwcrs": 0,
- "hcpcb": 0,
- "hcpxs": 0,
- "hcprs": 0,
- "cpcb": 0,
- "cpxs": 0,
- "cprs": 0,
- "bxcb": 0,
- "bxxs": 25,
- "bxrs": 0,
- "hscb": 0,
- "hsxs": 0,
- "hsrs": 0,
- "visaCB": 0,
- "visaXS": 0,
- "visaRS": 0,
- "gwcb": 0,
- "gwxs": 0,
- "gwrs": 0,
- "djcb": 0,
- "djxs": 0,
- "djrs": 0,
- "sgrcb": 0,
- "sgrNumber": 0,
- "sgrxs": 0,
- "tbrcb": 0,
- "tbrNumber": 0,
- "tbrxs": 0,
- "jsescb": 0,
- "jsesNumber": 0,
- "jsesxs": 0,
- "suitecb": 0,
- "suiteNumber": 0,
- "suitexs": 0,
- "lyjcb": 0,
- "lyjxs": 0,
- "lyjrs": 0,
- "isShare": 0,
- "costType": "B",
- "costTypeStartTime": "",
- "costTypeendTime": "",
- "costTypenumber": 0
- };
- }
- if (resp.data.data.groupCostParameter.length > 1) {
- that.costTypevalue = "B";
- } else {
- that.costTypevalue = "A";
- }
- if (that.AGroupCostParameter.costTypeStartTime) {
- that.AGroupCostParameter.costTypeStartTime = new Date(that.AGroupCostParameter.costTypeStartTime);
- }
- if (that.AGroupCostParameter.costTypeendTime) {
- that.AGroupCostParameter.costTypeendTime = new Date(that.AGroupCostParameter.costTypeendTime);
- }
- if (that.BGroupCostParameter.costTypeStartTime) {
- that.BGroupCostParameter.costTypeStartTime = new Date(that.BGroupCostParameter.costTypeStartTime);
- }
- if (that.BGroupCostParameter.costTypeendTime) {
- that.BGroupCostParameter.costTypeendTime = new Date(that.BGroupCostParameter.costTypeendTime);
- }
- } else {
- that.AGroupCostParameter = {
- "id": 0,
- "diId": 0,
- "currency": "CNY",
- "rate": 0,
- "tax": 0,
- "ffys": 0,
- "hotelXS": 0,
- "jjccb": 0,
- "jjcxs": 0,
- "jjcrs": 0,
- "gwccb": 0,
- "gwcxs": 0,
- "gwcrs": 0,
- "hcpcb": 0,
- "hcpxs": 0,
- "hcprs": 0,
- "cpcb": 0,
- "cpxs": 0,
- "cprs": 0,
- "bxcb": 0,
- "bxxs": 25,
- "bxrs": 0,
- "hscb": 0,
- "hsxs": 0,
- "hsrs": 0,
- "visaCB": 0,
- "visaXS": 0,
- "visaRS": 0,
- "gwcb": 0,
- "gwxs": 0,
- "gwrs": 0,
- "djcb": 0,
- "djrs": 0,
- "djxs": 0,
- "sgrcb": 0,
- "sgrNumber": 0,
- "sgrxs": 0,
- "tbrcb": 0,
- "tbrNumber": 0,
- "tbrxs": 0,
- "jsescb": 0,
- "jsesNumber": 0,
- "jsesxs": 0,
- "suitecb": 0,
- "suiteNumber": 0,
- "suitexs": 0,
- "lyjcb": 0,
- "lyjxs": 0,
- "lyjrs": 0,
- "isShare": 0,
- "costType": "A",
- "costTypeStartTime": "",
- "costTypeendTime": "",
- "costTypenumber": 0
- };
- that.BGroupCostParameter = {
- "id": 0,
- "diId": 0,
- "currency": "",
- "rate": 0,
- "tax": 0,
- "ffys": 0,
- "hotelXS": 0,
- "jjccb": 0,
- "jjcxs": 0,
- "jjcrs": 0,
- "gwccb": 0,
- "gwcxs": 0,
- "gwcrs": 0,
- "hcpcb": 0,
- "hcpxs": 0,
- "hcprs": 0,
- "cpcb": 0,
- "cpxs": 0,
- "cprs": 0,
- "bxcb": 0,
- "bxxs": 25,
- "bxrs": 0,
- "hscb": 0,
- "hsxs": 0,
- "hsrs": 0,
- "visaCB": 0,
- "visaXS": 0,
- "visaRS": 0,
- "gwcb": 0,
- "gwxs": 0,
- "gwrs": 0,
- "djcb": 0,
- "djxs": 0,
- "djrs": 0,
- "sgrcb": 0,
- "sgrNumber": 0,
- "sgrxs": 0,
- "tbrcb": 0,
- "tbrNumber": 0,
- "tbrxs": 0,
- "jsescb": 0,
- "jsesNumber": 0,
- "jsesxs": 0,
- "suitecb": 0,
- "suiteNumber": 0,
- "suitexs": 0,
- "lyjcb": 0,
- "lyjxs": 0,
- "lyjrs": 0,
- "isShare": 0,
- "costType": "B",
- "costTypeStartTime": "",
- "costTypeendTime": "",
- "costTypenumber": 0
- };
- that.AGroupCostParameter.diId = that.diid;
- that.BGroupCostParameter.diId = that.diid;
- that.costTypevalue = 'A';
- }
- let hotelNumber = resp.data.data.hotelNumber;
- if (hotelNumber.length > 0) {
- for (var i = 0; i < hotelNumber.length; i++) {
-
- Array.forEach(that.costTypeHotelNumbers, (item, index) => {
- if (hotelNumber[i]['type'] == item.type) {
- that.$set(that.costTypeHotelNumbers, index, hotelNumber[i]);
- }
- })
- }
- } else {
- that.costTypeHotelNumbers = [{
- "sgr": 0,
- "tbr": 0,
- "jses": 0,
- "suite": 0,
- "type": "Default",
- "diid": 0,
- id: 0,
- },
- {
- "sgr": 0,
- "tbr": 0,
- "jses": 0,
- "suite": 0,
- "type": "A",
- "diid": 0,
- id: 0,
- },
- {
- "sgr": 0,
- "tbr": 0,
- "jses": 0,
- "suite": 0,
- "type": "B",
- "diid": 0,
- id: 0,
- }]
- }
- if (resp.data.data.visaCountryInfoArr.length > 0) {
- that.visaCountryInfoArr = resp.data.data.visaCountryInfoArr;
- } else {
- that.visaCountryInfoArr = [];
- }
- that.ShowBaoPi = [];
- if (resp.data.data.baoPi.length > 0) {
-
- const baoPi = resp.data.data.baoPi;
- for (var i = 0; i < baoPi.length; i++) {
- for (var j = 0; j < that.equalWhere.length; j++) {
- let item = that.equalWhere[j];
- for (var p in item) {
- if (baoPi[i].type == p) {
-
- for (var m = 0; m < that.sheetDatal.length; m++) {
- if (that.sheetDatal[m].EnLabel == item[p]) {
-
- that.sheetDatal[m].childList[0].tips = baoPi[i].price;
- }
- }
- }
- }
- }
- }
- var Meals = baoPi.filter(x => {
- return x.type == "Meals"
- })
- var Hotel = baoPi.filter(x => {
- return x.type == "Hotel"
- })
- var GongZa = baoPi.filter(x => {
- return x.type == "GongZa"
- })
- var SumAirJJC = baoPi.filter(x => {
- return x.type == "SumAirJJC"
- })
- var SumAirGWC = baoPi.filter(x => {
- return x.type == "SumAirGWC"
- })
- if (SumAirJJC.length > 0) {
- for (var i = 0; i < that.cabinDatal.length; i++) {
- if (that.cabinDatal[i].label.indexOf('经济舱') != -1) {
- that.cabinDatal[i].childList[3].tips = SumAirJJC[0].price
- }
- }
- }
- if (SumAirGWC.length > 0) {
- for (var i = 0; i < that.cabinDatal.length; i++) {
- if (that.cabinDatal[i].label.indexOf('公务舱') != -1) {
- that.cabinDatal[i].childList[3].tips = SumAirGWC[0].price
- }
- }
- }
- if (Meals.length > 0) {
- that.ShowBaoPi.push(Meals[0]);
- }
- if (Hotel.length > 0) {
- that.ShowBaoPi.push(Hotel[0]);
- }
- if (GongZa.length > 0) {
- that.ShowBaoPi.push(GongZa[0]);
- }
- } else {
- for (var m = 0; m < that.sheetDatal.length; m++) {
- if (that.sheetDatal[m].childList[0].tips) {
- that.sheetDatal[m].childList[0].tips = "暂无!";
- }
- }
- for (var i = 0; i < that.cabinDatal.length; i++) {
- if (that.cabinDatal[i].label.indexOf('经济舱') != -1) {
- that.cabinDatal[i].childList[3].tips = '暂无!'
- }
- if (that.cabinDatal[i].label.indexOf('公务舱') != -1) {
- that.cabinDatal[i].childList[3].tips = '暂无!'
- }
- }
- }
- that.hotelIsTrue = resp.data.data.hotelIsTrue;
- that.blackCodeIsTrue = resp.data.data.blackCodeIsTrue;
- that.GivePeopleNumber();
- }
- that.inSelectChangeCheck();
- that.costloading = false;
- }).catch(err => {
- that.costloading = false;
- this.$message({
- message: '网络异常!',
- type: 'error'
- });
- })
- },
- groupChange() {
- this.clearFormVerify();
- this.loadData(this.diid);
- },
- save() {
- return new Promise(async (resolve, reject) => {
- if (this.costTypevalue == 'A') {
- var sgrfilter = this.costTypeHotelNumbers.filter(x => {
- return x.type == 'Default'
- })[0];
- var pNumber = 0;
-
- for (var key in sgrfilter) {
- var parNumber = Number(sgrfilter[key]);
- if (isNaN(parNumber)) {
- parNumber = 0;
- } else {
- if (key == 'tbr') {
- pNumber += parNumber * 2;
- }
- if (key == 'sgr') {
- pNumber += parNumber;
- }
- if (key == 'jses') {
- pNumber += parNumber;
- }
- if (key == 'suite') {
- pNumber += parNumber;
- }
- }
- }
-
- if (this.grouptitleinfo.visitPNumber != pNumber) {
- this.$message.error('团组人数与房间人数不一致!')
- return resolve(false);
- }
- }
- var that = this;
- var Data = { diid: this.diid, userid: this.userId };
- var isTrue = await this.formVerify();
- if (isTrue) {
- Data.checkBoxs = this.CheckBoxListSelect.map(x => {
- return {
- diid: x.diid,
- cbType: x.cbType,
- cbValues: x.cbValues.join(',')
- };
- });
- Data.groupCosts = this.tableData;
- Data.costTypeHotelNumbers = this.costTypeHotelNumbers.map(x => {
- return {
- id: x.id,
- sgr: x.sgr,
- tbr: x.tbr,
- jses: x.jses,
- suite: x.suite,
- type: x.type,
- diid: that.diid
- };
- });
- this.AGroupCostParameter.currency = this.AGroupCostParameter.currency.toString();
- this.AGroupCostParameter.diId = this.diid;
- this.BGroupCostParameter.diId = this.diid;
- var Aparam = Object.assign({}, this.AGroupCostParameter);
- var Bparam = Object.assign({}, this.BGroupCostParameter);
- if (that.AGroupCostParameter.costTypeStartTime) {
- Aparam.costTypeStartTime = this.addOneDay(that.AGroupCostParameter.costTypeStartTime, 0);
- }
- if (that.AGroupCostParameter.costTypeendTime) {
- Aparam.costTypeendTime = this.addOneDay(that.AGroupCostParameter.costTypeendTime, 0);
- }
- if (that.BGroupCostParameter.costTypeStartTime) {
- Bparam.costTypeStartTime = this.addOneDay(that.BGroupCostParameter.costTypeStartTime, 0);
- }
- if (that.BGroupCostParameter.costTypeendTime) {
- Bparam.costTypeendTime = this.addOneDay(that.BGroupCostParameter.costTypeendTime, 0);
- }
- if (this.costTypevalue == "A") {
- Data.groupCostParameters = [Aparam];
- } else {
- Data.groupCostParameters = [Aparam, Bparam];
- }
- var ResultCostArr = this.Dataformat();
- Data.groupCosts = ResultCostArr;
-
- var that = this;
- this.$axios.post('/api/Groups/SaveGroupCost', Data, {
- headers: {
- 'Authorization': that.token,
- }
- }).then(resp => {
-
- if (resp.data.code == 200) {
- this.$message({
- message: '保存成功!',
- type: 'success'
- });
- resolve(true);
- } else {
- this.$message.error('保存失败!' + resp.data.msg);
- resolve(false);
- }
- var result = Number(that.AGroupCostParameter.currency);
- if (isNaN(result)) {
- } else {
- that.AGroupCostParameter.currency = result;
- }
- })
- } else {
- this.$message.error('请输入完整!');
- }
- })
- },
- TopChange() {
- },
- calculateZCB(EnLabelParam) {
- if (EnLabelParam == undefined) {
- return 0.00;
- }
- var sum = 0.00;
- if (this.AGroupCostParameter[EnLabelParam + 'CB'] != undefined) {
- sum = (parseFloat(this.AGroupCostParameter[EnLabelParam + 'CB']) * parseInt(this.AGroupCostParameter[EnLabelParam + 'RS']));
- } else if (this.AGroupCostParameter[EnLabelParam + 'cb'] != undefined) {
- sum = (parseFloat(this.AGroupCostParameter[EnLabelParam + 'cb']) * parseInt(this.AGroupCostParameter[EnLabelParam + 'rs'] != undefined ? this.AGroupCostParameter[EnLabelParam + 'rs'] : this.AGroupCostParameter[EnLabelParam + 'Number']));
- }
- if (isNaN(sum)) {
- sum = 0.00;
- }
- return sum.toFixed(2);
- },
- calculateDRBJ(EnLabelParam) {
- if (EnLabelParam == undefined) {
- return 0.00;
- }
- var sum = 0.00;
- if (this.AGroupCostParameter[EnLabelParam + 'CB'] != undefined) {
- sum = (parseFloat(this.AGroupCostParameter[EnLabelParam + 'CB']) * parseFloat(this.AGroupCostParameter[EnLabelParam + 'XS']));
- } else if (this.AGroupCostParameter[EnLabelParam + 'cb'] != undefined) {
- sum = (parseFloat(this.AGroupCostParameter[EnLabelParam + 'cb']) * parseFloat(this.AGroupCostParameter[EnLabelParam + 'xs']));
- }
- if (isNaN(sum)) {
- sum = 0.00;
- }
- return sum.toFixed(2);
- },
- calculateZBJ(EnLabelParam) {
- if (EnLabelParam == undefined) {
- return 0.00;
- }
- var sum = 0.00;
- var drbj = this.calculateDRBJ(EnLabelParam);
- if (this.AGroupCostParameter[EnLabelParam + 'RS'] != undefined) {
- sum = drbj * parseInt(this.AGroupCostParameter[EnLabelParam + 'RS']);
- } else if (this.AGroupCostParameter[EnLabelParam + 'rs'] != undefined) {
- sum = drbj * parseInt(this.AGroupCostParameter[EnLabelParam + 'rs']);
- } else if (this.AGroupCostParameter[EnLabelParam + 'Number'] != undefined) {
- sum = drbj * parseInt(this.AGroupCostParameter[EnLabelParam + 'Number']);
- }
- if (isNaN(sum)) {
- sum = 0.00;
- }
- return sum.toFixed(2);
- },
- calculateDRLR(EnLabelParam) {
- if (EnLabelParam == undefined) {
- return 0.00;
- }
- var sum = 0.00;
- var drbj = this.calculateDRBJ(EnLabelParam);
- if (this.AGroupCostParameter[EnLabelParam + 'CB'] != undefined) {
- sum = (drbj - parseFloat(this.AGroupCostParameter[EnLabelParam + 'CB']));
- } else if (this.AGroupCostParameter[EnLabelParam + 'cb'] != undefined) {
- sum = (drbj - parseFloat(this.AGroupCostParameter[EnLabelParam + 'cb']));
- }
- if (isNaN(sum)) {
- sum = 0.00;
- }
- return sum.toFixed(2);
- },
- calculateZLR(EnLabelParam) {
- if (EnLabelParam == undefined) {
- return 0.00;
- }
- var sum = 0.00;
- var drlr = this.calculateDRLR(EnLabelParam);
- if (this.AGroupCostParameter[EnLabelParam + 'RS'] != undefined) {
- sum = drlr * parseInt(this.AGroupCostParameter[EnLabelParam + 'RS']);
- } else if (this.AGroupCostParameter[EnLabelParam + 'rs'] != undefined) {
- sum = drlr * parseInt(this.AGroupCostParameter[EnLabelParam + 'rs']);
- } else if (this.AGroupCostParameter[EnLabelParam + 'Number'] != undefined) {
- sum = drlr * parseInt(this.AGroupCostParameter[EnLabelParam + 'Number']);
- }
- if (isNaN(sum)) {
- sum = 0.00;
- }
- return sum.toFixed(2);
- },
- BcalculateZCB(EnLabelParam) {
- if (EnLabelParam == undefined) {
- return 0.00;
- }
- var sum = 0.00;
- if (this.BGroupCostParameter[EnLabelParam + 'CB'] != undefined) {
- sum = (parseFloat(this.BGroupCostParameter[EnLabelParam + 'CB']) * parseInt(this.BGroupCostParameter[EnLabelParam + 'RS']));
- } else if (this.BGroupCostParameter[EnLabelParam + 'cb'] != undefined) {
- sum = (parseFloat(this.BGroupCostParameter[EnLabelParam + 'cb']) * parseInt(this.BGroupCostParameter[EnLabelParam + 'rs'] != undefined ? this.BGroupCostParameter[EnLabelParam + 'rs'] : this.BGroupCostParameter[EnLabelParam + 'Number']));
- }
- if (isNaN(sum)) {
- sum = 0.00;
- }
- return sum.toFixed(2);;
- },
- BcalculateDRBJ(EnLabelParam) {
- if (EnLabelParam == undefined) {
- return 0.00;
- }
- var sum = 0.00;
- if (this.BGroupCostParameter[EnLabelParam + 'CB'] != undefined) {
- sum = (parseFloat(this.BGroupCostParameter[EnLabelParam + 'CB']) * parseFloat(this.BGroupCostParameter[EnLabelParam + 'XS']));
- } else if (this.BGroupCostParameter[EnLabelParam + 'cb'] != undefined) {
- sum = (parseFloat(this.BGroupCostParameter[EnLabelParam + 'cb']) * parseFloat(this.BGroupCostParameter[EnLabelParam + 'xs']));
- }
- if (isNaN(sum)) {
- sum = 0.00;
- }
- return sum.toFixed(2);;
- },
- BcalculateZBJ(EnLabelParam) {
- if (EnLabelParam == undefined) {
- return 0.00;
- }
- var sum = 0.00;
- var drbj = this.BcalculateDRBJ(EnLabelParam);
- if (this.BGroupCostParameter[EnLabelParam + 'RS'] != undefined) {
- sum = drbj * parseInt(this.BGroupCostParameter[EnLabelParam + 'RS']);
- } else if (this.BGroupCostParameter[EnLabelParam + 'rs'] != undefined) {
- sum = drbj * parseInt(this.BGroupCostParameter[EnLabelParam + 'rs']);
- } else if (this.BGroupCostParameter[EnLabelParam + 'Number'] != undefined) {
- sum = drbj * parseInt(this.BGroupCostParameter[EnLabelParam + 'Number']);
- }
- if (isNaN(sum)) {
- sum = 0.00;
- }
- return sum.toFixed(2);
- },
- BcalculateDRLR(EnLabelParam) {
- if (EnLabelParam == undefined) {
- return 0.00;
- }
- var sum = 0.00;
- var drbj = this.BcalculateDRBJ(EnLabelParam);
- if (this.BGroupCostParameter[EnLabelParam + 'CB'] != undefined) {
- sum = drbj - parseFloat(this.BGroupCostParameter[EnLabelParam + 'CB']);
- } else if (this.BGroupCostParameter[EnLabelParam + 'cb'] != undefined) {
- sum = drbj - parseFloat(this.BGroupCostParameter[EnLabelParam + 'cb']);
- }
- if (isNaN(sum)) {
- sum = 0.00;
- }
- return sum.toFixed(2);;
- },
- BcalculateZLR(EnLabelParam) {
- if (EnLabelParam == undefined) {
- return 0.00;
- }
- var sum = 0.00;
- var drlr = this.BcalculateDRLR(EnLabelParam);
- if (this.BGroupCostParameter[EnLabelParam + 'RS'] != undefined) {
- sum = drlr * parseInt(this.BGroupCostParameter[EnLabelParam + 'RS']);
- } else if (this.BGroupCostParameter[EnLabelParam + 'rs'] != undefined) {
- sum = drlr * parseInt(this.BGroupCostParameter[EnLabelParam + 'rs']);
- } else if (this.BGroupCostParameter[EnLabelParam + 'Number'] != undefined) {
- sum = drlr * parseInt(this.BGroupCostParameter[EnLabelParam + 'Number']);
- }
- if (isNaN(sum)) {
- sum = 0.00;
- }
- return sum.toFixed(2);;
- },
- handleCurrentChange(val) {
- this.currentPage = val;
- },
- SelChange(row, oldrow) {
-
- this.dialogSelectObject = row;
- },
- handleSizeChange(val) {
- this.currentPage = 1;
- this.pageSize = val;
- },
- CalculatedPrice() {
- let rate = Number(this.AGroupCostParameter.rate);
- let Djsum = 0;
- let BDjsum = 0;
- var that = this;
- this.DJLables.forEach(function (item) {
- that.sumTopPrice.forEach(function (item1) {
- if (item == item1.label) {
- var Aprice = Number(item1.Aprice);
- if (!isNaN(Aprice)) {
- Djsum += Aprice;
- }
- var Bprice = Number(item1.Bprice);
- if (!isNaN(Bprice)) {
- BDjsum += Bprice;
- }
- }
- })
- })
- Djsum = Number((Djsum * rate).toFixed(2));
- BDjsum = Number((BDjsum * rate).toFixed(2));
- let GWsum = 0;
- let BGWsum = 0;
- this.GwLables.forEach(function (item) {
- that.sumTopPrice.forEach(function (item1) {
- if (item == item1.label) {
- var Aprice = Number(item1.Aprice);
- if (!isNaN(Aprice)) {
- GWsum += Aprice;
- }
- var Bprice = Number(item1.Bprice);
- if (!isNaN(Bprice)) {
- BGWsum += Bprice;
- }
- }
- })
- })
- GWsum = Number((GWsum * rate).toFixed(2));
- BGWsum = Number((BGWsum * rate).toFixed(2));
- let LYJsum = 0;
- let BLYJsum = 0;
- var lyjList = that.sumTopPrice.filter((x) => {
- return x.label == 'P/C';
- })
- if (lyjList.length > 0) {
- LYJsum = lyjList[0].Aprice;
- BLYJsum = lyjList[0].Bprice;
- }
- LYJsum = isNaN(LYJsum) ? 0 : LYJsum;
- BLYJsum = isNaN(BLYJsum) ? 0 : BLYJsum;
- LYJsum = Number((LYJsum * rate).toFixed(2));
- BLYJsum = Number((BLYJsum * rate).toFixed(2));
- let SGRsum = 0;
- let BSGRsum = 0;
- var SGRList = that.sumTopPrice.filter((x) => {
- return x.label == 'SGR';
- })
- if (SGRList.length > 0) {
- SGRsum = SGRList[0].Aprice;
- BSGRsum = SGRList[0].Bprice;
- }
- SGRsum = isNaN(SGRsum) ? 0 : SGRsum;
- BSGRsum = isNaN(BSGRsum) ? 0 : BSGRsum;
- SGRsum = (SGRsum * rate).toFixed(2);
- BSGRsum = (BSGRsum * rate).toFixed(2);
- let TBRsum = 0;
- let BTBRsum = 0;
- var TBRList = that.sumTopPrice.filter((x) => {
- return x.label == 'TBR';
- })
- if (TBRList.length > 0) {
- TBRsum = TBRList[0].Aprice;
- BTBRsum = TBRList[0].Bprice;
- }
- TBRsum = isNaN(TBRsum) ? 0 : TBRsum;
- BTBRsum = isNaN(BTBRsum) ? 0 : BTBRsum;
- TBRsum = (TBRsum * rate).toFixed(2);
- BTBRsum = (BTBRsum * rate).toFixed(2);
- let JSESsum = 0;
- let BJSESsum = 0;
- var JSESList = that.sumTopPrice.filter((x) => {
- return x.label == 'JS/ES';
- })
- if (JSESList.length > 0) {
- JSESsum = JSESList[0].Aprice;
- BJSESsum = JSESList[0].Bprice;
- }
- JSESsum = isNaN(JSESsum) ? 0 : JSESsum;
- BJSESsum = isNaN(BJSESsum) ? 0 : BJSESsum;
- JSESsum = JSESsum * rate;
- BJSESsum = BJSESsum * rate;
- let SUITEsum = 0;
- let BSUITEsum = 0;
- var SUITEList = that.sumTopPrice.filter((x) => {
- return x.label == 'SUITE';
- })
- if (SUITEList.length > 0) {
- SUITEsum = SUITEList[0].Aprice;
- BSUITEsum = SUITEList[0].Bprice;
- }
- SUITEsum = isNaN(SUITEsum) ? 0 : SUITEsum;
- BSUITEsum = isNaN(BSUITEsum) ? 0 : BSUITEsum;
- SUITEsum = (SUITEsum * rate).toFixed(2);
- BSUITEsum = (BSUITEsum * rate).toFixed(2);
-
-
- var sgrfilter = this.costTypeHotelNumbers.filter(x => {
- return x.type == 'Default'
- })
- let Bsgrfilter = {};
- if (this.costTypevalue == 'B') {
- sgrfilter = this.costTypeHotelNumbers.filter(x => {
- return x.type == 'A'
- })
- Bsgrfilter = this.costTypeHotelNumbers.filter(x => {
- return x.type == 'B'
- })
- Bsgrfilter = Bsgrfilter[0];
- }
- sgrfilter = sgrfilter[0];
- let hotelRooms = {
- "SGR": sgrfilter.sgr,
- "TBR": sgrfilter.tbr,
- "JSES": sgrfilter.jses,
- "SUITE": sgrfilter.suite
- };
- let flights = {
- "经济舱": this.AGroupCostParameter.jjcrs,
- "公务舱": this.AGroupCostParameter.gwcrs
- };
- let result = {};
- for (let flight of ["经济舱", "公务舱"]) {
- if (flight === "经济舱") {
- this.matchRooms(hotelRooms, flights, ["TBR", "SGR", "JSES", "SUITE"], flight, result);
- } else if (flight === "公务舱") {
- this.matchRooms(hotelRooms, flights, ["SUITE", "JSES", "SGR", "TBR"], flight, result);
- }
- }
- var rightCheckArr = [];
- if (this.costTypevalue == 'B') {
- let BhotelRooms = {
- "SGR": Bsgrfilter.sgr,
- "TBR": Bsgrfilter.tbr,
- "JSES": Bsgrfilter.jses,
- "SUITE": Bsgrfilter.suite
- };
- let Bflights = {
- "经济舱": this.BGroupCostParameter.jjcrs,
- "公务舱": this.BGroupCostParameter.gwcrs
- };
- let Bresult = {};
- for (let flight of ["经济舱", "公务舱"]) {
- if (flight === "经济舱") {
- this.matchRooms(BhotelRooms, Bflights, ["SGR", "TBR", "JSES", "SUITE"], flight, Bresult);
- } else if (flight === "公务舱") {
- this.matchRooms(BhotelRooms, Bflights, ["SUITE", "JSES", "SGR", "TBR"], flight, Bresult);
- }
- }
- var BtxtJJCSGRRS = (Bresult.hasOwnProperty("经济舱SGR") ? Bresult["经济舱SGR"] : 0)
- var BlblGWCSGRRS = (Bresult.hasOwnProperty("公务舱SGR") ? Bresult["公务舱SGR"] : 0)
- var BtxtJJCTBRRS = (Bresult.hasOwnProperty("经济舱TBR") ? Bresult["经济舱TBR"] * 2 : 0)
- var BtxtGWCJSESRS = (Bresult.hasOwnProperty("公务舱JSES") ? Bresult["公务舱JSES"] : 0)
- var BJJCSUITERS = (Bresult.hasOwnProperty("经济舱SUITE") ? Bresult["经济舱SUITE"] : 0)
- var BtxtGWCSUITERS = (Bresult.hasOwnProperty("公务舱SUITE") ? Bresult["公务舱SUITE"] : 0)
- if (BtxtJJCSGRRS > 0) {
- rightCheckArr.push('经济舱 SGR');
- }
- if (BlblGWCSGRRS > 0) {
- rightCheckArr.push('公务舱 SGR');
- }
- if (BtxtJJCTBRRS > 0) {
- rightCheckArr.push('经济舱 TBR');
- }
- if (BtxtGWCJSESRS > 0) {
- rightCheckArr.push('公务舱 JSES');
- }
- if (BJJCSUITERS > 0) {
- rightCheckArr.push('经济舱 SUITE');
- }
- if (BtxtGWCSUITERS > 0) {
- rightCheckArr.push('公务舱 SUITE');
- }
- this.BcabinDatal[0].sheetInfo[0].toll = BtxtJJCTBRRS;
- this.BcabinDatal[1].sheetInfo[0].toll = BtxtJJCSGRRS;
- this.BcabinDatal[2].sheetInfo[0].toll = BlblGWCSGRRS;
- this.BcabinDatal[3].sheetInfo[0].toll = BtxtGWCJSESRS;
- this.BcabinDatal[4].sheetInfo[0].toll = BtxtGWCSUITERS;
- this.BcabinDatal[5].sheetInfo[0].toll = BJJCSUITERS;
- this.BGroupCostParameter.djcb = BDjsum;
- this.BGroupCostParameter.gwcb = BGWsum;
- this.BGroupCostParameter.lyjcb = BLYJsum;
- this.BGroupCostParameter.sgrcb = BSGRsum;
- this.BGroupCostParameter.tbrcb = BTBRsum;
- this.BGroupCostParameter.jsescb = BJSESsum;
- this.BGroupCostParameter.suitecb = BSUITEsum;
- var BleftSum = this.BOtherCost();
- let BJJCSGR = (BleftSum + Number(this.BGroupCostParameter.sgrcb) + Number(this.BGroupCostParameter.jjccb));
- let BJJCTBR = BleftSum + (Number(this.BGroupCostParameter.tbrcb) / 2) + Number(this.BGroupCostParameter.jjccb);
- let BJJCSUITE = BleftSum + Number(this.BGroupCostParameter.suitecb) + Number(this.BGroupCostParameter.jjccb);
- let BGWCSUITE = (BleftSum + Number(this.BGroupCostParameter.suitecb) + Number(this.BGroupCostParameter.gwccb)).toFixed(2);
- let BGWCSGR = BleftSum + Number(this.BGroupCostParameter.sgrcb) + Number(this.BGroupCostParameter.gwccb);
- let BGWCJSES = BleftSum + Number(this.BGroupCostParameter.jsescb) + Number(this.BGroupCostParameter.gwccb);
- BJJCSGR = BJJCSGR.toFixed(2);
- var BrightSum = 0;
- this.OtherCostPropertyBJ.forEach((x) => {
- BrightSum += Number(that.BcalculateDRBJ(x));
- })
- let BJJCSGRDRBJ = (BrightSum + Number(that.BcalculateDRBJ('jjc')) + Number(that.BcalculateDRBJ('sgr'))).toFixed(2);
- let BJJCTBRDRBJ = BrightSum + (Number(that.BcalculateDRBJ('tbr')) / 2) + Number(that.BcalculateDRBJ('jjc'));
- let BJJCSUITEDRBJ = BrightSum + Number(that.BcalculateDRBJ('suite')) + Number(that.BcalculateDRBJ('jjc'));
- let BGWCSUITEDRBJ = BrightSum + Number(that.BcalculateDRBJ('suite')) + Number(that.BcalculateDRBJ('gwc'));
- let BGWCSGRDRBJ = BrightSum + Number(that.BcalculateDRBJ('sgr')) + Number(that.BcalculateDRBJ('gwc'));
- let BGWCJSESDRBJ = BrightSum + Number(that.BcalculateDRBJ('jses')) + Number(that.BcalculateDRBJ('gwc'));
- this.BcabinDatal[0].sheetInfo[0].costPerson = BJJCTBR;
- this.BcabinDatal[0].sheetInfo[0].singleQuote = BJJCTBRDRBJ;
- this.BcabinDatal[1].sheetInfo[0].costPerson = BJJCSGR;
- this.BcabinDatal[1].sheetInfo[0].singleQuote = BJJCSGRDRBJ;
- this.BcabinDatal[2].sheetInfo[0].costPerson = BGWCSGR;
- this.BcabinDatal[2].sheetInfo[0].singleQuote = BGWCSGRDRBJ;
- this.BcabinDatal[3].sheetInfo[0].costPerson = BGWCJSES;
- this.BcabinDatal[3].sheetInfo[0].singleQuote = BGWCJSESDRBJ;
- this.BcabinDatal[4].sheetInfo[0].costPerson = BGWCSUITE;
- this.BcabinDatal[4].sheetInfo[0].singleQuote = BGWCSUITEDRBJ;
- this.BcabinDatal[5].sheetInfo[0].costPerson = BJJCSUITE;
- this.BcabinDatal[5].sheetInfo[0].singleQuote = BJJCSUITEDRBJ;
- }
- var txtJJCSGRRS = (result.hasOwnProperty("经济舱SGR") ? result["经济舱SGR"] : 0)
- var lblGWCSGRRS = (result.hasOwnProperty("公务舱SGR") ? result["公务舱SGR"] : 0)
- var txtJJCTBRRS = (result.hasOwnProperty("经济舱TBR") ? result["经济舱TBR"] * 2 : 0)
- var txtGWCJSESRS = (result.hasOwnProperty("公务舱JSES") ? result["公务舱JSES"] : 0)
- var JJCSUITERS = (result.hasOwnProperty("经济舱SUITE") ? result["经济舱SUITE"] : 0)
- var txtGWCSUITERS = (result.hasOwnProperty("公务舱SUITE") ? result["公务舱SUITE"] : 0)
- console.log(txtJJCSGRRS, lblGWCSGRRS, txtJJCTBRRS, txtGWCJSESRS, JJCSUITERS, txtGWCSUITERS, 'test');
- if (txtJJCSGRRS > 0) {
- rightCheckArr.push('经济舱 SGR');
- }
- if (lblGWCSGRRS > 0) {
- rightCheckArr.push('公务舱 SGR');
- }
- if (txtJJCTBRRS > 0) {
- rightCheckArr.push('经济舱 TBR');
- }
- if (txtGWCJSESRS > 0) {
- rightCheckArr.push('公务舱 JSES');
- }
- if (JJCSUITERS > 0) {
- rightCheckArr.push('经济舱 SUITE');
- }
- if (txtGWCSUITERS > 0) {
- rightCheckArr.push('公务舱 SUITE');
- }
- rightCheckArr.push('团组预算明细');
- rightCheckArr = [...new Set(rightCheckArr)];
- try {
-
- this.CheckBoxListSelect.filter(item => item.cbType == 'Right')[0].cbValues = rightCheckArr;
- } catch (e) { }
- this.cabinDatal[0].sheetInfo[0].toll = txtJJCTBRRS;
- this.cabinDatal[1].sheetInfo[0].toll = txtJJCSGRRS;
- this.cabinDatal[2].sheetInfo[0].toll = lblGWCSGRRS;
- this.cabinDatal[3].sheetInfo[0].toll = txtGWCJSESRS;
- this.cabinDatal[4].sheetInfo[0].toll = txtGWCSUITERS;
- this.cabinDatal[5].sheetInfo[0].toll = JJCSUITERS;
- this.AGroupCostParameter.djcb = Djsum;
- this.AGroupCostParameter.gwcb = GWsum;
- this.AGroupCostParameter.lyjcb = LYJsum;
- this.AGroupCostParameter.sgrcb = SGRsum;
- this.AGroupCostParameter.tbrcb = TBRsum;
- this.AGroupCostParameter.jsescb = JSESsum;
- this.AGroupCostParameter.suitecb = SUITEsum;
- var leftSum = this.OtherCost();
- let JJCSGR = (leftSum + Number(this.AGroupCostParameter.sgrcb) + Number(this.AGroupCostParameter.jjccb)).toFixed(2);
- let JJCTBR = (leftSum + (Number(this.AGroupCostParameter.tbrcb) / 2) + Number(this.AGroupCostParameter.jjccb)).toFixed(2);
- let JJCSUITE = (leftSum + Number(this.AGroupCostParameter.suitecb) + Number(this.AGroupCostParameter.jjccb)).toFixed(2);
- let GWCSUITE = (leftSum + Number(this.AGroupCostParameter.suitecb) + Number(this.AGroupCostParameter.gwccb)).toFixed(2);
- let GWCSGR = (leftSum + Number(this.AGroupCostParameter.sgrcb) + Number(this.AGroupCostParameter.gwccb)).toFixed(2);
- let GWCJSES = (leftSum + Number(this.AGroupCostParameter.jsescb) + Number(this.AGroupCostParameter.gwccb)).toFixed(2);
-
- var rightSum = 0;
- this.OtherCostPropertyBJ.forEach((x) => {
- rightSum += Number(that.calculateDRBJ(x));
- })
- let JJCSGRDRBJ = (rightSum + Number(that.calculateDRBJ('jjc')) + Number(that.calculateDRBJ('sgr'))).toFixed(2);
- let JJCTBRDRBJ = (rightSum + (Number(that.calculateDRBJ('tbr')) / 2) + Number(that.calculateDRBJ('jjc'))).toFixed(2);
- let JJCSUITEDRBJ = (rightSum + Number(that.calculateDRBJ('suite')) + Number(that.calculateDRBJ('jjc'))).toFixed(2);
- let GWCSUITEDRBJ = (rightSum + Number(that.calculateDRBJ('suite')) + Number(that.calculateDRBJ('gwc'))).toFixed(2);
- let GWCSGRDRBJ = (rightSum + Number(that.calculateDRBJ('sgr')) + Number(that.calculateDRBJ('gwc'))).toFixed(2);
- let GWCJSESDRBJ = (rightSum + Number(that.calculateDRBJ('jses')) + Number(that.calculateDRBJ('gwc'))).toFixed(2);
- this.cabinDatal[0].sheetInfo[0].costPerson = JJCTBR;
- this.cabinDatal[0].sheetInfo[0].singleQuote = JJCTBRDRBJ;
- this.cabinDatal[1].sheetInfo[0].costPerson = JJCSGR;
- this.cabinDatal[1].sheetInfo[0].singleQuote = JJCSGRDRBJ;
- this.cabinDatal[2].sheetInfo[0].costPerson = GWCSGR;
- this.cabinDatal[2].sheetInfo[0].singleQuote = GWCSGRDRBJ;
- this.cabinDatal[3].sheetInfo[0].costPerson = GWCJSES;
- this.cabinDatal[3].sheetInfo[0].singleQuote = GWCJSESDRBJ;
- this.cabinDatal[4].sheetInfo[0].costPerson = GWCSUITE;
- this.cabinDatal[4].sheetInfo[0].singleQuote = GWCSUITEDRBJ;
- this.cabinDatal[5].sheetInfo[0].costPerson = JJCSUITE;
- this.cabinDatal[5].sheetInfo[0].singleQuote = JJCSUITEDRBJ;
- let groupCosts = 0;
- let gtroupQuotes = 0;
- for (var i = 0; i < this.cabinDatal.length; i++) {
- var forNumber = Number(this.cabinDatal[i].sheetInfo[0]['toll']);
- if (!isNaN(forNumber) && forNumber > 0) {
- groupCosts += (Number(this.cabinDatal[i].sheetInfo[0]['costPerson']) * forNumber);
- gtroupQuotes += (Number(this.cabinDatal[i].sheetInfo[0]['singleQuote']) * forNumber);
- }
- }
- if (this.costTypevalue == 'B') {
- for (var i = 0; i < this.BcabinDatal.length; i++) {
- var forNumber = Number(this.BcabinDatal[i].sheetInfo[0]['toll']);
- if (!isNaN(forNumber) && forNumber > 0) {
- groupCosts += (Number(this.BcabinDatal[i].sheetInfo[0]['costPerson']) * forNumber);
- gtroupQuotes += (Number(this.BcabinDatal[i].sheetInfo[0]['singleQuote']) * forNumber);
- }
- }
- }
- let groupProfit = gtroupQuotes - groupCosts;
- var cabinDatalLast = this.cabinDatal.filter(function (x) {
- return x.label == '团组预算明细'
- })
- groupCosts = groupCosts.toFixed(2);
- gtroupQuotes = gtroupQuotes.toFixed(2);
- groupProfit = groupProfit.toFixed(2);
- cabinDatalLast[0].sheetInfo[0]['groupCosts'] = groupCosts;
- cabinDatalLast[0].sheetInfo[0]['gtroupQuotes'] = gtroupQuotes;
- cabinDatalLast[0].sheetInfo[0]['groupProfit'] = groupProfit;
-
-
-
-
-
-
-
-
-
-
- },
- OtherCost() {
-
-
- var that = this;
- let sum = 0;
- this.OtherCostProperty.forEach((x) => {
- var param = that.AGroupCostParameter[x];
- if (param != undefined) {
- sum += Number(param);
- }
- })
- return sum;
- },
- BOtherCost() {
-
-
- var that = this;
- let sum = 0;
- this.OtherCostProperty.forEach((x) => {
- var param;
- if (x == 'visaCB' || x == 'bxcb') {
- param = that.AGroupCostParameter[x];
- } else {
- param = that.BGroupCostParameter[x];
- }
- if (param != undefined) {
- sum += Number(param);
- }
- })
- return sum;
- },
- matchRooms(hotelRooms, flights, roomTypes, flightType, result) {
- for (let roomType of roomTypes) {
- while (hotelRooms[roomType] > 0 && flights[flightType] > 0) {
- hotelRooms[roomType]--;
- flights[flightType]--;
- if (roomType === "TBR") {
- flights[flightType]--;
- }
- if (result.hasOwnProperty(flightType + roomType)) {
- result[flightType + roomType]++;
- } else {
- result[flightType + roomType] = 1;
- }
- }
- }
- },
- NumberSetTime(number, index) {
-
- number = parseInt(number);
- if (!isNaN(number)) {
- var time = this.addOneDay(this.grouptitleinfo.visitStartDate, number - 1)
- this.tableData[index].date = time;
- } else {
- this.tableData[index].date = '';
- this.tableData[index].day = '';
- }
- },
- addOneDay(dateString, number) {
- if (!dateString) {
- return "";
- }
- let date = new Date(dateString);
- date.setDate(date.getDate() + number);
- let year = date.getFullYear();
- let month = date.getMonth() + 1;
- let day = date.getDate();
- month = month < 10 ? '0' + month : month;
- day = day < 10 ? '0' + day : day;
- return `${year}-${month}-${day}`;
- },
- costTypeSelect(val) {
-
- },
- async formVerify() {
- return new Promise((resolve, reject) => {
- var forFormList = [];
- if (this.costTypevalue == 'A') {
- forFormList = ['inputs', 'DHotel'];
- } else {
- forFormList = ['inputs', 'AHotel', 'Asection', 'BHotel', 'Bsection'];
- }
- var that = this;
- for (var i = 0; i < forFormList.length; i++) {
- that.$refs[forFormList[i]].validate((valid) => {
- if (valid) {
- } else {
- resolve(valid);
- }
- });
- }
- resolve(true);
- })
- },
- clearFormVerify() {
- var forFormList = ['inputs', 'AHotel', 'Asection', 'BHotel', 'Bsection', 'DHotel'];
- this.$nextTick(() => {
- for (var i = 0; i < forFormList.length; i++) {
- this.$refs[forFormList[i]].resetFields();
- }
- })
- },
- topcheckboxChange(val, label) {
-
- var that = this;
- if (!val) {
- this.$confirm('此操作将清空整列数据, 是否继续?', '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- }).then(() => {
- if (label == 'SGR') {
- this.costTypeHotelNumbers.filter(item => item.type == 'Default')[0].sgr = 0
- }
- if (label == 'TBR') {
- this.costTypeHotelNumbers.filter(item => item.type == 'Default')[0].tbr = 0
- }
- if (label == 'JS/ES') {
- this.costTypeHotelNumbers.filter(item => item.type == 'Default')[0].jses = 0
- }
- if (label == 'SUITE') {
- this.costTypeHotelNumbers.filter(item => item.type == 'Default')[0].suite = 0
- }
- if (label == 'EF') {
- that.CheckBoxListSelect.forEach(x => {
- if (x.cbType == 'Top') {
- if (x.cbValues.includes("EFR")) {
- var index = x.cbValues.indexOf("EFR");
- if (index > -1) {
- x.cbValues.splice(index, 1);
- }
- }
- }
- });
- var fliterList = that.tableLabel.filter(x => x.label == "EFR");
- if (fliterList.length != 0) {
- var obj = {
- "diid": that.diid,
- "day": "-",
- "date": "",
- "itin": "",
- "carType": "",
- "carCost": "",
- "carNumber": "",
- "carTiming": "",
- "tgs": "",
- "tgwh": "",
- "tgn": "",
- "tgof": "",
- "tgm": "",
- "tga": "",
- "tgtf": "",
- "tgef": "",
- "cfs": "",
- "cfm": "",
- "cfof": "",
- "b": "",
- "l": "",
- "d": "",
- "tbr": "",
- "sgr": "",
- "jS_ES": "",
- "suite": "",
- "accon": "",
- "tv": "",
- "iL": "",
- "if": "",
- "ef": "",
- "b_R_F": "",
- "te": "",
- "tgTips": "",
- "drvTips": "",
- "pc": "",
- "tlf": "",
- "ect": "",
- "id": 1,
- "gwCount": "",
- "fyCount": "",
- "efr": "",
- };
- var prop = fliterList[0].prop;
- var initval = obj[prop];
- for (var i = 0; i < that.tableData.length; i++) {
- that.tableData[i][prop] = initval;
- }
-
- }
- }
-
- var fliterList = this.sumTopPrice.filter(x => x.label == label);
- if (fliterList.length != 0) {
- fliterList[0].Aprice = 0;
- fliterList[0].Bprice = 0;
- }
- fliterList = that.tableLabel.filter(x => x.label == label);
- if (fliterList.length != 0) {
- var obj = {
- "diid": that.diid,
- "day": "-",
- "date": "",
- "itin": "",
- "carType": "",
- "carCost": "",
- "carNumber": "",
- "carTiming": "",
- "tgs": "",
- "tgwh": "",
- "tgn": "",
- "tgof": "",
- "tgm": "",
- "tga": "",
- "tgtf": "",
- "tgef": "",
- "cfs": "",
- "cfm": "",
- "cfof": "",
- "b": "",
- "l": "",
- "d": "",
- "tbr": "",
- "sgr": "",
- "jS_ES": "",
- "suite": "",
- "accon": "",
- "tv": "",
- "iL": "",
- "if": "",
- "ef": "",
- "b_R_F": "",
- "te": "",
- "tgTips": "",
- "drvTips": "",
- "pc": "",
- "tlf": "",
- "ect": "",
- "id": 1,
- "gwCount": "",
- "fyCount": "",
- "efr": "",
- };
- var prop = fliterList[0].prop;
- var initval = obj[prop];
- for (var i = 0; i < that.tableData.length; i++) {
- that.tableData[i][prop] = initval;
- }
-
- }
- this.$message({
- message: '已清除!',
- type: 'success',
- offset: 50
- });
- }).catch(() => {
- this.$message({
- type: 'info',
- message: '已取消操作'
- });
- if (!that.CheckBoxListSelect.filter(item => item.cbType == 'Top')[0].cbValues.includes(label)) {
- that.CheckBoxListSelect.filter(item => item.cbType == 'Top')[0].cbValues.push(label);
- }
- });
- } else {
- if (label == 'EF') {
- that.CheckBoxListSelect.forEach(x => {
- if (x.cbType == 'Top') {
- if (!x.cbValues.includes("EFR")) {
- x.cbValues.push("EFR");
- }
- }
- });
- }
- }
- },
- GroupIsShare() {
- this.$axios.post('/api/Groups/GroupIsShare', { diid: this.diid }, {
- headers: {
- 'Authorization': this.token,
- }
- }).then(resp => {
-
- if (resp.data.code == 200) {
- this.isShare = resp.data.data.isShare;
- this.$message({
- message: '操作成功!' + resp.data.msg,
- type: 'success'
- });
- } else {
- this.$message.error('操作失败!' + resp.data.msg);
- }
- })
- },
- GetPriceCheckWord() {
- var that = this;
- var airs = [
- ];
- var sgrfilter = this.costTypeHotelNumbers.filter(x => {
- return x.type == 'Default'
- })
- let Bsgrfilter = {};
- if (this.costTypevalue == 'B') {
- sgrfilter = this.costTypeHotelNumbers.filter(x => {
- return x.type == 'A'
- })
- Bsgrfilter = this.costTypeHotelNumbers.filter(x => {
- return x.type == 'B'
- })
- Bsgrfilter = Bsgrfilter[0];
- }
- sgrfilter = sgrfilter[0];
- let hotelRooms = {
- "SGR": sgrfilter.sgr,
- "TBR": sgrfilter.tbr,
- "JSES": sgrfilter.jses,
- "SUITE": sgrfilter.suite
- };
- let flights = {
- "经济舱": this.AGroupCostParameter.jjcrs,
- "公务舱": this.AGroupCostParameter.gwcrs
- };
- let result = {};
- for (let flight of ["经济舱", "公务舱"]) {
- if (flight === "经济舱") {
- this.matchRooms(hotelRooms, flights, ["SGR", "TBR", "JSES", "SUITE"], flight, result);
- } else if (flight === "公务舱") {
- this.matchRooms(hotelRooms, flights, ["SUITE", "JSES", "SGR", "TBR"], flight, result);
- }
- }
- if (this.costTypevalue == 'B') {
- let BhotelRooms = {
- "SGR": Bsgrfilter.sgr,
- "TBR": Bsgrfilter.tbr,
- "JSES": Bsgrfilter.jses,
- "SUITE": Bsgrfilter.suite
- };
- let Bflights = {
- "经济舱": this.BGroupCostParameter.jjcrs,
- "公务舱": this.BGroupCostParameter.gwcrs
- };
- let Bresult = {};
- for (let flight of ["经济舱", "公务舱"]) {
- if (flight === "经济舱") {
- this.matchRooms(BhotelRooms, Bflights, ["SGR", "TBR", "JSES", "SUITE"], flight, Bresult);
- } else if (flight === "公务舱") {
- this.matchRooms(BhotelRooms, Bflights, ["SUITE", "JSES", "SGR", "TBR"], flight, Bresult);
- }
- }
- var BtxtJJCSGRRS = (Bresult.hasOwnProperty("经济舱SGR") ? Bresult["经济舱SGR"] : 0)
- var BlblGWCSGRRS = (Bresult.hasOwnProperty("公务舱SGR") ? Bresult["公务舱SGR"] : 0)
- var BtxtJJCTBRRS = (Bresult.hasOwnProperty("经济舱TBR") ? Bresult["经济舱TBR"] * 2 : 0)
- var BtxtGWCJSESRS = (Bresult.hasOwnProperty("公务舱JSES") ? Bresult["公务舱JSES"] : 0)
- var BJJCSUITERS = (Bresult.hasOwnProperty("经济舱SUITE") ? Bresult["经济舱SUITE"] : 0)
- var BtxtGWCSUITERS = (Bresult.hasOwnProperty("公务舱SUITE") ? Bresult["公务舱SUITE"] : 0)
- var BrightSum = 0;
- this.OtherCostPropertyBJ.forEach((x) => {
- BrightSum += Number(that.BcalculateDRBJ(x));
- })
- let BJJCSGRDRBJ = BrightSum + Number(that.BcalculateDRBJ('jjc')) + Number(that.BcalculateDRBJ('sgr'));
- let BJJCTBRDRBJ = BrightSum + (Number(that.BcalculateDRBJ('tbr')) / 2) + Number(that.BcalculateDRBJ('jjc'));
- let BJJCSUITEDRBJ = BrightSum + Number(that.BcalculateDRBJ('suite')) + Number(that.BcalculateDRBJ('jjc'));
- let BGWCSUITEDRBJ = BrightSum + Number(that.BcalculateDRBJ('suite')) + Number(that.BcalculateDRBJ('gwc'));
- let BGWCSGRDRBJ = BrightSum + Number(that.BcalculateDRBJ('sgr')) + Number(that.BcalculateDRBJ('gwc'));
- let BGWCJSESDRBJ = BrightSum + Number(that.BcalculateDRBJ('jses')) + Number(that.BcalculateDRBJ('gwc'));
- airs.push({
- "code": "JJCTBR",
- "number": BtxtJJCTBRRS,
- "price": BJJCTBRDRBJ,
- "costType": "B"
- });
- airs.push({
- "code": "JJCSGR",
- "number": BtxtJJCSGRRS,
- "price": BJJCSGRDRBJ,
- "costType": "B"
- });
- airs.push({
- "code": "GWCSGR",
- "number": BlblGWCSGRRS,
- "price": BGWCSGRDRBJ,
- "costType": "B"
- });
- airs.push({
- "code": "GWCJSES",
- "number": BtxtGWCJSESRS,
- "price": BGWCJSESDRBJ,
- "costType": "B"
- });
- airs.push({
- "code": "GWCSUITE",
- "number": BtxtGWCSUITERS,
- "price": BGWCSUITEDRBJ,
- "costType": "B"
- });
- airs.push({
- "code": "JJCSUITE",
- "number": BJJCSUITERS,
- "price": BJJCSUITEDRBJ,
- "costType": "B"
- });
- }
- var txtJJCSGRRS = (result.hasOwnProperty("经济舱SGR") ? result["经济舱SGR"] : 0)
- var lblGWCSGRRS = (result.hasOwnProperty("公务舱SGR") ? result["公务舱SGR"] : 0)
- var txtJJCTBRRS = (result.hasOwnProperty("经济舱TBR") ? result["经济舱TBR"] * 2 : 0)
- var txtGWCJSESRS = (result.hasOwnProperty("公务舱JSES") ? result["公务舱JSES"] : 0)
- var JJCSUITERS = (result.hasOwnProperty("经济舱SUITE") ? result["经济舱SUITE"] : 0)
- var txtGWCSUITERS = (result.hasOwnProperty("公务舱SUITE") ? result["公务舱SUITE"] : 0)
- var rightSum = 0;
- this.OtherCostPropertyBJ.forEach((x) => {
- rightSum += Number(that.calculateDRBJ(x));
- })
- let JJCSGRDRBJ = (rightSum + Number(that.calculateDRBJ('jjc')) + Number(that.calculateDRBJ('sgr'))).toFixed(2);
- let JJCTBRDRBJ = (rightSum + (Number(that.calculateDRBJ('tbr')) / 2) + Number(that.calculateDRBJ('jjc'))).toFixed(2);
- let JJCSUITEDRBJ = (rightSum + Number(that.calculateDRBJ('suite')) + Number(that.calculateDRBJ('jjc'))).toFixed(2);
- let GWCSUITEDRBJ = (rightSum + Number(that.calculateDRBJ('suite')) + Number(that.calculateDRBJ('gwc'))).toFixed(2);
- let GWCSGRDRBJ = (rightSum + Number(that.calculateDRBJ('sgr')) + Number(that.calculateDRBJ('gwc'))).toFixed(2);
- let GWCJSESDRBJ = (rightSum + Number(that.calculateDRBJ('jses')) + Number(that.calculateDRBJ('gwc'))).toFixed(2);
- airs.push({
- "code": "JJCTBR",
- "number": txtJJCTBRRS,
- "price": JJCTBRDRBJ,
- "costType": "A"
- });
- airs.push({
- "code": "JJCSGR",
- "number": txtJJCSGRRS,
- "price": JJCSGRDRBJ,
- "costType": "A"
- });
- airs.push({
- "code": "GWCSGR",
- "number": lblGWCSGRRS,
- "price": GWCSGRDRBJ,
- "costType": "A"
- });
- airs.push({
- "code": "GWCJSES",
- "number": txtGWCJSESRS,
- "price": GWCJSESDRBJ,
- "costType": "A"
- });
- airs.push({
- "code": "GWCSUITE",
- "number": txtGWCSUITERS,
- "price": GWCSUITEDRBJ,
- "costType": "A"
- });
- airs.push({
- "code": "JJCSUITE",
- "number": JJCSUITERS,
- "price": JJCSUITEDRBJ,
- "costType": "A"
- });
- var that = this;
- this.$axios.post('/api/Groups/ExportPriceCheckWordFile', { diid: this.diid, airs: airs }, {
- headers: {
- 'Authorization': this.token,
- }
- }).then(resp => {
-
- try {
- if (resp.data.code != 200) {
- throw resp.data.msg;
- }
- var file = resp.data.data;
- that.fileDownload(file.data, file.strFileName);
- } catch (error) {
- this.$message.error('操作失败!' + error.message);
- }
- })
- },
- fileDownload(data, filename) {
- let blob = this.base64toBlob(data);
- let link = document.createElement('a');
- link.href = window.URL.createObjectURL(blob);
- link.download = filename;
- link.click();
- },
- base64toBlob(base64, type = 'application/octet-stream') {
- const bstr = atob(base64);
- let n = bstr.length;
- const u8arr = new Uint8Array(n);
- while (n--) {
- u8arr[n] = bstr.charCodeAt(n);
- }
- return new Blob([u8arr], { type });
- },
- async GetGroupCostExcel() {
-
- var isTrue = await this.save();
- if (!isTrue) {
- this.$message.error('请检查数据!');
- return;
- }
- var that = this;
- var group = this.options.filter(function (x) {
- return x.id == that.diid
- })
- if (group.length == 0) {
- this.$message.error('请选择团组!' + resp.data.msg);
- return;
- }
- var resultCurr = Number(this.AGroupCostParameter.currency);
- if (isNaN(resultCurr)) {
- resultCurr = this.AGroupCostParameter.currency;
- } else {
- for (let index = 0; index < this.currencyOption.length; index++) {
- if (this.currencyOption[index].currencyId == resultCurr) {
- resultCurr = this.currencyOption[index].currencyCode;
- }
- }
- }
- var data = {
- diid: this.diid,
- costType: this.costTypevalue,
- title: {
- groupNumber: Number(this.grouptitleinfo.visitPNumber),
- teamName: group[0].groupName,
- tax: this.AGroupCostParameter.tax,
- currency: resultCurr,
- rate: this.AGroupCostParameter.rate
- },
- leftInfo: {
- },
- rightInfo: {
- },
- titleModel: {
- }
- };
- var leftObject = this.GetDomLeftValue();
- var rightObject = this.GetDomRightValue();
- data.leftInfo = leftObject;
- data.rightInfo = rightObject;
- data.titleModel = this.titleText;
-
- this.$axios.post('/api/Groups/ExportGroupCostExcelFile', data, {
- headers: {
- 'Authorization': this.token,
- }
- }).then(resp => {
-
- if (resp.data.code == 200) {
- var file = resp.data.data;
- that.fileDownload(file.data, file.strFileName);
- } else {
- that.$message.error('操作失败!' + resp.data.msg);
- }
- })
- },
- GetDomLeftValue() {
- var AllResult = [];
- var boxDoms = document.querySelectorAll(".sheet-box .biaoge");
- var titleClassName = 'el-table__header-wrapper';
- var bodyClassName = 'el-table__body-wrapper';
- var result = [];
- for (var i = 0; i < boxDoms.length; i++) {
- var chiBoxs = boxDoms[i].children[0].children;
- var info = {};
- info.index = i;
- for (var j = 0; j < chiBoxs.length; j++) {
- if (chiBoxs[j].className.indexOf(titleClassName) != -1) {
- info.title = chiBoxs[j].querySelectorAll('thead tr th')[0].innerText;
- } else if (chiBoxs[j].className.indexOf(bodyClassName) != -1) {
- var title = info.title;
- if (title.indexOf('酒店') != -1 || title.indexOf('地接') != -1 || title.indexOf('公务单人') != -1 || title.indexOf('零用金') != -1) {
- info.cb = chiBoxs[j].querySelectorAll('tbody tr td')[0].querySelector('span') ? chiBoxs[j].querySelectorAll('tbody tr td')[0].querySelector('span').innerText : '0';
- } else {
- info.cb = chiBoxs[j].querySelectorAll('tbody tr td')[0].querySelector('input') ? chiBoxs[j].querySelectorAll('tbody tr td')[0].querySelector('input').value : '0';
- }
- info.rs = chiBoxs[j].querySelectorAll('tbody tr td')[1].querySelector('input') ? chiBoxs[j].querySelectorAll('tbody tr td')[1].querySelector('input').value : '0';
- info.xs = chiBoxs[j].querySelectorAll('tbody tr td')[2].querySelector('input') ? chiBoxs[j].querySelectorAll('tbody tr td')[2].querySelector('input').value : '0';
- }
- }
- result.push(info)
- }
- AllResult.push({ type: "A", leftinfoNumber: result })
- if (this.costTypevalue == 'B') {
- var boxDoms = document.querySelectorAll(".sheet-box .biaogeB");
- var result = [];
- for (var i = 0; i < boxDoms.length; i++) {
- var chiBoxs = boxDoms[i].children[0].children;
- var info = {};
- info.index = i;
- for (var j = 0; j < chiBoxs.length; j++) {
- if (chiBoxs[j].className.indexOf(titleClassName) != -1) {
- info.title = chiBoxs[j].querySelectorAll('thead tr th')[0].innerText;
- } else if (chiBoxs[j].className.indexOf(bodyClassName) != -1) {
- var title = info.title;
- if (title.indexOf('酒店') != -1 || title.indexOf('地接') != -1 || title.indexOf('公务单人') != -1 || title.indexOf('零用金') != -1) {
- info.cb = chiBoxs[j].querySelectorAll('tbody tr td')[0].querySelector('span') ? chiBoxs[j].querySelectorAll('tbody tr td')[0].querySelector('span').innerText : '0';
- } else {
- info.cb = chiBoxs[j].querySelectorAll('tbody tr td')[0].querySelector('input') ? chiBoxs[j].querySelectorAll('tbody tr td')[0].querySelector('input').value : '0';
- }
- info.rs = chiBoxs[j].querySelectorAll('tbody tr td')[1].querySelector('input') ? chiBoxs[j].querySelectorAll('tbody tr td')[1].querySelector('input').value : '0';
- info.xs = chiBoxs[j].querySelectorAll('tbody tr td')[2].querySelector('input') ? chiBoxs[j].querySelectorAll('tbody tr td')[2].querySelector('input').value : '0';
- }
- }
- result.push(info)
- }
- AllResult.push({ type: "B", leftinfoNumber: result })
- }
- return AllResult;
- },
- GetDomRightValue() {
- var AllResult = [];
- var boxDoms = document.querySelectorAll(".cabin-li .biaoge");
- var titleClassName = 'el-table__header-wrapper';
- var bodyClassName = 'el-table__body-wrapper';
- var result = [];
- for (var i = 0; i < boxDoms.length - 1; i++) {
- var chiBoxs = boxDoms[i].children[1].children;
- var info = {};
- info.index = i;
- for (var j = 0; j < chiBoxs.length; j++) {
- if (chiBoxs[j].className.indexOf(titleClassName) != -1) {
- info.title = boxDoms[i].children[0].innerText + chiBoxs[j].querySelectorAll('thead tr th')[0].innerText;
- } else if (chiBoxs[j].className.indexOf(bodyClassName) != -1) {
- info.cb = chiBoxs[j].querySelectorAll('tbody tr td')[0].querySelector('span') ? chiBoxs[j].querySelectorAll('tbody tr td')[0].querySelector('span').innerText : '0';
- info.rs = chiBoxs[j].querySelectorAll('tbody tr td')[1].querySelector('input') ? chiBoxs[j].querySelectorAll('tbody tr td')[1].querySelector('input').value : '0';
- info.xs = chiBoxs[j].querySelectorAll('tbody tr td')[2].querySelector('span') ? chiBoxs[j].querySelectorAll('tbody tr td')[2].querySelector('span').innerText : '0';
- info.bj = chiBoxs[j].querySelectorAll('tbody tr td')[3].querySelector('span') ? chiBoxs[j].querySelectorAll('tbody tr td')[3].querySelector('span').innerText : '0';
- }
- }
- result.push(info)
- }
- AllResult.push({ type: "A", rightInfoNumber: result })
- if (this.costTypevalue == 'B') {
- var boxDoms = document.querySelectorAll(".cabin-li .biaogeB");
- var result = [];
- for (var i = 0; i < boxDoms.length; i++) {
- var chiBoxs = boxDoms[i].children[1].children;
- var info = {};
- info.index = i;
- for (var j = 0; j < chiBoxs.length; j++) {
- if (chiBoxs[j].className.indexOf(titleClassName) != -1) {
- info.title = boxDoms[i].children[0].innerText + chiBoxs[j].querySelectorAll('thead tr th')[0].innerText;
- } else if (chiBoxs[j].className.indexOf(bodyClassName) != -1) {
- info.cb = chiBoxs[j].querySelectorAll('tbody tr td')[0].querySelector('span') ? chiBoxs[j].querySelectorAll('tbody tr td')[0].querySelector('span').innerText : '0';
- info.rs = chiBoxs[j].querySelectorAll('tbody tr td')[1].querySelector('input') ? chiBoxs[j].querySelectorAll('tbody tr td')[1].querySelector('input').value : '0';
- info.xs = chiBoxs[j].querySelectorAll('tbody tr td')[2].querySelector('span') ? chiBoxs[j].querySelectorAll('tbody tr td')[2].querySelector('span').innerText : '0';
- info.bj = chiBoxs[j].querySelectorAll('tbody tr td')[3].querySelector('span') ? chiBoxs[j].querySelectorAll('tbody tr td')[3].querySelector('span').innerText : '0';
- }
- }
- result.push(info)
- }
- AllResult.push({ type: "B", rightInfoNumber: result })
- }
- return AllResult;
- },
- setLastTitle(list) {
- let summaryRow = document.querySelectorAll('.el-table__footer-wrapper .cell');
- for (var i = 0; i < summaryRow.length; i++) {
- let summaryRowOne = summaryRow[i];
- if (summaryRowOne.innerHTML == '总计:' || summaryRowOne.innerHTML == '——') {
- } else {
- summaryRowOne.setAttribute('title', list[i]);
- }
- }
- },
- GetClientWord() {
- var that = this;
- var data = {
- "diid": this.diid,
- "costType": this.costTypevalue,
- "rate": this.AGroupCostParameter.rate,
- "carGuides1": "",
- "meal": "",
- "subsidizedMeals": "",
- "nightRepair": "",
- "attractionsTickets": "",
- "miscellaneousFees": "",
- "aTip": "",
- "tzZCost": "",
- "leftInfo": '',
- };
- var vehicleResult = this.GetDJLableBJ(this.vehicleLables);
- var DJMealResult = this.GetDJLableBJ(this.DJMeal);
- var SubsidizedMealsResult = this.GetDJLableBJ(this.SubsidizedMeals);
- var NightRepairResult = this.GetDJLableBJ(this.NightRepair);
- var AttractionsTicketsResult = this.GetDJLableBJ(this.AttractionsTickets);
- var DJMealResult = this.GetDJLableBJ(this.DJMeal);
- var ATipResult = this.GetDJLableBJ(this.ATipResult);
- data.leftInfo = this.GetDomLeftValue();
-
-
-
-
-
-
-
- if (this.costTypevalue === "B") {
- data.carGuides1 = "RMB A段费用 " + vehicleResult.sum + " B段费用 RMB" + vehicleResult.Bsum;
- data.meal = "RMB A段费用 " + DJMealResult.sum + " B段费用 RMB" + DJMealResult.Bsum;
- data.subsidizedMeals = "RMB A段费用 " + SubsidizedMealsResult.sum + " B段费用 RMB" + SubsidizedMealsResult.Bsum;
- data.nightRepair = "RMB A段费用 " + NightRepairResult.sum + " B段费用 RMB" + NightRepairResult.Bsum;
- data.attractionsTickets = "RMB A段费用 " + AttractionsTicketsResult.sum + " B段费用 RMB" + AttractionsTicketsResult.Bsum;
- data.miscellaneousFees = "RMB A段费用 " + DJMealResult.sum + " B段费用 RMB" + DJMealResult.Bsum;
- data.aTip = "RMB A段费用 " + ATipResult.sum + " B段费用 RMB" + ATipResult.Bsum;
- } else {
- data.carGuides1 = "RMB " + vehicleResult.sum;
- data.meal = "RMB " + DJMealResult.sum;
- data.subsidizedMeals = "RMB " + SubsidizedMealsResult.sum;
- data.nightRepair = "RMB " + NightRepairResult.sum;
- data.attractionsTickets = "RMB " + AttractionsTicketsResult.sum;
- data.miscellaneousFees = "RMB " + DJMealResult.sum;
- data.aTip = "RMB " + ATipResult.sum;
- }
- var cabinDatalLast = this.cabinDatal.filter(function (x) {
- return x.label == '团组预算明细'
- })
- data.tzZCost = cabinDatalLast[0].sheetInfo[0].gtroupQuotes;
- this.$axios.post('/api/Groups/ExportClientWordFile', data, {
- headers: {
- 'Authorization': this.token,
- }
- }).then(resp => {
-
- if (resp.data.code == 200) {
- var file = resp.data.data;
- that.fileDownload(file.data, file.strFileName);
- } else {
- that.$message.error('操作失败!' + resp.data.msg);
- }
- })
- },
- insertRow(index, rowParam, oper) {
- var that = this;
- var row = {
- "diid": this.diid,
- "day": rowParam.day,
- "date": "",
- "itin": "",
- "carType": "",
- "carCost": "",
- "carNumber": "",
- "carTiming": "",
- "tgs": "",
- "tgwh": "",
- "tgn": "",
- "tgof": "",
- "tgm": "",
- "tga": "",
- "tgtf": "",
- "tgef": "",
- "cfs": "",
- "cfm": "",
- "cfof": "",
- "b": "",
- "l": "",
- "d": "",
- "tbr": "",
- "sgr": "",
- "jS_ES": "",
- "suite": "",
- "accon": "",
- "tv": "",
- "iL": "",
- "if": "",
- "ef": "",
- "b_R_F": "",
- "te": "",
- "tgTips": "",
- "drvTips": "",
- "pc": "",
- "tlf": "",
- "ect": "",
- "id": 1,
- "gwCount": "",
- "fyCount": "",
- "efr": "",
- };
- if (oper == 'UP') {
- if (rowParam.date) {
- row.date = this.addOneDay(rowParam.date, -1);
- }
- that.tableData.splice(index, 0, row)
- } else {
- if (rowParam.date) {
- row.date = this.addOneDay(rowParam.date, 1);
- }
- that.tableData.splice(index + 1, 0, row)
- }
-
- var thisDay = 1;
- for (var i = 0; i < that.tableData.length; i++) {
-
- if (Number(that.tableData[i].day) > 0) {
- that.tableData[i].day = thisDay;
- thisDay++;
- }
- }
- },
- Dataformat() {
- var that = this;
- var oldSoure = JSON.stringify(that.tableData);
- var souer = {
- "diid": this.diid,
- "day": "-",
- "date": "",
- "itin": "",
- "carType": "",
- "carCost": 0,
- "carNumber": 0,
- "carTiming": 0,
- "tgs": 0,
- "tgwh": 0,
- "tgn": 0,
- "tgof": 0,
- "tgm": 0,
- "tga": 0,
- "tgtf": 0,
- "tgef": 0,
- "cfs": 0,
- "cfm": 0,
- "cfof": 0,
- "b": 0,
- "l": 0,
- "d": 0,
- "tbr": 0,
- "sgr": 0,
- "jS_ES": 0,
- "suite": 0,
- "accon": "",
- "tv": 0,
- "iL": 0,
- "if": 0,
- "ef": 0,
- "b_R_F": 0,
- "te": 0,
- "tgTips": 0,
- "drvTips": 0,
- "pc": 0,
- "tlf": 0,
- "ect": 0,
- "id": 1,
- "gwCount": "",
- "fyCount": "",
- "efr": "",
- };
- var numberList = [];
- for (var key in souer) {
- if (typeof souer[key] == 'number') {
- numberList.push(key);
- }
- }
-
-
- for (var i = 0; i < that.tableData.length; i++) {
- that.tableData[i].day = that.tableData[i].day.toString();
- for (var j = 0; j < numberList.length; j++) {
- if (that.tableData[i][numberList[j]] === "") {
-
- that.tableData[i][numberList[j]] = 0;
- }
- }
- }
- var NewSoure = [...that.tableData];
- that.tableData = JSON.parse(oldSoure);
- return NewSoure;
- },
- dateChange(val, index) {
- const regex = /^[1-9]\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/
- if (!regex.test(val)) {
- this.$message.error('日期格式不正确!应该为YYYY-MM-DD格式!');
- this.tableData[index].date = "";
- }
- },
- GetDJLableBJ(lableList) {
- var that = this;
- var result = { sum: 0, Bsum: 0 };
- if (typeof lableList != "object" || lableList['length'] == undefined) {
- return result
- }
- let Djsum = 0;
- let BDjsum = 0;
- for (var i = 0; i < lableList.length; i++) {
- that.sumTopPrice.forEach(function (item1) {
- if (lableList[i] == item1.label) {
- var Aprice = Number(item1.Aprice);
- if (!isNaN(Aprice)) {
- Djsum += Aprice;
- }
- var Bprice = Number(item1.Bprice);
- if (!isNaN(Bprice)) {
- BDjsum += Bprice;
- }
- }
- })
- }
- Djsum = Djsum * this.AGroupCostParameter.rate * this.AGroupCostParameter.djxs;
- BDjsum = BDjsum * this.AGroupCostParameter.rate * this.BGroupCostParameter.djxs;
- if (isNaN(Djsum)) {
- Djsum = 0;
- }
- if (isNaN(BDjsum)) {
- BDjsum = 0;
- }
- result.sum = Djsum.toFixed(2);
- result.Bsum = BDjsum.toFixed(2);
- return result;
- },
- handleChange(currentValue, oldValue) {
-
- if (currentValue == undefined) {
- }
- },
- GetWeek(date) {
- if (date) {
- try {
- var myDate = new Date(date);
- var myDay = myDate.getDay();
- var weekday = ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"];
- return weekday[myDay];
- } catch (e) {
-
- return "时间格式不正确!";
- }
- }
- return '';
- },
- confirm() {
- debugger;
- this.outerVisible = false;
- if (this.dialogSelectObject == null) {
- this.dialogSelectObject = {};
- }
- if (Object.keys(this.dialogSelectObject).length != 0) {
- const possibleDialogTitles = ['选择车导数据', '导游信息', '选择车数据', '景点信息'];
- const indexBtn = possibleDialogTitles.indexOf(this.DialogTitle);
- if (indexBtn != -1) {
- if (indexBtn == 0) {
- this.bindCD();
- } else if (indexBtn == 1) {
- this.bindDY();
- } else if (indexBtn == 2) {
- this.bindCSJ();
- } else if (indexBtn == 3) {
- this.bindJD();
- }
- }
- }
- this.dialogSelectObject = {};
- },
- bindCD() {
- debugger;
- var offer = this.dialogSelectObject.offer.match(/\d+/g) != null ? Number(this.dialogSelectObject.offer.match(/\d+/g)[0]) : 0;
- var cgCost = this.dialogSelectObject.cgCost.match(/\d+/g) != null ? Number(this.dialogSelectObject.cgCost.match(/\d+/g)[0]) : 0;
- var cgOvertimeFee = this.dialogSelectObject.cgOvertimeFee.match(/\d+/g) != null ? Number(this.dialogSelectObject.cgOvertimeFee.match(/\d+/g)[0]) : 0;
- var overtimeFee = this.dialogSelectObject.overtimeFee.match(/\d+/g) != null ? Number(this.dialogSelectObject.overtimeFee.match(/\d+/g)[0]) : 0;
- var runingTime = this.dialogSelectObject.runingTime.match(/\d+/g) != null ? Number(this.dialogSelectObject.runingTime.match(/\d+/g)[0]) : 0;
- var row = this.tableData[this.rowIndex];
- var carNumber = row.carNumber;
- row['carCost'] = (carNumber * offer).toFixed(2);
- row['tgs'] = cgCost.toFixed(2);
- row['carTiming'] = runingTime.toFixed(2);
- var carType = this.dialogSelectObject.city + "/" + this.dialogSelectObject.carType + "/" + this.dialogSelectObject.serviceType + "\n";
- row['carType'] = carType;
- },
- bindDY() {
- debugger;
- var row = this.tableData[this.rowIndex];
- var tgn = row.tgn;
- var price = this.dialogSelectObject.price.match(/\d+/g) != null ? Number(this.dialogSelectObject.price.match(/\d+/g)[0]) : 0;
- var translationPrice = this.dialogSelectObject.translationPrice.match(/\d+/g) != null ? Number(this.dialogSelectObject.translationPrice.match(/\d+/g)[0]) : 0;
- var when = this.dialogSelectObject.when.match(/\d+/g) != null ? Number(this.dialogSelectObject.when.match(/\d+/g)[0]) : 0;
- row['tgs'] = (tgn * price).toFixed(2);
- row['if'] = translationPrice.toFixed(2);
- row['tgwh'] = when.toFixed(2);
- },
- bindCSJ() {
- debugger;
- var row = this.tableData[this.rowIndex];
- var carType = this.dialogSelectObject.city + "/" + this.dialogSelectObject.carType + "/" + this.dialogSelectObject.serviceType + "\n";
- var toPrice = this.dialogSelectObject.price.match(/\d+/g) != null ? Number(this.dialogSelectObject.price.match(/\d+/g)[0]) : 0;
- var when = this.dialogSelectObject.when.match(/\d+/g) != null ? Number(this.dialogSelectObject.when.match(/\d+/g)[0]) : 0;
- row['carType'] = carType;
- row['carCost'] = toPrice.toFixed(2);
- row['carTiming'] = when.toFixed(2);
- },
- bindJD() {
- debugger;
- var row = this.tableData[this.rowIndex];
- var Price = this.dialogSelectObject.price;
- row['ef'] = Price.toFixed(2);
- },
- QueryRate() {
- var url = "/api/Business/PostGroupTeamRateByDiIdAndCTableId"
- var that = this
- this.$axios({
- method: 'post',
- url: url,
- headers: {
- Authorization: 'Bearer ' + that.token
- },
- data: {
- "portType": 1,
- "diId": this.diid,
- "cTable": 85
- }
- }).then(function (res) {
- if (res.data.code == 200) {
-
-
- that.currencyOption = res.data.data.teamRates;
- }
- })
- },
- changeCurrency(data) {
-
- for (let index = 0; index < this.currencyOption.length; index++) {
- if (this.currencyOption[index].currencyId == data) {
- this.AGroupCostParameter.rate = this.currencyOption[index].rate;
- break;
- }
- }
- },
- inSelectChangeCheck() {
-
- var arr = [];
- var pusharr = [];
- var topArr = [];
- var topPushArr = [];
- if (this.costTypevalue == 'A') {
- var defaultP = this.costTypeHotelNumbers.filter(item => item.type == 'Default')[0];
- if (defaultP.sgr == 0) {
- arr.push('酒店SGR');
- topArr.push('SGR')
- } else {
- pusharr.push('酒店SGR');
- topPushArr.push('SGR')
- }
- if (defaultP.tbr == 0) {
- arr.push('酒店TBR');
- topArr.push('TBR')
- } else {
- pusharr.push('酒店TBR');
- topPushArr.push('TBR')
- }
- if (defaultP.jses == 0) {
- arr.push('酒店JSES');
- topArr.push('JS/ES')
- } else {
- pusharr.push('酒店JSES');
- topPushArr.push('JS/ES')
- }
- if (defaultP.suite == 0) {
- topArr.push('SUITE')
- arr.push('酒店SUITE');
- }
- else {
- pusharr.push('酒店SUITE');
- topPushArr.push('SUITE')
- }
- } else {
- var HotelA = this.costTypeHotelNumbers.filter(item => item.type == 'A')[0];
- var HotelB = this.costTypeHotelNumbers.filter(item => item.type == 'B')[0];
- if (HotelA.sgr == 0 && HotelB.sgr == 0) { arr.push('酒店SGR'); } else {
- pusharr.push('酒店SGR');
- }
- if (HotelA.tbr == 0 && HotelB.tbr == 0) { arr.push('酒店TBR'); } else {
- pusharr.push('酒店TBR');
- }
- if (HotelA.jses == 0 && HotelB.jses == 0) { arr.push('酒店JSES'); } else {
- pusharr.push('酒店JSES');
- }
- if (HotelA.suite == 0 && HotelB.suite == 0) { arr.push('酒店SUITE'); } else {
- pusharr.push('酒店SUITE');
- }
- }
- var leftCheck = this.CheckBoxListSelect.filter(item => item.cbType == 'Left')[0].cbValues;
- var topCheck = this.CheckBoxListSelect.filter(item => item.cbType == 'Top')[0].cbValues;
- var resultArr = leftCheck.filter(item => !arr.includes(item));
- var topResultArr = topCheck.filter(item => !topArr.includes(item));
- resultArr = [...resultArr, ...pusharr];
- resultArr = [...new Set(resultArr)];
-
- topResultArr = [...topResultArr, ...topPushArr];
- topResultArr = [...new Set(topResultArr)];
- this.CheckBoxListSelect.filter(item => item.cbType == 'Left')[0].cbValues = resultArr;
- this.CheckBoxListSelect.filter(item => item.cbType == 'Top')[0].cbValues = topResultArr;
- },
- GivePeopleNumber() {
- var number = this.grouptitleinfo.visitPNumber;
- if (this.AGroupCostParameter.visaRS == 0) {
- this.AGroupCostParameter.visaRS = number;
- }
- if (this.AGroupCostParameter.bxrs == 0) {
- this.AGroupCostParameter.bxrs = number;
- }
- if (this.AGroupCostParameter.djrs == 0) {
- this.AGroupCostParameter.djrs = number;
- }
- if (this.AGroupCostParameter.lyjrs == 0) {
- this.AGroupCostParameter.lyjrs = number;
- }
- if (this.AGroupCostParameter.gwrs == 0) {
- this.AGroupCostParameter.gwrs = number;
- }
- },
- lableSetPrice(lable, total, single) {
-
- for (var i = 0; i < this.columnTotalData.length; i++) {
- if (this.columnTotalData[i].label == lable) {
- this.columnTotalData[i].totalPrice = total;
- this.columnTotalData[i].singlePrice = single;
- break
- }
- }
- },
- BlableSetPrice(lable, total, single) {
- for (var i = 0; i < this.columnTotalData.length; i++) {
- if (this.columnTotalData[i].label == lable) {
- var aT = Number(this.columnTotalData[i].totalPrice).toFixed(2);
- var aS = Number(this.columnTotalData[i].singlePrice).toFixed(2);
- if (!isNaN(aT)) {
- this.columnTotalData[i].totalPrice = 'A段费用' + aT + '\r\n B段费用' + total;
- }
- if (!isNaN(aS)) {
- this.columnTotalData[i].singlePrice = 'A段费用' + aS + '\r\n B段费用' + single;
- }
- break
- }
- }
- },
- importBlackCode() {
- this.gridData = [];
- var url = "/api/Groups/CraeteGroupCostTravel"
- var that = this
- this.$axios({
- method: 'post',
- url: url,
- headers: {
- Authorization: 'Bearer ' + that.token
- },
- data: {
- "diid": that.diid,
- }
- }).then(function (resp) {
- if (resp.data.code == 200) {
-
- that.gridData = resp.data.data.groupCost;
- that.blackCodeIsTrue = resp.data.data.blackCodeIsTrue;
- if (that.blackCodeIsTrue) {
- that.dialogTableVisible = true;
- } else {
- that.$message.error("机票数据未录入!");
- }
-
-
-
-
-
-
-
-
- } else {
- that.$message.error("黑屏代码有误!" + resp.data.msg);
- }
- })
- },
-
- confirmationTP() {
- this.tableData = this.gridData;
- for (var i = 0; i < this.tableData.length; i++) {
- for (var prop in this.tableData[i]) {
- if (this.tableData[i][prop] == 0) {
- this.tableData[i][prop] = ''
- }
- }
- }
- this.dialogTableVisible = false;
- },
-
- MonitorMouse() {
- document.onmousemove = (event) => {
- let x1 = event.clientX
- let y1 = event.clientY
- if (this.x !== x1 || this.y !== y1) {
- this.setTimer();
- }
- this.x = x1
- this.y = y1
- }
- },
-
- MonitorKeyboard() {
- document.onkeydown = () => {
- this.setTimer();
- }
- },
-
- clearTimer() {
- clearTimeout(window.myTimer)
- window.myTimer = null
-
- document.onmousemove = null;
- document.onkeydown = null;
- },
-
- setTimer() {
- this.count = 0
- const mm = 1000 * 60;
- if (window.myTimer) {
- try {
- clearTimeout(window.myTimer);
- } catch (e) {
-
- }
- }
- window.myTimer = setInterval(this.SaveAndLogOut, mm * 30);
- },
- SaveAndLogOut() {
- this.save().then(() => {
- this.$router.push({ name: 'Login' })
- localStorage.removeItem("userinif");
- this.$message({
- type: 'success',
- message: '已退出!'
- });
-
- }).catch(e => {
-
-
- clearInterval(this.autoSave);
- })
- },
- TimeUpdateAnewOrderby(index) {
- if (index == 0 && this.tableData.length > 0) {
- var start = this.tableData[0].date;
- for (var i = 0; i < this.tableData.length; i++) {
- if (this.tableData[i].date) {
- this.tableData[i].date = start;
- start = this.addOneDay(start, 1)
- }
- }
- }
- },
-
- PostHotelInquiryPageItem() {
- var url = "/api/Groups/PostHotelInquiryPageItem"
- var that = this
- this.$axios({
- method: 'post',
- url: url,
- headers: {
- Authorization: 'Bearer ' + this.token
- },
- data: {
- portType: 1,
- pageIndex: 1,
- pageSize: 100,
- diId: that.diid,
- }
- }).then(function (res) {
- that.tableDatas = [];
- if (res.data.code == 200) {
- that.dialogTableVisibleXJ = true;
- that.tableDatas = res.data.data;
- that.checkboxsXJ = [];
- that.hotelIsTrue = res.data.data.length > 0 ? true : false;
-
- } else {
- that.$message.error(res.data.msg);
- }
- })
- },
- CheckboxChangeXJ(val) {
- var isFind = this.checkboxsXJ.includes(val);
- if (isFind) {
- this.checkboxsXJ.splice(this.checkboxsXJ.indexOf(val), 1);
- } else {
- this.checkboxsXJ.push(val);
- }
- },
- adoptHotelData() {
- var selectArr = this.tableDatas.filter((x) => {
- return this.checkboxsXJ.includes(x.id);
- });
-
- if (selectArr.length != 0) {
- for (var i = 0; i < selectArr.length; i++) {
- var startTime = this.addOneDay(selectArr[i].checkInDate, 0);
- var endTime = this.addOneDay(selectArr[i].checkOutDate, 0);
- if (startTime) {
- var flitertabs = this.tableData.filter((x) => {
- var cuo = new Date(x.date).getTime();
- return cuo >= new Date(startTime).getTime() && cuo < new Date(endTime).getTime();
- })
- for (var j = 0; j < flitertabs.length; j++) {
- flitertabs[j].accon = selectArr[i].name;
- flitertabs[j].sgr = selectArr[i].singlePrice * selectArr[i].singleQuantity;
- flitertabs[j].tbr = selectArr[i].doublePrice * selectArr[i].doubleQuantity;
- flitertabs[j].jS_ES = selectArr[i].suitePrice * selectArr[i].suiteQuantity;
- flitertabs[j].suite = selectArr[i].otherPrice * selectArr[i].otherQuantity;
- }
-
- }
- }
- this.dialogTableVisibleXJ = false;
- } else {
- this.$message.error("请选择数据!");
- }
- },
- GetHistoryCarData(index) {
- this.historyCarInput = this.grouptitleinfo.visitCountry;
- this.historyCarDialog = true;
- this.pageSize = 7;
- this.historyCarIndex = index;
- this.historyCarSearch();
- },
- historyCarSearch() {
- var url = "/api/Groups/GetHistoryCarData";
- var that = this;
- this.$axios({
- method: 'post',
- url: url,
- headers: {
- Authorization: 'Bearer ' + this.token
- },
- data: {
- param: this.historyCarInput
- }
- }).then(function (res) {
- that.historyCarData = [];
- if (res.data.code == 200) {
- console.log(res.data.data)
- that.historyCarData = res.data.data;
- } else {
- that.$message.error(res.data.msg);
- }
- })
- },
- dialogClose() {
- this.pageSize = 5;
- this.currentPage = 1;
- },
- historyCarChange(row, oldrow) {
-
- this.historyCarSelectObject = row;
- },
- historyCarYes() {
-
- if (this.historyCarIndex != -1) {
- this.tableData[this.historyCarIndex].carCost = this.historyCarSelectObject.dayPrice;
- }
- this.historyCarDialog = false;
- },
-
- PostTourClientListByDiId(id) {
- var that = this
- var url = "/api/Groups/PostTourClientListByDiId"
- this.$axios({
- method: 'post',
- url: url,
- headers: {
- Authorization: 'Bearer ' + that.token
- },
- data: {
- portType: 1,
- diid: id,
- pageId: 104,
- userId: that.userId
- }
- }).then(function (res) {
- if (res.data.code == 200) {
- that.rollcallarr = res.data.data;
- } else {
- that.$message.error(res.data.smg);
- }
- })
- },
-
- fgarr(val) {
- val = val + ""
- return val.split(' ')[0]
- },
-
- pinyingxing(val) {
- return pinyin(val, { toneType: 'none' }).toUpperCase();
- },
- },
- updated() {
- this.$emit('transfer', true)
- },
- destroyed() {
- this.$emit('transfer', false)
- clearInterval(this.autoSave);
- },
- mounted() {
- this.token = JSON.parse(localStorage.getItem('userinif')).token;
- this.userId = JSON.parse(localStorage.getItem('userinif')).userInfo.userId
- var costLoadData = localStorage.getItem('costLoadData');
- const mm = 1000 * 60;
- if (this.userId == 21) {
- this.autoSave = setInterval(() => {
- this.$message.success('自动保存中...');
- setTimeout(() => {
- this.save();
- }, 100);
- }, mm * 10);
- this.MonitorMouse();
- this.MonitorKeyboard();
- this.setTimer();
- }
- document.querySelectorAll('.el-table__footer')[0].style.display = "none";
- if (costLoadData) {
- var JSONP = JSON.parse(costLoadData);
- var diidP = Number(JSONP.diid);
- this.loadData(isNaN(diidP) ? -1 : diidP);
- } else {
- this.loadData(-1);
- }
- window.Vue = this;
- },
- beforeDestroy() {
- this.clearTimer()
- },
- computed: {
- defaultCostTypeHotelNumber() {
- const defaultItems = this.costTypeHotelNumbers.filter(item => item.type == 'Default');
- return defaultItems[0];
- },
- filterdialogSearchInput() {
- var that = this;
- return this.dialogTableData.filter(function (x) {
- var fliterWhere = [];
- if (that.dialogSearchInput.split('、') != -1) {
- fliterWhere = that.dialogSearchInput.split('、');
- } else {
- fliterWhere = [that.dialogSearchInput];
- }
- for (var i = 0; i < fliterWhere.length; i++) {
- if (x.city.indexOf(fliterWhere[i]) != -1 || x.country.indexOf(fliterWhere[i]) != -1) {
- return x;
- }
- }
- })
- },
- columnWidth() {
-
- if (this.CheckBoxListSelect.filter(item => item.cbType == 'Top')[0].cbValues.length < 22) {
- return 74
- }
- else if (22 <= this.CheckBoxListSelect.filter(item => item.cbType == 'Top')[0].cbValues.length < 26) {
- return 59
- }
- else {
- return 55
- }
- },
- ShowMeals() {
- if (this.ShowBaoPi.length > 0) {
- var result = this.ShowBaoPi.filter(x => x.type == 'Meals')[0];
- if (result) {
- return result.content;
- } else {
- return [];
- }
- }
- return [];
- },
- ShowHotel() {
- if (this.ShowBaoPi.length > 0) {
- var result = this.ShowBaoPi.filter(x => x.type == 'Hotel')[0];
- if (result) {
- return result.content;
- } else {
- return [];
- }
- }
- return [];
- },
- ShowGongZa() {
- if (this.ShowBaoPi.length > 0) {
- var result = this.ShowBaoPi.filter(x => x.type == 'GongZa')[0];
- if (result) {
- return result.content;
- } else {
- return [];
- }
- }
- return [];
- },
- getCurr() {
- var currStr = '';
- var curr = this.AGroupCostParameter.currency;
- var currResult = Number(curr);
- if (isNaN(currResult)) {
- currStr = curr;
- } else {
- for (let index = 0; index < this.currencyOption.length; index++) {
- if (this.currencyOption[index].currencyId == currResult) {
- currStr = this.currencyOption[index].currencyCode;
- break;
- }
- }
- }
- return currStr;
- },
- },
- filters: {
- filter_time(value) {
- if (value) {
- return value.split(" ")[0]
- }
- },
- townum(val) {
- return val.toFixed(2)
- },
- }
- }
- </script>
- <style lang="less" scoped>
- /deep/ .el-table th.el-table__cell>.cell {
- white-space: pre-wrap;
- }
- /deep/ .el-table--striped .el-table__body tr.el-table__row--striped td {
- background: #F0F9FF;
- }
- </style>
- <style>
- .cost-box {
- background-color: #fff;
- padding: 10px;
- box-shadow: 0 0 5px #0005;
- border-radius: 10px;
- }
- .cost-box .el-button+.el-button {
- margin-left: 0;
- }
- .fade-enter-active,
- .fade-leave-active {
- transition: opacity 1;
- }
- .fade-enter,
- .fade-leave-to {
- opacity: 0;
- }
- .cost-haed {
- margin-bottom: 10px;
- }
- .ser-btn {
- display: flex;
- justify-content: space-between;
- margin-bottom: 5px;
- }
- .cost-info {
- display: flex;
- }
- .cost-info-li {
- margin-right: 30px;
- }
- .cost-info-li label {
- color: #606266;
- font-size: 15px;
- font-weight: 600;
- }
- .cost-info-li span {
- color: #606266;
- font-size: 14px;
- }
- .cost-box .el-checkbox-group {
- margin: 5px 0;
- }
- .form-ss .el-checkbox {
- width: 100px;
- margin: 5px 0;
- }
- .sheet-box {
- margin-top: 30px;
- }
- .cabin-box {
- margin-top: 30px;
- }
- .biaoge,
- .biaogeB {
- margin-bottom: 30px;
- }
- .rapAddress {
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- }
- .cost-box .cabin-box .cost-box .el-checkbox {
- margin-right: 20px;
- }
- .cost-box .el-table .cell {
- text-align: center;
- padding-left: 5px;
- padding-right: 5px;
- font-size: 12px;
- }
- .figures-btn {
- display: flex;
- flex-direction: column;
- align-items: center;
- }
- .figures-btn .el-button--mini {
- width: 67px;
- margin: 2px 0;
- margin-left: 0;
- }
- .CostBShow .el-col-3 .el-form-item__content {
- width: 60%;
- }
- .CostBShow .el-form-item__content {
- width: 65%;
- }
- .CostBShow .el-date-editor--date {
- width: 100%;
- }
- .Cost_topFlex .el-select {
- width: 400px;
- }
- .hiddenElement {
- visibility: hidden;
- }
- .cost-all .el-table__footer-wrapper .cell {
- white-space: pre;
- }
- .cost-all .el-date-editor.el-input,
- .el-date-editor.el-input__inner {
- width: 100%;
- }
- .biaogeB .el-table .el-input--small {
- width: 60%;
- }
- .biaogeKz .el-table .el-input--small {
- width: 60%;
- }
- .czbtn {
- width: 70px;
- }
- .tables .el-textarea {
- font-size: 12px;
- }
- .tables .el-button--mini {
- font-size: 12px;
- }
- .tables .el-textarea__inner {
- padding: 0;
- }
- .tables .el-input--suffix .el-input__inner {
- padding-right: 0px;
- padding-left: 0px;
- }
- .tables .el-date-editor .el-icon-date {
- display: none;
- }
- .form-ss .el-checkbox__label {
- font-size: 12px;
- }
- .tables .el-input--mini {
- font-size: 12px;
- }
- .tables .el-input__inner {
- padding: 0;
- text-align: center;
- }
- .sheet-box .el-table th.el-table__cell>.cell {
- font-size: 12px;
- }
- .sheet-box .el-input__inner {
- font-size: 12px;
- }
- .cost-all .el-form-item {
- margin-bottom: 5px;
- }
- .cost-all input::-webkit-inner-spin-button {
- -webkit-appearance: none !important;
- }
- .cost-all input::-webkit-outer-spin-button {
- -webkit-appearance: none !important;
- }
- .cost-all input[type="number"] {
- -moz-appearance: textfield;
- }
- .btntop:hover {
- cursor: pointer;
- color: #000;
- }
- .btnbottom:hover {
- cursor: pointer;
- color: #000;
- }
- .accon-ul {
- position: absolute;
- box-shadow: #0005 0 0 10px;
- width: 200px;
- z-index: 444;
- background-color: #fff;
- border-radius: 5px;
- display: none;
- }
- .accon-box .accons-ul {
- display: inline-block;
- }
- .accon-li {
- padding: 10px 5px;
- text-align: left;
- }
- .accon-li:hover {
- background-color: #0001;
- }
- .accon-ul:last-child {
- bottom: 15px;
- }
- .btn-dialog-cost {
- margin-top: 20px;
- text-align: right;
- }
- .history-btn {
- display: flex;
- justify-content: center;
- }
- .cost-all .el-table th.el-table__cell>.cell {
- text-align: center;
- }
- </style>
|