tb-people-info.html 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  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="../../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. <script src="../../static/kj/upload-util.js"></script>
  18. <style type="text/css">
  19. .c-panel .c-label {
  20. width: 8em;
  21. }
  22. .c-item .image-box-2 {
  23. height: 90px;
  24. }
  25. table {
  26. font-family: arial, sans-serif;
  27. border-collapse: collapse;
  28. width: 90%;
  29. margin-top: 26px ;
  30. margin-left: auto;
  31. margin-right: auto;
  32. }
  33. th {
  34. border: 1px solid darkgray;
  35. text-align: left;
  36. height: 26px;
  37. padding: 8px;
  38. background-color: #dddddd;
  39. }
  40. td {
  41. border: 1px solid darkgray;
  42. text-align: left;
  43. padding: 8px;
  44. }
  45. </style>
  46. </head>
  47. <body>
  48. <div class="vue-box sbot" style="display: none;" :style="'display: block;'">
  49. <!-- ------- 内容部分 ------- -->
  50. <div class="s-body">
  51. <div class="c-panel">
  52. <el-form v-if="m">
  53. <table>
  54. <tr>
  55. <th>姓名</th>
  56. <td>{{m.name}}</td>
  57. <th>性别</th>
  58. <td>
  59. <b v-if="m.sex == 1">男</b>
  60. <b v-if="m.sex == 2">女</b>
  61. </td>
  62. </tr>
  63. <tr>
  64. <th>互市区</th>
  65. <td>{{m.tradeAreaName}}</td>
  66. <th>手机号码</th>
  67. <td>{{maskPhone(m.phone)}}</td>
  68. </tr>
  69. <tr>
  70. <th>身份证</th>
  71. <td>{{maskId(m.idCard)}}</td>
  72. <th>开户行</th>
  73. <td>{{m.bankName}}</td>
  74. </tr>
  75. <tr>
  76. <th>所属互助组</th>
  77. <td>{{m.groupName}}</td>
  78. <th>银行卡号</th>
  79. <td>{{m.bankCode}}</td>
  80. </tr>
  81. <tr>
  82. <th>场所编码</th>
  83. <td>{{m.fieldCode}}</td>
  84. <th>当天剩余额度</th>
  85. <td>{{m.leftPrice}}</td>
  86. </tr>
  87. <tr>
  88. <th>角色</th>
  89. <td>
  90. <b v-if="m.role == 1">普通边民</b>
  91. <b v-if="m.role == 2">兼组长</b>
  92. </td>
  93. <th>备案状态</th>
  94. <td>
  95. <b v-if="m.filingStatus == 0">待申报</b>
  96. <b v-if="m.filingStatus == 1">已申报</b>
  97. <b v-if="m.filingStatus == 2">备案通过</b>
  98. <b v-if="m.filingStatus == 3">备案失败</b>
  99. </td>
  100. </tr>
  101. <tr>
  102. <th>关区代码</th>
  103. <td>{{m.customsCode}}</td>
  104. <th>业务编号</th>
  105. <td>{{m.platSeqNo}}</td>
  106. </tr>
  107. <tr>
  108. <th>备案编号</th>
  109. <td>{{m.putrecNo}}</td>
  110. <th>地方政府编号</th>
  111. <td>{{m.localGovernmentNo}}</td>
  112. </tr>
  113. <tr>
  114. <th>身份证发证机关</th>
  115. <td>{{m.idcdGcertPgoffNm}}</td>
  116. <th>户籍地址</th>
  117. <td>{{m.birplAddr}}</td>
  118. </tr>
  119. <tr>
  120. <th>身份证有效期起</th>
  121. <td>{{sa.forDate(m.startDate, 2)}}</td>
  122. <th>身份证有效期止</th>
  123. <td>{{sa.forDate(m.endDate, 2)}}</td>
  124. </tr>
  125. <tr>
  126. <th>有效截止时间</th>
  127. <td>{{sa.forDate(m.expiry, 2)}}</td>
  128. <th>创建时间</th>
  129. <td>{{sa.forDate(m.createTime, 2)}}</td>
  130. </tr>
  131. </table>
  132. </el-form>
  133. </div>
  134. </div>
  135. <!-- ------- 底部按钮 ------- -->
  136. <div class="s-foot">
  137. <el-button type="success" @click="sa.closeCurrIframe()">确定</el-button>
  138. <el-button @click="sa.closeCurrIframe()">取消</el-button>
  139. </div>
  140. </div>
  141. <script>
  142. var app = new Vue({
  143. components: {
  144. "sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue')
  145. },
  146. el: '.vue-box',
  147. data: {
  148. id: sa.p('id', 0), // 获取数据ID
  149. m: null
  150. },
  151. methods: {
  152. maskId:function (id) {
  153. return id.replace(/^(.{6})(.*)(.{4})$/,'$1********$3');
  154. },
  155. maskPhone:function (phone) {
  156. return phone.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2');
  157. },
  158. },
  159. mounted: function() {
  160. sa.ajax('/level-one-server/TbPeople/getById?id=' + this.id, function(res) {
  161. this.m = res.data;
  162. if (res.data == null) {
  163. sa.alert('未能查找到 id=' + this.id + " 详细数据");
  164. }
  165. }.bind(this))
  166. }
  167. })
  168. </script>
  169. </body>
  170. </html>