|
|
@@ -38,8 +38,8 @@
|
|
|
<ul class="list">
|
|
|
<template v-for="(item, index) in dataList" :key="index">
|
|
|
<li class="list-item">
|
|
|
- <div class="list-item__header">
|
|
|
- <img :src="getImageUrl(item.imagepath)" />
|
|
|
+ <div class="list-item__header" @click="openDetails(item)">
|
|
|
+ <app-image :width="200" :height="200" :src="getImageUrl(item.imagepath)" />
|
|
|
</div>
|
|
|
<div class="list-item__body" @click="openDetails(item)">
|
|
|
<div class="block block--price">
|
|
|
@@ -61,15 +61,22 @@
|
|
|
</ul>
|
|
|
</div>
|
|
|
<div class="search-jewelry__comparebar" v-if="checkedItems.length > 1">
|
|
|
- <ul>
|
|
|
- <li v-for="(item, index) in checkedItems" :key="index">
|
|
|
- <span>{{ index + 1 }}</span>
|
|
|
- <span>{{ item.goodsno }}</span>
|
|
|
- <span>{{ item.zsstyletypedisplay }}</span>
|
|
|
+ <ul class="list">
|
|
|
+ <li class="list-item" v-for="(item, index) in checkedItems" :key="index">
|
|
|
+ <div class="list-item__index">
|
|
|
+ <span>{{ index + 1 }}</span>
|
|
|
+ </div>
|
|
|
+ <div class="list-item__image">
|
|
|
+ <app-image :width="48" :height="48" :src="getImageUrl(item.imagepath)" />
|
|
|
+ </div>
|
|
|
+ <div class="list-item__info">
|
|
|
+ <span>{{ item.zsstyletypedisplay }}</span>
|
|
|
+ <span>{{ item.goodsno }}</span>
|
|
|
+ </div>
|
|
|
</li>
|
|
|
- <li>
|
|
|
- <el-button @click="openComponent('compare')">对比</el-button>
|
|
|
- <el-button link>清空</el-button>
|
|
|
+ <li class="list-btnbar">
|
|
|
+ <el-button type="danger" @click="openComponent('compare')">对比</el-button>
|
|
|
+ <span class="btn-clear" @click="clearCompare">清空</span>
|
|
|
</li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
@@ -87,6 +94,7 @@ import { useSearch } from '@/business/search'
|
|
|
import { Category } from '@/constants/diamond'
|
|
|
import { useComponent } from '@/hooks/component'
|
|
|
import AppMultiple from '@pc/components/base/multiple/index.vue'
|
|
|
+import AppImage from '@pc/components/base/image/index.vue'
|
|
|
|
|
|
const componentMap = new Map<string, unknown>([
|
|
|
['details', defineAsyncComponent(() => import('@pc/views/warehousing/goods/components/details/index.vue'))], // 详情
|
|
|
@@ -105,6 +113,10 @@ const openDetails = (item: Ermcp.SellOrderSearchRsp) => {
|
|
|
openComponent('details')
|
|
|
}
|
|
|
|
|
|
+const clearCompare = () => {
|
|
|
+ dataList.value.forEach((e) => e.checked = false)
|
|
|
+}
|
|
|
+
|
|
|
getSellOrderList().catch((err) => ElMessage.error(err))
|
|
|
</script>
|
|
|
|