Browse Source

稽查修改

zbb 1 year ago
parent
commit
4d7fa6d3a6

+ 81 - 36
src/pages/index/components/inspection_management.vue

@@ -1,6 +1,6 @@
1
 <template>
1
 <template>
2
   <div class="body-wrapper">
2
   <div class="body-wrapper">
3
-    <el-tabs  v-model="activeName">
3
+    <el-tabs v-model="activeName">
4
       <el-tab-pane label="稽查配置" name="稽查配置">
4
       <el-tab-pane label="稽查配置" name="稽查配置">
5
         <el-form class="form-wrapper" :inline="true" style="margin-bottom: 20px;">
5
         <el-form class="form-wrapper" :inline="true" style="margin-bottom: 20px;">
6
           <el-row>
6
           <el-row>
@@ -37,15 +37,12 @@
37
           custom-class="audit-dialog">
37
           custom-class="audit-dialog">
38
           <div class="form-div">
38
           <div class="form-div">
39
             <el-form label-position="left" label-width="85px" :model="formLabelAlign">
39
             <el-form label-position="left" label-width="85px" :model="formLabelAlign">
40
-              <el-form-item label="稽查对象">
40
+              <el-form-item label="稽查地点">
41
                 <el-input v-model="formLabelAlign.parkingCardName"></el-input>
41
                 <el-input v-model="formLabelAlign.parkingCardName"></el-input>
42
               </el-form-item>
42
               </el-form-item>
43
               <el-form-item label="取证类型">
43
               <el-form-item label="取证类型">
44
                 <el-input v-model="formLabelAlign.type"></el-input>
44
                 <el-input v-model="formLabelAlign.type"></el-input>
45
               </el-form-item>
45
               </el-form-item>
46
-              <el-form-item label="问题描述">
47
-                <el-input v-model="formLabelAlign.questionDescription"></el-input>
48
-              </el-form-item>
49
             </el-form>
46
             </el-form>
50
           </div>
47
           </div>
51
           <span slot="footer" class="dialog-footer">
48
           <span slot="footer" class="dialog-footer">
@@ -54,6 +51,30 @@
54
         </span>
51
         </span>
55
         </el-dialog>
52
         </el-dialog>
56
       </el-tab-pane>
53
       </el-tab-pane>
54
+      <el-tab-pane label="稽查上传" name="稽查上传">
55
+        <div class="form-div">
56
+          <el-form label-position="left" label-width="85px" :model="formLabelAlign1">
57
+            <el-form-item label="稽查地点">
58
+              <el-input v-model="formLabelAlign1.parkingCardName"></el-input>
59
+            </el-form-item>
60
+            <el-form-item label="稽查对象">
61
+              <el-input v-model="formLabelAlign1.inspectObject"></el-input>
62
+            </el-form-item>
63
+            <el-form-item label="取证类型">
64
+              <el-input v-model="formLabelAlign1.type"></el-input>
65
+            </el-form-item>
66
+            <el-form-item label="问题描述">
67
+              <el-input v-model="formLabelAlign1.questionDescription"></el-input>
68
+            </el-form-item>
69
+            <el-form-item label="稽查员">
70
+              <el-input v-model="formLabelAlign1.inspector"></el-input>
71
+            </el-form-item>
72
+          </el-form>
73
+          <span slot="footer" class="dialog-footer">
74
+            <el-button type="primary" @click="handleConfirm1">上 传</el-button>
75
+          </span>
76
+        </div>
77
+      </el-tab-pane>
57
       <el-tab-pane label="稽查审核" name="稽查审核">
78
       <el-tab-pane label="稽查审核" name="稽查审核">
58
         <div style="font-size: large;margin-bottom: 30px">稽查审核</div>
79
         <div style="font-size: large;margin-bottom: 30px">稽查审核</div>
59
         <el-form class="form-wrapper" :inline="true" :model="formInline2" style="margin-bottom: 20px;">
80
         <el-form class="form-wrapper" :inline="true" :model="formInline2" style="margin-bottom: 20px;">
@@ -77,7 +98,7 @@
77
             label="操作"
98
             label="操作"
78
             width="100">
99
             width="100">
79
             <template slot-scope="scope" style="display: inline-block">
100
             <template slot-scope="scope" style="display: inline-block">
80
-              <el-button  @click="handleAudit(scope.row)" type="text">审核</el-button>
101
+              <el-button @click="handleAudit(scope.row)" type="text">审核</el-button>
81
             </template>
102
             </template>
82
           </el-table-column>
103
           </el-table-column>
83
         </el-table>
104
         </el-table>
@@ -150,26 +171,29 @@ export default {
150
           label: '取证类型',
171
           label: '取证类型',
151
           key: 'type'
172
           key: 'type'
152
         },
