| | |
| | | <el-form-item prop="name"> |
| | | <el-input v-model="searchForm.name" placeholder="请输入人员姓名/手机号" @keypress.enter.native="search"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="身份证号" prop="idcardNo"> |
| | | <el-input v-model="searchForm.idcardNo" placeholder="请输入身份证号" @keypress.enter.native="search"></el-input> |
| | | </el-form-item> |
| | | <section> |
| | | <el-button type="primary" @click="search">搜索</el-button> |
| | | <el-button type="primary" :loading="isWorking.export" v-permissions="['business:ywcustomer:exportExcel']" |
| | |
| | | <el-table-column prop="customerName" label="客户名称" min-width="100px"></el-table-column> |
| | | <el-table-column prop="name" label="联系人" min-width="100px"></el-table-column> |
| | | <el-table-column prop="phone" label="联系电话" min-width="100px"></el-table-column> |
| | | <el-table-column prop="idcardDecode" label="身份证号" min-width="140px"></el-table-column> |
| | | <el-table-column prop="" label="身份" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | | <span v-if="row.highCheckor == 0">老板/超级管理员</span> |
| | |
| | | import OperaYwCustomerWindow from './components/staffEdit.vue' |
| | | import { fetchList } from '@/api/client/ywCustomer' |
| | | import { updateStatusById } from '@/api/business/member' |
| | | import { ywExportExcel } from '@/api/client/staff' |
| | | import { Message } from 'element-ui' |
| | | export default { |
| | | name: 'YwCustomer', |
| | |
| | | searchForm: { |
| | | customerId: '', |
| | | name: '', |
| | | idcardNo: '', |
| | | }, |
| | | clientList: [] |
| | | } |
| | |
| | | this.clientList = res.records || [] |
| | | }) |
| | | }, |
| | | exportExcel () { |
| | | this.$dialog.exportConfirm('确认导出吗?') |
| | | .then(() => { |
| | | this.isWorking.export = true |
| | | ywExportExcel({ |
| | | page: this.tableData.pagination.pageIndex, |
| | | capacity: 1000000, |
| | | model: this.searchForm, |
| | | sorts: this.tableData.sorts |
| | | }) |
| | | .then(response => { |
| | | this.download(response) |
| | | }) |
| | | .catch(e => { |
| | | this.$tip.apiFailed(e) |
| | | }) |
| | | .finally(() => { |
| | | this.isWorking.export = false |
| | | }) |
| | | }) |
| | | .catch(() => {}) |
| | | }, |
| | | } |
| | | } |
| | | </script> |