Commit 50b791cf authored by 罗超's avatar 罗超

1

parent 3ff9efb1
...@@ -26,6 +26,16 @@ ...@@ -26,6 +26,16 @@
</div> </div>
</div> </div>
<q-space /> <q-space />
<!-- && AuthorityObj.isShowEdit -->
<q-btn
size="sm"
icon="delete"
color="accent"
label="删除"
class="q-mr-md"
v-if="detailData.ApproveState == 0"
@click="RemoveCustomer"
/>
<q-btn <q-btn
color="accent" color="accent"
size="sm" size="sm"
...@@ -79,8 +89,7 @@ ...@@ -79,8 +89,7 @@
</q-dialog> </q-dialog>
</template> </template>
<script> <script>
import { GetCustomer, SetCustomer } from "../../../api/sale/peemanagement"; import { GetCustomer, SetCustomer ,RemoveCustomer,setCustomerCareOf} from "../../../api/sale/peemanagement";
import { setCustomerCareOf } from "../../../api/sale/peemanagement";
import baseInfo from "./baseInfo.vue"; import baseInfo from "./baseInfo.vue";
import right from "./conRight.vue"; import right from "./conRight.vue";
export default { export default {
...@@ -97,13 +106,13 @@ export default { ...@@ -97,13 +106,13 @@ export default {
type: Object, type: Object,
default: null default: null
}, },
empList:{ empList: {
type:Array, type: Array,
default:()=>[] default: () => []
}, },
tabId:{ tabId: {
type:Number, type: Number,
default:1 default: 1
} }
}, },
data() { data() {
...@@ -113,6 +122,7 @@ export default { ...@@ -113,6 +122,7 @@ export default {
CustomerId: 0, CustomerId: 0,
CustomerName: "", CustomerName: "",
ContactNumber: "", ContactNumber: "",
ApproveState:0,
Sex: 1, Sex: 1,
Fax: "", Fax: "",
QQ: "", QQ: "",
...@@ -127,20 +137,20 @@ export default { ...@@ -127,20 +137,20 @@ export default {
CustomerType: 1, CustomerType: 1,
EnterpriseName: "" EnterpriseName: ""
}, },
//员工列表 //员工列表
employeeList: [], employeeList: [],
myEmployeeList: [], myEmployeeList: [],
isShowTrans: false, isShowTrans: false,
TransferMsg: { TransferMsg: {
CustomerIds: "", CustomerIds: "",
EmpId: "" EmpId: ""
}, }
}; };
}, },
mounted() { mounted() {
this.initObj(); this.initObj();
this.employeeList=this.empList this.employeeList = this.empList;
this.myEmployeeList=this.empList this.myEmployeeList = this.empList;
}, },
methods: { methods: {
//关闭弹窗 //关闭弹窗
...@@ -158,6 +168,7 @@ export default { ...@@ -158,6 +168,7 @@ export default {
if (res.Code == 1) { if (res.Code == 1) {
let tempData = res.Data; let tempData = res.Data;
this.detailData.CustomerId = tempData.CustomerId; this.detailData.CustomerId = tempData.CustomerId;
this.detailData.ApproveState = tempData.ApproveState;
this.detailData.CustomerName = tempData.CustomerName; this.detailData.CustomerName = tempData.CustomerName;
this.detailData.ContactNumber = tempData.ContactNumber; this.detailData.ContactNumber = tempData.ContactNumber;
this.detailData.Sex = tempData.Sex; this.detailData.Sex = tempData.Sex;
...@@ -177,6 +188,7 @@ export default { ...@@ -177,6 +188,7 @@ export default {
}); });
} else { } else {
this.detailData.CustomerId = 0; this.detailData.CustomerId = 0;
this.detailData.ApproveState =0
this.detailData.CustomerName = ""; this.detailData.CustomerName = "";
this.detailData.ContactNumber = ""; this.detailData.ContactNumber = "";
this.detailData.Sex = 1; this.detailData.Sex = 1;
...@@ -213,7 +225,7 @@ export default { ...@@ -213,7 +225,7 @@ export default {
saveTransForm() { saveTransForm() {
this.$refs.transfer.validate(); this.$refs.transfer.validate();
if (this.$refs.transfer.hasError) return; if (this.$refs.transfer.hasError) return;
this.TransferMsg.CustomerIds = this.rowId this.TransferMsg.CustomerIds = this.rowId;
setCustomerCareOf(this.TransferMsg).then(res => { setCustomerCareOf(this.TransferMsg).then(res => {
this.$q.notify({ this.$q.notify({
icon: "iconfont icon-chenggong", icon: "iconfont icon-chenggong",
...@@ -223,6 +235,7 @@ export default { ...@@ -223,6 +235,7 @@ export default {
position: "top" position: "top"
}); });
this.isShowTrans = false; this.isShowTrans = false;
this.$emit("success");
}); });
}, },
//筛选员工 //筛选员工
...@@ -232,7 +245,48 @@ export default { ...@@ -232,7 +245,48 @@ export default {
v => v.EmployeeName.indexOf(val) > -1 v => v.EmployeeName.indexOf(val) > -1
); );
}); });
} },
//删除客户
RemoveCustomer(obj) {
let that = this;
var message =
"您正在进行删除【" +
this.detailData.CustomerName +
"】行为,一旦执行无法找回,是否确认执行?";
this.$q
.dialog({
title: "删除客户",
message: message,
isShowEditClassRoomForm: true,
cancel: {
label: "取消",
flat: true
},
ok: {
label: "确认",
flat: true,
focus: true
}
})
.onOk(() => {
var delMsg = {
CustomerId: this.detailData.CustomerId
};
RemoveCustomer(delMsg).then(res => {
if (res.Code == 1) {
that.$q.notify({
icon: "iconfont icon-chenggong",
color: "accent",
timeout: 2000,
message: "操作成功",
position: "top"
});
that.$emit("success");
that.closeAuditCustomerForm()
}
});
});
},
} }
}; };
</script> </script>
......
...@@ -93,6 +93,11 @@ ...@@ -93,6 +93,11 @@
<div class="flex no-wrap justify-between items-center q-my-lg" v-else @click="showEdit('Address')"> <div class="flex no-wrap justify-between items-center q-my-lg" v-else @click="showEdit('Address')">
<span style="white-space:nowrap">详细地址</span> <span style="white-space:nowrap">详细地址</span>
<span style="max-width:60%" class="ellepsis">{{Data.Address}}</span> <span style="max-width:60%" class="ellepsis">{{Data.Address}}</span>
</div>
<!-- 市场专员 -->
<div class="flex justify-between items-center q-my-lg">
<span>市场专员</span>
<span class="text-grey-6">{{Data.CreateByName}}</span>
</div> </div>
<!-- OpenId --> <!-- OpenId -->
<div class="flex justify-between items-center q-my-lg"> <div class="flex justify-between items-center q-my-lg">
......
<template> <template>
<div> <div>
<q-timeline color="secondary" v-if="logList.length>0"> <q-timeline color="secondary" v-if="logList.length>0">
<q-timeline-entry v-for="(item,index) in logList" :key="index" :title="item.CreateByName"> <q-timeline-entry v-for="(item,index) in logList" :key="index" >
<template #subtitle> <template #subtitle>
<div> <div class="flex justify-between">
<span>{{item.DayStr}}</span><span class="q-ml-md">{{item.TimeStr}}</span><span class="q-ml-md" v-if="item.WeekDay">{{item.WeekDay}}</span> <div>
<span>{{item.DayStr}}</span><span class="q-ml-md">{{item.TimeStr}}</span>
</div>
<div>{{item.CreateByName}}</div>
</div> </div>
</template> </template>
<div> <div>
......
<template> <template>
<div class=" myOrder q-pb-lg"> <div class=" myOrder q-pb-lg">
<div class="row q-my-xs">
<div class="col-6">
<q-input
@input="resetSearch"
clearable
filled
v-model="msg.OrderId"
label="订单号"
dense
maxlength="10"
/>
</div>
</div>
<div class="row wrap q-gutter-xs q-my-xs" v-if="data.Statistics"> <div class="row wrap q-gutter-xs q-my-xs" v-if="data.Statistics">
<div class=" stics"> <div class=" stics">
<span class="stics-name">应收款</span> <span class="stics-name">应收款</span>
...@@ -23,16 +36,8 @@ ...@@ -23,16 +36,8 @@
<span class="stics-name">取消人数</span> <span class="stics-name">取消人数</span>
<span>{{ data.Statistics.CancelNum }}</span> <span>{{ data.Statistics.CancelNum }}</span>
</div> </div>
<div class=" stics">
<span class="stics-name">提成金额</span>
<span>{{ data.Statistics.CommissionMoney }}</span>
</div>
<div class=" stics">
<span class="stics-name">额外奖励</span>
<span>{{ data.Statistics.ExtraRewardMoney }}</span>
</div>
</div> </div>
<div style="width:100%;overflow:auto"> <div style="width:100%;overflow:auto">
<orderlist <orderlist
:dataList="data.List" :dataList="data.List"
...@@ -141,8 +146,7 @@ export default { ...@@ -141,8 +146,7 @@ export default {
AllemployeeList: [], AllemployeeList: [],
TeacherList: [], //关联教师 TeacherList: [], //关联教师
AllTeacherList: [], AllTeacherList: [],
CourseSubjectList: [], //科目列表 CourseSubjectList: [] //科目列表
}; };
}, },
created() { created() {
...@@ -176,7 +180,6 @@ export default { ...@@ -176,7 +180,6 @@ export default {
this.getList(); this.getList();
this.getEmployee(0); this.getEmployee(0);
this.getglteacher(); this.getglteacher();
}, },
methods: { methods: {
queryCourseSubject() { queryCourseSubject() {
...@@ -387,7 +390,7 @@ li { ...@@ -387,7 +390,7 @@ li {
} }
.myOrder .stics { .myOrder .stics {
padding:5px 10px ; padding: 5px 10px;
background: #dddee0; background: #dddee0;
border-radius: 4px; border-radius: 4px;
font-size: 14px; font-size: 14px;
......
...@@ -18,6 +18,16 @@ ...@@ -18,6 +18,16 @@
<span>{{ data.NotSettlementMoney }}</span> <span>{{ data.NotSettlementMoney }}</span>
</div> </div>
</div> </div>
<q-tabs
v-model="tabs"
active-color="primary"
align="left"
style="width:180px;"
class="q-my-xs"
>
<q-tab :name="1" label="返佣明细" />
<q-tab :name="2" label="提现记录" />
</q-tabs>
<q-table <q-table
:pagination="msg" :pagination="msg"
:loading="loading" :loading="loading"
...@@ -28,6 +38,7 @@ ...@@ -28,6 +38,7 @@
:data="dataList" :data="dataList"
:columns="columns" :columns="columns"
row-key="name" row-key="name"
v-if="tabs==1"
> >
<template v-slot:body-cell-ClassName="props"> <template v-slot:body-cell-ClassName="props">
<q-td :props="props" style="padding-right: 0px"> <q-td :props="props" style="padding-right: 0px">
...@@ -45,6 +56,7 @@ ...@@ -45,6 +56,7 @@
/> />
</template> </template>
</q-table> </q-table>
<withdraw v-if="tabs==2" :Type="2"></withdraw>
</div> </div>
</template> </template>
<script> <script>
...@@ -52,7 +64,11 @@ import { ...@@ -52,7 +64,11 @@ import {
getCustomerCommissionPassbook, getCustomerCommissionPassbook,
GetCustomerBalanceDetailPage GetCustomerBalanceDetailPage
} from "../../../api/sale/peemanagement"; } from "../../../api/sale/peemanagement";
import withdraw from './withdraw'
export default { export default {
components:{
withdraw
},
props: { props: {
Id: { Id: {
type: Number, type: Number,
...@@ -128,7 +144,8 @@ export default { ...@@ -128,7 +144,8 @@ export default {
field: "UpdateTimeStr", field: "UpdateTimeStr",
align: "left" align: "left"
} }
] ],
tabs:1,
}; };
}, },
mounted() { mounted() {
......
...@@ -18,6 +18,16 @@ ...@@ -18,6 +18,16 @@
<span>{{ data.NotSettlementMoney }}</span> <span>{{ data.NotSettlementMoney }}</span>
</div> </div>
</div> </div>
<q-tabs
v-model="tabs"
active-color="primary"
align="left"
style="width:180px;"
class="q-my-xs"
>
<q-tab :name="1" label="返佣明细" />
<q-tab :name="2" label="提现记录" />
</q-tabs>
<q-table <q-table
:pagination="msg" :pagination="msg"
:loading="loading" :loading="loading"
...@@ -28,6 +38,7 @@ ...@@ -28,6 +38,7 @@
:data="dataList" :data="dataList"
:columns="columns" :columns="columns"
row-key="name" row-key="name"
v-if="tabs==1"
> >
<template v-slot:body-cell-ClassName="props"> <template v-slot:body-cell-ClassName="props">
<q-td :props="props" style="padding-right: 0px"> <q-td :props="props" style="padding-right: 0px">
...@@ -45,6 +56,7 @@ ...@@ -45,6 +56,7 @@
/> />
</template> </template>
</q-table> </q-table>
<withdraw v-if="tabs==2" :Type="1"></withdraw>
</div> </div>
</template> </template>
<script> <script>
...@@ -52,7 +64,11 @@ import { ...@@ -52,7 +64,11 @@ import {
getCustomerCommissionPassbook, getCustomerCommissionPassbook,
GetCustomerBalanceDetailPage GetCustomerBalanceDetailPage
} from "../../../api/sale/peemanagement"; } from "../../../api/sale/peemanagement";
import withdraw from './withdraw'
export default { export default {
components:{
withdraw
},
props: { props: {
Id: { Id: {
//1返佣 2幸福存折 //1返佣 2幸福存折
...@@ -129,7 +145,8 @@ export default { ...@@ -129,7 +145,8 @@ export default {
field: "UpdateTimeStr", field: "UpdateTimeStr",
align: "left" align: "left"
} }
] ],
tabs:1
}; };
}, },
mounted() { mounted() {
......
This diff is collapsed.
...@@ -16,10 +16,11 @@ ...@@ -16,10 +16,11 @@
flat flat
selection="multiple" selection="multiple"
:selected.sync="selection" :selected.sync="selection"
class="sticky-column-table sticky-right-column-table " :class="sticky"
separator="none" separator="none"
:data="dataList" :data="dataList"
:columns="columns" :columns="columns"
:visible-columns="visibleColumns"
row-key="CustomerId" row-key="CustomerId"
> >
<template v-slot:top="props"> <template v-slot:top="props">
...@@ -78,14 +79,14 @@ ...@@ -78,14 +79,14 @@
</template> </template>
<template v-slot:body-cell-StuNum="props"> <template v-slot:body-cell-StuNum="props">
<q-td> <q-td>
<div class="CustomerName" @click="showDetail(props.row,2)"> <div class="CustomerName" @click="showDetail(props.row, 2)">
{{ props.row.StuNum }} {{ props.row.StuNum }}
</div> </div>
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-OrderNum="props"> <template v-slot:body-cell-OrderNum="props">
<q-td> <q-td>
<div class="CustomerName" @click="showDetail(props.row,3)"> <div class="CustomerName" @click="showDetail(props.row, 3)">
{{ props.row.OrderNum }} {{ props.row.OrderNum }}
</div> </div>
</q-td> </q-td>
...@@ -113,7 +114,7 @@ ...@@ -113,7 +114,7 @@
/> />
<!-- <q-btn flat size="xs" <!-- <q-btn flat size="xs"
icon="edit" color="accent" style="font-weight:400" label="编辑" @click="EditCustom(props.row)" /> --> icon="edit" color="accent" style="font-weight:400" label="编辑" @click="EditCustom(props.row)" /> -->
<q-btn <!-- <q-btn
flat flat
v-if="props.row.ApproveState == 0 && AuthorityObj.isShowEdit" v-if="props.row.ApproveState == 0 && AuthorityObj.isShowEdit"
size="xs" size="xs"
...@@ -122,7 +123,7 @@ ...@@ -122,7 +123,7 @@
style="font-weight:400" style="font-weight:400"
label="删除" label="删除"
@click="RemoveCustomer(props.row)" @click="RemoveCustomer(props.row)"
/> /> -->
<!-- <q-btn <!-- <q-btn
flat flat
v-if="AuthorityObj.isShowBankBook" v-if="AuthorityObj.isShowBankBook"
...@@ -189,9 +190,17 @@ export default { ...@@ -189,9 +190,17 @@ export default {
type: Object, type: Object,
default: null default: null
}, },
empList:{ empList: {
type:Array, type: Array,
default:()=>[] default: () => []
},
visibleColumns: {
type: Array,
default: () => []
},
sticky:{
type:String,
default:""
} }
}, },
components: { components: {
...@@ -250,7 +259,12 @@ export default { ...@@ -250,7 +259,12 @@ export default {
field: "ApproveStateStr", field: "ApproveStateStr",
align: "left" align: "left"
}, },
{
name: "CreateByName",
label: "市场专员",
field: "CreateByName",
align: "left"
},
{ {
name: "CreateTimeStr", name: "CreateTimeStr",
label: "加入时间", label: "加入时间",
...@@ -280,7 +294,7 @@ export default { ...@@ -280,7 +294,7 @@ export default {
isShowRebate: false //是否显示返佣 isShowRebate: false //是否显示返佣
}, },
selection: [], selection: [],
tabId:1, tabId: 1,
TransferMsg: { TransferMsg: {
CustomerIds: "", CustomerIds: "",
EmpId: "" EmpId: ""
...@@ -338,9 +352,9 @@ export default { ...@@ -338,9 +352,9 @@ export default {
this.isShowRightForm = true; this.isShowRightForm = true;
}, },
//客户详情 //客户详情
showDetail(row,tabId=1) { showDetail(row, tabId = 1) {
this.curRowId = row.CustomerId; this.curRowId = row.CustomerId;
this.tabId=tabId this.tabId = tabId;
this.isShowDetailForm = true; this.isShowDetailForm = true;
}, },
//删除客户 //删除客户
...@@ -393,22 +407,24 @@ export default { ...@@ -393,22 +407,24 @@ export default {
this.$emit("success"); this.$emit("success");
}, },
//跳转到幸福存折 //跳转到幸福存折
// gohappyPassbook(item) { gohappyPassbook(item) {
// this.OpenNewUrl("/sale/happyPassbook", { this.OpenNewUrl("/sale/happyPassbook", {
// CustomerId: item.CustomerId CustomerId: item.CustomerId
// }); });
// }, },
//跳转到返佣管理 //跳转到返佣管理
// gohappyCommisson(item) { gohappyCommisson(item) {
// this.OpenNewUrl("/sale/commsionManagement", { this.OpenNewUrl("/sale/commsionManagement", {
// CustomerId: item.CustomerId CustomerId: item.CustomerId
// }); });
// }, },
//同业转交 //同业转交
saveTransForm() { saveTransForm() {
this.$refs.transfer.validate(); this.$refs.transfer.validate();
if(this.$refs.transfer.hasError) return if (this.$refs.transfer.hasError) return;
this.TransferMsg.CustomerIds=this.selection.map(e=>e.CustomerId).toString() this.TransferMsg.CustomerIds = this.selection
.map(e => e.CustomerId)
.toString();
setCustomerCareOf(this.TransferMsg).then(res => { setCustomerCareOf(this.TransferMsg).then(res => {
this.$q.notify({ this.$q.notify({
icon: "iconfont icon-chenggong", icon: "iconfont icon-chenggong",
...@@ -417,7 +433,8 @@ export default { ...@@ -417,7 +433,8 @@ export default {
message: "转交成功", message: "转交成功",
position: "top" position: "top"
}); });
this.isShowTrans = false; this.isShowTrans = false;
this.selection = [];
}); });
}, },
//获取员工列表 //获取员工列表
......
<style> <style>
.page-content p { .page-content p {
margin: 0 !important; margin: 0 !important;
} }
.quetion_Title {
background: transparent !important;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
width: 400px;
}
.quetion_Title {
background: transparent !important;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
width: 400px;
}
</style> </style>
<template> <template>
<div class="page-body"> <div class="page-body">
<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 class="col-3"> <div class="col-3">
<q-input @input="resetSearch" filled clearable v-model="msg.CustomerName" label="同业名称" maxlength="20" /> <q-input
@input="resetSearch"
filled
clearable
v-model="msg.CustomerName"
label="同业名称"
maxlength="20"
/>
</div> </div>
<div class="col-3"> <div class="col-3">
<q-input @input="resetSearch" filled clearable v-model="msg.CustomerId" label="同业ID" maxlength="20" /> <q-input
@input="resetSearch"
filled
clearable
v-model="msg.CustomerId"
label="同业ID"
maxlength="20"
/>
</div> </div>
<div class="col-3"> <div class="col-3">
<q-input @input="resetSearch" filled clearable v-model="msg.ContactNumber" label="电话" maxlength="20" /> <q-input
@input="resetSearch"
filled
clearable
v-model="msg.ContactNumber"
label="电话"
maxlength="20"
/>
</div> </div>
<div class="col-3"> <div class="col-3">
<q-select @input="resetSearch" clearable filled v-model="msg.ApproveState" :options="ApproveStateList" <q-select
emit-value map-options label="审核状态" /> @input="resetSearch"
clearable
filled
v-model="msg.ApproveState"
:options="ApproveStateList"
emit-value
map-options
label="审核状态"
/>
</div> </div>
</div> </div>
</div> </div>
<div class="page-content"> <div class="page-content">
<div> <div>
<q-tabs style="margin-bottom:20px;" v-model="tabCheck" @input="resetSearch()" narrow-indicator dense <q-tabs
align="left" class="text-primary"> style="margin-bottom:20px;"
v-model="tabCheck"
@input="resetSearch()"
narrow-indicator
dense
align="left"
class="text-primary"
>
<q-tab :ripple="false" :name="1" label="正式客户" /> <q-tab :ripple="false" :name="1" label="正式客户" />
<q-tab :ripple="false" :name="2" label="非正式客户" /> <q-tab :ripple="false" :name="2" label="非正式客户" />
<q-tab :ripple="false" :name="3" label="未通过客户" /> <q-tab :ripple="false" :name="3" label="未通过客户" />
<q-tab :ripple="false" :name="4" label="黑名单客户" /> <q-tab :ripple="false" :name="4" label="黑名单客户" />
</q-tabs> </q-tabs>
</div> </div>
<b2bcustomlist :dataList="dataList" :authObj="authObj" :loading="loading" @success="getList"></b2bcustomlist> <b2bcustomlist
<q-pagination class="full-width justify-end" v-model="msg.pageIndex" color="primary" :max="pageCount" :dataList="dataList"
:input="true" @input="changePage" /> :authObj="authObj"
:loading="loading"
@success="getList"
:visibleColumns="visibleColumns"
sticky="sticky-tow-column-table "
></b2bcustomlist>
<q-pagination
class="full-width justify-end"
v-model="msg.pageIndex"
color="primary"
:max="pageCount"
:input="true"
@input="changePage"
/>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import { import { GetCustomerPage, RemoveCustomer } from "../../api/sale/peemanagement";
GetCustomerPage, import b2bcustomlist from "../../components/sale/b2bcustomlist";
RemoveCustomer export default {
} from '../../api/sale/peemanagement'; meta: {
import b2bcustomlist from '../../components/sale/b2bcustomlist'; title: "同行管理"
export default { },
meta: { components: {
title: "同行管理" b2bcustomlist
}, },
components: { data() {
b2bcustomlist return {
}, pageCount: 0,
data() { msg: {
return { pageIndex: 1,
pageCount: 0, pageSize: 12,
msg: { rowsPerPage: 12,
pageIndex: 1, CustomerName: "", //客户名称
pageSize: 12, ContactNumber: "", //联系电话
rowsPerPage: 12, ApproveState: "", //审核状态
CustomerName: '', //客户名称 QCustomerState: "" //账号状态
ContactNumber: "", //联系电话 },
ApproveState: "", //审核状态 loading: false,
QCustomerState: "", //账号状态 visibleColumns: [
"CustomerName",
"CustomerType",
"EnterpriseName",
"ContactNumber",
"StuNum",
"OrderNum",
"OrderSales",
"ApproveStateStr",
"CreateByName",
"CreateTimeStr",
"optioned"
],
tabCheck: 1,
//审核状态列表
ApproveStateList: [
{
label: "通过",
value: "1"
}, },
loading: false, {
tabCheck: 1, label: "拒绝",
//审核状态列表 value: "2"
ApproveStateList: [{
label: "通过",
value: "1",
},
{
label: "拒绝",
value: "2",
},
],
dataList: [],
//判断显示
authObj: {
isShowEdit: true, //显示新增、修改、删除
isShowBankBook: true, //显示幸福存折
isShowRebate: true, //是否显示返佣
} }
],
dataList: [],
//判断显示
authObj: {
isShowEdit: true, //显示新增、修改、删除
isShowBankBook: true, //显示幸福存折
isShowRebate: true //是否显示返佣
} }
};
},
created() {},
mounted() {
this.getList();
},
methods: {
//重新查询
resetSearch() {
this.msg.pageIndex = 1;
this.getList();
}, },
created() {}, //翻页
mounted() { changePage(val) {
this.msg.pageIndex = val;
this.getList(); this.getList();
}, },
methods: { //获取分页数据
//重新查询 getList() {
resetSearch() { this.msg.QCustomerState = this.tabCheck;
this.msg.pageIndex = 1; GetCustomerPage(this.msg)
this.getList(); .then(res => {
},
//翻页
changePage(val) {
this.msg.pageIndex = val;
this.getList()
},
//获取分页数据
getList() {
this.msg.QCustomerState = this.tabCheck;
GetCustomerPage(this.msg).then(res => {
this.dataList = res.Data.PageData; this.dataList = res.Data.PageData;
this.loading = false; this.loading = false;
this.pageCount = res.Data.PageCount; this.pageCount = res.Data.PageCount;
}).catch(() => {
this.loading = false
}) })
} .catch(() => {
this.loading = false;
});
} }
} }
};
</script> </script>
<style lang="sass"> <style lang="sass">
@import url('~assets/css/table.sass') @import url('~assets/css/table.sass')
</style> </style>
<style> <style>
.page-content p { .page-content p {
margin: 0 !important; margin: 0 !important;
} }
.quetion_Title {
background: transparent !important;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
width: 400px;
} .quetion_Title {
background: transparent !important;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
width: 400px;
}
</style> </style>
<template> <template>
<div class="page-body"> <div class="page-body">
<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 class="col-3"> <div class="col-3">
<q-input @input="resetSearch" filled clearable v-model="msg.CustomerName" label="客户名称" maxlength="20" /> <q-input
@input="resetSearch"
filled
clearable
v-model="msg.CustomerName"
label="客户名称"
maxlength="20"
/>
</div> </div>
<div class="col-3"> <div class="col-3">
<q-input @input="resetSearch" filled clearable v-model="msg.ContactNumber" label="联系电话" maxlength="20" /> <q-input
@input="resetSearch"
filled
clearable
v-model="msg.ContactNumber"
label="联系电话"
maxlength="20"
/>
</div> </div>
<div class="col-3"> <div class="col-3">
<q-select @input="resetSearch" clearable filled v-model="msg.ApproveState" :options="ApproveStateList" <q-select
emit-value map-options label="审核状态" /> @input="resetSearch"
clearable
filled
v-model="msg.ApproveState"
:options="ApproveStateList"
emit-value
map-options
label="审核状态"
/>
</div> </div>
</div> </div>
</div> </div>
<div class="page-content"> <div class="page-content">
<b2bcustomlist :dataList="dataList" :authObj="authObj" :loading="loading" @success="getList"></b2bcustomlist> <b2bcustomlist
<q-pagination class="full-width justify-end" v-model="msg.pageIndex" color="primary" :max="pageCount" :dataList="dataList"
:input="true" @input="changePage" /> :authObj="authObj"
:loading="loading"
@success="getList"
:visibleColumns="visibleColumns"
sticky="sticky-right-column-table"
></b2bcustomlist>
<q-pagination
class="full-width justify-end"
v-model="msg.pageIndex"
color="primary"
:max="pageCount"
:input="true"
@input="changePage"
/>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import { import { GetCustomerPage, RemoveCustomer } from "../../api/sale/peemanagement";
GetCustomerPage, import b2bcustomlist from "../../components/sale/b2bcustomlist";
RemoveCustomer export default {
} from '../../api/sale/peemanagement'; meta: {
import b2bcustomlist from '../../components/sale/b2bcustomlist'; title: "同行审批"
export default { },
meta: { components: {
title: "同行审批" b2bcustomlist
}, },
components: { data() {
b2bcustomlist return {
}, pageCount: 0,
data() { msg: {
return { pageIndex: 1,
pageCount: 0, pageSize: 12,
msg: { rowsPerPage: 12,
pageIndex: 1, CustomerName: "", //客户名称
pageSize: 12, ContactNumber: "", //联系电话
rowsPerPage: 12, ApproveState: "", //审核状态
CustomerName: '', //客户名称 CustomerState: "", //账号状态
ContactNumber: "", //联系电话 CustomerId: 0
ApproveState: "", //审核状态 },
CustomerState: "", //账号状态 loading: false,
CustomerId:0, visibleColumns: [
"CustomerName",
"CustomerType",
"EnterpriseName",
"ContactNumber",
"StuNum",
"OrderNum",
"OrderSales",
"ApproveStateStr",
"CreateByName",
"CreateTimeStr",
"optioned"
],
//审核状态列表
ApproveStateList: [
{
label: "通过",
value: "1"
}, },
loading: false, {
//审核状态列表 label: "拒绝",
ApproveStateList: [{ value: "2"
label: "通过",
value: "1",
},
{
label: "拒绝",
value: "2",
},
],
dataList: [],
//判断显示
authObj: {
isShowAudit: true,
} }
],
dataList: [],
//判断显示
authObj: {
isShowAudit: true
} }
}, };
created() {}, },
mounted() { created() {},
if(this.$route.query.CustomerId){ mounted() {
this.msg.CustomerId=this.$route.query.CustomerId if (this.$route.query.CustomerId) {
this.msg.CustomerId = this.$route.query.CustomerId;
} }
this.getList();
},
methods: {
//重新查询
resetSearch() {
this.msg.pageIndex = 1;
this.getList(); this.getList();
}, },
methods: { //翻页
//重新查询 changePage(val) {
resetSearch() { this.msg.pageIndex = val;
this.msg.pageIndex = 1; this.getList();
this.getList(); },
}, //获取分页数据
//翻页 getList() {
changePage(val) { GetCustomerPage(this.msg)
this.msg.pageIndex = val; .then(res => {
this.getList()
},
//获取分页数据
getList() {
GetCustomerPage(this.msg).then(res => {
this.dataList = res.Data.PageData; this.dataList = res.Data.PageData;
this.loading = false; this.loading = false;
this.pageCount = res.Data.PageCount; this.pageCount = res.Data.PageCount;
}).catch(() => {
this.loading = false
}) })
} .catch(() => {
this.loading = false;
});
} }
} }
};
</script> </script>
<style lang="sass"> <style lang="sass">
@import url('~assets/css/table.sass') @import url('~assets/css/table.sass')
</style> </style>
\ No newline at end of file
...@@ -333,6 +333,5 @@ export default { ...@@ -333,6 +333,5 @@ export default {
} }
</script> </script>
<style lang="sass"> <style lang="sass">
@import url('~assets/css/table.sass') @import url('~assets/css/table.sass')
</style> </style>
\ No newline at end of file
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