zhaoxiaoqiang1
2026-01-04 f1d30d03186c79ca2cbcfe60d6d2ce7d73fba97b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<template>
  <div>
    <el-container id="opinionFlow">
      <el-main style="padding:0px">
        <el-row>
        <p class="title">流程流转记录</p>
        <!-- <el-form :model="ruleForm" label-position="left" ref="ruleForm" v-if="false"> -->
        <el-form :model="ruleForm" label-position="left" ref="ruleForm">
          <el-col :span="8" style="padding-right:0px">
            <el-form-item label="审批阶段" prop="phaseNo">
              <el-select v-model="ruleForm.phaseNo" filterable clearable placeholder="请选择">
                <el-option v-for="(item, index) in options" :key="index" :label="item.valueDesc" :value="item.value"></el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <div class="buttonAbout">
              <el-button size="small" @click="ruleForm.phaseNo = ''">重置</el-button>
              <el-button size="small" type="primary" @click="tableLoad()">搜索</el-button>
            </div>
          </el-col>
        </el-form>
        <el-table :data="tableData" stripe style="width: 100%;padding-top:8px">
          <el-table-column type="index" label="序号"> </el-table-column>
          <el-table-column prop="phaseName" label="阶段名称"> </el-table-column>
          <el-table-column prop="userName" label="处理人"></el-table-column>
          <el-table-column prop="orgName" label="处理人直属机构"> </el-table-column>
          <el-table-column prop="beginTime" label="任务接收时间"> </el-table-column>
          <el-table-column prop="endTime" label="任务完成时间"> </el-table-column>
          <el-table-column  prop="finishTime" label="处理耗时"></el-table-column>
        </el-table>
        <!-- <pagination
          v-show="total > 0"
          :total="total"
          :page.sync="listQuery.currentPage"
          :limit.sync="listQuery.pageSize"
          @pagination="tableLoad"
          /> -->
        </el-row>
      </el-main>
    </el-container>
  </div>
</template>
 
<script>
import { queryProjectFlowRecordInfoList, phaseListByType } from '@/api/area'
import Pagination from '@/components/Pagination'
import { mapState } from 'vuex'
export default {
  components: {
    Pagination,
  },
  data: function () {
    return {
      tableData: [],
      listQuery: {
        currentPage: 1,
        pageSize: 10
      },
      total: 0,
      ruleForm: {
        phaseNo: ''
      },
      options: [],
    }
  },
  computed: {
    ...mapState({
      detailsParams: state => state.risk.detailsParams
    })
  },
  created () {
    this.initSelect()
    this.tableLoad()
  },
  methods: {
    tableLoad () {
      const { detailsParams, ruleForm, listQuery } = this
      const { objectType, dataType, projectFlag, projectType, objectNo } = detailsParams
      const { phaseNo } = ruleForm
      let params = {
        objectType,
        dataType,
        projectFlag,
        projectType,
        serialno: objectNo,
        phaseNo,
        ...listQuery
      }
      queryProjectFlowRecordInfoList(params).then(res => {
        this.tableData = res.result
        this.total = res.result.length
      })
    },
    submitForm () {
      this.$emit('handleNextPage', true)
    },
    async initSelect() {
      const { detailsParams } = this
      const { objectType } = detailsParams
      const { result } = await phaseListByType({ objectType })
      this.options = result
    },
    handleSave () {}
  }
}
</script>
 
<style scoped></style>