Files
wysite/hc-pos.sqygj.cn/static/js/chunk-b80719aa.899b1331.js

1 line
67 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b80719aa"],{"17c2":function(e,t,a){"use strict";a("cb18")},"4e5f":function(e,t,a){},"54f4":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container bgHeight"},[a("div",{staticClass:"material"},[a("el-tabs",{attrs:{type:"border-card"},on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"收款明细",name:"collection"}},[a("collection-info",{directives:[{name:"show",rawName:"v-show",value:"collection"===e.activeName,expression:"activeName === 'collection'"}],ref:"collection",on:{list:e.recordList}})],1),e._v(" "),a("el-tab-pane",{attrs:{label:"保证金/押金明细",name:"temporary"}},[a("temporary-info",{directives:[{name:"show",rawName:"v-show",value:"temporary"===e.activeName,expression:"activeName === 'temporary'"}],ref:"temporary"})],1),e._v(" "),a("el-tab-pane",{attrs:{label:"对账记录",name:"record"}},[a("record-list",{directives:[{name:"show",rawName:"v-show",value:"record"===e.activeName,expression:"activeName === 'record'"}],ref:"record",on:{list:e.recordList}})],1),e._v(" "),a("el-tab-pane",{attrs:{label:"预缴明细",name:"prePayRecord"}},["prePayRecord"===e.activeName?a("prePayRecord",{ref:"prePayRecord"}):e._e()],1),e._v(" "),a("el-tab-pane",{attrs:{label:"流水账",name:"chronicle"}},[a("chronicle",{directives:[{name:"show",rawName:"v-show",value:"chronicle"===e.activeName,expression:"activeName === 'chronicle'"}],ref:"chronicle"})],1)],1)],1)])},n=[],r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("info-table",{ref:"infoTable",attrs:{download:"",all:"",part:"",statistics:"",statisticsData:e.statisticsInfo,tableType:"collection",listData:e.listData,total:e.total,listLoading:e.listLoad},on:{list:e.getList,search:e.formSearch,pageChange:e.formSearch,reset:e.formReset}})],1)},o=[],l=a("dce1"),s=a("a3cb"),u={components:{infoTable:s["a"]},data:function(){return{listLoad:!1,listData:[],total:0,search:{pageSize:10,pageNumber:1},statisticsInfo:{}}},mounted:function(){var e=sessionStorage.getItem("canQuery");this.$route.query.accountNo&&e&&(this.search.accountNo=this.$route.query.accountNo,this.search.isRefund=this.$route.query.isRefund,this.search.payType=this.$route.query.payType,this.$refs.infoTable.setVal(this.$route.query),sessionStorage.setItem("canQuery",!1)),this.$refs.infoTable.searchClick()},methods:{getListData:function(){var e=this;this.listLoad=!0,this.search.projectUuid=this.$store.state.community_uuid,console.log("最终搜索被触发了++++,",this.search),Object(l["k"])(this.search).then((function(t){t.data&&t.data.records?(e.listData=t.data.records,e.total=t.data.rowsCount,e.listLoad=!1):e.listLoad=!1})).catch((function(t){e.listLoad=!1})),this.search.changeSize||this.getTotal()},getTotal:function(){var e=this;Object(l["t"])(this.search).then((function(t){t.data?e.statisticsInfo=t.data:e.statisticsInfo={}}))},formSearch:function(e){if(e.accountNo){var t=e.accountNo.replace(/ /g,",").replace(/,/g,"");if(t.split("/").length>7)return void this.$message.error("一次性只能输入七个账户");t=t.split("/").join(","),e.accountNo=t}this.search=e,this.getListData()},formReset:function(e){this.search=e,this.getListData()},getList:function(){this.$emit("list")}}},c=u,d=a("829d"),p=Object(d["a"])(c,r,o,!1,null,"de9545f4",null),m=p.exports,h=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"收款记录",name:"list"}},[a("info-table",{attrs:{tableType:"deposit",download:"",refund:"",change:"",depositData:e.depositData,listData:e.listData,statistics:"",total:e.total,listLoading:e.listLoad},on:{search:e.formSearch,pageChange:e.formSearch,reset:e.formReset}})],1),e._v(" "),a("el-tab-pane",{attrs:{label:"押金使用明细",name:"detail"}},[a("detail-table")],1)],1)],1)},f=[],y=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"searchContent"},[a("el-form",{ref:"query",staticClass:"demo-form-inline",attrs:{inline:!0,model:e.query}},[a("el-form-item",{attrs:{prop:"chargeDates"}},[a("el-date-picker",{attrs:{type:"months",format:"yyyy-MM","value-format":"yyyy-MM",placeholder:"选择计费账期"},model:{value:e.query.chargeDates,callback:function(t){e.$set(e.query,"chargeDates",t)},expression:"query.chargeDates"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"chargesIdList"}},[a("el-cascader",{attrs:{placeholder:"选择收费项",options:e.chargesArr,props:e.props,clearable:"",filterable:""},model:{value:e.query.chargesIdList,callback:function(t){e.$set(e.query,"chargesIdList",t)},expression:"query.chargesIdList"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"precinctId"}},[a("el-select",{attrs:{filterable:"",clearable:"",placeholder:"管理区名称"},on:{change:e.selectChange},model:{value:e.query.precinctId,callback:function(t){e.$set(e.query,"precinctId",t)},expression:"query.precinctId"}},e._l(e.areaOptions,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"buildingId"}},[a("el-select",{attrs:{filterable:"",clearable:"",placeholder:"所有楼栋"},on:{change:e.changeBuild},model:{value:e.query.buildingId,callback:function(t){e.$set(e.query,"buildingId",t)},expression:"query.buildingId"}},e._l(e.building,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"unitId"}},[a("el-select",{attrs:{filterable:"",clearable:"",placeholder:"所有单元"},model:{value:e.query.unitId,callback:function(t){e.$set(e.query,"unitId",t)},expression:"query.unitId"}},e._l(e.unitList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"roomNum"}},[a("el-input",{attrs:{placeholder:"请输入房号",clearable:""},model:{value:e.query.roomNum,callback:function(t){e.$set(e.query,"roomNum",t)},expression:"query.roomNum"}})],1)],1),e._v(" "),a("div",[a("el-button",{attrs:{type:"primary"},on:{click:e.searchClick}},[e._v("搜索")]),e._v(" "),a("el-button",{on:{click:e.resetClick}},[e._v("重置")])],1)],1),e._v(" "),a("el-table",{attrs:{data:e.tableData,"header-cell-style":e.headClass,border:""}},[a("el-table-column",{attrs:{type:"expand",label:"#"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.directionType?a("div",[a("el-table",{attrs:{data:t.row.chargeReceivableDetailRespDTOS,size:"mini","header-cell-style":e.headClass2,border:""}},[a("el-table-column",{attrs:{align:"center",label:"转入房屋号",prop:"roomNum","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.precinctName+"-"+t.row.buildingName+"-"+t.row.unitName+"-"+t.row.roomNum)+"\n ")]}}],null,!0)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"转入收费项",prop:"chargeName","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.chargeName||"-")+"\n ")]}}],null,!0)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"转入账期",prop:"chargeDate","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.chargeDate||"-")+"\n ")]}}],null,!0)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"转入本金",prop:"payAmount","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticStyle:{"text-align":"right"}},[e._v("\n "+e._s(e._f("toThousandFilter")(t.row.payAmount))+"\n ")])]}}],null,!0)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"转入违约金",prop:"feeAmount","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticStyle:{"text-align":"right"}},[e._v("\n "+e._s(e._f("toThousandFilter")(t.row.feeAmount))+"\n ")])]}}],null,!0)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"销单备注",prop:"remark","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.remark||"-")+"\n ")]}}],null,!0)})],1)],1):e._e(),e._v(" "),2==t.row.directionType?a("div",[a("el-table",{attrs:{data:t.row.prepayChargeAccountRespDTOS,size:"mini","header-cell-style":e.headClass2,border:""}},[a("el-table-column",{attrs:{align:"center",label:"转入房屋号","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.precinctName+"-"+t.row.buildingName+"-"+t.row.unitName+"-"+t.row.roomNum)+"\n ")]}}],null,!0)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"转入收费项","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.fschargeName||"-")+"\n ")]}}],null,!0)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"转入本金","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticStyle:{"text-align":"right"}},[e._v("\n "+e._s(e._f("toThousandFilter")(t.row.amount))+"\n ")])]}}],null,!0)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"转入结算账户","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.account||"-")+"\n ")]}}],null,!0)})],1)],1):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"转出房屋号","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.precinctName+"-"+t.row.buildingName+"-"+t.row.unitName+"-"+t.row.roomNum)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"使用方式","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(1==t.row.directionType?"冲抵历史欠费":2==t.row.directionType?"充值预缴":"-")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"转出收费项","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.chargeName||"-")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"应收分类","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("getItemType")(t.row.type,e.feeTypeList))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"账期","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.chargeDate||"-")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"转出支付/销单时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.payTime||"-")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"交易金额","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticStyle:{"text-align":"right"}},[e._v("\n "+e._s(e._f("toThousandFilter")(t.row.payAmount))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"交易违约金","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticStyle:{"text-align":"right"}},[e._v("\n "+e._s(e._f("toThousandFilter")(t.row.feeAmount))+"\n ")])]}}])})],1),e._v(" "),a("div",{staticClass:"paginations"},[a("el-pagination",{attrs:{background:"","current-page":e.query.pageNumber,"page-sizes":[10,30,50,100,200],"page-size":e.query.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"update:currentPage":function(t){return e.$set(e.query,"pageNumber",t)},"update:current-page":function(t){return e.$set(e.query,"pageNumber",t)},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],1)},b=[],g=a("dce5"),v=a("ce63"),_=a("2b74"),w=a("e654"),T={data:function(){return{feeTypeList:g["W"],payMethodList:g["Db"],areaOptions:[],building:[],unitList:[],chargesArr:[],props:{multiple:!0},query:{chargeDates:[],chargesIdList:[],precinctId:"",buildingId:"",unitId:"",roomNum:"",pageNumber:1,pageSize:10},total:0,tableData:[]}},mounted:function(){this.getChargesList(),this.getAreaList(),this.$route.query.precinctId&&this.$route.query.buildingId&&this.$route.query.unitId&&this.$route.query.roomNum?(this.query.precinctId=Number(this.$route.query.precinctId),this.query.buildingId=Number(this.$route.query.buildingId),this.query.unitId=Number(this.$route.query.unitId),this.query.roomNum=this.$route.query.roomNum,this.getBuild(),this.getUnit(),this.getListData()):this.getListData()},methods:{getListData:function(){var e=this;this.query.projectUuid=this.$store.state.community_uuid,this.query.chargesIdList.length?this.query.chargesIdList=this.query.chargesIdList.flat():this.query.chargesIdList=[],Object(w["o"])(this.query).then((function(t){0==t.code&&(e.tableData=t.data.records,e.total=t.data.rowsCount)}))},handleSizeChange:function(e){this.query.pageNumber=1,this.query.pageSize=e,this.getListData()},handleCurrentChange:function(e){this.query.pageNumber=e,this.getListData()},getAreaList:function(){var e=this,t={projectUuid:this.$store.state.community_uuid,pageNumber:-1,pageSize:-1};Object(_["f"])(t).then((function(t){0===t.code&&(e.areaOptions=t.data)}))},selectChange:function(e){this.building=[],this.query.buildingId="",this.unitList=[],this.query.unitId="",e&&this.getBuild()},getBuild:function(){var e=this;Object(_["x"])({precinctId:this.query.precinctId,projectCode:this.$store.state.community_uuid,projectName:this.$store.state.community_name,pageNumber:-1,pageSize:-1}).then((function(t){e.building=t.data}))},changeBuild:function(){this.unitList=[],this.query.unitId="",this.getUnit()},getUnit:function(){var e=this;Object(_["mb"])({pageNumber:-1,pageSize:-1,projectCode:this.$store.state.community_uuid,buildingId:this.query.buildingId}).then((function(t){e.unitList=t.data.records}))},getChargesList:function(){var e=this;Object(v["b"])({pageNumber:-1,pageSize:-1,projectUuid:this.$store.state.community_uuid}).then((function(t){var a=[];t.data.records.forEach((function(e){a.push({label:e.name,value:e.fsChargesId})})),e.chargesArr=a}))},searchClick:function(){this.query.pageNumber=1,this.getListData()},resetClick:function(){this.$refs["query"].resetFields(),this.query.pageNumber=1,this.getListData()},headClass:function(){return"text-align:center;background:#DEDEDE;"},headClass2:function(){return"text-align:center;background:#FAFAFA;"}}},k=T,q=(a("8fa1"),Object(d["a"])(k,y,b,!1,null,"6d79d758",null)),S=q.exports,L={components:{infoTable:s["a"],detailTable:S},data:function(){return{activeName:"list",listLoad:!1,listData:[],total:0,search:{pageSize:10,pageNumber:1,type:2},depositData:{}}},mounted:function(){this.$route.query.gotoTemporaryInfo&&(this.activeName="detail"),this.getListData()},methods:{getListData:function(){var e=this;this.listLoad=!0,this.search.projectUuid=this.$store.state.community_uuid,Object(w["C"])(this.search).then((function(t){t.data&&t.data.records?(e.listData=t.data.records,e.total=t.data.rowsCount,e.listLoad=!1):e.listLoad=!1})).catch((function(t){e.listLoad=!1})),this.search.changeSize||this.getTotal()},getTotal:function(){var e=this;Object(w["I"])(this.search).then((function(t){t.data?e.depositData=t.data:e.depositData={}}))},formSearch:function(e){this.search=e,this.getListData()},formReset:function(e){this.search=e,this.getListData()}}},N=L,I=Object(d["a"])(N,h,f,!1,null,"47ac95ae",null),C=I.exports,D=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{border:"",data:e.listData,"header-cell-style":e.headClass,fit:"","highlight-current-row":""}},[a("el-table-column",{attrs:{label:"#",align:"center",fixed:"",width:"50","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.query.pageNumber-1)*e.query.pageSize+1))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"对账编号","min-width":"200","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.checkNo||"-")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"误差金额","min-width":"200","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("toThousandFilter")(t.row.amount))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"对账结果","min-width":"200","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("getItemType")(t.row.status,e.accountsTypeList))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"对账人","min-width":"200","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.memberName||"-")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"对账提交时间","min-width":"200","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.createdTime||"-")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作","min-width":"200","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.status?e._e():a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.toPath(t.row)}}},[e._v("继续对账")]),e._v(" "),t.row.status?e._e():a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.delClick(t.row)}}},[e._v("删除")]),e._v(" "),t.row.status>0?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.toPath(t.row)}}},[e._v("查看")]):e._e()]}}])})],1),e._v(" "),a("div",{staticClass:"paginations"},[a("el-pagination",{attrs:{background:"","current-page":e.query.pageNumber,"page-sizes":[10,30,50,100,200],"page-size":e.query.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"update:currentPage":function(t){return e.$set(e.query,"pageNumber",t)},"update:current-page":function(t){return e.$set(e.query,"pageNumber",t)},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],1)},$=[],j={data:function(){return{accountsTypeList:g["f"],total:0,query:{pageNumber:1,pageSize:10},listLoading:!1,listData:[]}},mounted:function(){this.getListData()},methods:{init:function(){this.getListData()},getListData:function(){var e=this;this.listLoading=!0,this.query.projectUuid=this.$store.state.community_uuid,Object(l["l"])(this.query).then((function(t){t.data&&t.data.records?(e.listData=t.data.records,e.total=t.data.rowsCount,e.listLoading=!1):(e.listData=[],e.total=0,e.listLoading=!1)})).catch((function(t){e.listLoading=!1}))},delClick:function(e){var t=this;this.$confirm("此操作将删除该对账记录, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(l["g"])({id:e.id}).then((function(e){t.$message({type:"success",message:"删除成功!"}),t.init()}))})).catch((function(){}))},handleSizeChange:function(e){this.query.pageNumber=1,this.query.pageSize=e,this.getListData()},handleCurrentChange:function(e){this.query.pageNumber=e,this.getListData()},toPath:function(e){var t=this.$router.resolve({path:"/reconciliation",query:{id:e.id}});window.open(t.href,"_blank")},headClass:function(){return"text-align:center;background:#FAFAFA;"}}},A=j,x=(a("a2a4"),Object(d["a"])(A,D,$,!1,null,"914f6d9e",null)),O=x.exports,F=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[e.showList?a("div",[a("div",{staticClass:"searchContent"},[a("el-form",{ref:"query",staticClass:"demo-form-inline",attrs:{inline:!0,model:e.query}},[a("el-form-item",{attrs:{prop:"precinctId"}},[a("el-select",{attrs:{filterable:"",clearable:"",placeholder:"管理区名称"},on:{change:e.selectChange},model:{value:e.query.precinctId,callback:function(t){e.$set(e.query,"precinctId",t)},expression:"query.precinctId"}},e._l(e.areaOptions,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"buildingId"}},[a("el-select",{attrs:{filterable:"",clearable:"",placeholder:"所有楼栋"},on:{change:e.changeBuild},model:{value:e.query.buildingId,callback:function(t){e.$set(e.query,"buildingId",t)},expression:"query.buildingId"}},e._l(e.building,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"unitId"}},[a("el-select",{attrs:{filterable:"",clearable:"",placeholder:"所有单元"},on:{change:e.changeUnit},model:{value:e.query.unitId,callback:function(t){e.$set(e.query,"unitId",t)},expression:"query.unitId"}},e._l(e.unitList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"houseId"}},[a("el-select",{attrs:{filterable:"",clearable:"",placeholder:"选择房间"},model:{value:e.query.houseId,callback:function(t){e.$set(e.query,"houseId",t)},expression:"query.houseId"}},e._l(e.houseArr,(function(e){return a("el-option",{key:e.id,attrs:{label:e.roomNum,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"chargeId"}},[a("el-select",{attrs:{filterable:"",clearable:"",placeholder:"收费项"},model:{value:e.query.chargeId,callback:function(t){e.$set(e.query,"chargeId",t)},expression:"query.chargeId"}},e._l(e.chargesArr,(function(e){return a("el-option",{key:e.fsChargesId,attrs:{label:e.name,value:e.fsChargesId}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"prepayCode"}},[a("el-select",{attrs:{placeholder:"预收款科目",clearable:""},model:{value:e.query.prepayCode,callback:function(t){e.$set(e.query,"prepayCode",t)},expression:"query.prepayCode"}},e._l(e.prepaySubjectList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.code}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"",prop:"source"}},[a("el-select",{staticClass:"form-item-content",attrs:{clearable:"",placeholder:"操作来源"},model:{value:e.query.source,callback:function(t){e.$set(e.query,"source",t)},expression:"query.source"}},e._l(e.optSource,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"",prop:"payTime"}},[a("el-date-picker",{attrs:{type:"daterange","range-separator":"至",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","start-placeholder":"预缴实收开始日期","end-placeholder":"预缴实收结束日期"},model:{value:e.payTime,callback:function(t){e.payTime=t},expression:"payTime"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"",prop:"transactionTime"}},[a("el-date-picker",{attrs:{type:"daterange","range-separator":"至",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","start-placeholder":"入账交易开始日期","end-placeholder":"入账交易结束日期"},model:{value:e.transactionTime,callback:function(t){e.transactionTime=t},expression:"transactionTime"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"opName"}},[a("el-input",{attrs:{placeholder:"请输入经办人",clearable:""},model:{value:e.query.opName,callback:function(t){e.$set(e.query,"opName",t)},expression:"query.opName"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"opPhone"}},[a("el-input",{attrs:{placeholder:"请输入经办人手机号",clearable:""},model:{value:e.query.opPhone,callback:function(t){e.$set(e.query,"opPhone",t)},expression:"query.opPhone"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"outNo"}},[a("el-input",{attrs:{placeholder:"支付/导入订单ID",clearable:""},model:{value:e.query.outNo,callback:function(t){e.$set(e.query,"outNo",t)},expression:"query.outNo"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"outId"}},[a("el-input",{attrs:{placeholder:"导入入账列表ID",clearable:""},model:{value:e.query.outId,callback:function(t){e.$set(e.query,"outId",t)},expression:"query.outId"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"",prop:"direction"}},[a("el-select",{staticClass:"form-item-content",attrs:{clearable:"",placeholder:"支付方向"},model:{value:e.query.direction,callback:function(t){e.$set(e.query,"direction",t)},expression:"query.direction"}},e._l(e.directionList,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"remark"}},[a("el-input",{attrs:{placeholder:"备注",clearable:""},model:{value:e.query.remark,callback:function(t){e.$set(e.query,"remark",t)},expression:"query.remark"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"",prop:"payType"}},[a("el-select",{staticClass:"form-item-content",attrs:{clearable:"",placeholder:"预缴支付方式"},model:{value:e.query.payType,callback:function(t){e.$set(e.query,"payType",t)},expression:"query.payType"}},e._l(e.payMethodList,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),e._v(" "),a("div",[a("el-button",{attrs:{type:"primary"},on:{click:e.searchClick}},[e._v("搜索")]),e._v(" "),a("el-button",{on:{click:e.resetClick}},[e._v("重置")])],1)],1),e._v(" "),a("el-descriptions",{attrs:{column:4}},[a("template",{slot:"title"},[a("span",{staticClass:"descTitleTip"},[e._v("辅助统计")])]),e._v(" "),a("el-descriptions-item",{attrs:{label:"预缴(货币)收入"}},[a("b",[e._v(e._s(e._f("toThousandFilter")(e.statisticsData.realTotal)))])]),e._v(" "),a("el-descriptions-item",{attrs:{label:"预缴(货币)退款"}},[a("b",[e._v(e._s(e._f("toThousandFilter")(e.statisticsData.refundReadTotal)))])]),e._v(" "),a("el-descriptions-item",{attrs:{label:"预缴(雨滴)补贴"}},[a("b",[e._v(e._s(e._f("toThousandFilter")(e.statisticsData.ydTotal)))])]),e._v(" "),a("el-descriptions-item",{attrs:{label:"预缴(雨滴)退款"}},[a("b",[e._v(e._s(e._f("toThousandFilter")(e.statisticsData.refundYdTotal)))])])],2),e._v(" "),a("el-descriptions",{staticStyle:{"margin-top":"15px"},attrs:{column:4}},[a("template",{slot:"title"},[a("span",{staticClass:"descTitleTip"},[e._v("\n DL货币余额"+e._s(e._f("toThousandFilter")(e.statisticsData.dlBalance))+"\n 【更新时间:"+e._s(e.statisticsData.updateDate)+"】\n "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"DL货币余额 =DL预缴货币收入-DL货币结转-DL货币退款+DL去年结转货币余额",placement:"top-end"}},[a("i",{staticClass:"el-icon-question"})])],1)]),e._v(" "),a("el-descriptions-item",{attrs:{label:"DL预缴货币收入"}},[a("b",[e._v(e._s(e._f("toThousandFilter")(e.statisticsData.dlRealTotal)))])]),e._v(" "),a("el-descriptions-item",{attrs:{label:"DL货币结转"}},[a("b",[e._v(e._s(e._f("toThousandFilter")(e.statisticsData.dlTransferKnot)))])]),e._v(" "),a("el-descriptions-item",{attrs:{label:"DL货币退款"}},[a("b",[e._v(e._s(e._f("toThousandFilter")(e.statisticsData.dlRefund)))])]),e._v(" "),a("el-descriptions-item",{attrs:{label:"DL去年结转货币余额"}},[a("b",[e._v(e._s(e._f("toThousandFilter")(e.statisticsData.dlTransferKnotLast)))])])],2),e._v(" "),a("div",{staticClass:"titleContent"},[a("div",{staticClass:"tableTitle"},[e._v("预收记录")]),e._v(" "),a("div",[a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"success",loading:e.downloading},on:{click:e.exportExcel}},[e._v("下载Excel")])],1)]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"dataTable",staticStyle:{width:"100%"},attrs:{border:"",data:e.listData,"row-key":"id","header-cell-style":e.headClass,fit:"","highlight-current-row":""}},[a("el-table-column",{attrs:{label:"#",align:"center",width:"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.query.pageNumber-1)*e.query.pageSize+1)+"\n ")])]}}],null,!1,2770601025)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"房屋号","min-width":"150","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.precinctName?t.row.precinctName+"-"+t.row.buildingName+"-"+t.row.unitName+"-"+t.row.roomNum:"-")+"\n ")]}}],null,!1,3450463809)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"收费项ID","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.codeNumber)+"\n ")]}}],null,!1,2495661555)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"收费项","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.chargeName)+"\n ")]}}],null,!1,382268736)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"预收款项科目","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.prepayName||"-")+"\n ")]}}],null,!1,3797393144)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"支付方向","min-width":"90","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("getItemType")(t.row.direction,e.directionList))+"\n ")]}}],null,!1,3631096849)}),e._v(" "),a("el-table-column",{attrs:{align:"right",label:"实收货币金额","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(2===t.row.direction?"-":"")+e._s(e._f("toThousandFilter")(t.row.realAmount))+"\n ")]}}],null,!1,3631293907)}),e._v(" "),a("el-table-column",{attrs:{align:"right",label:"补贴雨滴金额","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(2===t.row.direction?"-":"")+e._s(e._f("toThousandFilter")(t.row.ydAmount))+"\n ")]}}],null,!1,2513498644)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"预缴实收时间","min-width":"160","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.payTime)+"\n ")]}}],null,!1,2005994720)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"入账交易时间","min-width":"160","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.transactionTime)+"\n ")]}}],null,!1,3473173324)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作来源","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("getItemType")(t.row.source,e.optSource))+"\n ")]}}],null,!1,1471601752)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"预缴支付方式","min-width":"220","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[t.row.isEdit?e._e():a("div",[e._v("\n "+e._s(e.getPayType(t.row))+"\n\n "),a("i",{staticClass:"el-icon-edit",on:{click:function(a){return e.toEdit(t.row)}}})]),e._v(" "),t.row.isEdit?a("div",{staticClass:"setEdit"},[a("el-select",{staticStyle:{width:"120px"},model:{value:t.row.payType,callback:function(a){e.$set(t.row,"payType",a)},expression:"scope.row.payType"}},e._l(e.payMethodList,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),e._v(" "),a("div",[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.editSave(t.row)}}},[e._v("保存")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.escEdit(t.row)}}},[e._v("取消")])],1)],1):e._e()])]}}],null,!1,41293573)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"经办人","min-width":"90","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.opName)+"\n ")]}}],null,!1,2870265605)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"经办人手机号","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.opPhone)+"\n ")]}}],null,!1,2319914046)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"支付/导入订单ID","min-width":"160","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[3!==t.row.source?a("el-link",{attrs:{type:"primary"},on:{click:function(a){return e.gotoOrderDetailes(t.row)}}},[e._v(e._s(t.row.outNo))]):a("span",[e._v(e._s("-"))])]}}],null,!1,2776132406)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"导入入账列表ID","min-width":"160","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[2==t.row.source?a("el-link",{attrs:{type:"primary"},on:{click:function(a){return e.getImportOrder(t.row)}}},[e._v(e._s(t.row.outId))]):a("span",[e._v(e._s("-"))])]}}],null,!1,4282464645)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"备注","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.remark||"-")+"\n ")]}}],null,!1,2039719826)})],1),e._v(" "),a("div",{staticClass:"paginations"},[a("el-pagination",{attrs:{background:"","current-page":e.query.pageNumber,"page-sizes":[10,30,50,100,200],"page-size":e.query.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"update:currentPage":function(t){return e.$set(e.query,"pageNumber",t)},"update:current-page":function(t){return e.$set(e.query,"pageNumber",t)},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],1):e._e(),e._v(" "),a("importDetail",{ref:"detail",attrs:{show:e.detail,info:e.saveData},on:{back:e.detailBack}})],1)},z=[],M=a("3380"),E=a("9192"),P=a("7274"),U=a("d059");function R(e){return R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},R(e)}function Y(e){return H(e)||J(e)||V(e)||B()}function B(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function V(e,t){if(e){if("string"==typeof e)return K(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?K(e,t):void 0}}function J(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function H(e){if(Array.isArray(e))return K(e)}function K(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,i=Array(t);a<t;a++)i[a]=e[a];return i}function Q(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function W(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(a),!0).forEach((function(t){G(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Q(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function G(e,t,a){return(t=X(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function X(e){var t=Z(e,"string");return"symbol"==R(t)?t:t+""}function Z(e,t){if("object"!=R(e)||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var i=a.call(e,t||"default");if("object"!=R(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var ee={name:"",components:{importDetail:M["a"]},data:function(){return{payMethodList:g["Db"],areaOptions:[],building:[],unitList:[],houseArr:[],total:0,chargesArr:[],prepaySubjectList:[],query:{pageNumber:1,pageSize:10,projectUuid:this.$store.state.community_uuid,precinctId:"",buildingId:"",unitId:"",houseId:"",roomNum:"",chargeId:"",prepayCode:"",opName:"",opPhone:"",outNo:"",outId:"",direction:"",remark:"",payType:""},payTime:"",transactionTime:"",listData:[],listLoading:!1,statisticsData:{},downloading:!1,optSource:[{label:"线上预缴",value:1},{label:"人工入账",value:2},{label:"押金转入",value:3}],directionList:[{label:"充值",value:1},{label:"退款",value:2}],saveData:{},showList:!0,detail:!1}},mounted:function(){},methods:{initData:function(){this.getPayTypeList(),this.findPrepaySubjectList(),this.getChargesList(),this.getAreaList();var e=JSON.parse(sessionStorage.getItem("prePayRecord"))||{};this.payTime=[],this.transactionTime=[],e.realStartTime&&(this.payTime[0]=e.realStartTime.split(" ")[0]),e.realEndTime&&(this.payTime[1]=e.realEndTime.split(" ")[0]),e.startTime&&(this.transactionTime[0]=e.startTime.split(" ")[0]),e.endTime&&(this.transactionTime[1]=e.endTime.split(" ")[0]);var t=W({},e);delete t.realStartTime,delete t.realEndTime,delete t.startTime,delete t.endTime,delete t.projectUuid,e.buildingId&&this.getBuild(),e.unitId&&this.getUnit(),e.houseId&&this.getHouseList(),this.query=W(W({},this.query),t),this.getTableList()},getPayType:function(e){if(e.payTypeV2){var t=this.payMethodList.find((function(t){return t.value==e.payTypeV2}));return t?t.label:"-"}if(e.payType){var a=this.payMethodList.find((function(t){return t.value==e.payType}));return a?a.label:"-"}return"-"},getPayTypeList:function(){var e=this;Object(P["f"])({uuid:this.$store.state.community_uuid}).then((function(t){if(t.data&&0==t.code&&t.data.payTypeList&&t.data.payTypeList.length>0){var a=[].concat(Y(e.payMethodList),Y(JSON.parse(t.data.payTypeList)));a=Array.from(new Set(a.map(JSON.stringify))).map(JSON.parse),e.payMethodList=a,console.log(e.payMethodList,"asdasd+++")}}))},escEdit:function(e){e.isEdit=!1},editSave:function(e){var t=this;if(e.payType){var a={id:e.id};e.payType>=100?(a.payTypeV2=e.payType,a.payType=7):a.payType=e.payType,Object(l["u"])(a).then((function(a){0===a.code?(e.isEdit=!1,t.$message({message:"编辑成功",type:"success"})):e.isEdit=!1}))}else this.$message({message:"请选择支付方式",type:"warning"})},toEdit:function(e){e.isEdit=!0},getTableList:function(){var e=this;this.listLoading=!0,this.payTime&&2==this.payTime.length?(this.query.realStartTime=this.payTime[0]+" 00:00:00",this.query.realEndTime=this.payTime[1]+" 23:59:59"):(this.query.realStartTime="",this.query.realEndTime=""),this.transactionTime&&2==this.transactionTime.length?(this.query.startTime=this.transactionTime[0]+" 00:00:00",this.query.endTime=this.transactionTime[1]+" 23:59:59"):(this.query.startTime="",this.query.endTime=""),this.query.projectUuid=this.$store.state.community_uuid,this.getStatisicRes(),Object(l["o"])(this.query).then((function(t){0===t.code&&(t.data.records.forEach((function(e){e.isEdit=!1})),e.listData=t.data.records,e.total=t.data.rowsCount,sessionStorage.setItem("prePayRecord",JSON.stringify(e.query))),e.listLoading=!1})).catch((function(){e.listLoading=!1}))},getStatisicRes:function(){var e=this;Object(l["q"])(this.query).then((function(t){0===t.code&&(e.statisticsData=t.data)}))},getSubjectList:function(){var e=this;Object(E["o"])({projectUuid:this.$store.state.community_uuid,subjectType:3}).then((function(t){0==t.code&&(e.subjectList=t.data)})),this.findPrepaySubjectList()},findPrepaySubjectList:function(){var e=this;Object(E["o"])({projectUuid:this.$store.state.community_uuid,subjectType:2}).then((function(t){0==t.code&&(e.prepaySubjectList=t.data)}))},getChargesList:function(){var e=this;Object(v["b"])({pageNumber:-1,pageSize:-1,projectUuid:this.$store.state.community_uuid}).then((function(t){e.chargesArr=t.data.records}))},exportExcel:function(){var e=this;this.downloading=!0,Object(l["n"])(this.query).then((function(t){e.downloading=!1;var a=new Blob([t],{type:"application/vnd.ms-excel;charset=UTF-8"}),i=(new Date).valueOf();if(window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(a);else{var n=document.createElement("a");n.download="预收明细导出_".concat(i,".xls"),n.href=URL.createObjectURL(a),n.click(),URL.revokeObjectURL(n.href),document.body.removeChild(n)}})).catch((function(t){e.downloading=!1}))},gotoOrderDetailes:function(e){1===e.source?this.$router.replace({path:"/viewInfo/orderDetail",query:{no:e.outNo,type:8,source:1}}):this.getImportOrder(e)},getImportOrder:function(e){var t=this,a={orderNo:e.outNo,projectUuid:e.projectUuid};Object(U["y"])(a).then((function(e){if(0===e.code&&e.data.records){var a=e.data.records;a.length>0&&(t.showList=!1,t.detail=!0,t.saveData=a[0],t.$nextTick((function(){this.$refs.detail.init()})))}}))},detailBack:function(){this.showList=!0,this.detail=!1},getAreaList:function(){var e=this,t={projectUuid:this.$store.state.community_uuid,pageNumber:-1,pageSize:-1};Object(_["f"])(t).then((function(t){0===t.code&&(e.areaOptions=t.data)}))},selectChange:function(e){this.building=[],this.query.buildingId="",this.unitList=[],this.query.unitId="",this.houseArr=[],this.query.houseId="",e&&this.getBuild()},getBuild:function(){var e=this;Object(_["x"])({precinctId:this.query.precinctId,projectCode:this.$store.state.community_uuid,projectName:this.$store.state.community_name,pageNumber:-1,pageSize:-1}).then((function(t){e.building=t.data}))},changeBuild:function(){this.unitList=[],this.query.unitId="",this.houseArr=[],this.query.houseId="",this.getUnit()},getUnit:function(){var e=this;Object(_["mb"])({pageNumber:-1,pageSize:-1,projectCode:this.$store.state.community_uuid,buildingId:this.query.buildingId}).then((function(t){e.unitList=t.data.records}))},changeUnit:function(){this.houseArr=[],this.query.houseId="",this.getHouseList()},getHouseList:function(){var e=this,t={projectCode:this.$store.state.community_uuid,precinctId:this.query.precinctId,buildingId:this.query.buildingId,unitId:this.query.unitId,pageSize:-1};Object(_["M"])(t).then((function(t){0===t.code&&(e.houseArr=t.data.records)}))},searchClick:function(){this.getTableList()},resetClick:function(){this.payTime="",this.transactionTime="",this.$refs["query"].resetFields(),this.getTableList()},handleSizeChange:function(e){this.query.pageNumber=1,this.query.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.query.pageNumber=e,this.getTableList()},headClass:function(){return"text-align:center;background:#FAFAFA;"}}},te=ee,ae=(a("cdaa"),Object(d["a"])(te,F,z,!1,null,"b40bde8e",null)),ie=ae.exports,ne=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"searchContent"},[a("el-form",{ref:"query",staticClass:"demo-form-inline",attrs:{inline:!0,model:e.query}},[a("el-form-item",{attrs:{prop:"precinctId"}},[a("el-select",{attrs:{filterable:"",clearable:"",placeholder:"管理区名称"},on:{change:e.selectChange},model:{value:e.query.precinctId,callback:function(t){e.$set(e.query,"precinctId",t)},expression:"query.precinctId"}},e._l(e.areaOptions,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"buildingId"}},[a("el-select",{attrs:{filterable:"",clearable:"",placeholder:"所有楼栋"},on:{change:e.changeBuild},model:{value:e.query.buildingId,callback:function(t){e.$set(e.query,"buildingId",t)},expression:"query.buildingId"}},e._l(e.building,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"unitId"}},[a("el-select",{attrs:{filterable:"",clearable:"",placeholder:"所有单元"},on:{change:e.changeUnit},model:{value:e.query.unitId,callback:function(t){e.$set(e.query,"unitId",t)},expression:"query.unitId"}},e._l(e.unitList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"houseId"}},[a("el-select",{attrs:{filterable:"",clearable:"",placeholder:"选择房间"},model:{value:e.query.houseId,callback:function(t){e.$set(e.query,"houseId",t)},expression:"query.houseId"}},e._l(e.houseArr,(function(e){return a("el-option",{key:e.id,attrs:{label:e.roomNum,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"",prop:"payTime"}},[a("el-date-picker",{attrs:{clearable:!1,type:"daterange","range-separator":"-",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","start-placeholder":"操作/支付开始日期","end-placeholder":"操作/支付结束日期"},model:{value:e.payTime,callback:function(t){e.payTime=t},expression:"payTime"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"opName"}},[a("el-input",{attrs:{placeholder:"请输入操作人",clearable:""},model:{value:e.query.opName,callback:function(t){e.$set(e.query,"opName",t)},expression:"query.opName"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"payType"}},[a("el-select",{attrs:{filterable:"",clearable:"",placeholder:"选择支付方式"},model:{value:e.query.payType,callback:function(t){e.$set(e.query,"payType",t)},expression:"query.payType"}},e._l(e.payMethodList,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"fsChargesId"}},[a("el-select",{attrs:{filterable:"",clearable:"",placeholder:"收费项"},model:{value:e.query.fsChargesId,callback:function(t){e.$set(e.query,"fsChargesId",t)},expression:"query.fsChargesId"}},e._l(e.chargesArr,(function(e){return a("el-option",{key:e.fsChargesId,attrs:{label:e.name,value:e.fsChargesId}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"payDirection"}},[a("el-select",{attrs:{filterable:"",clearable:"",placeholder:"选择支付方向"},model:{value:e.query.payDirection,callback:function(t){e.$set(e.query,"payDirection",t)},expression:"query.payDirection"}},e._l(e.paymentDirection,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"type"}},[a("el-select",{attrs:{filterable:"",clearable:"",placeholder:"选择记录类型"},model:{value:e.query.type,callback:function(t){e.$set(e.query,"type",t)},expression:"query.type"}},e._l(e.typeList,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),e._v(" "),a("div",{staticClass:"rightBox"},[a("el-button",{attrs:{type:"primary"},on:{click:e.searchClick}},[e._v("搜索")]),e._v(" "),a("el-button",{staticStyle:{margin:"10px 0"},on:{click:e.resetClick}},[e._v("重置")]),e._v(" "),a("el-button",{staticClass:"myButton",attrs:{type:"warning"},on:{click:e.updateData}},[e._v("更新数据")])],1)],1),e._v(" "),a("div",[e._m(0),e._v(" "),a("el-table",{ref:"dataTable",staticStyle:{width:"100%"},attrs:{"show-summary":"","summary-method":e.getSummaries,border:"",size:"mini",data:e.advanceListOrChargeList,"row-class-name":e.tableRowClassName,"row-key":"id","header-cell-style":e.headClass,fit:"","highlight-current-row":""}},[a("el-table-column",{attrs:{label:"本金",align:"center"}},[a("el-table-column",{attrs:{align:"center",label:"收费项","min-width":"120","show-overflow-tooltip":"",prop:"fsChargesName"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-link",{attrs:{type:"primary"},on:{click:function(a){return e.fsChargesClick(t.row)}}},[e._v("\n "+e._s(t.row.fsChargesName||"-"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"right",label:"收费金额","min-width":"120","show-overflow-tooltip":"",prop:"baseAmount"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("toThousandFilter2")(t.row.baseAmount))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"right",label:"优惠金额","min-width":"120","show-overflow-tooltip":"",prop:"discountAmount"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("toThousandFilter2")(t.row.discountAmount))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"right",label:"抵扣金额","min-width":"120","show-overflow-tooltip":"",prop:"deductionAmount"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("toThousandFilter2")(t.row.deductionAmount))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"right",label:"赠送金额","min-width":"120","show-overflow-tooltip":"",prop:"donationAmount"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("toThousandFilter2")(t.row.donationAmount))+"\n ")]}}])})],1),e._v(" "),a("el-table-column",{attrs:{label:"违约金",align:"center"}},[a("el-table-column",{attrs:{align:"right",label:"实收违约金","min-width":"120","show-overflow-tooltip":"",prop:"feeAmount"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("toThousandFilter2")(t.row.feeAmount))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"right",label:"优惠违约金","min-width":"120","show-overflow-tooltip":"",prop:"discountFeeAmount"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("toThousandFilter2")(t.row.discountFeeAmount))+"\n ")]}}])})],1),e._v(" "),a("el-table-column",{attrs:{label:"合计(元)",align:"right",prop:"hj"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("toThousandFilter2")(t.row.hj))+"\n ")]}}])})],1)],1),e._v(" "),a("div",[e._m(1),e._v(" "),a("el-table",{ref:"dataTable",staticStyle:{width:"100%"},attrs:{"show-summary":"","summary-method":e.getSummaries,border:"",size:"mini",data:e.payTypeList,"row-key":"id","header-cell-style":e.headClass,fit:"","highlight-current-row":""}},[a("el-table-column",{attrs:{label:"支付方式名称",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.payTypeName.includes("未知")?a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n 提示:未知是支付方式为空,需要在预缴明细页面补齐预缴支付方式。\n ")]),e._v(" "),a("el-link",{attrs:{type:"primary"},on:{click:function(a){return e.payClick(t.row)}}},[e._v("\n "+e._s(t.row.payTypeName))])],1):a("el-link",{attrs:{type:"primary"},on:{click:function(a){return e.payClick(t.row)}}},[e._v("\n "+e._s(t.row.payTypeName||"-"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"收费金额",align:"right",prop:"baseAmount"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("toThousandFilter2")(t.row.baseAmount))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"优惠金额",align:"right",prop:"discountAmount"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("toThousandFilter2")(t.row.discountAmount))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"抵扣金额",align:"right",prop:"deductionAmount"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("toThousandFilter2")(t.row.deductionAmount))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"赠送金额",align:"right",prop:"donationAmount"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("toThousandFilter2")(t.row.donationAmount))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"实收违约金",align:"right",prop:"feeAmount"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("toThousandFilter2")(t.row.feeAmount))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"优惠违约金",align:"right",prop:"discountFeeAmount"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("toThousandFilter2")(t.row.discountFeeAmount))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"合计(元)",align:"right",prop:"hj"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("toThousandFilter2")(t.row.hj))+"\n ")]}}])})],1)],1),e._v(" "),a("div",[e._m(2),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"dataTable",attrs:{"show-summary":"","summary-method":e.getSummaries,border:"",size:"mini",data:e.listData,"row-key":"id","header-cell-style":e.headClass,"highlight-current-row":""}},[a("el-table-column",{attrs:{label:"基础信息",align:"center"}},[a("el-table-column",{attrs:{align:"center",label:"房屋","min-width":"180","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v("\n "+e._s(t.row.precinctName?t.row.precinctName+"-"+t.row.buildingName+"-"+t.row.unitName+"-"+t.row.roomNum:"-"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"姓名","min-width":"80",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.houseOwner||"-")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"收费项","min-width":"180","show-overflow-tooltip":"",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.fsChargesName||"-")+"\n ")]}}])})],1),e._v(" "),a("el-table-column",{attrs:{label:"本金",align:"center"}},[a("el-table-column",{attrs:{"min-width":"110",label:"收费金额",prop:"baseAmount",align:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("toThousandFilter2")(t.row.baseAmount))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{"min-width":"110",label:"优惠金额",align:"right",prop:"discountAmount"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("toThousandFilter2")(t.row.discountAmount))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{"min-width":"110",label:"抵扣金额",align:"right",prop:"deductionAmount"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("toThousandFilter2")(t.row.deductionAmount))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{"min-width":"110",label:"赠送金额",align:"right",prop:"donationAmount"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("toThousandFilter2")(t.row.donationAmount))+"\n ")]}}])})],1),e._v(" "),a("el-table-column",{attrs:{label:"违约金",align:"center"}},[a("el-table-column",{attrs:{"min-width":"110",label:"违约金",align:"right",prop:"feeAmount"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("toThousandFilter2")(t.row.feeAmount))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{"min-width":"110",label:"优惠违约金",align:"right",prop:"discountFeeAmount"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("toThousandFilter2")(t.row.discountFeeAmount))+"\n ")]}}])})],1),e._v(" "),a("el-table-column",{attrs:{label:"操作信息",align:"center"}},[a("el-table-column",{attrs:{label:"操作人",align:"center","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.operatorName||"-")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作时间","min-width":"150",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.payTime||"-")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备注",align:"center","min-width":"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("p",[e._v("备注修改人:"+e._s(t.row.remarkUpdaterName||"-"))]),e._v(" "),a("p",[e._v("备注修改时间:"+e._s(t.row.remarkUpdateTime||"-"))])]),e._v(" "),a("div",[e._v("\n "+e._s(t.row.remark||"-")+"\n "),a("i",{staticClass:"el-icon-edit",on:{click:function(a){return e.editRemark(t.row)}}})])])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"支付方式",align:"center","show-overflow-tooltip":"","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.getPayType(t.row))+"\n ")]}}])})],1),e._v(" "),a("el-table-column",{attrs:{label:"来源",align:"center","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("getItemType")(t.row.type,e.typeList))+"\n ")]}}])})],1),e._v(" "),a("div",{staticClass:"paginations"},[a("el-pagination",{attrs:{background:"","current-page":e.query.pageNumber,"page-sizes":[10,30,50,100,200],"page-size":e.query.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"update:currentPage":function(t){return e.$set(e.query,"pageNumber",t)},"update:current-page":function(t){return e.$set(e.query,"pageNumber",t)},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"更新数据时间区间",visible:e.updateDataVisible,width:"25%"},on:{"update:visible":function(t){e.updateDataVisible=t},close:function(t){e.updateDataVisible=!1}}},[a("div",{staticClass:"f-c-c"},[a("el-date-picker",{attrs:{clearable:!1,type:"daterange","range-separator":"-",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","start-placeholder":"操作/支付开始日期","end-placeholder":"操作/支付结束日期"},model:{value:e.updateTime,callback:function(t){e.updateTime=t},expression:"updateTime"}})],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.updateTimeClose}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.updateTimeSubmit}},[e._v("确认")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:"更新备注",visible:e.dialogVisible,"close-on-press-escape":!1,"close-on-click-modal":!1,width:"30%","before-close":e.handleClose}},[a("el-form",{ref:"editForm",attrs:{model:e.editForm,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"备注",prop:"remark"}},[a("el-input",{model:{value:e.editForm.remark,callback:function(t){e.$set(e.editForm,"remark",t)},expression:"editForm.remark"}})],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){return e.resetForm("editForm")}}},[e._v("取 消")]),e._v(" "),a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"primary"},on:{click:function(t){return e.submitForm("editForm")}}},[e._v("确认变更")])],1)],1)],1)},re=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"titleContent"},[a("div",{staticClass:"tableTitle"},[e._v("收费项及预缴维度")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"titleContent"},[a("div",{staticClass:"tableTitle"},[e._v("支付方式维度")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"titleContent"},[a("div",{staticClass:"tableTitle"},[e._v("明细表")])])}];function oe(e){return ce(e)||ue(e)||se(e)||le()}function le(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function se(e,t){if(e){if("string"==typeof e)return de(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?de(e,t):void 0}}function ue(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function ce(e){if(Array.isArray(e))return de(e)}function de(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,i=Array(t);a<t;a++)i[a]=e[a];return i}var pe={name:"",components:{importDetail:M["a"]},data:function(){return{payMethodList:g["Db"],areaOptions:[],building:[],unitList:[],houseArr:[],chargesArr:[],total:0,query:{pageNumber:1,pageSize:10,projectUuid:this.$store.state.community_uuid,precinctId:"",buildingId:"",unitId:"",houseId:"",payType:"",payDirection:1,type:"",fsChargesId:""},payTime:[],transactionTime:"",listData:[],listLoading:!1,advanceListOrChargeList:[],payTypeList:[],saveData:{},paymentDirection:[{value:1,label:"缴费"},{value:2,label:"退款"}],typeList:[{value:1,label:"收款记录"},{value:2,label:"预缴明细"}],updateDataVisible:!1,updateTime:"",dialogVisible:!1,editForm:{remark:""}}},mounted:function(){this.payMethodList.push({value:-1,label:"未知"}),this.payTime=[this.$moment().format("YYYY-MM-DD"),this.$moment().format("YYYY-MM-DD")],this.getPayTypeList(),this.getAreaList(),this.getTableList(),this.getChargeItemsList()},methods:{submitForm:function(e){var t=this;Object(l["d"])({id:this.editForm.id,remark:this.editForm.remark,remarkUpdaterName:this.$store.state.user.userInfo.memberName}).then((function(e){0==e.code&&(t.$message.success("更新成功"),t.handleClose(),t.getTableList())}))},editRemark:function(e){this.editForm.remark=e.remark,this.editForm.id=e.id,this.dialogVisible=!0},resetForm:function(e){this.$refs[e].resetFields(),this.dialogVisible=!1},handleClose:function(){this.$refs["editForm"].resetFields(),this.dialogVisible=!1},tableRowClassName:function(e){var t=e.row;e.rowIndex;if(t.isColor)return"info-row"},getSummaries:function(e){var t=e.columns,a=e.data,i=[];return t.forEach((function(e,t){if(0!==t){var n=a.map((function(t){return Number(t[e.property])}));if(n.every((function(e){return isNaN(e)})))i[t]="-";else{var r=n.reduce((function(e,t){var a=Number(t);return isNaN(a)?e:e+a}),0);i[t]=Number(r.toFixed(2))}}else i[t]="合计(元)"})),i},updateTimeClose:function(){this.updateTime="",this.updateDataVisible=!1},updateData:function(){this.updateTime=[this.$moment().format("YYYY-MM-DD"),this.$moment().format("YYYY-MM-DD")],this.updateDataVisible=!0},updateTimeSubmit:function(){var e=this;this.updateTime?Object(l["b"])({operatorName:this.$store.state.user.userInfo.memberName,projectUuid:this.$store.state.community_uuid,startTime:this.updateTime[0]+" 00:00:00",endTime:this.updateTime[1]+" 23:59:59"}).then((function(t){0==t.code&&(e.$message.success("操作成功!"),e.updateTimeClose(),e.getTableList())})):this.$message.error("请选择更新数据时间区间!")},payClick:function(e){e.payTypeV2>0?this.query.payType=e.payTypeV2:this.query.payType=e.payType,this.searchClick()},fsChargesClick:function(e){this.query.fsChargesId=e.fsChargesId,this.searchClick()},getChargeItemsList:function(){var e=this,t={pageNumber:-1,pageSize:-1,projectUuid:this.$store.state.community_uuid};Object(v["b"])(t).then((function(t){e.chargesArr=t.data.records}))},getPayType:function(e){if(e.payTypeV2){var t=this.payMethodList.find((function(t){return t.value==e.payTypeV2}));return t?t.label:"-"}if(e.payType){var a=this.payMethodList.find((function(t){return t.value==e.payType}));return a?a.label:"-"}return"-"},getPayTypeList:function(){var e=this;Object(P["f"])({uuid:this.$store.state.community_uuid}).then((function(t){if(t.data&&0==t.code&&t.data.payTypeList&&t.data.payTypeList.length>0){var a=[].concat(oe(e.payMethodList),oe(JSON.parse(t.data.payTypeList)));a=Array.from(new Set(a.map(JSON.stringify))).map(JSON.parse),e.payMethodList=a,console.log(e.payMethodList,"asdasd+++")}}))},getTableList:function(){var e=this;this.listLoading=!0,this.payTime?(this.query.startTime=this.payTime[0]+" 00:00:00",this.query.endTime=this.payTime[1]+" 23:59:59"):(this.query.startTime="",this.query.endTime=""),this.getStatisicRes(),Object(l["a"])(this.query).then((function(t){0===t.code&&(t.data.records.forEach((function(e){e.isEdit=!1})),e.listData=t.data.records,e.total=t.data.rowsCount),e.listLoading=!1})).catch((function(){e.listLoading=!1}))},getStatisicRes:function(){var e=this;Object(l["c"])(this.query).then((function(t){if(0===t.code&&t.data){t.data.advanceList.forEach((function(e){e.isColor=!0}));var a=t.data.advanceList,i=t.data.chargeList,n=t.data.payTypeList,r=[].concat(oe(a),oe(i));r.forEach((function(e){e.hj=(e.baseAmount||0)+(e.deductionAmount||0)+(e.discountAmount||0)+(e.donationAmount||0)+(e.discountFeeAmount||0)+(e.feeAmount||0)})),e.advanceListOrChargeList=r,n.forEach((function(e){e.hj=(e.baseAmount||0)+(e.deductionAmount||0)+(e.discountAmount||0)+(e.donationAmount||0)+(e.discountFeeAmount||0)+(e.feeAmount||0)})),e.payTypeList=n}}))},getAreaList:function(){var e=this,t={projectUuid:this.$store.state.community_uuid,pageNumber:-1,pageSize:-1};Object(_["f"])(t).then((function(t){0===t.code&&(e.areaOptions=t.data)}))},selectChange:function(e){this.building=[],this.query.buildingId="",this.unitList=[],this.query.unitId="",this.houseArr=[],this.query.houseId="",e&&this.getBuild()},getBuild:function(){var e=this;Object(_["x"])({precinctId:this.query.precinctId,projectCode:this.$store.state.community_uuid,projectName:this.$store.state.community_name,pageNumber:-1,pageSize:-1}).then((function(t){e.building=t.data}))},changeBuild:function(){this.unitList=[],this.query.unitId="",this.houseArr=[],this.query.houseId="",this.getUnit()},getUnit:function(){var e=this;Object(_["mb"])({pageNumber:-1,pageSize:-1,projectCode:this.$store.state.community_uuid,buildingId:this.query.buildingId}).then((function(t){e.unitList=t.data.records}))},changeUnit:function(){this.houseArr=[],this.query.houseId="",this.getHouseList()},getHouseList:function(){var e=this,t={projectCode:this.$store.state.community_uuid,precinctId:this.query.precinctId,buildingId:this.query.buildingId,unitId:this.query.unitId,pageSize:-1};Object(_["M"])(t).then((function(t){0===t.code&&(e.houseArr=t.data.records)}))},searchClick:function(){this.getTableList()},resetClick:function(){this.payTime=[this.$moment().format("YYYY-MM-DD"),this.$moment().format("YYYY-MM-DD")],this.transactionTime="",this.$refs["query"].resetFields(),this.getTableList()},handleSizeChange:function(e){this.query.pageNumber=1,this.query.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.query.pageNumber=e,this.getTableList()},headClass:function(){return"text-align:center;background:#FAFAFA;"}}},me=pe,he=(a("9c1a"),a("17c2"),Object(d["a"])(me,ne,re,!1,null,"7c37877e",null)),fe=he.exports,ye={components:{collectionInfo:m,temporaryInfo:C,recordList:O,prePayRecord:ie,chronicle:fe},data:function(){return{activeName:"collection"}},mounted:function(){this.$route.query.gotoTemporaryInfo&&(this.activeName="temporary")},methods:{handleClick:function(e){var t=this,a=e.paneName;this.activeName=a,"prePayRecord"==this.activeName&&this.$nextTick((function(){t.$refs.prePayRecord.initData()}))},recordList:function(){this.$refs.record.init()}}},be=ye,ge=Object(d["a"])(be,i,n,!1,null,null,null);t["default"]=ge.exports},"61eb":function(e,t,a){},"8fa1":function(e,t,a){"use strict";a("a752")},"9c1a":function(e,t,a){"use strict";a("4e5f")},a2a4:function(e,t,a){"use strict";a("bdfb")},a752:function(e,t,a){},bdfb:function(e,t,a){},cb18:function(e,t,a){},cdaa:function(e,t,a){"use strict";a("61eb")}}]);