Commit 6225b677 by zhangquan

第一轮bug修复

1 parent e8fe61e7
...@@ -213,6 +213,7 @@ ...@@ -213,6 +213,7 @@
this.$apis.case.delCaseApi({id}).then(res => { this.$apis.case.delCaseApi({id}).then(res => {
if(res){ if(res){
this.$message.success('删除成功') this.$message.success('删除成功')
this.handleSearch()
} }
}) })
} }
......
...@@ -29,24 +29,6 @@ ...@@ -29,24 +29,6 @@
<span :class="['status', scope.scope.goodsStatus==1 ? 'success-status': 'error-status']"></span> <span :class="['status', scope.scope.goodsStatus==1 ? 'success-status': 'error-status']"></span>
<span>{{scope.scope.goodsStatus==1 ? '上架' : '下架' }}</span> <span>{{scope.scope.goodsStatus==1 ? '上架' : '下架' }}</span>
</div> </div>
<div slot="merchantPriceSlot" slot-scope="scope">
<template v-if="scope.scope.merchantList && scope.scope.merchantList.length > 1">
<span>{{ filterData(scope.scope).slice(0, 1).join('、') }}</span>
<el-popover
placement="top"
width="400"
trigger="hover">
<div v-for="(item,index) in filterData(scope.scope)" :key="index">
{{item}}
</div>
<span class="more-info" slot="reference">...[{{ scope.scope.merchantList.length }}]</span>
</el-popover>
</template>
<template v-else>
<span v-if="!scope.scope.merchantList || !scope.scope.merchantList.length">--</span>
<span v-else>{{ filterData(scope.scope).join('、') }}</span>
</template>
</div>
<template slot="activityLink" slot-scope="scope"> <template slot="activityLink" slot-scope="scope">
<span class="relink">{{ scope.scope.activityName }}</span> <span class="relink">{{ scope.scope.activityName }}</span>
</template> </template>
...@@ -148,12 +130,6 @@ export default { ...@@ -148,12 +130,6 @@ export default {
filter: '1,2,3,4,5' filter: '1,2,3,4,5'
}, },
{ {
label: '商户名称',
name: 'merchantName',
type: 'input',
filter: '5'
},
{
label: '商品分类', label: '商品分类',
name: 'goodsCategory', name: 'goodsCategory',
addHtml: 'categorySlot', addHtml: 'categorySlot',
...@@ -234,6 +210,7 @@ export default { ...@@ -234,6 +210,7 @@ export default {
}, },
{ {
label: '商品名称', label: '商品名称',
width: 200,
prop: 'goodsName', prop: 'goodsName',
filter: '5' filter: '5'
}, },
...@@ -244,6 +221,7 @@ export default { ...@@ -244,6 +221,7 @@ export default {
}, },
{ {
label: '收款方式', label: '收款方式',
width: 120,
formatter: cellValue => { formatter: cellValue => {
return cellValue.paymentType==1 ? '全款' : '定金+尾款' return cellValue.paymentType==1 ? '全款' : '定金+尾款'
}, },
...@@ -251,6 +229,7 @@ export default { ...@@ -251,6 +229,7 @@ export default {
}, },
{ {
label: '定金(元)', label: '定金(元)',
width: 120,
formatter: cellValue => { formatter: cellValue => {
return cellValue.depositPrice ? Number((Number(cellValue.depositPrice)/100).toFixed(2)) : '--' return cellValue.depositPrice ? Number((Number(cellValue.depositPrice)/100).toFixed(2)) : '--'
}, },
...@@ -258,12 +237,16 @@ export default { ...@@ -258,12 +237,16 @@ export default {
}, },
{ {
label: '门店活动价(元)', label: '门店活动价(元)',
width: 200, width: 150,
addHtml: 'merchantPriceSlot', formatter: cellValue => {
let item = cellValue.merchantList && cellValue.merchantList[0] ? cellValue.merchantList[0] : {}
return item.activityPrice ? Number((Number(item.activityPrice)/100).toFixed(2)) : 0
},
filter: '5' filter: '5'
}, },
{ {
label: '分类', label: '分类',
width: 150,
formatter: cellValue => { formatter: cellValue => {
return `${cellValue.associationClassifyFirstName||''}-${cellValue.associationClassifySecondName||''}` return `${cellValue.associationClassifyFirstName||''}-${cellValue.associationClassifySecondName||''}`
}, },
...@@ -301,6 +284,7 @@ export default { ...@@ -301,6 +284,7 @@ export default {
}, },
{ {
label: '操作人', label: '操作人',
width: 120,
prop: 'operator', prop: 'operator',
filter: '5' filter: '5'
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!