Compare commits

..

No commits in common. "356b80b07565fdf5ceb7b70403580668394fff79" and "92600a0f6412385251f10e6da1171e000a714304" have entirely different histories.

3 changed files with 21 additions and 30 deletions

View File

@ -11,28 +11,23 @@
</template>
<div class="flex flex-col space-y-8">
<div class="flex space-x-4 ">
<div class="w-full">货号{{provider.pid || '-'}}</div>
<div class="w-50">货号{{provider.pid || '-'}}</div>
<!-- <div class="w-50">SpuID: {{provider.spuID || '-'}} </div>-->
<div class="w-full">SkuID:
<a-button type="link" :href="provider.link" target="_blank" v-if="provider.skuID">{{provider.skuID}}</a-button>
<span v-else>-</span>
</div>
<div class="w-full">可以购买{{provider.available ? '是':'否'}}</div>
<div class="w-50">SkuID: {{provider.skuID || '-'}}</div>
<div>可以购买{{provider.available ? '是':'否'}}</div>
</div>
<div class="flex space-x-4 items-center">
<div class="w-full">当前售价$ {{provider.cost.originalPrice || '-'}}</div>
<div class="w-50">当前售价$ {{provider.cost.originalPrice || '-'}}</div>
<a-popover v-if="provider.cost.calMark" trigger="hover">
<template #content>
<span class="whitespace-pre">
{{provider.cost.calMark}}
</span>
</template>
<div class="w-full">当前到手价 {{provider.cost.finalPrice || '-'}}</div>
<div class="w-50">当前到手价 {{provider.cost.finalPrice || '-'}}</div>
</a-popover>
<div class="w-full" v-else>当前到手价 {{provider.cost.finalPrice || '-'}}</div>
<div class="w-full">
<a-button type="primary" @click="fetchArticle(provider)" :loading="fetchLoading">立即拉取</a-button>
</div>
<div class="w-50" v-else>当前到手价 {{provider.cost.finalPrice || '-'}}</div>
<a-button type="primary" @click="fetchArticle(provider)" :loading="fetchLoading">立即拉取</a-button>
</div>
<v-chart class="h-400px w-full" :option="options" />
</div>

View File

@ -11,9 +11,9 @@
</template>
<div class="flex flex-col space-y-4">
<div class="flex space-x-4 justify-between">
<div class="w-full">货号{{seller.pid || '-'}}</div>
<div class="w-full">SpuID: {{seller.spuID || '-'}} </div>
<div class="w-full flex items-center space-x-4">
<div class="w-50">货号{{seller.pid || '-'}}</div>
<div class="w-50">SpuID: {{seller.spuID || '-'}} </div>
<div class="w-100 flex items-center space-x-4">
<div>SkuID: {{seller.skuID || '-'}} </div>
<div class="text-red-4 flex items-center space-x-4" v-if="!seller.skuID">
<div>(未匹配到销售商sku)</div>
@ -22,19 +22,17 @@
</div>
</div>
<div class="flex space-x-4 justify-between">
<div class="w-full">当前售价 {{seller.sell.originalPrice || '-'}}</div>
<div class="w-50">当前售价 {{seller.sell.originalPrice || '-'}}</div>
<a-popover v-if="seller.sell.calMark" trigger="hover">
<template #content>
<span class="whitespace-pre">
{{seller.sell.calMark}}
</span>
</template>
<div class="w-full">当前到手价 {{seller.sell.finalPrice || '-'}}</div>
<div class="w-50">当前到手价 {{seller.sell.finalPrice || '-'}}</div>
</a-popover>
<div class="w-full" v-else>当前到手价 {{seller.sell.finalPrice || '-'}}</div>
<div class="w-full">
<a-button v-if="seller.skuID" type="primary" @click="fetchArticle(seller)" :loading="fetchLoading">立即拉取</a-button>
</div>
<div class="w-50" v-else>当前到手价 {{seller.sell.finalPrice || '-'}}</div>
<a-button v-if="seller.skuID" type="primary" @click="fetchArticle(seller)" :loading="fetchLoading">立即拉取</a-button>
</div>
<v-chart class="h-400px w-full" :option="options" />
</div>

View File

@ -15,16 +15,10 @@
<a-image :width="75" :src="record.image"/>
</template>
<template v-else-if="column.key === 'name'">
<router-link target="_blank" :to="{ path: '/article/detail', query: {id: record.id} }">
{{record.name}}
</router-link>
<!-- <span class="cursor-pointer text-blue" title="查看详情" @click="toDetail(record.id)">{{record.name}}</span>-->
<span class="cursor-pointer text-blue" title="查看详情" @click="toDetail(record.id)">{{record.name}}</span>
</template>
<template v-else-if="column.key === 'pid'">
<!-- <span class="cursor-pointer text-blue" title="查看详情" @click="toDetail(record.id)">{{record.pid}}</span>-->
<router-link target="_blank" :to="{ path: '/article/detail', query: {id: record.id} }">
{{record.pid}}
</router-link>
<span class="cursor-pointer text-blue" title="查看详情" @click="toDetail(record.id)">{{record.pid}}</span>
</template>
<template v-else-if="column.key === 'rate'">
<span>{{record.rate > 0 ? `${record.rate}%`:'--' }}</span>
@ -63,6 +57,10 @@ const query = reactive({
rate_sort:null,
})
watch(()=>query.available, ()=>{
console.log(query)
})
onMounted(()=>{
list()
})
@ -188,7 +186,7 @@ const toDetail=(id)=>{
path: '/article/detail',
query: {
id: id
},
}
})
}