Commit da08aa18 authored by huangjie's avatar huangjie

供应商管理

parent 787914bb
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
<p> <p>
<label class="label">证件选择</label> <label class="label">证件选择</label>
<span></span> <span></span>
<!--<span>{{custmerInfo.registerCapital || '&#45;&#45;'}}</span>-->
<label class="label">统一社会信用代码</label> <label class="label">统一社会信用代码</label>
<span>{{custmerInfo.unifySocialCode || '--'}}</span> <span>{{custmerInfo.unifySocialCode || '--'}}</span>
</p> </p>
...@@ -203,9 +202,9 @@ ...@@ -203,9 +202,9 @@
<div class="main3-box"> <div class="main3-box">
<p> <p>
<label class="label">公司意见</label> <label class="label">公司意见</label>
<span></span> <span>{{custmerInfo.purchasePrincipal || '--'}}</span>
<label class="label">准入时间</label> <label class="label">准入时间</label>
<span></span> <span>{{custmerInfo.approveDate2||'--'}}</span>
</p> </p>
</div> </div>
</el-tab-pane> </el-tab-pane>
......
...@@ -9,60 +9,53 @@ ...@@ -9,60 +9,53 @@
<div class="content-supplier"> <div class="content-supplier">
<el-form :model="formdata" label-width="82px" label-position="right" :inline="true" > <el-form :model="formdata" label-width="82px" label-position="right" :inline="true" >
<el-row> <el-row>
<el-form-item label="供应商名称"> <el-form-item label="分供方名称">
<el-input v-model="formdata.user" placeholder="请输入分供方名称"></el-input> <el-input v-model="formdata.customerName" placeholder="请输入分供方名称"></el-input>
</el-form-item>
<el-form-item label="注册地区">
<el-select v-model="formdata.user" multiple placeholder="请选择" :collapse-tags="true" clearable>
<el-option v-for="(item,index) in arealist" :label="item.dictLabel" :value="item.dictValue" :key="index"></el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item label="注册城市"> <el-form-item label="注册城市">
<el-cascader <el-cascader
v-model="formdata.user" v-model="formdata.areas"
:options="addressList" :collapse-tags="true" :options="addressList" :collapse-tags="true" :show-all-levels="false" clearable
:props="provienceprops"></el-cascader> :props="provienceprops"></el-cascader>
</el-form-item> </el-form-item>
</el-row>
<el-row>
<el-form-item label="供应商状态"> <el-form-item label="供应商状态">
<el-select v-model="formdata.user" multiple placeholder="请选择" :collapse-tags="true" clearable> <el-select v-model="formdata.customerState" multiple placeholder="请选择" :collapse-tags="true" clearable>
<el-option v-for="(item,index) in customstate" :label="item.dictLabel" :value="item.dictValue" :key="index"></el-option> <el-option v-for="(item,index) in customstate" :label="item.dictLabel" :value="item.dictValue" :key="index"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-row>
<el-row>
<el-form-item label="资质等级"> <el-form-item label="资质等级">
<el-select v-model="formdata.user" multiple placeholder="请选择" :collapse-tags="true" clearable> <el-select v-model="formdata.credential" multiple placeholder="请选择" :collapse-tags="true" clearable>
<el-option v-for="(item,index) in credential" :label="item.dictLabel" :value="item.dictValue" :key="index"></el-option> <el-option v-for="(item,index) in credential" :label="item.dictLabel" :value="item.dictValue" :key="index"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="专业类别"> <el-form-item label="专业类别">
<el-select v-model="formdata.user" placeholder="请选择"> <el-cascader clearable
<el-option label="区域一" value="shanghai"></el-option> v-model="formdata.groupSpecialtys"
<el-option label="区域二" value="beijing"></el-option> :options="groupSpecialty" :collapse-tags="true"
</el-select> :props="groupprops"></el-cascader>
</el-form-item> </el-form-item>
</el-row>
<el-row>
<el-form-item label="评价等级"> <el-form-item label="评价等级">
<el-select v-model="formdata.user" multiple placeholder="请选择" :collapse-tags="true" clearable> <el-select v-model="formdata.creditLevel" multiple placeholder="请选择" :collapse-tags="true" clearable>
<el-option v-for="(item,index) in creditlevel" :label="item.dictLabel" :value="item.dictValue" :key="index"></el-option> <el-option v-for="(item,index) in creditlevel" :label="item.dictLabel" :value="item.dictValue" :key="index"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-row>
<el-row>
<el-form-item label="纳税人身份"> <el-form-item label="纳税人身份">
<el-select v-model="formdata.user" multiple placeholder="请选择" :collapse-tags="true" clearable> <el-select v-model="formdata.paytaxType" multiple placeholder="请选择" :collapse-tags="true" clearable>
<el-option v-for="(item,index) in paytaxtype" :label="item.dictLabel" :value="item.dictValue" :key="index"></el-option> <el-option v-for="(item,index) in paytaxtype" :label="item.dictLabel" :value="item.dictValue" :key="index"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="纳税人税率"> <el-form-item label="纳税人税率">
<el-select v-model="formdata.user" multiple placeholder="请选择" :collapse-tags="true" clearable> <el-select v-model="formdata.taxRate" multiple placeholder="请选择" :collapse-tags="true" clearable>
<el-option v-for="(item,index) in taxrate" :label="item.dictLabel" :value="item.dictValue" :key="index"></el-option> <el-option v-for="(item,index) in taxrate" :label="item.dictLabel" :value="item.dictValue" :key="index"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-row>
<el-row>
<el-form-item label="准入时间"> <el-form-item label="准入时间">
<el-date-picker <el-date-picker
v-model="formdata.time" v-model="formdata.times"
type="daterange" type="daterange"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
range-separator="至" range-separator="至"
...@@ -73,8 +66,8 @@ ...@@ -73,8 +66,8 @@
</el-row> </el-row>
<el-divider></el-divider> <el-divider></el-divider>
<el-form-item label=" "> <el-form-item label=" ">
<el-button type="primary" size="small">查询</el-button> <el-button type="primary" size="small" @click="handleCurrentChange(1)">查询</el-button>
<el-button size="small">重置</el-button> <el-button size="small" @click="clears">重置</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
...@@ -83,6 +76,11 @@ ...@@ -83,6 +76,11 @@
<div class="total-title"> <div class="total-title">
<div class="totals">{{total}}</div> <div class="totals">{{total}}</div>
</div> </div>
<div class="table-item-jf table-item-jf1 empty-table" v-if="total == 0 && !isSkeleton">
<img class="item-jf-img" src="@/assets/images/kong.png" alt="">
<div class="item-jf-titel">暂无相关数据</div>
<div class="item-jf-text">抱歉,暂无数据,试试更换搜索条件吧</div>
</div>
<skeleton v-if="isSkeleton"></skeleton> <skeleton v-if="isSkeleton"></skeleton>
<div class="table-item-jf table-item" v-if="!isSkeleton&&tableData.length>0"> <div class="table-item-jf table-item" v-if="!isSkeleton&&tableData.length>0">
...@@ -93,18 +91,23 @@ ...@@ -93,18 +91,23 @@
<el-table-column type="index" label="序号" :fixed="tableColumnFixed" width="60" :resizable="false"> <el-table-column type="index" label="序号" :fixed="tableColumnFixed" width="60" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{(pageNum - 1) *pageSize + scope.$index + 1}}</span> <span>{{(formdata.pageNum - 1) *formdata.pageSize + scope.$index + 1}}</span>
</template>
</el-table-column>
<el-table-column label="二级市场编码" :fixed="tableColumnFixed" width="120" :resizable="false">
<template slot-scope="scope">
{{scope.row.secondaryCode||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="供应商编号" :fixed="tableColumnFixed" width="120" :resizable="false"> <el-table-column label="供应商编号" prop="customerCode" :fixed="tableColumnFixed" width="120" :resizable="false">
</el-table-column> </el-table-column>
<el-table-column label="供应商名称" :fixed="tableColumnFixed" width="380" :resizable="false"> <el-table-column label="供应商名称" :fixed="tableColumnFixed" width="380" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="renling"> <div class="renling">
<div style="display:flex;align-items:center"> <div style="display:flex;align-items:center">
<router-link :to="`/enterprise/${encodeStr(scope.row.id)}`" tag="a" <router-link :to="`/enterprise/${encodeStr(scope.row.companyId)}`" tag="a"
class="wordprimary" v-html="scope.row.name"></router-link> class="wordprimary" v-html="scope.row.customerName"></router-link>
</div> </div>
</div> </div>
...@@ -114,87 +117,87 @@ ...@@ -114,87 +117,87 @@
<el-table-column label="推荐单位" min-width="280"> <el-table-column label="推荐单位" min-width="280">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.recommendOrg||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="公司注册区域" min-width="120" :resizable="false"> <el-table-column label="公司注册区域" min-width="120" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.registerRegion||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="公司注册省" min-width="120" :resizable="false"> <el-table-column label="公司注册省" min-width="120" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.registerProvince||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="公司注册城市" min-width="120" :resizable="false"> <el-table-column label="公司注册城市" min-width="120" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.registerCity||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="专业类别" min-width="85" :resizable="false"> <el-table-column label="专业类别" min-width="85" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.groupSpecialty||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="法人代表" min-width="85" :resizable="false"> <el-table-column label="法人代表" min-width="85" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.representative||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="纳税人身份" min-width="120" :resizable="false"> <el-table-column label="纳税人身份" min-width="120" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.paytaxType||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="纳税人税率" min-width="120" :resizable="false"> <el-table-column label="纳税人税率" min-width="120" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.taxRate||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="施工承包范围" min-width="200" :resizable="false"> <el-table-column label="施工承包范围" min-width="120" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.constructJobScope||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="资质等级" min-width="85" :resizable="false"> <el-table-column label="资质等级" min-width="85" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.credential||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="注册资本(万元)" min-width="120" :resizable="false"> <el-table-column label="注册资本(万元)" min-width="120" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.registerCapital||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="公司联系人" min-width="120" :resizable="false"> <el-table-column label="公司联系人" min-width="120" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.contactPerson||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="联系人电话" min-width="120" :resizable="false"> <el-table-column label="联系人电话" min-width="120" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.contactPhone||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="准入时间" min-width="120" :resizable="false"> <el-table-column label="准入时间" min-width="120" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.approveDate2||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="公司合作数量" min-width="120" :resizable="false"> <el-table-column label="公司合作数量" min-width="120" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.enterpriseCooperationCount||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="合作项目数量" min-width="120" :resizable="false"> <el-table-column label="合作项目数量" min-width="120" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{scope.row.legalPerson||"--"}}</span> <span>{{scope.row.projectCooperationCount||"--"}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="分包商等级" min-width="120" :resizable="false"> <el-table-column label="分包商等级" min-width="120" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
<span class="wordprimary" @click="getFBS(scope.row)">{{scope.row.legalPerson||"--"}}</span> <span class="wordprimary" @click="getFBS(scope.row)">{{scope.row.creditLevel||"--"}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="链接" min-width="160" :resizable="false"> <el-table-column label="链接" min-width="160" :resizable="false">
...@@ -205,14 +208,14 @@ ...@@ -205,14 +208,14 @@
</el-table-column> </el-table-column>
<el-table-column label="资源平台分类" min-width="120" :resizable="false"> <el-table-column label="资源平台分类" min-width="120" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} --
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
<div class="pagination clearfix" v-show="total>0"> <div class="pagination clearfix" v-show="total>0">
<el-pagination background :page-size="pageSize" :current-page.sync="pageNum" @current-change="handleCurrentChange" layout="prev, pager, next" <el-pagination background :page-size="formdata.pageSize" :current-page.sync="formdata.pageNum" @current-change="handleCurrentChange" layout="prev, pager, next"
:total="total"> :total="total">
</el-pagination> </el-pagination>
</div> </div>
...@@ -260,20 +263,19 @@ ...@@ -260,20 +263,19 @@
</template> </template>
<script> <script>
import { encodeStr } from "@/assets/js/common.js"; import { encodeStr } from '@/assets/js/common.js'
import "@/assets/styles/public.scss"; import '@/assets/styles/public.scss'
import "@/assets/styles/supplierlist.scss"; import '@/assets/styles/supplierlist.scss'
import skeleton from '@/views/project/projectList/component/skeleton'; import skeleton from '@/views/project/projectList/component/skeleton'
import api from '@/api/enterpriseData/enterpriseData.js'; import { areaAll, bizDictData, custmerInfolist } from '@/api/supplier/supplier'
import dataRegion from '@/assets/json/provinceTree' import { getDicts } from '@/api/system/dict/data'
import { getDicts } from "@/api/system/dict/data"; import {queryConditionFiltering} from '@/utils/index'
export default { export default {
name: 'laborSubcontracting', name: 'laborSubcontracting',
components:{skeleton}, components:{skeleton},
data(){ data(){
return{ return{
encodeStr, encodeStr,
formdata:{},
addressList:[], addressList:[],
arealist:[], arealist:[],
creditlevel:[], creditlevel:[],
...@@ -281,215 +283,39 @@ ...@@ -281,215 +283,39 @@
credential:[], credential:[],
paytaxtype:[], paytaxtype:[],
taxrate:[], taxrate:[],
groupSpecialty:[],
provienceprops:{ provienceprops:{
checkStrictly:false,
multiple:true,
label:'value',
},
groupprops:{
checkStrictly:false, checkStrictly:false,
multiple:true, multiple:true,
value:'id', value:'id',
}, },
options: [ formdata:{
{ customerClass:'劳务分包',
value: 'zhinan',
label: '指南',
children: [{
value: 'shejiyuanze',
label: '设计原则',
children: [{
value: 'yizhi',
label: '一致'
}, {
value: 'fankui',
label: '反馈'
}, {
value: 'xiaolv',
label: '效率'
}, {
value: 'kekong',
label: '可控'
}]
}, {
value: 'daohang',
label: '导航',
children: [{
value: 'cexiangdaohang',
label: '侧向导航'
}, {
value: 'dingbudaohang',
label: '顶部导航'
}]
}]
}, {
value: 'zujian',
label: '组件',
children: [{
value: 'basic',
label: 'Basic',
children: [{
value: 'layout',
label: 'Layout 布局'
}, {
value: 'color',
label: 'Color 色彩'
}, {
value: 'typography',
label: 'Typography 字体'
}, {
value: 'icon',
label: 'Icon 图标'
}, {
value: 'button',
label: 'Button 按钮'
}]
}, {
value: 'form',
label: 'Form',
children: [{
value: 'radio',
label: 'Radio 单选框'
}, {
value: 'checkbox',
label: 'Checkbox 多选框'
}, {
value: 'input',
label: 'Input 输入框'
}, {
value: 'input-number',
label: 'InputNumber 计数器'
}, {
value: 'select',
label: 'Select 选择器'
}, {
value: 'cascader',
label: 'Cascader 级联选择器'
}, {
value: 'switch',
label: 'Switch 开关'
}, {
value: 'slider',
label: 'Slider 滑块'
}, {
value: 'time-picker',
label: 'TimePicker 时间选择器'
}, {
value: 'date-picker',
label: 'DatePicker 日期选择器'
}, {
value: 'datetime-picker',
label: 'DateTimePicker 日期时间选择器'
}, {
value: 'upload',
label: 'Upload 上传'
}, {
value: 'rate',
label: 'Rate 评分'
}, {
value: 'form',
label: 'Form 表单'
}]
}, {
value: 'data',
label: 'Data',
children: [{
value: 'table',
label: 'Table 表格'
}, {
value: 'tag',
label: 'Tag 标签'
}, {
value: 'progress',
label: 'Progress 进度条'
}, {
value: 'tree',
label: 'Tree 树形控件'
}, {
value: 'pagination',
label: 'Pagination 分页'
}, {
value: 'badge',
label: 'Badge 标记'
}]
}, {
value: 'notice',
label: 'Notice',
children: [{
value: 'alert',
label: 'Alert 警告'
}, {
value: 'loading',
label: 'Loading 加载'
}, {
value: 'message',
label: 'Message 消息提示'
}, {
value: 'message-box',
label: 'MessageBox 弹框'
}, {
value: 'notification',
label: 'Notification 通知'
}]
}, {
value: 'navigation',
label: 'Navigation',
children: [{
value: 'menu',
label: 'NavMenu 导航菜单'
}, {
value: 'tabs',
label: 'Tabs 标签页'
}, {
value: 'breadcrumb',
label: 'Breadcrumb 面包屑'
}, {
value: 'dropdown',
label: 'Dropdown 下拉菜单'
}, {
value: 'steps',
label: 'Steps 步骤条'
}]
}, {
value: 'others',
label: 'Others',
children: [{
value: 'dialog',
label: 'Dialog 对话框'
}, {
value: 'tooltip',
label: 'Tooltip 文字提示'
}, {
value: 'popover',
label: 'Popover 弹出框'
}, {
value: 'card',
label: 'Card 卡片'
}, {
value: 'carousel',
label: 'Carousel 走马灯'
}, {
value: 'collapse',
label: 'Collapse 折叠面板'
}]
}]
}, {
value: 'ziyuan',
label: '资源',
children: [{
value: 'axure',
label: 'Axure Components'
}, {
value: 'sketch',
label: 'Sketch Templates'
}, {
value: 'jiaohu',
label: '组件交互文档'
}]
}
],
tableData:[
{name:'测试',legalPerson:'AAAA'}
],
isSkeleton:false,
total:100,
pageSize:50,
pageNum:1, pageNum:1,
pageSize:50,
times:[],
customerName:"",
areas:[],
customerState:[],
credential:[],
groupSpecialtys:[],
groupSpecialtyId:[],
creditLevel:[],
paytaxType:[],
taxRate:[],
registerProvince:[],
registerCity:[],
approveDate2Start:null,
approveDate2End:null,
},
tableData:[],
isSkeleton:false,
total:0,
// table列是否悬浮 // table列是否悬浮
tableColumnFixed: true, tableColumnFixed: true,
fbsvisib:false, fbsvisib:false,
...@@ -498,13 +324,10 @@ ...@@ -498,13 +324,10 @@
}, },
created() { created() {
this.init() this.init()
this.cusoomerInfolist()
}, },
methods:{ methods:{
init(){ init(){
//地区
getDicts('arealist').then(res=>{
this.arealist = res.data
})
//评价等级 //评价等级
getDicts('credit_level').then(res=>{ getDicts('credit_level').then(res=>{
this.creditlevel = res.data this.creditlevel = res.data
...@@ -525,24 +348,81 @@ ...@@ -525,24 +348,81 @@
getDicts('credential').then(res=>{ getDicts('credential').then(res=>{
this.credential = res.data this.credential = res.data
}) })
this.dataRegion() // this.dataRegion()
//专业类别
bizDictData().then(res=>{
this.groupSpecialty = res.data
})
// 地区树
areaAll().then(res=>{
this.addressList = res.data
})
}, },
handleCurrentChange(){ clears(){
this.formdata = {
customerClass: '劳务分包',
pageNum: 1,
pageSize: 50,
times: [],
customerName: '',
areas: [],
customerState: [],
credential: [],
groupSpecialtys: [],
groupSpecialtyId: [],
creditLevel: [],
paytaxType: [],
taxRate: [],
registerProvince: [],
registerCity: [],
approveDate2Start: null,
approveDate2End: null
}
this.cusoomerInfolist()
}, },
//地区 cusoomerInfolist(){
async dataRegion() { this.isSkeleton = true
let addrs = JSON.parse(JSON.stringify(dataRegion)) let param = this.formdata
addrs.forEach(item=>{ if(param.times){
if (item.children) { param.approveDate2Start = param.times[0]
(item.children).forEach(i => { param.approveDate2End = param.times[1]
if (i.children) { }else{
delete i.children param.approveDate2Start = ''
param.approveDate2End = ''
} }
param.groupSpecialtyId = []
if(param.groupSpecialtys){
param.groupSpecialtys.forEach(item=>{
param.groupSpecialtyId.push(item[item.length-1])
}) })
} }
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])
}
}
}) })
this.addressList = addrs; param.registerProvince = province
param.registerCity = city
}else{
param.registerProvince = []
param.registerCity = []
}
custmerInfolist(queryConditionFiltering(this.formdata)).then(res=>{
this.isSkeleton = false
this.tableData = res.rows
this.total = res.total
})
},
handleCurrentChange(val){
this.formdata.pageNum = val
this.cusoomerInfolist()
}, },
setHeaderRow() { setHeaderRow() {
return "owner-table-list-header"; return "owner-table-list-header";
...@@ -562,7 +442,7 @@ ...@@ -562,7 +442,7 @@
}, },
//点击准入 //点击准入
goAccess(row){ goAccess(row){
this.$tab.openPage('测试一下-准入情况', '/supplier/supplierlist/access') this.$tab.openPage(row.customerName+'-准入情况', '/supplier/supplierlist/access',{customerKey:row.customerKey})
}, },
//点击考评 //点击考评
goAssessment(row){ goAssessment(row){
...@@ -575,5 +455,3 @@ ...@@ -575,5 +455,3 @@
<style scoped lang="scss"> <style scoped lang="scss">
</style> </style>
...@@ -10,62 +10,57 @@ ...@@ -10,62 +10,57 @@
<el-form :model="formdata" label-width="82px" label-position="right" :inline="true" > <el-form :model="formdata" label-width="82px" label-position="right" :inline="true" >
<el-row> <el-row>
<el-form-item label="供应商名称"> <el-form-item label="供应商名称">
<el-input v-model="formdata.user" placeholder="请输入分供方名称"></el-input> <el-input v-model="formdata.customerName" placeholder="请输入供应商名称"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="劳务队长"> <el-form-item label="劳务队长">
<el-input v-model="formdata.user" placeholder="请输入劳务队长"></el-input> <el-input v-model="formdata.leaderName" placeholder="请输入劳务队长"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="注册地区">
<el-select v-model="formdata.user" multiple placeholder="请选择" :collapse-tags="true" clearable>
<el-option v-for="(item,index) in arealist" :label="item.dictLabel" :value="item.dictValue" :key="index"></el-option>
</el-select>
</el-form-item>
</el-row>
<el-row>
<el-form-item label="注册城市"> <el-form-item label="注册城市">
<el-cascader <el-cascader
v-model="formdata.user" v-model="formdata.areas"
:options="addressList" :collapse-tags="true" :options="addressList" :collapse-tags="true" :show-all-levels="false" clearable
:props="provienceprops"></el-cascader> :props="provienceprops"></el-cascader>
</el-form-item> </el-form-item>
</el-row>
<el-row>
<el-form-item label="供应商状态"> <el-form-item label="供应商状态">
<el-select v-model="formdata.user" multiple placeholder="请选择" :collapse-tags="true" clearable> <el-select v-model="formdata.customerState" multiple placeholder="请选择" :collapse-tags="true" clearable>
<el-option v-for="(item,index) in customstate" :label="item.dictLabel" :value="item.dictValue" :key="index"></el-option> <el-option v-for="(item,index) in customstate" :label="item.dictLabel" :value="item.dictValue" :key="index"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="资质等级"> <el-form-item label="资质等级">
<el-select v-model="formdata.user" multiple placeholder="请选择" :collapse-tags="true" clearable> <el-select v-model="formdata.credential" multiple placeholder="请选择" :collapse-tags="true" clearable>
<el-option v-for="(item,index) in credential" :label="item.dictLabel" :value="item.dictValue" :key="index"></el-option> <el-option v-for="(item,index) in credential" :label="item.dictLabel" :value="item.dictValue" :key="index"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-row>
<el-row>
<el-form-item label="专业类别"> <el-form-item label="专业类别">
<el-select v-model="formdata.user" placeholder="请选择"> <el-cascader clearable
<el-option label="区域一" value="shanghai"></el-option> v-model="formdata.groupSpecialtys"
<el-option label="区域二" value="beijing"></el-option> :options="groupSpecialty" :collapse-tags="true"
</el-select> :props="groupprops"></el-cascader>
</el-form-item> </el-form-item>
</el-row>
<el-row>
<el-form-item label="评价等级"> <el-form-item label="评价等级">
<el-select v-model="formdata.user" multiple placeholder="请选择" :collapse-tags="true" clearable> <el-select v-model="formdata.creditLevel" multiple placeholder="请选择" :collapse-tags="true" clearable>
<el-option v-for="(item,index) in creditlevel" :label="item.dictLabel" :value="item.dictValue" :key="index"></el-option> <el-option v-for="(item,index) in creditlevel" :label="item.dictLabel" :value="item.dictValue" :key="index"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="纳税人身份"> <el-form-item label="纳税人身份">
<el-select v-model="formdata.user" multiple placeholder="请选择" :collapse-tags="true" clearable> <el-select v-model="formdata.paytaxType" multiple placeholder="请选择" :collapse-tags="true" clearable>
<el-option v-for="(item,index) in paytaxtype" :label="item.dictLabel" :value="item.dictValue" :key="index"></el-option> <el-option v-for="(item,index) in paytaxtype" :label="item.dictLabel" :value="item.dictValue" :key="index"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-row>
<el-row>
<el-form-item label="纳税人税率"> <el-form-item label="纳税人税率">
<el-select v-model="formdata.user" multiple placeholder="请选择" :collapse-tags="true" clearable> <el-select v-model="formdata.taxRate" multiple placeholder="请选择" :collapse-tags="true" clearable>
<el-option v-for="(item,index) in taxrate" :label="item.dictLabel" :value="item.dictValue" :key="index"></el-option> <el-option v-for="(item,index) in taxrate" :label="item.dictLabel" :value="item.dictValue" :key="index"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-row>
<el-row>
<el-form-item label="准入时间"> <el-form-item label="准入时间">
<el-date-picker <el-date-picker
v-model="formdata.time" v-model="formdata.times"
type="daterange" type="daterange"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
range-separator="至" range-separator="至"
...@@ -76,8 +71,8 @@ ...@@ -76,8 +71,8 @@
</el-row> </el-row>
<el-divider></el-divider> <el-divider></el-divider>
<el-form-item label=" "> <el-form-item label=" ">
<el-button type="primary" size="small">查询</el-button> <el-button type="primary" size="small" @click="handleCurrentChange(1)">查询</el-button>
<el-button size="small">重置</el-button> <el-button size="small" @click="clears">重置</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
...@@ -86,6 +81,11 @@ ...@@ -86,6 +81,11 @@
<div class="total-title"> <div class="total-title">
<div class="totals">{{total}}</div> <div class="totals">{{total}}</div>
</div> </div>
<div class="table-item-jf table-item-jf1 empty-table" v-if="total == 0 && !isSkeleton">
<img class="item-jf-img" src="@/assets/images/kong.png" alt="">
<div class="item-jf-titel">暂无相关数据</div>
<div class="item-jf-text">抱歉,暂无数据,试试更换搜索条件吧</div>
</div>
<skeleton v-if="isSkeleton"></skeleton> <skeleton v-if="isSkeleton"></skeleton>
<div class="table-item-jf table-item" v-if="!isSkeleton&&tableData.length>0"> <div class="table-item-jf table-item" v-if="!isSkeleton&&tableData.length>0">
...@@ -96,20 +96,23 @@ ...@@ -96,20 +96,23 @@
<el-table-column type="index" label="序号" :fixed="tableColumnFixed" width="60" :resizable="false"> <el-table-column type="index" label="序号" :fixed="tableColumnFixed" width="60" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{(pageNum - 1) *pageSize + scope.$index + 1}}</span> <span>{{(formdata.pageNum - 1) *formdata.pageSize + scope.$index + 1}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="二级市场编码" :fixed="tableColumnFixed" width="120" :resizable="false"> <el-table-column label="二级市场编码" :fixed="tableColumnFixed" width="120" :resizable="false">
<template slot-scope="scope">
{{scope.row.secondaryCode||"--"}}
</template>
</el-table-column> </el-table-column>
<el-table-column label="供应商编号" :fixed="tableColumnFixed" width="120" :resizable="false"> <el-table-column label="供应商编号" prop="customerCode" :fixed="tableColumnFixed" width="120" :resizable="false">
</el-table-column> </el-table-column>
<el-table-column label="供应商名称" :fixed="tableColumnFixed" width="380" :resizable="false"> <el-table-column label="供应商名称" :fixed="tableColumnFixed" width="380" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="renling"> <div class="renling">
<div style="display:flex;align-items:center"> <div style="display:flex;align-items:center">
<router-link :to="`/enterprise/${encodeStr(scope.row.id)}`" tag="a" <router-link :to="`/enterprise/${encodeStr(scope.row.companyId)}`" tag="a"
class="wordprimary" v-html="scope.row.name"></router-link> class="wordprimary" v-html="scope.row.customerName"></router-link>
</div> </div>
</div> </div>
...@@ -117,121 +120,89 @@ ...@@ -117,121 +120,89 @@
</el-table-column> </el-table-column>
<el-table-column label="营业执照号码" min-width="280">
<template slot-scope="scope">
{{scope.row.legalPerson||"--"}}
</template>
</el-table-column>
<el-table-column label="推荐单位" min-width="280"> <el-table-column label="推荐单位" min-width="280">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.recommendOrg||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="公司注册区域" min-width="120" :resizable="false"> <el-table-column label="公司注册区域" min-width="120" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.registerRegion||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="公司注册省" min-width="120" :resizable="false"> <el-table-column label="公司注册省" min-width="120" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.registerProvince||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="公司注册城市" min-width="120" :resizable="false"> <el-table-column label="公司注册城市" min-width="120" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.registerCity||"--"}}
</template>
</el-table-column>
<el-table-column label="法人代表" min-width="85" :resizable="false">
<template slot-scope="scope">
{{scope.row.legalPerson||"--"}}
</template>
</el-table-column>
<el-table-column label="公司联系人" min-width="120" :resizable="false">
<template slot-scope="scope">
{{scope.row.legalPerson||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="联系人电话" min-width="120" :resizable="false"> <el-table-column label="专业类别" min-width="85" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.groupSpecialty||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="注册资本(万元)" min-width="120" :resizable="false"> <el-table-column label="法人代表" min-width="85" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.representative||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="纳税人身份" min-width="120" :resizable="false"> <el-table-column label="纳税人身份" min-width="120" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.paytaxType||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="纳税人税率" min-width="120" :resizable="false"> <el-table-column label="纳税人税率" min-width="120" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.taxRate||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="资质等级" min-width="85" :resizable="false"> <el-table-column label="施工承包范围" min-width="120" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.constructJobScope||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="主项资质" min-width="85" :resizable="false"> <el-table-column label="资质等级" min-width="85" :resizable="false">
<template slot-scope="scope">
<!--没有值直接展示空-->
--
</template>
</el-table-column>
<el-table-column label="劳务资质" min-width="85" :resizable="false">
<template slot-scope="scope">
<!--没有值直接展示空-->
--
</template>
</el-table-column>
<el-table-column label="施工队长" min-width="85" :resizable="false">
<template slot-scope="scope">
{{scope.row.legalPerson||"--"}}
</template>
</el-table-column>
<el-table-column label="联系电话" min-width="85" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.credential||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="身份证号" min-width="85" :resizable="false"> <el-table-column label="注册资本(万元)" min-width="120" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.registerCapital||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="队伍规模" min-width="85" :resizable="false"> <el-table-column label="公司联系人" min-width="120" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.contactPerson||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="专业特长" min-width="85" :resizable="false"> <el-table-column label="联系人电话" min-width="120" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.contactPhone||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="准入时间" min-width="120" :resizable="false"> <el-table-column label="准入时间" min-width="120" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.approveDate2||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="公司合作数量" min-width="120" :resizable="false"> <el-table-column label="公司合作数量" min-width="120" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.enterpriseCooperationCount||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="合作项目数量" min-width="120" :resizable="false"> <el-table-column label="合作项目数量" min-width="120" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{scope.row.legalPerson||"--"}}</span> <span>{{scope.row.projectCooperationCount||"--"}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="分包商等级" min-width="120" :resizable="false"> <el-table-column label="分包商等级" min-width="120" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
<span class="wordprimary" @click="getFBS(scope.row)">{{scope.row.legalPerson||"--"}}</span> <span class="wordprimary" @click="getFBS(scope.row)">{{scope.row.creditLevel||"--"}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="链接" min-width="160" :resizable="false"> <el-table-column label="链接" min-width="160" :resizable="false">
...@@ -242,14 +213,14 @@ ...@@ -242,14 +213,14 @@
</el-table-column> </el-table-column>
<el-table-column label="资源平台分类" min-width="120" :resizable="false"> <el-table-column label="资源平台分类" min-width="120" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} --
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
<div class="pagination clearfix" v-show="total>0"> <div class="pagination clearfix" v-show="total>0">
<el-pagination background :page-size="pageSize" :current-page.sync="pageNum" @current-change="handleCurrentChange" layout="prev, pager, next" <el-pagination background :page-size="formdata.pageSize" :current-page.sync="formdata.pageNum" @current-change="handleCurrentChange" layout="prev, pager, next"
:total="total"> :total="total">
</el-pagination> </el-pagination>
</div> </div>
...@@ -297,13 +268,13 @@ ...@@ -297,13 +268,13 @@
</template> </template>
<script> <script>
import { encodeStr } from "@/assets/js/common.js"; import { encodeStr } from '@/assets/js/common.js'
import "@/assets/styles/public.scss"; import '@/assets/styles/public.scss'
import "@/assets/styles/supplierlist.scss"; import '@/assets/styles/supplierlist.scss'
import skeleton from '@/views/project/projectList/component/skeleton'; import skeleton from '@/views/project/projectList/component/skeleton'
import api from '@/api/enterpriseData/enterpriseData.js'; import { areaAll, bizDictData, custmerInfolist } from '@/api/supplier/supplier'
import dataRegion from '@/assets/json/provinceTree' import { getDicts } from '@/api/system/dict/data'
import { getDicts } from "@/api/system/dict/data"; import {queryConditionFiltering} from '@/utils/index'
export default { export default {
name: 'laborSubcontractingTeam', name: 'laborSubcontractingTeam',
components:{skeleton}, components:{skeleton},
...@@ -317,216 +288,40 @@ ...@@ -317,216 +288,40 @@
credential:[], credential:[],
paytaxtype:[], paytaxtype:[],
taxrate:[], taxrate:[],
groupSpecialty:[],
provienceprops:{ provienceprops:{
checkStrictly:false,
multiple:true,
label:'value',
},
groupprops:{
checkStrictly:false, checkStrictly:false,
multiple:true, multiple:true,
value:'id', value:'id',
}, },
formdata:{}, formdata:{
options: [ customerClass:'劳务分包队伍',
{
value: 'zhinan',
label: '指南',
children: [{
value: 'shejiyuanze',
label: '设计原则',
children: [{
value: 'yizhi',
label: '一致'
}, {
value: 'fankui',
label: '反馈'
}, {
value: 'xiaolv',
label: '效率'
}, {
value: 'kekong',
label: '可控'
}]
}, {
value: 'daohang',
label: '导航',
children: [{
value: 'cexiangdaohang',
label: '侧向导航'
}, {
value: 'dingbudaohang',
label: '顶部导航'
}]
}]
}, {
value: 'zujian',
label: '组件',
children: [{
value: 'basic',
label: 'Basic',
children: [{
value: 'layout',
label: 'Layout 布局'
}, {
value: 'color',
label: 'Color 色彩'
}, {
value: 'typography',
label: 'Typography 字体'
}, {
value: 'icon',
label: 'Icon 图标'
}, {
value: 'button',
label: 'Button 按钮'
}]
}, {
value: 'form',
label: 'Form',
children: [{
value: 'radio',
label: 'Radio 单选框'
}, {
value: 'checkbox',
label: 'Checkbox 多选框'
}, {
value: 'input',
label: 'Input 输入框'
}, {
value: 'input-number',
label: 'InputNumber 计数器'
}, {
value: 'select',
label: 'Select 选择器'
}, {
value: 'cascader',
label: 'Cascader 级联选择器'
}, {
value: 'switch',
label: 'Switch 开关'
}, {
value: 'slider',
label: 'Slider 滑块'
}, {
value: 'time-picker',
label: 'TimePicker 时间选择器'
}, {
value: 'date-picker',
label: 'DatePicker 日期选择器'
}, {
value: 'datetime-picker',
label: 'DateTimePicker 日期时间选择器'
}, {
value: 'upload',
label: 'Upload 上传'
}, {
value: 'rate',
label: 'Rate 评分'
}, {
value: 'form',
label: 'Form 表单'
}]
}, {
value: 'data',
label: 'Data',
children: [{
value: 'table',
label: 'Table 表格'
}, {
value: 'tag',
label: 'Tag 标签'
}, {
value: 'progress',
label: 'Progress 进度条'
}, {
value: 'tree',
label: 'Tree 树形控件'
}, {
value: 'pagination',
label: 'Pagination 分页'
}, {
value: 'badge',
label: 'Badge 标记'
}]
}, {
value: 'notice',
label: 'Notice',
children: [{
value: 'alert',
label: 'Alert 警告'
}, {
value: 'loading',
label: 'Loading 加载'
}, {
value: 'message',
label: 'Message 消息提示'
}, {
value: 'message-box',
label: 'MessageBox 弹框'
}, {
value: 'notification',
label: 'Notification 通知'
}]
}, {
value: 'navigation',
label: 'Navigation',
children: [{
value: 'menu',
label: 'NavMenu 导航菜单'
}, {
value: 'tabs',
label: 'Tabs 标签页'
}, {
value: 'breadcrumb',
label: 'Breadcrumb 面包屑'
}, {
value: 'dropdown',
label: 'Dropdown 下拉菜单'
}, {
value: 'steps',
label: 'Steps 步骤条'
}]
}, {
value: 'others',
label: 'Others',
children: [{
value: 'dialog',
label: 'Dialog 对话框'
}, {
value: 'tooltip',
label: 'Tooltip 文字提示'
}, {
value: 'popover',
label: 'Popover 弹出框'
}, {
value: 'card',
label: 'Card 卡片'
}, {
value: 'carousel',
label: 'Carousel 走马灯'
}, {
value: 'collapse',
label: 'Collapse 折叠面板'
}]
}]
}, {
value: 'ziyuan',
label: '资源',
children: [{
value: 'axure',
label: 'Axure Components'
}, {
value: 'sketch',
label: 'Sketch Templates'
}, {
value: 'jiaohu',
label: '组件交互文档'
}]
}
],
tableData:[
{name:'测试',legalPerson:'AAAA'}
],
isSkeleton:false,
total:100,
pageSize:50,
pageNum:1, pageNum:1,
pageSize:50,
times:[],
customerName:"",
leaderName:"",
areas:[],
customerState:[],
credential:[],
groupSpecialtys:[],
groupSpecialtyId:[],
creditLevel:[],
paytaxType:[],
taxRate:[],
registerProvince:[],
registerCity:[],
approveDate2Start:null,
approveDate2End:null,
},
tableData:[],
isSkeleton:false,
total:0,
// table列是否悬浮 // table列是否悬浮
tableColumnFixed: true, tableColumnFixed: true,
fbsvisib:false, fbsvisib:false,
...@@ -535,13 +330,10 @@ ...@@ -535,13 +330,10 @@
}, },
created() { created() {
this.init() this.init()
this.cusoomerInfolist()
}, },
methods:{ methods:{
init(){ init(){
//地区
getDicts('arealist').then(res=>{
this.arealist = res.data
})
//评价等级 //评价等级
getDicts('credit_level').then(res=>{ getDicts('credit_level').then(res=>{
this.creditlevel = res.data this.creditlevel = res.data
...@@ -562,24 +354,82 @@ ...@@ -562,24 +354,82 @@
getDicts('credential').then(res=>{ getDicts('credential').then(res=>{
this.credential = res.data this.credential = res.data
}) })
this.dataRegion() // this.dataRegion()
//专业类别
bizDictData().then(res=>{
this.groupSpecialty = res.data
})
// 地区树
areaAll().then(res=>{
this.addressList = res.data
})
}, },
//地区 clears(){
async dataRegion() { this.formdata = {
let addrs = JSON.parse(JSON.stringify(dataRegion)) customerClass: '劳务分包队伍',
addrs.forEach(item=>{ pageNum: 1,
if (item.children) { pageSize: 50,
(item.children).forEach(i => { times: [],
if (i.children) { customerName: '',
delete i.children leaderName: '',
areas: [],
customerState: [],
credential: [],
groupSpecialtys: [],
groupSpecialtyId: [],
creditLevel: [],
paytaxType: [],
taxRate: [],
registerProvince: [],
registerCity: [],
approveDate2Start: null,
approveDate2End: null
}
this.cusoomerInfolist()
},
cusoomerInfolist(){
this.isSkeleton = true
let param = this.formdata
if(param.times){
param.approveDate2Start = param.times[0]
param.approveDate2End = param.times[1]
}else{
param.approveDate2Start = ''
param.approveDate2End = ''
}
param.groupSpecialtyId = []
if(param.groupSpecialtys){
param.groupSpecialtys.forEach(item=>{
param.groupSpecialtyId.push(item[item.length-1])
})
}
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.registerProvince = province
param.registerCity = city
}else{
param.registerProvince = []
param.registerCity = []
} }
custmerInfolist(queryConditionFiltering(this.formdata)).then(res=>{
this.isSkeleton = false
this.tableData = res.rows
this.total = res.total
}) })
this.addressList = addrs;
}, },
handleCurrentChange(){ handleCurrentChange(val){
this.formdata.pageNum = val
this.cusoomerInfolist()
}, },
setHeaderRow() { setHeaderRow() {
return "owner-table-list-header"; return "owner-table-list-header";
...@@ -599,7 +449,7 @@ ...@@ -599,7 +449,7 @@
}, },
//点击准入 //点击准入
goAccess(row){ goAccess(row){
this.$tab.openPage('测试一下-准入情况', '/supplier/supplierlist/access') this.$tab.openPage(row.customerName+'-准入情况', '/supplier/supplierlist/access',{customerKey:row.customerKey})
}, },
//点击考评 //点击考评
goAssessment(row){ goAssessment(row){
...@@ -612,5 +462,3 @@ ...@@ -612,5 +462,3 @@
<style scoped lang="scss"> <style scoped lang="scss">
</style> </style>
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
<span class="excel" @click="$message({message: '功能正在开发中',type: 'warning'})">导出EXCEL</span> <span class="excel" @click="$message({message: '功能正在开发中',type: 'warning'})">导出EXCEL</span>
</p> </p>
</div> </div>
<div class="table-item-jf table-item-jf1 empty-table" v-if="!tableData.length && !isSkeleton"> <div class="table-item-jf table-item-jf1 empty-table" v-if="total == 0 && !isSkeleton">
<img class="item-jf-img" src="@/assets/images/kong.png" alt=""> <img class="item-jf-img" src="@/assets/images/kong.png" alt="">
<div class="item-jf-titel">暂无相关数据</div> <div class="item-jf-titel">暂无相关数据</div>
<div class="item-jf-text">抱歉,暂无数据,试试更换搜索条件吧</div> <div class="item-jf-text">抱歉,暂无数据,试试更换搜索条件吧</div>
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
</el-form-item> </el-form-item>
<el-form-item label="专业类别"> <el-form-item label="专业类别">
<el-cascader clearable <el-cascader clearable
v-model="formdata.groupSpecialty" v-model="formdata.groupSpecialtys"
:options="groupSpecialty" :collapse-tags="true" :options="groupSpecialty" :collapse-tags="true"
:props="groupprops"></el-cascader> :props="groupprops"></el-cascader>
</el-form-item> </el-form-item>
...@@ -76,6 +76,11 @@ ...@@ -76,6 +76,11 @@
<div class="total-title"> <div class="total-title">
<div class="totals">{{total}}</div> <div class="totals">{{total}}</div>
</div> </div>
<div class="table-item-jf table-item-jf1 empty-table" v-if="total == 0 && !isSkeleton">
<img class="item-jf-img" src="@/assets/images/kong.png" alt="">
<div class="item-jf-titel">暂无相关数据</div>
<div class="item-jf-text">抱歉,暂无数据,试试更换搜索条件吧</div>
</div>
<skeleton v-if="isSkeleton"></skeleton> <skeleton v-if="isSkeleton"></skeleton>
<div class="table-item-jf table-item" v-if="!isSkeleton&&tableData.length>0"> <div class="table-item-jf table-item" v-if="!isSkeleton&&tableData.length>0">
...@@ -294,7 +299,7 @@ ...@@ -294,7 +299,7 @@
areas:[], areas:[],
customerState:[], customerState:[],
credential:[], credential:[],
groupSpecialty:[], groupSpecialtys:[],
groupSpecialtyId:[], groupSpecialtyId:[],
creditLevel:[], creditLevel:[],
paytaxType:[], paytaxType:[],
...@@ -359,7 +364,7 @@ ...@@ -359,7 +364,7 @@
areas: [], areas: [],
customerState: [], customerState: [],
credential: [], credential: [],
groupSpecialty: [], groupSpecialtys: [],
groupSpecialtyId: [], groupSpecialtyId: [],
creditLevel: [], creditLevel: [],
paytaxType: [], paytaxType: [],
...@@ -381,12 +386,11 @@ ...@@ -381,12 +386,11 @@
param.approveDate2Start = '' param.approveDate2Start = ''
param.approveDate2End = '' param.approveDate2End = ''
} }
if(param.groupSpecialty){ param.groupSpecialtyId = []
param.groupSpecialty.forEach(item=>{ if(param.groupSpecialtys){
param.groupSpecialtys.forEach(item=>{
param.groupSpecialtyId.push(item[item.length-1]) param.groupSpecialtyId.push(item[item.length-1])
}) })
}else{
param.groupSpecialtyId = []
} }
if(param.areas){ if(param.areas){
let province = [] let province = []
...@@ -406,8 +410,6 @@ ...@@ -406,8 +410,6 @@
param.registerProvince = [] param.registerProvince = []
param.registerCity = [] param.registerCity = []
} }
console.log(queryConditionFiltering(this.formdata))
return false
custmerInfolist(queryConditionFiltering(this.formdata)).then(res=>{ custmerInfolist(queryConditionFiltering(this.formdata)).then(res=>{
this.isSkeleton = false this.isSkeleton = false
this.tableData = res.rows this.tableData = res.rows
......
<template> <template>
<div class="supplier"> <div class="supplier">
<div class="search-supplier"> <div class="search-supplier">
...@@ -11,59 +10,52 @@ ...@@ -11,59 +10,52 @@
<el-form :model="formdata" label-width="82px" label-position="right" :inline="true" > <el-form :model="formdata" label-width="82px" label-position="right" :inline="true" >
<el-row> <el-row>
<el-form-item label="供应商名称"> <el-form-item label="供应商名称">
<el-input v-model="formdata.user" placeholder="请输入分供方名称"></el-input> <el-input v-model="formdata.customerName" placeholder="请输入供应商名称"></el-input>
</el-form-item>
<el-form-item label="注册地区">
<el-select v-model="formdata.user" multiple placeholder="请选择" :collapse-tags="true" clearable>
<el-option v-for="(item,index) in arealist" :label="item.dictLabel" :value="item.dictValue" :key="index"></el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item label="注册城市"> <el-form-item label="注册城市">
<el-cascader <el-cascader
v-model="formdata.user" v-model="formdata.areas"
:options="addressList" :collapse-tags="true" :options="addressList" :collapse-tags="true" :show-all-levels="false" clearable
:props="provienceprops"></el-cascader> :props="provienceprops"></el-cascader>
</el-form-item> </el-form-item>
</el-row>
<el-row>
<el-form-item label="供应商状态"> <el-form-item label="供应商状态">
<el-select v-model="formdata.user" multiple placeholder="请选择" :collapse-tags="true" clearable> <el-select v-model="formdata.customerState" multiple placeholder="请选择" :collapse-tags="true" clearable>
<el-option v-for="(item,index) in customstate" :label="item.dictLabel" :value="item.dictValue" :key="index"></el-option> <el-option v-for="(item,index) in customstate" :label="item.dictLabel" :value="item.dictValue" :key="index"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-row>
<el-row>
<el-form-item label="资质等级"> <el-form-item label="资质等级">
<el-select v-model="formdata.user" multiple placeholder="请选择" :collapse-tags="true" clearable> <el-select v-model="formdata.credential" multiple placeholder="请选择" :collapse-tags="true" clearable>
<el-option v-for="(item,index) in credential" :label="item.dictLabel" :value="item.dictValue" :key="index"></el-option> <el-option v-for="(item,index) in credential" :label="item.dictLabel" :value="item.dictValue" :key="index"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="物资类别"> <el-form-item label="物资类别">
<el-select v-model="formdata.user" placeholder="请选择"> <el-cascader clearable
<el-option label="区域一" value="shanghai"></el-option> v-model="formdata.groupSpecialtys"
<el-option label="区域二" value="beijing"></el-option> :options="groupSpecialty" :collapse-tags="true"
</el-select> :props="groupprops"></el-cascader>
</el-form-item> </el-form-item>
</el-row>
<el-row>
<el-form-item label="评价等级"> <el-form-item label="评价等级">
<el-select v-model="formdata.user" multiple placeholder="请选择" :collapse-tags="true" clearable> <el-select v-model="formdata.creditLevel" multiple placeholder="请选择" :collapse-tags="true" clearable>
<el-option v-for="(item,index) in creditlevel" :label="item.dictLabel" :value="item.dictValue" :key="index"></el-option> <el-option v-for="(item,index) in creditlevel" :label="item.dictLabel" :value="item.dictValue" :key="index"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-row>
<el-row>
<el-form-item label="纳税人身份"> <el-form-item label="纳税人身份">
<el-select v-model="formdata.user" multiple placeholder="请选择" :collapse-tags="true" clearable> <el-select v-model="formdata.paytaxType" multiple placeholder="请选择" :collapse-tags="true" clearable>
<el-option v-for="(item,index) in paytaxtype" :label="item.dictLabel" :value="item.dictValue" :key="index"></el-option> <el-option v-for="(item,index) in paytaxtype" :label="item.dictLabel" :value="item.dictValue" :key="index"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="纳税人税率"> <el-form-item label="纳税人税率">
<el-select v-model="formdata.user" multiple placeholder="请选择" :collapse-tags="true" clearable> <el-select v-model="formdata.taxRate" multiple placeholder="请选择" :collapse-tags="true" clearable>
<el-option v-for="(item,index) in taxrate" :label="item.dictLabel" :value="item.dictValue" :key="index"></el-option> <el-option v-for="(item,index) in taxrate" :label="item.dictLabel" :value="item.dictValue" :key="index"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-row>
<el-row>
<el-form-item label="准入时间"> <el-form-item label="准入时间">
<el-date-picker <el-date-picker
v-model="formdata.time" v-model="formdata.times"
type="daterange" type="daterange"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
range-separator="至" range-separator="至"
...@@ -74,8 +66,8 @@ ...@@ -74,8 +66,8 @@
</el-row> </el-row>
<el-divider></el-divider> <el-divider></el-divider>
<el-form-item label=" "> <el-form-item label=" ">
<el-button type="primary" size="small">查询</el-button> <el-button type="primary" size="small" @click="handleCurrentChange(1)">查询</el-button>
<el-button size="small">重置</el-button> <el-button size="small" @click="clears">重置</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
...@@ -84,6 +76,11 @@ ...@@ -84,6 +76,11 @@
<div class="total-title"> <div class="total-title">
<div class="totals">{{total}}</div> <div class="totals">{{total}}</div>
</div> </div>
<div class="table-item-jf table-item-jf1 empty-table" v-if="total == 0 && !isSkeleton">
<img class="item-jf-img" src="@/assets/images/kong.png" alt="">
<div class="item-jf-titel">暂无相关数据</div>
<div class="item-jf-text">抱歉,暂无数据,试试更换搜索条件吧</div>
</div>
<skeleton v-if="isSkeleton"></skeleton> <skeleton v-if="isSkeleton"></skeleton>
<div class="table-item-jf table-item" v-if="!isSkeleton&&tableData.length>0"> <div class="table-item-jf table-item" v-if="!isSkeleton&&tableData.length>0">
...@@ -94,18 +91,18 @@ ...@@ -94,18 +91,18 @@
<el-table-column type="index" label="序号" :fixed="tableColumnFixed" width="60" :resizable="false"> <el-table-column type="index" label="序号" :fixed="tableColumnFixed" width="60" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{(pageNum - 1) *pageSize + scope.$index + 1}}</span> <span>{{(formdata.pageNum - 1) *formdata.pageSize + scope.$index + 1}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="供应商编号" :fixed="tableColumnFixed" width="120" :resizable="false"> <el-table-column label="供应商编号" prop="customerCode" :fixed="tableColumnFixed" width="120" :resizable="false">
</el-table-column> </el-table-column>
<el-table-column label="供应商名称" :fixed="tableColumnFixed" width="380" :resizable="false"> <el-table-column label="供应商名称" :fixed="tableColumnFixed" width="380" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="renling"> <div class="renling">
<div style="display:flex;align-items:center"> <div style="display:flex;align-items:center">
<router-link :to="`/enterprise/${encodeStr(scope.row.id)}`" tag="a" <router-link :to="`/enterprise/${encodeStr(scope.row.companyId)}`" tag="a"
class="wordprimary" v-html="scope.row.name"></router-link> class="wordprimary" v-html="scope.row.customerName"></router-link>
</div> </div>
</div> </div>
...@@ -115,82 +112,82 @@ ...@@ -115,82 +112,82 @@
<el-table-column label="推荐单位" min-width="280"> <el-table-column label="推荐单位" min-width="280">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.recommendOrg||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="公司注册区域" min-width="120" :resizable="false"> <el-table-column label="公司注册区域" min-width="120" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.registerRegion||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="公司注册省" min-width="120" :resizable="false"> <el-table-column label="公司注册省" min-width="120" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.registerProvince||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="公司注册城市" min-width="120" :resizable="false"> <el-table-column label="公司注册城市" min-width="120" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.registerCity||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="专业类别" min-width="85" :resizable="false"> <el-table-column label="专业类别" min-width="85" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.groupSpecialty||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="法人代表" min-width="85" :resizable="false"> <el-table-column label="法人代表" min-width="85" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.representative||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="纳税人身份" min-width="120" :resizable="false"> <el-table-column label="纳税人身份" min-width="120" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.paytaxType||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="纳税人税率" min-width="120" :resizable="false"> <el-table-column label="纳税人税率" min-width="120" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.taxRate||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="资质等级" min-width="85" :resizable="false"> <el-table-column label="资质等级" min-width="85" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.credential||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="注册资本(万元)" min-width="120" :resizable="false"> <el-table-column label="注册资本(万元)" min-width="120" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.registerCapital||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="公司联系人" min-width="120" :resizable="false"> <el-table-column label="公司联系人" min-width="120" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.contactPerson||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="联系人电话" min-width="120" :resizable="false"> <el-table-column label="联系人电话" min-width="120" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.contactPhone||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="准入时间" min-width="120" :resizable="false"> <el-table-column label="准入时间" min-width="120" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.approveDate2||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="公司合作数量" min-width="120" :resizable="false"> <el-table-column label="公司合作数量" min-width="120" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.enterpriseCooperationCount||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="合作项目数量" min-width="120" :resizable="false"> <el-table-column label="合作项目数量" min-width="120" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{scope.row.legalPerson||"--"}}</span> <span>{{scope.row.projectCooperationCount||"--"}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="分包商等级" min-width="120" :resizable="false"> <el-table-column label="分包商等级" min-width="120" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
<span class="wordprimary" @click="getFBS(scope.row)">{{scope.row.legalPerson||"--"}}</span> <span class="wordprimary" @click="getFBS(scope.row)">{{scope.row.creditLevel||"--"}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="链接" min-width="160" :resizable="false"> <el-table-column label="链接" min-width="160" :resizable="false">
...@@ -201,14 +198,14 @@ ...@@ -201,14 +198,14 @@
</el-table-column> </el-table-column>
<el-table-column label="资源平台分类" min-width="120" :resizable="false"> <el-table-column label="资源平台分类" min-width="120" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} --
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
<div class="pagination clearfix" v-show="total>0"> <div class="pagination clearfix" v-show="total>0">
<el-pagination background :page-size="pageSize" :current-page.sync="pageNum" @current-change="handleCurrentChange" layout="prev, pager, next" <el-pagination background :page-size="formdata.pageSize" :current-page.sync="formdata.pageNum" @current-change="handleCurrentChange" layout="prev, pager, next"
:total="total"> :total="total">
</el-pagination> </el-pagination>
</div> </div>
...@@ -256,13 +253,13 @@ ...@@ -256,13 +253,13 @@
</template> </template>
<script> <script>
import { encodeStr } from "@/assets/js/common.js"; import { encodeStr } from '@/assets/js/common.js'
import "@/assets/styles/public.scss"; import '@/assets/styles/public.scss'
import "@/assets/styles/supplierlist.scss"; import '@/assets/styles/supplierlist.scss'
import skeleton from '@/views/project/projectList/component/skeleton'; import skeleton from '@/views/project/projectList/component/skeleton'
import api from '@/api/enterpriseData/enterpriseData.js'; import { areaAll, bizDictData, custmerInfolist } from '@/api/supplier/supplier'
import dataRegion from '@/assets/json/provinceTree' import { getDicts } from '@/api/system/dict/data'
import { getDicts } from "@/api/system/dict/data"; import {queryConditionFiltering} from '@/utils/index'
export default { export default {
name: 'rentalServices', name: 'rentalServices',
components:{skeleton}, components:{skeleton},
...@@ -276,216 +273,39 @@ ...@@ -276,216 +273,39 @@
credential:[], credential:[],
paytaxtype:[], paytaxtype:[],
taxrate:[], taxrate:[],
groupSpecialty:[],
provienceprops:{ provienceprops:{
checkStrictly:false,
multiple:true,
label:'value',
},
groupprops:{
checkStrictly:false, checkStrictly:false,
multiple:true, multiple:true,
value:'id', value:'id',
}, },
formdata:{}, formdata:{
options: [ customerClass:'租赁',
{
value: 'zhinan',
label: '指南',
children: [{
value: 'shejiyuanze',
label: '设计原则',
children: [{
value: 'yizhi',
label: '一致'
}, {
value: 'fankui',
label: '反馈'
}, {
value: 'xiaolv',
label: '效率'
}, {
value: 'kekong',
label: '可控'
}]
}, {
value: 'daohang',
label: '导航',
children: [{
value: 'cexiangdaohang',
label: '侧向导航'
}, {
value: 'dingbudaohang',
label: '顶部导航'
}]
}]
}, {
value: 'zujian',
label: '组件',
children: [{
value: 'basic',
label: 'Basic',
children: [{
value: 'layout',
label: 'Layout 布局'
}, {
value: 'color',
label: 'Color 色彩'
}, {
value: 'typography',
label: 'Typography 字体'
}, {
value: 'icon',
label: 'Icon 图标'
}, {
value: 'button',
label: 'Button 按钮'
}]
}, {
value: 'form',
label: 'Form',
children: [{
value: 'radio',
label: 'Radio 单选框'
}, {
value: 'checkbox',
label: 'Checkbox 多选框'
}, {
value: 'input',
label: 'Input 输入框'
}, {
value: 'input-number',
label: 'InputNumber 计数器'
}, {
value: 'select',
label: 'Select 选择器'
}, {
value: 'cascader',
label: 'Cascader 级联选择器'
}, {
value: 'switch',
label: 'Switch 开关'
}, {
value: 'slider',
label: 'Slider 滑块'
}, {
value: 'time-picker',
label: 'TimePicker 时间选择器'
}, {
value: 'date-picker',
label: 'DatePicker 日期选择器'
}, {
value: 'datetime-picker',
label: 'DateTimePicker 日期时间选择器'
}, {
value: 'upload',
label: 'Upload 上传'
}, {
value: 'rate',
label: 'Rate 评分'
}, {
value: 'form',
label: 'Form 表单'
}]
}, {
value: 'data',
label: 'Data',
children: [{
value: 'table',
label: 'Table 表格'
}, {
value: 'tag',
label: 'Tag 标签'
}, {
value: 'progress',
label: 'Progress 进度条'
}, {
value: 'tree',
label: 'Tree 树形控件'
}, {
value: 'pagination',
label: 'Pagination 分页'
}, {
value: 'badge',
label: 'Badge 标记'
}]
}, {
value: 'notice',
label: 'Notice',
children: [{
value: 'alert',
label: 'Alert 警告'
}, {
value: 'loading',
label: 'Loading 加载'
}, {
value: 'message',
label: 'Message 消息提示'
}, {
value: 'message-box',
label: 'MessageBox 弹框'
}, {
value: 'notification',
label: 'Notification 通知'
}]
}, {
value: 'navigation',
label: 'Navigation',
children: [{
value: 'menu',
label: 'NavMenu 导航菜单'
}, {
value: 'tabs',
label: 'Tabs 标签页'
}, {
value: 'breadcrumb',
label: 'Breadcrumb 面包屑'
}, {
value: 'dropdown',
label: 'Dropdown 下拉菜单'
}, {
value: 'steps',
label: 'Steps 步骤条'
}]
}, {
value: 'others',
label: 'Others',
children: [{
value: 'dialog',
label: 'Dialog 对话框'
}, {
value: 'tooltip',
label: 'Tooltip 文字提示'
}, {
value: 'popover',
label: 'Popover 弹出框'
}, {
value: 'card',
label: 'Card 卡片'
}, {
value: 'carousel',
label: 'Carousel 走马灯'
}, {
value: 'collapse',
label: 'Collapse 折叠面板'
}]
}]
}, {
value: 'ziyuan',
label: '资源',
children: [{
value: 'axure',
label: 'Axure Components'
}, {
value: 'sketch',
label: 'Sketch Templates'
}, {
value: 'jiaohu',
label: '组件交互文档'
}]
}
],
tableData:[
{name:'测试',legalPerson:'AAAA'}
],
isSkeleton:false,
total:100,
pageSize:50,
pageNum:1, pageNum:1,
pageSize:50,
times:[],
customerName:"",
areas:[],
customerState:[],
credential:[],
groupSpecialtys:[],
groupSpecialtyId:[],
creditLevel:[],
paytaxType:[],
taxRate:[],
registerProvince:[],
registerCity:[],
approveDate2Start:null,
approveDate2End:null,
},
tableData:[],
isSkeleton:false,
total:0,
// table列是否悬浮 // table列是否悬浮
tableColumnFixed: true, tableColumnFixed: true,
fbsvisib:false, fbsvisib:false,
...@@ -494,13 +314,10 @@ ...@@ -494,13 +314,10 @@
}, },
created() { created() {
this.init() this.init()
this.cusoomerInfolist()
}, },
methods:{ methods:{
init(){ init(){
//地区
getDicts('arealist').then(res=>{
this.arealist = res.data
})
//评价等级 //评价等级
getDicts('credit_level').then(res=>{ getDicts('credit_level').then(res=>{
this.creditlevel = res.data this.creditlevel = res.data
...@@ -521,24 +338,81 @@ ...@@ -521,24 +338,81 @@
getDicts('credential').then(res=>{ getDicts('credential').then(res=>{
this.credential = res.data this.credential = res.data
}) })
this.dataRegion() // this.dataRegion()
//专业类别
bizDictData().then(res=>{
this.groupSpecialty = res.data
})
// 地区树
areaAll().then(res=>{
this.addressList = res.data
})
},
clears(){
this.formdata = {
customerClass: '租赁',
pageNum: 1,
pageSize: 50,
times: [],
customerName: '',
areas: [],
customerState: [],
credential: [],
groupSpecialtys: [],
groupSpecialtyId: [],
creditLevel: [],
paytaxType: [],
taxRate: [],
registerProvince: [],
registerCity: [],
approveDate2Start: null,
approveDate2End: null
}
this.cusoomerInfolist()
}, },
//地区 cusoomerInfolist(){
async dataRegion() { this.isSkeleton = true
let addrs = JSON.parse(JSON.stringify(dataRegion)) let param = this.formdata
addrs.forEach(item=>{ if(param.times){
if (item.children) { param.approveDate2Start = param.times[0]
(item.children).forEach(i => { param.approveDate2End = param.times[1]
if (i.children) { }else{
delete i.children param.approveDate2Start = ''
param.approveDate2End = ''
} }
param.groupSpecialtyId = []
if(param.groupSpecialtys){
param.groupSpecialtys.forEach(item=>{
param.groupSpecialtyId.push(item[item.length-1])
}) })
} }
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.registerProvince = province
param.registerCity = city
}else{
param.registerProvince = []
param.registerCity = []
}
custmerInfolist(queryConditionFiltering(this.formdata)).then(res=>{
this.isSkeleton = false
this.tableData = res.rows
this.total = res.total
}) })
this.addressList = addrs;
}, },
handleCurrentChange(){ handleCurrentChange(val){
this.formdata.pageNum = val
this.cusoomerInfolist()
}, },
setHeaderRow() { setHeaderRow() {
return "owner-table-list-header"; return "owner-table-list-header";
...@@ -558,7 +432,7 @@ ...@@ -558,7 +432,7 @@
}, },
//点击准入 //点击准入
goAccess(row){ goAccess(row){
this.$tab.openPage('测试一下-准入情况', '/supplier/supplierlist/access') this.$tab.openPage(row.customerName+'-准入情况', '/supplier/supplierlist/access',{customerKey:row.customerKey})
}, },
//点击考评 //点击考评
goAssessment(row){ goAssessment(row){
...@@ -571,4 +445,3 @@ ...@@ -571,4 +445,3 @@
<style scoped lang="scss"> <style scoped lang="scss">
</style> </style>
...@@ -10,59 +10,52 @@ ...@@ -10,59 +10,52 @@
<el-form :model="formdata" label-width="82px" label-position="right" :inline="true" > <el-form :model="formdata" label-width="82px" label-position="right" :inline="true" >
<el-row> <el-row>
<el-form-item label="供应商名称"> <el-form-item label="供应商名称">
<el-input v-model="formdata.user" placeholder="请输入分供方名称"></el-input> <el-input v-model="formdata.customerName" placeholder="请输入供应商名称"></el-input>
</el-form-item>
<el-form-item label="注册地区">
<el-select v-model="formdata.user" multiple placeholder="请选择" :collapse-tags="true" clearable>
<el-option v-for="(item,index) in arealist" :label="item.dictLabel" :value="item.dictValue" :key="index"></el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item label="注册城市"> <el-form-item label="注册城市">
<el-cascader <el-cascader
v-model="formdata.user" v-model="formdata.areas"
:options="addressList" :collapse-tags="true" :options="addressList" :collapse-tags="true" :show-all-levels="false" clearable
:props="provienceprops"></el-cascader> :props="provienceprops"></el-cascader>
</el-form-item> </el-form-item>
</el-row>
<el-row>
<el-form-item label="供应商状态"> <el-form-item label="供应商状态">
<el-select v-model="formdata.user" multiple placeholder="请选择" :collapse-tags="true" clearable> <el-select v-model="formdata.customerState" multiple placeholder="请选择" :collapse-tags="true" clearable>
<el-option v-for="(item,index) in customstate" :label="item.dictLabel" :value="item.dictValue" :key="index"></el-option> <el-option v-for="(item,index) in customstate" :label="item.dictLabel" :value="item.dictValue" :key="index"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-row>
<el-row>
<el-form-item label="资质等级"> <el-form-item label="资质等级">
<el-select v-model="formdata.user" multiple placeholder="请选择" :collapse-tags="true" clearable> <el-select v-model="formdata.credential" multiple placeholder="请选择" :collapse-tags="true" clearable>
<el-option v-for="(item,index) in credential" :label="item.dictLabel" :value="item.dictValue" :key="index"></el-option> <el-option v-for="(item,index) in credential" :label="item.dictLabel" :value="item.dictValue" :key="index"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="物资类别"> <el-form-item label="物资类别">
<el-select v-model="formdata.user" placeholder="请选择"> <el-cascader clearable
<el-option label="区域一" value="shanghai"></el-option> v-model="formdata.groupSpecialtys"
<el-option label="区域二" value="beijing"></el-option> :options="groupSpecialty" :collapse-tags="true"
</el-select> :props="groupprops"></el-cascader>
</el-form-item> </el-form-item>
</el-row>
<el-row>
<el-form-item label="评价等级"> <el-form-item label="评价等级">
<el-select v-model="formdata.user" multiple placeholder="请选择" :collapse-tags="true" clearable> <el-select v-model="formdata.creditLevel" multiple placeholder="请选择" :collapse-tags="true" clearable>
<el-option v-for="(item,index) in creditlevel" :label="item.dictLabel" :value="item.dictValue" :key="index"></el-option> <el-option v-for="(item,index) in creditlevel" :label="item.dictLabel" :value="item.dictValue" :key="index"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-row>
<el-row>
<el-form-item label="纳税人身份"> <el-form-item label="纳税人身份">
<el-select v-model="formdata.user" multiple placeholder="请选择" :collapse-tags="true" clearable> <el-select v-model="formdata.paytaxType" multiple placeholder="请选择" :collapse-tags="true" clearable>
<el-option v-for="(item,index) in paytaxtype" :label="item.dictLabel" :value="item.dictValue" :key="index"></el-option> <el-option v-for="(item,index) in paytaxtype" :label="item.dictLabel" :value="item.dictValue" :key="index"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="纳税人税率"> <el-form-item label="纳税人税率">
<el-select v-model="formdata.user" multiple placeholder="请选择" :collapse-tags="true" clearable> <el-select v-model="formdata.taxRate" multiple placeholder="请选择" :collapse-tags="true" clearable>
<el-option v-for="(item,index) in taxrate" :label="item.dictLabel" :value="item.dictValue" :key="index"></el-option> <el-option v-for="(item,index) in taxrate" :label="item.dictLabel" :value="item.dictValue" :key="index"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-row>
<el-row>
<el-form-item label="准入时间"> <el-form-item label="准入时间">
<el-date-picker <el-date-picker
v-model="formdata.time" v-model="formdata.times"
type="daterange" type="daterange"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
range-separator="至" range-separator="至"
...@@ -73,8 +66,8 @@ ...@@ -73,8 +66,8 @@
</el-row> </el-row>
<el-divider></el-divider> <el-divider></el-divider>
<el-form-item label=" "> <el-form-item label=" ">
<el-button type="primary" size="small">查询</el-button> <el-button type="primary" size="small" @click="handleCurrentChange(1)">查询</el-button>
<el-button size="small">重置</el-button> <el-button size="small" @click="clears">重置</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
...@@ -83,6 +76,11 @@ ...@@ -83,6 +76,11 @@
<div class="total-title"> <div class="total-title">
<div class="totals">{{total}}</div> <div class="totals">{{total}}</div>
</div> </div>
<div class="table-item-jf table-item-jf1 empty-table" v-if="total == 0 && !isSkeleton">
<img class="item-jf-img" src="@/assets/images/kong.png" alt="">
<div class="item-jf-titel">暂无相关数据</div>
<div class="item-jf-text">抱歉,暂无数据,试试更换搜索条件吧</div>
</div>
<skeleton v-if="isSkeleton"></skeleton> <skeleton v-if="isSkeleton"></skeleton>
<div class="table-item-jf table-item" v-if="!isSkeleton&&tableData.length>0"> <div class="table-item-jf table-item" v-if="!isSkeleton&&tableData.length>0">
...@@ -93,18 +91,18 @@ ...@@ -93,18 +91,18 @@
<el-table-column type="index" label="序号" :fixed="tableColumnFixed" width="60" :resizable="false"> <el-table-column type="index" label="序号" :fixed="tableColumnFixed" width="60" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{(pageNum - 1) *pageSize + scope.$index + 1}}</span> <span>{{(formdata.pageNum - 1) *formdata.pageSize + scope.$index + 1}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="供应商编号" :fixed="tableColumnFixed" width="120" :resizable="false"> <el-table-column label="供应商编号" prop="customerCode" :fixed="tableColumnFixed" width="120" :resizable="false">
</el-table-column> </el-table-column>
<el-table-column label="供应商名称" :fixed="tableColumnFixed" width="380" :resizable="false"> <el-table-column label="供应商名称" :fixed="tableColumnFixed" width="380" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="renling"> <div class="renling">
<div style="display:flex;align-items:center"> <div style="display:flex;align-items:center">
<router-link :to="`/enterprise/${encodeStr(scope.row.id)}`" tag="a" <router-link :to="`/enterprise/${encodeStr(scope.row.companyId)}`" tag="a"
class="wordprimary" v-html="scope.row.name"></router-link> class="wordprimary" v-html="scope.row.customerName"></router-link>
</div> </div>
</div> </div>
...@@ -114,82 +112,82 @@ ...@@ -114,82 +112,82 @@
<el-table-column label="推荐单位" min-width="280"> <el-table-column label="推荐单位" min-width="280">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.recommendOrg||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="公司注册区域" min-width="120" :resizable="false"> <el-table-column label="公司注册区域" min-width="120" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.registerRegion||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="公司注册省" min-width="120" :resizable="false"> <el-table-column label="公司注册省" min-width="120" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.registerProvince||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="公司注册城市" min-width="120" :resizable="false"> <el-table-column label="公司注册城市" min-width="120" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.registerCity||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="供应类别" min-width="85" :resizable="false"> <el-table-column label="供应类别" min-width="85" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.groupSpecialty||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="法人代表" min-width="85" :resizable="false"> <el-table-column label="法人代表" min-width="85" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.representative||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="纳税人身份" min-width="120" :resizable="false"> <el-table-column label="纳税人身份" min-width="120" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.paytaxType||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="纳税人税率" min-width="120" :resizable="false"> <el-table-column label="纳税人税率" min-width="120" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.taxRate||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="资质等级" min-width="85" :resizable="false"> <el-table-column label="资质等级" min-width="85" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.credential||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="注册资本(万元)" min-width="120" :resizable="false"> <el-table-column label="注册资本(万元)" min-width="120" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.registerCapital||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="公司联系人" min-width="120" :resizable="false"> <el-table-column label="公司联系人" min-width="120" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.contactPerson||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="联系人电话" min-width="120" :resizable="false"> <el-table-column label="联系人电话" min-width="120" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.contactPhone||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="准入时间" min-width="120" :resizable="false"> <el-table-column label="准入时间" min-width="120" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.approveDate2||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="公司合作数量" min-width="120" :resizable="false"> <el-table-column label="公司合作数量" min-width="120" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} {{scope.row.enterpriseCooperationCount||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="合作项目数量" min-width="120" :resizable="false"> <el-table-column label="合作项目数量" min-width="120" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{scope.row.legalPerson||"--"}}</span> <span>{{scope.row.projectCooperationCount||"--"}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="分包商等级" min-width="120" :resizable="false"> <el-table-column label="分包商等级" min-width="120" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
<span class="wordprimary" @click="getFBS(scope.row)">{{scope.row.legalPerson||"--"}}</span> <span class="wordprimary" @click="getFBS(scope.row)">{{scope.row.creditLevel||"--"}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="链接" min-width="160" :resizable="false"> <el-table-column label="链接" min-width="160" :resizable="false">
...@@ -200,14 +198,14 @@ ...@@ -200,14 +198,14 @@
</el-table-column> </el-table-column>
<el-table-column label="资源平台分类" min-width="120" :resizable="false"> <el-table-column label="资源平台分类" min-width="120" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.legalPerson||"--"}} --
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
<div class="pagination clearfix" v-show="total>0"> <div class="pagination clearfix" v-show="total>0">
<el-pagination background :page-size="pageSize" :current-page.sync="pageNum" @current-change="handleCurrentChange" layout="prev, pager, next" <el-pagination background :page-size="formdata.pageSize" :current-page.sync="formdata.pageNum" @current-change="handleCurrentChange" layout="prev, pager, next"
:total="total"> :total="total">
</el-pagination> </el-pagination>
</div> </div>
...@@ -255,13 +253,13 @@ ...@@ -255,13 +253,13 @@
</template> </template>
<script> <script>
import { encodeStr } from "@/assets/js/common.js"; import { encodeStr } from '@/assets/js/common.js'
import "@/assets/styles/public.scss"; import '@/assets/styles/public.scss'
import "@/assets/styles/supplierlist.scss"; import '@/assets/styles/supplierlist.scss'
import skeleton from '@/views/project/projectList/component/skeleton'; import skeleton from '@/views/project/projectList/component/skeleton'
import api from '@/api/enterpriseData/enterpriseData.js'; import { areaAll, bizDictData, custmerInfolist } from '@/api/supplier/supplier'
import dataRegion from '@/assets/json/provinceTree' import { getDicts } from '@/api/system/dict/data'
import { getDicts } from "@/api/system/dict/data"; import {queryConditionFiltering} from '@/utils/index'
export default { export default {
name: 'supplySubcontracting', name: 'supplySubcontracting',
components:{skeleton}, components:{skeleton},
...@@ -275,216 +273,39 @@ ...@@ -275,216 +273,39 @@
credential:[], credential:[],
paytaxtype:[], paytaxtype:[],
taxrate:[], taxrate:[],
groupSpecialty:[],
provienceprops:{ provienceprops:{
checkStrictly:false,
multiple:true,
label:'value',
},
groupprops:{
checkStrictly:false, checkStrictly:false,
multiple:true, multiple:true,
value:'id', value:'id',
}, },
formdata:{}, formdata:{
options: [ customerClass:'分供',
{
value: 'zhinan',
label: '指南',
children: [{
value: 'shejiyuanze',
label: '设计原则',
children: [{
value: 'yizhi',
label: '一致'
}, {
value: 'fankui',
label: '反馈'
}, {
value: 'xiaolv',
label: '效率'
}, {
value: 'kekong',
label: '可控'
}]
}, {
value: 'daohang',
label: '导航',
children: [{
value: 'cexiangdaohang',
label: '侧向导航'
}, {
value: 'dingbudaohang',
label: '顶部导航'
}]
}]
}, {
value: 'zujian',
label: '组件',
children: [{
value: 'basic',
label: 'Basic',
children: [{
value: 'layout',
label: 'Layout 布局'
}, {
value: 'color',
label: 'Color 色彩'
}, {
value: 'typography',
label: 'Typography 字体'
}, {
value: 'icon',
label: 'Icon 图标'
}, {
value: 'button',
label: 'Button 按钮'
}]
}, {
value: 'form',
label: 'Form',
children: [{
value: 'radio',
label: 'Radio 单选框'
}, {
value: 'checkbox',
label: 'Checkbox 多选框'
}, {
value: 'input',
label: 'Input 输入框'
}, {
value: 'input-number',
label: 'InputNumber 计数器'
}, {
value: 'select',
label: 'Select 选择器'
}, {
value: 'cascader',
label: 'Cascader 级联选择器'
}, {
value: 'switch',
label: 'Switch 开关'
}, {
value: 'slider',
label: 'Slider 滑块'
}, {
value: 'time-picker',
label: 'TimePicker 时间选择器'
}, {
value: 'date-picker',
label: 'DatePicker 日期选择器'
}, {
value: 'datetime-picker',
label: 'DateTimePicker 日期时间选择器'
}, {
value: 'upload',
label: 'Upload 上传'
}, {
value: 'rate',
label: 'Rate 评分'
}, {
value: 'form',
label: 'Form 表单'
}]
}, {
value: 'data',
label: 'Data',
children: [{
value: 'table',
label: 'Table 表格'
}, {
value: 'tag',
label: 'Tag 标签'
}, {
value: 'progress',
label: 'Progress 进度条'
}, {
value: 'tree',
label: 'Tree 树形控件'
}, {
value: 'pagination',
label: 'Pagination 分页'
}, {
value: 'badge',
label: 'Badge 标记'
}]
}, {
value: 'notice',
label: 'Notice',
children: [{
value: 'alert',
label: 'Alert 警告'
}, {
value: 'loading',
label: 'Loading 加载'
}, {
value: 'message',
label: 'Message 消息提示'
}, {
value: 'message-box',
label: 'MessageBox 弹框'
}, {
value: 'notification',
label: 'Notification 通知'
}]
}, {
value: 'navigation',
label: 'Navigation',
children: [{
value: 'menu',
label: 'NavMenu 导航菜单'
}, {
value: 'tabs',
label: 'Tabs 标签页'
}, {
value: 'breadcrumb',
label: 'Breadcrumb 面包屑'
}, {
value: 'dropdown',
label: 'Dropdown 下拉菜单'
}, {
value: 'steps',
label: 'Steps 步骤条'
}]
}, {
value: 'others',
label: 'Others',
children: [{
value: 'dialog',
label: 'Dialog 对话框'
}, {
value: 'tooltip',
label: 'Tooltip 文字提示'
}, {
value: 'popover',
label: 'Popover 弹出框'
}, {
value: 'card',
label: 'Card 卡片'
}, {
value: 'carousel',
label: 'Carousel 走马灯'
}, {
value: 'collapse',
label: 'Collapse 折叠面板'
}]
}]
}, {
value: 'ziyuan',
label: '资源',
children: [{
value: 'axure',
label: 'Axure Components'
}, {
value: 'sketch',
label: 'Sketch Templates'
}, {
value: 'jiaohu',
label: '组件交互文档'
}]
}
],
tableData:[
{name:'测试',legalPerson:'AAAA'}
],
isSkeleton:false,
total:100,
pageSize:50,
pageNum:1, pageNum:1,
pageSize:50,
times:[],
customerName:"",
areas:[],
customerState:[],
credential:[],
groupSpecialtys:[],
groupSpecialtyId:[],
creditLevel:[],
paytaxType:[],
taxRate:[],
registerProvince:[],
registerCity:[],
approveDate2Start:null,
approveDate2End:null,
},
tableData:[],
isSkeleton:false,
total:0,
// table列是否悬浮 // table列是否悬浮
tableColumnFixed: true, tableColumnFixed: true,
fbsvisib:false, fbsvisib:false,
...@@ -493,13 +314,10 @@ ...@@ -493,13 +314,10 @@
}, },
created() { created() {
this.init() this.init()
this.cusoomerInfolist()
}, },
methods:{ methods:{
init(){ init(){
//地区
getDicts('arealist').then(res=>{
this.arealist = res.data
})
//评价等级 //评价等级
getDicts('credit_level').then(res=>{ getDicts('credit_level').then(res=>{
this.creditlevel = res.data this.creditlevel = res.data
...@@ -520,24 +338,81 @@ ...@@ -520,24 +338,81 @@
getDicts('credential').then(res=>{ getDicts('credential').then(res=>{
this.credential = res.data this.credential = res.data
}) })
this.dataRegion() // this.dataRegion()
//专业类别
bizDictData().then(res=>{
this.groupSpecialty = res.data
})
// 地区树
areaAll().then(res=>{
this.addressList = res.data
})
},
clears(){
this.formdata = {
customerClass: '分供',
pageNum: 1,
pageSize: 50,
times: [],
customerName: '',
areas: [],
customerState: [],
credential: [],
groupSpecialtys: [],
groupSpecialtyId: [],
creditLevel: [],
paytaxType: [],
taxRate: [],
registerProvince: [],
registerCity: [],
approveDate2Start: null,
approveDate2End: null
}
this.cusoomerInfolist()
}, },
//地区 cusoomerInfolist(){
async dataRegion() { this.isSkeleton = true
let addrs = JSON.parse(JSON.stringify(dataRegion)) let param = this.formdata
addrs.forEach(item=>{ if(param.times){
if (item.children) { param.approveDate2Start = param.times[0]
(item.children).forEach(i => { param.approveDate2End = param.times[1]
if (i.children) { }else{
delete i.children param.approveDate2Start = ''
param.approveDate2End = ''
}
param.groupSpecialtyId = []
if(param.groupSpecialtys){
param.groupSpecialtys.forEach(item=>{
param.groupSpecialtyId.push(item[item.length-1])
})
}
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.registerProvince = province
param.registerCity = city
}else{
param.registerProvince = []
param.registerCity = []
} }
custmerInfolist(queryConditionFiltering(this.formdata)).then(res=>{
this.isSkeleton = false
this.tableData = res.rows
this.total = res.total
}) })
this.addressList = addrs;
}, },
handleCurrentChange(){ handleCurrentChange(val){
this.formdata.pageNum = val
this.cusoomerInfolist()
}, },
setHeaderRow() { setHeaderRow() {
return "owner-table-list-header"; return "owner-table-list-header";
...@@ -557,7 +432,7 @@ ...@@ -557,7 +432,7 @@
}, },
//点击准入 //点击准入
goAccess(row){ goAccess(row){
this.$tab.openPage('测试一下-准入情况', '/supplier/supplierlist/access') this.$tab.openPage(row.customerName+'-准入情况', '/supplier/supplierlist/access',{customerKey:row.customerKey})
}, },
//点击考评 //点击考评
goAssessment(row){ goAssessment(row){
......
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