|
|
@ -24,6 +24,14 @@ |
|
|
|
<el-option v-for="item in induslevel" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="销售专员"> |
|
|
|
<el-input v-model="listQuery.params.staffName" placeholder="" class="addinputw" clearable/> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="创建日期"> |
|
|
|
<el-date-picker value-format="yyyy-MM-dd" v-model="listQuery.params.createStartDate" clearable style="width: 160px;" type="date" placeholder="开始日期"/> |
|
|
|
<span style="padding: 0 8px">至</span> |
|
|
|
<el-date-picker value-format="yyyy-MM-dd" v-model="listQuery.params.createEndDate" clearable style="width: 160px;" type="date" placeholder="结束日期"/> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="提醒日期"> |
|
|
|
<el-date-picker value-format="yyyy-MM-dd" v-model="listQuery.params.remindStartDay" clearable style="width: 160px;" type="date" placeholder="开始日期"/> |
|
|
|
<span style="padding: 0 8px">至</span> |
|
|
@ -90,6 +98,11 @@ |
|
|
|
<span>{{ scope.row.level }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="创建日期" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span>{{ scope.row.createTime }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="提醒日期" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span>{{ scope.row.remind_day }}</span> |
|
|
@ -173,7 +186,7 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import { listPageByOrgPathSid, sendFinCustomer } from '@/api/jichuxinxi/crmcustomer' |
|
|
|
import { listPageByOrgPathSid, sendFinCustomer, exportExcel } from '@/api/jichuxinxi/crmcustomer' |
|
|
|
import { typeValues, getOrgSidByPath, fetchDetailsByUseOrgSid, getButtonPermissions } from '@/api/dictcommons/dictcommons' |
|
|
|
import Pagination from '@/components/pagination' |
|
|
|
import pageye from '@/components/pagination/pageye' |
|
|
@ -211,6 +224,13 @@ export default { |
|
|
|
btnKey: 'toPush', |
|
|
|
btnLabel: '推送财务数据' |
|
|
|
}, |
|
|
|
{ |
|
|
|
type: 'success', |
|
|
|
size: 'small', |
|
|
|
icon: 'export', |
|
|
|
btnKey: 'doExport', |
|
|
|
btnLabel: '导出' |
|
|
|
}, |
|
|
|
{ |
|
|
|
type: 'info', |
|
|
|
size: 'small', |
|
|
@ -243,7 +263,10 @@ export default { |
|
|
|
remindEndtDay: '', |
|
|
|
userSid: '', |
|
|
|
staffSid: '', |
|
|
|
orgSidPath: '' |
|
|
|
orgSidPath: '', |
|
|
|
createStartDate: '', |
|
|
|
createEndDate: '', |
|
|
|
staffName: '' |
|
|
|
}, |
|
|
|
total: 0 |
|
|
|
}, |
|
|
@ -275,6 +298,9 @@ export default { |
|
|
|
case 'toPush': |
|
|
|
this.toPush() |
|
|
|
break |
|
|
|
case 'doExport': |
|
|
|
this.doExport() |
|
|
|
break |
|
|
|
case 'doClose': |
|
|
|
this.doClose() |
|
|
|
break |
|
|
@ -328,6 +354,7 @@ export default { |
|
|
|
this.listQuery = { |
|
|
|
current: 1, |
|
|
|
size: 10, |
|
|
|
total: 0, |
|
|
|
params: { |
|
|
|
customerTypeKey: '', |
|
|
|
levelKey: '', |
|
|
@ -337,7 +364,10 @@ export default { |
|
|
|
remindEndtDay: '', |
|
|
|
userSid: '', |
|
|
|
staffSid: '', |
|
|
|
orgSidPath: '' |
|
|
|
orgSidPath: '', |
|
|
|
createStartDate: '', |
|
|
|
createEndDate: '', |
|
|
|
staffName: '' |
|
|
|
} |
|
|
|
} |
|
|
|
this.getList() |
|
|
@ -465,6 +495,31 @@ export default { |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
doExport() { |
|
|
|
const loading = this.$loading({ |
|
|
|
lock: true, |
|
|
|
text: 'Loading', |
|
|
|
spinner: 'el-icon-loading', |
|
|
|
background: 'rgba(0, 0, 0, 0.7)' |
|
|
|
}) |
|
|
|
exportExcel(this.listQuery.params).then((resp) => { |
|
|
|
loading.close() |
|
|
|
const blob = new Blob([resp], { |
|
|
|
type: 'application/vnd.ms-excel' |
|
|
|
}) |
|
|
|
const fileName = '客户信息表' + '.xls' |
|
|
|
const elink = document.createElement('a') |
|
|
|
elink.download = fileName |
|
|
|
elink.style.display = 'nonde' |
|
|
|
elink.href = URL.createObjectURL(blob) |
|
|
|
document.body.appendChild(elink) |
|
|
|
elink.click() |
|
|
|
URL.revokeObjectURL(elink.href) |
|
|
|
document.body.removeChild(elink) |
|
|
|
}).catch(() => { |
|
|
|
loading.close() |
|
|
|
}) |
|
|
|
}, |
|
|
|
doClose() { |
|
|
|
this.$store.dispatch('tagsView/delView', this.$route) |
|
|
|
this.$router.go(-1) |
|
|
|