| | |
| | | <div id="addFeeDiscountModel" class="modal fade" role="dialog" aria-labelledby="exampleModalLabel" |
| | | aria-hidden="true"> |
| | | <div id="addFeeDiscountModel" class="modal fade" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"> |
| | | <div class="modal-dialog modal-lg"> |
| | | <div class="modal-content"> |
| | | <div class="modal-body"> |
| | | <h3 class="m-t-none m-b "> |
| | | <span><vc:i18n name="添加" namespace="addFeeDiscount"></vc:i18n></span> |
| | | <span> |
| | | <vc:i18n name="添加" namespace="addFeeDiscount"></vc:i18n> |
| | | </span> |
| | | </h3> |
| | | <div class="ibox-content"> |
| | | <div> |
| | | <div> |
| | | <div class="form-group row"> |
| | | <label class="col-sm-2 col-form-label"> |
| | | <span><vc:i18n name="折扣名称" namespace="addFeeDiscount"></vc:i18n></span> |
| | | <span> |
| | | <vc:i18n name="折扣名称" namespace="addFeeDiscount"></vc:i18n> |
| | | </span> |
| | | </label> |
| | | <div class="col-sm-10"> |
| | | <input v-model.trim="addFeeDiscountInfo.discountName" type="text" |
| | | :placeholder="vc.i18n('必填,请填写折扣名称','addFeeDiscount')" class="form-control"> |
| | | :placeholder="vc.i18n('必填,请填写折扣名称','addFeeDiscount')" class="form-control"> |
| | | </div> |
| | | </div> |
| | | <div class="form-group row"> |
| | | <label class="col-sm-2 col-form-label"> |
| | | <span><vc:i18n name="折扣类型" namespace="addFeeDiscount"></vc:i18n></span> |
| | | <span> |
| | | <vc:i18n name="折扣类型" namespace="addFeeDiscount"></vc:i18n> |
| | | </span> |
| | | </label> |
| | | <div class="col-sm-10"> |
| | | <select class="custom-select" v-model="addFeeDiscountInfo.discountType" |
| | | @change="_changeAddFeeDiscountType()"> |
| | | @change="_changeAddFeeDiscountType()"> |
| | | <option selected disabled value=""> |
| | | {{vc.i18n('必填','addFeeDiscount')}},请选择折扣类型 |
| | | </option> |
| | | <option v-for="(item,index) in addFeeDiscountInfo.discountTypes" :key="index" |
| | | :value="item.statusCd">{{item.name}} |
| | | :value="item.statusCd">{{item.name}} |
| | | </option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="form-group row"> |
| | | <label class="col-sm-2 col-form-label"> |
| | | <span><vc:i18n name="规则" namespace="addFeeDiscount"></vc:i18n></span> |
| | | <span> |
| | | <vc:i18n name="规则" namespace="addFeeDiscount"></vc:i18n> |
| | | </span> |
| | | </label> |
| | | <div class="col-sm-10"> |
| | | <select v-model="addFeeDiscountInfo.ruleId" class="form-control" |
| | | @change="_changeAddFeeDiscountRule()"> |
| | | @change="_changeAddFeeDiscountRule()"> |
| | | <option value="">{{vc.i18n('必填','addFeeDiscount')}},请选择规则</option> |
| | | <option v-for="(item,index) in addFeeDiscountInfo.rules" :value="item.ruleId"> |
| | | {{item.ruleName}} |
| | |
| | | <label class="col-sm-2 col-form-label">{{item.specName}}</label> |
| | | <div class="col-sm-10"> |
| | | <input v-model.trim="item.specValue" type="number" :placeholder="item.remark" |
| | | class="form-control"> |
| | | class="form-control"> |
| | | <span v-if="item.specName=='月份'">说明:至少缴纳月份为0时代表不限制缴纳周期,历史折扣需设置至少缴纳月份为0</span> |
| | | </div> |
| | | </div> |
| | | <div class="form-group row"> |
| | | <label class="col-sm-2 col-form-label"> |
| | | <span><vc:i18n name="描述" namespace="addFeeDiscount"></vc:i18n></span> |
| | | <span> |
| | | <vc:i18n name="描述" namespace="addFeeDiscount"></vc:i18n> |
| | | </span> |
| | | </label> |
| | | <div class="col-sm-10"> |
| | | <textarea v-model.trim="addFeeDiscountInfo.discountDesc" |
| | | :placeholder="vc.i18n('可选,请填写描述','addFeeDiscount')" |
| | | class="form-control"> |
| | | <textarea v-model.trim="addFeeDiscountInfo.discountDesc" |
| | | :placeholder="vc.i18n('可选,请填写描述','addFeeDiscount')" class="form-control"> |
| | | </textarea> |
| | | </div> |
| | | </div> |
| | | <div class="ibox-content"> |
| | | <button class="btn btn-primary float-right" type="button" |
| | | v-on:click="saveFeeDiscountInfo()"> |
| | | v-on:click="saveFeeDiscountInfo()"> |
| | | <i class="fa fa-check"></i> 保存 |
| | | </button> |
| | | <button type="button" class="btn btn-warning float-right" style="margin-right:20px;" |
| | | data-dismiss="modal"> |
| | | data-dismiss="modal"> |
| | | <i class="fa fa-times"></i> 取消 |
| | | </button> |
| | | </div> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | -- |
| | | </td> |
| | | <td class="text-center" v-if="car.leaseType == 'H' || car.leaseType == 'S'"> |
| | | {{car.startTime}}</br>~{{car.endTime}} |
| | | {{car.startTime.split(' ')[0]}}</br>~{{car.endTime.split(' ')[0]}} |
| | | </td> |
| | | <td class="text-center" v-else> |
| | | -- |
| | |
| | | </div> |
| | | <div class="margin-top"> |
| | | <div class="hc-table-div" :style="{'width':_computeTableDivWidth()}"> |
| | | <table class="table table-bordered" data-page-size="15"> |
| | | <table class="table table-bordered middle-bordered" data-page-size="15"> |
| | | <thead> |
| | | <tr> |
| | | <th rowspan="3" class="text-center"> |
| | |
| | | 月物业费" namespace="reportFeeDetailOwner"></vc:i18n> |
| | | </th> |
| | | <th rowspan="3" class="text-center"> |
| | | <vc:i18n name="年 |
| | | 应收款" namespace="reportFeeDetailOwner"></vc:i18n> |
| | | <vc:i18n name="年应收款" namespace="reportFeeDetailOwner"></vc:i18n> |
| | | </th> |
| | | <th colspan="8" class="text-center">合计(2020年1月-至今)</th> |
| | | <th :colspan="managementFee.history.length * 3" class="text-center">历史实收</th> |
| | |
| | | <vc:i18n name="应收" namespace="reportFeeDetailOwner"></vc:i18n> |
| | | </th> |
| | | <th rowspan="2" class="text-center"> |
| | | <vc:i18n name="应收" namespace="reportFeeDetailOwner"></vc:i18n> |
| | | <vc:i18n name="实收" namespace="reportFeeDetailOwner"></vc:i18n> |
| | | </th> |
| | | <th rowspan="2" class="text-center"> |
| | | <vc:i18n name="应收" namespace="reportFeeDetailOwner"></vc:i18n> |
| | | <vc:i18n name="代收" namespace="reportFeeDetailOwner"></vc:i18n> |
| | | </th> |
| | | <th rowspan="2" class="text-center"> |
| | | <vc:i18n name="应收" namespace="reportFeeDetailOwner"></vc:i18n> |
| | | <vc:i18n name="2026年" namespace="reportFeeDetailOwner"></vc:i18n> |
| | | </th> |
| | | <th rowspan="2" class="text-center"> |
| | | <vc:i18n name="应收" namespace="reportFeeDetailOwner"></vc:i18n> |
| | | <vc:i18n name="2027年" namespace="reportFeeDetailOwner"></vc:i18n> |
| | | </th> |
| | | <th rowspan="2" class="text-center"> |
| | | <vc:i18n name="应收" namespace="reportFeeDetailOwner"></vc:i18n> |
| | | <vc:i18n name="待收月数" namespace="reportFeeDetailOwner"></vc:i18n> |
| | | </th> |
| | | <th rowspan="2" class="text-center"> |
| | | <vc:i18n name="应收" namespace="reportFeeDetailOwner"></vc:i18n> |
| | | <vc:i18n name="待收金额" namespace="reportFeeDetailOwner"></vc:i18n> |
| | | </th> |
| | | <th rowspan="2" class="text-center"> |
| | | <vc:i18n name="应收" namespace="reportFeeDetailOwner"></vc:i18n> |
| | | <vc:i18n name="待收区间" namespace="reportFeeDetailOwner"></vc:i18n> |
| | | </th> |
| | | <th v-for="year in managementFee.history" :key="year.year" class="text-center" |
| | | colspan="3">{{ year.year }}年</th> |
| | | </tr> |
| | | <tr> |
| | | <template v-for="(item, index) in managementFee.history" :key="index"> |
| | | <th class="text-center">已收月数</th> |
| | | <th class="text-center">已收月数</th> |
| | | <th class="text-center"> 已收区间</th> |
| | | <th class="text-center"> 未收区间</th> |
| | | </template> |
| | |
| | | <div class="col-sm-3"> |
| | | <div class="form-group"> |
| | | <label class="col-form-label"> |
| | | <vc:i18n name="电话号码:" namespace="feeDetailInfo"></vc:i18n> |
| | | <vc:i18n name="产权联系人:" namespace="feeDetailInfo"></vc:i18n> |
| | | |
| | | </label> |
| | | <label class="">{{feeDetailInfo.ownerId}}</label> |
| | |
| | | <div class="col-sm-3"> |
| | | <div class="form-group"> |
| | | <label class="col-form-label"> |
| | | <vc:i18n name="产权人:" namespace="feeDetailInfo"></vc:i18n> |
| | | <vc:i18n name="产证号码:" namespace="feeDetailInfo"></vc:i18n> |
| | | </label> |
| | | <label class="">{{feeDetailInfo.name}}</label> |
| | | </div> |
| | | </div> |
| | | <div class="col-sm-3" v-if="feeDetailInfo.personType == 'P'"> |
| | | <div class="col-sm-3"> |
| | | <div class="form-group"> |
| | | <label class="col-form-label"> |
| | | <vc:i18n name="身份证号码:" namespace="feeDetailInfo"></vc:i18n> |
| | |
| | | </label> |
| | | </div> |
| | | </div> |
| | | |
| | | |
| | | <div class="col-sm-3"> |
| | | <div class="form-group"> |
| | | <label class="col-form-label"> |
| | | <vc:i18n name="联络地址:" namespace="feeDetailInfo"></vc:i18n> |
| | | <vc:i18n name="电话号码:" namespace="feeDetailInfo"></vc:i18n> |
| | | </label> |
| | | <label class="">{{feeDetailInfo.personTypeName}}</label> |
| | | </div> |
| | |
| | | <div class="col-sm-3"> |
| | | <div class="form-group"> |
| | | <label class="col-form-label"> |
| | | <vc:i18n name="产证号码:" namespace="feeDetailInfo"></vc:i18n> |
| | | <vc:i18n name="联络地址:" namespace="feeDetailInfo"></vc:i18n> |
| | | </label> |
| | | <label class="">{{feeDetailInfo.personRoleName}}</label> |
| | | </div> |
| | |
| | | <div class="col-sm-3"> |
| | | <div class="form-group"> |
| | | <label class="col-form-label"> |
| | | <vc:i18n name="是否安装充电桩:" namespace="feeDetailInfo"></vc:i18n> |
| | | <vc:i18n name="其他联系地址:" namespace="feeDetailInfo"></vc:i18n> |
| | | </label> |
| | | <label class="">{{feeDetailInfo.idCard}}</label> |
| | | </div> |
| | | </div> |
| | | <div class="col-sm-3"> |
| | | <!-- <div class="col-sm-3"> |
| | | <div class="form-group"> |
| | | <label class="col-form-label"> |
| | | <vc:i18n name="充电桩:" namespace="feeDetailInfo"></vc:i18n> |
| | |
| | | </label> |
| | | <label class="">{{feeDetailInfo.concactLink}}</label> |
| | | </div> |
| | | </div> |
| | | </div> --> |
| | | </div> |
| | | </div> |
| | | </div> |
| New file |
| | |
| | | <div> |
| | | <div class="ibox"> |
| | | <div class="ibox-title"> |
| | | <h5> |
| | | <vc:i18n name="查询条件" namespace="reportFeeDetail"></vc:i18n> |
| | | </h5> |
| | | <div class="ibox-tools" style="top:10px;"> |
| | | <button type="button" class="btn btn-link btn-sm" style="margin-right:10px;" |
| | | v-on:click="_moreCondition()"> |
| | | {{transactionReport.moreCondition == true?'隐藏':'更多'}} |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="ibox-content"> |
| | | <div class="row"> |
| | | <div class="col-sm-2"> |
| | | <div class="form-group input-group"> |
| | | <input type="text" :placeholder="vc.i18n('请选择缴费开始时间','reportFeeDetail')" |
| | | v-model="transactionReport.conditions.startDate" class=" form-control startDate"> |
| | | </div> |
| | | </div> |
| | | <div class="col-sm-2"> |
| | | <div class="form-group input-group"> |
| | | <input type="text" :placeholder="vc.i18n('请选择缴费结束时间','reportFeeDetail')" |
| | | v-model="transactionReport.conditions.endDate" class=" form-control endDate"> |
| | | </div> |
| | | </div> |
| | | <div class="col-sm-2"> |
| | | <div class="form-group"> |
| | | <input type="text" :placeholder="vc.i18n('请填写房屋编号/合同名称/车牌号','reportFeeDetail')" |
| | | class="form-control form-control-md" v-model.trim="transactionReport.conditions.objName"> |
| | | </div> |
| | | </div> |
| | | <div class="col-sm-2"> |
| | | <button type="button" class="btn btn-primary btn-md" v-on:click="_queryMethod()"> |
| | | <i class="fa fa-search"></i> |
| | | <vc:i18n name="查询" namespace="reportFeeDetail"></vc:i18n> |
| | | </button> |
| | | <button type="button" class="btn btn-primary btn-md" v-on:click="_resetMethod()"> |
| | | <i class="fa fa-repeat"></i> |
| | | <vc:i18n name="重置" namespace="reportFeeDetail"></vc:i18n> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="row" v-show="transactionReport.moreCondition == true"> |
| | | <div class="col-sm-2"> |
| | | <div class="form-group input-group"> |
| | | <input type="text" :placeholder="vc.i18n('请填写业主名称','reportFeeDetail')" |
| | | v-model.trim="transactionReport.conditions.ownerName" class=" form-control"> |
| | | </div> |
| | | </div> |
| | | <div class="col-sm-2"> |
| | | <div class="form-group"> |
| | | <input type="text" :placeholder="vc.i18n('请填写业主手机号','reportFeeDetail')" |
| | | class="form-control form-control-md" v-model.trim="transactionReport.conditions.link"> |
| | | </div> |
| | | </div> |
| | | <div class="col-sm-2" v-if="transactionReport.communitys.length>1"> |
| | | <select class="form-control-md form-control input-s-sm inline" |
| | | v-model="transactionReport.conditions.communityId" @change="_changCommunity()"> |
| | | <option disabled selected value="">{{vc.i18n('请选择小区','reportFeeSummary')}}</option> |
| | | <option v-for="(item,index) in transactionReport.communitys" :key="index" |
| | | v-bind:value="item.communityId">{{item.name}} |
| | | </option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="white-bg padding-lg"> |
| | | <div class="margin-top"> |
| | | <div> |
| | | <div class="text-right"> |
| | | <button type="button" class="btn btn-primary btn-sm" |
| | | v-on:click="_exportReportFeeDetailOwnerExcel()"> |
| | | <i class="fa fa-plus"></i> |
| | | <vc:i18n name="导出" namespace="reportFeeDetailOwner"></vc:i18n> |
| | | </button> |
| | | </div> |
| | | <div class="margin-top"> |
| | | <div class="hc-table-div" :style="{'width':_computeTableDivWidth()}"> |
| | | <table class="table table-bordered" data-page-size="15"> |
| | | <thead> |
| | | <tr> |
| | | <th class="text-center"> |
| | | <vc:i18n name="RowNo" namespace="reportFeeDetailOwner"></vc:i18n> |
| | | </th> |
| | | <th class="text-center"> |
| | | <vc:i18n name="房屋" namespace="reportFeeDetailOwner"></vc:i18n> |
| | | </th> |
| | | <th class="text-center"> |
| | | <vc:i18n name="序号" namespace="reportFeeDetailOwner"></vc:i18n> |
| | | </th> |
| | | <th class="text-center"> |
| | | <vc:i18n name="收费日期" namespace="reportFeeDetailOwner"></vc:i18n> |
| | | </th> |
| | | <th class="text-center"> |
| | | <vc:i18n name="发票、收据号码" namespace="reportFeeDetailOwner"></vc:i18n> |
| | | </th> |
| | | <th class="text-center"> |
| | | <vc:i18n name="业主地址" namespace="reportFeeDetailOwner"></vc:i18n> |
| | | </th> |
| | | <th class="text-center"> |
| | | <vc:i18n name="门幢室号" namespace="reportFeeDetailOwner"></vc:i18n> |
| | | </th> |
| | | <th class="text-center"> |
| | | <vc:i18n name="归属年份(年)" namespace="reportFeeDetailOwner"></vc:i18n> |
| | | </th> |
| | | <th class="text-center"> |
| | | <vc:i18n name="收费区间" namespace="reportFeeDetailOwner"></vc:i18n> |
| | | </th> |
| | | <th class="text-center"> |
| | | <vc:i18n name="收费内容" namespace="reportFeeDetailOwner"></vc:i18n> |
| | | </th> |
| | | <th class="text-center"> |
| | | <vc:i18n name="收费金额" namespace="reportFeeDetailOwner"></vc:i18n> |
| | | </th> |
| | | <th class="text-center"> |
| | | <vc:i18n name="收费人" namespace="reportFeeDetailOwner"></vc:i18n> |
| | | </th> |
| | | <th class="text-center"> |
| | | <vc:i18n name="银行解款日期" namespace="reportFeeDetailOwner"></vc:i18n> |
| | | </th> |
| | | <th class="text-center"> |
| | | <vc:i18n name="银行解款人" namespace="reportFeeDetailOwner"></vc:i18n> |
| | | </th> |
| | | <th class="text-center"> |
| | | <vc:i18n name="拆分后银行解款金额" namespace="reportFeeDetailOwner"></vc:i18n> |
| | | </th> |
| | | <th class="text-center"> |
| | | <vc:i18n name="银行解款金额" namespace="reportFeeDetailOwner"></vc:i18n> |
| | | </th> |
| | | |
| | | <th class="text-center"> |
| | | <vc:i18n name="核对金额" namespace="reportFeeDetailOwner"></vc:i18n> |
| | | </th> |
| | | <th class="text-center"> |
| | | <vc:i18n name="白单存档编号" namespace="reportFeeDetailOwner"></vc:i18n> |
| | | </th> |
| | | <th class="text-center"> |
| | | <vc:i18n name="张数" namespace="reportFeeDetailOwner"></vc:i18n> |
| | | </th> |
| | | <th class="text-center"> |
| | | <vc:i18n name="财务收账人" namespace="reportFeeDetailOwner"></vc:i18n> |
| | | </th> |
| | | <th class="text-center"> |
| | | <vc:i18n name="输入时间" namespace="reportFeeDetailOwner"></vc:i18n> |
| | | </th> |
| | | <th class="text-center"> |
| | | <vc:i18n name="输入人员" namespace="reportFeeDetailOwner"></vc:i18n> |
| | | </th> |
| | | <th class="text-center"> |
| | | <vc:i18n name="收款年/月" namespace="reportFeeDetailOwner"></vc:i18n> |
| | | </th> |
| | | <th class="text-center"> |
| | | <vc:i18n name="收款年度" namespace="reportFeeDetailOwner"></vc:i18n> |
| | | </th> |
| | | <th class="text-center"> |
| | | <vc:i18n name="白单存档单号" namespace="reportFeeDetailOwner"></vc:i18n> |
| | | </th> |
| | | <th class="text-center"> |
| | | <vc:i18n name="车牌号" namespace="reportFeeDetailOwner"></vc:i18n> |
| | | </th> |
| | | <th class="text-center"> |
| | | <vc:i18n name="待解决问题" namespace="reportFeeDetailOwner"></vc:i18n> |
| | | </th> |
| | | <th class="text-center"> |
| | | <vc:i18n name="22项分类" namespace="reportFeeDetailOwner"></vc:i18n> |
| | | </th> |
| | | <th class="text-center"> |
| | | <vc:i18n name="财务核对" namespace="reportFeeDetailOwner"></vc:i18n> |
| | | </th> |
| | | <th class="text-center"> |
| | | <vc:i18n name="车位号" namespace="reportFeeDetailOwner"></vc:i18n> |
| | | </th> |
| | | </tr> |
| | | |
| | | </thead> |
| | | |
| | | <tbody> |
| | | <tr v-for="fee in transactionReport.fees"> |
| | | <td class="text-center" v-if="fee.link">{{fee.ownerName}}({{fee.link}})</td> |
| | | <td class="text-center" v-else>{{fee.ownerName}}</td> |
| | | <td class="text-center">{{fee.oweFee || '0'}}</td> |
| | | <template v-if="transactionReport.history"> |
| | | <template v-for="(item, index) in transactionReport.history" :key="index"> |
| | | <td class="text-center">{{ item.value1 }}</td> |
| | | <td class="text-center">{{ item.value2 }}</td> |
| | | <td class="text-center">{{ item.value3 }}</td> |
| | | </template> |
| | | </template> |
| | | |
| | | </tr> |
| | | </tbody> |
| | | </table> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="row margin-top-xs"> |
| | | <div class="col-sm-12 float-right"> |
| | | <vc:create namespace="reportFeeDetailOwner" path="frame/paginationPlus"></vc:create> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| New file |
| | |
| | | (function (vc) { |
| | | var DEFAULT_PAGE = 1; |
| | | var DEFAULT_ROWS = 10; |
| | | vc.extends({ |
| | | data: { |
| | | transactionReport: { |
| | | _currentTab: 'reportFeeDetailRoom', |
| | | floors: [], |
| | | moreCondition: false, |
| | | communitys: [], |
| | | fees: [], |
| | | feeTypeCds: [], |
| | | total: 0, |
| | | records: 0, |
| | | conditions: { |
| | | floorId: '', |
| | | objName: '', |
| | | startDate: '', |
| | | endDate: '', |
| | | configId: '', |
| | | feeTypeCd: '', |
| | | ownerName: '', |
| | | link: '', |
| | | communityId: '' |
| | | }, |
| | | history: [{ |
| | | year: 2020, |
| | | value1: 200, |
| | | value2: 200, |
| | | value3: 200, |
| | | }, |
| | | { |
| | | year: 2021, |
| | | value1: 200, |
| | | value2: 200, |
| | | value3: 200, |
| | | }, |
| | | { |
| | | year: 2023, |
| | | value1: 200, |
| | | value2: 200, |
| | | value3: 200, |
| | | }, |
| | | { |
| | | year: 2024, |
| | | value1: 200, |
| | | value2: 200, |
| | | value3: 200, |
| | | }, |
| | | { |
| | | year: 2025, |
| | | value1: 200, |
| | | value2: 200, |
| | | value3: 200, |
| | | } |
| | | ] |
| | | }, |
| | | // transactionReport: { |
| | | // fees: [], |
| | | // feeTypeCds: [], |
| | | // conditions: {}, |
| | | // total: 0, |
| | | // records: 0 |
| | | // } |
| | | }, |
| | | _initMethod: function () { |
| | | $that._initDate(); |
| | | $that._loadStaffCommunitys(); |
| | | $that.transactionReport.conditions.communityId = vc.getCurrentCommunity().communityId; |
| | | // $that.changeTab($that.transactionReport._currentTab); |
| | | vc.getDict('pay_fee_config', "fee_type_cd_show", function (_data) { |
| | | $that.transactionReport.feeTypeCds = _data |
| | | }); |
| | | $that._listReportFeeDetailOwners(DEFAULT_PAGE, DEFAULT_ROWS); |
| | | }, |
| | | _initEvent: function () { |
| | | vc.on("indexContext", "_queryIndexContextData", function (_param) { }); |
| | | vc.on('reportFeeDetailOwner', 'switch', function (_data) { |
| | | $that.transactionReport.conditions = _data; |
| | | $that._listReportFeeDetailOwners(DEFAULT_PAGE, DEFAULT_ROWS); |
| | | }); |
| | | vc.on('reportFeeDetailOwner', 'notify', function (_data) { |
| | | $that.transactionReport.conditions = _data; |
| | | $that._listReportFeeDetailOwners(DEFAULT_PAGE, DEFAULT_ROWS); |
| | | }); |
| | | vc.on('reportFeeDetailOwner', 'paginationPlus', 'page_event', function (_currentPage) { |
| | | $that._listReportFeeDetailOwners(_currentPage, DEFAULT_ROWS); |
| | | }); |
| | | }, |
| | | methods: { |
| | | _toDetail: function (_fee) { |
| | | vc.jumpToPage('/#/pages/property/transactionReportsDetail?feeId=' + _fee.feeId); |
| | | }, |
| | | _computeTableDivWidth: function () { |
| | | let mainWidth = document.getElementsByTagName('body')[0].clientWidth - document.getElementById('menu-nav').offsetWidth; |
| | | //let treeWidth = document.getElementsByClassName('room-floor-unit-tree')[0].offsetWidth; |
| | | mainWidth = mainWidth - 20 - 15 - 20; |
| | | //document.getElementsByClassName('hc-table-div')[0].style.width=mainWidth+'px'; |
| | | return mainWidth + 'px'; |
| | | }, |
| | | _initDate: function () { |
| | | vc.initDate('startDate', function (_value) { |
| | | $that.transactionReport.conditions.startDate = _value; |
| | | }); |
| | | vc.initDate('endDate', function (_value) { |
| | | $that.transactionReport.conditions.endDate = _value; |
| | | }); |
| | | let _data = new Date(); |
| | | let _month = _data.getMonth() + 1; |
| | | let _newDate = ""; |
| | | if (_month < 10) { |
| | | _newDate = _data.getFullYear() + "-0" + _month + "-01"; |
| | | } else { |
| | | _newDate = _data.getFullYear() + "-" + _month + "-01"; |
| | | } |
| | | $that.transactionReport.conditions.startDate = _newDate; |
| | | _data.setMonth(_data.getMonth() + 1); |
| | | _month = _data.getMonth() + 1; |
| | | if (_month < 10) { |
| | | _newDate = _data.getFullYear() + "-0" + _month + "-01"; |
| | | } else { |
| | | _newDate = _data.getFullYear() + "-" + _month + "-01"; |
| | | } |
| | | $that.transactionReport.conditions.endDate = _newDate; |
| | | }, |
| | | changeTab: function (_tab) { |
| | | $that.transactionReport._currentTab = _tab; |
| | | vc.emit(_tab, 'switch', $that.transactionReport.conditions) |
| | | }, |
| | | //查询 |
| | | _queryMethod: function () { |
| | | $that.changeTab($that.transactionReport._currentTab); |
| | | }, |
| | | //重置 |
| | | _resetMethod: function () { |
| | | vc.component.transactionReport.conditions.startDate = ""; |
| | | vc.component.transactionReport.conditions.endDate = ""; |
| | | vc.component.transactionReport.conditions.objName = ""; |
| | | vc.component.transactionReport.conditions.ownerName = ""; |
| | | vc.component.transactionReport.conditions.link = ""; |
| | | // vc.component.transactionReport.conditions.communityId = ""; |
| | | $that._initDate(); |
| | | $that.changeTab($that.transactionReport._currentTab); |
| | | }, |
| | | _loadStaffCommunitys: function () { |
| | | let param = { |
| | | params: { |
| | | _uid: '123mlkdinkldldijdhuudjdjkkd', |
| | | page: 1, |
| | | row: 100, |
| | | } |
| | | }; |
| | | vc.http.apiGet('/community.listMyEnteredCommunitys', |
| | | param, |
| | | function (json, res) { |
| | | if (res.status == 200) { |
| | | let _data = JSON.parse(json); |
| | | $that.transactionReport.communitys = _data.communitys; |
| | | } |
| | | }, |
| | | function () { |
| | | console.log('请求失败处理'); |
| | | } |
| | | ); |
| | | }, |
| | | _changCommunity: function () { |
| | | $that.changeTab($that.transactionReport._currentTab); |
| | | }, |
| | | _moreCondition: function () { |
| | | if (vc.component.transactionReport.moreCondition) { |
| | | vc.component.transactionReport.moreCondition = false; |
| | | } else { |
| | | vc.component.transactionReport.moreCondition = true; |
| | | } |
| | | }, |
| | | _listReportFeeDetailOwners: function (_page, _rows) { |
| | | console.log('_listReportFeeDetailOwners11111'); |
| | | $that.transactionReport.conditions.page = _page; |
| | | $that.transactionReport.conditions.row = _rows; |
| | | $that.transactionReport.conditions.floorId = $that.transactionReport.floorId; |
| | | let param = { |
| | | params: $that.transactionReport.conditions |
| | | }; |
| | | //发送get请求 |
| | | vc.http.apiGet('/reportFeeMonthStatistics.queryReportFeeDetailOwner', |
| | | param, |
| | | function (json, res) { |
| | | let _json = JSON.parse(json); |
| | | console.log('_listReportFeeDetailOwners2222222', _json); |
| | | $that.transactionReport.total = _json.total; |
| | | $that.transactionReport.records = _json.records; |
| | | $that.transactionReport.fees = _json.data; |
| | | $that.transactionReport.fees.history = $that.transactionReport.history |
| | | vc.emit('reportFeeDetailOwner', 'paginationPlus', 'init', { |
| | | total: $that.transactionReport.records, |
| | | dataCount: $that.transactionReport.total, |
| | | currentPage: _page, |
| | | }); |
| | | }, |
| | | function (errInfo, error) { |
| | | console.log('请求失败处理'); |
| | | } |
| | | ); |
| | | }, |
| | | _exportReportFeeDetailOwnerExcel: function () { |
| | | //$that.transactionReport.conditions.communityId = vc.getCurrentCommunity().communityId; |
| | | $that.transactionReport.conditions.pagePath = 'reportFeeDetailOwner'; |
| | | let param = { |
| | | params: $that.transactionReport.conditions |
| | | }; |
| | | //发送get请求 |
| | | vc.http.apiGet('/export.exportData', param, |
| | | function (json, res) { |
| | | let _json = JSON.parse(json); |
| | | vc.toast(_json.msg); |
| | | if (_json.code == 0) { |
| | | vc.jumpToPage('/#/pages/property/downloadTempFile?tab=下载中心') |
| | | } |
| | | }, |
| | | function (errInfo, error) { |
| | | console.log('请求失败处理'); |
| | | }); |
| | | } |
| | | } |
| | | }) |
| | | })(window.vc); |