duwendi 1 年間 前
コミット
5c3c5d15d0

+ 3 - 2
src/api/audit.js

@@ -1,4 +1,5 @@
1 1
 import axios from "@/util/ajax";
2
+import axios1 from "@/util/ajax1"
2 3
 
3 4
 export default {
4 5
   //  停车场情况-列表
@@ -39,7 +40,7 @@ export default {
39 40
   },
40 41
   // 预约订单-预约订单分页列表
41 42
   orderListByPage(params) {
42
-    return axios.get('/opt/appointment/rules/order/page', {params})
43
+    return axios1.post('/reformer-blessing-b/pontus/parking/platform/appointment/record', params)
43 44
   },
44 45
   // 预约订单-退款记录
45 46
   refundListByPage(params) {
@@ -103,7 +104,7 @@ export default {
103 104
   },
104 105
   // 停车卡_查看订单分页列表
105 106
   tckOrderListByPage(params) {
106
-    return axios.get('/opt/parking/card/order/page', {params})
107
+    return axios.post('/reformer-blessing-b/card-mall-system/mall/queryList', params)
107 108
   },
108 109
   // 停车卡_统计信息
109 110
   tckTjxxListByPage(params) {

+ 2 - 2
src/config/index.js

@@ -4,8 +4,8 @@
4 4
 const Config = {
5 5
   dev: {
6 6
 // BASE_API: 'https://172.16.36.211:8800', // http://172.16.36.211:8800
7
-    BASE_API: 'https://park.lhzhtc.cn/luohe2_ee/api', // http://172.16.36.211:8800
8
-    // BASE_API: 'http://localhost:16399/luohe2_ee/api'
7
+    // BASE_API: 'https://park.lhzhtc.cn/luohe2_ee/api', // http://172.16.36.211:8800
8
+    BASE_API: 'http://localhost:16399/luohe2_ee/api'
9 9
   },
10 10
   build: {
11 11
 //服务地址及端口配置

+ 44 - 16
src/pages/index/components/appointment_rules.vue

@@ -110,9 +110,14 @@
110 110
       <el-tab-pane label="预约订单" name="预约订单">
111 111
         <el-form class="form-wrapper" :inline="true" :model="formInline2" style="margin-bottom: 20px;">
112 112
           <el-row>
113
+            <el-col :span="6">
114
+              <el-form-item label="手机号:">
115
+                <el-input v-model="formInline2.user_phone" placeholder="请输入"></el-input>
116
+              </el-form-item>
117
+            </el-col>
113 118
             <el-col :span="6">
114 119
               <el-form-item label="车牌号:">
115
-                <el-input v-model="formInline2.plateNo" placeholder="请输入"></el-input>
120
+                <el-input v-model="formInline2.plate_no" placeholder="请输入"></el-input>
116 121
               </el-form-item>
117 122
             </el-col>
118 123
             <el-col :span="6">
@@ -138,7 +143,7 @@
138 143
           </el-table-column>
139 144
         </el-table>
140 145
         <div class="table-pagination">
141
-          <el-pagination layout="total, prev, pager, next, jumper" :total="total1" @current-change="handlePageChange2"
146
+          <el-pagination layout="total, prev, pager, next, jumper" :total="total2" @current-change="handlePageChange2"
142 147
                          :current-page.sync="pageNum2" :page-size.sync="pageSize2">
143 148
           </el-pagination>
144 149
         </div>
@@ -270,25 +275,41 @@ export default {
270 275
         largeTimes: ''
271 276
       },
272 277
       columns2: [
278
+        {
279
+          label: '手机号',
280
+          key: 'appointment_phone'
281
+        },
273 282
         {
274 283
           label: '车牌号',
275
-          key: 'plateNo'
284
+          key: 'plate_no'
276 285
         },
277 286
         {
278
-          label: '停车场名称',
279
-          key: 'parkName'
287
+          label: '车场',
288
+          key: 'car_park_name'
289
+        },
290
+        {
291
+          label: '车位',
292
+          key: 'parking_space'
280 293
         },
281 294
         {
282 295
           label: '预约时间',
283
-          key: 'appointmentTime'
296
+          key: 'appointment_time'
284 297
         },
285 298
         {
286
-          label: '支付状态',
287
-          key: 'payStatus'
299
+          label: '状态',
300
+          key: 'appointment_status'
288 301
         },
289 302
         {
290
-          label: '退款状态',
291
-          key: 'refundStatus'
303
+          label: '取消方',
304
+          key: 'cancel_type'
305
+        },
306
+        {
307
+          label: '取消原因',
308
+          key: 'cancel_reason'
309
+        },
310
+        {
311
+          label: '最后更新时间',
312
+          key: 'latest_time'
292 313
         },
293 314
       ],
294 315
       tableData2: [],
@@ -296,8 +317,9 @@ export default {
296 317
       pageSize2: 10,
297 318
       pageNum2: 1,
298 319
       formInline2: {
299
-        plateNo: '',
300
-        parkId:'',
320
+        user_phone: '',
321
+        plate_no: '',
322
+        car_park_id:'',
301 323
       },
302 324
       columns3: [
303 325
         {
@@ -333,7 +355,13 @@ export default {
333 355
         refundTime: '',
334 356
         refundMoney: '',
335 357
       },
336
-      parkDic: []
358
+      parkDic: [],
359
+      appointmentMap: {
360
+        0: '进行中',
361
+        1: '已完成',
362
+        2: '已取消',
363
+        3: '已违约'
364
+      }
337 365
     }
338 366
   },
339 367
   mounted() {
@@ -439,9 +467,9 @@ export default {
439 467
     getTableData2() {
440 468
       this.loading2 = true
441 469
       const {pageNum2, pageSize2} = this
442
-      api.orderListByPage({current: pageNum2, size: pageSize2, ...this.formInline2}).then(res => {
443
-        this.tableData2 = res.data.records || []
444
-        this.total2 = res.data.total
470
+      api.orderListByPage({cur_page: pageNum2, page_size: pageSize2, ...this.formInline2}).then(res => {
471
+        this.tableData2 = res.data.data.map(item => ({...item, cancel_type: item.cancel_type === 1 ? '平台':'用户',appointment_status: this.appointmentMap[item.appointment_status]})) || []
472
+        this.total2 = res.data.totalRows
445 473
         this.loading2 = false
446 474
       })
447 475
     },

+ 22 - 4
src/pages/index/components/message_management.vue

@@ -128,13 +128,22 @@
128 128
         <el-form class="form-wrapper" :inline="true" :model="formInline4" style="margin-bottom: 20px;">
129 129
           <el-row>
130 130
             <el-col :span="8">
131
-              <el-form-item label="设备报警:">
132
-                <el-input v-model="formInline4.equipmentAlarm" placeholder="请输入"></el-input>
131
+              <el-form-item label="车牌号:">
132
+                <el-input v-model="formInline4.plateNo" placeholder="请输入"></el-input>
133 133
               </el-form-item>
134 134
             </el-col>
135 135
             <el-col :span="8">
136
-              <el-form-item label="设备ID:">
136
+              <!-- <el-form-item label="设备ID:">
137 137
                 <el-input v-model="formInline4.equipmentID" placeholder="请输入"></el-input>
138
+              </el-form-item> -->
139
+              <el-form-item label="停车场: ">
140
+                <el-select filterable clearable v-model="formInline4.parkId" placeholder="请选择">
141
+                  <el-option
142
+                    v-for="(item,index) in carParkingNameOptions"
143
+                    :key="index"
144
+                    :label="item.parkName"
145
+                    :value="item.id" />
146
+                </el-select>
138 147
               </el-form-item>
139 148
             </el-col>
140 149
             <el-col :span="8">
@@ -181,6 +190,7 @@
181 190
 </template>
182 191
 <script>
183 192
 import api from "@/api/audit.js";
193
+import api_z from "@/api/article_z.js";
184 194
 import api_l from "@/api/article_liao.js";
185 195
 
186 196
 export default {
@@ -324,7 +334,7 @@ export default {
324 334
       pageNum4: 1,
325 335
       formInline4: {
326 336
         plateNo: '',
327
-        deviceId: '',
337
+        parkId: '',
328 338
       },
329 339
       title4: '',
330 340
       dialogVisible4: false,
@@ -334,9 +344,11 @@ export default {
334 344
         equipmentID: '',
335 345
         alarmTime: '',
336 346
       },
347
+      carParkingNameOptions: [],
337 348
     }
338 349
   },
339 350
   mounted() {
351
+    this.getCarParkingName()
340 352
     this.getTableData1()
341 353
     this.getTableData2()
342 354
     this.getTableData3()
@@ -344,6 +356,12 @@ export default {
344 356
   },
345 357
   watch: {},
346 358
   methods: {
359
+    //车场
360
+    getCarParkingName() {
361
+      api_z.querySelectParkListByPage().then(res => {
362
+        this.carParkingNameOptions=res.data
363
+      })
364
+    },
347 365
     rowClassName({ rowIndex }) {
348 366
       // 偶数行和奇数行分别返回不同的类名,也可以根据实际需求基于rowData进行条件判断
349 367
       return rowIndex % 2 === 0 ? 'even-row' : 'odd-row';

+ 57 - 33
src/pages/index/components/parking_card.vue

@@ -70,26 +70,35 @@
70 70
       <el-tab-pane label="查看订单" name="查看订单">
71 71
         <el-form class="form-wrapper" :inline="true" :model="formInline2" style="margin-bottom: 20px;">
72 72
           <el-row>
73
-            <el-col :span="5">
74
-              <el-form-item label="订单号: ">
75
-                <el-input v-model="formInline2.orderNo" placeholder="请输入"></el-input>
73
+            <el-col :span="6">
74
+              <el-form-item label="商品名称:">
75
+                <el-input v-model="formInline2.goods_name" placeholder="请输入"></el-input>
76 76
               </el-form-item>
77 77
             </el-col>
78
-            <el-col :span="5">
79
-              <el-form-item label="选择订单状态:">
80
-                <el-select clearable v-model="formInline2.orderStatus" placeholder="订单状态" popper-class="cur-select">
78
+            <el-col :span="6">
79
+              <el-form-item label="发布状态:">
80
+                <el-select clearable v-model="formInline2.release_status" placeholder="请选择" popper-class="cur-select">
81 81
                   <el-option label="全部" value=""></el-option>
82
-                  <el-option label="已完成" value="已完成"></el-option>
83
-                  <el-option label="使用中" value="使用中"></el-option>
82
+                  <el-option label="上架" value="1"></el-option>
83
+                  <el-option label="下架" value="0"></el-option>
84 84
                 </el-select>
85 85
               </el-form-item>
86 86
             </el-col>
87
-            <el-col :span="6">
88
-              <el-form-item>
89
-                <el-button type="primary" class="query-btn" @click="onSubmit2" icon="el-icon-search">查询</el-button>
87
+            <el-col :span="8">
88
+              <el-form-item label="可购买时间:">
89
+                <el-date-picker
90
+                  v-model="formInline2.time"
91
+                  type="daterange"
92
+                  range-separator="至"
93
+                  value-format="yyyy-MM-dd"
94
+                  start-placeholder="开始日期"
95
+                  end-placeholder="结束日期">
96
+                </el-date-picker>
90 97
               </el-form-item>
98
+            </el-col>
99
+            <el-col :span="4">
91 100
               <el-form-item>
92
-                <el-button type="success" @click="handleAdd2">添加规则</el-button>
101
+                <el-button type="primary" class="query-btn" @click="onSubmit2" icon="el-icon-search">查询</el-button>
93 102
               </el-form-item>
94 103
             </el-col>
95 104
           </el-row>
@@ -158,6 +167,7 @@
158 167
 <script>
159 168
 import api from "@/api/audit.js";
160 169
 import dictionary from "@/util/dictionary";
170
+import moment from "moment/moment";
161 171
 
162 172
 export default {
163 173
   components: {},
@@ -197,32 +207,36 @@ export default {
197 207
       },
198 208
       columns2: [
199 209
         {
200
-          label: '订单号',
201
-          key: 'orderNo'
210
+          label: '商品名称',
211
+          key: 'goods_name'
212
+        },
213
+        {
214
+          label: '所需金额(分)',
215
+          key: 'reality_price'
202 216
         },
203 217
         {
204
-          label: '停车卡编号',
205
-          key: 'cardId'
218
+          label: '总库存',
219
+          key: 'goods_total_number'
206 220
         },
207 221
         {
208
-          label: '下单人',
209
-          key: 'memberId'
222
+          label: '剩余库存量',
223
+          key: 'goods_number'
210 224
         },
211
-        // {
212
-        //   label: '下单时间',
213
-        //   key: 'placeOrderTime'
214
-        // },
215 225
         {
216
-          label: '支付金额',
217
-          key: 'buyWay'
226
+          label: '发布状态',
227
+          key: 'release_status'
218 228
         },
219 229
         {
220
-          label: '订单状态',
221
-          key: 'orderStatus'
230
+          label: '可购买时间',
231
+          key: 'good_range'
222 232
         },
223 233
         {
224
-          label: '购买方式',
225
-          key: 'buyWay'
234
+          label: '创建时间',
235
+          key: 'goods_create_time'
236
+        },
237
+        {
238
+          label: '最后修改时间',
239
+          key: 'goods_update_time'
226 240
         },
227 241
       ],
228 242
       tableData2: [],
@@ -230,8 +244,9 @@ export default {
230 244
       pageSize2: 10,
231 245
       pageNum2: 1,
232 246
       formInline2: {
233
-        orderNo: '',
234
-        orderStatus:'',
247
+        goods_name: '',
248
+        release_status:'',
249
+        time: []
235 250
       },
236 251
       title2:'',
237 252
       dialogVisible2:false,
@@ -380,10 +395,19 @@ export default {
380 395
     },
381 396
     getTableData2() {
382 397
       this.loading2 = true
398
+      let params = {...this.formInline2}
399
+      if (
400
+        this.formInline2.time && this.formInline2.time.length === 2 &&
401
+        this.formInline2.time[1] !== ""
402
+      ) {
403
+        params.goods_start_time = this.formInline2.time[0].substring(0, 10) + " 00:00:00";
404
+        params.goods_end_time = this.formInline2.time[1].substring(0, 10) + " 23:59:59";
405
+      }
406
+      delete params.time
383 407
       const {pageNum2, pageSize2} = this
384
-      api.tckOrderListByPage({current: pageNum2, size: pageSize2, ...this.formInline2}).then(res => {
385
-        this.tableData2 = res.data.records || []
386
-        this.total2 = res.data.total
408
+      api.tckOrderListByPage({curPage: pageNum2, pageSize: pageSize2, ...params}).then(res => {
409
+        this.tableData2 = res.data.data.goods_list.map(item => ({...item, release_status: item.release_status === '1' ? '上架' : '下架', good_range: `${moment(item.goods_start_time).format('YYYY-MM-DD')}~${moment(item.goods_end_time).format('YYYY-MM-DD')}`})) || []
410
+        this.total2 = res.data.data.total_rows || 0
387 411
         this.loading2 = false
388 412
       })
389 413
     },

+ 2 - 2
static/mung-local-config.js

@@ -1,7 +1,7 @@
1 1
 window.mungConfig = {
2 2
   dev: {
3
-    // BASE_API: "http://localhost:16399/luohe2_ee/api"
4
-    BASE_API: 'https://park.lhzhtc.cn/luohe2_ee/api'
3
+    BASE_API: "http://localhost:16399/luohe2_ee/api"
4
+    // BASE_API: 'https://park.lhzhtc.cn/luohe2_ee/api'
5 5
   },
6 6
   build: {
7 7
     BASE_API: "https://park.lhzhtc.cn/luohe2_ee/api"