p-honggang.li
5 天以前 22cc8ce22157a32bfcd4ee14d824769c6e318cec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<template>
    <div style="width: 100%;">
        <h2>产品详情</h2>
        <el-descriptions direction="horizontal"
         :column="2"   label-width="120px"   
         border size="default">
        <el-descriptions-item
          label="产品名称"
          label-align="right"
          align="left"
          width="35vw"
        >
          {{ state.basicInfo?.name }}
        </el-descriptions-item>
        <el-descriptions-item label="提供者" label-align="right" 
        align="left">
          {{ state.basicInfo?.submissionUnit }}
        </el-descriptions-item>
        <el-descriptions-item label="行业领域" label-align="right" align="left"    >
          {{ state.basicInfo?.industrialChainNameList?.join() }}
        </el-descriptions-item>
        <el-descriptions-item label="单位工程" label-align="right" align="left"  >
          {{ state.basicInfo?.importantAreaNameList?.join()}}
        </el-descriptions-item>
        <el-descriptions-item label="产品权属" label-align="right" align="left"   >
          {{ state.basicInfo?.ownershipName}}
        </el-descriptions-item>
        <el-descriptions-item label="产品状态" label-align="right" align="left"  >
          {{ state.basicInfo?.statusName}}
        </el-descriptions-item>
      </el-descriptions>
    </div>
  </template>
  
  <script setup lang="ts">
  import productApi from '@/api/zhongjian/productApi'
  const state = reactive<any>({
    basicInfo: {
      name: '', // 方案名称
      describe: '', // 方案描述
      scopeId: '', //
      industrialChainId: '', // 行业领域id
      industrialChainName: '', // 行业领域
      industrialChainIdList: [], // 行业领域idList
      industrialChainNameList: [], // 行业领域nameList
      importantAreaId: '', // 单位工程id
      importantAreaName: '', // 单位工程
      importantAreaIdList: [], // 单位工程idList
      importantAreaNameList: [], // 单位工程nameList
      businessProcessId: '', // 产业阶段id
      businessProcessName: '', // 产业阶段name
      sceneId: '', // 场景方向Id
      probationType: '', // 软件类型
      probationMedia: '', // 文件ID或试用地址URL
      probationTypeId: '', // 软件类型id
      typeName: '', // 产品父类类型name
      typeId: '', // 产品父类类型id
      typeChildName: '', // 产品类型子类name
      typeChildId: '', // 产品类型子类id
      lookName: '', // 查看方式name
      lookId: '', // 查看方式id
      homeImage: '', // 宣传图id
      quotationSystemId: '', //上传文件
    },
  })
 
  const getDetailInfo = (id:string) => {
    productApi
    .getProductDetail({
      id:id,
    })
    .then((res: any) => {
      if (res.code == 200) {
        state.basicInfo = res.data
      }
    })
  }
  defineExpose({
    getDetailInfo
  });
  </script>
  <style scoped lang="scss">
  .viewbox-cont {
    margin-bottom: 10px;
    margin-top: 10px;
    h2 {
      padding: 5px 15px;
      background-color: #dce6f4;
      color: #656d9a;
      font-size: 14px;
    }
  }
  </style>