|
@@ -1,58 +1,38 @@
|
|
|
<template>
|
|
<template>
|
|
|
<scTable ref="table" :apiObj="list.apiObj" :params="searchKey" @selectionChange="selectionChange" row-key="id">
|
|
<scTable ref="table" :apiObj="list.apiObj" :params="searchKey" @selectionChange="selectionChange" row-key="id">
|
|
|
<el-table-column type="selection" width="50" fixed="left"></el-table-column>
|
|
<el-table-column type="selection" width="50" fixed="left"></el-table-column>
|
|
|
- <el-table-column label="计划名称" width="300" prop="id" fixed="left">
|
|
|
|
|
|
|
+ <el-table-column label="产品编码" width="120" prop="id" fixed="left">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
- <div class="price">{{ scope.row.plan_name }}</div>
|
|
|
|
|
- <span class="dec">计划ID:{{ scope.row.plan_id }}</span>
|
|
|
|
|
|
|
+ {{ scope.row.code?scope.row.code:'-' }}
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column label="所属商家" prop="id" width="260">
|
|
|
|
|
|
|
+ <el-table-column label="投放地区" width="120" prop="category_id">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
- <div class="goods-img">
|
|
|
|
|
- <div class="name" v-if="scope.row.poi">
|
|
|
|
|
- <span>{{ scope.row.poi.poi_name }}</span>
|
|
|
|
|
- <span class="dec">{{ scope.row.poi.poi_address }}</span>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div v-else>-</div>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ {{ scope.row.province?scope.row.province:'-' }}
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column label="抖音核销金额(元)" prop="id">
|
|
|
|
|
- <template #header>
|
|
|
|
|
- <el-tooltip effect="dark" placement="top-start" content="成交金额带来的核销金额">
|
|
|
|
|
- <div class="flex">抖音核销金额(元) <el-icon><el-icon-question-filled /></el-icon></div>
|
|
|
|
|
- </el-tooltip>
|
|
|
|
|
- </template>
|
|
|
|
|
|
|
+ <el-table-column label="产品名称" prop="id">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
- {{ scope.row.done_money?$TOOL.money(scope.row.done_money):'-' }}
|
|
|
|
|
|
|
+ {{ scope.row.name }}
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column label="成交金额(元)" prop="category_id">
|
|
|
|
|
- <template #header>
|
|
|
|
|
- <el-tooltip effect="dark" placement="top-start">
|
|
|
|
|
- <template #content>除通过达人视频、直播直接下单的成交金额外,还包含消费者<br>看过达人视频后,通过抖音其他渠道下单的成交金额,例如搜索等。</template>
|
|
|
|
|
- <div class="flex">成交金额(元) <el-icon><el-icon-question-filled /></el-icon></div>
|
|
|
|
|
- </el-tooltip>
|
|
|
|
|
- </template>
|
|
|
|
|
|
|
+ <el-table-column label="其他说明" prop="category_id">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
- {{ scope.row.order_money?$TOOL.money(scope.row.order_money):'-' }}
|
|
|
|
|
|
|
+ {{ scope.row.remark?scope.row.remark:'-' }}
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column label="状态" prop="enable" width="120" align="center">
|
|
<el-table-column label="状态" prop="enable" width="120" align="center">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
- <div class="status-success" v-if="scope.row.status==1"><sc-status-indicator type="success"></sc-status-indicator> 进行中</div>
|
|
|
|
|
- <div class="status-danger" v-if="scope.row.status==2"><sc-status-indicator type="danger"></sc-status-indicator> 已下架</div>
|
|
|
|
|
|
|
+ <div class="status-success" v-if="scope.row.status==1"><sc-status-indicator type="success"></sc-status-indicator> 正常</div>
|
|
|
|
|
+ <div class="status-danger" v-if="scope.row.status==0"><sc-status-indicator type="danger"></sc-status-indicator> 已下架</div>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column label="创建时间" prop="create_at" width="180"></el-table-column>
|
|
<el-table-column label="创建时间" prop="create_at" width="180"></el-table-column>
|
|
|
<el-table-column label="操作" width="200" align="left" fixed="right">
|
|
<el-table-column label="操作" width="200" align="left" fixed="right">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
<el-button-group>
|
|
<el-button-group>
|
|
|
- <el-button size="small" text @click="table_rate(scope.row)" v-if="scope.row.status == 1">修改佣金</el-button>
|
|
|
|
|
- <el-button type="success" size="small" text @click="table_star(scope.row)" v-if="scope.row.status == 1">达人</el-button>
|
|
|
|
|
- <el-button type="danger" text size="small" @click="table_close(scope.row)" v-if="scope.row.status == 1">关闭</el-button>
|
|
|
|
|
- <el-button type="danger" text size="small" @click="table_del(scope.row)" v-if="scope.row.status == 2">删除</el-button>
|
|
|
|
|
|
|
+ <el-button type="danger" text size="small" @click="table_close(scope.row)" v-if="scope.row.status == 1">下架</el-button>
|
|
|
|
|
+ <el-button type="success" text size="small" @click="table_close(scope.row)" v-if="scope.row.status == 0">上架</el-button>
|
|
|
</el-button-group>
|
|
</el-button-group>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -109,7 +89,7 @@ export default {
|
|
|
}).catch(()=>{})
|
|
}).catch(()=>{})
|
|
|
},
|
|
},
|
|
|
table_del(data){
|
|
table_del(data){
|
|
|
- this.$confirm(`删除后,所有该计划对应的数据将一并被删除`, '提示', {
|
|
|
|
|
|
|
+ this.$confirm(`删除后,所有该产品对应的数据将一并被删除`, '提示', {
|
|
|
type: 'warning'
|
|
type: 'warning'
|
|
|
}).then(async ()=>{
|
|
}).then(async ()=>{
|
|
|
var loading = this.$loading()
|
|
var loading = this.$loading()
|
|
@@ -123,17 +103,24 @@ export default {
|
|
|
}).catch(()=>{})
|
|
}).catch(()=>{})
|
|
|
},
|
|
},
|
|
|
table_close(data){
|
|
table_close(data){
|
|
|
- this.$confirm(`关闭该定向计划后,达人无法勾选对应商品进行直播`, '提示', {
|
|
|
|
|
|
|
+ var status = 1;
|
|
|
|
|
+ var str = "下架商品后,关联的落地页以及账户回调都将失效";
|
|
|
|
|
+ if (data.status == 0) {
|
|
|
|
|
+ status = 2;
|
|
|
|
|
+ str = "恢复商品上架,可继续投放";
|
|
|
|
|
+ }
|
|
|
|
|
+ console.log("data.status",status,data.status);
|
|
|
|
|
+ this.$confirm(str, '提示', {
|
|
|
type: 'warning'
|
|
type: 'warning'
|
|
|
}).then(async ()=>{
|
|
}).then(async ()=>{
|
|
|
var loading = this.$loading()
|
|
var loading = this.$loading()
|
|
|
- var resp = await this.$API.merPlan.close.post({"id":data.id});
|
|
|
|
|
|
|
+ var resp = await this.$API.product.status.post({"id":data.id,"status":status});
|
|
|
loading.close();
|
|
loading.close();
|
|
|
if (resp.code == 0) {
|
|
if (resp.code == 0) {
|
|
|
return this.$message.error(resp.msg);
|
|
return this.$message.error(resp.msg);
|
|
|
}
|
|
}
|
|
|
this.$message.success(resp.msg);
|
|
this.$message.success(resp.msg);
|
|
|
- this.$emit("success");
|
|
|
|
|
|
|
+ this.$refs.table.refresh()
|
|
|
}).catch(()=>{})
|
|
}).catch(()=>{})
|
|
|
},
|
|
},
|
|
|
refresh(){
|
|
refresh(){
|