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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<template>
  <div>
    <el-row id="opinionFlow">
      <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">
          <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="submitForm">搜索</el-button>
          </div>
        </el-col>
      </el-form>
      <el-table
        v-loading="listLoading"
        :data="tableData"
        fit
        stripe
        highlight-current-row
        style="width: 100%;padding-top:8px;"
        size="small"
      >
        <el-table-column label=" " type="index" align="center" width="50px"> </el-table-column>
        <el-table-column prop="serialno" label="审批流水"></el-table-column>
        <el-table-column prop="phasename" label="审批阶段"></el-table-column>
        <el-table-column prop="phasechoice" label="审批结果"></el-table-column>
        <el-table-column prop="phaseopinion" label="审批意见">
          <template slot-scope="scope">
            <div v-if="scope.row.phaseopinion.length < 26">{{scope.row.phaseopinion}}</div>
            <el-popover class="beyondContent" placement="top-start" width="215" trigger="hover" >
              <div>{{scope.row.phaseopinion}}</div>
                <span slot="reference">{{ scope.row.phaseopinion}}</span>
            </el-popover>
          </template>
        </el-table-column>
        <el-table-column prop="approvechannel" 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="endtime" label="审批时间"></el-table-column>
      </el-table>
      <!-- <pagination
        v-show="total > 0"
        :total="total"
        :page.sync="listQuery.currentPage"
        :limit.sync="listQuery.pageSize"
        @pagination="initTable"
      /> -->
    </el-row>
  </div>
</template>
 
<script>
import Pagination from '@/components/Pagination'
import { qryChannelOpinionList, channelCode } from '@/api/area/partner'
import { mapState } from 'vuex'
export default {
  components: { Pagination },
  data: function() {
    return {
      // 分页
      listLoading: true,
      tableData: [],
      total: 0,
      listQuery: {
        currentPage: 1,
        pageSize: 10
      },
      ruleForm: {
        phaseno: ''
      },
      options: [],
    }
    },
  computed: {
    ...mapState({
      partnerParams: state => state.risk.partnerParams
    })
  },
  created() {
    this.initSelect()
    this.initTable()
  },
  methods: {
    initTable() {
      this.listLoading = true
      const { phaseno } = this.ruleForm
      let params = {
        serialno: this.partnerParams.serialno,
        objecttype: this.partnerParams.objectType,
        phaseno
            }
            params = Object.assign({}, params, this.listQuery)
      qryChannelOpinionList(params).then(res => {
                this.tableData = res.result.records
                this.total = res.result.total
        this.listLoading = false
      })
    },
    handleSubmit() {
      this.$emit('handleNextPage', true)
    },
    submitForm () {
      this.initTable()
    },
    async initSelect() {
      let params = {
        conditionName: 'phaseno'
      }
      const { result } = await channelCode(params)
      this.options = result
    }
  }
}
</script>
 
<style scoped></style>