1369 lines
95 KiB
JavaScript
1369 lines
95 KiB
JavaScript
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["chunk-054649a0"], { "0b37": function(t, e, a) {
|
|
"use strict";
|
|
function n(t2, e2) {
|
|
var a2, n2, r2, o2;
|
|
try {
|
|
a2 = t2.toString().split(".")[1].length;
|
|
} catch (i2) {
|
|
a2 = 0;
|
|
}
|
|
try {
|
|
n2 = e2.toString().split(".")[1].length;
|
|
} catch (i2) {
|
|
n2 = 0;
|
|
}
|
|
if (o2 = Math.abs(a2 - n2), r2 = Math.pow(10, Math.max(a2, n2)), o2 > 0) {
|
|
var s2 = Math.pow(10, o2);
|
|
a2 > n2 ? (t2 = Number(t2.toString().replace(".", "")), e2 = Number(e2.toString().replace(".", "")) * s2) : (t2 = Number(t2.toString().replace(".", "")) * s2, e2 = Number(e2.toString().replace(".", "")));
|
|
} else t2 = Number(t2.toString().replace(".", "")), e2 = Number(e2.toString().replace(".", ""));
|
|
return (t2 + e2) / r2;
|
|
}
|
|
function r(t2, e2) {
|
|
var a2, n2, r2 = 0, o2 = 0;
|
|
try {
|
|
r2 = t2.toString().split(".")[1].length;
|
|
} catch (s2) {
|
|
}
|
|
try {
|
|
o2 = e2.toString().split(".")[1].length;
|
|
} catch (s2) {
|
|
}
|
|
return a2 = Number(t2.toString().replace(".", "")), n2 = Number(e2.toString().replace(".", "")), a2 / n2 * Math.pow(10, o2 - r2);
|
|
}
|
|
function o(t2, e2) {
|
|
var a2 = 0, n2 = t2.toString(), r2 = e2.toString();
|
|
try {
|
|
a2 += n2.split(".")[1].length;
|
|
} catch (o2) {
|
|
}
|
|
try {
|
|
a2 += r2.split(".")[1].length;
|
|
} catch (o2) {
|
|
}
|
|
return Number(n2.replace(".", "")) * Number(r2.replace(".", "")) / Math.pow(10, a2);
|
|
}
|
|
function s(t2, e2) {
|
|
var a2, n2, r2, o2;
|
|
try {
|
|
a2 = t2.toString().split(".")[1].length;
|
|
} catch (s2) {
|
|
a2 = 0;
|
|
}
|
|
try {
|
|
n2 = e2.toString().split(".")[1].length;
|
|
} catch (s2) {
|
|
n2 = 0;
|
|
}
|
|
return r2 = Math.pow(10, Math.max(a2, n2)), o2 = a2 >= n2 ? a2 : n2, (Math.round(t2 * r2 - e2 * r2) / r2).toFixed(o2);
|
|
}
|
|
function i(t2, e2) {
|
|
if (0 == t2 && (t2 = 0), /[^[\-|0-9][0-9]*]/.test(t2)) return "0";
|
|
if (null == t2 || "" === t2) return "";
|
|
t2 = t2.toString().replace(/^(-\d*)$/, "$1."), t2 = t2.toString().replace(/^(\d*)$/, "$1."), t2 = (t2 + "00").replace(/(\d*\.\d\d)\d*/, "$1"), t2 = t2.replace(".", ",");
|
|
var a2 = /(\d)(\d{3},)/;
|
|
while (a2.test(t2)) t2 = t2.replace(a2, "$1,$2");
|
|
if (t2 = t2.replace(/,(\d\d)$/, ".$1"), 0 === e2 || void 0 === e2) {
|
|
var n2 = t2.split(".");
|
|
"00" == n2[1] && (t2 = n2[0]);
|
|
}
|
|
return t2;
|
|
}
|
|
function u(t2, e2) {
|
|
t2 = t2.toString();
|
|
var a2 = t2.indexOf(".");
|
|
return t2 = -1 !== a2 ? t2.substring(0, e2 + a2 + 1) : t2.substring(0), parseFloat(t2).toFixed(e2);
|
|
}
|
|
function l(t2) {
|
|
var e2 = Object.prototype.toString.call(t2).slice(8, -1);
|
|
return "Null" === e2 ? "Null" : "Undefined" === e2 ? "Undefined" : e2;
|
|
}
|
|
function c(t2) {
|
|
var e2, a2 = l(t2);
|
|
if ("Object" === a2) e2 = {};
|
|
else {
|
|
if ("Array" !== a2) return t2;
|
|
e2 = [];
|
|
}
|
|
for (var n2 in t2) {
|
|
var r2 = t2[n2];
|
|
l(r2), e2[n2] = c(r2);
|
|
}
|
|
return e2;
|
|
}
|
|
a.d(e, "a", (function() {
|
|
return n;
|
|
})), a.d(e, "b", (function() {
|
|
return r;
|
|
})), a.d(e, "c", (function() {
|
|
return o;
|
|
})), a.d(e, "d", (function() {
|
|
return s;
|
|
})), a.d(e, "g", (function() {
|
|
return i;
|
|
})), a.d(e, "f", (function() {
|
|
return u;
|
|
})), a.d(e, "e", (function() {
|
|
return c;
|
|
}));
|
|
}, 5661: function(t, e, a) {
|
|
}, 6396: function(t, e, a) {
|
|
"use strict";
|
|
Math.easeInOutQuad = function(t2, e2, a2, n) {
|
|
return t2 /= n / 2, t2 < 1 ? a2 / 2 * t2 * t2 + e2 : (t2--, -a2 / 2 * (t2 * (t2 - 2) - 1) + e2);
|
|
};
|
|
(function() {
|
|
window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame;
|
|
})();
|
|
}, "64a1": function(t, e, a) {
|
|
}, "65f5": function(t, e, a) {
|
|
"use strict";
|
|
a.d(e, "s", (function() {
|
|
return r;
|
|
})), a.d(e, "q", (function() {
|
|
return o;
|
|
})), a.d(e, "k", (function() {
|
|
return s;
|
|
})), a.d(e, "p", (function() {
|
|
return i;
|
|
})), a.d(e, "r", (function() {
|
|
return u;
|
|
})), a.d(e, "e", (function() {
|
|
return l;
|
|
})), a.d(e, "A", (function() {
|
|
return c;
|
|
})), a.d(e, "w", (function() {
|
|
return d;
|
|
})), a.d(e, "b", (function() {
|
|
return p;
|
|
})), a.d(e, "c", (function() {
|
|
return m;
|
|
})), a.d(e, "y", (function() {
|
|
return f;
|
|
})), a.d(e, "l", (function() {
|
|
return b;
|
|
})), a.d(e, "z", (function() {
|
|
return h;
|
|
})), a.d(e, "m", (function() {
|
|
return g;
|
|
})), a.d(e, "t", (function() {
|
|
return y;
|
|
})), a.d(e, "x", (function() {
|
|
return v;
|
|
})), a.d(e, "d", (function() {
|
|
return _;
|
|
})), a.d(e, "n", (function() {
|
|
return j;
|
|
})), a.d(e, "E", (function() {
|
|
return w;
|
|
})), a.d(e, "C", (function() {
|
|
return O;
|
|
})), a.d(e, "h", (function() {
|
|
return A;
|
|
})), a.d(e, "i", (function() {
|
|
return S;
|
|
})), a.d(e, "u", (function() {
|
|
return C;
|
|
})), a.d(e, "f", (function() {
|
|
return k;
|
|
})), a.d(e, "g", (function() {
|
|
return x;
|
|
})), a.d(e, "j", (function() {
|
|
return T;
|
|
})), a.d(e, "a", (function() {
|
|
return N;
|
|
})), a.d(e, "o", (function() {
|
|
return D;
|
|
})), a.d(e, "B", (function() {
|
|
return I;
|
|
})), a.d(e, "v", (function() {
|
|
return $;
|
|
})), a.d(e, "D", (function() {
|
|
return B;
|
|
}));
|
|
var n = a("b775");
|
|
function r(t2) {
|
|
return Object(n["a"])({ url: "/appproject/BudgetItem/getTemplatePageList", method: "post", data: t2 });
|
|
}
|
|
function o(t2) {
|
|
return Object(n["a"])({ url: "/appproject/BudgetItem/getBudgetItemTree", method: "post", data: t2 });
|
|
}
|
|
function s(t2) {
|
|
return Object(n["a"])({ url: "/appproject/BudgetItem/create", method: "post", data: t2 });
|
|
}
|
|
function i(t2) {
|
|
return Object(n["a"])({ url: "/appproject/BudgetMoneyModifyApply/pageList", method: "post", data: t2 });
|
|
}
|
|
function u(t2) {
|
|
return Object(n["a"])({ url: "/appproject/BudgetItemMoney/modifyRecordPageList", method: "post", data: t2 });
|
|
}
|
|
function l(t2) {
|
|
return Object(n["a"])({ url: "/appproject/BudgetMoneyModifyApply/approveApply", method: "post", data: t2 });
|
|
}
|
|
function c(t2) {
|
|
return Object(n["a"])({ url: "/appproject/BudgetMoneyModifyApply/refuseApply", method: "post", data: t2 });
|
|
}
|
|
function d(t2) {
|
|
return Object(n["a"])({ url: "/appproject/BudgetItemMoney/modifyDetails", method: "post", data: t2 });
|
|
}
|
|
function p(t2) {
|
|
return Object(n["a"])({ url: "/appproject/BudgetItemMoney/adjustAmount", method: "post", data: t2 });
|
|
}
|
|
function m(t2) {
|
|
return Object(n["a"])({ url: "/appproject/BudgetItemMoney/adjustAmount2", method: "post", data: t2 });
|
|
}
|
|
function f(t2) {
|
|
return Object(n["a"])({ url: "/appproject/BudgetItemMoney/queryBudgetItemMoney", method: "post", data: t2 });
|
|
}
|
|
function b(t2) {
|
|
return Object(n["a"])({ url: "/appproject/BudgetItem/delBudgetItemNode", method: "post", data: t2 });
|
|
}
|
|
function h(t2) {
|
|
return Object(n["a"])({ url: "/appproject/BudgetItemMoney/queryBudgetMoneyStatistical", method: "post", data: t2 });
|
|
}
|
|
function g(t2) {
|
|
return Object(n["a"])({ url: "/appproject/BudgetItem/exportBudgetTemplate", method: "post", responseType: "blob", data: t2 });
|
|
}
|
|
function y(t2, e2) {
|
|
return Object(n["a"])({ url: "/appproject/BudgetItem/importBudgetItemMoney?projectUuid=" + e2.projectUuid + "&year=" + e2.year + "&type=" + e2.type + "&createUserUuid=" + e2.createUserUuid + "&createUserName=" + e2.createUserName + "&id=" + e2.id, method: "post", headers: { "Content-Type": "multipart/form-data;charset=UTF-8" }, data: t2 });
|
|
}
|
|
function v(t2) {
|
|
return Object(n["a"])({ url: "/appproject/BudgetItemMoney/queryBudgetAccountInfo", method: "post", data: t2 });
|
|
}
|
|
function _(t2) {
|
|
return Object(n["a"])({ url: "/appproject/BudgetItemMoney/adjustTotal", method: "post", data: t2 });
|
|
}
|
|
function j(t2) {
|
|
return Object(n["a"])({ url: "/appproject/ProjectConfig/findByUuid", method: "post", data: t2 });
|
|
}
|
|
function w(t2) {
|
|
return Object(n["a"])({ url: "/appproject/ProjectConfig/updateBudgetByProjectUuid", method: "post", data: t2 });
|
|
}
|
|
function O(t2) {
|
|
return Object(n["a"])({ url: "/appproject/BudgetItem/setMainBudgetNode", method: "post", data: t2 });
|
|
}
|
|
function A(t2) {
|
|
return Object(n["a"])({ url: "/appproject/BudgetBusiness/pageList", method: "post", data: t2 });
|
|
}
|
|
function S(t2) {
|
|
return Object(n["a"])({ url: "/appproject/BudgetBusiness/total", method: "post", data: t2 });
|
|
}
|
|
function C(t2, e2) {
|
|
return Object(n["a"])({ url: "/appproject/BudgetBusiness/importExcel/".concat(e2), method: "post", isReturnResponse: true, responseType: "blob", headers: { "Content-Type": "multipart/form-data;charset=UTF-8" }, data: t2 });
|
|
}
|
|
function k(t2) {
|
|
return Object(n["a"])({ url: "/appproject/BudgetBusiness/create", method: "post", data: t2 });
|
|
}
|
|
function x(t2) {
|
|
return Object(n["a"])({ url: "/appproject/BudgetBusiness/findById", method: "post", data: t2 });
|
|
}
|
|
function T(t2) {
|
|
return Object(n["a"])({ url: "/appproject/BudgetBusiness/update", method: "post", data: t2 });
|
|
}
|
|
function N(t2) {
|
|
return Object(n["a"])({ url: "/appproject/BudgetBusiness/log", method: "post", data: t2 });
|
|
}
|
|
function D(t2) {
|
|
return Object(n["a"])({ url: "/appproject/BudgetItemMoney/auto/statistics/generate/budget", method: "post", data: t2 });
|
|
}
|
|
function I(t2) {
|
|
return Object(n["a"])({ url: "/appproject/InvestmentSubscribe/pageList/adopt", method: "post", data: t2 });
|
|
}
|
|
function $(t2) {
|
|
return Object(n["a"])({ url: "/appproject/InvestmentSubscribe/into/rolling/budget", method: "post", data: t2 });
|
|
}
|
|
function B(t2) {
|
|
return Object(n["a"])({ url: "/project/BudgetItemMoney/value/change/statistics", method: "post", data: t2 });
|
|
}
|
|
}, "6eaa": function(t, e, a) {
|
|
"use strict";
|
|
a("b2ce");
|
|
}, 7774: function(t, e, a) {
|
|
"use strict";
|
|
a.r(e);
|
|
var n = function() {
|
|
var t2 = this, e2 = t2.$createElement, a2 = t2._self._c || e2;
|
|
return a2("div", { staticClass: "app-container bgHeight" }, [a2("el-tabs", { attrs: { value: t2.activeName, type: "border-card" }, on: { "tab-click": t2.handleClick } }, [a2("el-tab-pane", { attrs: { label: "收入预算", name: "revenueEstimates" } }, ["revenueEstimates" === t2.activeName ? a2("revenueEstimates") : t2._e()], 1), t2._v(" "), a2("el-tab-pane", { attrs: { label: "支出预算", name: "expenditureBudget" } }, ["expenditureBudget" === t2.activeName ? a2("expenditureBudget") : t2._e()], 1)], 1)], 1);
|
|
}, r = [], o = function() {
|
|
var t2 = this, e2 = t2.$createElement, a2 = t2._self._c || e2;
|
|
return a2("div", { staticClass: "bgHeight" }, [a2("div", { ref: "box", staticClass: "searchStys transition_dom" }, [a2("el-form", { ref: "query", attrs: { model: t2.query } }, [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: "budgetYears" } }, [a2("el-date-picker", { attrs: { type: "years", placeholder: "选择年", "value-format": "yyyy" }, model: { value: t2.query.budgetYears, callback: function(e3) {
|
|
t2.$set(t2.query, "budgetYears", e3);
|
|
}, expression: "query.budgetYears" } })], 1)], 1), t2._v(" "), a2("el-col", { attrs: { span: 6 } }, [a2("el-form-item", { attrs: { prop: "fsChargesCode" } }, [a2("el-select", { staticClass: "form-item-content", attrs: { filterable: "", clearable: "", placeholder: "收费项" }, model: { value: t2.query.fsChargesCode, callback: function(e3) {
|
|
t2.$set(t2.query, "fsChargesCode", e3);
|
|
}, expression: "query.fsChargesCode" } }, t2._l(t2.list, (function(t3) {
|
|
return a2("el-option", { key: t3.id, attrs: { label: t3.name, value: t3.codeNumber } });
|
|
})), 1)], 1)], 1), t2._v(" "), a2("el-col", { attrs: { span: 6 } }, [a2("el-form-item", { attrs: { prop: "fsSubjectNo" } }, [a2("el-select", { staticClass: "form-item-content", attrs: { filterable: "", clearable: "", placeholder: "科目" }, model: { value: t2.query.fsSubjectNo, callback: function(e3) {
|
|
t2.$set(t2.query, "fsSubjectNo", e3);
|
|
}, expression: "query.fsSubjectNo" } }, t2._l(t2.categoryArr, (function(t3) {
|
|
return a2("el-option", { key: t3.id, attrs: { label: t3.name, value: t3.code } });
|
|
})), 1)], 1)], 1), t2._v(" "), a2("el-col", { attrs: { span: 6 } }, [a2("el-form-item", { attrs: { prop: "status" } }, [a2("el-select", { staticClass: "form-item-content", attrs: { clearable: "", placeholder: "状态" }, model: { value: t2.query.status, callback: function(e3) {
|
|
t2.$set(t2.query, "status", e3);
|
|
}, expression: "query.status" } }, [a2("el-option", { attrs: { label: "禁用", value: 0 } }), t2._v(" "), a2("el-option", { attrs: { label: "启用", value: 1 } })], 1)], 1)], 1), t2._v(" "), a2("el-col", { attrs: { span: 6 } }, [a2("el-form-item", { attrs: { prop: "businessClassifyList" } }, [a2("el-select", { staticClass: "form-item-content", attrs: { multiple: "", "collapse-tags": "", clearable: "", placeholder: "收入业务分类" }, model: { value: t2.query.businessClassifyList, callback: function(e3) {
|
|
t2.$set(t2.query, "businessClassifyList", e3);
|
|
}, expression: "query.businessClassifyList" } }, t2._l(t2.businessTypeArr, (function(t3) {
|
|
return a2("el-option", { key: t3.value, attrs: { label: t3.label, value: t3.value } });
|
|
})), 1)], 1)], 1)], 1)], 1), t2._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(e3) {
|
|
return t2.resetForm("query");
|
|
} } }, [t2._v("重置")]), t2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: t2.onSearch } }, [t2._v("查询")]), t2._v(" "), t2.is_show || "80px" == t2.height ? t2._e() : a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text" }, on: { click: t2.upAndDown } }, [t2._v("\n 展开"), a2("i", { staticClass: "el-icon-arrow-down" })]), t2._v(" "), t2.is_show && "80px" != t2.height ? a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text" }, on: { click: t2.upAndDown } }, [t2._v("\n 收起"), a2("i", { staticClass: "el-icon-arrow-up" })]) : t2._e()], 1)], 1)])])], 1), t2._v(" "), a2("el-descriptions", { staticStyle: { "margin-bottom": "15px" }, attrs: { title: "收入预算月份汇总", column: 6 } }, [a2("el-descriptions-item", { attrs: { label: "1月" } }, [t2._v("¥" + t2._s(t2.formatNum(t2.totalInfo.januaryAmount)))]), t2._v(" "), a2("el-descriptions-item", { attrs: { label: "2月" } }, [t2._v("¥" + t2._s(t2.formatNum(t2.totalInfo.februaryAmount)))]), t2._v(" "), a2("el-descriptions-item", { attrs: { label: "3月" } }, [t2._v("¥" + t2._s(t2.formatNum(t2.totalInfo.marchAmount)))]), t2._v(" "), a2("el-descriptions-item", { attrs: { label: "4月" } }, [t2._v("¥" + t2._s(t2.formatNum(t2.totalInfo.aprilAmount)))]), t2._v(" "), a2("el-descriptions-item", { attrs: { label: "5月" } }, [t2._v("¥" + t2._s(t2.formatNum(t2.totalInfo.mayAmount)))]), t2._v(" "), a2("el-descriptions-item", { attrs: { label: "6月" } }, [t2._v("¥" + t2._s(t2.formatNum(t2.totalInfo.juneAmount)))]), t2._v(" "), a2("el-descriptions-item", { attrs: { label: "7月" } }, [t2._v("¥" + t2._s(t2.formatNum(t2.totalInfo.julyAmount)))]), t2._v(" "), a2("el-descriptions-item", { attrs: { label: "8月" } }, [t2._v("¥" + t2._s(t2.formatNum(t2.totalInfo.augustAmount)))]), t2._v(" "), a2("el-descriptions-item", { attrs: { label: "9月" } }, [t2._v("¥" + t2._s(t2.formatNum(t2.totalInfo.septemberAmount)))]), t2._v(" "), a2("el-descriptions-item", { attrs: { label: "10月" } }, [t2._v("¥" + t2._s(t2.formatNum(t2.totalInfo.octoberAmount)))]), t2._v(" "), a2("el-descriptions-item", { attrs: { label: "11月" } }, [t2._v("¥" + t2._s(t2.formatNum(t2.totalInfo.novemberAmount)))]), t2._v(" "), a2("el-descriptions-item", { attrs: { label: "12月" } }, [t2._v("¥" + t2._s(t2.formatNum(t2.totalInfo.decemberAmount)))])], 1), t2._v(" "), a2("div", { staticClass: "tableTitle" }, [a2("div", { staticClass: "planLst" }, [a2("span", { staticClass: "planTitle" }, [t2._v("收入预算列表")]), t2._v(" "), a2("div", { staticClass: "planBtn" }, [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: t2.downloadTem } }, [t2._v("导出模版")]), t2._v(" "), a2("el-upload", { ref: "upload", attrs: { "auto-upload": true, "show-file-list": false, accept: ".xls,.xlsx", "http-request": t2.importData, loading: t2.importDataBtn, action: "" } }, [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "warning" } }, [t2._v("导入数据")])], 1), t2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "success" }, on: { click: t2.add } }, [t2._v("新增")])], 1)])]), t2._v(" "), a2("el-table", { directives: [{ name: "loading", rawName: "v-loading", value: t2.listLoading, expression: "listLoading" }], attrs: { border: "", data: t2.listTable, "header-cell-style": t2.headClass, "tooltip-effect": "dark", "empty-text": t2.noData } }, [a2("el-table-column", { attrs: { label: "#", align: "center", "min-width": "50", fixed: "left", "show-overflow-tooltip": "" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [t2._v(t2._s(e3.$index + (t2.query.pageNumber - 1) * t2.query.pageSize + 1))];
|
|
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "80", label: "年份", "show-overflow-tooltip": "" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("span", [t2._v(t2._s(e3.row.budgetYear))])];
|
|
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "预算类型", "min-width": "100", "show-overflow-tooltip": "" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("span", [t2._v(t2._s(t2._f("getItemType")(e3.row.budgetType, t2.budgetType)))])];
|
|
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "150", label: "收费项", "show-overflow-tooltip": "" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("el-tooltip", { staticClass: "item", attrs: { effect: "dark", content: e3.row.fsChargesCode || "-", placement: "top" } }, [a2("el-button", { attrs: { type: "text" } }, [t2._v(t2._s(e3.row.fsChargesName || "-"))])], 1)];
|
|
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "150", label: "科目", "show-overflow-tooltip": "" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("el-tooltip", { staticClass: "item", attrs: { effect: "dark", content: e3.row.fsSubjectNo || "-", placement: "top" } }, [a2("el-button", { attrs: { type: "text" } }, [t2._v(t2._s(e3.row.fsSubjectName || "-"))])], 1)];
|
|
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "150", label: "收入业务分类" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [t2._v("\n " + t2._s(t2._f("getItemType")(e3.row.businessClassify, t2.businessTypeArr)) + "\n ")];
|
|
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "right", "min-width": "130", prop: "januaryAmount", label: "1月" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("el-link", { attrs: { type: "primary" }, on: { click: function(a3) {
|
|
return t2.amountHistory(e3.row, 1);
|
|
} } }, [t2._v(t2._s(e3.row.januaryAmount || 0))])];
|
|
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "right", "min-width": "130", prop: "februaryAmount", label: "2月" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("el-link", { attrs: { type: "primary" }, on: { click: function(a3) {
|
|
return t2.amountHistory(e3.row, 2);
|
|
} } }, [t2._v(t2._s(e3.row.februaryAmount || 0))])];
|
|
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "right", "min-width": "130", prop: "marchAmount", label: "3月" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("el-link", { attrs: { type: "primary" }, on: { click: function(a3) {
|
|
return t2.amountHistory(e3.row, 3);
|
|
} } }, [t2._v(t2._s(e3.row.marchAmount || 0))])];
|
|
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "right", "min-width": "130", prop: "aprilAmount", label: "4月" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("el-link", { attrs: { type: "primary" }, on: { click: function(a3) {
|
|
return t2.amountHistory(e3.row, 4);
|
|
} } }, [t2._v(t2._s(e3.row.aprilAmount || 0))])];
|
|
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "right", "min-width": "130", prop: "mayAmount", label: "5月" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("el-link", { attrs: { type: "primary" }, on: { click: function(a3) {
|
|
return t2.amountHistory(e3.row, 5);
|
|
} } }, [t2._v(t2._s(e3.row.mayAmount || 0))])];
|
|
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "right", "min-width": "130", prop: "juneAmount", label: "6月" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("el-link", { attrs: { type: "primary" }, on: { click: function(a3) {
|
|
return t2.amountHistory(e3.row, 6);
|
|
} } }, [t2._v(t2._s(e3.row.juneAmount || 0))])];
|
|
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "right", "min-width": "130", prop: "julyAmount", label: "7月" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("el-link", { attrs: { type: "primary" }, on: { click: function(a3) {
|
|
return t2.amountHistory(e3.row, 7);
|
|
} } }, [t2._v(t2._s(e3.row.julyAmount || 0))])];
|
|
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "right", "min-width": "130", prop: "augustAmount", label: "8月" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("el-link", { attrs: { type: "primary" }, on: { click: function(a3) {
|
|
return t2.amountHistory(e3.row, 8);
|
|
} } }, [t2._v(t2._s(e3.row.augustAmount || 0))])];
|
|
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "right", "min-width": "130", prop: "septemberAmount", label: "9月" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("el-link", { attrs: { type: "primary" }, on: { click: function(a3) {
|
|
return t2.amountHistory(e3.row, 9);
|
|
} } }, [t2._v(t2._s(e3.row.septemberAmount || 0))])];
|
|
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "right", "min-width": "130", prop: "octoberAmount", label: "10月" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("el-link", { attrs: { type: "primary" }, on: { click: function(a3) {
|
|
return t2.amountHistory(e3.row, 10);
|
|
} } }, [t2._v(t2._s(e3.row.octoberAmount || 0))])];
|
|
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "right", "min-width": "130", prop: "novemberAmount", label: "11月" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("el-link", { attrs: { type: "primary" }, on: { click: function(a3) {
|
|
return t2.amountHistory(e3.row, 11);
|
|
} } }, [t2._v(t2._s(e3.row.novemberAmount || 0))])];
|
|
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "right", "min-width": "130", prop: "decemberAmount", label: "12月" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("el-link", { attrs: { type: "primary" }, on: { click: function(a3) {
|
|
return t2.amountHistory(e3.row, 12);
|
|
} } }, [t2._v(t2._s(e3.row.decemberAmount || 0))])];
|
|
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "50", prop: "status", label: "状态" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [t2._v("\n " + t2._s(0 == e3.row.status ? "禁用" : "启用") + "\n ")];
|
|
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "updateBy", "min-width": "80", label: "操作人" } }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "updateTime", "min-width": "180", label: "操作时间" } }), t2._v(" "), a2("el-table-column", { attrs: { label: "操作", "min-width": "100", align: "center", fixed: "right" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [0 == e3.row.status ? a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text" }, on: { click: function(a3) {
|
|
return t2.updateStatus(e3.row);
|
|
} } }, [t2._v("启用")]) : t2._e(), t2._v(" "), 1 == e3.row.status ? a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text" }, on: { click: function(a3) {
|
|
return t2.updateStatus(e3.row);
|
|
} } }, [t2._v("禁用")]) : t2._e(), t2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text" }, on: { click: function(a3) {
|
|
return t2.edit(e3.row);
|
|
} } }, [t2._v("编辑")])];
|
|
} }]) })], 1), t2._v(" "), a2("el-dialog", { attrs: { title: t2.dialogTitle, visible: t2.addDialogShow, width: "80%", "before-close": t2.resetAddForm }, on: { "update:visible": function(e3) {
|
|
t2.addDialogShow = e3;
|
|
} } }, [a2("el-form", { ref: "addDialog", staticClass: "addForm", attrs: { model: t2.addDialog, rules: t2.rules } }, [a2("el-row", { attrs: { gutter: 24, type: "flex", justify: "center", align: "center" } }, [a2("el-col", { attrs: { span: 12 } }, [a2("el-form-item", { attrs: { label: "年份", "label-width": "25%", prop: "budgetYear" } }, [a2("el-date-picker", { attrs: { type: "year", placeholder: "选择年", "value-format": "yyyy" }, model: { value: t2.addDialog.budgetYear, callback: function(e3) {
|
|
t2.$set(t2.addDialog, "budgetYear", e3);
|
|
}, expression: "addDialog.budgetYear" } })], 1)], 1), t2._v(" "), a2("el-col", { attrs: { span: 12 } }, [a2("el-form-item", { attrs: { label: "预算类型", "label-width": "25%", prop: "budgetType" } }, [a2("el-select", { attrs: { placeholder: "请选择预算类型" }, model: { value: t2.addDialog.budgetType, callback: function(e3) {
|
|
t2.$set(t2.addDialog, "budgetType", e3);
|
|
}, expression: "addDialog.budgetType" } }, t2._l(t2.budgetType, (function(t3) {
|
|
return a2("el-option", { key: t3.value, attrs: { label: t3.label, value: t3.value } });
|
|
})), 1)], 1)], 1)], 1), t2._v(" "), a2("el-row", { attrs: { gutter: 24 } }, [a2("el-col", { attrs: { span: 12 } }, [1 == t2.addDialog.budgetType ? a2("el-form-item", { attrs: { label: "收费项", prop: "fsChargesCode", "label-width": "25%" } }, [a2("el-select", { attrs: { filterable: "", clearable: "", placeholder: "请选择收费项" }, model: { value: t2.addDialog.fsChargesCode, callback: function(e3) {
|
|
t2.$set(t2.addDialog, "fsChargesCode", e3);
|
|
}, expression: "addDialog.fsChargesCode" } }, t2._l(t2.list, (function(t3) {
|
|
return a2("el-option", { key: t3.id, attrs: { label: t3.name, value: t3.codeNumber } });
|
|
})), 1)], 1) : t2._e()], 1), t2._v(" "), a2("el-col", { attrs: { span: 12 } }, [2 == t2.addDialog.budgetType ? a2("el-form-item", { attrs: { label: "科目", prop: "fsSubjectNo", "label-width": "25%" } }, [a2("el-select", { attrs: { filterable: "", clearable: "", placeholder: "请选择科目" }, model: { value: t2.addDialog.fsSubjectNo, callback: function(e3) {
|
|
t2.$set(t2.addDialog, "fsSubjectNo", e3);
|
|
}, expression: "addDialog.fsSubjectNo" } }, t2._l(t2.categoryArr, (function(t3) {
|
|
return a2("el-option", { key: t3.id, attrs: { label: t3.name, value: t3.code } });
|
|
})), 1)], 1) : t2._e()], 1)], 1)], 1), t2._v(" "), a2("div", { staticClass: "table" }, t2._l(t2.monthList, (function(e3, n2) {
|
|
return a2("div", { key: n2, staticClass: "column" }, [a2("div", { staticClass: "label" }, [a2("span", [t2._v(t2._s(e3.label))])]), t2._v(" "), a2("div", { staticClass: "value" }, [e3.show ? a2("div", [t2._v("\n " + t2._s(e3.value) + "\n ")]) : a2("div", [e3.disabled ? a2("span", [t2._v("¥" + t2._s("" !== e3.value ? e3.value : 0))]) : a2("el-input", { on: { input: function(e4) {
|
|
return t2.handleInput(e4, n2);
|
|
} }, model: { value: e3.value, callback: function(a3) {
|
|
t2.$set(e3, "value", a3);
|
|
}, expression: "item.value" } }), t2._v(" "), a2("i", { staticClass: "el-icon-edit updateValue", on: { click: function(e4) {
|
|
return t2.dbclick(n2);
|
|
} } })], 1)])]);
|
|
})), 0), t2._v(" "), a2("span", { staticClass: "dialog-footer", attrs: { slot: "footer" }, slot: "footer" }, [a2("el-button", { on: { click: t2.resetAddForm } }, [t2._v("取 消")]), t2._v(" "), "新增" == t2.dialogTitle ? a2("el-button", { attrs: { type: "primary" }, on: { click: function(e3) {
|
|
return t2.submit("addDialog");
|
|
} } }, [t2._v("确 定")]) : t2._e(), t2._v(" "), "调整" == t2.dialogTitle ? a2("el-button", { attrs: { type: "primary" }, on: { click: function(e3) {
|
|
return t2.update("addDialog");
|
|
} } }, [t2._v("更 新")]) : t2._e()], 1)], 1), t2._v(" "), a2("el-dialog", { attrs: { title: "预算金额变动记录", "show-close": true, "close-on-press-escape": false, "close-on-click-modal": false, visible: t2.amountHistoryShow }, on: { "update:visible": function(e3) {
|
|
t2.amountHistoryShow = e3;
|
|
} } }, [a2("amountHistoryDialog", { ref: "refSelectMeter", attrs: { list: t2.historyList }, on: { cancelHistory: function(e3) {
|
|
t2.amountHistoryShow = false;
|
|
} } })], 1), t2._v(" "), a2("el-dialog", { attrs: { "show-close": true, "close-on-press-escape": false, "close-on-click-modal": false, visible: t2.AutomaticUpdateShow, width: "30%" }, on: { "update:visible": function(e3) {
|
|
t2.AutomaticUpdateShow = e3;
|
|
} } }, [a2("div", { attrs: { slot: "title" }, slot: "title" }, [t2._v("\n 请确认是否将更改后的预算数据自动同步到对应的预算编制?\n ")]), t2._v(" "), a2("el-form", { ref: "salesForm", staticClass: "demo-ruleForm", attrs: { model: t2.salesForm, rules: t2.salesFormRules, "label-width": "130px" } }, [a2("el-form-item", { attrs: { label: "登录密码", prop: "pwdWord" } }, [a2("el-input", { staticStyle: { width: "220px" }, attrs: { type: "password", autocomplete: "off", placeholder: "请输入您的登录密码" }, model: { value: t2.salesForm.pwdWord, callback: function(e3) {
|
|
t2.$set(t2.salesForm, "pwdWord", e3);
|
|
}, expression: "salesForm.pwdWord" } })], 1), t2._v(" "), a2("div", { staticStyle: { display: "flex", "justify-content": "center", "align-content": "center" } }, [a2("el-button", { attrs: { type: "primary" }, on: { click: t2.AutomaticUpdate } }, [t2._v("更新")]), t2._v(" "), a2("el-button", { on: { click: t2.AutomaticUpdateCancel } }, [t2._v("取消")])], 1)], 1)], 1), t2._v(" "), a2("div", { staticClass: "pagination" }, [a2("Pagination", { attrs: { total: t2.pageTotal }, on: { handleCurrentChange: t2.handleCurrentChange, handleSizeChange: t2.handleSizeChange } })], 1)], 1);
|
|
}, s = [], i = a("333d"), u = function() {
|
|
var t2 = this, e2 = t2.$createElement, a2 = t2._self._c || e2;
|
|
return a2("div", { staticClass: "amountHistoryDialog" }, [t2.list && t2.list.length ? a2("el-timeline", { staticStyle: { "padding-top": "5px" } }, t2._l(t2.list, (function(e3, n2) {
|
|
return a2("el-timeline-item", { key: n2, attrs: { type: "primary", timestamp: e3.modifyBy + "/" + e3.modifyGmt } }, [a2("el-descriptions", [a2("el-descriptions-item", { attrs: { label: "原值" } }, [t2._v(t2._s(e3.beforeValue || 0))]), t2._v(" "), a2("el-descriptions-item", { attrs: { label: "变动值" } }, [t2._v(t2._s(e3.operationValue || 0))]), t2._v(" "), a2("el-descriptions-item", { attrs: { label: "后值" } }, [t2._v(t2._s(e3.modifyValue || 0))])], 1), t2._v(" "), a2("span", { staticClass: "timeline-title" }, [t2._v(t2._s(0 == e3.modifyType ? "导入预算" : 1 == e3.modifyType ? "纳入预算" : 2 == e3.modifyType ? "修改预算" : 3 == e3.modifyType ? "新增预算" : "") + "\n ")])], 1);
|
|
})), 1) : a2("div", { staticStyle: { padding: "30px 0", "text-align": "center" } }, [t2._v("暂无变更记录~")])], 1);
|
|
}, l = [], c = { props: { list: { type: Array, default: function() {
|
|
return [];
|
|
} } }, data: function() {
|
|
return {};
|
|
}, mounted: function() {
|
|
}, methods: { cancelHistory: function() {
|
|
this.$emit("cancelHistory", false);
|
|
} } }, d = c, p = (a("91a1"), a("829d")), m = Object(p["a"])(d, u, l, false, null, "08f60a41", null), f = m.exports, b = a("dce5"), h = a("9192"), g = a("65f5"), y = a("0b37"), v = a("dd26"), _ = a.n(v);
|
|
function j(t2) {
|
|
return j = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t3) {
|
|
return typeof t3;
|
|
} : function(t3) {
|
|
return t3 && "function" == typeof Symbol && t3.constructor === Symbol && t3 !== Symbol.prototype ? "symbol" : typeof t3;
|
|
}, j(t2);
|
|
}
|
|
function w(t2, e2) {
|
|
var a2 = Object.keys(t2);
|
|
if (Object.getOwnPropertySymbols) {
|
|
var n2 = Object.getOwnPropertySymbols(t2);
|
|
e2 && (n2 = n2.filter((function(e3) {
|
|
return Object.getOwnPropertyDescriptor(t2, e3).enumerable;
|
|
}))), a2.push.apply(a2, n2);
|
|
}
|
|
return a2;
|
|
}
|
|
function O(t2) {
|
|
for (var e2 = 1; e2 < arguments.length; e2++) {
|
|
var a2 = null != arguments[e2] ? arguments[e2] : {};
|
|
e2 % 2 ? w(Object(a2), true).forEach((function(e3) {
|
|
A(t2, e3, a2[e3]);
|
|
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t2, Object.getOwnPropertyDescriptors(a2)) : w(Object(a2)).forEach((function(e3) {
|
|
Object.defineProperty(t2, e3, Object.getOwnPropertyDescriptor(a2, e3));
|
|
}));
|
|
}
|
|
return t2;
|
|
}
|
|
function A(t2, e2, a2) {
|
|
return (e2 = S(e2)) in t2 ? Object.defineProperty(t2, e2, { value: a2, enumerable: true, configurable: true, writable: true }) : t2[e2] = a2, t2;
|
|
}
|
|
function S(t2) {
|
|
var e2 = C(t2, "string");
|
|
return "symbol" == j(e2) ? e2 : e2 + "";
|
|
}
|
|
function C(t2, e2) {
|
|
if ("object" != j(t2) || !t2) return t2;
|
|
var a2 = t2[Symbol.toPrimitive];
|
|
if (void 0 !== a2) {
|
|
var n2 = a2.call(t2, e2 || "default");
|
|
if ("object" != j(n2)) return n2;
|
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
}
|
|
return ("string" === e2 ? String : Number)(t2);
|
|
}
|
|
var k = { components: { Pagination: i["a"], amountHistoryDialog: f }, data: function() {
|
|
return { budgetType: b["r"], businessTypeArr: b["v"], is_show: true, height: "", listLoading: false, listTable: [], categoryArr: [], pageTotal: 0, list: [], query: { pageNumber: 1, pageSize: 10, businessType: 1, budgetYears: [], fsChargesCode: "", fsSubjectNo: "", status: "", businessClassifyList: [] }, addDialogShow: false, addDialog: { budgetYear: "", budgetType: "", fsChargesCode: "", fsSubjectNo: "" }, dialogTitle: "新增", rules: { budgetYear: [{ required: true, message: "请选择年份", trigger: "change" }], budgetType: [{ required: true, message: "请选择预算类型", trigger: "change" }], fsChargesCode: [{ required: true, message: "请选择收费项", trigger: "change" }], fsSubjectNo: [{ required: true, message: "请选择科目", trigger: "change" }] }, monthList: [{ label: "月份", value: "预算", show: true }, { label: "1月", name: "januaryAmount", disabled: true, value: "" }, { label: "2月", name: "februaryAmount", disabled: true, value: "" }, { label: "3月", name: "marchAmount", disabled: true, value: "" }, { label: "4月", name: "aprilAmount", disabled: true, value: "" }, { label: "5月", name: "mayAmount", disabled: true, value: "" }, { label: "6月", name: "juneAmount", disabled: true, value: "" }, { label: "7月", name: "julyAmount", disabled: true, value: "" }, { label: "8月", name: "augustAmount", disabled: true, value: "" }, { label: "9月", name: "septemberAmount", disabled: true, value: "" }, { label: "10月", name: "octoberAmount", disabled: true, value: "" }, { label: "11月", name: "novemberAmount", disabled: true, value: "" }, { label: "12月", name: "decemberAmount", disabled: true, value: "" }], importDataBtn: false, noData: "暂无数据", currentYear: "", totalInfo: "", amountHistoryShow: false, historyList: [], AutomaticUpdateShow: false, salesForm: { pwdWord: "" }, salesFormRules: { pwdWord: [{ required: true, message: "请输入您的登录密码", trigger: "blur" }] }, id: "" };
|
|
}, mounted: function() {
|
|
this.currentYear = _()().format("YYYY"), this.query.budgetYears.push(this.currentYear), this.getlistData(), this.findSubjectBy(), this.getList();
|
|
}, created: function() {
|
|
this.getRealHeight();
|
|
}, methods: { alert: function() {
|
|
var t2 = this;
|
|
this.$alert("最新的预算数据如果要同步到项目驾驶舱,请先去预算编制重新将该年份的预算重新“自动生成”且设置为默认值!", "提示", { confirmButtonText: "确定", callback: function(e2) {
|
|
t2.id && (t2.AutomaticUpdateShow = true);
|
|
} });
|
|
}, AutomaticUpdate: function() {
|
|
var t2 = this;
|
|
this.$refs.salesForm.validate((function(e2) {
|
|
e2 && Object(g["D"])({ password: t2.salesForm.pwdWord, id: t2.id, updateBy: t2.$store.state.user.userInfo.memberName, updateById: t2.$store.state.user.userInfo.memberId }).then((function(e3) {
|
|
0 == e3.code ? (t2.$message.success("修改成功"), t2.AutomaticUpdateShow = false) : t2.AutomaticUpdateShow = false;
|
|
}));
|
|
}));
|
|
}, AutomaticUpdateCancel: function() {
|
|
this.AutomaticUpdateShow = false, this.salesForm.pwdWord = "";
|
|
}, amountHistory: function(t2, e2) {
|
|
var a2 = this;
|
|
Object(g["a"])({ budgetBusinessId: t2.id, month: e2 }).then((function(t3) {
|
|
0 == t3.code && (a2.historyList = t3.data.records);
|
|
})), this.amountHistoryShow = true;
|
|
}, resetAddForm: function() {
|
|
this.addDialogShow = false, this.$refs["addDialog"].resetFields(), this.monthList.forEach((function(t2) {
|
|
t2.show || (t2.value = "", t2.disabled = true);
|
|
}));
|
|
}, update: function(t2) {
|
|
var e2 = this;
|
|
this.$refs[t2].validate((function(t3) {
|
|
var a2 = {};
|
|
if (t3) {
|
|
e2.monthList.forEach((function(t4) {
|
|
t4.show || (t4.value ? a2[t4.name] = Number(t4.value).toFixed(2) : a2[t4.name] = 0);
|
|
})), console.log(a2, "obj");
|
|
var n2 = O(O({}, e2.addDialog), a2);
|
|
n2.businessType = 1, n2.updateBy = e2.$store.state.user.name, n2.companyId = e2.$store.state.companyId, n2.companyName = localStorage.getItem("companyName"), n2.projectUuid = e2.$store.state.community_uuid, n2.projectName = e2.$store.state.community_name, Object(g["j"])(n2).then((function(t4) {
|
|
0 == t4.code && (e2.getlistData(), e2.resetAddForm(), e2.$message.success("更新成功"), e2.id = t4.data.id, e2.alert());
|
|
})).catch((function() {
|
|
e2.resetAddForm();
|
|
}));
|
|
}
|
|
}));
|
|
}, submit: function(t2) {
|
|
var e2 = this;
|
|
this.$refs[t2].validate((function(t3) {
|
|
var a2 = {};
|
|
if (t3) {
|
|
e2.monthList.forEach((function(t4) {
|
|
"月份" !== t4.label && (t4.value ? a2[t4.name] = Number(t4.value).toFixed(2) : a2[t4.name] = 0);
|
|
})), console.log(a2, "obj");
|
|
var n2 = O(O({}, a2), e2.addDialog);
|
|
n2.businessType = 1, n2.updateBy = e2.$store.state.user.name, n2.companyId = e2.$store.state.companyId, n2.companyName = localStorage.getItem("companyName"), n2.projectUuid = e2.$store.state.community_uuid, n2.projectName = e2.$store.state.community_name, Object(g["f"])(n2).then((function(t4) {
|
|
0 == t4.code ? (e2.resetAddForm(), e2.getlistData(), e2.$message.success("新增成功"), e2.id = t4.data.id, e2.alert()) : e2.resetAddForm();
|
|
})).catch((function() {
|
|
e2.resetAddForm();
|
|
}));
|
|
}
|
|
}));
|
|
}, updateStatus: function(t2) {
|
|
var e2 = this;
|
|
Object(g["g"])({ id: t2.id }).then((function(t3) {
|
|
0 == t3.code && (e2.addDialog = t3.data, 0 == e2.addDialog.status ? e2.addDialog.status = 1 : e2.addDialog.status = 0, Object(g["j"])(e2.addDialog).then((function(t4) {
|
|
0 == t4.code && (e2.$message.success("更新成功"), e2.getlistData(), e2.resetAddForm());
|
|
})));
|
|
}));
|
|
}, dbclick: function(t2) {
|
|
this.monthList[t2].disabled = !this.monthList[t2].disabled;
|
|
}, handleInput: function(t2, e2) {
|
|
var a2 = /^[\d\.]+$/;
|
|
t2 && !a2.test(t2) && (this.monthList[e2].value = t2.replace(/[^\d\.]/g, "")), this.monthList[e2].value > 12 && (this.monthList[e2].value = this.monthList[e2].value.slice(0, 12));
|
|
}, getList: function() {
|
|
var t2 = this, e2 = { projectUuid: this.$store.state.community_uuid, pageSize: -1, pageNumber: -1, companyId: this.$store.state.companyId };
|
|
Object(h["e"])(e2).then((function(e3) {
|
|
t2.list = e3.data.records, console.log(t2.list);
|
|
}));
|
|
}, add: function() {
|
|
this.dialogTitle = "新增", this.addDialogShow = true;
|
|
}, edit: function(t2) {
|
|
var e2 = this;
|
|
this.dialogTitle = "调整", this.addDialogShow = true, this.id = t2.id, Object(g["g"])({ id: t2.id }).then((function(t3) {
|
|
0 == t3.code && (t3.data.budgetYear = t3.data.budgetYear + "", e2.addDialog = t3.data, e2.monthList.forEach((function(e3) {
|
|
e3.show || (t3.data[e3.name] ? e3.value = t3.data[e3.name] : e3.value = "");
|
|
})), console.log(e2.monthList, "this.monthList"));
|
|
}));
|
|
}, getlistData: function() {
|
|
var t2 = this;
|
|
this.listLoading = true, this.query.projectUuid = this.$store.state.community_uuid, Object(g["h"])(this.query).then((function(e2) {
|
|
0 == e2.code && (e2.data.records.forEach((function(t3) {
|
|
t3.januaryAmount = Object(y["g"])(t3.januaryAmount), t3.februaryAmount = Object(y["g"])(t3.februaryAmount), t3.marchAmount = Object(y["g"])(t3.marchAmount), t3.aprilAmount = Object(y["g"])(t3.aprilAmount), t3.mayAmount = Object(y["g"])(t3.mayAmount), t3.juneAmount = Object(y["g"])(t3.juneAmount), t3.julyAmount = Object(y["g"])(t3.julyAmount), t3.augustAmount = Object(y["g"])(t3.augustAmount), t3.septemberAmount = Object(y["g"])(t3.septemberAmount), t3.octoberAmount = Object(y["g"])(t3.octoberAmount), t3.novemberAmount = Object(y["g"])(t3.novemberAmount), t3.decemberAmount = Object(y["g"])(t3.decemberAmount);
|
|
})), t2.listTable = e2.data.records, t2.pageTotal = e2.data.rowsCount, 1 == t2.query.budgetYears.length && t2.query.budgetYears[0] == t2.currentYear && 0 == t2.listTable.length ? t2.noData = "请选择年份后查询数据" : t2.noData = "暂无数据");
|
|
})), this.getTotal(), this.listLoading = false;
|
|
}, getTotal: function() {
|
|
var t2 = this;
|
|
this.query.projectUuid = this.$store.state.community_uuid, Object(g["i"])(this.query).then((function(e2) {
|
|
0 == e2.code && (t2.totalInfo = e2.data);
|
|
}));
|
|
}, formatNum: function(t2) {
|
|
return t2 ? Object(y["g"])(t2, 2) : 0 != t2 ? "-" : 0;
|
|
}, findSubjectBy: function() {
|
|
var t2 = this;
|
|
Object(h["o"])({ projectUuid: this.$store.state.community_uuid, incomeClassify: 1, subjectType: 4 }).then((function(e2) {
|
|
0 == e2.code && (t2.categoryArr = e2.data);
|
|
}));
|
|
}, onSearch: function() {
|
|
this.query.pageNumber = 1, this.getlistData();
|
|
}, resetForm: function(t2) {
|
|
this.$refs[t2].resetFields(), this.query.pageNumber = 1, this.getlistData();
|
|
}, handleSizeChange: function(t2) {
|
|
this.query.pageSize = t2.limit, this.query.pageNumber = 1, this.getlistData();
|
|
}, handleCurrentChange: function(t2) {
|
|
this.query.pageNumber = t2.currentPage, this.getlistData();
|
|
}, upAndDown: function() {
|
|
this.is_show ? this.$refs.box.style.height = "80px" : this.$refs.box.style.height = this.height, this.is_show = !this.is_show;
|
|
}, getRealHeight: function() {
|
|
this.$nextTick((function() {
|
|
this.height = this.$refs.form_box.offsetHeight + "px", this.$refs.box.style.height = this.height;
|
|
}));
|
|
}, downloadTem: function() {
|
|
var t2 = "/static/template/operatingBudgetTemplate.xlsx", e2 = "业务预算导入模板.xlsx", a2 = document.createElement("a");
|
|
a2.setAttribute("type", "download"), a2.setAttribute("download", e2), a2.style.display = "none", a2.href = t2, console.log(a2, "elink++++"), document.body.appendChild(a2), a2.click(), document.body.removeChild(a2);
|
|
}, importData: function(t2) {
|
|
var e2 = this, a2 = t2.file, n2 = a2.size / 1024 / 1024 < 20, r2 = a2.name.lastIndexOf("."), o2 = a2.name.length, s2 = a2.name.substring(r2 + 1, o2);
|
|
if ("xls" == s2 || "xlsx" == s2) if (n2) {
|
|
var i2 = new FormData();
|
|
this.fileName = a2.name, i2.append("file", a2, a2.name);
|
|
var u2 = "".concat(1, "/", this.$store.state.companyId, "/").concat(localStorage.getItem("companyName"), "/").concat(this.$store.state.community_uuid, "/").concat(this.$store.state.community_name, "/").concat(this.$store.state.user.name);
|
|
this.importDataBtn = true, Object(g["u"])(i2, u2).then((function(t3) {
|
|
console.log(t3, "response");
|
|
var a3 = t3.headers, n3 = t3.data;
|
|
if (a3.count) {
|
|
var r3 = JSON.parse(a3.count);
|
|
0 == r3.code ? r3.errorCount > 0 ? (e2.$message({ message: "上传结果:总条数".concat(r3.totalCount, "条,成功").concat(r3.successCount, "条,失败").concat(r3.errorCount, "条。"), type: "warning" }), e2.downloadImportDetailes(n3), e2.query.pageNumber = 1, e2.getlistData()) : (e2.$message({ message: "导入数据成功!", type: "success" }), e2.query.pageNumber = 1, e2.getlistData(), e2.alert()) : e2.$message({ message: "数据导入失败,请检查模板数据格式是否规范!", type: "error" }), e2.importDataBtn = false;
|
|
} else e2.$message({ message: "数据导入失败,请检查模板数据格式是否规范!", type: "error" }), e2.importDataBtn = false;
|
|
})).catch((function() {
|
|
e2.$message({ message: "数据导入失败,请检查模板数据格式是否规范!", type: "error" }), e2.importDataBtn = false;
|
|
}));
|
|
} else this.$message("上传文件大小不能超过20M!");
|
|
else this.$message("只能上传Excel文件!");
|
|
}, downloadImportDetailes: function(t2) {
|
|
var e2 = "application/vnd.ms-excel", a2 = new Blob([t2], { type: e2 }), n2 = "业务预算导入失败信息.xls";
|
|
if (window.navigator.msSaveOrOpenBlob) navigator.msSaveBlob(a2);
|
|
else {
|
|
var r2 = document.createElement("a");
|
|
r2.download = n2, r2.style.display = "none", r2.href = URL.createObjectURL(a2), document.body.appendChild(r2), r2.click(), document.body.removeChild(r2);
|
|
}
|
|
}, teanslateResBlob: function(t2) {
|
|
var e2 = this, a2 = new FileReader();
|
|
a2.readAsText(t2), a2.onload = function() {
|
|
var t3 = this.result;
|
|
t3 && (t3 = JSON.parse(t3), -1 === t3.code && e2.$message({ message: t3.message, type: "error" }));
|
|
};
|
|
}, headClass: function() {
|
|
return "text-align:center;background:#FAFAFA;";
|
|
} } }, x = k, T = (a("6eaa"), Object(p["a"])(x, o, s, false, null, "1d196760", null)), N = T.exports, D = function() {
|
|
var t2 = this, e2 = t2.$createElement, a2 = t2._self._c || e2;
|
|
return a2("div", { staticClass: "bgHeight" }, [a2("div", { ref: "box", staticClass: "searchStys transition_dom" }, [a2("el-form", { ref: "query", attrs: { model: t2.query } }, [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: "budgetYears" } }, [a2("el-date-picker", { attrs: { type: "years", placeholder: "选择年", "value-format": "yyyy" }, model: { value: t2.query.budgetYears, callback: function(e3) {
|
|
t2.$set(t2.query, "budgetYears", e3);
|
|
}, expression: "query.budgetYears" } })], 1)], 1), t2._v(" "), a2("el-col", { attrs: { span: 6 } }, [a2("el-form-item", { attrs: { prop: "fsChargesCode" } }, [a2("el-select", { attrs: { filterable: "", clearable: "", placeholder: "请选择支出项" }, model: { value: t2.query.fsChargesCode, callback: function(e3) {
|
|
t2.$set(t2.query, "fsChargesCode", e3);
|
|
}, expression: "query.fsChargesCode" } }, t2._l(t2.list, (function(t3) {
|
|
return a2("el-option", { key: t3.id, attrs: { label: t3.name, value: t3.investmentNo } });
|
|
})), 1)], 1)], 1), t2._v(" "), a2("el-col", { attrs: { span: 6 } }, [a2("el-form-item", { attrs: { prop: "fsSubjectNo" } }, [a2("el-select", { staticClass: "form-item-content", attrs: { filterable: "", clearable: "", placeholder: "科目" }, model: { value: t2.query.fsSubjectNo, callback: function(e3) {
|
|
t2.$set(t2.query, "fsSubjectNo", e3);
|
|
}, expression: "query.fsSubjectNo" } }, t2._l(t2.categoryArr, (function(t3) {
|
|
return a2("el-option", { key: t3.id, attrs: { label: t3.name, value: t3.code } });
|
|
})), 1)], 1)], 1), t2._v(" "), a2("el-col", { attrs: { span: 6 } }, [a2("el-form-item", { attrs: { prop: "status" } }, [a2("el-select", { staticClass: "form-item-content", attrs: { clearable: "", placeholder: "状态" }, model: { value: t2.query.status, callback: function(e3) {
|
|
t2.$set(t2.query, "status", e3);
|
|
}, expression: "query.status" } }, [a2("el-option", { attrs: { label: "禁用", value: 0 } }), t2._v(" "), a2("el-option", { attrs: { label: "启用", value: 1 } })], 1)], 1)], 1), t2._v(" "), a2("el-col", { attrs: { span: 6 } }, [a2("el-form-item", { attrs: { prop: "investmentBusinessClassifyList" } }, [a2("el-select", { staticClass: "form-item-content", attrs: { multiple: "", "collapse-tags": "", clearable: "", placeholder: "支出业务分类" }, model: { value: t2.query.investmentBusinessClassifyList, callback: function(e3) {
|
|
t2.$set(t2.query, "investmentBusinessClassifyList", e3);
|
|
}, expression: "query.investmentBusinessClassifyList" } }, t2._l(t2.businessExpenseTypeArr, (function(t3) {
|
|
return a2("el-option", { key: t3.value, attrs: { label: t3.label, value: t3.value } });
|
|
})), 1)], 1)], 1)], 1)], 1), t2._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(e3) {
|
|
return t2.resetForm("query");
|
|
} } }, [t2._v("重置")]), t2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: t2.onSearch } }, [t2._v("查询")]), t2._v(" "), t2.is_show || "80px" == t2.height ? t2._e() : a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text" }, on: { click: t2.upAndDown } }, [t2._v("\n 展开"), a2("i", { staticClass: "el-icon-arrow-down" })]), t2._v(" "), t2.is_show && "80px" != t2.height ? a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text" }, on: { click: t2.upAndDown } }, [t2._v("\n 收起"), a2("i", { staticClass: "el-icon-arrow-up" })]) : t2._e()], 1)], 1)])])], 1), t2._v(" "), a2("el-descriptions", { staticStyle: { "margin-bottom": "15px" }, attrs: { title: "支出预算月份汇总", column: 6 } }, [a2("el-descriptions-item", { attrs: { label: "1月" } }, [t2._v("¥" + t2._s(t2.formatNum(t2.totalInfo.januaryAmount)))]), t2._v(" "), a2("el-descriptions-item", { attrs: { label: "2月" } }, [t2._v("¥" + t2._s(t2.formatNum(t2.totalInfo.februaryAmount)))]), t2._v(" "), a2("el-descriptions-item", { attrs: { label: "3月" } }, [t2._v("¥" + t2._s(t2.formatNum(t2.totalInfo.marchAmount)))]), t2._v(" "), a2("el-descriptions-item", { attrs: { label: "4月" } }, [t2._v("¥" + t2._s(t2.formatNum(t2.totalInfo.aprilAmount)))]), t2._v(" "), a2("el-descriptions-item", { attrs: { label: "5月" } }, [t2._v("¥" + t2._s(t2.formatNum(t2.totalInfo.mayAmount)))]), t2._v(" "), a2("el-descriptions-item", { attrs: { label: "6月" } }, [t2._v("¥" + t2._s(t2.formatNum(t2.totalInfo.juneAmount)))]), t2._v(" "), a2("el-descriptions-item", { attrs: { label: "7月" } }, [t2._v("¥" + t2._s(t2.formatNum(t2.totalInfo.julyAmount)))]), t2._v(" "), a2("el-descriptions-item", { attrs: { label: "8月" } }, [t2._v("¥" + t2._s(t2.formatNum(t2.totalInfo.augustAmount)))]), t2._v(" "), a2("el-descriptions-item", { attrs: { label: "9月" } }, [t2._v("¥" + t2._s(t2.formatNum(t2.totalInfo.septemberAmount)))]), t2._v(" "), a2("el-descriptions-item", { attrs: { label: "10月" } }, [t2._v("¥" + t2._s(t2.formatNum(t2.totalInfo.octoberAmount)))]), t2._v(" "), a2("el-descriptions-item", { attrs: { label: "11月" } }, [t2._v("¥" + t2._s(t2.formatNum(t2.totalInfo.novemberAmount)))]), t2._v(" "), a2("el-descriptions-item", { attrs: { label: "12月" } }, [t2._v("¥" + t2._s(t2.formatNum(t2.totalInfo.decemberAmount)))])], 1), t2._v(" "), a2("div", { staticClass: "tableTitle" }, [a2("div", { staticClass: "planLst" }, [a2("span", { staticClass: "planTitle" }, [t2._v("支出预算列表")]), t2._v(" "), a2("div", { staticClass: "planBtn" }, [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: t2.downloadTem } }, [t2._v("导出模版")]), t2._v(" "), a2("el-upload", { ref: "upload", attrs: { "auto-upload": true, "show-file-list": false, accept: ".xls,.xlsx", "http-request": t2.importData, loading: t2.importDataBtn, action: "" } }, [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "warning" } }, [t2._v("导入数据")])], 1), t2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "success" }, on: { click: t2.add } }, [t2._v("新增")])], 1)])]), t2._v(" "), a2("el-table", { directives: [{ name: "loading", rawName: "v-loading", value: t2.listLoading, expression: "listLoading" }], attrs: { border: "", data: t2.listTable, "header-cell-style": t2.headClass, "tooltip-effect": "dark", "empty-text": t2.noData } }, [a2("el-table-column", { attrs: { label: "#", align: "center", "min-width": "50", fixed: "left", "show-overflow-tooltip": "" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [t2._v(t2._s(e3.$index + (t2.query.pageNumber - 1) * t2.query.pageSize + 1))];
|
|
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "80", label: "年份", "show-overflow-tooltip": "" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("span", [t2._v(t2._s(e3.row.budgetYear))])];
|
|
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "预算类型", "min-width": "100", "show-overflow-tooltip": "" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("span", [t2._v(t2._s(t2._f("getItemType")(e3.row.budgetType, t2.budgetType)))])];
|
|
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "150", label: "支出项", "show-overflow-tooltip": "" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("el-tooltip", { staticClass: "item", attrs: { effect: "dark", content: e3.row.fsChargesCode || "-", placement: "top" } }, [a2("el-button", { attrs: { type: "text" } }, [t2._v(t2._s(e3.row.fsChargesName || "-"))])], 1)];
|
|
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "150", label: "科目", "show-overflow-tooltip": "" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("el-tooltip", { staticClass: "item", attrs: { effect: "dark", content: e3.row.fsSubjectNo || "-", placement: "top" } }, [a2("el-button", { attrs: { type: "text" } }, [t2._v(t2._s(e3.row.fsSubjectName || "-"))])], 1)];
|
|
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "150", label: "支出业务分类" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [t2._v("\n " + t2._s(t2._f("getItemType")(e3.row.investmentBusinessClassify, t2.businessExpenseTypeArr)) + "\n ")];
|
|
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "right", "min-width": "130", prop: "januaryAmount", label: "1月" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("el-link", { attrs: { type: "primary" }, on: { click: function(a3) {
|
|
return t2.amountHistory(e3.row, 1);
|
|
} } }, [t2._v(t2._s(e3.row.januaryAmount || 0))])];
|
|
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "right", "min-width": "130", prop: "februaryAmount", label: "2月" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("el-link", { attrs: { type: "primary" }, on: { click: function(a3) {
|
|
return t2.amountHistory(e3.row, 2);
|
|
} } }, [t2._v(t2._s(e3.row.februaryAmount || 0))])];
|
|
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "right", "min-width": "130", prop: "marchAmount", label: "3月" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("el-link", { attrs: { type: "primary" }, on: { click: function(a3) {
|
|
return t2.amountHistory(e3.row, 3);
|
|
} } }, [t2._v(t2._s(e3.row.marchAmount || 0))])];
|
|
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "right", "min-width": "130", prop: "aprilAmount", label: "4月" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("el-link", { attrs: { type: "primary" }, on: { click: function(a3) {
|
|
return t2.amountHistory(e3.row, 4);
|
|
} } }, [t2._v(t2._s(e3.row.aprilAmount || 0))])];
|
|
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "right", "min-width": "130", prop: "mayAmount", label: "5月" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("el-link", { attrs: { type: "primary" }, on: { click: function(a3) {
|
|
return t2.amountHistory(e3.row, 5);
|
|
} } }, [t2._v(t2._s(e3.row.mayAmount || 0))])];
|
|
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "right", "min-width": "130", prop: "juneAmount", label: "6月" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("el-link", { attrs: { type: "primary" }, on: { click: function(a3) {
|
|
return t2.amountHistory(e3.row, 6);
|
|
} } }, [t2._v(t2._s(e3.row.juneAmount || 0))])];
|
|
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "right", "min-width": "130", prop: "julyAmount", label: "7月" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("el-link", { attrs: { type: "primary" }, on: { click: function(a3) {
|
|
return t2.amountHistory(e3.row, 7);
|
|
} } }, [t2._v(t2._s(e3.row.julyAmount || 0))])];
|
|
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "right", "min-width": "130", prop: "augustAmount", label: "8月" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("el-link", { attrs: { type: "primary" }, on: { click: function(a3) {
|
|
return t2.amountHistory(e3.row, 8);
|
|
} } }, [t2._v(t2._s(e3.row.augustAmount || 0))])];
|
|
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "right", "min-width": "130", prop: "septemberAmount", label: "9月" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("el-link", { attrs: { type: "primary" }, on: { click: function(a3) {
|
|
return t2.amountHistory(e3.row, 9);
|
|
} } }, [t2._v(t2._s(e3.row.septemberAmount || 0))])];
|
|
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "right", "min-width": "130", prop: "octoberAmount", label: "10月" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("el-link", { attrs: { type: "primary" }, on: { click: function(a3) {
|
|
return t2.amountHistory(e3.row, 10);
|
|
} } }, [t2._v(t2._s(e3.row.octoberAmount || 0))])];
|
|
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "right", "min-width": "130", prop: "novemberAmount", label: "11月" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("el-link", { attrs: { type: "primary" }, on: { click: function(a3) {
|
|
return t2.amountHistory(e3.row, 11);
|
|
} } }, [t2._v(t2._s(e3.row.novemberAmount || 0))])];
|
|
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "right", "min-width": "130", prop: "decemberAmount", label: "12月" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("el-link", { attrs: { type: "primary" }, on: { click: function(a3) {
|
|
return t2.amountHistory(e3.row, 12);
|
|
} } }, [t2._v(t2._s(e3.row.decemberAmount || 0))])];
|
|
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "50", prop: "status", label: "状态" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [t2._v("\n " + t2._s(0 == e3.row.status ? "禁用" : "启用") + "\n ")];
|
|
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "updateBy", "min-width": "80", label: "操作人" } }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "updateTime", "min-width": "180", label: "操作时间" } }), t2._v(" "), a2("el-table-column", { attrs: { label: "操作", "min-width": "100", align: "center", fixed: "right" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [0 == e3.row.status ? a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text" }, on: { click: function(a3) {
|
|
return t2.updateStatus(e3.row);
|
|
} } }, [t2._v("启用")]) : t2._e(), t2._v(" "), 1 == e3.row.status ? a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text" }, on: { click: function(a3) {
|
|
return t2.updateStatus(e3.row);
|
|
} } }, [t2._v("禁用")]) : t2._e(), t2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text" }, on: { click: function(a3) {
|
|
return t2.edit(e3.row);
|
|
} } }, [t2._v("编辑")])];
|
|
} }]) })], 1), t2._v(" "), a2("el-dialog", { attrs: { title: t2.dialogTitle, visible: t2.addDialogShow, width: "80%", "before-close": t2.resetAddForm }, on: { "update:visible": function(e3) {
|
|
t2.addDialogShow = e3;
|
|
} } }, [a2("el-form", { ref: "addDialog", staticClass: "addForm", attrs: { model: t2.addDialog, rules: t2.rules } }, [a2("el-row", { attrs: { gutter: 24, type: "flex", justify: "center", align: "center" } }, [a2("el-col", { attrs: { span: 12 } }, [a2("el-form-item", { attrs: { label: "年份", "label-width": "25%", prop: "budgetYear" } }, [a2("el-date-picker", { attrs: { type: "year", placeholder: "选择年", "value-format": "yyyy" }, model: { value: t2.addDialog.budgetYear, callback: function(e3) {
|
|
t2.$set(t2.addDialog, "budgetYear", e3);
|
|
}, expression: "addDialog.budgetYear" } })], 1)], 1), t2._v(" "), a2("el-col", { attrs: { span: 12 } }, [a2("el-form-item", { attrs: { label: "预算类型", "label-width": "25%", prop: "budgetType" } }, [a2("el-select", { attrs: { placeholder: "请选择预算类型" }, model: { value: t2.addDialog.budgetType, callback: function(e3) {
|
|
t2.$set(t2.addDialog, "budgetType", e3);
|
|
}, expression: "addDialog.budgetType" } }, t2._l(t2.budgetType, (function(t3) {
|
|
return a2("el-option", { key: t3.value, attrs: { label: t3.label, value: t3.value } });
|
|
})), 1)], 1)], 1)], 1), t2._v(" "), a2("el-row", { attrs: { gutter: 24 } }, [a2("el-col", { attrs: { span: 12 } }, [1 == t2.addDialog.budgetType ? a2("el-form-item", { attrs: { label: "支出项", prop: "fsChargesCode", "label-width": "25%" } }, [a2("el-select", { attrs: { filterable: "", clearable: "", placeholder: "请选择支出项" }, model: { value: t2.addDialog.fsChargesCode, callback: function(e3) {
|
|
t2.$set(t2.addDialog, "fsChargesCode", e3);
|
|
}, expression: "addDialog.fsChargesCode" } }, t2._l(t2.list, (function(t3) {
|
|
return a2("el-option", { key: t3.id, attrs: { label: t3.name, value: t3.investmentNo } });
|
|
})), 1)], 1) : t2._e()], 1), t2._v(" "), a2("el-col", { attrs: { span: 12 } }, [2 == t2.addDialog.budgetType ? a2("el-form-item", { attrs: { label: "科目", prop: "fsSubjectNo", "label-width": "25%" } }, [a2("el-select", { attrs: { filterable: "", clearable: "", placeholder: "请选择科目" }, model: { value: t2.addDialog.fsSubjectNo, callback: function(e3) {
|
|
t2.$set(t2.addDialog, "fsSubjectNo", e3);
|
|
}, expression: "addDialog.fsSubjectNo" } }, t2._l(t2.categoryArr, (function(t3) {
|
|
return a2("el-option", { key: t3.id, attrs: { label: t3.name, value: t3.code } });
|
|
})), 1)], 1) : t2._e()], 1)], 1)], 1), t2._v(" "), a2("div", { staticClass: "table" }, t2._l(t2.monthList, (function(e3, n2) {
|
|
return a2("div", { key: n2, staticClass: "column" }, [a2("div", { staticClass: "label" }, [a2("span", [t2._v(t2._s(e3.label))])]), t2._v(" "), a2("div", { staticClass: "value" }, [e3.show ? a2("div", [t2._v("\n " + t2._s(e3.value) + "\n ")]) : a2("div", [e3.disabled ? a2("span", [t2._v("¥" + t2._s("" !== e3.value ? e3.value : 0))]) : a2("el-input", { on: { input: function(e4) {
|
|
return t2.handleInput(e4, n2);
|
|
} }, model: { value: e3.value, callback: function(a3) {
|
|
t2.$set(e3, "value", a3);
|
|
}, expression: "item.value" } }), t2._v(" "), a2("i", { staticClass: "el-icon-edit updateValue", on: { click: function(e4) {
|
|
return t2.dbclick(n2);
|
|
} } })], 1)])]);
|
|
})), 0), t2._v(" "), a2("span", { staticClass: "dialog-footer", attrs: { slot: "footer" }, slot: "footer" }, [a2("el-button", { on: { click: t2.resetAddForm } }, [t2._v("取 消")]), t2._v(" "), "新增" == t2.dialogTitle ? a2("el-button", { attrs: { type: "primary" }, on: { click: function(e3) {
|
|
return t2.submit("addDialog");
|
|
} } }, [t2._v("确 定")]) : t2._e(), t2._v(" "), "调整" == t2.dialogTitle ? a2("el-button", { attrs: { type: "primary" }, on: { click: function(e3) {
|
|
return t2.update("addDialog");
|
|
} } }, [t2._v("更 新")]) : t2._e()], 1)], 1), t2._v(" "), a2("el-dialog", { attrs: { title: "预算金额变动记录", "show-close": true, "close-on-press-escape": false, "close-on-click-modal": false, visible: t2.amountHistoryShow }, on: { "update:visible": function(e3) {
|
|
t2.amountHistoryShow = e3;
|
|
} } }, [a2("amountHistoryDialog", { ref: "refSelectMeter", attrs: { list: t2.historyList }, on: { cancelHistory: function(e3) {
|
|
t2.amountHistoryShow = false;
|
|
} } })], 1), t2._v(" "), a2("el-dialog", { attrs: { "show-close": true, "close-on-press-escape": false, "close-on-click-modal": false, visible: t2.AutomaticUpdateShow, width: "30%" }, on: { "update:visible": function(e3) {
|
|
t2.AutomaticUpdateShow = e3;
|
|
} } }, [a2("div", { attrs: { slot: "title" }, slot: "title" }, [t2._v("\n 请确认是否将更改后的预算数据自动同步到对应的预算编制?\n ")]), t2._v(" "), a2("el-form", { ref: "salesForm", staticClass: "demo-ruleForm", attrs: { model: t2.salesForm, rules: t2.salesFormRules, "label-width": "130px" } }, [a2("el-form-item", { attrs: { label: "登录密码", prop: "pwdWord" } }, [a2("el-input", { staticStyle: { width: "220px" }, attrs: { type: "password", autocomplete: "off", placeholder: "请输入您的登录密码" }, model: { value: t2.salesForm.pwdWord, callback: function(e3) {
|
|
t2.$set(t2.salesForm, "pwdWord", e3);
|
|
}, expression: "salesForm.pwdWord" } })], 1), t2._v(" "), a2("div", { staticStyle: { display: "flex", "justify-content": "center", "align-content": "center" } }, [a2("el-button", { attrs: { type: "primary" }, on: { click: t2.AutomaticUpdate } }, [t2._v("更新")]), t2._v(" "), a2("el-button", { on: { click: t2.AutomaticUpdateCancel } }, [t2._v("取消")])], 1)], 1)], 1), t2._v(" "), a2("div", { staticClass: "pagination" }, [a2("Pagination", { attrs: { total: t2.pageTotal }, on: { handleCurrentChange: t2.handleCurrentChange, handleSizeChange: t2.handleSizeChange } })], 1)], 1);
|
|
}, I = [], $ = a("ce63"), B = a("997d");
|
|
function F(t2) {
|
|
return F = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t3) {
|
|
return typeof t3;
|
|
} : function(t3) {
|
|
return t3 && "function" == typeof Symbol && t3.constructor === Symbol && t3 !== Symbol.prototype ? "symbol" : typeof t3;
|
|
}, F(t2);
|
|
}
|
|
function L(t2, e2) {
|
|
var a2 = Object.keys(t2);
|
|
if (Object.getOwnPropertySymbols) {
|
|
var n2 = Object.getOwnPropertySymbols(t2);
|
|
e2 && (n2 = n2.filter((function(e3) {
|
|
return Object.getOwnPropertyDescriptor(t2, e3).enumerable;
|
|
}))), a2.push.apply(a2, n2);
|
|
}
|
|
return a2;
|
|
}
|
|
function q(t2) {
|
|
for (var e2 = 1; e2 < arguments.length; e2++) {
|
|
var a2 = null != arguments[e2] ? arguments[e2] : {};
|
|
e2 % 2 ? L(Object(a2), true).forEach((function(e3) {
|
|
P(t2, e3, a2[e3]);
|
|
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t2, Object.getOwnPropertyDescriptors(a2)) : L(Object(a2)).forEach((function(e3) {
|
|
Object.defineProperty(t2, e3, Object.getOwnPropertyDescriptor(a2, e3));
|
|
}));
|
|
}
|
|
return t2;
|
|
}
|
|
function P(t2, e2, a2) {
|
|
return (e2 = U(e2)) in t2 ? Object.defineProperty(t2, e2, { value: a2, enumerable: true, configurable: true, writable: true }) : t2[e2] = a2, t2;
|
|
}
|
|
function U(t2) {
|
|
var e2 = H(t2, "string");
|
|
return "symbol" == F(e2) ? e2 : e2 + "";
|
|
}
|
|
function H(t2, e2) {
|
|
if ("object" != F(t2) || !t2) return t2;
|
|
var a2 = t2[Symbol.toPrimitive];
|
|
if (void 0 !== a2) {
|
|
var n2 = a2.call(t2, e2 || "default");
|
|
if ("object" != F(n2)) return n2;
|
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
}
|
|
return ("string" === e2 ? String : Number)(t2);
|
|
}
|
|
var Y = { components: { Pagination: i["a"], amountHistoryDialog: f }, data: function() {
|
|
return { budgetType: b["r"], businessExpenseTypeArr: b["t"], is_show: true, height: "", listLoading: false, listTable: [], chargeItemList: [], categoryArr: [], pageTotal: 0, list: [], query: { pageNumber: 1, pageSize: 10, businessType: 2, budgetYears: [], fsChargesCode: "", fsSubjectNo: "", status: "", investmentBusinessClassifyList: [] }, addDialogShow: false, addDialog: { budgetYear: "", budgetType: "", fsChargesCode: "", fsSubjectNo: "" }, dialogTitle: "新增", rules: { budgetYear: [{ required: true, message: "请选择年份", trigger: "change" }], budgetType: [{ required: true, message: "请选择预算类型", trigger: "change" }], fsChargesCode: [{ required: true, message: "请选择支出项", trigger: "change" }], fsSubjectNo: [{ required: true, message: "请选择科目", trigger: "change" }] }, monthList: [{ label: "月份", value: "预算", show: true }, { label: "1月", name: "januaryAmount", disabled: true, value: "" }, { label: "2月", name: "februaryAmount", disabled: true, value: "" }, { label: "3月", name: "marchAmount", disabled: true, value: "" }, { label: "4月", name: "aprilAmount", disabled: true, value: "" }, { label: "5月", name: "mayAmount", disabled: true, value: "" }, { label: "6月", name: "juneAmount", disabled: true, value: "" }, { label: "7月", name: "julyAmount", disabled: true, value: "" }, { label: "8月", name: "augustAmount", disabled: true, value: "" }, { label: "9月", name: "septemberAmount", disabled: true, value: "" }, { label: "10月", name: "octoberAmount", disabled: true, value: "" }, { label: "11月", name: "novemberAmount", disabled: true, value: "" }, { label: "12月", name: "decemberAmount", disabled: true, value: "" }], importDataBtn: false, noData: "暂无数据", currentYear: "", totalInfo: "", amountHistoryShow: false, historyList: [], AutomaticUpdateShow: false, salesForm: { pwdWord: "" }, salesFormRules: { pwdWord: [{ required: true, message: "请输入您的登录密码", trigger: "blur" }] }, id: "" };
|
|
}, mounted: function() {
|
|
this.currentYear = _()().format("YYYY"), this.query.budgetYears.push(this.currentYear), this.getlistData(), this.getChargeItemsList(), this.findSubjectBy(), this.getList();
|
|
}, created: function() {
|
|
this.getRealHeight();
|
|
}, methods: { alert: function() {
|
|
var t2 = this;
|
|
this.$alert("最新的预算数据如果要同步到项目驾驶舱,请先去预算编制重新将该年份的预算重新“自动生成”且设置为默认值!", "提示", { confirmButtonText: "确定", callback: function(e2) {
|
|
t2.id && (t2.AutomaticUpdateShow = true);
|
|
} });
|
|
}, AutomaticUpdate: function() {
|
|
var t2 = this;
|
|
this.$refs.salesForm.validate((function(e2) {
|
|
e2 && Object(g["D"])({ password: t2.salesForm.pwdWord, id: t2.id, updateBy: t2.$store.state.user.userInfo.memberName, updateById: t2.$store.state.user.userInfo.memberId }).then((function(e3) {
|
|
0 == e3.code ? (t2.$message.success("修改成功"), t2.AutomaticUpdateShow = false) : t2.AutomaticUpdateShow = false;
|
|
}));
|
|
}));
|
|
}, AutomaticUpdateCancel: function() {
|
|
this.AutomaticUpdateShow = false, this.salesForm.pwdWord = "";
|
|
}, amountHistory: function(t2, e2) {
|
|
var a2 = this;
|
|
Object(g["a"])({ budgetBusinessId: t2.id, month: e2 }).then((function(t3) {
|
|
0 == t3.code && (a2.historyList = t3.data.records);
|
|
})), this.amountHistoryShow = true;
|
|
}, resetAddForm: function() {
|
|
this.addDialogShow = false, this.$refs["addDialog"].resetFields(), this.monthList.forEach((function(t2) {
|
|
t2.show || (t2.value = "", t2.disabled = true);
|
|
}));
|
|
}, update: function(t2) {
|
|
var e2 = this;
|
|
this.$refs[t2].validate((function(t3) {
|
|
var a2 = {};
|
|
if (t3) {
|
|
e2.monthList.forEach((function(t4) {
|
|
t4.show || (t4.value ? a2[t4.name] = Number(t4.value).toFixed(2) : a2[t4.name] = 0);
|
|
}));
|
|
var n2 = q(q({}, e2.addDialog), a2);
|
|
n2.businessType = 2, n2.updateBy = e2.$store.state.user.name, n2.companyId = e2.$store.state.companyId, n2.companyName = localStorage.getItem("companyName"), n2.projectUuid = e2.$store.state.community_uuid, n2.projectName = e2.$store.state.community_name, Object(g["j"])(n2).then((function(t4) {
|
|
0 == t4.code && (e2.getlistData(), e2.resetAddForm(), e2.$message.success("更新成功"), e2.alert());
|
|
})).catch((function() {
|
|
e2.resetAddForm();
|
|
}));
|
|
}
|
|
}));
|
|
}, submit: function(t2) {
|
|
var e2 = this;
|
|
this.$refs[t2].validate((function(t3) {
|
|
var a2 = {};
|
|
if (t3) {
|
|
e2.monthList.forEach((function(t4) {
|
|
"月份" !== t4.label && (t4.value ? a2[t4.name] = Number(t4.value).toFixed(2) : a2[t4.name] = 0);
|
|
}));
|
|
var n2 = q(q({}, a2), e2.addDialog);
|
|
n2.businessType = 2, n2.updateBy = e2.$store.state.user.name, n2.companyId = e2.$store.state.companyId, n2.companyName = localStorage.getItem("companyName"), n2.projectUuid = e2.$store.state.community_uuid, n2.projectName = e2.$store.state.community_name, Object(g["f"])(n2).then((function(t4) {
|
|
0 == t4.code ? (e2.resetAddForm(), e2.getlistData(), e2.$message.success("新增成功"), e2.id = t4.data.id, e2.alert()) : e2.resetAddForm();
|
|
})).catch((function() {
|
|
e2.resetAddForm();
|
|
}));
|
|
}
|
|
}));
|
|
}, updateStatus: function(t2) {
|
|
var e2 = this;
|
|
Object(g["g"])({ id: t2.id }).then((function(t3) {
|
|
0 == t3.code && (e2.addDialog = t3.data, 0 == e2.addDialog.status ? e2.addDialog.status = 1 : e2.addDialog.status = 0, Object(g["j"])(e2.addDialog).then((function(t4) {
|
|
0 == t4.code && (e2.$message.success("更新成功"), e2.getlistData(), e2.resetAddForm());
|
|
})));
|
|
}));
|
|
}, dbclick: function(t2) {
|
|
this.monthList[t2].disabled = !this.monthList[t2].disabled;
|
|
}, handleInput: function(t2, e2) {
|
|
var a2 = /^[\d\.]+$/;
|
|
t2 && !a2.test(t2) && (this.monthList[e2].value = t2.replace(/[^\d\.]/g, "")), this.monthList[e2].value > 12 && (this.monthList[e2].value = this.monthList[e2].value.slice(0, 12));
|
|
}, getList: function() {
|
|
var t2 = this, e2 = { projectUuid: this.$store.state.community_uuid, pageSize: -1, pageNumber: -1, companyId: this.$store.state.companyId };
|
|
Object(B["p"])(e2).then((function(e3) {
|
|
t2.list = e3.data.records, console.log(t2.list, "+++");
|
|
}));
|
|
}, add: function() {
|
|
this.dialogTitle = "新增", this.addDialogShow = true;
|
|
}, edit: function(t2) {
|
|
var e2 = this;
|
|
this.dialogTitle = "调整", this.addDialogShow = true, this.id = t2.id, Object(g["g"])({ id: t2.id }).then((function(t3) {
|
|
0 == t3.code && (t3.data.budgetYear = t3.data.budgetYear + "", e2.addDialog = t3.data, e2.monthList.forEach((function(e3) {
|
|
e3.show || (t3.data[e3.name] ? e3.value = t3.data[e3.name] : e3.value = "");
|
|
})));
|
|
}));
|
|
}, getlistData: function() {
|
|
var t2 = this;
|
|
this.listLoading = true, this.query.projectUuid = this.$store.state.community_uuid, Object(g["h"])(this.query).then((function(e2) {
|
|
0 == e2.code && (e2.data.records.forEach((function(t3) {
|
|
t3.januaryAmount = Object(y["g"])(t3.januaryAmount), t3.februaryAmount = Object(y["g"])(t3.februaryAmount), t3.marchAmount = Object(y["g"])(t3.marchAmount), t3.aprilAmount = Object(y["g"])(t3.aprilAmount), t3.mayAmount = Object(y["g"])(t3.mayAmount), t3.juneAmount = Object(y["g"])(t3.juneAmount), t3.julyAmount = Object(y["g"])(t3.julyAmount), t3.augustAmount = Object(y["g"])(t3.augustAmount), t3.septemberAmount = Object(y["g"])(t3.septemberAmount), t3.octoberAmount = Object(y["g"])(t3.octoberAmount), t3.novemberAmount = Object(y["g"])(t3.novemberAmount), t3.decemberAmount = Object(y["g"])(t3.decemberAmount);
|
|
})), t2.listTable = e2.data.records, t2.pageTotal = e2.data.rowsCount, 1 == t2.query.budgetYears.length && t2.query.budgetYears[0] == t2.currentYear && 0 == t2.listTable.length ? t2.noData = "请选择年份后查询数据" : t2.noData = "暂无数据");
|
|
})), this.getTotal(), this.listLoading = false;
|
|
}, getTotal: function() {
|
|
var t2 = this;
|
|
this.query.projectUuid = this.$store.state.community_uuid, Object(g["i"])(this.query).then((function(e2) {
|
|
0 == e2.code && (t2.totalInfo = e2.data);
|
|
}));
|
|
}, formatNum: function(t2) {
|
|
return t2 ? Object(y["g"])(t2, 2) : 0 != t2 ? "-" : 0;
|
|
}, getChargeItemsList: function() {
|
|
var t2 = this, e2 = { pageNumber: -1, pageSize: -1, projectUuid: this.$store.state.community_uuid };
|
|
Object($["b"])(e2).then((function(e3) {
|
|
t2.chargeItemList = e3.data.records;
|
|
}));
|
|
}, findSubjectBy: function() {
|
|
var t2 = this;
|
|
Object(h["o"])({ projectUuid: this.$store.state.community_uuid, incomeClassify: 2, subjectType: 4 }).then((function(e2) {
|
|
0 == e2.code && (t2.categoryArr = e2.data);
|
|
}));
|
|
}, onSearch: function() {
|
|
this.query.pageNumber = 1, this.getlistData();
|
|
}, resetForm: function(t2) {
|
|
this.$refs[t2].resetFields(), this.query.pageNumber = 1, this.getlistData();
|
|
}, handleSizeChange: function(t2) {
|
|
this.query.pageSize = t2.limit, this.query.pageNumber = 1, this.getlistData();
|
|
}, handleCurrentChange: function(t2) {
|
|
this.query.pageNumber = t2.currentPage, this.getlistData();
|
|
}, upAndDown: function() {
|
|
this.is_show ? this.$refs.box.style.height = "80px" : this.$refs.box.style.height = this.height, this.is_show = !this.is_show;
|
|
}, getRealHeight: function() {
|
|
this.$nextTick((function() {
|
|
this.height = this.$refs.form_box.offsetHeight + "px", this.$refs.box.style.height = this.height;
|
|
}));
|
|
}, downloadTem: function() {
|
|
var t2 = "/static/template/operatingBudgetTemplate.xlsx", e2 = "业务预算导入模板.xlsx", a2 = document.createElement("a");
|
|
a2.setAttribute("type", "download"), a2.setAttribute("download", e2), a2.style.display = "none", a2.href = t2, console.log(a2, "elink++++"), document.body.appendChild(a2), a2.click(), document.body.removeChild(a2);
|
|
}, importData: function(t2) {
|
|
var e2 = this, a2 = t2.file, n2 = a2.size / 1024 / 1024 < 20, r2 = a2.name.lastIndexOf("."), o2 = a2.name.length, s2 = a2.name.substring(r2 + 1, o2);
|
|
if ("xls" == s2 || "xlsx" == s2) if (n2) {
|
|
var i2 = new FormData();
|
|
this.fileName = a2.name, i2.append("file", a2, a2.name);
|
|
var u2 = "".concat(2, "/", this.$store.state.companyId, "/").concat(localStorage.getItem("companyName"), "/").concat(this.$store.state.community_uuid, "/").concat(this.$store.state.community_name, "/").concat(this.$store.state.user.name);
|
|
this.importDataBtn = true, Object(g["u"])(i2, u2).then((function(t3) {
|
|
console.log(t3, "response");
|
|
var a3 = t3.headers, n3 = t3.data;
|
|
if (a3.count) {
|
|
var r3 = JSON.parse(a3.count);
|
|
0 == r3.code ? r3.errorCount > 0 ? (e2.$message({ message: "上传结果:总条数".concat(r3.totalCount, "条,成功").concat(r3.successCount, "条,失败").concat(r3.errorCount, "条。"), type: "warning" }), e2.downloadImportDetailes(n3), e2.query.pageNumber = 1, e2.getlistData()) : (e2.$message({ message: "导入数据成功!", type: "success" }), e2.query.pageNumber = 1, e2.getlistData(), e2.alert()) : e2.$message({ message: "数据导入失败,请检查模板数据格式是否规范!", type: "error" }), e2.importDataBtn = false;
|
|
} else e2.$message({ message: "数据导入失败,请检查模板数据格式是否规范!", type: "error" }), e2.importDataBtn = false;
|
|
})).catch((function() {
|
|
e2.$message({ message: "数据导入失败,请检查模板数据格式是否规范!", type: "error" }), e2.importDataBtn = false;
|
|
}));
|
|
} else this.$message("上传文件大小不能超过20M!");
|
|
else this.$message("只能上传Excel文件!");
|
|
}, downloadImportDetailes: function(t2) {
|
|
var e2 = "application/vnd.ms-excel", a2 = new Blob([t2], { type: e2 }), n2 = "业务预算导入失败信息.xls";
|
|
if (window.navigator.msSaveOrOpenBlob) navigator.msSaveBlob(a2);
|
|
else {
|
|
var r2 = document.createElement("a");
|
|
r2.download = n2, r2.style.display = "none", r2.href = URL.createObjectURL(a2), document.body.appendChild(r2), r2.click(), document.body.removeChild(r2);
|
|
}
|
|
}, teanslateResBlob: function(t2) {
|
|
var e2 = this, a2 = new FileReader();
|
|
a2.readAsText(t2), a2.onload = function() {
|
|
var t3 = this.result;
|
|
t3 && (t3 = JSON.parse(t3), -1 === t3.code && e2.$message({ message: t3.message, type: "error" }));
|
|
};
|
|
}, headClass: function() {
|
|
return "text-align:center;background:#FAFAFA;";
|
|
} } }, E = Y, M = (a("f105"), Object(p["a"])(E, D, I, false, null, "60bdd8d0", null)), R = M.exports, z = { components: { revenueEstimates: N, expenditureBudget: R }, data: function() {
|
|
return { activeName: "revenueEstimates" };
|
|
}, mounted: function() {
|
|
}, methods: { handleClick: function(t2) {
|
|
var e2 = t2.paneName;
|
|
this.activeName = e2;
|
|
} } }, W = z, V = Object(p["a"])(W, n, r, false, null, null, null);
|
|
e["default"] = V.exports;
|
|
}, 9192: function(t, e, a) {
|
|
"use strict";
|
|
a.d(e, "z", (function() {
|
|
return r;
|
|
})), a.d(e, "b", (function() {
|
|
return o;
|
|
})), a.d(e, "j", (function() {
|
|
return s;
|
|
})), a.d(e, "l", (function() {
|
|
return i;
|
|
})), a.d(e, "v", (function() {
|
|
return u;
|
|
})), a.d(e, "y", (function() {
|
|
return l;
|
|
})), a.d(e, "A", (function() {
|
|
return c;
|
|
})), a.d(e, "a", (function() {
|
|
return d;
|
|
})), a.d(e, "q", (function() {
|
|
return p;
|
|
})), a.d(e, "o", (function() {
|
|
return m;
|
|
})), a.d(e, "p", (function() {
|
|
return f;
|
|
})), a.d(e, "u", (function() {
|
|
return b;
|
|
})), a.d(e, "s", (function() {
|
|
return h;
|
|
})), a.d(e, "t", (function() {
|
|
return g;
|
|
})), a.d(e, "e", (function() {
|
|
return y;
|
|
})), a.d(e, "B", (function() {
|
|
return v;
|
|
})), a.d(e, "n", (function() {
|
|
return _;
|
|
})), a.d(e, "w", (function() {
|
|
return j;
|
|
})), a.d(e, "k", (function() {
|
|
return w;
|
|
})), a.d(e, "x", (function() {
|
|
return O;
|
|
})), a.d(e, "h", (function() {
|
|
return A;
|
|
})), a.d(e, "g", (function() {
|
|
return S;
|
|
})), a.d(e, "m", (function() {
|
|
return C;
|
|
})), a.d(e, "f", (function() {
|
|
return k;
|
|
})), a.d(e, "r", (function() {
|
|
return x;
|
|
})), a.d(e, "i", (function() {
|
|
return T;
|
|
})), a.d(e, "d", (function() {
|
|
return N;
|
|
})), a.d(e, "c", (function() {
|
|
return D;
|
|
})), a.d(e, "C", (function() {
|
|
return I;
|
|
}));
|
|
var n = a("b775");
|
|
function r(t2) {
|
|
return Object(n["a"])({ url: "/appproject/PropertyCompany/pageList", method: "POST", data: t2 });
|
|
}
|
|
function o(t2) {
|
|
return Object(n["a"])({ url: "/appproject/PropertyCompany/create", method: "POST", data: t2 });
|
|
}
|
|
function s(t2) {
|
|
return Object(n["a"])({ url: "/appproject/PropertyCompany/update", method: "POST", data: t2 });
|
|
}
|
|
function i(t2) {
|
|
return Object(n["a"])({ url: "/appproject/PropertyCompany/findCompanyByCode", method: "POST", data: t2 });
|
|
}
|
|
function u(t2) {
|
|
return Object(n["a"])({ url: "/appproject/PropertyCompany/pageListByCode", method: "POST", data: t2 });
|
|
}
|
|
function l(t2) {
|
|
return Object(n["a"])({ url: "/appproject/OrderInfo/list", method: "POST", data: t2 });
|
|
}
|
|
function c(t2) {
|
|
return Object(n["a"])({ url: "/appproject/StaffEvaluate/listStaff", method: "POST", data: t2 });
|
|
}
|
|
function d(t2) {
|
|
return Object(n["a"])({ url: "/appproject/WorkOrder/listWork", method: "POST", data: t2 });
|
|
}
|
|
function p(t2) {
|
|
return Object(n["a"])({ url: "/project/FsCharges/create", method: "POST", data: t2 });
|
|
}
|
|
function m(t2) {
|
|
return Object(n["a"])({ url: "/project/FsCharges/findSubjectByUuid", method: "POST", data: t2 });
|
|
}
|
|
function f(t2) {
|
|
return Object(n["a"])({ url: "/project/FsCharges/findSubjectByUuid2", method: "POST", data: t2 });
|
|
}
|
|
function b(t2) {
|
|
return Object(n["a"])({ url: "/project/FsCharges/update", method: "POST", data: t2 });
|
|
}
|
|
function h(t2) {
|
|
return Object(n["a"])({ url: "/project/FsCharges/delete", method: "POST", data: t2 });
|
|
}
|
|
function g(t2) {
|
|
return Object(n["a"])({ url: "/project/FsCharges/resume", method: "POST", data: t2 });
|
|
}
|
|
function y(t2) {
|
|
return Object(n["a"])({ url: "/project/FsCharges/pageList", method: "POST", data: t2 });
|
|
}
|
|
function v(t2) {
|
|
return Object(n["a"])({ url: "/project/FsCharges/updateRel", method: "POST", data: t2 });
|
|
}
|
|
function _(t2) {
|
|
return Object(n["a"])({ url: "/project/FsCharges/findById", method: "POST", data: t2 });
|
|
}
|
|
function j(t2, e2) {
|
|
return Object(n["a"])({ url: "/project/FsCharges/importExcel" + e2, method: "post", isReturnResponse: true, responseType: "blob", headers: { "Content-Type": "multipart/form-data;charset=UTF-8" }, data: t2 });
|
|
}
|
|
function w(t2) {
|
|
return Object(n["a"])({ url: "/appproject/MemberEntryRecord/entryAndQuit", method: "POST", data: t2 });
|
|
}
|
|
function O(t2) {
|
|
return Object(n["a"])({ url: "/appproject/MemberEntryRecord/pageList", method: "POST", data: t2 });
|
|
}
|
|
function A(t2) {
|
|
return Object(n["a"])({ url: "/appproject/MemberEntryRecord/delete", method: "POST", data: t2 });
|
|
}
|
|
function S(t2) {
|
|
return Object(n["a"])({ url: "/project/FsCharges/pageList/company", method: "POST", data: t2 });
|
|
}
|
|
function C(t2) {
|
|
return Object(n["a"])({ url: "/project/FsCharges/findParkCharge", method: "POST", data: t2 });
|
|
}
|
|
function k(t2) {
|
|
return Object(n["a"])({ url: "/project/FsCharges/pageListV2", method: "POST", data: t2 });
|
|
}
|
|
function x(t2) {
|
|
return Object(n["a"])({ url: "/project/FsCharges/copy", method: "POST", data: t2 });
|
|
}
|
|
function T(t2) {
|
|
return Object(n["a"])({ url: "/project/FsCharges/deleteFsCharges", method: "POST", data: t2 });
|
|
}
|
|
function N(t2) {
|
|
return Object(n["a"])({ url: "/appproject/ChargePriceTemplate/pageList", method: "POST", data: t2 });
|
|
}
|
|
function D(t2) {
|
|
return Object(n["a"])({ url: "/appproject/ChargePriceTemplate/download", method: "POST", data: t2 });
|
|
}
|
|
function I(t2) {
|
|
return Object(n["a"])({ url: "/appproject/VideoImageCallback/pageList", method: "POST", data: t2 });
|
|
}
|
|
}, "91a1": function(t, e, a) {
|
|
"use strict";
|
|
a("64a1");
|
|
}, "997d": function(t, e, a) {
|
|
"use strict";
|
|
a.d(e, "p", (function() {
|
|
return r;
|
|
})), a.d(e, "g", (function() {
|
|
return o;
|
|
})), a.d(e, "i", (function() {
|
|
return s;
|
|
})), a.d(e, "A", (function() {
|
|
return i;
|
|
})), a.d(e, "m", (function() {
|
|
return u;
|
|
})), a.d(e, "a", (function() {
|
|
return l;
|
|
})), a.d(e, "l", (function() {
|
|
return c;
|
|
})), a.d(e, "h", (function() {
|
|
return d;
|
|
})), a.d(e, "B", (function() {
|
|
return p;
|
|
})), a.d(e, "d", (function() {
|
|
return m;
|
|
})), a.d(e, "e", (function() {
|
|
return f;
|
|
})), a.d(e, "k", (function() {
|
|
return b;
|
|
})), a.d(e, "b", (function() {
|
|
return h;
|
|
})), a.d(e, "c", (function() {
|
|
return g;
|
|
})), a.d(e, "j", (function() {
|
|
return y;
|
|
})), a.d(e, "o", (function() {
|
|
return v;
|
|
})), a.d(e, "s", (function() {
|
|
return _;
|
|
})), a.d(e, "q", (function() {
|
|
return j;
|
|
})), a.d(e, "t", (function() {
|
|
return w;
|
|
})), a.d(e, "f", (function() {
|
|
return O;
|
|
})), a.d(e, "C", (function() {
|
|
return A;
|
|
})), a.d(e, "D", (function() {
|
|
return S;
|
|
})), a.d(e, "r", (function() {
|
|
return C;
|
|
})), a.d(e, "v", (function() {
|
|
return k;
|
|
})), a.d(e, "n", (function() {
|
|
return x;
|
|
})), a.d(e, "y", (function() {
|
|
return T;
|
|
})), a.d(e, "z", (function() {
|
|
return N;
|
|
})), a.d(e, "w", (function() {
|
|
return D;
|
|
})), a.d(e, "x", (function() {
|
|
return I;
|
|
})), a.d(e, "E", (function() {
|
|
return $;
|
|
})), a.d(e, "u", (function() {
|
|
return B;
|
|
}));
|
|
var n = a("b775");
|
|
function r(t2) {
|
|
return Object(n["a"])({ url: "/appproject/Investment/pageList", method: "post", data: t2 });
|
|
}
|
|
function o(t2) {
|
|
return Object(n["a"])({ url: "/appproject/Investment/create", method: "post", data: t2 });
|
|
}
|
|
function s(t2) {
|
|
return Object(n["a"])({ url: "/appproject/Investment/delete", method: "post", data: t2 });
|
|
}
|
|
function i(t2) {
|
|
return Object(n["a"])({ url: "/appproject/Investment/update", method: "post", data: t2 });
|
|
}
|
|
function u(t2) {
|
|
return Object(n["a"])({ url: "/appproject/supplier/listAccountByProjectUuid", method: "post", data: t2 });
|
|
}
|
|
function l(t2) {
|
|
return Object(n["a"])({ url: "/appproject/InvestmentSubscribe/pageList", method: "post", data: t2 });
|
|
}
|
|
function c(t2, e2) {
|
|
return Object(n["a"])({ url: "/appproject/InvestmentSubscribe/importExcel/".concat(e2), method: "post", isReturnResponse: true, responseType: "blob", headers: { "Content-Type": "multipart/form-data;charset=UTF-8" }, data: t2 });
|
|
}
|
|
function d(t2) {
|
|
return Object(n["a"])({ url: "/appproject/InvestmentSubscribe/create", method: "post", data: t2 });
|
|
}
|
|
function p(t2) {
|
|
return Object(n["a"])({ url: "/appproject/InvestmentSubscribe/update", method: "post", data: t2 });
|
|
}
|
|
function m(t2) {
|
|
return Object(n["a"])({ url: "/appproject/InvestmentSubscribe/batchAbandon", method: "post", data: t2 });
|
|
}
|
|
function f(t2) {
|
|
return Object(n["a"])({ url: "/appproject/InvestmentSubscribe/batchApply", method: "post", data: t2 });
|
|
}
|
|
function b(t2) {
|
|
return Object(n["a"])({ url: "/appproject/FinanceApprove/findByProjectUuidAndTypeCode", method: "post", data: t2 });
|
|
}
|
|
function h(t2) {
|
|
return Object(n["a"])({ url: "/appproject/InvestmentPlan/pageList", method: "post", data: t2 });
|
|
}
|
|
function g(t2) {
|
|
return Object(n["a"])({ url: "/appproject/InvestmentPlan/approve", method: "post", data: t2 });
|
|
}
|
|
function y(t2) {
|
|
return Object(n["a"])({ url: "/appproject/InvestmentPlan/findById", method: "post", data: t2 });
|
|
}
|
|
function v(t2) {
|
|
return Object(n["a"])({ url: "/appproject/InvestmentOrder/pageList", method: "post", data: t2 });
|
|
}
|
|
function _(t2) {
|
|
return Object(n["a"])({ url: "/appproject/InvestmentOrder/pageList", method: "post", data: t2 });
|
|
}
|
|
function j(t2) {
|
|
return Object(n["a"])({ url: "/appproject/InvestmentPaymentSubscribe/create", method: "post", data: t2 });
|
|
}
|
|
function w(t2) {
|
|
return Object(n["a"])({ url: "/appproject/InvestmentOrder/total", method: "post", data: t2 });
|
|
}
|
|
function O(t2) {
|
|
return Object(n["a"])({ url: "/appproject/InvestmentOrder/cancelOrder", method: "post", data: t2 });
|
|
}
|
|
function A(t2) {
|
|
return Object(n["a"])({ url: "/appproject/InvestmentOrder/updateInvoiceAmount", method: "post", data: t2 });
|
|
}
|
|
function S(t2) {
|
|
return Object(n["a"])({ url: "/appproject/InvestmentOrder/updatePaymentInfo", method: "post", data: t2 });
|
|
}
|
|
function C(t2) {
|
|
return Object(n["a"])({ url: "/appproject/InvestmentOrder/findById", method: "post", data: t2 });
|
|
}
|
|
function k(t2) {
|
|
return Object(n["a"])({ url: "/appproject/InvestmentOrderPaymentRecord/pageList", method: "post", data: t2 });
|
|
}
|
|
function x(t2) {
|
|
return Object(n["a"])({ url: "/appproject/InvestmentOrderPaymentRecord/listTotal", method: "post", data: t2 });
|
|
}
|
|
function T(t2) {
|
|
return Object(n["a"])({ url: "/appproject/InvestmentPaymentSubscribe/pageList", method: "post", data: t2 });
|
|
}
|
|
function N(t2) {
|
|
return Object(n["a"])({ url: "/appproject/InvestmentPaymentSubscribe/paymentConfirm", method: "post", data: t2 });
|
|
}
|
|
function D(t2) {
|
|
return Object(n["a"])({ url: "/appproject/InvestmentOrderPaymentRecord/paymentConfirm", method: "post", data: t2 });
|
|
}
|
|
function I(t2) {
|
|
return Object(n["a"])({ url: "/appproject/InvestmentOrderPaymentRecord/statusRollBack", method: "post", data: t2 });
|
|
}
|
|
function $(t2) {
|
|
return Object(n["a"])({ url: "/appproject/InvestmentOrderPaymentRecord/updateReceiveTime", method: "post", data: t2 });
|
|
}
|
|
function B(t2) {
|
|
return Object(n["a"])({ url: "/appproject/InvestmentOrderPaymentRecord/export", method: "post", responseType: "blob", data: t2 });
|
|
}
|
|
}, b2ce: function(t, e, a) {
|
|
}, ce63: function(t, e, a) {
|
|
"use strict";
|
|
a.d(e, "c", (function() {
|
|
return r;
|
|
})), a.d(e, "g", (function() {
|
|
return o;
|
|
})), a.d(e, "i", (function() {
|
|
return s;
|
|
})), a.d(e, "o", (function() {
|
|
return i;
|
|
})), a.d(e, "b", (function() {
|
|
return u;
|
|
})), a.d(e, "k", (function() {
|
|
return l;
|
|
})), a.d(e, "h", (function() {
|
|
return c;
|
|
})), a.d(e, "j", (function() {
|
|
return d;
|
|
})), a.d(e, "p", (function() {
|
|
return p;
|
|
})), a.d(e, "d", (function() {
|
|
return m;
|
|
})), a.d(e, "e", (function() {
|
|
return f;
|
|
})), a.d(e, "f", (function() {
|
|
return b;
|
|
})), a.d(e, "m", (function() {
|
|
return h;
|
|
})), a.d(e, "l", (function() {
|
|
return g;
|
|
})), a.d(e, "n", (function() {
|
|
return y;
|
|
})), a.d(e, "a", (function() {
|
|
return v;
|
|
}));
|
|
var n = a("b775");
|
|
function r(t2) {
|
|
return Object(n["a"])({ url: "/project/ChargePrice/treeList", method: "post", data: t2 });
|
|
}
|
|
function o(t2) {
|
|
return Object(n["a"])({ url: "/project/ChargePrice/create", method: "post", data: t2 });
|
|
}
|
|
function s(t2) {
|
|
return Object(n["a"])({ url: "/project/ChargePrice/delete", method: "post", data: t2 });
|
|
}
|
|
function i(t2) {
|
|
return Object(n["a"])({ url: "/project/ChargePrice/update", method: "post", data: t2 });
|
|
}
|
|
function u(t2) {
|
|
return Object(n["a"])({ url: "/project/ChargePrice/pageList", method: "post", data: t2 });
|
|
}
|
|
function l(t2) {
|
|
return Object(n["a"])({ url: "/appproject/ChargeFormula/getListByCategoryCode", method: "post", data: t2 });
|
|
}
|
|
function c(t2) {
|
|
return Object(n["a"])({ url: "/appproject/ChargesTemplate/create", method: "post", data: t2 });
|
|
}
|
|
function d(t2) {
|
|
return Object(n["a"])({ url: "/appproject/ChargesTemplate/delete", method: "post", data: t2 });
|
|
}
|
|
function p(t2) {
|
|
return Object(n["a"])({ url: "/appproject/ChargesTemplate/update", method: "post", data: t2 });
|
|
}
|
|
function m(t2) {
|
|
return Object(n["a"])({ url: "/appproject/ChargesTemplate/pageList", method: "post", data: t2 });
|
|
}
|
|
function f(t2) {
|
|
return Object(n["a"])({ url: "/appproject/ChargesTemplate/findById", method: "post", data: t2 });
|
|
}
|
|
function b(t2) {
|
|
return Object(n["a"])({ url: "/appproject/ChargesTemplate/useBatch", method: "post", data: t2 });
|
|
}
|
|
function h(t2) {
|
|
return Object(n["a"])({ url: "/appproject/ChargesTemplate/getListByProjectUuid", method: "post", data: t2 });
|
|
}
|
|
function g(t2) {
|
|
return Object(n["a"])({ url: "/appproject/ChargesTemplate/houseChargeTemplatePageList", method: "post", data: t2 });
|
|
}
|
|
function y(t2) {
|
|
return Object(n["a"])({ url: "/appproject/ChargesTemplate/editHouseTemplate", method: "post", data: t2 });
|
|
}
|
|
function v(t2) {
|
|
return Object(n["a"])({ url: "/appproject/ChargesTemplate/batchDelete", method: "post", data: t2 });
|
|
}
|
|
}, f105: function(t, e, a) {
|
|
"use strict";
|
|
a("5661");
|
|
} }]);
|