1 line
21 KiB
JavaScript
1 line
21 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-fee-oweFee"],{"09c4":function(e,t,a){"use strict";var n=a("7f0c"),i=a.n(n);i.a},"1fde":function(e,t,a){"use strict";a.r(t);var n=a("d398"),i=a("9307");for(var s in i)["default"].indexOf(s)<0&&function(e){a.d(t,e,(function(){return i[e]}))}(s);a("bcc6");var o=a("828b"),u=Object(o["a"])(i["default"],n["b"],n["c"],!1,null,"d2e1d348",null,!1,n["a"],void 0);t["default"]=u.exports},"63ab":function(e,t,a){"use strict";var n=a("7f2e"),i=a.n(n);i.a},"6c83":function(e,t,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a("bf0f"),a("2797"),a("aa9c"),a("e838");var i=n(a("d5d0")),s=n(a("1fde")),o=n(a("b703")),u=a("fcd3"),c=a("1c9a"),r=a("b9a1"),d=a("a6b0"),f=a("c162"),l=(i.default.constant,{data:function(){return{scrollLeft:0,amount:0,receivableAmount:0,communityId:"",communityName:"",appId:"",fees:[],roomId:"",storeId:"",payerObjs:[],payerObjId:"",payerObjIndex:0,feeIds:[],selectUserAccount:[],accountAmount:0}},components:{noDataPage:o.default,vcUserAccount:s.default},onLoad:function(e){i.default.onLoad(e),(0,f.autoLogin)(e),this.communityId=e.communityId,this.payerObjId=e.payerObjId,this.communityId||(this.communityId=(0,c.getCommunityId)())},onShow:function(){this._loadOweFee()},methods:{_loadOweFee:function(){var e=this,t="";this.payerObjId&&(t=this.payerObjId);var a={page:1,row:50,communityId:this.communityId,payObjId:t};e.feeIds=[],(0,d.getRoomOweFees)(a).then((function(t){return t&&t.length>0&&(e.storeId=t[0].incomeObjId,e.ownerId=t[0].ownerId),e.fees=t,t.forEach((function(t){"Y"==t.payOnline&&e.feeIds.push(t.feeId)})),e.computeFeeObj(t),e.computeReceivableAmount(),setTimeout((function(){e.$refs.vcUserAccountRef._listOwnerAccount(e.communityId)}),1500),t}),(function(e){uni.showToast({icon:"none",title:this.$t("pages.fee.oweFee.没有应缴费用")})}))},onPayFee:function(){var e=this.receivableAmount;if(!this.feeIds||this.feeIds.length<1)uni.showToast({icon:"none",title:this.$t("pages.fee.oweFee.未选择费用")});else{var t="";this.selectUserAccount&&this.selectUserAccount.length>0&&(t=this.selectUserAccount[0].acctId);var a={business:"oweFee",cycles:this.feeMonth,communityId:this.communityId,ownerId:this.ownerId,feeName:"物业费",receivedAmount:e,tradeType:"JSAPI",storeId:this.storeId,feeIds:this.feeIds,acctId:t};uni.setStorageSync("doing_cashier",a),uni.navigateTo({url:"/pages/fee/cashier?money="+e+"&business=oweFee&communityId="+this.communityId+"&cashierUserId="+(0,r.getUserId)()})}},_getDeadlineTime:function(e){return(0,u.dateSubOneDay)(e.startTime,e.deadlineTime,e.feeFlag)},_getReadTime:function(e){var t=(0,u.getDate)(e);return(0,u.formatDate)(t)},_showDetailFee:function(e){var t=this.fees;t.forEach((function(t){e.feeId==t.feeId&&(t.showDetail=!t.showDetail)})),this.$forceUpdate()},computeFeeObj:function(e){var t=this,a=this;if(!this.payerObjId){a.payerObjs=[{payerObjId:"",payerObjName:this.$t("pages.fee.oweFee.全部")}];var n=this.fees;n.forEach((function(e){t._hasPayerObj(e)||a.payerObjs.push({payerObjId:e.payerObjId,payerObjName:e.payerObjName})}))}},_hasPayerObj:function(e){var t=!1;return this.payerObjs.forEach((function(a){e.payerObjId==a.payerObjId&&(t=!0)})),t},_payerObjectChange:function(e){this.payerObjIndex=e.detail.value;var t=this.payerObjs[e.detail.value];this.payerObjId=t.payerObjId,this._loadOweFee()},getUserAmount:function(e){this.selectUserAccount=e.selectedAccounts,this.accountAmount=e.totalUserAmount,this.computeReceivableAmount()},computeReceivableAmount:function(){var e=this.feeIds,t=0;this.fees.forEach((function(a){e.forEach((function(e){a.feeId==e&&(t+=parseFloat(a.feeTotalPrice))}))})),t-=parseFloat(this.accountAmount),t=t<0?0:t,this.receivableAmount=t.toFixed(2)}}});t.default=l},"7f0c":function(e,t,a){var n=a("8140");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var i=a("967d").default;i("6fdd22c2",n,!0,{sourceMap:!1,shadowMode:!1})},"7f2e":function(e,t,a){var n=a("870f");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var i=a("967d").default;i("9a180bd6",n,!0,{sourceMap:!1,shadowMode:!1})},8140:function(e,t,a){var n=a("c86c");t=n(!1),t.push([e.i,".no-data-icon[data-v-332247a6]{font-size:%?200?%}.margin-top-100[data-v-332247a6]{margin-top:%?200?%}",""]),e.exports=t},"82c9":function(e,t,a){"use strict";a("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={name:"NoDataPage",data:function(){return{}},methods:{}}},"870f":function(e,t,a){var n=a("c86c");t=n(!1),t.push([e.i,".ppf_item[data-v-0accab12]{padding:%?0?% %?0?% %?0?% %?0?%}.block__title[data-v-0accab12]{margin:0;font-weight:400;font-size:14px;color:rgba(69,90,100,.6);padding:%?40?% %?30?% %?20?%}.button_up_blank[data-v-0accab12]{height:%?40?%}.block__bottom[data-v-0accab12]{height:%?180?%}.fee-last[data-v-0accab12]{margin-bottom:%?200?%}.cu-btn.lgplus[data-v-0accab12]{padding:0 20px;font-size:18px;height:%?100?%}.cu-btn.sharp[data-v-0accab12]{border-radius:%?0?%}.line-height[data-v-0accab12]{line-height:%?100?%}.sub-info[data-v-0accab12]{background-color:#fff;padding:%?15?%}.sub-info .sub-info-item[data-v-0accab12]{width:45%;margin:%?10?% %?15?% %?0?% %?15?%}",""]),e.exports=t},8950:function(e,t,a){"use strict";a.r(t);var n=a("6c83"),i=a.n(n);for(var s in n)["default"].indexOf(s)<0&&function(e){a.d(t,e,(function(){return n[e]}))}(s);t["default"]=i.a},9307:function(e,t,a){"use strict";a.r(t);var n=a("cd9a"),i=a.n(n);for(var s in n)["default"].indexOf(s)<0&&function(e){a.d(t,e,(function(){return n[e]}))}(s);t["default"]=i.a},9689:function(e,t,a){"use strict";a.d(t,"b",(function(){return i})),a.d(t,"c",(function(){return s})),a.d(t,"a",(function(){return n}));var n={noDataPage:a("b703").default},i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-uni-view",[e.payerObjs&&e.payerObjs.length>1?a("v-uni-view",{staticClass:"cu-form-group arrow margin-top"},[a("v-uni-view",{staticClass:"title",staticStyle:{width:"200upx"}},[e._v(" "+e._s(e.$t("pages.fee.oweFee.按房屋缴费")))]),a("v-uni-picker",{attrs:{bindchange:"PickerChange",value:e.payerObjIndex,range:e.payerObjs,"range-key":"payerObjName"},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e._payerObjectChange.apply(void 0,arguments)}}},[a("v-uni-view",{staticClass:"picker"},[e._v(" "+e._s(e.payerObjs[e.payerObjIndex].payerObjName)+" ")])],1)],1):e._e(),a("v-uni-scroll-view",{staticStyle:{"padding-bottom":"200rpx"},attrs:{"scroll-y":!0}},[e.fees.length>0?a("v-uni-view",{staticClass:"block__title"},[e._v(" "+e._s(e.$t("pages.fee.oweFee.应缴费用")))]):e._e(),e.fees&&e.fees.length>0?a("v-uni-view",[e._l(e.fees,(function(t,n){return"Y"==t.payOnline?a("v-uni-view",{key:n,staticClass:"cu-list menu",attrs:{"data-item":t}},[a("v-uni-view",{staticClass:"cu-item ",on:{click:function(a){arguments[0]=a=e.$handleEvent(a),e._showDetailFee(t)}}},[a("v-uni-view",{staticClass:"content padding-tb-sm"},[a("v-uni-view",[a("v-uni-view",{staticClass:"text-cut",staticStyle:{width:"150px"}},[e._v(e._s(t.feeName)+"("+e._s(t.payerObjName)+") ")])],1),a("v-uni-view",{staticClass:"text-gray text-sm"},[a("v-uni-text",{staticClass:"margin-right-xs"},[e._v(e._s(t.endTime)+" "+e._s(e.$t("pages.fee.oweFee.至"))+e._s(t.deadlineTime))])],1)],1),a("v-uni-view",{staticClass:"action"},[a("v-uni-text",{staticClass:"text-grey text-sm"},[e._v(" "+e._s(e.$t("pages.fee.oweFee.应缴"))+":¥"+e._s(t.feeTotalPrice))])],1)],1),t.showDetail?a("v-uni-view",{staticClass:"sub-info flex justify-start flex-wrap"},[t.preDegrees?a("v-uni-view",{staticClass:"sub-info-item text-gray text-sm"},[a("v-uni-text",{staticClass:"margin-right-xs"},[e._v(" "+e._s(e.$t("pages.fee.oweFee.上期读数:"))+e._s(t.preDegrees))])],1):e._e(),t.preDegrees?a("v-uni-view",{staticClass:"sub-info-item text-gray text-sm"},[a("v-uni-text",{staticClass:"margin-right-xs"},[e._v(" "+e._s(e.$t("pages.fee.oweFee.上期读表时间:"))+e._s(e._getReadTime(t.preReadingTime)))])],1):e._e(),t.curDegrees?a("v-uni-view",{staticClass:"sub-info-item text-gray text-sm"},[a("v-uni-text",{staticClass:"margin-right-xs"},[e._v(" "+e._s(e.$t("pages.fee.oweFee.本期读数:"))+e._s(t.curDegrees))])],1):e._e(),t.preDegrees?a("v-uni-view",{staticClass:"sub-info-item text-gray text-sm"},[a("v-uni-text",{staticClass:"margin-right-xs"},[e._v(e._s(e.$t("pages.fee.oweFee.本期读表时间:"))+e._s(e._getReadTime(t.curReadingTime)))])],1):e._e(),t.curDegrees?a("v-uni-view",{staticClass:"sub-info-item text-gray text-sm"},[a("v-uni-text",{staticClass:"margin-right-xs"},[e._v(" "+e._s(e.$t("pages.fee.oweFee.使用量:"))+e._s(t.curDegrees-t.preDegrees))])],1):e._e(),a("v-uni-view",{staticClass:"sub-info-item text-gray text-sm"},[a("v-uni-text",{staticClass:"margin-right-xs"},[e._v(" "+e._s(e.$t("pages.fee.oweFee.单价:"))+e._s(t.mwPrice&&t.mwPrice>0?t.mwPrice:t.squarePrice)+"/"+e._s(t.additionalAmount))])],1)],1):e._e()],1):e._e()})),a("vcUserAccount",{ref:"vcUserAccountRef",on:{getUserAmount:function(t){arguments[0]=t=e.$handleEvent(t),e.getUserAmount.apply(void 0,arguments)}}})],2):a("v-uni-view",[a("no-data-page")],1)],1),e.fees.length>0?a("v-uni-view",{staticClass:"bg-white border flex justify-end",staticStyle:{position:"fixed",width:"100%",bottom:"0"}},[a("v-uni-view",{staticClass:"action text-orange margin-right line-height"},[e._v(" "+e._s(e.$t("pages.fee.oweFee.合计:"))+e._s(e.receivableAmount)+" "+e._s(e.$t("pages.fee.oweFee.元"))+" ")]),a("v-uni-view",{staticClass:"btn-group"},[a("v-uni-button",{staticClass:"cu-btn bg-red shadow-blur lgplus sharp",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onPayFee()}}},[e._v(" "+e._s(e.$t("pages.fee.oweFee.缴费")))])],1)],1):e._e()],1)},s=[]},"9d3f":function(e,t,a){var n=a("b0b7");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var i=a("967d").default;i("6f84205c",n,!0,{sourceMap:!1,shadowMode:!1})},a0a9:function(e,t,a){"use strict";a.r(t);var n=a("82c9"),i=a.n(n);for(var s in n)["default"].indexOf(s)<0&&function(e){a.d(t,e,(function(){return n[e]}))}(s);t["default"]=i.a},a6b0:function(e,t,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.cashierPayFee=function(e,t,a){a||(a="/pages/successPage/successPage?msg=支付成功&objType=3003");wx.showLoading({title:"支付中"}),(0,i.requestNoAuth)({url:s.default.cashier,method:"POST",data:t,success:function(t){if("扣费为0回调成功"===t.data.msg){uni.navigateTo({url:"/pages/successPage/successPage?msg=支付成功&objType=3003"})}uni.showToast({title:t.data.msg,duration:2e3}),console.log(t),console.log();var a=t.data.returnData.abapay_deeplink,n=t.data.orderId;e.aba_train_id=t.data.returnData.status.tran_id,e.order_id_query=t.data.orderId;var i=Date.now(),s=60*t.data.lifetime*1e3;e.order_lifetime_timestamp=i+s,e.qrImage=t.data.returnData.qrImage,e.abadeeplink=t.data.returnData.abapay_deeplink,e.app_store=t.data.returnData.app_store,e.play_store=t.data.returnData.play_store,"undefined"!==typeof plus?(plus.runtime.openURL(a,(function(t){console.log("打开结果:",t),t&&t.code&&(e.showQrToast=!0)})),e.banButton=!1):null!=window.Telegram.WebApp.initDataUnsafe.user?(window.open(a,"_blank"),e.banButton=!1):(e.showQrToast=!0,e.showQRButton=!0);var o=[];try{var u=uni.getStorageSync("order_list");u?o=u:console.log("存储数据为空,使用默认空列表")}catch(c){console.log("无存储数据,使用默认空列表",c)}o.push({order_id:n,train_id:e.aba_train_id,qr_image:e.qrImage,abapayDeeplink:a,money:e.money,des:e.data.feeName,time:Date.now(),feeIds:e.data.feeIds}),console.log("order list:"),console.log(o);try{uni.setStorageSync("order_list",o),console.log("列表存储成功")}catch(c){console.log("列表存储失败",c)}},fail:function(t){wx.hideLoading(),wx.showToast({title:"服务器异常了",icon:"none",duration:2e3}),e.banButton=!1}})},t.computeObjFee=function(e){return new Promise((function(t,a){(0,i.request)({url:s.default.computeObjFee,method:"GET",data:e,success:function(e){200!=e.statusCode?a():t(e.data)},fail:function(e){a()}})}))},t.computePayFeeCoupon=function(e){return new Promise((function(t,a){(0,i.request)({url:s.default.computePayFeeCoupon,method:"GET",data:e,success:function(e){200!=e.statusCode?a():t(e.data)},fail:function(e){a()}})}))},t.couponPropertyUserGiftCar=function(e){return new Promise((function(t,a){(0,i.requestNoAuth)({url:s.default.couponPropertyUserGiftCar,method:"POST",data:JSON.stringify(e),success:function(e){0!=e.data.code?a():t(e.data)},fail:function(e){a()}})}))},t.generatorCouponQrcode=function(e){return new Promise((function(t,a){(0,i.request)({url:s.default.generatorCouponQrcode,method:"POST",data:JSON.stringify(e),success:function(e){200!=e.statusCode?a():t(e.data)},fail:function(e){a()}})}))},t.getCouponUsers=function(e,t){return new Promise((function(a,n){(0,i.requestNoAuth)({url:s.default.queryCouponUser,method:"GET",data:e,success:function(e){if(200==e.statusCode)return t=e.data,t.length<1&&n(),void a(t);n()},fail:function(e){n()}})}))},t.getFeeDiscounts=function(e){return new Promise((function(t,a){(0,i.request)({url:s.default.computeFeeDiscount,method:"GET",data:e,success:function(e){if(200!=e.statusCode)a();else{var n=e.data.data;t(n)}},fail:function(e){a()}})}))},t.getParkingCarCoupon=function(e){return new Promise((function(t,a){(0,i.requestNoAuth)({url:s.default.listParkingCouponCar,method:"GET",data:e,success:function(e){var n=e.data;0!=n.code?a(n.msg):t(n.data)},fail:function(e){a()}})}))},t.getQrCodeData=function(e){return new Promise((function(t,a){(0,i.requestNoAuth)({url:s.default.getNativeQrcodePayment,method:"GET",data:e,success:function(e){200!=e.statusCode?a():t(e.data)},fail:function(e){a()}})}))},t.getRoomFees=function(e,t){return new Promise((function(a,n){var u=[];(0,i.request)({url:s.default.queryFeeByOwner,method:"GET",data:e,success:function(e){if(200==e.statusCode){var i=e.data.fees;return i.length<1&&n(),i.forEach((function(e){t=JSON.parse(JSON.stringify(t)),t.endTime=(0,o.dateTimeStringToDateString)(e.endTime);var a=new Date;e.endTime>a?t.feeStateName="正常":t.feeStateName="欠费",t.additionalAmount=e.additionalAmount,t.squarePrice=e.squarePrice,t.amount=e.feePrice,t.feeId=e.feeId,t.feeName=e.feeName,t.feeFlag=e.feeFlag,t.paymentCycle=e.paymentCycle,t.preDegrees=e.preDegrees,t.curDegrees=e.curDegrees,t.preReadingTime=e.preReadingTime,t.curReadingTime=e.curReadingTime,t.feeState=e.state,t.deadlineTime=e.deadlineTime,t.amountOwed=e.amountOwed,t.startTime=e.startTime,t.payOnline=e.payOnline,u.push(t)})),void a(u)}n()},fail:function(e){n()}})}))},t.getRoomOweFees=function(e){return new Promise((function(t,a){(0,i.request)({url:s.default.listOweFees,method:"GET",data:e,success:function(e){if(200==e.statusCode){var n=e.data.data;return n.length<1&&a(),n.forEach((function(e){e.endTime=(0,o.dateTimeStringToDateString)(e.endTime),e.deadlineTime=(0,o.dateTimeStringToDateString)(e.deadlineTime)})),void t(n)}a()},fail:function(e){a()}})}))},t.getTempCarFeeOrder=function(e){return new Promise((function(t,a){(0,i.requestNoAuth)({url:s.default.getTempCarFeeOrder,method:"GET",data:e,success:function(e){200!=e.statusCode?a():t(e.data)},fail:function(e){a()}})}))},t.payFeeApp=function(e,t){wx.showLoading({title:"支付中"}),(0,i.request)({url:s.default.preOrder,method:"POST",data:t,success:function(e){if(wx.hideLoading(),"0"==e.data.code){var t;e.data;return t=JSON.stringify({}),void uni.requestPayment({provider:"wxpay",orderInfo:t,success:function(e){uni.navigateTo({url:"/pages/successPage/successPage?msg=支付成功&objType=3003"})},fail:function(e){console.log("fail:"+JSON.stringify(e))}})}if("100"==e.data.code){e.data;return uni.showToast({title:"支付成功",duration:2e3}),void uni.navigateTo({url:"/pages/successPage/successPage?msg=支付成功&objType=3003"})}wx.showToast({title:data.msg,icon:"none",duration:2e3})},fail:function(e){wx.hideLoading(),wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})},t.payFeeWechat=function(e,t,a){a||(a="/pages/successPage/successPage?msg=支付成功&objType=3003");wx.showLoading({title:"支付中"}),(0,i.request)({url:s.default.unifiedPayment,method:"POST",data:t,success:function(e){if(wx.hideLoading(),"0"!=e.data.code){if(200==e.statusCode&&"100"==e.data.code){e.data;return uni.showToast({title:"支付成功",duration:2e3}),void setTimeout((function(){uni.navigateBack({})}),2e3)}wx.showToast({title:"缴费失败"+e.data.msg,icon:"none",duration:2e3})}else{var t=e.data;WexinPayFactory.wexinPay(t,(function(){uni.navigateTo({url:a})}))}},fail:function(e){wx.hideLoading(),wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})},t.receiveParkingCoupon=function(e){return new Promise((function(t,a){(0,i.requestNoAuth)({url:s.default.saveParkingCouponCar,method:"POST",data:JSON.stringify(e),success:function(e){200!=e.statusCode?a():t(e.data)},fail:function(e){a()}})}))},t.toAliPayTempCarFee=function(e){return new Promise((function(t,a){(0,i.requestNoAuth)({url:s.default.alipayPayTempCarFee,method:"POST",data:JSON.stringify(e),success:function(e){200!=e.statusCode?a():t(e.data)},fail:function(e){a()}})}))},t.toPayTempCarFee=function(e){return new Promise((function(t,a){(0,i.requestNoAuth)({url:s.default.cashier,method:"POST",data:JSON.stringify(e),success:function(e){200!=e.statusCode?a():t(e.data)},fail:function(e){a()}})}))},a("bf0f"),a("2797"),a("d4b5"),a("aa9c");var i=a("a7bc"),s=n(a("79d4")),o=a("fcd3")},acb8:function(e,t,a){"use strict";a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return i})),a.d(t,"a",(function(){}));var n=function(){var e=this.$createElement,t=this._self._c||e;return t("v-uni-view",[t("v-uni-view",{staticClass:" text-center margin-top-100"},[t("v-uni-view",{},[t("v-uni-text",{staticClass:" cuIcon-warnfill light text-orange no-data-icon"})],1),t("v-uni-view",{},[t("v-uni-text",{staticClass:"text-gray"},[this._v(" "+this._s(this.$t("components.no-data-page.no-data-page.当前没有数据")))])],1)],1)],1)},i=[]},ae38:function(e,t,a){"use strict";a.r(t);var n=a("9689"),i=a("8950");for(var s in i)["default"].indexOf(s)<0&&function(e){a.d(t,e,(function(){return i[e]}))}(s);a("63ab");var o=a("828b"),u=Object(o["a"])(i["default"],n["b"],n["c"],!1,null,"0accab12",null,!1,n["a"],void 0);t["default"]=u.exports},b0b7:function(e,t,a){var n=a("c86c");t=n(!1),t.push([e.i,".block__title[data-v-d2e1d348]{margin:0;font-weight:400;font-size:14px;color:rgba(69,90,100,.6);padding:%?40?% %?30?% %?20?%}",""]),e.exports=t},b703:function(e,t,a){"use strict";a.r(t);var n=a("acb8"),i=a("a0a9");for(var s in i)["default"].indexOf(s)<0&&function(e){a.d(t,e,(function(){return i[e]}))}(s);a("09c4");var o=a("828b"),u=Object(o["a"])(i["default"],n["b"],n["c"],!1,null,"332247a6",null,!1,n["a"],void 0);t["default"]=u.exports},bcc6:function(e,t,a){"use strict";var n=a("9d3f"),i=a.n(n);i.a},cd9a:function(e,t,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a("bf0f"),a("2797"),a("4626"),a("5ac7"),a("e838"),a("aa9c");n(a("d5d0"));var i=a("b9a1"),s=(a("1c9a"),{components:{},data:function(){return{accounts:[],selectedAccounts:[]}},props:{},computed:{},watch:{selectedAccounts:function(e){var t=0,a=[];this.accounts.forEach((function(n){e.includes(n.acctId)&&("2004"==n.acctType?parseFloat(n.amount)>=parseFloat(n.maximumNumber)?(t+=parseFloat(n.maximumNumber/n.deductionProportion),a.push(n)):(t+=parseFloat(n.amount/n.deductionProportion),a.push(n)):(n.acctType,t+=parseFloat(n.amount),a.push(n)))})),this.$emit("getUserAmount",{totalUserAmount:t,selectedAccounts:a})}},methods:{checkboxChange:function(e){var t=e.detail.value;this.selectedAccounts=t,this.accounts.forEach((function(e,a){t.includes(e.acctId)&&(e.checked=!0)}))},_listOwnerAccount:function(e){var t=this;(0,i.queryOwnerAccount)({page:1,row:99,communityId:e,acctType:"2003"}).then((function(e){t.accounts=e||[]}))},_viewAccountDetail:function(e){}}});t.default=s},d398:function(e,t,a){"use strict";a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return i})),a.d(t,"a",(function(){}));var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-uni-view",[e.accounts.length>0?a("v-uni-view",[a("v-uni-view",{staticClass:"block__title"},[e._v(" "+e._s(e.$t("components.vc-user-account.vc-user-account.业主账户")))]),a("v-uni-checkbox-group",{on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.checkboxChange.apply(void 0,arguments)}}},e._l(e.accounts,(function(t,n){return a("v-uni-view",{key:n,staticClass:"cu-list menu",attrs:{"data-item":t},on:{click:function(a){arguments[0]=a=e.$handleEvent(a),e._viewAccountDetail(t)}}},[a("v-uni-view",{staticClass:"cu-item "},[a("v-uni-view",{staticClass:"content padding-tb-sm"},[a("v-uni-view",[a("v-uni-view",{staticClass:"text-cut",staticStyle:{width:"220px"}},[a("v-uni-checkbox",{attrs:{value:t.acctId,checked:t.checked}}),e._v(" "+e._s(e.$t("components.vc-user-account.vc-user-account."+t.acctTypeName))+" ")],1)],1)],1),a("v-uni-view",{staticClass:"action"},[a("v-uni-text",{staticClass:"text-grey text-sm"},[e._v(" "+e._s(t.amount)+e._s("2004"==t.acctType?e.$t("components.vc-user-account.vc-user-account.分"):e.$t("components.vc-user-account.vc-user-account.元"))+" ")])],1)],1)],1)})),1)],1):e._e()],1)},i=[]}}]); |