Commit 07b4e886 authored by huangjie's avatar huangjie

供应商管理

parent d1f2d097
......@@ -202,7 +202,7 @@
<div id="loader"></div>
<div class="loader-section section-left"></div>
<div class="loader-section section-right"></div>
<div class="load_title">正在加载央企数字化经营管理系统</div>
<div class="load_title">正在加载大数据经营管理支撑服务平台</div>
</div>
</div>
</body>
......
......@@ -15,6 +15,15 @@ export function customerAll(param) {
method: 'POSt',
});
}
//总台账导出
export function customerExport(param) {
return request({
url: '/customer/export',
method: 'post',
data:param,
responseType: 'blob'
});
}
//专业类别选项列表
export function bizDictData() {
return request({
......
......@@ -81,6 +81,7 @@
}
.total-dc{
float: right;
cursor: pointer;
img{
width: 18px;
margin-right: 6px;
......
......@@ -70,9 +70,9 @@
<div class="table-supplier">
<div class="total-title">
<div class="totals">{{total}}</div>
<p class="total-dc">
<p class="total-dc" @click="customerExport">
<img src="@/assets/images/EXCEL.png" alt="">
<span class="excel" @click="$message({message: '功能正在开发中',type: 'warning'})">导出EXCEL</span>
<span class="excel">导出EXCEL</span>
</p>
</div>
<div class="table-item-jf table-item-jf1 empty-table" v-if="total == 0 && !isSkeleton">
......@@ -174,7 +174,7 @@
</el-table-column>
<el-table-column label="队伍规模" min-width="120" :resizable="false">
<template slot-scope="scope">
{{scope.row.legalPerson||"--"}}
{{scope.row.serviceTeamPersonnum||"--"}}
</template>
</el-table-column>
<el-table-column label="专业特长" min-width="120" :resizable="false">
......@@ -293,7 +293,7 @@
import "@/assets/styles/public.scss";
import "@/assets/styles/supplierlist.scss";
import skeleton from '@/views/project/projectList/component/skeleton';
import {customerAll,areaAll} from '@/api/supplier/supplier';
import {customerAll,areaAll,customerExport} from '@/api/supplier/supplier';
import { getDicts } from "@/api/system/dict/data";
export default {
name: 'ledger',
......@@ -367,6 +367,38 @@
this.litigationstatus = res.data
})
},
customerExport(){
let param = this.formdata
if(param.times){
param.approveDateBegion = param.times[0]
param.approveDateEnd = param.times[1]
}else{
param.approveDateBegion = ''
param.approveDateEnd = ''
}
if(param.areas){
let province = []
let city = []
param.areas.forEach(item=>{
if(item.length == 3){//到市
if(item[1].indexOf('重庆')>-1||item[1].indexOf('北京')>-1||item[1].indexOf('天津')>-1||item[1].indexOf('上海')>-1){
province.push(item[1])
}else{
city.push(item[2])
}
}
})
param.province = province
param.city = city
}else{
param.province = []
param.city = []
}
// this.download('/customer/export', param, `type_${new Date().getTime()}.xlsx`)
customerExport(param).then(blob => {
this.$download.saveAs(blob, `type_${new Date().getTime()}.xlsx`)
})
},
getSearch(){
this.formdata.pageNum = 1
this.customerAll()
......
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