index.vue 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <template>
  2. <normalLayout>
  3. <div class="container" slot="content">
  4. <!-- <el-button class="normal-margin" type="primary" size="small">编 辑</el-button> -->
  5. <!-- <editInfo class="normal-margin" :data="enterpriseInfo" :btnType="'primary'" btnSize="small" :hideGrade="true" @onSuccess="enterpriseData"></editInfo>-->
  6. <el-descriptions class="normal-margin" :labelStyle="{width:'120px'}" title="" :column="2" size="medium" border>
  7. <el-descriptions-item>
  8. <template slot="label">
  9. 企业名称
  10. </template>
  11. {{enterpriseInfo.enterprisename ? enterpriseInfo.enterprisename : '--'}}
  12. </el-descriptions-item>
  13. <el-descriptions-item>
  14. <template slot="label">
  15. 企业简称
  16. </template>
  17. {{enterpriseInfo.abbreviation ? enterpriseInfo.abbreviation : '--'}}
  18. </el-descriptions-item>
  19. <el-descriptions-item>
  20. <template slot="label">
  21. 联系人
  22. </template>
  23. {{enterpriseInfo.contact ? enterpriseInfo.contact : '--'}}
  24. </el-descriptions-item>
  25. <el-descriptions-item>
  26. <template slot="label">
  27. 联系电话
  28. </template>
  29. {{enterpriseInfo.phonenumber ? enterpriseInfo.phonenumber : '--'}}
  30. </el-descriptions-item>
  31. <el-descriptions-item>
  32. <template slot="label">
  33. 地址
  34. </template>
  35. {{enterpriseInfo.province}}{{enterpriseInfo.city}}{{enterpriseInfo.county}}{{enterpriseInfo.address}}
  36. </el-descriptions-item>
  37. </el-descriptions>
  38. <el-tabs v-model="activeName">
  39. <el-tab-pane label="收货地址" name="first">
  40. <setAddress :mainData="enterpriseInfo"></setAddress>
  41. </el-tab-pane>
  42. <el-tab-pane label="财务信息" name="second">
  43. <financial :mainData="enterpriseInfo"></financial>
  44. </el-tab-pane>
  45. <el-tab-pane label="附件" name="third">
  46. <attachment :mainData="enterpriseInfo"></attachment>
  47. </el-tab-pane>
  48. </el-tabs>
  49. </div>
  50. </normalLayout>
  51. </template>
  52. <script>
  53. import financial from '@/components/financialInfo/index.vue'
  54. import setAddress from './modules/address/list.vue'
  55. import editInfo from '@/Form/EnterpriseArchives/edit.vue'
  56. import attachmentList from '@/components/attachment_list/index.vue'
  57. import upload from '@/components/upload/hw_obs_upload.vue'
  58. import attachment from './modules/attachment/index'
  59. export default {
  60. data () {
  61. return {
  62. activeName:'first',
  63. enterpriseInfo:{},
  64. show:false,
  65. userInfo:'',
  66. attinfo_attachment:[],
  67. folderid:JSON.parse(sessionStorage.getItem('folderid')).appfolderid,
  68. }
  69. },
  70. components:{
  71. financial,
  72. setAddress,
  73. editInfo,
  74. attachment,
  75. attachmentList,
  76. upload
  77. },
  78. methods:{
  79. async enterpriseData () {
  80. const res = await this.$api.requested({
  81. "id": 20221022165203,
  82. "content": {
  83. sys_enterpriseid:this.userInfo.agent.sys_enterpriseid
  84. }
  85. })
  86. this.enterpriseInfo = res.data
  87. this.show = true
  88. },
  89. //获取用户信息
  90. async getUserInfo() {
  91. let res = await this.$api.requested({
  92. "classname": "common.usercenter.usercenter",
  93. "method": "queryUserMsg",
  94. "content": {
  95. }
  96. })
  97. this.userInfo = res.data
  98. this.enterpriseData()
  99. console.log(this.userInfo);
  100. },
  101. async queryAttments () {
  102. console.log("执行111")
  103. console.log(this.idname,'---')
  104. console.log(this.userInfo,'userInfo')
  105. const res = await this.$api.requested({
  106. "classname": "system.attachment.Attachment",
  107. "method": "queryFileLink",
  108. "content": {
  109. "ownertable": 'sys_enterprise',
  110. "ownerid":365,
  111. "usetype":"default"
  112. }
  113. })
  114. this.attinfo_attachment = res.data
  115. },
  116. },
  117. created () {
  118. this.getUserInfo()
  119. },
  120. mounted () {
  121. }
  122. }
  123. </script>
  124. <style>
  125. </style>
  126. <style scoped>
  127. .label-width{
  128. width: 120px;
  129. }
  130. </style>