添加退款原因

This commit is contained in:
wanyongkang
2020-10-19 12:24:14 +08:00
parent 66d2a1661b
commit 69187ef7da
2 changed files with 41 additions and 40 deletions

View File

@@ -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>

View File

@@ -38,7 +38,7 @@
</template>
<script>
export default {
name: "treeTable",
name: 'treeTable',
components: {},
data () {
return {
@@ -47,38 +47,38 @@ export default {
dateRange: [],
searchModel: {
PageIndex: 1,
keyWord: "",
keyWord: '',
Status: 0,
PayType: 0,
Btime: "",
Etime: ""
Btime: '',
Etime: ''
},
flagMap: {}
};
}
},
mounted () {
this.$store.commit("setCurrentNav","销售管理>>统计分析")
this.get();
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];
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.$api.get('course/v1/order/Statistics', this.searchModel).then(res => {
this.retData = res.Data
this.retData.forEach(item => {
var flag=this.flagMap[item.ProductName];
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;
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;
item.rSpan = 0
item.cSpan = 0
}
})
})
@@ -93,7 +93,7 @@ export default {
}
}
}
};
}
</script>
<style scoped>
.el-table{