Currency.vue 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639
  1. <template>
  2. <div v-loading.fullscreen.lock="fullscreenLoading">
  3. <div class="currency-all">
  4. <div class="currency-head">
  5. <div class="head-ipt">
  6. <div class="name-ipt">
  7. <label>团组名称:</label>
  8. <el-select style="width:250px" @change="chkg" v-model="state1" filterable placeholder="请选择">
  9. <el-option
  10. v-for="item in restaurants"
  11. :key="item.id"
  12. :label="item.groupName"
  13. :value="item.id">
  14. </el-option>
  15. </el-select>
  16. </div>
  17. <div class="preserve-btn">
  18. <el-button class="preserve" @click="Savedata()" type="primary">保存数据</el-button>
  19. </div>
  20. </div>
  21. <div class="currency-info">
  22. <div class="currency-info-li">
  23. <label>团 号:</label>
  24. <span>{{groupInfo.salesQuoteNo}}</span>
  25. </div>
  26. <div class="currency-info-li">
  27. <label>客 户:</label>
  28. <span>{{groupInfo.clientUnit}}</span>
  29. </div>
  30. <div class="currency-info-li">
  31. <label>出访国家:</label>
  32. <span>{{groupInfo.visitCountry}}</span>
  33. </div>
  34. <div class="currency-info-li">
  35. <label>起止日期:</label>
  36. <span>{{groupInfo.tontractTime|filter_time}} ~ {{groupInfo.visitDate|filter_time}}</span>
  37. </div>
  38. <div class="currency-info-li">
  39. <label>天数/人数:</label>
  40. <span>{{groupInfo.visitDays}}天/{{groupInfo.visitPNumber}}人</span>
  41. </div>
  42. </div>
  43. </div>
  44. <div class="currency-com">
  45. <el-tabs v-model="activeName" @tab-click="handleClick">
  46. <el-tab-pane label="酒店预订" name="hotel">
  47. <div class="ipt-inif">
  48. <div class="ipt" v-for="(item,index) in hotelCurrencyArr" :key="index">
  49. <label>{{item.currencyName}}({{item.currencyCode}}):</label>
  50. <el-input v-model="item.rate" oninput="value=value.replace(/[^\d.]/g,'')" placeholder="请输入内容"></el-input>
  51. </div>
  52. </div>
  53. </el-tab-pane>
  54. <!-- <el-tab-pane label="行程" name="itinerary">
  55. <div class="ipt-inif">
  56. <div class="ipt" v-for="(item,index) in itineraryCurrencyArr" :key="index">
  57. <label>{{item.currencyName}}({{item.currencyCode}}):</label>
  58. <el-input v-model="item.rate" oninput="value=value.replace(/[^\d.]/g,'')" placeholder="请输入内容"></el-input>
  59. </div>
  60. </div>
  61. </el-tab-pane> -->
  62. <el-tab-pane label="车/导游地接" name="guide">
  63. <div class="ipt-inif">
  64. <div class="ipt" v-for="(item,index) in guideCurrencyArr" :key="index">
  65. <label>{{item.currencyName}}({{item.currencyCode}}):</label>
  66. <el-input v-model="item.rate" oninput="value=value.replace(/[^\d.]/g,'')" placeholder="请输入内容"></el-input>
  67. </div>
  68. </div>
  69. </el-tab-pane>
  70. <el-tab-pane label="签证" name="visa">
  71. <div class="ipt-inif">
  72. <div class="ipt" v-for="(item,index) in visaCurrencyArr" :key="index">
  73. <label>{{item.currencyName}}({{item.currencyCode}}):</label>
  74. <el-input v-model="item.rate" oninput="value=value.replace(/[^\d.]/g,'')" placeholder="请输入内容"></el-input>
  75. </div>
  76. </div>
  77. </el-tab-pane>
  78. <el-tab-pane label="邀请/公务活动" name="business">
  79. <div class="ipt-inif">
  80. <div class="ipt" v-for="(item,index) in inviteCurrencyArr" :key="index">
  81. <label>{{item.currencyName}}({{item.currencyCode}}):</label>
  82. <el-input v-model="item.rate" oninput="value=value.replace(/[^\d.]/g,'')" placeholder="请输入内容"></el-input>
  83. </div>
  84. </div>
  85. </el-tab-pane>
  86. <el-tab-pane label="团组客户保险" name="insurance">
  87. <div class="ipt-inif">
  88. <div class="ipt" v-for="(item,index) in insuranceCurrencyArr" :key="index">
  89. <label>{{item.currencyName}}({{item.currencyCode}}):</label>
  90. <el-input v-model="item.rate" oninput="value=value.replace(/[^\d.]/g,'')" placeholder="请输入内容"></el-input>
  91. </div>
  92. </div>
  93. </el-tab-pane>
  94. <el-tab-pane label="机票预订" name="ticket">
  95. <div class="ipt-inif">
  96. <div class="ipt" v-for="(item,index) in ticketCurrencyArr" :key="index">
  97. <label>{{item.currencyName}}({{item.currencyCode}}):</label>
  98. <el-input v-model="item.rate" oninput="value=value.replace(/[^\d.]/g,'')" placeholder="请输入内容"></el-input>
  99. </div>
  100. </div>
  101. </el-tab-pane>
  102. <el-tab-pane label="其他款项" name="payments">
  103. <div class="ipt-inif">
  104. <div class="ipt" v-for="(item,index) in paymentsCurrencyArr" :key="index">
  105. <label>{{item.currencyName}}({{item.currencyCode}}):</label>
  106. <el-input v-model="item.rate" oninput="value=value.replace(/[^\d.]/g,'')" placeholder="请输入内容"></el-input>
  107. </div>
  108. </div>
  109. </el-tab-pane>
  110. <!-- <el-tab-pane label="酒店早餐" name="breakfast">
  111. <div class="ipt-inif">
  112. <div class="ipt" v-for="(item,index) in breakfastCurrencyArr" :key="index">
  113. <label>{{item.currencyName}}({{item.currencyCode}}):</label>
  114. <el-input v-model="item.rate" oninput="value=value.replace(/[^\d.]/g,'')" placeholder="请输入内容"></el-input>
  115. </div>
  116. </div>
  117. </el-tab-pane> -->
  118. <el-tab-pane label="费用超支" name="overspend">
  119. <div class="ipt-inif">
  120. <div class="ipt" v-for="(item,index) in overspendCurrencyArr" :key="index">
  121. <label>{{item.currencyName}}({{item.currencyCode}}):</label>
  122. <el-input v-model="item.rate" oninput="value=value.replace(/[^\d.]/g,'')" placeholder="请输入内容"></el-input>
  123. </div>
  124. </div>
  125. </el-tab-pane>
  126. </el-tabs>
  127. </div>
  128. </div>
  129. </div>
  130. </template>
  131. <script>
  132. import { co } from '@fullcalendar/core/internal-common';
  133. export default {
  134. data() {
  135. return {
  136. userid:'',
  137. restaurants: [],
  138. state1: '',
  139. activeName: 'hotel',
  140. hotelCurrencyArr:[],//酒店预订
  141. itineraryCurrencyArr:[],//行程
  142. guideCurrencyArr:[],//车/导游地接
  143. visaCurrencyArr:[],//签证
  144. inviteCurrencyArr:[],//>邀请/公务活动
  145. insuranceCurrencyArr:[],//团组客户保险
  146. ticketCurrencyArr:[],//机票预订
  147. paymentsCurrencyArr:[],//团组增减款项
  148. breakfastCurrencyArr:[],//酒店早餐
  149. overspendCurrencyArr:[],//超支费用
  150. groupInfo:{},
  151. allcurrency:[],
  152. hotel:{},//酒店预订
  153. itinerary:{},//行程
  154. guide:{},//车/导游地接
  155. visa:{},//签证
  156. invite:{},//>邀请/公务活动
  157. insurance:{},//团组客户保险
  158. ticket:{},//机票预订
  159. payments:{},//团组增减款项
  160. breakfast:{},//酒店早餐
  161. overspend:{},//超支费用
  162. fullscreenLoading:false//加载
  163. };
  164. },
  165. methods: {
  166. //面包页
  167. handleClick(tab, event) {
  168. console.log(tab, event);
  169. },
  170. //选择团组
  171. chkg(val){
  172. console.log(val)
  173. this.state1=val
  174. this.GetCurrency()
  175. },
  176. //获取团组汇率
  177. GetCurrency(){
  178. this.fullscreenLoading=true;
  179. var url = "/api/Financial/GetGroupRateDataSources"
  180. var that = this
  181. this.$axios({
  182. method: 'post',
  183. url: url,
  184. headers: {
  185. Authorization: 'Bearer ' + this.token
  186. },
  187. data: {
  188. portType: 1,
  189. pageIndex: 0,
  190. pageSize: 0,
  191. }
  192. }).then(function (res) {
  193. if(res.data.code!=200){
  194. that.fullscreenLoading=false;
  195. that.$message({
  196. message: res.data.msg,
  197. type: 'warning'
  198. });
  199. return;
  200. }
  201. that.fullscreenLoading=false;
  202. that.restaurants = res.data.data.groupData
  203. // for (let i = 0; i < res.data.data.teamRateData.length; i++) {
  204. // res.data.data.teamRateData[i]["rate"] = "0.0000";
  205. // }
  206. that.hotelCurrencyArr = JSON.parse(JSON.stringify(res.data.data.teamRateData));
  207. that.itineraryCurrencyArr = JSON.parse(JSON.stringify(res.data.data.teamRateData));
  208. that.guideCurrencyArr = JSON.parse(JSON.stringify(res.data.data.teamRateData));
  209. that.visaCurrencyArr = JSON.parse(JSON.stringify(res.data.data.teamRateData));
  210. that.inviteCurrencyArr = JSON.parse(JSON.stringify(res.data.data.teamRateData));
  211. that.insuranceCurrencyArr = JSON.parse(JSON.stringify(res.data.data.teamRateData));
  212. that.ticketCurrencyArr = JSON.parse(JSON.stringify(res.data.data.teamRateData));
  213. that.paymentsCurrencyArr = JSON.parse(JSON.stringify(res.data.data.teamRateData));
  214. that.breakfastCurrencyArr = JSON.parse(JSON.stringify(res.data.data.teamRateData));
  215. that.overspendCurrencyArr = JSON.parse(JSON.stringify(res.data.data.teamRateData));
  216. if(that.state1==''){
  217. that.state1=res.data.data.groupData[0].id;
  218. }
  219. console.log(res.data.data.teamRateData)
  220. that.GetGroupRateInfo();
  221. })
  222. },
  223. //获取默认团组汇率
  224. GetGroupRateInfo(){
  225. var url = "/api/Financial/GetGroupRateInfo"
  226. var that = this
  227. this.$axios({
  228. method: 'post',
  229. url: url,
  230. headers: {
  231. Authorization: 'Bearer ' + this.token
  232. },
  233. data: {
  234. portType: 1,
  235. pageIndex: 0,
  236. pageSize: 0,
  237. diid:that.state1
  238. }
  239. }).then(function (res) {
  240. if(res.data.code!=200){
  241. return
  242. }
  243. that.groupInfo=res.data.data.groupInfo;
  244. console.log(res)
  245. that.allcurrency=res.data.data.teamRateData;
  246. for(let j=0;j<that.allcurrency.length;j++){
  247. if(that.allcurrency[j].cTableId == 76) {
  248. that.hotel=that.allcurrency[j]
  249. }
  250. if(that.allcurrency[j].cTableId == 77) {
  251. that.itinerary=that.allcurrency[j]
  252. }
  253. if(that.allcurrency[j].cTableId == 79) {
  254. that.guide=that.allcurrency[j]
  255. }
  256. if(that.allcurrency[j].cTableId == 80) {
  257. that.visa=that.allcurrency[j]
  258. }
  259. if(that.allcurrency[j].cTableId == 81) {
  260. that.invite=that.allcurrency[j]
  261. }
  262. if(that.allcurrency[j].cTableId == 82) {
  263. that.insurance=that.allcurrency[j]
  264. }
  265. if(that.allcurrency[j].cTableId == 85) {
  266. that.ticket=that.allcurrency[j]
  267. }
  268. if(that.allcurrency[j].cTableId == 98) {
  269. that.payments=that.allcurrency[j]
  270. }
  271. if(that.allcurrency[j].cTableId == 751) {
  272. that.breakfast=that.allcurrency[j]
  273. }
  274. if(that.allcurrency[j].cTableId == 1015) {
  275. that.overspend=that.allcurrency[j]
  276. }
  277. }
  278. console.log(that.hotel)
  279. for(let x=0;x<that.hotelCurrencyArr.length;x++){
  280. for(let y=0;y<that.hotel.teamRates.length;y++){
  281. if(that.hotelCurrencyArr[x].currencyCode==that.hotel.teamRates[y].currencyCode){
  282. that.hotelCurrencyArr[x].rate=that.hotel.teamRates[y].rate
  283. }
  284. }
  285. }
  286. for(let x=0;x<that.itineraryCurrencyArr.length;x++){
  287. for(let y=0;y<that.itinerary.teamRates.length;y++){
  288. if(that.itineraryCurrencyArr[x].currencyCode==that.itinerary.teamRates[y].currencyCode){
  289. that.itineraryCurrencyArr[x].rate=that.itinerary.teamRates[y].rate
  290. }
  291. }
  292. }
  293. for(let x=0;x<that.guideCurrencyArr.length;x++){
  294. for(let y=0;y<that.guide.teamRates.length;y++){
  295. if(that.guideCurrencyArr[x].currencyCode==that.guide.teamRates[y].currencyCode){
  296. that.guideCurrencyArr[x].rate=that.guide.teamRates[y].rate
  297. }
  298. }
  299. }
  300. for(let x=0;x<that.visaCurrencyArr.length;x++){
  301. for(let y=0;y<that.visa.teamRates.length;y++){
  302. if(that.visaCurrencyArr[x].currencyCode==that.visa.teamRates[y].currencyCode){
  303. that.visaCurrencyArr[x].rate=that.visa.teamRates[y].rate
  304. }
  305. }
  306. }
  307. for(let x=0;x<that.inviteCurrencyArr.length;x++){
  308. for(let y=0;y<that.invite.teamRates.length;y++){
  309. if(that.inviteCurrencyArr[x].currencyCode==that.invite.teamRates[y].currencyCode){
  310. that.inviteCurrencyArr[x].rate=that.invite.teamRates[y].rate
  311. }
  312. }
  313. }
  314. for(let x=0;x<that.insuranceCurrencyArr.length;x++){
  315. for(let y=0;y<that.insurance.teamRates.length;y++){
  316. if(that.insuranceCurrencyArr[x].currencyCode==that.insurance.teamRates[y].currencyCode){
  317. that.insuranceCurrencyArr[x].rate=that.insurance.teamRates[y].rate
  318. }
  319. }
  320. }
  321. for(let x=0;x<that.ticketCurrencyArr.length;x++){
  322. for(let y=0;y<that.ticket.teamRates.length;y++){
  323. if(that.ticketCurrencyArr[x].currencyCode==that.ticket.teamRates[y].currencyCode){
  324. that.ticketCurrencyArr[x].rate=that.ticket.teamRates[y].rate
  325. }
  326. }
  327. }
  328. for(let x=0;x<that.paymentsCurrencyArr.length;x++){
  329. for(let y=0;y<that.payments.teamRates.length;y++){
  330. if(that.paymentsCurrencyArr[x].currencyCode==that.payments.teamRates[y].currencyCode){
  331. that.paymentsCurrencyArr[x].rate=that.payments.teamRates[y].rate
  332. }
  333. }
  334. }
  335. for(let x=0;x<that.breakfastCurrencyArr.length;x++){
  336. for(let y=0;y<that.breakfast.teamRates.length;y++){
  337. if(that.breakfastCurrencyArr[x].currencyCode==that.breakfast.teamRates[y].currencyCode){
  338. that.breakfastCurrencyArr[x].rate=that.breakfast.teamRates[y].rate
  339. }
  340. }
  341. }
  342. for(let x=0;x<that.overspendCurrencyArr.length;x++){
  343. for(let y=0;y<that.overspend.teamRates.length;y++){
  344. if(that.overspendCurrencyArr[x].currencyCode==that.overspend.teamRates[y].currencyCode){
  345. that.overspendCurrencyArr[x].rate=that.overspend.teamRates[y].rate
  346. }
  347. }
  348. }
  349. console.log(that.allcurrency)
  350. })
  351. },
  352. //保存数据
  353. Savedata(){
  354. var hotelCurrencyArrer=[]
  355. for(let a =0;a<this.hotelCurrencyArr.length;a++){
  356. if(this.hotelCurrencyArr[a].rate!=0){
  357. delete this.hotelCurrencyArr[a].id
  358. hotelCurrencyArrer.push(this.hotelCurrencyArr[a])
  359. }
  360. }
  361. var itineraryCurrencyArrer=[]
  362. for(let s =0;s<this.itineraryCurrencyArr.length;s++){
  363. if(this.itineraryCurrencyArr[s].rate!=0){
  364. delete this.itineraryCurrencyArr[s].id
  365. itineraryCurrencyArrer.push(this.itineraryCurrencyArr[s])
  366. }
  367. }
  368. var guideCurrencyArrer=[]
  369. for(let d =0;d<this.guideCurrencyArr.length;d++){
  370. if(this.guideCurrencyArr[d].rate!=0){
  371. delete this.guideCurrencyArr[d].id
  372. guideCurrencyArrer.push(this.guideCurrencyArr[d])
  373. }
  374. }
  375. var visaCurrencyArrer=[]
  376. for(let f =0;f<this.visaCurrencyArr.length;f++){
  377. if(this.visaCurrencyArr[f].rate!=0){
  378. delete this.visaCurrencyArr[f].id
  379. visaCurrencyArrer.push(this.visaCurrencyArr[f])
  380. }
  381. }
  382. var inviteCurrencyArrer=[]
  383. for(let g =0;g<this.inviteCurrencyArr.length;g++){
  384. if(this.inviteCurrencyArr[g].rate!=0){
  385. delete this.inviteCurrencyArr[g].id
  386. inviteCurrencyArrer.push(this.inviteCurrencyArr[g])
  387. }
  388. }
  389. var insuranceCurrencyArrer=[]
  390. for(let h =0;h<this.insuranceCurrencyArr.length;h++){
  391. if(this.insuranceCurrencyArr[h].rate!=0){
  392. delete this.insuranceCurrencyArr[h].id
  393. insuranceCurrencyArrer.push(this.insuranceCurrencyArr[h])
  394. }
  395. }
  396. var ticketCurrencyArrer=[]
  397. for(let j =0;j<this.ticketCurrencyArr.length;j++){
  398. if(this.ticketCurrencyArr[j].rate!=0){
  399. delete this.ticketCurrencyArr[j].id
  400. ticketCurrencyArrer.push(this.ticketCurrencyArr[j])
  401. }
  402. }
  403. var paymentsCurrencyArrer=[]
  404. for(let k =0;k<this.paymentsCurrencyArr.length;k++){
  405. if(this.paymentsCurrencyArr[k].rate!=0){
  406. delete this.paymentsCurrencyArr[k].id
  407. paymentsCurrencyArrer.push(this.paymentsCurrencyArr[k])
  408. }
  409. }
  410. var breakfastCurrencyArrer=[]
  411. for(let l =0;l<this.breakfastCurrencyArr.length;l++){
  412. if(this.breakfastCurrencyArr[l].rate!=0){
  413. delete this.breakfastCurrencyArr[l].id
  414. breakfastCurrencyArrer.push(this.breakfastCurrencyArr[l])
  415. }
  416. }
  417. var overspendCurrencyArrer=[]
  418. for(let l =0;l<this.overspendCurrencyArr.length;l++){
  419. if(this.overspendCurrencyArr[l].rate!=0){
  420. delete this.overspendCurrencyArr[l].id
  421. overspendCurrencyArrer.push(this.overspendCurrencyArr[l])
  422. }
  423. }
  424. console.log(hotelCurrencyArrer)
  425. var url = "/api/Financial/PostGroupRateUpdate"
  426. var that = this
  427. var data= {
  428. portType: 1,
  429. pageIndex: 0,
  430. pageSize: 0,
  431. createUserId:that.userid,
  432. diId:that.state1,
  433. teamRateUpdateInfos:[
  434. {
  435. id:3750,
  436. cTable:76,
  437. teamRates:hotelCurrencyArrer
  438. },
  439. {
  440. id:3751,
  441. cTable:77,
  442. teamRates:itineraryCurrencyArrer
  443. },
  444. {
  445. id:3752,
  446. cTable:79,
  447. teamRates:guideCurrencyArrer
  448. },
  449. {
  450. id:3753,
  451. cTable:80,
  452. teamRates:visaCurrencyArrer
  453. },
  454. {
  455. id:3754,
  456. cTable:81,
  457. teamRates:inviteCurrencyArrer
  458. },
  459. {
  460. id:3755,
  461. cTable:82,
  462. teamRates:insuranceCurrencyArrer
  463. },
  464. {
  465. id:3756,
  466. cTable:85,
  467. teamRates:ticketCurrencyArrer
  468. },
  469. {
  470. id:3757,
  471. cTable:98,
  472. teamRates:paymentsCurrencyArrer
  473. },
  474. {
  475. id:3758,
  476. cTable:751,
  477. teamRates:breakfastCurrencyArrer
  478. },
  479. {
  480. id:3759,
  481. cTable:1050,
  482. teamRates:overspendCurrencyArrer
  483. },
  484. ]
  485. }
  486. console.log(JSON.stringify(data))
  487. this.$axios({
  488. method: 'post',
  489. url: url,
  490. headers: {
  491. Authorization: 'Bearer ' + this.token
  492. },
  493. data: {
  494. portType: 1,
  495. pageIndex: 0,
  496. pageSize: 0,
  497. createUserId:that.userid,
  498. diId:that.state1,
  499. teamRateUpdateInfos:[
  500. {
  501. id:0,
  502. cTable:76,
  503. teamRates:hotelCurrencyArrer
  504. },
  505. {
  506. id:0,
  507. cTable:77,
  508. teamRates:itineraryCurrencyArrer
  509. },
  510. {
  511. id:0,
  512. cTable:79,
  513. teamRates:guideCurrencyArrer
  514. },
  515. {
  516. id:0,
  517. cTable:80,
  518. teamRates:visaCurrencyArrer
  519. },
  520. {
  521. id:0,
  522. cTable:81,
  523. teamRates:inviteCurrencyArrer
  524. },
  525. {
  526. id:0,
  527. cTable:82,
  528. teamRates:insuranceCurrencyArrer
  529. },
  530. {
  531. id:0,
  532. cTable:85,
  533. teamRates:ticketCurrencyArrer
  534. },
  535. {
  536. id:0,
  537. cTable:98,
  538. teamRates:paymentsCurrencyArrer
  539. },
  540. {
  541. id:0,
  542. cTable:751,
  543. teamRates:breakfastCurrencyArrer
  544. },
  545. {
  546. id:0,
  547. cTable:1015,
  548. teamRates:overspendCurrencyArrer
  549. },
  550. ]
  551. }
  552. }).then(function (res) {
  553. console.log(res)
  554. if(res.data.code==200){
  555. that.$message({
  556. message: res.data.msg,
  557. type: 'success'
  558. });
  559. }
  560. })
  561. }
  562. },
  563. filters:{
  564. filter_time(value){
  565. if(value){
  566. return value.split(' ')[0];
  567. }else{
  568. return value
  569. }
  570. }
  571. },
  572. mounted() {
  573. this.userid=JSON.parse(localStorage.getItem('userinif')).userInfo.userId;
  574. this.GetCurrency();
  575. }
  576. }
  577. </script>
  578. <style>
  579. .currency-all{
  580. background-color: #fff;
  581. padding: 10px;
  582. box-shadow: 0 0 5px #0005;
  583. border-radius: 10px;
  584. height: 100%;
  585. min-height: 840px;
  586. }
  587. .currency-info{
  588. display: flex;
  589. }
  590. .currency-info-li{
  591. margin-right: 30px;
  592. }
  593. .currency-info-li label{
  594. color: #606266;
  595. font-size: 15px;
  596. font-weight: 600;
  597. }
  598. .currency-info-li span{
  599. color: #606266;
  600. font-size: 14px;
  601. }
  602. .name-ipt label{
  603. color: #606266;
  604. font-size: 15px;
  605. font-weight: 600;
  606. }
  607. .head-ipt{
  608. display: flex;
  609. justify-content: space-between;
  610. margin-bottom: 10px;
  611. }
  612. .currency-head{
  613. margin-bottom: 10px;
  614. }
  615. .ipt-inif{
  616. display: flex;
  617. flex-wrap: wrap;
  618. }
  619. .ipt-inif .el-input__inner{
  620. width: 150px;
  621. }
  622. .ipt{
  623. display: flex;
  624. align-items: center;
  625. margin-bottom: 10px;
  626. }
  627. .ipt label{
  628. width: 150px;
  629. text-align: end;
  630. font-size: 12px;
  631. font-weight: 600;
  632. }
  633. .ipt .el-input{
  634. width: 150px;
  635. }
  636. </style>