|
|
@@ -1,41 +1,97 @@
|
|
|
<!-- 挂牌大厅-求购大厅-详情 -->
|
|
|
<template>
|
|
|
<teleport :to="teleportTo">
|
|
|
- <app-view class="app-details" v-bind="$attrs">
|
|
|
- <template #header>
|
|
|
- <div>
|
|
|
- <el-button @click="$emit('closed')">返回</el-button>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- <el-descriptions title="求购信息" :column="2">
|
|
|
- <el-descriptions-item label="委托单号">{{ selectedRow.wrtradeorderid }}</el-descriptions-item>
|
|
|
- <el-descriptions-item label="买方">{{ selectedRow.buyusername }}</el-descriptions-item>
|
|
|
- <el-descriptions-item label="钻石分类">{{ selectedRow.zscategorydisplay }}</el-descriptions-item>
|
|
|
- <el-descriptions-item label="货币类型">{{ selectedRow.zscurrencytypedisplay }}</el-descriptions-item>
|
|
|
- <el-descriptions-item label="尺寸">{{ selectedRow.zssize }}</el-descriptions-item>
|
|
|
- <el-descriptions-item label="形状">{{ selectedRow.zsshapetypedisplay }}</el-descriptions-item>
|
|
|
- <el-descriptions-item label="净度">{{ selectedRow.zsclaritytypedisplay }}</el-descriptions-item>
|
|
|
- <el-descriptions-item label="对称度">{{ selectedRow.zssymmetrytypedisplay }}</el-descriptions-item>
|
|
|
- <el-descriptions-item label="颜色">{{ selectedRow.zscolortypedisplay }}</el-descriptions-item>
|
|
|
- <el-descriptions-item label="切工">{{ selectedRow.zscuttypedisplay }}</el-descriptions-item>
|
|
|
- <el-descriptions-item label="荧光">{{ selectedRow.zsfluorescencetypedisplay }}</el-descriptions-item>
|
|
|
- </el-descriptions>
|
|
|
- <div>
|
|
|
- <div>履约规则</div>
|
|
|
- <app-performance-rule :item="getPerformanceTemplateById(selectedRow.performancetemplateid)" />
|
|
|
- </div>
|
|
|
- <template v-for="(auth, index) in getAuthComponents()" :key="index">
|
|
|
- <component :is="componentMap.get(auth.code)" v-bind="{ selectedRow }" v-if="showComponent" />
|
|
|
- </template>
|
|
|
- </app-view>
|
|
|
+ <el-container class="trade-details">
|
|
|
+ <el-aside>
|
|
|
+ <el-card shadow="never">
|
|
|
+ <template #header>
|
|
|
+ <div class="card-header" @click="$emit('closed')">
|
|
|
+ <app-icon icon="ArrowLeftBold" />
|
|
|
+ <h4>求购信息</h4>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <ul>
|
|
|
+ <li>
|
|
|
+ <span>委托单号</span>
|
|
|
+ <span>{{ selectedRow.wrtradeorderid }}</span>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ <span>买方</span>
|
|
|
+ <span>{{ selectedRow.buyusername }}</span>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ <span>钻石分类</span>
|
|
|
+ <span>{{ selectedRow.zscategorydisplay }}</span>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ <span>货币类型</span>
|
|
|
+ <span>{{ selectedRow.zscurrencytypedisplay }}</span>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ <span>尺寸</span>
|
|
|
+ <span>{{ handleNoneValue(selectedRow.zssize) }}</span>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ <span>形状</span>
|
|
|
+ <span>{{ handleNoneValue(selectedRow.zsshapetypedisplay) }}</span>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ <span>净度</span>
|
|
|
+ <span>{{ handleNoneValue(selectedRow.zsclaritytypedisplay) }}</span>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ <span>对称度</span>
|
|
|
+ <span>{{ handleNoneValue(selectedRow.zssymmetrytypedisplay) }}</span>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ <span>颜色</span>
|
|
|
+ <span>{{ handleNoneValue(selectedRow.zscolortypedisplay) }}</span>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ <span>切工</span>
|
|
|
+ <span>{{ handleNoneValue(selectedRow.zscuttypedisplay) }}</span>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ <span>荧光</span>
|
|
|
+ <span>{{ handleNoneValue(selectedRow.zsfluorescencetypedisplay) }}</span>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ <span>履约规则</span>
|
|
|
+ <app-performance-rule
|
|
|
+ :item="getPerformanceTemplateById(selectedRow.performancetemplateid)" />
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ <span>备注</span>
|
|
|
+ <span>{{ handleNoneValue(selectedRow.remark) }}</span>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </el-card>
|
|
|
+ </el-aside>
|
|
|
+ <el-main>
|
|
|
+ <el-scrollbar>
|
|
|
+ <template v-for="(auth, index) in components" :key="index">
|
|
|
+ <component :is="componentMap.get(auth.code)" v-bind="{ selectedRow }" v-if="showComponent" />
|
|
|
+ </template>
|
|
|
+ </el-scrollbar>
|
|
|
+ </el-main>
|
|
|
+ </el-container>
|
|
|
</teleport>
|
|
|
</template>
|
|
|
|
|
|
+<script lang="ts">
|
|
|
+import { defineComponent } from 'vue'
|
|
|
+export default defineComponent({
|
|
|
+ inheritAttrs: false,
|
|
|
+})
|
|
|
+</script>
|
|
|
+
|
|
|
<script lang="ts" setup>
|
|
|
import { computed, PropType } from 'vue'
|
|
|
+import { handleNoneValue } from '@/filters'
|
|
|
import { useMenu } from '@/hooks/menu'
|
|
|
import { useLoginStore, usePerformanceStore } from '@/stores'
|
|
|
import AppPerformanceRule from '@pc/components/modules/performance-rule/index.vue'
|
|
|
+import AppIcon from '@pc/components/base/icon/index.vue'
|
|
|
|
|
|
const props = defineProps({
|
|
|
code: String,
|
|
|
@@ -52,9 +108,14 @@ const props = defineProps({
|
|
|
const { getUserId } = useLoginStore()
|
|
|
const { componentMap, getAuthComponents } = useMenu(props.code)
|
|
|
const { getPerformanceTemplateById } = usePerformanceStore()
|
|
|
+const components = getAuthComponents()
|
|
|
|
|
|
// 不能购买自己发布的求购
|
|
|
const showComponent = computed(() => {
|
|
|
return props.selectedRow.userid !== getUserId()
|
|
|
})
|
|
|
-</script>
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="less">
|
|
|
+@import './index.less';
|
|
|
+</style>
|