添加退款原因
This commit is contained in:
@@ -48,6 +48,7 @@
|
||||
<el-table-column prop="RefundRestTime" label="剩余时间"></el-table-column>
|
||||
<el-table-column prop="IsAutoRefund" label="自动退款" :formatter="autoFormat"></el-table-column>
|
||||
<el-table-column prop="BackAmount" label="返点"></el-table-column>
|
||||
<el-table-column prop="RefundReason" label="退款原因"></el-table-column>
|
||||
<el-table-column prop="OrderState" label="退款状态">
|
||||
<template slot-scope="scope">
|
||||
<span :class="{red:scope.row.OrderState==30}"> {{refundTypeFormat(scope.row.OrderState)}}</span>
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
size="medium"
|
||||
:height="$getHeight(150)"
|
||||
:span-method="mergeSpan"
|
||||
show-summary
|
||||
show-summary
|
||||
>
|
||||
<el-table-column prop="ProductName" label="产品"></el-table-column>
|
||||
<el-table-column prop="PackageName" label="套餐"></el-table-column>
|
||||
@@ -38,62 +38,62 @@
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
name: "treeTable",
|
||||
name: 'treeTable',
|
||||
components: {},
|
||||
data() {
|
||||
data () {
|
||||
return {
|
||||
loading: false,
|
||||
retData:[],
|
||||
dateRange:[],
|
||||
retData: [],
|
||||
dateRange: [],
|
||||
searchModel: {
|
||||
PageIndex: 1,
|
||||
keyWord: "",
|
||||
keyWord: '',
|
||||
Status: 0,
|
||||
PayType: 0,
|
||||
Btime: "",
|
||||
Etime: ""
|
||||
Btime: '',
|
||||
Etime: ''
|
||||
},
|
||||
flagMap:{}
|
||||
};
|
||||
flagMap: {}
|
||||
}
|
||||
},
|
||||
mounted(){
|
||||
this.$store.commit("setCurrentNav","销售管理>>统计分析")
|
||||
this.get();
|
||||
mounted () {
|
||||
this.$store.commit('setCurrentNav', '销售管理>>统计分析')
|
||||
this.get()
|
||||
},
|
||||
methods: {
|
||||
get() {
|
||||
this.flagMap={};
|
||||
if (this.dateRange && this.dateRange.length == 2) {
|
||||
this.searchModel.Btime = this.dateRange[0];
|
||||
this.searchModel.Etime = this.dateRange[1];
|
||||
get () {
|
||||
this.flagMap = {}
|
||||
if (this.dateRange && this.dateRange.length === 2) {
|
||||
this.searchModel.Btime = this.dateRange[0]
|
||||
this.searchModel.Etime = this.dateRange[1]
|
||||
}
|
||||
this.$api.get("course/v1/order/Statistics", this.searchModel).then(res => {
|
||||
this.retData = res.Data;
|
||||
this.retData.forEach(item=>{
|
||||
var flag=this.flagMap[item.ProductName];
|
||||
if(!flag){
|
||||
this.flagMap[item.ProductName]=true;
|
||||
var count=this.retData.filter(m=>m.ProductName== item.ProductName).length;
|
||||
item.rSpan=count;
|
||||
item.cSpan=1;
|
||||
}else{
|
||||
item.rSpan=0;
|
||||
item.cSpan=0;
|
||||
}
|
||||
})
|
||||
this.$api.get('course/v1/order/Statistics', this.searchModel).then(res => {
|
||||
this.retData = res.Data
|
||||
this.retData.forEach(item => {
|
||||
var flag = this.flagMap[item.ProductName]
|
||||
if (!flag) {
|
||||
this.flagMap[item.ProductName] = true
|
||||
var count = this.retData.filter(m => m.ProductName === item.ProductName).length
|
||||
item.rSpan = count
|
||||
item.cSpan = 1
|
||||
} else {
|
||||
item.rSpan = 0
|
||||
item.cSpan = 0
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
mergeSpan({row, column, rowIndex, columnIndex}){
|
||||
mergeSpan ({row, column, rowIndex, columnIndex}) {
|
||||
if (columnIndex === 0) {
|
||||
console.log(`${row.rSpan}-${row.cSpan}`)
|
||||
console.log(`${row.rSpan}-${row.cSpan}`)
|
||||
return {
|
||||
rowspan: row.rSpan,
|
||||
colspan: row.cSpan
|
||||
}
|
||||
}
|
||||
}
|
||||
rowspan: row.rSpan,
|
||||
colspan: row.cSpan
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
</script>
|
||||
<style scoped>
|
||||
.el-table{
|
||||
|
||||
Reference in New Issue
Block a user