|
@@ -52,7 +52,7 @@
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item label="附件" :span="3">
|
|
|
<div v-for="item, index in detail.uploadFiles" :key="index" style="color: blue;margin-bottom: 5px;"><a
|
|
|
- :href="item.url" target="_blank" :download="item.name">{{ item.name }}</a></div>
|
|
|
+ :href="item.url" target="_blank" :download="item.name">{{ item.name }}</a></div>
|
|
|
</el-descriptions-item>
|
|
|
</el-descriptions>
|
|
|
<div style="margin-top: 20px;">采购明细</div>
|
|
@@ -81,7 +81,7 @@
|
|
|
<div>申请中标终止附件</div>
|
|
|
<el-divider></el-divider>
|
|
|
<div v-for="item, index in detail.stopFile" :key="index" style="color: blue;margin-bottom: 5px;">
|
|
|
- <a :href="item.url" target="_blank" :download="item.name">{{ item.name }}</a>
|
|
|
+ <a :href="item.url" target="_blank" :download="item.name">{{ item.name }}</a>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -93,7 +93,9 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
- <el-card v-if="sState == 1" v-hasRole="['centerFuzong']" ref="card" style="margin-top: 20px" class="never">
|
|
|
+ <!-- 申请终止开始 -->
|
|
|
+ <el-card v-if="sState == 1 || sState == 3" v-hasRole="['commander', 'centerFuzong']" ref="card"
|
|
|
+ style="margin-top: 20px" class="never">
|
|
|
<div slot="header" class="clearfix">
|
|
|
<span>审核意见</span>
|
|
|
<el-button @click="item.show = !item.show" style="float: right; padding: 3px 0" type="text">
|
|
@@ -105,8 +107,8 @@
|
|
|
</div>
|
|
|
</el-card>
|
|
|
|
|
|
- <div v-hasRole="['centerFuzong']" style="text-align: right;margin-top: 10px;">
|
|
|
- <div style=" display: inline-block;margin-right: 10px" v-if="sState == 1">
|
|
|
+ <div v-hasRole="['commander', 'centerFuzong']" style="text-align: right;margin-top: 10px;">
|
|
|
+ <div style=" display: inline-block;margin-right: 10px" v-if="sState == 1 || sState == 3">
|
|
|
<el-button type="primary" @click="approved"
|
|
|
v-loading.fullscreen.lock="fullscreenLoading">审核
|
|
|
</el-button>
|
|
@@ -115,6 +117,33 @@
|
|
|
</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <!-- 申请终止结束 -->
|
|
|
+
|
|
|
+ <!-- 申请变更开始 -->
|
|
|
+ <el-card v-if="cState == 2" v-hasRole="['commander']" ref="card"
|
|
|
+ style="margin-top: 20px" class="never">
|
|
|
+ <div slot="header" class="clearfix">
|
|
|
+ <span>审核意见</span>
|
|
|
+ <el-button @click="item.show = !item.show" style="float: right; padding: 3px 0" type="text">
|
|
|
+ {{ item.show ? '隐藏意见' : '显示意见' }}
|
|
|
+ </el-button>
|
|
|
+ </div>
|
|
|
+ <div v-if="item.show" class="text item">
|
|
|
+ <editor v-model="form.bidEditor" :min-height="120" />
|
|
|
+ </div>
|
|
|
+ </el-card>
|
|
|
+
|
|
|
+ <div v-hasRole="['commander']" style="text-align: right;margin-top: 10px;">
|
|
|
+ <div style=" display: inline-block;margin-right: 10px" v-if="cState == 2">
|
|
|
+ <el-button type="primary" @click="approvedChange"
|
|
|
+ v-loading.fullscreen.lock="fullscreenLoading">审核变更
|
|
|
+ </el-button>
|
|
|
+ <el-button type="danger" @click="rejectChangePlan"
|
|
|
+ v-loading.fullscreen.lock="fullscreenLoading">驳回
|
|
|
+ </el-button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!-- 申请变更结束 -->
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="审批记录" name="record_approval">
|
|
|
<el-steps space="200" simple :active="sState + 1">
|
|
@@ -123,7 +152,7 @@
|
|
|
<el-step title="已生效"></el-step>
|
|
|
</el-steps>
|
|
|
|
|
|
- <el-table style="margin-top: 20px" max-height="250" :data="record_approval">
|
|
|
+ <el-table style="margin-top: 20px" :data="record_approval">
|
|
|
<el-table-column type="expand">
|
|
|
<template slot-scope="scope">
|
|
|
<el-card class="box-card">
|
|
@@ -160,7 +189,7 @@
|
|
|
<script>
|
|
|
|
|
|
import Decimal from "decimal.js";
|
|
|
- import { getPlan, editStopPlan, getRecordList, updateTenderByState } from '@/api/system/plan'
|
|
|
+ import { getPlan, editStopPlan, getRecordList, updateTenderByState, postAlterBid } from '@/api/system/plan'
|
|
|
import { getPlanProfileByAid } from "@/api/system/planprofile"
|
|
|
import { getPlanDetailsByAid } from "@/api/system/plandetail"
|
|
|
|
|
@@ -176,6 +205,7 @@
|
|
|
paneName: 'basic',
|
|
|
sState: 0,
|
|
|
oState: null,
|
|
|
+ cState: 0,
|
|
|
detail: {
|
|
|
aid: null,
|
|
|
aCode: '',
|
|
@@ -229,7 +259,8 @@
|
|
|
const data = res.data;
|
|
|
this.sState = data.sState
|
|
|
this.oState = data.oState
|
|
|
-
|
|
|
+ this.cState = data.cState
|
|
|
+
|
|
|
this.detail.aName = data.aName;
|
|
|
this.detail.aCode = data.aCode;
|
|
|
this.detail.projectName = data.projectName;
|
|
@@ -292,7 +323,6 @@
|
|
|
},
|
|
|
getRecordApproval () {
|
|
|
getRecordList({ sid: this.sid, flagType: 'StopTender' }).then((res) => {
|
|
|
-
|
|
|
this.record_approval = res.rows;
|
|
|
}).catch(err => {
|
|
|
this.$modal.msgError("服务器出错,请联系管理员!!!");
|
|
@@ -305,21 +335,72 @@
|
|
|
this.$modal.msgError("请输入审核意见")
|
|
|
return;
|
|
|
}
|
|
|
- this.$modal.confirm("你确定要审核终止该采购计划吗?").then(() => {
|
|
|
- this.handleExamineApply(2);
|
|
|
+
|
|
|
+ if (this.sState == 3) { // 负责人审核
|
|
|
+ this.$modal.confirm("确定要审核终止该采购计划?").then(() => {
|
|
|
+ this.handleExamineApply(1);
|
|
|
+ })
|
|
|
+ } else if (this.sState == 1) { // 副总审核
|
|
|
+ this.$modal.confirm("确定要审核终止该采购计划吗?").then(() => {
|
|
|
+ this.handleExamineApply(2);
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
+ // 申请变更
|
|
|
+ approvedChange() {
|
|
|
+ if (!this.form.bidEditor) {
|
|
|
+ this.$modal.msgError("请输入审核意见")
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (this.cState == 2) { // 负责人审核
|
|
|
+ this.$modal.confirm("确定要审核变更该采购计划?").then(() => {
|
|
|
+ this.handleChangeApply(1);
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
+ //审核变更申请
|
|
|
+ handleChangeApply(state) {
|
|
|
+ this.fullscreenLoading = true;
|
|
|
+ let obj = {
|
|
|
+ sid: this.form.sid,
|
|
|
+ cState: state
|
|
|
+ };
|
|
|
+
|
|
|
+ postAlterBid(obj).then(res => {
|
|
|
+ this.fullscreenLoading = false;
|
|
|
+ this.$message.success("操作成功!!");
|
|
|
+ this.$tab.closePage()
|
|
|
+ }).catch(err => {
|
|
|
+ this.fullscreenLoading = false;
|
|
|
+ this.$modal.msgError("服务器出错,请联系管理员!!!");
|
|
|
})
|
|
|
},
|
|
|
+
|
|
|
//驳回采购计划
|
|
|
rejectPlan () {
|
|
|
if (!this.form.bidEditor) {
|
|
|
this.$modal.msgError("请输入审核意见")
|
|
|
return;
|
|
|
}
|
|
|
- this.$modal.confirm("你确定要驳回终止采购计划吗?").then(() => {
|
|
|
+ this.$modal.confirm("确定要驳回终止采购计划吗?").then(() => {
|
|
|
this.handleExamineApply(0);
|
|
|
})
|
|
|
},
|
|
|
|
|
|
+ // 驳回变更
|
|
|
+ rejectChangePlan() {
|
|
|
+ if (!this.form.bidEditor) {
|
|
|
+ this.$modal.msgError("请输入审核意见")
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.$modal.confirm("确定要驳回变更采购计划吗?").then(() => {
|
|
|
+ this.handleChangeApply(0);
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
//审核终止申请
|
|
|
handleExamineApply(state) {
|
|
|
this.fullscreenLoading = true;
|