wl
2022-07-19 45ce1ac30e29ff9e5b91ae4d02947a43035efa4a
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
<template>
  <div style="height: 100%">
    <el-card style="height: 100%">
      <template slot="header">
        <el-form :inline="true" :model="queryInfo" class="demo-form-inline">
          <el-form-item label="报案人:">
            <el-input placeholder="请输入姓名或身份证" v-model="queryInfo.people"></el-input>
          </el-form-item>
          <el-form-item label="手机号码:">
            <el-input placeholder="请输入" v-model="queryInfo.phoneNumber"></el-input>
          </el-form-item>
          <el-form-item label="是否已进群:">
            <el-select v-model="queryInfo.isInGroup" placeholder="请选择">
              <el-option v-for="item in optionsGroup" :key="item.value" :label="item.label" :value="item.value">
              </el-option>
            </el-select>
          </el-form-item>
          <el-form-item label="报案材料:">
            <el-select v-model="queryInfo.HavaMaterial" placeholder="请选择">
              <el-option v-for="item in optionsMate" :key="item.value" :label="item.label" :value="item.value">
              </el-option>
            </el-select>
          </el-form-item>
          <el-form-item>
            <el-button type="primary" @click="search">查询</el-button>
          </el-form-item>
          <el-form-item>
            <el-button type="primary" @click="addAduitDialogOpen">添加</el-button>
          </el-form-item>
          <el-form-item>
            <el-button type="primary" @click="exportExcel">导入</el-button>
          </el-form-item>
        </el-form>
      </template>
      <el-table :data="list">
        <el-table-column prop="id" label="序号" width="60"></el-table-column>
        <el-table-column width="80" prop="pic" label="头像">
          <template slot-scope="scope">
            <img :src="scope.row.pic | fileNameToPath" style="width: 40px;height: 40px; border-radius: 50%;">
          </template>
        </el-table-column>
        <el-table-column width="80" prop="reporterName" label="报案人"></el-table-column>
        <el-table-column width="120" prop="mobile" label="手机号码"></el-table-column>
        <el-table-column width="180" prop="idcard" label="证件号码"></el-table-column>
        <el-table-column width="100" prop="isCommission" label="是否审核">
          <template slot-scope="scope">
            <span v-if="scope.row.isCommission == 1">是</span>
            <span v-else>否</span>
          </template>
        </el-table-column>
        <el-table-column width="100" prop="amountInvolved" label="涉案金额">
          <template slot-scope="scope">
            <span>{{ scope.row.amountInvolved === null ? 0 : scope.row.amountInvolved }}</span>
          </template>
        </el-table-column>
        <el-table-column width="100" prop="reportMethod" label="报案方式">
          <template slot-scope="scope">
            <span>{{ scope.row.reportMethod === null ? "现场报案" : scope.row.reportMethod }}</span>
          </template>
        </el-table-column>
        <el-table-column width="200" prop="reportTime" label="报案时间">
          <template slot-scope="scope">
            <span>{{ scope.row.reportTime === null ? "2022-07-12 10:32:56" : scope.row.reportTime }}</span>
          </template>
        </el-table-column>
        <el-table-column label="操作">
          <template slot-scope="scope">
            <el-button type="text" size="small" @click="details(scope.row.id)" style="font-size:14px">详情</el-button>
            <el-button type="text" size="small" @click="audit(scope.row.id)" style="font-size:14px;color: red">审核
            </el-button>
          </template>
        </el-table-column>
      </el-table>
      <el-pagination @current-change="handleCurrentChange" :current-page="queryInfo.current"
                     :page-size="queryInfo.size" layout="prev, pager, next"
                     :total="total"></el-pagination>
    </el-card>
    <!--添加人员弹窗-->
    <el-dialog
        title="提示"
        :visible.sync="addAduitDialogVisible"
        width="30%"
        :before-close="addAduitClose">
      <span>这是一段信息</span>
      <span slot="footer" class="dialog-footer">
    <el-button @click="addAduitDialogVisible = false">取 消</el-button>
    <el-button type="primary" @click="addAduitDialogVisible = false">确 定</el-button>
  </span>
    </el-dialog>
  </div>
</template>
 
<script>
import {getAuditList} from '@/api/common'
 
export default {
  name: "Audit",
  data() {
    return {
      queryInfo: {
        people: '',
        phoneNumber: '',
        isInGroup: '5',
        current: 1,
        HavaMaterial: '5',
        size: 10
      },
      optionsGroup: [
        {
          value: '5',
          label: '全部'
        },
        {
          value: '0',
          label: '是'
        },
        {
          value: '1',
          label: '否'
        }
      ],
      optionsMate: [
        {
          value: '5',
          label: '全部'
        },
        {
          value: '0',
          label: '已提交'
        },
        {
          value: '1',
          label: '未提交'
        }
      ],
      total: 0,
      list: [],
      addAduitDialogVisible: false,
    }
  },
  created() {
    this.getList()
  },
  methods: {
    addAduitClose() {
      this.addAduitDialogVisible = false
    },
    getList() {
      let param = {}
      param.people = this.queryInfo.people
      param.phoneNumber = this.queryInfo.phoneNumber
      param.current = this.queryInfo.current
      param.size = this.queryInfo.size
      param.isInGroup = this.queryInfo.isInGroup !== '5' ? this.queryInfo.isInGroup : ''
      param.HavaMaterial = this.queryInfo.HavaMaterial !== '5' ? this.queryInfo.HavaMaterial : ''
      getAuditList(param).then(res => {
        this.total = res.total
        this.list = res.records
      })
    },
    search() {
      this.getList()
    },
    addAduitDialogOpen() {
      this.addAduitDialogVisible = true
    },
    exportExcel() {
    },
    handleCurrentChange(val) {
      this.queryInfo.current = val;
      this.getList();
    },
    details(id) {
      console.log(id)
    },
    audit(id) {
      console.log(id)
    }
  }
}
</script>
 
<style scoped lang="scss">
.el-form-item {
  margin-bottom: 0 !important;
}
 
.demo-form-inline .el-select {
  width: 100px;
}
</style>