Browse Source

备份

备份
Liao 1 year ago
parent
commit
52fa4ff6e2

+ 25 - 1
src/api/article_liao.js

@@ -32,7 +32,31 @@ export default {
32
   },
32
   },
33
   //获取收费员信息分页
33
   //获取收费员信息分页
34
   optPersonnelManagementBasicDetail(params){
34
   optPersonnelManagementBasicDetail(params){
35
-    return axios.get('/opt/personnel/management/basic/detail', {params})
35
+    return axios.get('/opt/personnel/management/basic/page', {params})
36
+  },
37
+  //编辑收费人员信息
38
+  optPersonnelManagementBasicEdit(params){
39
+    return axios.post('/opt/personnel/management/basic/edit', params)
40
+  },
41
+  //添加收费人员信息
42
+  optPersonnelManagementBasicAdd(params){
43
+    return axios.post('/opt/personnel/management/basic/add', params)
44
+  },
45
+  //删除收费人员信息
46
+  optPersonnelManagementBasicDelete(params){
47
+    return axios.post('/opt/personnel/management/basic/delete', params)
48
+  },
49
+  //收费员工作统计分页
50
+  optPerformanceassesspage(params){
51
+    return axios.get('/opt/performance/assess/page', {params})
52
+  },
53
+  //稽查员稽查工作统计
54
+  optPerformanceAssessStat1page(params){
55
+    return axios.get('/opt/performance/assess/stat1page', {params})
56
+  },
57
+  //收费人员被稽查统计
58
+  optPerformanceAssessStat2page(params){
59
+    return axios.get('/opt/performance/assess/stat2page', {params})
36
   },
60
   },
37
 
61
 
38
 
62
 

+ 54 - 29
src/pages/index/components/performance_assess.vue

@@ -30,8 +30,14 @@
30
         <el-form class="form-wrapper" :inline="true" :model="formInline2" style="margin-bottom: 20px;">
30
         <el-form class="form-wrapper" :inline="true" :model="formInline2" style="margin-bottom: 20px;">
31
           <el-row>
31
           <el-row>
32
             <el-col :span="8">
32
             <el-col :span="8">
33
-              <el-form-item label="订单号: ">
34
-                <el-input v-model="formInline2.inspector" placeholder="请输入"></el-input>
33
+              <el-form-item label="稽查员姓名: ">
34
+                <el-select clearable v-model="formInline2.id" placeholder="请选择">
35
+                  <el-option
36
+                    v-for="(item,index) in peopleOptions"
37
+                    :key="index"
38
+                    :label="item.tollmanName"
39
+                    :value="item.id" />
40
+                </el-select>
35
               </el-form-item>
41
               </el-form-item>
36
             </el-col>
42
             </el-col>
37
             <el-col :span="8">
43
             <el-col :span="8">
@@ -86,6 +92,7 @@
86
 </template>
92
 </template>
87
 <script>
93
 <script>
88
 import api from "@/api/audit.js";
94
 import api from "@/api/audit.js";
95
+import api_l from "@/api/article_liao.js";
89
 import dictionary from "@/util/dictionary";
96
 import dictionary from "@/util/dictionary";
90
 
97
 
