Browse Source

审核接口

duwendi 1 year ago
parent
commit
521ba848be
2 changed files with 50 additions and 27 deletions
  1. 12 0
      src/api/article_z.js
  2. 38 27
      src/pages/index/components/inspection_management.vue

+ 12 - 0
src/api/article_z.js

@@ -19,6 +19,10 @@ export default {
19
   querySelectTollmanListByPage(params) {
19
   querySelectTollmanListByPage(params) {
20
     return axios.get(`/opt/common/select/tollman`, {params})
20
     return axios.get(`/opt/common/select/tollman`, {params})
21
   },
21
   },
22
+  // 取证类型
23
+  queryEvidenceType(params) {
24
+    return axios.get('/opt/common/select/evidenceType', {params})
25
+  },
22
   // 异常管理——获取抬杆记录分页
26
   // 异常管理——获取抬杆记录分页
23
   queryExceptionHandingLiftByPage(params) {
27
   queryExceptionHandingLiftByPage(params) {
24
     return axios.get(`/opt/exception/handing/lift/page`, {params})
28
     return axios.get(`/opt/exception/handing/lift/page`, {params})
@@ -167,6 +171,10 @@ export default {
167
   editInspectionEvidence(params) {
171
   editInspectionEvidence(params) {
168
     return axios.post(`/opt/inspection/evidence/edit`, params)
172
     return axios.post(`/opt/inspection/evidence/edit`, params)
169
   },
173
   },
174
+  // 稽查管理--稽查审核
175
+  auditInspectionManagement(params) {
176
+    return axios.post('/opt/inspection/management/audit', params)
177
+  },
170
   // 稽查管理——删除稽查配置
178
   // 稽查管理——删除稽查配置
171
   deleteInspectionEvidence(params) {
179
   deleteInspectionEvidence(params) {
172
     return axios.post(`/opt/inspection/evidence/delete`, params)
180
     return axios.post(`/opt/inspection/evidence/delete`, params)
@@ -175,6 +183,10 @@ export default {
175
   queryInspectionManagementByPage(params) {
183
   queryInspectionManagementByPage(params) {
176
     return axios.get(`/opt/inspection/management/page`, {params})
184
     return axios.get(`/opt/inspection/management/page`, {params})
177
   },
185
   },
186
+  // 稽查管理——获取稽查管理分页--处理记录
187
+  queryInspectionManagementByPage1(params) {
188
+    return axios.get(`/opt/inspection/management/page1`, {params})
189
+  },
178
   // 稽查管理——添加稽查管理
190
   // 稽查管理——添加稽查管理
179
   addInspectionManagement(params) {
191
   addInspectionManagement(params) {
180
     return axios.post(`/opt/inspection/management/add`, params)
192
     return axios.post(`/opt/inspection/management/add`, params)

+ 38 - 27
src/pages/index/components/inspection_management.vue

@@ -148,17 +148,23 @@
148
           :visible.sync="dialogVisible2"
148
           :visible.sync="dialogVisible2"
149
           width="45%"
149
           width="45%"
150
           custom-class="audit-dialog">
150
           custom-class="audit-dialog">
151
-          <el-row class="mg-bt">
152
-            <el-col class="label" :span="4">审核:</el-col>
153
-            <el-col :span="18">
154
-              <el-radio v-model="radio" label="2">通过</el-radio>
155
-              <el-radio v-model="radio" label="3">驳回</el-radio>
156
-            </el-col>
157
-          </el-row>
158
-          <span slot="footer" class="dialog-footer">
151
+          <div class="form-div">
152
+            <el-form label-position="left" class="form-wrapper" :model="formLabelAlign2" style="margin-bottom: 20px;">
153
+              <el-form-item label="审核: ">
154
+                <el-radio-group v-model="formLabelAlign2.auditStatus">
155
+                  <el-radio label='通过'>通过</el-radio>
156
+                  <el-radio label='驳回'>驳回</el-radio>
157
+                </el-radio-group>
158
+              </el-form-item>
159
+              <el-form-item label="备注: ">
160
+                <el-input type="textarea" :rows="2" placeholder="请输入内容" v-model="formLabelAlign2.auditResult"/>
161
+              </el-form-item>
162
+            </el-form>
163
+            <span slot="footer" class="dialog-footer">
159
             <el-button @click="dialogVisible2 = false">取 消</el-button>
164
             <el-button @click="dialogVisible2 = false">取 消</el-button>
160
             <el-button type="primary" @click="handleConfirm2">确 定</el-button>
165
             <el-button type="primary" @click="handleConfirm2">确 定</el-button>
161
         </span>
166
         </span>
167
+          </div>
162
         </el-dialog>
168
         </el-dialog>
163
 
169
 
164
         <div style="font-size: large;margin-bottom: 30px">处理记录</div>
170
         <div style="font-size: large;margin-bottom: 30px">处理记录</div>
@@ -207,8 +213,8 @@ export default {
207
       activeName: '稽查配置',
213
       activeName: '稽查配置',
208
       columns1: [
214
       columns1: [
209
         {
215
         {
210
-          label: '稽查对象',
211
-          key: 'parkId'
216
+          label: '稽查地点',
217
+          key: 'carParkName'
212
         },
218
         },
213
         {
219
         {
214
           label: '取证类型',
220
           label: '取证类型',
@@ -246,11 +252,11 @@ export default {
246
       columns2: [
252
       columns2: [
247
         {
253
         {
248
           label: '稽查对象',
254
           label: '稽查对象',
249
-          key: 'evidenceTollmanId'
255
+          key: 'evidenceTollmanName'
250
         },
256
         },
251
         {
257
         {
252
           label: '取证类型',
258
           label: '取证类型',
253
-          key: 'evidenceId'
259
+          key: 'evidenceType'
254
         },
260
         },
255
         {
261
         {
256
           label: '问题描述',
262
           label: '问题描述',
@@ -263,7 +269,7 @@ export default {
263
       ],
269
       ],
264
       tableData2: [],
270
       tableData2: [],
265
       total2: 0,
271
       total2: 0,
266
-      radio: '2',
272
+      radio: '通过',
267
       pageSize2: 10,
273
       pageSize2: 10,
268
       pageNum2: 1,
274
       pageNum2: 1,
269
       formInline2: {
275
       formInline2: {
@@ -273,18 +279,17 @@ export default {
273
       dialogVisible2: false,
279
       dialogVisible2: false,
274
       formLabelAlign2: {
280
       formLabelAlign2: {
275
         id: '',
281
         id: '',
276
-        evidenceTollmanId: '',
277
-        evidenceId: '',
278
-        problemDescription: '',
282
+        auditStatus: '',
283
+        auditResult: ''
279
       },
284
       },
280
       columns3: [
285
       columns3: [
281
         {
286
         {
282
           label: '稽查对象',
287
           label: '稽查对象',
283
-          key: 'evidenceTollmanId'
288
+          key: 'evidenceTollmanName'
284
         },
289
         },
285
         {
290
         {
286
           label: '取证类型',
291
           label: '取证类型',
287
-          key: 'evidenceId'
292
+          key: 'evidenceType'
288
         },
293
         },
289
         {
294
         {
290
           label: '问题描述',
295
           label: '问题描述',
@@ -298,10 +303,10 @@ export default {
298
           label: '审核状态',
303
           label: '审核状态',
299
           key: 'auditStatus'
304
           key: 'auditStatus'
300
         },
305
         },
301
-        {
302
-          label: '处理人',
303
-          key: 'updateUser'
304
-        },
306
+        // {
307
+        //   label: '处理人',
308
+        //   key: 'updateUser'
309
+        // },
305
       ],
310
       ],
306
       tableData3: [],
311
       tableData3: [],
307
       total3: 0,
312
       total3: 0,
@@ -318,9 +323,15 @@ export default {
318
     this.getTollmanList()
323
     this.getTollmanList()
319
     this.getTableData2()
324
     this.getTableData2()
320
     this.getTableData3()
325
     this.getTableData3()
326
+    this.getEvidenceDic()
321
   },
327
   },
322
   watch: {},
328
   watch: {},
323
   methods: {
329
   methods: {
330
+    getEvidenceDic() {
331
+      api_z.queryEvidenceType().then(res => {
332
+        this.evidenceOptions = res.data || []
333
+      })
334
+    },
324
     handleAdd() {
335
     handleAdd() {
325
       this.title = '添加配置'
336
       this.title = '添加配置'
326
       this.formLabelAlign = {}
337
       this.formLabelAlign = {}
@@ -349,6 +360,7 @@ export default {
349
               type: 'success'
360
               type: 'success'
350
             })
361
             })
351
             this.getTableData1()
362
             this.getTableData1()
363
+            this.getEvidenceDic()
352
           }
364
           }
353
         })
365
         })
354
       } else {
366
       } else {
@@ -360,6 +372,7 @@ export default {
360
               type: 'success'
372
               type: 'success'
361
             })
373
             })
362
             this.getTableData1()
374
             this.getTableData1()
375
+            this.getEvidenceDic()
363
           }
376
           }
364
         })
377
         })
365
       }
378
       }
@@ -401,9 +414,7 @@ export default {
401
     },
414
     },
402
 
415
 
403
     handleConfirm2() {
416
     handleConfirm2() {
404
-      const {id} = this.formLabelAlign2.id
405
-      console.log('radio', this.radio)
406
-      api_z.applyResource({...this.formLabelAlign2}).then(res => {
417
+      api_z.auditInspectionManagement({...this.formLabelAlign2}).then(res => {
407
         if (res.code === 200) {
418
         if (res.code === 200) {
408
           this.dialogVisible2 = false
419
           this.dialogVisible2 = false
409
           this.$message({
420
           this.$message({
@@ -411,6 +422,7 @@ export default {
411
             type: 'success'
422
             type: 'success'
412
           })
423
           })
413
           this.getTableData2()
424
           this.getTableData2()
425
+          this.getTableData3()
414
         }
426
         }
415
       })
427
       })
416
     },
428
     },
@@ -426,7 +438,6 @@ export default {
426
       api_z.queryInspectionEvidenceByPage({current: pageNum1, size: pageSize1, ...this.formInline1}).then(res => {
438
       api_z.queryInspectionEvidenceByPage({current: pageNum1, size: pageSize1, ...this.formInline1}).then(res => {
427
         this.tableData1 = res.data.records || []
439
         this.tableData1 = res.data.records || []
428
         this.total1 = res.data.total
440
         this.total1 = res.data.total
429
-        this.evidenceOptions=res.data.records || []
430
       })
441
       })
431
     },
442
     },
432
     handlePageChange2() {
443
     handlePageChange2() {
@@ -444,7 +455,7 @@ export default {
444
     },
455
     },
445
     getTableData3() {
456
     getTableData3() {
446
       const {pageNum3, pageSize3} = this
457
       const {pageNum3, pageSize3} = this
447
-      api_z.queryInspectionManagementByPage({current: pageNum3, size: pageSize3, ...this.formInline3}).then(res => {
458
+      api_z.queryInspectionManagementByPage1({current: pageNum3, size: pageSize3, ...this.formInline3}).then(res => {
448
         this.tableData3 = res.data.records || []
459
         this.tableData3 = res.data.records || []
449
         this.total3 = res.data.total
460
         this.total3 = res.data.total
450
       })
461
       })