|
@@ -8,6 +8,34 @@
|
|
|
</div>
|
|
|
<div v-if="currentName === '招标'" class="div2">
|
|
|
<tender-details v-if="caigou && caigou.aid" :caigou="caigou" :plan="plan"></tender-details>
|
|
|
+ <div style="padding: 0 20px;margin-top: -20px;">
|
|
|
+
|
|
|
+ <h4 style="font-weight: bold;">招标文件</h4>
|
|
|
+ <el-table :data="documentsList">
|
|
|
+ <el-table-column label="序号" align="center" type="index" />
|
|
|
+ <el-table-column label="文件标题" align="center" prop="wTitle" />
|
|
|
+ <!-- <el-table-column label="文件大小(kb)" align="center" prop="wSize" /> -->
|
|
|
+ <el-table-column label="上传时间" align="center" prop="wUploadTime" width="180">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{
|
|
|
+ parseTime(scope.row.wUploadTime, "{y}-{m}-{d}")
|
|
|
+ }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <a :href="scope.row.url" target="_blank">
|
|
|
+ <el-button size="mini" type="text" icon="el-icon-download">下载</el-button>
|
|
|
+ </a>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+
|
|
|
+ <pagination v-show="documentsListTotal > 0" :total="documentsListTotal"
|
|
|
+ :page.sync="documerntQueryParams.pageNum" :limit.sync="documerntQueryParams.pageSize"
|
|
|
+ @pagination="getDocuments" />
|
|
|
+ </div>
|
|
|
+
|
|
|
</div>
|
|
|
<div v-if="currentName === '投标'" class="div2">
|
|
|
<el-descriptions style="margin-top: 20px;" title="" :column="3" border :labelStyle="{ width: '180px' }">
|
|
@@ -51,7 +79,8 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column v-if="isOverFirstTime" label="报价时间" prop="quoteTime" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
- {{ scope.row.thirdTime ? scope.row.thirdTime : (scope.row.secondTime ? scope.row.secondTime : scope.row.firstTime) }}
|
|
|
+ {{ scope.row.thirdTime ? scope.row.thirdTime : (scope.row.secondTime ? scope.row.secondTime :
|
|
|
+ scope.row.firstTime) }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="标书" align="center">
|
|
@@ -85,6 +114,10 @@ import { selectBidNoticeBySid } from "@/api/system/tender/tenderNotice";
|
|
|
import { listQuote } from '@/api/system/quote';
|
|
|
import TenderDetails from '@/components/tender/tenderDetails.vue'
|
|
|
import ExcelContent from './components/excelContent.vue'
|
|
|
+
|
|
|
+import {
|
|
|
+ listDocuments
|
|
|
+} from "@/api/system/document";
|
|
|
import moment from "moment";
|
|
|
export default {
|
|
|
dicts: ['quote_mode', 'buying_mode'],
|
|
@@ -114,7 +147,15 @@ export default {
|
|
|
quoteTableData: [],
|
|
|
refreshQuoteTimer: null,
|
|
|
|
|
|
- isOverFirstTime: false
|
|
|
+ isOverFirstTime: false,
|
|
|
+ documerntQueryParams: {
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: 10,
|
|
|
+ sid: this.$route.query.sid,
|
|
|
+
|
|
|
+ },
|
|
|
+ documentsList: [],
|
|
|
+ documentsListTotal: 0,
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -125,12 +166,13 @@ export default {
|
|
|
// return currentTime.isAfter(kaibiaoTime)
|
|
|
// }
|
|
|
},
|
|
|
- async created() {
|
|
|
+ async created () {
|
|
|
await this.getData()
|
|
|
await this.getListQuote()
|
|
|
+ this.getDocuments()
|
|
|
},
|
|
|
methods: {
|
|
|
- async getData() {
|
|
|
+ async getData () {
|
|
|
const res = await getTender(this.sid)
|
|
|
this.tender = res.data
|
|
|
|
|
@@ -161,6 +203,14 @@ export default {
|
|
|
this.detail.isEnd = isEnd
|
|
|
}
|
|
|
},
|
|
|
+ async getDocuments () {
|
|
|
+ const res = await listDocuments(this.documerntQueryParams)
|
|
|
+
|
|
|
+ this.documentsList = res.rows;
|
|
|
+ console.log(this.documentsList);
|
|
|
+ this.documentsListTotal = res.total;
|
|
|
+
|
|
|
+ },
|
|
|
changeStep (stepIndex, currentName) {
|
|
|
const sProjectState = this.tender.sProjectState
|
|
|
|
|
@@ -179,7 +229,7 @@ export default {
|
|
|
|
|
|
}
|
|
|
},
|
|
|
- async getListQuote() {
|
|
|
+ async getListQuote () {
|
|
|
const res = await listQuote({ sid: this.sid })
|
|
|
this.quoteTableData = res.data.map(item => {
|
|
|
const filePath = item.filePath
|
|
@@ -197,16 +247,16 @@ export default {
|
|
|
this.isOverFirstTime = currentTime.isAfter(kaibiaoTime)
|
|
|
},
|
|
|
|
|
|
- refreshPage() {
|
|
|
+ refreshPage () {
|
|
|
this.refreshQuoteTimer = setInterval(this.getListQuote, 10000)
|
|
|
}
|
|
|
},
|
|
|
|
|
|
- activated() {
|
|
|
+ activated () {
|
|
|
this.refreshPage()
|
|
|
},
|
|
|
|
|
|
- deactivated() {
|
|
|
+ deactivated () {
|
|
|
clearInterval(this.refreshQuoteTimer)
|
|
|
}
|
|
|
}
|