tb-cooperative-info.html 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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. .c-item .image-box-2{height: 90px;}
  19. </style>
  20. </head>
  21. <body>
  22. <div class="vue-box sbot" style="display: none;" :style="'display: block;'">
  23. <!-- ------- 内容部分 ------- -->
  24. <div class="s-body">
  25. <div class="c-panel">
  26. <el-form v-if="m">
  27. <el-row>
  28. <el-col span="12">
  29. <sa-info name="名称" br>{{m.orgName}}</sa-info>
  30. <sa-info name="法人" br>{{m.correpName}}</sa-info>
  31. <sa-info name="身份证号" br>{{m.ciphertextIdno}}</sa-info>
  32. <sa-info name="手机号码" br>{{m.correpTel}}</sa-info>
  33. <sa-info type="img-list" name="营业执照" :value="m.businessLicense" br></sa-info>
  34. </el-col>
  35. <el-col span="12">
  36. <sa-info name="税号" br>{{m.orgSccd}}</sa-info>
  37. <sa-info name="银行名称" br>{{m.bankName}}</sa-info>
  38. <sa-info name="银行账号" br>{{m.bankAccount}}</sa-info>
  39. <sa-info name="地址" br>{{m.address}}</sa-info>
  40. <sa-info name="创建时间" br>{{m.createTime}}</sa-info>
  41. <sa-info name="更新时间" br>{{m.updateTime}}</sa-info>
  42. </el-col>
  43. </el-row>
  44. </el-form>
  45. <div>合作社代表</div>
  46. <el-table class="data-table" ref="data-table" :data="dataList" >
  47. <sa-td type="index" name="序号"></sa-td>
  48. <sa-td name="名称" prop="orgName"></sa-td>
  49. <sa-td name="税号" prop="orgSccd"></sa-td>
  50. <sa-td name="法人" prop="correpName"></sa-td>
  51. <sa-td name="手机号码" prop="correpTel" width="100px" ></sa-td>
  52. <sa-td name="银行名称" prop="bankName"></sa-td>
  53. <sa-td name="银行账号" prop="bankAccount"></sa-td>
  54. <sa-td name="创建时间" width="160px" prop="createTime"></sa-td>
  55. <sa-td label="操作" fixed="right" width="240px">
  56. <template slot-scope="s" style="line-height: 0px;">
  57. <el-button class="c-btn" type="success" icon="el-icon-view" @click="get(s.row)">查看</el-button>
  58. <el-button v-if="sa.isAuth('tb-cooperative-edit')" class="c-btn" type="primary" icon="el-icon-edit" @click="update(s.row)">修改</el-button>
  59. <el-button v-if="sa.isAuth('tb-cooperative-del')" class="c-btn" type="danger" icon="el-icon-delete" @click="del(s.row)">删除</el-button>
  60. </template>
  61. </sa-td>
  62. </el-table>
  63. </div>
  64. </div>
  65. <!-- ------- 底部按钮 ------- -->
  66. <div class="s-foot">
  67. <el-button type="success" @click="sa.closeCurrIframe()">确定</el-button>
  68. <el-button @click="sa.closeCurrIframe()">取消</el-button>
  69. </div>
  70. </div>
  71. <script>
  72. var app = new Vue({
  73. components: {
  74. "sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue')
  75. },
  76. el: '.vue-box',
  77. data: {
  78. id: sa.p('id', 0), // 获取数据ID
  79. m: null,
  80. dataList:[]
  81. },
  82. methods: {
  83. },
  84. mounted: function() {
  85. sa.ajax('/level-one-server/TbCooperative/getById?id=' + this.id, function(res) {
  86. this.m = res.data;
  87. if(res.data == null) {
  88. sa.alert('未能查找到 id=' + this.id + " 详细数据");
  89. }
  90. }.bind(this))
  91. }
  92. })
  93. </script>
  94. </body>
  95. </html>