173
         },
153
-        {
154
-          label: '问题描述',
155
-          key: 'questionDescription'
156
-        },
157
         {
174
         {
158
           label: '创建日期',
175
           label: '创建日期',
159
           key: 'creatTime'
176
           key: 'creatTime'
160
         },
177
         },
161
       ],
178
       ],
162
-      tableData1: [{parkingCardName:'昌建东外滩西南停车场',type:'实地考察',questionDescription:'部分车位存在一车多位的占用现象',creatTime:'2023-12-30'}],
179
+      tableData1: [{parkingCardName: '昌建东外滩西南停车场', type: '实地考察', creatTime: '2023-12-30'}],
163
       total1: 0,
180
       total1: 0,
164
       pageSize1: 10,
181
       pageSize1: 10,
165
       pageNum1: 1,
182
       pageNum1: 1,
166
-      title:'',
167
-      dialogVisible:false,
183
+      title: '',
184
+      dialogVisible: false,
168
       formLabelAlign: {
185
       formLabelAlign: {
169
         id: '',
186
         id: '',
170
         parkingCardName: '',
187
         parkingCardName: '',
171
         type: '',
188
         type: '',
189
+      },
190
+      formLabelAlign1: {
191
+        id: '',
192
+        parkingCardName: '',
193
+        inspectObject: '',
194
+        type: '',
172
         questionDescription: '',
195
         questionDescription: '',
196
+        inspector: '',
173
       },
197
       },
