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