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

页面修改

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