tb-fee-item-info.html 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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. table {
  22. font-family: arial, sans-serif;
  23. border-collapse: collapse;
  24. width: 90%;
  25. margin-top: 26px ;
  26. margin-left: auto;
  27. margin-right: auto;
  28. }
  29. th {
  30. border: 1px solid darkgray;
  31. text-align: left;
  32. height: 30px;
  33. padding: 8px;
  34. background-color: #dddddd;
  35. }
  36. td {
  37. border: 1px solid darkgray;
  38. text-align: left;
  39. padding: 8px;
  40. }
  41. </style>
  42. </head>
  43. <body>
  44. <div class="vue-box sbot" style="display: none;" :style="'display: block;'">
  45. <!-- ------- 内容部分 ------- -->
  46. <div class="s-body">
  47. <div class="c-panel">
  48. <el-form v-if="m">
  49. <table>
  50. <tr>
  51. <th>收费企业</th>
  52. <td>{{m.companyName}}</td>
  53. <th>费项名称</th>
  54. <td>{{m.name}}</td>
  55. </tr>
  56. <tr>
  57. <th>状态</th>
  58. <td>
  59. <b v-if="m.status == 1">启用</b>
  60. <b v-if="m.status == 0">禁用</b>
  61. </td>
  62. <th>收费类型</th>
  63. <td>
  64. <b v-if="m.feeType == 1">按交易额百分比收取</b>
  65. <b v-if="m.feeType == 2">按次收取</b>
  66. <b v-if="m.feeType == 3">按吨收取</b>
  67. </td>
  68. </tr>
  69. <tr>
  70. <th>创建时间</th>
  71. <td>{{sa.forDate(m.createTime, 2)}}</td>
  72. <th>更新时间</th>
  73. <td>{{sa.forDate(m.updateTime, 2)}}</td>
  74. </tr>
  75. </table>
  76. </el-form>
  77. </div>
  78. </div>
  79. <!-- ------- 底部按钮 ------- -->
  80. <div class="s-foot">
  81. <el-button type="success" @click="sa.closeCurrIframe()">确定</el-button>
  82. <el-button @click="sa.closeCurrIframe()">取消</el-button>
  83. </div>
  84. </div>
  85. <script>
  86. var app = new Vue({
  87. components: {
  88. "sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue')
  89. },
  90. el: '.vue-box',
  91. data: {
  92. id: sa.p('id', 0), // 获取数据ID
  93. m: null
  94. },
  95. methods: {},
  96. mounted: function() {
  97. sa.ajax('/level-two-server/TbFeeItem/getById?id=' + this.id, function(res) {
  98. this.m = res.data;
  99. if (res.data == null) {
  100. sa.alert('未能查找到 id=' + this.id + " 详细数据");
  101. }
  102. }.bind(this))
  103. }
  104. })
  105. </script>
  106. </body>
  107. </html>