Commit 56c1cfe2 by zhangquan

Merge branch 'v3.22.2' of http://192.168.3.233:8090/saas/scrm-micro-points into v3.22.2

2 parents 97f8f6d5 38dcdc83
......@@ -76,121 +76,141 @@
>下载模板</a>
</div>
<template v-if="importObject.detailList">
<div class="file-info flex">
<template v-if="importObject.name">
<template v-if="importObject.name">
<div class="file-info flex">
<div class="el-icon-success"></div>
文件格式正确({{ importObject.name }})
</template>
</div>
</div>
</template>
<div class="table-box">
<GLTable
:tableData="importObject.detailList"
:tableParams="tableParams"
:hasPage="false"
>
<template
slot="cashBackValue"
slot-scope="scope"
<div class="table">
<GLTable
:tableData="importObject.detailList[pageNum - 1]"
:tableParams="tableParams"
ref="listRef"
:pageConf="pageConf"
:tableTotal="totalForm.customerTotal"
:pageSizes="[50]"
@refreshTable="refreshTable"
>
<template v-if="!pageObject.disabled">
<el-input
v-model.number.trim="scope.scope.cashBackValue"
@blur="updateTotal(scope.scope, scope.index, 'cashBackValue')"
maxLength="6"
></el-input>
</template>
<template v-else>
{{scope.scope.buyValue || '-'}}
</template>
</template>
<template
slot="buyValue"
slot-scope="scope"
>
<template v-if="!pageObject.disabled">
<el-input
v-model.number.trim="scope.scope.buyValue"
@blur="updateTotal(scope.scope, scope.index,'buyValue')"
maxLength="6"
></el-input>
<template
slot="cashBackValue"
slot-scope="scope"
>
<template v-if="!pageObject.disabled">
<el-input
v-model.number.trim="scope.scope.cashBackValue"
@blur="updateTotal(scope.scope, scope.index, 'cashBackValue')"
maxLength="6"
></el-input>
</template>
<template v-else>
{{scope.scope.cashBackValue || '-'}}
</template>
</template>
<template v-else>
{{scope.scope.buyValue || '-'}}
<template
slot="buyValue"
slot-scope="scope"
>
<template v-if="!pageObject.disabled">
<el-input
v-model.number.trim="scope.scope.buyValue"
@blur="updateTotal(scope.scope, scope.index,'buyValue')"
maxLength="6"
></el-input>
</template>
<template v-else>
{{scope.scope.buyValue || '-'}}
</template>
</template>
</template>
<template
slot="oilList"
slot-scope="scope"
>
<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
slot="oilList"
slot-scope="scope"
>
<template v-if="scope.scope.oilList && scope.scope.oilList.length">
<div class="flex">
<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>
<template v-if="!pageObject.disabled">
<el-button
type="text"
@click="showConfig(scope.scope, scope.index)"
>编辑</el-button>
</template>
</div>
</template>
<template v-else>
<template v-if="!pageObject.disabled">
<el-button
type="text"
@click="showConfig(scope.scope, scope.index)"
>编辑</el-button>
>配置</el-button>
</template>
<template v-else>
无
</template>
</div>
</template>
<template v-else>
<template v-if="!pageObject.disabled">
<el-button
type="text"
@click="showConfig(scope.scope, scope.index)"
>配置</el-button>
</template>
<template v-else>
无
</template>
</template>
</template>
<template
slot="couponList"
slot-scope="scope"
>
<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
slot="couponList"
slot-scope="scope"
>
<template v-if="scope.scope.couponList && scope.scope.couponList.length">
<div class="flex">
<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>
<template v-if="!pageObject.disabled">
<el-button
type="text"
@click="showConfig(scope.scope, scope.index, 1)"
>编辑</el-button>
</template>
</div>
</template>
<template v-else>
<template v-if="!pageObject.disabled">
<el-button
type="text"
@click="showConfig(scope.scope, scope.index, 1)"
>编辑</el-button>
>配置</el-button>
</template>
<template v-else>
无
</template>
</div>
</template>
<template v-else>
<template v-if="!pageObject.disabled">
<el-button
type="text"
@click="showConfig(scope.scope, scope.index, 1)"
>配置</el-button>
</template>
<template v-else>
无
</template>
</template>
</template>
</GLTable>
</GLTable>
</div>
<div
class="total"
:key="totalKey"
......@@ -257,9 +277,12 @@ import NP from 'number-precision'
import selectStore from './components/selectStore'
import pointsConfig from './components/pointsConfig.vue'
import importErrDialog from './components/importErrDialog.vue'
let chargeObject = {
gasCardServiceCharge: 0,
passageServiceCharge: 0
const truncateDecimal = (number, decimalPlaces = 2) => {
let [integer, decimals] = String(number).split('.')
if (!decimals) decimals = '00'
if (decimals.length > 2) decimals = decimals.substring(0, decimalPlaces)
if (decimals.length == 1) decimals += '0'
return `${integer}.${decimals}`
}
export default {
components: {
......@@ -272,6 +295,7 @@ export default {
return {
NP,
loading: false,
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
relateStoreVisible: false,
rule: {
merchantId: [{ required: true, message: '请选择商户', trigger: 'change' }],
......@@ -279,8 +303,10 @@ export default {
required: true, trigger: 'change', validator: (rule, value, callback) => {
const { detailList } = this.importObject
if (detailList && detailList.length) {
detailList.map(e => {
if (!e.cashBackValue && !e.buyValue) callback(new Error('返现金额和商品兑换积分二者至少需填写一个正整数的数值'))
detailList.map(i => {
i.map(e => {
if (e.cashBackValue < 1 && e.buyValue < 1) callback(new Error('返现金额和商品兑换积分二者至少需填写一个正整数的数值'))
})
})
callback()
} else callback(new Error('请导入充值人群'))
......@@ -324,9 +350,9 @@ export default {
name: 'passageServiceCharge',
formatter: (cell) => {
const { passageService } = cell,
{ passageServiceCharge } = chargeObject,
{ passageServiceCharge } = this.chargeObject,
passageSum = passageService.reduce((acc, cur) => acc + cur, 0),
sum = NP.times(passageSum, passageServiceCharge).toFixed(2)
sum = truncateDecimal(NP.times(passageSum, passageServiceCharge, 0.01))
return `${passageSum}*${passageServiceCharge}%=${sum}`
}
},
......@@ -335,9 +361,9 @@ export default {
name: 'gasCardServiceCharge',
formatter: (cell) => {
const { gasService } = cell,
{ gasCardServiceCharge } = chargeObject,
{ gasCardServiceCharge } = this.chargeObject,
gasCardSum = gasService.reduce((acc, cur) => acc + cur, 0),
sum = NP.times(gasCardSum, gasCardServiceCharge).toFixed(2)
sum = truncateDecimal(NP.times(gasCardSum, gasCardServiceCharge, 0.01))
return `${gasCardSum}*${gasCardServiceCharge}%=${sum}`
}
},
......@@ -346,12 +372,11 @@ export default {
name: 'sum',
formatter: (cell) => {
const { total, gasService, passageService } = cell,
{ gasCardServiceCharge, passageServiceCharge } = chargeObject,
gasPrice = NP.times(gasService.reduce((acc, cur) => acc + cur, 0), gasCardServiceCharge),
passagePrice = NP.times(passageService.reduce((acc, cur) => acc + cur, 0), passageServiceCharge),
{ gasCardServiceCharge, passageServiceCharge } = this.chargeObject,
gasPrice = NP.times(gasService.reduce((acc, cur) => acc + cur, 0), gasCardServiceCharge, 0.01),
passagePrice = NP.times(passageService.reduce((acc, cur) => acc + cur, 0), passageServiceCharge, 0.01),
totalPrice = total.reduce((acc, cur) => acc + cur, 0)
return NP.plus(gasPrice, passagePrice, totalPrice).toFixed(2)
return truncateDecimal(NP.plus(gasPrice, passagePrice, totalPrice))
}
},
],
......@@ -360,7 +385,7 @@ export default {
{
label: '保单号',
prop: 'policyNo',
minWidth: 100
minWidth: 200
},
{
label: '用户姓名',
......@@ -370,7 +395,7 @@ export default {
{
label: '身份证号',
prop: 'idCardNo',
minWidth: 100
minWidth: 200
},
{
label: '用户手机号',
......@@ -379,22 +404,22 @@ export default {
},
{
label: '返现金额',
minWidth: 200,
minWidth: 128,
addHtml: 'cashBackValue',
},
{
label: '商品兑换积分',
addHtml: 'buyValue',
minWidth: 200
minWidth: 128
},
{
label: '赠送油券',
minWidth: 200,
minWidth: 260,
addHtml: 'oilList'
},
{
label: '赠送自店服务',
minWidth: 200,
minWidth: 260,
addHtml: 'couponList'
},
{
......@@ -414,7 +439,7 @@ export default {
{
label: '商户名称',
prop: 'merchantName',
minWidth: 100
minWidth: 300
},
]
},
......@@ -429,7 +454,12 @@ export default {
disabled: false,
batchNo: '',
status: ''
}
},
chargeObject: {
gasCardServiceCharge: 0,
passageServiceCharge: 0
},
pageNum: 1
}
},
mounted () {
......@@ -437,6 +467,9 @@ export default {
if (id) this.getDetail(id, type)
},
methods: {
refreshTable ({ pageNum }) {
this.pageNum = pageNum
},
async getDetail (id, type) {
try {
this.loading = true
......@@ -456,12 +489,18 @@ export default {
this.handleRelateStoreConfirm({
merchantId: res.merchantId,
merchantName: res.merchantName
}, {
gasCardServiceCharge: res.oilCouponRate,
passageServiceCharge: res.integralRate
})
this.totalForm.customerTotal = detailList.length
const list = this.splitArray(detailList, 50)
this.importObject = {
detailList
detailList: list
}
this.loading = false
this.pageNum = 1
this.setTableHeight(detailList)
} catch (error) {
this.loading = false
setTimeout(() => this.$router.go(-1), 1e3)
......@@ -477,32 +516,34 @@ export default {
const { merchantId, merchantName } = this.configForm,
list = this.importObject.detailList
let detailList = []
list.map(e => {
let oilList = [], couponList = []
e.oilList?.map(o => {
oilList.push({
oilCouponId: o.oilCouponId,
amount: o.amount,
faceValue: o.faceValue,
aliasName: o.aliasName
list.map(i => {
i.map(e => {
let oilList = [], couponList = []
e.oilList?.map(o => {
oilList.push({
oilCouponId: o.oilCouponId,
amount: o.amount,
faceValue: o.faceValue,
aliasName: o.aliasName
})
})
})
e.couponList?.map(c => {
couponList.push({
couponId: c.couponId,
amount: c.amount,
couponName: c.couponName
e.couponList?.map(c => {
couponList.push({
couponId: c.couponId,
amount: c.amount,
couponName: c.couponName
})
})
detailList.push({
policyNo: e.policyNo,
customerName: e.customerName,
customerPhone: e.customerPhone,
idCardNo: e.idCardNo,
cashBackValue: e.cashBackValue || 0,
buyValue: e.buyValue || 0,
oilList,
couponList
})
})
detailList.push({
policyNo: e.policyNo,
customerName: e.customerName,
customerPhone: e.customerPhone,
idCardNo: e.idCardNo,
cashBackValue: e.cashBackValue,
buyValue: e.buyValue,
oilList,
couponList
})
})
let params = {
......@@ -534,12 +575,14 @@ export default {
const reader = new FileReader()
reader.readAsDataURL(file)
reader.onload = async event => {
this.loading = true
this.$refs.file.value = ''
const imgFile = event.target.result,
[, arrBase64] = imgFile.split(','),
splitStr = file.name.split('.'),
fileUrl = splitStr.at(-1) + '@' + arrBase64,
{ code, message, data } = await this.$apis.points.importCustomerIntegral({ file: fileUrl })
this.loading = false
if (code == 0) {
const { importStatue,
detailList,
......@@ -550,8 +593,9 @@ export default {
detailList.map((row, index) => {
this.updateTotal(row, index)
})
const list = this.splitArray(detailList, 50)
this.importObject = {
detailList,
detailList: list,
name: file.name
}
this.$message({
......@@ -559,7 +603,9 @@ export default {
type: 'success'
})
this.totalForm.customerTotal = detailList.length
this.pageNum = 1
this.validateField('table')
this.setTableHeight(detailList)
} else this.importObj = {
errorCount,
errorUrl,
......@@ -567,14 +613,25 @@ export default {
show: true
}
}
else throw message || ''
else this.$message.error(message)
}
} catch (error) {
this.loading = false
this.$refs.file.value = ''
if (error) this.$message.error(error)
}
},
setTableHeight (detailList = []) {
const { listRef } = this.$refs
if (listRef) {
let length = detailList.length
listRef.tableHeightValues = `${(length > 10 ? 10 : length) * 56 + 56}px`
} else setTimeout(() => {
this.setTableHeight(detailList)
}, 100)
},
// 选择门店
handleRelateStoreClose () {
this.relateStoreVisible = false
......@@ -582,21 +639,22 @@ export default {
validateField (id) {
this.$refs.fromRef.$refs.formRef.validateField(id)
},
async handleRelateStoreConfirm (selectedData) {
async handleRelateStoreConfirm (selectedData, isEdit) {
selectedData.merchantId && (this.$set(this.configForm, 'merchantId', selectedData.merchantId))
selectedData.merchantName && (this.$set(this.configForm, 'merchantName', selectedData.merchantName))
this.validateField('merchantId')
this.handleRelateStoreClose()
try {
const res = await this.$apis.points.getMerchantCharge({ merchantId: selectedData.merchantId })
const res = isEdit ? isEdit : await this.$apis.points.getMerchantCharge({ merchantId: selectedData.merchantId })
if (res) {
this.totalFormData.map(e => {
if (['gasCardServiceCharge', 'passageServiceCharge'].includes(e.name)) {
const val = NP.divide(res[e.name] || 0, 100)
const val = res[e.name] || 0
e.label = e.label.replace(/\d+/g, val)
chargeObject[e.name] = val
this.chargeObject[e.name] = val
}
})
console.log(this.totalFormData)
this.updateView()
}
} catch (error) {
......@@ -605,13 +663,13 @@ export default {
},
showConfig (row, index, type = 0) {
row.oilList ||= []
row.couponList ||= []
this.configParams = {
show: true,
row,
type,
index
index,
oilList: JSON.parse(JSON.stringify(row.oilList || [])),
couponList: JSON.parse(JSON.stringify(row.couponList || [])),
}
},
setRowTotal (row, index) {
......@@ -674,6 +732,19 @@ export default {
}
}
})
},
filterData (list, name) {
return list?.map(i => {
return name == 'oilList' ? `${i.aliasName}*${i.amount} (${NP.times(i.amount, i.faceValue)}积分)` : `${i.couponName}*${i.amount}`
}) || []
},
splitArray (arr, size) {
let result = [],
newArr = JSON.parse(JSON.stringify(arr))
for (let i = 0; i < newArr.length; i += size) {
result.push(newArr.slice(i, i + size))
}
return result
}
}
......@@ -689,7 +760,7 @@ export default {
left: 0;
.box {
width: 100%;
height: calc(100% - 46px);
height: calc(100% - 78px);
box-sizing: border-box;
}
.content {
......@@ -776,20 +847,24 @@ export default {
margin-top: 10px;
}
.file-info {
height: 32px;
height: 20px;
font-size: 14px;
color: #999999;
align-items: center;
margin-top: 10px;
.el-icon-success {
color: #67c23a;
line-height: 32px;
line-height: 20px;
margin-right: 4px;
}
}
.table-box {
width: 864px;
min-width: 864px;
max-width: calc(100vw - 446px);
background: #f9f9f9;
border-radius: 4px;
padding: 20px;
margin-top: 10px;
/deep/ .el-input {
width: 100%;
}
......@@ -817,4 +892,18 @@ export default {
}
}
}
.more-info {
white-space: nowrap;
color: #5850ff;
cursor: pointer;
}
/deep/.el-pagination__sizes {
width: 88px;
.el-select {
width: 100%;
.el-input {
width: 100%;
}
}
}
</style>
......@@ -59,6 +59,7 @@ export default {
},
methods: {
handleClose () {
this.checked = false
this.$emit('update:auditObj', {})
},
async handleConfirm () {
......@@ -69,11 +70,11 @@ export default {
try {
const res = await this.$apis.points.auditIntegral({ id })
if (res) {
this.$loading().close()
this.handleClose()
this.$message.success('操作成功')
this.$parent.handleSearch()
}
this.$loading().close()
} catch (error) {
this.$loading().close()
if (error) this.$message.error(error)
......
......@@ -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',
},
{
......@@ -123,12 +133,12 @@ export default {
},
{
label: '赠送油券',
minWidth: 150,
minWidth: 260,
addHtml: 'oilList'
},
{
label: '赠送自店服务',
minWidth: 150,
minWidth: 260,
addHtml: 'couponList'
},
{
......@@ -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
......@@ -35,7 +35,7 @@
<el-input-number
size="small"
:min="1"
:max="10"
:max="scope.scope.maxStock"
:step="1"
v-model="scope.scope.amount"
@change="changeAmount(...arguments,scope.scope,'oilCouponId')"
......@@ -112,8 +112,10 @@ export default {
this.$apis.points.getOilCouponList(params).then(res => {
this.loading = false
res.list.map(e => {
let maxStock = e.stock - e.usedStock
e.amount = 1
e.oilCouponId = e.id
e.maxStock = maxStock > 10 ? 10 : maxStock
})
// 重置分页组件
this.serviceList = res.list
......
......@@ -4,7 +4,6 @@
class="points-panel"
bigTitle="选择"
okText="提交"
:before-close="handleGiftClose"
@onCancel="handleGiftClose"
@onOk="handleConfirm"
:visible.sync="configParams.show"
......@@ -19,13 +18,13 @@
v-show="currentComponent == 'gas'"
ref="gasRef"
:merchantId="merchantId"
:selectedGasList="configParams.row.oilList || []"
:selectedGasList="configParams.oilList"
/>
<service
v-show="currentComponent == 'service'"
ref="serviceRef"
:merchantId="merchantId"
:selectedServiceList="configParams.row.couponList || []"
:selectedServiceList="configParams.couponList"
/>
</div>
</template>
......
......@@ -74,7 +74,7 @@
<el-input-number
size="small"
:min="1"
:max="10"
:max="scope.scope.maxStock"
:step="1"
v-model="scope.scope.amount"
@change="changeAmount(...arguments,scope.scope,'couponId')"
......@@ -185,12 +185,14 @@ export default {
this.$apis.points.getghDirectionalGiftListApi(params).then(res => {
this.loading = false
res.list.map(e => {
let maxStock = e.residueAmount
e.amount = 1
e.couponId = e.id
e.maxStock = maxStock > 10 ? 10 : maxStock
})
// 重置分页组件
this.serviceList = res.list
this.$refs['serviceRef' + discountType][0].tableTotal = res.total
this.selectedPreExisting(this.selectedList, this.serviceList, 'couponId', this.$refs['serviceRef' + this.discountType][0])
this.setAmount(this.selectedList, this.serviceList, 'couponId')
......@@ -214,7 +216,7 @@ export default {
}[row.useType]
},
addCoupon () {
util.openTab('/tools/couponManage/index')
window.open('/login?redirect=tools%2FcouponManage%2Findex')
},
}
}
......
......@@ -13,8 +13,9 @@
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">
......@@ -31,7 +32,7 @@
>
<div
class="link"
@click="openDetail(scope.scope.batchNo)"
@click="openDetail(scope.scope.id)"
>{{scope.scope.customerNumber}}</div>
</template>
<template
......@@ -282,10 +283,10 @@ export default {
}
})
},
openDetail (batchNo) {
openDetail (recordId) {
this.detailObj = {
show: true,
batchNo
recordId
}
},
editForm (row, type = '') {
......
......@@ -110,7 +110,7 @@ export default {
label: '提现金额',
name: 'payAmount',
addHtml: obj => {
return (obj.payAmount / 100).toFixed(2)
return obj.payAmount?(obj.payAmount / 100).toFixed(2):'--'
}
},
{
......@@ -165,7 +165,10 @@ export default {
},
{
label: '结算金额',
name: 'settleAmount'
name: 'settleAmount',
addHtml: obj => {
return obj.settleAmount?(obj.settleAmount / 100).toFixed(2):'--'
}
},
{
label: '到账时间',
......
......@@ -331,7 +331,7 @@ export default {
prop: 'payAmount',
width: 100,
formatter: cellValue => {
return (cellValue.payAmount / 100).toFixed(2)
return cellValue.payAmount?(cellValue.payAmount / 100).toFixed(2):'--'
}
},
{
......@@ -393,6 +393,9 @@ export default {
{
label: '结算金额/元',
prop: 'settleAmount',
formatter: cellValue => {
return cellValue.settleAmount?(cellValue.settleAmount / 100).toFixed(2):'--'
},
width: '150px'
},
]
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!