tb-fee-item-info.html 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>费项管理-详情</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  6. <meta name="viewport"
  7. content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
  8. <!-- 所有的 css js 资源 -->
  9. <link rel="stylesheet" href="../../static/kj/element-ui/theme-chalk/index.css">
  10. <link rel="stylesheet" href="../../static/sa.css">
  11. <script src="../../static/kj/vue.min.js"></script>
  12. <script src="../../static/kj/element-ui/index.js"></script>
  13. <script src="../../static/kj/httpVueLoader.js"></script>
  14. <script src="../../static/kj/jquery.min.js"></script>
  15. <script src="../../static/kj/layer/layer.js"></script>
  16. <script src="../../static/sa.js"></script>
  17. <style type="text/css">
  18. .c-panel .c-label {
  19. width: 8em;
  20. }
  21. </style>
  22. </head>
  23. <body>
  24. <div class="vue-box sbot" style="display: none;" :style="'display: block;'">
  25. <!-- ------- 内容部分 ------- -->
  26. <div class="s-body">
  27. <div class="c-panel">
  28. <el-form v-if="m">
  29. <el-row>
  30. <el-col span="12">
  31. <sa-info name="收费企业" br>{{m.companyName}}</sa-info>
  32. <sa-info name="名称" br>{{m.name}}</sa-info>
  33. <sa-info type="enum" name="状态" :value="m.status" :jv="{0: '禁用', 1: '启用'}" br></sa-info>
  34. <sa-info type="datetime" name="创建时间" :value="m.createTime" br></sa-info>
  35. </el-col>
  36. <el-col span="12">
  37. <sa-info type="enum" name="类型" :value="m.feeType" :jv="{1: '按交易额百分比收取', 2: '按次收取'}"
  38. br></sa-info>
  39. <sa-info name="百分比(%)" br v-if="m.feeType==1">{{m.percent}}%</sa-info>
  40. <sa-info name="收费金额(元)" br v-if="m.feeType==2">{{m.feeMoney}}</sa-info>
  41. <sa-info type="datetime" name="更新时间" :value="m.updateTime" br></sa-info>
  42. </el-col>
  43. </el-row>
  44. </el-form>
  45. </div>
  46. </div>
  47. <!-- ------- 底部按钮 ------- -->
  48. <div class="s-foot">
  49. <el-button type="success" @click="sa.closeCurrIframe()">确定</el-button>
  50. <el-button @click="sa.closeCurrIframe()">取消</el-button>
  51. </div>
  52. </div>
  53. <script>
  54. var app = new Vue({
  55. components: {
  56. "sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue')
  57. },
  58. el: '.vue-box',
  59. data: {
  60. id: sa.p('id', 0), // 获取数据ID
  61. m: null
  62. },
  63. methods: {},
  64. mounted: function() {
  65. sa.ajax('/level-two-server/TbFeeItem/getById?id=' + this.id, function(res) {
  66. this.m = res.data;
  67. if (res.data == null) {
  68. sa.alert('未能查找到 id=' + this.id + " 详细数据");
  69. }
  70. }.bind(this))
  71. }
  72. })
  73. </script>
  74. </body>
  75. </html>