luohairen
2024-11-28 41a73f66d30a9bdd854d3998f8975bb3685feeab
src/views/projectManage/plan/planInfoCheck.vue
@@ -7,6 +7,7 @@
        <el-card shadow="hover">
          <el-row :gutter="20">
            <el-col :span="24" class="mb-4">
              <el-button type="primary" size="small" @click="handlePlanRecord" style="float: right; margin-bottom: 10px;">返回</el-button>
              <!--项目计划项-->
              <el-table :data="tableData" border stripe style="width: 100%; margin-bottom: 20px">
                <el-table-column prop="index" label="序号" width="50" align="center">
@@ -16,7 +17,7 @@
                </el-table-column>
                <el-table-column prop="taskName" label="事项名称" width="500" align="center">
                  <template #default="scope">
                    <el-input type="textarea" v-model="scope.row.title" placeholder="请输入" rows="3" />
                    <el-input type="textarea" v-model="scope.row.title" placeholder="请输入" rows="3" readonly />
                  </template>
                </el-table-column>
                <el-table-column prop="startTime" label="计划开始时间" width="160" align="center">
@@ -43,7 +44,7 @@
              </el-table>
              <div style="display: flex; align-items: center;">
                <h1 style="margin: 0;">
                  截止本计划进度完成投资(万元):
                  计划投资金额(万元):
                </h1>
                <el-input
                  placeholder="请输入投资金额"
@@ -51,7 +52,8 @@
                  v-model="actualInvest"
                  clearable
                  :type="number"
                  @input="handleInput">
                  @input="handleInput"
                  readonly>
                </el-input>
              </div>
@@ -85,12 +87,12 @@
                <el-table-column prop="manageApproval" label="批复内容" width="160" align="center" />
                <el-table-column prop="manageApprovalReply" label="批复回复" width="160" align="center">
                  <template #default="scope">
                    <el-input type="textarea" v-model="scope.row.departmentApprovalReply" placeholder="请输入" rows="3" />
                    <el-input type="textarea" v-model="scope.row.manageApprovalReply" placeholder="请输入" rows="3" />
                  </template>
                </el-table-column>
                <el-table-column fixed="right" label="操作" align="center">
                  <template #default="scope">
                    <el-button size="small" @click="handleDelay(scope.$index)">回复</el-button>
                    <el-button size="small" @click="handleReply(scope.$index)">回复</el-button>
                    <el-button size="small" type="danger" @click="handleReset(scope.$index)">重置</el-button>
                  </template>
                </el-table-column>
@@ -133,7 +135,7 @@
</template>
<script>
import { getPlanInfoData, delayPlanInfo, getDepartmentApproval, getPlanLog } from "@/api/projectPlan/index";
import { getPlanInfoData, delayPlanInfo, getDepartmentApproval, getPlanLog, replyDepartmentApproval } from "@/api/projectPlan/index";
export default {
  name: "planInfoCheck",
@@ -176,9 +178,7 @@
    // 获取传递过来的项目计划详情
    getPlanRecordData() {
      // 从查询参数中获取数据
      if (this.$route.query.data) {
        this.planRecordData = JSON.parse(this.$route.query.data)
      }
      this.planRecordData = this.$route.query.data
      this.planInfoData = this.$route.query.planInfoData
      this.search();
    },
@@ -206,6 +206,14 @@
        this.departmentApprovalData = response.data;
      });
    },
    // 回复
    handleReply(index) {
      replyDepartmentApproval(this.departmentApprovalData[index]).then(response => {
        this.$message.success('回复成功');
        this.search()
      });
    },
    // 获取计划日志
    getPlanLog(projectPlanRecordId) {
      getPlanLog(projectPlanRecordId).then(response => {
@@ -218,15 +226,15 @@
      this.tableData[index].startTime = '';
      this.tableData[index].endTime = '';
    },
    /** 返回项目计划记录页面 */
    handlePlanRecord(planInfoData) {
    /** 返回项目计划记录 */
    handlePlanRecord() {
      this.$router.push({
        name: '/projectManage/planRecord',
        path: '/projectManage/planRecord',
        query: {
          data: JSON.stringify(planInfoData)
          data: this.planRecordData
        }
      })
    },
    }
  },
  created() {
    this.getPlanRecordData();