tb-purchaser-personal-info.html 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
  7. <!-- 所有的 css js 资源 -->
  8. <link rel="stylesheet" href="https://unpkg.com/element-ui@2.13.0/lib/theme-chalk/index.css">
  9. <link rel="stylesheet" href="../../static/sa.css">
  10. <script src="../../static/kj/vue.min.js"></script>
  11. <script src="../../static/kj/element-ui/index.js"></script>
  12. <script src="../../static/kj/httpVueLoader.js"></script>
  13. <script src="../../static/kj/jquery.min.js"></script>
  14. <script src="../../static/kj/layer/layer.js"></script>
  15. <script src="../../static/sa.js"></script>
  16. <script src="../../static/kj/upload-util.js"></script>
  17. <style type="text/css">
  18. .c-panel .c-label{width: 8em;}
  19. .c-item .image-box-2{height: 90px;}
  20. table {
  21. font-family: arial, sans-serif;
  22. border-collapse: collapse;
  23. width: 90%;
  24. margin-top: 22px ;
  25. margin-left: auto;
  26. margin-right: auto;
  27. }
  28. th {
  29. border: 1px solid darkgray;
  30. text-align: left;
  31. height: 22px;
  32. padding: 8px;
  33. background-color: #dddddd;
  34. }
  35. td {
  36. border: 1px solid darkgray;
  37. text-align: left;
  38. padding: 8px;
  39. }
  40. </style>
  41. </head>
  42. <body>
  43. <div class="vue-box sbot" style="display: none;" :style="'display: block;'">
  44. <!-- ------- 内容部分 ------- -->
  45. <div class="s-body">
  46. <div class="c-panel">
  47. <el-form v-if="m">
  48. <table>
  49. <tr>
  50. <th>姓名</th>
  51. <td>{{m.name}}</td>
  52. <th>邮箱</th>
  53. <td>{{m.email}}</td>
  54. </tr>
  55. <tr>
  56. <th>联系电话</th>
  57. <td>{{m.contact}}</td>
  58. <!--<td>{{maskPhone(m.contact)}}</td>-->
  59. <th>身份证号</th>
  60. <td>{{m.idCard}}</td>
  61. <!--<td>{{maskId(m.idCard)}}</td>-->
  62. </tr>
  63. <tr>
  64. <th>银行名称</th>
  65. <td>{{m.bankName}}</td>
  66. <th>银行编号</th>
  67. <td>{{m.bankNo}}</td>
  68. </tr>
  69. <tr>
  70. <th>银行账号</th>
  71. <td>{{m.bankAccount}}</td>
  72. <th>地址</th>
  73. <td>{{m.address}}</td>
  74. </tr>
  75. <tr>
  76. <th>审核状态</th>
  77. <td>
  78. <b v-if="m.judgeStatus == 0">未审核</b>
  79. <b v-if="m.judgeStatus == 1">审核通过</b>
  80. <b v-if="m.judgeStatus == 2">审核驳回</b>
  81. </td>
  82. <th>审核时间</th>
  83. <td>{{sa.forDate(m.judgeTime)}}</td>
  84. </tr>
  85. </table>
  86. </el-form>
  87. </div>
  88. </div>
  89. <!-- ------- 底部按钮 ------- -->
  90. <div class="s-foot">
  91. <el-button type="success" @click="sa.closeCurrIframe()">确定</el-button>
  92. <el-button @click="sa.closeCurrIframe()">取消</el-button>
  93. </div>
  94. </div>
  95. <script>
  96. var app = new Vue({
  97. components: {
  98. "sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue')
  99. },
  100. el: '.vue-box',
  101. data: {
  102. id: sa.p('id', 0), // 获取数据ID
  103. m: null
  104. },
  105. methods: {
  106. maskId:function (id) {
  107. return id.replace(/^(.{6})(.*)(.{4})$/,'$1********$3');
  108. },
  109. maskPhone:function (phone) {
  110. return phone.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2');
  111. },
  112. },
  113. mounted: function() {
  114. sa.ajax('/level-two-server/TbPurchaser/getById?id=' + this.id, function(res) {
  115. this.m = res.data;
  116. if(res.data == null) {
  117. sa.alert('未能查找到 id=' + this.id + " 详细数据");
  118. }
  119. }.bind(this))
  120. }
  121. })
  122. </script>
  123. </body>
  124. </html>