Kaynağa Gözat

接口联调

duwendi 1 yıl önce
ebeveyn
işleme
e70f73658b

+ 2 - 2
src/api/article_z.js

@@ -5,10 +5,10 @@ export default {
5 5
 
6 6
   // 订单查询
7 7
   queryProductOrderSearchByPage(params) {
8
-    return axios.get(`/dash/product/order/search/page`, {params})
8
+    return axios.get(`/opt/product/order/search/page`, {params})
9 9
   },
10 10
   // 泊位列表
11 11
   queryBerthListByPage(params) {
12
-    return axios.get(`/dash/berth/list/page`, {params})
12
+    return axios.get(`/opt/berth/list/page`, {params})
13 13
   },
14 14
 }

+ 104 - 8
src/api/audit.js

@@ -17,24 +17,120 @@ export default {
17 17
   tccqkView(params) {
18 18
     return axios.get('/dash/parking/lot/situation/view', {params})
19 19
   },
20
-  // 预约停车-分页列表
20
+  // 停车场码表
21
+  parkDic(params) {
22
+    return axios.get('/opt/common/select/park', {params})
23
+  },
24
+  // 预约停车-规则分页列表
21 25
   yytcListByPage(params) {
22
-    return axios.get('/opt/reservation/rules/page', {params})
26
+    return axios.get('/opt/appointment/rules/page', {params})
23 27
   },
24 28
   // 预约停车-添加规则
25 29
   addRule(params) {
26
-    return axios.post('/opt/reservation/rules/add', params)
30
+    return axios.post('/opt/appointment/rules/add', params)
27 31
   },
28 32
   // 预约停车-修改规则
29 33
   editRule(params) {
30
-    return axios.post('/opt/reservation/rules/luohe/configuration/edit', params)
34
+    return axios.post('/opt/appointment/rules/edit', params)
31 35
   },
32 36
   // 预约停车-删除规则
33 37
   deleteRule(params) {
34
-    return axios.post('/opt/reservation/rules/delete', params)
38
+    return axios.post('/opt/appointment/rules/deleteById', params)
35 39
   },
36
-  // 预约订单-分页列表
40
+  // 预约订单-预约订单分页列表
37 41
   orderListByPage(params) {
38
-    return axios.get('/opt/reservation/orders/page', {params})
39
-  }
42
+    return axios.get('/opt/appointment/rules/order/page', {params})
43
+  },
44
+  // 预约订单-退款记录
45
+  refundListByPage(params) {
46
+    return axios.get('/opt/appointment/rules/refund/page', {params})
47
+  },
48
+  // 概览系统_概览
49
+  glxtView(params) {
50
+    return axios.get('/opt/parking/index/view', {params})
51
+  },
52
+  // 概览系统_停车收入概览
53
+  glxt1(params) {
54
+    return axios.post('/opt/parking/index/stat1', params)
55
+  },
56
+  // 概览系统_停车记录
57
+  glxt2(params) {
58
+    return axios.post('/opt/parking/index/stat2', params)
59
+  },
60
+  // todo 停车订单查询_支付订单查询
61
+  tcddcx1(params) {
62
+
63
+  },
64
+  // todo 停车订单查询_欠费订单查询
65
+  tcddcx2(params) {
66
+
67
+  },
68
+  // todo 停车订单查询_查询欠费订单信息
69
+  tcddcx3(params) {
70
+
71
+  },
72
+  // todo 停车订单查询_查询预付订单信息
73
+  tcddcx4(params) {
74
+
75
+  },
76
+  // 停车纠错_分页列表
77
+  tcjc(params) {
78
+    return axios.get('/opt/parking/correction/page', {params})
79
+  },
80
+  // 停车纠错_详情
81
+  tcjcDetail(params) {
82
+    return axios.get('/opt/parking/correction/detail', {params})
83
+  },
84
+  // 泊位列表__分页列表
85
+  berthListByPage(params) {
86
+    return axios.get('/opt/berth/list/page', {params})
87
+  },
88
+  // 停车卡_规则分页列表
89
+  tckListByPage(params) {
90
+    return axios.get('/opt/parking/card/page', {params})
91
+  },
92
+  // 停车卡_添加规则
93
+  addTckRule(params) {
94
+    return axios.post('/opt/parking/card/add', params)
95
+  },
96
+  // 停车卡_修改规则
97
+  editTckRule(params) {
98
+    return axios.post('/opt/parking/card/edit', params)
99
+  },
100
+  // 停车卡_删除规则
101
+  deleteEckRule(params) {
102
+    return axios.post('/opt/parking/card/deleteById', params)
103
+  },
104
+  // 停车卡_查看订单分页列表
105
+  tckOrderListByPage(params) {
106
+    return axios.get('/opt/parking/card/order/page', {params})
107
+  },
108
+  // 停车卡_统计信息
109
+  tckTjxxListByPage(params) {
110
+    return axios.get('/opt/parking/card/stat/page', {params})
111
+  },
112
+  // 错峰停车_规则分页列表
113
+  cftcListByPage(params) {
114
+    return axios.get('/opt/parking/unpeak/page', {params})
115
+  },
116
+  // 错峰停车_添加规则
117
+  addCftcRule(params) {
118
+    return axios.post('/opt/parking/unpeak/add', params)
119
+  },
120
+  // 错峰停车_修改规则
121
+  editCftcRule(params) {
122
+    return axios.post('/opt/parking/unpeak/edit', params)
123
+  },
124
+  // 错峰停车_删除规则
125
+  deleteCftcRule(params) {
126
+    return axios.post('/opt/parking/unpeak/deleteById', params)
127
+  },
128
+  // 错峰停车_查看订单分页列表
129
+  cftcOrderListByPage(params) {
130
+    return axios.get('/opt/parking/unpeak/order/page', {params})
131
+  },
132
+  // 错峰停车_统计信息
133
+  cftcTjxxListByPage(params) {
134
+    return axios.get('/opt/parking/card/stat/page', {params})
135
+  },
40 136
 }

+ 19 - 9
src/pages/index/components/appointment_rules.vue