91
 export default {
98
 export default {
@@ -96,30 +103,31 @@ export default {
96
       columns1: [
103
       columns1: [
97
         {
104
         {
98
           label: '收费员',
105
           label: '收费员',
99
-          key: 'tollCollector'
106
+          key: 'inspectionManName'
100
         },
107
         },
101
         {
108
         {
102
           label: '收费员收入',
109
           label: '收费员收入',
103
-          key: ''
110
+          key: 'tollRevenue'
104
         },
111
         },
105
         {
112
         {
106
           label: '预收款',
113
           label: '预收款',
107
-          key: ''
114
+          key: 'advancePayment'
108
         },
115
         },
109
         {
116
         {
110
           label: '欠费追缴金额',
117
           label: '欠费追缴金额',
111
-          key: ''
118
+          key: 'recoveryAmount'
112
         },
119
         },
113
         {
120
         {
114
           label: '录入次数',
121
           label: '录入次数',
115
-          key: ''
122
+          key: 'recordIn'
116
         },
123
         },
117
         {
124
         {
118
           label: '录出次数',
125
           label: '录出次数',
119
-          key: ''
126
+          key: 'recordOut'
120
         },
127
         },
121
       ],
128
       ],
122
       tableData1: [],
129
       tableData1: [],
130
+      peopleOptions:[],
123
       total1: 0,
131
       total1: 0,
124
       pageSize1: 10,
132
       pageSize1: 10,
125
       pageNum1: 1,
133
       pageNum1: 1,
@@ -129,15 +137,15 @@ export default {
129
       columns2: [
137
       columns2: [
130
         {
138
         {
131
           label: '稽查员',
139
           label: '稽查员',
132
-          key: 'inspector'
140
+          key: 'inspectionManName'
133
         },
141
         },
134
         {
142
         {
135
           label: '稽查次数',
143
           label: '稽查次数',
136
-          key: ''
144
+          key: 'inspectionCount'
137
         },
145
         },
138
         {
146
         {
139
           label: '平均处理时间(/分钟)',
147
           label: '平均处理时间(/分钟)',
140
-          key: ''
148
+          key: 'perMinutes'
141
         },
149
         },
142
       ],
150
       ],
143
       tableData2: [],
151
       tableData2: [],
@@ -145,20 +153,25 @@ export default {
145
       pageSize2: 10,
153
       pageSize2: 10,
146
       pageNum2: 1,
154
       pageNum2: 1,
147
       formInline2: {
155
       formInline2: {
148
-        inspector: ''
156
+        inspector: '',
157
+        inspectionmanId:'',
158
+        rollmanId:'',
159
+        inspectionManName:'',
160
+        inspectionCount:'',
161
+        perMinutes:''
149
       },
162
       },
150
       columns3: [
163
       columns3: [
151
         {
164
         {
152
           label: '收费员',
165
           label: '收费员',
153
-          key: 'tollCollector'
166
+          key: 'inspectionManName'
154
         },
167
         },
155
         {
168
         {
156
           label: '稽查员',
169
           label: '稽查员',
157
-          key: 'inspector'
170
+          key: 'tollManName'
158
         },
171
         },
159
         {
172
         {
160
           label: '被稽查次数',
173
           label: '被稽查次数',
161
-          key: ''
174
+          key: 'inspectionCount'
162
         },
175
         },
163
       ],
176
       ],
164
       tableData3: [],
177
       tableData3: [],
@@ -172,32 +185,44 @@ export default {
172
     }
185
     }
173
   },
186
   },
174
   mounted() {
187
   mounted() {
175
-    // this.getTableData1()
176
-    // this.getTableData2()
177
-    // this.getTableData3()
188
+     this.getTableData1()
189
+     this.getTableData2()
190
+     this.getTableData3()
191
+     this.getPeopleName()
178
   },
192
   },
179
   watch: {
193
   watch: {
180
   },
194
   },
181
   methods: {
195
   methods: {
182
     onSubmit1() {
196
     onSubmit1() {
183
       this.pageNum1 = 1
197
       this.pageNum1 = 1
184
-      this.getTableData1()
198
+      api_l.optPerformanceassesspage({rollmanId: this.formInline1.tollCollector}).then(res => {
199
+        this.tableData1 = res.data.records
200
+      })
185
     },
201
     },
186
     onSubmit2() {
202
     onSubmit2() {
187
-      this.pageNum2 = 1
188
-      this.getTableData2()
203
+      const {pageNum2, pageSize2} = this
204
+      api_l.optPerformanceAssessStat1page({inspectionmanId:this.formInline2.inspectionmanId}).then(res => {
205
+        this.tableData2 = res.data.records
206
+        this.total2 = res.data.total
207
+      })
189
     },
208
     },
190
     onSubmit3() {
209
     onSubmit3() {
191
-      this.pageNum3 = 1
192
-      this.getTableData3()
210
+      const {pageNum3, pageSize3} = this
211
+      api_l.optPerformanceAssessStat2page({inspectionmanId:this.formInline2.inspectionmanId,rollmanId:this.formInline2.rollmanId}).then(res => {
212
+        this.tableData2 = res.data.records
213
+        this.total2 = res.data.total
214
+      })
193
     },
215
     },
194
     handlePageChange1() {
216
     handlePageChange1() {
195
       this.getTableData1()
217
       this.getTableData1()
218
+    },
219
+    getPeopleName(){
220
+
196
     },
221
     },
197
     getTableData1() {
222
     getTableData1() {
198
       const {pageNum1, pageSize1} = this
223
       const {pageNum1, pageSize1} = this
199
-      api.carListByPage({current: pageNum1, size: pageSize1, tollCollector:this.formInline1.tollCollector}).then(res => {
200
-        this.tableData1 = (res.data.records || []).map(item => ({...item, carType: dictionary.typeMap[item.carType]}))
224
+      api_l.optPerformanceassesspage({}).then(res => {
225
+        this.tableData1 = res.data.records
201
         this.total1 = res.data.total
226
         this.total1 = res.data.total
202
       })
227
       })
203
     },
228
     },
@@ -206,8 +231,8 @@ export default {
206
     },
231
     },
207
     getTableData2() {
232
     getTableData2() {
208
       const {pageNum2, pageSize2} = this
233
       const {pageNum2, pageSize2} = this
209
-      api.gjListByPage({current: pageNum2, size: pageSize2, inspector:this.formInline2.inspector}).then(res => {
210
-        this.tableData2 = res.data.records || []
234
+      api_l.optPerformanceAssessStat1page({}).then(res => {
235
+        this.tableData2 = res.data.records
211
         this.total2 = res.data.total
236
         this.total2 = res.data.total
212
       })
237
       })
213
     },
238
     },
@@ -216,8 +241,8 @@ export default {
216
     },
241
     },
217
     getTableData3() {
242
     getTableData3() {
218
       const {pageNum3, pageSize3} = this
243
       const {pageNum3, pageSize3} = this
219
-      api.tcjlListByPage({current: pageNum3, size: pageSize3, tollCollector:this.formInline3.tollCollector, inspector:this.formInline3.inspector}).then(res => {
220
-        this.tableData3 = res.data.records || []
244
+      api_l.optPerformanceAssessStat2page({}).then(res => {
245
+        this.tableData3 = res.data.records
221
         this.total3 = res.data.total
246
         this.total3 = res.data.total
222
       })
247
       })
223
     },
248
     },

+ 46 - 36
src/pages/index/components/personnel_management.vue

@@ -6,7 +6,7 @@
6
           <el-row>
6
           <el-row>
7
             <el-col :span="8">
7
             <el-col :span="8">
8
               <el-form-item label="车场名称: ">
8
               <el-form-item label="车场名称: ">
9
-                <el-select clearable v-model="formInline1.carParkName" placeholder="请选择">
9
+                <el-select clearable v-model="formInline1.parkId" placeholder="请选择">
10
                   <el-option
10
                   <el-option
11
                     v-for="(item,index) in carParkingNameOptions"
11
                     v-for="(item,index) in carParkingNameOptions"
12
                     :key="index"
12
                     :key="index"
@@ -52,7 +52,7 @@
52
           <div class="form-div">
52
           <div class="form-div">
53
             <el-form label-position="left" label-width="100px" :model="formLabelAlign">
53
             <el-form label-position="left" label-width="100px" :model="formLabelAlign">
54
               <el-form-item label="车场名称: ">
54
               <el-form-item label="车场名称: ">
55
-                <el-select clearable v-model="formLabelAlign.carParkName" placeholder="请选择">
55
+                <el-select clearable v-model="formLabelAlign.parkId" placeholder="请选择">
56
                   <el-option
56
                   <el-option
57
                     v-for="(item,index) in carParkingNameOptions"
57
                     v-for="(item,index) in carParkingNameOptions"
58
                     :key="index"
58
                     :key="index"
@@ -146,13 +146,17 @@
146
           <div class="form-div">
146
           <div class="form-div">
147
             <el-form label-position="left" label-width="110px" :model="formLabelAlign2">
147
             <el-form label-position="left" label-width="110px" :model="formLabelAlign2">
148
               <el-form-item label="收费员姓名">
148
               <el-form-item label="收费员姓名">
149
-                <el-input v-model="formLabelAlign2.tollCollectorName"></el-input>
149
+                <el-input v-model="formLabelAlign2.tollmanName"></el-input>
150
               </el-form-item>
150
               </el-form-item>
151
               <el-form-item label="出生日期">
151
               <el-form-item label="出生日期">
152
-                <el-input v-model="formLabelAlign2.birthday"></el-input>
152
+                  <el-date-picker
153
+                    v-model="formLabelAlign2.birthDay"
154
+                    type="datetime"
155
+                    placeholder="选择日期时间">
156
+                  </el-date-picker>
153
               </el-form-item>
157
               </el-form-item>
154
               <el-form-item label="岗位权限">
158
               <el-form-item label="岗位权限">
155
-                <el-input v-model="formLabelAlign2.postAuthority"></el-input>
159
+                <el-input v-model="formLabelAlign2.positionPermission"></el-input>
156
               </el-form-item>
160
               </el-form-item>
157
             </el-form>
161
             </el-form>
158
           </div>
162
           </div>
@@ -210,7 +214,7 @@ export default {
210
           key: 'tollmanReceiveId'
214
           key: 'tollmanReceiveId'
211
         },
215
         },
212
       ],
