EntryDetailsdraft.vue 185 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270
  1. <template>
  2. <div v-loading.fullscreen.lock="fullscreenLoading">
  3. <div class="Entrydraft-all">
  4. <el-dialog width="1600px" title="交通费详细" :visible.sync="TransportationVisible" :close-on-click-modal="false">
  5. <div style="display: flex;justify-content: space-between;align-items: center;margin: 5px 0;">
  6. <div>接送机(合计):{{ numFilters(Transportationdatatotal) }}&nbsp;CNY</div>
  7. <div>
  8. <el-button size="mini" @click="RefreshInterval" type="primary">刷新城市区间费标准</el-button>
  9. <el-button size="mini" @click="addTransportationdata" type="primary">添加一行</el-button>
  10. </div>
  11. </div>
  12. <el-table border :data="Transportationdata">
  13. <el-table-column property="no" label="序号" width="50"></el-table-column>
  14. <el-table-column property="ovId" label="城市" width="150">
  15. <template slot-scope="scope">
  16. <el-select size="mini"
  17. @change="UrbanSelect(scope.row, $event, scope.$index)"
  18. v-model="scope.row.ovId" filterable placeholder="请选择">
  19. <el-option v-for="item in fulecao" :key="item.id" :label="item.area"
  20. :value="item.id">
  21. <span style="float: left">{{ item.area }}</span>
  22. <!-- <span style="float: right; color: #8492a6; font-size: 13px">{{item.city}}</span> -->
  23. </el-option>
  24. </el-select>
  25. <!-- <el-input disabled size="mini" v-model="scope.row.b"></el-input> -->
  26. </template>
  27. </el-table-column>
  28. <el-table-column property="cost" label="成本价(要除以团组人数)" width="180">
  29. <template slot-scope="scope">
  30. <div>{{reservetwo(scope.row.cost/Basicdata.groupSize)}}&nbsp;{{scope.row.currencyName}}&nbsp;({{scope.row.cost+'/'}}
  31. <el-input-number @blur="UrbanModify(scope.row,scope.row.currencyName)" style="width:40px" size="mini" class="inputNumberClassS ppnum"
  32. :controls="false" v-model="Basicdata.groupSize"></el-input-number>)
  33. </div>
  34. <!-- <el-input size="mini" v-model="Basicdata.groupSize"></el-input> -->
  35. </template>
  36. </el-table-column>
  37. <el-table-column property="guideCost" label="接送机导游" width="140">
  38. <template slot-scope="scope">
  39. <el-input-number disabled style="width:100%" size="mini" :class-unit="scope.row.currencyName" :precision="2" class="inputNumberClassS"
  40. :controls="false" v-model="scope.row.guideCost"></el-input-number>
  41. </template>
  42. </el-table-column>
  43. <el-table-column property="otherCost" label="其他费用(只有澳大利亚有这个数据)" width="150">
  44. <template slot-scope="scope">
  45. <el-input-number @blur="UrbanModify(scope.row,scope.row.currencyName)" style="width:100%" size="mini" :class-unit="scope.row.currencyName" :precision="2" class="inputNumberClassS"
  46. :controls="false" v-model="scope.row.otherCost"></el-input-number>
  47. </template>
  48. </el-table-column>
  49. <el-table-column property="serviceCount" label="服务次数(默认为1)" width="150">
  50. <template slot-scope="scope">
  51. <el-input-number @blur="UrbanModify(scope.row,scope.row.currencyName)" style="width:100%" size="mini" :precision="2" class="inputNumberClassS"
  52. :controls="false" v-model="scope.row.serviceCount"></el-input-number>
  53. </template>
  54. </el-table-column>
  55. <el-table-column property="coefficient" label="系数(默认2.5)" width="110">
  56. <template slot-scope="scope">
  57. <el-input-number @blur="UrbanModify(scope.row,scope.row.currencyName)" style="width:100%" size="mini" :precision="2" class="inputNumberClassS"
  58. :controls="false" v-model="scope.row.coefficient"></el-input-number>
  59. </template>
  60. </el-table-column>
  61. <el-table-column property="quote" label="报价" width="200">
  62. <template slot-scope="scope">
  63. <el-input-number disabled style="width:100%" size="mini" class-unit="CNY" :precision="2" class="inputNumberClassS"
  64. :controls="false" v-model="scope.row.quote"></el-input-number>
  65. </template>
  66. </el-table-column>
  67. <el-table-column property="i" label="备注">
  68. <template slot-scope="scope">
  69. <el-input size="mini" v-model="scope.row.remark"></el-input>
  70. </template>
  71. </el-table-column>
  72. <el-table-column label="操作" width="100">
  73. <template slot-scope="scope">
  74. <el-button size="mini" @click.native.prevent="deleteRowJSJ(scope.$index, Transportationdata,scope.row)" type="danger">移除</el-button>
  75. </template>
  76. </el-table-column>
  77. </el-table>
  78. <div class="jiaotongfeiS-ul">
  79. <div class="jiaotongfeiS-li">
  80. <div style="display: flex;justify-content: space-between;align-items: center;margin: 5px 0;">
  81. <div>拉车(合计):{{ numFilters(pullCartFeeTotal) }}&nbsp;CNY</div>
  82. <el-button @click="addpullCartFeeDetails" size="mini" type="primary">添加一行</el-button>
  83. </div>
  84. <!-- <div>拉车(合计)</div> -->
  85. <el-table border :data="pullCartFeeDetails">
  86. <el-table-column property="cost" label="成本价" width="150">
  87. <template slot-scope="scope">
  88. <el-input-number @blur="UrbanModifyLC(scope.row)" style="width:100%" size="mini" :class-unit="scope.row.currencyName" :precision="2" class="inputNumberClassS"
  89. :controls="false" v-model="scope.row.cost"></el-input-number>
  90. </template>
  91. </el-table-column>
  92. <el-table-column property="coefficient" label="系数" width="150">
  93. <template slot-scope="scope">
  94. <el-input-number @blur="UrbanModifyLC(scope.row)" style="width:100%" size="mini" :precision="2"
  95. :controls="false" v-model="scope.row.coefficient"></el-input-number>
  96. </template>
  97. </el-table-column>
  98. <el-table-column property="remark" label="备注">
  99. <template slot-scope="scope">
  100. <el-input size="mini" v-model="scope.row.remark"></el-input>
  101. </template>
  102. </el-table-column>
  103. <el-table-column label="操作" width="100">
  104. <template slot-scope="scope">
  105. <el-button size="mini"
  106. @click.native.prevent="deleteRowLC(scope.$index, pullCartFeeDetails, scope.row)"
  107. type="danger">移除</el-button>
  108. </template>
  109. </el-table-column>
  110. </el-table>
  111. </div>
  112. <div class="jiaotongfeiS-li">
  113. <div style="display: flex;justify-content: space-between;align-items: center;margin: 5px 0;">
  114. <div>火车(合计):{{ numFilters(trainFeeTotal) }}&nbsp;CNY</div>
  115. <el-button @click="addtrainFeeDetails" size="mini" type="primary">添加一行</el-button>
  116. </div>
  117. <el-table border :data="trainFeeDetails">
  118. <el-table-column property="cost" label="成本价" width="150">
  119. <template slot-scope="scope">
  120. <el-input-number @blur="UrbanModifyHC(scope.row)" style="width:100%" size="mini" :class-unit="scope.row.currencyName" :precision="2" class="inputNumberClassS"
  121. :controls="false" v-model="scope.row.cost"></el-input-number>
  122. </template>
  123. </el-table-column>
  124. <el-table-column property="coefficient" label="系数" width="150">
  125. <template slot-scope="scope">
  126. <el-input-number @blur="UrbanModifyHC(scope.row)" style="width:100%" size="mini" :precision="2"
  127. :controls="false" v-model="scope.row.coefficient"></el-input-number>
  128. </template>
  129. </el-table-column>
  130. <el-table-column property="remark" label="备注">
  131. <template slot-scope="scope">
  132. <el-input size="mini" v-model="scope.row.remark"></el-input>
  133. </template>
  134. </el-table-column>
  135. <el-table-column label="操作" width="100">
  136. <template slot-scope="scope">
  137. <el-button size="mini"
  138. @click.native.prevent="deleteRowHC(scope.$index, trainFeeDetails, scope.row)"
  139. type="danger">移除</el-button>
  140. </template>
  141. </el-table-column>
  142. </el-table>
  143. </div>
  144. <div class="jiaotongfeiS-li">
  145. <div style="display: flex;justify-content: space-between;align-items: center;margin: 5px 0;">
  146. <div>城市机票(合计):{{ numFilters(cityAirTicketFeeTotal) }}&nbsp;CNY</div>
  147. <el-button @click="addcityAirTicketFeeDetails" size="mini" type="primary">添加一行</el-button>
  148. </div>
  149. <el-table border :data="cityAirTicketFeeDetails">
  150. <el-table-column property="cost" label="成本价" width="150">
  151. <template slot-scope="scope">
  152. <el-input-number @blur="UrbanModifyJP(scope.row)" style="width:100%" size="mini" :class-unit="scope.row.currencyName" :precision="2" class="inputNumberClassS"
  153. :controls="false" v-model="scope.row.cost"></el-input-number>
  154. </template>
  155. </el-table-column>
  156. <el-table-column property="coefficient" label="系数" width="150">
  157. <template slot-scope="scope">
  158. <el-input-number @blur="UrbanModifyJP(scope.row)" style="width:100%" size="mini" :precision="2"
  159. :controls="false" v-model="scope.row.coefficient"></el-input-number>
  160. </template>
  161. </el-table-column>
  162. <el-table-column property="remark" label="备注">
  163. <template slot-scope="scope">
  164. <el-input size="mini" v-model="scope.row.remark"></el-input>
  165. </template>
  166. </el-table-column>
  167. <el-table-column label="操作" width="100">
  168. <template slot-scope="scope">
  169. <el-button size="mini"
  170. @click.native.prevent="deleteRowJP(scope.$index, cityAirTicketFeeDetails, scope.row)"
  171. type="danger">移除</el-button>
  172. </template>
  173. </el-table-column>
  174. </el-table>
  175. </div>
  176. </div>
  177. <div style="margin-top: 20px;font-weight: 600;">
  178. 城市交通费合计:{{ numFilters(Transportationdatatotal + pullCartFeeTotal + trainFeeTotal + cityAirTicketFeeTotal) }}&nbsp;CNY
  179. </div>
  180. <div style="text-align: right;margin-top: 20px;">
  181. <el-button @click="TransportationVisible=false">取消</el-button>
  182. <el-button @click="EnterExitCostDraftOVFeeSave" type="primary">保 存</el-button>
  183. </div>
  184. </el-dialog>
  185. <el-dialog v width="400px" title="设置查看权限" class="permissionsbox" :visible.sync="setpermissions" :close-on-click-modal="false">
  186. <el-checkbox-group v-model="viewUsers" @change="handleCheckAllChange">
  187. <el-checkbox v-for="item in viewUsersarr" :label="item.id" :key="item.id">{{item.name}}</el-checkbox>
  188. </el-checkbox-group>
  189. <div style="text-align: right;margin-top: 15px;">
  190. <el-button size="mini" @click="EnterExitCostSetViewPermissiion" type="primary">分配</el-button>
  191. <el-button size="mini" @click="setpermissions=false">取消</el-button>
  192. </div>
  193. </el-dialog>
  194. <div class="Entrydraft-head">
  195. <div class="Entrydraft-head-li" style="width:370px">
  196. <label>草稿名称:</label>
  197. <el-autocomplete
  198. style="width:200px"
  199. class="inline-input"
  200. v-model="valuename"
  201. :fetch-suggestions="querySearch"
  202. placeholder="请输入内容"
  203. @select="handleSelect"
  204. ></el-autocomplete>
  205. <el-button @click="cleanout" type="primary">新建草稿</el-button>
  206. <!-- <el-select style="width:250px" @change="chengvalue()" v-model="value" filterable placeholder="请选择">
  207. <el-option v-for="item in options" :key="item.id" :label="item.groupName" :value="item.id">
  208. </el-option>
  209. </el-select> -->
  210. </div>
  211. <div v-if="isSave" class="Entrydraft-head-li" style="width:220px">
  212. <label>城市归属:</label>
  213. <el-select style="width:150px" @change="provinceIdchange" v-model="provinceId" filterable placeholder="请选择">
  214. <el-option v-for="item in provinceIdarr" :key="item.id" :label="item.name" :value="item.id">
  215. </el-option>
  216. </el-select>
  217. </div>
  218. <div v-if="isSave" class="Entrydraft-head-li" style="width:361px">
  219. <label>团组:</label>
  220. <el-select style="width:250px" v-model="diid" filterable placeholder="请选择">
  221. <el-option v-for="item in groupNameDatas" :key="item.id" :label="item.groupName" :value="item.id">
  222. <span v-if="item.isNull=='false'" style="color:#409EFF">{{ item.groupName }}</span>
  223. <span v-else style="color:gray">{{ item.groupName }}</span>
  224. </el-option>
  225. </el-select>
  226. <el-button @click="EnterExitCostDraftImportData" type="primary">同步</el-button>
  227. </div>
  228. <div v-if="isSave" class="Entrydraft-head-li" style="width:530px">
  229. <!-- <el-button type="primary">计算费用</el-button> -->
  230. <!-- <el-button @click="NationalTravelFeeImportReceivables" type="primary">导出到收款账单</el-button> -->
  231. <el-button @click="storage()" type="primary">保存</el-button>
  232. <el-select style="width:202px" v-model="listvalue" placeholder="请选择">
  233. <el-option v-for="item in listvalueoptions" :key="item.id" :label="item.name" :value="item.id">
  234. </el-option>
  235. </el-select>
  236. <el-button @click="eptschedule(1)" type="primary">导出所选明细表</el-button>
  237. <el-button v-if="isAssignPerm" @click="setpermissionsbtn" type="primary">分配权限</el-button>
  238. <!-- <el-select style="width:202px" v-model="tablevalue" placeholder="请选择">
  239. <el-option v-for="item in tablevalueoptions" :key="item.id" :label="item.name" :value="item.id">
  240. </el-option>
  241. </el-select>
  242. <el-button @click="eptschedule(2)" type="primary">导出下拉所选表格</el-button> -->
  243. <!-- <el-button @click="eptschedule(3)" type="primary">团组成员名单</el-button> -->
  244. </div>
  245. </div>
  246. <div class="Entrydraft-form">
  247. <div class="Entrydraft-form-li">
  248. <div class="Entrydraft-li-lables">
  249. <el-checkbox v-model="choiceOne"></el-checkbox>
  250. <div class="li-lable">一、境内费用(其他费用)</div>
  251. <div class="li-lable">
  252. <span class="redzhu">(注:填好数值鼠标点击其他区域计算合计)</span>
  253. <label>合计:</label>
  254. <div class="sub-boxs">
  255. {{ DomesticFees.total=(DomesticFees.visafees + DomesticFees.vaccinefees +
  256. DomesticFees.nucleicfees + DomesticFees.serviceCharge + DomesticFees.insurance +
  257. DomesticFees.ticketsExhibitionL) | numFilter }}
  258. </div>
  259. <span>元/人</span>
  260. </div>
  261. </div>
  262. <div class="Entrydraft-li-inif">
  263. <div class="Entrydraft-inif-box">
  264. <label>签证费:</label>
  265. <el-input-number size="mini" :controls="false" :precision="2"
  266. v-model="DomesticFees.visafees"></el-input-number>
  267. <span>元/人</span>
  268. </div>
  269. <div class="Entrydraft-inif-box">
  270. <label>签证费用描述:</label>
  271. <el-input style="width:900px" size="mini"
  272. v-model="DomesticFees.visafeesDescription"></el-input>
  273. <span class="redzhu">{{ visabeizhu }}</span>
  274. </div>
  275. <span v-if="!getvisafeebtn" class="redzhu">请先录入出入境费用明细-草稿!</span>
  276. <el-button v-if="getvisafeebtn&&isSave" @click="Getnewvisafee" type="primary"
  277. size="mini">获取最新签证费用</el-button>
  278. </div>
  279. <div class="Entrydraft-li-inif">
  280. <div class="Entrydraft-inif-box">
  281. <label>疫苗费:</label>
  282. <el-input-number size="mini" :controls="false" :precision="2"
  283. v-model="DomesticFees.vaccinefees"></el-input-number>
  284. <span>元/人</span>
  285. </div>
  286. <div class="Entrydraft-inif-box">
  287. <label>核酸检测费:</label>
  288. <el-input-number size="mini" :controls="false" :precision="2"
  289. v-model="DomesticFees.nucleicfees"></el-input-number>
  290. <span>元/人;</span>
  291. </div>
  292. <div class="Entrydraft-inif-box">
  293. <label> 服务费:</label>
  294. <el-input-number size="mini" :controls="false" :precision="2"
  295. v-model="DomesticFees.serviceCharge"></el-input-number>
  296. <span>元/人;</span>
  297. </div>
  298. </div>
  299. <div class="Entrydraft-li-inif">
  300. <div class="Entrydraft-inif-box">
  301. <label>保险费:</label>
  302. <el-input-number size="mini" :controls="false" :precision="2"
  303. v-model="DomesticFees.insurance"></el-input-number>
  304. <span>元/人</span>
  305. </div>
  306. <div class="Entrydraft-inif-box">
  307. <label>参展门票:</label>
  308. <el-input-number size="mini" :controls="false" :precision="2"
  309. v-model="DomesticFees.ticketsExhibitionL"></el-input-number>
  310. <span>元/人;</span>
  311. </div>
  312. <div class="Entrydraft-inif-box">
  313. <label>备注:</label>
  314. <el-input style="width:900px" size="mini"
  315. v-model="DomesticFees.firstItemRemark"></el-input>
  316. </div>
  317. </div>
  318. </div>
  319. <div class="Entrydraft-form-li">
  320. <div class="Entrydraft-li-lables">
  321. <!-- <el-checkbox v-model="choiceTwo"></el-checkbox> -->
  322. <div class="li-lable">二、国际旅费合计:</div>
  323. <div style="display: flex;">
  324. <div class="li-lable">
  325. <el-checkbox style="margin-right: -10px;" v-model="sumJJC"></el-checkbox>
  326. <label>(经济舱)</label>
  327. <div class="sub-boxs">
  328. {{ TotalExpenses.EconomyClasstotal=(TotalExpenses.EconomyClass +
  329. TotalExpenses.TravellingExpensesJJ) | numFilter }}
  330. </div>
  331. <span>元/人</span>
  332. </div>
  333. &nbsp;&nbsp;&nbsp;&nbsp;
  334. <div class="li-lable">
  335. <el-checkbox style="margin-right: -10px;" v-model="sumGWC"></el-checkbox>
  336. <label>(公务舱)</label>
  337. <div class="sub-boxs">
  338. {{ TotalExpenses.BusinessClasstotal=(TotalExpenses.BusinessClass +
  339. TotalExpenses.TravellingExpensesGW) | numFilter }}
  340. </div>
  341. <span>元/人</span>
  342. </div>
  343. &nbsp;&nbsp;&nbsp;&nbsp;
  344. <div class="li-lable">
  345. <el-checkbox style="margin-right: -10px;" v-model="sumTDC"></el-checkbox>
  346. <label>(头等舱)</label>
  347. <div class="sub-boxs">
  348. {{ TotalExpenses.Firstclasstotal=(TotalExpenses.Firstclass +
  349. TotalExpenses.TravellingExpensesTD) | numFilter }}
  350. </div>
  351. <span>元/人</span>
  352. </div>
  353. </div>
  354. </div>
  355. <div class="Entrydraft-li-inif">
  356. <label>国际机票:&nbsp; &nbsp; &nbsp; </label>
  357. <div class="Entrydraft-inif-box">
  358. <label>(经济舱):</label>
  359. <el-input-number size="mini" :controls="false" :precision="2"
  360. v-model="TotalExpenses.EconomyClass"></el-input-number>
  361. <span>元/人</span>
  362. </div>
  363. <div class="Entrydraft-inif-box">
  364. <label>(公务舱):</label>
  365. <el-input-number size="mini" :controls="false" :precision="2"
  366. v-model="TotalExpenses.BusinessClass"></el-input-number>
  367. <span>元/人;</span>
  368. </div>
  369. <div class="Entrydraft-inif-box">
  370. <label>(头等舱):</label>
  371. <el-input-number size="mini" :controls="false" :precision="2"
  372. v-model="TotalExpenses.Firstclass"></el-input-number>
  373. <span>元/人;</span>
  374. </div>
  375. <span v-if="JSON.stringify(TicketJudgment) == '{}'" class="redzhu">(机票数据未录入)</span>
  376. <div v-else>
  377. <span
  378. v-if="TicketJudgment.jjcCurrentRate != TotalExpenses.EconomyClass || TicketJudgment.gwcCurrentRate != TotalExpenses.BusinessClass"
  379. class="redzhu">{{ TicketJudgment.remark }}</span>&nbsp;&nbsp;&nbsp;&nbsp;
  380. <el-button
  381. v-if="TicketJudgment.jjcCurrentRate != TotalExpenses.EconomyClass || TicketJudgment.gwcCurrentRate != TotalExpenses.BusinessClass"
  382. type="primary" @click="Fillin" size="mini">填 入</el-button>
  383. </div>
  384. </div>
  385. <div class="Entrydraft-li-inif">
  386. <!-- <div class="Entrydraft-inif-box">
  387. <label>城市区间交通费:</label>
  388. <el-input-number size="mini" :controls="false" :precision="2"
  389. v-model="TotalExpenses.TravellingExpenses"></el-input-number>
  390. <span>元/人;</span>
  391. </div> -->
  392. <label>城市区间交通费:&nbsp; &nbsp; &nbsp; </label>
  393. <div class="Entrydraft-inif-box">
  394. <label>(经济舱):</label>
  395. <el-input-number size="mini" :controls="false" :precision="2"
  396. v-model="TotalExpenses.TravellingExpensesJJ"></el-input-number>
  397. <span>元/人;</span>
  398. </div>
  399. <div class="Entrydraft-inif-box">
  400. <label>(公务舱):</label>
  401. <el-input-number size="mini" :controls="false" :precision="2"
  402. v-model="TotalExpenses.TravellingExpensesGW"></el-input-number>
  403. <span>元/人;</span>
  404. </div>
  405. <div class="Entrydraft-inif-box">
  406. <label>(头等舱):</label>
  407. <el-input-number size="mini" :controls="false" :precision="2"
  408. v-model="TotalExpenses.TravellingExpensesTD"></el-input-number>
  409. <span>元/人;</span>
  410. </div>
  411. <div v-if="isView" class="Entrydraft-inif-box">
  412. <el-button @click="openTransportation" type="primary" size="mini">交通费明细</el-button>
  413. </div>
  414. </div>
  415. <div class="Entrydraft-li-inif">
  416. <div class="Entry-inif-box">
  417. <label>备注:</label>
  418. <el-input style="width:1000px" size="mini" v-model="TotalExpenses.twoItemRemark"></el-input>
  419. </div>
  420. </div>
  421. <div class="Entrydraft-li-inif">
  422. <div v-for="(item, index) in currencys" :key="index" class="Entrydraft-inif-box">
  423. <label>{{ item.currencyName }}汇率:</label>
  424. <el-input-number size="mini" :controls="false" :precision="4"
  425. v-model="item.rate"></el-input-number>
  426. </div>
  427. <span v-if="!cubtn" style="color:red;">* 若客户有意见,需要与财务商量后进行适当调整 </span>
  428. <el-popover
  429. placement="top"
  430. width="402"
  431. trigger="hover">
  432. <el-table border :data="currencyss">
  433. <el-table-column width="100" property="currName" label="币种"></el-table-column>
  434. <el-table-column width="100" property="rate" label="汇率"></el-table-column>
  435. <el-table-column width="200" property="lastUpdateDt" label="更新时间"></el-table-column>
  436. </el-table>
  437. <span v-show="cubtn" slot="reference" class="redzhu">{{CurrencysRemark}}</span>
  438. </el-popover>
  439. &nbsp;&nbsp;&nbsp;&nbsp;
  440. <el-button v-if="cubtn" @click="adoptRealtime" type="primary" size="mini">采用最新汇率</el-button>
  441. </div>
  442. </div>
  443. <div class="Entrydraft-form-li">
  444. <div class="Entrydraft-li-lable">
  445. <div style="display: flex;align-items: center;">
  446. <el-checkbox v-model="choiceThree"></el-checkbox>
  447. <div class="li-lable">三、住宿费:</div>
  448. <div style="display: flex;">
  449. <div class="li-lable">
  450. <label>合计:</label>
  451. <div class="sub-boxs">{{ TotalAccommodationFee | numFilter }}</div>
  452. <span>元/人</span>
  453. </div>
  454. </div>
  455. </div>
  456. <div class="btn-Entrydraft">
  457. <el-button type="primary" @click="addlist('住宿费')" size="mini">新 增</el-button>
  458. </div>
  459. </div>
  460. <div class="Entrydraft-li-inif">
  461. <el-table :data="quarterageData" border style="width: 100%">
  462. <el-table-column prop="days" label="第几晚" width="180">
  463. <template slot-scope="scope">
  464. <el-input-number size="mini" :controls="false"
  465. v-model="scope.row.days"></el-input-number>
  466. </template>
  467. </el-table-column>
  468. <el-table-column style="position: relative;" prop="city" label="城 市" width="180">
  469. <template slot-scope="scope">
  470. <el-select size="mini" @change="changeSelect(scope.row, $event, scope)"
  471. v-model="scope.row.nationalTravelFeeId" filterable placeholder="请选择">
  472. <el-option v-for="item in placeinif" :key="item.id" :label="item.cityname"
  473. :value="item.id">
  474. <span style="float: left">{{ item.cityname }}</span>
  475. <!-- <span style="float: right; color: #8492a6; font-size: 13px">{{item.city}}</span> -->
  476. </el-option>
  477. </el-select>
  478. </template>
  479. </el-table-column>
  480. <el-table-column prop="cost" label=" 费用标准" width="180">
  481. <template slot-scope="scope">
  482. <el-input-number @input="zhusuinput(scope.row)" size="mini" :precision="2"
  483. :controls="false" v-model="scope.row.cost"></el-input-number>
  484. </template>
  485. </el-table-column>
  486. <el-table-column prop="currencyName" label=" 币 种" width="180">
  487. <template slot-scope="scope">
  488. <el-input disabled size="mini" v-model="scope.row.currencyName"></el-input>
  489. </template>
  490. </el-table-column>
  491. <el-table-column prop="subTotal" label="费用小计" width="180">
  492. <template slot-scope="scope">
  493. <div class="sub-boxs">{{ scope.row.subTotal | numFilter }}</div>&nbsp;CNY
  494. </template>
  495. </el-table-column>
  496. <el-table-column prop="address" label="操 作">
  497. <template slot-scope="scope">
  498. <el-button v-if="isSave" style="color: #fff;" size="mini" type="danger"
  499. @click="deleteRow(scope.$index, scope.row, quarterageData, 1)">删除</el-button>
  500. </template>
  501. </el-table-column>
  502. </el-table>
  503. </div>
  504. </div>
  505. <div class="Entrydraft-form-li">
  506. <div class="Entrydraft-li-lable">
  507. <div style="display: flex;align-items: center;">
  508. <el-checkbox v-model="choiceFour"></el-checkbox>
  509. <div class="li-lable">四、伙食费:</div>
  510. <div style="display: flex;">
  511. <div class="li-lable">
  512. <label>合计:</label>
  513. <div class="sub-boxs">{{ TotalMeals | numFilter }}</div>
  514. <span>元/人</span>
  515. </div>
  516. </div>
  517. </div>
  518. <div class="btn-Entrydraft">
  519. <el-button type="primary" @click="addlist('伙食费')" size="mini">新 增</el-button>
  520. </div>
  521. </div>
  522. <div class="Entrydraft-li-inif">
  523. <el-table :data="boardWagesData" border style="width: 100%">
  524. <el-table-column prop="days" label="第几晚" width="180">
  525. <template slot-scope="scope">
  526. <el-input-number size="mini" :controls="false"
  527. v-model="scope.row.days"></el-input-number>
  528. </template>
  529. </el-table-column>
  530. <el-table-column style="position: relative;" prop="city" label="城 市" width="180">
  531. <!-- <template slot-scope="scope">
  532. <el-input size="mini" v-model="scope.row.city"></el-input>
  533. </template> -->
  534. <template slot-scope="scope">
  535. <el-select size="mini" @change="mealschangeSelect(scope.row, $event, scope.$index)"
  536. v-model="scope.row.nationalTravelFeeId" filterable placeholder="请选择">
  537. <el-option v-for="item in placeinif" :key="item.id" :label="item.cityname"
  538. :value="item.id">
  539. <span style="float: left">{{ item.cityname }}</span>
  540. <!-- <span style="float: right; color: #8492a6; font-size: 13px">{{item.city}}</span> -->
  541. </el-option>
  542. </el-select>
  543. </template>
  544. </el-table-column>
  545. <el-table-column prop="cost" label=" 费用标准" width="180">
  546. <template slot-scope="scope">
  547. <el-input-number size="mini" @input="mealsinput(scope.row)" :precision="2"
  548. :controls="false" v-model="scope.row.cost"></el-input-number>
  549. </template>
  550. </el-table-column>
  551. <el-table-column prop="currencyName" label=" 币 种" width="180">
  552. <template slot-scope="scope">
  553. <el-input disabled size="mini" v-model="scope.row.currencyName"></el-input>
  554. </template>
  555. </el-table-column>
  556. <el-table-column prop="subTotal" label="费用小计" width="180">
  557. <template slot-scope="scope">
  558. <div class="sub-boxs">{{ scope.row.subTotal | numFilter }}</div>&nbsp;CNY
  559. </template>
  560. </el-table-column>
  561. <el-table-column prop="address" label="操 作">
  562. <template slot-scope="scope">
  563. <el-button v-if="isSave" style="color: #fff;" size="mini" type="danger"
  564. @click="deleteRow(scope.$index, scope.row, boardWagesData, 2)">删除</el-button>
  565. </template>
  566. </el-table-column>
  567. </el-table>
  568. </div>
  569. </div>
  570. <div class="Entrydraft-form-li">
  571. <div class="Entrydraft-li-lable">
  572. <div style="display: flex;align-items: center;">
  573. <el-checkbox v-model="choiceFive"></el-checkbox>
  574. <div class="li-lable">五、公杂费:</div>
  575. <div style="display: flex;">
  576. <div class="li-lable">
  577. <label>合计:</label>
  578. <div class="sub-boxs">{{ TotalMiscellaneous | numFilter }}</div>
  579. <span>元/人</span>
  580. </div>
  581. </div>
  582. </div>
  583. <div class="btn-Entrydraft">
  584. <el-button type="primary" @click="addlist('公杂费')" size="mini">新 增</el-button>
  585. </div>
  586. </div>
  587. <div class="Entrydraft-li-inif">
  588. <el-table :data="miscellaneousFeeData" border style="width: 100%">
  589. <el-table-column prop="days" label="第几晚" width="180">
  590. <template slot-scope="scope">
  591. <el-input-number size="mini" :controls="false"
  592. v-model="scope.row.days"></el-input-number>
  593. </template>
  594. </el-table-column>
  595. <el-table-column style="position: relative;" prop="city" label="城 市" width="180">
  596. <!-- <template slot-scope="scope">
  597. <el-input size="mini" v-model="scope.row.city"></el-input>
  598. </template> -->
  599. <template slot-scope="scope">
  600. <el-select @change="MiscellaneouschangeSelect(scope.row, $event)" size="mini"
  601. v-model="scope.row.nationalTravelFeeId" filterable placeholder="请选择">
  602. <el-option v-for="item in placeinif" :key="item.id" :label="item.cityname"
  603. :value="item.id">
  604. <span style="float: left">{{ item.cityname }}</span>
  605. <!-- <span style="float: right; color: #8492a6; font-size: 13px">{{item.city}}</span> -->
  606. </el-option>
  607. </el-select>
  608. </template>
  609. </el-table-column>
  610. <el-table-column prop="cost" label=" 费用标准" width="180">
  611. <template slot-scope="scope">
  612. <el-input-number @input="Miscellaneousinput(scope.row)" size="mini" :precision="2"
  613. :controls="false" v-model="scope.row.cost"></el-input-number>
  614. </template>
  615. </el-table-column>
  616. <el-table-column prop="currencyName" label=" 币 种" width="180">
  617. <template slot-scope="scope">
  618. <el-input disabled size="mini" v-model="scope.row.currencyName"></el-input>
  619. </template>
  620. </el-table-column>
  621. <el-table-column prop="subTotal" label="费用小计" width="180">
  622. <template slot-scope="scope">
  623. <div class="sub-boxs">{{ scope.row.subTotal | numFilter }}</div>&nbsp;CNY
  624. </template>
  625. </el-table-column>
  626. <el-table-column prop="address" label="操 作">
  627. <template slot-scope="scope">
  628. <el-button v-if="isSave" style="color: #fff;" size="mini" type="danger"
  629. @click="deleteRow(scope.$index, scope.row, miscellaneousFeeData, 3)">删除</el-button>
  630. </template>
  631. </el-table-column>
  632. </el-table>
  633. </div>
  634. </div>
  635. <div class="Entrydraft-form-li">
  636. <div class="Entrydraft-li-lable">
  637. <div style="display: flex;align-items: center;">
  638. <el-checkbox v-model="choiceSix"></el-checkbox>
  639. <div class="li-lable">六、培训费:</div>
  640. <div style="display: flex;">
  641. <div class="li-lable">
  642. <label>合计:</label>
  643. <div class="sub-boxs">{{ trainingExpense | numFilter }}</div>
  644. <span>元/人</span>
  645. </div>
  646. </div>
  647. </div>
  648. <div class="btn-Entrydraft">
  649. <el-button type="primary" @click="addlist('培训费')" size="mini">新 增</el-button>
  650. </div>
  651. </div>
  652. <div class="Entrydraft-li-inif">
  653. <el-table :data="trainingExpenseData" border style="width: 100%">
  654. <el-table-column prop="days" label="第几晚" width="180">
  655. <template slot-scope="scope">
  656. <el-input-number size="mini" :controls="false"
  657. v-model="scope.row.days"></el-input-number>
  658. </template>
  659. </el-table-column>
  660. <el-table-column style="position: relative;" prop="city" label="城 市" width="180">
  661. <!-- <template slot-scope="scope">
  662. <el-input size="mini" v-model="scope.row.city"></el-input>
  663. </template> -->
  664. <template slot-scope="scope">
  665. <el-select @change="TrainingExpenseDataSelect(scope.row, $event)" size="mini"
  666. v-model="scope.row.nationalTravelFeeId" filterable placeholder="请选择">
  667. <el-option v-for="item in placeinif" :key="item.id" :label="item.cityname"
  668. :value="item.id">
  669. <span style="float: left">{{ item.cityname }}</span>
  670. <!-- <span style="float: right; color: #8492a6; font-size: 13px">{{item.city}}</span> -->
  671. </el-option>
  672. </el-select>
  673. </template>
  674. </el-table-column>
  675. <el-table-column prop="cost" label=" 费用标准" width="180">
  676. <template slot-scope="scope">
  677. <el-input-number @input="Traininginput(scope.row)" size="mini" :precision="2"
  678. :controls="false" v-model="scope.row.cost"></el-input-number>
  679. </template>
  680. </el-table-column>
  681. <el-table-column prop="currencyName" label=" 币 种" width="180">
  682. <template slot-scope="scope">
  683. <el-input disabled size="mini" v-model="scope.row.currencyName"></el-input>
  684. </template>
  685. </el-table-column>
  686. <el-table-column prop="subTotal" label="费用小计" width="180">
  687. <template slot-scope="scope">
  688. <div class="sub-boxs">{{ scope.row.subTotal | numFilter }}</div>&nbsp;CNY
  689. </template>
  690. </el-table-column>
  691. <el-table-column prop="address" label="操 作">
  692. <template slot-scope="scope">
  693. <el-button v-if="isSave" style="color: #fff;" size="mini" type="danger"
  694. @click="deleteRow(scope.$index, scope.row, trainingExpenseData, 4)">删除</el-button>
  695. </template>
  696. </el-table-column>
  697. </el-table>
  698. </div>
  699. </div>
  700. <div class="Entrydraft-form-li">
  701. <div class="Entrydraft-li-lable">
  702. <div style="display: flex;align-items: center;">
  703. <el-checkbox v-model="choiceSeven"></el-checkbox>
  704. <div class="li-lable">七、其他:</div>
  705. <div style="display: flex;">
  706. <div class="li-lable">
  707. <label>合计:</label>
  708. <div class="sub-boxs">{{ otherExpense | numFilter }}</div>
  709. <span>元/人</span>
  710. </div>
  711. </div>
  712. <div style="color:red">
  713. &nbsp;注:特殊情况才在这里填写,如:要计算车导费、备用金费用等
  714. </div>
  715. </div>
  716. <div class="btn-Entrydraft">
  717. <el-button type="primary" @click="addlist('其他')" size="mini">新 增</el-button>
  718. </div>
  719. </div>
  720. <div class="Entrydraft-li-inif">
  721. <el-table :data="otherData" border style="width: 100%">
  722. <el-table-column prop="index" label="第几项" width="180">
  723. <template slot-scope="scope">
  724. <el-input-number size="mini" :controls="false"
  725. v-model="scope.row.index"></el-input-number>
  726. </template>
  727. </el-table-column>
  728. <el-table-column style="position: relative;" prop="setDataId" label="费用类型" width="180">
  729. <!-- <template slot-scope="scope">
  730. <el-input size="mini" v-model="scope.row.city"></el-input>
  731. </template> -->
  732. <template slot-scope="scope">
  733. <el-select size="mini" v-model="scope.row.setDataId" filterable placeholder="请选择">
  734. <el-option v-for="item in otherfylx" :key="item.id" :label="item.name"
  735. :value="item.id">
  736. <span style="float: left">{{ item.name }}</span>
  737. <!-- <span style="float: right; color: #8492a6; font-size: 13px">{{item.city}}</span> -->
  738. </el-option>
  739. </el-select>
  740. </template>
  741. </el-table-column>
  742. <el-table-column prop="cost" label=" 费用标准" width="180">
  743. <template slot-scope="scope">
  744. <el-input-number @input="otherinput(scope.row)" size="mini" :precision="2"
  745. :controls="false" v-model="scope.row.cost"></el-input-number>
  746. </template>
  747. </el-table-column>
  748. <el-table-column prop="currencyName" label=" 币 种" width="180">
  749. <template slot-scope="scope">
  750. <el-select @change="othercurrencychange(scope.row.currency, scope.row)" size="mini"
  751. v-model="scope.row.currency" filterable placeholder="请选择">
  752. <el-option v-for="item in othercurrencys" :key="item.currencyId"
  753. :label="item.currencyCode" :value="item.currencyId">
  754. <span style="float: left">{{ item.currencyCode + ' 汇率:' + item.rate
  755. }}</span>
  756. </el-option>
  757. </el-select>
  758. <!-- <el-input size="mini" v-model="scope.row.currencyName"></el-input> -->
  759. </template>
  760. </el-table-column>
  761. <el-table-column prop="subTotal" label="费用小计" width="180">
  762. <template slot-scope="scope">
  763. <div class="sub-boxs">{{ scope.row.subTotal | numFilter }}</div>&nbsp;CNY
  764. </template>
  765. </el-table-column>
  766. <el-table-column prop="remark" label="备注" width="450">
  767. <template slot-scope="scope">
  768. <el-input size="mini" v-model="scope.row.remark"></el-input>
  769. </template>
  770. </el-table-column>
  771. <el-table-column prop="address" label="操 作">
  772. <template slot-scope="scope">
  773. <el-button v-if="isSave" style="color: #fff;" size="mini" type="danger"
  774. @click="DeleteOtherExpenses(scope.$index, scope.row, otherData)">删除</el-button>
  775. </template>
  776. </el-table-column>
  777. </el-table>
  778. </div>
  779. </div>
  780. <div class="Entrydraft-form-li">
  781. <div class="Entrydraft-li-lables">
  782. <div class="li-lable">费用总计:</div>
  783. <div style="display: flex;">
  784. <div class="li-lable">
  785. <!-- <el-checkbox style="margin-right: -10px;" v-model="airJJC_Checked"></el-checkbox> -->
  786. <label>(经济舱)</label>
  787. <div class="sub-boxs">{{ jjctotal | numFilter }}</div>
  788. <span>元/人</span>
  789. </div>
  790. &nbsp;&nbsp;&nbsp;&nbsp;
  791. <div class="li-lable">
  792. <!-- <el-checkbox style="margin-right: -10px;" v-model="airGWC_Checked"></el-checkbox> -->
  793. <label>(公务舱)</label>
  794. <div class="sub-boxs">{{ gwctotal | numFilter }}</div>
  795. <span>元/人</span>
  796. </div>
  797. &nbsp;&nbsp;&nbsp;&nbsp;
  798. <div class="li-lable">
  799. <!-- <el-checkbox style="margin-right: -10px;" v-model="airGWC_Checked"></el-checkbox> -->
  800. <label>(头等舱)</label>
  801. <div class="sub-boxs">{{ tdctotal | numFilter }}</div>
  802. <span>元/人</span>
  803. </div>
  804. </div>
  805. </div>
  806. </div>
  807. </div>
  808. </div>
  809. </div>
  810. </template>
  811. <script>
  812. import { Decimal } from 'decimal.js'
  813. import { debounce } from '../../store/statice'
  814. import { el } from '@fullcalendar/core/internal-common'
  815. export default {
  816. data() {
  817. return {
  818. fullscreenLoading: false,
  819. diid:'',
  820. options: [],
  821. listvalue: 1005,
  822. tablevalue: '',
  823. listvalueoptions: [],
  824. tablevalueoptions: [],
  825. isAssignPerm:false,
  826. //是否计算Checkbox
  827. choiceOne: false,//境内费用(其他费用)选择框
  828. choiceTwo: false,//国际旅费合计选择框
  829. choiceThree: false,//住宿费合计选择框
  830. choiceFour: false,//伙食费合计选择框
  831. choiceFive: false,//公杂费合计选择框
  832. choiceSix: false,//培训费用选择框
  833. choiceSeven: false,//其他费用选择框
  834. sumJJC: false,//经济舱小计选择框
  835. sumGWC: false,//公务舱小计选择框
  836. sumTDC: false,//头等舱小计选择框
  837. airJJC_Checked: false,//经济舱选择框
  838. airGWC_Checked: false,//公务舱选择框
  839. airTDC_Checked: false,//公务舱选择框
  840. userId: '',
  841. token: '',
  842. value: '',
  843. valuename: '',
  844. options: [],
  845. Visafees: '',
  846. Visadepicted: '',
  847. currencys: [],
  848. currencyss: [],
  849. DomesticFees: {
  850. visafees: '',//签证费
  851. visafeesDescription: '',//签证费用描述
  852. vaccinefees: 0,//疫苗费
  853. nucleicfees: 0,//核酸检测费
  854. serviceCharge: 0,//服务费
  855. insurance: 500,//保险费
  856. ticketsExhibitionL: 0,//参展门票
  857. total: 0,
  858. firstItemRemark:''//备注
  859. },
  860. TotalExpenses: {
  861. EconomyClass: 0,//经济舱
  862. BusinessClass: 0,//公务舱
  863. Firstclass: 0,//头等舱
  864. // TravellingExpenses: 0,//城市区间交通费
  865. TravellingExpensesJJ: 0,//城市区间交通费JJ
  866. TravellingExpensesGW: 0,//城市区间交通费GW
  867. TravellingExpensesTD: 0,//城市区间交通费TD
  868. EconomyClasstotal: 0,//经济舱合计
  869. BusinessClasstotal: 0,//公务舱合计
  870. Firstclasstotal: 0,//头等舱合计
  871. twoItemRemark:''//备注
  872. },
  873. TotalAccommodationFee: 0,//住宿费合计
  874. TotalMeals: 0,//伙食费合计
  875. TotalMiscellaneous: 0,//公杂费合计
  876. trainingExpense: 0,//培训费合计
  877. otherExpense: 0,//其他费用合计
  878. quarterageData: [],
  879. boardWagesData: [],
  880. miscellaneousFeeData: [],
  881. trainingExpenseData: [],
  882. otherData: [],
  883. placeinif: [],
  884. //下拉框
  885. treeData: "",
  886. treeDataValue: "",
  887. data: [],
  888. defaultProps: {
  889. children: "cityData",
  890. label: "city",
  891. // label: "country",
  892. },
  893. jjctotal: 0,//经济舱合计
  894. gwctotal: 0,//公务舱合计
  895. tdctotal: 0,//公务舱合计
  896. storageid: 0,
  897. visabeizhu: "",
  898. ID: '',
  899. TicketJudgment: {},
  900. CurrencysRemark: '',
  901. //监听币种数组
  902. watchedPrice: null,
  903. cubtn: false,
  904. getvisafeebtn: false,
  905. visainfo: {},
  906. //其他币种
  907. othercurrencys: [],
  908. otherfylx: [],
  909. draftNameDatas:[],
  910. groupNameDatas:[],
  911. //设置权限
  912. setpermissions:false,
  913. isSave:false,
  914. isView:false,
  915. viewUsers:[],
  916. viewUsersby:[],
  917. viewUsersarr:[],
  918. provinceIdarr:[],
  919. provinceId:'',
  920. //交通费弹窗
  921. Transportationdata:[
  922. {
  923. coefficient: 2.5,
  924. cost: 0,
  925. currencyName: "CNY",
  926. guideCost: 0,
  927. no: 1,
  928. otherCost: 0,
  929. ovId: '',
  930. quote: 0,
  931. remark: "",
  932. serviceCount: 1
  933. }
  934. ],
  935. Transportationdatatotal:0,
  936. TransportationVisible:false,
  937. currencies:[],
  938. lache:[
  939. {
  940. a:1,
  941. b:"",
  942. c:"",
  943. }
  944. ],
  945. huoche:[
  946. {
  947. a:1,
  948. b:"",
  949. c:"",
  950. }
  951. ],
  952. chengshijipiao:[
  953. {
  954. a:1,
  955. b:"",
  956. c:"",
  957. }
  958. ],
  959. Basicdata:{},
  960. fulecao:[],
  961. pullCartFeeTotal:0,
  962. pullCartFeeDetails:[
  963. {
  964. no: 1,
  965. cost: 0,
  966. coefficient: 2.50,
  967. currencyName: "",
  968. quote: 0,
  969. remark: ""
  970. }
  971. ],
  972. trainFeeTotal:0,
  973. trainFeeDetails:[
  974. {
  975. no: 1,
  976. cost: 0,
  977. coefficient: 2.50,
  978. currencyName: "",
  979. quote: 0,
  980. remark: ""
  981. }
  982. ],
  983. cityAirTicketFeeTotal:0,
  984. cityAirTicketFeeDetails:[
  985. {
  986. no: 1,
  987. cost: 0,
  988. coefficient: 2.50,
  989. currencyName: "",
  990. quote: 0,
  991. remark: ""
  992. }
  993. ],
  994. lastUpdateUserName:'',
  995. lastUpdateTime:'',
  996. createUserName:'',
  997. createTime:'',
  998. }
  999. },
  1000. methods: {
  1001. querySearch(queryString, cb) {
  1002. var restaurants = this.draftNameDatas;
  1003. var results = queryString ? restaurants.filter(this.createFilter(queryString)) : restaurants;
  1004. // 调用 callback 返回建议列表的数据
  1005. cb(results);
  1006. },
  1007. createFilter(queryString) {
  1008. return (restaurant) => {
  1009. // 每个字符都包含的匹配逻辑
  1010. const searchText = queryString.toLowerCase();
  1011. const itemText = restaurant.value.toLowerCase();
  1012. // 检查查询字符串中的每个字符是否都出现在项目文本中
  1013. return Array.from(searchText).every(char => itemText.includes(char));
  1014. };
  1015. },
  1016. handleSelect(item) {
  1017. this.value = item.id;
  1018. this.GetEnterExitCostInfobyDiId();
  1019. this.PostGroupTeamRateByDiIdAndCTableId();
  1020. },
  1021. //获取团组
  1022. GetEnterExitCostDataSource() {
  1023. var url = "/api/Groups/EnterExitCostDraftDataSource"
  1024. var that = this
  1025. this.$axios({
  1026. method: 'post',
  1027. url: url,
  1028. headers: {
  1029. Authorization: 'Bearer ' + this.token
  1030. },
  1031. data: {
  1032. portType: 1
  1033. }
  1034. }).then(function (res) {
  1035. if (res.data.code == 200) {
  1036. let DataSource=res.data.data;
  1037. that.draftNameDatas= DataSource.draftNameDatas.map((terminal) => {
  1038. return {
  1039. id:terminal.id,
  1040. value:terminal.draftName,
  1041. };
  1042. });
  1043. that.currencys = res.data.data.currencyInit;
  1044. that.viewUsersarr= res.data.data.viewPermissionData;
  1045. if (that.value == null) {
  1046. that.valuename = that.draftNameDatas[0].value;
  1047. that.value = that.draftNameDatas[0].id;
  1048. }
  1049. that.tablevalueoptions = res.data.data.excelTypeData;
  1050. that.GetEnterExitCostInfobyDiId();
  1051. that.PostGroupTeamRateByDiIdAndCTableId();
  1052. }
  1053. })
  1054. },
  1055. provinceIdchange(){
  1056. this.EnterExitCostDraftFileOwner();
  1057. this.GetNationalTravelFeeData();
  1058. },
  1059. //获取归属
  1060. EnterExitDraftProvBelongCostDataSource() {
  1061. this.provinceIdarr=[]
  1062. var url = "/api/Groups/EnterExitDraftProvBelongCostDataSource"
  1063. var that = this
  1064. this.$axios({
  1065. method: 'get',
  1066. url: url,
  1067. }).then(function (res) {
  1068. if (res.data.code == 200) {
  1069. that.provinceIdarr=res.data.data;
  1070. }else {
  1071. that.$message.error(res.data.msg);
  1072. }
  1073. })
  1074. },
  1075. //获取文件
  1076. EnterExitCostDraftFileOwner() {
  1077. this.listvalueoptions=[];
  1078. var url = "/api/Groups/EnterExitCostDraftFileOwner/"+this.provinceId
  1079. var that = this
  1080. this.$axios({
  1081. method: 'get',
  1082. url: url,
  1083. }).then(function (res) {
  1084. if (res.data.code == 200) {
  1085. that.listvalueoptions = res.data.data.wordTypeData;
  1086. }else {
  1087. that.$message.error(res.data.msg);
  1088. }
  1089. })
  1090. },
  1091. //获取币种
  1092. PostGroupTeamRateByDiIdAndCTableId() {
  1093. this.othercurrencys = [];
  1094. var url = "/api/Business/PostGroupTeamRateByDiIdAndCTableId"
  1095. var that = this
  1096. this.$axios({
  1097. method: 'post',
  1098. url: url,
  1099. headers: {
  1100. Authorization: 'Bearer ' + this.token
  1101. },
  1102. data: {
  1103. portType: 1,
  1104. diId: 2477,
  1105. cTable: 98
  1106. }
  1107. }).then(function (res) {
  1108. if (res.data.code == 200) {
  1109. that.othercurrencys = res.data.data.teamRates;
  1110. for (let sr = 0; sr < that.othercurrencys.length; sr++) {
  1111. if (that.othercurrencys[sr].currencyCode != 'CNY') {
  1112. that.othercurrencys[sr].rate = (that.othercurrencys[sr].rate * 1.03).toFixed(4)
  1113. }
  1114. for (let y = 0; y < that.currencys.length; y++) {
  1115. if (that.currencys[y].currencyCode == that.othercurrencys[sr].currencyCode) {
  1116. that.othercurrencys[sr].rate = that.currencys[y].rate;
  1117. }
  1118. }
  1119. }
  1120. } else {
  1121. that.$message.error(res.data.msg);
  1122. }
  1123. })
  1124. },
  1125. //获取同步基础数据
  1126. EnterExitCostDraftImportDataInit() {
  1127. var url = "/api/Groups/EnterExitCostDraftImportDataInit"
  1128. var that = this
  1129. this.$axios({
  1130. method: 'post',
  1131. url: url,
  1132. headers: {
  1133. Authorization: 'Bearer ' + this.token
  1134. },
  1135. }).then(function (res) {
  1136. if (res.data.code == 200) {
  1137. let resdata=res.data.data;
  1138. that.groupNameDatas=resdata.groupNameDatas;
  1139. } else {
  1140. that.$message.error(res.data.msg);
  1141. }
  1142. })
  1143. },
  1144. //同步
  1145. EnterExitCostDraftImportData() {
  1146. this.fullscreenLoading = that;
  1147. var url = "/api/Groups/EnterExitCostDraftImportData"
  1148. var that = this
  1149. this.$axios({
  1150. method: 'post',
  1151. url: url,
  1152. headers: {
  1153. Authorization: 'Bearer ' + this.token
  1154. },
  1155. data:{
  1156. portType:1,
  1157. userId:that.userId,
  1158. draftId:that.value,
  1159. groupId:that.diid,
  1160. }
  1161. }).then(function (res) {
  1162. if (res.data.code == 200) {
  1163. that.$message({
  1164. type: 'success',
  1165. message: res.data.msg
  1166. });
  1167. that.fullscreenLoading = false;
  1168. } else {
  1169. that.$message.error(res.data.msg);
  1170. that.fullscreenLoading = false;
  1171. }
  1172. })
  1173. },
  1174. //获取类型
  1175. QuerySetData() {
  1176. var url = "/api/System/QuerySetData"
  1177. var that = this
  1178. this.$axios({
  1179. method: 'post',
  1180. url: url,
  1181. headers: {
  1182. Authorization: 'Bearer ' + this.token
  1183. },
  1184. data: {
  1185. dataType: 92
  1186. }
  1187. }).then(function (res) {
  1188. if (res.data.code == 200) {
  1189. that.otherfylx = res.data.data;
  1190. that.EnterExitCostDraftImportDataInit();
  1191. } else {
  1192. that.$message.error(res.data.msg);
  1193. }
  1194. })
  1195. },
  1196. //获取签证标注
  1197. EnterExitCostDraftVisaTips(){
  1198. this.getvisafeebtn = false;
  1199. var url = "/api/Groups/EnterExitCostDraftVisaTips"
  1200. var that = this
  1201. this.$axios({
  1202. method: 'post',
  1203. url: url,
  1204. headers: {
  1205. Authorization: 'Bearer ' + this.token
  1206. },
  1207. data: {
  1208. portType: 1,
  1209. draftId:that.value
  1210. }
  1211. }).then(function (res) {
  1212. if (res.data.code == 200) {
  1213. that.visainfo = res.data.data;
  1214. that.getvisafeebtn = true;
  1215. // if (that.DomesticFees.visafees != res.data.data.totalAmt && res.data.data.totalAmt != 0) {
  1216. // }
  1217. } else {
  1218. that.$message.error(res.data.msg);
  1219. }
  1220. })
  1221. },
  1222. //获取签证标注
  1223. GetEnterExitCostCorrelationTips(val) {
  1224. if (val == 1) {
  1225. this.TotalExpenses.EconomyClass = 0;
  1226. this.TotalExpenses.BusinessClass = 0;
  1227. this.DomesticFees.visafees = 0;
  1228. this.DomesticFees.visafeesDescription = "";
  1229. var url = "/api/Groups/EnterExitCostDraftCorrelationTips"
  1230. var that = this
  1231. this.$axios({
  1232. method: 'post',
  1233. url: url,
  1234. headers: {
  1235. Authorization: 'Bearer ' + this.token
  1236. },
  1237. data: {
  1238. portType: 1,
  1239. diId: that.value
  1240. }
  1241. }).then(function (res) {
  1242. if (res.data.code == 200) {
  1243. that.currencyss = res.data.data.reteInfos;
  1244. // that.TotalExpenses.EconomyClass = res.data.data.airData.jjcCurrentRate;
  1245. // that.TotalExpenses.BusinessClass = res.data.data.airData.gwcCurrentRate;
  1246. // that.DomesticFees.visafees = res.data.data.visaData.feeTotal;
  1247. // that.DomesticFees.visafeesDescription = res.data.data.visaData.remark;
  1248. } else {
  1249. that.$message.error(res.data.msg);
  1250. }
  1251. })
  1252. } else {
  1253. var url = "/api/Groups/EnterExitCostDraftCorrelationTips"
  1254. var that = this
  1255. this.$axios({
  1256. method: 'post',
  1257. url: url,
  1258. headers: {
  1259. Authorization: 'Bearer ' + this.token
  1260. },
  1261. data: {
  1262. portType: 1,
  1263. diId: that.value
  1264. }
  1265. }).then(function (res) {
  1266. if (res.data.code == 200) {
  1267. // that.TicketJudgment = res.data.data.airData;
  1268. // that.visainfo = res.data.data.visaData;
  1269. that.currencyss = res.data.data.reteInfos;
  1270. // if (that.DomesticFees.visafees != res.data.data.visaData.feeTotal && res.data.data.visaData.feeTotal != 0) {
  1271. // that.getvisafeebtn = true;
  1272. // }
  1273. for (let s = 0; s < that.currencys.length; s++) {
  1274. if (that.currencys[s].rate != that.currencyss[s].rate) {
  1275. that.cubtn = true;
  1276. that.CurrencysRemark = '当前汇率与实时汇率不同!移上查看'
  1277. return
  1278. } else {
  1279. that.cubtn = false;
  1280. }
  1281. }
  1282. } else {
  1283. that.$message.error(res.data.msg);
  1284. }
  1285. })
  1286. }
  1287. },
  1288. //机票费用填入
  1289. Fillin() {
  1290. this.TotalExpenses.EconomyClass = this.TicketJudgment.jjcCurrentRate;
  1291. this.TotalExpenses.BusinessClass = this.TicketJudgment.gwcCurrentRate;
  1292. },
  1293. //获取费用标注
  1294. GetNationalTravelFeeData() {
  1295. var url = "/api/Groups/GetNationalTravelFeeData"
  1296. var that = this
  1297. this.$axios({
  1298. method: 'post',
  1299. url: url,
  1300. headers: {
  1301. Authorization: 'Bearer ' + this.token
  1302. },
  1303. data: {
  1304. portType: 1,
  1305. provinceId:that.provinceId,
  1306. }
  1307. }).then(function (res) {
  1308. let placeinifarr = [];
  1309. if (res.data.code == 200) {
  1310. for (let i = 0; i < res.data.data.length; i++) {
  1311. res.data.data[i]['cityname'] = res.data.data[i].country + '-' + res.data.data[i].city;
  1312. placeinifarr.push(res.data.data[i]);
  1313. }
  1314. that.placeinif = placeinifarr;
  1315. }
  1316. })
  1317. },
  1318. GetEnterExitCostInfobyDiId() {
  1319. //初始化数据
  1320. this.ID = '';
  1321. // this.currencys=[]
  1322. this.TotalAccommodationFee = 0;//住宿费合计
  1323. this.TotalMeals = 0;//伙食费合计
  1324. this.TotalMiscellaneous = 0;//公杂费合计
  1325. this.trainingExpense = 0;//培训费合计
  1326. this.otherExpense = 0;//其他费合计
  1327. this.DomesticFees = {
  1328. visafees: '',//签证费
  1329. visafeesDescription: '',//签证费用描述
  1330. vaccinefees: 0,//疫苗费
  1331. nucleicfees: 0,//核酸检测费
  1332. serviceCharge: 0,//服务费
  1333. insurance: 500,//保险费
  1334. ticketsExhibitionL: 0,//参展门票
  1335. total: 0,
  1336. firstItemRemark:''//备注
  1337. }
  1338. this.TotalExpenses = {
  1339. EconomyClass: 0,//经济舱
  1340. BusinessClass: 0,//公务舱
  1341. Firstclass: 0,//TD舱
  1342. // TravellingExpenses: 0,//城市区间交通费
  1343. TravellingExpensesJJ: 0,//城市区间交通费JJ
  1344. TravellingExpensesGW: 0,//城市区间交通费GW
  1345. TravellingExpensesTD: 0,//城市区间交通费TD
  1346. EconomyClasstotal: 0,//经济舱合计
  1347. BusinessClasstotal: 0,//公务舱合计
  1348. Firstclasstotal: 0,//TD舱合计
  1349. twoItemRemark:''//备注
  1350. }
  1351. this.choiceOne = false//境内费用(其他费用)选择框
  1352. this.choiceTwo = false//国际旅费合计选择框
  1353. this.choiceThree = false//住宿费合计选择框
  1354. this.choiceFour = false//伙食费合计选择框
  1355. this.choiceFive = false//公杂费合计选择框
  1356. this.choiceSix = false//培训费用选择框
  1357. this.choiceSeven = false//其他费用选择框
  1358. this.sumJJC = false//经济舱小计选择框
  1359. this.sumGWC = false//公务舱小计选择框
  1360. this.sumTDC = false//公务舱小计选择框
  1361. this.airJJC_Checked = false//经济舱选择框
  1362. this.airGWC_Checked = false//公务舱选择框
  1363. this.isSave = false//保存权限
  1364. this.isView = false//查看权限
  1365. this.storageid = 0
  1366. this.quarterageData = [
  1367. {
  1368. id: 0,
  1369. diId: this.value,
  1370. type: 1,
  1371. days: 1,
  1372. nationalTravelFeeId: '',
  1373. cost: 0,
  1374. currency: 0,
  1375. subTotal: 0,
  1376. remark: '',
  1377. },
  1378. {
  1379. id: 0,
  1380. diId: this.value,
  1381. type: 1,
  1382. days: 2,
  1383. nationalTravelFeeId: '',
  1384. cost: 0,
  1385. currency: 0,
  1386. subTotal: 0,
  1387. remark: '',
  1388. },
  1389. {
  1390. id: 0,
  1391. diId: this.value,
  1392. type: 1,
  1393. days: 3,
  1394. nationalTravelFeeId: '',
  1395. cost: 0,
  1396. currency: 0,
  1397. subTotal: 0,
  1398. remark: '',
  1399. },
  1400. {
  1401. id: 0,
  1402. diId: this.value,
  1403. type: 1,
  1404. days: 4,
  1405. nationalTravelFeeId: '',
  1406. cost: 0,
  1407. currency: 0,
  1408. subTotal: 0,
  1409. remark: '',
  1410. },
  1411. {
  1412. id: 0,
  1413. diId: this.value,
  1414. type: 1,
  1415. days: 5,
  1416. nationalTravelFeeId: '',
  1417. cost: 0,
  1418. currency: 0,
  1419. subTotal: 0,
  1420. remark: '',
  1421. },
  1422. {
  1423. id: 0,
  1424. diId: this.value,
  1425. type: 1,
  1426. days: 6,
  1427. nationalTravelFeeId: '',
  1428. cost: 0,
  1429. currency: 0,
  1430. subTotal: 0,
  1431. remark: '',
  1432. },
  1433. {
  1434. id: 0,
  1435. diId: this.value,
  1436. type: 1,
  1437. days: 7,
  1438. nationalTravelFeeId: '',
  1439. cost: 0,
  1440. currency: 0,
  1441. subTotal: 0,
  1442. remark: '',
  1443. },
  1444. {
  1445. id: 0,
  1446. diId: this.value,
  1447. type: 1,
  1448. days: 8,
  1449. nationalTravelFeeId: '',
  1450. cost: 0,
  1451. currency: 0,
  1452. subTotal: 0,
  1453. remark: '',
  1454. },
  1455. ]
  1456. this.boardWagesData = [
  1457. {
  1458. id: 0,
  1459. diId: this.value,
  1460. type: 2,
  1461. days: 1,
  1462. nationalTravelFeeId: '',
  1463. cost: 0,
  1464. currency: 0,
  1465. subTotal: 0,
  1466. remark: '',
  1467. },
  1468. {
  1469. id: 0,
  1470. diId: this.value,
  1471. type: 2,
  1472. days: 2,
  1473. nationalTravelFeeId: '',
  1474. cost: 0,
  1475. currency: 0,
  1476. subTotal: 0,
  1477. remark: '',
  1478. },
  1479. {
  1480. id: 0,
  1481. diId: this.value,
  1482. type: 2,
  1483. days: 3,
  1484. nationalTravelFeeId: '',
  1485. cost: 0,
  1486. currency: 0,
  1487. subTotal: 0,
  1488. remark: '',
  1489. },
  1490. {
  1491. id: 0,
  1492. diId: this.value,
  1493. type: 2,
  1494. days: 4,
  1495. nationalTravelFeeId: '',
  1496. cost: 0,
  1497. currency: 0,
  1498. subTotal: 0,
  1499. remark: '',
  1500. },
  1501. {
  1502. id: 0,
  1503. diId: this.value,
  1504. type: 2,
  1505. days: 5,
  1506. nationalTravelFeeId: '',
  1507. cost: 0,
  1508. currency: 0,
  1509. subTotal: 0,
  1510. remark: '',
  1511. },
  1512. {
  1513. id: 0,
  1514. diId: this.value,
  1515. type: 2,
  1516. days: 6,
  1517. nationalTravelFeeId: '',
  1518. cost: 0,
  1519. currency: 0,
  1520. subTotal: 0,
  1521. remark: '',
  1522. },
  1523. {
  1524. id: 0,
  1525. diId: this.value,
  1526. type: 2,
  1527. days: 7,
  1528. nationalTravelFeeId: '',
  1529. cost: 0,
  1530. currency: 0,
  1531. subTotal: 0,
  1532. remark: '',
  1533. },
  1534. {
  1535. id: 0,
  1536. diId: this.value,
  1537. type: 2,
  1538. days: 8,
  1539. nationalTravelFeeId: '',
  1540. cost: 0,
  1541. currency: 0,
  1542. subTotal: 0,
  1543. remark: '',
  1544. },
  1545. ]
  1546. this.miscellaneousFeeData = [
  1547. {
  1548. id: 0,
  1549. diId: this.value,
  1550. type: 3,
  1551. days: 1,
  1552. nationalTravelFeeId: '',
  1553. cost: 0,
  1554. currency: 0,
  1555. subTotal: 0,
  1556. remark: '',
  1557. },
  1558. {
  1559. id: 0,
  1560. diId: this.value,
  1561. type: 3,
  1562. days: 2,
  1563. nationalTravelFeeId: '',
  1564. cost: 0,
  1565. currency: 0,
  1566. subTotal: 0,
  1567. remark: '',
  1568. },
  1569. {
  1570. id: 0,
  1571. diId: this.value,
  1572. type: 3,
  1573. days: 3,
  1574. nationalTravelFeeId: '',
  1575. cost: 0,
  1576. currency: 0,
  1577. subTotal: 0,
  1578. remark: '',
  1579. },
  1580. {
  1581. id: 0,
  1582. diId: this.value,
  1583. type: 3,
  1584. days: 4,
  1585. nationalTravelFeeId: '',
  1586. cost: 0,
  1587. currency: 0,
  1588. subTotal: 0,
  1589. remark: '',
  1590. },
  1591. {
  1592. id: 0,
  1593. diId: this.value,
  1594. type: 3,
  1595. days: 5,
  1596. nationalTravelFeeId: '',
  1597. cost: 0,
  1598. currency: 0,
  1599. subTotal: 0,
  1600. remark: '',
  1601. },
  1602. {
  1603. id: 0,
  1604. diId: this.value,
  1605. type: 3,
  1606. days: 6,
  1607. nationalTravelFeeId: '',
  1608. cost: 0,
  1609. currency: 0,
  1610. subTotal: 0,
  1611. remark: '',
  1612. },
  1613. {
  1614. id: 0,
  1615. diId: this.value,
  1616. type: 3,
  1617. days: 7,
  1618. nationalTravelFeeId: '',
  1619. cost: 0,
  1620. currency: 0,
  1621. subTotal: 0,
  1622. remark: '',
  1623. },
  1624. {
  1625. id: 0,
  1626. diId: this.value,
  1627. type: 3,
  1628. days: 8,
  1629. nationalTravelFeeId: '',
  1630. cost: 0,
  1631. currency: 0,
  1632. subTotal: 0,
  1633. remark: '',
  1634. },
  1635. ]
  1636. this.trainingExpenseData = [
  1637. {
  1638. id: 0,
  1639. diId: this.value,
  1640. type: 4,
  1641. days: 1,
  1642. nationalTravelFeeId: '',
  1643. cost: 0,
  1644. currency: 0,
  1645. subTotal: 0,
  1646. remark: '',
  1647. },
  1648. {
  1649. id: 0,
  1650. diId: this.value,
  1651. type: 4,
  1652. days: 2,
  1653. nationalTravelFeeId: '',
  1654. cost: 0,
  1655. currency: 0,
  1656. subTotal: 0,
  1657. remark: '',
  1658. },
  1659. {
  1660. id: 0,
  1661. diId: this.value,
  1662. type: 4,
  1663. days: 3,
  1664. nationalTravelFeeId: '',
  1665. cost: 0,
  1666. currency: 0,
  1667. subTotal: 0,
  1668. remark: '',
  1669. },
  1670. {
  1671. id: 0,
  1672. diId: this.value,
  1673. type: 4,
  1674. days: 4,
  1675. nationalTravelFeeId: '',
  1676. cost: 0,
  1677. currency: 0,
  1678. subTotal: 0,
  1679. remark: '',
  1680. },
  1681. {
  1682. id: 0,
  1683. diId: this.value,
  1684. type: 4,
  1685. days: 5,
  1686. nationalTravelFeeId: '',
  1687. cost: 0,
  1688. currency: 0,
  1689. subTotal: 0,
  1690. remark: '',
  1691. },
  1692. {
  1693. id: 0,
  1694. diId: this.value,
  1695. type: 4,
  1696. days: 6,
  1697. nationalTravelFeeId: '',
  1698. cost: 0,
  1699. currency: 0,
  1700. subTotal: 0,
  1701. remark: '',
  1702. },
  1703. {
  1704. id: 0,
  1705. diId: this.value,
  1706. type: 4,
  1707. days: 7,
  1708. nationalTravelFeeId: '',
  1709. cost: 0,
  1710. currency: 0,
  1711. subTotal: 0,
  1712. remark: '',
  1713. },
  1714. {
  1715. id: 0,
  1716. diId: this.value,
  1717. type: 4,
  1718. days: 8,
  1719. nationalTravelFeeId: '',
  1720. cost: 0,
  1721. currency: 0,
  1722. subTotal: 0,
  1723. remark: '',
  1724. },
  1725. ]
  1726. this.otherData = [
  1727. {
  1728. id: 0,
  1729. diId: this.value,
  1730. setDataId: '',
  1731. index: 1,
  1732. cost: '',
  1733. cost: 0,
  1734. currency: '',
  1735. subTotal: 0,
  1736. remark:'',
  1737. },
  1738. {
  1739. id: 0,
  1740. diId: this.value,
  1741. setDataId: '',
  1742. index: 2,
  1743. cost: '',
  1744. cost: 0,
  1745. currency: '',
  1746. subTotal: 0,
  1747. remark:'',
  1748. },
  1749. {
  1750. id: 0,
  1751. diId: this.value,
  1752. setDataId: '',
  1753. index: 3,
  1754. cost: '',
  1755. cost: 0,
  1756. currency: '',
  1757. subTotal: 0,
  1758. remark:'',
  1759. },
  1760. {
  1761. id: 0,
  1762. diId: this.value,
  1763. setDataId: '',
  1764. index: 4,
  1765. cost: '',
  1766. cost: 0,
  1767. currency: '',
  1768. subTotal: 0,
  1769. remark:'',
  1770. },
  1771. {
  1772. id: 0,
  1773. diId: this.value,
  1774. setDataId: '',
  1775. index: 5,
  1776. cost: '',
  1777. cost: 0,
  1778. currency: '',
  1779. subTotal: 0,
  1780. remark:'',
  1781. },
  1782. {
  1783. id: 0,
  1784. diId: this.value,
  1785. setDataId: '',
  1786. index: 6,
  1787. cost: '',
  1788. cost: 0,
  1789. currency: '',
  1790. subTotal: 0,
  1791. remark:'',
  1792. },
  1793. {
  1794. id: 0,
  1795. diId: this.value,
  1796. setDataId: '',
  1797. index: 7,
  1798. cost: '',
  1799. cost: 0,
  1800. currency: '',
  1801. subTotal: 0,
  1802. remark:'',
  1803. },
  1804. {
  1805. id: 0,
  1806. diId: this.value,
  1807. setDataId: '',
  1808. index: 8,
  1809. cost: '',
  1810. cost: 0,
  1811. currency: '',
  1812. subTotal: 0,
  1813. remark:'',
  1814. },
  1815. ]
  1816. this.isAssignPerm=false;
  1817. var url = "/api/Groups/EnterExitCostDraftInfoById"
  1818. var that = this
  1819. this.$axios({
  1820. method: 'post',
  1821. url: url,
  1822. headers: {
  1823. Authorization: 'Bearer ' + this.token
  1824. },
  1825. data: {
  1826. portType: 1,
  1827. id: that.value,
  1828. currUserId:that.userId
  1829. }
  1830. }).then(function (res) {
  1831. if (res.data.code == 200) {
  1832. that.ID = res.data.data.id;
  1833. //汇率
  1834. that.currencys = res.data.data.currencys;
  1835. that.isAssignPerm = res.data.data.isAssignPerm;
  1836. //权限
  1837. that.isSave=res.data.data.isSave;
  1838. that.isView=res.data.data.isView;
  1839. that.viewUsers=res.data.data.viewUsers;
  1840. that.viewUsersby=res.data.data.viewUsers;
  1841. //境内费用
  1842. that.DomesticFees.visafees = res.data.data.visa;
  1843. that.DomesticFees.visafeesDescription = res.data.data.visaRemark;
  1844. that.DomesticFees.vaccinefees = res.data.data.yiMiao;
  1845. that.DomesticFees.nucleicfees = res.data.data.heSuan;
  1846. that.DomesticFees.serviceCharge = res.data.data.service;
  1847. that.DomesticFees.insurance = res.data.data.safe;
  1848. that.DomesticFees.ticketsExhibitionL = res.data.data.ticket;
  1849. that.DomesticFees.firstItemRemark = res.data.data.firstItemRemark;
  1850. //国际旅费
  1851. that.TotalExpenses.EconomyClass = res.data.data.airJJ;
  1852. that.TotalExpenses.BusinessClass = res.data.data.airGW;
  1853. that.TotalExpenses.Firstclass = res.data.data.airTD;
  1854. that.TotalExpenses.TravellingExpensesJJ = res.data.data.cityTranffic;
  1855. that.TotalExpenses.TravellingExpensesGW = res.data.data.cityTranffic1;
  1856. that.TotalExpenses.TravellingExpensesTD = res.data.data.cityTranffic2;
  1857. that.TotalExpenses.twoItemRemark = res.data.data.twoItemRemark;
  1858. //是否计算Checkbox
  1859. that.choiceOne = res.data.data.choiceOne == 1 ? true : false;
  1860. that.choiceTwo = res.data.data.choiceTwo == 1 ? true : false;
  1861. that.choiceThree = res.data.data.choiceThree == 1 ? true : false;
  1862. that.choiceFour = res.data.data.choiceFour == 1 ? true : false;
  1863. that.choiceFive = res.data.data.choiceFive == 1 ? true : false;
  1864. that.choiceSix = res.data.data.choiceSix == 1 ? true : false;
  1865. that.choiceSeven = res.data.data.otherExpenses_Checked == 1 ? true : false;
  1866. that.sumJJC = res.data.data.sumJJC == 1 ? true : false;
  1867. that.sumGWC = res.data.data.sumGWC == 1 ? true : false;
  1868. that.sumTDC = res.data.data.sumTDC == 1 ? true : false;
  1869. that.airJJC_Checked = res.data.data.airJJC_Checked == 1 ? true : false;
  1870. that.airGWC_Checked = res.data.data.airGWC_Checked == 1 ? true : false;
  1871. //住宿费
  1872. that.quarterageData = res.data.data.quarterageData;
  1873. for (let a = 0; a < res.data.data.quarterageData.length; a++) {
  1874. that.TotalAccommodationFee += res.data.data.quarterageData[a].subTotal
  1875. }
  1876. //伙食费
  1877. that.boardWagesData = res.data.data.boardWagesData;
  1878. for (let b = 0; b < res.data.data.boardWagesData.length; b++) {
  1879. that.TotalMeals += res.data.data.boardWagesData[b].subTotal
  1880. }
  1881. //公杂费
  1882. that.miscellaneousFeeData = res.data.data.miscellaneousFeeData;
  1883. for (let c = 0; c < res.data.data.miscellaneousFeeData.length; c++) {
  1884. that.TotalMiscellaneous += res.data.data.miscellaneousFeeData[c].subTotal
  1885. }
  1886. //培训费
  1887. that.trainingExpenseData = res.data.data.trainingExpenseData;
  1888. for (let d = 0; d < res.data.data.trainingExpenseData.length; d++) {
  1889. that.trainingExpense += res.data.data.trainingExpenseData[d].subTotal
  1890. }
  1891. //其他费
  1892. that.otherData = res.data.data.dayOtherPriceData;
  1893. for (let e = 0; e < res.data.data.dayOtherPriceData.length; e++) {
  1894. that.otherExpense += res.data.data.dayOtherPriceData[e].subTotal
  1895. }
  1896. that.storageid = res.data.data.id;
  1897. that.provinceId=res.data.data.provinceId;
  1898. that.GetNationalTravelFeeData();
  1899. that.EnterExitCostDraftFileOwner();
  1900. that.fullscreenLoading = false;
  1901. that.GetEnterExitCostCorrelationTips(2);
  1902. that.EnterExitCostDraftVisaTips();
  1903. } else {
  1904. that.GetNationalTravelFeeData();
  1905. that.EnterExitCostDraftFileOwner();
  1906. that.fullscreenLoading = false;
  1907. that.GetEnterExitCostCorrelationTips(1);
  1908. that.EnterExitCostDraftVisaTips();
  1909. that.$message.warning(res.data.msg);
  1910. }
  1911. })
  1912. },
  1913. //全部清空
  1914. cleanout() {
  1915. //初始化数据
  1916. this.value=0;
  1917. this.valuename="";
  1918. this.viewUsers=[],
  1919. this.viewUsersby=[],
  1920. this.isSave=true,
  1921. this.isView=true,
  1922. this.ID = '';
  1923. // this.currencys=[]
  1924. this.TotalAccommodationFee = 0;//住宿费合计
  1925. this.TotalMeals = 0;//伙食费合计
  1926. this.TotalMiscellaneous = 0;//公杂费合计
  1927. this.trainingExpense = 0;//培训费合计
  1928. this.otherExpense = 0;//其他费合计
  1929. this.DomesticFees = {
  1930. visafees: '',//签证费
  1931. visafeesDescription: '',//签证费用描述
  1932. vaccinefees: 0,//疫苗费
  1933. nucleicfees: 0,//核酸检测费
  1934. serviceCharge: 0,//服务费
  1935. insurance: 500,//保险费
  1936. ticketsExhibitionL: 0,//参展门票
  1937. total: 0,
  1938. firstItemRemark:''//备注
  1939. }
  1940. this.TotalExpenses = {
  1941. EconomyClass: 0,//经济舱
  1942. BusinessClass: 0,//公务舱
  1943. Firstclass: 0,//TD舱
  1944. TravellingExpensesJJ: 0,//城市区间交通费JJ
  1945. TravellingExpensesGW: 0,//城市区间交通费GW
  1946. TravellingExpensesTD: 0,//城市区间交通费TD
  1947. // TravellingExpenses: 0,//城市区间交通费
  1948. EconomyClasstotal: 0,//经济舱合计
  1949. BusinessClasstotal: 0,//公务舱合计
  1950. Firstclasstotal: 0,//TD舱合计
  1951. twoItemRemark:''//备注
  1952. }
  1953. this.choiceOne = false//境内费用(其他费用)选择框
  1954. this.choiceTwo = false//国际旅费合计选择框
  1955. this.choiceThree = false//住宿费合计选择框
  1956. this.choiceFour = false//伙食费合计选择框
  1957. this.choiceFive = false//公杂费合计选择框
  1958. this.choiceSix = false//培训费用选择框
  1959. this.choiceSeven = false//其他费用选择框
  1960. this.sumJJC = false//经济舱小计选择框
  1961. this.sumGWC = false//公务舱小计选择框
  1962. this.sumTDC = false//公务舱小计选择框
  1963. this.airJJC_Checked = false//经济舱选择框
  1964. this.airGWC_Checked = false//公务舱选择框
  1965. this.storageid = 0
  1966. this.isAssignPerm=true;
  1967. this.quarterageData = [
  1968. {
  1969. id: 0,
  1970. diId: this.value,
  1971. type: 1,
  1972. days: 1,
  1973. nationalTravelFeeId: '',
  1974. cost: 0,
  1975. currency: 0,
  1976. subTotal: 0,
  1977. remark: '',
  1978. },
  1979. {
  1980. id: 0,
  1981. diId: this.value,
  1982. type: 1,
  1983. days: 2,
  1984. nationalTravelFeeId: '',
  1985. cost: 0,
  1986. currency: 0,
  1987. subTotal: 0,
  1988. remark: '',
  1989. },
  1990. {
  1991. id: 0,
  1992. diId: this.value,
  1993. type: 1,
  1994. days: 3,
  1995. nationalTravelFeeId: '',
  1996. cost: 0,
  1997. currency: 0,
  1998. subTotal: 0,
  1999. remark: '',
  2000. },
  2001. {
  2002. id: 0,
  2003. diId: this.value,
  2004. type: 1,
  2005. days: 4,
  2006. nationalTravelFeeId: '',
  2007. cost: 0,
  2008. currency: 0,
  2009. subTotal: 0,
  2010. remark: '',
  2011. },
  2012. {
  2013. id: 0,
  2014. diId: this.value,
  2015. type: 1,
  2016. days: 5,
  2017. nationalTravelFeeId: '',
  2018. cost: 0,
  2019. currency: 0,
  2020. subTotal: 0,
  2021. remark: '',
  2022. },
  2023. {
  2024. id: 0,
  2025. diId: this.value,
  2026. type: 1,
  2027. days: 6,
  2028. nationalTravelFeeId: '',
  2029. cost: 0,
  2030. currency: 0,
  2031. subTotal: 0,
  2032. remark: '',
  2033. },
  2034. {
  2035. id: 0,
  2036. diId: this.value,
  2037. type: 1,
  2038. days: 7,
  2039. nationalTravelFeeId: '',
  2040. cost: 0,
  2041. currency: 0,
  2042. subTotal: 0,
  2043. remark: '',
  2044. },
  2045. {
  2046. id: 0,
  2047. diId: this.value,
  2048. type: 1,
  2049. days: 8,
  2050. nationalTravelFeeId: '',
  2051. cost: 0,
  2052. currency: 0,
  2053. subTotal: 0,
  2054. remark: '',
  2055. },
  2056. ]
  2057. this.boardWagesData = [
  2058. {
  2059. id: 0,
  2060. diId: this.value,
  2061. type: 2,
  2062. days: 1,
  2063. nationalTravelFeeId: '',
  2064. cost: 0,
  2065. currency: 0,
  2066. subTotal: 0,
  2067. remark: '',
  2068. },
  2069. {
  2070. id: 0,
  2071. diId: this.value,
  2072. type: 2,
  2073. days: 2,
  2074. nationalTravelFeeId: '',
  2075. cost: 0,
  2076. currency: 0,
  2077. subTotal: 0,
  2078. remark: '',
  2079. },
  2080. {
  2081. id: 0,
  2082. diId: this.value,
  2083. type: 2,
  2084. days: 3,
  2085. nationalTravelFeeId: '',
  2086. cost: 0,
  2087. currency: 0,
  2088. subTotal: 0,
  2089. remark: '',
  2090. },
  2091. {
  2092. id: 0,
  2093. diId: this.value,
  2094. type: 2,
  2095. days: 4,
  2096. nationalTravelFeeId: '',
  2097. cost: 0,
  2098. currency: 0,
  2099. subTotal: 0,
  2100. remark: '',
  2101. },
  2102. {
  2103. id: 0,
  2104. diId: this.value,
  2105. type: 2,
  2106. days: 5,
  2107. nationalTravelFeeId: '',
  2108. cost: 0,
  2109. currency: 0,
  2110. subTotal: 0,
  2111. remark: '',
  2112. },
  2113. {
  2114. id: 0,
  2115. diId: this.value,
  2116. type: 2,
  2117. days: 6,
  2118. nationalTravelFeeId: '',
  2119. cost: 0,
  2120. currency: 0,
  2121. subTotal: 0,
  2122. remark: '',
  2123. },
  2124. {
  2125. id: 0,
  2126. diId: this.value,
  2127. type: 2,
  2128. days: 7,
  2129. nationalTravelFeeId: '',
  2130. cost: 0,
  2131. currency: 0,
  2132. subTotal: 0,
  2133. remark: '',
  2134. },
  2135. {
  2136. id: 0,
  2137. diId: this.value,
  2138. type: 2,
  2139. days: 8,
  2140. nationalTravelFeeId: '',
  2141. cost: 0,
  2142. currency: 0,
  2143. subTotal: 0,
  2144. remark: '',
  2145. },
  2146. ]
  2147. this.miscellaneousFeeData = [
  2148. {
  2149. id: 0,
  2150. diId: this.value,
  2151. type: 3,
  2152. days: 1,
  2153. nationalTravelFeeId: '',
  2154. cost: 0,
  2155. currency: 0,
  2156. subTotal: 0,
  2157. remark: '',
  2158. },
  2159. {
  2160. id: 0,
  2161. diId: this.value,
  2162. type: 3,
  2163. days: 2,
  2164. nationalTravelFeeId: '',
  2165. cost: 0,
  2166. currency: 0,
  2167. subTotal: 0,
  2168. remark: '',
  2169. },
  2170. {
  2171. id: 0,
  2172. diId: this.value,
  2173. type: 3,
  2174. days: 3,
  2175. nationalTravelFeeId: '',
  2176. cost: 0,
  2177. currency: 0,
  2178. subTotal: 0,
  2179. remark: '',
  2180. },
  2181. {
  2182. id: 0,
  2183. diId: this.value,
  2184. type: 3,
  2185. days: 4,
  2186. nationalTravelFeeId: '',
  2187. cost: 0,
  2188. currency: 0,
  2189. subTotal: 0,
  2190. remark: '',
  2191. },
  2192. {
  2193. id: 0,
  2194. diId: this.value,
  2195. type: 3,
  2196. days: 5,
  2197. nationalTravelFeeId: '',
  2198. cost: 0,
  2199. currency: 0,
  2200. subTotal: 0,
  2201. remark: '',
  2202. },
  2203. {
  2204. id: 0,
  2205. diId: this.value,
  2206. type: 3,
  2207. days: 6,
  2208. nationalTravelFeeId: '',
  2209. cost: 0,
  2210. currency: 0,
  2211. subTotal: 0,
  2212. remark: '',
  2213. },
  2214. {
  2215. id: 0,
  2216. diId: this.value,
  2217. type: 3,
  2218. days: 7,
  2219. nationalTravelFeeId: '',
  2220. cost: 0,
  2221. currency: 0,
  2222. subTotal: 0,
  2223. remark: '',
  2224. },
  2225. {
  2226. id: 0,
  2227. diId: this.value,
  2228. type: 3,
  2229. days: 8,
  2230. nationalTravelFeeId: '',
  2231. cost: 0,
  2232. currency: 0,
  2233. subTotal: 0,
  2234. remark: '',
  2235. },
  2236. ]
  2237. this.trainingExpenseData = [
  2238. {
  2239. id: 0,
  2240. diId: this.value,
  2241. type: 4,
  2242. days: 1,
  2243. nationalTravelFeeId: '',
  2244. cost: 0,
  2245. currency: 0,
  2246. subTotal: 0,
  2247. remark: '',
  2248. },
  2249. {
  2250. id: 0,
  2251. diId: this.value,
  2252. type: 4,
  2253. days: 2,
  2254. nationalTravelFeeId: '',
  2255. cost: 0,
  2256. currency: 0,
  2257. subTotal: 0,
  2258. remark: '',
  2259. },
  2260. {
  2261. id: 0,
  2262. diId: this.value,
  2263. type: 4,
  2264. days: 3,
  2265. nationalTravelFeeId: '',
  2266. cost: 0,
  2267. currency: 0,
  2268. subTotal: 0,
  2269. remark: '',
  2270. },
  2271. {
  2272. id: 0,
  2273. diId: this.value,
  2274. type: 4,
  2275. days: 4,
  2276. nationalTravelFeeId: '',
  2277. cost: 0,
  2278. currency: 0,
  2279. subTotal: 0,
  2280. remark: '',
  2281. },
  2282. {
  2283. id: 0,
  2284. diId: this.value,
  2285. type: 4,
  2286. days: 5,
  2287. nationalTravelFeeId: '',
  2288. cost: 0,
  2289. currency: 0,
  2290. subTotal: 0,
  2291. remark: '',
  2292. },
  2293. {
  2294. id: 0,
  2295. diId: this.value,
  2296. type: 4,
  2297. days: 6,
  2298. nationalTravelFeeId: '',
  2299. cost: 0,
  2300. currency: 0,
  2301. subTotal: 0,
  2302. remark: '',
  2303. },
  2304. {
  2305. id: 0,
  2306. diId: this.value,
  2307. type: 4,
  2308. days: 7,
  2309. nationalTravelFeeId: '',
  2310. cost: 0,
  2311. currency: 0,
  2312. subTotal: 0,
  2313. remark: '',
  2314. },
  2315. {
  2316. id: 0,
  2317. diId: this.value,
  2318. type: 4,
  2319. days: 8,
  2320. nationalTravelFeeId: '',
  2321. cost: 0,
  2322. currency: 0,
  2323. subTotal: 0,
  2324. remark: '',
  2325. },
  2326. ]
  2327. this.otherData = [
  2328. {
  2329. id: 0,
  2330. diId: this.value,
  2331. setDataId: '',
  2332. index: 1,
  2333. cost: '',
  2334. cost: 0,
  2335. currency: '',
  2336. subTotal: 0,
  2337. remark:'',
  2338. },
  2339. {
  2340. id: 0,
  2341. diId: this.value,
  2342. setDataId: '',
  2343. index: 2,
  2344. cost: '',
  2345. cost: 0,
  2346. currency: '',
  2347. subTotal: 0,
  2348. remark:'',
  2349. },
  2350. {
  2351. id: 0,
  2352. diId: this.value,
  2353. setDataId: '',
  2354. index: 3,
  2355. cost: '',
  2356. cost: 0,
  2357. currency: '',
  2358. subTotal: 0,
  2359. remark:'',
  2360. },
  2361. {
  2362. id: 0,
  2363. diId: this.value,
  2364. setDataId: '',
  2365. index: 4,
  2366. cost: '',
  2367. cost: 0,
  2368. currency: '',
  2369. subTotal: 0,
  2370. remark:'',
  2371. },
  2372. {
  2373. id: 0,
  2374. diId: this.value,
  2375. setDataId: '',
  2376. index: 5,
  2377. cost: '',
  2378. cost: 0,
  2379. currency: '',
  2380. subTotal: 0,
  2381. remark:'',
  2382. },
  2383. {
  2384. id: 0,
  2385. diId: this.value,
  2386. setDataId: '',
  2387. index: 6,
  2388. cost: '',
  2389. cost: 0,
  2390. currency: '',
  2391. subTotal: 0,
  2392. remark:'',
  2393. },
  2394. {
  2395. id: 0,
  2396. diId: this.value,
  2397. setDataId: '',
  2398. index: 7,
  2399. cost: '',
  2400. cost: 0,
  2401. currency: '',
  2402. subTotal: 0,
  2403. remark:'',
  2404. },
  2405. {
  2406. id: 0,
  2407. diId: this.value,
  2408. setDataId: '',
  2409. index: 8,
  2410. cost: '',
  2411. cost: 0,
  2412. currency: '',
  2413. subTotal: 0,
  2414. remark:'',
  2415. },
  2416. ]
  2417. //汇率赋值
  2418. for (let at = 0; at < this.currencys.length; at++) {
  2419. for (let rt = 0; rt < this.currencyss.length; rt++) {
  2420. if (this.currencys[at].currencyCode == this.currencyss[rt].currCode) {
  2421. this.currencys[at].rate = this.currencyss[rt].rate
  2422. }
  2423. }
  2424. }
  2425. this.getvisafeebtn=false;
  2426. // this.EnterExitCostDraftVisaTips();
  2427. this.provinceId=this.provinceIdarr[0].id;
  2428. this.GetNationalTravelFeeData();
  2429. this.EnterExitCostDraftFileOwner();
  2430. },
  2431. //下拉
  2432. handNodeClick(data, node, e) {
  2433. this.treeDataValue = data.name
  2434. this.treeData = data.name
  2435. },
  2436. //sr需求
  2437. SRrequirement(obj) {
  2438. var currencyinfo = {}
  2439. var rate = 0
  2440. currencyinfo = this.othercurrencys.find(function (i) {
  2441. return i.currencyId === obj.currency
  2442. });
  2443. rate = currencyinfo.rate;
  2444. this.otherExpense = 0;
  2445. for (let l = 0; l < this.otherData.length; l++) {
  2446. this.otherData[l].currency = obj.currency
  2447. this.otherData[l].subTotal = Number(this.otherData[l].cost) * Number(rate);
  2448. this.otherExpense += this.otherData[l].subTotal;
  2449. }
  2450. },
  2451. //住宿地区选择
  2452. changeSelect(val, item, index) {
  2453. var xiabiao=0
  2454. var rate = 0
  2455. var obj = {}
  2456. obj = this.placeinif.find(function (i,indexs) {
  2457. xiabiao=indexs
  2458. return i.id === item
  2459. });
  2460. this.placeinif.splice(xiabiao,1);
  2461. this.placeinif.unshift(obj);
  2462. this.SRrequirement(obj)
  2463. //在change中获取到整条对象数据
  2464. val.currencyName = obj.currencyName;
  2465. val.currency = obj.currency;
  2466. val.cost = obj.roomCost;
  2467. for (let j = 0; j < this.currencys.length; j++) {
  2468. if (this.currencys[j].currencyCode == obj.currencyCode) {
  2469. rate = this.currencys[j].rate;
  2470. }
  2471. }
  2472. val.subTotal = Number(val.cost) * Number(rate);
  2473. this.TotalAccommodationFee = 0;
  2474. for (let a = 0; a < this.quarterageData.length; a++) {
  2475. this.TotalAccommodationFee += Number(this.quarterageData[a].subTotal.toFixed(2));
  2476. }
  2477. // this.mealschangeSelect(this.boardWagesData,item,index)
  2478. },
  2479. //住宿费费用标准值改变
  2480. zhusuinput(val) {
  2481. var rate = 0
  2482. for (let j = 0; j < this.currencys.length; j++) {
  2483. if (this.currencys[j].currencyName == val.currencyName) {
  2484. rate = this.currencys[j].rate;
  2485. }
  2486. }
  2487. val.subTotal = Number(val.cost) * Number(rate);
  2488. this.TotalAccommodationFee = 0;
  2489. for (let a = 0; a < this.quarterageData.length; a++) {
  2490. this.TotalAccommodationFee += Number(Number(this.quarterageData[a].subTotal).toFixed(2));
  2491. }
  2492. },
  2493. //伙食费费用标准值改变
  2494. mealsinput(val) {
  2495. var rate = 0
  2496. for (let j = 0; j < this.currencys.length; j++) {
  2497. if (this.currencys[j].currencyName == val.currencyName) {
  2498. rate = this.currencys[j].rate;
  2499. }
  2500. }
  2501. val.subTotal = Number(val.cost) * Number(rate);
  2502. this.TotalMeals = 0;
  2503. for (let a = 0; a < this.boardWagesData.length; a++) {
  2504. this.TotalMeals += Number(Number(this.boardWagesData[a].subTotal).toFixed(2));
  2505. }
  2506. },
  2507. //伙食地区选择
  2508. mealschangeSelect(val, item, index) {
  2509. var xiabiao=0
  2510. var rate = 0
  2511. var obj = {}
  2512. obj = this.placeinif.find(function (i,indexs) {
  2513. xiabiao=indexs
  2514. return i.id === item
  2515. });
  2516. this.placeinif.splice(xiabiao,1);
  2517. this.placeinif.unshift(obj);
  2518. //在change中获取到整条对象数据
  2519. // if(index!=undefined){
  2520. // val[index].currencyName=obj.currencyName;
  2521. // val[index].currency=obj.currency;
  2522. // val[index].cost=obj.foodCost;
  2523. // val[index].nationalTravelFeeId=obj.id;
  2524. // for(let j=0;j<this.currencys.length;j++){
  2525. // if(this.currencys[j].currencyCode==obj.currencyCode){
  2526. // rate=this.currencys[j].rate;
  2527. // }
  2528. // }
  2529. // val[index].subTotal=Number(val[index].cost)*Number(rate);
  2530. // this.TotalMeals=0;
  2531. // for(let a=0;a<this.boardWagesData.length;a++){
  2532. // this.TotalMeals+=this.boardWagesData[a].subTotal
  2533. // }
  2534. // }
  2535. val.currencyName = obj.currencyName;
  2536. val.currency = obj.currency;
  2537. val.cost = obj.foodCost;
  2538. for (let j = 0; j < this.currencys.length; j++) {
  2539. if (this.currencys[j].currencyCode == obj.currencyCode) {
  2540. rate = this.currencys[j].rate;
  2541. }
  2542. }
  2543. val.subTotal = Number(val.cost) * Number(rate);
  2544. this.TotalMeals = 0;
  2545. for (let a = 0; a < this.boardWagesData.length; a++) {
  2546. this.TotalMeals += this.boardWagesData[a].subTotal
  2547. }
  2548. this.MiscellaneouschangeSelect(this.miscellaneousFeeData, item, index)
  2549. },
  2550. //公杂费费用标准值改变
  2551. Miscellaneousinput(val) {
  2552. var rate = 0
  2553. for (let j = 0; j < this.currencys.length; j++) {
  2554. if (this.currencys[j].currencyName == val.currencyName) {
  2555. rate = this.currencys[j].rate;
  2556. }
  2557. }
  2558. val.subTotal = Number(val.cost) * Number(rate);
  2559. this.TotalMiscellaneous = 0;
  2560. for (let a = 0; a < this.miscellaneousFeeData.length; a++) {
  2561. this.TotalMiscellaneous += Number(Number(this.miscellaneousFeeData[a].subTotal).toFixed(2));
  2562. }
  2563. },
  2564. //公杂费地区选择
  2565. MiscellaneouschangeSelect(val, item, index) {
  2566. var xiabiao=0
  2567. var rate = 0
  2568. var obj = {}
  2569. obj = this.placeinif.find(function (i,indexs) {
  2570. xiabiao=indexs
  2571. return i.id === item
  2572. });
  2573. this.placeinif.splice(xiabiao,1);
  2574. this.placeinif.unshift(obj);
  2575. //在change中获取到整条对象数据
  2576. if (index != undefined) {
  2577. val[index].currencyName = obj.currencyName;
  2578. val[index].currency = obj.currency;
  2579. val[index].cost = obj.publicCost;
  2580. val[index].nationalTravelFeeId = obj.id;
  2581. for (let j = 0; j < this.currencys.length; j++) {
  2582. if (this.currencys[j].currencyCode == obj.currencyCode) {
  2583. rate = this.currencys[j].rate;
  2584. }
  2585. }
  2586. val[index].subTotal = Number(val[index].cost) * Number(rate);
  2587. this.TotalMiscellaneous = 0;
  2588. for (let a = 0; a < this.miscellaneousFeeData.length; a++) {
  2589. this.TotalMiscellaneous += this.miscellaneousFeeData[a].subTotal
  2590. }
  2591. }
  2592. val.currencyName = obj.currencyName;
  2593. val.currency = obj.currency;
  2594. val.cost = obj.publicCost;
  2595. for (let j = 0; j < this.currencys.length; j++) {
  2596. if (this.currencys[j].currencyCode == obj.currencyCode) {
  2597. rate = this.currencys[j].rate;
  2598. }
  2599. }
  2600. val.subTotal = Number(val.cost) * Number(rate);
  2601. this.TotalMiscellaneous = 0;
  2602. for (let a = 0; a < this.miscellaneousFeeData.length; a++) {
  2603. this.TotalMiscellaneous += this.miscellaneousFeeData[a].subTotal
  2604. }
  2605. },
  2606. //培训费费用标准值改变
  2607. Traininginput(val) {
  2608. var rate = 0
  2609. for (let j = 0; j < this.currencys.length; j++) {
  2610. if (this.currencys[j].currencyName == val.currencyName) {
  2611. rate = this.currencys[j].rate;
  2612. }
  2613. }
  2614. val.subTotal = Number(val.cost) * Number(rate);
  2615. this.trainingExpense = 0;
  2616. for (let a = 0; a < this.trainingExpenseData.length; a++) {
  2617. this.trainingExpense += Number(Number(this.trainingExpenseData[a].subTotal).toFixed(2));
  2618. }
  2619. },
  2620. //培训费地区选择
  2621. TrainingExpenseDataSelect(val, item) {
  2622. var xiabiao=0
  2623. var rate = 0//汇率
  2624. var obj = {}
  2625. obj = this.placeinif.find(function (i,indexs) {
  2626. xiabiao=indexs
  2627. return i.id === item
  2628. });
  2629. this.placeinif.splice(xiabiao,1);
  2630. this.placeinif.unshift(obj);
  2631. //在change中获取到整条对象数据
  2632. val.currencyName = obj.currencyName;
  2633. val.currency = obj.currency;
  2634. val.cost=obj.trainCost;
  2635. for (let j = 0; j < this.currencys.length; j++) {
  2636. if (this.currencys[j].currencyCode == obj.currencyCode) {
  2637. rate = this.currencys[j].rate;
  2638. }
  2639. }
  2640. val.subTotal = Number(val.cost) * Number(rate);
  2641. for (let a = 0; a < this.trainingExpenseData.length; a++) {
  2642. this.trainingExpense += this.trainingExpenseData[a].subTotal
  2643. }
  2644. },
  2645. //其他币种值改变
  2646. othercurrencychange(val, row) {
  2647. var obj = {};
  2648. var rate = 0;
  2649. obj = this.othercurrencys.find(function (i) {
  2650. return i.currencyId === val;
  2651. });
  2652. rate = obj.rate
  2653. row.subTotal = Number(row.cost) * Number(rate);
  2654. this.otherExpense = 0;
  2655. for (let a = 0; a < this.otherData.length; a++) {
  2656. this.otherExpense += this.otherData[a].subTotal;
  2657. }
  2658. },
  2659. //其他费用标准值改变
  2660. otherinput(val) {
  2661. if (val.currency == '' || this.othercurrencys == '') {
  2662. return
  2663. }
  2664. var obj = {}
  2665. var rate = 0
  2666. obj = this.othercurrencys.find(function (i) {
  2667. return i.currencyId === val.currency
  2668. });
  2669. rate = obj.rate
  2670. val.subTotal = Number(val.cost) * Number(rate);
  2671. this.otherExpense = 0;
  2672. for (let a = 0; a < this.otherData.length; a++) {
  2673. this.otherExpense += Number(Number(this.otherData[a].subTotal).toFixed(2));
  2674. }
  2675. },
  2676. //新增list
  2677. addlist(text) {
  2678. if (text == "住宿费") {
  2679. this.quarterageData.push({
  2680. id: 0,
  2681. diId: this.value,
  2682. type: 1,
  2683. days: this.quarterageData.length != 0 ? (this.quarterageData[this.quarterageData.length - 1].days) + 1 : 1,
  2684. nationalTravelFeeId: '',
  2685. cost: 0,
  2686. currency: 0,
  2687. subTotal: 0,
  2688. remark: '',
  2689. })
  2690. // this.boardWagesData.push({
  2691. // id:0,
  2692. // diId:this.value,
  2693. // type:2,
  2694. // days:this.boardWagesData.length!=0?(this.boardWagesData[this.boardWagesData.length-1].days)+1:1,
  2695. // nationalTravelFeeId:'',
  2696. // cost:0,
  2697. // currency:0,
  2698. // subTotal:0,
  2699. // remark:'',
  2700. // })
  2701. }
  2702. if (text == "伙食费") {
  2703. this.boardWagesData.push({
  2704. id: 0,
  2705. diId: this.value,
  2706. type: 2,
  2707. days: this.boardWagesData.length != 0 ? (this.boardWagesData[this.boardWagesData.length - 1].days) + 1 : 1,
  2708. nationalTravelFeeId: '',
  2709. cost: 0,
  2710. currency: 0,
  2711. subTotal: 0,
  2712. remark: '',
  2713. })
  2714. this.miscellaneousFeeData.push({
  2715. id: 0,
  2716. diId: this.value,
  2717. type: 3,
  2718. days: this.miscellaneousFeeData.length != 0 ? (this.miscellaneousFeeData[this.miscellaneousFeeData.length - 1].days) + 1 : 1,
  2719. nationalTravelFeeId: '',
  2720. cost: 0,
  2721. currency: 0,
  2722. subTotal: 0,
  2723. remark: '',
  2724. })
  2725. }
  2726. if (text == "公杂费") {
  2727. this.miscellaneousFeeData.push({
  2728. id: 0,
  2729. diId: this.value,
  2730. type: 3,
  2731. days: this.miscellaneousFeeData.length != 0 ? (this.miscellaneousFeeData[this.miscellaneousFeeData.length - 1].days) + 1 : 1,
  2732. nationalTravelFeeId: '',
  2733. cost: 0,
  2734. currency: 0,
  2735. subTotal: 0,
  2736. remark: '',
  2737. })
  2738. }
  2739. if (text == "培训费") {
  2740. this.trainingExpenseData.push({
  2741. id: 0,
  2742. diId: this.value,
  2743. type: 4,
  2744. days: this.trainingExpenseData.length != 0 ? (this.trainingExpenseData[this.trainingExpenseData.length - 1].days) + 1 : 1,
  2745. nationalTravelFeeId: '',
  2746. cost: 0,
  2747. currency: 0,
  2748. subTotal: 0,
  2749. remark: '',
  2750. })
  2751. }
  2752. if (text == "其他") {
  2753. this.otherData.push({
  2754. id: 0,
  2755. diId: this.value,
  2756. setDataId: '',
  2757. index: this.otherData.length != 0 ? (this.otherData[this.otherData.length - 1].index) + 1 : 1,
  2758. cost: '',
  2759. cost: 0,
  2760. currency: 0,
  2761. subTotal: 0,
  2762. remark:'',
  2763. })
  2764. }
  2765. },
  2766. //保存
  2767. storage: debounce(function () {
  2768. if (this.valuename=="") {
  2769. this.$message.error('睁开眼睛看看草稿名称填没填!!!!!');
  2770. return
  2771. }
  2772. return new Promise((resolve, reject) => {
  2773. //住宿费
  2774. this.fullscreenLoading = true
  2775. var quarterageDatas = [];
  2776. for (let m = 0; m < this.quarterageData.length; m++) {
  2777. if (this.quarterageData[m].nationalTravelFeeId != '') {
  2778. quarterageDatas.push({
  2779. id: this.quarterageData[m].id,
  2780. diId: this.quarterageData[m].diId,
  2781. type: this.quarterageData[m].type,
  2782. days: this.quarterageData[m].days,
  2783. nationalTravelFeeId: this.quarterageData[m].nationalTravelFeeId,
  2784. cost: this.quarterageData[m].cost,
  2785. currency: this.quarterageData[m].currency,
  2786. subTotal: this.quarterageData[m].subTotal,
  2787. remark: this.quarterageData[m].remark,
  2788. })
  2789. }
  2790. }
  2791. //伙食费
  2792. var boardWagesDatas = [];
  2793. for (let n = 0; n < this.boardWagesData.length; n++) {
  2794. if (this.boardWagesData[n].nationalTravelFeeId != '') {
  2795. boardWagesDatas.push({
  2796. id: this.boardWagesData[n].id,
  2797. diId: this.boardWagesData[n].diId,
  2798. type: this.boardWagesData[n].type,
  2799. days: this.boardWagesData[n].days,
  2800. nationalTravelFeeId: this.boardWagesData[n].nationalTravelFeeId,
  2801. cost: this.boardWagesData[n].cost,
  2802. currency: this.boardWagesData[n].currency,
  2803. subTotal: this.boardWagesData[n].subTotal,
  2804. remark: this.boardWagesData[n].remark,
  2805. })
  2806. }
  2807. }
  2808. //公杂费miscellaneousFeeData
  2809. var miscellaneousFeeDatas = [];
  2810. for (let b = 0; b < this.miscellaneousFeeData.length; b++) {
  2811. if (this.miscellaneousFeeData[b].nationalTravelFeeId != '') {
  2812. miscellaneousFeeDatas.push({
  2813. id: this.miscellaneousFeeData[b].id,
  2814. diId: this.miscellaneousFeeData[b].diId,
  2815. type: this.miscellaneousFeeData[b].type,
  2816. days: this.miscellaneousFeeData[b].days,
  2817. nationalTravelFeeId: this.miscellaneousFeeData[b].nationalTravelFeeId,
  2818. cost: this.miscellaneousFeeData[b].cost,
  2819. currency: this.miscellaneousFeeData[b].currency,
  2820. subTotal: this.miscellaneousFeeData[b].subTotal,
  2821. remark: this.miscellaneousFeeData[b].remark,
  2822. })
  2823. }
  2824. }
  2825. //培训费
  2826. var trainingExpenseDatas = [];
  2827. for (let p = 0; p < this.trainingExpenseData.length; p++) {
  2828. if (this.trainingExpenseData[p].nationalTravelFeeId != '') {
  2829. trainingExpenseDatas.push({
  2830. id: this.trainingExpenseData[p].id,
  2831. diId: this.trainingExpenseData[p].diId,
  2832. type: this.trainingExpenseData[p].type,
  2833. days: this.trainingExpenseData[p].days,
  2834. nationalTravelFeeId: this.trainingExpenseData[p].nationalTravelFeeId,
  2835. cost: this.trainingExpenseData[p].cost,
  2836. currency: this.trainingExpenseData[p].currency,
  2837. subTotal: this.trainingExpenseData[p].subTotal,
  2838. remark: this.trainingExpenseData[p].remark,
  2839. })
  2840. }
  2841. }
  2842. //其他费
  2843. var otherDatas = [];
  2844. for (let c = 0; c < this.otherData.length; c++) {
  2845. if (this.otherData[c].setDataId != '') {
  2846. otherDatas.push({
  2847. id: this.otherData[c].id,
  2848. diId: this.otherData[c].diId,
  2849. index: this.otherData[c].index,
  2850. setDataId: this.otherData[c].setDataId,
  2851. cost: this.otherData[c].cost,
  2852. currency: this.otherData[c].currency,
  2853. subTotal: this.otherData[c].subTotal,
  2854. remark: this.otherData[c].remark,
  2855. })
  2856. }
  2857. }
  2858. this.storageAPI(quarterageDatas, boardWagesDatas, miscellaneousFeeDatas, trainingExpenseDatas, otherDatas)
  2859. })
  2860. }, 1000, true),
  2861. //导出保存
  2862. //保存API
  2863. storageAPI(arrthre, arrfour, arrfive, arrsix, arrSeven) {
  2864. var url = "/api/Groups/EnterExitCostDraftOp"
  2865. var that = this
  2866. let filteredObjects = that.draftNameDatas.filter(obj =>
  2867. that.valuename==obj.value
  2868. );
  2869. if (filteredObjects.length<1) {
  2870. that.value = 0;
  2871. }
  2872. this.$axios({
  2873. method: 'post',
  2874. url: url,
  2875. headers: {
  2876. Authorization: 'Bearer ' + this.token,
  2877. contentType: 'application/json'
  2878. },
  2879. data: {
  2880. portType: 1,
  2881. userId: that.userId,
  2882. id: that.value,
  2883. draftName: that.valuename,
  2884. choiceOne: that.choiceOne ? 1 : 0,
  2885. insidePay: that.DomesticFees.total,
  2886. provinceId: that.provinceId,
  2887. visa: that.DomesticFees.visafees,
  2888. visaRemark: that.DomesticFees.visafeesDescription,
  2889. yiMiao: that.DomesticFees.vaccinefees,
  2890. heSuan: that.DomesticFees.nucleicfees,
  2891. service: that.DomesticFees.serviceCharge,
  2892. ticket: that.DomesticFees.ticketsExhibitionL,
  2893. safe: that.DomesticFees.insurance,
  2894. firstItemRemark:that.DomesticFees.firstItemRemark,
  2895. choiceTwo: that.choiceTwo ? 1 : 0,
  2896. otherExpenses_Checked: that.choiceSeven ? 1 : 0,
  2897. sumJJC: that.sumJJC ? 1 : 0,
  2898. sumGWC: that.sumGWC ? 1 : 0,
  2899. sumTDC: that.sumTDC ? 1 : 0,
  2900. outsideJJPay: that.TotalExpenses.EconomyClasstotal,
  2901. outsideGWPay: that.TotalExpenses.BusinessClasstotal,
  2902. outsideTDPay: that.TotalExpenses.Firstclasstotal,
  2903. twoItemRemark: that.TotalExpenses.twoItemRemark,
  2904. airJJ: that.TotalExpenses.EconomyClass,
  2905. airGW: that.TotalExpenses.BusinessClass,
  2906. airTD: that.TotalExpenses.Firstclass,
  2907. cityTranffic: that.TotalExpenses.TravellingExpensesJJ,
  2908. cityTranffic1: that.TotalExpenses.TravellingExpensesGW,
  2909. cityTranffic2: that.TotalExpenses.TravellingExpensesTD,
  2910. dayOtherPriceData: arrSeven,
  2911. currencys: that.currencys,
  2912. choiceThree: that.choiceThree ? 1 : 0,
  2913. quarterageData: arrthre,
  2914. choiceFour: that.choiceFour ? 1 : 0,
  2915. boardWagesData: arrfour,
  2916. choiceFive: that.choiceFive ? 1 : 0,
  2917. miscellaneousFeeData: arrfive,
  2918. choiceSix: that.choiceSix ? 1 : 0,
  2919. //加参数
  2920. trainingExpenseData: arrsix,
  2921. airJJC_Checked: that.airJJC_Checked ? 1 : 0,
  2922. airGWC_Checked: that.airGWC_Checked ? 1 : 0,
  2923. airTDC_Checked: that.airTDC_Checked ? 1 : 0,
  2924. }
  2925. }).then(function (res) {
  2926. if (res.data.code == 200) {
  2927. that.$message({
  2928. type: 'success',
  2929. message: res.data.msg
  2930. });
  2931. if (that.value == 0) {
  2932. that.value=res.data.data.sign;
  2933. that.draftNameDatas.push({
  2934. id:res.data.data.sign,
  2935. value:res.data.data.draftName,
  2936. })
  2937. }
  2938. that.GetEnterExitCostInfobyDiId()
  2939. } else {
  2940. that.fullscreenLoading = false;
  2941. that.$message.error(res.data.msg);
  2942. }
  2943. }).catch(function (error) {
  2944. that.$message.error(error.message);
  2945. });
  2946. },
  2947. //选择团组名称调用
  2948. chengvalue() {
  2949. window.localStorage.setItem('sgvalue', this.value);
  2950. this.fullscreenLoading = true;
  2951. this.GetEnterExitCostInfobyDiId();
  2952. this.PostGroupTeamRateByDiIdAndCTableId();
  2953. },
  2954. eptschedule: debounce(function (val) {
  2955. if (this.valuename=="") {
  2956. this.$message.error('睁开眼睛看看草稿名称填没填!!!!!');
  2957. return
  2958. }
  2959. return new Promise((resolve, reject) => {
  2960. //住宿费
  2961. this.fullscreenLoading = true
  2962. var quarterageDatas = [];
  2963. for (let m = 0; m < this.quarterageData.length; m++) {
  2964. if (this.quarterageData[m].nationalTravelFeeId != '') {
  2965. quarterageDatas.push({
  2966. id: this.quarterageData[m].id,
  2967. diId: this.quarterageData[m].diId,
  2968. type: this.quarterageData[m].type,
  2969. days: this.quarterageData[m].days,
  2970. nationalTravelFeeId: this.quarterageData[m].nationalTravelFeeId,
  2971. cost: this.quarterageData[m].cost,
  2972. currency: this.quarterageData[m].currency,
  2973. subTotal: this.quarterageData[m].subTotal,
  2974. remark: this.quarterageData[m].remark,
  2975. })
  2976. }
  2977. }
  2978. //伙食费
  2979. var boardWagesDatas = [];
  2980. for (let n = 0; n < this.boardWagesData.length; n++) {
  2981. if (this.boardWagesData[n].nationalTravelFeeId != '') {
  2982. boardWagesDatas.push({
  2983. id: this.boardWagesData[n].id,
  2984. diId: this.boardWagesData[n].diId,
  2985. type: this.boardWagesData[n].type,
  2986. days: this.boardWagesData[n].days,
  2987. nationalTravelFeeId: this.boardWagesData[n].nationalTravelFeeId,
  2988. cost: this.boardWagesData[n].cost,
  2989. currency: this.boardWagesData[n].currency,
  2990. subTotal: this.boardWagesData[n].subTotal,
  2991. remark: this.boardWagesData[n].remark,
  2992. })
  2993. }
  2994. }
  2995. //公杂费miscellaneousFeeData
  2996. var miscellaneousFeeDatas = [];
  2997. for (let b = 0; b < this.miscellaneousFeeData.length; b++) {
  2998. if (this.miscellaneousFeeData[b].nationalTravelFeeId != '') {
  2999. miscellaneousFeeDatas.push({
  3000. id: this.miscellaneousFeeData[b].id,
  3001. diId: this.miscellaneousFeeData[b].diId,
  3002. type: this.miscellaneousFeeData[b].type,
  3003. days: this.miscellaneousFeeData[b].days,
  3004. nationalTravelFeeId: this.miscellaneousFeeData[b].nationalTravelFeeId,
  3005. cost: this.miscellaneousFeeData[b].cost,
  3006. currency: this.miscellaneousFeeData[b].currency,
  3007. subTotal: this.miscellaneousFeeData[b].subTotal,
  3008. remark: this.miscellaneousFeeData[b].remark,
  3009. })
  3010. }
  3011. }
  3012. //培训费
  3013. var trainingExpenseDatas = [];
  3014. for (let p = 0; p < this.trainingExpenseData.length; p++) {
  3015. if (this.trainingExpenseData[p].nationalTravelFeeId != '') {
  3016. trainingExpenseDatas.push({
  3017. id: this.trainingExpenseData[p].id,
  3018. diId: this.trainingExpenseData[p].diId,
  3019. type: this.trainingExpenseData[p].type,
  3020. days: this.trainingExpenseData[p].days,
  3021. nationalTravelFeeId: this.trainingExpenseData[p].nationalTravelFeeId,
  3022. cost: this.trainingExpenseData[p].cost,
  3023. currency: this.trainingExpenseData[p].currency,
  3024. subTotal: this.trainingExpenseData[p].subTotal,
  3025. remark: this.trainingExpenseData[p].remark,
  3026. })
  3027. }
  3028. }
  3029. //其他费
  3030. var otherDatas = [];
  3031. for (let c = 0; c < this.otherData.length; c++) {
  3032. if (this.otherData[c].setDataId != '') {
  3033. otherDatas.push({
  3034. id: this.otherData[c].id,
  3035. diId: this.otherData[c].diId,
  3036. index: this.otherData[c].index,
  3037. setDataId: this.otherData[c].setDataId,
  3038. cost: this.otherData[c].cost,
  3039. currency: this.otherData[c].currency,
  3040. subTotal: this.otherData[c].subTotal,
  3041. remark: this.otherData[c].remark,
  3042. })
  3043. }
  3044. }
  3045. var url = "/api/Groups/EnterExitCostDraftOp"
  3046. var that = this
  3047. let filteredObjects = that.draftNameDatas.filter(obj =>
  3048. that.valuename == obj.value
  3049. );
  3050. if (filteredObjects.length < 1) {
  3051. that.value = 0;
  3052. }
  3053. this.$axios({
  3054. method: 'post',
  3055. url: url,
  3056. headers: {
  3057. Authorization: 'Bearer ' + this.token,
  3058. contentType: 'application/json'
  3059. },
  3060. data: {
  3061. portType: 1,
  3062. userId: that.userId,
  3063. id: that.value,
  3064. draftName: that.valuename,
  3065. choiceOne: that.choiceOne ? 1 : 0,
  3066. insidePay: that.DomesticFees.total,
  3067. visa: that.DomesticFees.visafees,
  3068. visaRemark: that.DomesticFees.visafeesDescription,
  3069. yiMiao: that.DomesticFees.vaccinefees,
  3070. heSuan: that.DomesticFees.nucleicfees,
  3071. service: that.DomesticFees.serviceCharge,
  3072. ticket: that.DomesticFees.ticketsExhibitionL,
  3073. safe: that.DomesticFees.insurance,
  3074. firstItemRemark: that.DomesticFees.firstItemRemark,
  3075. choiceTwo: that.choiceTwo ? 1 : 0,
  3076. otherExpenses_Checked: that.choiceSeven ? 1 : 0,
  3077. sumJJC: that.sumJJC ? 1 : 0,
  3078. sumGWC: that.sumGWC ? 1 : 0,
  3079. sumTDC: that.sumTDC ? 1 : 0,
  3080. outsideJJPay: that.TotalExpenses.EconomyClasstotal,
  3081. outsideGWPay: that.TotalExpenses.BusinessClasstotal,
  3082. outsideTDPay: that.TotalExpenses.Firstclasstotal,
  3083. twoItemRemark: that.TotalExpenses.twoItemRemark,
  3084. airJJ: that.TotalExpenses.EconomyClass,
  3085. airGW: that.TotalExpenses.BusinessClass,
  3086. airTD: that.TotalExpenses.Firstclass,
  3087. cityTranffic: that.TotalExpenses.TravellingExpensesJJ,
  3088. cityTranffic1: that.TotalExpenses.TravellingExpensesGW,
  3089. cityTranffic2: that.TotalExpenses.TravellingExpensesTD,
  3090. dayOtherPriceData: otherDatas,
  3091. currencys: that.currencys,
  3092. choiceThree: that.choiceThree ? 1 : 0,
  3093. quarterageData: quarterageDatas,
  3094. choiceFour: that.choiceFour ? 1 : 0,
  3095. boardWagesData: boardWagesDatas,
  3096. choiceFive: that.choiceFive ? 1 : 0,
  3097. miscellaneousFeeData: miscellaneousFeeDatas,
  3098. choiceSix: that.choiceSix ? 1 : 0,
  3099. //加参数
  3100. trainingExpenseData: trainingExpenseDatas,
  3101. airJJC_Checked: that.airJJC_Checked ? 1 : 0,
  3102. airGWC_Checked: that.airGWC_Checked ? 1 : 0,
  3103. airTDC_Checked: that.airTDC_Checked ? 1 : 0,
  3104. }
  3105. }).then(function (res) {
  3106. if (res.data.code == 200) {
  3107. that.$message({
  3108. type: 'success',
  3109. message: res.data.msg
  3110. });
  3111. if (that.value == 0) {
  3112. that.value = res.data.data.sign;
  3113. that.draftNameDatas.push({
  3114. id: res.data.data.sign,
  3115. value: res.data.data.draftName,
  3116. })
  3117. }
  3118. var subTypeId = 0
  3119. if (val == 1) {
  3120. subTypeId = that.listvalue
  3121. } else if (val == 2) {
  3122. subTypeId = that.tablevalue
  3123. } else {
  3124. subTypeId = 1
  3125. }
  3126. if (subTypeId == "") {
  3127. that.$message.error('请选择需要导出的表格');
  3128. return
  3129. }
  3130. var url = "/api/Groups/EnterExitCostDraftDownload"
  3131. that.$axios({
  3132. method: 'post',
  3133. url: url,
  3134. headers: {
  3135. Authorization: 'Bearer ' + that.token
  3136. },
  3137. data: {
  3138. portType: 1,
  3139. id: that.value,
  3140. exportType: val,
  3141. subTypeId: subTypeId
  3142. }
  3143. }).then(function (res) {
  3144. if (res.data.code == 200) {
  3145. that.$message({
  3146. type: 'success',
  3147. message: res.data.msg
  3148. });
  3149. window.open(res.data.data.url);
  3150. } else {
  3151. that.$message.error(res.data.msg);
  3152. }
  3153. })
  3154. that.GetEnterExitCostInfobyDiId()
  3155. } else {
  3156. that.fullscreenLoading = false;
  3157. that.$message.error(res.data.msg);
  3158. }
  3159. }).catch(function (error) {
  3160. that.$message.error(error.message);
  3161. });
  3162. // this.storageAPI(quarterageDatas, boardWagesDatas, miscellaneousFeeDatas, trainingExpenseDatas, otherDatas)
  3163. })
  3164. }, 500, true),
  3165. //
  3166. calculation() {
  3167. var jnfy
  3168. var jjcxj
  3169. var gwcxj
  3170. var tdcxj
  3171. var zsf
  3172. var hsf
  3173. var gzf
  3174. var pxf
  3175. var qtfy
  3176. if (this.choiceOne == true) {
  3177. jnfy = this.DomesticFees.total;
  3178. } else {
  3179. jnfy = 0;
  3180. }
  3181. if (this.choiceThree == true) {
  3182. zsf = this.TotalAccommodationFee;
  3183. } else {
  3184. zsf = 0;
  3185. }
  3186. if (this.choiceFour == true) {
  3187. hsf = this.TotalMeals;
  3188. } else {
  3189. hsf = 0;
  3190. }
  3191. if (this.choiceFive == true) {
  3192. gzf = this.TotalMiscellaneous;
  3193. } else {
  3194. gzf = 0;
  3195. }
  3196. if (this.choiceSix == true) {
  3197. pxf = this.trainingExpense;
  3198. } else {
  3199. pxf = 0;
  3200. }
  3201. if (this.choiceSeven == true) {
  3202. qtfy = this.otherExpense;
  3203. } else {
  3204. qtfy = 0;
  3205. }
  3206. if (this.sumJJC == true) {
  3207. jjcxj = this.TotalExpenses.EconomyClasstotal;
  3208. this.jjctotal = jnfy + jjcxj + zsf + hsf + gzf + pxf + qtfy;
  3209. } else {
  3210. jjcxj = 0;
  3211. this.jjctotal = 0;
  3212. }
  3213. if (this.sumGWC == true) {
  3214. gwcxj = this.TotalExpenses.BusinessClasstotal;
  3215. this.gwctotal = jnfy + gwcxj + zsf + hsf + gzf + pxf + qtfy;
  3216. } else {
  3217. gwcxj = 0;
  3218. this.gwctotal = 0;
  3219. }
  3220. if (this.sumTDC == true) {
  3221. tdcxj = this.TotalExpenses.Firstclasstotal;
  3222. this.tdctotal = jnfy + tdcxj + zsf + hsf + gzf + pxf + qtfy;
  3223. } else {
  3224. tdcxj = 0;
  3225. this.tdctotal = 0;
  3226. }
  3227. },
  3228. //其他删除
  3229. DeleteOtherExpenses(index, row, rows) {
  3230. this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', {
  3231. confirmButtonText: '确定',
  3232. cancelButtonText: '取消',
  3233. type: 'warning'
  3234. }).then(() => {
  3235. {
  3236. if (row.id == 0) {
  3237. this.$message({
  3238. type: 'success',
  3239. message: '删除成功'
  3240. });
  3241. rows.splice(index, 1);
  3242. this.otherExpense = 0;
  3243. for (let a = 0; a < rows.length; a++) {
  3244. this.otherExpense += rows[a].subTotal;
  3245. }
  3246. return;
  3247. }
  3248. var url = "/api/Groups/EnterExitCostDraftOtherExpensesDel"
  3249. var that = this
  3250. this.$axios({
  3251. method: 'post',
  3252. url: url,
  3253. headers: {
  3254. Authorization: 'Bearer ' + that.token
  3255. },
  3256. data: {
  3257. portType: 1,
  3258. id: row.id,
  3259. deleteUserId: that.userId
  3260. }
  3261. }).then(function (res) {
  3262. if (res.data.code == 200) {
  3263. that.$message({
  3264. type: 'success',
  3265. message: res.data.msg
  3266. });
  3267. rows.splice(index, 1);
  3268. this.otherExpense = 0;
  3269. for (let a = 0; a < rows.length; a++) {
  3270. this.otherExpense += rows[a].subTotal;
  3271. }
  3272. } else {
  3273. that.$message.error(res.data.msg);
  3274. }
  3275. })
  3276. }
  3277. }).catch(() => {
  3278. this.$message({
  3279. type: 'info',
  3280. message: '已取消删除'
  3281. });
  3282. });
  3283. },
  3284. //删除
  3285. deleteRow(index, row, rows, val) {
  3286. this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', {
  3287. confirmButtonText: '确定',
  3288. cancelButtonText: '取消',
  3289. type: 'warning'
  3290. }).then(() => {
  3291. if (row.id == 0) {
  3292. this.$message({
  3293. type: 'success',
  3294. message: '删除成功'
  3295. });
  3296. rows.splice(index, 1);
  3297. if (val == 1) {
  3298. this.TotalAccommodationFee = 0;
  3299. for (let a = 0; a < rows.length; a++) {
  3300. this.TotalAccommodationFee += rows[a].subTotal;
  3301. }
  3302. }
  3303. if (val == 2) {
  3304. this.TotalMeals = 0;
  3305. for (let a = 0; a < rows.length; a++) {
  3306. this.TotalMeals += rows[a].subTotal;
  3307. }
  3308. }
  3309. if (val == 3) {
  3310. this.TotalMiscellaneous = 0;
  3311. for (let a = 0; a < rows.length; a++) {
  3312. this.TotalMiscellaneous += rows[a].subTotal;
  3313. }
  3314. }
  3315. if (val == 4) {
  3316. this.trainingExpense = 0;
  3317. for (let a = 0; a < rows.length; a++) {
  3318. this.trainingExpense += rows[a].subTotal;
  3319. }
  3320. }
  3321. return;
  3322. }
  3323. var url = "/api/Groups/EnterExitCostDraftSubItemDel"
  3324. var that = this
  3325. this.$axios({
  3326. method: 'post',
  3327. url: url,
  3328. headers: {
  3329. Authorization: 'Bearer ' + that.token
  3330. },
  3331. data: {
  3332. portType: 1,
  3333. id: row.id,
  3334. deleteUserId: that.userId
  3335. }
  3336. }).then(function (res) {
  3337. if (res.data.code == 200) {
  3338. that.$message({
  3339. type: 'success',
  3340. message: res.data.msg
  3341. });
  3342. rows.splice(index, 1);
  3343. if (val == 1) {
  3344. that.TotalAccommodationFee = 0;
  3345. for (let a = 0; a < rows.length; a++) {
  3346. that.TotalAccommodationFee += rows[a].subTotal;
  3347. }
  3348. }
  3349. if (val == 2) {
  3350. that.TotalMeals = 0;
  3351. for (let a = 0; a < rows.length; a++) {
  3352. that.TotalMeals += rows[a].subTotal;
  3353. }
  3354. }
  3355. if (val == 3) {
  3356. that.TotalMiscellaneous = 0;
  3357. for (let a = 0; a < rows.length; a++) {
  3358. that.TotalMiscellaneous += rows[a].subTotal;
  3359. }
  3360. }
  3361. if (val == 4) {
  3362. that.trainingExpense = 0;
  3363. for (let a = 0; a < rows.length; a++) {
  3364. that.trainingExpense += rows[a].subTotal;
  3365. }
  3366. }
  3367. } else {
  3368. that.$message.error(res.data.msg);
  3369. }
  3370. })
  3371. }).catch(() => {
  3372. this.$message({
  3373. type: 'info',
  3374. message: '已取消删除'
  3375. });
  3376. });
  3377. },
  3378. //填入实时汇率
  3379. adoptRealtime() {
  3380. for (let at = 0; at < this.currencys.length; at++) {
  3381. for (let rt = 0; rt < this.currencyss.length; rt++) {
  3382. if (this.currencys[at].currencyCode == this.currencyss[rt].currCode) {
  3383. this.currencys[at].rate = this.currencyss[rt].rate
  3384. }
  3385. }
  3386. }
  3387. this.cubtn = false;
  3388. },
  3389. Getnewvisafee() {
  3390. this.DomesticFees.visafees = this.visainfo.totalAmt;
  3391. this.DomesticFees.visafeesDescription = this.visainfo.remark==''?'此国家未录签证数据不是没有或者看看下面费用里有没有选国家城市没国家哪里来的签证,天才!':this.visainfo.remark;
  3392. // this.getvisafeebtn = false;
  3393. },
  3394. //导出到收款账单
  3395. NationalTravelFeeImportReceivables() {
  3396. var url = "/api/Groups/NationalTravelFeeImportReceivables/" + this.value
  3397. var that = this
  3398. this.$axios({
  3399. method: 'get',
  3400. url: url,
  3401. headers: {
  3402. Authorization: 'Bearer ' + that.token
  3403. },
  3404. }).then(function (res) {
  3405. if (res.data.code == 200) {
  3406. that.$message({
  3407. type: 'success',
  3408. message: res.data.msg
  3409. });
  3410. } else {
  3411. that.$message.error(res.data.msg);
  3412. }
  3413. }).catch(function (error) {
  3414. that.$message.error("操作错误,联系信息部!");
  3415. });
  3416. },
  3417. //设置权限按钮
  3418. setpermissionsbtn(){
  3419. this.viewUsers=this.viewUsersby;
  3420. this.setpermissions=true;
  3421. },
  3422. handleCheckAllChange(val) {
  3423. // console.log(val);
  3424. // console.log(this.viewUsers);
  3425. },
  3426. //分配查看权限
  3427. EnterExitCostSetViewPermissiion() {
  3428. var url = "/api/Groups/EnterExitCostDraftSetViewPermissiion"
  3429. var that = this
  3430. this.$axios({
  3431. method: 'post',
  3432. url: url,
  3433. headers: {
  3434. Authorization: 'Bearer ' + that.token
  3435. },
  3436. data:{
  3437. portType:1,
  3438. draftId:that.value,
  3439. userIds:that.viewUsers,
  3440. currUserId:that.userId,
  3441. }
  3442. }).then(function (res) {
  3443. if (res.data.code == 200) {
  3444. that.$message({
  3445. type: 'success',
  3446. message: res.data.msg
  3447. });
  3448. that.setpermissions=false;
  3449. that.GetEnterExitCostInfobyDiId();
  3450. } else {
  3451. that.setpermissions=false;
  3452. that.$message.error(res.data.msg);
  3453. }
  3454. }).catch(function (error) {
  3455. that.$message.error("操作错误,联系信息部!");
  3456. });
  3457. },
  3458. //交通费基础费用
  3459. EnterExitCostDraftOVByGroupId() {
  3460. var url = "/api/Groups/EnterExitCostDraftOVByGroupId/"+this.value
  3461. var that = this
  3462. this.$axios({
  3463. method: 'get',
  3464. url: url,
  3465. headers: {
  3466. Authorization: 'Bearer ' + this.token
  3467. },
  3468. }).then(function (res) {
  3469. that.fulecao=[];
  3470. that.currencies=[];
  3471. if (res.data.code == 200) {
  3472. that.currencies=res.data.data.currencies;
  3473. that.fulecao=res.data.data.data;
  3474. }else {
  3475. that.$message.error(res.data.msg);
  3476. }
  3477. })
  3478. },
  3479. //交通费详细
  3480. EnterExitCostDraftOVFeeDetails() {
  3481. var url = "/api/Groups/EnterExitCostDraftOVFeeDetails/"+this.value+"?currUserId="+this.userId
  3482. var that = this
  3483. this.$axios({
  3484. method: 'get',
  3485. url: url,
  3486. headers: {
  3487. Authorization: 'Bearer ' + this.token
  3488. },
  3489. }).then(function (res) {
  3490. that.Transportationdata=[];
  3491. that.Transportationdatatotal=0;
  3492. that.pullCartFeeDetails=[];
  3493. that.pullCartFeeTotal=0;
  3494. that.trainFeeDetails=[];
  3495. that.trainFeeTotal=0;
  3496. that.cityAirTicketFeeDetails=[];
  3497. that.cityAirTicketFeeTotal=0;
  3498. that.lastUpdateUserName="";
  3499. that.lastUpdateTime="";
  3500. that.createUserName="";
  3501. that.createTime="";
  3502. that.Basicdata={};
  3503. if (res.data.code == 200) {
  3504. that.Basicdata=res.data.data;
  3505. that.Transportationdata=res.data.data.aptFeeDetails;
  3506. that.Transportationdatatotal=res.data.data.aptFeeTotal;
  3507. that.pullCartFeeDetails=res.data.data.pullCartFeeDetails;
  3508. that.pullCartFeeTotal=res.data.data.pullCartFeeTotal;
  3509. that.trainFeeDetails=res.data.data.trainFeeDetails;
  3510. that.trainFeeTotal=res.data.data.trainFeeTotal;
  3511. that.cityAirTicketFeeDetails=res.data.data.cityAirTicketFeeDetails;
  3512. that.cityAirTicketFeeTotal=res.data.data.cityAirTicketFeeTotal;
  3513. that.lastUpdateUserName=res.data.data.lastUpdateUserName;
  3514. that.lastUpdateTime=res.data.data.lastUpdateTime;
  3515. that.createUserName=res.data.data.createUserName;
  3516. that.createTime=res.data.data.createTime;
  3517. that.EnterExitCostDraftOVByGroupId();
  3518. }else {
  3519. that.$message.error(res.data.msg);
  3520. }
  3521. })
  3522. },
  3523. //交通费弹窗
  3524. openTransportation(){
  3525. this.EnterExitCostDraftOVFeeDetails();
  3526. this.TransportationVisible=true;
  3527. },
  3528. //选择城市交通费
  3529. UrbanSelect(val, item, index) {
  3530. var obj = {}
  3531. obj = this.fulecao.find(function (i,indexs) {
  3532. return i.id === item
  3533. });
  3534. val.cost=obj.price;
  3535. val.otherCost=obj.otherPrice;
  3536. val.guideCost=obj.guidePrice;
  3537. val.currencyName=obj.currencyName
  3538. this.UrbanModify(val,val.currencyName)
  3539. },
  3540. numFilters(value) {
  3541. // 截取当前数据到小数点后两位
  3542. let tempVal = parseFloat(value).toFixed(3);
  3543. let realVal = tempVal.substring(0, tempVal.length - 1);
  3544. return realVal;
  3545. },
  3546. deleteRowJSJ(index, rows,row) {
  3547. this.$confirm('此操作只是移除该条数据做出计算并未保存,如要删除该条数据请点击保存!', '提示', {
  3548. confirmButtonText: '确定',
  3549. cancelButtonText: '取消',
  3550. type: 'warning'
  3551. }).then(() => {
  3552. rows.splice(index, 1);
  3553. this.UrbanTotal();
  3554. }).catch(() => {
  3555. this.$message({
  3556. type: 'info',
  3557. message: '操作已取消!'
  3558. });
  3559. });
  3560. },
  3561. deleteRowLC(index, rows,row) {
  3562. this.$confirm('此操作只是移除该条数据做出计算并未保存,如要删除该条数据请点击保存!', '提示', {
  3563. confirmButtonText: '确定',
  3564. cancelButtonText: '取消',
  3565. type: 'warning'
  3566. }).then(() => {
  3567. rows.splice(index, 1);
  3568. this.UrbanTotalLC();
  3569. }).catch(() => {
  3570. this.$message({
  3571. type: 'info',
  3572. message: '操作已取消!'
  3573. });
  3574. });
  3575. },
  3576. deleteRowHC(index, rows,row) {
  3577. this.$confirm('此操作只是移除该条数据做出计算并未保存,如要删除该条数据请点击保存!', '提示', {
  3578. confirmButtonText: '确定',
  3579. cancelButtonText: '取消',
  3580. type: 'warning'
  3581. }).then(() => {
  3582. rows.splice(index, 1);
  3583. this.UrbanTotalHC();
  3584. }).catch(() => {
  3585. this.$message({
  3586. type: 'info',
  3587. message: '操作已取消!'
  3588. });
  3589. });
  3590. },
  3591. deleteRowJP(index, rows,row) {
  3592. this.$confirm('此操作只是移除该条数据做出计算并未保存,如要删除该条数据请点击保存!', '提示', {
  3593. confirmButtonText: '确定',
  3594. cancelButtonText: '取消',
  3595. type: 'warning'
  3596. }).then(() => {
  3597. rows.splice(index, 1);
  3598. this.UrbanTotalJP();
  3599. }).catch(() => {
  3600. this.$message({
  3601. type: 'info',
  3602. message: '操作已取消!'
  3603. });
  3604. });
  3605. },
  3606. //改值计算
  3607. UrbanModify(val,bizhong){
  3608. var total=0
  3609. var obj = {}
  3610. obj = this.currencies.find(function (i,indexs) {
  3611. return i.currencyCode === bizhong
  3612. });
  3613. total=(Number(val.cost/this.Basicdata.groupSize)+Number(val.otherCost)+Number(val.guideCost))*val.serviceCount*val.coefficient*obj.rate;
  3614. val.quote=this.numFilters(total)
  3615. this.UrbanTotal();
  3616. },
  3617. //改值计算LC
  3618. UrbanModifyLC(val){
  3619. var total=0
  3620. val.currencyName="CNY"
  3621. total=Number(val.cost)*val.coefficient;
  3622. val.quote=this.numFilters(total)
  3623. this.UrbanTotalLC();
  3624. },
  3625. //计算总价LC
  3626. UrbanTotalLC(){
  3627. this.pullCartFeeTotal=0
  3628. for(let i=0;i<this.pullCartFeeDetails.length;i++){
  3629. this.pullCartFeeTotal+=Number(this.pullCartFeeDetails[i].quote)
  3630. }
  3631. },
  3632. //改值计算HC
  3633. UrbanModifyHC(val){
  3634. var total=0
  3635. val.currencyName="CNY"
  3636. total=Number(val.cost)*val.coefficient;
  3637. val.quote=this.numFilters(total)
  3638. this.UrbanTotalHC();
  3639. },
  3640. //计算总价HC
  3641. UrbanTotalHC(){
  3642. this.trainFeeTotal=0
  3643. for(let i=0;i<this.trainFeeDetails.length;i++){
  3644. this.trainFeeTotal+=Number(this.trainFeeDetails[i].quote)
  3645. }
  3646. },
  3647. //改值计算JP
  3648. UrbanModifyJP(val){
  3649. var total=0
  3650. val.currencyName="CNY"
  3651. total=Number(val.cost)*val.coefficient;
  3652. val.quote=this.numFilters(total)
  3653. this.UrbanTotalJP();
  3654. },
  3655. //计算总价JP
  3656. UrbanTotalJP(){
  3657. this.cityAirTicketFeeTotal=0
  3658. for(let i=0;i<this.cityAirTicketFeeDetails.length;i++){
  3659. this.cityAirTicketFeeTotal+=Number(this.cityAirTicketFeeDetails[i].quote)
  3660. }
  3661. },
  3662. //计算总价
  3663. UrbanTotal(){
  3664. this.Transportationdatatotal=0
  3665. for(let i=0;i<this.Transportationdata.length;i++){
  3666. this.Transportationdatatotal+=Number(this.Transportationdata[i].quote)
  3667. }
  3668. // console.log(total);
  3669. // this.TotalExpenses.TravellingExpensesJJ=this.numFilters(total)
  3670. // this.TotalExpenses.TravellingExpensesGW=this.numFilters(total)
  3671. // this.TotalExpenses.TravellingExpensesTD=this.numFilters(total)
  3672. // this.calculation();
  3673. },
  3674. //添加一行接送机
  3675. addTransportationdata(){
  3676. this.Transportationdata.push({
  3677. coefficient: 2.5,
  3678. cost: 0,
  3679. currencyName: "CNY",
  3680. guideCost: 0,
  3681. no: this.Transportationdata.length + 1,
  3682. otherCost: 0,
  3683. ovId: '',
  3684. quote: 0,
  3685. remark: "",
  3686. serviceCount: 1
  3687. });
  3688. },
  3689. //添加一行拉车
  3690. addpullCartFeeDetails(){
  3691. this.pullCartFeeDetails.push({
  3692. no: this.pullCartFeeDetails.length + 1,
  3693. cost: 0,
  3694. coefficient: 2.50,
  3695. currencyName: "",
  3696. quote: 0,
  3697. remark: ""
  3698. });
  3699. },
  3700. //添加一行火车
  3701. addtrainFeeDetails(){
  3702. this.trainFeeDetails.push({
  3703. no: this.trainFeeDetails.length + 1,
  3704. cost: 0,
  3705. coefficient: 2.50,
  3706. currencyName: "",
  3707. quote: 0,
  3708. remark: ""
  3709. });
  3710. },
  3711. //添加一行城市机票(
  3712. addcityAirTicketFeeDetails(){
  3713. this.cityAirTicketFeeDetails.push({
  3714. no: this.cityAirTicketFeeDetails.length + 1,
  3715. cost: 0,
  3716. coefficient: 2.50,
  3717. currencyName: "",
  3718. quote: 0,
  3719. remark: ""
  3720. });
  3721. },
  3722. //城市交通费保存
  3723. EnterExitCostDraftOVFeeSave() {
  3724. for(let i=0;i<this.Transportationdata.length;i++){
  3725. if(this.Transportationdata[i].ovId==""){
  3726. this.$message.error("请查看是否除备注外的必填项均已填写!");
  3727. return;
  3728. }
  3729. }
  3730. var url = "/api/Groups/EnterExitCostDraftOVFeeSave"
  3731. var that = this
  3732. this.$axios({
  3733. method: 'post',
  3734. url: url,
  3735. headers: {
  3736. Authorization: 'Bearer ' + this.token
  3737. },
  3738. data:{
  3739. aptFeeTotal:that.Transportationdatatotal,
  3740. aptFeeDetails:that.Transportationdata,
  3741. pullCartFeeTotal:that.pullCartFeeTotal,
  3742. pullCartFeeDetails:that.pullCartFeeDetails,
  3743. trainFeeTotal:that.trainFeeTotal,
  3744. trainFeeDetails:that.trainFeeDetails,
  3745. cityAirTicketFeeTotal:that.cityAirTicketFeeTotal,
  3746. cityAirTicketFeeDetails:that.cityAirTicketFeeDetails,
  3747. currencies:that.currencies,
  3748. lastUpdateUserName:that.lastUpdateUserName,
  3749. lastUpdateTime:that.lastUpdateTime,
  3750. createUserName:that.createUserName,
  3751. createTime:that.createTime,
  3752. draftId:that.value,
  3753. currUserId:that.userId,
  3754. groupSize:that.Basicdata.groupSize,
  3755. }
  3756. }).then(function (res) {
  3757. if (res.data.code == 200) {
  3758. that.TotalExpenses.TravellingExpensesJJ=that.numFilters(that.Transportationdatatotal + that.pullCartFeeTotal + that.trainFeeTotal + that.cityAirTicketFeeTotal);
  3759. that.TotalExpenses.TravellingExpensesGW=that.numFilters(that.Transportationdatatotal + that.pullCartFeeTotal + that.trainFeeTotal + that.cityAirTicketFeeTotal);
  3760. that.TotalExpenses.TravellingExpensesTD=that.numFilters(that.Transportationdatatotal + that.pullCartFeeTotal + that.trainFeeTotal + that.cityAirTicketFeeTotal);
  3761. if (that.TotalExpenses.twoItemRemark=='') {
  3762. that.TotalExpenses.twoItemRemark=res.data.data.label;
  3763. }else{
  3764. if (that.TotalExpenses.twoItemRemark.split("、").length > 1) {
  3765. that.TotalExpenses.twoItemRemark.split("、")[1] = res.data.data.label;
  3766. that.TotalExpenses.twoItemRemark = that.TotalExpenses.twoItemRemark.split("、")[0] + '、' + that.TotalExpenses.twoItemRemark.split("、")[1];
  3767. that.TransportationVisible = false;
  3768. that.$message.success(res.data.msg);
  3769. return;
  3770. }
  3771. if (that.TotalExpenses.twoItemRemark.includes('接送机')) {
  3772. console.log(1);
  3773. that.TotalExpenses.twoItemRemark=res.data.data.label
  3774. }else{
  3775. that.TotalExpenses.twoItemRemark=that.TotalExpenses.twoItemRemark+'、'+res.data.data.label;
  3776. }
  3777. }
  3778. that.TransportationVisible=false;
  3779. that.$message.success(res.data.msg);
  3780. }else {
  3781. that.$message.error(res.data.msg);
  3782. }
  3783. })
  3784. },
  3785. //刷新城市区间费标准(保存后刷新,数据修改重新赋值计算)
  3786. RefreshInterval(){
  3787. this.EnterExitCostDraftOVByGroupId();
  3788. var that=this;
  3789. this.$confirm('刷新可能标准会有修改与之前的金额会有不同请注意查看!且刷新只是重新计算并未保存重新计算后的值!是否继续操作?', '提示', {
  3790. confirmButtonText: '确定',
  3791. cancelButtonText: '取消',
  3792. type: 'warning'
  3793. }).then(() => {
  3794. for (let i = 0; i < that.Transportationdata.length; i++) {
  3795. var obj = {}
  3796. obj = that.fulecao.find(function (item, indexs) {
  3797. return item.id === that.Transportationdata[i].ovId
  3798. })
  3799. this.Transportationdata[i].cost = obj.price;
  3800. this.Transportationdata[i].otherCost = obj.otherPrice;
  3801. this.Transportationdata[i].guideCost = obj.guidePrice;
  3802. this.Transportationdata[i].currencyName = obj.currencyName
  3803. this.UrbanModify(this.Transportationdata[i], this.Transportationdata[i].currencyName)
  3804. }
  3805. }).catch(() => {
  3806. this.$message({
  3807. type: 'info',
  3808. message: '已取消操作'
  3809. });
  3810. });
  3811. },
  3812. //baoliuliangweixiaoshu
  3813. reservetwo(value) {
  3814. // 截取当前数据到小数点后两位
  3815. let realVal = new Decimal(value).toFixed(2)
  3816. return realVal
  3817. },
  3818. },
  3819. filters: {
  3820. numFilter(value) {
  3821. // 截取当前数据到小数点后两位
  3822. let realVal = new Decimal(value).toFixed(2)
  3823. return realVal
  3824. }
  3825. },
  3826. watch: {
  3827. choiceOne(val) {//境内费用(其他费用)选择框
  3828. this.calculation();
  3829. },
  3830. choiceThree(val) {//住宿费合计选择框
  3831. this.calculation();
  3832. },
  3833. choiceFour(val) {//伙食费合计选择框
  3834. this.calculation();
  3835. },
  3836. choiceFive(val) {//公杂费合计选择框
  3837. this.calculation();
  3838. },
  3839. choiceSix(val) {//培训费用选择框
  3840. this.calculation();
  3841. },
  3842. choiceSeven(val) {//其他费用选择框
  3843. this.calculation();
  3844. },
  3845. //加参数
  3846. sumJJC(val) {//经济舱小计选择框
  3847. this.calculation();
  3848. },
  3849. sumGWC(val) {//公务舱小计选择框
  3850. this.calculation();
  3851. },
  3852. sumTDC(val) {//公务舱小计选择框
  3853. this.calculation();
  3854. },
  3855. 'DomesticFees.total': {
  3856. handler(newVal, oldVal) {
  3857. this.calculation();
  3858. // this.jjctotal=this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.EconomyClasstotal;
  3859. // this.gwctotal=this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.BusinessClasstotal;
  3860. },
  3861. },
  3862. TotalAccommodationFee: {
  3863. handler(newVal, oldVal) {
  3864. this.calculation();
  3865. // this.jjctotal=this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.EconomyClasstotal;
  3866. // this.gwctotal=this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.BusinessClasstotal;
  3867. },
  3868. },
  3869. TotalMeals: {
  3870. handler(newVal, oldVal) {
  3871. this.calculation();
  3872. // this.jjctotal=this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.EconomyClasstotal;
  3873. // this.gwctotal=this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.BusinessClasstotal;
  3874. },
  3875. },
  3876. TotalMiscellaneous: {
  3877. handler(newVal, oldVal) {
  3878. this.calculation();
  3879. // this.jjctotal=this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.EconomyClasstotal;
  3880. // this.gwctotal=this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.BusinessClasstotal;
  3881. },
  3882. },
  3883. trainingExpense: {
  3884. handler(newVal, oldVal) {
  3885. this.calculation();
  3886. // this.jjctotal=this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.EconomyClasstotal;
  3887. // this.gwctotal=this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.BusinessClasstotal;
  3888. },
  3889. },
  3890. otherExpense: {
  3891. handler(newVal, oldVal) {
  3892. this.calculation();
  3893. // this.jjctotal=this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.EconomyClasstotal;
  3894. // this.gwctotal=this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.BusinessClasstotal;
  3895. },
  3896. },
  3897. 'TotalExpenses.EconomyClasstotal': {
  3898. handler(newVal, oldVal) {
  3899. this.calculation();
  3900. // this.jjctotal=this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.EconomyClasstotal;
  3901. // this.gwctotal=this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.BusinessClasstotal;
  3902. },
  3903. },
  3904. 'TotalExpenses.BusinessClasstotal': {
  3905. handler(newVal, oldVal) {
  3906. this.calculation();
  3907. // this.jjctotal=this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.EconomyClasstotal;
  3908. // this.gwctotal=this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.BusinessClasstotal;
  3909. // console.log(this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.BusinessClasstotal)
  3910. },
  3911. },
  3912. 'TotalExpenses.Firstclasstotal': {
  3913. handler(newVal, oldVal) {
  3914. this.calculation();
  3915. // this.jjctotal=this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.EconomyClasstotal;
  3916. // this.gwctotal=this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.BusinessClasstotal;
  3917. // console.log(this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.BusinessClasstotal)
  3918. },
  3919. },
  3920. //境内费用非空处理
  3921. DomesticFees: {
  3922. handler(newVal, oldVal) {
  3923. if (newVal.insurance == undefined) {
  3924. newVal.insurance = 0
  3925. }
  3926. if (newVal.nucleicfees == undefined) {
  3927. newVal.nucleicfees = 0
  3928. }
  3929. if (newVal.serviceCharge == undefined) {
  3930. newVal.serviceCharge = 0
  3931. }
  3932. if (newVal.ticketsExhibitionL == undefined) {
  3933. newVal.ticketsExhibitionL = 0
  3934. }
  3935. if (newVal.vaccinefees == undefined) {
  3936. newVal.vaccinefees = 0
  3937. }
  3938. if (newVal.visafees == undefined) {
  3939. newVal.visafees = 0
  3940. }
  3941. },
  3942. immediate: true,
  3943. deep: true // 可以深度检测到 person 对象的属性值的变化
  3944. },
  3945. //国际旅费非空处理
  3946. TotalExpenses: {
  3947. handler(newVal, oldVal) {
  3948. if (newVal.EconomyClass == undefined) {
  3949. newVal.EconomyClass = 0
  3950. }
  3951. if (newVal.BusinessClass == undefined) {
  3952. newVal.BusinessClass = 0
  3953. }
  3954. if (newVal.TravellingExpensesJJ == undefined) {
  3955. newVal.TravellingExpensesJJ = 0
  3956. }
  3957. if (newVal.TravellingExpensesGW == undefined) {
  3958. newVal.TravellingExpensesGW = 0
  3959. }
  3960. if (newVal.TravellingExpensesTD == undefined) {
  3961. newVal.TravellingExpensesTD = 0
  3962. }
  3963. },
  3964. immediate: true,
  3965. deep: true // 可以深度检测到 person 对象的属性值的变化
  3966. },
  3967. //监听汇率数组是否变化
  3968. currencys: {
  3969. handler(val) {
  3970. this.TotalAccommodationFee = 0
  3971. for (let q = 0; q < this.quarterageData.length; q++) {
  3972. for (let qc = 0; qc < this.currencys.length; qc++) {
  3973. if (this.currencys[qc].currencyCode == this.quarterageData[q].curremcyCode||this.currencys[qc].currencyName == this.quarterageData[q].currencyName) {
  3974. this.quarterageData[q].subTotal = (this.currencys[qc].rate * this.quarterageData[q].cost).toFixed(2)
  3975. }
  3976. }
  3977. this.TotalAccommodationFee += Number(this.quarterageData[q].subTotal);
  3978. }
  3979. //伙食费
  3980. this.TotalMeals = 0
  3981. for (let b = 0; b < this.boardWagesData.length; b++) {
  3982. for (let bc = 0; bc < this.currencys.length; bc++) {
  3983. if (this.currencys[bc].currencyCode == this.boardWagesData[b].curremcyCode||this.currencys[bc].currencyName == this.boardWagesData[b].currencyName) {
  3984. this.boardWagesData[b].subTotal = this.currencys[bc].rate * this.boardWagesData[b].cost
  3985. }
  3986. }
  3987. this.TotalMeals += this.boardWagesData[b].subTotal
  3988. }
  3989. //公杂费
  3990. this.TotalMiscellaneous = 0
  3991. for (let m = 0; m < this.miscellaneousFeeData.length; m++) {
  3992. for (let mc = 0; mc < this.currencys.length; mc++) {
  3993. if (this.currencys[mc].currencyCode == this.miscellaneousFeeData[m].curremcyCode||this.currencys[mc].currencyName == this.miscellaneousFeeData[m].currencyName) {
  3994. this.miscellaneousFeeData[m].subTotal = this.currencys[mc].rate * this.miscellaneousFeeData[m].cost
  3995. }
  3996. }
  3997. this.TotalMiscellaneous += this.miscellaneousFeeData[m].subTotal
  3998. }
  3999. //培训费
  4000. this.trainingExpense = 0
  4001. for (let t = 0; t < this.trainingExpenseData.length; t++) {
  4002. for (let tc = 0; tc < this.currencys.length; tc++) {
  4003. if (this.currencys[tc].currencyCode == this.trainingExpenseData[t].curremcyCode||this.currencys[tc].currencyName == this.trainingExpenseData[t].currencyName) {
  4004. this.trainingExpenseData[t].subTotal = this.currencys[tc].rate * this.trainingExpenseData[t].cost
  4005. }
  4006. }
  4007. this.trainingExpense += this.trainingExpenseData[t].subTotal
  4008. }
  4009. //其他费用
  4010. for (let nc = 0; nc < this.currencys.length; nc++) {
  4011. for (let nt = 0; nt < this.othercurrencys.length; nt++) {
  4012. if (this.currencys[nc].currencyCode == this.othercurrencys[nt].currencyCode||this.currencys[nc].currencyName == this.othercurrencys[nt].currencyName) {
  4013. this.othercurrencys[nt].rate = this.currencys[nc].rate;
  4014. }
  4015. }
  4016. }
  4017. this.otherExpense = 0;
  4018. for (let wm = 0; wm < this.otherData.length; wm++) {
  4019. for (let cj = 0; cj < this.othercurrencys.length; cj++) {
  4020. if (this.otherData[wm].currency == this.othercurrencys[cj].currencyId) {
  4021. this.otherData[wm].rate = this.othercurrencys[cj].rate
  4022. }
  4023. }
  4024. this.otherExpense += this.otherData[wm].subTotal;
  4025. if (this.otherData[wm].rate) {
  4026. this.otherData[wm].subTotal = this.otherData[wm].cost * this.otherData[wm].rate;
  4027. }
  4028. }
  4029. },
  4030. deep: true
  4031. }
  4032. },
  4033. created() {
  4034. this.QuerySetData();
  4035. },
  4036. mounted() {
  4037. this.token = JSON.parse(localStorage.getItem('userinif')).token;
  4038. this.userId = JSON.parse(localStorage.getItem('userinif')).userInfo.userId;
  4039. this.value = JSON.parse(localStorage.getItem('sgvalue'))
  4040. this.GetEnterExitCostDataSource();
  4041. this.EnterExitDraftProvBelongCostDataSource();
  4042. // this.GetNationalTravelFeeData();
  4043. },
  4044. destroyed() {
  4045. window.localStorage.removeItem('sgvalue');
  4046. },
  4047. }
  4048. </script>
  4049. <style>
  4050. .Entrydraft-all {
  4051. background-color: #fff;
  4052. padding: 10px;
  4053. box-shadow: 0 0 5px #0005;
  4054. border-radius: 10px;
  4055. height: 100%;
  4056. min-height: 830px;
  4057. }
  4058. .Entrydraft-head-li label {
  4059. color: #606266;
  4060. font-size: 15px;
  4061. font-weight: 600;
  4062. }
  4063. .Entrydraft-head {
  4064. display: flex;
  4065. justify-content: space-between;
  4066. flex-wrap: wrap;
  4067. }
  4068. .Entrydraft-form {
  4069. margin-top: 10px;
  4070. border-top: 2px solid #409EFF;
  4071. }
  4072. .Entrydraft-li-inif {
  4073. display: flex;
  4074. align-items: center;
  4075. width: 100%;
  4076. border-top: 1px solid #ebeef5;
  4077. padding: 5px 0;
  4078. }
  4079. .Entrydraft-li-inif:last-child {
  4080. border-bottom: 1px solid #ebeef5;
  4081. }
  4082. .Entrydraft-li-lable {
  4083. display: flex;
  4084. justify-content: space-between;
  4085. align-items: center;
  4086. margin: 10px 0;
  4087. margin-top: 20px;
  4088. }
  4089. .Entrydraft-li-lables {
  4090. display: flex;
  4091. align-items: center;
  4092. margin: 10px 0;
  4093. margin-top: 20px;
  4094. }
  4095. .Entrydraft-inif-box .depipt {
  4096. display: inline-block;
  4097. width: 240px;
  4098. }
  4099. .Entrydraft-inif-box {
  4100. margin-right: 20px;
  4101. }
  4102. .Entrydraft-li-inif label {
  4103. font-size: 14px;
  4104. color: #606266;
  4105. }
  4106. .Entrydraft-form .redzhu {
  4107. font-size: 14px;
  4108. color: red;
  4109. }
  4110. .sub-boxs {
  4111. -ms-user-select: none;
  4112. -khtml-user-select: none;
  4113. -webkit-user-select: none;
  4114. -moz-user-select: none;
  4115. font-size: 12px;
  4116. font-family: "微软雅黑";
  4117. user-select: none;
  4118. background-color: #FFF;
  4119. background-image: none;
  4120. border-radius: 4px;
  4121. border: 1px solid #DCDFE6;
  4122. -webkit-box-sizing: border-box;
  4123. box-sizing: border-box;
  4124. color: #606266;
  4125. display: inline-block;
  4126. height: 28px;
  4127. line-height: 28px;
  4128. outline: 0;
  4129. padding: 0 15px;
  4130. -webkit-transition: border-color .2s cubic-bezier(.645, .045, .355, 1);
  4131. transition: border-color .2s cubic-bezier(.645, .045, .355, 1);
  4132. }
  4133. .btn-Entrydraft {
  4134. text-align: right;
  4135. }
  4136. .Entrydraft-all .el-checkbox__inner {
  4137. width: 18px;
  4138. height: 18px;
  4139. margin-right: 10px;
  4140. }
  4141. .Entrydraft-all .el-checkbox__inner::after {
  4142. height: 10px;
  4143. left: 6px;
  4144. }
  4145. .Entrydraft-all .el-table th.el-table__cell>.cell {
  4146. text-align: center;
  4147. }
  4148. .Entrydraft-all .el-button+.el-button{
  4149. margin-left: 0px;
  4150. }
  4151. .Entrydraft-all .permissionsbox .el-checkbox-group{
  4152. display: flex;
  4153. flex-wrap: wrap;
  4154. justify-content: space-between;
  4155. }
  4156. .Entrydraft-all .permissionsbox .el-checkbox{
  4157. width: 150px;
  4158. margin-right: 0;
  4159. }
  4160. .jiaotongfeiS-ul{
  4161. margin-top: 20px;
  4162. display: flex;
  4163. justify-content: space-between;
  4164. }
  4165. .jiaotongfeiS-li{
  4166. width: 32.5%;
  4167. }
  4168. .inputNumberClassS[class-unit] {
  4169. --el-input-number-unit-offset-x: 35px;
  4170. position: relative;
  4171. }
  4172. .inputNumberClassS[class-unit]::after {
  4173. content: attr(class-unit);
  4174. height: 100%;
  4175. display: flex;
  4176. align-items: center;
  4177. position: absolute;
  4178. top: 0;
  4179. right: 5px;
  4180. color: #C0C4CC;
  4181. }
  4182. .inputNumberClassS[class-unit] .el-input__inner {
  4183. padding-right:25px;
  4184. }
  4185. .Entrydraft-all .ppnum{
  4186. width: 40px;
  4187. }
  4188. .ppnum.el-input-number.is-without-controls .el-input__inner{
  4189. padding: 0;
  4190. margin: 0;
  4191. text-align: center;
  4192. }
  4193. </style>