优化补打收据加入 上期度数和本期度数功能 加入合同面积

This commit is contained in:
java110 2021-06-22 18:50:41 +08:00
parent c6fc41bc09
commit 8323464ca6
6 changed files with 38 additions and 12 deletions

View File

@ -46,7 +46,7 @@
<script src="/js/toastr.min.js"></script>
<script src="/js/plugins/jsTree/jstree.min.js"></script>
<!-- QQMap 腾讯地图KEY-->
<script src="https://map.qq.com/api/gljs?v=1.exp&key=></script>
<script src="https://map.qq.com/api/gljs?v=1.exp&key="></script>
</head>

View File

@ -84,7 +84,10 @@
<div class="col-sm-5">
<span> 注意: 计费结束时间 “-” 表示未到计费时间 或 收费已结束</span>
</div>
<div class="col-sm-7 float-right">
<div class="col-sm-2">
<span> 欠费小计:{{simplifyCarFeeInfo.totalAmount}}</span>
</div>
<div class="col-sm-5 float-right">
<vc:create namespace="simplifyCarFee" path="frame/paginationPlus"></vc:create>
</div>
</div>

View File

@ -14,7 +14,8 @@
records: 1,
areaNum: '',
num: '',
parkingName: ''
parkingName: '',
totalAmount: 0.0
}
},
_initMethod: function () {
@ -24,8 +25,8 @@
//切换 至费用页面
vc.on('simplifyCarFee', 'switch', function (_param) {
if(_param.ownerId == ''){
return ;
if (_param.ownerId == '') {
return;
}
$that.clearSimplifyCarFeeInfo();
vc.copyObject(_param, $that.simplifyCarFeeInfo)
@ -65,6 +66,12 @@
vc.component.simplifyCarFeeInfo.total = _feeConfigInfo.total;
vc.component.simplifyCarFeeInfo.records = _feeConfigInfo.records;
vc.component.simplifyCarFeeInfo.fees = _feeConfigInfo.fees;
let _totalAmount = 0.0;
_feeConfigInfo.fees.forEach(item => {
_totalAmount += parseFloat(item.amountOwed);
})
$that.simplifyCarFeeInfo.totalAmount = _totalAmount;
vc.emit('simplifyCarFee', 'paginationPlus', 'init', {
total: _feeConfigInfo.records,
currentPage: _page
@ -174,7 +181,7 @@
$that.simplifyCarFeeInfo.carNum = _car.carNum;
$that.simplifyCarFeeInfo.num = _car.num;
$that.simplifyCarFeeInfo.parkingName = _car.areaNum + '停车场' + _car.num + '停车位';
$that._listSimplifyCarFee(DEFAULT_PAGE,DEFAULT_ROWS);
$that._listSimplifyCarFee(DEFAULT_PAGE, DEFAULT_ROWS);
},
clearSimplifyCarFeeInfo: function () {
$that.simplifyCarFeeInfo = {
@ -188,7 +195,8 @@
records: 1,
areaNum: '',
num: '',
parkingName: ''
parkingName: '',
totalAmount: 0.0
}
},
_simplifyCarGetFeeOwnerInfo: function (attrs) {
@ -196,7 +204,7 @@
let ownerName = $that._getAttrValue(attrs, '390008');
let ownerLink = $that._getAttrValue(attrs, '390009');
return '业主:'+ownerName + ',电话:' + ownerLink;
return '业主:' + ownerName + ',电话:' + ownerLink;
}

View File

@ -134,7 +134,10 @@
<div class="col-sm-5">
<span> 注意: 计费结束时间 “-” 表示未到计费时间 或 收费已结束</span>
</div>
<div class="col-sm-7 float-right">
<div class="col-sm-2">
<span> 欠费小计:{{simplifyRoomFeeInfo.totalAmount}}</span>
</div>
<div class="col-sm-5 float-right">
<vc:create namespace="simplifyRoomFee" path="frame/paginationPlus"></vc:create>
</div>
</div>

View File

@ -18,7 +18,8 @@
configId: '',
feeTypeCds: [],
feeTypeCd: '',
state: '2008001'
state: '2008001',
totalAmount:0.0
}
},
_initMethod: function () {
@ -71,6 +72,12 @@
let _feeConfigInfo = JSON.parse(json);
vc.component.simplifyRoomFeeInfo.total = _feeConfigInfo.total;
vc.component.simplifyRoomFeeInfo.records = _feeConfigInfo.records;
let _totalAmount = 0.0;
_feeConfigInfo.fees.forEach(item => {
_totalAmount += parseFloat(item.amountOwed);
})
$that.simplifyRoomFeeInfo.totalAmount = _totalAmount;
vc.component.simplifyRoomFeeInfo.fees = _feeConfigInfo.fees;
vc.emit('simplifyRoomFee', 'paginationPlus', 'init', {
total: _feeConfigInfo.records,
@ -183,7 +190,8 @@
feeConfigs: _feeConfigs,
feeTypeCd: '',
configId: '',
state: '2008001'
state: '2008001',
totalAmount: 0.0
}
},
_changeSimplifyRoomFeeFeeTypeCd: function (_feeTypeCd) {

View File

@ -34,7 +34,11 @@
<th scope="row" class="text-center">{{index +1}}</th>
<td class="text-center">{{item.feeName}}</td>
<td class="text-center">{{item.objName}}</td>
<td class="text-center">
<td class="text-center" v-if="item.preDegrees">
{{vc.dateFormat(item.startTime)}}至{{vc.dateSubOneDay(vc.dateFormat(item.startTime),vc.dateFormat(item.endTime),item.feeFlag)}}
{{item.preDegrees}} 至 {{item.curDegree}}
</td>
<td class="text-center" v-else>
{{vc.dateFormat(item.startTime)}}至{{vc.dateSubOneDay(vc.dateFormat(item.startTime),vc.dateFormat(item.endTime),item.feeFlag)}}
</td>
<!--<td class="text-center">{{item.startTime}}至{{item.endTime}}</td>-->