Commit deb1cf39 authored by 黄奎's avatar 黄奎

页面修改

parent e16b61bc
<style> <style>
.baseSet_Title { .baseSet_Title {
width: 120px !important; width: 120px !important;
padding: 18px 0 0 16px; padding: 18px 0 0 16px;
text-align: right; text-align: right;
} }
.CommissionDetail .border-bottom { .CommissionDetail .border-bottom {
padding-bottom: 5px; padding-bottom: 5px;
margin-bottom: 5px; margin-bottom: 5px;
} }
.CommissionDetail .text-bottom { .CommissionDetail .text-bottom {
height: 32px; height: 32px;
line-height: 32px; line-height: 32px;
margin-bottom: 10px; margin-bottom: 10px;
} }
.CommissionDetail ._icon_btn i.icon-sousuo { .CommissionDetail ._icon_btn i.icon-sousuo {
background-color: #47bf8c; background-color: #47bf8c;
} }
.CommissionDetail ._icon_btn i { .CommissionDetail ._icon_btn i {
width: 26px; width: 26px;
height: 26px; height: 26px;
display: inline-block; display: inline-block;
...@@ -31,186 +31,85 @@ ...@@ -31,186 +31,85 @@
margin-right: 10px; margin-right: 10px;
cursor: pointer; cursor: pointer;
outline: none; outline: none;
} }
.CommissionDetail .el-table td, .CommissionDetail .el-table td,
.el-table th { .el-table th {
padding: 5px 0; padding: 5px 0;
} }
</style> </style>
<template> <template>
<div class="page-body CommissionDetail"> <div class="page-body CommissionDetail">
<div class="page-search row items-center"> <div class="page-search row items-center">
<div class="col row wrap q-mr-lg q-col-gutter-md"> <div class="col row wrap q-mr-lg q-col-gutter-md">
<div style="margin-right: 10px;"> <div style="margin-right: 10px;">
<q-btn <q-btn color="primary" size="11px" label="返回" @click="goreturn" style="margin-left:10px" />
color="primary"
size="11px"
label="返回"
@click="goreturn"
style="margin-left:10px"
/>
</div> </div>
<div class="col row wrap q-mr-lg q-col-gutter-md"> <div class="col row wrap q-mr-lg q-col-gutter-md">
<div class="col-3" v-if="isShowFrom"> <div class="col-3" v-if="isShowFrom">
<q-select <q-select filled stack-label :disable="!isShowFrom" input-debounce="0" option-value="Id" @input="getlaiyuan"
filled option-label="Name" v-model="msg.OrderSourceType" :options="customFromList" label="返佣类型" dense emit-value
stack-label map-options>
:disable="!isShowFrom"
input-debounce="0"
option-value="Id"
@input="getlaiyuan"
option-label="Name"
v-model="msg.OrderSourceType"
:options="customFromList"
label="返佣类型"
dense
emit-value
map-options
>
</q-select> </q-select>
</div> </div>
<div <div class="col-3" v-if="msg.OrderSourceType == 1 || msg.OrderSourceType == 3">
class="col-3" <q-select filled stack-label clearable v-model="msg.UserDept" dense :options="DepartmentList" use-input
v-if="msg.OrderSourceType == 1 || msg.OrderSourceType == 3" @input="getList(), getEmployeeList()" label="部门" @filter="filterEmployee" option-label="DeptName"
> option-value="DeptId" emit-value map-options>
<q-select
filled
stack-label
clearable
v-model="msg.UserDept"
dense
:options="DepartmentList"
use-input
@input="getList(), getEmployeeList()"
label="部门"
@filter="filterEmployee"
option-label="DeptName"
option-value="DeptId"
emit-value
map-options
>
<template v-slot:no-option> <template v-slot:no-option>
<q-item> <q-item>
<q-item-section class="text-grey" <q-item-section class="text-grey">未找到相关数据</q-item-section>
>未找到相关数据</q-item-section
>
</q-item> </q-item>
</template> </template>
</q-select> </q-select>
</div> </div>
<div <div class="col-3" v-if="msg.OrderSourceType == 1 || msg.OrderSourceType == 3">
class="col-3" <q-select filled stack-label clearable v-model="msg.OrderSourceId" dense :options="myEmployeeList" use-input
v-if="msg.OrderSourceType == 1 || msg.OrderSourceType == 3" @input="getList" label="人员" @filter="filterEmployee" option-label="EmployeeName" option-value="Id"
> emit-value map-options>
<q-select
filled
stack-label
clearable
v-model="msg.OrderSourceId"
dense
:options="myEmployeeList"
use-input
@input="getList"
label="人员"
@filter="filterEmployee"
option-label="EmployeeName"
option-value="Id"
emit-value
map-options
>
<template v-slot:no-option> <template v-slot:no-option>
<q-item> <q-item>
<q-item-section class="text-grey" <q-item-section class="text-grey">未找到相关数据</q-item-section>
>未找到相关数据</q-item-section
>
</q-item> </q-item>
</template> </template>
</q-select> </q-select>
</div> </div>
<div class="col-3" v-if="msg.OrderSourceType == 2"> <div class="col-3" v-if="msg.OrderSourceType == 2">
<q-select <q-select filled stack-label v-model="msg.OrderSourceId" clearable dense :options="customList" use-input
filled @input="getList" label="关联同行" @filter="filterFn" option-label="CustomerName" option-value="CustomerId"
stack-label emit-value map-options>
v-model="msg.OrderSourceId"
clearable
dense
:options="customList"
use-input
@input="getList"
label="关联同行"
@filter="filterFn"
option-label="CustomerName"
option-value="CustomerId"
emit-value
map-options
>
<template v-slot:no-option> <template v-slot:no-option>
<q-item> <q-item>
<q-item-section class="text-grey" <q-item-section class="text-grey">未找到相关数据</q-item-section>
>未找到相关数据</q-item-section
>
</q-item> </q-item>
</template> </template>
</q-select> </q-select>
</div> </div>
<div class="col-3" v-if="msg.OrderSourceType == 4"> <div class="col-3" v-if="msg.OrderSourceType == 4">
<q-select <q-select filled clearable stack-label v-model="msg.OrderSourceId" dense :options="InvitationList" use-input
filled @input="getList" label="转介人" @filter="filterFnStudent" option-label="StuName" option-value="StuId"
clearable emit-value map-options>
stack-label
v-model="msg.OrderSourceId"
dense
:options="InvitationList"
use-input
@input="getList"
label="转介人"
@filter="filterFnStudent"
option-label="StuName"
option-value="StuId"
emit-value
map-options
>
<template v-slot:no-option> <template v-slot:no-option>
<q-item> <q-item>
<q-item-section class="text-grey" <q-item-section class="text-grey">未找到相关数据</q-item-section>
>未找到相关数据</q-item-section
>
</q-item> </q-item>
</template> </template>
</q-select> </q-select>
</div> </div>
<div class="col-3" style="float:right;"> <div class="col-3" style="float:right;">
<q-btn <q-btn color="accent" class="q-mr-md" size="sm" icon="download" style="margin-top:6px;"
color="accent" @click="DownLoadCommissionUserList" label="下载" />
class="q-mr-md"
size="sm"
icon="download"
style="margin-top:6px;"
@click="DownLoadCommissionUserList"
label="下载"
/>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<template> <template>
<el-table <el-table ref="filterTable" :data="tableData" v-loading="loading"
ref="filterTable" :header-cell-style="{ backgroundColor: '#f5f6f7', color: '#a8a8b3' }" border style="width: 100%">
:data="tableData"
v-loading="loading"
:header-cell-style="{ backgroundColor: '#f5f6f7', color: '#a8a8b3' }"
border
style="width: 100%"
>
<el-table-column prop="SchoolName" label="校区"></el-table-column> <el-table-column prop="SchoolName" label="校区"></el-table-column>
<el-table-column prop="UserDeptName" label="部门"></el-table-column> <el-table-column prop="UserDeptName" label="部门"></el-table-column>
<el-table-column <el-table-column prop="UserName" label="人员" :filters="UserNamelist" :filter-method="filterHandler">
prop="UserName"
label="人员"
:filters="UserNamelist"
:filter-method="filterHandler"
>
</el-table-column> </el-table-column>
<el-table-column label="类型"> <el-table-column label="类型">
<template slot-scope="scope"> <template slot-scope="scope">
...@@ -223,33 +122,15 @@ ...@@ -223,33 +122,15 @@
{{ scope.row.OrderSourceType == 4 ? "学员" : "" }} {{ scope.row.OrderSourceType == 4 ? "学员" : "" }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="StudentCount" label="学生数量" sortable :sort-method="StudentCount"></el-table-column>
prop="StudentCount" <el-table-column prop="CommissionMoeny" label="提成金额" sortable :sort-method="CommissionMoeny"></el-table-column>
label="学生数量"
sortable
:sort-method="StudentCount"
></el-table-column>
<el-table-column
prop="CommissionMoeny"
label="提成金额"
sortable
:sort-method="CommissionMoeny"
></el-table-column>
<el-table-column label="操作"> <el-table-column label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="_icon_btn"> <div class="_icon_btn">
<el-tooltip <el-tooltip class="item" effect="dark" content="查看" placement="top">
class="item" <i class="iconfont icon-sousuo" @click="
effect="dark"
content="查看"
placement="top"
>
<i
class="iconfont icon-sousuo"
@click="
goUrl('returnPassbook/returnpassbookStatistics', scope.row) goUrl('returnPassbook/returnpassbookStatistics', scope.row)
" "></i>
></i>
</el-tooltip> </el-tooltip>
</div> </div>
</template> </template>
...@@ -259,18 +140,37 @@ ...@@ -259,18 +140,37 @@
</div> </div>
</template> </template>
<script> <script>
import { GetClassTypePageList } from "../../../api/system/index"; import {
import { GetStudentList } from "../../../api/course/class"; GetClassTypePageList
import { getCommissionUserList } from "../../../api/finance/index"; } from "../../../api/system/index";
import { getStudentDorpDownList } from "../../../api/school/index"; import {
GetStudentList
} from "../../../api/course/class";
import {
getCommissionUserList
} from "../../../api/finance/index";
import {
getStudentDorpDownList
} from "../../../api/school/index";
import { getDeptList } from "../../../api/system/dept"; import {
getDeptList
} from "../../../api/system/dept";
import { queryEmployee } from "../../../api/users/user"; import {
import { CreateTypeList, GetCustomerList } from "../../../api/sale/sale"; queryEmployee
import { EduDownLoad } from "../../../api/common/common"; } from "../../../api/users/user";
import { mapState } from "vuex"; import {
export default { CreateTypeList,
GetCustomerList
} from "../../../api/sale/sale";
import {
EduDownLoad
} from "../../../api/common/common";
import {
mapState
} from "vuex";
export default {
meta: { meta: {
title: "销售提成详情" title: "销售提成详情"
}, },
...@@ -292,8 +192,7 @@ export default { ...@@ -292,8 +192,7 @@ export default {
pageCount: 0, pageCount: 0,
persistent: false, persistent: false,
tableData: [], tableData: [],
StatusList: [ StatusList: [{
{
Id: "-2", Id: "-2",
Name: "不限" Name: "不限"
}, },
...@@ -550,15 +449,13 @@ export default { ...@@ -550,15 +449,13 @@ export default {
}); });
}, },
goUrl(path, row) { goUrl(path, row) {
this.$router.push({ var newpath = "/financial/" + path;
path: "/financial/" + path, this.OpenNewUrl(newpath, {
query: {
preriodId: this.$route.query.id, preriodId: this.$route.query.id,
CommissionType: this.$route.query.CommissionType, CommissionType: this.$route.query.CommissionType,
OrderSourceType: row.OrderSourceType, OrderSourceType: row.OrderSourceType,
OrderSourceId: row.OrderSourceId, OrderSourceId: row.OrderSourceId,
blank: "y" blank: "y"
}
}); });
}, },
filterHandler(value, row, column) { filterHandler(value, row, column) {
...@@ -575,8 +472,10 @@ export default { ...@@ -575,8 +472,10 @@ export default {
this.$router.go(-1); this.$router.go(-1);
} }
} }
}; };
</script> </script>
<style lang="sass"> <style lang="sass">
@import url('~assets/css/table.sass') @import url('~assets/css/table.sass')
</style> </style>
...@@ -42,6 +42,7 @@ ...@@ -42,6 +42,7 @@
.el-table th { .el-table th {
padding: 5px 0; padding: 5px 0;
} }
</style> </style>
<template> <template>
<div class="page-body ReturnperiodsList"> <div class="page-body ReturnperiodsList">
...@@ -270,24 +271,11 @@ ...@@ -270,24 +271,11 @@
}) })
}, },
goUrl(id) { goUrl(id) {
this.$router.push({ this.OpenNewUrl("/financial/returnPassbook/ReturnUserList", {
path: '/financial/returnPassbook/ReturnUserList',
query: {
"id": id, "id": id,
"CommissionType": 1, "CommissionType": 1,
blank: 'y', blank: 'y',
} });
})
},
goUrl(id) {
this.$router.push({
path: '/financial/returnPassbook/ReturnUserList',
query: {
"id": id,
"CommissionType": 1,
blank: 'y',
}
})
}, },
handleCurrentChanges(val) { handleCurrentChanges(val) {
this.msg.PageIndex = val; this.msg.PageIndex = val;
...@@ -295,7 +283,9 @@ ...@@ -295,7 +283,9 @@
}, },
}, },
} }
</script> </script>
<style lang="sass"> <style lang="sass">
@import url('~assets/css/table.sass') @import url('~assets/css/table.sass')
</style> </style>
...@@ -81,7 +81,7 @@ export default { ...@@ -81,7 +81,7 @@ export default {
//域名管理对象 //域名管理对象
Vue.prototype.domainManager = function () { Vue.prototype.domainManager = function () {
let domainUrl = 'http://192.168.10.46'; let domainUrl = 'http://192.168.10.214';
let viewFileUrl = 'http://192.168.10.214:8120'; let viewFileUrl = 'http://192.168.10.214:8120';
let mallUrl = "http://192.168.10.2:8088"; let mallUrl = "http://192.168.10.2:8088";
......
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