216
       ],
213
-      tableData1: [{carParkingName: 'sasa'}],
217
+      tableData1: [],
214
       total1: 0,
218
       total1: 0,
215
       pageSize1: 10,
219
       pageSize1: 10,
216
       pageNum1: 1,
220
       pageNum1: 1,
@@ -245,18 +249,18 @@ export default {
245
         },
249
         },
246
         {
250
         {
247
           label: '收费员姓名',
251
           label: '收费员姓名',
248
-          key: 'tollCollectorName'
252
+          key: 'tollmanName'
249
         },
253
         },
250
         {
254
         {
251
           label: '出生日期',
255
           label: '出生日期',
252
-          key: 'birthday'
256
+          key: 'birthDay'
253
         },
257
         },
254
         {
258
         {
255
           label: '岗位权限',
259
           label: '岗位权限',
256
-          key: 'postAuthority'
260
+          key: 'positionPermission'
257
         },
261
         },
258
       ],
262
       ],
259
-      tableData2: [{tollCollectorName: 'sasa1'}],
263
+      tableData2: [],
260
       total2: 0,
264
       total2: 0,
261
       pageSize2: 10,
265
       pageSize2: 10,
262
       pageNum2: 1,
266
       pageNum2: 1,
@@ -267,24 +271,23 @@ export default {
267
       dialogVisible2: false,
271
       dialogVisible2: false,
268
       formLabelAlign2: {
272
       formLabelAlign2: {
269
         id: '',
273
         id: '',
270
-        tollCollectorName: '',
271
-        birthday: '',
272
-        postAuthority: '',
274
+        parkId:'',
275
+        tollmanName: '',
276
+        birthDay: '',
277
+        positionPermission: '',
273
       },
278
       },
274
     }
