p-honggang.li
5 天以前 751dfe21d19a22bb130a6a14857470868d7be53a
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<template>
    <div style="width: 100%;">
        <h2>虚拟工单详情</h2>
        <el-descriptions direction="horizontal" :column="2"   label-width="120px"   border size="small">
            <el-descriptions-item
          label="标题"
          label-align="right"
          align="left"
          width="38vw"
        >
          {{ state.formData?.title }}
        </el-descriptions-item>
        <el-descriptions-item
          label="产品名称"
          label-align="right"
          align="left"
          width="38vw"
        >
          {{ state.formData?.productionName }}
        </el-descriptions-item>
        <el-descriptions-item label="当前版本" label-align="right" align="left"  width="40vw"  >
          {{ state.formData?.versions }}
        </el-descriptions-item>
        <el-descriptions-item label="产品模块" label-align="right" align="left"  width="40vw"  >
          {{ state.formData?.productModule }}
        </el-descriptions-item>
        <el-descriptions-item label="需求/问题截图" label-align="right" align="left"  >
            <div v-for="item in  state.formData.imageList" :key="item.fileId">
                <el-image
                    style="
                        position: relative;
                        width: 100px;
                        height: 100px;
                        cursor: pointer;
                    "
                    :src="item.fileUrl"
                    :preview-teleported="true"
                    :preview-src-list="[item.fileUrl]"
                    >
                    </el-image>
            </div>
        </el-descriptions-item>
        <el-descriptions-item label="视频/其它附件" label-align="right" align="left"   >
          {{ state.formData?.ownershipName}}
        </el-descriptions-item>
        <el-descriptions-item label="问题详细描述" label-align="right" align="left"  >
          {{ state.formData?.statusName}}
        </el-descriptions-item>
      </el-descriptions>
    </div>
  </template>
  
  <script setup lang="ts">
  import productApi from '@/api/zhongjian/productApi'
  const state = reactive<any>({
    formData: {
      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.formData = 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>