From c6bc9fc2f22a5c6cbd49abc1b6cdd2ac2cfac71c Mon Sep 17 00:00:00 2001 From: wuxw <928255095@qq.com> Date: Fri, 23 Sep 2022 02:14:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=81=93=E9=97=B8=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../parkingAreaControlFee.html | 90 +++++++++++-------- .../parkingAreaControlFee.js | 20 ++++- .../parkingAreaControlVideo.html | 69 ++++++++------ .../parkingAreaControlVideo.js | 25 +++++- public/css/vc-ui.css | 6 ++ .../parkingAreaControl.html | 5 +- 6 files changed, 141 insertions(+), 74 deletions(-) diff --git a/public/components/property/parkingAreaControlFee/parkingAreaControlFee.html b/public/components/property/parkingAreaControlFee/parkingAreaControlFee.html index 4fcaa368b..dfe0e1eb8 100644 --- a/public/components/property/parkingAreaControlFee/parkingAreaControlFee.html +++ b/public/components/property/parkingAreaControlFee/parkingAreaControlFee.html @@ -3,61 +3,73 @@
-
+ +
-

-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
-
-
-

+

+ +

- +
- +
- +
- +
- +
- +
- - + + +
+ +
+
+

+ +

+
+
+
+ {{item.inOutTime}} + {{item.carNum}} + 进场 + 出场 + {{item.open}}; + {{item.openMsg}} +
+
+
+
+ 没有进出场车辆 +
+
+
diff --git a/public/components/property/parkingAreaControlFee/parkingAreaControlFee.js b/public/components/property/parkingAreaControlFee/parkingAreaControlFee.js index 82a2adaaa..dc2126312 100644 --- a/public/components/property/parkingAreaControlFee/parkingAreaControlFee.js +++ b/public/components/property/parkingAreaControlFee/parkingAreaControlFee.js @@ -16,7 +16,8 @@ showRefresh: '', boxId: '', feeCarNum: '', - costMin: '' + costMin: '', + carInoutInfos:[] } }, _initMethod: function() { @@ -35,16 +36,33 @@ $that.parkingAreaControlFeeInfo.openMsg = _data.remark; //出场摄像头 + let _inoutType = "2002"; if (_machineId == _data.extMachineId) { + vc.emit('parkingAreaControlVideo', 'carOut',$that.parkingAreaControlFeeInfo); $that.parkingAreaControlFeeInfo.feeCarNum = _data.carNum; $that.parkingAreaControlFeeInfo.costMin = _data.hours + "小时" + _data.min + "分钟" $that.parkingAreaControlFeeInfo.pay = _data.payCharge; $that.parkingAreaControlFeeInfo.payCharge = _data.payCharge; $that.parkingAreaControlFeeInfo.remark = ''; } else { + vc.emit('parkingAreaControlVideo', 'carIn',$that.parkingAreaControlFeeInfo); $that.parkingAreaControlFeeInfo.payCharge = _oldPayCharge; + _inoutType = "1001"; } + $that.parkingAreaControlFeeInfo.carInoutInfos.unshift({ + carNum:_data.carNum, + inOutTime:_data.inOutTime, + open:_data.open, + openMsg:_data.remark, + inoutType:_inoutType + }); + + if($that.parkingAreaControlFeeInfo.carInoutInfos.length > 10){ + $that.parkingAreaControlFeeInfo.carInoutInfos.pop(); + } + + }); vc.on('parkingAreaControlFee', 'changeMachine', function(_data) { diff --git a/public/components/property/parkingAreaControlVideo/parkingAreaControlVideo.html b/public/components/property/parkingAreaControlVideo/parkingAreaControlVideo.html index b2ded4f8f..0d87e5962 100644 --- a/public/components/property/parkingAreaControlVideo/parkingAreaControlVideo.html +++ b/public/components/property/parkingAreaControlVideo/parkingAreaControlVideo.html @@ -2,21 +2,15 @@
-
-
- -
- -
-
+
+
-
- +
-
-
- -
- -
-
+
+
-
+