279
     }
275
   },
280
   },
276
   mounted() {
281
   mounted() {
277
     this.getTableData1()
282
     this.getTableData1()
278
-    // this.getTableData2()
279
-    // this.getTableData3()
280
-    // this.getTableData4()
283
+    this.getTableData2()
281
     this.getCarParkingName()
284
     this.getCarParkingName()
282
     this.getPeople()
285
     this.getPeople()
283
   },
286
   },
284
   watch: {},
287
   watch: {},
285
   methods: {
288
   methods: {
286
     onSubmit1() {
289
     onSubmit1() {
287
-      api_l.optPersonnelManagementShiftPage({parkId: this.formLabelAlign.parkId}).then(res => {
290
+      api_l.optPersonnelManagementShiftPage({parkId: this.formInline1.parkId}).then(res => {
288
         this.tableData1 = res.data.records
291
         this.tableData1 = res.data.records
289
       })
292
       })
290
       },
293
       },
@@ -309,11 +312,8 @@ export default {
309
       this.dialogVisible = true
312
       this.dialogVisible = true
310
     },
313
     },
311
     deleteRow(record) {
314
     deleteRow(record) {
312
-      api_l.optPersonnelManagementShiftDelete({id: record.id}).then(res => {
313
-        if (res.code === 200) {
314
-          this.$message({type: 'success', message: '删除成功!'})
315
-          this.getTableData1()
316
-        }
315
+      api_l.optPersonnelManagementShiftDelete([{id: record.id}]).then(res => {
316
+        this.getTableData1()
317
       })
317
       })
318
     },
318
     },
319
     //车场
319
     //车场
@@ -330,23 +330,25 @@ export default {
330
     },
330
     },
331
     handleConfirm() {
331
     handleConfirm() {
332
       if (this.title === '修改') {
332
       if (this.title === '修改') {
333
-        api_l.optPersonnelManagementShiftEdit({id:this.formLabelAlign.id,incomeFee: this.formLabelAlign.incomeFee, parkingNum: this.formLabelAlign.parkingNum, excptionEvent: this.formLabelAlign.excptionEvent, deviceStatus: this.formLabelAlign.deviceStatus, vehicleStatus: this.formLabelAlign.vehicleStatus}).then(res => {
333
+        api_l.optPersonnelManagementShiftEdit({id:this.formLabelAlign2.id,incomeFee: this.formLabelAlign2.incomeFee, parkingNum: this.formLabelAlign2.parkingNum, excptionEvent: this.formLabelAlign2.excptionEvent, deviceStatus: this.formLabelAlign2.deviceStatus, vehicleStatus: this.formLabelAlign2.vehicleStatus}).then(res => {
334
           this.getTableData1()
334
           this.getTableData1()
335
           this.dialogVisible = false
335
           this.dialogVisible = false
336
         })
336
         })
337
       }
337
       }
338
     },
338
     },
