mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 05:46:03 +08:00
优化代码
This commit is contained in:
parent
b8ef94412b
commit
198649e568
@ -42,6 +42,7 @@
|
||||
<table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center"><span><vc:i18n name="进场图" namespace="parkingAreaControlCarInouts"></vc:i18n></span></th>
|
||||
<th class="text-center"><span><vc:i18n name="进出场编号" namespace="parkingAreaControlCarInouts"></vc:i18n></span></th>
|
||||
<th class="text-center"><span><vc:i18n name="车辆状态" namespace="parkingAreaControlCarInouts"></vc:i18n></span></th>
|
||||
<th class="text-center"><span><vc:i18n name="车牌号" namespace="parkingAreaControlCarInouts"></vc:i18n></span></th>
|
||||
@ -57,6 +58,9 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="carIn in parkingAreaControlCarInoutsInfo.carIns">
|
||||
<td class="text-center" style="white-space: nowrap;">
|
||||
<img style="width: 60px; height: 60px;" v-bind:src="carIn.photoJpg" v-on:click="_carInoutOpenFile(carIn.photoJpg)" />
|
||||
</td>
|
||||
<td class="text-center">{{carIn.inoutId}}</td>
|
||||
<td class="text-center">{{carIn.carInout == '3306'?'进场':'出场'}}({{carIn.stateName}})</td>
|
||||
<td class="text-center">{{carIn.carNum}}
|
||||
@ -92,4 +96,5 @@
|
||||
<!-- 分页 -->
|
||||
<vc:create path="frame/paginationPlus" namespace="parkingAreaControlCarInouts"></vc:create>
|
||||
</div>
|
||||
<vc:create path="common/viewImage"></vc:create>
|
||||
</div>
|
||||
@ -14,7 +14,7 @@
|
||||
startTime: '',
|
||||
endTime: '',
|
||||
carType: '',
|
||||
machineId:''
|
||||
machineId: ''
|
||||
}
|
||||
},
|
||||
_initMethod: function() {
|
||||
@ -34,9 +34,9 @@
|
||||
function(_currentPage) {
|
||||
vc.component._loadParkingAreaControlCarInouts(_currentPage, DEFAULT_ROWS);
|
||||
});
|
||||
vc.on('parkingAreaControlCarInouts', 'changeMachine',function(_data){
|
||||
$that.parkingAreaControlCarInoutsInfo.machineId = _data.machineId;
|
||||
})
|
||||
vc.on('parkingAreaControlCarInouts', 'changeMachine', function(_data) {
|
||||
$that.parkingAreaControlCarInoutsInfo.machineId = _data.machineId;
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
|
||||
@ -109,16 +109,21 @@
|
||||
}
|
||||
);
|
||||
},
|
||||
_carInoutTempCarPayFee:function(carIn){
|
||||
_carInoutTempCarPayFee: function(carIn) {
|
||||
vc.emit('parkingAreaControlCustomCarInout', 'open', {
|
||||
type: "1102", //1101 手动入场 1102 手动出场
|
||||
carNum: carIn.carNum,
|
||||
amount: carIn.payCharge,
|
||||
payCharge: carIn.payCharge,
|
||||
machineId:$that.parkingAreaControlCarInoutsInfo.machineId,
|
||||
machineId: $that.parkingAreaControlCarInoutsInfo.machineId,
|
||||
boxId: $that.parkingAreaControlCarInoutsInfo.boxId,
|
||||
})
|
||||
}
|
||||
},
|
||||
_carInoutOpenFile: function(_url) {
|
||||
vc.emit('viewImage', 'showImage', {
|
||||
url: _url
|
||||
});
|
||||
},
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
@ -29,16 +29,19 @@
|
||||
return;
|
||||
}
|
||||
let _machineId = $that.parkingAreaControlFeeInfo.outMachineId;
|
||||
//进场覆盖问题
|
||||
let _oldPayCharge = $that.parkingAreaControlFeeInfo.payCharge;
|
||||
vc.copyObject(_data, $that.parkingAreaControlFeeInfo);
|
||||
$that.parkingAreaControlFeeInfo.openMsg = _data.remark;
|
||||
|
||||
//出场摄像头
|
||||
if (_machineId == _data.extMachineId) {
|
||||
$that.parkingAreaControlFeeInfo.feeCarNum = _data.carNum;
|
||||
$that.parkingAreaControlFeeInfo.costMin = _data.hours + "小时" + _data.hours + "分钟"
|
||||
$that.parkingAreaControlFeeInfo.costMin = _data.hours + "小时" + _data.min + "分钟"
|
||||
$that.parkingAreaControlFeeInfo.pay = _data.payCharge;
|
||||
$that.parkingAreaControlFeeInfo.remark = '';
|
||||
|
||||
} else {
|
||||
$that.parkingAreaControlFeeInfo.pay = _oldPayCharge;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user