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

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/toastr.min.js"></script>
<script src="/js/plugins/jsTree/jstree.min.js"></script> <script src="/js/plugins/jsTree/jstree.min.js"></script>
<!-- QQMap 腾讯地图KEY--> <!-- 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> </head>

View File

@ -84,7 +84,10 @@
<div class="col-sm-5"> <div class="col-sm-5">
<span> 注意: 计费结束时间 “-” 表示未到计费时间 或 收费已结束</span> <span> 注意: 计费结束时间 “-” 表示未到计费时间 或 收费已结束</span>
</div> </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> <vc:create namespace="simplifyCarFee" path="frame/paginationPlus"></vc:create>
</div> </div>
</div> </div>

View File

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

View File

@ -134,7 +134,10 @@
<div class="col-sm-5"> <div class="col-sm-5">
<span> 注意: 计费结束时间 “-” 表示未到计费时间 或 收费已结束</span> <span> 注意: 计费结束时间 “-” 表示未到计费时间 或 收费已结束</span>
</div> </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> <vc:create namespace="simplifyRoomFee" path="frame/paginationPlus"></vc:create>
</div> </div>
</div> </div>

View File

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

View File

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