|
@ -23,6 +23,21 @@ |
|
|
</a-tab-pane> |
|
|
</a-tab-pane> |
|
|
</a-tabs> |
|
|
</a-tabs> |
|
|
|
|
|
|
|
|
|
|
|
<a-row :gutter="10" style="margin-bottom:10px"> |
|
|
|
|
|
|
|
|
|
|
|
<a-col :span="5"> |
|
|
|
|
|
<a-input |
|
|
|
|
|
v-model="catKeyWord" |
|
|
|
|
|
placeholder="搜索品类词" |
|
|
|
|
|
> |
|
|
|
|
|
</a-input> |
|
|
|
|
|
</a-col> |
|
|
|
|
|
|
|
|
|
|
|
<a-col :span="5"> |
|
|
|
|
|
<a-button @click="searchDatas">搜索</a-button> |
|
|
|
|
|
</a-col> |
|
|
|
|
|
</a-row> |
|
|
|
|
|
|
|
|
<div class="border"> |
|
|
<div class="border"> |
|
|
<a-row> |
|
|
<a-row> |
|
|
<a-col :span="4"> |
|
|
<a-col :span="4"> |
|
@ -278,8 +293,12 @@ |
|
|
" |
|
|
" |
|
|
> |
|
|
> |
|
|
<a target="_black" :href="item.RivalGoodsId"> |
|
|
<a target="_black" :href="item.RivalGoodsId"> |
|
|
<img src="/jp.png" width="200" height="165" |
|
|
|
|
|
/></a> |
|
|
<img v-if="item.RivalImg" :src="item.RivalImg" width="200" height="165"/> |
|
|
|
|
|
<img v-else src="/jp.png" width="200" height="165"/> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</a> |
|
|
<a-row> |
|
|
<a-row> |
|
|
<a-col :span="12" style="text-align: left" |
|
|
<a-col :span="12" style="text-align: left" |
|
|
>¥{{ item.RivalPrice }}</a-col |
|
|
>¥{{ item.RivalPrice }}</a-col |
|
@ -380,9 +399,11 @@ |
|
|
</a-row> |
|
|
</a-row> |
|
|
</a-col> |
|
|
</a-col> |
|
|
<a-col :span="4"> |
|
|
<a-col :span="4"> |
|
|
<a class="borderNoTop itemtitle" :title="item.RivalTitle">{{ |
|
|
<a v-if="item.RivalTitle&&!item.isEdit" class="borderNoTop itemtitle" :title="item.RivalTitle">{{ |
|
|
item.RivalTitle |
|
|
item.RivalTitle |
|
|
}}</a> |
|
|
}}</a> |
|
|
|
|
|
|
|
|
|
|
|
<a-button v-else-if="item.isEdit" @click="openItemInfoWeb(item)">自动获取对标信息</a-button> |
|
|
</a-col> |
|
|
</a-col> |
|
|
</a-row> |
|
|
</a-row> |
|
|
</a-col> |
|
|
</a-col> |
|
@ -420,12 +441,14 @@ export default { |
|
|
selectedRowKeys: [], |
|
|
selectedRowKeys: [], |
|
|
currentTab: "0", |
|
|
currentTab: "0", |
|
|
lastEditData: undefined, |
|
|
lastEditData: undefined, |
|
|
|
|
|
catKeyWord:undefined, |
|
|
extFormList: ["以图搜款"], |
|
|
extFormList: ["以图搜款"], |
|
|
stateList: [], |
|
|
stateList: [], |
|
|
platformList: [ |
|
|
platformList: [ |
|
|
{ id: 0, name: "淘宝" }, |
|
|
{ id: 0, name: "淘宝" }, |
|
|
{ id: 1, name: "京东" }, |
|
|
{ id: 1, name: "京东" }, |
|
|
{ id: 2, name: "1688" }, |
|
|
{ id: 2, name: "1688" }, |
|
|
|
|
|
{ id: 3, name: "拼多多" }, |
|
|
], |
|
|
], |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
@ -478,14 +501,49 @@ export default { |
|
|
this.currentTab = e; |
|
|
this.currentTab = e; |
|
|
this.pagination.current = 1; |
|
|
this.pagination.current = 1; |
|
|
}, |
|
|
}, |
|
|
|
|
|
searchDatas(){ |
|
|
|
|
|
this.pagination.current = 1; |
|
|
|
|
|
this.getDatas(this.currentTab); |
|
|
|
|
|
}, |
|
|
changePage(page, pageSize) { |
|
|
changePage(page, pageSize) { |
|
|
this.pagination.current = page; |
|
|
this.pagination.current = page; |
|
|
this.getDatas(this.currentTab); |
|
|
this.getDatas(this.currentTab); |
|
|
}, |
|
|
}, |
|
|
|
|
|
openItemInfoWeb(item){ |
|
|
|
|
|
if(item==undefined||item.RivalGoodsId==undefined||item.RivalGoodsId==null) |
|
|
|
|
|
{ |
|
|
|
|
|
this.$message.error("请先输入竞品链接!"); |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
hyCoreModel.getItemInfoByUrl(item.RivalGoodsId).then(res=>{ |
|
|
|
|
|
var result= JSON.parse(res) |
|
|
|
|
|
if(result.success) |
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
var data=result.data |
|
|
|
|
|
item.RivalTitle=data.title |
|
|
|
|
|
item.RivalPrice=data.price |
|
|
|
|
|
item.RivalPLCount=data.commont |
|
|
|
|
|
item.RivalImg=data.img |
|
|
|
|
|
console.log(item,'获取的商品信息') |
|
|
|
|
|
this.$message.success("获取成功"); |
|
|
|
|
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
this.$message.error(result.msg); |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
getDatas(type) { |
|
|
getDatas(type) { |
|
|
var that = this; |
|
|
var that = this; |
|
|
|
|
|
|
|
|
|
|
|
var url='/HuiYan/pricetasklog/GetItems' |
|
|
|
|
|
if(this.catKeyWord&&this.catKeyWord.length>0) |
|
|
|
|
|
{ |
|
|
|
|
|
url="/HuiYan/pricetasklog/GetItems?keyword="+this.catKeyWord |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
this.http |
|
|
this.http |
|
|
.post("/HuiYan/pricetasklog/GetItems", { |
|
|
.post(url, { |
|
|
PageIndex: this.pagination.current, |
|
|
PageIndex: this.pagination.current, |
|
|
PageRows: this.pagination.pageSize, |
|
|
PageRows: this.pagination.pageSize, |
|
|
SortField: this.sorter.field || "Id", |
|
|
SortField: this.sorter.field || "Id", |
|
|