EntryDetails.vue 134 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021
  1. <template>
  2. <div v-loading.fullscreen.lock="fullscreenLoading">
  3. <div class="Entry-all">
  4. <el-dialog v width="400px" title="设置查看权限" class="permissionsbox" :visible.sync="setpermissions" :close-on-click-modal="false">
  5. <el-checkbox-group v-model="viewUsers" @change="handleCheckAllChange">
  6. <el-checkbox v-for="item in viewUsersarr" :label="item.id" :key="item.id">{{item.name}}</el-checkbox>
  7. </el-checkbox-group>
  8. <div style="text-align: right;margin-top: 15px;">
  9. <el-button size="mini" @click="EnterExitCostSetViewPermissiion" type="primary">分配</el-button>
  10. <el-button size="mini" @click="setpermissions=false">取消</el-button>
  11. </div>
  12. </el-dialog>
  13. <div class="Entry-head">
  14. <div class="Entry-head-li">
  15. <label>团组名称:</label>
  16. <el-select style="width:250px" @change="chengvalue" v-model="value" filterable placeholder="请选择">
  17. <el-option v-for="item in options" :key="item.id" :label="item.groupName" :value="item.id">
  18. <span v-if="item.isNull=='false'" style="color:#409EFF">{{ item.groupName }}</span>
  19. <span v-else style="color:gray">{{ item.groupName }}</span>
  20. </el-option>
  21. </el-select>
  22. </div>
  23. <div v-if="isSave" class="Entry-head-li">
  24. <!-- <el-button type="primary">计算费用</el-button> -->
  25. <el-button @click="NationalTravelFeeImportReceivables" type="primary">导出到收款账单</el-button>
  26. <el-button @click="cleanout" type="primary">全部清空</el-button>
  27. <el-button @click="storage()" type="primary">保存</el-button>
  28. <el-select style="width:202px" v-model="listvalue" placeholder="请选择">
  29. <el-option v-for="item in listvalueoptions" :key="item.id" :label="item.name" :value="item.id">
  30. </el-option>
  31. </el-select>
  32. <el-button @click="eptschedule(1)" type="primary">导出所选明细表</el-button>
  33. <el-select style="width:202px" v-model="tablevalue" placeholder="请选择">
  34. <el-option v-for="item in tablevalueoptions" :key="item.id" :label="item.name" :value="item.id">
  35. </el-option>
  36. </el-select>
  37. <el-button @click="eptschedule(2)" type="primary">导出下拉所选表格</el-button>
  38. <el-button v-if="isAssignPerm" @click="setpermissionsbtn" type="primary">设置权限</el-button>
  39. <el-button @click="eptschedule(3)" type="primary">团组成员名单</el-button>
  40. </div>
  41. </div>
  42. <div class="Entry-form">
  43. <div class="Entry-form-li">
  44. <div class="Entry-li-lables">
  45. <el-checkbox v-model="choiceOne"></el-checkbox>
  46. <div class="li-lable">一、境内费用(其他费用)</div>
  47. <div class="li-lable">
  48. <span class="redzhu">(注:填好数值鼠标点击其他区域计算合计)</span>
  49. <label>合计:</label>
  50. <div class="sub-boxs">
  51. {{ DomesticFees.total=(DomesticFees.visafees + DomesticFees.vaccinefees +
  52. DomesticFees.nucleicfees + DomesticFees.serviceCharge + DomesticFees.insurance +
  53. DomesticFees.ticketsExhibitionL) | numFilter }}
  54. </div>
  55. <span>元/人</span>
  56. </div>
  57. </div>
  58. <div class="Entry-li-inif">
  59. <div class="Entry-inif-box">
  60. <label>签证费:</label>
  61. <el-input-number size="mini" :controls="false" :precision="2"
  62. v-model="DomesticFees.visafees"></el-input-number>
  63. <span>元/人</span>
  64. </div>
  65. <div class="Entry-inif-box">
  66. <label>签证费用描述:</label>
  67. <el-input style="width:900px" size="mini"
  68. v-model="DomesticFees.visafeesDescription"></el-input>
  69. <span class="redzhu">{{ visabeizhu }}</span>
  70. </div>
  71. <el-button @click="Getnewvisafee" type="primary"
  72. size="mini">获取最新签证费用</el-button>
  73. </div>
  74. <div class="Entry-li-inif">
  75. <div class="Entry-inif-box">
  76. <label>疫苗费:</label>
  77. <el-input-number size="mini" :controls="false" :precision="2"
  78. v-model="DomesticFees.vaccinefees"></el-input-number>
  79. <span>元/人</span>
  80. </div>
  81. <div class="Entry-inif-box">
  82. <label>核酸检测费:</label>
  83. <el-input-number size="mini" :controls="false" :precision="2"
  84. v-model="DomesticFees.nucleicfees"></el-input-number>
  85. <span>元/人;</span>
  86. </div>
  87. <div class="Entry-inif-box">
  88. <label> 服务费:</label>
  89. <el-input-number size="mini" :controls="false" :precision="2"
  90. v-model="DomesticFees.serviceCharge"></el-input-number>
  91. <span>元/人;</span>
  92. </div>
  93. </div>
  94. <div class="Entry-li-inif">
  95. <div class="Entry-inif-box">
  96. <label>保险费:</label>
  97. <el-input-number size="mini" :controls="false" :precision="2"
  98. v-model="DomesticFees.insurance"></el-input-number>
  99. <span>元/人</span>
  100. </div>
  101. <div class="Entry-inif-box">
  102. <label>参展门票:</label>
  103. <el-input-number size="mini" :controls="false" :precision="2"
  104. v-model="DomesticFees.ticketsExhibitionL"></el-input-number>
  105. <span>元/人;</span>
  106. </div>
  107. <div class="Entry-inif-box">
  108. <label>备注:</label>
  109. <el-input style="width:900px" size="mini"
  110. v-model="DomesticFees.firstItemRemark"></el-input>
  111. </div>
  112. </div>
  113. </div>
  114. <div class="Entry-form-li">
  115. <div class="Entry-li-lables">
  116. <!-- <el-checkbox v-model="choiceTwo"></el-checkbox> -->
  117. <div class="li-lable">二、国际旅费合计:</div>
  118. <div style="display: flex;">
  119. <div class="li-lable">
  120. <el-checkbox style="margin-right: -10px;" v-model="sumJJC"></el-checkbox>
  121. <label>(经济舱)</label>
  122. <div class="sub-boxs">
  123. {{ TotalExpenses.EconomyClasstotal=(TotalExpenses.EconomyClass +
  124. TotalExpenses.TravellingExpenses) | numFilter }}
  125. </div>
  126. <span>元/人</span>
  127. </div>
  128. &nbsp;&nbsp;&nbsp;&nbsp;
  129. <div class="li-lable">
  130. <el-checkbox style="margin-right: -10px;" v-model="sumGWC"></el-checkbox>
  131. <label>(公务舱)</label>
  132. <div class="sub-boxs">
  133. {{ TotalExpenses.BusinessClasstotal=(TotalExpenses.BusinessClass +
  134. TotalExpenses.TravellingExpenses) | numFilter }}
  135. </div>
  136. <span>元/人</span>
  137. </div>
  138. &nbsp;&nbsp;&nbsp;&nbsp;
  139. <div class="li-lable">
  140. <el-checkbox style="margin-right: -10px;" v-model="sumTDC"></el-checkbox>
  141. <label>(头等舱)</label>
  142. <div class="sub-boxs">
  143. {{ TotalExpenses.Firstclasstotal=(TotalExpenses.Firstclass +
  144. TotalExpenses.TravellingExpenses) | numFilter }}
  145. </div>
  146. <span>元/人</span>
  147. </div>
  148. </div>
  149. </div>
  150. <div class="Entry-li-inif">
  151. <label>国际机票:&nbsp; &nbsp; &nbsp; </label>
  152. <div class="Entry-inif-box">
  153. <label>(经济舱):</label>
  154. <el-input-number size="mini" :controls="false" :precision="2"
  155. v-model="TotalExpenses.EconomyClass"></el-input-number>
  156. <span>元/人</span>
  157. </div>
  158. <div class="Entry-inif-box">
  159. <label>(公务舱):</label>
  160. <el-input-number size="mini" :controls="false" :precision="2"
  161. v-model="TotalExpenses.BusinessClass"></el-input-number>
  162. <span>元/人;</span>
  163. </div>
  164. <div class="Entry-inif-box">
  165. <label>(头等舱):</label>
  166. <el-input-number size="mini" :controls="false" :precision="2"
  167. v-model="TotalExpenses.Firstclass"></el-input-number>
  168. <span>元/人;</span>
  169. </div>
  170. <span v-if="airDataArr.length<=0" class="redzhu">(机票数据未录入)</span>
  171. <div v-else>
  172. <span class="redzhu">有多条机票费用数据请自行选择!!</span>&nbsp;&nbsp;
  173. <el-select style="width:400px" @change="Fillin" size="mini" v-model="airDataArrvalue" placeholder="请选择">
  174. <el-option
  175. v-for="item in airDataArr"
  176. :key="item.remark"
  177. :label="item.remark"
  178. :value="item.remark">
  179. <el-tooltip
  180. popper-class="custom-tooltip-style"
  181. effect="light"
  182. :content="item.tripDesc"
  183. placement="right">
  184. <span>{{ item.remark }}</span>
  185. </el-tooltip>
  186. </el-option>
  187. </el-select>
  188. <!-- <el-button type="primary" @click="Fillin" size="mini">填 入</el-button> -->
  189. </div>
  190. </div>
  191. <div class="Entry-li-inif">
  192. <div class="Entry-inif-box">
  193. <label>城市区间交通费:</label>
  194. <el-input-number size="mini" :controls="false" :precision="2"
  195. v-model="TotalExpenses.TravellingExpenses"></el-input-number>
  196. <span>元/人;</span>
  197. </div>
  198. </div>
  199. <div class="Entry-li-inif">
  200. <div class="Entry-inif-box">
  201. <label>备注:</label>
  202. <el-input style="width:1000px" size="mini"
  203. v-model="TotalExpenses.twoItemRemark"></el-input>
  204. </div>
  205. </div>
  206. <div class="Entry-li-inif">
  207. <div v-for="(item, index) in currencys" :key="index" class="Entry-inif-box">
  208. <label>{{ item.currencyName }}汇率:</label>
  209. <el-input-number size="mini" :controls="false" :precision="4"
  210. v-model="item.rate"></el-input-number>
  211. </div>
  212. <span style="color:red;">* 若客户有意见,需要与财务商量后进行适当调整 </span>
  213. <!-- <el-popover
  214. placement="top"
  215. width="402"
  216. trigger="hover">
  217. <el-table border :data="currencyss">
  218. <el-table-column width="100" property="currName" label="币种"></el-table-column>
  219. <el-table-column width="100" property="rate" label="汇率"></el-table-column>
  220. <el-table-column width="200" property="lastUpdateDt" label="更新时间"></el-table-column>
  221. </el-table>
  222. <span v-show="cubtn" slot="reference" class="redzhu">{{CurrencysRemark}}</span>
  223. </el-popover>
  224. &nbsp;&nbsp;&nbsp;&nbsp;
  225. <el-button v-if="cubtn" @click="adoptRealtime" type="primary" size="mini">采用最新汇率</el-button> -->
  226. </div>
  227. </div>
  228. <div class="Entry-form-li">
  229. <div class="Entry-li-lable">
  230. <div style="display: flex;align-items: center;">
  231. <el-checkbox v-model="choiceThree"></el-checkbox>
  232. <div class="li-lable">三、住宿费:</div>
  233. <div style="display: flex;">
  234. <div class="li-lable">
  235. <label>合计:</label>
  236. <div class="sub-boxs">{{ TotalAccommodationFee | numFilter }}</div>
  237. <span>元/人</span>
  238. </div>
  239. </div>
  240. </div>
  241. <div class="btn-Entry">
  242. <el-button type="primary" @click="addlist('住宿费')" size="mini">新 增</el-button>
  243. </div>
  244. </div>
  245. <div class="Entry-li-inif">
  246. <el-table :data="quarterageData" border style="width: 100%">
  247. <el-table-column prop="days" label="第几晚" width="180">
  248. <template slot-scope="scope">
  249. <el-input-number size="mini" :controls="false"
  250. v-model="scope.row.days"></el-input-number>
  251. </template>
  252. </el-table-column>
  253. <el-table-column style="position: relative;" prop="city" label="城 市" width="180">
  254. <template slot-scope="scope">
  255. <el-select size="mini" @change="changeSelect(scope.row, $event, scope.$index)"
  256. v-model="scope.row.nationalTravelFeeId" filterable placeholder="请选择">
  257. <el-option v-for="item in placeinif" :key="item.id" :label="item.cityname"
  258. :value="item.id">
  259. <span style="float: left">{{ item.cityname }}</span>
  260. <!-- <span style="float: right; color: #8492a6; font-size: 13px">{{item.city}}</span> -->
  261. </el-option>
  262. </el-select>
  263. </template>
  264. </el-table-column>
  265. <el-table-column prop="cost" label=" 费用标准" width="180">
  266. <template slot-scope="scope">
  267. <el-input-number @input="zhusuinput(scope.row)" size="mini" :precision="2"
  268. :controls="false" v-model="scope.row.cost"></el-input-number>
  269. </template>
  270. </el-table-column>
  271. <el-table-column prop="currencyName" label=" 币 种" width="180">
  272. <template slot-scope="scope">
  273. <el-input disabled size="mini" v-model="scope.row.currencyName"></el-input>
  274. </template>
  275. </el-table-column>
  276. <el-table-column prop="subTotal" label="费用小计" width="180">
  277. <template slot-scope="scope">
  278. <div class="sub-boxs">{{ scope.row.subTotal | numFilter }}</div>&nbsp;CNY
  279. </template>
  280. </el-table-column>
  281. <el-table-column prop="address" label="操 作">
  282. <template slot-scope="scope">
  283. <el-button v-if="isSave" style="color: #fff;" size="mini" type="danger"
  284. @click="deleteRow(scope.$index, scope.row, quarterageData, 1)">删除</el-button>
  285. </template>
  286. </el-table-column>
  287. </el-table>
  288. </div>
  289. </div>
  290. <div class="Entry-form-li">
  291. <div class="Entry-li-lable">
  292. <div style="display: flex;align-items: center;">
  293. <el-checkbox v-model="choiceFour"></el-checkbox>
  294. <div class="li-lable">四、伙食费:</div>
  295. <div style="display: flex;">
  296. <div class="li-lable">
  297. <label>合计:</label>
  298. <div class="sub-boxs">{{ TotalMeals | numFilter }}</div>
  299. <span>元/人</span>
  300. </div>
  301. </div>
  302. </div>
  303. <div class="btn-Entry">
  304. <el-button type="primary" @click="addlist('伙食费')" size="mini">新 增</el-button>
  305. </div>
  306. </div>
  307. <div class="Entry-li-inif">
  308. <el-table :data="boardWagesData" border style="width: 100%">
  309. <el-table-column prop="days" label="第几晚" width="180">
  310. <template slot-scope="scope">
  311. <el-input-number size="mini" :controls="false"
  312. v-model="scope.row.days"></el-input-number>
  313. </template>
  314. </el-table-column>
  315. <el-table-column style="position: relative;" prop="city" label="城 市" width="180">
  316. <!-- <template slot-scope="scope">
  317. <el-input size="mini" v-model="scope.row.city"></el-input>
  318. </template> -->
  319. <template slot-scope="scope">
  320. <el-select size="mini" @change="mealschangeSelect(scope.row, $event, scope.$index)"
  321. v-model="scope.row.nationalTravelFeeId" filterable placeholder="请选择">
  322. <el-option v-for="item in placeinif" :key="item.id" :label="item.cityname"
  323. :value="item.id">
  324. <span style="float: left">{{ item.cityname }}</span>
  325. <!-- <span style="float: right; color: #8492a6; font-size: 13px">{{item.city}}</span> -->
  326. </el-option>
  327. </el-select>
  328. </template>
  329. </el-table-column>
  330. <el-table-column prop="cost" label=" 费用标准" width="180">
  331. <template slot-scope="scope">
  332. <el-input-number size="mini" @input="mealsinput(scope.row)" :precision="2"
  333. :controls="false" v-model="scope.row.cost"></el-input-number>
  334. </template>
  335. </el-table-column>
  336. <el-table-column prop="currencyName" label=" 币 种" width="180">
  337. <template slot-scope="scope">
  338. <el-input disabled size="mini" v-model="scope.row.currencyName"></el-input>
  339. </template>
  340. </el-table-column>
  341. <el-table-column prop="subTotal" label="费用小计" width="180">
  342. <template slot-scope="scope">
  343. <div class="sub-boxs">{{ scope.row.subTotal | numFilter }}</div>&nbsp;CNY
  344. </template>
  345. </el-table-column>
  346. <el-table-column prop="address" label="操 作">
  347. <template slot-scope="scope">
  348. <el-button v-if="isSave" style="color: #fff;" size="mini" type="danger"
  349. @click="deleteRow(scope.$index, scope.row, boardWagesData, 2)">删除</el-button>
  350. </template>
  351. </el-table-column>
  352. </el-table>
  353. </div>
  354. </div>
  355. <div class="Entry-form-li">
  356. <div class="Entry-li-lable">
  357. <div style="display: flex;align-items: center;">
  358. <el-checkbox v-model="choiceFive"></el-checkbox>
  359. <div class="li-lable">五、公杂费:</div>
  360. <div style="display: flex;">
  361. <div class="li-lable">
  362. <label>合计:</label>
  363. <div class="sub-boxs">{{ TotalMiscellaneous | numFilter }}</div>
  364. <span>元/人</span>
  365. </div>
  366. </div>
  367. </div>
  368. <div class="btn-Entry">
  369. <el-button type="primary" @click="addlist('公杂费')" size="mini">新 增</el-button>
  370. </div>
  371. </div>
  372. <div class="Entry-li-inif">
  373. <el-table :data="miscellaneousFeeData" border style="width: 100%">
  374. <el-table-column prop="days" label="第几晚" width="180">
  375. <template slot-scope="scope">
  376. <el-input-number size="mini" :controls="false"
  377. v-model="scope.row.days"></el-input-number>
  378. </template>
  379. </el-table-column>
  380. <el-table-column style="position: relative;" prop="city" label="城 市" width="180">
  381. <!-- <template slot-scope="scope">
  382. <el-input size="mini" v-model="scope.row.city"></el-input>
  383. </template> -->
  384. <template slot-scope="scope">
  385. <el-select @change="MiscellaneouschangeSelect(scope.row, $event)" size="mini"
  386. v-model="scope.row.nationalTravelFeeId" filterable placeholder="请选择">
  387. <el-option v-for="item in placeinif" :key="item.id" :label="item.cityname"
  388. :value="item.id">
  389. <span style="float: left">{{ item.cityname }}</span>
  390. <!-- <span style="float: right; color: #8492a6; font-size: 13px">{{item.city}}</span> -->
  391. </el-option>
  392. </el-select>
  393. </template>
  394. </el-table-column>
  395. <el-table-column prop="cost" label=" 费用标准" width="180">
  396. <template slot-scope="scope">
  397. <el-input-number @input="Miscellaneousinput(scope.row)" size="mini" :precision="2"
  398. :controls="false" v-model="scope.row.cost"></el-input-number>
  399. </template>
  400. </el-table-column>
  401. <el-table-column prop="currencyName" label=" 币 种" width="180">
  402. <template slot-scope="scope">
  403. <el-input disabled size="mini" v-model="scope.row.currencyName"></el-input>
  404. </template>
  405. </el-table-column>
  406. <el-table-column prop="subTotal" label="费用小计" width="180">
  407. <template slot-scope="scope">
  408. <div class="sub-boxs">{{ scope.row.subTotal | numFilter }}</div>&nbsp;CNY
  409. </template>
  410. </el-table-column>
  411. <el-table-column prop="address" label="操 作">
  412. <template slot-scope="scope">
  413. <el-button v-if="isSave" style="color: #fff;" size="mini" type="danger"
  414. @click="deleteRow(scope.$index, scope.row, miscellaneousFeeData, 3)">删除</el-button>
  415. </template>
  416. </el-table-column>
  417. </el-table>
  418. </div>
  419. </div>
  420. <div class="Entry-form-li">
  421. <div class="Entry-li-lable">
  422. <div style="display: flex;align-items: center;">
  423. <el-checkbox v-model="choiceSix"></el-checkbox>
  424. <div class="li-lable">六、培训费:</div>
  425. <div style="display: flex;">
  426. <div class="li-lable">
  427. <label>合计:</label>
  428. <div class="sub-boxs">{{ trainingExpense | numFilter }}</div>
  429. <span>元/人</span>
  430. </div>
  431. </div>
  432. </div>
  433. <div class="btn-Entry">
  434. <el-button type="primary" @click="addlist('培训费')" size="mini">新 增</el-button>
  435. </div>
  436. </div>
  437. <div class="Entry-li-inif">
  438. <el-table :data="trainingExpenseData" border style="width: 100%">
  439. <el-table-column prop="days" label="第几晚" width="180">
  440. <template slot-scope="scope">
  441. <el-input-number size="mini" :controls="false"
  442. v-model="scope.row.days"></el-input-number>
  443. </template>
  444. </el-table-column>
  445. <el-table-column style="position: relative;" prop="city" label="城 市" width="180">
  446. <!-- <template slot-scope="scope">
  447. <el-input size="mini" v-model="scope.row.city"></el-input>
  448. </template> -->
  449. <template slot-scope="scope">
  450. <el-select @change="TrainingExpenseDataSelect(scope.row, $event, scope.$index)" size="mini"
  451. v-model="scope.row.nationalTravelFeeId" filterable placeholder="请选择">
  452. <el-option v-for="item in placeinif" :key="item.id" :label="item.cityname"
  453. :value="item.id">
  454. <span style="float: left">{{ item.cityname }}</span>
  455. <!-- <span style="float: right; color: #8492a6; font-size: 13px">{{item.city}}</span> -->
  456. </el-option>
  457. </el-select>
  458. </template>
  459. </el-table-column>
  460. <el-table-column prop="cost" label=" 费用标准" width="180">
  461. <template slot-scope="scope">
  462. <el-input-number @input="Traininginput(scope.row)" size="mini" :precision="2"
  463. :controls="false" v-model="scope.row.cost"></el-input-number>
  464. </template>
  465. </el-table-column>
  466. <el-table-column prop="currencyName" label=" 币 种" width="180">
  467. <template slot-scope="scope">
  468. <el-input disabled size="mini" v-model="scope.row.currencyName"></el-input>
  469. </template>
  470. </el-table-column>
  471. <el-table-column prop="subTotal" label="费用小计" width="180">
  472. <template slot-scope="scope">
  473. <div class="sub-boxs">{{ scope.row.subTotal | numFilter }}</div>&nbsp;CNY
  474. </template>
  475. </el-table-column>
  476. <el-table-column prop="address" label="操 作">
  477. <template slot-scope="scope">
  478. <el-button v-if="isSave" style="color: #fff;" size="mini" type="danger"
  479. @click="deleteRow(scope.$index, scope.row, trainingExpenseData, 4)">删除</el-button>
  480. </template>
  481. </el-table-column>
  482. </el-table>
  483. </div>
  484. </div>
  485. <div class="Entry-form-li">
  486. <div class="Entry-li-lable">
  487. <div style="display: flex;align-items: center;">
  488. <el-checkbox v-model="choiceSeven"></el-checkbox>
  489. <div class="li-lable">七、其他:</div>
  490. <div style="display: flex;">
  491. <div class="li-lable">
  492. <label>合计:</label>
  493. <div class="sub-boxs">{{ otherExpense | numFilter }}</div>
  494. <span>元/人</span>
  495. </div>
  496. </div>
  497. <div style="color:red">
  498. &nbsp;注:特殊情况才在这里填写,如:要计算车导费、备用金费用等
  499. </div>
  500. </div>
  501. <div class="btn-Entry">
  502. <el-button type="primary" @click="addlist('其他')" size="mini">新 增</el-button>
  503. </div>
  504. </div>
  505. <div class="Entry-li-inif">
  506. <el-table :data="otherData" border style="width: 100%">
  507. <el-table-column prop="index" label="第几项" width="180">
  508. <template slot-scope="scope">
  509. <el-input-number size="mini" :controls="false"
  510. v-model="scope.row.index"></el-input-number>
  511. </template>
  512. </el-table-column>
  513. <el-table-column style="position: relative;" prop="setDataId" label="费用类型" width="180">
  514. <!-- <template slot-scope="scope">
  515. <el-input size="mini" v-model="scope.row.city"></el-input>
  516. </template> -->
  517. <template slot-scope="scope">
  518. <el-select size="mini" v-model="scope.row.setDataId" filterable placeholder="请选择">
  519. <el-option v-for="item in otherfylx" :key="item.id" :label="item.name"
  520. :value="item.id">
  521. <span style="float: left">{{ item.name }}</span>
  522. <!-- <span style="float: right; color: #8492a6; font-size: 13px">{{item.city}}</span> -->
  523. </el-option>
  524. </el-select>
  525. </template>
  526. </el-table-column>
  527. <el-table-column prop="cost" label=" 费用标准" width="180">
  528. <template slot-scope="scope">
  529. <el-input-number @input="otherinput(scope.row)" size="mini" :precision="2"
  530. :controls="false" v-model="scope.row.cost"></el-input-number>
  531. </template>
  532. </el-table-column>
  533. <el-table-column prop="currencyName" label=" 币 种" width="180">
  534. <template slot-scope="scope">
  535. <el-select @change="othercurrencychange(scope.row.currency, scope.row)" size="mini"
  536. v-model="scope.row.currency" filterable placeholder="请选择">
  537. <el-option v-for="item in othercurrencys" :key="item.currencyId"
  538. :label="item.currencyCode" :value="item.currencyId">
  539. <span style="float: left">{{ item.currencyCode + ' 汇率:' + item.rate
  540. }}</span>
  541. </el-option>
  542. </el-select>
  543. <!-- <el-input size="mini" v-model="scope.row.currencyName"></el-input> -->
  544. </template>
  545. </el-table-column>
  546. <el-table-column prop="subTotal" label="费用小计" width="180">
  547. <template slot-scope="scope">
  548. <div class="sub-boxs">{{ scope.row.subTotal | numFilter }}</div>&nbsp;CNY
  549. </template>
  550. </el-table-column>
  551. <el-table-column prop="remark" label="备注" width="450">
  552. <template slot-scope="scope">
  553. <el-input size="mini" v-model="scope.row.remark"></el-input>
  554. </template>
  555. </el-table-column>
  556. <el-table-column prop="address" label="操 作">
  557. <template slot-scope="scope">
  558. <el-button v-if="isSave" style="color: #fff;" size="mini" type="danger"
  559. @click="DeleteOtherExpenses(scope.$index, scope.row, otherData)">删除</el-button>
  560. </template>
  561. </el-table-column>
  562. </el-table>
  563. </div>
  564. </div>
  565. <div class="Entry-form-li">
  566. <div class="Entry-li-lables">
  567. <div class="li-lable">费用总计:</div>
  568. <div style="display: flex;">
  569. <div class="li-lable">
  570. <!-- <el-checkbox style="margin-right: -10px;" v-model="airJJC_Checked"></el-checkbox> -->
  571. <label>(经济舱)</label>
  572. <div class="sub-boxs">{{ jjctotal | numFilter }}</div>
  573. <span>元/人</span>
  574. </div>
  575. &nbsp;&nbsp;&nbsp;&nbsp;
  576. <div class="li-lable">
  577. <!-- <el-checkbox style="margin-right: -10px;" v-model="airGWC_Checked"></el-checkbox> -->
  578. <label>(公务舱)</label>
  579. <div class="sub-boxs">{{ gwctotal | numFilter }}</div>
  580. <span>元/人</span>
  581. </div>
  582. &nbsp;&nbsp;&nbsp;&nbsp;
  583. <div class="li-lable">
  584. <!-- <el-checkbox style="margin-right: -10px;" v-model="airGWC_Checked"></el-checkbox> -->
  585. <label>(头等舱)</label>
  586. <div class="sub-boxs">{{ tdctotal | numFilter }}</div>
  587. <span>元/人</span>
  588. </div>
  589. </div>
  590. </div>
  591. </div>
  592. </div>
  593. </div>
  594. </div>
  595. </template>
  596. <script>
  597. import { Decimal } from 'decimal.js'
  598. import { debounce } from '../../store/statice'
  599. import { number } from 'echarts';
  600. export default {
  601. data() {
  602. return {
  603. fullscreenLoading: false,
  604. options: [],
  605. listvalue: 1005,
  606. tablevalue: '',
  607. listvalueoptions: [],
  608. tablevalueoptions: [],
  609. //是否计算Checkbox
  610. choiceOne: false,//境内费用(其他费用)选择框
  611. choiceTwo: false,//国际旅费合计选择框
  612. choiceThree: false,//住宿费合计选择框
  613. choiceFour: false,//伙食费合计选择框
  614. choiceFive: false,//公杂费合计选择框
  615. choiceSix: false,//培训费用选择框
  616. choiceSeven: false,//其他费用选择框
  617. sumJJC: false,//经济舱小计选择框
  618. sumGWC: false,//公务舱小计选择框
  619. sumTDC: false,//头等舱小计选择框
  620. airJJC_Checked: false,//经济舱选择框
  621. airGWC_Checked: false,//公务舱选择框
  622. airTDC_Checked: false,//公务舱选择框
  623. isAssignPerm:false,
  624. provinceId:'',
  625. userId: '',
  626. token: '',
  627. value: '',
  628. options: [],
  629. Visafees: '',
  630. Visadepicted: '',
  631. currencys: [],
  632. currencyss: [],
  633. DomesticFees: {
  634. visafees: '',//签证费
  635. visafeesDescription: '',//签证费用描述
  636. vaccinefees: 0,//疫苗费
  637. nucleicfees: 0,//核酸检测费
  638. serviceCharge: 0,//服务费
  639. insurance: 500,//保险费
  640. ticketsExhibitionL: 0,//参展门票
  641. total: 0,
  642. firstItemRemark:''//备注
  643. },
  644. TotalExpenses: {
  645. EconomyClass: 0,//经济舱
  646. BusinessClass: 0,//公务舱
  647. Firstclass: 0,//头等舱
  648. TravellingExpenses: 0,//城市区间交通费
  649. EconomyClasstotal: 0,//经济舱合计
  650. BusinessClasstotal: 0,//公务舱合计
  651. Firstclasstotal: 0,//头等舱合计
  652. twoItemRemark:''//备注
  653. },
  654. TotalAccommodationFee: 0,//住宿费合计
  655. TotalMeals: 0,//伙食费合计
  656. TotalMiscellaneous: 0,//公杂费合计
  657. trainingExpense: 0,//培训费合计
  658. otherExpense: 0,//其他费用合计
  659. quarterageData: [],
  660. boardWagesData: [],
  661. miscellaneousFeeData: [],
  662. trainingExpenseData: [],
  663. otherData: [],
  664. placeinif: [],
  665. //下拉框
  666. treeData: "",
  667. treeDataValue: "",
  668. data: [],
  669. defaultProps: {
  670. children: "cityData",
  671. label: "city",
  672. // label: "country",
  673. },
  674. jjctotal: 0,//经济舱合计
  675. gwctotal: 0,//公务舱合计
  676. tdctotal: 0,//公务舱合计
  677. storageid: 0,
  678. visabeizhu: "",
  679. ID: '',
  680. TicketJudgment: {},
  681. CurrencysRemark: '',
  682. //监听币种数组
  683. watchedPrice: null,
  684. cubtn: false,
  685. getvisafeebtn: false,
  686. visainfo: {},
  687. //其他币种
  688. othercurrencys: [],
  689. otherfylx: [],
  690. //设置权限
  691. setpermissions:false,
  692. isSave:false,
  693. isView:false,
  694. viewUsers:[],
  695. viewUsersby:[],
  696. viewUsersarr:[],
  697. //又憋两坨
  698. airDataArr:[],
  699. airDataArrvalue:'',
  700. //实时汇率
  701. liveRateInfos:[],
  702. }
  703. },
  704. methods: {
  705. //baoliuliangweixiaoshu
  706. reservetwo(value) {
  707. // 截取当前数据到小数点后两位
  708. let realVal = new Decimal(value).toFixed(2)
  709. return realVal
  710. },
  711. //获取团组
  712. GetEnterExitCostDataSource() {
  713. var url = "/api/Groups/GetEnterExitCostDataSource"
  714. var that = this
  715. this.$axios({
  716. method: 'post',
  717. url: url,
  718. headers: {
  719. Authorization: 'Bearer ' + this.token
  720. },
  721. data: {
  722. portType: 1
  723. }
  724. }).then(function (res) {
  725. if (res.data.code == 200) {
  726. that.options = res.data.data.groupNameData;
  727. that.currencys = res.data.data.currencyInit;
  728. that.viewUsersarr= res.data.data.viewPermissionData;
  729. if (that.value == null) {
  730. that.value = res.data.data.groupNameData[0].id;
  731. that.provinceId = res.data.data.groupNameData[0].provinceId;
  732. }
  733. that.GetEnterExitCostInfobyDiId();
  734. that.PostGroupTeamRateByDiIdAndCTableId();
  735. }
  736. })
  737. },
  738. //获取币种
  739. PostGroupTeamRateByDiIdAndCTableId() {
  740. this.othercurrencys = [];
  741. var url = "/api/Business/PostGroupTeamRateByDiIdAndCTableId"
  742. var that = this
  743. this.$axios({
  744. method: 'post',
  745. url: url,
  746. headers: {
  747. Authorization: 'Bearer ' + this.token
  748. },
  749. data: {
  750. portType: 1,
  751. diId: that.value,
  752. cTable: 98
  753. }
  754. }).then(function (res) {
  755. if (res.data.code == 200) {
  756. that.othercurrencys = res.data.data.teamRates;
  757. for (let sr = 0; sr < that.othercurrencys.length; sr++) {
  758. if (that.othercurrencys[sr].currencyCode != 'CNY') {
  759. that.othercurrencys[sr].rate = new Decimal(that.othercurrencys[sr].rate * 1.03).toFixed(4)
  760. }
  761. for (let y = 0; y < that.currencys.length; y++) {
  762. if (that.currencys[y].currencyCode == that.othercurrencys[sr].currencyCode) {
  763. that.othercurrencys[sr].rate = that.currencys[y].rate;
  764. }
  765. }
  766. }
  767. } else {
  768. that.$message.error(res.data.msg);
  769. }
  770. })
  771. },
  772. //获取类型
  773. QuerySetData() {
  774. var url = "/api/System/QuerySetData"
  775. var that = this
  776. this.$axios({
  777. method: 'post',
  778. url: url,
  779. headers: {
  780. Authorization: 'Bearer ' + this.token
  781. },
  782. data: {
  783. dataType: 92
  784. }
  785. }).then(function (res) {
  786. if (res.data.code == 200) {
  787. that.otherfylx = res.data.data;
  788. } else {
  789. that.$message.error(res.data.msg);
  790. }
  791. })
  792. },
  793. //获取签证标注
  794. GetEnterExitCostCorrelationTips(val) {
  795. this.airDataArr=[]
  796. this.getvisafeebtn = false;
  797. if (val == 1) {
  798. // this.TotalExpenses.EconomyClass = 0;
  799. // this.TotalExpenses.BusinessClass = 0;
  800. // this.TotalExpenses.Firstclass = 0;
  801. this.DomesticFees.visafees = 0;
  802. this.DomesticFees.visafeesDescription = "";
  803. var url = "/api/Groups/GetEnterExitCostCorrelationTips"
  804. var that = this
  805. this.$axios({
  806. method: 'post',
  807. url: url,
  808. headers: {
  809. Authorization: 'Bearer ' + this.token
  810. },
  811. data: {
  812. portType: 1,
  813. diId: that.value
  814. }
  815. }).then(function (res) {
  816. if (res.data.code == 200) {
  817. // that.TotalExpenses.EconomyClass = res.data.data.airData[0].jjcCurrentRate;
  818. // that.TotalExpenses.BusinessClass = res.data.data.airData[0].gwcCurrentRate;
  819. // that.TotalExpenses.Firstclass = res.data.data.airData[0].tdcCurrentRate;
  820. that.DomesticFees.visafees = res.data.data.visaData.feeTotal;
  821. that.DomesticFees.visafeesDescription = res.data.data.visaData.remark;
  822. } else {
  823. that.$message.error(res.data.msg);
  824. }
  825. })
  826. } else {
  827. var url = "/api/Groups/GetEnterExitCostCorrelationTips"
  828. var that = this
  829. this.$axios({
  830. method: 'post',
  831. url: url,
  832. headers: {
  833. Authorization: 'Bearer ' + this.token
  834. },
  835. data: {
  836. portType: 1,
  837. diId: that.value
  838. }
  839. }).then(function (res) {
  840. if (res.data.code == 200) {
  841. that.TicketJudgment = res.data.data.airData;
  842. that.airDataArr=res.data.data.airData;
  843. // if (that.TotalExpenses.EconomyClass==0) {
  844. // that.TotalExpenses.EconomyClass = that.airDataArr[0].jjcCurrentRate;
  845. // }
  846. // if (that.TotalExpenses.BusinessClass==0) {
  847. // that.TotalExpenses.BusinessClass = that.airDataArr[0].gwcCurrentRate;
  848. // }
  849. // if (that.TotalExpenses.Firstclass==0) {
  850. // that.TotalExpenses.Firstclass = that.airDataArr[0].tdcCurrentRate;
  851. // }
  852. that.visainfo = res.data.data.visaData;
  853. that.currencyss = res.data.data.reteInfos;
  854. if (that.DomesticFees.visafees != res.data.data.visaData.feeTotal && res.data.data.visaData.feeTotal != 0) {
  855. that.getvisafeebtn = true;
  856. }
  857. for (let s = 0; s < that.currencys.length; s++) {
  858. if (that.currencys[s].rate != that.currencyss[s].rate) {
  859. that.cubtn = true;
  860. that.CurrencysRemark = '当前汇率与实时汇率不同!移上查看'
  861. return
  862. } else {
  863. that.cubtn = false;
  864. }
  865. }
  866. } else {
  867. that.$message.error(res.data.msg);
  868. }
  869. })
  870. }
  871. },
  872. //机票费用填入
  873. Fillin(val) {
  874. var obj = {}
  875. obj = this.airDataArr.find(function (i,indexs) {
  876. return i.remark === val
  877. });
  878. this.TotalExpenses.EconomyClass = obj.jjcCurrentRate;
  879. this.TotalExpenses.BusinessClass = obj.gwcCurrentRate;
  880. this.TotalExpenses.TravellingExpenses = obj.tdcCurrentRate;
  881. },
  882. //获取文件
  883. EnterExitCostFileOwner() {
  884. this.listvalueoptions=[];
  885. this.tablevalueoptions=[];
  886. console.log(this.provinceId);
  887. var url = "/api/Groups/EnterExitCostFileOwner/"+this.provinceId
  888. var that = this
  889. this.$axios({
  890. method: 'get',
  891. url: url,
  892. }).then(function (res) {
  893. if (res.data.code == 200) {
  894. that.listvalueoptions = res.data.data.wordTypeData;
  895. that.tablevalueoptions = res.data.data.excelTypeData;
  896. }else {
  897. that.$message.error(res.data.msg);
  898. }
  899. })
  900. },
  901. //获取费用标注
  902. GetNationalTravelFeeData() {
  903. var url = "/api/Groups/GetNationalTravelFeeData"
  904. var that = this
  905. this.$axios({
  906. method: 'post',
  907. url: url,
  908. headers: {
  909. Authorization: 'Bearer ' + this.token
  910. },
  911. data: {
  912. portType: 1,
  913. provinceId:that.provinceId,
  914. }
  915. }).then(function (res) {
  916. let placeinifarr = [];
  917. if (res.data.code == 200) {
  918. for (let i = 0; i < res.data.data.length; i++) {
  919. res.data.data[i]['cityname'] = res.data.data[i].country + '-' + res.data.data[i].city;
  920. placeinifarr.push(res.data.data[i]);
  921. }
  922. that.placeinif = placeinifarr;
  923. }
  924. })
  925. },
  926. GetEnterExitCostInfobyDiId() {
  927. //初始化数据
  928. this.ID = '';
  929. // this.currencys=[]
  930. this.viewUsers=[];
  931. this.viewUsersby=[];
  932. this.TotalAccommodationFee = 0;//住宿费合计
  933. this.TotalMeals = 0;//伙食费合计
  934. this.TotalMiscellaneous = 0;//公杂费合计
  935. this.trainingExpense = 0;//培训费合计
  936. this.otherExpense = 0;//其他费合计
  937. this.DomesticFees = {
  938. visafees: '',//签证费
  939. visafeesDescription: '',//签证费用描述
  940. vaccinefees: 0,//疫苗费
  941. nucleicfees: 0,//核酸检测费
  942. serviceCharge: 0,//服务费
  943. insurance: 500,//保险费
  944. ticketsExhibitionL: 0,//参展门票
  945. total: 0,
  946. firstItemRemark:''//备注
  947. }
  948. this.TotalExpenses = {
  949. EconomyClass: 0,//经济舱
  950. BusinessClass: 0,//公务舱
  951. Firstclass: 0,//TD舱
  952. TravellingExpenses: 0,//城市区间交通费
  953. EconomyClasstotal: 0,//经济舱合计
  954. BusinessClasstotal: 0,//公务舱合计
  955. Firstclasstotal: 0,//TD舱合计
  956. twoItemRemark:''//备注
  957. }
  958. this.choiceOne = false//境内费用(其他费用)选择框
  959. this.choiceTwo = false//国际旅费合计选择框
  960. this.choiceThree = false//住宿费合计选择框
  961. this.choiceFour = false//伙食费合计选择框
  962. this.choiceFive = false//公杂费合计选择框
  963. this.choiceSix = false//培训费用选择框
  964. this.choiceSeven = false//其他费用选择框
  965. this.sumJJC = false//经济舱小计选择框
  966. this.sumGWC = false//公务舱小计选择框
  967. this.sumTDC = false//公务舱小计选择框
  968. this.airJJC_Checked = false//经济舱选择框
  969. this.airGWC_Checked = false//公务舱选择框
  970. this.isSave = false//保存权限
  971. this.isView = false//查看权限
  972. this.storageid = 0
  973. this.quarterageData = [
  974. {
  975. id: 0,
  976. diId: this.value,
  977. type: 1,
  978. days: 1,
  979. nationalTravelFeeId: '',
  980. cost: 0,
  981. currency: 0,
  982. subTotal: 0,
  983. remark: '',
  984. },
  985. {
  986. id: 0,
  987. diId: this.value,
  988. type: 1,
  989. days: 2,
  990. nationalTravelFeeId: '',
  991. cost: 0,
  992. currency: 0,
  993. subTotal: 0,
  994. remark: '',
  995. },
  996. {
  997. id: 0,
  998. diId: this.value,
  999. type: 1,
  1000. days: 3,
  1001. nationalTravelFeeId: '',
  1002. cost: 0,
  1003. currency: 0,
  1004. subTotal: 0,
  1005. remark: '',
  1006. },
  1007. {
  1008. id: 0,
  1009. diId: this.value,
  1010. type: 1,
  1011. days: 4,
  1012. nationalTravelFeeId: '',
  1013. cost: 0,
  1014. currency: 0,
  1015. subTotal: 0,
  1016. remark: '',
  1017. },
  1018. {
  1019. id: 0,
  1020. diId: this.value,
  1021. type: 1,
  1022. days: 5,
  1023. nationalTravelFeeId: '',
  1024. cost: 0,
  1025. currency: 0,
  1026. subTotal: 0,
  1027. remark: '',
  1028. },
  1029. {
  1030. id: 0,
  1031. diId: this.value,
  1032. type: 1,
  1033. days: 6,
  1034. nationalTravelFeeId: '',
  1035. cost: 0,
  1036. currency: 0,
  1037. subTotal: 0,
  1038. remark: '',
  1039. },
  1040. {
  1041. id: 0,
  1042. diId: this.value,
  1043. type: 1,
  1044. days: 7,
  1045. nationalTravelFeeId: '',
  1046. cost: 0,
  1047. currency: 0,
  1048. subTotal: 0,
  1049. remark: '',
  1050. },
  1051. {
  1052. id: 0,
  1053. diId: this.value,
  1054. type: 1,
  1055. days: 8,
  1056. nationalTravelFeeId: '',
  1057. cost: 0,
  1058. currency: 0,
  1059. subTotal: 0,
  1060. remark: '',
  1061. },
  1062. ]
  1063. this.boardWagesData = [
  1064. {
  1065. id: 0,
  1066. diId: this.value,
  1067. type: 2,
  1068. days: 1,
  1069. nationalTravelFeeId: '',
  1070. cost: 0,
  1071. currency: 0,
  1072. subTotal: 0,
  1073. remark: '',
  1074. },
  1075. {
  1076. id: 0,
  1077. diId: this.value,
  1078. type: 2,
  1079. days: 2,
  1080. nationalTravelFeeId: '',
  1081. cost: 0,
  1082. currency: 0,
  1083. subTotal: 0,
  1084. remark: '',
  1085. },
  1086. {
  1087. id: 0,
  1088. diId: this.value,
  1089. type: 2,
  1090. days: 3,
  1091. nationalTravelFeeId: '',
  1092. cost: 0,
  1093. currency: 0,
  1094. subTotal: 0,
  1095. remark: '',
  1096. },
  1097. {
  1098. id: 0,
  1099. diId: this.value,
  1100. type: 2,
  1101. days: 4,
  1102. nationalTravelFeeId: '',
  1103. cost: 0,
  1104. currency: 0,
  1105. subTotal: 0,
  1106. remark: '',
  1107. },
  1108. {
  1109. id: 0,
  1110. diId: this.value,
  1111. type: 2,
  1112. days: 5,
  1113. nationalTravelFeeId: '',
  1114. cost: 0,
  1115. currency: 0,
  1116. subTotal: 0,
  1117. remark: '',
  1118. },
  1119. {
  1120. id: 0,
  1121. diId: this.value,
  1122. type: 2,
  1123. days: 6,
  1124. nationalTravelFeeId: '',
  1125. cost: 0,
  1126. currency: 0,
  1127. subTotal: 0,
  1128. remark: '',
  1129. },
  1130. {
  1131. id: 0,
  1132. diId: this.value,
  1133. type: 2,
  1134. days: 7,
  1135. nationalTravelFeeId: '',
  1136. cost: 0,
  1137. currency: 0,
  1138. subTotal: 0,
  1139. remark: '',
  1140. },
  1141. {
  1142. id: 0,
  1143. diId: this.value,
  1144. type: 2,
  1145. days: 8,
  1146. nationalTravelFeeId: '',
  1147. cost: 0,
  1148. currency: 0,
  1149. subTotal: 0,
  1150. remark: '',
  1151. },
  1152. ]
  1153. this.miscellaneousFeeData = [
  1154. {
  1155. id: 0,
  1156. diId: this.value,
  1157. type: 3,
  1158. days: 1,
  1159. nationalTravelFeeId: '',
  1160. cost: 0,
  1161. currency: 0,
  1162. subTotal: 0,
  1163. remark: '',
  1164. },
  1165. {
  1166. id: 0,
  1167. diId: this.value,
  1168. type: 3,
  1169. days: 2,
  1170. nationalTravelFeeId: '',
  1171. cost: 0,
  1172. currency: 0,
  1173. subTotal: 0,
  1174. remark: '',
  1175. },
  1176. {
  1177. id: 0,
  1178. diId: this.value,
  1179. type: 3,
  1180. days: 3,
  1181. nationalTravelFeeId: '',
  1182. cost: 0,
  1183. currency: 0,
  1184. subTotal: 0,
  1185. remark: '',
  1186. },
  1187. {
  1188. id: 0,
  1189. diId: this.value,
  1190. type: 3,
  1191. days: 4,
  1192. nationalTravelFeeId: '',
  1193. cost: 0,
  1194. currency: 0,
  1195. subTotal: 0,
  1196. remark: '',
  1197. },
  1198. {
  1199. id: 0,
  1200. diId: this.value,
  1201. type: 3,
  1202. days: 5,
  1203. nationalTravelFeeId: '',
  1204. cost: 0,
  1205. currency: 0,
  1206. subTotal: 0,
  1207. remark: '',
  1208. },
  1209. {
  1210. id: 0,
  1211. diId: this.value,
  1212. type: 3,
  1213. days: 6,
  1214. nationalTravelFeeId: '',
  1215. cost: 0,
  1216. currency: 0,
  1217. subTotal: 0,
  1218. remark: '',
  1219. },
  1220. {
  1221. id: 0,
  1222. diId: this.value,
  1223. type: 3,
  1224. days: 7,
  1225. nationalTravelFeeId: '',
  1226. cost: 0,
  1227. currency: 0,
  1228. subTotal: 0,
  1229. remark: '',
  1230. },
  1231. {
  1232. id: 0,
  1233. diId: this.value,
  1234. type: 3,
  1235. days: 8,
  1236. nationalTravelFeeId: '',
  1237. cost: 0,
  1238. currency: 0,
  1239. subTotal: 0,
  1240. remark: '',
  1241. },
  1242. ]
  1243. this.trainingExpenseData = [
  1244. {
  1245. id: 0,
  1246. diId: this.value,
  1247. type: 4,
  1248. days: 1,
  1249. nationalTravelFeeId: '',
  1250. cost: 0,
  1251. currency: 0,
  1252. subTotal: 0,
  1253. remark: '',
  1254. },
  1255. {
  1256. id: 0,
  1257. diId: this.value,
  1258. type: 4,
  1259. days: 2,
  1260. nationalTravelFeeId: '',
  1261. cost: 0,
  1262. currency: 0,
  1263. subTotal: 0,
  1264. remark: '',
  1265. },
  1266. {
  1267. id: 0,
  1268. diId: this.value,
  1269. type: 4,
  1270. days: 3,
  1271. nationalTravelFeeId: '',
  1272. cost: 0,
  1273. currency: 0,
  1274. subTotal: 0,
  1275. remark: '',
  1276. },
  1277. {
  1278. id: 0,
  1279. diId: this.value,
  1280. type: 4,
  1281. days: 4,
  1282. nationalTravelFeeId: '',
  1283. cost: 0,
  1284. currency: 0,
  1285. subTotal: 0,
  1286. remark: '',
  1287. },
  1288. {
  1289. id: 0,
  1290. diId: this.value,
  1291. type: 4,
  1292. days: 5,
  1293. nationalTravelFeeId: '',
  1294. cost: 0,
  1295. currency: 0,
  1296. subTotal: 0,
  1297. remark: '',
  1298. },
  1299. {
  1300. id: 0,
  1301. diId: this.value,
  1302. type: 4,
  1303. days: 6,
  1304. nationalTravelFeeId: '',
  1305. cost: 0,
  1306. currency: 0,
  1307. subTotal: 0,
  1308. remark: '',
  1309. },
  1310. {
  1311. id: 0,
  1312. diId: this.value,
  1313. type: 4,
  1314. days: 7,
  1315. nationalTravelFeeId: '',
  1316. cost: 0,
  1317. currency: 0,
  1318. subTotal: 0,
  1319. remark: '',
  1320. },
  1321. {
  1322. id: 0,
  1323. diId: this.value,
  1324. type: 4,
  1325. days: 8,
  1326. nationalTravelFeeId: '',
  1327. cost: 0,
  1328. currency: 0,
  1329. subTotal: 0,
  1330. remark: '',
  1331. },
  1332. ]
  1333. this.otherData = [
  1334. {
  1335. id: 0,
  1336. diId: this.value,
  1337. setDataId: '',
  1338. index: 1,
  1339. cost: '',
  1340. cost: 0,
  1341. currency: '',
  1342. subTotal: 0,
  1343. remark:'',
  1344. },
  1345. {
  1346. id: 0,
  1347. diId: this.value,
  1348. setDataId: '',
  1349. index: 2,
  1350. cost: '',
  1351. cost: 0,
  1352. currency: '',
  1353. subTotal: 0,
  1354. remark:'',
  1355. },
  1356. {
  1357. id: 0,
  1358. diId: this.value,
  1359. setDataId: '',
  1360. index: 3,
  1361. cost: '',
  1362. cost: 0,
  1363. currency: '',
  1364. subTotal: 0,
  1365. remark:'',
  1366. },
  1367. {
  1368. id: 0,
  1369. diId: this.value,
  1370. setDataId: '',
  1371. index: 4,
  1372. cost: '',
  1373. cost: 0,
  1374. currency: '',
  1375. subTotal: 0,
  1376. remark:'',
  1377. },
  1378. {
  1379. id: 0,
  1380. diId: this.value,
  1381. setDataId: '',
  1382. index: 5,
  1383. cost: '',
  1384. cost: 0,
  1385. currency: '',
  1386. subTotal: 0,
  1387. remark:'',
  1388. },
  1389. {
  1390. id: 0,
  1391. diId: this.value,
  1392. setDataId: '',
  1393. index: 6,
  1394. cost: '',
  1395. cost: 0,
  1396. currency: '',
  1397. subTotal: 0,
  1398. remark:'',
  1399. },
  1400. {
  1401. id: 0,
  1402. diId: this.value,
  1403. setDataId: '',
  1404. index: 7,
  1405. cost: '',
  1406. cost: 0,
  1407. currency: '',
  1408. subTotal: 0,
  1409. remark:'',
  1410. },
  1411. {
  1412. id: 0,
  1413. diId: this.value,
  1414. setDataId: '',
  1415. index: 8,
  1416. cost: '',
  1417. cost: 0,
  1418. currency: '',
  1419. subTotal: 0,
  1420. remark:'',
  1421. },
  1422. ]
  1423. this.isAssignPerm=false;
  1424. var url = "/api/Groups/GetEnterExitCostInfobyDiId"
  1425. var that = this
  1426. this.$axios({
  1427. method: 'post',
  1428. url: url,
  1429. headers: {
  1430. Authorization: 'Bearer ' + this.token
  1431. },
  1432. data: {
  1433. portType: 1,
  1434. diId: that.value,
  1435. currUserId:that.userId
  1436. }
  1437. }).then(function (res) {
  1438. if (res.data.code == 200) {
  1439. that.ID = res.data.data.id;
  1440. that.provinceId=res.data.data.provinceId;
  1441. //汇率
  1442. that.currencys = res.data.data.currencys;
  1443. that.isAssignPerm=res.data.data.isAssignPerm;
  1444. //权限
  1445. that.isSave=res.data.data.isSave;
  1446. that.isView=res.data.data.isView;
  1447. that.viewUsers=res.data.data.viewUsers;
  1448. that.viewUsersby=res.data.data.viewUsers;
  1449. //境内费用
  1450. that.DomesticFees.visafees = res.data.data.visa;
  1451. that.DomesticFees.visafeesDescription = res.data.data.visaRemark;
  1452. that.DomesticFees.vaccinefees = res.data.data.yiMiao;
  1453. that.DomesticFees.nucleicfees = res.data.data.heSuan;
  1454. that.DomesticFees.serviceCharge = res.data.data.service;
  1455. that.DomesticFees.insurance = res.data.data.safe;
  1456. that.DomesticFees.ticketsExhibitionL = res.data.data.ticket;
  1457. that.DomesticFees.firstItemRemark = res.data.data.firstItemRemark;
  1458. //国际旅费
  1459. that.TotalExpenses.EconomyClass = res.data.data.airJJ;
  1460. that.TotalExpenses.BusinessClass = res.data.data.airGW;
  1461. that.TotalExpenses.Firstclass = res.data.data.airTD;
  1462. that.TotalExpenses.TravellingExpenses = res.data.data.cityTranffic;
  1463. that.TotalExpenses.twoItemRemark = res.data.data.twoItemRemark;
  1464. //是否计算Checkbox
  1465. that.choiceOne = res.data.data.choiceOne == 1 ? true : false;
  1466. that.choiceTwo = res.data.data.choiceTwo == 1 ? true : false;
  1467. that.choiceThree = res.data.data.choiceThree == 1 ? true : false;
  1468. that.choiceFour = res.data.data.choiceFour == 1 ? true : false;
  1469. that.choiceFive = res.data.data.choiceFive == 1 ? true : false;
  1470. that.choiceSix = res.data.data.choiceSix == 1 ? true : false;
  1471. that.choiceSeven = res.data.data.otherExpenses_Checked == 1 ? true : false;
  1472. that.sumJJC = res.data.data.sumJJC == 1 ? true : false;
  1473. that.sumGWC = res.data.data.sumGWC == 1 ? true : false;
  1474. that.sumTDC = res.data.data.sumTDC == 1 ? true : false;
  1475. that.airJJC_Checked = res.data.data.airJJC_Checked == 1 ? true : false;
  1476. that.airGWC_Checked = res.data.data.airGWC_Checked == 1 ? true : false;
  1477. //住宿费
  1478. that.quarterageData = res.data.data.quarterageData;
  1479. for (let a = 0; a < res.data.data.quarterageData.length; a++) {
  1480. that.TotalAccommodationFee += Number(res.data.data.quarterageData[a].subTotal)
  1481. }
  1482. //伙食费
  1483. that.boardWagesData = res.data.data.boardWagesData;
  1484. for (let b = 0; b < res.data.data.boardWagesData.length; b++) {
  1485. that.TotalMeals += res.data.data.boardWagesData[b].subTotal
  1486. }
  1487. //公杂费
  1488. that.miscellaneousFeeData = res.data.data.miscellaneousFeeData;
  1489. for (let c = 0; c < res.data.data.miscellaneousFeeData.length; c++) {
  1490. that.TotalMiscellaneous += res.data.data.miscellaneousFeeData[c].subTotal
  1491. }
  1492. //培训费
  1493. that.trainingExpenseData = res.data.data.trainingExpenseData;
  1494. for (let d = 0; d < res.data.data.trainingExpenseData.length; d++) {
  1495. that.trainingExpense += res.data.data.trainingExpenseData[d].subTotal
  1496. }
  1497. //其他费
  1498. that.otherData = res.data.data.dayOtherPriceData;
  1499. for (let e = 0; e < res.data.data.dayOtherPriceData.length; e++) {
  1500. that.otherExpense += res.data.data.dayOtherPriceData[e].subTotal
  1501. }
  1502. that.storageid = res.data.data.id;
  1503. // that.GetNationalTravelFeeData();
  1504. that.fullscreenLoading = false;
  1505. that.GetEnterExitCostCorrelationTips(2);
  1506. that.EnterExitCostFileOwner();
  1507. that.GetNationalTravelFeeData();
  1508. } else {
  1509. that.fullscreenLoading = false;
  1510. that.provinceId=res.data.data.provinceId;
  1511. that.EnterExitCostFileOwner();
  1512. that.GetNationalTravelFeeData();
  1513. that.GetEnterExitCostCorrelationTips(1);
  1514. that.$message.warning(res.data.msg);
  1515. if (res.data.msg=='未查询出数据!可操作该条数据!') {
  1516. that.isSave=true;
  1517. that.isView=true;
  1518. }
  1519. }
  1520. })
  1521. },
  1522. //全部清空
  1523. cleanout() {
  1524. this.fullscreenLoading = true
  1525. this.$confirm('此操作将全部清空, 是否继续?', '提示', {
  1526. confirmButtonText: '确定',
  1527. cancelButtonText: '取消',
  1528. type: 'warning'
  1529. }).then(() => {
  1530. var url = "/api/Groups/PostEnterExitCostOneClickClear"
  1531. var that = this
  1532. this.$axios({
  1533. method: 'post',
  1534. url: url,
  1535. headers: {
  1536. Authorization: 'Bearer ' + this.token
  1537. },
  1538. data: {
  1539. portType: 1,
  1540. diId: that.value,
  1541. userId: that.userId,
  1542. id: that.ID
  1543. }
  1544. }).then(function (res) {
  1545. if (res.data.code == 200) {
  1546. that.$message({
  1547. type: 'success',
  1548. message: res.data.msg
  1549. });
  1550. that.GetEnterExitCostInfobyDiId()
  1551. } else {
  1552. that.fullscreenLoading = false;
  1553. that.$message.error(res.data.msg);
  1554. }
  1555. })
  1556. }).catch(() => {
  1557. this.fullscreenLoading = false;
  1558. this.$message({
  1559. type: 'info',
  1560. message: '已取消清空'
  1561. });
  1562. });
  1563. },
  1564. //下拉
  1565. handNodeClick(data, node, e) {
  1566. this.treeDataValue = data.name
  1567. this.treeData = data.name
  1568. },
  1569. //sr需求
  1570. SRrequirement(obj) {
  1571. var currencyinfo = {}
  1572. var rate = 0
  1573. currencyinfo = this.othercurrencys.find(function (i) {
  1574. return i.currencyId === obj.currency
  1575. });
  1576. rate = currencyinfo.rate;
  1577. this.otherExpense = 0;
  1578. for (let l = 0; l < this.otherData.length; l++) {
  1579. this.otherData[l].currency = obj.currency
  1580. this.otherData[l].subTotal = Number(this.otherData[l].cost) * Number(rate);
  1581. this.otherExpense += this.otherData[l].subTotal;
  1582. }
  1583. },
  1584. //住宿地区选择
  1585. changeSelect(val, item, index) {
  1586. var xiabiao=0
  1587. var rate = 0
  1588. var obj = {}
  1589. obj = this.placeinif.find(function (i,indexs) {
  1590. xiabiao=indexs
  1591. return i.id === item
  1592. });
  1593. this.placeinif.splice(xiabiao,1);
  1594. this.placeinif.unshift(obj);
  1595. this.SRrequirement(obj)
  1596. //在change中获取到整条对象数据
  1597. val.currencyName = obj.currencyName;
  1598. val.currency = obj.currency;
  1599. val.cost = obj.roomCost;
  1600. for (let j = 0; j < this.currencys.length; j++) {
  1601. if (this.currencys[j].currencyCode == obj.currencyCode) {
  1602. rate = this.currencys[j].rate;
  1603. }
  1604. }
  1605. val.subTotal = Number(val.cost) * Number(rate);
  1606. this.TotalAccommodationFee = 0;
  1607. for (let a = 0; a < this.quarterageData.length; a++) {
  1608. this.TotalAccommodationFee += Number(new Decimal(this.quarterageData[a].subTotal).toFixed(2));
  1609. }
  1610. // this.mealschangeSelect(this.boardWagesData,item,index)
  1611. },
  1612. //住宿费费用标准值改变
  1613. zhusuinput(val) {
  1614. var rate = 0
  1615. for (let j = 0; j < this.currencys.length; j++) {
  1616. if (this.currencys[j].currencyName == val.currencyName) {
  1617. rate = this.currencys[j].rate;
  1618. }
  1619. }
  1620. val.subTotal = Number(val.cost) * Number(rate);
  1621. this.TotalAccommodationFee = 0;
  1622. for (let a = 0; a < this.quarterageData.length; a++) {
  1623. this.TotalAccommodationFee += Number(new Decimal(this.quarterageData[a].subTotal).toFixed(2));
  1624. }
  1625. },
  1626. //伙食费费用标准值改变
  1627. mealsinput(val) {
  1628. var rate = 0
  1629. for (let j = 0; j < this.currencys.length; j++) {
  1630. if (this.currencys[j].currencyName == val.currencyName) {
  1631. rate = this.currencys[j].rate;
  1632. }
  1633. }
  1634. val.subTotal = Number(val.cost) * Number(rate);
  1635. this.TotalMeals = 0;
  1636. for (let a = 0; a < this.boardWagesData.length; a++) {
  1637. // this.TotalMeals += this.boardWagesData[a].subTotal
  1638. this.TotalMeals += Number(new Decimal(this.boardWagesData[a].subTotal).toFixed(2));
  1639. }
  1640. },
  1641. //伙食地区选择
  1642. mealschangeSelect(val, item, index) {
  1643. var xiabiao=0
  1644. var rate = 0
  1645. var obj = {}
  1646. obj = this.placeinif.find(function (i,indexs) {
  1647. xiabiao=indexs
  1648. return i.id === item
  1649. });
  1650. this.placeinif.splice(xiabiao,1);
  1651. this.placeinif.unshift(obj);
  1652. //在change中获取到整条对象数据
  1653. // if(index!=undefined){
  1654. // val[index].currencyName=obj.currencyName;
  1655. // val[index].currency=obj.currency;
  1656. // val[index].cost=obj.foodCost;
  1657. // val[index].nationalTravelFeeId=obj.id;
  1658. // for(let j=0;j<this.currencys.length;j++){
  1659. // if(this.currencys[j].currencyCode==obj.currencyCode){
  1660. // rate=this.currencys[j].rate;
  1661. // }
  1662. // }
  1663. // val[index].subTotal=Number(val[index].cost)*Number(rate);
  1664. // this.TotalMeals=0;
  1665. // for(let a=0;a<this.boardWagesData.length;a++){
  1666. // this.TotalMeals+=this.boardWagesData[a].subTotal
  1667. // }
  1668. // }
  1669. val.currencyName = obj.currencyName;
  1670. val.currency = obj.currency;
  1671. val.cost = obj.foodCost;
  1672. for (let j = 0; j < this.currencys.length; j++) {
  1673. if (this.currencys[j].currencyCode == obj.currencyCode) {
  1674. rate = this.currencys[j].rate;
  1675. }
  1676. }
  1677. val.subTotal = Number(val.cost) * Number(rate);
  1678. this.TotalMeals = 0;
  1679. for (let a = 0; a < this.boardWagesData.length; a++) {
  1680. this.TotalMeals += this.boardWagesData[a].subTotal
  1681. }
  1682. this.MiscellaneouschangeSelect(this.miscellaneousFeeData, item, index)
  1683. },
  1684. //公杂费费用标准值改变
  1685. Miscellaneousinput(val) {
  1686. var rate = 0
  1687. for (let j = 0; j < this.currencys.length; j++) {
  1688. if (this.currencys[j].currencyName == val.currencyName) {
  1689. rate = this.currencys[j].rate;
  1690. }
  1691. }
  1692. val.subTotal = Number(val.cost) * Number(rate);
  1693. this.TotalMiscellaneous = 0;
  1694. for (let a = 0; a < this.miscellaneousFeeData.length; a++) {
  1695. // this.TotalMiscellaneous += this.miscellaneousFeeData[a].subTotal
  1696. this.TotalMiscellaneous += Number(new Decimal(this.miscellaneousFeeData[a].subTotal).toFixed(2));
  1697. }
  1698. },
  1699. //公杂费地区选择
  1700. MiscellaneouschangeSelect(val, item, index) {
  1701. var xiabiao=0
  1702. var rate = 0
  1703. var obj = {}
  1704. obj = this.placeinif.find(function (i,indexs) {
  1705. xiabiao=indexs
  1706. return i.id === item
  1707. });
  1708. this.placeinif.splice(xiabiao,1);
  1709. this.placeinif.unshift(obj);
  1710. //在change中获取到整条对象数据
  1711. if (index != undefined) {
  1712. val[index].currencyName = obj.currencyName;
  1713. val[index].currency = obj.currency;
  1714. val[index].cost = obj.publicCost;
  1715. val[index].nationalTravelFeeId = obj.id;
  1716. for (let j = 0; j < this.currencys.length; j++) {
  1717. if (this.currencys[j].currencyCode == obj.currencyCode) {
  1718. rate = this.currencys[j].rate;
  1719. }
  1720. }
  1721. val[index].subTotal = Number(val[index].cost) * Number(rate);
  1722. this.TotalMiscellaneous = 0;
  1723. for (let a = 0; a < this.miscellaneousFeeData.length; a++) {
  1724. this.TotalMiscellaneous += this.miscellaneousFeeData[a].subTotal
  1725. }
  1726. }
  1727. val.currencyName = obj.currencyName;
  1728. val.currency = obj.currency;
  1729. val.cost = obj.publicCost;
  1730. for (let j = 0; j < this.currencys.length; j++) {
  1731. if (this.currencys[j].currencyCode == obj.currencyCode) {
  1732. rate = this.currencys[j].rate;
  1733. }
  1734. }
  1735. val.subTotal = Number(val.cost) * Number(rate);
  1736. this.TotalMiscellaneous = 0;
  1737. for (let a = 0; a < this.miscellaneousFeeData.length; a++) {
  1738. this.TotalMiscellaneous += this.miscellaneousFeeData[a].subTotal
  1739. }
  1740. },
  1741. //培训费费用标准值改变
  1742. Traininginput(val) {
  1743. var rate = 0
  1744. for (let j = 0; j < this.currencys.length; j++) {
  1745. if (this.currencys[j].currencyName == val.currencyName) {
  1746. rate = this.currencys[j].rate;
  1747. }
  1748. }
  1749. val.subTotal = Number(val.cost) * Number(rate);
  1750. this.trainingExpense = 0;
  1751. for (let a = 0; a < this.trainingExpenseData.length; a++) {
  1752. // this.trainingExpense += this.trainingExpenseData[a].subTotal
  1753. this.trainingExpense += Number(new Decimal(this.trainingExpenseData[a].subTotal).toFixed(2));
  1754. }
  1755. },
  1756. //培训费地区选择
  1757. TrainingExpenseDataSelect(val, item,index) {
  1758. var xiabiao=0
  1759. var rate = 0//汇率
  1760. var obj = {}
  1761. obj = this.placeinif.find(function (i,indexs) {
  1762. xiabiao=indexs
  1763. return i.id === item
  1764. });
  1765. this.placeinif.splice(xiabiao,1);
  1766. this.placeinif.unshift(obj);
  1767. //在change中获取到整条对象数据
  1768. // if (index != undefined) {
  1769. // val[index].currencyName = obj.currencyName;
  1770. // val[index].currency = obj.currency;
  1771. // val[index].cost = obj.trainCost;
  1772. // val[index].nationalTravelFeeId = obj.id;
  1773. // for (let j = 0; j < this.currencys.length; j++) {
  1774. // if (this.currencys[j].currencyCode == obj.currencyCode) {
  1775. // rate = this.currencys[j].rate;
  1776. // }
  1777. // }
  1778. // val[index].subTotal = Number(val[index].cost) * Number(rate);
  1779. // this.trainingExpense=0;
  1780. // for (let a = 0; a < this.trainingExpenseData.length; a++) {
  1781. // this.trainingExpense += this.trainingExpenseData[a].subTotal
  1782. // }
  1783. // }
  1784. val.currencyName = obj.currencyName;
  1785. val.currency = obj.currency;
  1786. val.cost=obj.trainCost;
  1787. for (let j = 0; j < this.currencys.length; j++) {
  1788. if (this.currencys[j].currencyCode == obj.currencyCode) {
  1789. rate = this.currencys[j].rate;
  1790. }
  1791. }
  1792. val.subTotal = Number(val.cost) * Number(rate);
  1793. this.trainingExpense=0;
  1794. for (let a = 0; a < this.trainingExpenseData.length; a++) {
  1795. this.trainingExpense += this.trainingExpenseData[a].subTotal
  1796. }
  1797. },
  1798. //其他币种值改变
  1799. othercurrencychange(val, row) {
  1800. var obj = {};
  1801. var rate = 0;
  1802. obj = this.othercurrencys.find(function (i) {
  1803. return i.currencyId === val;
  1804. });
  1805. rate = obj.rate
  1806. row.subTotal = Number(row.cost) * Number(rate);
  1807. this.otherExpense = 0;
  1808. for (let a = 0; a < this.otherData.length; a++) {
  1809. this.otherExpense += this.otherData[a].subTotal;
  1810. }
  1811. },
  1812. //其他费用标准值改变
  1813. otherinput(val) {
  1814. if (val.currency == '' || this.othercurrencys == '') {
  1815. return
  1816. }
  1817. var obj = {}
  1818. var rate = 0
  1819. obj = this.othercurrencys.find(function (i) {
  1820. return i.currencyId === val.currency
  1821. });
  1822. rate = obj.rate
  1823. val.subTotal = Number(val.cost) * Number(rate);
  1824. this.otherExpense = 0;
  1825. for (let a = 0; a < this.otherData.length; a++) {
  1826. // this.otherExpense += this.otherData[a].subTotal
  1827. this.otherExpense += Number(new Decimal(this.otherData[a].subTotal).toFixed(2));
  1828. }
  1829. },
  1830. //新增list
  1831. addlist(text) {
  1832. if (text == "住宿费") {
  1833. this.quarterageData.push({
  1834. id: 0,
  1835. diId: this.value,
  1836. type: 1,
  1837. days: this.quarterageData.length != 0 ? (this.quarterageData[this.quarterageData.length - 1].days) + 1 : 1,
  1838. nationalTravelFeeId: '',
  1839. cost: 0,
  1840. currency: 0,
  1841. subTotal: 0,
  1842. remark: '',
  1843. })
  1844. // this.boardWagesData.push({
  1845. // id:0,
  1846. // diId:this.value,
  1847. // type:2,
  1848. // days:this.boardWagesData.length!=0?(this.boardWagesData[this.boardWagesData.length-1].days)+1:1,
  1849. // nationalTravelFeeId:'',
  1850. // cost:0,
  1851. // currency:0,
  1852. // subTotal:0,
  1853. // remark:'',
  1854. // })
  1855. }
  1856. if (text == "伙食费") {
  1857. this.boardWagesData.push({
  1858. id: 0,
  1859. diId: this.value,
  1860. type: 2,
  1861. days: this.boardWagesData.length != 0 ? (this.boardWagesData[this.boardWagesData.length - 1].days) + 1 : 1,
  1862. nationalTravelFeeId: '',
  1863. cost: 0,
  1864. currency: 0,
  1865. subTotal: 0,
  1866. remark: '',
  1867. })
  1868. this.miscellaneousFeeData.push({
  1869. id: 0,
  1870. diId: this.value,
  1871. type: 3,
  1872. days: this.miscellaneousFeeData.length != 0 ? (this.miscellaneousFeeData[this.miscellaneousFeeData.length - 1].days) + 1 : 1,
  1873. nationalTravelFeeId: '',
  1874. cost: 0,
  1875. currency: 0,
  1876. subTotal: 0,
  1877. remark: '',
  1878. })
  1879. }
  1880. if (text == "公杂费") {
  1881. this.miscellaneousFeeData.push({
  1882. id: 0,
  1883. diId: this.value,
  1884. type: 3,
  1885. days: this.miscellaneousFeeData.length != 0 ? (this.miscellaneousFeeData[this.miscellaneousFeeData.length - 1].days) + 1 : 1,
  1886. nationalTravelFeeId: '',
  1887. cost: 0,
  1888. currency: 0,
  1889. subTotal: 0,
  1890. remark: '',
  1891. })
  1892. }
  1893. if (text == "培训费") {
  1894. this.trainingExpenseData.push({
  1895. id: 0,
  1896. diId: this.value,
  1897. type: 4,
  1898. days: this.trainingExpenseData.length != 0 ? (this.trainingExpenseData[this.trainingExpenseData.length - 1].days) + 1 : 1,
  1899. nationalTravelFeeId: '',
  1900. cost: 0,
  1901. currency: 0,
  1902. subTotal: 0,
  1903. remark: '',
  1904. })
  1905. }
  1906. if (text == "其他") {
  1907. this.otherData.push({
  1908. id: 0,
  1909. diId: this.value,
  1910. setDataId: '',
  1911. index: this.otherData.length != 0 ? (this.otherData[this.otherData.length - 1].index) + 1 : 1,
  1912. cost: '',
  1913. cost: 0,
  1914. currency: 0,
  1915. subTotal: 0,
  1916. remark:'',
  1917. })
  1918. }
  1919. },
  1920. //保存
  1921. storage: debounce(function () {
  1922. return new Promise((resolve, reject) => {
  1923. //已使用币种
  1924. let usedCurrencys = [];
  1925. //住宿费
  1926. this.fullscreenLoading = true
  1927. var quarterageDatas = [];
  1928. for (let m = 0; m < this.quarterageData.length; m++) {
  1929. usedCurrencys.push(this.quarterageData[m].curremcyCode);
  1930. if (this.quarterageData[m].nationalTravelFeeId != '') {
  1931. quarterageDatas.push({
  1932. id: this.quarterageData[m].id,
  1933. diId: this.quarterageData[m].diId,
  1934. type: this.quarterageData[m].type,
  1935. days: this.quarterageData[m].days,
  1936. nationalTravelFeeId: this.quarterageData[m].nationalTravelFeeId,
  1937. cost: this.quarterageData[m].cost,
  1938. currency: this.quarterageData[m].currency,
  1939. subTotal: this.quarterageData[m].subTotal,
  1940. remark: this.quarterageData[m].remark,
  1941. })
  1942. }
  1943. }
  1944. //伙食费
  1945. var boardWagesDatas = [];
  1946. for (let n = 0; n < this.boardWagesData.length; n++) {
  1947. usedCurrencys.push(this.boardWagesData[n].curremcyCode);
  1948. if (this.boardWagesData[n].nationalTravelFeeId != '') {
  1949. boardWagesDatas.push({
  1950. id: this.boardWagesData[n].id,
  1951. diId: this.boardWagesData[n].diId,
  1952. type: this.boardWagesData[n].type,
  1953. days: this.boardWagesData[n].days,
  1954. nationalTravelFeeId: this.boardWagesData[n].nationalTravelFeeId,
  1955. cost: this.boardWagesData[n].cost,
  1956. currency: this.boardWagesData[n].currency,
  1957. subTotal: this.boardWagesData[n].subTotal,
  1958. remark: this.boardWagesData[n].remark,
  1959. })
  1960. }
  1961. }
  1962. //公杂费miscellaneousFeeData
  1963. var miscellaneousFeeDatas = [];
  1964. for (let b = 0; b < this.miscellaneousFeeData.length; b++) {
  1965. usedCurrencys.push(this.miscellaneousFeeData[b].curremcyCode);
  1966. if (this.miscellaneousFeeData[b].nationalTravelFeeId != '') {
  1967. miscellaneousFeeDatas.push({
  1968. id: this.miscellaneousFeeData[b].id,
  1969. diId: this.miscellaneousFeeData[b].diId,
  1970. type: this.miscellaneousFeeData[b].type,
  1971. days: this.miscellaneousFeeData[b].days,
  1972. nationalTravelFeeId: this.miscellaneousFeeData[b].nationalTravelFeeId,
  1973. cost: this.miscellaneousFeeData[b].cost,
  1974. currency: this.miscellaneousFeeData[b].currency,
  1975. subTotal: this.miscellaneousFeeData[b].subTotal,
  1976. remark: this.miscellaneousFeeData[b].remark,
  1977. })
  1978. }
  1979. }
  1980. //培训费
  1981. var trainingExpenseDatas = [];
  1982. for (let p = 0; p < this.trainingExpenseData.length; p++) {
  1983. usedCurrencys.push(this.trainingExpenseData[p].curremcyCode);
  1984. if (this.trainingExpenseData[p].nationalTravelFeeId != '') {
  1985. trainingExpenseDatas.push({
  1986. id: this.trainingExpenseData[p].id,
  1987. diId: this.trainingExpenseData[p].diId,
  1988. type: this.trainingExpenseData[p].type,
  1989. days: this.trainingExpenseData[p].days,
  1990. nationalTravelFeeId: this.trainingExpenseData[p].nationalTravelFeeId,
  1991. cost: this.trainingExpenseData[p].cost,
  1992. currency: this.trainingExpenseData[p].currency,
  1993. subTotal: this.trainingExpenseData[p].subTotal,
  1994. remark: this.trainingExpenseData[p].remark,
  1995. })
  1996. }
  1997. }
  1998. //其他费
  1999. var otherDatas = [];
  2000. for (let c = 0; c < this.otherData.length; c++) {
  2001. //usedCurrencys.push(this.otherData[c].curremcyCode);
  2002. if (this.otherData[c].setDataId != '') {
  2003. otherDatas.push({
  2004. id: this.otherData[c].id,
  2005. diId: this.otherData[c].diId,
  2006. index: this.otherData[c].index,
  2007. setDataId: this.otherData[c].setDataId,
  2008. cost: this.otherData[c].cost,
  2009. currency: this.otherData[c].currency,
  2010. subTotal: this.otherData[c].subTotal,
  2011. remark: this.otherData[c].remark,
  2012. })
  2013. }
  2014. }
  2015. let uniqueUsedCurrencys = [...new Set(usedCurrencys)];
  2016. let confirmText='';
  2017. for(let i = 0;i < this.currencyss.length;i++)
  2018. {
  2019. let rate = this.currencyss[i];
  2020. if(uniqueUsedCurrencys.includes(rate.currCode)) {
  2021. confirmText += rate.currName + "("+ rate.currCode +"):"+ rate.rate +"\t\t";
  2022. }
  2023. }
  2024. const h = this.$createElement;
  2025. this.$confirm("实时汇率提示",{
  2026. title:'实时汇率提示',
  2027. message: h('p', null, [
  2028. h('div', null, confirmText),
  2029. //h('div', { style: 'color: red' }, '是否前往编辑!')
  2030. ]),
  2031. iconClass: "el-icon-warning-outline colorGreen",//自定义图标样式
  2032. confirmButtonText: "已知晓",//确认按钮文字更换
  2033. showCancelButton: false,
  2034. //cancelButtonText: "取消",//取消按钮文字更换
  2035. showClose: false,//是否显示右上角关闭按钮
  2036. type: "warning",//提示类型 success/info/warning/error
  2037. }).then(()=>{
  2038. //确认操作
  2039. //this.fullscreenLoading = false;
  2040. this.storageAPI(quarterageDatas, boardWagesDatas, miscellaneousFeeDatas, trainingExpenseDatas, otherDatas)
  2041. }).catch(() => {
  2042. //取消操作
  2043. });
  2044. });
  2045. }, 1000, true),
  2046. //导出保存
  2047. //保存API
  2048. storageAPI(arrthre, arrfour, arrfive, arrsix, arrSeven) {
  2049. var url = "/api/Groups/PostEnterExitCostOperate"
  2050. var that = this
  2051. this.$axios({
  2052. method: 'post',
  2053. url: url,
  2054. headers: {
  2055. Authorization: 'Bearer ' + this.token,
  2056. contentType: 'application/json'
  2057. },
  2058. data: {
  2059. portType: 1,
  2060. userId: that.userId,
  2061. id: that.storageid,
  2062. diId: that.value,
  2063. choiceOne: that.choiceOne ? 1 : 0,
  2064. insidePay: that.DomesticFees.total,
  2065. visa: that.DomesticFees.visafees,
  2066. visaRemark: that.DomesticFees.visafeesDescription,
  2067. yiMiao: that.DomesticFees.vaccinefees,
  2068. heSuan: that.DomesticFees.nucleicfees,
  2069. service: that.DomesticFees.serviceCharge,
  2070. ticket: that.DomesticFees.ticketsExhibitionL,
  2071. safe: that.DomesticFees.insurance,
  2072. firstItemRemark:that.DomesticFees.firstItemRemark,
  2073. choiceTwo: that.choiceTwo ? 1 : 0,
  2074. otherExpenses_Checked: that.choiceSeven ? 1 : 0,
  2075. sumJJC: that.sumJJC ? 1 : 0,
  2076. sumGWC: that.sumGWC ? 1 : 0,
  2077. sumTDC: that.sumTDC ? 1 : 0,
  2078. outsideJJPay: that.TotalExpenses.EconomyClasstotal,
  2079. outsideGWPay: that.TotalExpenses.BusinessClasstotal,
  2080. outsideTDPay: that.TotalExpenses.Firstclasstotal,
  2081. twoItemRemark:that.TotalExpenses.twoItemRemark,
  2082. airJJ: that.TotalExpenses.EconomyClass,
  2083. airGW: that.TotalExpenses.BusinessClass,
  2084. airTD: that.TotalExpenses.Firstclass,
  2085. cityTranffic: that.TotalExpenses.TravellingExpenses,
  2086. dayOtherPriceData: arrSeven,
  2087. currencys: that.currencys,
  2088. choiceThree: that.choiceThree ? 1 : 0,
  2089. quarterageData: arrthre,
  2090. choiceFour: that.choiceFour ? 1 : 0,
  2091. boardWagesData: arrfour,
  2092. choiceFive: that.choiceFive ? 1 : 0,
  2093. miscellaneousFeeData: arrfive,
  2094. choiceSix: that.choiceSix ? 1 : 0,
  2095. //加参数
  2096. trainingExpenseData: arrsix,
  2097. airJJC_Checked: that.airJJC_Checked ? 1 : 0,
  2098. airGWC_Checked: that.airGWC_Checked ? 1 : 0,
  2099. airTDC_Checked: that.airTDC_Checked ? 1 : 0,
  2100. }
  2101. }).then(function (res) {
  2102. if (res.data.code == 200) {
  2103. that.$message({
  2104. type: 'success',
  2105. message: res.data.msg
  2106. });
  2107. that.GetEnterExitCostInfobyDiId()
  2108. } else {
  2109. that.fullscreenLoading = false;
  2110. that.$message.error(res.data.msg);
  2111. }
  2112. }).catch(function (error) {
  2113. that.$message.error(error.message);
  2114. });
  2115. },
  2116. //选择团组名称调用
  2117. chengvalue(val) {
  2118. window.localStorage.setItem('sgvalue', this.value);
  2119. for(let i=0;i<this.options.length;i++){
  2120. if (val==this.options[i].id) {
  2121. console.log(this.options[i]);
  2122. this.provinceId=this.options[i].provinceId
  2123. }
  2124. }
  2125. this.airDataArrvalue='';
  2126. this.fullscreenLoading = true;
  2127. // this.EnterExitCostFileOwner();
  2128. // this.GetNationalTravelFeeData();
  2129. this.GetEnterExitCostInfobyDiId();
  2130. this.PostGroupTeamRateByDiIdAndCTableId();
  2131. },
  2132. eptschedule: debounce(function (val) {
  2133. return new Promise((resolve, reject) => {
  2134. //住宿费
  2135. this.fullscreenLoading = true
  2136. var quarterageDatas = [];
  2137. for (let m = 0; m < this.quarterageData.length; m++) {
  2138. if (this.quarterageData[m].nationalTravelFeeId != '') {
  2139. quarterageDatas.push({
  2140. id: this.quarterageData[m].id,
  2141. diId: this.quarterageData[m].diId,
  2142. type: this.quarterageData[m].type,
  2143. days: this.quarterageData[m].days,
  2144. nationalTravelFeeId: this.quarterageData[m].nationalTravelFeeId,
  2145. cost: this.quarterageData[m].cost,
  2146. currency: this.quarterageData[m].currency,
  2147. subTotal: this.quarterageData[m].subTotal,
  2148. remark: this.quarterageData[m].remark,
  2149. })
  2150. }
  2151. }
  2152. //伙食费
  2153. var boardWagesDatas = [];
  2154. for (let n = 0; n < this.boardWagesData.length; n++) {
  2155. if (this.boardWagesData[n].nationalTravelFeeId != '') {
  2156. boardWagesDatas.push({
  2157. id: this.boardWagesData[n].id,
  2158. diId: this.boardWagesData[n].diId,
  2159. type: this.boardWagesData[n].type,
  2160. days: this.boardWagesData[n].days,
  2161. nationalTravelFeeId: this.boardWagesData[n].nationalTravelFeeId,
  2162. cost: this.boardWagesData[n].cost,
  2163. currency: this.boardWagesData[n].currency,
  2164. subTotal: this.boardWagesData[n].subTotal,
  2165. remark: this.boardWagesData[n].remark,
  2166. })
  2167. }
  2168. }
  2169. //公杂费miscellaneousFeeData
  2170. var miscellaneousFeeDatas = [];
  2171. for (let b = 0; b < this.miscellaneousFeeData.length; b++) {
  2172. if (this.miscellaneousFeeData[b].nationalTravelFeeId != '') {
  2173. miscellaneousFeeDatas.push({
  2174. id: this.miscellaneousFeeData[b].id,
  2175. diId: this.miscellaneousFeeData[b].diId,
  2176. type: this.miscellaneousFeeData[b].type,
  2177. days: this.miscellaneousFeeData[b].days,
  2178. nationalTravelFeeId: this.miscellaneousFeeData[b].nationalTravelFeeId,
  2179. cost: this.miscellaneousFeeData[b].cost,
  2180. currency: this.miscellaneousFeeData[b].currency,
  2181. subTotal: this.miscellaneousFeeData[b].subTotal,
  2182. remark: this.miscellaneousFeeData[b].remark,
  2183. })
  2184. }
  2185. }
  2186. //培训费
  2187. var trainingExpenseDatas = [];
  2188. for (let p = 0; p < this.trainingExpenseData.length; p++) {
  2189. if (this.trainingExpenseData[p].nationalTravelFeeId != '') {
  2190. trainingExpenseDatas.push({
  2191. id: this.trainingExpenseData[p].id,
  2192. diId: this.trainingExpenseData[p].diId,
  2193. type: this.trainingExpenseData[p].type,
  2194. days: this.trainingExpenseData[p].days,
  2195. nationalTravelFeeId: this.trainingExpenseData[p].nationalTravelFeeId,
  2196. cost: this.trainingExpenseData[p].cost,
  2197. currency: this.trainingExpenseData[p].currency,
  2198. subTotal: this.trainingExpenseData[p].subTotal,
  2199. remark: this.trainingExpenseData[p].remark,
  2200. })
  2201. }
  2202. }
  2203. //其他费
  2204. var otherDatas = [];
  2205. for (let c = 0; c < this.otherData.length; c++) {
  2206. if (this.otherData[c].setDataId != '') {
  2207. otherDatas.push({
  2208. id: this.otherData[c].id,
  2209. diId: this.otherData[c].diId,
  2210. index: this.otherData[c].index,
  2211. setDataId: this.otherData[c].setDataId,
  2212. cost: this.otherData[c].cost,
  2213. currency: this.otherData[c].currency,
  2214. subTotal: this.otherData[c].subTotal,
  2215. remark: this.otherData[c].remark,
  2216. })
  2217. }
  2218. }
  2219. var url = "/api/Groups/PostEnterExitCostOperate"
  2220. var that = this
  2221. this.$axios({
  2222. method: 'post',
  2223. url: url,
  2224. headers: {
  2225. Authorization: 'Bearer ' + this.token,
  2226. contentType: 'application/json'
  2227. },
  2228. data: {
  2229. portType: 1,
  2230. userId: that.userId,
  2231. id: that.storageid,
  2232. diId: that.value,
  2233. choiceOne: that.choiceOne ? 1 : 0,
  2234. insidePay: that.DomesticFees.total,
  2235. visa: that.DomesticFees.visafees,
  2236. visaRemark: that.DomesticFees.visafeesDescription,
  2237. yiMiao: that.DomesticFees.vaccinefees,
  2238. heSuan: that.DomesticFees.nucleicfees,
  2239. service: that.DomesticFees.serviceCharge,
  2240. ticket: that.DomesticFees.ticketsExhibitionL,
  2241. safe: that.DomesticFees.insurance,
  2242. firstItemRemark: that.DomesticFees.firstItemRemark,
  2243. choiceTwo: that.choiceTwo ? 1 : 0,
  2244. otherExpenses_Checked: that.choiceSeven ? 1 : 0,
  2245. sumJJC: that.sumJJC ? 1 : 0,
  2246. sumGWC: that.sumGWC ? 1 : 0,
  2247. sumTDC: that.sumTDC ? 1 : 0,
  2248. outsideJJPay: that.TotalExpenses.EconomyClasstotal,
  2249. outsideGWPay: that.TotalExpenses.BusinessClasstotal,
  2250. outsideTDPay: that.TotalExpenses.Firstclasstotal,
  2251. twoItemRemark: that.TotalExpenses.twoItemRemark,
  2252. airJJ: that.TotalExpenses.EconomyClass,
  2253. airGW: that.TotalExpenses.BusinessClass,
  2254. airTD: that.TotalExpenses.Firstclass,
  2255. cityTranffic: that.TotalExpenses.TravellingExpenses,
  2256. dayOtherPriceData: otherDatas,
  2257. currencys: that.currencys,
  2258. choiceThree: that.choiceThree ? 1 : 0,
  2259. quarterageData: quarterageDatas,
  2260. choiceFour: that.choiceFour ? 1 : 0,
  2261. boardWagesData: boardWagesDatas,
  2262. choiceFive: that.choiceFive ? 1 : 0,
  2263. miscellaneousFeeData: miscellaneousFeeDatas,
  2264. choiceSix: that.choiceSix ? 1 : 0,
  2265. //加参数
  2266. trainingExpenseData: trainingExpenseDatas,
  2267. airJJC_Checked: that.airJJC_Checked ? 1 : 0,
  2268. airGWC_Checked: that.airGWC_Checked ? 1 : 0,
  2269. airTDC_Checked: that.airTDC_Checked ? 1 : 0,
  2270. }
  2271. }).then(function (res) {
  2272. if (res.data.code == 200) {
  2273. that.$message({
  2274. type: 'success',
  2275. message: res.data.msg
  2276. });
  2277. that.GetEnterExitCostInfobyDiId()
  2278. var subTypeId = 0
  2279. if (val == 1) {
  2280. subTypeId = that.listvalue
  2281. } else if (val == 2) {
  2282. subTypeId = that.tablevalue
  2283. } else {
  2284. subTypeId = 1
  2285. }
  2286. if (subTypeId == "") {
  2287. that.$message.error('请选择需要导出的表格');
  2288. return
  2289. }
  2290. var url = "/api/Groups/PostEnterExitCostDownload"
  2291. that.$axios({
  2292. method: 'post',
  2293. url: url,
  2294. headers: {
  2295. Authorization: 'Bearer ' + that.token
  2296. },
  2297. data: {
  2298. portType: 1,
  2299. diId: that.value,
  2300. exportType: val,
  2301. subTypeId: subTypeId
  2302. }
  2303. }).then(function (res) {
  2304. if (res.data.code == 200) {
  2305. that.$message({
  2306. type: 'success',
  2307. message: res.data.msg
  2308. });
  2309. window.open(res.data.data.url);
  2310. } else {
  2311. that.$message.error(res.data.msg);
  2312. }
  2313. })
  2314. } else {
  2315. that.fullscreenLoading = false;
  2316. that.$message.error(res.data.msg);
  2317. }
  2318. }).catch(function (error) {
  2319. that.$message.error(error.message);
  2320. });
  2321. // this.storageAPI(quarterageDatas, boardWagesDatas, miscellaneousFeeDatas, trainingExpenseDatas, otherDatas)
  2322. })
  2323. // this.storage().then(function () {
  2324. // });
  2325. }, 500, true),
  2326. //
  2327. calculation() {
  2328. var jnfy
  2329. var jjcxj
  2330. var gwcxj
  2331. var tdcxj
  2332. var zsf
  2333. var hsf
  2334. var gzf
  2335. var pxf
  2336. var qtfy
  2337. if (this.choiceOne == true) {
  2338. jnfy = this.DomesticFees.total;
  2339. } else {
  2340. jnfy = 0;
  2341. }
  2342. if (this.choiceThree == true) {
  2343. zsf = this.TotalAccommodationFee;
  2344. } else {
  2345. zsf = 0;
  2346. }
  2347. if (this.choiceFour == true) {
  2348. hsf = this.TotalMeals;
  2349. } else {
  2350. hsf = 0;
  2351. }
  2352. if (this.choiceFive == true) {
  2353. gzf = this.TotalMiscellaneous;
  2354. } else {
  2355. gzf = 0;
  2356. }
  2357. if (this.choiceSix == true) {
  2358. pxf = this.trainingExpense;
  2359. } else {
  2360. pxf = 0;
  2361. }
  2362. if (this.choiceSeven == true) {
  2363. qtfy = this.otherExpense;
  2364. } else {
  2365. qtfy = 0;
  2366. }
  2367. if (this.sumJJC == true) {
  2368. jjcxj = this.TotalExpenses.EconomyClasstotal;
  2369. this.jjctotal = jnfy + jjcxj + zsf + hsf + gzf + pxf + qtfy;
  2370. } else {
  2371. jjcxj = 0;
  2372. this.jjctotal = 0;
  2373. }
  2374. if (this.sumGWC == true) {
  2375. gwcxj = this.TotalExpenses.BusinessClasstotal;
  2376. this.gwctotal = jnfy + gwcxj + zsf + hsf + gzf + pxf + qtfy;
  2377. } else {
  2378. gwcxj = 0;
  2379. this.gwctotal = 0;
  2380. }
  2381. if (this.sumTDC == true) {
  2382. tdcxj = this.TotalExpenses.Firstclasstotal;
  2383. this.tdctotal = jnfy + tdcxj + zsf + hsf + gzf + pxf + qtfy;
  2384. } else {
  2385. tdcxj = 0;
  2386. this.tdctotal = 0;
  2387. }
  2388. },
  2389. //其他删除
  2390. DeleteOtherExpenses(index, row, rows) {
  2391. this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', {
  2392. confirmButtonText: '确定',
  2393. cancelButtonText: '取消',
  2394. type: 'warning'
  2395. }).then(() => {
  2396. {
  2397. if (row.id == 0) {
  2398. this.$message({
  2399. type: 'success',
  2400. message: '删除成功'
  2401. });
  2402. rows.splice(index, 1);
  2403. this.otherExpense = 0;
  2404. for (let a = 0; a < rows.length; a++) {
  2405. this.otherExpense += rows[a].subTotal;
  2406. }
  2407. return;
  2408. }
  2409. var url = "/api/Groups/DeleteOtherExpenses"
  2410. var that = this
  2411. this.$axios({
  2412. method: 'post',
  2413. url: url,
  2414. headers: {
  2415. Authorization: 'Bearer ' + that.token
  2416. },
  2417. data: {
  2418. portType: 1,
  2419. id: row.id,
  2420. deleteUserId: that.userId
  2421. }
  2422. }).then(function (res) {
  2423. if (res.data.code == 200) {
  2424. that.$message({
  2425. type: 'success',
  2426. message: res.data.msg
  2427. });
  2428. rows.splice(index, 1);
  2429. this.otherExpense = 0;
  2430. for (let a = 0; a < rows.length; a++) {
  2431. this.otherExpense += rows[a].subTotal;
  2432. }
  2433. } else {
  2434. that.$message.error(res.data.msg);
  2435. }
  2436. })
  2437. }
  2438. }).catch(() => {
  2439. this.$message({
  2440. type: 'info',
  2441. message: '已取消删除'
  2442. });
  2443. });
  2444. },
  2445. //删除
  2446. deleteRow(index, row, rows, val) {
  2447. this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', {
  2448. confirmButtonText: '确定',
  2449. cancelButtonText: '取消',
  2450. type: 'warning'
  2451. }).then(() => {
  2452. if (row.id == 0) {
  2453. this.$message({
  2454. type: 'success',
  2455. message: '删除成功'
  2456. });
  2457. rows.splice(index, 1);
  2458. if (val == 1) {
  2459. this.TotalAccommodationFee = 0;
  2460. for (let a = 0; a < rows.length; a++) {
  2461. this.TotalAccommodationFee += rows[a].subTotal;
  2462. }
  2463. }
  2464. if (val == 2) {
  2465. this.TotalMeals = 0;
  2466. for (let a = 0; a < rows.length; a++) {
  2467. this.TotalMeals += rows[a].subTotal;
  2468. }
  2469. }
  2470. if (val == 3) {
  2471. this.TotalMiscellaneous = 0;
  2472. for (let a = 0; a < rows.length; a++) {
  2473. this.TotalMiscellaneous += rows[a].subTotal;
  2474. }
  2475. }
  2476. if (val == 4) {
  2477. this.trainingExpense = 0;
  2478. for (let a = 0; a < rows.length; a++) {
  2479. this.trainingExpense += rows[a].subTotal;
  2480. }
  2481. }
  2482. return;
  2483. }
  2484. var url = "/api/Groups/PostEnterExitCostSubItemDel"
  2485. var that = this
  2486. this.$axios({
  2487. method: 'post',
  2488. url: url,
  2489. headers: {
  2490. Authorization: 'Bearer ' + that.token
  2491. },
  2492. data: {
  2493. portType: 1,
  2494. id: row.id,
  2495. deleteUserId: that.userId
  2496. }
  2497. }).then(function (res) {
  2498. if (res.data.code == 200) {
  2499. that.$message({
  2500. type: 'success',
  2501. message: res.data.msg
  2502. });
  2503. rows.splice(index, 1);
  2504. if (val == 1) {
  2505. that.TotalAccommodationFee = 0;
  2506. for (let a = 0; a < rows.length; a++) {
  2507. that.TotalAccommodationFee += rows[a].subTotal;
  2508. }
  2509. }
  2510. if (val == 2) {
  2511. that.TotalMeals = 0;
  2512. for (let a = 0; a < rows.length; a++) {
  2513. that.TotalMeals += rows[a].subTotal;
  2514. }
  2515. }
  2516. if (val == 3) {
  2517. that.TotalMiscellaneous = 0;
  2518. for (let a = 0; a < rows.length; a++) {
  2519. that.TotalMiscellaneous += rows[a].subTotal;
  2520. }
  2521. }
  2522. if (val == 4) {
  2523. that.trainingExpense = 0;
  2524. for (let a = 0; a < rows.length; a++) {
  2525. that.trainingExpense += rows[a].subTotal;
  2526. }
  2527. }
  2528. } else {
  2529. that.$message.error(res.data.msg);
  2530. }
  2531. })
  2532. }).catch(() => {
  2533. this.$message({
  2534. type: 'info',
  2535. message: '已取消删除'
  2536. });
  2537. });
  2538. },
  2539. //填入实时汇率
  2540. adoptRealtime() {
  2541. for (let at = 0; at < this.currencys.length; at++) {
  2542. for (let rt = 0; rt < this.currencyss.length; rt++) {
  2543. if (this.currencys[at].currencyCode == this.currencyss[rt].currCode) {
  2544. this.currencys[at].rate = this.currencyss[rt].rate
  2545. }
  2546. }
  2547. }
  2548. this.cubtn = false;
  2549. },
  2550. Getnewvisafee() {
  2551. this.DomesticFees.visafees = this.visainfo.feeTotal;
  2552. this.DomesticFees.visafeesDescription = this.visainfo.remark;
  2553. this.getvisafeebtn = false;
  2554. },
  2555. //导出到收款账单
  2556. NationalTravelFeeImportReceivables() {
  2557. var url = "/api/Groups/NationalTravelFeeImportReceivables/" + this.value
  2558. var that = this
  2559. this.$axios({
  2560. method: 'get',
  2561. url: url,
  2562. headers: {
  2563. Authorization: 'Bearer ' + that.token
  2564. },
  2565. }).then(function (res) {
  2566. if (res.data.code == 200) {
  2567. that.$message({
  2568. type: 'success',
  2569. message: res.data.msg
  2570. });
  2571. } else {
  2572. that.$message.error(res.data.msg);
  2573. }
  2574. }).catch(function (error) {
  2575. that.$message.error("操作错误,联系信息部!");
  2576. });
  2577. },
  2578. //设置权限按钮
  2579. setpermissionsbtn(){
  2580. this.viewUsers=this.viewUsersby;
  2581. this.setpermissions=true;
  2582. },
  2583. handleCheckAllChange(val) {
  2584. },
  2585. //分配查看权限
  2586. EnterExitCostSetViewPermissiion() {
  2587. var url = "/api/Groups/EnterExitCostSetViewPermissiion"
  2588. var that = this
  2589. this.$axios({
  2590. method: 'post',
  2591. url: url,
  2592. headers: {
  2593. Authorization: 'Bearer ' + that.token
  2594. },
  2595. data:{
  2596. portType:1,
  2597. groupId:that.value,
  2598. userIds:that.viewUsers,
  2599. currUserId:that.userId,
  2600. }
  2601. }).then(function (res) {
  2602. if (res.data.code == 200) {
  2603. that.$message({
  2604. type: 'success',
  2605. message: res.data.msg
  2606. });
  2607. that.setpermissions=false;
  2608. that.GetEnterExitCostInfobyDiId();
  2609. } else {
  2610. that.setpermissions=false;
  2611. that.$message.error(res.data.msg);
  2612. }
  2613. }).catch(function (error) {
  2614. that.$message.error("操作错误,联系信息部!");
  2615. });
  2616. },
  2617. },
  2618. filters: {
  2619. numFilter(value) {
  2620. // 截取当前数据到小数点后两位
  2621. let realVal = new Decimal(value).toFixed(2)
  2622. return realVal
  2623. }
  2624. },
  2625. watch: {
  2626. choiceOne(val) {//境内费用(其他费用)选择框
  2627. this.calculation();
  2628. },
  2629. choiceThree(val) {//住宿费合计选择框
  2630. this.calculation();
  2631. },
  2632. choiceFour(val) {//伙食费合计选择框
  2633. this.calculation();
  2634. },
  2635. choiceFive(val) {//公杂费合计选择框
  2636. this.calculation();
  2637. },
  2638. choiceSix(val) {//培训费用选择框
  2639. this.calculation();
  2640. },
  2641. choiceSeven(val) {//其他费用选择框
  2642. this.calculation();
  2643. },
  2644. //加参数
  2645. sumJJC(val) {//经济舱小计选择框
  2646. this.calculation();
  2647. },
  2648. sumGWC(val) {//公务舱小计选择框
  2649. this.calculation();
  2650. },
  2651. sumTDC(val) {//公务舱小计选择框
  2652. this.calculation();
  2653. },
  2654. 'DomesticFees.total': {
  2655. handler(newVal, oldVal) {
  2656. this.calculation();
  2657. // this.jjctotal=this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.EconomyClasstotal;
  2658. // this.gwctotal=this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.BusinessClasstotal;
  2659. },
  2660. },
  2661. TotalAccommodationFee: {
  2662. handler(newVal, oldVal) {
  2663. this.calculation();
  2664. // this.jjctotal=this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.EconomyClasstotal;
  2665. // this.gwctotal=this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.BusinessClasstotal;
  2666. },
  2667. },
  2668. TotalMeals: {
  2669. handler(newVal, oldVal) {
  2670. this.calculation();
  2671. // this.jjctotal=this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.EconomyClasstotal;
  2672. // this.gwctotal=this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.BusinessClasstotal;
  2673. },
  2674. },
  2675. TotalMiscellaneous: {
  2676. handler(newVal, oldVal) {
  2677. this.calculation();
  2678. // this.jjctotal=this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.EconomyClasstotal;
  2679. // this.gwctotal=this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.BusinessClasstotal;
  2680. },
  2681. },
  2682. trainingExpense: {
  2683. handler(newVal, oldVal) {
  2684. this.calculation();
  2685. // this.jjctotal=this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.EconomyClasstotal;
  2686. // this.gwctotal=this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.BusinessClasstotal;
  2687. },
  2688. },
  2689. otherExpense: {
  2690. handler(newVal, oldVal) {
  2691. this.calculation();
  2692. // this.jjctotal=this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.EconomyClasstotal;
  2693. // this.gwctotal=this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.BusinessClasstotal;
  2694. },
  2695. },
  2696. 'TotalExpenses.EconomyClasstotal': {
  2697. handler(newVal, oldVal) {
  2698. this.calculation();
  2699. // this.jjctotal=this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.EconomyClasstotal;
  2700. // this.gwctotal=this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.BusinessClasstotal;
  2701. },
  2702. },
  2703. 'TotalExpenses.BusinessClasstotal': {
  2704. handler(newVal, oldVal) {
  2705. this.calculation();
  2706. // this.jjctotal=this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.EconomyClasstotal;
  2707. // this.gwctotal=this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.BusinessClasstotal;
  2708. },
  2709. },
  2710. 'TotalExpenses.Firstclasstotal': {
  2711. handler(newVal, oldVal) {
  2712. this.calculation();
  2713. // this.jjctotal=this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.EconomyClasstotal;
  2714. // this.gwctotal=this.DomesticFees.total+this.TotalAccommodationFee+this.TotalMeals+this.TotalMiscellaneous+this.trainingExpense+this.TotalExpenses.BusinessClasstotal;
  2715. },
  2716. },
  2717. //境内费用非空处理
  2718. DomesticFees: {
  2719. handler(newVal, oldVal) {
  2720. if (newVal.insurance == undefined) {
  2721. newVal.insurance = 0
  2722. }
  2723. if (newVal.nucleicfees == undefined) {
  2724. newVal.nucleicfees = 0
  2725. }
  2726. if (newVal.serviceCharge == undefined) {
  2727. newVal.serviceCharge = 0
  2728. }
  2729. if (newVal.ticketsExhibitionL == undefined) {
  2730. newVal.ticketsExhibitionL = 0
  2731. }
  2732. if (newVal.vaccinefees == undefined) {
  2733. newVal.vaccinefees = 0
  2734. }
  2735. if (newVal.visafees == undefined) {
  2736. newVal.visafees = 0
  2737. }
  2738. },
  2739. immediate: true,
  2740. deep: true // 可以深度检测到 person 对象的属性值的变化
  2741. },
  2742. //国际旅费非空处理
  2743. TotalExpenses: {
  2744. handler(newVal, oldVal) {
  2745. if (newVal.EconomyClass == undefined) {
  2746. newVal.EconomyClass = 0
  2747. }
  2748. if (newVal.BusinessClass == undefined) {
  2749. newVal.BusinessClass = 0
  2750. }
  2751. if (newVal.TravellingExpenses == undefined) {
  2752. newVal.TravellingExpenses = 0
  2753. }
  2754. },
  2755. immediate: true,
  2756. deep: true // 可以深度检测到 person 对象的属性值的变化
  2757. },
  2758. //监听汇率数组是否变化
  2759. currencys: {
  2760. handler(val) {
  2761. this.TotalAccommodationFee = 0
  2762. for (let q = 0; q < this.quarterageData.length; q++) {
  2763. for (let qc = 0; qc < this.currencys.length; qc++) {
  2764. if (this.currencys[qc].currencyCode == this.quarterageData[q].curremcyCode||this.currencys[qc].currencyName == this.quarterageData[q].currencyName) {
  2765. this.quarterageData[q].subTotal = new Decimal(this.currencys[qc].rate * this.quarterageData[q].cost).toFixed(2)
  2766. }
  2767. }
  2768. this.TotalAccommodationFee += Number(this.quarterageData[q].subTotal);
  2769. }
  2770. //伙食费
  2771. this.TotalMeals = 0
  2772. for (let b = 0; b < this.boardWagesData.length; b++) {
  2773. for (let bc = 0; bc < this.currencys.length; bc++) {
  2774. if (this.currencys[bc].currencyCode == this.boardWagesData[b].curremcyCode||this.currencys[bc].currencyName == this.boardWagesData[b].currencyName) {
  2775. this.boardWagesData[b].subTotal = new Decimal(this.currencys[bc].rate * this.boardWagesData[b].cost).toFixed(2)
  2776. }
  2777. }
  2778. this.TotalMeals += Number(this.boardWagesData[b].subTotal);
  2779. }
  2780. //公杂费
  2781. this.TotalMiscellaneous = 0
  2782. for (let m = 0; m < this.miscellaneousFeeData.length; m++) {
  2783. for (let mc = 0; mc < this.currencys.length; mc++) {
  2784. if (this.currencys[mc].currencyCode == this.miscellaneousFeeData[m].curremcyCode||this.currencys[mc].currencyName == this.miscellaneousFeeData[m].currencyName) {
  2785. this.miscellaneousFeeData[m].subTotal = this.currencys[mc].rate * this.miscellaneousFeeData[m].cost
  2786. }
  2787. }
  2788. this.TotalMiscellaneous += this.miscellaneousFeeData[m].subTotal
  2789. }
  2790. //培训费
  2791. this.trainingExpense = 0
  2792. for (let t = 0; t < this.trainingExpenseData.length; t++) {
  2793. for (let tc = 0; tc < this.currencys.length; tc++) {
  2794. if (this.currencys[tc].currencyCode == this.trainingExpenseData[t].curremcyCode||this.currencys[tc].currencyName == this.trainingExpenseData[t].currencyName) {
  2795. this.trainingExpenseData[t].subTotal = this.currencys[tc].rate * this.trainingExpenseData[t].cost
  2796. }
  2797. }
  2798. this.trainingExpense += this.trainingExpenseData[t].subTotal
  2799. }
  2800. //其他费用
  2801. for (let nc = 0; nc < this.currencys.length; nc++) {
  2802. for (let nt = 0; nt < this.othercurrencys.length; nt++) {
  2803. if (this.currencys[nc].currencyCode == this.othercurrencys[nt].currencyCode||this.currencys[nc].currencyName == this.othercurrencys[nt].currencyName) {
  2804. this.othercurrencys[nt].rate = this.currencys[nc].rate;
  2805. }
  2806. }
  2807. }
  2808. this.otherExpense = 0;
  2809. for (let wm = 0; wm < this.otherData.length; wm++) {
  2810. for (let cj = 0; cj < this.othercurrencys.length; cj++) {
  2811. if (this.otherData[wm].currency == this.othercurrencys[cj].currencyId) {
  2812. this.otherData[wm].rate = this.othercurrencys[cj].rate
  2813. }
  2814. }
  2815. this.otherExpense += this.otherData[wm].subTotal;
  2816. if (this.otherData[wm].rate) {
  2817. this.otherData[wm].subTotal = this.otherData[wm].cost * this.otherData[wm].rate;
  2818. }
  2819. }
  2820. },
  2821. deep: true
  2822. }
  2823. },
  2824. created() {
  2825. this.QuerySetData();
  2826. },
  2827. mounted() {
  2828. this.token = JSON.parse(localStorage.getItem('userinif')).token;
  2829. this.userId = JSON.parse(localStorage.getItem('userinif')).userInfo.userId;
  2830. this.value = JSON.parse(localStorage.getItem('sgvalue'))
  2831. this.GetEnterExitCostDataSource();
  2832. // this.GetNationalTravelFeeData();
  2833. },
  2834. destroyed() {
  2835. window.localStorage.removeItem('sgvalue');
  2836. },
  2837. }
  2838. </script>
  2839. <style>
  2840. /* .el-message-box__status {
  2841. color: greenyellow;
  2842. } */
  2843. .Entry-all {
  2844. background-color: #fff;
  2845. padding: 10px;
  2846. box-shadow: 0 0 5px #0005;
  2847. border-radius: 10px;
  2848. height: 100%;
  2849. min-height: 830px;
  2850. }
  2851. .Entry-head-li label {
  2852. color: #606266;
  2853. font-size: 15px;
  2854. font-weight: 600;
  2855. }
  2856. .Entry-head {
  2857. display: flex;
  2858. justify-content: space-between;
  2859. }
  2860. .Entry-form {
  2861. margin-top: 10px;
  2862. border-top: 2px solid #409EFF;
  2863. }
  2864. .Entry-li-inif {
  2865. display: flex;
  2866. align-items: center;
  2867. width: 100%;
  2868. border-top: 1px solid #ebeef5;
  2869. padding: 5px 0;
  2870. }
  2871. .Entry-li-inif:last-child {
  2872. border-bottom: 1px solid #ebeef5;
  2873. }
  2874. .Entry-li-lable {
  2875. display: flex;
  2876. justify-content: space-between;
  2877. align-items: center;
  2878. margin: 10px 0;
  2879. margin-top: 20px;
  2880. }
  2881. .Entry-li-lables {
  2882. display: flex;
  2883. align-items: center;
  2884. margin: 10px 0;
  2885. margin-top: 20px;
  2886. }
  2887. .Entry-inif-box .depipt {
  2888. display: inline-block;
  2889. width: 240px;
  2890. }
  2891. .Entry-inif-box {
  2892. margin-right: 20px;
  2893. }
  2894. .Entry-li-inif label {
  2895. font-size: 14px;
  2896. color: #606266;
  2897. }
  2898. .Entry-form .redzhu {
  2899. font-size: 14px;
  2900. color: red;
  2901. }
  2902. .sub-boxs {
  2903. -ms-user-select: none;
  2904. -khtml-user-select: none;
  2905. -webkit-user-select: none;
  2906. -moz-user-select: none;
  2907. font-size: 12px;
  2908. font-family: "微软雅黑";
  2909. user-select: none;
  2910. background-color: #FFF;
  2911. background-image: none;
  2912. border-radius: 4px;
  2913. border: 1px solid #DCDFE6;
  2914. -webkit-box-sizing: border-box;
  2915. box-sizing: border-box;
  2916. color: #606266;
  2917. display: inline-block;
  2918. height: 28px;
  2919. line-height: 28px;
  2920. outline: 0;
  2921. padding: 0 15px;
  2922. -webkit-transition: border-color .2s cubic-bezier(.645, .045, .355, 1);
  2923. transition: border-color .2s cubic-bezier(.645, .045, .355, 1);
  2924. }
  2925. .btn-Entry {
  2926. text-align: right;
  2927. }
  2928. .Entry-all .el-checkbox__inner {
  2929. width: 18px;
  2930. height: 18px;
  2931. margin-right: 10px;
  2932. }
  2933. .Entry-all .el-checkbox__inner::after {
  2934. height: 10px;
  2935. left: 6px;
  2936. }
  2937. .Entry-all .el-table th.el-table__cell>.cell {
  2938. text-align: center;
  2939. }
  2940. .Entry-all .el-button+.el-button{
  2941. margin-left: 0px;
  2942. }
  2943. .Entry-all .permissionsbox .el-checkbox-group{
  2944. display: flex;
  2945. flex-wrap: wrap;
  2946. justify-content: space-between;
  2947. }
  2948. .Entry-all .permissionsbox .el-checkbox{
  2949. width: 150px;
  2950. margin-right: 0;
  2951. }
  2952. .custom-tooltip-style {
  2953. max-width: 400px;
  2954. white-space: pre-line; /* 保留换行符 */
  2955. font-size: 13px;
  2956. line-height: 25px;
  2957. color: #606266;
  2958. }
  2959. </style>