Commit 50fe631d authored by 黄奎's avatar 黄奎

页面修改

parent adaf2ddd
......@@ -15,10 +15,11 @@
:visible-columns="visibleColumns" row-key="CustomerId">
<template v-slot:top>
<q-space />
<div class="page-option" v-if="authObj.isShowEdit">
<q-btn color="accent" size="sm" 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">
<div class="page-option">
<q-btn v-if="authObj.isShowEdit" color="accent" size="sm" class="q-mr-md" icon="add" @click="EditCustom(null)"
label="新增联系人" />
<q-btn v-if="authObj.isShowEdit" color="accent" size="sm" label="转交" :disable="selection.length == 0"
icon="swap_horiz" @click="isShowTrans = true">
<q-popup-proxy :offset="[10, 10]">
<q-banner v-if="isShowTrans">
<q-select style="margin-top:20px;" filled v-model="TransferMsg.EmpId" @filter="filterEmployee" use-input
......@@ -29,6 +30,8 @@
</q-banner>
</q-popup-proxy>
</q-btn>
<q-btn v-if="authObj&&authObj.isShowDownload" color="accent" class="q-mr-md" size="sm" icon="add" label="下载"
@click="downloadCustomer" />
</div>
</template>
<template v-slot:body-cell-CustomerName="props">
......@@ -87,9 +90,13 @@
import {
setCustomerCareOf
} from "../../api/sale/peemanagement";
import {
EduDownLoad
} from "../../api/common/common";
import customerEditForm from "../sale/customerEdit-form";
import customerReviewForm from "../sale/customerReview-form";
import customerInfo from "./b2bcustomerinfo/b2bCustomerInfo.vue";
import obj from '../../pages/financial/lang/zh-demo';
export default {
props: {
dataList: {
......@@ -115,6 +122,14 @@
loading: {
type: Boolean,
default: false,
},
queryMsg: {
type: Object,
default: null,
},
authObj: {
type: Object,
default: null,
}
},
components: {
......@@ -244,6 +259,15 @@
}
},
methods: {
//下载同行联系人
downloadCustomer() {
var msg = JSON.parse(JSON.stringify(this.queryMsg));
EduDownLoad(
"/b2bcustomer/DownLoadCustomerLinkMan",
msg,
"同行资料.xls"
);
},
//初始化权限
initAuth() {
if (this.authObj) {
......
......@@ -40,7 +40,7 @@
</div>
</div>
<div class="page-content">
<b2bcustomlist :dataList="dataList" :authObj="authObj" :loading="loading" @success="getList"
<b2bcustomlist :dataList="dataList" :authObj="authObj" :loading="loading" @success="getList" :queryMsg="msg"
: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" />
......@@ -126,7 +126,8 @@
authObj: {
isShowEdit: true, //显示新增、修改、删除
isShowBankBook: true, //显示幸福存折
isShowRebate: true //是否显示返佣
isShowRebate: true, //是否显示返佣,
isShowDownload:true,//显示下载按钮
},
categoryMsg: {
pageIndex: 1,
......
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