Commit 40220e17 authored by guoyou's avatar guoyou

总公司报表

parent 0524b615
import fetch from 'utils/fetch'; import fetch from 'utils/fetch';
// 員工業績報表列表
export function getDate(query) { export function getDate(query) {
return fetch({ return fetch({
url: 'api/admin/staff_statistics/page', url: 'api/admin/staff_statistics/page',
...@@ -8,7 +8,7 @@ export function getDate(query) { ...@@ -8,7 +8,7 @@ export function getDate(query) {
data: query data: query
}); });
} }
// 員工業績報表導出
export function exports(query) { export function exports(query) {
return fetch({ return fetch({
url: 'api/admin/staff_statistics/export', url: 'api/admin/staff_statistics/export',
...@@ -17,3 +17,22 @@ export function exports(query) { ...@@ -17,3 +17,22 @@ export function exports(query) {
responseType: 'blob' responseType: 'blob'
}); });
} }
// 員工業績列表
export function companyList(query) {
return fetch({
url: '/api/order/report/form/list',
method: 'post',
data: query
});
}
// 員工業績導出
export function excel(query) {
return fetch({
url: '/api/order/report/form/excel',
method: 'post',
data: query,
responseType: 'blob'
});
}
\ No newline at end of file
...@@ -17,3 +17,10 @@ export function statistic(param) { ...@@ -17,3 +17,10 @@ export function statistic(param) {
}) })
} }
export function findReserveType(param) {
return fetch({
url: '/departure/findReserveType ',
method: 'get',
params: param
})
}
...@@ -382,7 +382,6 @@ ...@@ -382,7 +382,6 @@
this.branchCompany_btn_del = this.elements['branchCompany:btn_del']; this.branchCompany_btn_del = this.elements['branchCompany:btn_del'];
this.branchCompany_btn_add = this.elements['branchCompany:btn_add']; this.branchCompany_btn_add = this.elements['branchCompany:btn_add'];
this.compnay_stock_update = this.elements['compnay:stock:update'] this.compnay_stock_update = this.elements['compnay:stock:update']
debugger
}, },
computed: { computed: {
...mapGetters([ ...mapGetters([
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div class="app-container calendar-list-container" v-loading.body="showLoadingBody"> <div class="app-container calendar-list-container" v-loading.body="showLoadingBody">
<div> <div>
<div class="filter-container" ref="filter-container"> <div class="filter-container" ref="filter-container">
<el-form ref="queryForm" :inline="inline" :model="listQuery" label-width="60px"> <el-form ref="queryForm" :inline="inline" :model="listQuery" label-width="100px">
<el-row> <el-row>
<el-form-item label="手机号"> <el-form-item label="手机号">
<el-input v-model.number="listQuery.phone" placeholder="请输入手机号"></el-input> <el-input v-model.number="listQuery.phone" placeholder="请输入手机号"></el-input>
...@@ -31,10 +31,6 @@ ...@@ -31,10 +31,6 @@
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- <el-col :span="4"></el-col>
<el-col :span="3"></el-col>
<el-col :span="4"></el-col>
<el-col :span="4"></el-col> -->
<el-button class="filter-item" type="primary" v-waves icon="search" @click="handleFilter">搜索</el-button> <el-button class="filter-item" type="primary" v-waves icon="search" @click="handleFilter">搜索</el-button>
<el-button class="filter-item" type="primary" @click="giveCunpon" style="float: right;">+ 发券</el-button> <el-button class="filter-item" type="primary" @click="giveCunpon" style="float: right;">+ 发券</el-button>
<!-- <el-button class="filter-item" type="primary" style="float: right;">+ 批量发券</el-button> --> <!-- <el-button class="filter-item" type="primary" style="float: right;">+ 批量发券</el-button> -->
......
<template> <template>
<div class="app-container calendar-list-container" v-loading.body="showLoadingBody"> <div class="app-container calendar-list-container" v-loading.body="showLoadingBody">
<div> <div class="filter-container" ref="filter-container">
<div class="filter-container" ref="filter-container"> <el-form ref="queryForm" :inline="inline" :model="listQuery">
<el-form ref="queryForm" :inline="inline" :model="listQuery" label-width="50px"> <el-form-item label="标题">
<el-row> <el-input v-model.number="listQuery.title" placeholder="请输入标题"></el-input>
<el-form-item label="标题"> </el-form-item>
<el-input v-model.number="listQuery.title" placeholder="请输入标题"></el-input> <el-form-item label="类型">
</el-form-item> <el-select class="filter-item" v-model="listQuery.channel" placeholder="类型">
<el-form-item> <el-option key label="全部" value></el-option>
<el-select class="filter-item" v-model="listQuery.channel" placeholder="类型"> <el-option
<el-option key label="全部" value></el-option> v-for="(item,index) in channelType"
<el-option :key="index"
v-for="(item,index) in channelType" :label="item.val"
:key="index" :value="item.id"
:label="item.val" ></el-option>
:value="item.id" </el-select>
></el-option> </el-form-item>
</el-select> <el-button class="filter-item" type="primary" v-waves icon="search" @click="handleFilter">搜索</el-button>
</el-form-item> <el-button class="filter-item" type="primary" @click="addCunpon" style="float: right;">+ 添加优惠券</el-button>
<el-col :span="5"></el-col> </el-form>
<el-col :span="5"></el-col> </div>
<el-button class="filter-item" type="primary" v-waves icon="search" @click="handleFilter">搜索</el-button> <el-table :key="tableKey" :data="list" border fit highlight-current-row style="width: 100%;">
<el-button class="filter-item" type="primary" @click="addCunpon" style="float: right;">+ 添加优惠券</el-button> <el-table-column type="index" align="center" label="ID" width="100">
</el-row> <template scope="scope">
</el-form> <span>{{scope.row.id}}</span>
</div> </template>
<el-table :key="tableKey" :data="list" border fit highlight-current-row style="width: 100%;"> </el-table-column>
<el-table-column type="index" align="center" label="ID" width="100"> <el-table-column align="center" label="优惠券标题">
<template scope="scope"> <template scope="scope">
<span>{{scope.row.id}}</span> <span>{{scope.row.title}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="优惠券标题"> <el-table-column align="center" label="类型">
<template scope="scope"> <template scope="scope">
<span>{{scope.row.title}}</span> <span v-if="scope.row.channel==0">全平台</span>
</template> <span v-if="scope.row.channel==1">租车</span>
</el-table-column> <span v-if="scope.row.channel==2">旅游</span>
<el-table-column align="center" label="类型"> <span v-if="scope.row.channel==3">营地</span>
<template scope="scope"> <span v-if="scope.row.channel==4">会员</span>
<span v-if="scope.row.channel==0">全平台</span> </template>
<span v-if="scope.row.channel==1">租车</span> </el-table-column>
<span v-if="scope.row.channel==2">旅游</span> <el-table-column align="center" label="金额">
<span v-if="scope.row.channel==3">营地</span> <template scope="scope">
<span v-if="scope.row.channel==4">会员</span> <span>{{scope.row.usedAmount}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="金额"> <el-table-column align="center" label="已领取">
<template scope="scope"> <template scope="scope">
<span>{{scope.row.usedAmount}}</span> <span>{{scope.row.takeCount}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="已领取"> <el-table-column align="center" label="已使用">
<template scope="scope"> <template scope="scope">
<span>{{scope.row.takeCount}}</span> <span>{{scope.row.usedCount}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="已使用"> <el-table-column align="center" label="创建时间">
<template scope="scope"> <template scope="scope">
<span>{{scope.row.usedCount}}</span> <span>{{scope.row.crtTimeStr}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="创建时间"> <el-table-column align="center" label="操作" width="150" fixed="right">
<template scope="scope"> <template scope="scope">
<span>{{scope.row.crtTimeStr}}</span> <el-button
</template> size="small"
</el-table-column> class="el-button el-button--text el-button--small"
<el-table-column align="center" label="操作" width="150" fixed="right"> @click="handleUpdate(scope.row)"
<template scope="scope"> >编辑</el-button>
<el-button <el-button
size="small" class="el-button el-button--text el-button--small"
class="el-button el-button--text el-button--small" style="color:red;"
@click="handleUpdate(scope.row)" size="small"
>编辑</el-button> @click="deleteHandler(scope.row)"
<el-button >删除</el-button>
class="el-button el-button--text el-button--small" </template>
style="color:red;" </el-table-column>
size="small" </el-table>
@click="deleteHandler(scope.row)" <div v-show="!listLoading" class="pagination-container">
>删除</el-button> <el-pagination
</template> @size-change="handleSizeChange"
</el-table-column> @current-change="handleCurrentChange"
</el-table> :current-page.sync="listQuery.page"
<div v-show="!listLoading" class="pagination-container"> :page-sizes="[10,20,30,40,50]"
<el-pagination :page-size="listQuery.limit"
@size-change="handleSizeChange" layout="total, sizes, prev, pager, next, jumper"
@current-change="handleCurrentChange" :total="total"
:current-page.sync="listQuery.page" ></el-pagination>
:page-sizes="[10,20,30,40,50]"
:page-size="listQuery.limit"
layout="total, sizes, prev, pager, next, jumper"
:total="total"
></el-pagination>
</div>
</div> </div>
<!-- 优惠券编辑 --> <!-- 优惠券编辑 -->
......
This diff is collapsed.
...@@ -10,8 +10,6 @@ ...@@ -10,8 +10,6 @@
<el-form-item label="手机号"> <el-form-item label="手机号">
<el-input v-model.number="listQuery.phone" placeholder="请输入手机号"></el-input> <el-input v-model.number="listQuery.phone" placeholder="请输入手机号"></el-input>
</el-form-item> </el-form-item>
<el-col :span="5"></el-col>
<el-col :span="5"></el-col>
<el-button class="filter-item" type="primary" v-waves icon="search" @click="handleFilter">搜索</el-button> <el-button class="filter-item" type="primary" v-waves icon="search" @click="handleFilter">搜索</el-button>
<el-button class="filter-item" type="primary" v-waves icon="search" @click="clearFilter">清除搜索</el-button> <el-button class="filter-item" type="primary" v-waves icon="search" @click="clearFilter">清除搜索</el-button>
</el-row> </el-row>
......
<template> <template>
<div class="app-container calendar-list-container"> <div class="app-container calendar-list-container">
<div class="filter-container"> <div class="filter-container">
<el-form ref="queryForm" :inline="true" :model="listQuery"> <el-form ref="queryForm" :inline="true" :model="listQuery" label-width="100px">
<el-row> <el-row>
<el-form-item label="手机号"> <el-form-item label="手机号">
<el-input v-model.number="listQuery.mobile" placeholder="请输入手机号"></el-input> <el-input v-model.number="listQuery.mobile" placeholder="请输入手机号"></el-input>
......
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