Commit 6225b677 by zhangquan

第一轮bug修复

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