mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 05:46:03 +08:00
水电抄表导入功能
This commit is contained in:
parent
0fa88f85d3
commit
926732ef28
@ -33,9 +33,9 @@
|
||||
<label class="col-sm-2 col-form-label">选择文件</label>
|
||||
<div class="col-sm-10">
|
||||
<div class="custom-file">
|
||||
<input id="excelTemplate" ref="excelTemplate" type="file"
|
||||
class="custom-file-input form-control" name="excelTemplate"
|
||||
v-on:change="getExcelTemplate($event)" accept=".xls,.xlsx">
|
||||
<input id="excelTemplate2" ref="excelTemplate" type="file"
|
||||
class="custom-file-input form-control" name="excelTemplate2"
|
||||
v-on:change="getExcelTemplate2($event)" accept=".xls,.xlsx">
|
||||
<label for="excelTemplate"
|
||||
class="custom-file-label">{{importMeterWaterFee2Info.excelTemplate==''?'必填,请选择数据文件':importMeterWaterFee2Info.excelTemplate.name}}</label>
|
||||
</div>
|
||||
|
||||
@ -74,8 +74,8 @@
|
||||
|
||||
|
||||
vc.http.upload(
|
||||
'importMeterWaterFee2',
|
||||
'importData',
|
||||
'importMeterWaterFee',
|
||||
'importData2',
|
||||
param,
|
||||
{
|
||||
emulateJSON: true,
|
||||
|
||||
@ -73,8 +73,9 @@
|
||||
if (res.status == 200) {
|
||||
//关闭model
|
||||
$('#prestoreAccountModel').modal('hide');
|
||||
vc.component.clearAddFloorInfo();
|
||||
vc.emit('listFloor', 'listFloorData', {});
|
||||
vc.component.clearPrestoreAccountInfo();
|
||||
vc.emit('accountManage', 'listshopAccount', {});
|
||||
vc.toast('预存成功');
|
||||
|
||||
return;
|
||||
}
|
||||
@ -88,7 +89,7 @@
|
||||
|
||||
});
|
||||
},
|
||||
clearAddFloorInfo: function () {
|
||||
clearPrestoreAccountInfo: function () {
|
||||
vc.component.prestoreAccountInfo = {
|
||||
tel: '',
|
||||
ownerId: '',
|
||||
|
||||
@ -76,11 +76,11 @@
|
||||
<td class="text-center">{{fee.startTime}}</td>
|
||||
<td class="text-center">{{_getEndTime(fee)}}</td>
|
||||
<td class="text-center">{{_getDeadlineTime(fee)}}</td>
|
||||
<td class="text-center" v-if="fee.computingFormula == '5005'"
|
||||
<td class="text-center" v-if="fee.computingFormula == '5005' || fee.computingFormula == '9009'"
|
||||
:title="_simplifyRoomGetFeeOwnerInfo(fee.feeAttrs)">
|
||||
<div>上期度数:{{fee.preDegrees}}</div>
|
||||
<div>本期度数:{{fee.curDegrees}}</div>
|
||||
<div>单价:{{fee.squarePrice}}</div>
|
||||
<div>单价:{{fee.wmPrice?fee.wmPrice:fee.squarePrice}}</div>
|
||||
<div>附加费:{{fee.additionalAmount}}</div>
|
||||
</td>
|
||||
<td class="text-center" v-else-if="fee.computingFormula == '6006'"
|
||||
|
||||
@ -0,0 +1,51 @@
|
||||
<div>
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<div class="ibox">
|
||||
<div class="ibox-title">
|
||||
<h5>账户明细</h5>
|
||||
<div class="ibox-tools" style="top:10px;">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="ibox-content">
|
||||
|
||||
<table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">明细编号</th>
|
||||
<th class="text-center">交易编号</th>
|
||||
<th class="text-center">账户名称</th>
|
||||
<th class="text-center">明细类型</th>
|
||||
<th class="text-center">金额</th>
|
||||
<th class="text-center">交易时间</th>
|
||||
<th class="text-center">说明</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="accountDetail in accountDetailManageInfo.accountDetails">
|
||||
<td class="text-center">{{accountDetail.detailId}}</td>
|
||||
<td class="text-center">{{accountDetail.orderId}}</td>
|
||||
<td class="text-center">{{accountDetail.acctName}}</td>
|
||||
<td class="text-center">{{accountDetail.detailType =='1001'?'转入':'转出'}}</td>
|
||||
<td class="text-center">{{accountDetail.amount}}</td>
|
||||
<td class="text-center">{{accountDetail.createTime}}</td>
|
||||
<td class="text-center">{{accountDetail.remark}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="7">
|
||||
<ul class="pagination float-right"></ul>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
<!-- 分页 -->
|
||||
<vc:create path="frame/pagination"></vc:create>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@ -0,0 +1,76 @@
|
||||
/**
|
||||
入驻小区
|
||||
**/
|
||||
(function (vc) {
|
||||
var DEFAULT_PAGE = 1;
|
||||
var DEFAULT_ROWS = 10;
|
||||
vc.extends({
|
||||
data: {
|
||||
accountDetailManageInfo: {
|
||||
accountDetails: [],
|
||||
shopAccounts: [],
|
||||
total: 0,
|
||||
records: 1,
|
||||
moreCondition: false,
|
||||
scId: '',
|
||||
conditions: {
|
||||
acctId: '',
|
||||
detailType: '',
|
||||
orderId: '',
|
||||
}
|
||||
}
|
||||
},
|
||||
_initMethod: function () {
|
||||
$that.accountDetailManageInfo.conditions.acctId = vc.getParam('acctId');
|
||||
vc.component._listAccountDetails(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
},
|
||||
_initEvent: function () {
|
||||
|
||||
vc.on('accountDetailManage', 'listAccountDetail', function (_param) {
|
||||
vc.component._listAccountDetails(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
});
|
||||
vc.on('pagination', 'page_event', function (_currentPage) {
|
||||
vc.component._listAccountDetails(_currentPage, DEFAULT_ROWS);
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
_listAccountDetails: function (_page, _rows) {
|
||||
|
||||
vc.component.accountDetailManageInfo.conditions.page = _page;
|
||||
vc.component.accountDetailManageInfo.conditions.row = _rows;
|
||||
var param = {
|
||||
params: vc.component.accountDetailManageInfo.conditions
|
||||
};
|
||||
|
||||
//发送get请求
|
||||
vc.http.apiGet('/account/queryOwnerAccountDetail',
|
||||
param,
|
||||
function (json, res) {
|
||||
var _accountDetailManageInfo = JSON.parse(json);
|
||||
vc.component.accountDetailManageInfo.total = _accountDetailManageInfo.total;
|
||||
vc.component.accountDetailManageInfo.records = _accountDetailManageInfo.records;
|
||||
vc.component.accountDetailManageInfo.accountDetails = _accountDetailManageInfo.data;
|
||||
vc.emit('pagination', 'init', {
|
||||
total: vc.component.accountDetailManageInfo.records,
|
||||
currentPage: _page
|
||||
});
|
||||
}, function (errInfo, error) {
|
||||
console.log('请求失败处理');
|
||||
}
|
||||
);
|
||||
},
|
||||
_queryAccountDetailMethod: function () {
|
||||
vc.component._listAccountDetails(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
},
|
||||
_moreCondition: function () {
|
||||
if (vc.component.accountDetailManageInfo.moreCondition) {
|
||||
vc.component.accountDetailManageInfo.moreCondition = false;
|
||||
} else {
|
||||
vc.component.accountDetailManageInfo.moreCondition = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
})(window.vc);
|
||||
@ -68,7 +68,10 @@
|
||||
}
|
||||
},
|
||||
_prestoreAccount: function () {
|
||||
vc.emit('prestoreAccount','openAddModal',{});
|
||||
vc.emit('prestoreAccount', 'openAddModal', {});
|
||||
},
|
||||
_accountDetail: function (_account) {
|
||||
vc.jumpToPage('/admin.html#/pages/property/accountDetailManage?acctId=' + _account.acctId);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -51,7 +51,7 @@
|
||||
v-if="fee.feeTypeCd == '888800010015' || fee.feeTypeCd == '888800010016' ">
|
||||
<div>上期度数:{{fee.preDegrees}}</div>
|
||||
<div>本期度数:{{fee.curDegrees}} </div>
|
||||
<div>单价:{{fee.squarePrice}} </div>
|
||||
<div>单价:{{fee.wmPrice?fee.wmPrice:fee.squarePrice}} </div>
|
||||
<div>附加费:{{fee.additionalAmount}}</div>
|
||||
</td>
|
||||
<td class="text-center" width="150" v-else-if="fee.feeTypeCd == '888800010017'">
|
||||
|
||||
@ -49,10 +49,10 @@
|
||||
<td class="text-center">{{fee.startTime}}</td>
|
||||
<td class="text-center">{{_getEndTime(fee)}}</td>
|
||||
<td class="text-center">{{_getDeadlineTime(fee)}}</td>
|
||||
<td class="text-center" v-if="fee.computingFormula == '5005'">
|
||||
<td class="text-center" v-if="fee.computingFormula == '5005' || fee.computingFormula == '9009'">
|
||||
<div>上期度数:{{fee.preDegrees}}</div>
|
||||
<div>本期度数:{{fee.curDegrees}}</div>
|
||||
<div>单价:{{fee.squarePrice}}</div>
|
||||
<div>单价:{{fee.wmPrice?fee.wmPrice:fee.squarePrice}}</div>
|
||||
<div>附加费:{{fee.additionalAmount}}</div>
|
||||
</td>
|
||||
<td class="text-center" v-else-if="fee.computingFormula == '6006'">
|
||||
|
||||
@ -54,10 +54,10 @@
|
||||
<td class="text-center">{{fee.startTime}}</td>
|
||||
<td class="text-center">{{_getEndTime(fee)}}</td>
|
||||
<td class="text-center">{{_getDeadlineTime(fee)}}</td>
|
||||
<td class="text-center" v-if="fee.computingFormula == '5005'">
|
||||
<td class="text-center" v-if="fee.computingFormula == '5005' || fee.computingFormula == '9009'">
|
||||
<div>上期度数:{{fee.preDegrees}}</div>
|
||||
<div>本期度数:{{fee.curDegrees}}</div>
|
||||
<div>单价:{{fee.squarePrice}}</div>
|
||||
<div>单价:{{fee.wmPrice?fee.wmPrice:fee.squarePrice}}</div>
|
||||
<div>附加费:{{fee.additionalAmount}}</div>
|
||||
</td>
|
||||
<td class="text-center" v-else-if="fee.computingFormula == '6006'">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user