Commit ab788ac4 authored by 张冬's avatar 张冬

流标公告详情,拒绝原因,编辑

parent 3364d78b
...@@ -159,7 +159,7 @@ export function createChange(data) { ...@@ -159,7 +159,7 @@ export function createChange(data) {
data: data data: data
}) })
} }
// 发布变更公告 // 编辑变更公告
export function editchange(data) { export function editchange(data) {
return request({ return request({
url: 'tender-notice/edit-change', url: 'tender-notice/edit-change',
...@@ -199,6 +199,15 @@ export function createAbortive(data) { ...@@ -199,6 +199,15 @@ export function createAbortive(data) {
}) })
} }
// 编辑流标公告
export function editabortive(data) {
return request({
url: 'tender-notice/edit-abortive',
method: 'post',
data: data
})
}
// 流标公告详情 // 流标公告详情
export function noticeAbortive(id) { export function noticeAbortive(id) {
return request({ return request({
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
</el-form> </el-form>
<div class="centerButton"> <div class="centerButton">
<el-button @click="cancle">取消</el-button> <el-button @click="cancle">取消</el-button>
<el-button type="primary" @click="submit" v-if="!state">提交审核{{id}}</el-button> <el-button type="primary" @click="submit" v-if="!state">提交审核</el-button>
<el-button type="primary" @click="change" v-else>提交修改</el-button> <el-button type="primary" @click="change" v-else>提交修改</el-button>
</div> </div>
</div> </div>
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<el-form-item label="上传附件" v-if="ruleForm.accessoryVOList"> <el-form-item label="上传附件" v-if="ruleForm.accessoryVOList">
<div v-if="ruleForm.accessoryVOList.length==0"></div> <div v-if="ruleForm.accessoryVOList.length==0"></div>
<ul v-else> <ul v-else>
<li v-for="(item,index) in ruleForm.accessoryVOList" :key="index" class="flex"> <li v-for="(item,index) in ruleForm.accessoryVOList" :key="index" class="flex-item">
<div style="margin-right: 10px;">{{item.fileName}}</div> <div style="margin-right: 10px;">{{item.fileName}}</div>
<el-button size="mini" @click="down(item.accessoryUrl)">下载</el-button> <el-button size="mini" @click="down(item.accessoryUrl)">下载</el-button>
</li> </li>
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
</el-table-column> </el-table-column>
<el-table-column slot="operate" label="操作" align="center" fixed="right" width="100"> <el-table-column slot="operate" label="操作" align="center" fixed="right" width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button v-if="scope.row.auditStatus===2" type="text" size="small" @click="handleModify(scope.row.id)">修改 </el-button> <el-button v-if="scope.row.auditStatus===2" type="text" size="small" @click="handleModify(scope.row.noticeId)">修改 </el-button>
<el-button v-else type="text" size="small" @click="handleSee(scope.row.noticeId)">查看 </el-button> <el-button v-else type="text" size="small" @click="handleSee(scope.row.noticeId)">查看 </el-button>
</template> </template>
</el-table-column> </el-table-column>
......
...@@ -4,6 +4,9 @@ ...@@ -4,6 +4,9 @@
<dataBreadcrumb :breads="breads"></dataBreadcrumb> <dataBreadcrumb :breads="breads"></dataBreadcrumb>
<h3>{{ title }}</h3> <h3>{{ title }}</h3>
<h5>{{ title }}</h5> <h5>{{ title }}</h5>
<div class="abs">
<div>拒绝原因:{{ruleForm.reason}}</div>
</div>
</div> </div>
<div class="content"> <div class="content">
<div class="describe">流标公告</div> <div class="describe">流标公告</div>
...@@ -13,15 +16,16 @@ ...@@ -13,15 +16,16 @@
<el-input v-model.trim="ruleForm.title" placeholder="请输入" maxlength="30"></el-input> <el-input v-model.trim="ruleForm.title" placeholder="请输入" maxlength="30"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="上传附件"> <el-form-item label="上传附件">
<singleUpload tip="支持扩展名:.rar .zip .doc .docx .pdf .jpg..." @input="getfile"></singleUpload> <singleUpload tip="支持扩展名:.rar .zip .doc .docx .pdf .jpg..." :fileList="ruleForm.accessoryVOList" @input="getfile"></singleUpload>
</el-form-item> </el-form-item>
<el-form-item label="公告内容" prop="content"> <el-form-item label="公告内容" prop="content">
<quill-editor ref="text" v-model="ruleForm.content" :options="editorOption" class="myQuillEditor" /> <quill-editor ref="text" v-model="ruleForm.content" :options="editorOption" class="myQuillEditor" />
</el-form-item> </el-form-item>
</el-form> </el-form>
<div class="button"> <div class="centerButton">
<el-button @click="cancle">取消</el-button> <el-button @click="cancle">取消</el-button>
<el-button type="primary" @click="submit">提交审核</el-button> <el-button type="primary" @click="submit" v-if="!state">提交审核</el-button>
<el-button type="primary" @click="change" v-else>提交修改</el-button>
</div> </div>
</div> </div>
</div> </div>
...@@ -29,7 +33,7 @@ ...@@ -29,7 +33,7 @@
</template> </template>
<script> <script>
import { createAbortive, noticeAbortive } from '@api/purchaser/bid'; import { createAbortive, noticeAbortive,editabortive } from '@api/purchaser/bid';
import dataBreadcrumb from '@components/dataBreadcrumb.vue'; import dataBreadcrumb from '@components/dataBreadcrumb.vue';
import singleUpload from '@components/Upload/Upload.vue'; import singleUpload from '@components/Upload/Upload.vue';
import { quillEditor } from 'vue-quill-editor'; import { quillEditor } from 'vue-quill-editor';
...@@ -44,6 +48,7 @@ export default { ...@@ -44,6 +48,7 @@ export default {
}, },
data() { data() {
return { return {
state:false,
editorOption: {}, editorOption: {},
title: '发布流标公告', title: '发布流标公告',
breads: ['招标管理', '招标项目管理', '工作台'], breads: ['招标管理', '招标项目管理', '工作台'],
...@@ -83,6 +88,7 @@ export default { ...@@ -83,6 +88,7 @@ export default {
if (id) { if (id) {
this.title = '修改流标公告'; this.title = '修改流标公告';
this.abortiveDetail(id); this.abortiveDetail(id);
this.state=true
} }
}, },
methods: { methods: {
...@@ -124,12 +130,44 @@ export default { ...@@ -124,12 +130,44 @@ export default {
try { try {
const { data, code } = await noticeAbortive(id); const { data, code } = await noticeAbortive(id);
if (code === 200) { if (code === 200) {
this.ruleForm = data; for (let item of data.accessoryVOList) {
console.log(item);
item.name = item.fileName;
item.fileUrl = item.accessoryUrl;
}
data.accessoryPOList=data.accessoryVOList
this.ruleForm = data;
} }
} catch (e) { } catch (e) {
console.log(e); console.log(e);
} }
} },
// 修改
async change(){
try {
const valid = await this.$refs['ruleForm'].validate();
if (valid) {
let ruleForm = this.ruleForm;
ruleForm.projectId = localStorage.getItem('projectId');
if (this.id) {
ruleForm.id = this.id;
}
const { code, msg } = await editabortive(this.ruleForm);
if (code === 200) {
this.$message({
message: msg,
type: 'success',
duration: 1500
});
setTimeout(() => {
this.$router.go(-1);
}, 1500);
}
}
} catch (err) {
console.log(err);
}
},
} }
}; };
</script> </script>
...@@ -145,4 +183,12 @@ export default { ...@@ -145,4 +183,12 @@ export default {
width: 200px; width: 200px;
margin: 150px auto 0; margin: 150px auto 0;
} }
.content-head{
position: relative;
}
.content-head>.abs{
position: absolute;
right:10px;
bottom: 10px;
}
</style> </style>
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<ul v-else> <ul v-else>
<li v-for="(item, index) in ruleForm.accessoryVOList" :key="index" class="flex"> <li v-for="(item, index) in ruleForm.accessoryVOList" :key="index" class="flex">
<div style="margin-right: 10px">{{ item.fileName }}</div> <div style="margin-right: 10px">{{ item.fileName }}</div>
<el-button size="mini" @click="down(item.accessoryUrl)">下载</el-button> <el-button size="mini" @click="open(item.accessoryUrl)">下载</el-button>
</li> </li>
</ul> </ul>
</el-form-item> </el-form-item>
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
<script> <script>
import { noticeAbortive } from '@api/purchaser/bid'; import { noticeAbortive } from '@api/purchaser/bid';
import { down } from '@utils/common';
import dataBreadcrumb from '@components/dataBreadcrumb.vue'; import dataBreadcrumb from '@components/dataBreadcrumb.vue';
import multiUpload from '@components/Upload/multiUpload.vue'; import multiUpload from '@components/Upload/multiUpload.vue';
import { quillEditor } from 'vue-quill-editor'; import { quillEditor } from 'vue-quill-editor';
...@@ -92,6 +93,9 @@ export default { ...@@ -92,6 +93,9 @@ export default {
this.abortiveDetail(id); this.abortiveDetail(id);
}, },
methods: { methods: {
open(url){
window.open(url)
},
cancle() { cancle() {
this.$router.go(-1); this.$router.go(-1);
}, },
......
export function getSearchString(key) { export function getSearchString(key) {
// 获取URL中?之后的字符 // 获取URL中?之后的字符
var str = location.href; var str = location.href;
var str=str.split("?")[1] var str=str.split("?")[1]
...@@ -15,6 +15,9 @@ ...@@ -15,6 +15,9 @@
} }
return obj[key]; return obj[key];
} }
export function down(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';
......
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