@@ -201,6 +201,10 @@ export default {
201 201
     return {
202 202
       activeName: '预约规则',
203 203
       columns1: [
204
+        {
205
+          label: '规则名称',
206
+          key: 'ruleName'
207
+        },
204 208
         {
205 209
           label: '停车场名称',
206 210
           key: 'carParkName'
@@ -227,7 +231,7 @@ export default {
227 231
       pageSize1: 10,
228 232
       pageNum1: 1,
229 233
       formInline1: {
230
-        parkingName: '',
234
+        parkId: '',
231 235
         startTime:'',
232 236
         endTime:''
233 237
       },
@@ -243,7 +247,7 @@ export default {
243 247
       columns2: [
244 248
         {
245 249
           label: '车牌号',
246
-          key: 'code'
250
+          key: 'plateNo'
247 251
         },
248 252
         {
249 253
           label: '停车场名称',
@@ -254,12 +258,12 @@ export default {
254 258
           key: 'appointmentTime'
255 259
         },
256 260
         {
257
-          label: '预约费用',
258
-          key: 'payAmount'
261
+          label: '支付状态',
262
+          key: 'payStatus'
259 263
         },
260 264
         {
261
-          label: '状态',
262
-          key: 'orderStatus'
265
+          label: '退款状态',
266
+          key: 'refundStatus'
263 267
         },
264 268
       ],
265 269
       tableData2: [],
@@ -284,8 +288,8 @@ export default {
284 288
           key: 'orderStatus'
285 289
         },
286 290
         {
287
-          label: '退款金额',
288
-          key: 'payAmount'
291
+          label: '退款状态',
292
+          key: 'refundStatus'
289 293
         },
290 294
       ],
291 295
       tableData3: [],
@@ -307,6 +311,7 @@ export default {
307 311
     }
308 312
   },
309 313
   mounted() {
314
+    this.getParkDic()
310 315
     this.getTableData1()
311 316
     this.getTableData2()
312 317
     this.getTableData3()
@@ -314,6 +319,11 @@ export default {
314 319
   watch: {
315 320
   },
316 321
   methods: {
322
+    getParkDic() {
323
+      api.parkDic().then(res => {
324
+        this.parkDic = res.data || []
325
+      })
326
+    },
317 327
     onSubmit1() {
318 328
       this.pageNum1 = 1
319 329
       this.getTableData1()
@@ -399,7 +409,7 @@ export default {
399 409
     },
400 410
     getTableData3() {
401 411
       const {pageNum3, pageSize3} = this
402
-      api.orderListByPage({current: pageNum3, size: pageSize3, ...this.formInline3, orderStatus: '已退款'}).then(res => {
412
+      api.refundListByPage({current: pageNum3, size: pageSize3, ...this.formInline3}).then(res => {
403 413
         this.tableData3 = res.data.records || []
404 414
         this.total3 = res.data.total
405 415
       })

+ 42 - 117
src/pages/index/components/berth_list.vue

@@ -4,10 +4,24 @@
4 4
       <div style="width: 100%">
5 5
         <h4>泊位列表</h4>
6 6
         <br>
7
-        <el-form class="form-wrapper" :inline="true">
8
-        <el-form-item>
9
-          <el-button type="success" @click="handleAdd">添加白名单</el-button>
10
-        </el-form-item>
7
+        <el-form class="form-wrapper" :inline="true" :model="formInline" style="margin-bottom: 20px;">
8
+          <el-row>
9
+            <el-col :span="6">
10
+              <el-form-item label="停车场名称:">
11
+                <el-input v-model="formInline.parkName" placeholder="请输入"></el-input>
12
+              </el-form-item>
13
+            </el-col>
14
+            <el-col :span="6">
15
+              <el-form-item label="泊位编号:">
16
+                <el-input v-model="formInline.berthCode" placeholder="请输入"></el-input>
17
+              </el-form-item>
18
+            </el-col>
19
+            <el-col :span="4">
20
+              <el-form-item>
21
+                <el-button type="primary" class="query-btn" @click="onSubmit">查询</el-button>
22
+              </el-form-item>
23
+            </el-col>
24
+          </el-row>
11 25
         </el-form>
12 26
         <br>
13 27
         <el-table :data="tableData">
@@ -20,30 +34,12 @@
20 34
                          :current-page.sync="pageNum" :page-size.sync="pageSize">
21 35
           </el-pagination>
22 36
       </div>
23
-        <el-dialog
24
-          :title="title"
25
-          :visible.sync="dialogVisible"
26
-          width="60%"
27
-          custom-class="audit-dialog">
28
-          <el-form label-position="left" label-width="80px" :model="formLabelAlign">
29
-            <el-form-item label="泊位号">
30
-              <el-input v-model="formLabelAlign.berthCode"></el-input>
31
-            </el-form-item>
32
-            <el-form-item label="泊车状态">
33
-              <el-input v-model="formLabelAlign.berthIsorno"></el-input>
34
-            </el-form-item>
35
-          </el-form>
36
-          <span slot="footer" class="dialog-footer">
37
-            <el-button @click="dialogVisible = false">取 消</el-button>
38
-            <el-button type="primary" @click="handleConfirm">确 定</el-button>
39
-        </span>
40
-        </el-dialog>
41 37
     </div>
42 38
   </div>
43 39
   </div>
44 40
 </template>
45 41
 <script>
46
-import api from "@/api/article_z";
42
+import api from "@/api/audit";
47 43
 
48 44
 
49 45
 export default {
@@ -52,6 +48,10 @@ export default {
52 48
   },
53 49
   data() {
54 50
     return {
51
+      formInline: {
52
+        parkName: '',
53
+        berthCode: ''
54
+      },
55 55
       columns: [
56 56
         {
57 57
           label: '停车场',
@@ -78,14 +78,7 @@ export default {
78 78
           key: 'isSharePark'
79 79
         },
80 80
       ],
81
-      formLabelAlign: {
82
-        berthCode: '',
83
-        berthIsorno: ''
84
-      },
85 81
       tableData:[],
86
-      value: '',
87
-      dialogVisible: false,
88
-      title: '',
89 82
       total: 0,
90 83
       pageSize: 5,
91 84
       pageNum: 1,
@@ -96,19 +89,17 @@ export default {
96 89
   },
97 90
   watch: {},
98 91
   methods: {
99
-    handleAdd () {
100
-      this.title = '添加泊位列表'
101
-      this.tableData.berthCode = ''
102
-      this.tableData.berthIsorno = ''
103
-      this.dialogVisible = true
92
+    onSubmit() {
93
+      this.pageNum = 1
94
+      this.getTableData()
104 95
     },
105 96
     handlePageChange() {
106 97
       this.getTableData()
107 98
     },
108 99
     getTableData() {
109 100
       const {pageNum, pageSize} = this
110
-      api.queryBerthListByPage({current: pageNum, size: pageSize}).then(res => {
111
-        this.tableData = res.data.records || []
101
+      api.berthListByPage({current: pageNum, size: pageSize, ...this.formInline}).then(res => {
102
+        this.tableData = (res.data.records || []).map(item => ({...item, berthIsorno: (item.berthIsorno === '0' ? '否':'是'),isTidalPark: (item.isTidalPark === '0' ? '否':'是'),hasChargingPile: (item.hasChargingPile === '0' ? '否':'是'),isSharePark: (item.isSharePark === '0' ? '否':'是'),}))
112 103
         this.total = res.data.total
113 104
       })
114 105
     },
@@ -116,92 +107,26 @@ export default {
116 107
 }
117 108
 </script>
118 109
 <style lang="scss" scoped>
119
-.form-wrapper {
120
-  margin-bottom: 20px;
121
-}
122
-/deep/ .el-input__inner {
123
-  background: #2d3744;
124
-  border: none;
125
-  border-radius: 0;
126
-}
127
-/deep/ .el-select {
128
-  height: 40px;
129
-  .el-input__inner {
130
-    height: 40px;
131
-  }
132
-  .el-input__prefix, .el-input__suffix {
133
-    height: 40px;
134
-  }
135
-
136
-  /* 下面设置右侧按钮居中 */
137
-  .el-input__suffix {
138
-    top: 0px;
139
-    display: flex;
140
-    justify-content: center;
141
-    align-items: center;
142
-    flex-wrap: nowrap;
143
-    flex-direction: row;
144
-    align-content: flex-start;
145
-  }
146
-  /* 输入框加上上下边是 32px + 2px =34px */
147
-  .el-input__icon {
148
-    line-height: 0px;
149
-  }
150
-}
151
-/deep/ .form-wrapper .el-button {
152
-  background: linear-gradient(90deg,#0158d9,#3c97e4);
153
-  width: 100px;
154
-  height: 40px;
155
-}
156 110
 .body-wrapper {
157
-  width: 100%;
158
-  height: 100%;
159
-  box-sizing: border-box;
111
+  padding: 20px;
160 112
 
161
-}
162
-
163
-.model-pie-body {
164
-  width: 100%;
165
-  height: 99%;
166
-}
167
-
168
-.form-wrapper {
169
-  margin-bottom: 20px;
170
-}
171
-/deep/ .el-input__inner {
172
-  background: #2d3744;
173
-  border: none;
174
-  border-radius: 0;
175
-}
176
-/deep/ .el-select {
177
-  height: 40px;
178
-  .el-input__inner {
179
-    height: 40px;
180
-  }
181
-  .el-input__prefix, .el-input__suffix {
182
-    height: 40px;
113
+  .button-block {
114
+    text-align: right;
115
+    margin-bottom: 20px;
183 116
   }
184 117
 
185
-  /* 下面设置右侧按钮居中 */
186
-  .el-input__suffix {
187
-    top: 0px;
188
-    display: flex;
189
-    justify-content: center;
190
-    align-items: center;
191
-    flex-wrap: nowrap;
192
-    flex-direction: row;
193
-    align-content: flex-start;
118
+  .table-pagination {
119
+    text-align: right;
194 120
   }
195
-  /* 输入框加上上下边是 32px + 2px =34px */
196
-  .el-input__icon {
197
-    line-height: 0px;
121
+
122
+  .search-card {
123
+    margin-bottom: 20px;
124
+    text-align: center;
125
+
126
+    .input-wrapper {
127
+      width: 40%;
128
+    }
198 129
   }
199 130
 }
200
-/deep/ .form-wrapper .el-button {
201
-  background: linear-gradient(90deg,#0158d9,#3c97e4);
202
-  width: 100px;
203
-  height: 40px;
204
-}
205
-
206 131
 
207 132
 </style>

+ 43 - 55
src/pages/index/components/parking_card.vue

@@ -6,7 +6,7 @@
6 6
           <el-row>
7 7
             <el-col :span="8">
8 8
               <el-form-item label="停车卡名称: ">
9
-                <el-input v-model="formInline1.parkingCardName" placeholder="请输入"></el-input>
9
+                <el-input v-model="formInline1.cardName" placeholder="请输入"></el-input>
10 10
               </el-form-item>
11 11
             </el-col>
12 12
             <el-col :span="8">
@@ -46,15 +46,16 @@
46 46
           <div class="form-div">
47 47
             <el-form label-position="left" label-width="85px" :model="formLabelAlign">
48 48
               <el-form-item label="停车卡名称">
49
-                <el-input v-model="formLabelAlign.parkingCardName"></el-input>
49
+                <el-input v-model="formLabelAlign.cardName"></el-input>
50 50
               </el-form-item>
51 51
               <el-form-item label="可用次数">
52
-                <el-input v-model="formLabelAlign.totalEnable"></el-input>
52
+                <el-input v-model="formLabelAlign.useTimes"></el-input>
53 53
               </el-form-item>
54 54
               <el-form-item label="有效期至">
55 55
                 <el-date-picker
56
-                  v-model="formLabelAlign.validity"
56
+                  v-model="formLabelAlign.effectTime"
57 57
                   type="date"
58
+                  value-format="yyyy-MM-dd HH:mm:ss"
58 59
                   placeholder="选择日期">
59 60
                 </el-date-picker>
60 61
               </el-form-item>
@@ -71,7 +72,7 @@
71 72
           <el-row>
72 73
             <el-col :span="5">
73 74
               <el-form-item label="订单号: ">
74
-                <el-input v-model="formInline2.orderCode" placeholder="请输入"></el-input>
75
+                <el-input v-model="formInline2.orderNo" placeholder="请输入"></el-input>
75 76
               </el-form-item>
76 77
             </el-col>
77 78
             <el-col :span="5">
@@ -79,16 +80,7 @@
79 80
                 <el-select clearable v-model="formInline2.orderStatus" placeholder="订单状态" popper-class="cur-select">
80 81
                   <el-option label="全部" value=""></el-option>
81 82
                   <el-option label="已完成" value="已完成"></el-option>
82
-                  <el-option label="未支付" value="未支付"></el-option>
83
-                </el-select>
84
-              </el-form-item>
85
-            </el-col>
86
-            <el-col :span="5">
87
-              <el-form-item label="购买方式:">
88
-                <el-select clearable v-model="formInline2.orderWay" placeholder="购买方式" popper-class="cur-select">
89
-                  <el-option label="全部" value=""></el-option>
90
-                  <el-option label="客户端录入" value="客户端录入"></el-option>
91
-                  <el-option label="后台录入" value="后台录入"></el-option>
83
+                  <el-option label="使用中" value="使用中"></el-option>
92 84
                 </el-select>
93 85
               </el-form-item>
94 86
             </el-col>
@@ -122,10 +114,10 @@
122 114
                 <el-input v-model="formLabelAlign2.parkingCardName"></el-input>
123 115
               </el-form-item>
124 116
               <el-form-item label="下单人">
125
-                <el-input v-model="formLabelAlign2.placeOrderPerson"></el-input>
117
+                <el-input v-model="formLabelAlign2.memberId"></el-input>
126 118
               </el-form-item>
127 119
               <el-form-item label="支付金额">
128
-                <el-input v-model="formLabelAlign2.payMoney"></el-input>
120
+                <el-input v-model="formLabelAlign2.payAmount"></el-input>
129 121
               </el-form-item>
130 122
             </el-form>
131 123
           </div>
@@ -140,7 +132,7 @@
140 132
           <el-row>
141 133
             <el-col :span="8">
142 134
               <el-form-item label="停车卡名称:">
143
-                <el-input v-model="formInline3.parkingCardName" placeholder="请输入"></el-input>
135
+                <el-input v-model="formInline3.cardName" placeholder="请输入"></el-input>
144 136
               </el-form-item>
145 137
             </el-col>
146 138
             <el-col :span="8">
@@ -175,52 +167,51 @@ export default {
175 167
       columns1: [
176 168
         {
177 169
           label: '停车卡名称',
178
-          key: 'parkingCardName'
170
+          key: 'cardName'
179 171
         },
180 172
         {
181 173
           label: '可用次数',
182
-          key: 'totalEnable'
174
+          key: 'useTimes'
183 175
         },
184 176
         {
185 177
           label: '有效期至',
186
-          key: 'validity'
178
+          key: 'effectTime'
187 179
         },
188 180
       ],
189
-      tableData1: [{parkingCardName:'十次停车次卡',totalEnable:'十次停车次卡',validity:'2024-12-31'}],
181
+      tableData1: [],
190 182
       total1: 0,
191 183
       pageSize1: 10,
192 184
       pageNum1: 1,
193 185
       formInline1: {
194
-        parkingCardName: ''
186
+        cardName: ''
195 187
       },
196 188
       title:'',
197 189
       dialogVisible:false,
198 190
       formLabelAlign: {
199
-        id: '',
200
-        parkingCardName: '',
201
-        totalEnable: '',
202
-        validity: '',
191
+        cardName: '',
192
+        useTimes: '',
193
+        effectTime: '',
203 194
       },
204 195
       columns2: [
205 196
         {
206 197
           label: '订单号',
207
-          key: 'id'
198
+          key: 'orderNo'
208 199
         },
209 200
         {
210
-          label: '停车卡名称',
211
-          key: 'parkingCardName'
201
+          label: '停车卡编号',
202
+          key: 'cardId'
212 203
         },
213 204
         {
214 205
           label: '下单人',
215
-          key: 'placeOrderPerson'
216
-        },
217
-        {
218
-          label: '下单时间',
219
-          key: 'placeOrderTime'
206
+          key: 'memberId'
220 207
         },
208
+        // {
209
+        //   label: '下单时间',
210
+        //   key: 'placeOrderTime'
211
+        // },
221 212
         {
222 213
           label: '支付金额',
223
-          key: 'payMoney'
214
+          key: 'buyWay'
224 215
         },
225 216
         {
226 217
           label: '订单状态',
@@ -236,9 +227,8 @@ export default {
236 227
       pageSize2: 10,
237 228
       pageNum2: 1,
238 229
       formInline2: {
239
-        orderCode: '',
230
+        orderNo: '',
240 231
         orderStatus:'',
241
-        orderWay:''
242 232
       },
243 233
       title2:'',
244 234
       dialogVisible2:false,
@@ -251,27 +241,27 @@ export default {
251 241
       columns3: [
252 242
         {
253 243
           label: '停车卡名称',
254
-          key: ''
244
+          key: 'cardName'
255 245
         },
256 246
         {
257 247
           label: '购买数量',
258
-          key: ''
248
+          key: 'buyCount'
259 249
         },
260 250
         {
261 251
           label: '客户端购买数量',
262
-          key: ''
252
+          key: 'clientBuyCount'
263 253
         },
264 254
         {
265 255
           label: '后台录入数量',
266
-          key: ''
256
+          key: 'adminRecordCount'
267 257
         },
268 258
         {
269 259
           label: '使用中数量',
270
-          key: ''
260
+          key: 'usedCount'
271 261
         },
272 262
         {
273 263
           label: '金额总计',
274
-          key: ''
264
+          key: 'totalFee'
275 265
         },
276 266
       ],
277 267
       tableData3: [],
@@ -284,9 +274,9 @@ export default {
284 274
     }
285 275
   },
286 276
   mounted() {
287
-    // this.getTableData1()
288
-    // this.getTableData2()
289
-    // this.getTableData3()
277
+    this.getTableData1()
278
+    this.getTableData2()
279
+    this.getTableData3()
290 280
   },
291 281
   watch: {
292 282
   },
@@ -297,9 +287,7 @@ export default {
297 287
     },
298 288
     handleAdd () {
299 289
       this.title = '添加规则'
300
-      this.formLabelAlign.parkingCardName= ''
301
-      this.formLabelAlign.totalEnable= ''
302
-      this.formLabelAlign.validity= ''
290
+      this.formLabelAlign = {}
303 291
       this.dialogVisible = true
304 292
     },
305 293
     handleEdit(row) {
@@ -317,7 +305,7 @@ export default {
317 305
     },
318 306
     handleConfirm() {
319 307
       if (this.title === '修改规则') {
320
-        api.addWhiteIp({ipAddr: this.formLabelAlign.ipAddr, id: this.formLabelAlign.id}).then(res => {
308
+        api.editTckRule({...this.formLabelAlign}).then(res => {
321 309
           if (res.code === 200) {
322 310
             this.dialogVisible = false
323 311
             this.$message({
@@ -328,7 +316,7 @@ export default {
328 316
           }
329 317
         })
330 318
       } else {
331
-        api.addWhiteIp({ipAddr: this.formLabelAlign.ipAddr}).then(res => {
319
+        api.addTckRule({...this.formLabelAlign, effectTime: this.formLabelAlign.effectTime ? this.formLabelAlign.effectTime.substring(0, 10) + " 23:59:59" :''}).then(res => {
332 320
           if (res.code === 200) {
333 321
             this.dialogVisible = false
334 322
             this.$message({
@@ -373,7 +361,7 @@ export default {
373 361
     },
374 362
     getTableData1() {
375 363
       const {pageNum1, pageSize1} = this
376
-      api.carListByPage({current: pageNum1, size: pageSize1, ...this.formInline1}).then(res => {
364
+      api.tckListByPage({current: pageNum1, size: pageSize1, ...this.formInline1}).then(res => {
377 365
         this.tableData1 = (res.data.records || []).map(item => ({...item, carType: dictionary.typeMap[item.carType]}))
378 366
         this.total1 = res.data.total
379 367
       })
@@ -383,7 +371,7 @@ export default {
383 371
     },
384 372
     getTableData2() {
385 373
       const {pageNum2, pageSize2} = this
386
-      api.gjListByPage({current: pageNum2, size: pageSize2, ...this.formInline2}).then(res => {
374
+      api.tckOrderListByPage({current: pageNum2, size: pageSize2, ...this.formInline2}).then(res => {
387 375
         this.tableData2 = res.data.records || []
388 376
         this.total2 = res.data.total
389 377
       })
@@ -393,7 +381,7 @@ export default {
393 381
     },
394 382
     getTableData3() {
395 383
       const {pageNum3, pageSize3} = this
396
-      api.tcjlListByPage({current: pageNum3, size: pageSize3, ...this.formInline3}).then(res => {
384
+      api.tckTjxxListByPage({current: pageNum3, size: pageSize3, ...this.formInline3}).then(res => {
397 385
         this.tableData3 = res.data.records || []
398 386
         this.total3 = res.data.total
399 387
       })

+ 59 - 58
src/pages/index/components/parking_correction.vue

@@ -1,38 +1,43 @@
1 1
 <template>
2 2
   <div class="body-wrapper">
3
-    <el-form class="form-wrapper" :inline="true" :model="formInline1" style="margin-bottom: 20px;">
3
+    <el-form class="form-wrapper" :inline="true" :model="formInline" style="margin-bottom: 20px;">
4 4
       <el-row>
5 5
         <el-col :span="6">
6 6
           <el-form-item label="停车场名称:">
7
-            <el-input v-model="formInline1.parkingName" placeholder="请输入"></el-input>
7
+            <el-input v-model="formInline.carParkName" placeholder="请输入"></el-input>
8 8
           </el-form-item>
9 9
         </el-col>
10 10
         <el-col :span="6">
11 11
           <el-form-item label="错误类型:">
12
-            <el-select clearable v-model="formInline1.mistakeType" placeholder="错误类型" popper-class="cur-select">
12
+            <el-select clearable v-model="formInline.errorType" placeholder="错误类型" popper-class="cur-select">
13 13
               <el-option label="全部" value=""></el-option>
14 14
               <el-option label="位置错误" value="位置错误"></el-option>
15 15
               <el-option label="信息错误" value="信息错误"></el-option>
16 16
             </el-select>
17 17
           </el-form-item>
18 18
         </el-col>
19
-        <el-col :span="6">
19
+        <el-col :span="8">
20 20
           <el-form-item label="纠错时间:">
21 21
             <el-date-picker
22
-              v-model="formInline1.mistakeTime"
23
-              type="date"
24
-              placeholder="选择日期">
22
+              v-model="formInline.correctionTime"
23
+              type="daterange"
24
+              align="right"
25
+              unlink-panels
26
+              range-separator="-"
27
+              value-format="yyyy-MM-dd HH:mm:ss"
28
+              start-placeholder="开始日期"
29
+              end-placeholder="结束日期">
25 30
             </el-date-picker>
26 31
           </el-form-item>
27 32
         </el-col>
28
-        <el-col :span="5">
33
+        <el-col :span="4">
29 34
           <el-form-item>
30 35
             <el-button type="primary" class="query-btn" @click="onSubmit1">查询</el-button>
31 36
           </el-form-item>
32 37
         </el-col>
33 38
       </el-row>
34 39
     </el-form>
35
-    <el-table :data="tableData1">
40
+    <el-table :data="tableData">
36 41
       <el-table-column v-for="(item, index) in columns1" :key="index" :label="item.label" :prop="item.key">
37 42
       </el-table-column>
38 43
       <el-table-column
@@ -44,30 +49,27 @@
44 49
       </el-table-column>
45 50
     </el-table>
46 51
     <div class="table-pagination">
47
-      <el-pagination layout="prev, pager, next" :total="total1" @current-change="handlePageChange1"
48
-                     :current-page.sync="pageNum1" :page-size.sync="pageSize1">
52
+      <el-pagination layout="prev, pager, next" :total="total" @current-change="handlePageChange"
53
+                     :current-page.sync="pageNum" :page-size.sync="pageSize">
49 54
       </el-pagination>
50 55
     </div>
51 56
     <el-dialog
52
-      title="退款详情"
57
+      title="停车纠错详情"
53 58
       :visible.sync="dialogVisible"
54 59
       width="50%"
55 60
       custom-class="audit-dialog">
56 61
       <el-form disabled style="height: 350px" class="form-div" label-position="left" label-width="90px" :model="formLabelAlign">
57
-        <el-form-item label="id">
58
-          <el-input v-model="formLabelAlign.parkingName"/>
59
-        </el-form-item>
60
-        <el-form-item label="车牌号">
61
-          <el-input  v-model="formLabelAlign.plateNo"/>
62
+        <el-form-item label="停车场ID">
63
+          <el-input v-model="formLabelAlign.parkId"/>
62 64
         </el-form-item>
63 65
         <el-form-item label="停车场名称">
64
-          <el-input v-model="formLabelAlign.mistakeType"/>
66
+          <el-input v-model="formLabelAlign.carParkName"/>
65 67
         </el-form-item>
66
-        <el-form-item label="退款日期">
67
-          <el-input v-model="formLabelAlign.mistakeTime"/>
68
+        <el-form-item label="错误类型">
69
+          <el-input v-model="formLabelAlign.errorType"/>
68 70
         </el-form-item>
69
-        <el-form-item label="退款金额">
70
-          <el-input v-model="formLabelAlign.submitPerson"/>
71
+        <el-form-item label="纠错时间">
72
+          <el-input v-model="formLabelAlign.correctionTime"/>
71 73
         </el-form-item>
72 74
       </el-form>
73 75
     </el-dialog>
@@ -84,66 +86,65 @@ export default {
84 86
       columns1: [
85 87
         {
86 88
           label: '停车场名称',
87
-          key: 'parkingName'
88
-        },
89
-        {
90
-          label: '车牌号',
91
-          key: 'plateNo'
89
+          key: 'carParkName'
92 90
         },
93 91
         {
94 92
           label: '错误类型',
95
-          key: 'mistakeType'
93
+          key: 'errorType'
96 94
         },
97 95
         {
98 96
           label: '纠错时间',
99
-          key: 'mistakeTime'
100
-        },
101
-        {
102
-          label: '提交人',
103
-          key: 'submitPerson'
104
-        },
97
+          key: 'correctionTime'
98
+        }
105 99
       ],
106
-      tableData1: [{parkingName:'万宝手机城新东店',plateNo:'豫LU5698',mistakeType:'位置错误',mistakeTime:'2024-01-01 12:15:00',submitPerson:'赵鹏'}],
107
-      total1: 0,
108
-      pageSize1: 10,
109
-      pageNum1: 1,
110
-      formInline1: {
111
-        parkingName: '',
112
-        mistakeType: '',
113
-        mistakeTime: '',
100
+      tableData: [],
101
+      total: 0,
102
+      pageSize: 10,
103
+      pageNum: 1,
104
+      formInline: {
105
+        carParkName: '',
106
+        errorType: '',
107
+        correctionTime: '',
114 108
       },
115 109
       dialogVisible:false,
116 110
       formLabelAlign: {
117
-        id: '',
118
-        parkingName: '',
119
-        plateNo: '',
120
-        mistakeType: '',
121
-        mistakeTime: '',
122
-        submitPerson:''
111
+        carParkName: '',
112
+        errorType: '',
113
+        correctionTime: '',
123 114
       },
124 115
     }
125 116
   },
126 117
   mounted() {
127
-    // this.getTableData1()
118
+    this.getTableData()
128 119
   },
129 120
   watch: {},
130 121
   methods: {
131 122
     onSubmit1() {
132
-      this.pageNum1 = 1
133
-      this.getTableData1()
123
+      this.pageNum = 1
124
+      this.getTableData()
134 125
     },
135 126
     handleDetail(row) {
136 127
       this.formLabelAlign = row
137 128
       this.dialogVisible = true
138 129
     },
139
-    handlePageChange1() {
140
-      this.getTableData1()
130
+    handlePageChange() {
131
+      this.getTableData()
141 132
     },
142
-    getTableData1() {
143
-      const {pageNum1, pageSize1} = this
144
-      api.carListByPage({current: pageNum1, size: pageSize1, ...this.formInline1}).then(res => {
145
-        this.tableData1 = (res.data.records || []).map(item => ({...item, carType: dictionary.typeMap[item.carType]}))
146
-        this.total1 = res.data.total
133
+    getTableData() {
134
+      const {pageNum, pageSize} = this
135
+      let params = {...this.formInline}
136
+      if (
137
+        this.formInline.correctionTime && this.formInline.correctionTime.length === 2 &&
138
+        this.formInline.correctionTime[1] !== ""
139
+      ) {
140
+        this.formInline.correctionTime[1] = this.formInline.correctionTime[1].substring(0, 10) + " 23:59:59";
141
+        params.startCorrectionTime = this.formInline.correctionTime[0]
142
+        params.endCorrectionTime = this.formInline.correctionTime[1]
143
+      }
144
+      delete params.correctionTime
145
+      api.tcjc({current: pageNum, size: pageSize, ...params}).then(res => {
146
+        this.tableData = (res.data.records || []).map(item => ({...item, carType: dictionary.typeMap[item.carType]}))
147
+        this.total = res.data.total
147 148
       })
148 149
     },
149 150
 

+ 32 - 16
src/pages/index/components/parking_index.vue

@@ -5,19 +5,19 @@
5 5
         <h2>概览</h2>
6 6
         <div class="box-item" style="border: 2px dotted #a1a1a1;border-radius: 5px;padding: 20px 20px 40px 20px;margin-top: 15px">
7 7
           <h4 style="float: left">停车场总数</h4>
8
-          <span style="float: right;color: red">{{viewData.totalParking}}</span>
8
+          <span style="float: right;color: red">{{viewData.totalPark}}</span>
9 9
         </div>
10 10
         <div class="box-item" style="border: 2px dotted #757575;border-radius: 5px;padding: 20px 20px 40px 20px;margin-top: 15px">
11 11
           <h4 style="float: left">今日停车记录数</h4>
12
-          <span style="float: right;color: #fc6969">{{viewData.todayTotal}}</span>
12
+          <span style="float: right;color: red">{{viewData.totalRecord}}</span>
13 13
         </div>
14 14
         <div class="box-item" style="border: 2px dotted #757575;border-radius: 5px;padding: 20px 20px 40px 20px;margin-top: 15px">
15 15
           <h4 style="float: left">今日实收总额</h4>
16
-          <span style="float: right;color: #fc6969">{{viewData.todayInput}}</span>
16
+          <span style="float: right;color: red">{{viewData.totalFee || 0}}</span>
17 17
         </div>
18 18
         <div class="box-item" style="border: 2px dotted #757575;border-radius: 5px;padding: 20px 20px 40px 20px;margin-top: 15px">
19 19
           <h4 style="float: left">日均时长泊位利用率</h4>
20
-          <span style="float: right;color: #fc6969">{{viewData.dailyBerth}}</span>
20
+          <span style="float: right;color: red">{{viewData.dayBerthRate}}%</span>
21 21
         </div>
22 22
       </div>
23 23
       <div class="body-box" style="width: 48%;height:400px;border-radius: 5px;background-color: #f6f5f5;padding: 20px;color: #525252;">
@@ -29,7 +29,7 @@
29 29
           :radiusArr="['30%', '70%']"
30 30
           :colorArr="modelPieColor"
31 31
           :labelFormat="['{name|{b}}', '{sub|{d}%}', '{hr|}']"
32
-          :dataset="modelData.list"
32
+          :dataset="modelData"
33 33
           :encode="{ itemName: 'name', value: 'value' }"
34 34
         />
35 35
       </div>
@@ -45,11 +45,11 @@
45 45
           :bottom="30"
46 46
           :xlabelFormat="xLabelFormat"
47 47
           :top="60"
48
-          yAxisName="()"
48
+          yAxisName="()"
49 49
           :tooltip="tooltipFormat"
50 50
           :dataset="bardata"
51 51
           :encode="[
52
-            {x: 'month', y: 'hs', seriesName: '接入数量'}]"
52
+            {x: 'mouth', y: 'hs', seriesName: '停车数量'}]"
53 53
           :labelSize="15"
54 54
           id="fxdqhszzt"
55 55
         />
@@ -70,30 +70,46 @@ export default {
70 70
   data() {
71 71
     return {
72 72
       viewData:{
73
-        totalParking:"0",
74
-        todayTotal:"0",
75
-        todayInput:"0",
76
-        dailyBerth:"0"
73
+        totalPark: 0,
74
+        totalRecord:0,
75
+        totalFee:0,
76
+        dayBerthRate:0
77 77
       },
78 78
       modelPieColor: ["#4382f6", "#81f878", "#f2ff90", "#FF9800", "#9C27B0"],
79
-      modelData: {
80
-        list: [{name: '源汇区',value:'38.4'},{name:'郾城区',value:'26.4'}, {name:'召陵区',value:'35.2'}]
81
-      },
82
-      bardata: [{month:'源汇区',hs:'600'},{month:'郾城区',hs:'685'},{month:'召陵区',hs:'843'},],
79
+      modelData: [],
80
+      bardata: [],
83 81
     }
84 82
   },
85 83
   mounted() {
84
+    this.getView();
85
+    this.getPieData();
86
+    this.getLineData();
86 87
   },
87 88
   watch: {
88 89
   },
89 90
   methods: {
91
+    getView() {
92
+      api.glxtView().then(res => {
93
+        this.viewData = res.data
94
+      })
95
+    },
96
+    getPieData() {
97
+      api.glxt1().then(res => {
98
+        this.modelData = res.data || []
99
+      })
100
+    },
101
+    getLineData() {
102
+      api.glxt2().then(res => {
103
+        this.bardata = res.data || []
104
+      })
105
+    },
90 106
     tooltipFormat(params) {
91 107
       const type = params[0].seriesType;
92 108
       const data = params[0].data;
93 109
       // ${params[0].name || "--"}月:
94 110
       return `<div class="line-tooltip">
95 111
 <div>${params[0].seriesName}: ${
96
-        params[0].data.hs || "--"}个</div>
112
+        params[0].data.hs || "--"}</div>
97 113
 </div>`;
98 114
     },
99 115
     xLabelFormat(name) {

+ 62 - 43
src/pages/index/components/parking_unpeak.vue

@@ -50,9 +50,10 @@
50 50
               </el-form-item>
51 51
               <el-form-item label="生效日期">
52 52
                 <el-date-picker
53
-                  v-model="formLabelAlign.effectiveTime"
53
+                  v-model="formLabelAlign.time"
54 54
                   type="daterange"
55 55
                   range-separator="至"
56
+                  value-format="yyyy-MM-dd HH:mm:ss"
56 57
                   start-placeholder="开始日期"
57 58
                   end-placeholder="结束日期">
58 59
                 </el-date-picker>
@@ -60,18 +61,22 @@
60 61
               <el-form-item label="生效时段">
61 62
                 <el-time-picker
62 63
                   is-range
63
-                  v-model="formLabelAlign.effectivePeriod"
64
+                  v-model="formLabelAlign.effectInterval"
64 65
                   range-separator="至"
65 66
                   start-placeholder="开始时间"
66 67
                   end-placeholder="结束时间"
68
+                  value-format="HH:mm:ss"
67 69
                   placeholder="选择时间范围">
68 70
                 </el-time-picker>
69 71
               </el-form-item>
70 72
               <el-form-item label="计费档位">
71
-                <el-input v-model="formLabelAlign.billingStation"></el-input>
73
+                <el-input v-model="formLabelAlign.billingLevel"></el-input>
74
+              </el-form-item>
75
+              <el-form-item label="计费单位">
76
+                <el-input v-model="formLabelAlign.timeUnit"></el-input>
72 77
               </el-form-item>
73 78
               <el-form-item label="收费价格">
74
-                <el-input v-model="formLabelAlign.chargePrice"></el-input>
79
+                <el-input v-model="formLabelAlign.price"></el-input>
75 80
               </el-form-item>
76 81
             </el-form>
77 82
           </div>
@@ -90,11 +95,11 @@
90 95
               </el-form-item>
91 96
             </el-col>
92 97
             <el-col :span="8">
93
-              <el-form-item label="停泊状态:">
94
-                <el-select clearable v-model="formInline2.parkingTime" placeholder="停泊状态" popper-class="cur-select">
98
+              <el-form-item label="订单状态:">
99
+                <el-select clearable v-model="formInline2.orderStatus" placeholder="订单状态" popper-class="cur-select">
95 100
                   <el-option label="全部" value=""></el-option>
96
-                  <el-option label="已出场" value="已出场"></el-option>
97
-                  <el-option label="停泊中" value="停泊中"></el-option>
101
+                  <el-option label="已完成" value="已完成"></el-option>
102
+                  <el-option label="已付款" value="已付款"></el-option>
98 103
                 </el-select>
99 104
               </el-form-item>
100 105
             </el-col>
@@ -167,20 +172,28 @@ export default {
167 172
           key: 'ruleName'
168 173
         },
169 174
         {
170
-          label: '生效日期',
171
-          key: 'effectiveTime'
175
+          label: '生效日期起',
176
+          key: 'startTime'
177
+        },
178
+        {
179
+          label: '生效日期终',
180
+          key: 'endTime'
172 181
         },
173 182
         {
174 183
           label: '生效时段',
175
-          key: 'effectivePeriod'
184
+          key: 'effectInterval'
176 185
         },
177 186
         {
178 187
           label: '计费档位',
179
-          key: 'billingStation'
188
+          key: 'billingLevel'
189
+        },
190
+        {
191
+          label: '计费单位',
192
+          key: 'timeUnit'
180 193
         },
181 194
         {
182 195
           label: '收费价格',
183
-          key: 'chargePrice'
196
+          key: 'price'
184 197
         },
185 198
       ],
186 199
       tableData1: [],
@@ -193,33 +206,29 @@ export default {
193 206
       title:'',
194 207
       dialogVisible:false,
195 208
       formLabelAlign: {
196
-        id: '',
197 209
         ruleName: '',
198
-        effectiveTime: '',
199
-        effectivePeriod: '',
200
-        billingStation: '',
201
-        chargePrice: '',
210
+        time: [],
211
+        effectInterval: [],
212
+        billingLevel: '',
213
+        timeUnit: '',
214
+        price: '',
202 215
       },
203 216
       columns2: [
204 217
         {
205
-          label: '车牌号',
206
-          key: 'plateNo'
218
+          label: '订单编号',
219
+          key: 'orderNo'
207 220
         },
208 221
         {
209
-          label: '入场时间',
210
-          key: ''
222
+          label: '车牌号',
223
+          key: 'plateNo'
211 224
         },
212 225
         {
213
-          label: '停车时长',
214
-          key: ''
226
+          label: '泊位号',
227
+          key: 'parkingNo'
215 228
         },
216 229
         {
217
-          label: '停泊状态',
218
-          key: 'parkingTime'
219
-        },
220
-        {
221
-          label: '金额',
222
-          key: ''
230
+          label: '订单状态',
231
+          key: 'orderStatus'
223 232
         },
224 233
       ],
225 234
       tableData2: [],
@@ -263,8 +272,8 @@ export default {
263 272
     }
264 273
   },
265 274
   mounted() {
266
-    // this.getTableData1()
267
-    // this.getTableData2()
275
+    this.getTableData1()
276
+    this.getTableData2()
268 277
     // this.getTableData3()
269 278
   },
270 279
   watch: {
@@ -276,20 +285,18 @@ export default {
276 285
     },
277 286
     handleAdd () {
278 287
       this.title = '添加规则'
279
-      this.formLabelAlign.ruleName= ''
280
-      this.formLabelAlign.effectiveTime= ''
281
-      this.formLabelAlign.effectivePeriod= ''
282
-      this.formLabelAlign.billingStation= ''
283
-      this.formLabelAlign.chargePrice= ''
288
+      this.formLabelAlign = {}
284 289
       this.dialogVisible = true
285 290
     },
286 291
     handleEdit(row) {
287 292
       this.title = '修改规则'
288
-      this.formLabelAlign = row
293
+      console.log(row.effectInterval.split('-'), '00000')
294
+      this.formLabelAlign = {...row, time: [row.startTime, row.endTime],effectInterval: row.effectInterval.split('-')}
295
+      console.log(this.formLabelAlign, '888888')
289 296
       this.dialogVisible = true
290 297
     },
291 298
     deleteRow (record) {
292
-      api.deleteWhiteIp({id: record.id}).then(res => {
299
+      api.deleteCftcRule({id: record.id}).then(res => {
293 300
         if (res.code === 200) {
294 301
           this.$message({type: 'success', message: '删除成功!'})
295 302
           this.getTableData1()
@@ -297,8 +304,20 @@ export default {
297 304
       })
298 305
     },
299 306
     handleConfirm() {
307
+      let params = {...this.formLabelAlign}
308
+      if (
309
+        this.formLabelAlign.time && this.formLabelAlign.time.length === 2 &&
310
+        this.formLabelAlign.time[1] !== ""
311
+      ) {
312
+        this.formLabelAlign.time[1] = this.formLabelAlign.time[1].substring(0, 10) + " 23:59:59";
313
+        params.startTime = this.formLabelAlign.time[0]
314
+        params.endTime = this.formLabelAlign.time[1]
315
+      }
316
+      delete params.time
317
+      console.log(this.formLabelAlign, '333333')
318
+      params.effectInterval = this.formLabelAlign.effectInterval ?  `${this.formLabelAlign.effectInterval[0]}-${this.formLabelAlign.effectInterval[1]}` : ''
300 319
       if (this.title === '修改规则') {
301
-        api.addWhiteIp({ipAddr: this.formLabelAlign.ipAddr, id: this.formLabelAlign.id}).then(res => {
320
+        api.editCftcRule({...params}).then(res => {
302 321
           if (res.code === 200) {
303 322
             this.dialogVisible = false
304 323
             this.$message({
@@ -309,7 +328,7 @@ export default {
309 328
           }
310 329
         })
311 330
       } else {
312
-        api.addWhiteIp({ipAddr: this.formLabelAlign.ipAddr}).then(res => {
331
+        api.addCftcRule({...params}).then(res => {
313 332
           if (res.code === 200) {
314 333
             this.dialogVisible = false
315 334
             this.$message({
@@ -334,7 +353,7 @@ export default {
334 353
     },
335 354
     getTableData1() {
336 355
       const {pageNum1, pageSize1} = this
337
-      api.carListByPage({current: pageNum1, size: pageSize1, ...this.formInline1}).then(res => {
356
+      api.cftcListByPage({current: pageNum1, size: pageSize1, ...this.formInline1}).then(res => {
338 357
         this.tableData1 = (res.data.records || []).map(item => ({...item, carType: dictionary.typeMap[item.carType]}))
339 358
         this.total1 = res.data.total
340 359
       })
@@ -344,7 +363,7 @@ export default {
344 363
     },
345 364
     getTableData2() {
346 365
       const {pageNum2, pageSize2} = this
347
-      api.gjListByPage({current: pageNum2, size: pageSize2, ...this.formInline2}).then(res => {
366
+      api.cftcOrderListByPage({current: pageNum2, size: pageSize2, ...this.formInline2}).then(res => {
348 367
         this.tableData2 = res.data.records || []
349 368
         this.total2 = res.data.total
350 369
       })

+ 12 - 19
src/pages/index/components/product_order_search.vue

@@ -6,14 +6,15 @@
6 6
           <el-form-item label="选择订单状态:">
7 7
             <el-select clearable v-model="formInline1.orderStatus" placeholder="订单状态" popper-class="cur-select">
8 8
               <el-option label="全部" value=""></el-option>
9
-              <el-option label="未处理" value="未处理"></el-option>
9
+              <el-option label="已完成" value="已完成"></el-option>
10 10
               <el-option label="已处理" value="已处理"></el-option>
11
+              <el-option label="已退款" value="已退款"></el-option>
11 12
             </el-select>
12 13
           </el-form-item>
13 14
         </el-col>
14 15
         <el-col :span="8">
15 16
           <el-form-item>
16
-            <el-button type="primary" class="query-btn" @click="onSubmit1">查询</el-button>
17
+            <el-button type="primary" class="query-btn" @click="onSubmit">查询</el-button>
17 18
           </el-form-item>
18 19
         </el-col>
19 20
       </el-row>
@@ -40,28 +41,20 @@ export default {
40 41
       columns1: [
41 42
         {
42 43
           label: '订单编号',
43
-          key: 'code'
44
-        },
45
-        {
46
-          label: '支付金额(元)',
47
-          key: 'payAmount'
48
-        },
49
-        {
50
-          label: '下单时间',
51
-          key: 'orderTime'
44
+          key: 'orderNo'
52 45
         },
53 46
         {
54 47
           label: '订单状态',
55
-          key: 'orderType'
48
+          key: 'orderStatus'
56 49
         },
57 50
         {
58 51
           label: '修改日期',
59
-          key: 'updateTime'
60
-        },
61
-        {
62
-          label: '修改人',
63
-          key: 'updateUser'
52
+          key: 'createTime'
64 53
         },
54
+        // {
55
+        //   label: '下单时间',
56
+        //   key: 'createUser'
57
+        // },
65 58
       ],
66 59
       tableData1: [],
67 60
       total1: 0,
@@ -77,7 +70,7 @@ export default {
77 70
   },
78 71
   watch: {},
79 72
   methods: {
80
-    onSubmit1() {
73
+    onSubmit() {
81 74
       this.pageNum1 = 1
82 75
       this.getTableData1()
83 76
     },
@@ -86,7 +79,7 @@ export default {
86 79
     },
87 80
     getTableData1() {
88 81
       const {pageNum1, pageSize1} = this
89
-      api.queryProductOrderSearchByPage({current: pageNum1, size: pageSize1, orderType:this.formInline1.orderStatus}).then(res => {
82
+      api.queryProductOrderSearchByPage({current: pageNum1, size: pageSize1, ...this.formInline1}).then(res => {
90 83
         this.tableData1 = res.data.records || []
91 84
         this.total1 = res.data.total
92 85
       })