Commit d9d61ff3 authored by caixingbing's avatar caixingbing

*

parent aeccddc4
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -58,7 +58,7 @@ export default { ...@@ -58,7 +58,7 @@ export default {
}, },
methods: { methods: {
async logout() { async logout() {
this.$confirm('确定注销并退出系统吗?', '提示', { this.$confirm('确定退出系统吗?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
......
...@@ -99,7 +99,7 @@ export const constantRoutes = [ ...@@ -99,7 +99,7 @@ export const constantRoutes = [
path: '/enterprise/:id', path: '/enterprise/:id',
component: () => import('@/views/detail/party-a/index'), component: () => import('@/views/detail/party-a/index'),
name: 'PartyA', name: 'PartyA',
meta: { title: '甲方详情' }, meta: { title: '甲方详情', icon: 'enterprise' },
} }
] ]
}, },
...@@ -113,7 +113,7 @@ export const constantRoutes = [ ...@@ -113,7 +113,7 @@ export const constantRoutes = [
path: '/company/:id', path: '/company/:id',
component: () => import('@/views/detail/party-b/index'), component: () => import('@/views/detail/party-b/index'),
name: 'Company', name: 'Company',
meta: { title: '方详情' } meta: { title: '方详情' }
} }
] ]
}, },
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
<!-- 输入框 --> <!-- 输入框 -->
<template v-if="form.type==3"> <template v-if="form.type==3">
<div class="cooperate-name"> <div class="cooperate-name">
<el-input @focus="clickFocus('detailFocus'+i)" @blur="clickFocus('detailFocus'+i)" v-model="form.value" :placeholder="form.placeholder"></el-input> <el-input @focus="clickFocus('detailFocus'+i)" @blur="clickFocus('detailFocus'+i)" v-model="form.value" :placeholder="form.placeholder" :style="form.width?'width:'+form.width+'px':'width:180px'"></el-input>
<span :id="'detailFocus'+i" @click="changeSelect">搜索</span> <span :id="'detailFocus'+i" @click="changeSelect">搜索</span>
</div> </div>
</template> </template>
...@@ -197,7 +197,6 @@ export default { ...@@ -197,7 +197,6 @@ export default {
::v-deep .el-input__inner { ::v-deep .el-input__inner {
border-right: 0; border-right: 0;
border-radius: 2px 0 2px 0; border-radius: 2px 0 2px 0;
width: 180px;
} }
} }
.fromTime{ .fromTime{
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
<!-- 输入框 --> <!-- 输入框 -->
<template v-if="form.type==3"> <template v-if="form.type==3">
<div class="cooperate-name"> <div class="cooperate-name">
<el-input clearable @clear="changeSelect" @focus="clickFocus('focus'+i)" @blur="clickFocus('focus'+i)" v-model="form.value" :placeholder="form.placeholder"></el-input> <el-input clearable @clear="changeSelect" @focus="clickFocus('focus'+i)" @blur="clickFocus('focus'+i)" v-model="form.value" :placeholder="form.placeholder" :style="form.width?'width:'+form.width+'px':'width:180px'"></el-input>
<span :id="'focus'+i" @click="changeSelect">搜索</span> <span :id="'focus'+i" @click="changeSelect">搜索</span>
</div> </div>
</template> </template>
...@@ -230,7 +230,6 @@ export default { ...@@ -230,7 +230,6 @@ export default {
} }
::v-deep .el-input__inner { ::v-deep .el-input__inner {
border-radius: 2px 0 2px 0; border-radius: 2px 0 2px 0;
width: 180px;
border: 1px solid #D9D9D9; border: 1px solid #D9D9D9;
border-right: 0; border-right: 0;
} }
......
...@@ -2,8 +2,9 @@ ...@@ -2,8 +2,9 @@
<div class="header-container"> <div class="header-container">
<div class="bread-crumb"> <div class="bread-crumb">
<el-breadcrumb separator="/"> <el-breadcrumb separator="/">
<el-breadcrumb-item :to="{ path: '/enterpriseData' }">企业数据</el-breadcrumb-item> <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
<el-breadcrumb-item :to="{ path: '/enterpriseData?tag=1' }">查企业</el-breadcrumb-item> <el-breadcrumb-item :to="{ path: fromPath }" v-if="fromName">{{fromName}}</el-breadcrumb-item>
<!-- <el-breadcrumb-item :to="{ path: '/enterpriseData?tag=1' }">查企业</el-breadcrumb-item>-->
<el-breadcrumb-item>{{companyInfo.simpleName || companyInfo.companyName || '--'}}</el-breadcrumb-item> <el-breadcrumb-item>{{companyInfo.simpleName || companyInfo.companyName || '--'}}</el-breadcrumb-item>
</el-breadcrumb> </el-breadcrumb>
</div> </div>
...@@ -17,7 +18,7 @@ ...@@ -17,7 +18,7 @@
<script> <script>
export default { export default {
name: 'Header', name: 'Header',
props: ['companyId', 'companyInfo'], props: ['companyId', 'companyInfo', 'fromPath', 'fromName'],
data() { data() {
return { return {
} }
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<el-table-column <el-table-column
v-if="isIndex" v-if="isIndex"
label="序号" label="序号"
width="50" :width="flexWidth(tableData)"
align="left" align="left"
:fixed="indexFixed" :fixed="indexFixed"
:resizable="false"> :resizable="false">
...@@ -112,7 +112,6 @@ export default { ...@@ -112,7 +112,6 @@ export default {
}, },
data() { data() {
return { return {
} }
}, },
methods:{ methods:{
...@@ -124,6 +123,14 @@ export default { ...@@ -124,6 +123,14 @@ export default {
}, },
sortChange(e){ sortChange(e){
this.$emit('sort-change',e) this.$emit('sort-change',e)
},
flexWidth(tableData) {
let currentMax = this.queryParams.pageNum*this.queryParams.pageSize - this.queryParams.pageSize + tableData.length, wdth = 50
// return currentMax.toString().length*25 + 'px'
if(currentMax.toString().length>3){
wdth = wdth + (currentMax.toString().length-3)*10
}
return wdth+'px'
} }
} }
} }
......
...@@ -63,7 +63,7 @@ export default { ...@@ -63,7 +63,7 @@ export default {
pageSize: 20 pageSize: 20
}, },
formData: [ formData: [
{ type: 3, fieldName: 'keys', value: '', placeholder: '输入合作项目/工程名称查询', options: []}, { type: 3, fieldName: 'keys', value: '', placeholder: '输入合作项目/工程名称查询', options: [], width: 260},
], ],
forData: [ forData: [
{label: '合作项目/工程名称', prop: 'dealTitle', width: '720', slot: true}, {label: '合作项目/工程名称', prop: 'dealTitle', width: '720', slot: true},
......
...@@ -68,7 +68,7 @@ export default { ...@@ -68,7 +68,7 @@ export default {
pageSize: 20 pageSize: 20
}, },
formData: [ formData: [
{ type: 3, fieldName: 'keys', value: '', placeholder: '输入合作项目/工程名称查询', options: []}, { type: 3, fieldName: 'keys', value: '', placeholder: '输入合作项目/工程名称查询', options: [], width: 260},
], ],
forData: [ forData: [
{label: '合作项目/工程名称', prop: 'projectAllName', width: '720', fixed: true, slot: true}, {label: '合作项目/工程名称', prop: 'projectAllName', width: '720', fixed: true, slot: true},
......
<template> <template>
<div class="app-container part-container"> <div class="app-container part-container">
<Header :company-id="companyId" :companyInfo="companyInfo" v-if="companyId" /> <Header :company-id="companyId" :companyInfo="companyInfo" :fromPath="fromPath" :fromName="fromName" v-if="companyId" />
<div class="flex-box part-main"> <div class="flex-box part-main">
<div class="part-left"> <div class="part-left">
<side-bar @currentPath="showPartPage" :pathName="currentPath.pathName" :partBoxHeight="partBoxHeight" :customerId="customerId" /> <side-bar @currentPath="showPartPage" :pathName="currentPath.pathName" :partBoxHeight="partBoxHeight" :customerId="customerId" />
...@@ -147,9 +147,17 @@ export default { ...@@ -147,9 +147,17 @@ export default {
currentPath: { currentPath: {
pathName: 'overview' //默认展示页 pathName: 'overview' //默认展示页
}, },
partBoxHeight: null partBoxHeight: null,
fromPath: '',
fromName: ''
} }
}, },
beforeRouteEnter(to, from, next) {
next(vm => {
vm.fromPath = from.path
vm.fromName = from.meta.title
})
},
created() { created() {
if (this.$route.params.id) { // 获取companyId if (this.$route.params.id) { // 获取companyId
let companyId = this.$route.params.id let companyId = this.$route.params.id
......
...@@ -54,7 +54,7 @@ export default { ...@@ -54,7 +54,7 @@ export default {
{label: '专项债用作资本金(亿元)', prop: 'specialBondCapital', sortable: 'custom', descending: '19', ascending: '20', width: '200'} {label: '专项债用作资本金(亿元)', prop: 'specialBondCapital', sortable: 'custom', descending: '19', ascending: '20', width: '200'}
], ],
formData: [ formData: [
{ type: 3, fieldName: 'keys', value: '', placeholder: '输入项目名称关键词查询', options: []}, { type: 3, fieldName: 'keys', value: '', placeholder: '输入项目名称关键词查询', options: [], width: 220},
], ],
//列表 //列表
tableLoading:false, tableLoading:false,
......
...@@ -60,7 +60,7 @@ export default { ...@@ -60,7 +60,7 @@ export default {
], ],
formData: [ formData: [
{ type: 4, fieldName: 'landUse', value: '', placeholder: '土地用途', options: []}, { type: 4, fieldName: 'landUse', value: '', placeholder: '土地用途', options: []},
{ type: 3, fieldName: 'keys', value: '', placeholder: '输入项目名称关键词查询', options: []} { type: 3, fieldName: 'keys', value: '', placeholder: '输入项目名称关键词查询', options: [], width: 220}
], ],
//列表 //列表
tableLoading:false, tableLoading:false,
......
...@@ -60,7 +60,7 @@ export default { ...@@ -60,7 +60,7 @@ export default {
{label: '是否为民间推介项目', prop: 'isProjcet', width: '150', slot: true} {label: '是否为民间推介项目', prop: 'isProjcet', width: '150', slot: true}
], ],
formData: [ formData: [
{ type: 3, fieldName: 'keys', value: '', placeholder: '输入项目名称关键词查询', options: []}, { type: 3, fieldName: 'keys', value: '', placeholder: '输入项目名称关键词查询', options: [], width: 220},
], ],
//列表 //列表
tableLoading:false, tableLoading:false,
......
...@@ -56,6 +56,7 @@ export default { ...@@ -56,6 +56,7 @@ export default {
}, },
forData: [ forData: [
{label: '项目名称', prop: 'projectName', minWidth: '320', slot: true}, {label: '项目名称', prop: 'projectName', minWidth: '320', slot: true},
{label: '发布日期', prop: 'pubdate', width: '110'},
{label: '金额(万元)', prop: '', children: [ {label: '金额(万元)', prop: '', children: [
{ label: '建安费暂估', prop: 'projectSafeAmount', width: '88px'}, { label: '建安费暂估', prop: 'projectSafeAmount', width: '88px'},
{ label: '勘察费暂估', prop: 'projectSurveyAmount', width: '88px'}, { label: '勘察费暂估', prop: 'projectSurveyAmount', width: '88px'},
...@@ -74,8 +75,7 @@ export default { ...@@ -74,8 +75,7 @@ export default {
{label: '分部分项', prop: 'projectSub', width: '130'}, {label: '分部分项', prop: 'projectSub', width: '130'},
{label: '项目级别', prop: 'projectLevel', width: '130'}, {label: '项目级别', prop: 'projectLevel', width: '130'},
{label: '评标办法', prop: 'bidAssessmentWay', width: '130'}, {label: '评标办法', prop: 'bidAssessmentWay', width: '130'},
{label: '项目属地', prop: 'province', width: '130', slot: true}, {label: '项目属地', prop: 'province', width: '130', slot: true}
{label: '发布日期', prop: 'pubdate', width: '130'}
], ],
formData: [ formData: [
{ type: 1, fieldName: 'projectType', value: '', placeholder: '项目类别', options: []}, { type: 1, fieldName: 'projectType', value: '', placeholder: '项目类别', options: []},
...@@ -131,6 +131,13 @@ export default { ...@@ -131,6 +131,13 @@ export default {
this.tableLoading = false this.tableLoading = false
if(res.code==200){ if(res.code==200){
this.tableData = res.rows this.tableData = res.rows
if(this.tableData&&this.tableData.length>0){
this.tableData.forEach(item => {
item.projectSafeAmount ? item.projectSafeAmount = parseFloat(parseFloat(item.projectSafeAmount).toFixed(4)) : ''
item.projectSurveyAmount ? item.projectSurveyAmount = parseFloat(parseFloat(item.projectSurveyAmount).toFixed(4)) : ''
item.projectEnsureAmount ? item.projectEnsureAmount = parseFloat(parseFloat(item.projectEnsureAmount).toFixed(4)) : ''
})
}
} }
this.tableDataTotal = res.total this.tableDataTotal = res.total
} }
......
<template> <template xmlns="http://www.w3.org/1999/html">
<div class="app-container detail-container"> <div class="app-container detail-container">
<el-tabs v-model="activeName" @tab-click="handleClick" class="detail-tab"> <el-tabs v-model="activeName" @tab-click="handleClick" class="detail-tab">
<el-tab-pane label="工商信息" name="first"></el-tab-pane> <el-tab-pane label="工商信息" name="first"></el-tab-pane>
...@@ -10,6 +10,22 @@ ...@@ -10,6 +10,22 @@
<template slot="provinceCode" slot-scope="scope"> <template slot="provinceCode" slot-scope="scope">
<span>{{showRegion(scope.data.provinceCode)}}</span> <span>{{showRegion(scope.data.provinceCode)}}</span>
</template> </template>
<template slot="term" slot-scope="scope">
<span v-if="scope.data.termStart&&scope.data.termEnd">{{ scope.data.termStart }} ~ {{ scope.data.termEnd }}</span>
<span v-else-if="scope.data.termStart&&!scope.data.termEnd">{{ scope.data.termStart }}</span>
<span v-else-if="!scope.data.termStart&&scope.data.termEnd">{{ scope.data.termEnd }}</span>
<span v-else>--</span>
</template>
<template slot="actualCapi" slot-scope="scope">
<span>
{{ scope.data.actualCapi?scope.data.actualCapi+'万元人民币':'--' }}
</span>
</template>
<template slot="colleguesNum" slot-scope="scope">
<span>
{{ scope.data.colleguesNum?scope.data.colleguesNum+'人':'--' }}
</span>
</template>
</info-table> </info-table>
<tables <tables
:tableLoading="tableLoading" :tableLoading="tableLoading"
...@@ -53,18 +69,18 @@ export default { ...@@ -53,18 +69,18 @@ export default {
{ name: '登记状态', prop: 'status' }, { name: '登记状态', prop: 'status' },
{ name: '成立日期', prop: 'startDate' }, { name: '成立日期', prop: 'startDate' },
{ name: '注册资本', prop: 'registCapi' }, { name: '注册资本', prop: 'registCapi' },
{ name: '实缴资本', prop: 'actualCapi' }, { name: '实缴资本', prop: 'actualCapi', slot: true },
{ name: '核准日期', prop: 'checkDate' }, { name: '核准日期', prop: 'checkDate' },
{ name: '组织机构代码', prop: 'orgNo' }, { name: '组织机构代码', prop: 'orgNo' },
{ name: '工商注册号', prop: 'regNo' }, { name: '工商注册号', prop: 'regNo' },
{ name: '纳税人识别号', prop: 'creditNo' }, { name: '纳税人识别号', prop: 'creditNo' },
{ name: '企业类型', prop: 'econKind' }, { name: '企业类型', prop: 'econKind' },
{ name: '营业期限', prop: 'termEnd' }, { name: '营业期限', prop: 'term', slot: true },
{ name: '纳税人资质', prop: 'qualification' }, { name: '纳税人资质', prop: 'qualification' },
{ name: '所属地区', prop: 'provinceCode', slot: true }, { name: '所属地区', prop: 'provinceCode', slot: true },
{ name: '登记机关', prop: 'belongOrg' }, { name: '登记机关', prop: 'belongOrg' },
{ name: '人员规模', prop: 'colleguesNum' }, { name: '人员规模', prop: 'colleguesNum', slot: true },
{ name: '参保人数', prop: 'colleguesNum' }, { name: '参保人数', prop: 'colleguesNum', slot: true },
{ name: '经营范围', prop: 'scope', style: true } { name: '经营范围', prop: 'scope', style: true }
], ],
forData: [ forData: [
......
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