You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
13 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-533b13ee"],{1615:function(e,t,a){"use strict";a.d(t,"l",(function(){return i})),a.d(t,"t",(function(){return s})),a.d(t,"n",(function(){return r})),a.d(t,"a",(function(){return o})),a.d(t,"q",(function(){return l})),a.d(t,"r",(function(){return u})),a.d(t,"o",(function(){return c})),a.d(t,"p",(function(){return d})),a.d(t,"s",(function(){return p})),a.d(t,"c",(function(){return h})),a.d(t,"b",(function(){return m})),a.d(t,"k",(function(){return f})),a.d(t,"m",(function(){return _})),a.d(t,"j",(function(){return b})),a.d(t,"d",(function(){return v})),a.d(t,"g",(function(){return g})),a.d(t,"f",(function(){return P})),a.d(t,"h",(function(){return y})),a.d(t,"i",(function(){return w})),a.d(t,"e",(function(){return S})),a.d(t,"y",(function(){return T})),a.d(t,"z",(function(){return x})),a.d(t,"x",(function(){return k})),a.d(t,"u",(function(){return O})),a.d(t,"w",(function(){return C})),a.d(t,"v",(function(){return q}));var n=a("b775");a("2c37");function i(e){return n["a"].request({method:"GET",url:"/chargesTemplate/list",params:e})}function s(e){return n["a"].request({method:"POST",url:"/expenseBill/refund",data:e})}function r(e){return n["a"].request({method:"GET",url:"/dailyPayment/findEnableTempleDetail",params:e})}function o(e){return n["a"].request({method:"GET",url:"/activityManagement/findEnableTempleDetail",params:e})}function l(e){return n["a"].request({method:"POST",url:"/dailyPaymentPlan/insert",data:e})}function u(e){return n["a"].request({method:"POST",url:"/dailyPaymentPlan/update",data:e})}function c(e){return n["a"].request({method:"POST",url:"/dailyPayment/insert",data:e})}function d(e){return n["a"].request({method:"POST",url:"/dailyPayment/insertOrder",data:e})}function p(e){return n["a"].request({method:"POST",url:"/dailyPayment/push",data:e})}function h(e){return n["a"].request({method:"POST",url:"/advancePayment/refund",data:e})}function m(e){return n["a"].request({method:"POST",url:"/advancePayment/recharge",data:e})}function f(e){return n["a"].request({method:"GET",url:"/chargesTemplate/isEnable",params:e})}function _(e){return n["a"].request({method:"POST",url:"/chargesTemplate/update",data:e})}function b(e){return n["a"].request({method:"POST",url:"/chargesTemplate/insert",data:e})}function v(e){return n["a"].request({method:"POST",url:"/chargesTemplate/delete",data:e})}function g(e){return n["a"].request({method:"POST",url:"/chargesTemplateDetail/insert",data:e})}function P(e){return n["a"].request({method:"GET",url:"/chargesTemplateDetail/findById",params:e})}function y(e){return n["a"].request({method:"GET",url:"/chargesTemplateDetail/isEnable",params:e})}function w(e){return n["a"].request({method:"POST",url:"/chargesTemplateDetail/update",data:e})}function S(e){return n["a"].request({method:"POST",url:"/chargesTemplateDetail/delete",data:e})}function T(e){return n["a"].request({method:"POST",url:"/paper/insert",data:e})}function x(e){return n["a"].request({method:"POST",url:"/paper/recipients",data:e})}function k(e){return n["a"].request({method:"POST",url:"/meterReadingRecord/updateRemakes",data:e})}function O(e){return n["a"].request({method:"POST",url:"/meterReadingRecord/createShareBill",data:e})}function C(e){return n["a"].request({method:"POST",url:"/meterReadingRecord/ShareBillPushDetails",data:e})}function q(e){return n["a"].request({method:"POST",url:"/meterReadingRecord/ShareBillPush",data:e})}},"662b":function(e,t,a){"use strict";a.d(t,"a",(function(){return i})),a.d(t,"b",(function(){return s}));a("f2d9");var n=a("2b74");async function i(e,t){let a=[];const i=await Object(n["b"])(e);if(a.push(...i.tableList),i.pageCount>1)for(let s=1;s<i.pageCount;s++){e.pageNum=s+1;const r=await Object(n["b"])(e);t.ExcelLoading(s,i.pageCount),a.push(...r.tableList)}return a}async function s(e){let t=[];const a=await Object(n["b"])(e);return console.log(a),t.push(...a.tableList),t}},"6c9d":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"main-content",staticStyle:{marginBottom:"30px"}},[t("div",{staticClass:"main-titel"},[t("span",[e._v("年度账单详情")]),t("el-button",{attrs:{size:"small",id:"backbtn"},on:{click:e.back}},[e._v("返回")])],1),t("div",{staticClass:"main details-box"},[t("div",{staticClass:"box"},[e._m(0),t("div",{staticClass:"box-item"},[t("div",{staticClass:"item"},[e._m(1),t("div",[t("span",[e._v(e._s(e.basicInfo.roomName))])])]),t("div",{staticClass:"item"},[e._m(2),t("div",[t("span",[e._v(e._s(e.basicInfo.associationResidentsName))])])]),t("div",{staticClass:"item"},[e._m(3),t("div",[t("span",[e._v(e._s(e.basicInfo.paidPriceSum+" 元"))])])]),t("div",{staticClass:"item"},[e._m(4),t("div",[t("span",[e._v(e._s(e.basicInfo.paidPriceSum+" 元"))])])]),t("div",{staticClass:"item"},[e._m(5),t("div",[t("span",[e._v(e._s(e.basicInfo.paymentPriceSum+" 元"))])])])])])])]),t("div",{staticClass:"main-content"},[t("div",{staticClass:"content"},[t("div",{staticClass:"s_title"},[e._v("账单记录")]),t("div",{},[t("div",[t("div",{staticStyle:{background:"#F9F9F9",padding:"10px",marginBottom:"20px"}},[t("div",{staticStyle:{marginBottom:"10px"}},[t("span",{staticStyle:{color:"#000000",fontWeight:"600"}},[e._v("年份")]),e._l(e.yearchoose,(function(a,n){return t("span",{key:n,class:{choosed:e.changeRed==n},staticStyle:{padding:"10px",cursor:"pointer"},on:{click:function(t){return e.chooseYears(a,n)}}},[e._v(e._s(a))])}))],2),t("span",{staticStyle:{color:"#000000",fontWeight:"600"}},[e._v("月份")]),e._l(e.bilchoose,(function(a,n){return t("span",{key:n,class:{choosed:e.changeRedS==n},staticStyle:{padding:"10px",cursor:"pointer"},on:{click:function(t){return e.chooseMon(a,n)}}},[e._v(e._s(a+"月"))])}))],2),t("span",[e._v("请选择财务模板:"),t("el-select",{attrs:{size:"mini"},model:{value:e.tempvalue,callback:function(t){e.tempvalue=t},expression:"tempvalue"}},e._l(e.templateOptions,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),1==e.tempvalue?t("span",{staticStyle:{width:"50px"}},[t("download-excel",{staticClass:"export-excel-wrapper",attrs:{fetch:e.fetchData,fields:e.json_fieldsjindie,"before-finish":e.finishDownload,header:"新城悦物业服务有限公司 -附单据1张",footer:"会计主管___________记账____________审核____________制单人:____________",name:"金蝶模板账单.xls"}},[t("el-button",{attrs:{size:"mini",icon:"el-icon-folder-add",plain:""}},[e._v("导出金蝶模板账单")])],1)],1):2==e.tempvalue?t("span",{staticStyle:{width:"50px"}},[t("download-excel",{staticClass:"export-excel-wrapper",attrs:{fetch:e.fetchData,fields:e.json_fieldsyongyou,"before-finish":e.finishDownload,header:"银行对账单--对账单账面余额____________",name:"用友模板账单.xls"}},[t("el-button",{attrs:{size:"mini",icon:"el-icon-folder-add",plain:""}},[e._v("导出用友模板账单")])],1)],1):e._e()]),t("VueTable",{ref:"table",attrs:{config:e.config},on:{tableCheck:e.tableCheck}},[t("template",{slot:"footer"},[t("div",{staticClass:"table-footer"},[t("button",{on:{click:function(t){return e.refund(e.table_row)}}},[e._v("退款备注")])])])],2)],1)])]),t("el-dialog",{attrs:{title:"退款备注",width:"480px",top:"40vh",visible:e.remarkshow},on:{close:function(t){return e.resetDialog()},"update:visible":function(t){e.remarkshow=t}}},[t("div",[e._v(" 退款金额 ")]),t("div",{staticClass:"dialang-box"},[t("el-input",{staticStyle:{width:"423px",height:"32px"},attrs:{placeholder:"请输入退款金额",size:"mini",oninput:"value=value.replace(/[^0-9.]/g,'')"},model:{value:e.refundPrice,callback:function(t){e.refundPrice=t},expression:"refundPrice"}})],1),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{size:"mini"},on:{click:function(t){e.remarkshow=!1}}},[e._v("取 消")]),t("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.remarkshowOk()}}},[e._v("确 定")])],1)])],1)},i=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"title"},[t("span",[e._v("基本信息")])])},function(){var e=this,t=e._self._c;return t("div",{staticClass:"span"},[t("span",[e._v("房屋信息:")])])},function(){var e=this,t=e._self._c;return t("div",{staticClass:"span"},[t("span",[e._v("当前关联住户:")])])},function(){var e=this,t=e._self._c;return t("div",{staticClass:"span"},[t("span",[e._v("费用合计:")])])},function(){var e=this,t=e._self._c;return t("div",{staticClass:"span"},[t("span",[e._v("实收费用总计:")])])},function(){var e=this,t=e._self._c;return t("div",{staticClass:"span"},[t("span",[e._v("剩余未缴总计:")])])}],s=a("1615"),r=a("662b"),o={data(){return{tempvalue:1,templateOptions:[{label:"金蝶",value:1},{label:"用友",value:2}],expenseId:null,remarkshow:!1,refundPrice:null,changeRed:-1,changeRedS:-1,thatId:null,drawerTitle:"",add_vrisible:!1,addDate:null,options:[],ids:[],bilchoose:["全部",1,2,3,4,5,6,7,8,9,10,11,12],yearchoose:["全部",2021,2022],basicInfo:{roomName:null,associationResidentsName:null,costPriceSum:null,paidPriceSum:null,paymentPriceSum:null,totalPriceSum:1,refundPriceSum:1},sysOptions:[],loading:!1,table_row:[],activeName:"0",json_fieldsjindie:{"摘要":"name","总账科目":"name","明细科目":"name","借方金额":"costPrice","贷方金额":"paidPrice"},json_fieldsyongyou:{"日期":"createDate","结算方式":"status","票号":"name","借方金额":"costPrice","贷方金额":"paidPrice","余额":"paidPrice"},config:{thead:[{label:"序号",type:"index",width:"80"},{label:"费用名称",prop:"name",width:"auto"},{label:"缴纳人名称",prop:"payPeopleName",width:"auto"},{label:"费用金额",prop:"costPrice",width:"auto"},{label:"已缴金额",prop:"paidPrice",width:"auto"},{label:"应收总计",prop:"totalPrice",width:"auto"},{label:"待缴金额",prop:"paymentPrice",width:"auto"},{label:"退款金额",prop:"refundPrice",width:"auto"},{label:"状态",prop:"status",width:"auto",type:"function",callback:(e,t)=>{switch(e.status){case 1:return"未缴纳";case 2:return"部分缴纳";case 3:return"全部缴纳"}}},{label:"费率",prop:"rate",width:"auto"},{label:"缴费期限",prop:"paymentTerm",width:"auto"},{label:"滞纳金",prop:"overdueFine",width:"auto"},{label:"创建人",width:"auto"},{label:"创建时间",prop:"createDate",width:"auto"}],table_data:[],url:"expenseBillDetailList",search_item:[{type:"Input",label:"缴纳人名称",placeholder:"请输入",prop:"payPeopleName"},{type:"select",label:"费用类型",placeholder:"请输入",prop:"chargesTemplateDetailId",options:[]}],data:{pageNum:1,size:10,estateId:null,months:null,years:null}}}},created(){if(console.log(this.$route.params),console.log(this.$route.params.data.id),this.$route.params.data.id){console.log(this.$route.params.data.id);let e=this.$route.params.data;this.config.data.estateId=e.id,this.basicInfo.roomName=e.roomName,this.basicInfo.associationResidentsName=e.associationResidentsName,this.basicInfo.costPriceSum=e.costPriceSum,this.basicInfo.paidPriceSum=e.paidPriceSum,this.basicInfo.paymentPriceSum=e.paymentPriceSum}Object(s["n"])().then(e=>{console.log(e),e.data.forEach(e=>{let t={value:e.id,label:e.name};this.config.search_item[1].options.push(t)})})},methods:{back(){this.$router.go(-1)},chooseYears(e,t){this.changeRed=t,console.log(e),this.config.data.years="全部"!=e?e:null},chooseMon(e,t){this.changeRedS=t,console.log(e),this.config.data.months="全部"!=e?e:null},refund(e){1!=e.length?this.$message({type:"error",message:"请选择一条记录进行备注"}):(this.expenseId=e[0].id,this.remarkshow=!0)},remarkshowOk(){null===this.refundPrice&&this.$message({type:"error",message:"金额不能为空"});let e={id:this.expenseId,refundPrice:this.refundPrice};Object(s["t"])(e).then(e=>{e.status?(this.$message({message:e.message,type:"success"}),this.$refs.table.requestData(),this.remarkshow=!1):this.$message({message:e.message,type:"error"})})},resetDialog(){this.refundPrice=null},async fetchData(){let e={url:"expenseBillDetailList",data:{pageNum:1,size:100,estateId:this.config.data.estateId,months:this.config.data.months,years:this.config.data.years}};const t=await Object(r["a"])(e,this);return t},ExcelLoading(e,t){const a=this.$loading({lock:!0,text:"正在导出Excel"+e,spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});a.text=`正在导出Excel ${e}/${t}`,console.log(a.text)},finishDownload(){const e=this.$loading();e.close()},tableCheck(e){this.table_row=e},del(e){if(e.length){let e=[];for(let t=0;t<this.table_row.length;t++)e.push(this.table_row[t].id);this.$confirm("是否确认删除?删除不可恢复","删除",{confirmButtonText:"确定",cancelButtonText:"取消",confirmButtonClass:"confirmButton",cancelButtonClass:"cancelButton"}).then(()=>{this.$refs.table.tableDelete(e)}).catch(e=>{})}else this.$message.error("请选中需要删除的数据")}}},l=o,u=(a("9429"),a("2877")),c=Object(u["a"])(l,n,i,!1,null,"b9772546",null);t["default"]=c.exports},9429:function(e,t,a){"use strict";a("f1fa")},f1fa:function(e,t,a){}}]);
//# sourceMappingURL=chunk-533b13ee.ce9bd836.js.map