Commit 85fedc07 by 李伟康

提交

1 parent e2e62ce9
...@@ -23,18 +23,23 @@ ...@@ -23,18 +23,23 @@
<template v-if="scope.scope.oilList && scope.scope.oilList.length"> <template v-if="scope.scope.oilList && scope.scope.oilList.length">
<div class="flex"> <div class="flex">
<div class="list"> <span>{{ filterData(scope.scope.oilList,'oilList').slice(0, 1).join('、') }}</span>
<template v-for="(i,index) in scope.scope.oilList"> <el-popover
<template> placement="top"
<div width="fit-content"
:key="index" trigger="hover"
class="item flex" >
> <div
{{i.aliasName}}*{{i.amount}} ({{NP.times(i.amount, i.faceValue)}}积分) v-for="(item,index) in filterData(scope.scope.oilList,'oilList')"
</div> :key="index"
</template> >
</template> {{item}}
</div> </div>
<span
class="more-info"
slot="reference"
>...({{ scope.scope.oilList.length }})</span>
</el-popover>
</div> </div>
</template> </template>
<template v-else> <template v-else>
...@@ -47,18 +52,23 @@ ...@@ -47,18 +52,23 @@
> >
<template v-if="scope.scope.couponList && scope.scope.couponList.length"> <template v-if="scope.scope.couponList && scope.scope.couponList.length">
<div class="flex"> <div class="flex">
<div class="list"> <span>{{ filterData(scope.scope.couponList,'couponList').slice(0, 1).join('、') }}</span>
<template v-for="(i,index) in scope.scope.couponList"> <el-popover
<template> placement="top"
<div width="fit-content"
:key="index" trigger="hover"
class="item flex" >
> <div
{{i.couponName}}*{{i.amount}} v-for="(item,index) in filterData(scope.scope.couponList,'couponList')"
</div> :key="index"
</template> >
</template> {{item}}
</div> </div>
<span
class="more-info"
slot="reference"
>...({{ scope.scope.couponList.length }})</span>
</el-popover>
</div> </div>
</template> </template>
<template v-else> <template v-else>
...@@ -94,7 +104,7 @@ export default { ...@@ -94,7 +104,7 @@ export default {
{ {
label: '保单号', label: '保单号',
prop: 'policyNo', prop: 'policyNo',
minWidth: 100 minWidth: 200
}, },
{ {
label: '用户姓名', label: '用户姓名',
...@@ -103,7 +113,7 @@ export default { ...@@ -103,7 +113,7 @@ export default {
}, },
{ {
label: '身份证号', label: '身份证号',
minWidth: 100, minWidth: 200,
prop: 'idCardNo', prop: 'idCardNo',
}, },
{ {
...@@ -150,17 +160,27 @@ export default { ...@@ -150,17 +160,27 @@ export default {
methods: { methods: {
beforeSearchFn () { beforeSearchFn () {
return new Promise(resolve => { return new Promise(resolve => {
this.searchForm.batchNo = this.detailObj.batchNo this.searchForm.recordId = this.detailObj.recordId
this.loading = false this.loading = false
resolve() resolve()
}) })
}, },
handleClose () { handleClose () {
this.$emit('update:detailObj', {}) this.$emit('update:detailObj', {})
} },
filterData (list, name) {
return list?.map(i => {
return name == 'oilList' ? `${i.aliasName}*${i.amount} (${NP.times(i.amount, i.faceValue)}积分)` : `${i.couponName}*${i.amount}`
}) || []
},
} }
} }
</script> </script>
<style scoped lang='scss'> <style scoped lang='scss'>
.more-info {
white-space: nowrap;
color: #5850ff;
cursor: pointer;
}
</style> </style>
\ No newline at end of file \ No newline at end of file
...@@ -13,8 +13,12 @@ ...@@ -13,8 +13,12 @@
type="default" type="default"
plain plain
@click="jump" @click="jump"
size="small"
>客户积分充值</el-button> >客户积分充值</el-button>
<el-button @click="handleExport">导出 <el-button
@click="handleExport"
size="small"
>导出
</el-button> </el-button>
</div> </div>
<div class="tabelList"> <div class="tabelList">
...@@ -24,6 +28,7 @@ ...@@ -24,6 +28,7 @@
:searchForm="tableSearchForm" :searchForm="tableSearchForm"
:tableParams="tableParams" :tableParams="tableParams"
:pageConf="pageConf" :pageConf="pageConf"
:beforeSearchFn="beforeSearchFn"
> >
<template <template
slot="customerNumber" slot="customerNumber"
...@@ -31,7 +36,7 @@ ...@@ -31,7 +36,7 @@
> >
<div <div
class="link" class="link"
@click="openDetail(scope.scope.batchNo)" @click="openDetail(scope.scope.id)"
>{{scope.scope.customerNumber}}</div> >{{scope.scope.customerNumber}}</div>
</template> </template>
<template <template
...@@ -85,7 +90,8 @@ export default { ...@@ -85,7 +90,8 @@ export default {
policyNo: '', policyNo: '',
customerName: '', customerName: '',
customerPhone: '', customerPhone: '',
auditDate: [] auditDate: [],
merchantId: this.$globalState.session.merchantId
}, },
searchFormData: [ searchFormData: [
{ {
...@@ -197,8 +203,14 @@ export default { ...@@ -197,8 +203,14 @@ export default {
mounted () { mounted () {
}, },
methods: { methods: {
beforeSearchFn () {
return new Promise(resolve => {
this.tableSearchForm = this.getParams()
resolve()
})
},
handleSearch () { handleSearch () {
this.tableSearchForm = this.getParams() // this.tableSearchForm = this.getParams()
this.$refs.listRef.refreshTable() this.$refs.listRef.refreshTable()
}, },
handleReset () { handleReset () {
...@@ -231,10 +243,10 @@ export default { ...@@ -231,10 +243,10 @@ export default {
} }
}) })
}, },
openDetail (batchNo) { openDetail (recordId) {
this.detailObj = { this.detailObj = {
show: true, show: true,
batchNo recordId
} }
}, },
editForm (row, type = '') { editForm (row, type = '') {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!