EntryDetails.vue 131 KB

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