初始提交
This commit is contained in:
70
src/components/order/course.vue
Normal file
70
src/components/order/course.vue
Normal file
@@ -0,0 +1,70 @@
|
||||
<template>
|
||||
<div v-loading="loading">
|
||||
<div class="heior_box">
|
||||
<div class="search-box">
|
||||
<el-input v-model="searchModel.keyWord" placeholder="请输入课程/订单号/订单名称" clearable size="small">
|
||||
<el-button slot="append" icon="el-icon-search" @click="get"></el-button>
|
||||
</el-input>
|
||||
</div>
|
||||
</div>
|
||||
<el-table :data="retData.Data" row-key="Id" border size="medium" :height="$getHeight(150)">
|
||||
<el-table-column prop="OrderNo" label="订单号" width="180"></el-table-column>
|
||||
<el-table-column prop="CourseName" label="课程" width="180"></el-table-column>
|
||||
<el-table-column prop="UserName" label="用户" width="180"></el-table-column>
|
||||
<el-table-column prop="PaymentAmount" label="金额"></el-table-column>
|
||||
<el-table-column prop="PayType" label="支付类型">
|
||||
<template slot-scope="scope">
|
||||
<el-rate disabled v-model="scope.row.Star"></el-rate>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="OrderState" label="订单状态"></el-table-column>
|
||||
<el-table-column prop="OrderState" label="过期日期"></el-table-column>
|
||||
</el-table>
|
||||
<div class="block">
|
||||
<el-pagination
|
||||
v-if="retData.Data.length>0"
|
||||
@current-change="get"
|
||||
:page-size="10"
|
||||
layout="total,prev, pager, next"
|
||||
:total="retData.TotalCount"
|
||||
></el-pagination>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
name: "treeTable",
|
||||
components: {
|
||||
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
loading: false,
|
||||
retData: { TotalCount: 0, Data: [] },
|
||||
searchModel: {
|
||||
PageIndex: 1,
|
||||
keyWord: "",
|
||||
Status: 0,
|
||||
PayType: 0,
|
||||
Btime: "",
|
||||
Etime: ""
|
||||
},
|
||||
formatterTime(data) {
|
||||
return data;
|
||||
}
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.get();
|
||||
},
|
||||
methods: {
|
||||
get() {
|
||||
this.$api.get("courseOrder/v1/page", this.searchModel).then(res => {
|
||||
this.retData = res;
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<style scoped>
|
||||
</style>
|
||||
240
src/components/order/index.vue
Normal file
240
src/components/order/index.vue
Normal file
@@ -0,0 +1,240 @@
|
||||
<template>
|
||||
<div v-loading="loading">
|
||||
<div class="heior_box">
|
||||
<el-button
|
||||
size="small"
|
||||
type="primary"
|
||||
icon="el-icon-sold-out"
|
||||
@click="dataExport"
|
||||
v-if="$local.isRoot()"
|
||||
>导出</el-button>
|
||||
<div class="search-box">
|
||||
<el-cascader
|
||||
placeholder="选择产品/套餐"
|
||||
size="small"
|
||||
v-model="searchModel.pModel"
|
||||
:options="options"
|
||||
:props="{ checkStrictly: true}"
|
||||
clearable
|
||||
></el-cascader>
|
||||
<!-- <el-select v-model="searchModel.ProductId" placeholder="选择产品" clearable size="small">
|
||||
<el-option v-for="item in products" :key="item.Name" :label="item.Name" :value="item.Id"></el-option>
|
||||
</el-select> -->
|
||||
<el-select
|
||||
v-model="searchModel.OrderTypes"
|
||||
multiple
|
||||
collapse-tags
|
||||
clearable
|
||||
size="small"
|
||||
placeholder="选择类型"
|
||||
>
|
||||
<el-option v-for="item in types" :key="item.text" :label="item.text" :value="item.value"></el-option>
|
||||
</el-select>
|
||||
<el-date-picker
|
||||
size="small"
|
||||
v-model="dateRange"
|
||||
type="daterange"
|
||||
range-separator="至"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"
|
||||
></el-date-picker>
|
||||
<el-input
|
||||
v-model="searchModel.keyWord"
|
||||
placeholder="请输入订单号、订单名称、用户名"
|
||||
clearable
|
||||
size="small"
|
||||
>
|
||||
<el-button slot="append" icon="el-icon-search" @click="search"></el-button>
|
||||
</el-input>
|
||||
</div>
|
||||
</div>
|
||||
<el-table :data="retData.Data" row-key="Id" border size="medium" :height="$getHeight(100)">
|
||||
<el-table-column prop="CreateTime" label="创建日期" width="180"></el-table-column>
|
||||
<el-table-column prop="UpdateTime" label="支付日期" width="180"></el-table-column>
|
||||
<el-table-column prop="OrderNo" label="订单号" width="215"></el-table-column>
|
||||
<el-table-column prop="OrderType" label="类型" :formatter="typeFormat"></el-table-column>
|
||||
<el-table-column prop="UserName" label="用户" width="120">
|
||||
<template slot-scope="scope">
|
||||
<phoneHide :text="scope.row.UserName"></phoneHide>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="ProductName" label="产品"></el-table-column>
|
||||
<el-table-column prop="PackageName" label="套餐"></el-table-column>
|
||||
<el-table-column prop="DayPrice" label="单价"></el-table-column>
|
||||
<el-table-column prop="ConnectCount" label="连接数">
|
||||
<template slot-scope="scope">{{scope.row.ConnectCount*scope.row.AccountCount}}</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="Accounts" label="账号">
|
||||
<template slot-scope="scope">
|
||||
<cutTip :text="scope.row.Accounts"></cutTip>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="OrderAmount" label="订单金额"></el-table-column>
|
||||
<el-table-column prop="CouponAmount" label="优惠金额"></el-table-column>
|
||||
<el-table-column prop="AccountPayAmount" label="余额支付"></el-table-column>
|
||||
<el-table-column prop="OtherPayAmount" label="在线支付"></el-table-column>
|
||||
<el-table-column prop="PaymentAmount" label="实付"></el-table-column>
|
||||
<!-- <el-table-column prop="RefundAmount" label="退款"></el-table-column> -->
|
||||
<el-table-column prop="PayType" label="付款方式" :formatter="payTypeFormat"></el-table-column>
|
||||
<el-table-column prop="TradeNo" label="支付流水号" width="140">
|
||||
<template slot-scope="scope">
|
||||
<cutTip :text="scope.row.TradeNo"></cutTip>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="Remark" label="备注" width="140">
|
||||
<template slot-scope="scope">
|
||||
<cutTip :text="scope.row.Remark"></cutTip>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div class="block">
|
||||
<el-pagination
|
||||
v-if="retData.Data.length>0"
|
||||
@current-change="get"
|
||||
:current-page.sync="searchModel.PageIndex"
|
||||
:page-size="50"
|
||||
layout="total,prev, pager, next"
|
||||
:total="retData.TotalCount"
|
||||
></el-pagination>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
name: "treeTable",
|
||||
components: {
|
||||
cutTip: () => import("@/components/common/cutTip"),
|
||||
phoneHide: () => import("@/components/common/phonehide")
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
loading: false,
|
||||
options: [],
|
||||
types: [
|
||||
{ text: "新开", value: "1" },
|
||||
{ text: "批量新开", value: "2" },
|
||||
{ text: "续费", value: "3" },
|
||||
{ text: "批量续费", value: "4" }
|
||||
],
|
||||
retData: { TotalCount: 0, Data: [] },
|
||||
dateRange: [],
|
||||
products: [],
|
||||
searchModel: {
|
||||
PageIndex: 1,
|
||||
ProductId: null,
|
||||
PackageId:null,
|
||||
keyWord: "",
|
||||
Status: 0,
|
||||
PayType: 0,
|
||||
OrderTypes: [],
|
||||
Btime: "",
|
||||
Etime: "",
|
||||
pModel:[],
|
||||
},
|
||||
types: [
|
||||
{ text: "新开", value: 1 },
|
||||
{ text: "批量新开", value: 2 },
|
||||
{ text: "续费", value: 3 },
|
||||
{ text: "批量续费", value: 4 },
|
||||
{ text: "老账号认证", value: 100 },
|
||||
{ text: "测试", value: 200 }
|
||||
],
|
||||
typeFormat(row, column, cellValue, index) {
|
||||
switch (cellValue) {
|
||||
case 1:
|
||||
return "新开";
|
||||
case 2:
|
||||
return "批量新开";
|
||||
case 3:
|
||||
return "续费";
|
||||
case 4:
|
||||
return "批量续费";
|
||||
}
|
||||
return "";
|
||||
},
|
||||
payTypeFormat(row, column, cellValue, index) {
|
||||
switch (cellValue) {
|
||||
case 10:
|
||||
return "余额";
|
||||
case 70:
|
||||
return "微信";
|
||||
case 100:
|
||||
return "支付宝";
|
||||
}
|
||||
return "";
|
||||
}
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.$store.commit("setCurrentNav", "订单管理>>订单明细");
|
||||
this.get();
|
||||
//this.getProduct();
|
||||
this.getProductWithPackage();
|
||||
},
|
||||
methods: {
|
||||
search() {
|
||||
this.searchModel.PageIndex = 1;
|
||||
this.get();
|
||||
},
|
||||
get() {
|
||||
if (this.dateRange && this.dateRange.length == 2) {
|
||||
this.searchModel.Btime = this.dateRange[0];
|
||||
this.searchModel.Etime = this.dateRange[1];
|
||||
}
|
||||
if(this.searchModel.pModel.length>0)
|
||||
this.searchModel.ProductId=this.searchModel.pModel[0];
|
||||
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.retData = res;
|
||||
});
|
||||
},
|
||||
getProduct() {
|
||||
this.loading = true;
|
||||
this.$api.get("course/v1/product/page", this.searchModel).then(res => {
|
||||
this.products = res.Data;
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
getProductWithPackage() {
|
||||
this.loading = true;
|
||||
this.$api.get("course/v1/product/ProductWithPackage").then(res => {
|
||||
this.options = res.Data;
|
||||
var options = [];
|
||||
res.Data.forEach(m => {
|
||||
var product = {
|
||||
label: m.Product.Name,
|
||||
value: m.Product.Id,
|
||||
children: []
|
||||
};
|
||||
|
||||
m.Packages.forEach(p => {
|
||||
var pkg = {
|
||||
label: p.Name,
|
||||
value: p.Id
|
||||
}
|
||||
product.children.push(pkg)
|
||||
})
|
||||
options.push(product);
|
||||
});
|
||||
this.options=options;
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
filterHandler(filters) {
|
||||
console.log(filters);
|
||||
var values = Object.values(filters);
|
||||
console.log(...values);
|
||||
values.forEach(m => {
|
||||
this.searchModel.OrderTypes.push(...m);
|
||||
});
|
||||
this.get();
|
||||
},
|
||||
dataExport() {
|
||||
this.$api.getDownloadFile("/course/v1/order/Export", this.searchModel);
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<style scoped>
|
||||
</style>
|
||||
73
src/components/order/managerstatistics.vue
Normal file
73
src/components/order/managerstatistics.vue
Normal file
@@ -0,0 +1,73 @@
|
||||
<template>
|
||||
<div v-loading="loading">
|
||||
<div class="heior_box">
|
||||
<span>
|
||||
总营业额: <el-tag type="danger" effect="plain">{{retData.OrderAmount }} </el-tag>
|
||||
总客户数:<el-tag type="danger" effect="plain">{{retData.UserTotal }} </el-tag>
|
||||
</span>
|
||||
<div class="search-box">
|
||||
<el-date-picker
|
||||
size="small"
|
||||
v-model="dateRange"
|
||||
type="daterange"
|
||||
range-separator="至"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"
|
||||
></el-date-picker>
|
||||
<el-button slot="append" icon="el-icon-search" @click="search" size="small">搜索</el-button>
|
||||
</div>
|
||||
</div>
|
||||
<el-table :data="retData.List" border size="medium" :height="$getHeight(100)">
|
||||
<el-table-column prop="Name" label="客户经理" width="180"></el-table-column>
|
||||
<el-table-column prop="Amount" label="营业额" width="180"></el-table-column>
|
||||
<el-table-column prop="UserCount" label="客户总数" ></el-table-column>
|
||||
<el-table-column prop="NewUserCount" label="新增客户"></el-table-column>
|
||||
|
||||
</el-table>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
name: "treeTable",
|
||||
components: {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
loading: false,
|
||||
options: [],
|
||||
retData: { OrderAmount: 0,UserTotal:0, List: [] },
|
||||
dateRange: [],
|
||||
searchModel: {
|
||||
Btime: "",
|
||||
Etime: "",
|
||||
}
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.$store.commit("setCurrentNav", "订单管理>>销售统计");
|
||||
this.get();
|
||||
},
|
||||
methods: {
|
||||
search() {
|
||||
this.get();
|
||||
},
|
||||
get() {
|
||||
if (this.dateRange && this.dateRange.length == 2) {
|
||||
this.searchModel.Btime = this.dateRange[0];
|
||||
this.searchModel.Etime = this.dateRange[1];
|
||||
}else{
|
||||
this.searchModel.Btime =null;
|
||||
this.searchModel.Etime =null;
|
||||
}
|
||||
this.$api.get("course/v1/order/UserCountStatistics", this.searchModel).then(res => {
|
||||
this.retData = res.Data;
|
||||
});
|
||||
},
|
||||
dataExport() {
|
||||
this.$api.getDownloadFile("/baseinfo/v1/chargeorder/ExportOrder", this.searchModel);
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<style scoped>
|
||||
</style>
|
||||
96
src/components/order/openrefunds.vue
Normal file
96
src/components/order/openrefunds.vue
Normal file
@@ -0,0 +1,96 @@
|
||||
<template>
|
||||
<div v-loading="loading">
|
||||
<div class="heior_box">
|
||||
<el-button size="small" type="primary" icon="el-icon-sold-out" @click="dataExport">导出</el-button>
|
||||
<div class="search-box">
|
||||
<el-date-picker
|
||||
size="small"
|
||||
v-model="dateRange"
|
||||
type="daterange"
|
||||
range-separator="至"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"
|
||||
@change=search
|
||||
></el-date-picker>
|
||||
<el-select v-model="searchModel.ProductIds" placeholder="选择产品" collapse-tags multiple clearable size="small" @change=search>
|
||||
<el-option v-for="item in products" :key="item.Name" :label="item.Name" :value="item.Id"></el-option>
|
||||
</el-select>
|
||||
</div>
|
||||
</div>
|
||||
<el-table :data="retData.Data" row-key="Id" border size="medium" :height="$getHeight(100)">
|
||||
<el-table-column prop="CreateTime" label="创建日期" width="180"></el-table-column>
|
||||
<el-table-column prop="ProductName" label="产品"></el-table-column>
|
||||
<el-table-column prop="PackageName" label="套餐"></el-table-column>
|
||||
<el-table-column prop="ConnectCount" label="连接数"></el-table-column>
|
||||
<el-table-column prop="Accounts" label="账号"></el-table-column>
|
||||
<el-table-column prop="RefundRestTime" label="剩余时间"></el-table-column>
|
||||
</el-table>
|
||||
<div class="block">
|
||||
<el-pagination
|
||||
v-if="retData.Data.length>0"
|
||||
@current-change="get"
|
||||
:current-page.sync="searchModel.PageIndex"
|
||||
:page-size="50"
|
||||
layout="total,prev, pager, next"
|
||||
:total="retData.TotalCount"
|
||||
></el-pagination>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
name: "treeTable",
|
||||
components: {
|
||||
phoneHide: () => import("@/components/common/phonehide")
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
loading: false,
|
||||
retData: { TotalCount: 0, Data: [] },
|
||||
dateRange:[],
|
||||
products:[],
|
||||
searchModel: {
|
||||
OrderTypes:[],
|
||||
PageIndex: 1,
|
||||
keyWord: "",
|
||||
ProductIds:null,
|
||||
}
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.$store.commit("setCurrentNav","订单管理>>退款订单")
|
||||
this.get();
|
||||
this.getProduct();
|
||||
},
|
||||
methods: {
|
||||
search(){
|
||||
this.searchModel.PageIndex=1;
|
||||
this.get();
|
||||
},
|
||||
get() {
|
||||
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/OpenRefundOrders", this.searchModel).then(res => {
|
||||
this.retData = res;
|
||||
});
|
||||
},
|
||||
getProduct() {
|
||||
this.loading = true;
|
||||
this.$api.get("course/v1/product/OpenPage", this.searchModel).then(res => {
|
||||
this.products = res.Data;
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
dataExport(){
|
||||
this.$api.getDownloadFile("/course/v1/order/OpenExportRefundOrders", this.searchModel);
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<style scoped>
|
||||
.red{
|
||||
color: red;
|
||||
}
|
||||
</style>
|
||||
73
src/components/order/package.vue
Normal file
73
src/components/order/package.vue
Normal file
@@ -0,0 +1,73 @@
|
||||
<template>
|
||||
<div v-loading="loading">
|
||||
<div class="heior_box">
|
||||
<div class="search-box">
|
||||
<el-input v-model="searchModel.keyWord" placeholder="请输入订单号/订单名称" clearable size="small">
|
||||
<el-button slot="append" icon="el-icon-search" @click="search"></el-button>
|
||||
</el-input>
|
||||
</div>
|
||||
</div>
|
||||
<el-table :data="retData.Data" size="medium" :height="$getHeight(150)" row-key="Id" border>
|
||||
<el-table-column prop="OrderNo" label="订单号" width="180"></el-table-column>
|
||||
<el-table-column prop="CourseName" label="课程" width="180"></el-table-column>
|
||||
<el-table-column prop="UserName" label="用户" width="180"></el-table-column>
|
||||
<el-table-column prop="PaymentAmount" label="金额"></el-table-column>
|
||||
<el-table-column prop="PayType" label="支付类型">
|
||||
<template slot-scope="scope">
|
||||
<el-rate disabled v-model="scope.row.Star"></el-rate>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="OrderState" label="订单状态"></el-table-column>
|
||||
<el-table-column prop="OrderState" label="过期日期"></el-table-column>
|
||||
</el-table>
|
||||
<div class="block">
|
||||
<el-pagination
|
||||
v-if="retData.Data.length>0"
|
||||
@current-change="get"
|
||||
:page-size="10"
|
||||
layout="total,prev, pager, next"
|
||||
:total="retData.TotalCount"
|
||||
></el-pagination>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
name: "treeTable",
|
||||
components: {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
loading: false,
|
||||
retData: { TotalCount: 0, Data: [] },
|
||||
searchModel: {
|
||||
PageIndex: 1,
|
||||
keyWord: "",
|
||||
Status: 0,
|
||||
PayType: 0,
|
||||
Btime: "",
|
||||
Etime: ""
|
||||
},
|
||||
formatterTime(data) {
|
||||
return data;
|
||||
}
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.get();
|
||||
},
|
||||
methods: {
|
||||
search(){
|
||||
this.searchModel.PageIndex=1;
|
||||
this.get();
|
||||
},
|
||||
get() {
|
||||
this.$api.get("courseOrder/v1/page", this.searchModel).then(res => {
|
||||
this.retData = res;
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<style scoped>
|
||||
</style>
|
||||
201
src/components/order/refunds.vue
Normal file
201
src/components/order/refunds.vue
Normal file
@@ -0,0 +1,201 @@
|
||||
<template>
|
||||
<div v-loading="loading">
|
||||
<div class="heior_box">
|
||||
<el-button size="small" type="primary" icon="el-icon-sold-out" @click="dataExport" v-if="$local.isRoot()">导出</el-button>
|
||||
<div class="search-box">
|
||||
<el-select v-model="searchModel.ProductId" placeholder="选择产品" clearable size="small">
|
||||
<el-option v-for="item in products" :key="item.Name" :label="item.Name" :value="item.Id"></el-option>
|
||||
</el-select>
|
||||
<el-select
|
||||
v-model="searchModel.OrderTypes"
|
||||
multiple
|
||||
collapse-tags
|
||||
clearable
|
||||
size="small"
|
||||
placeholder="选择类型"
|
||||
>
|
||||
<el-option v-for="item in types" :key="item.text" :label="item.text" :value="item.value"></el-option>
|
||||
</el-select>
|
||||
<el-date-picker
|
||||
size="small"
|
||||
v-model="dateRange"
|
||||
type="daterange"
|
||||
range-separator="至"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"
|
||||
></el-date-picker>
|
||||
<el-input v-model="searchModel.keyWord" placeholder="请输入订单号、订单名称、用户名" clearable size="small">
|
||||
<el-button slot="append" icon="el-icon-search" @click="search"></el-button>
|
||||
</el-input>
|
||||
</div>
|
||||
</div>
|
||||
<el-table :data="retData.Data" @filter-change="filterHandler" row-key="Id" border size="medium" :height="$getHeight(100)">
|
||||
<el-table-column prop="CreateTime" label="创建日期" width="180"></el-table-column>
|
||||
<el-table-column prop="OrderNo" label="订单号" width="220"></el-table-column>
|
||||
<!-- <el-table-column prop="OrderType" label="类型" :formatter="typeFormat"></el-table-column> -->
|
||||
<el-table-column prop="UserName" label="用户" >
|
||||
<template slot-scope="scope">
|
||||
<phoneHide :text="scope.row.UserName"></phoneHide>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="ProductName" label="产品"></el-table-column>
|
||||
<el-table-column prop="PackageName" label="套餐"></el-table-column>
|
||||
<!-- <el-table-column prop="DayPrice" label="单价"></el-table-column> -->
|
||||
<el-table-column prop="ConnectCount" label="连接数"></el-table-column>
|
||||
<el-table-column prop="Accounts" label="账号"></el-table-column>
|
||||
<el-table-column prop="PaymentAmount" label="实付金额"></el-table-column>
|
||||
<el-table-column prop="RefundAmount" label="退款金额"></el-table-column>
|
||||
<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="OrderState" label="退款状态">
|
||||
<template slot-scope="scope">
|
||||
<span :class="{red:scope.row.OrderState==30}"> {{refundTypeFormat(scope.row.OrderState)}}</span>
|
||||
<span v-if="scope.row.OrderState==30" class="handel cursor edit" @click="showRefund(scope.row)">处理</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
</el-table>
|
||||
<div class="block">
|
||||
<el-pagination
|
||||
v-if="retData.Data.length>0"
|
||||
@current-change="get"
|
||||
:current-page.sync="searchModel.PageIndex"
|
||||
:page-size="50"
|
||||
layout="total,prev, pager, next"
|
||||
:total="retData.TotalCount"
|
||||
></el-pagination>
|
||||
</div>
|
||||
|
||||
<el-dialog title="退款处理" :visible.sync="refundModel.Show" width="300px">
|
||||
<el-form :model="refundModel" ref="inputForm" label-width="80px">
|
||||
<el-form-item prop="Remark" label="备注说明">
|
||||
<el-input v-model="refundModel.Remark" size="small"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item prop="BackAmount" label="返点">
|
||||
<el-input v-model="refundModel.BackAmount" size="small" type="number"></el-input>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<el-button @click="resetForm('inputForm')">取 消</el-button>
|
||||
<el-button type="primary" @click="doRefund('inputForm')">确定</el-button>
|
||||
</span>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
name: "treeTable",
|
||||
components: {
|
||||
phoneHide: () => import("@/components/common/phonehide")
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
loading: false,
|
||||
retData: { TotalCount: 0, Data: [] },
|
||||
dateRange:[],
|
||||
searchModel: {
|
||||
PageIndex: 1,
|
||||
keyWord: "",
|
||||
Status: 0,
|
||||
PayType: 0,
|
||||
OrderTypes:[],
|
||||
ProductId:null,
|
||||
Btime: "",
|
||||
Etime: ""
|
||||
},
|
||||
refundModel:{
|
||||
Id:0,
|
||||
BackAmount:0,
|
||||
Remark:'',
|
||||
Show:false,
|
||||
},
|
||||
types: [
|
||||
{ text: "新开", value: 1 },
|
||||
{ text: "批量新开", value: 2 },
|
||||
{ text: "续费", value: 3 },
|
||||
{ text: "批量续费", value: 4 },
|
||||
{ text: "老账号认证", value: 100 },
|
||||
{ text: "测试", value: 200 }
|
||||
],
|
||||
typeFormat(row, column, cellValue, index){
|
||||
return "退款"
|
||||
},
|
||||
autoFormat(row, column, cellValue, index){
|
||||
return cellValue&&cellValue==1?"是":"否";
|
||||
},
|
||||
refundTypeFormat(orderStatus){
|
||||
switch (orderStatus) {
|
||||
case 30:
|
||||
return "未自动退款";
|
||||
case 40:
|
||||
return "已人工处理";
|
||||
case 50:
|
||||
return "已自动退款";
|
||||
default:
|
||||
return "";
|
||||
}
|
||||
return "";
|
||||
},
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.$store.commit("setCurrentNav","订单管理>>退款订单")
|
||||
this.get();
|
||||
this.getProduct();
|
||||
},
|
||||
methods: {
|
||||
search(){
|
||||
this.searchModel.PageIndex=1;
|
||||
this.get();
|
||||
},
|
||||
get() {
|
||||
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/RefundOrders", this.searchModel).then(res => {
|
||||
this.retData = res;
|
||||
});
|
||||
},
|
||||
getProduct() {
|
||||
this.loading = true;
|
||||
this.$api.get("course/v1/product/page", this.searchModel).then(res => {
|
||||
this.products = res.Data;
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
filterHandler(filters) {
|
||||
console.log(filters)
|
||||
var values=Object.values(filters);
|
||||
console.log(...values)
|
||||
values.forEach(m=>{
|
||||
this.searchModel.OrderTypes.push(...m)
|
||||
});
|
||||
this.get();
|
||||
},
|
||||
dataExport(){
|
||||
this.$api.getDownloadFile("/course/v1/order/ExportRefundOrders", this.searchModel);
|
||||
},
|
||||
showRefund(item){
|
||||
this.refundModel.Show = true;
|
||||
this.refundModel.Id=item.Id;
|
||||
},
|
||||
resetForm(formName) {
|
||||
this.$refs[formName].resetFields();
|
||||
this.refundModel.Show = false;
|
||||
},
|
||||
doRefund(formName){
|
||||
this.$api.post("course/v1/order/RefundProcess", this.refundModel).then(res => {
|
||||
this.get();
|
||||
this.resetForm(formName)
|
||||
})
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<style scoped>
|
||||
.red{
|
||||
color: red;
|
||||
}
|
||||
</style>
|
||||
216
src/components/order/sellerorder.vue
Normal file
216
src/components/order/sellerorder.vue
Normal file
@@ -0,0 +1,216 @@
|
||||
<template>
|
||||
<div v-loading="loading">
|
||||
<div class="heior_box">
|
||||
<el-button size="small" type="primary" icon="el-icon-sold-out" @click="showDialog=true">认领</el-button>
|
||||
<el-button size="small" type="primary" icon="el-icon-sold-out" @click="dataExport" v-if="$local.isRoot()">导出</el-button>
|
||||
<div class="search-box">
|
||||
<el-select v-model="searchModel.ProductId" placeholder="选择产品" clearable size="small">
|
||||
<el-option v-for="item in products" :key="item.Name" :label="item.Name" :value="item.Id"></el-option>
|
||||
</el-select>
|
||||
<el-select
|
||||
v-model="searchModel.OrderTypes"
|
||||
multiple
|
||||
collapse-tags
|
||||
clearable
|
||||
size="small"
|
||||
placeholder="选择类型"
|
||||
>
|
||||
<el-option v-for="item in types" :key="item.text" :label="item.text" :value="item.value"></el-option>
|
||||
</el-select>
|
||||
<el-date-picker
|
||||
size="small"
|
||||
v-model="dateRange"
|
||||
type="daterange"
|
||||
range-separator="至"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"
|
||||
></el-date-picker>
|
||||
<el-input v-model="searchModel.keyWord" placeholder="请输入订单号、订单名称、用户名" clearable size="small">
|
||||
<el-button slot="append" icon="el-icon-search" @click="search"></el-button>
|
||||
</el-input>
|
||||
</div>
|
||||
</div>
|
||||
<el-table :data="retData.Data" row-key="Id" border size="medium" :height="$getHeight(100)">
|
||||
<el-table-column prop="CreateTime" label="创建日期" width="180"></el-table-column>
|
||||
<el-table-column prop="Channel" label="销售人" width="120"></el-table-column>
|
||||
<el-table-column prop="OrderNo" label="订单号" width="215"></el-table-column>
|
||||
<el-table-column prop="OrderType" label="类型" :formatter="typeFormat"></el-table-column>
|
||||
<el-table-column prop="UserName" label="用户" width="120">
|
||||
<template slot-scope="scope">
|
||||
<phoneHide :text="scope.row.UserName"></phoneHide>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="ProductName" label="产品"></el-table-column>
|
||||
<el-table-column prop="PackageName" label="套餐"></el-table-column>
|
||||
<el-table-column prop="DayPrice" label="单价"></el-table-column>
|
||||
<el-table-column prop="ConnectCount" label="连接数">
|
||||
<template slot-scope="scope">
|
||||
{{scope.row.ConnectCount*scope.row.AccountCount}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="Accounts" label="账号">
|
||||
<template slot-scope="scope">
|
||||
<cutTip :text="scope.row.Accounts"></cutTip>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="OrderAmount" label="订单金额"></el-table-column>
|
||||
<el-table-column prop="CouponAmount" label="优惠金额"></el-table-column>
|
||||
<el-table-column prop="AccountPayAmount" label="余额支付"></el-table-column>
|
||||
<el-table-column prop="OtherPayAmount" label="在线支付"></el-table-column>
|
||||
<el-table-column prop="PaymentAmount" label="实付"></el-table-column>
|
||||
<!-- <el-table-column prop="RefundAmount" label="退款"></el-table-column> -->
|
||||
<el-table-column prop="PayType" label="付款方式" :formatter="payTypeFormat"></el-table-column>
|
||||
<el-table-column prop="TradeNo" label="支付流水号" width="140">
|
||||
<template slot-scope="scope">
|
||||
<cutTip :text="scope.row.TradeNo"></cutTip>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
</el-table>
|
||||
<div class="block">
|
||||
<el-pagination
|
||||
v-if="retData.Data.length>0"
|
||||
@current-change="get"
|
||||
:current-page.sync="searchModel.PageIndex"
|
||||
:page-size="50"
|
||||
layout="total,prev, pager, next"
|
||||
:total="retData.TotalCount"
|
||||
></el-pagination>
|
||||
</div>
|
||||
|
||||
<el-dialog title="认领订单" :visible.sync="showDialog" width="300px">
|
||||
<el-form :model="takeModel" ref="inputForm" label-width="80px">
|
||||
<el-form-item prop="phone" label="手机号">
|
||||
<el-input v-model="takeModel.phone" size="small"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item prop="amount" label="订单金额">
|
||||
<el-input v-model="takeModel.amount" size="small" type="number"></el-input>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<el-button @click="resetForm('inputForm')">取 消</el-button>
|
||||
<el-button type="primary" @click="take()">确定</el-button>
|
||||
</span>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
name: "treeTable",
|
||||
components: {
|
||||
cutTip:()=>import("@/components/common/cutTip"),
|
||||
phoneHide: () => import("@/components/common/phonehide")
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
loading: false,
|
||||
showDialog:false,
|
||||
types:[
|
||||
{text: '新开', value: '1'},
|
||||
{text: '批量新开', value: '2'},
|
||||
{text: '续费', value: '3'},
|
||||
{text: '批量续费', value: '4'}],
|
||||
retData: { TotalCount: 0, Data: [] },
|
||||
dateRange:[],
|
||||
products:[],
|
||||
searchModel: {
|
||||
PageIndex: 1,
|
||||
ProductId:null,
|
||||
keyWord: "",
|
||||
Status: 0,
|
||||
PayType: 0,
|
||||
OrderTypes:[],
|
||||
Btime: "",
|
||||
Etime: ""
|
||||
},
|
||||
takeModel:{
|
||||
phone:'',
|
||||
amount:''
|
||||
},
|
||||
types: [
|
||||
{ text: "新开", value: 1 },
|
||||
{ text: "批量新开", value: 2 },
|
||||
{ text: "续费", value: 3 },
|
||||
{ text: "批量续费", value: 4 },
|
||||
{ text: "老账号认证", value: 100 },
|
||||
{ text: "测试", value: 200 }
|
||||
],
|
||||
typeFormat(row, column, cellValue, index){
|
||||
switch (cellValue) {
|
||||
case 1:
|
||||
return "新开";
|
||||
case 2:
|
||||
return "批量新开";
|
||||
case 3:
|
||||
return "续费";
|
||||
case 4:
|
||||
return "批量续费";
|
||||
}
|
||||
return "";
|
||||
},
|
||||
payTypeFormat(row, column, cellValue, index){
|
||||
switch (cellValue) {
|
||||
case 10:
|
||||
return "余额";
|
||||
case 70:
|
||||
return "微信";
|
||||
case 100:
|
||||
return "支付宝";
|
||||
}
|
||||
return "";
|
||||
}
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.$store.commit("setCurrentNav","订单管理>>销售订单")
|
||||
this.get();
|
||||
this.getProduct();
|
||||
},
|
||||
methods: {
|
||||
search(){
|
||||
this.searchModel.PageIndex=1;
|
||||
this.get();
|
||||
},
|
||||
get() {
|
||||
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/SellerOrders", this.searchModel).then(res => {
|
||||
this.retData = res;
|
||||
});
|
||||
},
|
||||
getProduct() {
|
||||
this.loading = true;
|
||||
this.$api.get("course/v1/product/page", this.searchModel).then(res => {
|
||||
this.products = res.Data;
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
filterHandler(filters) {
|
||||
console.log(filters)
|
||||
var values=Object.values(filters);
|
||||
console.log(...values)
|
||||
values.forEach(m=>{
|
||||
this.searchModel.OrderTypes.push(...m)
|
||||
});
|
||||
this.get();
|
||||
},
|
||||
resetForm(formName) {
|
||||
this.$refs[formName].resetFields();
|
||||
this.showDialog = false;
|
||||
},
|
||||
take(){
|
||||
this.$api.get("course/v1/order/TakeOrder", this.takeModel).then(res => {
|
||||
this.resetForm('inputForm')
|
||||
this.get();
|
||||
});
|
||||
},
|
||||
dataExport() {
|
||||
this.$api.getDownloadFile("/course/v1/order/ExportSellerOrders", this.searchModel);
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<style scoped>
|
||||
</style>
|
||||
103
src/components/order/sellerstatistics.vue
Normal file
103
src/components/order/sellerstatistics.vue
Normal file
@@ -0,0 +1,103 @@
|
||||
<template>
|
||||
<div v-loading="loading">
|
||||
<div class="heior_box">
|
||||
<div class="search-box">
|
||||
<el-date-picker
|
||||
size="small"
|
||||
v-model="dateRange"
|
||||
type="daterange"
|
||||
range-separator="至"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"
|
||||
></el-date-picker>
|
||||
<el-input v-model="searchModel.keyWord" placeholder="请输入产品名称" clearable size="small">
|
||||
<el-button slot="append" icon="el-icon-search" @click="get"></el-button>
|
||||
</el-input>
|
||||
</div>
|
||||
</div>
|
||||
<el-table
|
||||
:data="retData"
|
||||
border
|
||||
size="medium"
|
||||
:height="$getHeight(100)"
|
||||
:span-method="mergeSpan"
|
||||
show-summary
|
||||
>
|
||||
<el-table-column prop="Channel" label="销售员"></el-table-column>
|
||||
<el-table-column prop="ProductName" label="产品"></el-table-column>
|
||||
<el-table-column prop="NewBuyCount" label="新开个数"></el-table-column>
|
||||
<el-table-column prop="NewBuyAmount" label="新开金额"></el-table-column>
|
||||
<el-table-column prop="AgainBuyCount" label="续费个数"></el-table-column>
|
||||
<el-table-column prop="AgainBuyAmount" label="续费金额"></el-table-column>
|
||||
<el-table-column prop="SellAmount" label="销售金额"></el-table-column>
|
||||
<!-- <el-table-column prop="RefundCount" label="退货个数"></el-table-column>
|
||||
<el-table-column prop="RefundAmount" label="退货金额"></el-table-column> -->
|
||||
<!-- <el-table-column prop="PaymentAmount" label="换货个数"></el-table-column>
|
||||
<el-table-column prop="PaymentAmount" label="换货金额"></el-table-column>-->
|
||||
</el-table>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
name: "treeTable",
|
||||
components: {},
|
||||
data() {
|
||||
return {
|
||||
loading: false,
|
||||
retData:[],
|
||||
searchModel: {
|
||||
PageIndex: 1,
|
||||
keyWord: "",
|
||||
Status: 0,
|
||||
PayType: 0,
|
||||
Btime: "",
|
||||
Etime: ""
|
||||
},
|
||||
dateRange:[],
|
||||
flagMap:{}
|
||||
};
|
||||
},
|
||||
created() {
|
||||
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.$api.get("course/v1/order/SellerStatistics", this.searchModel).then(res => {
|
||||
this.retData = res.Data;
|
||||
this.retData.forEach(item=>{
|
||||
var flag=this.flagMap[item.Channel];
|
||||
if(!flag){
|
||||
this.flagMap[item.Channel]=true;
|
||||
var count=this.retData.filter(m=>m.Channel== item.Channel).length;
|
||||
item.rSpan=count;
|
||||
item.cSpan=1;
|
||||
}else{
|
||||
item.rSpan=0;
|
||||
item.cSpan=0;
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
mergeSpan({row, column, rowIndex, columnIndex}){
|
||||
if (columnIndex === 0) {
|
||||
console.log(`${row.rSpan}-${row.cSpan}`)
|
||||
return {
|
||||
rowspan: row.rSpan,
|
||||
colspan: row.cSpan
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<style scoped>
|
||||
.el-table{
|
||||
overflow:visible !important;
|
||||
}
|
||||
</style>
|
||||
102
src/components/order/statistics.vue
Normal file
102
src/components/order/statistics.vue
Normal file
@@ -0,0 +1,102 @@
|
||||
<template>
|
||||
<div v-loading="loading">
|
||||
<div class="heior_box">
|
||||
<div class="search-box">
|
||||
<el-date-picker
|
||||
size="small"
|
||||
v-model="dateRange"
|
||||
type="daterange"
|
||||
range-separator="至"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"
|
||||
></el-date-picker>
|
||||
<el-input v-model="searchModel.keyWord" placeholder="请输入产品名称" clearable size="small">
|
||||
<el-button slot="append" icon="el-icon-search" @click="get"></el-button>
|
||||
</el-input>
|
||||
</div>
|
||||
</div>
|
||||
<el-table
|
||||
:data="retData"
|
||||
border
|
||||
size="medium"
|
||||
:height="$getHeight(150)"
|
||||
:span-method="mergeSpan"
|
||||
show-summary
|
||||
>
|
||||
<el-table-column prop="ProductName" label="产品"></el-table-column>
|
||||
<el-table-column prop="PackageName" label="套餐"></el-table-column>
|
||||
<el-table-column prop="NewBuyCount" label="新开个数"></el-table-column>
|
||||
<el-table-column prop="NewBuyAmount" label="新开金额"></el-table-column>
|
||||
<el-table-column prop="AgainBuyCount" label="续费个数"></el-table-column>
|
||||
<el-table-column prop="AgainBuyAmount" label="续费金额"></el-table-column>
|
||||
<el-table-column prop="RefundCount" label="退货个数"></el-table-column>
|
||||
<el-table-column prop="RefundAmount" label="退货金额"></el-table-column>
|
||||
<!-- <el-table-column prop="PaymentAmount" label="换货个数"></el-table-column>
|
||||
<el-table-column prop="PaymentAmount" label="换货金额"></el-table-column>-->
|
||||
</el-table>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
name: "treeTable",
|
||||
components: {},
|
||||
data() {
|
||||
return {
|
||||
loading: false,
|
||||
retData:[],
|
||||
dateRange:[],
|
||||
searchModel: {
|
||||
PageIndex: 1,
|
||||
keyWord: "",
|
||||
Status: 0,
|
||||
PayType: 0,
|
||||
Btime: "",
|
||||
Etime: ""
|
||||
},
|
||||
flagMap:{}
|
||||
};
|
||||
},
|
||||
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];
|
||||
}
|
||||
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}){
|
||||
if (columnIndex === 0) {
|
||||
console.log(`${row.rSpan}-${row.cSpan}`)
|
||||
return {
|
||||
rowspan: row.rSpan,
|
||||
colspan: row.cSpan
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<style scoped>
|
||||
.el-table{
|
||||
overflow:visible !important;
|
||||
}
|
||||
</style>
|
||||
77
src/components/order/taobao.vue
Normal file
77
src/components/order/taobao.vue
Normal file
@@ -0,0 +1,77 @@
|
||||
<template>
|
||||
<div v-loading="loading">
|
||||
<div class="heior_box">
|
||||
<el-button size="small" type="primary" icon="el-icon-sold-out" @click="dataExport" v-if="$local.isRoot()">导出</el-button>
|
||||
<div class="search-box">
|
||||
<el-input v-model="searchModel.keyWord" placeholder="请输入订单号、用户名" clearable size="small">
|
||||
<el-button slot="append" icon="el-icon-search" @click="search"></el-button>
|
||||
</el-input>
|
||||
</div>
|
||||
</div>
|
||||
<el-table :data="retData.Data" row-key="Id" border size="medium" :height="$getHeight(100)">
|
||||
<el-table-column prop="Created" label="创建日期" width="180"></el-table-column>
|
||||
<el-table-column prop="Tid" label="订单号" width="180"></el-table-column>
|
||||
<el-table-column prop="SellerNick" label="销售人" width="180"></el-table-column>
|
||||
<el-table-column prop="BuyerNick" label="购买人" width="180"></el-table-column>
|
||||
<el-table-column prop="Phone" label="购买人手机号">
|
||||
<template slot-scope="scope">
|
||||
<phoneHide :text="scope.row.Phone"></phoneHide>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="Price" label="单价"></el-table-column>
|
||||
<el-table-column prop="Num" label="数量"></el-table-column>
|
||||
<el-table-column prop="TotalFee" label="订单金额"></el-table-column>
|
||||
<el-table-column prop="Payment" label="实付金额"></el-table-column>
|
||||
</el-table>
|
||||
<div class="block">
|
||||
<el-pagination
|
||||
v-if="retData.Data.length>0"
|
||||
@current-change="get"
|
||||
:current-page.sync="searchModel.PageIndex"
|
||||
:page-size="50"
|
||||
layout="total,prev, pager, next"
|
||||
:total="retData.TotalCount"
|
||||
></el-pagination>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
name: "treeTable",
|
||||
components: {
|
||||
phoneHide: () => import("@/components/common/phonehide")
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
loading: false,
|
||||
retData: { TotalCount: 0, Data: [] },
|
||||
searchModel: {
|
||||
PageIndex: 1,
|
||||
keyWord: "",
|
||||
Btime: "",
|
||||
Etime: ""
|
||||
},
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.$store.commit("setCurrentNav","订单管理>>淘宝订单")
|
||||
this.get();
|
||||
},
|
||||
methods: {
|
||||
search(){
|
||||
this.searchModel.PageIndex=1;
|
||||
this.get();
|
||||
},
|
||||
get() {
|
||||
this.$api.get("sells/v1/taobao/page", this.searchModel).then(res => {
|
||||
this.retData = res;
|
||||
});
|
||||
},
|
||||
dataExport(){
|
||||
this.$api.getDownloadFile("/sells/v1/taobao/Export", this.searchModel);
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<style scoped>
|
||||
</style>
|
||||
Reference in New Issue
Block a user