Commit a64b6047 authored by 张冬's avatar 张冬

递交文件的编辑和查看

parent 0cd49410
...@@ -219,6 +219,13 @@ export function revocationBidbFile(bidFileId) { ...@@ -219,6 +219,13 @@ export function revocationBidbFile(bidFileId) {
}) })
} }
// 投标文件详情
export function bidFileDetail(projectId) {
return request({
url: `tender/bidFile/detail/${projectId}`,
method: 'get',
})
}
//2.2.3 //2.2.3
......
...@@ -107,7 +107,7 @@ ...@@ -107,7 +107,7 @@
</div> </div>
<div class="detail-item"> <div class="detail-item">
<div>其他资料</div> <div>其他资料</div>
<div class="flex-between pdf"> <div class="pdf">
<a :href="item.fileUrl" v-for="(item, index) in elseFile" :key="index">{{ item.fileName }}</a> <a :href="item.fileUrl" v-for="(item, index) in elseFile" :key="index">{{ item.fileName }}</a>
</div> </div>
</div> </div>
...@@ -220,7 +220,7 @@ export default { ...@@ -220,7 +220,7 @@ export default {
/* width: 170px; */ /* width: 170px; */
} }
.pdf > div:nth-child(2), /* .pdf > div:nth-child(2),
.pdf > div:last-child { .pdf > div:last-child {
width: 50px; width: 50px;
height: 30px; height: 30px;
...@@ -228,5 +228,9 @@ export default { ...@@ -228,5 +228,9 @@ export default {
line-height: 30px; line-height: 30px;
border-radius: 10px; border-radius: 10px;
border: 1px solid #000; border: 1px solid #000;
} */
.pdf>a{
display: block;
margin-bottom:15px
} }
</style> </style>
\ No newline at end of file
...@@ -19,10 +19,10 @@ ...@@ -19,10 +19,10 @@
@keyup.native="$event.target.value = $event.target.value.replace(/^\s+|\s+$/gm, '')" @keyup.native="$event.target.value = $event.target.value.replace(/^\s+|\s+$/gm, '')"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="注册角色" prop="type" class="item"> <el-form-item label="注册角色" prop="type" class="item" >
<el-select v-model="form.type" placeholder="请输入选择"> <el-select v-model="form.type" placeholder="请输入选择" disabled>
<el-option label="采购商" value="1"></el-option> <el-option label="采购商" :value="1"></el-option>
<el-option label="供应商" value="2"></el-option> <el-option label="供应商" :value="2"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="法人姓名" prop="legalPersonName" class="item"> <el-form-item label="法人姓名" prop="legalPersonName" class="item">
...@@ -620,7 +620,8 @@ export default { ...@@ -620,7 +620,8 @@ export default {
duration: 1500 duration: 1500
}); });
setTimeout(() => { setTimeout(() => {
this.$router.go(-1); history.go(0)
// this.$router.go(-1);
}, 1500); }, 1500);
} else { } else {
this.$message.error(msg); this.$message.error(msg);
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
<div> <div>
<div class="content-head"> <div class="content-head">
<dataBreadcrumb :breads="breads"></dataBreadcrumb> <dataBreadcrumb :breads="breads"></dataBreadcrumb>
<h3>递交投标文件</h3> <h3>{{title}}投标文件</h3>
<h5>递交投标文件</h5> <h5>{{title}}投标文件</h5>
</div> </div>
<div class="othercontent"> <div class="othercontent">
<div> <div>
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<div> <div>
<div v-if="!state">投标状态:待递交投标文件</div> <div v-if="!state">投标状态:待递交投标文件</div>
<div v-else>投标状态:投标文件递交成功</div> <div v-else>投标状态:投标文件递交成功</div>
<div>投标文件成功递交时间:{{submitTime}}</div> <div>投标文件成功递交时间:{{form.createTime}}</div>
</div> </div>
<div> <div>
<div>投标截止(开标)时间:{{openBidTime}}</div> <div>投标截止(开标)时间:{{openBidTime}}</div>
...@@ -28,15 +28,15 @@ ...@@ -28,15 +28,15 @@
<el-form ref="form" :model="form" :rules="rules" label-width="120px" class="demo-ruleForm"> <el-form ref="form" :model="form" :rules="rules" label-width="120px" class="demo-ruleForm">
<div class="flex-between"> <div class="flex-between">
<el-form-item label="联系人姓名:" prop="bidderName"> <el-form-item label="联系人姓名:" prop="bidderName">
<el-input v-model="form.bidderName"></el-input> <el-input v-model="form.bidderName" :disabled="disabled"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="联系人手机:" prop="bidderPhone"> <el-form-item label="联系人手机:" prop="bidderPhone">
<el-input v-model="form.bidderPhone"></el-input> <el-input v-model="form.bidderPhone" :disabled="disabled"></el-input>
</el-form-item> </el-form-item>
</div> </div>
<div> <div>
<el-form-item label="投标文件:" prop="bidbookId"> <el-form-item label="投标文件:" prop="bidbookId">
<el-select v-model="form.bidbookId" placeholder="请选择"> <el-select v-model="form.bidbookId" placeholder="请选择" :disabled="disabled">
<el-option v-for="item in options" :key="item.id" :label="item.name" :value="item.id"> <el-option v-for="item in options" :key="item.id" :label="item.name" :value="item.id">
</el-option> </el-option>
</el-select> </el-select>
...@@ -53,9 +53,8 @@ ...@@ -53,9 +53,8 @@
</div> --> </div> -->
<div class="bottomButton"> <div class="bottomButton">
<el-button @click="back">取消</el-button> <el-button @click="back">取消</el-button>
<!-- <el-button>下载回执</el-button> --> <el-button :disabled="!state" type="primary" @click="withdraw" v-if="state&&!disabled">撤回投标文件</el-button>
<el-button :disabled="!state" type="primary" @click="withdraw">撤回投标文件</el-button> <el-button :disabled="state" type="primary" @click="submitData" v-if="!disabled">递交投标文件</el-button>
<el-button :disabled="state" type="primary" @click="submitData">递交投标文件</el-button>
</div> </div>
</div> </div>
</div> </div>
...@@ -68,7 +67,8 @@ ...@@ -68,7 +67,8 @@
bidFile, bidFile,
revocationBidbFile, revocationBidbFile,
timeInfo, timeInfo,
bidCondition bidCondition,
bidFileDetail
} from '@api/supply/bid' } from '@api/supply/bid'
import { import {
getTime getTime
...@@ -95,9 +95,9 @@ ...@@ -95,9 +95,9 @@
} }
}; };
return { return {
title:"递交",
compareTime:"", compareTime:"",
openBidTime:"", openBidTime:"",
bidFileId: "",
submitTime: "暂无", submitTime: "暂无",
state: false, state: false,
options: [], options: [],
...@@ -125,7 +125,8 @@ ...@@ -125,7 +125,8 @@
message: '请选择', message: '请选择',
trigger: 'change' trigger: 'change'
}], }],
} },
disabled:false
} }
}, },
methods: { methods: {
...@@ -136,7 +137,11 @@ ...@@ -136,7 +137,11 @@
data, data,
code code
} = await bidCondition(projectId) } = await bidCondition(projectId)
console.log(data) if(code==200){
this.state=true
}else{
this.state=false
}
}, },
remaintimeEnd(){ remaintimeEnd(){
...@@ -167,19 +172,13 @@ ...@@ -167,19 +172,13 @@
try { try {
const valid = await this.$refs['form'].validate() const valid = await this.$refs['form'].validate()
if (valid) { if (valid) {
let form = this.form let form = this.form
form.projectId=localStorage.getItem("projectId") form.projectId=localStorage.getItem("projectId")
const { const {
code, code,
msg msg
} = await bidFile(form) } = await bidFile(form)
if (code === 200) { if (code ==200) {
// this.$message.success(msg)
// this.submitTime=getTime()
// this.state=true
// this.bidFileId=form.bidbookId;
// this.getbidBooks()
this.$message({ this.$message({
message: msg, message: msg,
type: 'success', type: 'success',
...@@ -202,12 +201,8 @@ ...@@ -202,12 +201,8 @@
const { const {
msg, msg,
code code
} = await revocationBidbFile(this.bidFileId) } = await revocationBidbFile(this.form.bidbookId)
if (code === 200) { if (code == 200) {
// this.$message.success(msg)
// this.state=false
// this.submitTime="暂无"
// this.getbidBooks()
this.$message({ this.$message({
message: msg, message: msg,
type: 'success', type: 'success',
...@@ -222,7 +217,16 @@ ...@@ -222,7 +217,16 @@
} catch (e) { } catch (e) {
console.log(e) console.log(e)
} }
} },
// 获取提交文件详情
async getbidFileDetail(projectId) {
const {
data,
code
} = await bidFileDetail(projectId)
data.bidbookId=data.id
this.form = data
},
}, },
created() { created() {
this.projectCode = localStorage.getItem("projectCode") this.projectCode = localStorage.getItem("projectCode")
...@@ -231,6 +235,15 @@ ...@@ -231,6 +235,15 @@
this.getbidBooks(projectId) this.getbidBooks(projectId)
this.gettimeInfo(projectId) this.gettimeInfo(projectId)
this.getbidCondition(projectId) this.getbidCondition(projectId)
let type=this.$route.query.type
if(type==1){
this.title="编辑"
this.getbidFileDetail(projectId)
}else if(type==2){
this.title="查看"
this.getbidFileDetail(projectId)
this.disabled=true
}
} }
} }
</script> </script>
......
...@@ -18,8 +18,8 @@ export function getSearchString(key) { ...@@ -18,8 +18,8 @@ export function getSearchString(key) {
export function down(url) { export function down(url) {
window.open(url) window.open(url)
} }
export let requestUrl = 'http://192.168.3.35:8085'; // export let requestUrl = 'http://192.168.3.35:8085';
// export let requestUrl = 'http://60.205.251.80:8082'; export let requestUrl = 'http://60.205.251.80:8082';
// export let homeUrl = 'http://localhost:3000'; // export let homeUrl = 'http://localhost:3000';
......
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