7 changed files with 1429 additions and 295 deletions
@ -0,0 +1,933 @@ |
|||
<template> |
|||
<div class="app-container"> |
|||
<el-form |
|||
:model="queryParams" |
|||
ref="queryForm" |
|||
:inline="true" |
|||
v-show="showSearch" |
|||
label-width="68px" |
|||
> |
|||
<el-form-item |
|||
label="招标项目名称" |
|||
prop="bidProjectName" |
|||
label-width="96px" |
|||
> |
|||
<el-input |
|||
v-model="queryParams.data.bidProjectName" |
|||
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="contractName"> |
|||
<el-input |
|||
v-model="queryParams.data.contractName" |
|||
placeholder="请输入合同名称" |
|||
clearable |
|||
size="small" |
|||
@keyup.enter.native="handleQuery" |
|||
/> |
|||
</el-form-item> --> |
|||
|
|||
<el-form-item label="项目编号" prop="proNo"> |
|||
<el-input |
|||
v-model="queryParams.data.proNo" |
|||
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:fulfillingNotice: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:fulfillingNotice: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:fulfillingNotice:remove']" |
|||
>删除</el-button |
|||
> |
|||
</el-col> |
|||
<right-toolbar |
|||
:showSearch.sync="showSearch" |
|||
@queryTable="getList" |
|||
></right-toolbar> |
|||
</el-row> |
|||
|
|||
<el-table |
|||
v-loading="loading" |
|||
:data="fulfillingNoticeList" |
|||
@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="180" |
|||
:formatter="projectNameFormat" |
|||
/> |
|||
<el-table-column |
|||
label="标段名称" |
|||
align="center" |
|||
prop="loftName" |
|||
min-width="120" |
|||
/> |
|||
<el-table-column |
|||
label="性质" |
|||
align="center" |
|||
prop="nature" |
|||
min-width="120" |
|||
/> |
|||
<el-table-column |
|||
label="文件发布人" |
|||
align="center" |
|||
prop="filePulish" |
|||
min-width="120" |
|||
/> |
|||
<el-table-column |
|||
label="公示发布时间" |
|||
align="center" |
|||
prop="noticeTime" |
|||
width="180" |
|||
> |
|||
<template slot-scope="scope"> |
|||
<span>{{ parseTime(scope.row.noticeTime, "{y}-{m}-{d}") }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column |
|||
label="合同名称" |
|||
align="center" |
|||
prop="contractName" |
|||
min-width="120" |
|||
/> |
|||
<el-table-column |
|||
label="招标人名称" |
|||
align="center" |
|||
prop="biderName" |
|||
min-width="120" |
|||
/> |
|||
<el-table-column |
|||
label="招标人统一信用代码" |
|||
align="center" |
|||
prop="biderCode" |
|||
min-width="120" |
|||
/> |
|||
<el-table-column |
|||
label="中标人名称" |
|||
align="center" |
|||
prop="biderWinName" |
|||
min-width="120" |
|||
/> |
|||
<el-table-column |
|||
label="中标人统一信用代码" |
|||
align="center" |
|||
prop="biderWinCode" |
|||
min-width="120" |
|||
/> |
|||
<el-table-column |
|||
label="合同签订人或其委托人全称" |
|||
align="center" |
|||
prop="contractSignParty" |
|||
min-width="120" |
|||
/> |
|||
<el-table-column |
|||
label="合同金额" |
|||
align="center" |
|||
prop="contractAmount" |
|||
min-width="120" |
|||
/> |
|||
<el-table-column |
|||
label="合同单位(甲方)" |
|||
align="center" |
|||
prop="contractUnitFirst" |
|||
min-width="120" |
|||
/> |
|||
<el-table-column |
|||
label="合同单位" |
|||
align="center" |
|||
prop="contractUnit" |
|||
min-width="120" |
|||
/> |
|||
<el-table-column |
|||
label="合同期限" |
|||
align="center" |
|||
prop="contractPeriod" |
|||
min-width="120" |
|||
/> |
|||
<el-table-column |
|||
label="质量要求" |
|||
align="center" |
|||
prop="qualityRequirement" |
|||
min-width="120" |
|||
/> |
|||
<el-table-column |
|||
label="合同签署时间" |
|||
align="center" |
|||
prop="contractSignTime" |
|||
width="180" |
|||
> |
|||
<template slot-scope="scope"> |
|||
<span>{{ |
|||
parseTime(scope.row.contractSignTime, "{y}-{m}-{d}") |
|||
}}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column |
|||
label="合同主要内容" |
|||
align="center" |
|||
prop="contractContent" |
|||
min-width="120" |
|||
/> |
|||
<el-table-column |
|||
label="其他内容" |
|||
align="center" |
|||
prop="otherContent" |
|||
min-width="120" |
|||
/> |
|||
<el-table-column |
|||
label="项目合同及履行公示内容" |
|||
align="center" |
|||
prop="contractNoticeContent" |
|||
min-width="120" |
|||
/> |
|||
|
|||
<el-table-column |
|||
label="操作" |
|||
align="center" |
|||
class-name="small-padding fixed-width" |
|||
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:fulfillingNotice:edit']" |
|||
>修改</el-button |
|||
> |
|||
<el-button |
|||
size="mini" |
|||
type="text" |
|||
icon="el-icon-delete" |
|||
@click="handleDelete(scope.row)" |
|||
v-hasPermi="['earlyStage:fulfillingNotice: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="1200px" |
|||
append-to-body |
|||
> |
|||
<el-row> |
|||
<el-form ref="form" :model="form" :rules="rules" label-width="150px"> |
|||
<el-col :span="12"> |
|||
<el-form-item label="招标项目名称" prop="bidProjectName"> |
|||
<el-select |
|||
v-model="form.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 + ']'" |
|||
/> |
|||
</el-select> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<el-form-item label="标段名称" prop="loftName"> |
|||
<el-input v-model="form.loftName" placeholder="请输入标段名称" /> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<el-form-item label="性质" prop="nature"> |
|||
<el-input v-model="form.nature" placeholder="请输入性质" /> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<el-form-item label="文件发布人" prop="filePulish"> |
|||
<el-input |
|||
v-model="form.filePulish" |
|||
placeholder="请输入文件发布人" |
|||
/> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<el-form-item label="公示发布时间" prop="noticeTime"> |
|||
<el-date-picker |
|||
clearable |
|||
size="small" |
|||
style="width: 100%" |
|||
v-model="form.noticeTime" |
|||
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="contractName"> |
|||
<el-input |
|||
v-model="form.contractName" |
|||
placeholder="请输入合同名称" |
|||
/> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<el-form-item label="招标人名称" prop="biderName"> |
|||
<el-input |
|||
v-model="form.biderName" |
|||
placeholder="请输入招标人名称" |
|||
/> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<el-form-item label="招标人统一信用代码" prop="biderCode"> |
|||
<el-input |
|||
v-model="form.biderCode" |
|||
placeholder="请输入招标人统一信用代码" |
|||
/> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<el-form-item label="中标人名称" prop="biderWinName"> |
|||
<el-input |
|||
v-model="form.biderWinName" |
|||
placeholder="请输入中标人名称" |
|||
/> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<el-form-item label="中标人统一信用代码" prop="biderWinCode"> |
|||
<el-input |
|||
v-model="form.biderWinCode" |
|||
placeholder="请输入中标人统一信用代码" |
|||
/> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="24"> |
|||
<el-form-item |
|||
label="合同签订人或其委托人全称" |
|||
prop="contractSignParty" |
|||
> |
|||
<el-input |
|||
v-model="form.contractSignParty" |
|||
placeholder="请输入合同签订人或其委托人全称" |
|||
/> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<el-form-item label="合同金额" prop="contractAmount"> |
|||
<el-input |
|||
v-model="form.contractAmount" |
|||
placeholder="请输入合同金额" |
|||
/> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<el-form-item label="合同单位(甲方)" prop="contractUnitFirst"> |
|||
<el-input |
|||
v-model="form.contractUnitFirst" |
|||
placeholder="请输入合同单位(甲方)" |
|||
/> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<el-form-item label="合同单位" prop="contractUnit"> |
|||
<el-input |
|||
v-model="form.contractUnit" |
|||
placeholder="请输入合同单位" |
|||
/> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<el-form-item label="合同期限" prop="contractPeriod"> |
|||
<el-input |
|||
v-model="form.contractPeriod" |
|||
placeholder="请输入合同期限" |
|||
/> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<el-form-item label="质量要求" prop="qualityRequirement"> |
|||
<el-input |
|||
v-model="form.qualityRequirement" |
|||
placeholder="请输入质量要求" |
|||
/> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<el-form-item label="合同签署时间" prop="contractSignTime"> |
|||
<el-date-picker |
|||
clearable |
|||
size="small" |
|||
style="width: 100%" |
|||
v-model="form.contractSignTime" |
|||
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="contractContent"> |
|||
<el-input |
|||
v-model="form.contractContent" |
|||
placeholder="请输入合同主要内容" |
|||
/> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<el-form-item label="其他内容" prop="otherContent"> |
|||
<el-input |
|||
v-model="form.otherContent" |
|||
placeholder="请输入其他内容" |
|||
/> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="24"> |
|||
<el-form-item |
|||
label="项目合同及履行公示内容" |
|||
prop="contractNoticeContent" |
|||
> |
|||
<el-input |
|||
v-model="form.contractNoticeContent" |
|||
type="textarea" |
|||
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="1200px" |
|||
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="{}" |
|||
> |
|||
<el-descriptions-item span="2"> |
|||
<template slot="label"> 招标项目名称 </template> |
|||
{{ this.viewTitle }} |
|||
</el-descriptions-item> |
|||
<el-descriptions-item> |
|||
<template slot="label"> 标段名称 </template> |
|||
{{ this.projectContractMsg.loftName }} |
|||
</el-descriptions-item> |
|||
<el-descriptions-item> |
|||
<template slot="label"> 性质 </template> |
|||
{{ this.projectContractMsg.nature }} |
|||
</el-descriptions-item> |
|||
<el-descriptions-item> |
|||
<template slot="label"> 文件发布人 </template> |
|||
{{ this.projectContractMsg.filePulish }} |
|||
</el-descriptions-item> |
|||
<el-descriptions-item> |
|||
<template slot="label"> 公示发布时间 </template> |
|||
{{ this.projectContractMsg.noticeTime }} |
|||
</el-descriptions-item> |
|||
<el-descriptions-item> |
|||
<template slot="label"> 合同名称 </template> |
|||
{{ this.projectContractMsg.contractName }} |
|||
</el-descriptions-item> |
|||
<el-descriptions-item> |
|||
<template slot="label"> 招标人名称 </template> |
|||
{{ this.projectContractMsg.biderName }} |
|||
</el-descriptions-item> |
|||
<el-descriptions-item> |
|||
<template slot="label"> 招标人统一信用代码 </template> |
|||
{{ this.projectContractMsg.biderCode }} |
|||
</el-descriptions-item> |
|||
<el-descriptions-item> |
|||
<template slot="label"> 中标人名称 </template> |
|||
{{ this.projectContractMsg.biderWinName }} |
|||
</el-descriptions-item> |
|||
<el-descriptions-item> |
|||
<template slot="label"> 中标人统一信用代码 </template> |
|||
{{ this.projectContractMsg.biderWinCode }} |
|||
</el-descriptions-item> |
|||
<el-descriptions-item> |
|||
<template slot="label"> 合同签订人或其委托人全称 </template> |
|||
{{ this.projectContractMsg.contractSignParty }} |
|||
</el-descriptions-item> |
|||
<el-descriptions-item> |
|||
<template slot="label"> 合同金额 </template> |
|||
{{ this.projectContractMsg.contractAmount }} |
|||
</el-descriptions-item> |
|||
<el-descriptions-item> |
|||
<template slot="label"> 合同单位(甲方) </template> |
|||
{{ this.projectContractMsg.contractUnitFirst }} |
|||
</el-descriptions-item> |
|||
|
|||
<el-descriptions-item> |
|||
<template slot="label"> 合同单位 </template> |
|||
{{ this.projectContractMsg.contractUnit }} |
|||
</el-descriptions-item> |
|||
<el-descriptions-item> |
|||
<template slot="label"> 合同期限 </template> |
|||
{{ this.projectContractMsg.contractPeriod }} |
|||
</el-descriptions-item> |
|||
<el-descriptions-item> |
|||
<template slot="label"> 质量要求 </template> |
|||
{{ this.projectContractMsg.qualityRequirement }} |
|||
</el-descriptions-item> |
|||
<el-descriptions-item> |
|||
<template slot="label"> 合同签署时间 </template> |
|||
{{ this.projectContractMsg.contractSignTime }} |
|||
</el-descriptions-item> |
|||
<el-descriptions-item> |
|||
<template slot="label"> 合同主要内容 </template> |
|||
{{ this.projectContractMsg.contractContent }} |
|||
</el-descriptions-item> |
|||
<el-descriptions-item> |
|||
<template slot="label"> 其他内容 </template> |
|||
{{ this.projectContractMsg.otherContent }} |
|||
</el-descriptions-item> |
|||
<el-descriptions-item> |
|||
<template slot="label"> 项目合同及履行公示内容 </template> |
|||
{{ this.projectContractMsg.contractNoticeContent }} |
|||
</el-descriptions-item> |
|||
</el-descriptions> |
|||
</div> |
|||
</el-dialog> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import { |
|||
listFulfillingNotice, |
|||
getFulfillingNotice, |
|||
delFulfillingNotice, |
|||
addFulfillingNotice, |
|||
updateFulfillingNotice, |
|||
exportFulfillingNotice, |
|||
} from "@/api/earlyStage/fulfillingNotice"; |
|||
import { listProposal } from "@/api/earlyStage/proposal"; |
|||
|
|||
export default { |
|||
name: "FulfillingNotice", |
|||
props: ["proNo"], |
|||
data() { |
|||
return { |
|||
// 遮罩层 |
|||
loading: true, |
|||
// 选中数组 |
|||
ids: [], |
|||
// 非单个禁用 |
|||
single: true, |
|||
// 非多个禁用 |
|||
multiple: true, |
|||
// 显示搜索条件 |
|||
showSearch: true, |
|||
// 总条数 |
|||
total: 0, |
|||
// 项目合同及履行公示详情表格数据 |
|||
fulfillingNoticeList: [], |
|||
// 弹出层标题 |
|||
title: "", |
|||
viewTitle: "", |
|||
// 是否显示弹出层 |
|||
open: false, |
|||
viewOpen: false, |
|||
// 查询参数 |
|||
queryParams: { |
|||
pageNum: 1, |
|||
pageSize: 10, |
|||
ids: null, |
|||
data: { |
|||
bidProjectName: null, |
|||
loftName: null, |
|||
nature: null, |
|||
filePulish: null, |
|||
noticeTime: null, |
|||
contractName: null, |
|||
biderName: null, |
|||
biderCode: null, |
|||
biderWinName: null, |
|||
biderWinCode: null, |
|||
contractSignParty: null, |
|||
contractAmount: null, |
|||
contractUnitFirst: null, |
|||
contractUnit: null, |
|||
contractPeriod: null, |
|||
qualityRequirement: null, |
|||
contractSignTime: null, |
|||
contractContent: null, |
|||
otherContent: null, |
|||
contractNoticeContent: null, |
|||
proCode: null, |
|||
proNo: null, |
|||
createUid: null, |
|||
updateUid: null, |
|||
owerDept: null, |
|||
}, |
|||
}, |
|||
// 表单参数 |
|||
form: {}, |
|||
// 表单校验 |
|||
rules: {}, |
|||
// 项目建议书的项目,同一个项目,有不同的项目编码 |
|||
bidProjectNameOptions: [], |
|||
projectContractMsg: {}, |
|||
}; |
|||
}, |
|||
created() { |
|||
this.getList(); |
|||
}, |
|||
// 父组件 利用axios请求得到的值 传送到子组件,要监听,否则初始渲染时为空 |
|||
watch: { |
|||
proNo: function (n, o) { |
|||
this.proNo = n; |
|||
this.getList(); |
|||
}, |
|||
}, |
|||
methods: { |
|||
/** 查询项目合同及履行公示详情列表 */ |
|||
getList() { |
|||
this.loading = true; |
|||
listFulfillingNotice(this.queryParams).then((response) => { |
|||
this.fulfillingNoticeList = 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("[")); |
|||
} |
|||
}, |
|||
// 取消按钮 |
|||
cancel() { |
|||
this.open = false; |
|||
this.reset(); |
|||
}, |
|||
// 表单重置 |
|||
reset() { |
|||
this.form = { |
|||
id: null, |
|||
bidProjectName: null, |
|||
loftName: null, |
|||
nature: null, |
|||
filePulish: null, |
|||
noticeTime: null, |
|||
contractName: null, |
|||
biderName: null, |
|||
biderCode: null, |
|||
biderWinName: null, |
|||
biderWinCode: null, |
|||
contractSignParty: null, |
|||
contractAmount: null, |
|||
contractUnitFirst: null, |
|||
contractUnit: null, |
|||
contractPeriod: null, |
|||
qualityRequirement: null, |
|||
contractSignTime: null, |
|||
contractContent: null, |
|||
otherContent: null, |
|||
contractNoticeContent: null, |
|||
remark: null, |
|||
proCode: null, |
|||
proNo: null, |
|||
createUid: null, |
|||
createTime: null, |
|||
updateUid: null, |
|||
updateTime: null, |
|||
owerDept: null, |
|||
}; |
|||
this.resetForm("form"); |
|||
}, |
|||
// 查询表单重置 |
|||
resetQueryForm() { |
|||
this.queryParams = { |
|||
pageNum: 1, |
|||
pageSize: 10, |
|||
data: { |
|||
id: null, |
|||
bidProjectName: null, |
|||
loftName: null, |
|||
nature: null, |
|||
filePulish: null, |
|||
noticeTime: null, |
|||
contractName: null, |
|||
biderName: null, |
|||
biderCode: null, |
|||
biderWinName: null, |
|||
biderWinCode: null, |
|||
contractSignParty: null, |
|||
contractAmount: null, |
|||
contractUnitFirst: null, |
|||
contractUnit: null, |
|||
contractPeriod: null, |
|||
qualityRequirement: null, |
|||
contractSignTime: null, |
|||
contractContent: null, |
|||
otherContent: null, |
|||
contractNoticeContent: null, |
|||
remark: null, |
|||
proCode: null, |
|||
proNo: null, |
|||
createUid: null, |
|||
createTime: null, |
|||
updateUid: null, |
|||
updateTime: null, |
|||
owerDept: null, |
|||
}, |
|||
}; |
|||
this.resetForm("form"); |
|||
}, |
|||
/** 搜索按钮操作 */ |
|||
handleQuery() { |
|||
this.queryParams.pageNum = 1; |
|||
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.open = true; |
|||
this.title = "添加项目合同及履行公示详情"; |
|||
}, |
|||
/** 修改按钮操作 */ |
|||
handleUpdate(row) { |
|||
this.reset(); |
|||
const id = row.id || this.ids; |
|||
getFulfillingNotice(id).then((response) => { |
|||
this.form = response.data; |
|||
this.open = true; |
|||
this.title = "修改项目合同及履行公示详情"; |
|||
}); |
|||
}, |
|||
/** 提交按钮 */ |
|||
submitForm() { |
|||
this.$refs["form"].validate((valid) => { |
|||
// 项目编码 |
|||
this.form.proCode = this.form.bidProjectName.slice( |
|||
this.form.bidProjectName.indexOf("[") + 1, |
|||
this.form.bidProjectName.indexOf("]") |
|||
); |
|||
if (valid) { |
|||
if (this.form.id != null) { |
|||
updateFulfillingNotice(this.form).then((response) => { |
|||
if (response.code === 200) { |
|||
this.msgSuccess("修改成功"); |
|||
this.open = false; |
|||
this.getList(); |
|||
} |
|||
}); |
|||
} else { |
|||
this.form.proNo = this.proNo; |
|||
addFulfillingNotice(this.form).then((response) => { |
|||
if (response.code === 200) { |
|||
this.msgSuccess("新增成功"); |
|||
this.open = false; |
|||
this.getList(); |
|||
} |
|||
}); |
|||
} |
|||
} |
|||
}); |
|||
}, |
|||
// 查看信息 |
|||
viewInfo(row) { |
|||
this.viewTitle = row.bidProjectName.slice( |
|||
0, |
|||
row.bidProjectName.indexOf("[") |
|||
); |
|||
this.projectContractMsg = row; |
|||
console.log("projectContractMsg", row); |
|||
this.viewOpen = true; |
|||
}, |
|||
// 关闭弹窗 |
|||
closeView() { |
|||
this.projectContractMsg = {}; |
|||
}, |
|||
/** 删除按钮操作 */ |
|||
handleDelete(row) { |
|||
const ids = row.id || this.ids; |
|||
if (ids) { |
|||
this.$confirm("是否删除选中的数据?", "警告", { |
|||
confirmButtonText: "确定", |
|||
cancelButtonText: "取消", |
|||
type: "warning", |
|||
}) |
|||
.then(function () { |
|||
return delFulfillingNotice(ids); |
|||
}) |
|||
.then(() => { |
|||
this.getList(); |
|||
this.msgSuccess("删除成功"); |
|||
}) |
|||
.catch(function () {}); |
|||
} else { |
|||
this.$message.warning("请选择要删除的数据!!"); |
|||
} |
|||
}, |
|||
}, |
|||
}; |
|||
</script> |
|||
<style lang="scss" scoped> |
|||
::v-deep { |
|||
.el-dialog { |
|||
// margin-top: 2vh !important; |
|||
// height: 500px; |
|||
// 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; |
|||
// color: #000; |
|||
// } |
|||
// .el-divider__text { |
|||
// font-weight: 700; |
|||
// font-size: 20px; |
|||
// } |
|||
} |
|||
.draLine { |
|||
width: 100%; |
|||
border: 2px solid #000; |
|||
margin: 10px 0 20px 0; |
|||
} |
|||
.infoTitle { |
|||
color: #000; |
|||
font-size: 20px; |
|||
font-weight: 700; |
|||
} |
|||
</style> |
Loading…
Reference in new issue