| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270 |
- <template>
- <div v-loading.fullscreen.lock="fullscreenLoading">
- <div class="Entrydraft-all">
- <el-dialog width="1600px" title="交通费详细" :visible.sync="TransportationVisible" :close-on-click-modal="false">
- <div style="display: flex;justify-content: space-between;align-items: center;margin: 5px 0;">
- <div>接送机(合计):{{ numFilters(Transportationdatatotal) }} CNY</div>
- <div>
- <el-button size="mini" @click="RefreshInterval" type="primary">刷新城市区间费标准</el-button>
- <el-button size="mini" @click="addTransportationdata" type="primary">添加一行</el-button>
- </div>
- </div>
- <el-table border :data="Transportationdata">
- <el-table-column property="no" label="序号" width="50"></el-table-column>
- <el-table-column property="ovId" label="城市" width="150">
- <template slot-scope="scope">
- <el-select size="mini"
- @change="UrbanSelect(scope.row, $event, scope.$index)"
- v-model="scope.row.ovId" filterable placeholder="请选择">
- <el-option v-for="item in fulecao" :key="item.id" :label="item.area"
- :value="item.id">
- <span style="float: left">{{ item.area }}</span>
- <!-- <span style="float: right; color: #8492a6; font-size: 13px">{{item.city}}</span> -->
- </el-option>
- </el-select>
- <!-- <el-input disabled size="mini" v-model="scope.row.b"></el-input> -->
- </template>
- </el-table-column>
- <el-table-column property="cost" label="成本价(要除以团组人数)" width="180">
- <template slot-scope="scope">
- <div>{{reservetwo(scope.row.cost/Basicdata.groupSize)}} {{scope.row.currencyName}} ({{scope.row.cost+'/'}}
- <el-input-number @blur="UrbanModify(scope.row,scope.row.currencyName)" style="width:40px" size="mini" class="inputNumberClassS ppnum"
- :controls="false" v-model="Basicdata.groupSize"></el-input-number>)
- </div>
- <!-- <el-input size="mini" v-model="Basicdata.groupSize"></el-input> -->
- </template>
- </el-table-column>
- <el-table-column property="guideCost" label="接送机导游" width="140">
- <template slot-scope="scope">
- <el-input-number disabled style="width:100%" size="mini" :class-unit="scope.row.currencyName" :precision="2" class="inputNumberClassS"
- :controls="false" v-model="scope.row.guideCost"></el-input-number>
- </template>
- </el-table-column>
- <el-table-column property="otherCost" label="其他费用(只有澳大利亚有这个数据)" width="150">
- <template slot-scope="scope">
- <el-input-number @blur="UrbanModify(scope.row,scope.row.currencyName)" style="width:100%" size="mini" :class-unit="scope.row.currencyName" :precision="2" class="inputNumberClassS"
- :controls="false" v-model="scope.row.otherCost"></el-input-number>
- </template>
- </el-table-column>
- <el-table-column property="serviceCount" label="服务次数(默认为1)" width="150">
- <template slot-scope="scope">
- <el-input-number @blur="UrbanModify(scope.row,scope.row.currencyName)" style="width:100%" size="mini" :precision="2" class="inputNumberClassS"
- :controls="false" v-model="scope.row.serviceCount"></el-input-number>
- </template>
- </el-table-column>
- <el-table-column property="coefficient" label="系数(默认2.5)" width="110">
- <template slot-scope="scope">
- <el-input-number @blur="UrbanModify(scope.row,scope.row.currencyName)" style="width:100%" size="mini" :precision="2" class="inputNumberClassS"
- :controls="false" v-model="scope.row.coefficient"></el-input-number>
- </template>
- </el-table-column>
- <el-table-column property="quote" label="报价" width="200">
- <template slot-scope="scope">
- <el-input-number disabled style="width:100%" size="mini" class-unit="CNY" :precision="2" class="inputNumberClassS"
- :controls="false" v-model="scope.row.quote"></el-input-number>
- </template>
- </el-table-column>
- <el-table-column property="i" label="备注">
- <template slot-scope="scope">
- <el-input size="mini" v-model="scope.row.remark"></el-input>
- </template>
- </el-table-column>
- <el-table-column label="操作" width="100">
- <template slot-scope="scope">
- <el-button size="mini" @click.native.prevent="deleteRowJSJ(scope.$index, Transportationdata,scope.row)" type="danger">移除</el-button>
- </template>
- </el-table-column>
- </el-table>
- <div class="jiaotongfeiS-ul">
- <div class="jiaotongfeiS-li">
- <div style="display: flex;justify-content: space-between;align-items: center;margin: 5px 0;">
- <div>拉车(合计):{{ numFilters(pullCartFeeTotal) }} CNY</div>
- <el-button @click="addpullCartFeeDetails" size="mini" type="primary">添加一行</el-button>
- </div>
- <!-- <div>拉车(合计)</div> -->
- <el-table border :data="pullCartFeeDetails">
- <el-table-column property="cost" label="成本价" width="150">
- <template slot-scope="scope">
- <el-input-number @blur="UrbanModifyLC(scope.row)" style="width:100%" size="mini" :class-unit="scope.row.currencyName" :precision="2" class="inputNumberClassS"
- :controls="false" v-model="scope.row.cost"></el-input-number>
- </template>
- </el-table-column>
- <el-table-column property="coefficient" label="系数" width="150">
- <template slot-scope="scope">
- <el-input-number @blur="UrbanModifyLC(scope.row)" style="width:100%" size="mini" :precision="2"
- :controls="false" v-model="scope.row.coefficient"></el-input-number>
- </template>
- </el-table-column>
- <el-table-column property="remark" label="备注">
- <template slot-scope="scope">
- <el-input size="mini" v-model="scope.row.remark"></el-input>
- </template>
- </el-table-column>
- <el-table-column label="操作" width="100">
- <template slot-scope="scope">
- <el-button size="mini"
- @click.native.prevent="deleteRowLC(scope.$index, pullCartFeeDetails, scope.row)"
- type="danger">移除</el-button>
- </template>
- </el-table-column>
- </el-table>
- </div>
- <div class="jiaotongfeiS-li">
- <div style="display: flex;justify-content: space-between;align-items: center;margin: 5px 0;">
- <div>火车(合计):{{ numFilters(trainFeeTotal) }} CNY</div>
- <el-button @click="addtrainFeeDetails" size="mini" type="primary">添加一行</el-button>
- </div>
- <el-table border :data="trainFeeDetails">
- <el-table-column property="cost" label="成本价" width="150">
- <template slot-scope="scope">
- <el-input-number @blur="UrbanModifyHC(scope.row)" style="width:100%" size="mini" :class-unit="scope.row.currencyName" :precision="2" class="inputNumberClassS"
- :controls="false" v-model="scope.row.cost"></el-input-number>
- </template>
- </el-table-column>
- <el-table-column property="coefficient" label="系数" width="150">
- <template slot-scope="scope">
- <el-input-number @blur="UrbanModifyHC(scope.row)" style="width:100%" size="mini" :precision="2"
- :controls="false" v-model="scope.row.coefficient"></el-input-number>
- </template>
- </el-table-column>
- <el-table-column property="remark" label="备注">
- <template slot-scope="scope">
- <el-input size="mini" v-model="scope.row.remark"></el-input>
- </template>
- </el-table-column>
- <el-table-column label="操作" width="100">
- <template slot-scope="scope">
- <el-button size="mini"
- @click.native.prevent="deleteRowHC(scope.$index, trainFeeDetails, scope.row)"
- type="danger">移除</el-button>
- </template>
- </el-table-column>
- </el-table>
- </div>
- <div class="jiaotongfeiS-li">
- <div style="display: flex;justify-content: space-between;align-items: center;margin: 5px 0;">
- <div>城市机票(合计):{{ numFilters(cityAirTicketFeeTotal) }} CNY</div>
- <el-button @click="addcityAirTicketFeeDetails" size="mini" type="primary">添加一行</el-button>
- </div>
- <el-table border :data="cityAirTicketFeeDetails">
- <el-table-column property="cost" label="成本价" width="150">
- <template slot-scope="scope">
- <el-input-number @blur="UrbanModifyJP(scope.row)" style="width:100%" size="mini" :class-unit="scope.row.currencyName" :precision="2" class="inputNumberClassS"
- :controls="false" v-model="scope.row.cost"></el-input-number>
- </template>
- </el-table-column>
- <el-table-column property="coefficient" label="系数" width="150">
- <template slot-scope="scope">
- <el-input-number @blur="UrbanModifyJP(scope.row)" style="width:100%" size="mini" :precision="2"
- :controls="false" v-model="scope.row.coefficient"></el-input-number>
- </template>
- </el-table-column>
- <el-table-column property="remark" label="备注">
- <template slot-scope="scope">
- <el-input size="mini" v-model="scope.row.remark"></el-input>
- </template>
- </el-table-column>
- <el-table-column label="操作" width="100">
- <template slot-scope="scope">
- <el-button size="mini"
- @click.native.prevent="deleteRowJP(scope.$index, cityAirTicketFeeDetails, scope.row)"
- type="danger">移除</el-button>
- </template>
- </el-table-column>
- </el-table>
- </div>
- </div>
- <div style="margin-top: 20px;font-weight: 600;">
- 城市交通费合计:{{ numFilters(Transportationdatatotal + pullCartFeeTotal + trainFeeTotal + cityAirTicketFeeTotal) }} CNY
- </div>
- <div style="text-align: right;margin-top: 20px;">
- <el-button @click="TransportationVisible=false">取消</el-button>
- <el-button @click="EnterExitCostDraftOVFeeSave" type="primary">保 存</el-button>
- </div>
- </el-dialog>
- <el-dialog v width="400px" title="设置查看权限" class="permissionsbox" :visible.sync="setpermissions" :close-on-click-modal="false">
- <el-checkbox-group v-model="viewUsers" @change="handleCheckAllChange">
- <el-checkbox v-for="item in viewUsersarr" :label="item.id" :key="item.id">{{item.name}}</el-checkbox>
- </el-checkbox-group>
- <div style="text-align: right;margin-top: 15px;">
- <el-button size="mini" @click="EnterExitCostSetViewPermissiion" type="primary">分配</el-button>
- <el-button size="mini" @click="setpermissions=false">取消</el-button>
- </div>
- </el-dialog>
- <div class="Entrydraft-head">
- <div class="Entrydraft-head-li" style="width:370px">
- <label>草稿名称:</label>
- <el-autocomplete
- style="width:200px"
- class="inline-input"
- v-model="valuename"
- :fetch-suggestions="querySearch"
- placeholder="请输入内容"
- @select="handleSelect"
- ></el-autocomplete>
- <el-button @click="cleanout" type="primary">新建草稿</el-button>
- <!-- <el-select style="width:250px" @change="chengvalue()" v-model="value" filterable placeholder="请选择">
- <el-option v-for="item in options" :key="item.id" :label="item.groupName" :value="item.id">
- </el-option>
- </el-select> -->
- </div>
- <div v-if="isSave" class="Entrydraft-head-li" style="width:220px">
- <label>城市归属:</label>
- <el-select style="width:150px" @change="provinceIdchange" v-model="provinceId" filterable placeholder="请选择">
- <el-option v-for="item in provinceIdarr" :key="item.id" :label="item.name" :value="item.id">
- </el-option>
- </el-select>
- </div>
- <div v-if="isSave" class="Entrydraft-head-li" style="width:361px">
- <label>团组:</label>
- <el-select style="width:250px" v-model="diid" filterable placeholder="请选择">
- <el-option v-for="item in groupNameDatas" :key="item.id" :label="item.groupName" :value="item.id">
- <span v-if="item.isNull=='false'" style="color:#409EFF">{{ item.groupName }}</span>
- <span v-else style="color:gray">{{ item.groupName }}</span>
- </el-option>
- </el-select>
- <el-button @click="EnterExitCostDraftImportData" type="primary">同步</el-button>
- </div>
- <div v-if="isSave" class="Entrydraft-head-li" style="width:530px">
- <!-- <el-button type="primary">计算费用</el-button> -->
- <!-- <el-button @click="NationalTravelFeeImportReceivables" type="primary">导出到收款账单</el-button> -->
-
- <el-button @click="storage()" type="primary">保存</el-button>
- <el-select style="width:202px" v-model="listvalue" placeholder="请选择">
- <el-option v-for="item in listvalueoptions" :key="item.id" :label="item.name" :value="item.id">
- </el-option>
- </el-select>
- <el-button @click="eptschedule(1)" type="primary">导出所选明细表</el-button>
- <el-button v-if="isAssignPerm" @click="setpermissionsbtn" type="primary">分配权限</el-button>
- <!-- <el-select style="width:202px" v-model="tablevalue" placeholder="请选择">
- <el-option v-for="item in tablevalueoptions" :key="item.id" :label="item.name" :value="item.id">
- </el-option>
- </el-select>
- <el-button @click="eptschedule(2)" type="primary">导出下拉所选表格</el-button> -->
- <!-- <el-button @click="eptschedule(3)" type="primary">团组成员名单</el-button> -->
- </div>
- </div>
- <div class="Entrydraft-form">
- <div class="Entrydraft-form-li">
- <div class="Entrydraft-li-lables">
- <el-checkbox v-model="choiceOne"></el-checkbox>
- <div class="li-lable">一、境内费用(其他费用)</div>
- <div class="li-lable">
- <span class="redzhu">(注:填好数值鼠标点击其他区域计算合计)</span>
- <label>合计:</label>
- <div class="sub-boxs">
- {{ DomesticFees.total=(DomesticFees.visafees + DomesticFees.vaccinefees +
- DomesticFees.nucleicfees + DomesticFees.serviceCharge + DomesticFees.insurance +
- DomesticFees.ticketsExhibitionL) | numFilter }}
- </div>
- <span>元/人</span>
- </div>
- </div>
- <div class="Entrydraft-li-inif">
- <div class="Entrydraft-inif-box">
- <label>签证费:</label>
- <el-input-number size="mini" :controls="false" :precision="2"
- v-model="DomesticFees.visafees"></el-input-number>
- <span>元/人</span>
- </div>
- <div class="Entrydraft-inif-box">
- <label>签证费用描述:</label>
- <el-input style="width:900px" size="mini"
- v-model="DomesticFees.visafeesDescription"></el-input>
- <span class="redzhu">{{ visabeizhu }}</span>
- </div>
- <span v-if="!getvisafeebtn" class="redzhu">请先录入出入境费用明细-草稿!</span>
- <el-button v-if="getvisafeebtn&&isSave" @click="Getnewvisafee" type="primary"
- size="mini">获取最新签证费用</el-button>
- </div>
- <div class="Entrydraft-li-inif">
- <div class="Entrydraft-inif-box">
- <label>疫苗费:</label>
- <el-input-number size="mini" :controls="false" :precision="2"
- v-model="DomesticFees.vaccinefees"></el-input-number>
- <span>元/人</span>
- </div>
- <div class="Entrydraft-inif-box">
- <label>核酸检测费:</label>
- <el-input-number size="mini" :controls="false" :precision="2"
- v-model="DomesticFees.nucleicfees"></el-input-number>
- <span>元/人;</span>
- </div>
- <div class="Entrydraft-inif-box">
- <label> 服务费:</label>
- <el-input-number size="mini" :controls="false" :precision="2"
- v-model="DomesticFees.serviceCharge"></el-input-number>
- <span>元/人;</span>
- </div>
- </div>
- <div class="Entrydraft-li-inif">
- <div class="Entrydraft-inif-box">
- <label>保险费:</label>
- <el-input-number size="mini" :controls="false" :precision="2"
- v-model="DomesticFees.insurance"></el-input-number>
- <span>元/人</span>
- </div>
- <div class="Entrydraft-inif-box">
- <label>参展门票:</label>
- <el-input-number size="mini" :controls="false" :precision="2"
- v-model="DomesticFees.ticketsExhibitionL"></el-input-number>
- <span>元/人;</span>
- </div>
- <div class="Entrydraft-inif-box">
- <label>备注:</label>
- <el-input style="width:900px" size="mini"
- v-model="DomesticFees.firstItemRemark"></el-input>
- </div>
- </div>
- </div>
- <div class="Entrydraft-form-li">
- <div class="Entrydraft-li-lables">
- <!-- <el-checkbox v-model="choiceTwo"></el-checkbox> -->
- <div class="li-lable">二、国际旅费合计:</div>
- <div style="display: flex;">
- <div class="li-lable">
- <el-checkbox style="margin-right: -10px;" v-model="sumJJC"></el-checkbox>
- <label>(经济舱)</label>
- <div class="sub-boxs">
- {{ TotalExpenses.EconomyClasstotal=(TotalExpenses.EconomyClass +
- TotalExpenses.TravellingExpensesJJ) | numFilter }}
- </div>
- <span>元/人</span>
- </div>
-
- <div class="li-lable">
- <el-checkbox style="margin-right: -10px;" v-model="sumGWC"></el-checkbox>
- <label>(公务舱)</label>
- <div class="sub-boxs">
- {{ TotalExpenses.BusinessClasstotal=(TotalExpenses.BusinessClass +
- TotalExpenses.TravellingExpensesGW) | numFilter }}
- </div>
- <span>元/人</span>
- </div>
-
- <div class="li-lable">
- <el-checkbox style="margin-right: -10px;" v-model="sumTDC"></el-checkbox>
- <label>(头等舱)</label>
- <div class="sub-boxs">
- {{ TotalExpenses.Firstclasstotal=(TotalExpenses.Firstclass +
- TotalExpenses.TravellingExpensesTD) | numFilter }}
- </div>
- <span>元/人</span>
- </div>
- </div>
- </div>
- <div class="Entrydraft-li-inif">
- <label>国际机票: </label>
- <div class="Entrydraft-inif-box">
- <label>(经济舱):</label>
- <el-input-number size="mini" :controls="false" :precision="2"
- v-model="TotalExpenses.EconomyClass"></el-input-number>
- <span>元/人</span>
- </div>
- <div class="Entrydraft-inif-box">
- <label>(公务舱):</label>
- <el-input-number size="mini" :controls="false" :precision="2"
- v-model="TotalExpenses.BusinessClass"></el-input-number>
- <span>元/人;</span>
- </div>
- <div class="Entrydraft-inif-box">
- <label>(头等舱):</label>
- <el-input-number size="mini" :controls="false" :precision="2"
- v-model="TotalExpenses.Firstclass"></el-input-number>
- <span>元/人;</span>
- </div>
- <span v-if="JSON.stringify(TicketJudgment) == '{}'" class="redzhu">(机票数据未录入)</span>
- <div v-else>
- <span
- v-if="TicketJudgment.jjcCurrentRate != TotalExpenses.EconomyClass || TicketJudgment.gwcCurrentRate != TotalExpenses.BusinessClass"
- class="redzhu">{{ TicketJudgment.remark }}</span>
- <el-button
- v-if="TicketJudgment.jjcCurrentRate != TotalExpenses.EconomyClass || TicketJudgment.gwcCurrentRate != TotalExpenses.BusinessClass"
- type="primary" @click="Fillin" size="mini">填 入</el-button>
- </div>
- </div>
- <div class="Entrydraft-li-inif">
- <!-- <div class="Entrydraft-inif-box">
- <label>城市区间交通费:</label>
- <el-input-number size="mini" :controls="false" :precision="2"
- v-model="TotalExpenses.TravellingExpenses"></el-input-number>
- <span>元/人;</span>
- </div> -->
- <label>城市区间交通费: </label>
- <div class="Entrydraft-inif-box">
- <label>(经济舱):</label>
- <el-input-number size="mini" :controls="false" :precision="2"
- v-model="TotalExpenses.TravellingExpensesJJ"></el-input-number>
- <span>元/人;</span>
- </div>
- <div class="Entrydraft-inif-box">
- <label>(公务舱):</label>
- <el-input-number size="mini" :controls="false" :precision="2"
- v-model="TotalExpenses.TravellingExpensesGW"></el-input-number>
- <span>元/人;</span>
- </div>
- <div class="Entrydraft-inif-box">
- <label>(头等舱):</label>
- <el-input-number size="mini" :controls="false" :precision="2"
- v-model="TotalExpenses.TravellingExpensesTD"></el-input-number>
- <span>元/人;</span>
- </div>
- <div v-if="isView" class="Entrydraft-inif-box">
- <el-button @click="openTransportation" type="primary" size="mini">交通费明细</el-button>
- </div>
- </div>
- <div class="Entrydraft-li-inif">
- <div class="Entry-inif-box">
- <label>备注:</label>
- <el-input style="width:1000px" size="mini" v-model="TotalExpenses.twoItemRemark"></el-input>
- </div>
- </div>
- <div class="Entrydraft-li-inif">
- <div v-for="(item, index) in currencys" :key="index" class="Entrydraft-inif-box">
- <label>{{ item.currencyName }}汇率:</label>
- <el-input-number size="mini" :controls="false" :precision="4"
- v-model="item.rate"></el-input-number>
- </div>
- <span v-if="!cubtn" style="color:red;">* 若客户有意见,需要与财务商量后进行适当调整 </span>
- <el-popover
- placement="top"
- width="402"
- trigger="hover">
- <el-table border :data="currencyss">
- <el-table-column width="100" property="currName" label="币种"></el-table-column>
- <el-table-column width="100" property="rate" label="汇率"></el-table-column>
- <el-table-column width="200" property="lastUpdateDt" label="更新时间"></el-table-column>
- </el-table>
- <span v-show="cubtn" slot="reference" class="redzhu">{{CurrencysRemark}}</span>
- </el-popover>
-
- <el-button v-if="cubtn" @click="adoptRealtime" type="primary" size="mini">采用最新汇率</el-button>
- </div>
- </div>
- <div class="Entrydraft-form-li">
- <div class="Entrydraft-li-lable">
- <div style="display: flex;align-items: center;">
- <el-checkbox v-model="choiceThree"></el-checkbox>
- <div class="li-lable">三、住宿费:</div>
- <div style="display: flex;">
- <div class="li-lable">
- <label>合计:</label>
- <div class="sub-boxs">{{ TotalAccommodationFee | numFilter }}</div>
- <span>元/人</span>
- </div>
- </div>
- </div>
- <div class="btn-Entrydraft">
- <el-button type="primary" @click="addlist('住宿费')" size="mini">新 增</el-button>
- </div>
- </div>
- <div class="Entrydraft-li-inif">
- <el-table :data="quarterageData" border style="width: 100%">
- <el-table-column prop="days" label="第几晚" width="180">
- <template slot-scope="scope">
- <el-input-number size="mini" :controls="false"
- v-model="scope.row.days"></el-input-number>
- </template>
- </el-table-column>
- <el-table-column style="position: relative;" prop="city" label="城 市" width="180">
- <template slot-scope="scope">
- <el-select size="mini" @change="changeSelect(scope.row, $event, scope)"
- v-model="scope.row.nationalTravelFeeId" filterable placeholder="请选择">
- <el-option v-for="item in placeinif" :key="item.id" :label="item.cityname"
- :value="item.id">
- <span style="float: left">{{ item.cityname }}</span>
- <!-- <span style="float: right; color: #8492a6; font-size: 13px">{{item.city}}</span> -->
- </el-option>
- </el-select>
- </template>
- </el-table-column>
- <el-table-column prop="cost" label=" 费用标准" width="180">
- <template slot-scope="scope">
- <el-input-number @input="zhusuinput(scope.row)" size="mini" :precision="2"
- :controls="false" v-model="scope.row.cost"></el-input-number>
- </template>
- </el-table-column>
- <el-table-column prop="currencyName" label=" 币 种" width="180">
- <template slot-scope="scope">
- <el-input disabled size="mini" v-model="scope.row.currencyName"></el-input>
- </template>
- </el-table-column>
- <el-table-column prop="subTotal" label="费用小计" width="180">
- <template slot-scope="scope">
- <div class="sub-boxs">{{ scope.row.subTotal | numFilter }}</div> CNY
- </template>
- </el-table-column>
- <el-table-column prop="address" label="操 作">
- <template slot-scope="scope">
- <el-button v-if="isSave" style="color: #fff;" size="mini" type="danger"
- @click="deleteRow(scope.$index, scope.row, quarterageData, 1)">删除</el-button>
- </template>
- </el-table-column>
- </el-table>
- </div>
- </div>
- <div class="Entrydraft-form-li">
- <div class="Entrydraft-li-lable">
- <div style="display: flex;align-items: center;">
- <el-checkbox v-model="choiceFour"></el-checkbox>
- <div class="li-lable">四、伙食费:</div>
- <div style="display: flex;">
- <div class="li-lable">
- <label>合计:</label>
- <div class="sub-boxs">{{ TotalMeals | numFilter }}</div>
- <span>元/人</span>
- </div>
- </div>
- </div>
- <div class="btn-Entrydraft">
- <el-button type="primary" @click="addlist('伙食费')" size="mini">新 增</el-button>
- </div>
- </div>
- <div class="Entrydraft-li-inif">
- <el-table :data="boardWagesData" border style="width: 100%">
- <el-table-column prop="days" label="第几晚" width="180">
- <template slot-scope="scope">
- <el-input-number size="mini" :controls="false"
- v-model="scope.row.days"></el-input-number>
- </template>
- </el-table-column>
- <el-table-column style="position: relative;" prop="city" label="城 市" width="180">
- <!-- <template slot-scope="scope">
- <el-input size="mini" v-model="scope.row.city"></el-input>
- </template> -->
- <template slot-scope="scope">
- <el-select size="mini" @change="mealschangeSelect(scope.row, $event, scope.$index)"
- v-model="scope.row.nationalTravelFeeId" filterable placeholder="请选择">
- <el-option v-for="item in placeinif" :key="item.id" :label="item.cityname"
- :value="item.id">
- <span style="float: left">{{ item.cityname }}</span>
- <!-- <span style="float: right; color: #8492a6; font-size: 13px">{{item.city}}</span> -->
- </el-option>
- </el-select>
- </template>
- </el-table-column>
- <el-table-column prop="cost" label=" 费用标准" width="180">
- <template slot-scope="scope">
- <el-input-number size="mini" @input="mealsinput(scope.row)" :precision="2"
- :controls="false" v-model="scope.row.cost"></el-input-number>
- </template>
- </el-table-column>
- <el-table-column prop="currencyName" label=" 币 种" width="180">
- <template slot-scope="scope">
- <el-input disabled size="mini" v-model="scope.row.currencyName"></el-input>
- </template>
- </el-table-column>
- <el-table-column prop="subTotal" label="费用小计" width="180">
- <template slot-scope="scope">
- <div class="sub-boxs">{{ scope.row.subTotal | numFilter }}</div> CNY
- </template>
- </el-table-column>
- <el-table-column prop="address" label="操 作">
- <template slot-scope="scope">
- <el-button v-if="isSave" style="color: #fff;" size="mini" type="danger"
- @click="deleteRow(scope.$index, scope.row, boardWagesData, 2)">删除</el-button>
- </template>
- </el-table-column>
- </el-table>
- </div>
- </div>
- <div class="Entrydraft-form-li">
- <div class="Entrydraft-li-lable">
- <div style="display: flex;align-items: center;">
- <el-checkbox v-model="choiceFive"></el-checkbox>
- <div class="li-lable">五、公杂费:</div>
- <div style="display: flex;">
- <div class="li-lable">
- <label>合计:</label>
- <div class="sub-boxs">{{ TotalMiscellaneous | numFilter }}</div>
- <span>元/人</span>
- </div>
- </div>
- </div>
- <div class="btn-Entrydraft">
- <el-button type="primary" @click="addlist('公杂费')" size="mini">新 增</el-button>
- </div>
- </div>
- <div class="Entrydraft-li-inif">
- <el-table :data="miscellaneousFeeData" border style="width: 100%">
- <el-table-column prop="days" label="第几晚" width="180">
- <template slot-scope="scope">
- <el-input-number size="mini" :controls="false"
- v-model="scope.row.days"></el-input-number>
- </template>
- </el-table-column>
- <el-table-column style="position: relative;" prop="city" label="城 市" width="180">
- <!-- <template slot-scope="scope">
- <el-input size="mini" v-model="scope.row.city"></el-input>
- </template> -->
- <template slot-scope="scope">
- <el-select @change="MiscellaneouschangeSelect(scope.row, $event)" size="mini"
- v-model="scope.row.nationalTravelFeeId" filterable placeholder="请选择">
- <el-option v-for="item in placeinif" :key="item.id" :label="item.cityname"
- :value="item.id">
- <span style="float: left">{{ item.cityname }}</span>
- <!-- <span style="float: right; color: #8492a6; font-size: 13px">{{item.city}}</span> -->
- </el-option>
- </el-select>
- </template>
- </el-table-column>
- <el-table-column prop="cost" label=" 费用标准" width="180">
- <template slot-scope="scope">
- <el-input-number @input="Miscellaneousinput(scope.row)" size="mini" :precision="2"
- :controls="false" v-model="scope.row.cost"></el-input-number>
- </template>
- </el-table-column>
- <el-table-column prop="currencyName" label=" 币 种" width="180">
- <template slot-scope="scope">
- <el-input disabled size="mini" v-model="scope.row.currencyName"></el-input>
- </template>
- </el-table-column>
- <el-table-column prop="subTotal" label="费用小计" width="180">
- <template slot-scope="scope">
- <div class="sub-boxs">{{ scope.row.subTotal | numFilter }}</div> CNY
- </template>
- </el-table-column>
- <el-table-column prop="address" label="操 作">
- <template slot-scope="scope">
- <el-button v-if="isSave" style="color: #fff;" size="mini" type="danger"
- @click="deleteRow(scope.$index, scope.row, miscellaneousFeeData, 3)">删除</el-button>
- </template>
- </el-table-column>
- </el-table>
- </div>
- </div>
- <div class="Entrydraft-form-li">
- <div class="Entrydraft-li-lable">
- <div style="display: flex;align-items: center;">
- <el-checkbox v-model="choiceSix"></el-checkbox>
- <div class="li-lable">六、培训费:</div>
- <div style="display: flex;">
- <div class="li-lable">
- <label>合计:</label>
- <div class="sub-boxs">{{ trainingExpense | numFilter }}</div>
- <span>元/人</span>
- </div>
- </div>
- </div>
- <div class="btn-Entrydraft">
- <el-button type="primary" @click="addlist('培训费')" size="mini">新 增</el-button>
- </div>
- </div>
- <div class="Entrydraft-li-inif">
- <el-table :data="trainingExpenseData" border style="width: 100%">
- <el-table-column prop="days" label="第几晚" width="180">
- <template slot-scope="scope">
- <el-input-number size="mini" :controls="false"
- v-model="scope.row.days"></el-input-number>
- </template>
- </el-table-column>
- <el-table-column style="position: relative;" prop="city" label="城 市" width="180">
- <!-- <template slot-scope="scope">
- <el-input size="mini" v-model="scope.row.city"></el-input>
- </template> -->
- <template slot-scope="scope">
- <el-select @change="TrainingExpenseDataSelect(scope.row, $event)" size="mini"
- v-model="scope.row.nationalTravelFeeId" filterable placeholder="请选择">
- <el-option v-for="item in placeinif" :key="item.id" :label="item.cityname"
- :value="item.id">
- <span style="float: left">{{ item.cityname }}</span>
- <!-- <span style="float: right; color: #8492a6; font-size: 13px">{{item.city}}</span> -->
- </el-option>
- </el-select>
- </template>
- </el-table-column>
- <el-table-column prop="cost" label=" 费用标准" width="180">
- <template slot-scope="scope">
- <el-input-number @input="Traininginput(scope.row)" size="mini" :precision="2"
- :controls="false" v-model="scope.row.cost"></el-input-number>
- </template>
- </el-table-column>
- <el-table-column prop="currencyName" label=" 币 种" width="180">
- <template slot-scope="scope">
- <el-input disabled size="mini" v-model="scope.row.currencyName"></el-input>
- </template>
- </el-table-column>
- <el-table-column prop="subTotal" label="费用小计" width="180">
- <template slot-scope="scope">
- <div class="sub-boxs">{{ scope.row.subTotal | numFilter }}</div> CNY
- </template>
- </el-table-column>
- <el-table-column prop="address" label="操 作">
- <template slot-scope="scope">
- <el-button v-if="isSave" style="color: #fff;" size="mini" type="danger"
- @click="deleteRow(scope.$index, scope.row, trainingExpenseData, 4)">删除</el-button>
- </template>
- </el-table-column>
- </el-table>
- </div>
- </div>
- <div class="Entrydraft-form-li">
- <div class="Entrydraft-li-lable">
- <div style="display: flex;align-items: center;">
- <el-checkbox v-model="choiceSeven"></el-checkbox>
- <div class="li-lable">七、其他:</div>
- <div style="display: flex;">
- <div class="li-lable">
- <label>合计:</label>
- <div class="sub-boxs">{{ otherExpense | numFilter }}</div>
- <span>元/人</span>
- </div>
- </div>
- <div style="color:red">
- 注:特殊情况才在这里填写,如:要计算车导费、备用金费用等
- </div>
- </div>
- <div class="btn-Entrydraft">
- <el-button type="primary" @click="addlist('其他')" size="mini">新 增</el-button>
- </div>
- </div>
- <div class="Entrydraft-li-inif">
- <el-table :data="otherData" border style="width: 100%">
- <el-table-column prop="index" label="第几项" width="180">
- <template slot-scope="scope">
- <el-input-number size="mini" :controls="false"
- v-model="scope.row.index"></el-input-number>
- </template>
- </el-table-column>
- <el-table-column style="position: relative;" prop="setDataId" label="费用类型" width="180">
- <!-- <template slot-scope="scope">
- <el-input size="mini" v-model="scope.row.city"></el-input>
- </template> -->
- <template slot-scope="scope">
- <el-select size="mini" v-model="scope.row.setDataId" filterable placeholder="请选择">
- <el-option v-for="item in otherfylx" :key="item.id" :label="item.name"
- :value="item.id">
- <span style="float: left">{{ item.name }}</span>
- <!-- <span style="float: right; color: #8492a6; font-size: 13px">{{item.city}}</span> -->
- </el-option>
- </el-select>
- </template>
- </el-table-column>
- <el-table-column prop="cost" label=" 费用标准" width="180">
- <template slot-scope="scope">
- <el-input-number @input="otherinput(scope.row)" size="mini" :precision="2"
- :controls="false" v-model="scope.row.cost"></el-input-number>
- </template>
- </el-table-column>
- <el-table-column prop="currencyName" label=" 币 种" width="180">
- <template slot-scope="scope">
- <el-select @change="othercurrencychange(scope.row.currency, scope.row)" size="mini"
- v-model="scope.row.currency" filterable placeholder="请选择">
- <el-option v-for="item in othercurrencys" :key="item.currencyId"
- :label="item.currencyCode" :value="item.currencyId">
- <span style="float: left">{{ item.currencyCode + ' 汇率:' + item.rate
- }}</span>
- </el-option>
- </el-select>
- <!-- <el-input size="mini" v-model="scope.row.currencyName"></el-input> -->
- </template>
- </el-table-column>
- <el-table-column prop="subTotal" label="费用小计" width="180">
- <template slot-scope="scope">
- <div class="sub-boxs">{{ scope.row.subTotal | numFilter }}</div> CNY
- </template>
- </el-table-column>
- <el-table-column prop="remark" label="备注" width="450">
- <template slot-scope="scope">
- <el-input size="mini" v-model="scope.row.remark"></el-input>
- </template>
- </el-table-column>
- <el-table-column prop="address" label="操 作">
- <template slot-scope="scope">
- <el-button v-if="isSave" style="color: #fff;" size="mini" type="danger"
- @click="DeleteOtherExpenses(scope.$index, scope.row, otherData)">删除</el-button>
- </template>
- </el-table-column>
- </el-table>
- </div>
- </div>
- <div class="Entrydraft-form-li">
- <div class="Entrydraft-li-lables">
- <div class="li-lable">费用总计:</div>
- <div style="display: flex;">
- <div class="li-lable">
- <!-- <el-checkbox style="margin-right: -10px;" v-model="airJJC_Checked"></el-checkbox> -->
- <label>(经济舱)</label>
- <div class="sub-boxs">{{ jjctotal | numFilter }}</div>
- <span>元/人</span>
- </div>
-
- <div class="li-lable">
- <!-- <el-checkbox style="margin-right: -10px;" v-model="airGWC_Checked"></el-checkbox> -->
- <label>(公务舱)</label>
- <div class="sub-boxs">{{ gwctotal | numFilter }}</div>
- <span>元/人</span>
- </div>
-
- <div class="li-lable">
- <!-- <el-checkbox style="margin-right: -10px;" v-model="airGWC_Checked"></el-checkbox> -->
- <label>(头等舱)</label>
- <div class="sub-boxs">{{ tdctotal | numFilter }}</div>
- <span>元/人</span>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </template>
- <script>
- import { Decimal } from 'decimal.js'
- import { debounce } from '../../store/statice'
- import { el } from '@fullcalendar/core/internal-common'
- export default {
- data() {
- return {
- fullscreenLoading: false,
- diid:'',
- options: [],
- listvalue: 1005,
- tablevalue: '',
- listvalueoptions: [],
- tablevalueoptions: [],
- isAssignPerm:false,
- //是否计算Checkbox
- choiceOne: false,//境内费用(其他费用)选择框
- choiceTwo: false,//国际旅费合计选择框
- choiceThree: false,//住宿费合计选择框
- choiceFour: false,//伙食费合计选择框
- choiceFive: false,//公杂费合计选择框
- choiceSix: false,//培训费用选择框
- choiceSeven: false,//其他费用选择框
- sumJJC: false,//经济舱小计选择框
- sumGWC: false,//公务舱小计选择框
- sumTDC: false,//头等舱小计选择框
- airJJC_Checked: false,//经济舱选择框
- airGWC_Checked: false,//公务舱选择框
- airTDC_Checked: false,//公务舱选择框
- userId: '',
- token: '',
- value: '',
- valuename: '',
- options: [],
- Visafees: '',
- Visadepicted: '',
- currencys: [],
- currencyss: [],
- DomesticFees: {
- visafees: '',//签证费
- visafeesDescription: '',//签证费用描述
- vaccinefees: 0,//疫苗费
- nucleicfees: 0,//核酸检测费
- serviceCharge: 0,//服务费
- insurance: 500,//保险费
- ticketsExhibitionL: 0,//参展门票
- total: 0,
- firstItemRemark:''//备注
- },
- TotalExpenses: {
- EconomyClass: 0,//经济舱
- BusinessClass: 0,//公务舱
- Firstclass: 0,//头等舱
- // TravellingExpenses: 0,//城市区间交通费
- TravellingExpensesJJ: 0,//城市区间交通费JJ
- TravellingExpensesGW: 0,//城市区间交通费GW
- TravellingExpensesTD: 0,//城市区间交通费TD
- EconomyClasstotal: 0,//经济舱合计
- BusinessClasstotal: 0,//公务舱合计
- Firstclasstotal: 0,//头等舱合计
- twoItemRemark:''//备注
- },
- TotalAccommodationFee: 0,//住宿费合计
- TotalMeals: 0,//伙食费合计
- TotalMiscellaneous: 0,//公杂费合计
- trainingExpense: 0,//培训费合计
- otherExpense: 0,//其他费用合计
- quarterageData: [],
- boardWagesData: [],
- miscellaneousFeeData: [],
- trainingExpenseData: [],
- otherData: [],
- placeinif: [],
- //下拉框
- treeData: "",
- treeDataValue: "",
- data: [],
- defaultProps: {
- children: "cityData",
- label: "city",
- // label: "country",
- },
- jjctotal: 0,//经济舱合计
- gwctotal: 0,//公务舱合计
- tdctotal: 0,//公务舱合计
- storageid: 0,
- visabeizhu: "",
- ID: '',
- TicketJudgment: {},
- CurrencysRemark: '',
- //监听币种数组
- watchedPrice: null,
- cubtn: false,
- getvisafeebtn: false,
- visainfo: {},
- //其他币种
- othercurrencys: [],
- otherfylx: [],
- draftNameDatas:[],
- groupNameDatas:[],
- //设置权限
- setpermissions:false,
- isSave:false,
- isView:false,
- viewUsers:[],
- viewUsersby:[],
- viewUsersarr:[],
- provinceIdarr:[],
- provinceId:'',
- //交通费弹窗
- Transportationdata:[
- {
- coefficient: 2.5,
- cost: 0,
- currencyName: "CNY",
- guideCost: 0,
- no: 1,
- otherCost: 0,
- ovId: '',
- quote: 0,
- remark: "",
- serviceCount: 1
- }
- ],
- Transportationdatatotal:0,
- TransportationVisible:false,
- currencies:[],
- lache:[
- {
- a:1,
- b:"",
- c:"",
- }
- ],
- huoche:[
- {
- a:1,
- b:"",
- c:"",
- }
- ],
- chengshijipiao:[
- {
- a:1,
- b:"",
- c:"",
- }
- ],
- Basicdata:{},
- fulecao:[],
- pullCartFeeTotal:0,
- pullCartFeeDetails:[
- {
- no: 1,
- cost: 0,
- coefficient: 2.50,
- currencyName: "",
- quote: 0,
- remark: ""
- }
- ],
- trainFeeTotal:0,
- trainFeeDetails:[
- {
- no: 1,
- cost: 0,
- coefficient: 2.50,
- currencyName: "",
- quote: 0,
- remark: ""
- }
- ],
- cityAirTicketFeeTotal:0,
- cityAirTicketFeeDetails:[
- {
- no: 1,
- cost: 0,
- coefficient: 2.50,
- currencyName: "",
- quote: 0,
- remark: ""
- }
- ],
- lastUpdateUserName:'',
- lastUpdateTime:'',
- createUserName:'',
- createTime:'',
- }
- },
- methods: {
- querySearch(queryString, cb) {
- var restaurants = this.draftNameDatas;
- var results = queryString ? restaurants.filter(this.createFilter(queryString)) : restaurants;
- // 调用 callback 返回建议列表的数据
- cb(results);
- },
- createFilter(queryString) {
- return (restaurant) => {
- // 每个字符都包含的匹配逻辑
- const searchText = queryString.toLowerCase();
- const itemText = restaurant.value.toLowerCase();
- // 检查查询字符串中的每个字符是否都出现在项目文本中
- return Array.from(searchText).every(char => itemText.includes(char));
- };
- },
- handleSelect(item) {
- this.value = item.id;
- this.GetEnterExitCostInfobyDiId();
- this.PostGroupTeamRateByDiIdAndCTableId();
- },
- //获取团组
- GetEnterExitCostDataSource() {
- var url = "/api/Groups/EnterExitCostDraftDataSource"
- var that = this
- this.$axios({
- method: 'post',
- url: url,
- headers: {
- Authorization: 'Bearer ' + this.token
- },
- data: {
- portType: 1
- }
- }).then(function (res) {
- if (res.data.code == 200) {
- let DataSource=res.data.data;
- that.draftNameDatas= DataSource.draftNameDatas.map((terminal) => {
- return {
- id:terminal.id,
- value:terminal.draftName,
- };
- });
- that.currencys = res.data.data.currencyInit;
- that.viewUsersarr= res.data.data.viewPermissionData;
- if (that.value == null) {
- that.valuename = that.draftNameDatas[0].value;
- that.value = that.draftNameDatas[0].id;
- }
- that.tablevalueoptions = res.data.data.excelTypeData;
- that.GetEnterExitCostInfobyDiId();
- that.PostGroupTeamRateByDiIdAndCTableId();
- }
- })
- },
- provinceIdchange(){
- this.EnterExitCostDraftFileOwner();
- this.GetNationalTravelFeeData();
- },
- //获取归属
- EnterExitDraftProvBelongCostDataSource() {
- this.provinceIdarr=[]
- var url = "/api/Groups/EnterExitDraftProvBelongCostDataSource"
- var that = this
- this.$axios({
- method: 'get',
- url: url,
- }).then(function (res) {
- if (res.data.code == 200) {
- that.provinceIdarr=res.data.data;
-
- }else {
- that.$message.error(res.data.msg);
- }
- })
- },
- //获取文件
- EnterExitCostDraftFileOwner() {
- this.listvalueoptions=[];
- var url = "/api/Groups/EnterExitCostDraftFileOwner/"+this.provinceId
- var that = this
- this.$axios({
- method: 'get',
- url: url,
- }).then(function (res) {
- if (res.data.code == 200) {
- that.listvalueoptions = res.data.data.wordTypeData;
- }else {
- that.$message.error(res.data.msg);
- }
- })
- },
- //获取币种
- PostGroupTeamRateByDiIdAndCTableId() {
- this.othercurrencys = [];
- var url = "/api/Business/PostGroupTeamRateByDiIdAndCTableId"
- var that = this
- this.$axios({
- method: 'post',
- url: url,
- headers: {
- Authorization: 'Bearer ' + this.token
- },
- data: {
- portType: 1,
- diId: 2477,
- cTable: 98
- }
- }).then(function (res) {
- if (res.data.code == 200) {
- that.othercurrencys = res.data.data.teamRates;
- for (let sr = 0; sr < that.othercurrencys.length; sr++) {
- if (that.othercurrencys[sr].currencyCode != 'CNY') {
- that.othercurrencys[sr].rate = (that.othercurrencys[sr].rate * 1.03).toFixed(4)
- }
- for (let y = 0; y < that.currencys.length; y++) {
- if (that.currencys[y].currencyCode == that.othercurrencys[sr].currencyCode) {
- that.othercurrencys[sr].rate = that.currencys[y].rate;
- }
- }
- }
- } else {
- that.$message.error(res.data.msg);
- }
- })
- },
- //获取同步基础数据
- EnterExitCostDraftImportDataInit() {
- var url = "/api/Groups/EnterExitCostDraftImportDataInit"
- var that = this
- this.$axios({
- method: 'post',
- url: url,
- headers: {
- Authorization: 'Bearer ' + this.token
- },
- }).then(function (res) {
- if (res.data.code == 200) {
- let resdata=res.data.data;
- that.groupNameDatas=resdata.groupNameDatas;
- } else {
- that.$message.error(res.data.msg);
- }
- })
- },
- //同步
- EnterExitCostDraftImportData() {
- this.fullscreenLoading = that;
- var url = "/api/Groups/EnterExitCostDraftImportData"
- var that = this
- this.$axios({
- method: 'post',
- url: url,
- headers: {
- Authorization: 'Bearer ' + this.token
- },
- data:{
- portType:1,
- userId:that.userId,
- draftId:that.value,
- groupId:that.diid,
- }
- }).then(function (res) {
- if (res.data.code == 200) {
- that.$message({
- type: 'success',
- message: res.data.msg
- });
- that.fullscreenLoading = false;
- } else {
- that.$message.error(res.data.msg);
- that.fullscreenLoading = false;
- }
- })
- },
- //获取类型
- QuerySetData() {
- var url = "/api/System/QuerySetData"
- var that = this
- this.$axios({
- method: 'post',
- url: url,
- headers: {
- Authorization: 'Bearer ' + this.token
- },
- data: {
- dataType: 92
- }
- }).then(function (res) {
- if (res.data.code == 200) {
- that.otherfylx = res.data.data;
- that.EnterExitCostDraftImportDataInit();
- } else {
- that.$message.error(res.data.msg);
- }
- })
- },
- //获取签证标注
- EnterExitCostDraftVisaTips(){
- this.getvisafeebtn = false;
- var url = "/api/Groups/EnterExitCostDraftVisaTips"
- var that = this
- this.$axios({
- method: 'post',
- url: url,
- headers: {
- Authorization: 'Bearer ' + this.token
- },
- data: {
- portType: 1,
- draftId:that.value
- }
- }).then(function (res) {
- if (res.data.code == 200) {
- that.visainfo = res.data.data;
- that.getvisafeebtn = true;
- // if (that.DomesticFees.visafees != res.data.data.totalAmt && res.data.data.totalAmt != 0) {
- // }
- } else {
- that.$message.error(res.data.msg);
- }
- })
- },
- //获取签证标注
- GetEnterExitCostCorrelationTips(val) {
-
- if (val == 1) {
- this.TotalExpenses.EconomyClass = 0;
- this.TotalExpenses.BusinessClass = 0;
- this.DomesticFees.visafees = 0;
- this.DomesticFees.visafeesDescription = "";
- var url = "/api/Groups/EnterExitCostDraftCorrelationTips"
- var that = this
- this.$axios({
- method: 'post',
- url: url,
- headers: {
- Authorization: 'Bearer ' + this.token
- },
- data: {
- portType: 1,
- diId: that.value
- }
- }).then(function (res) {
- if (res.data.code == 200) {
- that.currencyss = res.data.data.reteInfos;
- // that.TotalExpenses.EconomyClass = res.data.data.airData.jjcCurrentRate;
- // that.TotalExpenses.BusinessClass = res.data.data.airData.gwcCurrentRate;
- // that.DomesticFees.visafees = res.data.data.visaData.feeTotal;
- // that.DomesticFees.visafeesDescription = res.data.data.visaData.remark;
- } else {
- that.$message.error(res.data.msg);
- }
- })
- } else {
- var url = "/api/Groups/EnterExitCostDraftCorrelationTips"
- var that = this
- this.$axios({
- method: 'post',
- url: url,
- headers: {
- Authorization: 'Bearer ' + this.token
- },
- data: {
- portType: 1,
- diId: that.value
- }
- }).then(function (res) {
- if (res.data.code == 200) {
-
- // that.TicketJudgment = res.data.data.airData;
- // that.visainfo = res.data.data.visaData;
- that.currencyss = res.data.data.reteInfos;
- // if (that.DomesticFees.visafees != res.data.data.visaData.feeTotal && res.data.data.visaData.feeTotal != 0) {
- // that.getvisafeebtn = true;
- // }
- for (let s = 0; s < that.currencys.length; s++) {
- if (that.currencys[s].rate != that.currencyss[s].rate) {
- that.cubtn = true;
- that.CurrencysRemark = '当前汇率与实时汇率不同!移上查看'
- return
- } else {
- that.cubtn = false;
- }
- }
- } else {
- that.$message.error(res.data.msg);
- }
- })
- }
- },
- //机票费用填入
- Fillin() {
- this.TotalExpenses.EconomyClass = this.TicketJudgment.jjcCurrentRate;
- this.TotalExpenses.BusinessClass = this.TicketJudgment.gwcCurrentRate;
- },
- //获取费用标注
- GetNationalTravelFeeData() {
- var url = "/api/Groups/GetNationalTravelFeeData"
- var that = this
- this.$axios({
- method: 'post',
- url: url,
- headers: {
- Authorization: 'Bearer ' + this.token
- },
- data: {
- portType: 1,
- provinceId:that.provinceId,
- }
- }).then(function (res) {
- let placeinifarr = [];
- if (res.data.code == 200) {
- for (let i = 0; i < res.data.data.length; i++) {
- res.data.data[i]['cityname'] = res.data.data[i].country + '-' + res.data.data[i].city;
- placeinifarr.push(res.data.data[i]);
- }
- that.placeinif = placeinifarr;
- }
- })
- },
- GetEnterExitCostInfobyDiId() {
- //初始化数据
- this.ID = '';
- // this.currencys=[]
- this.TotalAccommodationFee = 0;//住宿费合计
- this.TotalMeals = 0;//伙食费合计
- this.TotalMiscellaneous = 0;//公杂费合计
- this.trainingExpense = 0;//培训费合计
- this.otherExpense = 0;//其他费合计
- this.DomesticFees = {
- visafees: '',//签证费
- visafeesDescription: '',//签证费用描述
- vaccinefees: 0,//疫苗费
- nucleicfees: 0,//核酸检测费
- serviceCharge: 0,//服务费
- insurance: 500,//保险费
- ticketsExhibitionL: 0,//参展门票
- total: 0,
- firstItemRemark:''//备注
- }
- this.TotalExpenses = {
- EconomyClass: 0,//经济舱
- BusinessClass: 0,//公务舱
- Firstclass: 0,//TD舱
- // TravellingExpenses: 0,//城市区间交通费
- TravellingExpensesJJ: 0,//城市区间交通费JJ
- TravellingExpensesGW: 0,//城市区间交通费GW
- TravellingExpensesTD: 0,//城市区间交通费TD
- EconomyClasstotal: 0,//经济舱合计
- BusinessClasstotal: 0,//公务舱合计
- Firstclasstotal: 0,//TD舱合计
- twoItemRemark:''//备注
- }
- this.choiceOne = false//境内费用(其他费用)选择框
- this.choiceTwo = false//国际旅费合计选择框
- this.choiceThree = false//住宿费合计选择框
- this.choiceFour = false//伙食费合计选择框
- this.choiceFive = false//公杂费合计选择框
- this.choiceSix = false//培训费用选择框
- this.choiceSeven = false//其他费用选择框
- this.sumJJC = false//经济舱小计选择框
- this.sumGWC = false//公务舱小计选择框
- this.sumTDC = false//公务舱小计选择框
- this.airJJC_Checked = false//经济舱选择框
- this.airGWC_Checked = false//公务舱选择框
- this.isSave = false//保存权限
- this.isView = false//查看权限
- this.storageid = 0
- this.quarterageData = [
- {
- id: 0,
- diId: this.value,
- type: 1,
- days: 1,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- {
- id: 0,
- diId: this.value,
- type: 1,
- days: 2,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- {
- id: 0,
- diId: this.value,
- type: 1,
- days: 3,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- {
- id: 0,
- diId: this.value,
- type: 1,
- days: 4,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- {
- id: 0,
- diId: this.value,
- type: 1,
- days: 5,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- {
- id: 0,
- diId: this.value,
- type: 1,
- days: 6,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- {
- id: 0,
- diId: this.value,
- type: 1,
- days: 7,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- {
- id: 0,
- diId: this.value,
- type: 1,
- days: 8,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- ]
- this.boardWagesData = [
- {
- id: 0,
- diId: this.value,
- type: 2,
- days: 1,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- {
- id: 0,
- diId: this.value,
- type: 2,
- days: 2,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- {
- id: 0,
- diId: this.value,
- type: 2,
- days: 3,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- {
- id: 0,
- diId: this.value,
- type: 2,
- days: 4,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- {
- id: 0,
- diId: this.value,
- type: 2,
- days: 5,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- {
- id: 0,
- diId: this.value,
- type: 2,
- days: 6,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- {
- id: 0,
- diId: this.value,
- type: 2,
- days: 7,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- {
- id: 0,
- diId: this.value,
- type: 2,
- days: 8,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- ]
- this.miscellaneousFeeData = [
- {
- id: 0,
- diId: this.value,
- type: 3,
- days: 1,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- {
- id: 0,
- diId: this.value,
- type: 3,
- days: 2,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- {
- id: 0,
- diId: this.value,
- type: 3,
- days: 3,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- {
- id: 0,
- diId: this.value,
- type: 3,
- days: 4,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- {
- id: 0,
- diId: this.value,
- type: 3,
- days: 5,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- {
- id: 0,
- diId: this.value,
- type: 3,
- days: 6,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- {
- id: 0,
- diId: this.value,
- type: 3,
- days: 7,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- {
- id: 0,
- diId: this.value,
- type: 3,
- days: 8,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- ]
- this.trainingExpenseData = [
- {
- id: 0,
- diId: this.value,
- type: 4,
- days: 1,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- {
- id: 0,
- diId: this.value,
- type: 4,
- days: 2,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- {
- id: 0,
- diId: this.value,
- type: 4,
- days: 3,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- {
- id: 0,
- diId: this.value,
- type: 4,
- days: 4,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- {
- id: 0,
- diId: this.value,
- type: 4,
- days: 5,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- {
- id: 0,
- diId: this.value,
- type: 4,
- days: 6,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- {
- id: 0,
- diId: this.value,
- type: 4,
- days: 7,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- {
- id: 0,
- diId: this.value,
- type: 4,
- days: 8,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- ]
- this.otherData = [
- {
- id: 0,
- diId: this.value,
- setDataId: '',
- index: 1,
- cost: '',
- cost: 0,
- currency: '',
- subTotal: 0,
- remark:'',
- },
- {
- id: 0,
- diId: this.value,
- setDataId: '',
- index: 2,
- cost: '',
- cost: 0,
- currency: '',
- subTotal: 0,
- remark:'',
- },
- {
- id: 0,
- diId: this.value,
- setDataId: '',
- index: 3,
- cost: '',
- cost: 0,
- currency: '',
- subTotal: 0,
- remark:'',
- },
- {
- id: 0,
- diId: this.value,
- setDataId: '',
- index: 4,
- cost: '',
- cost: 0,
- currency: '',
- subTotal: 0,
- remark:'',
- },
- {
- id: 0,
- diId: this.value,
- setDataId: '',
- index: 5,
- cost: '',
- cost: 0,
- currency: '',
- subTotal: 0,
- remark:'',
- },
- {
- id: 0,
- diId: this.value,
- setDataId: '',
- index: 6,
- cost: '',
- cost: 0,
- currency: '',
- subTotal: 0,
- remark:'',
- },
- {
- id: 0,
- diId: this.value,
- setDataId: '',
- index: 7,
- cost: '',
- cost: 0,
- currency: '',
- subTotal: 0,
- remark:'',
- },
- {
- id: 0,
- diId: this.value,
- setDataId: '',
- index: 8,
- cost: '',
- cost: 0,
- currency: '',
- subTotal: 0,
- remark:'',
- },
- ]
- this.isAssignPerm=false;
- var url = "/api/Groups/EnterExitCostDraftInfoById"
- var that = this
- this.$axios({
- method: 'post',
- url: url,
- headers: {
- Authorization: 'Bearer ' + this.token
- },
- data: {
- portType: 1,
- id: that.value,
- currUserId:that.userId
- }
- }).then(function (res) {
- if (res.data.code == 200) {
- that.ID = res.data.data.id;
- //汇率
- that.currencys = res.data.data.currencys;
- that.isAssignPerm = res.data.data.isAssignPerm;
- //权限
- that.isSave=res.data.data.isSave;
- that.isView=res.data.data.isView;
- that.viewUsers=res.data.data.viewUsers;
- that.viewUsersby=res.data.data.viewUsers;
- //境内费用
- that.DomesticFees.visafees = res.data.data.visa;
- that.DomesticFees.visafeesDescription = res.data.data.visaRemark;
- that.DomesticFees.vaccinefees = res.data.data.yiMiao;
- that.DomesticFees.nucleicfees = res.data.data.heSuan;
- that.DomesticFees.serviceCharge = res.data.data.service;
- that.DomesticFees.insurance = res.data.data.safe;
- that.DomesticFees.ticketsExhibitionL = res.data.data.ticket;
- that.DomesticFees.firstItemRemark = res.data.data.firstItemRemark;
- //国际旅费
- that.TotalExpenses.EconomyClass = res.data.data.airJJ;
- that.TotalExpenses.BusinessClass = res.data.data.airGW;
- that.TotalExpenses.Firstclass = res.data.data.airTD;
- that.TotalExpenses.TravellingExpensesJJ = res.data.data.cityTranffic;
- that.TotalExpenses.TravellingExpensesGW = res.data.data.cityTranffic1;
- that.TotalExpenses.TravellingExpensesTD = res.data.data.cityTranffic2;
- that.TotalExpenses.twoItemRemark = res.data.data.twoItemRemark;
- //是否计算Checkbox
- that.choiceOne = res.data.data.choiceOne == 1 ? true : false;
- that.choiceTwo = res.data.data.choiceTwo == 1 ? true : false;
- that.choiceThree = res.data.data.choiceThree == 1 ? true : false;
- that.choiceFour = res.data.data.choiceFour == 1 ? true : false;
- that.choiceFive = res.data.data.choiceFive == 1 ? true : false;
- that.choiceSix = res.data.data.choiceSix == 1 ? true : false;
- that.choiceSeven = res.data.data.otherExpenses_Checked == 1 ? true : false;
- that.sumJJC = res.data.data.sumJJC == 1 ? true : false;
- that.sumGWC = res.data.data.sumGWC == 1 ? true : false;
- that.sumTDC = res.data.data.sumTDC == 1 ? true : false;
- that.airJJC_Checked = res.data.data.airJJC_Checked == 1 ? true : false;
- that.airGWC_Checked = res.data.data.airGWC_Checked == 1 ? true : false;
- //住宿费
- that.quarterageData = res.data.data.quarterageData;
- for (let a = 0; a < res.data.data.quarterageData.length; a++) {
- that.TotalAccommodationFee += res.data.data.quarterageData[a].subTotal
- }
- //伙食费
- that.boardWagesData = res.data.data.boardWagesData;
- for (let b = 0; b < res.data.data.boardWagesData.length; b++) {
- that.TotalMeals += res.data.data.boardWagesData[b].subTotal
- }
- //公杂费
- that.miscellaneousFeeData = res.data.data.miscellaneousFeeData;
- for (let c = 0; c < res.data.data.miscellaneousFeeData.length; c++) {
- that.TotalMiscellaneous += res.data.data.miscellaneousFeeData[c].subTotal
- }
- //培训费
- that.trainingExpenseData = res.data.data.trainingExpenseData;
- for (let d = 0; d < res.data.data.trainingExpenseData.length; d++) {
- that.trainingExpense += res.data.data.trainingExpenseData[d].subTotal
- }
- //其他费
- that.otherData = res.data.data.dayOtherPriceData;
- for (let e = 0; e < res.data.data.dayOtherPriceData.length; e++) {
- that.otherExpense += res.data.data.dayOtherPriceData[e].subTotal
- }
- that.storageid = res.data.data.id;
- that.provinceId=res.data.data.provinceId;
- that.GetNationalTravelFeeData();
- that.EnterExitCostDraftFileOwner();
- that.fullscreenLoading = false;
- that.GetEnterExitCostCorrelationTips(2);
- that.EnterExitCostDraftVisaTips();
- } else {
- that.GetNationalTravelFeeData();
- that.EnterExitCostDraftFileOwner();
- that.fullscreenLoading = false;
- that.GetEnterExitCostCorrelationTips(1);
- that.EnterExitCostDraftVisaTips();
- that.$message.warning(res.data.msg);
- }
- })
- },
- //全部清空
- cleanout() {
- //初始化数据
- this.value=0;
- this.valuename="";
- this.viewUsers=[],
- this.viewUsersby=[],
- this.isSave=true,
- this.isView=true,
- this.ID = '';
- // this.currencys=[]
- this.TotalAccommodationFee = 0;//住宿费合计
- this.TotalMeals = 0;//伙食费合计
- this.TotalMiscellaneous = 0;//公杂费合计
- this.trainingExpense = 0;//培训费合计
- this.otherExpense = 0;//其他费合计
- this.DomesticFees = {
- visafees: '',//签证费
- visafeesDescription: '',//签证费用描述
- vaccinefees: 0,//疫苗费
- nucleicfees: 0,//核酸检测费
- serviceCharge: 0,//服务费
- insurance: 500,//保险费
- ticketsExhibitionL: 0,//参展门票
- total: 0,
- firstItemRemark:''//备注
- }
- this.TotalExpenses = {
- EconomyClass: 0,//经济舱
- BusinessClass: 0,//公务舱
- Firstclass: 0,//TD舱
- TravellingExpensesJJ: 0,//城市区间交通费JJ
- TravellingExpensesGW: 0,//城市区间交通费GW
- TravellingExpensesTD: 0,//城市区间交通费TD
- // TravellingExpenses: 0,//城市区间交通费
- EconomyClasstotal: 0,//经济舱合计
- BusinessClasstotal: 0,//公务舱合计
- Firstclasstotal: 0,//TD舱合计
- twoItemRemark:''//备注
- }
- this.choiceOne = false//境内费用(其他费用)选择框
- this.choiceTwo = false//国际旅费合计选择框
- this.choiceThree = false//住宿费合计选择框
- this.choiceFour = false//伙食费合计选择框
- this.choiceFive = false//公杂费合计选择框
- this.choiceSix = false//培训费用选择框
- this.choiceSeven = false//其他费用选择框
- this.sumJJC = false//经济舱小计选择框
- this.sumGWC = false//公务舱小计选择框
- this.sumTDC = false//公务舱小计选择框
- this.airJJC_Checked = false//经济舱选择框
- this.airGWC_Checked = false//公务舱选择框
- this.storageid = 0
- this.isAssignPerm=true;
- this.quarterageData = [
- {
- id: 0,
- diId: this.value,
- type: 1,
- days: 1,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- {
- id: 0,
- diId: this.value,
- type: 1,
- days: 2,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- {
- id: 0,
- diId: this.value,
- type: 1,
- days: 3,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- {
- id: 0,
- diId: this.value,
- type: 1,
- days: 4,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- {
- id: 0,
- diId: this.value,
- type: 1,
- days: 5,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- {
- id: 0,
- diId: this.value,
- type: 1,
- days: 6,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- {
- id: 0,
- diId: this.value,
- type: 1,
- days: 7,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- {
- id: 0,
- diId: this.value,
- type: 1,
- days: 8,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- ]
- this.boardWagesData = [
- {
- id: 0,
- diId: this.value,
- type: 2,
- days: 1,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- {
- id: 0,
- diId: this.value,
- type: 2,
- days: 2,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- {
- id: 0,
- diId: this.value,
- type: 2,
- days: 3,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- {
- id: 0,
- diId: this.value,
- type: 2,
- days: 4,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- {
- id: 0,
- diId: this.value,
- type: 2,
- days: 5,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- {
- id: 0,
- diId: this.value,
- type: 2,
- days: 6,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- {
- id: 0,
- diId: this.value,
- type: 2,
- days: 7,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- {
- id: 0,
- diId: this.value,
- type: 2,
- days: 8,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- ]
- this.miscellaneousFeeData = [
- {
- id: 0,
- diId: this.value,
- type: 3,
- days: 1,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- {
- id: 0,
- diId: this.value,
- type: 3,
- days: 2,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- {
- id: 0,
- diId: this.value,
- type: 3,
- days: 3,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- {
- id: 0,
- diId: this.value,
- type: 3,
- days: 4,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- {
- id: 0,
- diId: this.value,
- type: 3,
- days: 5,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- {
- id: 0,
- diId: this.value,
- type: 3,
- days: 6,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- {
- id: 0,
- diId: this.value,
- type: 3,
- days: 7,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- {
- id: 0,
- diId: this.value,
- type: 3,
- days: 8,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- ]
- this.trainingExpenseData = [
- {
- id: 0,
- diId: this.value,
- type: 4,
- days: 1,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- {
- id: 0,
- diId: this.value,
- type: 4,
- days: 2,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- {
- id: 0,
- diId: this.value,
- type: 4,
- days: 3,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- {
- id: 0,
- diId: this.value,
- type: 4,
- days: 4,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- {
- id: 0,
- diId: this.value,
- type: 4,
- days: 5,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- {
- id: 0,
- diId: this.value,
- type: 4,
- days: 6,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- {
- id: 0,
- diId: this.value,
- type: 4,
- days: 7,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- {
- id: 0,
- diId: this.value,
- type: 4,
- days: 8,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- },
- ]
- this.otherData = [
- {
- id: 0,
- diId: this.value,
- setDataId: '',
- index: 1,
- cost: '',
- cost: 0,
- currency: '',
- subTotal: 0,
- remark:'',
- },
- {
- id: 0,
- diId: this.value,
- setDataId: '',
- index: 2,
- cost: '',
- cost: 0,
- currency: '',
- subTotal: 0,
- remark:'',
- },
- {
- id: 0,
- diId: this.value,
- setDataId: '',
- index: 3,
- cost: '',
- cost: 0,
- currency: '',
- subTotal: 0,
- remark:'',
- },
- {
- id: 0,
- diId: this.value,
- setDataId: '',
- index: 4,
- cost: '',
- cost: 0,
- currency: '',
- subTotal: 0,
- remark:'',
- },
- {
- id: 0,
- diId: this.value,
- setDataId: '',
- index: 5,
- cost: '',
- cost: 0,
- currency: '',
- subTotal: 0,
- remark:'',
- },
- {
- id: 0,
- diId: this.value,
- setDataId: '',
- index: 6,
- cost: '',
- cost: 0,
- currency: '',
- subTotal: 0,
- remark:'',
- },
- {
- id: 0,
- diId: this.value,
- setDataId: '',
- index: 7,
- cost: '',
- cost: 0,
- currency: '',
- subTotal: 0,
- remark:'',
- },
- {
- id: 0,
- diId: this.value,
- setDataId: '',
- index: 8,
- cost: '',
- cost: 0,
- currency: '',
- subTotal: 0,
- remark:'',
- },
- ]
- //汇率赋值
- for (let at = 0; at < this.currencys.length; at++) {
- for (let rt = 0; rt < this.currencyss.length; rt++) {
- if (this.currencys[at].currencyCode == this.currencyss[rt].currCode) {
- this.currencys[at].rate = this.currencyss[rt].rate
- }
- }
- }
- this.getvisafeebtn=false;
- // this.EnterExitCostDraftVisaTips();
- this.provinceId=this.provinceIdarr[0].id;
- this.GetNationalTravelFeeData();
- this.EnterExitCostDraftFileOwner();
- },
- //下拉
- handNodeClick(data, node, e) {
- this.treeDataValue = data.name
- this.treeData = data.name
- },
- //sr需求
- SRrequirement(obj) {
- var currencyinfo = {}
- var rate = 0
- currencyinfo = this.othercurrencys.find(function (i) {
- return i.currencyId === obj.currency
- });
- rate = currencyinfo.rate;
- this.otherExpense = 0;
- for (let l = 0; l < this.otherData.length; l++) {
- this.otherData[l].currency = obj.currency
- this.otherData[l].subTotal = Number(this.otherData[l].cost) * Number(rate);
- this.otherExpense += this.otherData[l].subTotal;
- }
- },
- //住宿地区选择
- changeSelect(val, item, index) {
- var xiabiao=0
- var rate = 0
- var obj = {}
- obj = this.placeinif.find(function (i,indexs) {
- xiabiao=indexs
- return i.id === item
- });
- this.placeinif.splice(xiabiao,1);
- this.placeinif.unshift(obj);
- this.SRrequirement(obj)
- //在change中获取到整条对象数据
- val.currencyName = obj.currencyName;
- val.currency = obj.currency;
- val.cost = obj.roomCost;
- for (let j = 0; j < this.currencys.length; j++) {
- if (this.currencys[j].currencyCode == obj.currencyCode) {
- rate = this.currencys[j].rate;
- }
- }
- val.subTotal = Number(val.cost) * Number(rate);
- this.TotalAccommodationFee = 0;
- for (let a = 0; a < this.quarterageData.length; a++) {
- this.TotalAccommodationFee += Number(this.quarterageData[a].subTotal.toFixed(2));
- }
- // this.mealschangeSelect(this.boardWagesData,item,index)
- },
- //住宿费费用标准值改变
- zhusuinput(val) {
- var rate = 0
- for (let j = 0; j < this.currencys.length; j++) {
- if (this.currencys[j].currencyName == val.currencyName) {
- rate = this.currencys[j].rate;
- }
- }
- val.subTotal = Number(val.cost) * Number(rate);
- this.TotalAccommodationFee = 0;
- for (let a = 0; a < this.quarterageData.length; a++) {
- this.TotalAccommodationFee += Number(Number(this.quarterageData[a].subTotal).toFixed(2));
- }
- },
- //伙食费费用标准值改变
- mealsinput(val) {
- var rate = 0
- for (let j = 0; j < this.currencys.length; j++) {
- if (this.currencys[j].currencyName == val.currencyName) {
- rate = this.currencys[j].rate;
- }
- }
- val.subTotal = Number(val.cost) * Number(rate);
- this.TotalMeals = 0;
- for (let a = 0; a < this.boardWagesData.length; a++) {
- this.TotalMeals += Number(Number(this.boardWagesData[a].subTotal).toFixed(2));
- }
- },
- //伙食地区选择
- mealschangeSelect(val, item, index) {
- var xiabiao=0
- var rate = 0
- var obj = {}
- obj = this.placeinif.find(function (i,indexs) {
- xiabiao=indexs
- return i.id === item
- });
- this.placeinif.splice(xiabiao,1);
- this.placeinif.unshift(obj);
- //在change中获取到整条对象数据
- // if(index!=undefined){
- // val[index].currencyName=obj.currencyName;
- // val[index].currency=obj.currency;
- // val[index].cost=obj.foodCost;
- // val[index].nationalTravelFeeId=obj.id;
- // for(let j=0;j<this.currencys.length;j++){
- // if(this.currencys[j].currencyCode==obj.currencyCode){
- // rate=this.currencys[j].rate;
- // }
- // }
- // val[index].subTotal=Number(val[index].cost)*Number(rate);
- // this.TotalMeals=0;
- // for(let a=0;a<this.boardWagesData.length;a++){
- // this.TotalMeals+=this.boardWagesData[a].subTotal
- // }
- // }
- val.currencyName = obj.currencyName;
- val.currency = obj.currency;
- val.cost = obj.foodCost;
- for (let j = 0; j < this.currencys.length; j++) {
- if (this.currencys[j].currencyCode == obj.currencyCode) {
- rate = this.currencys[j].rate;
- }
- }
- val.subTotal = Number(val.cost) * Number(rate);
- this.TotalMeals = 0;
- for (let a = 0; a < this.boardWagesData.length; a++) {
- this.TotalMeals += this.boardWagesData[a].subTotal
- }
- this.MiscellaneouschangeSelect(this.miscellaneousFeeData, item, index)
- },
- //公杂费费用标准值改变
- Miscellaneousinput(val) {
- var rate = 0
- for (let j = 0; j < this.currencys.length; j++) {
- if (this.currencys[j].currencyName == val.currencyName) {
- rate = this.currencys[j].rate;
- }
- }
- val.subTotal = Number(val.cost) * Number(rate);
- this.TotalMiscellaneous = 0;
- for (let a = 0; a < this.miscellaneousFeeData.length; a++) {
- this.TotalMiscellaneous += Number(Number(this.miscellaneousFeeData[a].subTotal).toFixed(2));
- }
- },
- //公杂费地区选择
- MiscellaneouschangeSelect(val, item, index) {
- var xiabiao=0
- var rate = 0
- var obj = {}
- obj = this.placeinif.find(function (i,indexs) {
- xiabiao=indexs
- return i.id === item
- });
- this.placeinif.splice(xiabiao,1);
- this.placeinif.unshift(obj);
- //在change中获取到整条对象数据
- if (index != undefined) {
- val[index].currencyName = obj.currencyName;
- val[index].currency = obj.currency;
- val[index].cost = obj.publicCost;
- val[index].nationalTravelFeeId = obj.id;
- for (let j = 0; j < this.currencys.length; j++) {
- if (this.currencys[j].currencyCode == obj.currencyCode) {
- rate = this.currencys[j].rate;
- }
- }
- val[index].subTotal = Number(val[index].cost) * Number(rate);
- this.TotalMiscellaneous = 0;
- for (let a = 0; a < this.miscellaneousFeeData.length; a++) {
- this.TotalMiscellaneous += this.miscellaneousFeeData[a].subTotal
- }
- }
- val.currencyName = obj.currencyName;
- val.currency = obj.currency;
- val.cost = obj.publicCost;
- for (let j = 0; j < this.currencys.length; j++) {
- if (this.currencys[j].currencyCode == obj.currencyCode) {
- rate = this.currencys[j].rate;
- }
- }
- val.subTotal = Number(val.cost) * Number(rate);
- this.TotalMiscellaneous = 0;
- for (let a = 0; a < this.miscellaneousFeeData.length; a++) {
- this.TotalMiscellaneous += this.miscellaneousFeeData[a].subTotal
- }
- },
- //培训费费用标准值改变
- Traininginput(val) {
- var rate = 0
- for (let j = 0; j < this.currencys.length; j++) {
- if (this.currencys[j].currencyName == val.currencyName) {
- rate = this.currencys[j].rate;
- }
- }
- val.subTotal = Number(val.cost) * Number(rate);
- this.trainingExpense = 0;
- for (let a = 0; a < this.trainingExpenseData.length; a++) {
- this.trainingExpense += Number(Number(this.trainingExpenseData[a].subTotal).toFixed(2));
-
- }
- },
- //培训费地区选择
- TrainingExpenseDataSelect(val, item) {
- var xiabiao=0
- var rate = 0//汇率
- var obj = {}
- obj = this.placeinif.find(function (i,indexs) {
- xiabiao=indexs
- return i.id === item
- });
- this.placeinif.splice(xiabiao,1);
- this.placeinif.unshift(obj);
- //在change中获取到整条对象数据
- val.currencyName = obj.currencyName;
- val.currency = obj.currency;
- val.cost=obj.trainCost;
- for (let j = 0; j < this.currencys.length; j++) {
- if (this.currencys[j].currencyCode == obj.currencyCode) {
- rate = this.currencys[j].rate;
- }
- }
- val.subTotal = Number(val.cost) * Number(rate);
- for (let a = 0; a < this.trainingExpenseData.length; a++) {
- this.trainingExpense += this.trainingExpenseData[a].subTotal
- }
- },
- //其他币种值改变
- othercurrencychange(val, row) {
- var obj = {};
- var rate = 0;
- obj = this.othercurrencys.find(function (i) {
- return i.currencyId === val;
- });
- rate = obj.rate
- row.subTotal = Number(row.cost) * Number(rate);
- this.otherExpense = 0;
- for (let a = 0; a < this.otherData.length; a++) {
- this.otherExpense += this.otherData[a].subTotal;
- }
- },
- //其他费用标准值改变
- otherinput(val) {
- if (val.currency == '' || this.othercurrencys == '') {
- return
- }
- var obj = {}
- var rate = 0
- obj = this.othercurrencys.find(function (i) {
- return i.currencyId === val.currency
- });
- rate = obj.rate
- val.subTotal = Number(val.cost) * Number(rate);
- this.otherExpense = 0;
- for (let a = 0; a < this.otherData.length; a++) {
- this.otherExpense += Number(Number(this.otherData[a].subTotal).toFixed(2));
- }
- },
- //新增list
- addlist(text) {
- if (text == "住宿费") {
- this.quarterageData.push({
- id: 0,
- diId: this.value,
- type: 1,
- days: this.quarterageData.length != 0 ? (this.quarterageData[this.quarterageData.length - 1].days) + 1 : 1,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- })
- // this.boardWagesData.push({
- // id:0,
- // diId:this.value,
- // type:2,
- // days:this.boardWagesData.length!=0?(this.boardWagesData[this.boardWagesData.length-1].days)+1:1,
- // nationalTravelFeeId:'',
- // cost:0,
- // currency:0,
- // subTotal:0,
- // remark:'',
- // })
- }
- if (text == "伙食费") {
- this.boardWagesData.push({
- id: 0,
- diId: this.value,
- type: 2,
- days: this.boardWagesData.length != 0 ? (this.boardWagesData[this.boardWagesData.length - 1].days) + 1 : 1,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- })
- this.miscellaneousFeeData.push({
- id: 0,
- diId: this.value,
- type: 3,
- days: this.miscellaneousFeeData.length != 0 ? (this.miscellaneousFeeData[this.miscellaneousFeeData.length - 1].days) + 1 : 1,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- })
- }
- if (text == "公杂费") {
- this.miscellaneousFeeData.push({
- id: 0,
- diId: this.value,
- type: 3,
- days: this.miscellaneousFeeData.length != 0 ? (this.miscellaneousFeeData[this.miscellaneousFeeData.length - 1].days) + 1 : 1,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- })
- }
- if (text == "培训费") {
- this.trainingExpenseData.push({
- id: 0,
- diId: this.value,
- type: 4,
- days: this.trainingExpenseData.length != 0 ? (this.trainingExpenseData[this.trainingExpenseData.length - 1].days) + 1 : 1,
- nationalTravelFeeId: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark: '',
- })
- }
- if (text == "其他") {
- this.otherData.push({
- id: 0,
- diId: this.value,
- setDataId: '',
- index: this.otherData.length != 0 ? (this.otherData[this.otherData.length - 1].index) + 1 : 1,
- cost: '',
- cost: 0,
- currency: 0,
- subTotal: 0,
- remark:'',
- })
- }
- },
- //保存
- storage: debounce(function () {
- if (this.valuename=="") {
- this.$message.error('睁开眼睛看看草稿名称填没填!!!!!');
- return
- }
- return new Promise((resolve, reject) => {
- //住宿费
- this.fullscreenLoading = true
- var quarterageDatas = [];
- for (let m = 0; m < this.quarterageData.length; m++) {
- if (this.quarterageData[m].nationalTravelFeeId != '') {
- quarterageDatas.push({
- id: this.quarterageData[m].id,
- diId: this.quarterageData[m].diId,
- type: this.quarterageData[m].type,
- days: this.quarterageData[m].days,
- nationalTravelFeeId: this.quarterageData[m].nationalTravelFeeId,
- cost: this.quarterageData[m].cost,
- currency: this.quarterageData[m].currency,
- subTotal: this.quarterageData[m].subTotal,
- remark: this.quarterageData[m].remark,
- })
- }
- }
- //伙食费
- var boardWagesDatas = [];
- for (let n = 0; n < this.boardWagesData.length; n++) {
- if (this.boardWagesData[n].nationalTravelFeeId != '') {
- boardWagesDatas.push({
- id: this.boardWagesData[n].id,
- diId: this.boardWagesData[n].diId,
- type: this.boardWagesData[n].type,
- days: this.boardWagesData[n].days,
- nationalTravelFeeId: this.boardWagesData[n].nationalTravelFeeId,
- cost: this.boardWagesData[n].cost,
- currency: this.boardWagesData[n].currency,
- subTotal: this.boardWagesData[n].subTotal,
- remark: this.boardWagesData[n].remark,
- })
- }
- }
- //公杂费miscellaneousFeeData
- var miscellaneousFeeDatas = [];
- for (let b = 0; b < this.miscellaneousFeeData.length; b++) {
- if (this.miscellaneousFeeData[b].nationalTravelFeeId != '') {
- miscellaneousFeeDatas.push({
- id: this.miscellaneousFeeData[b].id,
- diId: this.miscellaneousFeeData[b].diId,
- type: this.miscellaneousFeeData[b].type,
- days: this.miscellaneousFeeData[b].days,
- nationalTravelFeeId: this.miscellaneousFeeData[b].nationalTravelFeeId,
- cost: this.miscellaneousFeeData[b].cost,
- currency: this.miscellaneousFeeData[b].currency,
- subTotal: this.miscellaneousFeeData[b].subTotal,
- remark: this.miscellaneousFeeData[b].remark,
- })
- }
- }
- //培训费
- var trainingExpenseDatas = [];
- for (let p = 0; p < this.trainingExpenseData.length; p++) {
- if (this.trainingExpenseData[p].nationalTravelFeeId != '') {
- trainingExpenseDatas.push({
- id: this.trainingExpenseData[p].id,
- diId: this.trainingExpenseData[p].diId,
- type: this.trainingExpenseData[p].type,
- days: this.trainingExpenseData[p].days,
- nationalTravelFeeId: this.trainingExpenseData[p].nationalTravelFeeId,
- cost: this.trainingExpenseData[p].cost,
- currency: this.trainingExpenseData[p].currency,
- subTotal: this.trainingExpenseData[p].subTotal,
- remark: this.trainingExpenseData[p].remark,
- })
- }
- }
- //其他费
- var otherDatas = [];
- for (let c = 0; c < this.otherData.length; c++) {
- if (this.otherData[c].setDataId != '') {
- otherDatas.push({
- id: this.otherData[c].id,
- diId: this.otherData[c].diId,
- index: this.otherData[c].index,
- setDataId: this.otherData[c].setDataId,
- cost: this.otherData[c].cost,
- currency: this.otherData[c].currency,
- subTotal: this.otherData[c].subTotal,
- remark: this.otherData[c].remark,
- })
- }
- }
- this.storageAPI(quarterageDatas, boardWagesDatas, miscellaneousFeeDatas, trainingExpenseDatas, otherDatas)
- })
- }, 1000, true),
- //导出保存
- //保存API
- storageAPI(arrthre, arrfour, arrfive, arrsix, arrSeven) {
- var url = "/api/Groups/EnterExitCostDraftOp"
- var that = this
- let filteredObjects = that.draftNameDatas.filter(obj =>
- that.valuename==obj.value
- );
- if (filteredObjects.length<1) {
- that.value = 0;
- }
- this.$axios({
- method: 'post',
- url: url,
- headers: {
- Authorization: 'Bearer ' + this.token,
- contentType: 'application/json'
- },
- data: {
- portType: 1,
- userId: that.userId,
- id: that.value,
- draftName: that.valuename,
- choiceOne: that.choiceOne ? 1 : 0,
- insidePay: that.DomesticFees.total,
- provinceId: that.provinceId,
- visa: that.DomesticFees.visafees,
- visaRemark: that.DomesticFees.visafeesDescription,
- yiMiao: that.DomesticFees.vaccinefees,
- heSuan: that.DomesticFees.nucleicfees,
- service: that.DomesticFees.serviceCharge,
- ticket: that.DomesticFees.ticketsExhibitionL,
- safe: that.DomesticFees.insurance,
- firstItemRemark:that.DomesticFees.firstItemRemark,
- choiceTwo: that.choiceTwo ? 1 : 0,
- otherExpenses_Checked: that.choiceSeven ? 1 : 0,
- sumJJC: that.sumJJC ? 1 : 0,
- sumGWC: that.sumGWC ? 1 : 0,
- sumTDC: that.sumTDC ? 1 : 0,
- outsideJJPay: that.TotalExpenses.EconomyClasstotal,
- outsideGWPay: that.TotalExpenses.BusinessClasstotal,
- outsideTDPay: that.TotalExpenses.Firstclasstotal,
- twoItemRemark: that.TotalExpenses.twoItemRemark,
- airJJ: that.TotalExpenses.EconomyClass,
- airGW: that.TotalExpenses.BusinessClass,
- airTD: that.TotalExpenses.Firstclass,
- cityTranffic: that.TotalExpenses.TravellingExpensesJJ,
- cityTranffic1: that.TotalExpenses.TravellingExpensesGW,
- cityTranffic2: that.TotalExpenses.TravellingExpensesTD,
- dayOtherPriceData: arrSeven,
- currencys: that.currencys,
- choiceThree: that.choiceThree ? 1 : 0,
- quarterageData: arrthre,
- choiceFour: that.choiceFour ? 1 : 0,
- boardWagesData: arrfour,
- choiceFive: that.choiceFive ? 1 : 0,
- miscellaneousFeeData: arrfive,
- choiceSix: that.choiceSix ? 1 : 0,
- //加参数
- trainingExpenseData: arrsix,
- airJJC_Checked: that.airJJC_Checked ? 1 : 0,
- airGWC_Checked: that.airGWC_Checked ? 1 : 0,
- airTDC_Checked: that.airTDC_Checked ? 1 : 0,
- }
- }).then(function (res) {
- if (res.data.code == 200) {
- that.$message({
- type: 'success',
- message: res.data.msg
- });
- if (that.value == 0) {
- that.value=res.data.data.sign;
- that.draftNameDatas.push({
- id:res.data.data.sign,
- value:res.data.data.draftName,
- })
- }
- that.GetEnterExitCostInfobyDiId()
- } else {
- that.fullscreenLoading = false;
- that.$message.error(res.data.msg);
- }
- }).catch(function (error) {
- that.$message.error(error.message);
- });
- },
- //选择团组名称调用
- chengvalue() {
- window.localStorage.setItem('sgvalue', this.value);
- this.fullscreenLoading = true;
- this.GetEnterExitCostInfobyDiId();
- this.PostGroupTeamRateByDiIdAndCTableId();
- },
- eptschedule: debounce(function (val) {
- if (this.valuename=="") {
- this.$message.error('睁开眼睛看看草稿名称填没填!!!!!');
- return
- }
- return new Promise((resolve, reject) => {
- //住宿费
- this.fullscreenLoading = true
- var quarterageDatas = [];
- for (let m = 0; m < this.quarterageData.length; m++) {
- if (this.quarterageData[m].nationalTravelFeeId != '') {
- quarterageDatas.push({
- id: this.quarterageData[m].id,
- diId: this.quarterageData[m].diId,
- type: this.quarterageData[m].type,
- days: this.quarterageData[m].days,
- nationalTravelFeeId: this.quarterageData[m].nationalTravelFeeId,
- cost: this.quarterageData[m].cost,
- currency: this.quarterageData[m].currency,
- subTotal: this.quarterageData[m].subTotal,
- remark: this.quarterageData[m].remark,
- })
- }
- }
- //伙食费
- var boardWagesDatas = [];
- for (let n = 0; n < this.boardWagesData.length; n++) {
- if (this.boardWagesData[n].nationalTravelFeeId != '') {
- boardWagesDatas.push({
- id: this.boardWagesData[n].id,
- diId: this.boardWagesData[n].diId,
- type: this.boardWagesData[n].type,
- days: this.boardWagesData[n].days,
- nationalTravelFeeId: this.boardWagesData[n].nationalTravelFeeId,
- cost: this.boardWagesData[n].cost,
- currency: this.boardWagesData[n].currency,
- subTotal: this.boardWagesData[n].subTotal,
- remark: this.boardWagesData[n].remark,
- })
- }
- }
- //公杂费miscellaneousFeeData
- var miscellaneousFeeDatas = [];
- for (let b = 0; b < this.miscellaneousFeeData.length; b++) {
- if (this.miscellaneousFeeData[b].nationalTravelFeeId != '') {
- miscellaneousFeeDatas.push({
- id: this.miscellaneousFeeData[b].id,
- diId: this.miscellaneousFeeData[b].diId,
- type: this.miscellaneousFeeData[b].type,
- days: this.miscellaneousFeeData[b].days,
- nationalTravelFeeId: this.miscellaneousFeeData[b].nationalTravelFeeId,
- cost: this.miscellaneousFeeData[b].cost,
- currency: this.miscellaneousFeeData[b].currency,
- subTotal: this.miscellaneousFeeData[b].subTotal,
- remark: this.miscellaneousFeeData[b].remark,
- })
- }
- }
- //培训费
- var trainingExpenseDatas = [];
- for (let p = 0; p < this.trainingExpenseData.length; p++) {
- if (this.trainingExpenseData[p].nationalTravelFeeId != '') {
- trainingExpenseDatas.push({
- id: this.trainingExpenseData[p].id,
- diId: this.trainingExpenseData[p].diId,
- type: this.trainingExpenseData[p].type,
- days: this.trainingExpenseData[p].days,
- nationalTravelFeeId: this.trainingExpenseData[p].nationalTravelFeeId,
- cost: this.trainingExpenseData[p].cost,
- currency: this.trainingExpenseData[p].currency,
- subTotal: this.trainingExpenseData[p].subTotal,
- remark: this.trainingExpenseData[p].remark,
- })
- }
- }
- //其他费
- var otherDatas = [];
- for (let c = 0; c < this.otherData.length; c++) {
- if (this.otherData[c].setDataId != '') {
- otherDatas.push({
- id: this.otherData[c].id,
- diId: this.otherData[c].diId,
- index: this.otherData[c].index,
- setDataId: this.otherData[c].setDataId,
- cost: this.otherData[c].cost,
- currency: this.otherData[c].currency,
- subTotal: this.otherData[c].subTotal,
- remark: this.otherData[c].remark,
- })
- }
- }
- var url = "/api/Groups/EnterExitCostDraftOp"
- var that = this
- let filteredObjects = that.draftNameDatas.filter(obj =>
- that.valuename == obj.value
- );
- if (filteredObjects.length < 1) {
- that.value = 0;
- }
- this.$axios({
- method: 'post',
- url: url,
- headers: {
- Authorization: 'Bearer ' + this.token,
- contentType: 'application/json'
- },
- data: {
- portType: 1,
- userId: that.userId,
- id: that.value,
- draftName: that.valuename,
- choiceOne: that.choiceOne ? 1 : 0,
- insidePay: that.DomesticFees.total,
- visa: that.DomesticFees.visafees,
- visaRemark: that.DomesticFees.visafeesDescription,
- yiMiao: that.DomesticFees.vaccinefees,
- heSuan: that.DomesticFees.nucleicfees,
- service: that.DomesticFees.serviceCharge,
- ticket: that.DomesticFees.ticketsExhibitionL,
- safe: that.DomesticFees.insurance,
- firstItemRemark: that.DomesticFees.firstItemRemark,
- choiceTwo: that.choiceTwo ? 1 : 0,
- otherExpenses_Checked: that.choiceSeven ? 1 : 0,
- sumJJC: that.sumJJC ? 1 : 0,
- sumGWC: that.sumGWC ? 1 : 0,
- sumTDC: that.sumTDC ? 1 : 0,
- outsideJJPay: that.TotalExpenses.EconomyClasstotal,
- outsideGWPay: that.TotalExpenses.BusinessClasstotal,
- outsideTDPay: that.TotalExpenses.Firstclasstotal,
- twoItemRemark: that.TotalExpenses.twoItemRemark,
- airJJ: that.TotalExpenses.EconomyClass,
- airGW: that.TotalExpenses.BusinessClass,
- airTD: that.TotalExpenses.Firstclass,
- cityTranffic: that.TotalExpenses.TravellingExpensesJJ,
- cityTranffic1: that.TotalExpenses.TravellingExpensesGW,
- cityTranffic2: that.TotalExpenses.TravellingExpensesTD,
- dayOtherPriceData: otherDatas,
- currencys: that.currencys,
- choiceThree: that.choiceThree ? 1 : 0,
- quarterageData: quarterageDatas,
- choiceFour: that.choiceFour ? 1 : 0,
- boardWagesData: boardWagesDatas,
- choiceFive: that.choiceFive ? 1 : 0,
- miscellaneousFeeData: miscellaneousFeeDatas,
- choiceSix: that.choiceSix ? 1 : 0,
- //加参数
- trainingExpenseData: trainingExpenseDatas,
- airJJC_Checked: that.airJJC_Checked ? 1 : 0,
- airGWC_Checked: that.airGWC_Checked ? 1 : 0,
- airTDC_Checked: that.airTDC_Checked ? 1 : 0,
- }
- }).then(function (res) {
- if (res.data.code == 200) {
- that.$message({
- type: 'success',
- message: res.data.msg
- });
- if (that.value == 0) {
- that.value = res.data.data.sign;
- that.draftNameDatas.push({
- id: res.data.data.sign,
- value: res.data.data.draftName,
- })
- }
- var subTypeId = 0
- if (val == 1) {
- subTypeId = that.listvalue
- } else if (val == 2) {
- subTypeId = that.tablevalue
- } else {
- subTypeId = 1
- }
- if (subTypeId == "") {
- that.$message.error('请选择需要导出的表格');
- return
- }
- var url = "/api/Groups/EnterExitCostDraftDownload"
- that.$axios({
- method: 'post',
- url: url,
- headers: {
- Authorization: 'Bearer ' + that.token
- },
- data: {
- portType: 1,
- id: that.value,
- exportType: val,
- subTypeId: subTypeId
- }
- }).then(function (res) {
- if (res.data.code == 200) {
- that.$message({
- type: 'success',
- message: res.data.msg
- });
- window.open(res.data.data.url);
- } else {
- that.$message.error(res.data.msg);
- }
- })
- that.GetEnterExitCostInfobyDiId()
- } else {
- that.fullscreenLoading = false;
- that.$message.error(res.data.msg);
- }
- }).catch(function (error) {
- that.$message.error(error.message);
- });
- // this.storageAPI(quarterageDatas, boardWagesDatas, miscellaneousFeeDatas, trainingExpenseDatas, otherDatas)
- })
- }, 500, true),
- //
- calculation() {
- var jnfy
- var jjcxj
- var gwcxj
- var tdcxj
- var zsf
- var hsf
- var gzf
- var pxf
- var qtfy
- if (this.choiceOne == true) {
- jnfy = this.DomesticFees.total;
- } else {
- jnfy = 0;
- }
- if (this.choiceThree == true) {
- zsf = this.TotalAccommodationFee;
- } else {
- zsf = 0;
- }
- if (this.choiceFour == true) {
- hsf = this.TotalMeals;
- } else {
- hsf = 0;
- }
- if (this.choiceFive == true) {
- gzf = this.TotalMiscellaneous;
- } else {
- gzf = 0;
- }
- if (this.choiceSix == true) {
- pxf = this.trainingExpense;
- } else {
- pxf = 0;
- }
- if (this.choiceSeven == true) {
- qtfy = this.otherExpense;
- } else {
- qtfy = 0;
- }
- if (this.sumJJC == true) {
- jjcxj = this.TotalExpenses.EconomyClasstotal;
- this.jjctotal = jnfy + jjcxj + zsf + hsf + gzf + pxf + qtfy;
- } else {
- jjcxj = 0;
- this.jjctotal = 0;
- }
- if (this.sumGWC == true) {
- gwcxj = this.TotalExpenses.BusinessClasstotal;
- this.gwctotal = jnfy + gwcxj + zsf + hsf + gzf + pxf + qtfy;
- } else {
- gwcxj = 0;
- this.gwctotal = 0;
- }
- if (this.sumTDC == true) {
- tdcxj = this.TotalExpenses.Firstclasstotal;
- this.tdctotal = jnfy + tdcxj + zsf + hsf + gzf + pxf + qtfy;
- } else {
- tdcxj = 0;
- this.tdctotal = 0;
- }
- },
- //其他删除
- DeleteOtherExpenses(index, row, rows) {
- this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- }).then(() => {
- {
- if (row.id == 0) {
- this.$message({
- type: 'success',
- message: '删除成功'
- });
- rows.splice(index, 1);
- this.otherExpense = 0;
- for (let a = 0; a < rows.length; a++) {
- this.otherExpense += rows[a].subTotal;
- }
- return;
- }
- var url = "/api/Groups/EnterExitCostDraftOtherExpensesDel"
- var that = this
- this.$axios({
- method: 'post',
- url: url,
- headers: {
- Authorization: 'Bearer ' + that.token
- },
- data: {
- portType: 1,
- id: row.id,
- deleteUserId: that.userId
- }
- }).then(function (res) {
- if (res.data.code == 200) {
- that.$message({
- type: 'success',
- message: res.data.msg
- });
- rows.splice(index, 1);
- this.otherExpense = 0;
- for (let a = 0; a < rows.length; a++) {
- this.otherExpense += rows[a].subTotal;
- }
- } else {
- that.$message.error(res.data.msg);
- }
- })
- }
- }).catch(() => {
- this.$message({
- type: 'info',
- message: '已取消删除'
- });
- });
- },
- //删除
- deleteRow(index, row, rows, val) {
- this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- }).then(() => {
- if (row.id == 0) {
- this.$message({
- type: 'success',
- message: '删除成功'
- });
- rows.splice(index, 1);
- if (val == 1) {
- this.TotalAccommodationFee = 0;
- for (let a = 0; a < rows.length; a++) {
- this.TotalAccommodationFee += rows[a].subTotal;
- }
- }
- if (val == 2) {
- this.TotalMeals = 0;
- for (let a = 0; a < rows.length; a++) {
- this.TotalMeals += rows[a].subTotal;
- }
- }
- if (val == 3) {
- this.TotalMiscellaneous = 0;
- for (let a = 0; a < rows.length; a++) {
- this.TotalMiscellaneous += rows[a].subTotal;
- }
- }
- if (val == 4) {
- this.trainingExpense = 0;
- for (let a = 0; a < rows.length; a++) {
- this.trainingExpense += rows[a].subTotal;
- }
- }
- return;
- }
- var url = "/api/Groups/EnterExitCostDraftSubItemDel"
- var that = this
- this.$axios({
- method: 'post',
- url: url,
- headers: {
- Authorization: 'Bearer ' + that.token
- },
- data: {
- portType: 1,
- id: row.id,
- deleteUserId: that.userId
- }
- }).then(function (res) {
- if (res.data.code == 200) {
- that.$message({
- type: 'success',
- message: res.data.msg
- });
- rows.splice(index, 1);
- if (val == 1) {
- that.TotalAccommodationFee = 0;
- for (let a = 0; a < rows.length; a++) {
- that.TotalAccommodationFee += rows[a].subTotal;
- }
- }
- if (val == 2) {
- that.TotalMeals = 0;
- for (let a = 0; a < rows.length; a++) {
- that.TotalMeals += rows[a].subTotal;
- }
- }
- if (val == 3) {
- that.TotalMiscellaneous = 0;
- for (let a = 0; a < rows.length; a++) {
- that.TotalMiscellaneous += rows[a].subTotal;
- }
- }
- if (val == 4) {
- that.trainingExpense = 0;
- for (let a = 0; a < rows.length; a++) {
- that.trainingExpense += rows[a].subTotal;
- }
- }
- } else {
- that.$message.error(res.data.msg);
- }
- })
- }).catch(() => {
- this.$message({
- type: 'info',
- message: '已取消删除'
- });
- });
- },
- //填入实时汇率
- adoptRealtime() {
- for (let at = 0; at < this.currencys.length; at++) {
- for (let rt = 0; rt < this.currencyss.length; rt++) {
- if (this.currencys[at].currencyCode == this.currencyss[rt].currCode) {
- this.currencys[at].rate = this.currencyss[rt].rate
- }
- }
- }
- this.cubtn = false;
- },
- Getnewvisafee() {
- this.DomesticFees.visafees = this.visainfo.totalAmt;
- this.DomesticFees.visafeesDescription = this.visainfo.remark==''?'此国家未录签证数据不是没有或者看看下面费用里有没有选国家城市没国家哪里来的签证,天才!':this.visainfo.remark;
- // this.getvisafeebtn = false;
- },
- //导出到收款账单
- NationalTravelFeeImportReceivables() {
- var url = "/api/Groups/NationalTravelFeeImportReceivables/" + this.value
- var that = this
- this.$axios({
- method: 'get',
- url: url,
- headers: {
- Authorization: 'Bearer ' + that.token
- },
- }).then(function (res) {
- if (res.data.code == 200) {
- that.$message({
- type: 'success',
- message: res.data.msg
- });
- } else {
- that.$message.error(res.data.msg);
- }
- }).catch(function (error) {
- that.$message.error("操作错误,联系信息部!");
- });
- },
- //设置权限按钮
- setpermissionsbtn(){
- this.viewUsers=this.viewUsersby;
- this.setpermissions=true;
- },
- handleCheckAllChange(val) {
- // console.log(val);
- // console.log(this.viewUsers);
-
- },
- //分配查看权限
- EnterExitCostSetViewPermissiion() {
- var url = "/api/Groups/EnterExitCostDraftSetViewPermissiion"
- var that = this
- this.$axios({
- method: 'post',
- url: url,
- headers: {
- Authorization: 'Bearer ' + that.token
- },
- data:{
- portType:1,
- draftId:that.value,
- userIds:that.viewUsers,
- currUserId:that.userId,
- }
- }).then(function (res) {
- if (res.data.code == 200) {
- that.$message({
- type: 'success',
- message: res.data.msg
- });
- that.setpermissions=false;
- that.GetEnterExitCostInfobyDiId();
- } else {
- that.setpermissions=false;
- that.$message.error(res.data.msg);
- }
- }).catch(function (error) {
- that.$message.error("操作错误,联系信息部!");
- });
- },
- //交通费基础费用
- EnterExitCostDraftOVByGroupId() {
- var url = "/api/Groups/EnterExitCostDraftOVByGroupId/"+this.value
- var that = this
- this.$axios({
- method: 'get',
- url: url,
- headers: {
- Authorization: 'Bearer ' + this.token
- },
- }).then(function (res) {
- that.fulecao=[];
- that.currencies=[];
- if (res.data.code == 200) {
- that.currencies=res.data.data.currencies;
- that.fulecao=res.data.data.data;
- }else {
- that.$message.error(res.data.msg);
- }
- })
- },
- //交通费详细
- EnterExitCostDraftOVFeeDetails() {
- var url = "/api/Groups/EnterExitCostDraftOVFeeDetails/"+this.value+"?currUserId="+this.userId
- var that = this
- this.$axios({
- method: 'get',
- url: url,
- headers: {
- Authorization: 'Bearer ' + this.token
- },
- }).then(function (res) {
- that.Transportationdata=[];
- that.Transportationdatatotal=0;
- that.pullCartFeeDetails=[];
- that.pullCartFeeTotal=0;
- that.trainFeeDetails=[];
- that.trainFeeTotal=0;
- that.cityAirTicketFeeDetails=[];
- that.cityAirTicketFeeTotal=0;
- that.lastUpdateUserName="";
- that.lastUpdateTime="";
- that.createUserName="";
- that.createTime="";
- that.Basicdata={};
- if (res.data.code == 200) {
- that.Basicdata=res.data.data;
- that.Transportationdata=res.data.data.aptFeeDetails;
- that.Transportationdatatotal=res.data.data.aptFeeTotal;
- that.pullCartFeeDetails=res.data.data.pullCartFeeDetails;
- that.pullCartFeeTotal=res.data.data.pullCartFeeTotal;
- that.trainFeeDetails=res.data.data.trainFeeDetails;
- that.trainFeeTotal=res.data.data.trainFeeTotal;
- that.cityAirTicketFeeDetails=res.data.data.cityAirTicketFeeDetails;
- that.cityAirTicketFeeTotal=res.data.data.cityAirTicketFeeTotal;
- that.lastUpdateUserName=res.data.data.lastUpdateUserName;
- that.lastUpdateTime=res.data.data.lastUpdateTime;
- that.createUserName=res.data.data.createUserName;
- that.createTime=res.data.data.createTime;
- that.EnterExitCostDraftOVByGroupId();
- }else {
- that.$message.error(res.data.msg);
- }
- })
- },
- //交通费弹窗
- openTransportation(){
- this.EnterExitCostDraftOVFeeDetails();
- this.TransportationVisible=true;
- },
- //选择城市交通费
- UrbanSelect(val, item, index) {
- var obj = {}
- obj = this.fulecao.find(function (i,indexs) {
- return i.id === item
- });
- val.cost=obj.price;
- val.otherCost=obj.otherPrice;
- val.guideCost=obj.guidePrice;
- val.currencyName=obj.currencyName
- this.UrbanModify(val,val.currencyName)
- },
- numFilters(value) {
- // 截取当前数据到小数点后两位
- let tempVal = parseFloat(value).toFixed(3);
- let realVal = tempVal.substring(0, tempVal.length - 1);
- return realVal;
- },
- deleteRowJSJ(index, rows,row) {
- this.$confirm('此操作只是移除该条数据做出计算并未保存,如要删除该条数据请点击保存!', '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- }).then(() => {
- rows.splice(index, 1);
- this.UrbanTotal();
- }).catch(() => {
- this.$message({
- type: 'info',
- message: '操作已取消!'
- });
- });
- },
- deleteRowLC(index, rows,row) {
- this.$confirm('此操作只是移除该条数据做出计算并未保存,如要删除该条数据请点击保存!', '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- }).then(() => {
- rows.splice(index, 1);
- this.UrbanTotalLC();
- }).catch(() => {
- this.$message({
- type: 'info',
- message: '操作已取消!'
- });
- });
- },
- deleteRowHC(index, rows,row) {
- this.$confirm('此操作只是移除该条数据做出计算并未保存,如要删除该条数据请点击保存!', '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- }).then(() => {
- rows.splice(index, 1);
- this.UrbanTotalHC();
- }).catch(() => {
- this.$message({
- type: 'info',
- message: '操作已取消!'
- });
- });
- },
- deleteRowJP(index, rows,row) {
- this.$confirm('此操作只是移除该条数据做出计算并未保存,如要删除该条数据请点击保存!', '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- }).then(() => {
- rows.splice(index, 1);
- this.UrbanTotalJP();
- }).catch(() => {
- this.$message({
- type: 'info',
- message: '操作已取消!'
- });
- });
- },
- //改值计算
- UrbanModify(val,bizhong){
- var total=0
- var obj = {}
- obj = this.currencies.find(function (i,indexs) {
- return i.currencyCode === bizhong
- });
- total=(Number(val.cost/this.Basicdata.groupSize)+Number(val.otherCost)+Number(val.guideCost))*val.serviceCount*val.coefficient*obj.rate;
- val.quote=this.numFilters(total)
- this.UrbanTotal();
- },
- //改值计算LC
- UrbanModifyLC(val){
- var total=0
- val.currencyName="CNY"
- total=Number(val.cost)*val.coefficient;
- val.quote=this.numFilters(total)
- this.UrbanTotalLC();
- },
- //计算总价LC
- UrbanTotalLC(){
- this.pullCartFeeTotal=0
- for(let i=0;i<this.pullCartFeeDetails.length;i++){
- this.pullCartFeeTotal+=Number(this.pullCartFeeDetails[i].quote)
- }
- },
- //改值计算HC
- UrbanModifyHC(val){
- var total=0
- val.currencyName="CNY"
- total=Number(val.cost)*val.coefficient;
- val.quote=this.numFilters(total)
- this.UrbanTotalHC();
- },
- //计算总价HC
- UrbanTotalHC(){
- this.trainFeeTotal=0
- for(let i=0;i<this.trainFeeDetails.length;i++){
- this.trainFeeTotal+=Number(this.trainFeeDetails[i].quote)
- }
- },
- //改值计算JP
- UrbanModifyJP(val){
- var total=0
- val.currencyName="CNY"
- total=Number(val.cost)*val.coefficient;
- val.quote=this.numFilters(total)
- this.UrbanTotalJP();
- },
- //计算总价JP
- UrbanTotalJP(){
- this.cityAirTicketFeeTotal=0
- for(let i=0;i<this.cityAirTicketFeeDetails.length;i++){
- this.cityAirTicketFeeTotal+=Number(this.cityAirTicketFeeDetails[i].quote)
- }
- },
- //计算总价
- UrbanTotal(){
- this.Transportationdatatotal=0
- for(let i=0;i<this.Transportationdata.length;i++){
- this.Transportationdatatotal+=Number(this.Transportationdata[i].quote)
- }
- // console.log(total);
-
- // this.TotalExpenses.TravellingExpensesJJ=this.numFilters(total)
- // this.TotalExpenses.TravellingExpensesGW=this.numFilters(total)
- // this.TotalExpenses.TravellingExpensesTD=this.numFilters(total)
- // this.calculation();
- },
- //添加一行接送机
- addTransportationdata(){
- this.Transportationdata.push({
- coefficient: 2.5,
- cost: 0,
- currencyName: "CNY",
- guideCost: 0,
- no: this.Transportationdata.length + 1,
- otherCost: 0,
- ovId: '',
- quote: 0,
- remark: "",
- serviceCount: 1
- });
- },
- //添加一行拉车
- addpullCartFeeDetails(){
- this.pullCartFeeDetails.push({
- no: this.pullCartFeeDetails.length + 1,
- cost: 0,
- coefficient: 2.50,
- currencyName: "",
- quote: 0,
- remark: ""
- });
- },
- //添加一行火车
- addtrainFeeDetails(){
- this.trainFeeDetails.push({
- no: this.trainFeeDetails.length + 1,
- cost: 0,
- coefficient: 2.50,
- currencyName: "",
- quote: 0,
- remark: ""
- });
- },
- //添加一行城市机票(
- addcityAirTicketFeeDetails(){
- this.cityAirTicketFeeDetails.push({
- no: this.cityAirTicketFeeDetails.length + 1,
- cost: 0,
- coefficient: 2.50,
- currencyName: "",
- quote: 0,
- remark: ""
- });
- },
- //城市交通费保存
- EnterExitCostDraftOVFeeSave() {
- for(let i=0;i<this.Transportationdata.length;i++){
- if(this.Transportationdata[i].ovId==""){
- this.$message.error("请查看是否除备注外的必填项均已填写!");
- return;
- }
- }
- var url = "/api/Groups/EnterExitCostDraftOVFeeSave"
- var that = this
- this.$axios({
- method: 'post',
- url: url,
- headers: {
- Authorization: 'Bearer ' + this.token
- },
- data:{
- aptFeeTotal:that.Transportationdatatotal,
- aptFeeDetails:that.Transportationdata,
- pullCartFeeTotal:that.pullCartFeeTotal,
- pullCartFeeDetails:that.pullCartFeeDetails,
- trainFeeTotal:that.trainFeeTotal,
- trainFeeDetails:that.trainFeeDetails,
- cityAirTicketFeeTotal:that.cityAirTicketFeeTotal,
- cityAirTicketFeeDetails:that.cityAirTicketFeeDetails,
- currencies:that.currencies,
- lastUpdateUserName:that.lastUpdateUserName,
- lastUpdateTime:that.lastUpdateTime,
- createUserName:that.createUserName,
- createTime:that.createTime,
- draftId:that.value,
- currUserId:that.userId,
- groupSize:that.Basicdata.groupSize,
- }
- }).then(function (res) {
- if (res.data.code == 200) {
- that.TotalExpenses.TravellingExpensesJJ=that.numFilters(that.Transportationdatatotal + that.pullCartFeeTotal + that.trainFeeTotal + that.cityAirTicketFeeTotal);
- that.TotalExpenses.TravellingExpensesGW=that.numFilters(that.Transportationdatatotal + that.pullCartFeeTotal + that.trainFeeTotal + that.cityAirTicketFeeTotal);
- that.TotalExpenses.TravellingExpensesTD=that.numFilters(that.Transportationdatatotal + that.pullCartFeeTotal + that.trainFeeTotal + that.cityAirTicketFeeTotal);
- if (that.TotalExpenses.twoItemRemark=='') {
- that.TotalExpenses.twoItemRemark=res.data.data.label;
- }else{
- if (that.TotalExpenses.twoItemRemark.split("、").length > 1) {
- that.TotalExpenses.twoItemRemark.split("、")[1] = res.data.data.label;
- that.TotalExpenses.twoItemRemark = that.TotalExpenses.twoItemRemark.split("、")[0] + '、' + that.TotalExpenses.twoItemRemark.split("、")[1];
- that.TransportationVisible = false;
- that.$message.success(res.data.msg);
- return;
- }
- if (that.TotalExpenses.twoItemRemark.includes('接送机')) {
- console.log(1);
-
- that.TotalExpenses.twoItemRemark=res.data.data.label
- }else{
- that.TotalExpenses.twoItemRemark=that.TotalExpenses.twoItemRemark+'、'+res.data.data.label;
- }
- }
- that.TransportationVisible=false;
- that.$message.success(res.data.msg);
- }else {
- that.$message.error(res.data.msg);
- }
- })
- },
- //刷新城市区间费标准(保存后刷新,数据修改重新赋值计算)
- RefreshInterval(){
- this.EnterExitCostDraftOVByGroupId();
- var that=this;
- this.$confirm('刷新可能标准会有修改与之前的金额会有不同请注意查看!且刷新只是重新计算并未保存重新计算后的值!是否继续操作?', '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- }).then(() => {
- for (let i = 0; i < that.Transportationdata.length; i++) {
- var obj = {}
- obj = that.fulecao.find(function (item, indexs) {
- return item.id === that.Transportationdata[i].ovId
- })
- this.Transportationdata[i].cost = obj.price;
- this.Transportationdata[i].otherCost = obj.otherPrice;
- this.Transportationdata[i].guideCost = obj.guidePrice;
- this.Transportationdata[i].currencyName = obj.currencyName
- this.UrbanModify(this.Transportationdata[i], this.Transportationdata[i].currencyName)
- }
- }).catch(() => {
- this.$message({
- type: 'info',
- message: '已取消操作'
- });
- });
- },
- //baoliuliangweixiaoshu
- reservetwo(value) {
- // 截取当前数据到小数点后两位
- let realVal = new Decimal(value).toFixed(2)
- return realVal
- },
- },
- filters: {
- numFilter(value) {
- // 截取当前数据到小数点后两位
- let realVal = new Decimal(value).toFixed(2)
- return realVal
- }
- },
- watch: {
- choiceOne(val) {//境内费用(其他费用)选择框
- this.calculation();
- },
- choiceThree(val) {//住宿费合计选择框
- this.calculation();
- },
- choiceFour(val) {//伙食费合计选择框
- this.calculation();
- },
- choiceFive(val) {//公杂费合计选择框
- this.calculation();
- },
- choiceSix(val) {//培训费用选择框
- this.calculation();
- },
- choiceSeven(val) {//其他费用选择框
- this.calculation();
- },
- //加参数
- sumJJC(val) {//经济舱小计选择框
- this.calculation();
- },
- sumGWC(val) {//公务舱小计选择框
- this.calculation();
- },
- sumTDC(val) {//公务舱小计选择框
- this.calculation();
- },
- 'DomesticFees.total': {
- handler(newVal, oldVal) {
- this.calculation();
- // this.jjctotal=this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.EconomyClasstotal;
- // this.gwctotal=this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.BusinessClasstotal;
- },
- },
- TotalAccommodationFee: {
- handler(newVal, oldVal) {
- this.calculation();
- // this.jjctotal=this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.EconomyClasstotal;
- // this.gwctotal=this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.BusinessClasstotal;
- },
- },
- TotalMeals: {
- handler(newVal, oldVal) {
- this.calculation();
- // this.jjctotal=this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.EconomyClasstotal;
- // this.gwctotal=this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.BusinessClasstotal;
- },
- },
- TotalMiscellaneous: {
- handler(newVal, oldVal) {
- this.calculation();
- // this.jjctotal=this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.EconomyClasstotal;
- // this.gwctotal=this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.BusinessClasstotal;
- },
- },
- trainingExpense: {
- handler(newVal, oldVal) {
- this.calculation();
- // this.jjctotal=this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.EconomyClasstotal;
- // this.gwctotal=this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.BusinessClasstotal;
- },
- },
- otherExpense: {
- handler(newVal, oldVal) {
- this.calculation();
- // this.jjctotal=this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.EconomyClasstotal;
- // this.gwctotal=this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.BusinessClasstotal;
- },
- },
- 'TotalExpenses.EconomyClasstotal': {
- handler(newVal, oldVal) {
- this.calculation();
- // this.jjctotal=this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.EconomyClasstotal;
- // this.gwctotal=this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.BusinessClasstotal;
- },
- },
- 'TotalExpenses.BusinessClasstotal': {
- handler(newVal, oldVal) {
- this.calculation();
- // this.jjctotal=this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.EconomyClasstotal;
- // this.gwctotal=this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.BusinessClasstotal;
- // console.log(this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.BusinessClasstotal)
- },
- },
- 'TotalExpenses.Firstclasstotal': {
- handler(newVal, oldVal) {
- this.calculation();
- // this.jjctotal=this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.EconomyClasstotal;
- // this.gwctotal=this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.BusinessClasstotal;
- // console.log(this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.BusinessClasstotal)
- },
- },
- //境内费用非空处理
- DomesticFees: {
- handler(newVal, oldVal) {
- if (newVal.insurance == undefined) {
- newVal.insurance = 0
- }
- if (newVal.nucleicfees == undefined) {
- newVal.nucleicfees = 0
- }
- if (newVal.serviceCharge == undefined) {
- newVal.serviceCharge = 0
- }
- if (newVal.ticketsExhibitionL == undefined) {
- newVal.ticketsExhibitionL = 0
- }
- if (newVal.vaccinefees == undefined) {
- newVal.vaccinefees = 0
- }
- if (newVal.visafees == undefined) {
- newVal.visafees = 0
- }
- },
- immediate: true,
- deep: true // 可以深度检测到 person 对象的属性值的变化
- },
- //国际旅费非空处理
- TotalExpenses: {
- handler(newVal, oldVal) {
- if (newVal.EconomyClass == undefined) {
- newVal.EconomyClass = 0
- }
- if (newVal.BusinessClass == undefined) {
- newVal.BusinessClass = 0
- }
- if (newVal.TravellingExpensesJJ == undefined) {
- newVal.TravellingExpensesJJ = 0
- }
- if (newVal.TravellingExpensesGW == undefined) {
- newVal.TravellingExpensesGW = 0
- }
- if (newVal.TravellingExpensesTD == undefined) {
- newVal.TravellingExpensesTD = 0
- }
- },
- immediate: true,
- deep: true // 可以深度检测到 person 对象的属性值的变化
- },
- //监听汇率数组是否变化
- currencys: {
- handler(val) {
- this.TotalAccommodationFee = 0
- for (let q = 0; q < this.quarterageData.length; q++) {
- for (let qc = 0; qc < this.currencys.length; qc++) {
- if (this.currencys[qc].currencyCode == this.quarterageData[q].curremcyCode||this.currencys[qc].currencyName == this.quarterageData[q].currencyName) {
- this.quarterageData[q].subTotal = (this.currencys[qc].rate * this.quarterageData[q].cost).toFixed(2)
- }
- }
- this.TotalAccommodationFee += Number(this.quarterageData[q].subTotal);
- }
- //伙食费
- this.TotalMeals = 0
- for (let b = 0; b < this.boardWagesData.length; b++) {
- for (let bc = 0; bc < this.currencys.length; bc++) {
- if (this.currencys[bc].currencyCode == this.boardWagesData[b].curremcyCode||this.currencys[bc].currencyName == this.boardWagesData[b].currencyName) {
- this.boardWagesData[b].subTotal = this.currencys[bc].rate * this.boardWagesData[b].cost
- }
- }
- this.TotalMeals += this.boardWagesData[b].subTotal
- }
- //公杂费
- this.TotalMiscellaneous = 0
- for (let m = 0; m < this.miscellaneousFeeData.length; m++) {
- for (let mc = 0; mc < this.currencys.length; mc++) {
- if (this.currencys[mc].currencyCode == this.miscellaneousFeeData[m].curremcyCode||this.currencys[mc].currencyName == this.miscellaneousFeeData[m].currencyName) {
- this.miscellaneousFeeData[m].subTotal = this.currencys[mc].rate * this.miscellaneousFeeData[m].cost
- }
- }
- this.TotalMiscellaneous += this.miscellaneousFeeData[m].subTotal
- }
- //培训费
- this.trainingExpense = 0
- for (let t = 0; t < this.trainingExpenseData.length; t++) {
- for (let tc = 0; tc < this.currencys.length; tc++) {
- if (this.currencys[tc].currencyCode == this.trainingExpenseData[t].curremcyCode||this.currencys[tc].currencyName == this.trainingExpenseData[t].currencyName) {
- this.trainingExpenseData[t].subTotal = this.currencys[tc].rate * this.trainingExpenseData[t].cost
- }
- }
- this.trainingExpense += this.trainingExpenseData[t].subTotal
- }
- //其他费用
- for (let nc = 0; nc < this.currencys.length; nc++) {
- for (let nt = 0; nt < this.othercurrencys.length; nt++) {
- if (this.currencys[nc].currencyCode == this.othercurrencys[nt].currencyCode||this.currencys[nc].currencyName == this.othercurrencys[nt].currencyName) {
- this.othercurrencys[nt].rate = this.currencys[nc].rate;
- }
- }
- }
- this.otherExpense = 0;
- for (let wm = 0; wm < this.otherData.length; wm++) {
- for (let cj = 0; cj < this.othercurrencys.length; cj++) {
- if (this.otherData[wm].currency == this.othercurrencys[cj].currencyId) {
- this.otherData[wm].rate = this.othercurrencys[cj].rate
- }
- }
- this.otherExpense += this.otherData[wm].subTotal;
- if (this.otherData[wm].rate) {
- this.otherData[wm].subTotal = this.otherData[wm].cost * this.otherData[wm].rate;
- }
- }
- },
- deep: true
- }
- },
- created() {
- this.QuerySetData();
-
- },
- mounted() {
- this.token = JSON.parse(localStorage.getItem('userinif')).token;
- this.userId = JSON.parse(localStorage.getItem('userinif')).userInfo.userId;
- this.value = JSON.parse(localStorage.getItem('sgvalue'))
- this.GetEnterExitCostDataSource();
- this.EnterExitDraftProvBelongCostDataSource();
- // this.GetNationalTravelFeeData();
- },
- destroyed() {
- window.localStorage.removeItem('sgvalue');
- },
- }
- </script>
- <style>
- .Entrydraft-all {
- background-color: #fff;
- padding: 10px;
- box-shadow: 0 0 5px #0005;
- border-radius: 10px;
- height: 100%;
- min-height: 830px;
- }
- .Entrydraft-head-li label {
- color: #606266;
- font-size: 15px;
- font-weight: 600;
- }
- .Entrydraft-head {
- display: flex;
- justify-content: space-between;
- flex-wrap: wrap;
- }
- .Entrydraft-form {
- margin-top: 10px;
- border-top: 2px solid #409EFF;
- }
- .Entrydraft-li-inif {
- display: flex;
- align-items: center;
- width: 100%;
- border-top: 1px solid #ebeef5;
- padding: 5px 0;
- }
- .Entrydraft-li-inif:last-child {
- border-bottom: 1px solid #ebeef5;
- }
- .Entrydraft-li-lable {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin: 10px 0;
- margin-top: 20px;
- }
- .Entrydraft-li-lables {
- display: flex;
- align-items: center;
- margin: 10px 0;
- margin-top: 20px;
- }
- .Entrydraft-inif-box .depipt {
- display: inline-block;
- width: 240px;
- }
- .Entrydraft-inif-box {
- margin-right: 20px;
- }
- .Entrydraft-li-inif label {
- font-size: 14px;
- color: #606266;
- }
- .Entrydraft-form .redzhu {
- font-size: 14px;
- color: red;
- }
- .sub-boxs {
- -ms-user-select: none;
- -khtml-user-select: none;
- -webkit-user-select: none;
- -moz-user-select: none;
- font-size: 12px;
- font-family: "微软雅黑";
- user-select: none;
- background-color: #FFF;
- background-image: none;
- border-radius: 4px;
- border: 1px solid #DCDFE6;
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
- color: #606266;
- display: inline-block;
- height: 28px;
- line-height: 28px;
- outline: 0;
- padding: 0 15px;
- -webkit-transition: border-color .2s cubic-bezier(.645, .045, .355, 1);
- transition: border-color .2s cubic-bezier(.645, .045, .355, 1);
- }
- .btn-Entrydraft {
- text-align: right;
- }
- .Entrydraft-all .el-checkbox__inner {
- width: 18px;
- height: 18px;
- margin-right: 10px;
- }
- .Entrydraft-all .el-checkbox__inner::after {
- height: 10px;
- left: 6px;
-
- }
- .Entrydraft-all .el-table th.el-table__cell>.cell {
- text-align: center;
- }
- .Entrydraft-all .el-button+.el-button{
- margin-left: 0px;
- }
- .Entrydraft-all .permissionsbox .el-checkbox-group{
- display: flex;
- flex-wrap: wrap;
- justify-content: space-between;
- }
- .Entrydraft-all .permissionsbox .el-checkbox{
- width: 150px;
- margin-right: 0;
- }
- .jiaotongfeiS-ul{
- margin-top: 20px;
- display: flex;
- justify-content: space-between;
- }
- .jiaotongfeiS-li{
- width: 32.5%;
- }
- .inputNumberClassS[class-unit] {
- --el-input-number-unit-offset-x: 35px;
- position: relative;
- }
- .inputNumberClassS[class-unit]::after {
- content: attr(class-unit);
- height: 100%;
- display: flex;
- align-items: center;
- position: absolute;
- top: 0;
- right: 5px;
- color: #C0C4CC;
- }
- .inputNumberClassS[class-unit] .el-input__inner {
- padding-right:25px;
- }
- .Entrydraft-all .ppnum{
- width: 40px;
- }
- .ppnum.el-input-number.is-without-controls .el-input__inner{
- padding: 0;
- margin: 0;
- text-align: center;
- }
- </style>
|