tb-deduction-bind-info.html 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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="https://unpkg.com/element-ui@2.13.0/lib/theme-chalk/index.css">
  10. <link rel="stylesheet" href="../../static/sa.css">
  11. <script src="https://unpkg.com/vue@2.6.10/dist/vue.min.js"></script>
  12. <script src="https://unpkg.com/element-ui@2.13.0/lib/index.js"></script>
  13. <script src="https://unpkg.com/http-vue-loader@1.4.2/src/httpVueLoader.js"></script>
  14. <script src="https://unpkg.com/jquery@3.4.1/dist/jquery.js"></script>
  15. <script src="https://www.layuicdn.com/layer-v3.1.1/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. <sa-info name="主键" br>{{m.id}}</sa-info>
  30. <sa-info name="客户id" br>{{m.customerId}}</sa-info>
  31. <sa-info name="客户名称" br>{{m.customerName}}</sa-info>
  32. <sa-info name="扣除金额" br>{{m.deductMoney}}</sa-info>
  33. <sa-info name="绑定车辆" br>{{m.bindCar}}</sa-info>
  34. <sa-info name="绑定时间" br>{{m.bindTime}}</sa-info>
  35. <sa-info name="解绑时候" br>{{m.unbindTime}}</sa-info>
  36. <sa-info name="创建人" br>{{m.createBy}}</sa-info>
  37. <sa-info name="创建时间" br>{{m.createTime}}</sa-info>
  38. <sa-info name="更新时间" br>{{m.updateTime}}</sa-info>
  39. <sa-info name="更新人" br>{{m.updateBy}}</sa-info>
  40. </el-form>
  41. </div>
  42. </div>
  43. <!-- ------- 底部按钮 ------- -->
  44. <div class="s-foot">
  45. <el-button type="success" @click="sa.closeCurrIframe()">确定</el-button>
  46. <el-button @click="sa.closeCurrIframe()">取消</el-button>
  47. </div>
  48. </div>
  49. <script>
  50. var app = new Vue({
  51. components: {
  52. "sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue')
  53. },
  54. el: '.vue-box',
  55. data: {
  56. id: sa.p('id', 0), // 获取数据ID
  57. m: null
  58. },
  59. methods: {},
  60. mounted: function () {
  61. sa.ajax('/TbDeductionBind/getById?id=' + this.id, function (res) {
  62. this.m = res.data;
  63. if (res.data == null) {
  64. sa.alert('未能查找到 id=' + this.id + " 详细数据");
  65. }
  66. }.bind(this))
  67. }
  68. })
  69. </script>
  70. </body>
  71. </html>