tb-purchaser-personal-do-judge.html 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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. .el-row{
  26. border-bottom: 1px solid #eeeeee;
  27. }
  28. table {
  29. font-family: arial, sans-serif;
  30. border-collapse: collapse;
  31. width: 90%;
  32. margin-top: 22px ;
  33. margin-left: auto;
  34. margin-right: auto;
  35. }
  36. th {
  37. border: 1px solid darkgray;
  38. text-align: left;
  39. height: 22px;
  40. padding: 8px;
  41. background-color: #dddddd;
  42. }
  43. td {
  44. border: 1px solid darkgray;
  45. text-align: left;
  46. padding: 8px;
  47. }
  48. </style>
  49. </head>
  50. <body>
  51. <div class="vue-box sbot" style="display: none;" :style="'display: block;'">
  52. <!-- ------- 内容部分 ------- -->
  53. <div class="s-body">
  54. <div class="c-panel">
  55. <el-form v-if="m">
  56. <el-alert show-icon title="审核驳回" :description="m.judgeContent" type="error" v-if="m.judgeStatus==2"></el-alert>
  57. <table>
  58. <tr>
  59. <th>姓名</th>
  60. <td>{{m.name}}</td>
  61. <th>邮箱</th>
  62. <td>{{m.email}}</td>
  63. </tr>
  64. <tr>
  65. <th>联系电话</th>
  66. <td>{{m.contact}}</td>
  67. <!--<td>{{maskPhone(m.contact)}}</td>-->
  68. <th>身份证号</th>
  69. <td>{{m.idCard}}</td>
  70. <!--<td>{{maskId(m.idCard)}}</td>-->
  71. </tr>
  72. <tr>
  73. <th>银行名称</th>
  74. <td>{{m.bankName}}</td>
  75. <th>银行编号</th>
  76. <td>{{m.bankNo}}</td>
  77. </tr>
  78. <tr>
  79. <th>银行账号</th>
  80. <td>{{m.bankAccount}}</td>
  81. <th>地址</th>
  82. <td>{{m.address}}</td>
  83. </tr>
  84. </table>
  85. </el-form>
  86. </div>
  87. </div>
  88. <!-- ------- 底部按钮 ------- -->
  89. <div class="s-foot" v-if="sa.isAuth('tb-purchaser-judge')">
  90. <el-button type="warning" @click="judgeBack">审核驳回</el-button>
  91. <el-button type="success" @click="judgePass">审核通过</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. judgeBack() {
  107. let id = this.m.id;
  108. layer.prompt({
  109. title: '输入审核意见'
  110. }, function(content, index) {
  111. layer.close(index);
  112. sa.ajax('/level-two-server/TbPurchaser/audit', {
  113. id: id,
  114. judgeContent: content,
  115. judgeStatus: 2
  116. }, function(res) {
  117. layer.msg('审核已驳回');
  118. setTimeout(() => {
  119. parent.app.f5(); // 刷新父页面列表
  120. sa.closeCurrIframe(); // 关闭本页
  121. }, 800)
  122. })
  123. });
  124. },
  125. judgePass() {
  126. sa.ajax('/level-two-server/TbPurchaser/audit', {
  127. id: this.m.id,
  128. judgeContent: '审核通过',
  129. judgeStatus: 1
  130. }, function(res) {
  131. layer.msg('审核通过');
  132. setTimeout(() => {
  133. parent.app.f5(); // 刷新父页面列表
  134. sa.closeCurrIframe(); // 关闭本页
  135. }, 800)
  136. })
  137. },
  138. },
  139. mounted: function() {
  140. sa.ajax('/level-two-server/TbPurchaser/getById?id=' + this.id, function(res) {
  141. this.m = res.data;
  142. if (res.data == null) {
  143. sa.alert('未能查找到 id=' + this.id + " 详细数据");
  144. }
  145. }.bind(this))
  146. }
  147. })
  148. </script>
  149. </body>
  150. </html>