339
     onSubmit2() {
339
     onSubmit2() {
340
-      api_l.optPersonnelManagementBasicPage({searchKey: this.formLabelAlign.ipAddr}).then(res => {
341
-
340
+      api_l.optPersonnelManagementBasicDetail({tollmanName: this.formInline2.tollCollectorName}).then(res => {
341
+        this.tableData2 = res.data.records
342
       })
342
       })
343
 
343
 
344
     },
344
     },
345
     handleAdd2() {
345
     handleAdd2() {
346
       this.title2 = '添加'
346
       this.title2 = '添加'
347
-      this.formLabelAlign2.tollCollectorName = ''
348
-      this.formLabelAlign2.birthday = ''
349
-      this.formLabelAlign2.postAuthority = ''
347
+      this.formLabelAlign2.id=''
348
+      this.formLabelAlign2.parkId=''
349
+      this.formLabelAlign2.tollmanName=''
350
+      this.formLabelAlign2.birthDay=''
351
+      this.formLabelAlign2.positionPermission=''
350
       this.dialogVisible2 = true
352
       this.dialogVisible2 = true
351
     },
353
     },
352
 
354
 
@@ -356,28 +358,36 @@ export default {
356
       this.dialogVisible2 = true
358
       this.dialogVisible2 = true
357
     },
359
     },
358
     deleteRow2(record) {
360
     deleteRow2(record) {
359
-      api.deleteWhiteIp({id: record.id}).then(res => {
360
-        if (res.code === 200) {
361
-          this.$message({type: 'success', message: '删除成功!'})
362
-          this.getTableData2()
363
-        }
361
+      api_l.optPersonnelManagementBasicDelete([{id: record.id}]).then(res => {
362
+      this.getTableData2()
364
       })
363
       })
365
     },
364
     },
366
     handleConfirm2() {
365
     handleConfirm2() {
367
       if (this.title2 === '修改') {
366
       if (this.title2 === '修改') {
368
-        api_l.optPersonnelManagementShiftEdit({carParkingName: this.formInline1.carParkingName}).then(res => {
369
-          this.tableData1 = res.data
367
+        api_l.optPersonnelManagementShiftEdit({id: this.formLabelAlign2.id,parkId: this.formLabelAlign2.parkId,tollmanName: this.formLabelAlign2.tollmanName,birthDay: this.formLabelAlign2.birthDay,positionPermission: this.formLabelAlign2.positionPermission}).then(res => {
368
+          this.dialogVisible2 = false
369
+          this.getTableData2()
370
         })
370
         })
371
+      }else if (this.title2 === '添加') {
372
+        api_l.optPersonnelManagementBasicAdd({parkId: this.formLabelAlign2.parkId,tollmanName: this.formLabelAlign2.tollmanName,birthDay: this.formLabelAlign2.birthDay,positionPermission: this.formLabelAlign2.positionPermission}).then(res => {
373
+          this.dialogVisible2 = false
374
+          this.getTableData2()
375
+      })
371
       }
376
       }
372
     },
377
     },
373
     handlePageChange1() {
378
     handlePageChange1() {
374
       this.getTableData1()
379
       this.getTableData1()
375
     },
380
     },
376
     getTableData1() {
381
     getTableData1() {
377
-      api_l.optPersonnelManagementShiftPage({}).then(res => {
382
+      api_l.optPerformanceAssessStat1page({}).then(res => {
378
         this.tableData1 = res.data.records
383
         this.tableData1 = res.data.records
379
       })
384
       })
380
     },
385
     },
386
+    getTableData2() {
387
+      api_l.optPersonnelManagementBasicDetail({}).then(res => {
388
+        this.tableData2 = res.data.records
389
+      })
390
+    },
381
     handlePageChange2() {
391
     handlePageChange2() {
382
       this.getTableData2()
392
       this.getTableData2()
383
     },
393
     },