(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["chunk-52bea6b3"], { "0ab1": function(e, t, a) { "use strict"; a("93c1"); }, "27cf": function(e, t, a) { "use strict"; a("8ee85"); }, 3702: function(e, t, a) { "use strict"; var o = function() { var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2; return a2("div", { staticClass: "app-container" }, [a2("div", { staticClass: "bgHeight" }, [a2("el-form", { ref: "query", attrs: { model: e2.query, "label-width": "140px" } }, [a2("el-form-item", { attrs: { label: "催费通知单模板配置", prop: "configName" } }, [a2("el-radio-group", { model: { value: e2.query.paymentNoticeType, callback: function(t3) { e2.$set(e2.query, "paymentNoticeType", t3); }, expression: "query.paymentNoticeType" } }, [a2("el-radio", { attrs: { label: 0 } }, [e2._v("\n 旧版 ["), a2("el-button", { attrs: { type: "text" }, on: { click: function(t3) { return e2.viewerClick(e2.oldImg); } } }, [e2._v("预览")]), e2._v("]\n ")], 1), e2._v(" "), a2("el-radio", { attrs: { label: 1 } }, [e2._v("\n 新版 ["), a2("el-button", { attrs: { type: "text" }, on: { click: function(t3) { return e2.viewerClick(e2.newImg); } } }, [e2._v("预览")]), e2._v("]\n ")], 1)], 1), e2._v(" "), a2("div", { staticClass: "setTip" }, [a2("i", { staticClass: "el-icon-info" }), e2._v("不配置或默认配置为旧版\n ")])], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "催费通知单物业留言", prop: "urgent" } }, [a2("el-input", { staticStyle: { width: "450px" }, attrs: { clearable: "", placeholder: "请输入催费通知单物业留言" }, model: { value: e2.query.urgent, callback: function(t3) { e2.$set(e2.query, "urgent", t3); }, expression: "query.urgent" } })], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "催费通知单说明", prop: "urgentRemark" } }, [a2("el-input", { staticStyle: { width: "450px" }, attrs: { clearable: "", placeholder: "请输入催费通知单说明" }, model: { value: e2.query.urgentRemark, callback: function(t3) { e2.$set(e2.query, "urgentRemark", t3); }, expression: "query.urgentRemark" } })], 1), e2._v(" "), a2("el-form-item", [a2("el-button", { attrs: { type: "primary", loading: e2.load }, on: { click: e2.setType } }, [e2._v("保存")])], 1)], 1)], 1), e2._v(" "), e2.showViewer ? a2("el-image-viewer", { attrs: { "on-close": e2.closeViewer, "url-list": e2.srcList } }) : e2._e()], 1); }, r = [], i = a("5aa3"), n = a("d813"); function l(e2) { return l = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e3) { return typeof e3; } : function(e3) { return e3 && "function" == typeof Symbol && e3.constructor === Symbol && e3 !== Symbol.prototype ? "symbol" : typeof e3; }, l(e2); } function s(e2, t2) { var a2 = Object.keys(e2); if (Object.getOwnPropertySymbols) { var o2 = Object.getOwnPropertySymbols(e2); t2 && (o2 = o2.filter((function(t3) { return Object.getOwnPropertyDescriptor(e2, t3).enumerable; }))), a2.push.apply(a2, o2); } return a2; } function c(e2) { for (var t2 = 1; t2 < arguments.length; t2++) { var a2 = null != arguments[t2] ? arguments[t2] : {}; t2 % 2 ? s(Object(a2), true).forEach((function(t3) { u(e2, t3, a2[t3]); })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e2, Object.getOwnPropertyDescriptors(a2)) : s(Object(a2)).forEach((function(t3) { Object.defineProperty(e2, t3, Object.getOwnPropertyDescriptor(a2, t3)); })); } return e2; } function u(e2, t2, a2) { return (t2 = d(t2)) in e2 ? Object.defineProperty(e2, t2, { value: a2, enumerable: true, configurable: true, writable: true }) : e2[t2] = a2, e2; } function d(e2) { var t2 = p(e2, "string"); return "symbol" == l(t2) ? t2 : t2 + ""; } function p(e2, t2) { if ("object" != l(e2) || !e2) return e2; var a2 = e2[Symbol.toPrimitive]; if (void 0 !== a2) { var o2 = a2.call(e2, t2 || "default"); if ("object" != l(o2)) return o2; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === t2 ? String : Number)(e2); } var m = { components: { ElImageViewer: i["a"] }, data: function() { return { showViewer: false, srcList: [], query: { paymentNoticeType: 0, urgent: "", urgentRemark: "" }, load: false, typeInfo: "", newImg: "http://sqy-oss-test.oss-cn-guangzhou.aliyuncs.com/candidateFile_list/20240516/candidate_fileList1715820100079_8e42cad9.png", oldImg: "http://sqy-oss-test.oss-cn-guangzhou.aliyuncs.com/candidateFile_list/20240514/candidate_fileList1715678924375_121fd6be.png" }; }, mounted: function() { this.getType(); }, methods: { getType: function() { var e2 = this; Object(n["i"])({ projectUuid: this.$store.state.community_uuid }).then((function(t2) { 0 == t2.code && (e2.typeInfo = JSON.parse(JSON.stringify(t2.data)), e2.query.paymentNoticeType = t2.data.paymentNoticeType, e2.query.urgent = t2.data.urgent, e2.query.urgentRemark = t2.data.urgentRemark); })); }, setType: function() { var e2 = this; this.load = true, Object(n["j"])(c(c({}, this.typeInfo), {}, { paymentNoticeType: this.query.paymentNoticeType, urgent: this.query.urgent, urgentRemark: this.query.urgentRemark })).then((function(t2) { 0 == t2.code ? (e2.$message({ message: "操作成功!", type: "success" }), e2.getType(), e2.load = false) : (e2.getType(), e2.load = false); })).catch((function() { e2.getType(), e2.load = false; })), this.$emit("updateBills"); }, viewerClick: function(e2) { this.srcList = [], this.srcList.push(e2), this.showViewer = true; }, closeViewer: function() { this.showViewer = false; } } }, f = m, v = (a("0ab1"), a("829d")), h = Object(v["a"])(f, o, r, false, null, "50d501c8", null); t["a"] = h.exports; }, "8ee85": function(e, t, a) { }, "93c1": function(e, t, a) { }, "9c76": function(e, t, a) { "use strict"; a("f7b2"); }, ccf8: function(e, t, a) { }, cfef: function(e, t, a) { "use strict"; a("ccf8"); }, d813: function(e, t, a) { "use strict"; a.d(t, "f", (function() { return r; })), a.d(t, "c", (function() { return i; })), a.d(t, "l", (function() { return n; })), a.d(t, "a", (function() { return l; })), a.d(t, "g", (function() { return s; })), a.d(t, "h", (function() { return c; })), a.d(t, "e", (function() { return u; })), a.d(t, "b", (function() { return d; })), a.d(t, "k", (function() { return p; })), a.d(t, "d", (function() { return m; })), a.d(t, "i", (function() { return f; })), a.d(t, "j", (function() { return v; })); var o = a("b775"); function r(e2) { return Object(o["a"])({ url: "/appproject/InvoiceConfig/page", method: "post", data: e2 }); } function i(e2) { return Object(o["a"])({ url: "/appproject/InvoiceConfig/create", method: "post", data: e2 }); } function n(e2) { return Object(o["a"])({ url: "/appproject/InvoiceConfig/update", method: "post", data: e2 }); } function l(e2) { return Object(o["a"])({ url: "/appproject/TaxCode/page", method: "post", data: e2 }); } function s(e2) { return Object(o["a"])({ url: "/appproject/InvoiceRecord/page", method: "post", data: e2 }); } function c(e2) { return Object(o["a"])({ url: "/appproject/supplier/listForInvoice", method: "post", data: e2 }); } function u(e2) { return Object(o["a"])({ url: "/appproject/HouseInvoiceConfig/page", method: "post", data: e2 }); } function d(e2) { return Object(o["a"])({ url: "/appproject/HouseInvoiceConfig/add", method: "post", data: e2 }); } function p(e2) { return Object(o["a"])({ url: "/appproject/HouseInvoiceConfig/update", method: "post", data: e2 }); } function m(e2) { return Object(o["a"])({ url: "/appproject/HouseInvoiceConfig/delete", method: "post", data: e2 }); } function f(e2) { return Object(o["a"])({ url: "/appproject/InvoiceConfig/getReceiptType", method: "post", data: e2 }); } function v(e2) { return Object(o["a"])({ url: "/appproject/InvoiceConfig/setReceiptType", method: "post", data: e2 }); } }, ec86: function(e, t, a) { "use strict"; a.r(t); var o = function() { var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2; return a2("div", { staticClass: "app-container bgHeight" }, [a2("el-tabs", { staticClass: "thirdTabs", attrs: { value: e2.activeName, type: "border-card" }, on: { "tab-click": e2.handleClick } }, [a2("el-tab-pane", { attrs: { label: "发票配置", name: "invoice" } }, [a2("invoice")], 1), e2._v(" "), a2("el-tab-pane", { attrs: { label: "电子收据配置", name: "bills" } }, [a2("bills", { ref: "bills", on: { updateTemplate: e2.updateTemplate } })], 1), e2._v(" "), a2("el-tab-pane", { attrs: { label: "催费通知单模板配置", name: "Template" } }, [a2("Template", { ref: "Template", on: { updateBills: e2.updateBills } })], 1)], 1)], 1); }, r = [], i = function() { var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2; return a2("div", { staticClass: "app-container" }, [a2("div", { staticClass: "bgHeight" }, [a2("div", { ref: "box", staticClass: "searchStys transition_dom" }, [a2("el-form", { ref: "queryInfo", attrs: { model: e2.queryInfo } }, [a2("div", { ref: "form_box", staticClass: "searchBar" }, [a2("div", { staticClass: "searchInput" }, [a2("el-row", { attrs: { gutter: 20 } }, [a2("el-col", { attrs: { span: 6 } }, [a2("el-form-item", { attrs: { prop: "configName" } }, [a2("el-input", { attrs: { clearable: "", placeholder: "发票费用项目名称" }, model: { value: e2.queryInfo.configName, callback: function(t3) { e2.$set(e2.queryInfo, "configName", t3); }, expression: "queryInfo.configName" } })], 1)], 1), e2._v(" "), a2("el-col", { attrs: { span: 6 } }, [a2("el-form-item", { attrs: { prop: "taxRate" } }, [a2("el-input", { attrs: { clearable: "", placeholder: "税率", max: 25, label: "请输入数值" }, model: { value: e2.queryInfo.taxRate, callback: function(t3) { e2.$set(e2.queryInfo, "taxRate", t3); }, expression: "queryInfo.taxRate" } })], 1)], 1), e2._v(" "), a2("el-col", { attrs: { span: 6 } }, [a2("el-form-item", { attrs: { prop: "invoiceType" } }, [a2("el-select", { attrs: { placeholder: "请选择发票类型", clearable: "" }, model: { value: e2.queryInfo.invoiceType, callback: function(t3) { e2.$set(e2.queryInfo, "invoiceType", t3); }, expression: "queryInfo.invoiceType" } }, e2._l(e2.invoiceType, (function(e3, t3) { return a2("el-option", { key: t3, attrs: { label: e3.label, value: e3.value } }); })), 1)], 1)], 1), e2._v(" "), a2("el-col", { attrs: { span: 6 } }, [a2("el-form-item", { attrs: { prop: "status" } }, [a2("el-select", { attrs: { placeholder: "请选择状态", clearable: "" }, model: { value: e2.queryInfo.status, callback: function(t3) { e2.$set(e2.queryInfo, "status", t3); }, expression: "queryInfo.status" } }, e2._l(e2.invoiceStatusArr, (function(e3, t3) { return a2("el-option", { key: t3, attrs: { label: e3.label, value: e3.value } }); })), 1)], 1)], 1)], 1)], 1), e2._v(" "), a2("div", { staticClass: "searchBtn" }, [a2("el-form-item", [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: function(t3) { return e2.resetForm("queryInfo"); } } }, [e2._v("重置")]), e2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: e2.getList } }, [e2._v("查询")])], 1)], 1)])])], 1), e2._v(" "), a2("el-card", { staticClass: "box-card", attrs: { shadow: "never" } }, [a2("div", { staticClass: "planLst", attrs: { slot: "header" }, slot: "header" }, [a2("span", { staticClass: "planTitle" }, [e2._v("开票配置列表")]), e2._v(" "), a2("div", [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary", icon: "el-icon-plus" }, on: { click: e2.addItem } }, [e2._v("新增")])], 1)]), e2._v(" "), a2("el-table", { directives: [{ name: "loading", rawName: "v-loading", value: e2.listLoading, expression: "listLoading" }], attrs: { border: "", data: e2.listData, "header-cell-style": e2.headClass } }, [a2("el-table-column", { attrs: { type: "index", label: "#", align: "center", "min-width": "50", fixed: "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [a2("span", [e2._v(e2._s(t3.$index + (e2.queryInfo.pageNumber - 1) * e2.queryInfo.pageSize + 1))])]; } }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "150", label: "项目名称", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v(e2._s(t3.row.configName || "-"))]; } }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "200", label: "税收分类编码", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v(e2._s(t3.row.taxCode || "-"))]; } }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "80", label: "税率", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v(e2._s(t3.row.taxRate || "-") + "%")]; } }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "120", label: "发票类型", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v(e2._s(e2._f("getItemType")(t3.row.invoiceType, e2.invoiceType)))]; } }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "200", label: "销售方", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v(e2._s(t3.row.sellerName || "-"))]; } }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "220", label: "统一社会信用代码", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v(e2._s(t3.row.sellerTaxNo || "-"))]; } }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "100", label: "创建人", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v(e2._s(t3.row.creatorName || "-"))]; } }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "200", label: "创建时间", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v(e2._s(t3.row.createdTime || "-"))]; } }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "80", label: "状态", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v("\n " + e2._s(e2._f("getItemType")(t3.row.status, e2.invoiceStatusArr)) + "\n ")]; } }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "操作", "min-width": "80", fixed: "right" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { size: "mini", type: "text" }, on: { click: function(a3) { return e2.editItem(t3.row); } } }, [e2._v("编辑")])]; } }]) })], 1), e2._v(" "), a2("div", { staticClass: "pagination-container", staticStyle: { "margin-top": "10px", "text-align": "right" } }, [a2("el-pagination", { attrs: { background: "", "page-sizes": [10, 30, 50, 100, 200], "page-size": 1, layout: "total, sizes, prev, pager, next, jumper", total: e2.total }, on: { "size-change": e2.handleSizeChange, "current-change": e2.handleCurrentChange } })], 1)], 1)], 1), e2._v(" "), e2.addDialog ? a2("el-dialog", { staticClass: "dialogHead", attrs: { title: e2.title, "show-close": false, "close-on-click-modal": false, "close-on-press-escape": false, visible: e2.addDialog, width: "30%", height: "300px" }, on: { closed: function(t3) { return e2.closeDialog("categoryFrom"); }, "update:visible": function(t3) { e2.addDialog = t3; } } }, [a2("el-form", { ref: "categoryFrom", attrs: { model: e2.addForm, rules: e2.addRules, "label-width": "150px" } }, [a2("el-form-item", { attrs: { label: "发票费用项目名称", prop: "configName" } }, [a2("el-autocomplete", { attrs: { "fetch-suggestions": e2.querySearchAsync, placeholder: "发票费用项目名称", clearable: "" }, on: { select: e2.handleconfigNameSelect }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { var a3 = t3.item; return [e2._v("\n " + e2._s(a3.name) + "\n ")]; } }], null, false, 2698774168), model: { value: e2.addForm.configName, callback: function(t3) { e2.$set(e2.addForm, "configName", t3); }, expression: "addForm.configName" } }), e2._v(" "), a2("el-tooltip", { staticClass: "error-tooltip", staticStyle: { "margin-left": "10px" }, attrs: { content: "发票费用名称按照实际开票的税收分类编码进行选择即可", effect: "dark", placement: "top" } }, [a2("i", { staticClass: "el-icon-warning" })])], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "税收分类编码:", prop: "taxCode" } }, [a2("el-input", { attrs: { placeholder: "税收分类编码", disabled: true }, model: { value: e2.addForm.taxCode, callback: function(t3) { e2.$set(e2.addForm, "taxCode", "string" === typeof t3 ? t3.trim() : t3); }, expression: "addForm.taxCode" } })], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "税率:", prop: "taxRate" } }, [a2("div", { staticClass: "taxRate-box" }, [a2("el-input-number", { attrs: { precision: 0, min: 0, max: 25, placeholder: "请输入数值", clearable: "" }, model: { value: e2.addForm.taxRate, callback: function(t3) { e2.$set(e2.addForm, "taxRate", "string" === typeof t3 ? t3.trim() : t3); }, expression: "addForm.taxRate" } }), e2._v(" "), a2("div", { staticClass: "per" }, [e2._v("%")])], 1)]), e2._v(" "), a2("el-form-item", { attrs: { label: "发票类型:", prop: "showInvoiceType" } }, [a2("el-select", { attrs: { multiple: "", placeholder: "请选择发票类型", clearable: "" }, model: { value: e2.addForm.showInvoiceType, callback: function(t3) { e2.$set(e2.addForm, "showInvoiceType", t3); }, expression: "addForm.showInvoiceType" } }, e2._l(e2.invoiceType, (function(e3, t3) { return a2("el-option", { key: t3, attrs: { label: e3.label, value: e3.value } }); })), 1)], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "销售方信息:", prop: "sellerName" } }, [a2("el-autocomplete", { attrs: { "fetch-suggestions": e2.querySearchAsync2, placeholder: "请选择销售方信息", clearable: "" }, on: { select: e2.handleconfigNameSelect2 }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { var a3 = t3.item; return [e2._v("\n " + e2._s(a3.sellerName) + "\n ")]; } }], null, false, 2660679289), model: { value: e2.addForm.sellerName, callback: function(t3) { e2.$set(e2.addForm, "sellerName", t3); }, expression: "addForm.sellerName" } })], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "统一社会信用代码:", prop: "sellerTaxNo" } }, [a2("el-input", { attrs: { placeholder: "", disabled: true }, model: { value: e2.addForm.sellerTaxNo, callback: function(t3) { e2.$set(e2.addForm, "sellerTaxNo", t3); }, expression: "addForm.sellerTaxNo" } })], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "说明:", prop: "explain" } }, [a2("el-input", { attrs: { type: "textarea", autosize: { minRows: 4 }, disabled: true }, model: { value: e2.addForm.explain, callback: function(t3) { e2.$set(e2.addForm, "explain", t3); }, expression: "addForm.explain" } })], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "启用:", prop: "status" } }, [a2("el-switch", { attrs: { "active-value": 0, "inactive-value": 1 }, model: { value: e2.addForm.status, callback: function(t3) { e2.$set(e2.addForm, "status", t3); }, expression: "addForm.status" } })], 1), e2._v(" "), a2("el-form-item", { staticStyle: { "text-align": "center" } }, [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: function(t3) { return e2.cancelFrom("categoryFrom"); } } }, [e2._v("关闭")]), e2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: function(t3) { return e2.saveInfoList("categoryFrom"); } } }, [e2._v("提交")])], 1)], 1)], 1) : e2._e(), e2._v(" "), e2.editDialog ? a2("el-dialog", { staticClass: "dialogHead", attrs: { title: e2.title, "show-close": false, "close-on-click-modal": false, "close-on-press-escape": false, visible: e2.editDialog, width: "30%", height: "300px" }, on: { closed: function(t3) { return e2.closeDialog("categoryFrom"); }, "update:visible": function(t3) { e2.editDialog = t3; } } }, [a2("el-form", { ref: "categoryFrom", attrs: { model: e2.editForm, rules: e2.editRules, "label-width": "150px" } }, [a2("el-form-item", { attrs: { label: "发票费用项目名称", prop: "configName" } }, [a2("el-autocomplete", { attrs: { "fetch-suggestions": e2.querySearchAsync, placeholder: "发票费用项目名称", disabled: true }, on: { select: e2.handleconfigNameSelect }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { var a3 = t3.item; return [e2._v("\n " + e2._s(a3.name) + "\n ")]; } }], null, false, 2698774168), model: { value: e2.editForm.configName, callback: function(t3) { e2.$set(e2.editForm, "configName", t3); }, expression: "editForm.configName" } })], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "税收分类编码:", prop: "taxCode" } }, [a2("el-input", { attrs: { placeholder: "税收分类编码", disabled: true }, model: { value: e2.editForm.taxCode, callback: function(t3) { e2.$set(e2.editForm, "taxCode", "string" === typeof t3 ? t3.trim() : t3); }, expression: "editForm.taxCode" } })], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "税率:", prop: "taxRate" } }, [a2("div", { staticClass: "taxRate-box" }, [a2("el-input-number", { attrs: { precision: 0, min: 0, max: 25, placeholder: "请输入数值", clearable: "" }, model: { value: e2.editForm.taxRate, callback: function(t3) { e2.$set(e2.editForm, "taxRate", "string" === typeof t3 ? t3.trim() : t3); }, expression: "editForm.taxRate" } }), e2._v(" "), a2("div", { staticClass: "per" }, [e2._v("%")])], 1)]), e2._v(" "), a2("el-form-item", { attrs: { label: "发票类型:", prop: "showInvoiceType" } }, [a2("el-select", { attrs: { multiple: "", placeholder: "请选择发票类型", clearable: "" }, model: { value: e2.editForm.showInvoiceType, callback: function(t3) { e2.$set(e2.editForm, "showInvoiceType", t3); }, expression: "editForm.showInvoiceType" } }, e2._l(e2.invoiceType, (function(e3, t3) { return a2("el-option", { key: t3, attrs: { label: e3.label, value: e3.value } }); })), 1)], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "销售方信息:", prop: "sellerName" } }, [a2("el-autocomplete", { attrs: { "fetch-suggestions": e2.querySearchAsync3, placeholder: "请选择销售方信息", clearable: "" }, on: { select: e2.handleconfigNameSelect3 }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { var a3 = t3.item; return [e2._v("\n " + e2._s(a3.sellerName) + "\n ")]; } }], null, false, 2660679289), model: { value: e2.editForm.sellerName, callback: function(t3) { e2.$set(e2.editForm, "sellerName", t3); }, expression: "editForm.sellerName" } })], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "统一社会信用代码:", prop: "sellerTaxNo" } }, [a2("el-input", { attrs: { placeholder: "", disabled: true }, model: { value: e2.editForm.sellerTaxNo, callback: function(t3) { e2.$set(e2.editForm, "sellerTaxNo", t3); }, expression: "editForm.sellerTaxNo" } })], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "说明:", prop: "explain" } }, [a2("el-input", { attrs: { type: "textarea", autosize: { minRows: 4 }, disabled: true }, model: { value: e2.editForm.explain, callback: function(t3) { e2.$set(e2.editForm, "explain", t3); }, expression: "editForm.explain" } })], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "启用:", prop: "status" } }, [a2("el-switch", { attrs: { "active-value": 0, "inactive-value": 1 }, model: { value: e2.editForm.status, callback: function(t3) { e2.$set(e2.editForm, "status", t3); }, expression: "editForm.status" } })], 1), e2._v(" "), a2("el-form-item", { staticStyle: { "text-align": "center" } }, [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: function(t3) { return e2.cancelFrom("categoryFrom"); } } }, [e2._v("关闭")]), e2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: function(t3) { return e2.editInfoList("categoryFrom"); } } }, [e2._v("提交")])], 1)], 1)], 1) : e2._e()], 1); }, n = [], l = a("d813"), s = a("dce5"), c = { components: {}, data: function() { return { showSet: false, is_show: false, height: "", listData: [], listLoading: false, total: 0, addDialog: false, editDialog: false, title: "", invoiceStatusArr: [{ value: "0", label: "启用" }, { value: "1", label: "禁用" }], invoiceType: s["lb"], queryInfo: { configName: "", invoiceType: "", pageNumber: 1, pageSize: 10, projectUuid: "", status: "", taxRate: "" }, projectId: "", hasSelectedConfigName: null, sellerNameArr: [], addForm: { configName: "", invoiceType: "", showInvoiceType: "", projectUuid: "", creatorId: "", creatorName: "", projectName: "", taxRate: "", taxCode: "", sellerName: "", sellerTaxNo: "", explain: "", sellerId: "", sellerType: "", status: true }, editForm: { configName: "", invoiceType: "", projectUuid: "", creatorId: "", creatorName: "", projectName: "", taxRate: "", taxCode: "", sellerName: "", sellerTaxNo: "", explain: "", sellerId: "", sellerType: "", status: true, id: "", showInvoiceType: "" }, addRules: { configName: [{ required: true, message: "请输入项目名称", trigger: "change" }], taxRate: [{ required: true, message: "请输入税率", trigger: "blur" }], taxCode: [{ required: true, message: "请输入税收分类编码", trigger: "blur" }], showInvoiceType: [{ required: true, message: "请选择发票类型", trigger: "change" }], sellerName: [{ required: true, message: "请选择销售方信息", trigger: "change" }] }, editRules: { taxRate: [{ required: true, message: "请输入税率", trigger: "blur" }], showInvoiceType: [{ required: true, message: "请选择发票类型", trigger: "change" }], sellerName: [{ required: true, message: "请选择销售方信息", trigger: "change" }] } }; }, beforeRouteEnter: function(e2, t2, a2) { a2((function(t3) { var a3 = e2.name; console.log(e2.name), t3.setType(e2.name); var o2 = JSON.parse(sessionStorage.getItem(a3)); o2 && (t3.queryInfo = o2), t3.getList(); })); }, created: function() { this.projectId = this.$store.state.community_uuid, this.headClass(), this.getList(), this.sellerlistForInvoice(); }, mounted: function() { }, methods: { getList: function() { var e2 = this; this.queryInfo.projectUuid = this.projectId, Object(l["f"])(this.queryInfo).then((function(t2) { 0 == t2.code ? (e2.listData = t2.data.records, e2.total = t2.data.rowsCount) : e2.$message.error(t2.message), sessionStorage.setItem(e2.$route.name, JSON.stringify(e2.queryInfo)); })); }, sellerlistForInvoice: function() { var e2 = { companyId: this.$store.state.companyId, name: this.addForm.sellerName }; Object(l["h"])(e2).then((function(e3) { console.log(e3.data); })); }, resetForm: function(e2) { this.$refs[e2].resetFields(), this.getList(); }, addItem: function() { this.addDialog = true, this.title = "增加开票配置"; }, editItem: function(e2) { this.title = "编辑开票配置", this.editDialog = true, this.editForm.configName = e2.configName, e2.invoiceType && (this.editForm.showInvoiceType = e2.invoiceType.split(",")), this.editForm.projectUuid = e2.projectUuid, this.editForm.creatorId = e2.creatorId, this.editForm.creatorName = e2.creatorName, this.editForm.projectName = e2.projectName, this.editForm.taxRate = e2.taxRate, this.editForm.taxCode = e2.taxCode, this.editForm.sellerName = e2.sellerName, this.editForm.sellerTaxNo = e2.sellerTaxNo, this.editForm.explain = e2.explain, this.editForm.sellerId = e2.sellerId, this.editForm.taxCode = e2.taxCode, this.editForm.sellerType = e2.sellerType, this.editForm.status = e2.status, this.editForm.id = e2.id; }, cancelFrom: function(e2) { this.addDialog = false, this.editDialog = false, this.$refs[e2].resetFields(); }, closeDialog: function(e2) { this.$refs[e2].resetFields(), this.addDialog = false, this.editDialog = false; }, querySearchAsync: function(e2, t2) { this.queryInputResult(e2, t2); }, querySearchAsync2: function(e2, t2) { this.queryInputResult2(e2, t2); }, querySearchAsync3: function(e2, t2) { this.queryInputResult3(e2, t2); }, queryInputResult: function(e2, t2) { var a2 = { name: e2, pageNumber: 1, pageSize: 5 }; Object(l["a"])(a2).then((function(e3) { 0 === e3.code && e3.data && e3.data.records && e3.data.records.length > 0 ? t2(e3.data.records) : t2([]); })); }, queryInputResult2: function(e2, t2) { var a2 = { name: e2, companyId: this.$store.state.companyId }; Object(l["h"])(a2).then((function(e3) { 0 === e3.code && e3.data && e3.data && e3.data.length > 0 ? t2(e3.data) : t2([]); })); }, queryInputResult3: function(e2, t2) { var a2 = { name: e2, companyId: this.$store.state.companyId }; Object(l["h"])(a2).then((function(e3) { 0 === e3.code && e3.data && e3.data && e3.data.length > 0 ? t2(e3.data) : t2([]); })); }, handleconfigNameSelect: function(e2) { console.log("item", e2), this.addForm.configName = e2.name, this.hasSelectedConfigName = e2, this.addForm.taxCode = e2.code, this.addForm.explain = e2.description; }, handleconfigNameSelect2: function(e2) { console.log("item", e2), this.addForm.sellerName = e2.sellerName, this.addForm.sellerTaxNo = e2.sellerTaxNo, this.addForm.sellerId = e2.sellerId, this.addForm.sellerType = e2.sellerType; }, handleconfigNameSelect3: function(e2) { console.log("item", e2), this.editForm.sellerName = e2.sellerName, this.editForm.sellerTaxNo = e2.sellerTaxNo, this.editForm.sellerId = e2.sellerId, this.editForm.sellerType = e2.sellerType; }, addInvoice: function() { var e2 = this; this.addForm.creatorId = this.$store.state.user.userInfo.memberId, this.addForm.creatorName = this.$store.state.user.userInfo.memberName, this.addForm.projectName = this.$store.state.community_name, this.addForm.projectUuid = this.$store.state.community_uuid, this.addForm.invoiceType = this.addForm.showInvoiceType.join(","), console.log(this.addForm.invoiceType), Object(l["c"])(this.addForm).then((function(t2) { 0 === t2.code && (e2.$message({ message: "添加成功", type: "success" }), e2.getList(), e2.$refs["categoryFrom"].resetFields(), e2.addDialog = false); })); }, editInvoice: function() { var e2 = this; this.editForm.invoiceType = this.editForm.showInvoiceType.join(","), Object(l["l"])(this.editForm).then((function(t2) { 0 === t2.code && (e2.$message({ message: "编辑成功", type: "success" }), e2.getList(), e2.$refs["categoryFrom"].resetFields(), e2.editDialog = false); })); }, saveInfoList: function(e2) { var t2 = this; this.$refs[e2].validate((function(e3) { if (!e3) return false; t2.addInvoice(); })); }, editInfoList: function(e2) { var t2 = this; this.$refs[e2].validate((function(e3) { if (!e3) return false; t2.editInvoice(); })); }, headClass: function() { return "text-align:center;background:#FAFAFA;"; }, handleSizeChange: function(e2) { this.queryInfo.pageSize = e2, this.getList(); }, handleCurrentChange: function(e2) { this.queryInfo.pageNumber = e2, this.getList(); } } }, u = c, d = (a("9c76"), a("829d")), p = Object(d["a"])(u, i, n, false, null, null, null), m = p.exports, f = function() { var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2; return a2("div", { staticClass: "app-container" }, [a2("div", { staticClass: "bgHeight" }, [a2("el-form", { ref: "query", attrs: { model: e2.query, "label-width": "140px" } }, [a2("el-form-item", { attrs: { label: "电子票据模板", prop: "receiptType" } }, [a2("el-radio-group", { model: { value: e2.query.receiptType, callback: function(t3) { e2.$set(e2.query, "receiptType", t3); }, expression: "query.receiptType" } }, [a2("el-radio", { attrs: { label: 0 } }, [e2._v("\n 202201v1 ["), a2("el-button", { attrs: { type: "text" }, on: { click: function(t3) { return e2.viewerClick(e2.oldImg); } } }, [e2._v("预览")]), e2._v("]\n ")], 1), e2._v(" "), a2("el-radio", { attrs: { label: 1 } }, [e2._v("\n 202305v1 ["), a2("el-button", { attrs: { type: "text" }, on: { click: function(t3) { return e2.viewerClick(e2.newImg); } } }, [e2._v("预览")]), e2._v("]\n ")], 1), e2._v(" "), a2("el-radio", { attrs: { label: 2 } }, [e2._v("\n 202404v1 ["), a2("el-button", { attrs: { type: "text" }, on: { click: function(t3) { return e2.viewerClick(e2.newImg2); } } }, [e2._v("预览")]), e2._v("]\n ")], 1)], 1), e2._v(" "), a2("div", { staticClass: "setTip" }, [a2("i", { staticClass: "el-icon-info" }), e2._v("不配置或默认配置为[202201v1]版本\n ")])], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "电子票据备注", prop: "receiptRefundRemark" } }, [a2("el-input", { staticStyle: { width: "70%" }, attrs: { placeholder: "请输入电子票据备注", clearable: "", "show-word-limit": "", maxlength: "250" }, model: { value: e2.query.receiptRefundRemark, callback: function(t3) { e2.$set(e2.query, "receiptRefundRemark", t3); }, expression: "query.receiptRefundRemark" } }), e2._v(" "), a2("div", { staticClass: "setTip" }, [a2("i", { staticClass: "el-icon-info" }), e2._v("备注为票据中标红文字,可点击上方预览查看\n ")])], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "显示支付/销单备注", prop: "showRemark" } }, [a2("el-radio-group", { model: { value: e2.query.showRemark, callback: function(t3) { e2.$set(e2.query, "showRemark", t3); }, expression: "query.showRemark" } }, [a2("el-radio", { attrs: { label: 1 } }, [e2._v("是")]), e2._v(" "), a2("el-radio", { attrs: { label: 0 } }, [e2._v("否")])], 1), e2._v(" "), a2("div", { staticClass: "setTip" }, [a2("i", { staticClass: "el-icon-info" }), e2._v("显示在电子票据备注下面\n ")])], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "本项目物业服务公司", prop: "companyName" } }, [a2("el-input", { staticStyle: { width: "70%" }, attrs: { placeholder: "请输入物业服务公司名称", clearable: "" }, model: { value: e2.query.companyName, callback: function(t3) { e2.$set(e2.query, "companyName", t3); }, expression: "query.companyName" } })], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "显示减免违约金", prop: "showFee" } }, [a2("el-radio-group", { model: { value: e2.query.showFee, callback: function(t3) { e2.$set(e2.query, "showFee", t3); }, expression: "query.showFee" } }, [a2("el-radio", { attrs: { label: 1 } }, [e2._v("是")]), e2._v(" "), a2("el-radio", { attrs: { label: 2 } }, [e2._v("否")])], 1), e2._v(" "), a2("div", { staticClass: "setTip" }, [a2("i", { staticClass: "el-icon-info" }), e2._v("已减免的违约金不显示在电子票据,且减免的违约金不显示在下方的优惠金额,除减免方式之外收的违约金要正常显示。\n ")])], 1), e2._v(" "), a2("el-form-item", [a2("el-button", { attrs: { type: "primary", loading: e2.load }, on: { click: e2.setType } }, [e2._v("保存")])], 1)], 1)], 1), e2._v(" "), e2.showViewer ? a2("el-image-viewer", { attrs: { "on-close": e2.closeViewer, "url-list": e2.srcList } }) : e2._e()], 1); }, v = [], h = a("5aa3"), y = { components: { ElImageViewer: h["a"] }, data: function() { return { showViewer: false, srcList: [], query: { receiptType: 0, receiptRefundRemark: "", showRemark: 0, companyName: "", showFee: 1 }, load: false, typeInfo: "", newImg: "http://sqy-oss-test.oss-cn-guangzhou.aliyuncs.com/project/community_info_20230515172218.png", oldImg: "http://sqy-oss-test.oss-cn-guangzhou.aliyuncs.com/project/community_info_20230515172159.png", newImg2: "http://sqy-oss-test.oss-cn-guangzhou.aliyuncs.com/20240423/1713862168725_fa28eb61.jpg" }; }, mounted: function() { this.getType(); }, methods: { getType: function() { var e2 = this; Object(l["i"])({ projectUuid: this.$store.state.community_uuid }).then((function(t2) { 0 == t2.code && (e2.query = t2.data); })); }, setType: function() { var e2 = this; this.load = true, Object(l["j"])(this.query).then((function(t2) { 0 == t2.code ? (e2.$message({ message: "操作成功!", type: "success" }), e2.getType(), e2.load = false) : e2.load = false; })).catch((function() { e2.load = false; })), this.$emit("updateTemplate"); }, viewerClick: function(e2) { this.srcList = [], this.srcList.push(e2), this.showViewer = true; }, closeViewer: function() { this.showViewer = false; } } }, g = y, b = (a("cfef"), Object(d["a"])(g, f, v, false, null, "8fc09336", null)), _ = b.exports, w = a("3702"), x = { name: "greenFileArchives", components: { bills: _, invoice: m, Template: w["a"] }, data: function() { return { activeName: "invoice" }; }, methods: { handleClick: function(e2) { var t2 = e2.paneName; this.activeName = t2; }, updateTemplate: function() { this.$refs.Template.getType(); }, updateBills: function() { this.$refs.bills.getType(); } } }, F = x, N = (a("27cf"), Object(d["a"])(F, o, r, false, null, "3ec15928", null)); t["default"] = N.exports; }, f7b2: function(e, t, a) { } }]);