tb-shop-info.html 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  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="../../static/kj/element-ui/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. <style type="text/css">
  17. .c-panel .c-label{width: 8em;}
  18. table {
  19. font-family: arial, sans-serif;
  20. border-collapse: collapse;
  21. width: 90%;
  22. margin-top: 22px ;
  23. margin-left: auto;
  24. margin-right: auto;
  25. }
  26. th {
  27. border: 1px solid darkgray;
  28. text-align: left;
  29. height: 22px;
  30. padding: 8px;
  31. background-color: #dddddd;
  32. }
  33. td {
  34. border: 1px solid darkgray;
  35. text-align: left;
  36. padding: 8px;
  37. }
  38. </style>
  39. </head>
  40. <body>
  41. <div class="vue-box sbot" style="display: none;" :style="'display: block;'">
  42. <!-- ------- 内容部分 ------- -->
  43. <div class="s-body">
  44. <div class="c-panel">
  45. <el-form size="mini" v-if="m">
  46. <table>
  47. <tr>
  48. <th>商铺名称</th>
  49. <td>{{m.shopName}}</td>
  50. <th>商铺编码</th>
  51. <td>{{m.shopNo}}</td>
  52. </tr>
  53. <tr>
  54. <th>商铺类型</th>
  55. <td>
  56. <b v-if="m.shopType == 1">中方商铺</b>
  57. <b v-if="m.shopType == 2">外国商铺</b>
  58. </td>
  59. <th>店铺地址</th>
  60. <td>{{m.shopAddr}}</td>
  61. </tr>
  62. <tr>
  63. <th>互市区</th>
  64. <td>{{m.fieldName}}</td>
  65. <th>互市区编码</th>
  66. <td>{{m.fieldCode}}</td>
  67. </tr>
  68. <tr>
  69. <th>铺主姓名</th>
  70. <td>{{m.ownerName}}</td>
  71. <th>铺主联系方式</th>
  72. <td>{{maskPhone(m.ownerTel)}}</td>
  73. </tr>
  74. <tr>
  75. <th>铺主证件类型</th>
  76. <td>
  77. <b v-if="m.ownerIdtype == 01">身份证</b>
  78. <b v-if="m.ownerIdtype == 02">护照</b>
  79. </td>
  80. <th>经营范围</th>
  81. <td>{{m.bnsScope}}</td>
  82. </tr>
  83. <tr>
  84. <th>营业执照</th>
  85. <td>{{m.shopSccd}}</td>
  86. <th>状态</th>
  87. <td>
  88. <b v-if="m.edstatus == 1">启用</b>
  89. <b v-if="m.edstatus == 2">停用</b>
  90. <b v-if="m.edstatus == 3">注销</b>
  91. </td>
  92. </tr>
  93. <tr>
  94. <th>店铺开户行</th>
  95. <td>{{m.bank}}</td>
  96. <th>店铺开户行账号</th>
  97. <td>{{m.bankAccount}}</td>
  98. </tr>
  99. <tr>
  100. <th>铺主国籍</th>
  101. <td>{{m.nationality}}</td>
  102. <th>账户类型:是否海外</th>
  103. <td>{{m.abroad}}</td>
  104. </tr>
  105. <tr>
  106. <th>代理人姓名</th>
  107. <td>{{m.agentName}}</td>
  108. <th>代理人联系方式</th>
  109. <td>{{maskPhone(m.agentTel)}}</td>
  110. </tr>
  111. <tr>
  112. <th>代理人证件类型</th>
  113. <td>
  114. <b v-if="m.agentIdtype == 01">身份证</b>
  115. <b v-if="m.agentIdtype == 02">护照</b>
  116. </td>
  117. <th>代理人身份证</th>
  118. <td>{{maskId(m.agentCiphertextIdno)}}</td>
  119. </tr>
  120. <tr>
  121. <th>关区代码</th>
  122. <td>{{m.customsCode}}</td>
  123. <th>业务编号</th>
  124. <td>{{m.platSeqNo}}</td>
  125. </tr>
  126. <tr>
  127. <th>备案编号</th>
  128. <td>{{m.putrecNo}}</td>
  129. <th>地方政府编号</th>
  130. <td>{{m.localGovernmentNo}}</td>
  131. </tr>
  132. <tr>
  133. <th>有效截止时间</th>
  134. <td>{{sa.forDate(m.expiry, 2)}}</td>
  135. <th>备案状态</th>
  136. <td>
  137. <b v-if="m.filingStatus == 0">待申报</b>
  138. <b v-if="m.filingStatus == 1">已申报</b>
  139. <b v-if="m.filingStatus == 2">备案通过</b>
  140. <b v-if="m.filingStatus == 3">备案失败</b>
  141. </td>
  142. </tr>
  143. </table>
  144. </el-form>
  145. </div>
  146. </div>
  147. <!-- ------- 底部按钮 ------- -->
  148. <div class="s-foot">
  149. <el-button size="mini" type="success" @click="sa.closeCurrIframe()">确定</el-button>
  150. <el-button size="mini" @click="sa.closeCurrIframe()">取消</el-button>
  151. </div>
  152. </div>
  153. <script>
  154. var app = new Vue({
  155. el: '.vue-box',
  156. data: {
  157. id: sa.p('id', 0), // 获取数据ID
  158. m: null
  159. },
  160. methods: {
  161. maskId:function (id) {
  162. return id.replace(/^(.{6})(.*)(.{4})$/,'$1********$3');
  163. },
  164. maskPhone:function (phone) {
  165. return phone.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2');
  166. },
  167. },
  168. mounted: function() {
  169. sa.ajax('/level-one-server/TbShop/getById?id=' + this.id, function(res) {
  170. this.m = res.data;
  171. if(res.data == null) {
  172. sa.alert('未能查找到 id=' + this.id + " 详细数据");
  173. }
  174. }.bind(this))
  175. }
  176. })
  177. </script>
  178. </body>
  179. </html>