123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133 |
- <template>
- <normalLayout>
- <div class="container" slot="content">
- <!-- <el-button class="normal-margin" type="primary" size="small">编 辑</el-button> -->
- <!-- <editInfo class="normal-margin" :data="enterpriseInfo" :btnType="'primary'" btnSize="small" :hideGrade="true" @onSuccess="enterpriseData"></editInfo>-->
- <el-descriptions class="normal-margin" :labelStyle="{width:'120px'}" title="" :column="2" size="medium" border>
- <el-descriptions-item>
- <template slot="label">
- 企业名称
- </template>
- {{enterpriseInfo.enterprisename ? enterpriseInfo.enterprisename : '--'}}
- </el-descriptions-item>
- <el-descriptions-item>
- <template slot="label">
- 企业简称
- </template>
- {{enterpriseInfo.abbreviation ? enterpriseInfo.abbreviation : '--'}}
- </el-descriptions-item>
- <el-descriptions-item>
- <template slot="label">
- 联系人
- </template>
- {{enterpriseInfo.contact ? enterpriseInfo.contact : '--'}}
- </el-descriptions-item>
- <el-descriptions-item>
- <template slot="label">
- 联系电话
- </template>
- {{enterpriseInfo.phonenumber ? enterpriseInfo.phonenumber : '--'}}
- </el-descriptions-item>
- <el-descriptions-item>
- <template slot="label">
- 地址
- </template>
- {{enterpriseInfo.province}}{{enterpriseInfo.city}}{{enterpriseInfo.county}}{{enterpriseInfo.address}}
- </el-descriptions-item>
- </el-descriptions>
- <el-tabs v-model="activeName">
- <el-tab-pane label="收货地址" name="first">
- <setAddress :mainData="enterpriseInfo"></setAddress>
- </el-tab-pane>
- <el-tab-pane label="财务信息" name="second">
- <financial :mainData="enterpriseInfo"></financial>
- </el-tab-pane>
- <el-tab-pane label="附件" name="third">
- <attachment :mainData="enterpriseInfo"></attachment>
- </el-tab-pane>
- </el-tabs>
- </div>
- </normalLayout>
- </template>
- <script>
- import financial from '@/components/financialInfo/index.vue'
- import setAddress from './modules/address/list.vue'
- import editInfo from '@/Form/EnterpriseArchives/edit.vue'
- import attachmentList from '@/components/attachment_list/index.vue'
- import upload from '@/components/upload/hw_obs_upload.vue'
- import attachment from './modules/attachment/index'
- export default {
- data () {
- return {
- activeName:'first',
- enterpriseInfo:{},
- show:false,
- userInfo:'',
- attinfo_attachment:[],
- folderid:JSON.parse(sessionStorage.getItem('folderid')).appfolderid,
- }
- },
- components:{
- financial,
- setAddress,
- editInfo,
- attachment,
- attachmentList,
- upload
- },
- methods:{
- async enterpriseData () {
- const res = await this.$api.requested({
- "id": 20221022165203,
- "content": {
- sys_enterpriseid:this.userInfo.agent.sys_enterpriseid
- }
- })
- this.enterpriseInfo = res.data
- this.show = true
- },
- //获取用户信息
- async getUserInfo() {
- let res = await this.$api.requested({
- "classname": "common.usercenter.usercenter",
- "method": "queryUserMsg",
- "content": {
- }
- })
- this.userInfo = res.data
- this.enterpriseData()
- console.log(this.userInfo);
- },
- async queryAttments () {
- console.log("执行111")
- console.log(this.idname,'---')
- console.log(this.userInfo,'userInfo')
- const res = await this.$api.requested({
- "classname": "system.attachment.Attachment",
- "method": "queryFileLink",
- "content": {
- "ownertable": 'sys_enterprise',
- "ownerid":365,
- "usetype":"default"
- }
- })
- this.attinfo_attachment = res.data
- },
- },
- created () {
- this.getUserInfo()
- },
- mounted () {
- }
- }
- </script>
- <style>
- </style>
- <style scoped>
- .label-width{
- width: 120px;
- }
- </style>
|