Commit 5a7ee97d authored by 罗超's avatar 罗超

订单统计测试1

parent c050244d
.DS_Store
node_modules
/dist
src/plugins/index.js
# local env files
.env.local
......
......@@ -167,24 +167,68 @@
:fit="true"
:header-cell-style="headStyle"
v-loading="loading"
:summary-method="getStatModel"
show-summary
>
<el-table-column fixed prop="EnterName" label="业务员">
<template slot-scope="scope">
<div v-if="scope.row.OrderId === 0">
合计
</div>
<div v-else>
{{scope.row.EnterName}}
</div>
</template>
</el-table-column>
<el-table-column fixed prop="OrderId" label="订单号">
<template slot-scope="scope">
<div v-if="scope.row.OrderId === 0">
---
</div>
<div v-else>
{{scope.row.OrderId}}
</div>
</template>
</el-table-column>
<el-table-column fixed prop="OrderId" label="订单号"> </el-table-column>
<el-table-column fixed prop="GuestName" label="客人名">
<template slot-scope="scope">
<div v-if="scope.row.OrderId === 0">
---
</div>
<div v-else>
{{scope.row.GuestName}}
</div>
</template>
</el-table-column>
<el-table-column prop="city" label="性质" width="120">
<el-table-column prop="city" label="性质">
<template slot-scope="scope">
<span v-if="scope.row.GuestCount == 1">单人</span>
<div v-if="scope.row.OrderId === 0">
---
</div>
<div v-else>
<span v-if="scope.row.GuestCount == 1">单人</span>
<span v-else>多人</span>
</div>
</template>
</el-table-column>
<el-table-column prop="StartCityName" label="行程时间">
<el-table-column prop="StartCityName" label="行程时间" width="120">
<template slot-scope="scope">
<div v-if="scope.row.OrderId === 0">
---
</div>
<div v-else>
{{scope.row.StartCityName}}
</div>
</template>
</el-table-column>
<el-table-column prop="GuestCount" label="人数"> </el-table-column>
<el-table-column prop="GuestCount" label="人数"></el-table-column>
<el-table-column prop="TicketStatusName" label="状态">
<template slot-scope="scope">
<div v-if="scope.row.OrderId === 0">
---
</div>
<div v-else>
{{scope.row.TicketStatusName}}
</div>
</template>
</el-table-column>
<el-table-column label="营业收入" width="960">
<el-table-column prop="TicketMoney" label="单机票款" width="100">
......@@ -253,13 +297,19 @@
</el-table-column>
<el-table-column prop="DiJieCost" label="地接成本"> </el-table-column>
<el-table-column prop="MealCost" label="套餐成本"> </el-table-column>
<el-table-column prop="MealCost" label="其他成本"> </el-table-column>
<el-table-column prop="OtherCost" label="其他成本"> </el-table-column>
<el-table-column prop="MealCost" label="合计数"> </el-table-column>
<el-table-column prop="zip" label="已付款"> </el-table-column>
</el-table-column>
<el-table-column prop="BackMoney" label="退款费用"> </el-table-column>
<el-table-column prop="TaxMoney" label="平台费用"> </el-table-column>
<el-table-column prop="Profit" label="订单毛利"> </el-table-column>
<el-table-column prop="ProfitRate" label="毛利率"> </el-table-column>
<el-table-column prop="ProfitRate" label="毛利率">
<template slot-scope="scope">
<div>
{{scope.row.ProfitRate}}%
</div >
</template>
</el-table-column>
</el-table>
<el-pagination
......@@ -371,23 +421,23 @@ export default {
});
},
//获取表格数据
getList() {
getList() {
this.loading = true;
this.apipost(
"/api/Order/GetCRMGuestOrderCheckPageList",
this.apipost(
"/api/Order/GetCRMGuestOrderCheckPageList_v2",
this.msg,
(res) => {
this.loading = false;
if (res.data.resultCode == 1) {
let data = res.data.data.Data.pageData;
this.StatModel = res.data.data.StatModel
let data = res.data.data.pageData;
this.tableData = data;
this.total = res.data.data.Data.count;
this.total = res.data.data.count;
} else {
this.$message.error(res.data.message);
}
}
);
},
//分页
handleCurrentChange(val) {
......@@ -416,33 +466,6 @@ export default {
this.msg,
"订单表.xls"
);
},
//合计
getStatModel(){
let list = Object.values(this.StatModel)
const arr = []
arr.length = 25
console.log(arr)
let newArr = arr.map((index,item)=>{
console.log(item)
return item
})
console.log(newArr,'新数组')
// for(let i=0;i<arr.length;i++){
// if(i === 0){
// item = '合计'
// }else if(i !=0 && i <= 10){
// item = 'N/A'
// }else{
// item = 20
// }
// }
//console.log(newArr)
return []
}
},
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment