12 changed files with 1143 additions and 166 deletions
@ -0,0 +1,53 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
// 查询招标计划基本信息列表
|
|||
export function listBidInfo(query) { |
|||
return request({ |
|||
url: '/earlyStage/bidInfo/list', |
|||
method: 'post', |
|||
data: query |
|||
}) |
|||
} |
|||
|
|||
// 查询招标计划基本信息详细
|
|||
export function getBidInfo(id) { |
|||
return request({ |
|||
url: '/earlyStage/bidInfo/' + id, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
// 查询招标计划基本信息详细及明细表
|
|||
export function getBidInfoVO(id) { |
|||
return request({ |
|||
url: '/earlyStage/bidInfo/listVO' + id, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
// 新增招标计划基本信息及明细表
|
|||
export function addBidInfoVO(data) { |
|||
return request({ |
|||
url: '/earlyStage/bidInfo/addVO', |
|||
method: 'post', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 修改招标计划基本信息及明细表
|
|||
export function updateBidInfoVO(data) { |
|||
return request({ |
|||
url: '/earlyStage/bidInfo/editVO', |
|||
method: 'put', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 删除招标计划基本信息及详细信息
|
|||
export function delBidInfoVO(id) { |
|||
return request({ |
|||
url: '/earlyStage/bidInfo/delVO' + id, |
|||
method: 'delete' |
|||
}) |
|||
} |
|||
|
@ -1,3 +1,308 @@ |
|||
<template> |
|||
<div class="app-container">招投标信息</div> |
|||
<div class="app-container"> |
|||
<!-- 面包屑 --> |
|||
<el-breadcrumb separator="/" style="margin-bottom: 20px"> |
|||
<el-breadcrumb-item |
|||
v-for="(item, index) in routeList" |
|||
:key="item + index" |
|||
:to="{ path: item.path }" |
|||
>{{ item.routeName }}</el-breadcrumb-item |
|||
> |
|||
</el-breadcrumb> |
|||
|
|||
<el-row :gutter="20"> |
|||
<el-col :span="22"> |
|||
<!-- 搜索条件 --> |
|||
<el-form |
|||
:model="queryParams" |
|||
ref="queryForm" |
|||
:inline="true" |
|||
label-width="68px" |
|||
> |
|||
<el-form-item label="项目名称" prop="projectName"> |
|||
<el-input |
|||
v-model="queryParams.data.projectName" |
|||
placeholder="请输入专题项目名称" |
|||
clearable |
|||
size="small" |
|||
@keyup.enter.native="handleQuery" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="规划类型" prop="projectType"> |
|||
<el-select |
|||
v-model="queryParams.data.projectType" |
|||
placeholder="请选择规划类型" |
|||
clearable |
|||
size="small" |
|||
> |
|||
<el-option |
|||
v-for="dict in projectTypeOptions" |
|||
:key="dict.dictValue" |
|||
:label="dict.dictLabel" |
|||
:value="dict.dictValue" |
|||
/> |
|||
</el-select> |
|||
</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-col> |
|||
<!-- <el-col :span="2"> |
|||
<el-button type="primary" @click="openOptions" size="mini" |
|||
>新增项目 |
|||
</el-button> |
|||
</el-col> --> |
|||
</el-row> |
|||
|
|||
<!-- 表格 --> |
|||
<el-table |
|||
v-loading="loading" |
|||
:data="projectinfoList" |
|||
@selection-change="handleSelectionChange" |
|||
> |
|||
<el-table-column type="selection" width="55" align="center" /> |
|||
<el-table-column label="序号" type="index" width="50" align="center" /> |
|||
|
|||
<el-table-column label="专题项目名称" align="center" prop="projectName" /> |
|||
<el-table-column |
|||
label="规划类型" |
|||
align="center" |
|||
prop="projectType" |
|||
:formatter="projectTypeFormat" |
|||
/> |
|||
<el-table-column |
|||
label="规划编制单位" |
|||
align="center" |
|||
prop="compilingUnit" |
|||
/> |
|||
<el-table-column label="规划水平年" align="center" prop="startYear" /> |
|||
<el-table-column label="规划目标年" align="center" prop="endYear" /> |
|||
<el-table-column label="规划金额" align="center" prop="amount" /> |
|||
<el-table-column |
|||
label="创建时间" |
|||
align="center" |
|||
prop="createTime" |
|||
width="180" |
|||
> |
|||
<template slot-scope="scope"> |
|||
<span>{{ parseTime(scope.row.createTime, "{y}-{m}-{d}") }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column |
|||
label="操作" |
|||
align="center" |
|||
class-name="small-padding fixed-width" |
|||
width="180" |
|||
> |
|||
<template slot-scope="scope"> |
|||
<el-button |
|||
size="mini" |
|||
type="text" |
|||
icon="el-icon-s-promotion" |
|||
@click="handleUpdate(scope.row)" |
|||
v-hasPermi="['system:projectinfo:edit']" |
|||
>查看招投标信息</el-button |
|||
> |
|||
<el-button |
|||
size="mini" |
|||
type="text" |
|||
icon="el-icon-delete" |
|||
@click="handleDelete(scope.row)" |
|||
v-hasPermi="['system:projectinfo: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" |
|||
/> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import { |
|||
listProjectinfo, |
|||
getProjectinfo, |
|||
delProjectinfo, |
|||
addProjectinfo, |
|||
updateProjectinfo, |
|||
exportProjectinfo, |
|||
} from "@/api/earlyStage/projectinfo"; |
|||
|
|||
export default { |
|||
data() { |
|||
return { |
|||
// 表格数据总条数 |
|||
total: 0, |
|||
// 加载状态 |
|||
loading: true, |
|||
// 专题项目前期背景信息表格数据 |
|||
projectinfoList: [], |
|||
// 规划类型字典 |
|||
projectTypeOptions: [], |
|||
// 查询参数 |
|||
queryParams: { |
|||
pageNum: 1, |
|||
pageSize: 10, |
|||
ids: null, |
|||
data: { |
|||
projectName: null, |
|||
projectType: null, |
|||
}, |
|||
// 排序方式 |
|||
params: { |
|||
// 按哪个字段排序 |
|||
orderBy: "create_time", |
|||
// desc降序,升序asc |
|||
sort: "desc", |
|||
}, |
|||
}, |
|||
// 面包屑,路由信息 |
|||
routeList: [ |
|||
{ |
|||
path: "/project/bid", |
|||
routeName: "项目列表", |
|||
}, |
|||
], |
|||
}; |
|||
}, |
|||
created() { |
|||
this.getList(); |
|||
this.getDicts("plan_type").then((response) => { |
|||
this.projectTypeOptions = response.data; |
|||
}); |
|||
}, |
|||
methods: { |
|||
onSubmit() { |
|||
console.log("submit!"); |
|||
}, |
|||
openOptions() { |
|||
this.routeList.push({ |
|||
path: "/project/bid/options", |
|||
routeName: "招标基本信息", |
|||
isEdit: false, |
|||
}); |
|||
// 存储面包屑信息 |
|||
this.$store.commit("setRouteList", JSON.stringify(this.routeList)); |
|||
this.$router.push({ |
|||
path: "/project/bid/options", |
|||
}); |
|||
}, |
|||
/** 查询专题项目前期背景信息列表 */ |
|||
getList() { |
|||
this.loading = true; |
|||
listProjectinfo(this.queryParams).then((response) => { |
|||
this.projectinfoList = response.records; |
|||
this.total = response.total; |
|||
this.loading = false; |
|||
}); |
|||
}, |
|||
// 规划类型字典翻译 |
|||
projectTypeFormat(row, column) { |
|||
return this.selectDictLabel(this.projectTypeOptions, row.projectType); |
|||
}, |
|||
// 查询表单重置 |
|||
resetQueryForm() { |
|||
this.queryParams = { |
|||
pageNum: 1, |
|||
pageSize: 10, |
|||
data: { |
|||
id: null, |
|||
projectName: null, |
|||
projectType: null, |
|||
overview: null, |
|||
compilingUnit: null, |
|||
startYear: null, |
|||
endYear: null, |
|||
amount: null, |
|||
compilingUnitNature: null, |
|||
compilingUnitAddress: null, |
|||
compilingUnitLegalPerson: null, |
|||
projectReport: 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; |
|||
}, |
|||
/** 查看招投标信息 */ |
|||
handleUpdate(row) { |
|||
// this.reset(); |
|||
const id = row.id || this.ids; |
|||
getProjectinfo(id).then((response) => { |
|||
this.routeList.push({ |
|||
path: "/project/bid/options", |
|||
routeName: "招标基本信息", |
|||
isEdit: true, |
|||
}); |
|||
|
|||
// 存储面包屑信息 |
|||
this.$store.commit("setRouteList", JSON.stringify(this.routeList)); |
|||
// 存储专题项目基础信息 |
|||
// this.$store.commit("setBaseFormData", JSON.stringify(response.data)); |
|||
// 跳转到选项卡页面 |
|||
this.$router.push({ |
|||
// path: "/project/special/options", |
|||
path: "/project/bid/options?baseDataId=" + response.data.id, |
|||
}); |
|||
}); |
|||
}, |
|||
/** 删除按钮操作 */ |
|||
handleDelete(row) { |
|||
const ids = row.id || this.ids; |
|||
if (ids) { |
|||
this.$confirm("是否删除选中的数据?", "警告", { |
|||
confirmButtonText: "确定", |
|||
cancelButtonText: "取消", |
|||
type: "warning", |
|||
}) |
|||
.then(function () { |
|||
return delProjectinfo(ids); |
|||
}) |
|||
.then(() => { |
|||
this.getList(); |
|||
this.msgSuccess("删除成功"); |
|||
}) |
|||
.catch(function () {}); |
|||
} else { |
|||
this.$message.warning("请选择要删除的数据!!"); |
|||
} |
|||
}, |
|||
}, |
|||
}; |
|||
</script> |
|||
|
@ -1,7 +1,376 @@ |
|||
<template> |
|||
<div class="app-container">计划</div> |
|||
<div class="app-container"> |
|||
<!-- 面包屑 --> |
|||
<el-breadcrumb separator="/" style="margin-bottom: 20px"> |
|||
<el-breadcrumb-item |
|||
v-for="(item, index) in routeList" |
|||
:key="item + index" |
|||
:to="{ path: item.path }" |
|||
>{{ item.routeName }}</el-breadcrumb-item |
|||
> |
|||
</el-breadcrumb> |
|||
<el-row :gutter="20"> |
|||
<el-col :span="22"> |
|||
<el-form |
|||
:model="queryParams" |
|||
ref="queryForm" |
|||
:inline="true" |
|||
v-show="showSearch" |
|||
label-width="68px" |
|||
> |
|||
<el-form-item label="计划名称" prop="planName"> |
|||
<el-input |
|||
v-model="queryParams.data.planName" |
|||
placeholder="请输入计划名称" |
|||
clearable |
|||
size="small" |
|||
@keyup.enter.native="handleQuery" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="计划类型" prop="planType"> |
|||
<el-select |
|||
v-model="queryParams.data.planType" |
|||
placeholder="请选择计划类型" |
|||
clearable |
|||
size="small" |
|||
> |
|||
<el-option |
|||
v-for="dict in planTypeOptions" |
|||
:key="dict.dictValue" |
|||
:label="dict.dictLabel" |
|||
:value="dict.dictValue" |
|||
/> |
|||
</el-select> |
|||
</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-col> |
|||
<el-col :span="2"> |
|||
<el-button type="primary" @click="openOptions" size="mini" |
|||
>新增计划 |
|||
</el-button> |
|||
</el-col> |
|||
</el-row> |
|||
|
|||
<el-table |
|||
v-loading="loading" |
|||
:data="PlanInfoList" |
|||
@selection-change="handleSelectionChange" |
|||
> |
|||
<el-table-column type="selection" width="55" align="center" /> |
|||
<el-table-column label="序号" type="index" width="50" align="center" /> |
|||
|
|||
<el-table-column label="计划名称" align="center" prop="planName" /> |
|||
<el-table-column |
|||
label="计划类型" |
|||
align="center" |
|||
prop="planType" |
|||
:formatter="planTypeFormat" |
|||
/> |
|||
<el-table-column label="归属业务部门" align="center" prop="department" /> |
|||
<el-table-column label="投资计划" align="center" prop="investment" /> |
|||
<el-table-column label="主要内容" align="center" prop="content" /> |
|||
<el-table-column |
|||
label="计划关联的项目信息" |
|||
align="center" |
|||
prop="relatedProjects" |
|||
/> |
|||
<el-table-column |
|||
label="创建时间" |
|||
align="center" |
|||
prop="createTime" |
|||
width="180" |
|||
> |
|||
<template slot-scope="scope"> |
|||
<span>{{ parseTime(scope.row.createTime, "{y}-{m}-{d}") }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column |
|||
label="操作" |
|||
align="center" |
|||
class-name="small-padding fixed-width" |
|||
width="180" |
|||
> |
|||
<template slot-scope="scope"> |
|||
<el-button |
|||
size="mini" |
|||
type="text" |
|||
icon="el-icon-edit" |
|||
@click="handleUpdate(scope.row)" |
|||
v-hasPermi="['earlyStage:PlanInfo:edit']" |
|||
>修改</el-button |
|||
> |
|||
<el-button |
|||
size="mini" |
|||
type="text" |
|||
icon="el-icon-delete" |
|||
@click="handleDelete(scope.row)" |
|||
v-hasPermi="['earlyStage:PlanInfo: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="500px" append-to-body> |
|||
<div slot="footer" class="dialog-footer"> |
|||
<el-button type="primary" @click="submitForm">确 定</el-button> |
|||
<el-button @click="cancel">取 消</el-button> |
|||
</div> |
|||
</el-dialog> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import { v4 as uuidv4 } from "uuid"; |
|||
console.log(uuidv4()); // ⇨ '9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d' |
|||
import { |
|||
listPlanInfo, |
|||
getPlanInfo, |
|||
delPlanInfo, |
|||
addPlanInfo, |
|||
updatePlanInfo, |
|||
exportPlanInfo, |
|||
} from "@/api/earlyStage/PlanInfo"; |
|||
|
|||
export default { |
|||
name: "PlanInfo", |
|||
data() { |
|||
return { |
|||
// 遮罩层 |
|||
loading: true, |
|||
// 选中数组 |
|||
ids: [], |
|||
// 非单个禁用 |
|||
single: true, |
|||
// 非多个禁用 |
|||
multiple: true, |
|||
// 显示搜索条件 |
|||
showSearch: true, |
|||
// 总条数 |
|||
total: 0, |
|||
// 计划基本信息表格数据 |
|||
PlanInfoList: [], |
|||
// 弹出层标题 |
|||
title: "", |
|||
// 是否显示弹出层 |
|||
open: false, |
|||
// 计划类型(0:移民资金计划,1:移民安置资金使用计划...)字典 |
|||
planTypeOptions: [], |
|||
// 查询参数 |
|||
queryParams: { |
|||
pageNum: 1, |
|||
pageSize: 10, |
|||
ids: null, |
|||
data: { |
|||
planName: null, |
|||
planType: null, |
|||
}, |
|||
// 排序方式 |
|||
params: { |
|||
// 按哪个字段排序 |
|||
orderBy: "create_time", |
|||
// desc降序,升序asc |
|||
sort: "desc", |
|||
}, |
|||
}, |
|||
// 表单参数 |
|||
form: {}, |
|||
// 表单校验 |
|||
rules: {}, |
|||
// 面包屑,路由信息 |
|||
routeList: [ |
|||
{ |
|||
path: "/project/plan", |
|||
routeName: "计划管理", |
|||
}, |
|||
], |
|||
}; |
|||
}, |
|||
created() { |
|||
this.getList(); |
|||
this.getDicts("project_plan_type").then((response) => { |
|||
this.planTypeOptions = response.data; |
|||
}); |
|||
}, |
|||
methods: { |
|||
openOptions() { |
|||
this.routeList.push({ |
|||
path: "/project/plan/options", |
|||
routeName: "计划基本信息", |
|||
isEdit: false, |
|||
}); |
|||
// 存储面包屑信息 |
|||
this.$store.commit("setRouteList", JSON.stringify(this.routeList)); |
|||
this.$router.push({ |
|||
path: "/project/plan/options", |
|||
}); |
|||
}, |
|||
/** 查询计划基本信息列表 */ |
|||
getList() { |
|||
this.loading = true; |
|||
listPlanInfo(this.queryParams).then((response) => { |
|||
this.PlanInfoList = response.records; |
|||
this.total = response.total; |
|||
this.loading = false; |
|||
}); |
|||
}, |
|||
// 计划类型(0:移民资金计划,1:移民安置资金使用计划...)字典翻译 |
|||
planTypeFormat(row, column) { |
|||
return this.selectDictLabel(this.planTypeOptions, row.planType); |
|||
}, |
|||
// 取消按钮 |
|||
cancel() { |
|||
this.open = false; |
|||
this.reset(); |
|||
}, |
|||
// 表单重置 |
|||
reset() { |
|||
this.form = { |
|||
id: null, |
|||
planName: null, |
|||
planType: null, |
|||
department: null, |
|||
investment: null, |
|||
content: null, |
|||
relatedProjects: null, |
|||
proNo: null, |
|||
createUid: null, |
|||
createTime: null, |
|||
updateUid: null, |
|||
updateTime: null, |
|||
owerDept: null, |
|||
remark: null, |
|||
}; |
|||
this.resetForm("form"); |
|||
}, |
|||
// 查询表单重置 |
|||
resetQueryForm() { |
|||
this.queryParams = { |
|||
pageNum: 1, |
|||
pageSize: 10, |
|||
data: { |
|||
id: null, |
|||
planName: null, |
|||
planType: null, |
|||
department: null, |
|||
investment: null, |
|||
content: null, |
|||
relatedProjects: null, |
|||
proNo: null, |
|||
createUid: null, |
|||
createTime: null, |
|||
updateUid: null, |
|||
updateTime: null, |
|||
owerDept: null, |
|||
remark: 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) { |
|||
const id = row.id || this.ids; |
|||
getPlanInfo(id).then((response) => { |
|||
this.routeList.push({ |
|||
path: "/project/plan/options", |
|||
routeName: "计划基本信息", |
|||
isEdit: true, |
|||
}); |
|||
|
|||
// 存储面包屑信息 |
|||
this.$store.commit("setRouteList", JSON.stringify(this.routeList)); |
|||
// 跳转到选项卡页面 |
|||
this.$router.push({ |
|||
path: "/project/plan/options?baseDataId=" + response.data.id, |
|||
}); |
|||
}); |
|||
}, |
|||
/** 提交按钮 */ |
|||
submitForm() { |
|||
this.$refs["form"].validate((valid) => { |
|||
if (valid) { |
|||
if (this.form.id != null) { |
|||
updatePlanInfo(this.form).then((response) => { |
|||
if (response.code === 200) { |
|||
this.msgSuccess("修改成功"); |
|||
this.open = false; |
|||
this.getList(); |
|||
} |
|||
}); |
|||
} else { |
|||
addPlanInfo(this.form).then((response) => { |
|||
if (response.code === 200) { |
|||
this.msgSuccess("新增成功"); |
|||
this.open = false; |
|||
this.getList(); |
|||
} |
|||
}); |
|||
} |
|||
} |
|||
}); |
|||
}, |
|||
/** 删除按钮操作 */ |
|||
handleDelete(row) { |
|||
const ids = row.id || this.ids; |
|||
if (ids) { |
|||
this.$confirm("是否删除选中的数据?", "警告", { |
|||
confirmButtonText: "确定", |
|||
cancelButtonText: "取消", |
|||
type: "warning", |
|||
}) |
|||
.then(function () { |
|||
return delPlanInfo(ids); |
|||
}) |
|||
.then(() => { |
|||
this.getList(); |
|||
this.msgSuccess("删除成功"); |
|||
}) |
|||
.catch(function () {}); |
|||
} else { |
|||
this.$message.warning("请选择要删除的数据!!"); |
|||
} |
|||
}, |
|||
}, |
|||
}; |
|||
</script> |
|||
|
Loading…
Reference in new issue