1 line
16 KiB
JavaScript
1 line
16 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4fc9bc78"],{7274:function(t,e,o){"use strict";o.d(e,"f",(function(){return r})),o.d(e,"t",(function(){return n})),o.d(e,"x",(function(){return i})),o.d(e,"g",(function(){return s})),o.d(e,"B",(function(){return u})),o.d(e,"s",(function(){return c})),o.d(e,"c",(function(){return p})),o.d(e,"l",(function(){return l})),o.d(e,"z",(function(){return m})),o.d(e,"A",(function(){return d})),o.d(e,"n",(function(){return f})),o.d(e,"m",(function(){return h})),o.d(e,"j",(function(){return g})),o.d(e,"o",(function(){return y})),o.d(e,"h",(function(){return v})),o.d(e,"i",(function(){return C})),o.d(e,"k",(function(){return b})),o.d(e,"p",(function(){return F})),o.d(e,"y",(function(){return j})),o.d(e,"r",(function(){return _})),o.d(e,"w",(function(){return T})),o.d(e,"a",(function(){return D})),o.d(e,"b",(function(){return x})),o.d(e,"e",(function(){return O})),o.d(e,"d",(function(){return S})),o.d(e,"v",(function(){return P})),o.d(e,"q",(function(){return k})),o.d(e,"u",(function(){return L}));var a=o("b775");function r(t){return Object(a["a"])({url:"/appproject/ProjectConfig/findByUuid",method:"post",data:t})}function n(t){return Object(a["a"])({url:"/appproject/ProjectConfig/updateByProjectUuid",method:"post",data:t})}function i(t){return Object(a["a"])({url:"/appproject/ProjectConfig/scheduled/push/date",method:"post",data:t})}function s(t){return Object(a["a"])({url:"/appproject/OrderInfo/findLiaisonByProjectUuids",method:"post",data:t})}function u(t){return Object(a["a"])({url:"/appproject/ProjectInit/getVisitConfig",method:"post",data:t})}function c(t){return Object(a["a"])({url:"/appproject/ProjectInit/updateBatchVisitConfig",method:"post",data:t})}function p(t){return Object(a["a"])({url:"/appproject/QualityControls/choose",method:"post",data:t})}function l(t){return Object(a["a"])({url:"/appproject/QualityControls/pageList",method:"post",data:t})}function m(t){return Object(a["a"])({url:"/appproject/ChargeReceivable/urge/listFee",method:"post",data:t})}function d(t){return Object(a["a"])({url:"/appproject/CustomerVisit/create/by/urge/model",method:"post",data:t})}function f(t){return Object(a["a"])({url:"/appproject/SalaryConfig/findByProjectUuid",method:"post",data:t})}function h(t){return Object(a["a"])({url:"/appproject/SalaryConfig/edit",method:"post",data:t})}function g(t){return Object(a["a"])({url:"/appproject/MemberSalaryConfig/pageList",method:"post",data:t})}function y(t){return Object(a["a"])({url:"/appproject/MemberSalaryConfig/salaryItemPageList",method:"post",data:t})}function v(t){return Object(a["a"])({url:"/appproject/MemberSalaryConfig/create",method:"post",data:t})}function C(t){return Object(a["a"])({url:"/appproject/MemberSalaryConfig/findById",method:"post",data:t})}function b(t){return Object(a["a"])({url:"/appproject/MemberSalaryConfig/update",method:"post",data:t})}function F(t){return Object(a["a"])({url:"/appproject/ProjectConfig/updateAccessControlByProjectUuid",method:"post",data:t})}function j(t){return Object(a["a"])({url:"/appproject/ProjectConfig/updateTargetValueByProjectUuid",method:"post",data:t})}function _(t){return Object(a["a"])({url:"/appproject/ProjectConfig/updateAutoResetDangerousByProjectUuid",method:"post",data:t})}function T(t){return Object(a["a"])({url:"/appproject/ProjectConfig/updateMeterReadingType",method:"post",data:t})}function D(t){return Object(a["a"])({url:"/appproject/ChargeOrderConfig/pageList",method:"post",data:t})}function x(t){return Object(a["a"])({url:"/appproject/ChargeOrderConfig/update",method:"post",data:t})}function O(t){return Object(a["a"])({url:"/appproject/ProjectReturnStatistics/debtAnalysisDetail",method:"post",data:t})}function S(t){return Object(a["a"])({url:"/appproject/ChargeOrder/createBatch",method:"post",data:t})}function P(t){return Object(a["a"])({url:"/appproject/ProjectConfig/updateEnergyParams",method:"post",data:t})}function k(t){return Object(a["a"])({url:"/appproject/ProjectConfig/updateAutoCharge",method:"post",data:t})}function L(t){return Object(a["a"])({url:"/appproject/ProjectConfig/updateChargeDeduction",method:"post",data:t})}},b1d1:function(t,e,o){"use strict";o("fc8a")},c8fa:function(t,e,o){"use strict";o.r(e);var a=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"app-container bgHeight"},[o("el-card",{staticClass:"box-card",attrs:{shadow:"never"}},[o("el-form",{ref:"setForm",staticClass:"demo-ruleForm",attrs:{model:t.setForm,"label-width":"160px"}},[o("el-divider",{attrs:{"content-position":"left"}},[t._v("账单收费方式配置")]),t._v(" "),o("el-form-item",{attrs:{label:"收费方式",prop:"chargeType"}},[o("el-select",{attrs:{placeholder:"请选择收费方式"},model:{value:t.setForm.chargeType,callback:function(e){t.$set(t.setForm,"chargeType",e)},expression:"setForm.chargeType"}},t._l(t.collectTypeList,(function(t){return o("el-option",{key:t.value,attrs:{label:t.name,value:t.value}})})),1),t._v(" "),o("el-tooltip",{staticClass:"tip",attrs:{effect:"dark",content:"1.按账期收费:收费项不可拆分缴费;2.按收费项收费:收费项可按需缴费;3.按月份顺序收费:必须按照账期顺序缴费,不可跨账期缴费;4.按年份收费:选择某一年某个月份的账期后该年份的其他月份账期默认全部勾选;5.按年收费项收费:选择某一年某个月份的收费项后该年份的其他账期里的收费项默认全部勾选",placement:"top"}},[o("span",{staticClass:"el-icon-info"})])],1),t._v(" "),o("el-form-item",[o("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.confirmSet("pay")}}},[t._v("确认收费方式")])],1),t._v(" "),o("el-divider",{attrs:{"content-position":"left"}},[t._v("账单定期推送配置")]),t._v(" "),o("el-form-item",{attrs:{label:"推送日期",prop:"scheduledPushDate"}},[o("el-select",{attrs:{placeholder:"请选择推送日期",clearable:""},model:{value:t.setForm.scheduledPushDate,callback:function(e){t.$set(t.setForm,"scheduledPushDate",e)},expression:"setForm.scheduledPushDate"}},t._l(28,(function(t){return o("el-option",{key:t,attrs:{label:"每月"+t+"号",value:t}})})),1),t._v(" "),o("el-tooltip",{staticClass:"tip",attrs:{effect:"dark",content:"设置后该项目按照设置的日期早上十点进行公众号推送,主要推送给住户",placement:"top"}},[o("span",{staticClass:"el-icon-info"})])],1),t._v(" "),o("el-form-item",[o("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.confirmSet("push")}}},[t._v("确认推送日期")])],1),t._v(" "),o("el-divider",{attrs:{"content-position":"left"}},[t._v("小程序账单缴费配置")]),t._v(" "),o("el-form-item",{attrs:{label:"缴费配置",prop:"wxminiConfig"}},[o("el-select",{attrs:{placeholder:"请选择收费方式"},model:{value:t.setForm.wxminiConfig,callback:function(e){t.$set(t.setForm,"wxminiConfig",e)},expression:"setForm.wxminiConfig"}},[o("el-option",{attrs:{value:1,label:"显示所有账单"}}),t._v(" "),o("el-option",{attrs:{value:2,label:"根据债务人配置显示"}})],1)],1),t._v(" "),o("el-form-item",[o("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.confirmSet("wxminiConfig")}}},[t._v("确认缴费配置")])],1),t._v(" "),o("el-divider",{attrs:{"content-position":"left"}},[t._v("小程序违约金配置")]),t._v(" "),o("el-form-item",{attrs:{label:"违约金配置",prop:"feeConfig"}},[o("el-select",{attrs:{placeholder:"请选择收费方式"},model:{value:t.setForm.feeConfig,callback:function(e){t.$set(t.setForm,"feeConfig",e)},expression:"setForm.feeConfig"}},[o("el-option",{attrs:{value:1,label:"不显示违约金"}}),t._v(" "),o("el-option",{attrs:{value:2,label:"显示违约金"}})],1)],1),t._v(" "),o("el-form-item",[o("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.confirmSet("feeConfig")}}},[t._v("确认违约金配置")])],1),t._v(" "),o("el-divider",{attrs:{"content-position":"left"}},[t._v("增加支付方式配置")]),t._v(" "),o("el-form-item",{attrs:{label:"已增加支付方式名称"}},[t.setForm.payTypeList&&t.setForm.payTypeList.length>0?o("div",t._l(t.setForm.payTypeList,(function(e){return o("el-tag",{key:e.id,class:e.id==t.activeTag?"selectChange":"",staticStyle:{margin:"0 10px"},on:{click:function(o){return t.clickTag(e)}}},[t._v("\n "+t._s(e.label)+"\n ")])})),1):o("div",[t._v("暂无增加的支付方式")])]),t._v(" "),o("el-form-item",{attrs:{label:t.isEdit?"修改支付方式名称":"增加支付方式名称"}},[o("el-input",{staticClass:"myInput",attrs:{clearable:"",placeholder:"请输入支付方式名称"},model:{value:t.setForm.payTypeContent,callback:function(e){t.$set(t.setForm,"payTypeContent","string"===typeof e?e.trim():e)},expression:"setForm.payTypeContent"}})],1),t._v(" "),o("el-form-item",[0==t.isEdit?o("el-button",{attrs:{type:"primary"},on:{click:t.payTypeConfirm}},[t._v("提交")]):t._e(),t._v(" "),1==t.isEdit?o("el-button",{attrs:{type:"primary"},on:{click:t.save}},[t._v("更新")]):t._e(),t._v(" "),1==t.isEdit?o("el-button",{attrs:{type:"primary"},on:{click:t.cancellation}},[t._v("取消")]):t._e()],1),t._v(" "),o("el-divider",{attrs:{"content-position":"left"}},[t._v("自动计费配置")]),t._v(" "),o("el-form-item",{attrs:{label:"自动发布计费",prop:"autoCharge"}},[o("el-switch",{attrs:{"active-text":"开启","inactive-text":"关闭","active-value":1,"inactive-value":0},model:{value:t.setForm.autoCharge,callback:function(e){t.$set(t.setForm,"autoCharge",e)},expression:"setForm.autoCharge"}})],1),t._v(" "),1==t.setForm.autoCharge?o("el-form-item",{attrs:{label:"自动发布计费日期",prop:"autoChargeDate"}},[o("el-select",{attrs:{placeholder:"请选择自动发布计费日期",clearable:""},model:{value:t.setForm.autoChargeDate,callback:function(e){t.$set(t.setForm,"autoChargeDate",e)},expression:"setForm.autoChargeDate"}},t._l(t.autoChargeDateList,(function(t){return o("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1):t._e(),t._v(" "),1==t.setForm.autoCharge?o("el-form-item",{attrs:{label:"自动抵扣预缴",prop:"autoDeduction"}},[o("el-switch",{attrs:{"active-text":"开启","inactive-text":"关闭","active-value":1,"inactive-value":0},model:{value:t.setForm.autoDeduction,callback:function(e){t.$set(t.setForm,"autoDeduction",e)},expression:"setForm.autoDeduction"}})],1):t._e(),t._v(" "),o("el-form-item",[o("el-button",{attrs:{type:"primary"},on:{click:t.confirmCharge}},[t._v("确认自动计费")]),t._v(" "),o("span",{staticStyle:{"font-size":"12px","margin-left":"30px"}},[t._v("自动计费更新人:"+t._s(t.setForm.autoChargeUpdaterName||"暂无"))]),t._v(" "),o("span",{staticStyle:{"font-size":"12px","margin-left":"10px"}},[t._v("自动计费更新时间:"+t._s(t.setForm.autoChargeUpdateTime||"暂无"))])],1),t._v(" "),o("el-divider",{attrs:{"content-position":"left"}},[t._v("项目预缴余额不足是否抵扣")]),t._v(" "),o("el-form-item",{attrs:{label:"预缴抵扣配置",prop:"portionDeduction"}},[o("el-switch",{attrs:{"active-text":"支持部分抵扣","inactive-text":"不抵扣","active-value":1,"inactive-value":0},model:{value:t.setForm.portionDeduction,callback:function(e){t.$set(t.setForm,"portionDeduction",e)},expression:"setForm.portionDeduction"}})],1),t._v(" "),o("el-form-item",[o("el-button",{attrs:{type:"primary"},on:{click:t.confirmDeduction}},[t._v("确认预缴抵扣配置")]),t._v(" "),o("span",{staticStyle:{"font-size":"12px","margin-left":"30px"}},[t._v("预缴抵扣更新人:"+t._s(t.setForm.deductionUpdaterName||"暂无"))]),t._v(" "),o("span",{staticStyle:{"font-size":"12px","margin-left":"10px"}},[t._v("预缴抵扣更新时间:"+t._s(t.setForm.deductionUpdateTime||"暂无"))])],1)],1)],1)],1)},r=[],n=o("7274"),i={data:function(){return{collectTypeList:[{name:"按账期收费",value:0},{name:"按收费项收费",value:1},{name:"按月份顺序收费",value:2},{name:"按年份收费",value:3},{name:"按年收费项收费",value:4}],setInfo:"",setForm:{chargeType:"",scheduledPushDate:"",wxminiConfig:1,feeConfig:1,payTypeContent:"",payTypeList:[],autoCharge:0,autoDeduction:0,autoChargeDate:null,portionDeduction:1},isEdit:!1,activeTag:"",autoChargeDateList:[]}},created:function(){for(var t=1;t<=28;t++)this.autoChargeDateList.push({value:t,label:"每月".concat(t,"号")});this.autoChargeDateList.push({value:-1,label:"每个月最后一天"}),this.getSet()},methods:{confirmDeduction:function(){var t=this;Object(n["u"])({portionDeduction:this.setForm.portionDeduction,deductionUpdaterName:this.$store.state.user.userInfo.memberName,projectUuid:this.$store.state.community_uuid}).then((function(e){0==e.code&&(t.$message.success("设置成功"),t.getSet())}))},confirmCharge:function(){var t=this;1==this.setForm.autoCharge&&"number"!==typeof this.setForm.autoChargeDate?this.$message.error("请选择自动发布计费日期"):Object(n["q"])({autoCharge:this.setForm.autoCharge,autoDeduction:this.setForm.autoDeduction,autoChargeDate:this.setForm.autoChargeDate,autoChargeUpdaterName:this.$store.state.user.userInfo.memberName,projectUuid:this.$store.state.community_uuid}).then((function(e){0==e.code&&(t.$message.success("设置成功"),t.getSet())}))},cancellation:function(){this.isEdit=!1,this.activeTag="",this.setForm.payTypeContent=""},save:function(){var t=this;this.setForm.payTypeContent?(this.setForm.payTypeList.forEach((function(e){e.value==t.activeTag&&(e.label=t.setForm.payTypeContent)})),this.userPayTypeSet(JSON.stringify(this.setForm.payTypeList)),this.cancellation()):this.$message.error("请输入支付方式名称")},clickTag:function(t){this.isEdit=!0,this.setForm.payTypeContent=t.label,this.activeTag=t.value},getSet:function(){var t=this;Object(n["f"])({uuid:this.$store.state.community_uuid}).then((function(e){e.data&&0==e.code?(t.setInfo=JSON.parse(JSON.stringify(e.data)),t.setForm.chargeType=t.setInfo.chargeType,t.setForm.scheduledPushDate=t.setInfo.scheduledPushDate,t.setForm.wxminiConfig=t.setInfo.wxminiConfig,t.setForm.feeConfig=t.setInfo.feeConfig,t.setForm.payTypeList=[],t.setForm.payTypeContent="",t.setInfo.payTypeList&&(t.setForm.payTypeList=JSON.parse(t.setInfo.payTypeList)),t.setForm.autoCharge=t.setInfo.autoCharge,t.setForm.autoDeduction=t.setInfo.autoDeduction,t.setForm.autoChargeDate=t.setInfo.autoChargeDate,t.setForm.autoChargeUpdaterName=t.setInfo.autoChargeUpdaterName,t.setForm.autoChargeUpdateTime=t.setInfo.autoChargeUpdateTime,t.setForm.deductionUpdaterName=t.setInfo.deductionUpdaterName,t.setForm.deductionUpdateTime=t.setInfo.deductionUpdateTime,t.setForm.portionDeduction=t.setInfo.portionDeduction):t.setInfo=""}))},confirmSet:function(t){this.checkChange(t)&&("pay"==t||"wxminiConfig"==t||"feeConfig"==t||"payType"==t?this.userPayTypeSet():"push"==t&&this.pushDateSet())},userPayTypeSet:function(t){var e=this,o={chargeType:this.setForm.chargeType,projectUuid:this.$store.state.community_uuid,wxminiConfig:this.setForm.wxminiConfig,feeConfig:this.setForm.feeConfig,payTypeList:t};Object(n["t"])(o).then((function(t){0==t.code&&(e.$message({message:"设置成功!",type:"success"}),e.getSet())}))},pushDateSet:function(){var t=this,e={scheduledPushDate:this.setForm.scheduledPushDate,projectUuid:this.$store.state.community_uuid};Object(n["x"])(e).then((function(e){0==e.code&&(t.$message({message:"设置成功!",type:"success"}),t.getSet())}))},payTypeConfirm:function(){if(this.setForm.payTypeContent){this.setForm.payTypeList&&this.setForm.payTypeList.length?this.setForm.payTypeList.push({value:this.setForm.payTypeList[this.setForm.payTypeList.length-1].value+1,label:this.setForm.payTypeContent}):(this.setForm.payTypeList=[],this.setForm.payTypeList.push({value:100,label:this.setForm.payTypeContent}));var t=JSON.stringify(this.setForm.payTypeList);this.userPayTypeSet(t)}else this.$message.error("请输入支付方式名称")},checkChange:function(t){return"pay"==t?""===this.setForm.chargeType?(this.$message("请选择收费方式!"),!1):this.setInfo.chargeType!==this.setForm.chargeType||(this.$message("请选择其他收费方式后提交!"),!1):"push"==t||("wxminiConfig"==t?this.setInfo.wxminiConfig!==this.setForm.wxminiConfig||(this.$message("请选择其他缴费配置!"),!1):"feeConfig"==t?this.setInfo.feeConfig!==this.setForm.feeConfig||(this.$message("请选择其他违约金配置!"),!1):void 0)}}},s=i,u=(o("b1d1"),o("829d")),c=Object(u["a"])(s,a,r,!1,null,"52b036fa",null);e["default"]=c.exports},fc8a:function(t,e,o){}}]); |