Commit 8f38083a authored by 张冬's avatar 张冬

询价和Ui小改

parent 765d4028
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div> <div>
<div class="content"> <div class="content">
<dataTable :columns="columns" :page-obj="pageObj" :breads="breads" url="/tender-earnest/list"> <dataTable :columns="columns" :page-obj="pageObj" :breads="breads" url="/tender-earnest/list">
<el-table-column slot="createTime" label="提交审核时间" align="center" width="100"> <el-table-column slot="createTime" label="提交审核时间" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<div>{{scope.row.createTime?scope.row.createTime:"无"}}</div> <div>{{scope.row.createTime?scope.row.createTime:"无"}}</div>
</template> </template>
......
...@@ -16,14 +16,15 @@ ...@@ -16,14 +16,15 @@
<div><span>*</span>澄清问题内容:</div> <div><span>*</span>澄清问题内容:</div>
<div>{{ detail.content }}</div> <div>{{ detail.content }}</div>
</div> </div>
<div v-if="detail.accessoryList" class="flex"> <div class="flex">
<div><span>*</span>澄清问题附件:</div> <div>澄清问题附件:</div>
<ul> <ul v-if="detail.accessoryList!==undefined&& detail.accessoryList.length>0">
<li v-for="(item,index) in detail.accessoryList" :key="index"> <li v-for="(item,index) in detail.accessoryList" :key="index">
<span>{{ item.fileName }}</span> <span>{{ item.fileName }}</span>
<el-button @click="download(item.accessoryUrl)">下载</el-button> <el-button @click="download(item.accessoryUrl)">下载</el-button>
</li> </li>
</ul> </ul>
<div></div>
</div> </div>
</div> </div>
<h3 class="title">澄清内容</h3> <h3 class="title">澄清内容</h3>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div> <div>
<div class="content"> <div class="content">
<dataTable :columns="columns" :page-obj="pageObj" :breads="breads" url="/tender-bidbook/operation"> <dataTable :columns="columns" :page-obj="pageObj" :breads="breads" url="/tender-bidbook/operation">
<el-table-column slot="updateTime" label="提交审核时间" align="center" width="100"> <el-table-column slot="updateTime" label="提交审核时间" align="center" >
<template slot-scope="scope"> <template slot-scope="scope">
<div>{{scope.row.updateTime?scope.row.updateTime:"无"}}</div> <div>{{scope.row.updateTime?scope.row.updateTime:"无"}}</div>
</template> </template>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<dataBreadcrumb :breads="breads"></dataBreadcrumb> <dataBreadcrumb :breads="breads"></dataBreadcrumb>
<changeNav :navs="navs"></changeNav> <changeNav :navs="navs"></changeNav>
<div> <div>
<div class="message"> <div class="message form">
<div class="flex-between"> <div class="flex-between">
<div>项目编号:{{projectCode}}</div> <div>项目编号:{{projectCode}}</div>
<div style="margin-right: 100px;">项目名称:{{projectName}}</div> <div style="margin-right: 100px;">项目名称:{{projectName}}</div>
...@@ -163,7 +163,8 @@ ...@@ -163,7 +163,8 @@
<style scoped> <style scoped>
.message { .message {
width: 60%; width: 80%;
margin:0 auto
} }
.message>div { .message>div {
......
...@@ -2,14 +2,17 @@ ...@@ -2,14 +2,17 @@
<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 v-if="type == 1" class="abs">
<div>拒绝原因:{{ ruleForm.reason }}</div>
</div>
</div> </div>
<div class="content"> <div class="content">
<div class="message"> <div class="message form">
<div class="flex-between"> <div class="flex-between">
<div>项目编号:{{projectCode}}</div> <div>项目编号:{{ projectCode }}</div>
<div>项目名称:{{projectName}}</div> <div>项目名称:{{ projectName }}</div>
</div> </div>
<div class="flex-between"> <div class="flex-between">
<div class="flex"> <div class="flex">
...@@ -20,9 +23,8 @@ ...@@ -20,9 +23,8 @@
<div>发布媒体:捷安采官网</div> <div>发布媒体:捷安采官网</div>
</div> </div>
<div class="flex-item"> <div class="flex-item">
<div style="width: 50px;">备注:</div> <div style="width: 50px">备注:</div>
<el-input :rows="4" v-model.trim="remark" type="remark" placeholder="请输入备注" maxlength="300"> <el-input :rows="4" v-model.trim="remark" type="remark" placeholder="请输入备注" maxlength="300"> </el-input>
</el-input>
</div> </div>
</div> </div>
<div class="form"> <div class="form">
...@@ -34,7 +36,7 @@ ...@@ -34,7 +36,7 @@
</template> </template>
</el-table-column> </el-table-column>
</dataTable> </dataTable>
<h3 style="margin-top:30px">中标公告内容</h3> <h3 style="margin-top: 30px">中标公告内容</h3>
<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="title"> <el-form-item label="公告标题" prop="title">
<el-input v-model.trim="ruleForm.title" maxlength="30"></el-input> <el-input v-model.trim="ruleForm.title" maxlength="30"></el-input>
...@@ -46,7 +48,7 @@ ...@@ -46,7 +48,7 @@
</div> </div>
<div class="bottomButton flex-center"> <div class="bottomButton flex-center">
<el-button @click="back">返回</el-button> <el-button @click="back">返回</el-button>
<el-button type="primary" @click="submitData">提交审批</el-button> <el-button type="primary" @click="submitData" v-if="type !== 2">提交审批</el-button>
</div> </div>
</div> </div>
<el-dialog :visible.sync="dialogFormVisible" title="收货地址" width="30%"> <el-dialog :visible.sync="dialogFormVisible" title="收货地址" width="30%">
...@@ -64,20 +66,16 @@ ...@@ -64,20 +66,16 @@
</template> </template>
<script> <script>
import { import { noticeWin } from '@api/supply/bid';
createwin, import { createwin, winPersonInfo, editwin } from '@api/purchaser/bid';
winPersonInfo import { quillEditor } from 'vue-quill-editor';
} from '@api/purchaser/bid' import 'quill/dist/quill.core.css';
import { import 'quill/dist/quill.snow.css';
quillEditor import 'quill/dist/quill.bubble.css';
} from 'vue-quill-editor' import dataTable from '@components/nopageTable.vue';
import 'quill/dist/quill.core.css' import dataBreadcrumb from '@components/dataBreadcrumb.vue';
import 'quill/dist/quill.snow.css' import singleUpload from '@components/Upload/Upload.vue';
import 'quill/dist/quill.bubble.css' export default {
import dataTable from '@components/nopageTable.vue'
import dataBreadcrumb from '@components/dataBreadcrumb.vue'
import singleUpload from '@components/Upload/Upload.vue'
export default {
components: { components: {
dataTable, dataTable,
dataBreadcrumb, dataBreadcrumb,
...@@ -86,25 +84,30 @@ ...@@ -86,25 +84,30 @@
}, },
data() { data() {
return { return {
projectCode: "", type: '',
projectName: "", projectCode: '',
projectName: '',
editorOption: {}, editorOption: {},
ruleForm: { ruleForm: {
title: '', title: '',
content: '', content: '',
accessoryPOList:[] accessoryPOList: []
}, },
rules: { rules: {
title: [{ title: [
{
required: true, required: true,
message: '请填写标题', message: '请填写标题',
trigger: 'blue' trigger: 'blue'
}], }
content: [{ ],
content: [
{
required: true, required: true,
message: '请填写内容', message: '请填写内容',
trigger: 'blue' trigger: 'blue'
}] }
]
}, },
form: { form: {
price: undefined price: undefined
...@@ -113,7 +116,8 @@ ...@@ -113,7 +116,8 @@
remark: '', remark: '',
breads: ['招标管理', '招标项目管理', '工作台'], breads: ['招标管理', '招标项目管理', '工作台'],
tableData: [], tableData: [],
columns: [{ columns: [
{
label: '中标人', label: '中标人',
prop: 'companyName' prop: 'companyName'
}, },
...@@ -125,88 +129,109 @@ ...@@ -125,88 +129,109 @@
slot: 'operate' slot: 'operate'
} }
] // ] //
} };
}, },
methods: { methods: {
back(){ back() {
this.$router.go(-1) this.$router.go(-1);
}, },
getfile(val) { getfile(val) {
this.ruleForm.accessoryPOList = val this.ruleForm.accessoryPOList = val;
}, },
edit(row) { edit(row) {
this.dialogFormVisible = true this.dialogFormVisible = true;
this.form = row this.form = row;
}, },
// 中标人列表 // 中标人列表
async getwinPersonInfo() { async getwinPersonInfo() {
try { try {
let projectId = localStorage.getItem("projectId") let projectId = localStorage.getItem('projectId');
const { const { data, code } = await winPersonInfo(projectId);
data, this.tableData.push(data);
code
} = await winPersonInfo(projectId)
this.tableData.push(data)
} catch (e) { } catch (e) {
console.log(e) console.log(e);
} }
}, },
async submitData() { async submitData() {
try { try {
const valid = await this.$refs['ruleForm'].validate() const valid = await this.$refs['ruleForm'].validate();
if (valid) { if (valid) {
let ruleForm = this.ruleForm; let ruleForm = this.ruleForm;
ruleForm.projectId = localStorage.getItem("projectId") ruleForm.projectId = localStorage.getItem('projectId');
ruleForm.price=this.tableData[0].price ruleForm.price = this.tableData[0].price;
ruleForm.winCompanyId=this.tableData[0].companyId ruleForm.winCompanyId = this.tableData[0].companyId;
const { if (this.type == 1) {
code, var { code, msg } = await editwin(ruleForm);
msg } else {
} = await createwin(ruleForm) var { code, msg } = await createwin(ruleForm);
}
if (code == 200) { if (code == 200) {
this.$message({ this.$message({
message: msg, message: msg,
type: 'success', type: 'success',
duration: 1500 duration: 1500
}) });
setTimeout(() => { setTimeout(() => {
this.$router.go(-1) this.$router.go(-1);
}, 1500) }, 1500);
}else{ } else {
this.$message.error(msg) this.$message.error(msg);
} }
} }
} catch (e) { } catch (e) {
console.log(e) console.log(e);
}
},
// 获取详情
async getnoticeWin() {
try {
let projectId = localStorage.getItem('projectId');
const { data, code } = await noticeWin(projectId);
if (code == 200) {
this.ruleForm = data;
}
} catch (err) {
console.log(err);
} }
} }
}, },
created() { created() {
this.projectCode = localStorage.getItem("projectCode") this.projectCode = localStorage.getItem('projectCode');
this.projectName = localStorage.getItem("projectName") this.projectName = localStorage.getItem('projectName');
this.getwinPersonInfo(); this.getwinPersonInfo();
let type = this.$route.query.type;
this.type = type;
if (type == 1) {
this.getnoticeWin();
this.title = '编辑';
} else if (type == 2) {
this.title = '查看';
} else {
this.title = '发布';
} }
} }
};
</script> </script>
<style scoped> <style scoped>
.message { .message {
width: 60%; width: 80%;
} margin: 0 auto;
}
.message>div { .message > div {
margin-bottom: 20px; margin-bottom: 20px;
} }
.form>h3 { .form > h3 {
font-weight: bold; font-weight: bold;
margin-bottom: 30px; margin-bottom: 30px;
} }
.button { .button {
width: 100%; width: 100%;
height: 50px; height: 50px;
margin-top: 100px; margin-top: 100px;
} }
</style> </style>
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
</div> </div>
<candidate v-if="type == 2"></candidate> <candidate v-if="type == 2"></candidate>
<div class="content" v-else> <div class="content" v-else>
<div class="message"> <div class="message form">
<div class="flex-between"> <div class="flex-between">
<div>项目编号:{{ projectCode }}</div> <div>项目编号:{{ projectCode }}</div>
<div>项目名称:{{ projectName }}</div> <div>项目名称:{{ projectName }}</div>
...@@ -175,7 +175,8 @@ export default { ...@@ -175,7 +175,8 @@ export default {
<style scoped> <style scoped>
.message { .message {
width: 60%; width: 80%;
margin:0 auto
} }
.message > div { .message > div {
......
...@@ -171,7 +171,7 @@ import dataTable from '@components/nopageTable.vue'; ...@@ -171,7 +171,7 @@ import dataTable from '@components/nopageTable.vue';
import dataBreadcrumb from '@components/dataBreadcrumb.vue'; import dataBreadcrumb from '@components/dataBreadcrumb.vue';
import citySelect from '@components/citySelect/citySelect.vue'; import citySelect from '@components/citySelect/citySelect.vue';
import singleUpload from '@components/Upload/Upload.vue'; import singleUpload from '@components/Upload/Upload.vue';
import { createEnquiry } from '@api/purchaser/bid'; import { createEnquiry,editEnquiry } from '@api/purchaser/bid';
import { getTime } from '@utils/time'; import { getTime } from '@utils/time';
import { commoditylist, inqueryinfo } from '@api/common/list'; import { commoditylist, inqueryinfo } from '@api/common/list';
......
...@@ -149,19 +149,19 @@ export default { ...@@ -149,19 +149,19 @@ export default {
modulars: [ modulars: [
{ {
id: 14, id: 14,
label: '中标候选人公示', label: '发布中标候选人公示',
url: '/purchaser/bid/bidSure/publicity', url: '/purchaser/bid/bidSure/publicity',
bright: false bright: false
}, },
{ {
id: 15, id: 15,
label: '确认中标人', label: '发布中标人公示',
url: '/purchaser/bid/bidSure/determine', url: '/purchaser/bid/bidSure/determine',
bright: false bright: false
}, },
{ {
id: 16, id: 16,
label: '中标公告', label: '发布中标公告',
url: '/purchaser/bid/bidSure/notice', url: '/purchaser/bid/bidSure/notice',
bright: false bright: false
}, },
......
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