From 5d4a47beec01369a16a9b2c0a9daa8a080e2e106 Mon Sep 17 00:00:00 2001 From: xzt <1113240624@qq.com> Date: Wed, 6 Dec 2023 11:03:26 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=8C=E6=94=BF=E5=8C=BA=E5=88=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/project/bid/options/biddingFile.vue | 611 +++++++----- .../src/views/project/bid/options/index.vue | 16 +- .../project/bid/options/projectContract.vue | 933 ++++++++++++++++++ .../src/views/project/plan/options/index.vue | 2 +- .../src/views/project/special/index.vue | 57 ++ .../project/special/options/basePage.vue | 103 +- .../views/project/special/options/index.vue | 2 +- 7 files changed, 1429 insertions(+), 295 deletions(-) create mode 100644 jwtech-admin-page/src/views/project/bid/options/projectContract.vue diff --git a/jwtech-admin-page/src/views/project/bid/options/biddingFile.vue b/jwtech-admin-page/src/views/project/bid/options/biddingFile.vue index 23831744..e842e8ce 100644 --- a/jwtech-admin-page/src/views/project/bid/options/biddingFile.vue +++ b/jwtech-admin-page/src/views/project/bid/options/biddingFile.vue @@ -7,85 +7,29 @@ v-show="showSearch" label-width="68px" > - + - - - - - - - - - - - - - - - - - - - - - - - + + - + + - - - - - - - - - - - - - - - - - + - 搜索 + > --> 重置 @@ -201,16 +95,6 @@ >删除 - - 导出 - - - + + + + + + - - - {{ parseTime(scope.row.bidOpenTime, "{y}-{m}-{d}") }} - - + + - - - - - - - - - - - - + @@ -411,9 +432,11 @@ import { updateContractFile, exportContractFile, } from "@/api/earlyStage/contractFile"; +import { listProposal } from "@/api/earlyStage/proposal"; export default { name: "ContractFile", + props: ["proNo"], data() { return { // 遮罩层 @@ -432,8 +455,10 @@ export default { contractFileList: [], // 弹出层标题 title: "", + viewTitle: "", // 是否显示弹出层 open: false, + viewOpen: false, // 查询参数 queryParams: { pageNum: 1, @@ -462,11 +487,21 @@ export default { form: {}, // 表单校验 rules: {}, + // 项目建议书的项目,同一个项目,有不同的项目编码 + bidProjectNameOptions: [], + biddingFileMsg: {}, }; }, created() { this.getList(); }, + // 父组件 利用axios请求得到的值 传送到子组件,要监听,否则初始渲染时为空 + watch: { + proNo: function (n, o) { + this.proNo = n; + this.getList(); + }, + }, methods: { /** 查询招标文件列表 */ getList() { @@ -476,6 +511,16 @@ export default { 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() { @@ -562,6 +607,7 @@ export default { const id = row.id || this.ids; getContractFile(id).then((response) => { this.form = response.data; + // console.log("this.form", this.form); this.open = true; this.title = "修改招标文件"; }); @@ -569,6 +615,11 @@ export default { /** 提交按钮 */ 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) { updateContractFile(this.form).then((response) => { @@ -579,6 +630,7 @@ export default { } }); } else { + this.form.proNo = this.proNo; addContractFile(this.form).then((response) => { if (response.code === 200) { this.msgSuccess("新增成功"); @@ -590,6 +642,20 @@ export default { } }); }, + // 查看信息 + viewInfo(row) { + this.viewTitle = row.bidProjectName.slice( + 0, + row.bidProjectName.indexOf("[") + ); + this.biddingFileMsg = row; + console.log("biddingFileMsg", row); + this.viewOpen = true; + }, + // 关闭弹窗 + closeView() { + this.biddingFileMsg = {}; + }, /** 删除按钮操作 */ handleDelete(row) { const ids = row.id || this.ids; @@ -611,28 +677,47 @@ export default { this.$message.warning("请选择要删除的数据!!"); } }, - /** 导出按钮操作 */ - handleExport() { - const queryParams = this.queryParams; - let message = "是否确认导出所有的数据项?"; - if (this.ids) { - message = "是否确认导出选中的数据项?"; - queryParams.ids = this.ids; - } - this.$confirm(message, "警告", { - confirmButtonText: "确定", - cancelButtonText: "取消", - type: "warning", - }) - .then(function () { - return exportContractFile(queryParams); - }) - .then((response) => { - this.downloadFile(response, true, response.msg); - // this.download(response.msg); - }) - .catch(function () {}); - }, }, }; + diff --git a/jwtech-admin-page/src/views/project/bid/options/index.vue b/jwtech-admin-page/src/views/project/bid/options/index.vue index df28f3ef..970026f5 100644 --- a/jwtech-admin-page/src/views/project/bid/options/index.vue +++ b/jwtech-admin-page/src/views/project/bid/options/index.vue @@ -26,7 +26,7 @@ @@ -62,13 +62,7 @@ :projectName="formData.projectName" /> - - 招标文件 - + - 项目合同 + @@ -96,6 +90,7 @@ import TenderAnnouncementPage from "./TenderAnnouncementPage.vue"; import biddingFile from "./biddingFile.vue"; import candidatePage from "./candidatePage.vue"; import winningResultPage from "./winningResultPage.vue"; +import projectContract from "./projectContract.vue"; import { listBidInfo, getBidInfo, @@ -114,6 +109,7 @@ export default { biddingFile, candidatePage, winningResultPage, + projectContract, }, data() { return { diff --git a/jwtech-admin-page/src/views/project/bid/options/projectContract.vue b/jwtech-admin-page/src/views/project/bid/options/projectContract.vue new file mode 100644 index 00000000..95ebfc72 --- /dev/null +++ b/jwtech-admin-page/src/views/project/bid/options/projectContract.vue @@ -0,0 +1,933 @@ + + + + diff --git a/jwtech-admin-page/src/views/project/plan/options/index.vue b/jwtech-admin-page/src/views/project/plan/options/index.vue index fce5f942..40a3402c 100644 --- a/jwtech-admin-page/src/views/project/plan/options/index.vue +++ b/jwtech-admin-page/src/views/project/plan/options/index.vue @@ -20,7 +20,7 @@ diff --git a/jwtech-admin-page/src/views/project/special/index.vue b/jwtech-admin-page/src/views/project/special/index.vue index 2a593de3..0206aedb 100644 --- a/jwtech-admin-page/src/views/project/special/index.vue +++ b/jwtech-admin-page/src/views/project/special/index.vue @@ -52,6 +52,20 @@ /> + + + +