tb-group-info.html 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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/jquery@3.4.1/dist/jquery.js"></script>
  14. <script src="../../static/kj/layer/layer.js"></script>
  15. <script src="../../static/sa.js"></script>
  16. <style type="text/css">
  17. .c-panel .c-label {
  18. width: 8em;
  19. }
  20. table {
  21. font-family: arial, sans-serif;
  22. border-collapse: collapse;
  23. width: 90%;
  24. margin-top: 26px ;
  25. margin-left: auto;
  26. margin-right: auto;
  27. }
  28. th {
  29. border: 1px solid darkgray;
  30. text-align: left;
  31. height: 30px;
  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 size="mini" v-if="m">
  48. <table>
  49. <tr>
  50. <th>名称</th>
  51. <td>{{m.orgName}}</td>
  52. <th>组长</th>
  53. <td>{{m.leaderName}}</td>
  54. </tr>
  55. <tr>
  56. <th>互市区</th>
  57. <td>{{m.tradeAreaName}}</td>
  58. <th>组长电话</th>
  59. <td>{{maskPhone(m.leaderPhone)}}</td>
  60. </tr>
  61. <tr>
  62. <th>限购额度</th>
  63. <td>{{m.leftPrice}}</td>
  64. <th>所属地址</th>
  65. <td>{{m.address}}</td>
  66. </tr>
  67. <tr>
  68. <th>场站编码</th>
  69. <td>{{m.fieldCode}}</td>
  70. <th>内部业务编号</th>
  71. <td>{{m.platSeqNo}}</td>
  72. </tr>
  73. <tr>
  74. <th>关区代码</th>
  75. <td>{{m.customsCode}}</td>
  76. <th>登记号</th>
  77. <td>{{m.shopsSccd}}</td>
  78. </tr>
  79. <tr>
  80. <th>启停用状态</th>
  81. <td>
  82. <b v-if="m.eDStatus == 1">启用</b>
  83. <b v-if="m.eDStatus == 2">停用</b>
  84. <b v-if="m.eDStatus == 3">注销</b>
  85. </td>
  86. <th>备案状态</th>
  87. <td>
  88. <b v-if="m.filingStatus == 0">待申报</b>
  89. <b v-if="m.filingStatus == 1">已申报</b>
  90. <b v-if="m.filingStatus == 2">备案通过</b>
  91. <b v-if="m.filingStatus == 3">备案失败</b>
  92. </td>
  93. </tr>
  94. <tr>
  95. <th>备案编号</th>
  96. <td>{{m.putrecNo}}</td>
  97. <th>地方政府编号</th>
  98. <td>{{m.localGovernmentNo}}</td>
  99. </tr>
  100. <tr>
  101. <th>有效效截止时间</th>
  102. <td>{{sa.forDate(m.expiry, 2)}}</td>
  103. <th>创建时间</th>
  104. <td>{{sa.forDate(m.createTime, 2)}}</td>
  105. </tr>
  106. </table>
  107. </el-form>
  108. </div>
  109. </div>
  110. <!-- ------- 底部按钮 ------- -->
  111. <div class="s-foot">
  112. <el-button size="mini" type="success" @click="sa.closeCurrIframe()">确定</el-button>
  113. <el-button size="mini" @click="sa.closeCurrIframe()">取消</el-button>
  114. </div>
  115. </div>
  116. <script>
  117. var app = new Vue({
  118. el: '.vue-box',
  119. data: {
  120. id: sa.p('id', 0), // 获取数据ID
  121. m: null
  122. },
  123. methods: {
  124. maskPhone:function (phone) {
  125. return phone.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2');
  126. },
  127. addLeaderFn(groupId) {
  128. sa.showIframe('添加组长', 'tb-group-leader.html?groupId=' + groupId, '950px', '90%');
  129. },
  130. },
  131. mounted: function() {
  132. sa.ajax('/level-one-server/TbGroup/getById?id=' + this.id, function(res) {
  133. this.m = res.data;
  134. if (res.data == null) {
  135. sa.alert('未能查找到 id=' + this.id + " 详细数据");
  136. }
  137. }.bind(this))
  138. }
  139. })
  140. </script>
  141. </body>
  142. </html>