tb-people-info.html 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  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. <td>{{m.phone}}</td>
  69. </tr>
  70. <tr>
  71. <th>身份证</th>
  72. <!--<td>{{maskId(m.idCard)}}</td>-->
  73. <td>{{m.idCard}}</td>
  74. <th>开户行</th>
  75. <td>{{m.bankName}}</td>
  76. </tr>
  77. <tr>
  78. <th>所属互助组</th>
  79. <td>{{m.groupName}}</td>
  80. <th>银行卡号</th>
  81. <td>{{m.bankCode}}</td>
  82. </tr>
  83. <tr>
  84. <th>场所编码</th>
  85. <td>{{m.fieldCode}}</td>
  86. <th>当天剩余额度</th>
  87. <td>{{m.leftPrice}}</td>
  88. </tr>
  89. <tr>
  90. <th>角色</th>
  91. <td>
  92. <b v-if="m.role == 1">普通边民</b>
  93. <b v-if="m.role == 2">兼组长</b>
  94. </td>
  95. <th>备案状态</th>
  96. <td>
  97. <b v-if="m.filingStatus == 0">待申报</b>
  98. <b v-if="m.filingStatus == 1">已申报</b>
  99. <b v-if="m.filingStatus == 2">备案通过</b>
  100. <b v-if="m.filingStatus == 3">备案失败</b>
  101. </td>
  102. </tr>
  103. <tr>
  104. <th>关区代码</th>
  105. <td>{{m.customsCode}}</td>
  106. <th>业务编号</th>
  107. <td>{{m.platSeqNo}}</td>
  108. </tr>
  109. <tr>
  110. <th>备案编号</th>
  111. <td>{{m.putrecNo}}</td>
  112. <th>地方政府编号</th>
  113. <td>{{m.localGovernmentNo}}</td>
  114. </tr>
  115. <tr>
  116. <th>身份证发证机关</th>
  117. <td>{{m.idcdGcertPgoffNm}}</td>
  118. <th>户籍地址</th>
  119. <td>{{m.birplAddr}}</td>
  120. </tr>
  121. <tr>
  122. <th>身份证有效期起</th>
  123. <td>{{sa.forDate(m.startDate, 2)}}</td>
  124. <th>身份证有效期止</th>
  125. <td>{{sa.forDate(m.endDate, 2)}}</td>
  126. </tr>
  127. <tr>
  128. <th>有效截止时间</th>
  129. <td>{{sa.forDate(m.expiry, 2)}}</td>
  130. <th>创建时间</th>
  131. <td>{{sa.forDate(m.createTime, 2)}}</td>
  132. </tr>
  133. </table>
  134. </el-form>
  135. </div>
  136. </div>
  137. <!-- ------- 底部按钮 ------- -->
  138. <div class="s-foot">
  139. <el-button type="success" @click="sa.closeCurrIframe()">确定</el-button>
  140. <el-button @click="sa.closeCurrIframe()">取消</el-button>
  141. </div>
  142. </div>
  143. <script>
  144. var app = new Vue({
  145. components: {
  146. "sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue')
  147. },
  148. el: '.vue-box',
  149. data: {
  150. id: sa.p('id', 0), // 获取数据ID
  151. m: null
  152. },
  153. methods: {
  154. maskId:function (id) {
  155. return id.replace(/^(.{6})(.*)(.{4})$/,'$1********$3');
  156. },
  157. maskPhone:function (phone) {
  158. return phone.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2');
  159. },
  160. },
  161. mounted: function() {
  162. sa.ajax('/level-one-server/TbPeople/getById?id=' + this.id, function(res) {
  163. this.m = res.data;
  164. if (res.data == null) {
  165. sa.alert('未能查找到 id=' + this.id + " 详细数据");
  166. }
  167. }.bind(this))
  168. }
  169. })
  170. </script>
  171. </body>
  172. </html>