You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

1427 lines
44 KiB

<template>
<div class="app-container">
<el-form
:model="queryParams"
ref="queryForm"
:inline="true"
v-show="showSearch"
label-width="68px"
>
<el-form-item label="公示名称" prop="noticeName">
<el-input
v-model="queryParams.data.noticeName"
placeholder="请输入公示名称"
clearable
size="small"
@keyup.enter.native="handleQuery"
>
<el-button
type="primary"
slot="append"
icon="el-icon-search"
size="small"
@click="handleQuery"
></el-button>
</el-input>
</el-form-item>
<el-form-item label="招标项目编码" prop="projectCode" label-width="96px">
<el-input
v-model="queryParams.data.projectCode"
placeholder="请输入项目编码"
clearable
size="small"
@keyup.enter.native="handleQuery"
>
<el-button
type="primary"
slot="append"
icon="el-icon-search"
size="small"
@click="handleQuery"
></el-button>
</el-input>
</el-form-item>
<!-- <el-form-item label="招标人" prop="tendererName">
<el-input
v-model="queryParams.data.tendererName"
placeholder="请输入招标人"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item> -->
<el-form-item>
<!-- <el-button
type="cyan"
icon="el-icon-search"
size="mini"
@click="handleQuery"
>搜索</el-button
> -->
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
>重置</el-button
>
</el-form-item>
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="primary"
icon="el-icon-plus"
size="mini"
@click="handleAdd"
v-hasPermi="['earlyStage:bidWinning:add']"
>新增</el-button
>
</el-col>
<el-col :span="1.5">
<el-button
type="success"
icon="el-icon-edit"
size="mini"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['earlyStage:bidWinning:edit']"
>修改</el-button
>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['earlyStage:bidWinning:remove']"
>删除</el-button
>
</el-col>
<right-toolbar
:showSearch.sync="showSearch"
@queryTable="getList"
></right-toolbar>
</el-row>
<el-table
v-loading="loading"
:data="bidWinningList"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="55" align="center" fixed />
<el-table-column
label="序号"
type="index"
width="50"
align="center"
fixed
/>
<el-table-column
label="招标项目名称"
align="center"
prop="bidProjectName"
min-width="150"
/>
<el-table-column
label="招标项目编码"
align="center"
prop="projectCode"
min-width="150"
/>
<el-table-column
label="公示名称"
align="center"
prop="noticeName"
min-width="150"
/>
<el-table-column
label="投标报价"
align="center"
prop="bidQuotation"
min-width="120"
/>
<!-- <el-table-column label="标段" align="center" prop="lotName" width="180" /> -->
<!--
<el-table-column
label="开标日期"
align="center"
prop="bidOpenDate"
min-width="120"
>
<template slot-scope="scope">
<span>{{ parseTime(scope.row.bidOpenDate, "{y}-{m}-{d}") }}</span>
</template>
</el-table-column>
<el-table-column
label="评标情况"
align="center"
prop="evaluationSituation"
min-width="150"
/>
<el-table-column
label="招标人"
align="center"
prop="tendererName"
min-width="150"
/>
<el-table-column
label="办公地址"
align="center"
prop="officeAddress"
min-width="150"
/>
<el-table-column
label="招标人联系人"
align="center"
prop="bidderContacts"
min-width="150"
/>
<el-table-column
label="联系电话"
align="center"
prop="contactsPhone"
min-width="150"
/>
<el-table-column
label="招标投标监督部门"
align="center"
prop="tenderingSupervisionDept"
min-width="150"
/>
<el-table-column
label="联系电话"
align="center"
prop="deptPhone"
min-width="150"
/>
<el-table-column
label="联系地址"
align="center"
prop="deptAddress"
min-width="150"
/> -->
<el-table-column
label="公示开始时间"
align="center"
prop="publicityStartTime"
min-width="120"
>
<template slot-scope="scope">
<span>{{
parseTime(scope.row.publicityStartTime, "{y}-{m}-{d}")
}}</span>
</template>
</el-table-column>
<el-table-column
label="公示结束日期"
align="center"
prop="publicityEndTime"
min-width="120"
>
<template slot-scope="scope">
<span>{{
parseTime(scope.row.publicityEndTime, "{y}-{m}-{d}")
}}</span>
</template>
</el-table-column>
<el-table-column
label="操作"
align="center"
class-name="small-padding fixed-width"
min-width="180"
fixed="right"
>
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-view"
@click="viewInfo(scope.row)"
>查看</el-button
>
<el-button
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['earlyStage:bidWinning:edit']"
>修改</el-button
>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['earlyStage:bidWinning:remove']"
>删除</el-button
>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total > 0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 添加或修改中标候选人公示基本信息对话框 -->
<el-dialog
:title="title"
:visible.sync="open"
width="90%"
append-to-body
@close="close"
:close-on-click-modal="false"
>
<!-- 公示基本信息表 -->
<el-divider content-position="left"> 公示基本信息表 </el-divider>
<el-row :gutter="15" v-if="open">
<el-form
ref="publicityForm"
:model="publicityForm"
:rules="rules"
label-width="124px"
>
<el-col :span="12">
<el-form-item label="招标项目名称" prop="bidProjectName">
<el-input
v-model="publicityForm.bidProjectName"
placeholder="请输入招标项目名称"
readonly
/>
<!-- <el-select
v-model="publicityForm.bidProjectName"
placeholder="请输入招标项目名称"
filterable
clearable
size="small"
style="width: 100%"
>
<el-option
v-for="dict in bidProjectNameOptions"
:key="dict.projectName + dict.id"
:label="dict.projectName + '[' + dict.projectCode + ']'"
:value="dict.projectName + '[' + dict.projectCode + ']'"
@click.native="chooseProject(dict)"
/>
</el-select> -->
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="标段" prop="lotName">
<el-input
v-model="publicityForm.lotName"
placeholder="请输入标段"
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="公示名称" prop="noticeName">
<el-input
v-model="publicityForm.noticeName"
placeholder="请输入公示名称"
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="开标日期" prop="bidOpenDate">
<el-date-picker
clearable
size="small"
style="width: 100%"
v-model="publicityForm.bidOpenDate"
type="date"
value-format="yyyy-MM-dd"
placeholder="选择开标日期"
>
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="评标情况" prop="evaluationSituation">
<!-- <el-input
v-model="publicityForm.evaluationSituation"
placeholder="请输入评标情况"
/> -->
<div style="border: 1px solid #ccc">
<Toolbar
style="border-bottom: 1px solid #ccc"
:editor="editor"
:defaultConfig="toolbarConfig"
:mode="mode"
/>
<Editor
style="height: 300px; overflow-y: hidden"
v-model="publicityForm.evaluationSituation"
:default-value="333"
:defaultConfig="editorConfig"
:mode="mode"
@onCreated="onCreated"
/>
</div>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="招标人" prop="tendererName">
<el-input
v-model="publicityForm.tendererName"
placeholder="请输入招标人"
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="办公地址" prop="officeAddress">
<el-input
v-model="publicityForm.officeAddress"
placeholder="请输入办公地址"
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="招标联系人" prop="bidderContacts">
<el-input
v-model="publicityForm.bidderContacts"
placeholder="请输入招标联系人"
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="招标联系人电话" prop="contactsPhone">
<el-input
v-model="publicityForm.contactsPhone"
placeholder="请输入招标联系人电话"
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item
label="招标投标监督部门"
prop="tenderingSupervisionDept"
>
<el-input
v-model="publicityForm.tenderingSupervisionDept"
placeholder="请输入招标投标监督部门"
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="监督部门联系电话" prop="deptPhone">
<el-input
v-model="publicityForm.deptPhone"
placeholder="请输入监督部门联系电话"
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="联系地址" prop="deptAddress">
<el-input
v-model="publicityForm.deptAddress"
placeholder="请输入联系地址"
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="公示开始时间" prop="publicityStartTime">
<el-date-picker
clearable
size="small"
style="width: 100%"
v-model="publicityForm.publicityStartTime"
type="date"
value-format="yyyy-MM-dd"
placeholder="选择公示开始时间"
>
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="公示结束日期" prop="publicityEndTime">
<el-date-picker
clearable
size="small"
style="width: 100%"
v-model="publicityForm.publicityEndTime"
type="date"
value-format="yyyy-MM-dd"
placeholder="选择公示结束日期"
>
</el-date-picker>
</el-form-item>
</el-col>
<!-- <el-col :span="12">
<el-form-item label="项目编码" prop="projectCode">
<el-input
v-model="publicityForm.projectCode"
placeholder="请输入项目编码"
/>
</el-form-item>
</el-col> -->
<el-col :span="12">
<el-form-item
label="中标候选人公示文本扫描"
prop="attachmentAddress"
>
<!-- <el-input
v-model="publicityForm.attachmentAddress"
placeholder="请输入中标候选人公示文本扫描"
/> -->
<el-upload
class="upload-demo"
action="thinking/common/upload"
:headers="headers"
:on-preview="handlePreview"
:on-remove="(file) => handleRemove(file, 'fileList')"
:before-remove="beforeRemove"
multiple
:on-exceed="handleExceed"
:on-success="
(_, fileList) => submitUpload(fileList, 'fileList')
"
:file-list="fileList"
>
<el-button size="small" type="primary" plain>
<i class="el-icon-upload el-icon--right"></i>
点击上传
</el-button>
<div slot="tip" class="el-upload__tip">
支持jpg/png/pdf/word/excel文件等,不超过100M
</div>
</el-upload>
</el-form-item>
</el-col>
</el-form>
</el-row>
<!-- 中标候选人表 -->
<el-divider content-position="left"> 中标候选人表 </el-divider>
<el-row :gutter="15">
<el-form
ref="candidateForm"
:model="candidateForm"
:rules="candidateRules"
label-width="152px"
>
<el-col :span="12">
<el-form-item label="中标候选人名称" prop="winningCandidateName">
<el-input
v-model="candidateForm.winningCandidateName"
placeholder="请输入中标候选人名称"
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="中标候选人代码" prop="winningCandidateCode">
<el-input
v-model="candidateForm.winningCandidateCode"
placeholder="请输入中标候选人代码"
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="排名" prop="ranking">
<el-input
v-model="candidateForm.ranking"
placeholder="请输入排名"
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="投标报价" prop="bidQuotation">
<el-input
v-model="candidateForm.bidQuotation"
placeholder="请输入投标报价"
>
<template slot="append">万元</template>
</el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="费率" prop="rate">
<el-input v-model="candidateForm.rate" placeholder="请输入费率">
<template slot="append">%</template>
</el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="质量" prop="quality">
<el-input
v-model="candidateForm.quality"
placeholder="请输入质量"
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="工期" prop="deliveryTime">
<!-- <el-date-picker
clearable
size="small"
style="width: 100%"
v-model="candidateForm.deliveryTime"
type="date"
value-format="yyyy-MM-dd"
placeholder="选择工期"
>
</el-date-picker> -->
<el-input
v-model="candidateForm.deliveryTime"
placeholder="请输入工期"
>
<template slot="append">日历天</template>
</el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="评标情况" prop="evaluationSituation">
<el-input
v-model="candidateForm.evaluationSituation"
placeholder="请输入评标情况"
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item
label="中标候选人响应招标文件的资格能力条件"
prop="bidCapabilityConditions"
>
<el-input
v-model="candidateForm.bidCapabilityConditions"
placeholder="请输入中标候选人响应招标文件的资格能力条件"
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item
label="拟派项目负责人执业资格"
prop="projectLeaderQualification"
>
<el-input
v-model="candidateForm.projectLeaderQualification"
placeholder="请输入拟派项目负责人执业资格"
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="拟派项目负责人姓名" prop="projectLeader">
<el-input
v-model="candidateForm.projectLeader"
placeholder="请输入拟派项目负责人姓名"
/>
</el-form-item>
</el-col>
</el-form>
</el-row>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm">确 定</el-button>
<el-button @click="cancel">取 消</el-button>
</div>
</el-dialog>
<!--查看 -->
<el-dialog
:title="viewTitle"
:visible.sync="viewOpen"
width="90%"
append-to-body
@close="closeView"
:close-on-click-modal="false"
>
<!-- 公示基本信息表 -->
<div class="infoTitle">公示基本信息表</div>
<div class="draLine"></div>
<div class="content">
<el-descriptions
class="margin-top"
:column="2"
border
:labelStyle="{
'text-align': 'left',
width: '180px',
height: '50px',
}"
:contentStyle="{ minWidth: '350px' }"
>
<el-descriptions-item>
<template slot="label"> 招标项目名称 </template>
{{ this.viewTitle }}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label"> 标段 </template>
{{ this.infoMsg.lotName }}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label"> 公示名称 </template>
{{ this.infoMsg.noticeName }}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label"> 开标日期 </template>
{{ this.infoMsg.bidOpenDate }}
</el-descriptions-item>
<el-descriptions-item span="2">
<template slot="label"> 评标情况 </template>
<div class="fuwenben" v-html="infoMsg.evaluationSituation"></div>
<!-- <div v-pre>{{ this.infoMsg.evaluationSituation }}</div> -->
<!-- {{ this.infoMsg.evaluationSituation }} -->
</el-descriptions-item>
<el-descriptions-item>
<template slot="label"> 招标人 </template>
{{ this.infoMsg.tendererName }}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label"> 办公地址 </template>
{{ this.infoMsg.officeAddress }}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label"> 招标人联系人 </template>
{{ this.infoMsg.bidderContacts }}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label"> 联系电话 </template>
{{ this.infoMsg.contactsPhone }}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label"> 招标投标监督部门 </template>
{{ this.infoMsg.tenderingSupervisionDept }}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label"> 联系电话 </template>
{{ this.infoMsg.deptPhone }}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label"> 联系地址 </template>
{{ this.infoMsg.deptAddress }}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label"> 公示开始时间 </template>
{{ this.infoMsg.publicityStartTime }}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label"> 公示结束日期 </template>
{{ this.infoMsg.publicityEndTime }}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label"> 项目编码 </template>
{{ this.infoMsg.projectCode }}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label"> 中标候选人公示文本扫描 </template>
<!-- {{ this.infoMsg.attachmentAddress }} -->
<template v-if="this.infoMsg.attachmentAddress">
<div
v-for="(item, index) in JSON.parse(
this.infoMsg.attachmentAddress
)"
:key="item + index"
>
{{ item.name }}
<i
class="el-icon-download"
@click="downloadFile2(item, index)"
style="cursor: pointer"
></i>
</div>
</template>
</el-descriptions-item>
</el-descriptions>
</div>
<!-- 中标候选人表 -->
<div class="infoTitle" style="margin-top: 30px">中标候选人表</div>
<div class="draLine"></div>
<div class="content">
<el-descriptions
class="margin-top"
:column="2"
border
:labelStyle="{
'text-align': 'left',
width: '180px',
height: '50px',
}"
:contentStyle="{ minWidth: '350px' }"
>
<el-descriptions-item>
<template slot="label"> 中标候选人名称 </template>
{{ this.canMsg.winningCandidateName }}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label"> 中标候选人代码 </template>
{{ this.canMsg.winningCandidateCode }}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label"> 排名 </template>
{{ this.canMsg.ranking }}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label"> 投标报价(万元) </template>
{{ this.canMsg.bidQuotation }}
<!-- {{ this.canMsg.bidQuotation ? " 万元" : "" }} -->
</el-descriptions-item>
<el-descriptions-item>
<template slot="label"> 费率 </template>
{{ this.canMsg.rate }}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label"> 质量 </template>
{{ this.canMsg.quality }}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label"> 工期 </template>
{{ this.canMsg.deliveryTime }}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
中标候选人响应招标文件的资格能力条件
</template>
{{ this.canMsg.bidCapabilityConditions }}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label"> 评标情况 </template>
{{ this.canMsg.evaluationSituation }}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label"> 拟派项目负责人姓名 </template>
{{ this.canMsg.projectLeader }}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label"> 拟派项目负责人执业资格 </template>
{{ this.canMsg.projectLeaderQualification }}
</el-descriptions-item>
</el-descriptions>
</div>
</el-dialog>
</div>
</template>
<script>
import {
listBidWinning,
getBidWinning,
getBidWinningVO,
delBidWinningVO,
addBidWinningVO,
updateBidWinningVO,
} from "@/api/earlyStage/bidWinningVO";
import { listProposal } from "@/api/earlyStage/proposal";
import { getToken } from "@/utils/auth";
import { getFileStream } from "@/api/system/upload";
import { Editor, Toolbar } from "@wangeditor/editor-for-vue";
export default {
name: "BidWinning",
props: ["proNo", "projectCode", "projectName"],
components: { Editor, Toolbar },
data() {
return {
editor: null,
toolbarConfig: {},
editorConfig: { placeholder: "请输入评标情况" },
mode: "default", // or 'simple'
// 遮罩层
loading: true,
// 选中数组
ids: [],
// 非单个禁用
single: true,
// 非多个禁用
multiple: true,
// 显示搜索条件
showSearch: true,
// 总条数
total: 0,
// 中标候选人公示基本信息表格数据
bidWinningList: [],
// 弹出层标题
title: "",
// 是否显示弹出层
open: false,
viewOpen: false,
// 查询参数
queryParams: {
pageNum: 1,
pageSize: 10,
ids: null,
data: {
investProjectCode: null,
investProjectName: null,
bidProjectName: null,
lotName: null,
noticeName: null,
bidOpenDate: null,
evaluationSituation: null,
tendererName: null,
officeAddress: null,
bidderContacts: null,
contactsPhone: null,
tenderingSupervisionDept: null,
deptPhone: null,
deptAddress: null,
publicityStartTime: null,
publicityEndTime: null,
noticeId: null,
projectCode: null,
attachmentAddress: null,
proNo: null,
createUid: null,
createTime: null,
updateUid: null,
updateTime: null,
owerDept: null,
remark: null,
},
// // 模糊查询
// cv: {
// type: null,
// name: null,
// value: null,
// },
// 排序方式
params: {
// 按哪个字段排序
orderBy: "create_time",
// desc降序,升序asc
sortBy: "desc",
},
},
// 公式基础信息表单参数
publicityForm: {},
// 候选人信息表
candidateForm: {},
// 表单校验
rules: {
lotName: [{ max: 250, message: "字符长度最大为250", trigger: "blur" }],
noticeName: [
{ max: 250, message: "字符长度最大为250", trigger: "blur" },
],
evaluationSituation: [
{ max: 65500, message: "字符长度最大为65500", trigger: "blur" },
],
tendererName: [
{ max: 250, message: "字符长度最大为250", trigger: "blur" },
],
officeAddress: [
{ max: 250, message: "字符长度最大为250", trigger: "blur" },
],
bidderContacts: [
{ max: 250, message: "字符长度最大为250", trigger: "blur" },
],
tenderingSupervisionDept: [
{ max: 250, message: "字符长度最大为250", trigger: "blur" },
],
deptAddress: [
{ max: 250, message: "字符长度最大为250", trigger: "blur" },
],
bidProjectName: [
{ required: true, message: "请选择招标项目名称", trigger: "blur" },
],
contactsPhone: [
{
pattern:
/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/,
message: "手机号格式不正确",
trigger: "blur",
},
],
deptPhone: [
{
pattern:
/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/,
message: "手机号格式不正确",
trigger: "blur",
},
],
},
candidateRules: {
winningCandidateName: [
{ max: 250, message: "字符长度最大为250", trigger: "blur" },
],
winningCandidateCode: [
{ max: 250, message: "字符长度最大为250", trigger: "blur" },
],
quality: [{ max: 250, message: "字符长度最大为250", trigger: "blur" }],
evaluationSituation: [
{ max: 250, message: "字符长度最大为250", trigger: "blur" },
],
bidCapabilityConditions: [
{ max: 250, message: "字符长度最大为250", trigger: "blur" },
],
projectLeaderQualification: [
{ max: 250, message: "字符长度最大为250", trigger: "blur" },
],
projectLeader: [
{ max: 250, message: "字符长度最大为250", trigger: "blur" },
],
bidQuotation: [
// { required: true, message: "请输入投标报价", trigger: "blur" },
{ max: 10, message: "数字范围为1-10位", trigger: "blur" },
{
pattern:
/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,
message: "请输入数字,可保留两位小数",
trigger: "blur",
},
],
deliveryTime: [
{ max: 10, message: "数字范围为1-10位", trigger: "blur" },
{
pattern: /^[1-9]\d*$/,
message: "请输入正整数,不包含0",
trigger: "blur",
},
],
ranking: [
{ max: 10, message: "数字范围为1-10位", trigger: "blur" },
{
pattern: /^[1-9]\d*$/,
message: "请输入正整数,不包含0",
trigger: "blur",
},
],
rate: [
{
pattern:
/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,
message: "请输入数字,可保留两位小数",
trigger: "blur",
},
],
},
// 项目建议书的项目,同一个项目,有不同的项目编码
bidProjectNameOptions: [],
viewTitle: "",
// 点击查看时的信息
infoMsg: {},
canMsg: {},
// 请求头
headers: {
jianwei: "jwtech " + getToken(),
},
fileList: [],
};
},
created() {
this.getList();
},
// beforeDestroy() {
// const editor = this.editor;
// if (editor == null) return;
// editor.destroy(); // 组件销毁时,及时销毁编辑器
// },
// 父组件 利用axios请求得到的值 传送到子组件,要监听,否则初始渲染时为空
watch: {
proNo: function (n, o) {
this.proNo = n;
this.getList();
},
},
methods: {
onCreated(editor) {
this.editor = Object.seal(editor); // 一定要用 Object.seal() ,否则会报错
},
chooseProject(data) {
// console.log(444, data);
this.publicityForm.projectCode = data.projectCode;
},
/** 查询中标候选人公示基本信息列表 */
getList() {
this.loading = true;
this.queryParams.data.proNo = this.proNo;
listBidWinning(this.queryParams).then((response) => {
this.bidWinningList = response.records;
this.total = response.total;
this.loading = false;
});
// 招标项目选项
listProposal({ data: { proNo: this.proNo } }).then((response) => {
// console.log("response55555555555", response);
this.bidProjectNameOptions = response.records;
});
},
projectNameFormat(row) {
if (row.bidProjectName) {
return row.bidProjectName.slice(0, row.bidProjectName.indexOf("["));
}
},
// 表单重置
reset() {
this.fileList = [];
this.publicityForm = {
id: null,
investProjectCode: null,
investProjectName: null,
bidProjectName: null,
lotName: null,
noticeName: null,
bidOpenDate: null,
evaluationSituation: "",
tendererName: null,
officeAddress: null,
bidderContacts: null,
contactsPhone: null,
tenderingSupervisionDept: null,
deptPhone: null,
deptAddress: null,
publicityStartTime: null,
publicityEndTime: null,
noticeId: null,
projectCode: null,
attachmentAddress: null,
proNo: null,
createUid: null,
createTime: null,
updateUid: null,
updateTime: null,
owerDept: null,
remark: null,
};
this.candidateForm = {
id: null,
winningCandidateName: null,
winningCandidateCode: null,
ranking: null,
bidQuotation: null,
rate: null,
quality: null,
deliveryTime: null,
bidCapabilityConditions: null,
evaluationSituation: null,
projectLeader: null,
projectLeaderQualification: null,
noticeId: null,
proNo: null,
createUid: null,
createTime: null,
updateUid: null,
updateTime: null,
owerDept: null,
remark: null,
};
this.resetForm("publicityForm");
this.resetForm("candidateForm");
},
// 查询表单重置
resetQueryForm() {
this.queryParams = {
pageNum: 1,
pageSize: 10,
data: {
id: null,
investProjectCode: null,
investProjectName: null,
bidProjectName: null,
lotName: null,
noticeName: null,
bidOpenDate: null,
evaluationSituation: null,
tendererName: null,
officeAddress: null,
bidderContacts: null,
contactsPhone: null,
tenderingSupervisionDept: null,
deptPhone: null,
deptAddress: null,
publicityStartTime: null,
publicityEndTime: null,
noticeId: null,
projectCode: null,
attachmentAddress: null,
proNo: null,
createUid: null,
createTime: null,
updateUid: null,
updateTime: null,
owerDept: null,
remark: null,
},
// // 模糊查询
// cv: {
// type: null,
// name: null,
// value: null,
// },
// 排序方式
params: {
// 按哪个字段排序
orderBy: "create_time",
// desc降序,升序asc
sortBy: "desc",
},
};
this.resetForm("form");
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
// this.queryParams.cv.type = "like";
// this.queryParams.cv.name = "noticeName";
this.getList();
},
/** 重置按钮操作 */
resetQuery() {
this.resetQueryForm();
this.handleQuery();
},
// 多选框选中数据
handleSelectionChange(selection) {
this.ids = selection.map((item) => item.id);
this.single = selection.length !== 1;
this.multiple = !selection.length;
},
/** 新增按钮操作 */
handleAdd() {
this.reset();
this.publicityForm.bidProjectName =
this.projectName + "[" + this.projectCode + "]";
this.open = true;
this.title = "添加中标候选人公示基本信息";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id || this.ids;
getBidWinningVO(id).then((response) => {
this.publicityForm = response.data.projectBidWining;
this.publicityForm.bidProjectName =
this.publicityForm.bidProjectName +
"[" +
this.publicityForm.projectCode +
"]";
if (this.publicityForm.attachmentAddress) {
this.fileList = JSON.parse(this.publicityForm.attachmentAddress);
}
this.candidateForm = response.data.projectBidWinner;
this.open = true;
this.title = "修改中标候选人公示基本信息";
});
},
/** 提交按钮 */
submitForm() {
this.$refs["publicityForm"].validate((valid) => {
this.$refs["candidateForm"].validate((valid2) => {
if (valid && valid2) {
// 项目编码
// this.publicityForm.projectCode =
// this.publicityForm.bidProjectName.slice(
// this.publicityForm.bidProjectName.indexOf("[") + 1,
// this.publicityForm.bidProjectName.indexOf("]")
// );
this.publicityForm.attachmentAddress = JSON.stringify(
this.fileList
);
this.publicityForm.bidQuotation = this.candidateForm.bidQuotation;
if (this.publicityForm.id != null) {
updateBidWinningVO({
projectBidWining: this.publicityForm,
projectBidWinner: this.candidateForm,
}).then((response) => {
if (response.code === 200) {
this.msgSuccess("修改成功");
this.open = false;
this.getList();
}
});
} else {
this.publicityForm.proNo = this.proNo;
this.candidateForm.proNo = this.proNo;
this.publicityForm.projectCode = this.projectCode;
this.publicityForm.projectCode = this.projectCode;
addBidWinningVO({
projectBidWining: this.publicityForm,
projectBidWinner: this.candidateForm,
}).then((response) => {
if (response.code === 200) {
this.msgSuccess("新增成功");
this.open = false;
this.getList();
}
});
}
}
});
});
},
// 取消按钮
cancel() {
this.open = false;
},
// 关闭弹窗
close() {
this.reset();
},
// 查看信息
viewInfo(row) {
this.viewTitle = row.bidProjectName.slice(
0,
row.bidProjectName.indexOf("[")
);
const id = row.id;
getBidWinningVO(id).then((response) => {
this.infoMsg = response.data.projectBidWining;
console.log("infoMsg", this.infoMsg);
this.canMsg = response.data.projectBidWinner;
console.log("canMsg", this.canMsg);
});
this.viewOpen = true;
},
// 关闭弹窗
closeView() {
this.infoMsg = {};
this.canMsg = {};
},
/** 删除按钮操作 */
handleDelete(row) {
const ids = row.id || this.ids;
if (ids) {
this.$confirm("是否删除选中的数据?", "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(function () {
return delBidWinningVO(ids);
})
.then(() => {
this.getList();
this.msgSuccess("删除成功");
})
.catch(function () {});
} else {
this.$message.warning("请选择要删除的数据!!");
}
},
submitUpload(fileList, name) {
console.log(name, fileList);
this[name].push({
name: fileList.name,
fileName: fileList.response.fileName,
url: fileList.response.url,
uid: fileList.uid,
});
console.log(name, this[name]);
},
handleRemove(file, name) {
// console.log(file, fileList1);
let index = this[name].findIndex((item) => item.uid === file.uid);
// 删除文件
this[name].splice(index, 1);
},
downloadFile(scope, index) {
// console.log(scope);
let file = JSON.parse(scope.row.attachmentAddress)[index];
this.handlePreview(file);
},
downloadFile2(info, index) {
console.log(info);
this.handlePreview(info);
},
// 点击预览的文件进行下载
handlePreview(file) {
// console.log(file);
getFileStream({ fileName: file.fileName }).then((res) => {
const blob = new Blob([res], {
// type类型后端返回来的数据中会有,根据自己实际进行修改
// 表格下载为 application/xlsx,压缩包为 application/zip等,
type: "application/xlsx",
}); //excel,pdf等
const href = URL.createObjectURL(blob); //创建新的URL表示指定的blob对象
const a = document.createElement("a"); //创建a标签
a.style.display = "none";
a.href = href; // 指定下载链接
a.download = file.name; //指定下载文件名
a.click(); //触发下载
URL.revokeObjectURL(a.href); //释放URL对象
});
},
handleExceed(files, fileList) {
this.$message.warning(
`当前限制选择 3 个文件,本次选择了 ${files.length} 个文件,共选择了 ${
files.length + fileList.length
} 个文件`
);
},
beforeRemove(file, fileList) {
return this.$confirm(`确定移除 ${file.name}?`);
},
},
};
</script>
<style lang="scss" scoped>
@import "@/assets/css/dialog.scss";
::v-deep {
.el-dialog {
margin-top: 2vh !important;
}
.fuwenben {
table {
border-top: 1px solid #ccc;
border-left: 1px solid #ccc;
border-collapse: collapse;
border-spacing: 0;
}
table td,
table th {
border-bottom: 1px solid #ccc;
border-right: 1px solid #ccc;
padding: 3px 5px;
}
table th {
border-bottom: 2px solid #ccc;
text-align: center;
}
}
}
</style>
<style src="@wangeditor/editor/dist/css/style.css"></style>
<!-- <style lang="scss" scoped>
::v-deep {
.el-dialog {
margin-top: 2vh !important;
// height: 1150px;
// overflow-y: auto;
.content {
display: flex;
flex-direction: column;
align-items: center;
.margin-top {
width: 95%;
border-left: 1px solid #f0f0f0;
border-right: 1px solid #f0f0f0;
}
}
}
.el-dialog__title {
font-weight: 700;
font-size: 28px;
}
.el-divider {
height: 4px;
}
.el-divider__text {
font-weight: 700;
font-size: 20px;
}
}
.draLine {
width: 100%;
border: 2px solid #000;
margin: 10px 0 20px 0;
}
.infoTitle,
.canTitle {
color: #000;
font-size: 20px;
font-weight: 700;
}
.canTitle {
margin-top: 30px;
}
</style> -->