tb-enterprise-do-judge.html 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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. </style>
  29. </head>
  30. <body>
  31. <div class="vue-box sbot" style="display: none;" :style="'display: block;'">
  32. <!-- ------- 内容部分 ------- -->
  33. <div class="s-body">
  34. <div class="c-panel">
  35. <el-form v-if="m">
  36. <el-alert show-icon title="审核驳回" :description="m.judgeContent" type="error" v-if="m.judgeStatus==2"></el-alert>
  37. <el-row>
  38. <el-col span="12">
  39. <sa-info name="商户名称" br>{{m.name}}</sa-info>
  40. </el-col>
  41. <el-col span="12">
  42. <sa-info name="纳税人识别号" br>{{m.dutyParagraph}}</sa-info>
  43. </el-col>
  44. </el-row>
  45. <el-row>
  46. <el-col span="12">
  47. <sa-info name="法人姓名" br>{{m.legalPerson}}</sa-info>
  48. </el-col>
  49. <el-col span="12">
  50. <sa-info name="身份证号" br>{{m.idCard}}</sa-info>
  51. </el-col>
  52. </el-row>
  53. <el-row>
  54. <el-col span="12">
  55. <sa-info name="银行名称" br>{{m.bankName}}</sa-info>
  56. </el-col>
  57. <el-col span="12">
  58. <sa-info name="银行账号" br>{{m.bankAccount}}</sa-info>
  59. </el-col>
  60. </el-row>
  61. <el-row>
  62. <el-col span="12">
  63. <sa-info name="联系号码" br>{{m.legalPerson}}</sa-info>
  64. </el-col>
  65. <el-col span="12">
  66. <sa-info name="营业执照" br>{{m.idCard}}</sa-info>
  67. </el-col>
  68. </el-row>
  69. </el-form>
  70. </div>
  71. </div>
  72. <!-- ------- 底部按钮 ------- -->
  73. <div class="s-foot" v-if="sa.isAuth('tb-enterprise-judge')">
  74. <el-button type="warning" @click="judgeBack">审核驳回</el-button>
  75. <el-button type="success" @click="judgePass">审核通过</el-button>
  76. <el-button @click="sa.closeCurrIframe()">取消</el-button>
  77. </div>
  78. </div>
  79. <script>
  80. var app = new Vue({
  81. components: {
  82. "sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue')
  83. },
  84. el: '.vue-box',
  85. data: {
  86. id: sa.p('id', 0), // 获取数据ID
  87. m: null
  88. },
  89. methods: {
  90. judgeBack() {
  91. let id = this.m.id;
  92. layer.prompt({
  93. title: '输入审核意见'
  94. }, function(content, index) {
  95. layer.close(index);
  96. sa.ajax('/level-one-server/TbEnterprise/audit', {
  97. id: id,
  98. judgeContent: content,
  99. judgeStatus: 2
  100. }, function(res) {
  101. layer.msg('审核已驳回');
  102. setTimeout(() => {
  103. parent.app.f5(); // 刷新父页面列表
  104. sa.closeCurrIframe(); // 关闭本页
  105. }, 800)
  106. })
  107. });
  108. },
  109. judgePass() {
  110. sa.ajax('/level-one-server/TbEnterprise/audit', {
  111. id: this.m.id,
  112. judgeContent: '审核通过',
  113. judgeStatus: 1
  114. }, function(res) {
  115. layer.msg('审核通过');
  116. setTimeout(() => {
  117. parent.app.f5(); // 刷新父页面列表
  118. sa.closeCurrIframe(); // 关闭本页
  119. }, 800)
  120. })
  121. },
  122. },
  123. mounted: function() {
  124. sa.ajax('/level-one-server/TbEnterprise/getById?id=' + this.id, function(res) {
  125. this.m = res.data;
  126. if (res.data == null) {
  127. sa.alert('未能查找到 id=' + this.id + " 详细数据");
  128. }
  129. }.bind(this))
  130. }
  131. })
  132. </script>
  133. </body>
  134. </html>