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
16 KiB
2 lines
16 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0ecd8ec7"],{1615:function(t,e,s){"use strict";s.d(e,"l",(function(){return i})),s.d(e,"t",(function(){return n})),s.d(e,"n",(function(){return r})),s.d(e,"a",(function(){return o})),s.d(e,"q",(function(){return c})),s.d(e,"r",(function(){return l})),s.d(e,"o",(function(){return u})),s.d(e,"p",(function(){return d})),s.d(e,"s",(function(){return h})),s.d(e,"c",(function(){return m})),s.d(e,"b",(function(){return p})),s.d(e,"k",(function(){return f})),s.d(e,"m",(function(){return b})),s.d(e,"j",(function(){return g})),s.d(e,"d",(function(){return y})),s.d(e,"g",(function(){return v})),s.d(e,"f",(function(){return T})),s.d(e,"h",(function(){return C})),s.d(e,"i",(function(){return F})),s.d(e,"e",(function(){return w})),s.d(e,"y",(function(){return k})),s.d(e,"z",(function(){return P})),s.d(e,"x",(function(){return _})),s.d(e,"u",(function(){return O})),s.d(e,"w",(function(){return x})),s.d(e,"v",(function(){return S}));var a=s("b775");s("2c37");function i(t){return a["a"].request({method:"GET",url:"/chargesTemplate/list",params:t})}function n(t){return a["a"].request({method:"POST",url:"/expenseBill/refund",data:t})}function r(t){return a["a"].request({method:"GET",url:"/dailyPayment/findEnableTempleDetail",params:t})}function o(t){return a["a"].request({method:"GET",url:"/activityManagement/findEnableTempleDetail",params:t})}function c(t){return a["a"].request({method:"POST",url:"/dailyPaymentPlan/insert",data:t})}function l(t){return a["a"].request({method:"POST",url:"/dailyPaymentPlan/update",data:t})}function u(t){return a["a"].request({method:"POST",url:"/dailyPayment/insert",data:t})}function d(t){return a["a"].request({method:"POST",url:"/dailyPayment/insertOrder",data:t})}function h(t){return a["a"].request({method:"POST",url:"/dailyPayment/push",data:t})}function m(t){return a["a"].request({method:"POST",url:"/advancePayment/refund",data:t})}function p(t){return a["a"].request({method:"POST",url:"/advancePayment/recharge",data:t})}function f(t){return a["a"].request({method:"GET",url:"/chargesTemplate/isEnable",params:t})}function b(t){return a["a"].request({method:"POST",url:"/chargesTemplate/update",data:t})}function g(t){return a["a"].request({method:"POST",url:"/chargesTemplate/insert",data:t})}function y(t){return a["a"].request({method:"POST",url:"/chargesTemplate/delete",data:t})}function v(t){return a["a"].request({method:"POST",url:"/chargesTemplateDetail/insert",data:t})}function T(t){return a["a"].request({method:"GET",url:"/chargesTemplateDetail/findById",params:t})}function C(t){return a["a"].request({method:"GET",url:"/chargesTemplateDetail/isEnable",params:t})}function F(t){return a["a"].request({method:"POST",url:"/chargesTemplateDetail/update",data:t})}function w(t){return a["a"].request({method:"POST",url:"/chargesTemplateDetail/delete",data:t})}function k(t){return a["a"].request({method:"POST",url:"/paper/insert",data:t})}function P(t){return a["a"].request({method:"POST",url:"/paper/recipients",data:t})}function _(t){return a["a"].request({method:"POST",url:"/meterReadingRecord/updateRemakes",data:t})}function O(t){return a["a"].request({method:"POST",url:"/meterReadingRecord/createShareBill",data:t})}function x(t){return a["a"].request({method:"POST",url:"/meterReadingRecord/ShareBillPushDetails",data:t})}function S(t){return a["a"].request({method:"POST",url:"/meterReadingRecord/ShareBillPush",data:t})}},4471:function(t,e,s){"use strict";s("6499")},4773:function(t,e,s){"use strict";s.r(e);var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"main-content"},[t._m(0),e("div",{staticClass:"content_box"},[e("div",{staticClass:"left"},[e("div",{staticClass:"left_title"},[t._m(1),e("div",{staticClass:"left_icon"},[e("span",{on:{click:t.addCost}},[e("i",{staticClass:"el-icon-plus"})]),e("span",{on:{click:t.deleteCost}},[e("i",{staticClass:"el-icon-delete"})])])]),e("ul",t._l(t.costList,(function(s,a){return e("li",{key:s.id,class:t.costActive===a?"active":"",on:{click:function(e){return t.tableChange(a,s.id,s.name)}}},[s.editBool?e("el-input",{directives:[{name:"focus",rawName:"v-focus"}],staticStyle:{flex:"1"},attrs:{size:"small"},on:{blur:e=>t.editInputBlur(e,s.name,s.id,a),focus:e=>t.editInputFocus(e,s.name)},model:{value:s.name,callback:function(e){t.$set(s,"name",e)},expression:"item.name"}}):e("span",[t._v(t._s(s.name))]),e("span",[e("i",{staticClass:"el-icon-edit",on:{click:function(e){return e.stopPropagation(),t.editType(a)}}})])],1)})),0)]),e("div",{staticClass:"right"},[e("div",{staticClass:"right_title"},[e("span",{staticStyle:{"padding-right":"18px"}},[t._v("是否启用")]),e("el-switch",{staticClass:"switchStyle",attrs:{value:t.IsEnable,"active-text":"开","inactive-text":"关","active-color":"rgba(251, 71, 2, 1)"},on:{change:t.switchChange}})],1),e("div",{staticClass:"right_input"},[e("div",{staticClass:"content-btn"},[e("el-input",{staticStyle:{width:"240px","padding-right":"24px"},attrs:{placeholder:"请输入收费项目",size:"small","prefix-icon":"el-icon-search"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.search()}},model:{value:t.config.data.name,callback:function(e){t.$set(t.config.data,"name",e)},expression:"config.data.name"}}),e("el-button",{staticClass:"init-button",on:{click:function(e){return t.add()}}},[t._v("添加费用")]),e("el-button",{staticClass:"init-button",on:{click:function(e){return t.edit(t.table_row)}}},[t._v("编辑费用")]),e("el-button",{staticClass:"init-button",on:{click:function(e){return t.del(t.table_row)}}},[t._v("删除费用")]),e("div",{staticStyle:{"margin-left":"16px",display:"inline-block"}},[e("download-excel",{staticClass:"export-excel-wrapper",attrs:{fetch:t.fetchData,fields:t.json_fields,"before-finish":t.finishDownload,name:"收费标准管理.xls"}},[e("el-button",{staticClass:"init-button",attrs:{size:"small"}},[t._v("导出Excel")])],1)],1)],1)]),e("div",{staticClass:"right_table"},[e("el-button",{staticStyle:{"margin-left":"10px"},attrs:{size:"small",type:"primary"},on:{click:function(e){return t.enable(t.table_row)}}},[t._v("物业收费标准明细启用/禁用")]),e("VueTable",{ref:"table",attrs:{config:t.config},on:{tableCheck:t.tableCheck}})],1)]),e("Drawer",{attrs:{drawerTitle:t.costTitle,drawerVrisible:t.cost_vrisible},on:{drawerClose:t.costClose}},[e("div",{staticStyle:{padding:"30px"}},[e("FromCard",[e("template",{slot:"title"},[t._v("基本信息")]),[e("VueForm",{ref:"costVueForm",attrs:{formObj:t.costForm},on:{ruleSuccess:t.costRuleSubmit}})]],2)],1),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("button",{staticClass:"btn-orange",on:{click:function(e){return t.costSubmit()}}},[e("span",[e("i",{staticClass:"el-icon-circle-check"}),t._v("提交")])]),e("button",{staticClass:"btn-gray",on:{click:t.costClose}},[e("span",[t._v("取消")])])])])],1)])},i=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"main-titel"},[e("span",[t._v("收费标准管理")])])},function(){var t=this,e=t._self._c;return e("div",[e("span",[t._v("费用版本名称")])])}],n=s("1615"),r=s("662b"),o={data(){return{cost_vrisible:!1,costTitle:"新增费用项目",costList:[],typeListName:"",costActive:0,costForm:{ruleForm:{typeName:null,name:null,unitPrice:null,type:null,marker:null,otherFee:null},form_item:[{type:"Input",label:"费用版本",placeholder:"请输入",disabled:!0,width:"100%",prop:"typeName"},{type:"Select",label:"费用类型",placeholder:"请输入",options:[{label:"物业管理费",value:1},{label:"维修费",value:2},{label:"装修押金",value:3},{label:"活动报名费",value:4},{label:"日常费用",value:5},{label:"停车费",value:6},{label:"有偿服务费",value:7}],width:"100%",prop:"marker"},{type:"Input",label:"费用项目名称",placeholder:"请输入",width:"100%",prop:"name"},{type:"Input",label:"单价",placeholder:"请输入",width:"100%",prop:"unitPrice"},{type:"Select",label:"单位",placeholder:"请选择单位",prop:"type",width:"100%",options:[{label:"元/月 平方米",value:1},{label:"元/ 立方米",value:2},{label:"元/ 次",value:3}]},{type:"Input",label:"附加费用",placeholder:"请输入",prop:"otherFee",width:"100%"}],rules:{typeName:[{required:!0}],marker:[{required:!0,message:"请输入费用项目名称",trigger:"blur"}],name:[{required:!0,message:"请选择费用类型",trigger:"change"}],unitPrice:[{required:!0,message:"请输入单价",trigger:"blur"}],type:[{required:!0,message:"请选择单位",trigger:"change"}]}},IsEnable:!1,input2:"",config:{data:{pageNum:1,size:10,chargesTemplateId:null,name:null},url:"chargesTemplateDetailList",thead:[{label:"序号",type:"index",width:"80"},{label:"费用名称",prop:"name",width:"auto"},{label:"计费单价/单位",prop:"type",width:"auto",type:"function",callback(t,e){switch(t.type){case 1:return t.unitPrice+"元/月 平方米";case 2:return t.unitPrice+"元/ 立方米";case 3:return t.unitPrice+"元/ 次"}}},{label:"费用类型名称",prop:"marker",width:"auto",type:"function",callback(t,e){switch(t.marker){case 1:return"物业管理费";case 2:return"维修费";case 3:return"装修押金";case 4:return"活动报名费";case 5:return"日常费用";case 6:return"停车费";case 7:return"有偿服务费";default:break}}},{label:"物业收费标准明细状态",prop:"status",width:"auto",type:"function",callback(t,e){switch(t.status){case 0:return"未启用";case 1:return"启用"}}},{label:"创建人",prop:"createName",width:"auto"},{label:"更新日期",prop:"modifyDate",width:"auto"}],table_data:[],loading:!0},json_fields:{"费用名称":"name","计费单价/单位":"unitPrice","费用类型名称":{field:"marker",callback:t=>{switch(t){case 1:return"物业管理费";case 2:return"维修费";case 3:return"装修押金";case 4:return"活动报名费";case 5:return"日常费用";case 6:return"停车费";case 7:return"有偿服务费";default:break}}},"物业收费标准明细状态":{field:"status",callback:t=>{switch(t){case 0:return"未启用";case 1:return"启用"}}},"附加/固定费用":"otherFee","创建人":"createName","更新日期":"modifyDate"},table_row:[]}},directives:{focus:{inserted:function(t){t.querySelector("input").focus()}}},mounted(){this.getCostType()},methods:{async fetchData(){let t={url:"chargesTemplateDetailList",data:{pageNum:1,size:100,chargesTemplateId:this.costList[this.costActive].id}};const e=await Object(r["a"])(t,this);return e},ExcelLoading(t,e){const s=this.$loading({lock:!0,text:"正在导出Excel"+t,spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});s.text=`正在导出Excel ${t}/${e}`,console.log(s.text)},finishDownload(){const t=this.$loading();t.close()},enable(t){1!=t.length?this.$message({type:"error",message:"只能操作一条数据"}):Object(n["h"])({id:t[0].id}).then(t=>{this.$message({type:"success",message:t.message}),this.GetTableData(this.costList[this.costActive].id)}),this.GetTableData(this.costList[this.costActive].id)},switchChange(t){this.$confirm("是否确认修改该版本禁启用","禁启用提示",{confirmButtonText:"确定",cancelButtonText:"取消",confirmButtonClass:"confirmButton",cancelButtonClass:"cancelButton"}).then(()=>{Object(n["k"])({id:this.costList[this.costActive].id}).then(t=>{console.log(t),t.status&&(this.$message({type:"success",message:t.message}),this.IsEnable=!this.IsEnable,this.getCostType())})}).catch(t=>{})},search(){this.GetTableData(this.costList[this.costActive].id)},getCostType(){Object(n["l"])().then(t=>{console.log(t),this.costList=t,this.costList.map(t=>{this.$set(t,"editBool",!1)}),this.costList[this.costActive].status?this.IsEnable=!0:this.IsEnable=!1,this.GetTableData(this.costList[this.costActive].id)})},editType(t){this.$set(this.costList[t],"editBool",!0)},editInputFocus(t,e){this.typeListName=e},editInputBlur(t,e,s,a){if(this.$set(this.costList[a],"editBool",!1),this.typeListName===e)return;if(""===e)return this.costList[a].name=this.typeListName,void this.$message.error("内容不能为空");let i={id:s,name:e};Object(n["m"])(i).then(t=>{console.log(t)})},tableChange(t,e,s){this.costActive=t,this.getCostType()},GetTableData(t){this.config.data.chargesTemplateId=t,this.$refs.table.loadData()()},deleteCost(){this.$confirm("是否确认删除费用版本?删除不可恢复","费用版本删除",{confirmButtonText:"确定",cancelButtonText:"取消",confirmButtonClass:"confirmButton",cancelButtonClass:"cancelButton"}).then(()=>{let t={ids:[this.costList[this.costActive].id]};console.log(t),Object(n["d"])(t).then(t=>{t.status&&(this.$message({type:"success",message:t.message}),this.costActive=0,this.getCostType())})}).catch(t=>{})},addCost(){this.$prompt("请输入费用版本名称","添加费用版本",{confirmButtonText:"确定",cancelButtonText:"取消"}).then(({value:t})=>{if(!t)return;let e={name:t};Object(n["j"])(e).then(t=>{t.status&&(this.$message({type:"success",message:t.message}),this.getCostType())})}).catch(()=>{this.$message({type:"info",message:"取消输入"})})},add(){this.cost_vrisible=!0,this.costForm.ruleForm.typeName=this.costList[this.costActive].name,console.log(this.costForm.ruleForm)},edit(t){if(t.length){if(t.length>1)return void this.$message.error("不能批量编辑");let e={id:t[0].id};Object(n["f"])(e).then(t=>{console.log(t),this.costForm.ruleForm.typeName=this.costList[this.costActive].name,this.costEditId=t.byId.id,this.costForm.ruleForm.marker=t.byId.marker,this.costForm.ruleForm.name=t.byId.name,this.costForm.ruleForm.otherFee=t.byId.otherFee,this.costForm.ruleForm.type=t.byId.type,this.costForm.ruleForm.unitPrice=t.byId.unitPrice,this.cost_vrisible=!0})}else this.$message.error("请选择需要编辑的数据")},costRuleSubmit(){let t={chargesTemplateId:this.costList[this.costActive].id,name:this.costForm.ruleForm.name,unitPrice:this.costForm.ruleForm.unitPrice,marker:1,type:parseInt(this.costForm.ruleForm.type),otherFee:this.costForm.ruleForm.otherFee,additionalCostList:[{cost:1,name:"电器费用"}]};this.costEditId?(t.id=this.costEditId,Object(n["i"])(t).then(t=>{t.status&&this.$message({type:"success",message:t.message}),this.costClose(),this.GetTableData(this.costList[this.costActive].id)})):Object(n["g"])(t).then(t=>{this.$message({type:"success",message:t.message}),this.costClose(),this.GetTableData(this.costList[this.costActive].id)})},costSubmit(){this.$refs.costVueForm.submitForm()},costClose(){this.cost_vrisible=!1,this.$refs.costVueForm.reset(),this.costForm.ruleForm.typeName=null,this.costEditId=null,this.costForm.ruleForm.marker=null,this.costForm.ruleForm.name=null,this.costForm.ruleForm.otherFee=null,this.costForm.ruleForm.type=null,this.costForm.ruleForm.unitPrice=null},del(t){if(t.length){let t=[];for(let e=0;e<this.table_row.length;e++)t.push(this.table_row[e].id);this.$confirm("是否确认删除?删除不可恢复","删除",{confirmButtonText:"确定",cancelButtonText:"取消",confirmButtonClass:"confirmButton",cancelButtonClass:"cancelButton"}).then(()=>{let e={ids:t};Object(n["e"])(e).then(t=>{t.status&&(this.$message({type:"success",message:t.message}),this.GetTableData(this.costList[this.costActive].id))})}).catch(t=>{})}else this.$message.error("请选中需要删除的数据")},tableCheck(t){this.table_row=t}}},c=o,l=(s("4471"),s("2877")),u=Object(l["a"])(c,a,i,!1,null,"420fd7ed",null);e["default"]=u.exports},6499:function(t,e,s){},"662b":function(t,e,s){"use strict";s.d(e,"a",(function(){return i})),s.d(e,"b",(function(){return n}));s("f2d9");var a=s("2b74");async function i(t,e){let s=[];const i=await Object(a["b"])(t);if(s.push(...i.tableList),i.pageCount>1)for(let n=1;n<i.pageCount;n++){t.pageNum=n+1;const r=await Object(a["b"])(t);e.ExcelLoading(n,i.pageCount),s.push(...r.tableList)}return s}async function n(t){let e=[];const s=await Object(a["b"])(t);return console.log(s),e.push(...s.tableList),e}}}]);
|
|
//# sourceMappingURL=chunk-0ecd8ec7.19b6b933.js.map
|