订单明细格式
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
/* eslint-disable no-dupe-keys */
|
||||||
<template>
|
<template>
|
||||||
<div v-loading="loading">
|
<div v-loading="loading">
|
||||||
<div class="heior_box">
|
<div class="heior_box">
|
||||||
@@ -101,20 +102,20 @@
|
|||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: "treeTable",
|
name: 'treeTable',
|
||||||
components: {
|
components: {
|
||||||
cutTip: () => import("@/components/common/cutTip"),
|
cutTip: () => import('@/components/common/cutTip'),
|
||||||
phoneHide: () => import("@/components/common/phonehide")
|
phoneHide: () => import('@/components/common/phonehide')
|
||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
loading: false,
|
loading: false,
|
||||||
options: [],
|
options: [],
|
||||||
types: [
|
types: [
|
||||||
{ text: "新开", value: "1" },
|
{ text: '新开', value: '1' },
|
||||||
{ text: "批量新开", value: "2" },
|
{ text: '批量新开', value: '2' },
|
||||||
{ text: "续费", value: "3" },
|
{ text: '续费', value: '3' },
|
||||||
{ text: "批量续费", value: "4" }
|
{ text: '批量续费', value: '4' }
|
||||||
],
|
],
|
||||||
retData: { TotalCount: 0, Data: [] },
|
retData: { TotalCount: 0, Data: [] },
|
||||||
dateRange: [],
|
dateRange: [],
|
||||||
@@ -123,90 +124,90 @@ export default {
|
|||||||
PageIndex: 1,
|
PageIndex: 1,
|
||||||
ProductId: null,
|
ProductId: null,
|
||||||
PackageId: null,
|
PackageId: null,
|
||||||
keyWord: "",
|
keyWord: '',
|
||||||
Status: 0,
|
Status: 0,
|
||||||
PayType: 0,
|
PayType: 0,
|
||||||
OrderTypes: [],
|
OrderTypes: [],
|
||||||
Btime: "",
|
Btime: '',
|
||||||
Etime: "",
|
Etime: '',
|
||||||
pModel:[],
|
pModel: []
|
||||||
},
|
},
|
||||||
types: [
|
types: [
|
||||||
{ text: "新开", value: 1 },
|
{ text: '新开', value: 1 },
|
||||||
{ text: "批量新开", value: 2 },
|
{ text: '批量新开', value: 2 },
|
||||||
{ text: "续费", value: 3 },
|
{ text: '续费', value: 3 },
|
||||||
{ text: "批量续费", value: 4 },
|
{ text: '批量续费', value: 4 },
|
||||||
{ text: "老账号认证", value: 100 },
|
{ text: '老账号认证', value: 100 },
|
||||||
{ text: "测试", value: 200 }
|
{ text: '测试', value: 200 }
|
||||||
],
|
],
|
||||||
typeFormat (row, column, cellValue, index) {
|
typeFormat (row, column, cellValue, index) {
|
||||||
switch (cellValue) {
|
switch (cellValue) {
|
||||||
case 1:
|
case 1:
|
||||||
return "新开";
|
return '新开'
|
||||||
case 2:
|
case 2:
|
||||||
return "批量新开";
|
return '批量新开'
|
||||||
case 3:
|
case 3:
|
||||||
return "续费";
|
return '续费'
|
||||||
case 4:
|
case 4:
|
||||||
return "批量续费";
|
return '批量续费'
|
||||||
}
|
}
|
||||||
return "";
|
return ''
|
||||||
},
|
},
|
||||||
payTypeFormat (row, column, cellValue, index) {
|
payTypeFormat (row, column, cellValue, index) {
|
||||||
switch (cellValue) {
|
switch (cellValue) {
|
||||||
case 10:
|
case 10:
|
||||||
return "余额";
|
return '余额'
|
||||||
case 70:
|
case 70:
|
||||||
return "微信";
|
return '微信'
|
||||||
case 100:
|
case 100:
|
||||||
return "支付宝";
|
return '支付宝'
|
||||||
|
}
|
||||||
|
return ''
|
||||||
}
|
}
|
||||||
return "";
|
|
||||||
}
|
}
|
||||||
};
|
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
this.$store.commit("setCurrentNav", "订单管理>>订单明细");
|
this.$store.commit('setCurrentNav', '订单管理>>订单明细')
|
||||||
this.get();
|
this.get()
|
||||||
//this.getProduct();
|
// this.getProduct()
|
||||||
this.getProductWithPackage();
|
this.getProductWithPackage()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
search () {
|
search () {
|
||||||
this.searchModel.PageIndex = 1;
|
this.searchModel.PageIndex = 1
|
||||||
this.get();
|
this.get()
|
||||||
},
|
},
|
||||||
get () {
|
get () {
|
||||||
if (this.dateRange && this.dateRange.length == 2) {
|
if (this.dateRange && this.dateRange.length === 2) {
|
||||||
this.searchModel.Btime = this.dateRange[0];
|
this.searchModel.Btime = this.dateRange[0]
|
||||||
this.searchModel.Etime = this.dateRange[1];
|
this.searchModel.Etime = this.dateRange[1]
|
||||||
}
|
}
|
||||||
if(this.searchModel.pModel.length>0)
|
if (this.searchModel.pModel.length > 0) {
|
||||||
this.searchModel.ProductId=this.searchModel.pModel[0];
|
this.searchModel.ProductId = this.searchModel.pModel[0]
|
||||||
if(this.searchModel.pModel.length>0)
|
}
|
||||||
this.searchModel.PackageId=this.searchModel.pModel[1];
|
if (this.searchModel.pModel.length > 0) { this.searchModel.PackageId = this.searchModel.pModel[1] }
|
||||||
this.$api.get("course/v1/order/page", this.searchModel).then(res => {
|
this.$api.get('course/v1/order/page', this.searchModel).then(res => {
|
||||||
this.retData = res;
|
this.retData = res
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
getProduct () {
|
getProduct () {
|
||||||
this.loading = true;
|
this.loading = true
|
||||||
this.$api.get("course/v1/product/page", this.searchModel).then(res => {
|
this.$api.get('course/v1/product/page', this.searchModel).then(res => {
|
||||||
this.products = res.Data;
|
this.products = res.Data
|
||||||
this.loading = false;
|
this.loading = false
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
getProductWithPackage () {
|
getProductWithPackage () {
|
||||||
this.loading = true;
|
this.loading = true
|
||||||
this.$api.get("course/v1/product/ProductWithPackage").then(res => {
|
this.$api.get('course/v1/product/ProductWithPackage').then(res => {
|
||||||
this.options = res.Data;
|
this.options = res.Data
|
||||||
var options = [];
|
var options = []
|
||||||
res.Data.forEach(m => {
|
res.Data.forEach(m => {
|
||||||
var product = {
|
var product = {
|
||||||
label: m.Product.Name,
|
label: m.Product.Name,
|
||||||
value: m.Product.Id,
|
value: m.Product.Id,
|
||||||
children: []
|
children: []
|
||||||
};
|
}
|
||||||
|
|
||||||
m.Packages.forEach(p => {
|
m.Packages.forEach(p => {
|
||||||
var pkg = {
|
var pkg = {
|
||||||
@@ -215,26 +216,26 @@ export default {
|
|||||||
}
|
}
|
||||||
product.children.push(pkg)
|
product.children.push(pkg)
|
||||||
})
|
})
|
||||||
options.push(product);
|
options.push(product)
|
||||||
});
|
})
|
||||||
this.options=options;
|
this.options = options
|
||||||
this.loading = false;
|
this.loading = false
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
filterHandler (filters) {
|
filterHandler (filters) {
|
||||||
console.log(filters);
|
console.log(filters)
|
||||||
var values = Object.values(filters);
|
var values = Object.values(filters)
|
||||||
console.log(...values);
|
console.log(...values)
|
||||||
values.forEach(m => {
|
values.forEach(m => {
|
||||||
this.searchModel.OrderTypes.push(...m);
|
this.searchModel.OrderTypes.push(...m)
|
||||||
});
|
})
|
||||||
this.get();
|
this.get()
|
||||||
},
|
},
|
||||||
dataExport () {
|
dataExport () {
|
||||||
this.$api.getDownloadFile("/course/v1/order/Export", this.searchModel);
|
this.$api.getDownloadFile('/course/v1/order/Export', this.searchModel)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
|
||||||
</script>
|
</script>
|
||||||
<style scoped>
|
<style scoped>
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user