174
       columns2: [
198
       columns2: [
175
         {
199
         {
@@ -189,18 +213,23 @@ export default {
189
           key: 'creatTime'
213
           key: 'creatTime'
190
         },
214
         },
191
       ],
215
       ],
192
-      tableData2: [{parkingCardName:'昌建东外滩西南停车场',type:'实地考察',questionDescription:'部分车位存在一车多位的占用现象',creatTime:'2023-12-30'}],
216
+      tableData2: [{
217
+        parkingCardName: '昌建东外滩西南停车场',
218
+        type: '实地考察',
219
+        questionDescription: '部分车位存在一车多位的占用现象',
220
+        creatTime: '2023-12-30'
221
+      }],
193
       total2: 0,
222
       total2: 0,
194
       radio: '2',
223
       radio: '2',
195
       pageSize2: 10,
224
       pageSize2: 10,
196
       pageNum2: 1,
225
       pageNum2: 1,
197
       formInline2: {
226
       formInline2: {
198
         orderCode: '',
227
         orderCode: '',
199
-        orderStatus:'',
200
-        orderWay:''
228
+        orderStatus: '',
229
+        orderWay: ''
201
       },
230
       },
202
-      title2:'',
203
-      dialogVisible2:false,
231
+      title2: '',
232
+      dialogVisible2: false,
204
       formLabelAlign2: {
233
       formLabelAlign2: {
205
         id: '',
234
         id: '',
206
         parkingCardName: '',
235
         parkingCardName: '',
@@ -247,14 +276,13 @@ export default {
247
     // this.getTableData2()
276
     // this.getTableData2()
248
     // this.getTableData3()
277
     // this.getTableData3()
249
   },
278
   },
250
-  watch: {
251
-  },
279
+  watch: {},
252
   methods: {
280
   methods: {
253
-    handleAdd () {
281
+    handleAdd() {
254
       this.title = '添加配置'
282
       this.title = '添加配置'
255
-      this.formLabelAlign.parkingCardName= ''
256
-      this.formLabelAlign.type= ''
257
-      this.formLabelAlign.questionDescription= ''
283
+      this.formLabelAlign.parkingCardName = ''
284
+      this.formLabelAlign.type = ''
285
+      this.formLabelAlign.questionDescription = ''
258
       this.dialogVisible = true
286
       this.dialogVisible = true
259
     },
287
     },
260
     handleEdit(row) {
288
     handleEdit(row) {
@@ -262,7 +290,7 @@ export default {
262
       this.formLabelAlign = {...row}
290
       this.formLabelAlign = {...row}
263
       this.dialogVisible = true
291
       this.dialogVisible = true
264
     },
292
     },
265
-    deleteRow (record) {
293
+    deleteRow(record) {
266
       api.deleteWhiteIp({id: record.id}).then(res => {
294
       api.deleteWhiteIp({id: record.id}).then(res => {
267
         if (res.code === 200) {
295
         if (res.code === 200) {
268
           this.$message({type: 'success', message: '删除成功!'})
296
           this.$message({type: 'success', message: '删除成功!'})
@@ -295,6 +323,17 @@ export default {
295
         })
323
         })
296
       }
324
       }
297
     },
325
     },
326
+    handleConfirm1() {
327
+      //这个添加是审核部分的添加
328
+      api.addWhiteIp({ipAddr: this.formLabelAlign.ipAddr}).then(res => {
329
+        if (res.code === 200) {
330
+          this.$message({
331
+            message: '添加成功!',
332
+            type: 'success'
333
+          })
334
+        }
335
+      })
336
+    },
298
     onSubmit2() {
337
     onSubmit2() {
299
       this.pageNum2 = 1
338
       this.pageNum2 = 1
300
       this.getTableData2()
339
       this.getTableData2()
@@ -308,7 +347,7 @@ export default {
308
       const {id} = this.formLabelAlign2.id
347
       const {id} = this.formLabelAlign2.id
309
       console.log('radio', this.radio)
348
       console.log('radio', this.radio)
310
       api.applyResource({id, applyType: this.radio}).then(res => {
349
       api.applyResource({id, applyType: this.radio}).then(res => {
311
-        if(res.code === 200) {
350
+        if (res.code === 200) {
312
           this.dialogVisible2 = false
351
           this.dialogVisible2 = false
313
           this.$message({
352
           this.$message({
314
             message: '审核成功!',
353
             message: '审核成功!',
@@ -355,33 +394,39 @@ export default {
355
   }
394
   }
356
 }
395
 }
357
 </script>
396
 </script>
358
-<style  lang="scss" scoped>
397
+<style lang="scss" scoped>
359
 .body-wrapper {
398
 .body-wrapper {
360
   padding: 20px;
399
   padding: 20px;
361
-  .button-block{
400
+
401
+  .button-block {
362
     text-align: right;
402
     text-align: right;
363
     margin-bottom: 20px;
403
     margin-bottom: 20px;
364
   }
404
   }
365
-  .table-pagination{
405
+
406
+  .table-pagination {
366
     text-align: right;
407
     text-align: right;
367
   }
408
   }
368
-  .search-card{
409
+
410
+  .search-card {
369
     margin-bottom: 20px;
411
     margin-bottom: 20px;
370
     text-align: center;
412
     text-align: center;
371
-    .input-wrapper{
413
+
414
+    .input-wrapper {
372
       width: 36%;
415
       width: 36%;
373
     }
416
     }
374
   }
417
   }
375
 
418
 
376
-  .audit-dialog{
377
-    .mg-bt{
419
+  .audit-dialog {
420
+    .mg-bt {
378
       margin-bottom: 24px;
421
       margin-bottom: 24px;
379
     }
422
     }
380
-    .label{
423
+
424
+    .label {
381
       text-align: right;
425
       text-align: right;
382
     }
426
     }
383
-    .form-div{
384
-      /deep/ .el-input__inner{
427
+
428
+    .form-div {
429
+      /deep/ .el-input__inner {
385
         height: 35px;
430
         height: 35px;
386
         width: 90%;
431
         width: 90%;
387
         border: 1px solid #a6a5a5;
432
         border: 1px solid #a6a5a5;

+ 3 - 3
src/pages/index/components/parking_outside_operation.vue

@@ -78,12 +78,12 @@
78
           <el-row>
78
           <el-row>
79
             <el-col :span="8">
79
             <el-col :span="8">
80
               <el-form-item label="车场名称:">
80
               <el-form-item label="车场名称:">
81
-                <el-input v-model="formInline1.carParkingName" placeholder="请输入"></el-input>
81
+                <el-input v-model="formInline2.carParkingName" placeholder="请输入"></el-input>
82
               </el-form-item>
82
               </el-form-item>
83
             </el-col>
83
             </el-col>
84
             <el-col :span="8">
84
             <el-col :span="8">
85
               <el-form-item label="车牌号:">
85
               <el-form-item label="车牌号:">
86
-                <el-input v-model="formInline1.plateNo" placeholder="请输入"></el-input>
86
+                <el-input v-model="formInline2.plateNo" placeholder="请输入"></el-input>
87
               </el-form-item>
87
               </el-form-item>
88
             </el-col>
88
             </el-col>
89
             <el-col :span="8">
89
             <el-col :span="8">
@@ -111,7 +111,7 @@
111
           </el-table-column>
111
           </el-table-column>
112
         </el-table>
112
         </el-table>
113
         <div class="table-pagination">
113
         <div class="table-pagination">
114
-          <el-pagination layout="prev, pager, next" :total="total1" @current-change="handlePageChange2"
114
+          <el-pagination layout="prev, pager, next" :total="total2" @current-change="handlePageChange2"
115
                          :current-page.sync="pageNum2" :page-size.sync="pageSize2">
115
                          :current-page.sync="pageNum2" :page-size.sync="pageSize2">
116
           </el-pagination>
116
           </el-pagination>
117
         </div>
117
         </div>