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
12 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e33f121a"],{1615:function(e,t,r){"use strict";r.d(t,"l",(function(){return a})),r.d(t,"t",(function(){return n})),r.d(t,"n",(function(){return o})),r.d(t,"a",(function(){return i})),r.d(t,"q",(function(){return u})),r.d(t,"r",(function(){return s})),r.d(t,"o",(function(){return c})),r.d(t,"p",(function(){return m})),r.d(t,"s",(function(){return d})),r.d(t,"c",(function(){return h})),r.d(t,"b",(function(){return p})),r.d(t,"k",(function(){return f})),r.d(t,"m",(function(){return b})),r.d(t,"j",(function(){return F})),r.d(t,"d",(function(){return y})),r.d(t,"g",(function(){return w})),r.d(t,"f",(function(){return g})),r.d(t,"h",(function(){return S})),r.d(t,"i",(function(){return T})),r.d(t,"e",(function(){return v})),r.d(t,"y",(function(){return k})),r.d(t,"z",(function(){return P})),r.d(t,"x",(function(){return C})),r.d(t,"u",(function(){return _})),r.d(t,"w",(function(){return x})),r.d(t,"v",(function(){return O}));var l=r("b775");r("2c37");function a(e){return l["a"].request({method:"GET",url:"/chargesTemplate/list",params:e})}function n(e){return l["a"].request({method:"POST",url:"/expenseBill/refund",data:e})}function o(e){return l["a"].request({method:"GET",url:"/dailyPayment/findEnableTempleDetail",params:e})}function i(e){return l["a"].request({method:"GET",url:"/activityManagement/findEnableTempleDetail",params:e})}function u(e){return l["a"].request({method:"POST",url:"/dailyPaymentPlan/insert",data:e})}function s(e){return l["a"].request({method:"POST",url:"/dailyPaymentPlan/update",data:e})}function c(e){return l["a"].request({method:"POST",url:"/dailyPayment/insert",data:e})}function m(e){return l["a"].request({method:"POST",url:"/dailyPayment/insertOrder",data:e})}function d(e){return l["a"].request({method:"POST",url:"/dailyPayment/push",data:e})}function h(e){return l["a"].request({method:"POST",url:"/advancePayment/refund",data:e})}function p(e){return l["a"].request({method:"POST",url:"/advancePayment/recharge",data:e})}function f(e){return l["a"].request({method:"GET",url:"/chargesTemplate/isEnable",params:e})}function b(e){return l["a"].request({method:"POST",url:"/chargesTemplate/update",data:e})}function F(e){return l["a"].request({method:"POST",url:"/chargesTemplate/insert",data:e})}function y(e){return l["a"].request({method:"POST",url:"/chargesTemplate/delete",data:e})}function w(e){return l["a"].request({method:"POST",url:"/chargesTemplateDetail/insert",data:e})}function g(e){return l["a"].request({method:"GET",url:"/chargesTemplateDetail/findById",params:e})}function S(e){return l["a"].request({method:"GET",url:"/chargesTemplateDetail/isEnable",params:e})}function T(e){return l["a"].request({method:"POST",url:"/chargesTemplateDetail/update",data:e})}function v(e){return l["a"].request({method:"POST",url:"/chargesTemplateDetail/delete",data:e})}function k(e){return l["a"].request({method:"POST",url:"/paper/insert",data:e})}function P(e){return l["a"].request({method:"POST",url:"/paper/recipients",data:e})}function C(e){return l["a"].request({method:"POST",url:"/meterReadingRecord/updateRemakes",data:e})}function _(e){return l["a"].request({method:"POST",url:"/meterReadingRecord/createShareBill",data:e})}function x(e){return l["a"].request({method:"POST",url:"/meterReadingRecord/ShareBillPushDetails",data:e})}function O(e){return l["a"].request({method:"POST",url:"/meterReadingRecord/ShareBillPush",data:e})}},3180:function(e,t,r){"use strict";r.r(t);var l=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"main-content"},[e._m(0),t("div",{staticClass:"content"},[t("div",{},[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.createShareBill(e.table_row)}}},[e._v(" 生成公摊账单 ")]),t("button",{on:{click:function(t){return e.remakes(e.table_row)}}},[e._v(" 添加备注 ")])])])],2),t("el-dialog",{attrs:{title:"添加备注",visible:e.isShow},on:{"update:visible":function(t){e.isShow=t}}},[t("el-form",{attrs:{model:e.form}},[t("el-form-item",{attrs:{label:"备注","label-width":e.formLabelWidth}},[t("el-input",{attrs:{type:"textarea",autocomplete:"off"},model:{value:e.form.remakes,callback:function(t){e.$set(e.form,"remakes",t)},expression:"form.remakes"}})],1)],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:function(t){e.isShow=!1}}},[e._v("取 消")]),t("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.remakesSubmit()}}},[e._v("确 定")])],1)],1)],1),t("Drawer",{attrs:{drawerTitle:"生成公摊账单",drawerVrisible:e.drawer_vrisible},on:{drawerClose:e.DrawerClose}},[t("div",{staticStyle:{padding:"30px"}},[t("FromCard",[t("template",{slot:"title"},[e._v("基本信息")]),[t("VueForm",{ref:"childFroms",attrs:{formObj:e.billForm},scopedSlots:e._u([{key:"rate",fn:function(){return[t("el-input",{staticStyle:{width:"240px"},attrs:{size:"small",placeholder:"请输入"},model:{value:e.billForm.ruleForm.rate,callback:function(t){e.$set(e.billForm.ruleForm,"rate",t)},expression:"billForm.ruleForm.rate"}},[t("i",{staticClass:"metre",staticStyle:{"font-style":"normal"},attrs:{slot:"suffix"},slot:"suffix"},[e._v("%")])])]},proxy:!0},{key:"unitPrice",fn:function(){return[t("el-input",{staticStyle:{width:"240px"},attrs:{size:"small",placeholder:"请输入"},model:{value:e.billForm.ruleForm.unitPrice,callback:function(t){e.$set(e.billForm.ruleForm,"unitPrice",t)},expression:"billForm.ruleForm.unitPrice"}},[t("i",{staticClass:"metre",staticStyle:{"font-style":"normal"},attrs:{slot:"suffix"},slot:"suffix"},[e._v("元/"+e._s(e.billForm.ruleForm.unit))])])]},proxy:!0},{key:"householdConsumption",fn:function(){return[t("el-input",{staticStyle:{width:"240px"},attrs:{size:"small",placeholder:"请输入"},model:{value:e.billForm.ruleForm.householdConsumption,callback:function(t){e.$set(e.billForm.ruleForm,"householdConsumption",t)},expression:"billForm.ruleForm.householdConsumption"}},[t("i",{staticClass:"metre",staticStyle:{"font-style":"normal"},attrs:{slot:"suffix"},slot:"suffix"},[e._v(e._s(e.billForm.ruleForm.unit))])])]},proxy:!0}])})]],2)],1),t("div",{attrs:{slot:"footer"},slot:"footer"},[t("button",{staticClass:"btn-orange",on:{click:function(t){return e.billSubmit()}}},[t("span",[t("i",{staticClass:"el-icon-circle-check"}),e._v("提交")])]),t("button",{staticClass:"btn-gray",on:{click:e.DrawerClose}},[t("span",[e._v("取消")])])])])],1)])])},a=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"main-titel"},[t("span",[e._v("抄表记录")])])}],n=(r("662b"),r("1615")),o={data(){return{dialogFormVisible:!1,form:{remakes:null},formLabelWidth:"120px",isShow:!1,thatId:null,drawerTitle:"",drawer_vrisible:!1,addDate:null,options:[],ids:[],sysOptions:[],loading:!1,table_row:[],activeName:"0",billForm:{ruleForm:{meterReadingRecordId:null,months:null,consumption:null,type:null,unit:null,unitPrice:null,householdConsumption:null,rate:null,sum:null,effectiveTimeStart:null,effectiveTimeEnd:null,remakes:null},form_item:[{type:"span",label:"抄表月份",width:"100%",prop:"months"},{type:"span",label:"总用量",width:"100%",prop:"consumption"},{type:"span",label:"抄表类型",width:"50%",prop:"type"},{type:"span",label:"用量单位",width:"50%",prop:"unit"},{type:"Slot",label:"用量单价",width:"50%",prop:"unitPrice",slotName:"unitPrice"},{type:"Slot",label:"住户用量",placeholder:"请输入",width:"50%",prop:"householdConsumption",slotName:"householdConsumption"},{type:"Input",label:"公共费用",placeholder:"请输入",disabled:!0,width:"50%",prop:"sum"},{type:"Slot",label:"费率",width:"50%",prop:"rate",slotName:"rate"},{type:"DateTime",label:"有效时间开始",placeholder:"请输入",width:"50%",prop:"effectiveTimeStart"},{type:"DateTime",label:"有效时间结束",placeholder:"请输入",width:"50%",prop:"effectiveTimeEnd"},{type:"textarea",label:"备注",placeholder:"请输入",width:"50%",prop:"remakes"}]},config:{thead:[{label:"序号",type:"index",width:"80"},{label:"抄表月份",prop:"months",width:"auto"},{label:"抄表用量",prop:"consumption",width:"auto"},{label:"抄表类型",prop:"type",width:"auto",type:"function",callback:(e,t)=>{switch(e.type){case 1:return"水量";case 2:return"电量";default:break}}},{label:"单位",prop:"unit",width:"auto"},{label:"抄表区间开始",prop:"startDate",width:"auto"},{label:"抄表区间结束",prop:"endDate",width:"auto"},{label:"数据状态",prop:"dataStatus",width:"auto",type:"function",callback:(e,t)=>{switch(e.dataStatus){case 1:return"正常";case 2:return"异常";default:break}}},{label:"账单状态",prop:"billStatus",width:"auto",type:"function",callback:(e,t)=>{switch(e.billStatus){case 1:return"未创建";case 2:return"已创建";default:break}}},{label:"创建时间",prop:"createDate",width:"auto"},{label:"备注",prop:"remakes",width:"auto"}],table_data:[],url:"meterReadingRecordList",search_item:[],data:{pageNum:1,size:10}}}},methods:{check(e){if(1!=e.length)this.$message({type:"error",message:"请选择一条数据查看"});else{console.log(e[0]);let t=e[0];this.$router.push({name:"expenseBillDetailList",params:{data:t}})}},remakes(e){1!=e.length?this.$message({type:"error",message:"请选择一条数据添加备注"}):this.isShow=!0},remakesSubmit(){let e={id:this.table_row[0].id,remakes:this.form.remakes};Object(n["x"])(e).then(e=>{e.status&&(this.$message({message:e.message,type:"success"}),this.$refs.table.loadData(),this.isShow=!1,this.form.remakes=null)})},createShareBill(e){this.billForm.ruleForm.meterReadingRecordId=e[0].id,this.billForm.ruleForm.months=e[0].months,this.billForm.ruleForm.consumption=e[0].consumption,1==e[0].type?this.billForm.ruleForm.type="水量":2==e[0].type?this.billForm.ruleForm.type="电量":this.billForm.ruleForm.type="无",this.billForm.ruleForm.unit=e[0].unit,this.drawer_vrisible=!0},billSubmit(){let e={meterReadingRecordId:this.billForm.ruleForm.meterReadingRecordId,unitPrice:this.billForm.ruleForm.unitPrice,householdConsumption:this.billForm.ruleForm.householdConsumption,rate:this.billForm.ruleForm.rate,effectiveTimeStart:this.billForm.ruleForm.effectiveTimeStart,effectiveTimeEnd:this.billForm.ruleForm.effectiveTimeEnd,remakes:this.billForm.ruleForm.remakes};console.log(e),Object(n["u"])(e).then(e=>{e.status&&(this.$message({type:"success",message:e.message}),this.DrawerClose(),this.$refs.table.requestData())})},DrawerClose(){this.drawer_vrisible=!1,this.$refs.VueForm.reset()},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("请选中需要删除的数据")}},watch:{"billForm.ruleForm.householdConsumption":{handler(e){this.billForm.ruleForm.sum=e*this.billForm.ruleForm.unitPrice}},"billForm.ruleForm.unitPrice":{handler(e){this.billForm.ruleForm.sum=e*this.billForm.ruleForm.householdConsumption}}}},i=o,u=r("2877"),s=Object(u["a"])(i,l,a,!1,null,null,null);t["default"]=s.exports},"662b":function(e,t,r){"use strict";r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return n}));r("f2d9");var l=r("2b74");async function a(e,t){let r=[];const a=await Object(l["b"])(e);if(r.push(...a.tableList),a.pageCount>1)for(let n=1;n<a.pageCount;n++){e.pageNum=n+1;const o=await Object(l["b"])(e);t.ExcelLoading(n,a.pageCount),r.push(...o.tableList)}return r}async function n(e){let t=[];const r=await Object(l["b"])(e);return console.log(r),t.push(...r.tableList),t}}}]);
//# sourceMappingURL=chunk-e33f121a.fa334e0d.js.map