Commit 1b1bec90 authored by 张冬's avatar 张冬

邀请方式和首页

parent 9cba22a8
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<h3>{{ title }}</h3> <h3>{{ title }}</h3>
<h5>{{ title }}</h5> <h5>{{ title }}</h5>
<div class="abs"> <div class="abs">
<div>拒绝原因:{{ruleForm.reason}}</div> <div v-if="state">拒绝原因:{{ruleForm.reason}}</div>
</div> </div>
</div> </div>
<div class="content"> <div class="content">
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<h3>{{ title }}</h3> <h3>{{ title }}</h3>
<h5>{{ title }}</h5> <h5>{{ title }}</h5>
<div class="abs"> <div class="abs">
<div>拒绝原因:{{ruleForm.reason}}</div> <div v-if="state">拒绝原因:{{ruleForm.reason}}</div>
</div> </div>
</div> </div>
<div class="content"> <div class="content">
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<div class="details"> <div class="details">
<el-form ref="ruleForm" :model="ruleForm" :rules="rules" label-width="100px" class="demo-ruleForm"> <el-form ref="ruleForm" :model="ruleForm" :rules="rules" label-width="100px" class="demo-ruleForm">
<el-form-item label="上传附件" prop="file"> <el-form-item label="上传附件" prop="file">
<dataTable :table-data="ruleForm.bidBookDO" :columns="columns" :is-pageobj="false"> <dataTable :table-data="ruleForm.bidBookPO" :columns="columns" :is-pageobj="false">
<el-table-column slot="operate" label="文件大小" align="center" fixed="right" width="300"> <el-table-column slot="operate" label="文件大小" align="center" fixed="right" width="300">
<template slot-scope="scope"> <template slot-scope="scope">
<div>{{ getMb(scope.row.size) }}KB</div> <div>{{ getMb(scope.row.size) }}KB</div>
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
</el-table-column> </el-table-column>
<el-table-column slot="operate" label="价格" align="center" fixed="right" width="300"> <el-table-column slot="operate" label="价格" align="center" fixed="right" width="300">
<template slot-scope="scope"> <template slot-scope="scope">
<div>{{ scope.row.free ? scope.row.free : '无' }}</div> <div>{{ scope.row.free ? scope.row.price : '无' }}</div>
</template> </template>
</el-table-column> </el-table-column>
</dataTable> </dataTable>
</el-form-item> </el-form-item>
...@@ -42,7 +42,7 @@ export default { ...@@ -42,7 +42,7 @@ export default {
dataTable dataTable
}, },
props: { props: {
allForm: { ruleForm: {
type: Object, type: Object,
default() { default() {
return {}; return {};
...@@ -62,21 +62,17 @@ export default { ...@@ -62,21 +62,17 @@ export default {
columns: [ columns: [
{ {
label: '文件名称', label: '文件名称',
prop: 'name' prop: 'fileName'
}, },
{ {
label: '上传时间', label: '上传时间',
prop: 'time' prop: 'createTime'
}, },
{ {
slot: 'operate' slot: 'operate'
} }
], ],
ruleForm: {
bidBookPO: [],
bidBookAccessoryPOList: []
},
fileList: [], fileList: [],
rules: { rules: {
file: [ file: [
...@@ -90,6 +86,11 @@ export default { ...@@ -90,6 +86,11 @@ export default {
}; };
}, },
methods: { methods: {
getMb(size) {
let sieze1 = size / 1024;
let integer = sieze1.toFixed(0);
return integer;
},
getfile(val) { getfile(val) {
this.ruleForm.bidBookPO = val; this.ruleForm.bidBookPO = val;
}, },
......
...@@ -150,10 +150,6 @@ ...@@ -150,10 +150,6 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<div v-show="ruleForm.bidType == 1"> <div v-show="ruleForm.bidType == 1">
<div style="margin-bottom: 20px">
<el-button type="primary" @click="dialogFormVisible = true">添加</el-button>
<el-button @click="delAllSelection">删除</el-button>
</div>
<dataTable <dataTable
:table-data="ruleForm.companyVOList" :table-data="ruleForm.companyVOList"
:columns="columns" :columns="columns"
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
</div> </div>
<!-- 招标文件上传 --> <!-- 招标文件上传 -->
<div class="fileUpload"> <div class="fileUpload">
<fileUpload ref="fileUpload" :detail="detail"></fileUpload> <fileUpload ref="fileUpload" :ruleForm="detail"></fileUpload>
</div> </div>
</div> </div>
<div class="centerButton"> <div class="centerButton">
...@@ -51,17 +51,15 @@ export default { ...@@ -51,17 +51,15 @@ export default {
return { return {
activeIdx: 0, activeIdx: 0,
allForm: {}, allForm: {},
detail: { detail: {}
}
}; };
}, },
created() { created() {
this.getenquiryProjectId(); this.getenquiryProjectId();
}, },
methods: { methods: {
back(){ back() {
this.$router.go(-1) this.$router.go(-1);
}, },
// 获取详情 // 获取详情
async getenquiryProjectId() { async getenquiryProjectId() {
...@@ -71,11 +69,15 @@ export default { ...@@ -71,11 +69,15 @@ export default {
data.endTime = getTime1(data.endTime); data.endTime = getTime1(data.endTime);
data.startTime = getTime1(data.startTime); data.startTime = getTime1(data.startTime);
data.createTime = data.createTime.substring(0, 10); data.createTime = data.createTime.substring(0, 10);
data.bidBookInfoPO=data.bidBookInfoDO data.bidBookInfoPO = data.bidBookInfoDO;
data.earnestInfoPO=data.earnestInfoDO data.earnestInfoPO = data.earnestInfoDO;
let userInfo=JSON.parse(localStorage.getItem("userInfo")) let userInfo = JSON.parse(localStorage.getItem('userInfo'));
data.purchaseAgent=userInfo.companyName data.purchaseAgent = userInfo.companyName;
let bidBookPO = [];
bidBookPO.push(data.bidBookPO);
data.bidBookPO = bidBookPO;
this.detail = data; this.detail = data;
console.log(data)
} }
} }
} }
......
...@@ -3,26 +3,41 @@ ...@@ -3,26 +3,41 @@
<div class="user"> <div class="user">
<div>你好 ,MaikoXie , 欢迎开始一天的工作!</div> <div>你好 ,MaikoXie , 欢迎开始一天的工作!</div>
<ul class="user-list flex-between"> <ul class="user-list flex-between">
<li class="flex-colunm"> <li class="flex-colunm">
<img src="@static/images/user.png" alt="" /> <img src="@static/images/user.png" alt="" />
<div>今日可报名项目</div> <div>全部项目</div>
<div>{{ detail.applyProjects }}</div> <div>{{ detail.projectCount }}</div>
</li> </li>
<li class="flex-colunm"> <li class="flex-colunm">
<img src="@static/images/user.png" alt="" />
<div>我的供应商</div>
<div>{{ detail.bidderCount }}</div>
</li>
<li class="flex-colunm">
<img src="@static/images/user.png" alt="" />
<div>已定定标项目</div>
<div>{{ detail.calibrated }}</div>
</li>
<li class="flex-colunm">
<img src="@static/images/user.png" alt="" />
<div>已流标项目</div>
<div>{{ detail.bidFailed }}</div>
</li>
<li class="flex-colunm">
<img src="@static/images/user.png" alt="" /> <img src="@static/images/user.png" alt="" />
<div>中标项目</div> <div>已经终止项目</div>
<div>{{ detail.winProjects }}</div> <div>{{ detail.end }}</div>
</li> </li>
</ul> </ul>
<h1>项目信息</h1> <h1>项目信息</h1>
<dataTable :table-data="tableData" :columns="columns" :is-pageobj="false"> <dataTable :table-data="tableData" :columns="columns" :is-pageobj="false">
</dataTable> </dataTable>
<!-- <h1>待办事项</h1> <h1>待办事项</h1>
<ul class="flex-between project-list"> <ul class="flex-between project-list">
<li class="flex-colunm"> <li class="flex-colunm">
<img src="@static/images/item.png" alt="" /> <img src="@static/images/item.png" alt="" />
<div>待修改项目</div> <div>待修改项目</div>
<div>{{ detail.projectCount }}</div> <div>{{ detail.projectAduitNeedModify }}</div>
</li> </li>
<li class="flex-colunm"> <li class="flex-colunm">
<img src="@static/images/item.png" alt="" /> <img src="@static/images/item.png" alt="" />
...@@ -44,7 +59,7 @@ ...@@ -44,7 +59,7 @@
<div>待确认供应商凭证</div> <div>待确认供应商凭证</div>
<div>{{ detail.credentials }}</div> <div>{{ detail.credentials }}</div>
</li> </li>
</ul> --> </ul>
</div> </div>
</div> </div>
</template> </template>
...@@ -67,7 +82,12 @@ export default { ...@@ -67,7 +82,12 @@ export default {
url: '' url: ''
}, },
{ {
state: '处于招投标阶段的项目', state: '处于售标&投标阶段的项目',
number: '10',
url: ''
},
{
state: '处于投标阶段的项目',
number: '10', number: '10',
url: '' url: ''
}, },
...@@ -80,6 +100,16 @@ export default { ...@@ -80,6 +100,16 @@ export default {
state: '处于开标阶段的项目', state: '处于开标阶段的项目',
number: '10', number: '10',
url: '' url: ''
},
{
state: '处于评标阶段的项目',
number: '10',
url: ''
},
{
state: '处于定标阶段的项目',
number: '10',
url: ''
} }
], ],
columns: [ columns: [
...@@ -130,10 +160,6 @@ export default { ...@@ -130,10 +160,6 @@ export default {
}; };
}, },
created() { created() {
let token = getSearchString('token');
if (token !== 'undefined') {
localStorage.setItem('token', token);
}
this.gethome(); this.gethome();
}, },
methods: { methods: {
...@@ -143,12 +169,12 @@ export default { ...@@ -143,12 +169,12 @@ export default {
async gethome() { async gethome() {
const { data, code } = await home(); const { data, code } = await home();
this.detail = data; this.detail = data;
this.tableData[0].number = data.sellingBidding; this.tableData[0].number = data.prePublic;
this.tableData[1].number = data. bidding; this.tableData[1].number = data.sellingBidding;
this.tableData[2].number = data.open; this.tableData[2].number = data.bidding;
this.tableData[3].number = data.bidOpening; this.tableData[3].number = data.open;
this.tableData[4].number = data.bidOevaluating; this.tableData[4].number = data.bidOpening;
this.tableData[5].number = data.bidDecide; this.tableData[5].number = data.bidOevaluating;
} }
} }
}; };
......
<template> <template>
<div> <div>
<div class="content"> <div class="content">
<dataTable :columns = "columns" :breads = "breads" :checklist = "checklist" :page-obj = "pageobj" :margin-top="100" url="/bidder/project/takePart/list"> <dataTable
<el-table-column slot="operate" label = "项目类型" fixed="right" width="100"> :columns="columns"
<template slot-scope="scope"> :breads="breads"
<div>{{scope.row.bidType==0?"公开招标":"邀请招标"}}</div> :checklist="checklist"
</template> :page-obj="pageobj"
</el-table-column> :margin-top="100"
<el-table-column slot="operate" align="center" label="项目状态" flexd="right" width="200px"> url="/bidder/project/takePart/list"
<template slot-scope="scope"> >
<div>{{totalMarks(scope.row.status)}}</div> <el-table-column slot="operate" label="项目类型" fixed="right" width="100">
</template> <template slot-scope="scope">
</el-table-column> <div>{{ scope.row.bidType == 0 ? '公开招标' : '邀请招标' }}</div>
<el-table-column slot="operate" label = "操作" fixed="right" width="100"> </template>
<template slot-scope="scope"> </el-table-column>
<el-button type ="text" size = "small " @click="send(scope.row)">工作台</el-button> <el-table-column slot="operate" align="center" label="项目状态" flexd="right" width="200px">
</template> <template slot-scope="scope">
</el-table-column> <div>{{ totalMarks(scope.row.status) }}</div>
</dataTable> </template>
</el-table-column>
<el-table-column slot="operate" label="操作" fixed="right" width="200">
<template slot-scope="scope">
<div v-if="scope.row.type == 1">
<el-button type="text" size="small" @click="handlesee(scope.row)">查看投标邀请书 </el-button>
<el-button type="text" size="small" @click="jump(scope.row)">查看询价公告 </el-button>
</div>
<div v-else class="flex-center">
<el-button type="text" size="small " @click="send(scope.row)">工作台</el-button>
</div>
</template>
</el-table-column>
</dataTable>
</div>
</div> </div>
</div>
</template> </template>
<script> <script>
import {projectStatusList} from '@api/common/list' import { projectStatusList } from '@api/common/list';
import dataTable from '@components/dataTable.vue' import dataTable from '@components/dataTable.vue';
export default { export default {
components: { components: {
dataTable dataTable
}, },
data() { data() {
return { return {
//分页 //分页
pageobj: { pageobj: {
size: 10, size: 10,
currentPage: 1, currentPage: 1,
func: (currentPage) => { func: (currentPage) => {
this.pageTurning(currentPage) this.pageTurning(currentPage);
} }
}, },
//表格第一行 //表格第一行
columns: [ columns: [
{ {
label: '项目编号', label: '项目编号',
prop: 'projectCode' prop: 'projectCode'
}, },
{ {
label: '项目名称', label: '项目名称',
prop: 'projectName' prop: 'projectName'
}, },
{ {
label: '采购商', label: '采购商',
prop: 'companyName' prop: 'companyName'
}, },
{ {
label: '投标截止时间', label: '投标截止时间',
prop: 'endTime' prop: 'endTime'
}, },
{ {
slot: 'operate' slot: 'operate'
}], }
checklist: [{ ],
title: '采购商:', checklist: [
type: 'input', {
model: 'companyName' title: '采购商:',
}, type: 'input',
{ model: 'companyName'
title: '项目名称:', },
type: 'input', {
model: 'projectName' title: '项目名称:',
}, type: 'input',
model: 'projectName'
{ },
title: '状态',
type: 'select', {
selectlist: [], title: '状态',
change: row => '', type: 'select',
model: 'status' selectlist: [],
}, change: (row) => '',
{ model: 'status'
title: '项目类型', },
type: 'select', {
selectlist: [{ title: '项目类型',
value: '1', type: 'select',
label: '公开招标' selectlist: [
{
value: '1',
label: '公开招标'
},
{
value: '2',
label: '邀请招标'
}
],
change: (row) => '',
model: 'type'
}
],
breads: ['投标管理', '我参与的项目']
};
},
methods: {
handlesee(row) {
this.$router.push('/supply/bid/signupOnline/seeAnnouncement');
// this.$router.push(`/supply/bid/signupOnline/seeAnnouncement?id=${row.projectId}`)
localStorage.setItem('projectId', row.projectId);
},
jump(row) {
this.$router.push('/supply/bid/signupOnline/seePrice');
localStorage.setItem('projectId', row.projectId);
}, },
{ totalMarks: function (status) {
value: '2', let value = this.map.get(status);
label: '邀请招标' return value;
},
send(row) {
this.$router.push('/supply/bid/joinProject/workbench');
localStorage.setItem('projectId', row.projectId);
localStorage.setItem('projectName', row.projectName);
localStorage.setItem('projectCode', row.projectCode);
},
async getprojectStatusList() {
const data = await projectStatusList();
this.map = new Map();
for (let item of data) {
item.value = item.id;
item.label = item.name;
this.map.set(item.id, item.name);
}
this.checklist[2].selectlist = data;
} }
],
change: row => '',
model: 'type'
}
],
breads: ['投标管理', '我参与的项目']
}
},
methods: {
totalMarks: function (status) {
let value=this.map.get(status)
return value
},
send(row) {
this.$router.push("/supply/bid/joinProject/workbench")
localStorage.setItem("projectId",row.projectId)
localStorage.setItem("projectName",row.projectName)
localStorage.setItem("projectCode",row.projectCode)
}, },
async getprojectStatusList(){ created() {
const data = await projectStatusList() this.getprojectStatusList();
this.map = new Map(); this.pageobj.companyId = localStorage.getItem('companyId');
for(let item of data){ }
item.value=item.id; };
item.label=item.name
this.map.set(item.id,item.name)
}
this.checklist[2].selectlist=data
},
},
created(){
this.getprojectStatusList();
this.pageobj.companyId=localStorage.getItem("companyId")
}
}
</script> </script>
<style scoped> <style scoped>
</style> </style>
...@@ -191,21 +191,18 @@ export default { ...@@ -191,21 +191,18 @@ export default {
methods: { methods: {
async gethome() { async gethome() {
const { data, code } = await home(); const { data, code } = await home();
this.detail = data; this.imglist[0].num=data.applyProjects
this.tableData[0].number = data.prePublic; this.imglist[1].num=data.winProjects
this.tableData[1].number = data.sellingBidding; this.tabledata[0].number = data.sellingBidding;
this.tableData[2].number = data.bidding; this.tabledata[1].number = data.bidding;
this.tableData[3].number = data.open; this.tabledata[2].number = data.open;
this.tableData[4].number = data.bidOpening; this.tabledata[3].number = data.bidOpening;
this.tableData[5].number = data.bidOevaluating; this.tabledata[4].number = data.bidOevaluating;
this.tabledata[5].number = data.bidDecide;
} }
}, },
created() { created() {
this.gethome(); this.gethome();
let token = getSearchString('token');
if (token !== 'undefined') {
localStorage.setItem('token', token);
}
} }
}; };
</script> </script>
......
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