info.vue 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. <template>
  2. <div class="app-container" v-loading="loading">
  3. <i v-if="info.authState == 1" class="entIcon audit"></i>
  4. <i v-if="info.authState == 2" class="entIcon pass"></i>
  5. <i v-if="info.authState == 3" class="entIcon refuse"></i>
  6. <h3 class="toolbar">
  7. <span class="title">企业信息</span>
  8. </h3>
  9. <table class="table_view">
  10. <tr>
  11. <th>企业名称</th>
  12. <td>{{info.entName}}</td>
  13. <th>统一社会信用代码</th>
  14. <td>{{info.license}}</td>
  15. </tr>
  16. <tr>
  17. <th>注册资金(万元)</th>
  18. <td>{{info.regCapital}}</td>
  19. <th>工商注册时间</th>
  20. <td>{{info.regDate}}</td>
  21. </tr>
  22. <tr>
  23. <th>工商注册类型</th>
  24. <td>{{regTypeFormat}}</td>
  25. <th>主营产品(服务)所属技术领域</th>
  26. <td>{{info.mainProducts}}</td>
  27. </tr>
  28. <tr>
  29. <th>通信地址</th>
  30. <td>{{info.address}}</td>
  31. <th>邮政编码</th>
  32. <td>{{info.zipCode}}</td>
  33. </tr>
  34. <tr>
  35. <th>企业所属行政区域</th>
  36. <td>{{info.provinceName}}{{info.cityName}}{{info.districtName}}</td>
  37. <th>企业所得税主管税务机关</th>
  38. <td>{{info.taxOffice}}</td>
  39. </tr>
  40. </table>
  41. <h3 class="toolbar mt20">
  42. <span class="title">法人信息</span>
  43. </h3>
  44. <table class="table_view">
  45. <tr>
  46. <th>姓名</th>
  47. <td>{{info.legalName}}</td>
  48. <th>身份证号码</th>
  49. <td>{{info.legalIdCard}}</td>
  50. </tr>
  51. <tr>
  52. <th>手机号码</th>
  53. <td>{{info.legalMobile}}</td>
  54. <th>固定电话</th>
  55. <td>{{info.legalPhone}}</td>
  56. </tr>
  57. <tr>
  58. <th>传真</th>
  59. <td>{{info.legalFax}}</td>
  60. <th>E-mail</th>
  61. <td>{{info.legalEmail}}</td>
  62. </tr>
  63. </table>
  64. <h3 class="toolbar mt20">
  65. <span class="title">联系人信息</span>
  66. </h3>
  67. <table class="table_view">
  68. <tr>
  69. <th>姓名</th>
  70. <td>{{info.linkName}}</td>
  71. <th>身份证号码</th>
  72. <td>{{info.linkIdCard}}</td>
  73. </tr>
  74. <tr>
  75. <th>手机号码</th>
  76. <td>{{info.linkMobile}}</td>
  77. <th>固定电话</th>
  78. <td>{{info.linkPhone}}</td>
  79. </tr>
  80. <tr>
  81. <th>传真</th>
  82. <td>{{info.linkFax}}</td>
  83. <th>E-mail</th>
  84. <td>{{info.linkEmail}}</td>
  85. </tr>
  86. </table>
  87. <h3 class="toolbar mt20">
  88. <span class="title">企业上市信息</span>
  89. </h3>
  90. <table class="table_view">
  91. <tr>
  92. <th>企业是否上市</th>
  93. <td>{{listedFlag}}</td>
  94. <th>企业上市代码</th>
  95. <td>{{info.listingCode}}</td>
  96. </tr>
  97. </table>
  98. <h3 class="toolbar mt20">
  99. <span class="title">风险投资信息</span>
  100. </h3>
  101. <table class="table_view">
  102. <tr>
  103. <th>是否引入风险投资</th>
  104. <td>{{investFlag}}</td>
  105. <th>风险投资金额</th>
  106. <td>{{info.investCapital}}</td>
  107. </tr>
  108. </table>
  109. <h3 class="toolbar mt20">
  110. <span class="title">高新企业</span>
  111. </h3>
  112. <table class="table_view">
  113. <tr>
  114. <th>是否为高新企业</th>
  115. <td>{{techFlag}}</td>
  116. <th>高新企业编号</th>
  117. <td>{{info.techCode}}</td>
  118. </tr>
  119. </table>
  120. <h3 class="toolbar mt20">
  121. <span class="title">上年度是否做加计扣除</span>
  122. </h3>
  123. <table class="table_view">
  124. <tr>
  125. <th>上年度是否做加计扣除</th>
  126. <td>{{deductionFlag}}</td>
  127. </tr>
  128. </table>
  129. <h3 class="toolbar mt20">
  130. <span class="title">附件</span>
  131. </h3>
  132. <table class="table_view">
  133. <tr>
  134. <th>企业营业执照</th>
  135. <td>
  136. <a class="link" :href="info.licensePath" target="_blank" v-if="info.licensePath">企业营业执照</a>
  137. </td>
  138. <th>其他附件</th>
  139. <td>
  140. <div v-for="(file, index) in list" :key="index">
  141. <a class="link" :href="file.url" target="_blank">{{file.fileName}}</a>
  142. </div>
  143. </td>
  144. </tr>
  145. </table>
  146. <h3 class="toolbar mt20">
  147. <span class="title">文件水印</span>
  148. </h3>
  149. <table class="table_view">
  150. <tr>
  151. <th>公司logo</th>
  152. <td>
  153. <a class="link" :href="info.logo" target="_blank" v-if="info.logo">公司logo</a>
  154. <!-- <img :src="info.logo" alt="logo"> -->
  155. </td>
  156. </tr>
  157. </table>
  158. <div class="oper">
  159. <el-button @click="cancel" v-if="type == 'view' || type == 'audit'">返回</el-button>
  160. <template v-if="info.authState == '1' && type == 'audit'">
  161. <el-button @click="handleAudit">通过审核</el-button>
  162. <el-button @click="handleRefuse">驳回</el-button>
  163. </template>
  164. <template v-if="(type == 'update') && info.authState == '1'">
  165. <el-button @click="handleUpdate">修改</el-button>
  166. </template>
  167. </div>
  168. <audit-ent v-if="auditEntVisible" ref="auditEnt" @refreshData="getData()"></audit-ent>
  169. </div>
  170. </template>
  171. <script>
  172. import { getEntInfoByIdApi, auditEntApi } from "@/api/admin/ent/ent"
  173. import AuditEnt from "./components/audit"
  174. import {getEnclosureApi} from "@/api/enterprise/project/project"
  175. import {getEntInfoByIdTaxApi} from "@/api/gov/gov"
  176. import {regTypeOptions, getLabel,yesOrNoOptions} from '@/utils/dataFormat'
  177. import {downloadEnclosureByIdApi} from "@/api/common/common"
  178. export default {
  179. name: 'EntInfo',
  180. components: {
  181. AuditEnt
  182. },
  183. data () {
  184. return {
  185. loading: false,
  186. id: undefined,
  187. type: undefined,
  188. list: [],
  189. auditEntVisible: false,
  190. attachType: 'ENT',
  191. roleType: '',
  192. info: {
  193. },
  194. }
  195. },
  196. computed: {
  197. scopeId() {
  198. return this.$store.state.user.scopeId
  199. },
  200. roles() {
  201. return this.$store.state.user.roles
  202. },
  203. regTypeFormat() {
  204. return getLabel(regTypeOptions, this.info.regType);
  205. },
  206. listedFlag() {
  207. return getLabel(yesOrNoOptions, this.info.listedFlag);
  208. },
  209. investFlag() {
  210. return getLabel(yesOrNoOptions, this.info.investFlag)
  211. },
  212. techFlag() {
  213. return getLabel(yesOrNoOptions, this.info.techFlag)
  214. },
  215. deductionFlag() {
  216. return getLabel(yesOrNoOptions, this.info.deductionFlag)
  217. }
  218. },
  219. created () {
  220. this.type = this.$route.query.type || undefined
  221. this.roleType = this.roles.join(',')
  222. if(this.roleType == 'entAdmin' || this.roleType == 'entUser') {
  223. this.id = this.scopeId
  224. this.dataId = this.scopeId
  225. }else {
  226. this.id = this.$route.params.id
  227. this.dataId = this.$route.params.id
  228. }
  229. if(this.id) {
  230. this.getData()
  231. this.getEnclosureData()
  232. }
  233. },
  234. methods: {
  235. getEnclosureData() {
  236. getEnclosureApi(this.attachType, this.dataId).then(res => {
  237. this.list = res.data.records
  238. })
  239. },
  240. getData() {
  241. const id = this.id
  242. this.loading = true
  243. if(this.roleType == 'gov') {
  244. getEntInfoByIdTaxApi(id).then(res => {
  245. this.loading = false
  246. this.info = res.data || {}
  247. })
  248. }else if(this.roleType == 'manager') {
  249. getEntInfoByIdApi(id).then(res => {
  250. this.loading = false
  251. this.info = res.data || {}
  252. })
  253. }
  254. },
  255. handleAudit() {
  256. this.auditEntVisible = true
  257. this.$nextTick(() => {
  258. this.$refs.auditEnt.init(this.id)
  259. })
  260. },
  261. handleRefuse() {
  262. let params = {
  263. id: this.id,
  264. authState: '3',
  265. }
  266. this.$confirm('是否确认驳回该企业注册?', "警告", {
  267. confirmButtonText: "确定",
  268. cancelButtonText: "取消",
  269. type: "warning"
  270. }).then(function() {
  271. return auditEntApi(params);
  272. }).then(() => {
  273. this.$message({
  274. message: '审核驳回成功',
  275. type: 'success'
  276. });
  277. this.getData()
  278. })
  279. },
  280. handleUpdate() {
  281. },
  282. handleView(id) {
  283. window.open("http://124.232.146.72:7015/api/common/attach/"+id)
  284. },
  285. cancel() {
  286. this.$store.dispatch("tagsView/delView", this.$route); // 关闭当前tab
  287. this.$router.go(-1);
  288. }
  289. }
  290. }
  291. </script>
  292. <style>
  293. </style>