Commit b6cccc4c authored by 黄奎's avatar 黄奎

页面修改

parent 15af8277
<style lang="scss"> <style lang="scss">
.b2bcustomlist .q-table__bottom { .b2bcustomlist .q-table__bottom {
min-height: 0; min-height: 0;
} }
.CustomerName {
cursor: pointer; .CustomerName {
color: var(--q-color-primary); cursor: pointer;
} color: var(--q-color-primary);
}
</style> </style>
<template> <template>
<div class="b2bcustomlist"> <div class="b2bcustomlist">
<q-table <q-table :pagination="pageMsg" :loading="loading" no-data-label="暂无相关数据" flat selection="multiple"
:pagination="pageMsg" :selected.sync="selection" :class="sticky" separator="none" :data="dataList" :columns="columns"
:loading="loading" :visible-columns="visibleColumns" row-key="CustomerId">
no-data-label="暂无相关数据" <template v-slot:top>
flat
selection="multiple"
:selected.sync="selection"
:class="sticky"
separator="none"
:data="dataList"
:columns="columns"
:visible-columns="visibleColumns"
row-key="CustomerId"
>
<template v-slot:top="props">
<q-space /> <q-space />
<div class="page-option" v-if="authObj.isShowEdit"> <div class="page-option" v-if="authObj.isShowEdit">
<q-btn <q-btn color="accent" size="sm" class="q-mr-md" icon="add" @click="EditCustom(null)" label="新增客户" />
color="accent" <q-btn color="accent" size="sm" label="转交" :disable="selection.length == 0" icon="swap_horiz"
size="sm" @click="isShowTrans = true">
class="q-mr-md"
icon="add"
@click="EditCustom(null)"
label="新增客户"
/>
<q-btn
color="accent"
size="sm"
label="转交"
:disable="selection.length == 0"
icon="swap_horiz"
@click="isShowTrans = true"
>
<q-popup-proxy :offset="[10, 10]"> <q-popup-proxy :offset="[10, 10]">
<q-banner v-if="isShowTrans"> <q-banner v-if="isShowTrans">
<q-select <q-select style="margin-top:20px;" filled v-model="TransferMsg.EmpId" @filter="filterEmployee" use-input
style="margin-top:20px;" :options="myEmployeeList" option-label="EmployeeName" option-value="Id" emit-value map-options
filled :rules="[val => !!val || '请选择接收人']" ref="transfer" />
v-model="TransferMsg.EmpId" <q-btn label="保存" style="float:right;margin-top:15px" color="accent q-mb-lg" size="sm"
@filter="filterEmployee" @click="saveTransForm" />
use-input
:options="myEmployeeList"
option-label="EmployeeName"
option-value="Id"
emit-value
map-options
:rules="[val => !!val || '请选择接收人']"
ref="transfer"
/>
<q-btn
label="保存"
style="float:right;margin-top:15px"
color="accent q-mb-lg"
size="sm"
@click="saveTransForm"
/>
</q-banner> </q-banner>
</q-popup-proxy> </q-popup-proxy>
</q-btn> </q-btn>
...@@ -99,362 +60,322 @@ ...@@ -99,362 +60,322 @@
</template> </template>
<template v-slot:body-cell-optioned="props"> <template v-slot:body-cell-optioned="props">
<q-td :props="props"> <q-td :props="props">
<q-btn <q-btn flat v-if="
flat
v-if="
(props.row.ApproveState == 0 || props.row.ApproveState == 2) && (props.row.ApproveState == 0 || props.row.ApproveState == 2) &&
authObj.isShowAudit authObj.isShowAudit
" " size="xs" icon="edit" color="accent" style="font-weight:400" label="客户审批"
size="xs" @click="AuditCustomer(props.row, 1)" />
icon="edit"
color="accent"
style="font-weight:400"
label="客户审批"
@click="AuditCustomer(props.row, 1)"
/>
<!-- <q-btn flat size="xs"
icon="edit" color="accent" style="font-weight:400" label="编辑" @click="EditCustom(props.row)" /> -->
<!-- <q-btn
flat
v-if="props.row.ApproveState == 0 && AuthorityObj.isShowEdit"
size="xs"
icon="delete"
color="negative"
style="font-weight:400"
label="删除"
@click="RemoveCustomer(props.row)"
/> -->
<!-- <q-btn
flat
v-if="AuthorityObj.isShowBankBook"
size="xs"
icon="edit"
color="accent"
style="font-weight:400"
label="幸福存折"
@click="gohappyPassbook(props.row)"
/>
<q-btn
flat
v-if="AuthorityObj.isShowRebate"
size="xs"
icon="edit"
color="accent"
style="font-weight:400"
label="返佣管理"
@click="gohappyCommisson(props.row)"
/> -->
</q-td> </q-td>
</template> </template>
<template v-slot:bottom> <template v-slot:bottom>
<div></div> <div></div>
</template> </template>
</q-table> </q-table>
<customerEdit-form <customerEdit-form v-if="isShowCustomForm" :customerObj="customerObj" @close="closeCustomForm"
v-if="isShowCustomForm" @success="refreshQuestion">
:customerObj="customerObj"
@close="closeCustomForm"
@success="refreshQuestion"
>
</customerEdit-form> </customerEdit-form>
<customerReview-form <customerReview-form v-if="isShowRightForm" :customerObj="customerObj" @close="closeCustomForm"
v-if="isShowRightForm" @success="refreshQuestion"></customerReview-form>
:customerObj="customerObj" <customerInfo v-if="isShowDetailForm" :rowId="curRowId" :tabId="tabId" :empList="employeeList"
@close="closeCustomForm" @close="closeCustomForm" :auth="AuthorityObj" @success="refreshQuestion"></customerInfo>
@success="refreshQuestion"
></customerReview-form>
<customerInfo
v-if="isShowDetailForm"
:rowId="curRowId"
:tabId="tabId"
:empList="employeeList"
@close="closeCustomForm"
:auth="AuthorityObj"
@success="refreshQuestion"
></customerInfo>
</div> </div>
</template> </template>
<script> <script>
import { queryEmployee } from "../../api/users/user"; import {
import { setCustomerCareOf } from "../../api/sale/peemanagement"; queryEmployee
import customerEditForm from "../sale/customerEdit-form"; } from "../../api/users/user";
import customerReviewForm from "../sale/customerReview-form"; import {
import customerInfo from "./b2bcustomerinfo/b2bCustomerInfo.vue"; setCustomerCareOf
export default { } from "../../api/sale/peemanagement";
props: { import customerEditForm from "../sale/customerEdit-form";
dataList: { import customerReviewForm from "../sale/customerReview-form";
type: Array, import customerInfo from "./b2bcustomerinfo/b2bCustomerInfo.vue";
default: null export default {
}, props: {
authObj: { dataList: {
type: Object, type: Array,
default: null default: null
},
empList: {
type: Array,
default: () => []
},
visibleColumns: {
type: Array,
default: () => []
},
sticky:{
type:String,
default:""
}
},
components: {
customerEditForm,
customerReviewForm,
customerInfo
},
data() {
return {
columns: [
{
name: "CustomerName",
label: "同业名称",
field: "CustomerName",
align: "left"
},
{
name: "CustomerType",
label: "类型",
field: "CustomerType",
align: "left"
},
{
name: "EnterpriseName",
label: "企业/学校名称",
field: "EnterpriseName",
align: "left"
},
{
name: "ContactNumber",
label: "电话",
field: "ContactNumber",
align: "left"
},
{
name: "StuNum",
label: "客户数量",
field: "StuNum",
align: "left"
},
{
name: "OrderNum",
label: "订单数量",
field: "OrderNum",
align: "left"
},
{
name: "OrderSales",
label: "交易额",
field: "OrderSales",
align: "left"
},
{
name: "ApproveStateStr",
label: "审核状态",
field: "ApproveStateStr",
align: "left"
},
{
name: "CreateTimeStr",
label: "加入时间",
field: "CreateTimeStr",
align: "left"
},
{
name: "CreateByName",
label: "负责人",
field: "CreateByName",
align: "left"
},
{
name: "optioned",
label: "操作",
field: "QuestionId"
}
],
pageMsg: {
rowsPerPage: 12
}, },
loading: false, authObj: {
isShowCustomForm: false, type: Object,
isShowRightForm: false, default: null
customerObj: null, //传入参数
isShowDetailForm: false,
curRowId: 0,
//权限设置
AuthorityObj: {
isShowEdit: false, //是否显示新增修改按钮
isShowAudit: false, //是否显示审批
isShowBankBook: false, //是否显示幸福存折
isShowRebate: false //是否显示返佣
}, },
selection: [], empList: {
tabId: 1, type: Array,
TransferMsg: { default: () => []
CustomerIds: "",
EmpId: ""
}, },
//员工列表 visibleColumns: {
employeeList: [], type: Array,
myEmployeeList: [], default: () => []
isShowTrans: false },
}; sticky: {
}, type: String,
created() { default: ""
this.initAuth();
this.getEmployeeList();
},
mounted() {},
methods: {
//初始化权限
initAuth() {
if (this.authObj) {
if (this.authObj.isShowEdit != null && this.authObj.isShowEdit) {
this.AuthorityObj.isShowEdit = this.authObj.isShowEdit;
}
if (this.authObj.isShowAudit != null && this.authObj.isShowAudit) {
this.AuthorityObj.isShowAudit = this.authObj.isShowAudit;
}
if (
this.authObj.isShowBankBook != null &&
this.authObj.isShowBankBook
) {
this.AuthorityObj.isShowBankBook = this.authObj.isShowBankBook;
}
if (this.authObj.isShowRebate != null && this.authObj.isShowRebate) {
this.AuthorityObj.isShowRebate = this.authObj.isShowRebate;
}
} }
}, },
//新增或者修改客户 components: {
EditCustom(obj) { customerEditForm,
if (obj) { customerReviewForm,
this.customerObj = obj; customerInfo
} else {
this.customerObj = null;
}
this.isShowCustomForm = true;
}, },
data() {
return {
columns: [{
name: "CustomerName",
label: "同业名称",
field: "CustomerName",
align: "left"
},
{
name: "CustomerType",
label: "类型",
field: "CustomerType",
align: "left"
},
{
name: "EnterpriseName",
label: "企业/学校名称",
field: "EnterpriseName",
align: "left"
},
{
name: "ContactNumber",
label: "电话",
field: "ContactNumber",
align: "left"
},
{
name: "QQ",
label: "QQ号",
field: "QQ",
align: "left"
},
{
name: "WeChatNo",
label: "微信号",
field: "WeChatNo",
align: "left"
},
{
name: "StuNum",
label: "客户数量",
field: "StuNum",
align: "left"
},
{
name: "OrderNum",
label: "订单数量",
field: "OrderNum",
align: "left"
},
{
name: "OrderSales",
label: "交易额",
field: "OrderSales",
align: "left"
},
{
name: "ApproveStateStr",
label: "审核状态",
field: "ApproveStateStr",
align: "left"
},
//客户审核 {
AuditCustomer(obj, Type) { name: "CreateTimeStr",
if (obj) { label: "加入时间",
this.customerObj = obj; field: "CreateTimeStr",
this.customerObj.Type = Type; align: "left"
} else { },
this.customerObj = null; {
} name: "CreateByName",
this.isShowRightForm = true; label: "负责人",
field: "CreateByName",
align: "left"
},
{
name: "optioned",
label: "操作",
field: "QuestionId"
}
],
pageMsg: {
rowsPerPage: 12
},
loading: false,
isShowCustomForm: false,
isShowRightForm: false,
customerObj: null, //传入参数
isShowDetailForm: false,
curRowId: 0,
//权限设置
AuthorityObj: {
isShowEdit: false, //是否显示新增修改按钮
isShowAudit: false, //是否显示审批
isShowBankBook: false, //是否显示幸福存折
isShowRebate: false //是否显示返佣
},
selection: [],
tabId: 1,
TransferMsg: {
CustomerIds: "",
EmpId: ""
},
//员工列表
employeeList: [],
myEmployeeList: [],
isShowTrans: false
};
}, },
//客户详情 created() {
showDetail(row, tabId = 1) { this.initAuth();
this.curRowId = row.CustomerId; this.getEmployeeList();
this.tabId = tabId;
this.isShowDetailForm = true;
}, },
//删除客户 mounted() {},
RemoveCustomer(obj) { methods: {
let that = this; //初始化权限
var message = initAuth() {
"您正在进行删除【" + if (this.authObj) {
obj.CustomerName + if (this.authObj.isShowEdit != null && this.authObj.isShowEdit) {
"】行为,一旦执行无法找回,是否确认执行?"; this.AuthorityObj.isShowEdit = this.authObj.isShowEdit;
this.$q }
.dialog({ if (this.authObj.isShowAudit != null && this.authObj.isShowAudit) {
title: "删除客户", this.AuthorityObj.isShowAudit = this.authObj.isShowAudit;
message: message, }
isShowEditClassRoomForm: true, if (
cancel: { this.authObj.isShowBankBook != null &&
label: "取消", this.authObj.isShowBankBook
flat: true ) {
}, this.AuthorityObj.isShowBankBook = this.authObj.isShowBankBook;
ok: {
label: "确认",
flat: true,
focus: true
} }
}) if (this.authObj.isShowRebate != null && this.authObj.isShowRebate) {
.onOk(() => { this.AuthorityObj.isShowRebate = this.authObj.isShowRebate;
var delMsg = { }
CustomerId: obj.CustomerId }
}; },
RemoveCustomer(delMsg).then(res => { //新增或者修改客户
if (res.Code == 1) { EditCustom(obj) {
that.$q.notify({ if (obj) {
icon: "iconfont icon-chenggong", this.customerObj = obj;
color: "accent", } else {
timeout: 2000, this.customerObj = null;
message: "操作成功", }
position: "top" this.isShowCustomForm = true;
}); },
that.refreshQuestion();
//客户审核
AuditCustomer(obj, Type) {
if (obj) {
this.customerObj = obj;
this.customerObj.Type = Type;
} else {
this.customerObj = null;
}
this.isShowRightForm = true;
},
//客户详情
showDetail(row, tabId = 1) {
this.curRowId = row.CustomerId;
this.tabId = tabId;
this.isShowDetailForm = true;
},
//删除客户
RemoveCustomer(obj) {
let that = this;
var message =
"您正在进行删除【" +
obj.CustomerName +
"】行为,一旦执行无法找回,是否确认执行?";
this.$q
.dialog({
title: "删除客户",
message: message,
isShowEditClassRoomForm: true,
cancel: {
label: "取消",
flat: true
},
ok: {
label: "确认",
flat: true,
focus: true
} }
})
.onOk(() => {
var delMsg = {
CustomerId: obj.CustomerId
};
RemoveCustomer(delMsg).then(res => {
if (res.Code == 1) {
that.$q.notify({
icon: "iconfont icon-chenggong",
color: "accent",
timeout: 2000,
message: "操作成功",
position: "top"
});
that.refreshQuestion();
}
});
}); });
},
//关闭弹窗
closeCustomForm() {
this.isShowCustomForm = false;
this.isShowRightForm = false;
this.isShowDetailForm = false;
},
refreshQuestion() {
this.$emit("success");
},
//跳转到幸福存折
gohappyPassbook(item) {
this.OpenNewUrl("/sale/happyPassbook", {
CustomerId: item.CustomerId
}); });
}, },
//关闭弹窗 //跳转到返佣管理
closeCustomForm() { gohappyCommisson(item) {
this.isShowCustomForm = false; this.OpenNewUrl("/sale/commsionManagement", {
this.isShowRightForm = false; CustomerId: item.CustomerId
this.isShowDetailForm = false;
},
refreshQuestion() {
this.$emit("success");
},
//跳转到幸福存折
gohappyPassbook(item) {
this.OpenNewUrl("/sale/happyPassbook", {
CustomerId: item.CustomerId
});
},
//跳转到返佣管理
gohappyCommisson(item) {
this.OpenNewUrl("/sale/commsionManagement", {
CustomerId: item.CustomerId
});
},
//同业转交
saveTransForm() {
this.$refs.transfer.validate();
if (this.$refs.transfer.hasError) return;
this.TransferMsg.CustomerIds = this.selection
.map(e => e.CustomerId)
.toString();
setCustomerCareOf(this.TransferMsg).then(res => {
this.$q.notify({
icon: "iconfont icon-chenggong",
color: "accent",
timeout: 2000,
message: "转交成功",
position: "top"
}); });
this.isShowTrans = false; },
this.selection = []; //同业转交
}); saveTransForm() {
}, this.$refs.transfer.validate();
//获取员工列表 if (this.$refs.transfer.hasError) return;
getEmployeeList() { this.TransferMsg.CustomerIds = this.selection
queryEmployee({ .map(e => e.CustomerId)
IsLeave: 1 .toString();
}).then(res => { setCustomerCareOf(this.TransferMsg).then(res => {
this.employeeList = res.Data; this.$q.notify({
this.myEmployeeList = res.Data; icon: "iconfont icon-chenggong",
}); color: "accent",
}, timeout: 2000,
//筛选员工 message: "转交成功",
filterEmployee(val, update, abort) { position: "top"
update(() => { });
this.myEmployeeList = this.employeeList.filter( this.isShowTrans = false;
v => v.EmployeeName.indexOf(val) > -1 this.selection = [];
); });
}); },
//获取员工列表
getEmployeeList() {
queryEmployee({
IsLeave: 1
}).then(res => {
this.employeeList = res.Data;
this.myEmployeeList = res.Data;
});
},
//筛选员工
filterEmployee(val, update, abort) {
update(() => {
this.myEmployeeList = this.employeeList.filter(
v => v.EmployeeName.indexOf(val) > -1
);
});
}
} }
} };
}; </script>
</script> \ No newline at end of file
<style> <style>
.page-content p { .page-content p {
margin: 0 !important; margin: 0 !important;
} }
.quetion_Title { .quetion_Title {
background: transparent !important; background: transparent !important;
text-overflow: ellipsis; text-overflow: ellipsis;
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
width: 400px; 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 <q-input @input="resetSearch" filled clearable v-model="msg.CustomerName" label="同业名称" maxlength="20" />
@input="resetSearch"
filled
clearable
v-model="msg.CustomerName"
label="同业名称"
maxlength="20"
/>
</div> </div>
<div class="col-3"> <div class="col-3">
<q-input <q-input @input="resetSearch" filled clearable v-model="msg.CustomerId" label="同业ID" maxlength="20" />
@input="resetSearch"
filled
clearable
v-model="msg.CustomerId"
label="同业ID"
maxlength="20"
/>
</div> </div>
<div class="col-3"> <div class="col-3">
<q-input <q-input @input="resetSearch" filled clearable v-model="msg.ContactNumber" label="电话" maxlength="20" />
@input="resetSearch"
filled
clearable
v-model="msg.ContactNumber"
label="电话"
maxlength="20"
/>
</div> </div>
<div class="col-3"> <div class="col-3">
<q-select <q-select @input="resetSearch" clearable filled v-model="msg.ApproveState" :options="ApproveStateList"
@input="resetSearch" emit-value map-options label="审核状态" />
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 <q-tabs style="margin-bottom:20px;" v-model="tabCheck" @input="resetSearch()" narrow-indicator dense
style="margin-bottom:20px;" align="left" class="text-primary">
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 <b2bcustomlist :dataList="dataList" :authObj="authObj" :loading="loading" @success="getList"
:dataList="dataList" :visibleColumns="visibleColumns" sticky="sticky-tow-column-table sticky-right-column-table"></b2bcustomlist>
:authObj="authObj" <q-pagination class="full-width justify-end" v-model="msg.pageIndex" color="primary" :max="pageCount"
:loading="loading" :input="true" @input="changePage" />
@success="getList"
:visibleColumns="visibleColumns"
sticky="sticky-tow-column-table 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 { getAllCustomer } from "../../api/sale/peemanagement"; import {
import b2bcustomlist from "../../components/sale/b2bcustomlist"; getAllCustomer
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: 0, //审核状态 CustomerName: "", //客户名称
QCustomerState: "" //账号状态 ContactNumber: "", //联系电话
}, ApproveState: 0, //审核状态
loading: false, QCustomerState: "" //账号状态
visibleColumns: [
"CustomerName",
"CustomerType",
"EnterpriseName",
"ContactNumber",
"StuNum",
"OrderNum",
"OrderSales",
"ApproveStateStr",
"CreateByName",
"CreateTimeStr",
],
tabCheck: 1,
//审核状态列表
ApproveStateList: [
{
label: "不限",
value: "0"
},
{
label: "通过",
value: "1"
}, },
{ loading: false,
label: "拒绝", visibleColumns: [
value: "2" "CustomerName",
"CustomerType",
"EnterpriseName",
"ContactNumber",
"StuNum",
"OrderNum",
"OrderSales",
"ApproveStateStr",
"CreateByName",
"CreateTimeStr",
"QQ",
"WeChatNo",
],
tabCheck: 1,
//审核状态列表
ApproveStateList: [{
label: "不限",
value: "0"
},
{
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() {
changePage(val) {
this.msg.pageIndex = val; },
mounted() {
this.getList(); this.getList();
}, },
//获取分页数据 methods: {
getList() { //重新查询
this.msg.QCustomerState = this.tabCheck; resetSearch() {
getAllCustomer(this.msg) this.msg.pageIndex = 1;
.then(res => { this.getList();
this.dataList = res.Data.PageData; },
this.loading = false; //翻页
this.pageCount = res.Data.PageCount; changePage(val) {
}) this.msg.pageIndex = val;
.catch(() => { this.getList();
this.loading = false; },
}); //获取分页数据
getList() {
this.msg.QCustomerState = this.tabCheck;
getAllCustomer(this.msg)
.then(res => {
this.dataList = res.Data.PageData;
this.loading = false;
this.pageCount = res.Data.PageCount;
})
.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
<style> <style>
.page-content p { .page-content p {
margin: 0 !important; margin: 0 !important;
} }
.quetion_Title { .quetion_Title {
background: transparent !important; background: transparent !important;
text-overflow: ellipsis; text-overflow: ellipsis;
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
width: 400px; 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 <q-input @input="resetSearch" filled clearable v-model="msg.CustomerName" label="同业名称" maxlength="20" />
@input="resetSearch"
filled
clearable
v-model="msg.CustomerName"
label="同业名称"
maxlength="20"
/>
</div> </div>
<div class="col-3"> <div class="col-3">
<q-input <q-input @input="resetSearch" filled clearable v-model="msg.CustomerId" label="同业ID" maxlength="20" />
@input="resetSearch"
filled
clearable
v-model="msg.CustomerId"
label="同业ID"
maxlength="20"
/>
</div> </div>
<div class="col-3"> <div class="col-3">
<q-input <q-input @input="resetSearch" filled clearable v-model="msg.ContactNumber" label="电话" maxlength="20" />
@input="resetSearch"
filled
clearable
v-model="msg.ContactNumber"
label="电话"
maxlength="20"
/>
</div> </div>
<div class="col-3"> <div class="col-3">
<q-select <q-select @input="resetSearch" clearable filled v-model="msg.ApproveState" :options="ApproveStateList"
@input="resetSearch" emit-value map-options label="审核状态" />
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 <q-tabs style="margin-bottom:20px;" v-model="tabCheck" @input="resetSearch()" narrow-indicator dense
style="margin-bottom:20px;" align="left" class="text-primary">
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 <b2bcustomlist :dataList="dataList" :authObj="authObj" :loading="loading" @success="getList"
:dataList="dataList" :visibleColumns="visibleColumns" sticky="sticky-tow-column-table sticky-right-column-table"></b2bcustomlist>
:authObj="authObj" <q-pagination class="full-width justify-end" v-model="msg.pageIndex" color="primary" :max="pageCount"
:loading="loading" :input="true" @input="changePage" />
@success="getList"
:visibleColumns="visibleColumns"
sticky="sticky-tow-column-table 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 { GetCustomerPage_v2, RemoveCustomer } from "../../api/sale/peemanagement"; import {
import b2bcustomlist from "../../components/sale/b2bcustomlist"; GetCustomerPage_v2,
export default { RemoveCustomer
meta: { } from "../../api/sale/peemanagement";
title: "同行管理" import b2bcustomlist from "../../components/sale/b2bcustomlist";
}, export default {
components: { meta: {
b2bcustomlist title: "同行管理"
}, },
data() { components: {
return { b2bcustomlist
pageCount: 0, },
msg: { data() {
pageIndex: 1, return {
pageSize: 12, pageCount: 0,
rowsPerPage: 12, msg: {
CustomerName: "", //客户名称 pageIndex: 1,
ContactNumber: "", //联系电话 pageSize: 12,
ApproveState: "", //审核状态 rowsPerPage: 12,
QCustomerState: "" //账号状态 CustomerName: "", //客户名称
}, ContactNumber: "", //联系电话
loading: false, ApproveState: "", //审核状态
visibleColumns: [ QCustomerState: "" //账号状态
"CustomerName",
"CustomerType",
"EnterpriseName",
"ContactNumber",
"StuNum",
"OrderNum",
"OrderSales",
"ApproveStateStr",
"CreateByName",
"CreateTimeStr",
],
tabCheck: 1,
//审核状态列表
ApproveStateList: [
{
label: "通过",
value: "1"
}, },
{ loading: false,
label: "拒绝", visibleColumns: [
value: "2" "CustomerName",
"CustomerType",
"EnterpriseName",
"ContactNumber",
"StuNum",
"OrderNum",
"OrderSales",
"ApproveStateStr",
"CreateByName",
"CreateTimeStr",
"QQ",
"WeChatNo",
],
tabCheck: 1,
//审核状态列表
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() {},
changePage(val) { mounted() {
this.msg.pageIndex = val;
this.getList(); this.getList();
}, },
//获取分页数据 methods: {
getList() { //重新查询
this.msg.QCustomerState = this.tabCheck; resetSearch() {
GetCustomerPage_v2(this.msg) this.msg.pageIndex = 1;
.then(res => { this.getList();
this.dataList = res.Data.PageData; },
this.loading = false; //翻页
this.pageCount = res.Data.PageCount; changePage(val) {
}) this.msg.pageIndex = val;
.catch(() => { this.getList();
this.loading = false; },
}); //获取分页数据
getList() {
this.msg.QCustomerState = this.tabCheck;
GetCustomerPage_v2(this.msg)
.then(res => {
this.dataList = res.Data.PageData;
this.loading = false;
this.pageCount = res.Data.PageCount;
})
.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
<style> <style>
.page-content p { .page-content p {
margin: 0 !important; margin: 0 !important;
} }
.quetion_Title { .quetion_Title {
background: transparent !important; background: transparent !important;
text-overflow: ellipsis; text-overflow: ellipsis;
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
width: 400px; 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 <q-input @input="resetSearch" filled clearable v-model="msg.CustomerName" label="客户名称" maxlength="20" />
@input="resetSearch"
filled
clearable
v-model="msg.CustomerName"
label="客户名称"
maxlength="20"
/>
</div> </div>
<div class="col-3"> <div class="col-3">
<q-input <q-input @input="resetSearch" filled clearable v-model="msg.ContactNumber" label="联系电话" maxlength="20" />
@input="resetSearch"
filled
clearable
v-model="msg.ContactNumber"
label="联系电话"
maxlength="20"
/>
</div> </div>
<div class="col-3"> <div class="col-3">
<q-select <q-select @input="resetSearch" clearable filled v-model="msg.ApproveState" :options="ApproveStateList"
@input="resetSearch" emit-value map-options label="审核状态" />
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 <b2bcustomlist :dataList="dataList" :authObj="authObj" :loading="loading" @success="getList"
:dataList="dataList" :visibleColumns="visibleColumns" sticky="sticky-tow-column-table sticky-right-column-table"></b2bcustomlist>
:authObj="authObj" <q-pagination class="full-width justify-end" v-model="msg.pageIndex" color="primary" :max="pageCount"
:loading="loading" :input="true" @input="changePage" />
@success="getList"
:visibleColumns="visibleColumns"
sticky="sticky-tow-column-table 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 { GetCustomerPage, RemoveCustomer } from "../../api/sale/peemanagement"; import {
import b2bcustomlist from "../../components/sale/b2bcustomlist"; GetCustomerPage,
export default { RemoveCustomer
meta: { } from "../../api/sale/peemanagement";
title: "同行审批" import b2bcustomlist from "../../components/sale/b2bcustomlist";
}, export default {
components: { meta: {
b2bcustomlist title: "同行审批"
}, },
data() { components: {
return { b2bcustomlist
pageCount: 0, },
msg: { data() {
pageIndex: 1, return {
pageSize: 12, pageCount: 0,
rowsPerPage: 12, msg: {
CustomerName: "", //客户名称 pageIndex: 1,
ContactNumber: "", //联系电话 pageSize: 12,
ApproveState: "", //审核状态 rowsPerPage: 12,
CustomerState: "", //账号状态 CustomerName: "", //客户名称
CustomerId: 0 ContactNumber: "", //联系电话
}, ApproveState: "", //审核状态
loading: false, CustomerState: "", //账号状态
visibleColumns: [ CustomerId: 0
"CustomerName",
"CustomerType",
"EnterpriseName",
"ContactNumber",
"StuNum",
"OrderNum",
"OrderSales",
"ApproveStateStr",
"CreateByName",
"CreateTimeStr",
"optioned"
],
//审核状态列表
ApproveStateList: [
{
label: "通过",
value: "1"
}, },
{ loading: false,
label: "拒绝", visibleColumns: [
value: "2" "CustomerName",
"CustomerType",
"EnterpriseName",
"ContactNumber",
"StuNum",
"OrderNum",
"OrderSales",
"ApproveStateStr",
"CreateByName",
"CreateTimeStr",
"optioned",
"QQ",
"WeChatNo",
],
//审核状态列表
ApproveStateList: [{
label: "通过",
value: "1"
},
{
label: "拒绝",
value: "2"
}
],
dataList: [],
//判断显示
authObj: {
isShowAudit: true
} }
], };
dataList: [],
//判断显示
authObj: {
isShowAudit: true
}
};
},
created() {},
mounted() {
if (this.$route.query.CustomerId) {
this.msg.CustomerId = this.$route.query.CustomerId;
}
this.getList();
},
methods: {
//重新查询
resetSearch() {
this.msg.pageIndex = 1;
this.getList();
}, },
//翻页 created() {},
changePage(val) { mounted() {
this.msg.pageIndex = val; if (this.$route.query.CustomerId) {
this.msg.CustomerId = this.$route.query.CustomerId;
}
this.getList(); this.getList();
}, },
//获取分页数据 methods: {
getList() { //重新查询
GetCustomerPage(this.msg) resetSearch() {
.then(res => { this.msg.pageIndex = 1;
this.dataList = res.Data.PageData; this.getList();
this.loading = false; },
this.pageCount = res.Data.PageCount; //翻页
}) changePage(val) {
.catch(() => { this.msg.pageIndex = val;
this.loading = false; this.getList();
}); },
//获取分页数据
getList() {
GetCustomerPage(this.msg)
.then(res => {
this.dataList = res.Data.PageData;
this.loading = false;
this.pageCount = res.Data.PageCount;
})
.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
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