Commit 85fedc07 by 李伟康

提交

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