380 lines
24 KiB
JavaScript
380 lines
24 KiB
JavaScript
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["chunk-5e4de30a"], { "12bd": function(t, e, a) {
|
|
}, "436c": function(t, e, a) {
|
|
"use strict";
|
|
a("ba77");
|
|
}, "568f": function(t, e, a) {
|
|
"use strict";
|
|
a("f3d2");
|
|
}, "692f": function(t, e, a) {
|
|
"use strict";
|
|
a("12bd");
|
|
}, "9ae1": 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: "contentStys" }, [a2("el-tabs", { attrs: { type: "border-card" }, on: { "tab-click": t2.handleClick }, model: { value: t2.activeName, callback: function(e3) {
|
|
t2.activeName = e3;
|
|
}, expression: "activeName" } }, [a2("el-tab-pane", { attrs: { label: "利润表", name: "profit" } }, [a2("profitData")], 1), t2._v(" "), a2("el-tab-pane", { attrs: { label: "现金流量表", name: "cash" } }, [a2("cashData")], 1), t2._v(" "), a2("el-tab-pane", { attrs: { label: "资产及负债表", name: "debt" } }, [a2("debtData")], 1)], 1)], 1);
|
|
}, r = [], i = function() {
|
|
var t2 = this, e2 = t2.$createElement, a2 = t2._self._c || e2;
|
|
return a2("div", [a2("div", [a2("el-form", { ref: "query", attrs: { model: t2.query } }, [a2("el-row", { attrs: { gutter: 20 } }, [a2("el-col", { attrs: { span: 4 } }, [a2("el-form-item", { attrs: { prop: "year" } }, [a2("el-date-picker", { staticStyle: { width: "100%" }, attrs: { type: "year", format: "yyyy", "value-format": "yyyy", placeholder: "选择年", clearable: false, editable: false, "picker-options": t2.pickerOptions }, on: { change: t2.onSearch }, model: { value: t2.query.year, callback: function(e3) {
|
|
t2.$set(t2.query, "year", e3);
|
|
}, expression: "query.year" } })], 1)], 1)], 1)], 1)], 1), t2._v(" "), a2("div", [a2("div", { staticClass: "headerTop" }, [a2("span", { staticClass: "title" }, [t2._v("利润表列表【"), a2("b", [t2._v(t2._s(t2.query.year))]), t2._v("】")])]), t2._v(" "), a2("div", [a2("el-table", { directives: [{ name: "loading", rawName: "v-loading", value: t2.listLoading, expression: "listLoading" }], attrs: { "header-cell-style": { background: "#FAFAFA" }, data: t2.listTable, align: "center", border: "" } }, [a2("el-table-column", { attrs: { align: "center", label: "科目", "min-width": "160", "show-overflow-tooltip": "", fixed: "" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [t2._v(t2._s(e3.row.name || "-"))];
|
|
} }]) }), t2._v(" "), t2._l(12, (function(e3) {
|
|
return a2("el-table-column", { key: e3, attrs: { align: "center", label: e3 + "月", width: "160", "show-overflow-tooltip": "" }, scopedSlots: t2._u([{ key: "default", fn: function(n2) {
|
|
return [n2.row.isEdit ? a2("div", [a2("el-input-number", { staticStyle: { width: "100%" }, attrs: { size: "small", "controls-position": "right", precision: 2 }, model: { value: n2.row.monthData[e3 - 1].amount, callback: function(a3) {
|
|
t2.$set(n2.row.monthData[e3 - 1], "amount", a3);
|
|
}, expression: "scope.row.monthData[item - 1].amount" } })], 1) : a2("div", { staticStyle: { "text-align": "right" } }, [t2._v(t2._s(t2._f("formatMoney")(n2.row.monthData[e3 - 1].amount)))])];
|
|
} }], null, true) });
|
|
})), t2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "操作", width: "100", fixed: "right" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [e3.row.isEdit ? t2._e() : a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text", size: "mini" }, on: { click: function(a3) {
|
|
return t2.editClick(e3.row);
|
|
} } }, [t2._v("修改")]), t2._v(" "), e3.row.isEdit ? a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text", size: "mini" }, on: { click: function(a3) {
|
|
return t2.saveClick(e3.row);
|
|
} } }, [t2._v("保存")]) : t2._e(), t2._v(" "), e3.row.isEdit ? a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text", size: "mini" }, on: { click: function(a3) {
|
|
return t2.escClick(e3.row);
|
|
} } }, [t2._v("取消")]) : t2._e()];
|
|
} }]) })], 2)], 1)])]);
|
|
}, o = [], s = (a("9f60"), a("94f0"), a("0c84"), a("2843"), a("a450"), a("4057"), a("cd05"));
|
|
function l(t2, e2) {
|
|
var a2 = "undefined" != typeof Symbol && t2[Symbol.iterator] || t2["@@iterator"];
|
|
if (!a2) {
|
|
if (Array.isArray(t2) || (a2 = c(t2)) || e2 && t2 && "number" == typeof t2.length) {
|
|
a2 && (t2 = a2);
|
|
var n2 = 0, r2 = function() {
|
|
};
|
|
return { s: r2, n: function() {
|
|
return n2 >= t2.length ? { done: true } : { done: false, value: t2[n2++] };
|
|
}, e: function(t3) {
|
|
throw t3;
|
|
}, f: r2 };
|
|
}
|
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
}
|
|
var i2, o2 = true, s2 = false;
|
|
return { s: function() {
|
|
a2 = a2.call(t2);
|
|
}, n: function() {
|
|
var t3 = a2.next();
|
|
return o2 = t3.done, t3;
|
|
}, e: function(t3) {
|
|
s2 = true, i2 = t3;
|
|
}, f: function() {
|
|
try {
|
|
o2 || null == a2.return || a2.return();
|
|
} finally {
|
|
if (s2) throw i2;
|
|
}
|
|
} };
|
|
}
|
|
function c(t2, e2) {
|
|
if (t2) {
|
|
if ("string" == typeof t2) return u(t2, e2);
|
|
var a2 = {}.toString.call(t2).slice(8, -1);
|
|
return "Object" === a2 && t2.constructor && (a2 = t2.constructor.name), "Map" === a2 || "Set" === a2 ? Array.from(t2) : "Arguments" === a2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a2) ? u(t2, e2) : void 0;
|
|
}
|
|
}
|
|
function u(t2, e2) {
|
|
(null == e2 || e2 > t2.length) && (e2 = t2.length);
|
|
for (var a2 = 0, n2 = Array(e2); a2 < e2; a2++) n2[a2] = t2[a2];
|
|
return n2;
|
|
}
|
|
var d = { data: function() {
|
|
return { listLoading: false, listTable: [], setList: [], query: { year: "" }, pickerOptions: { disabledDate: function(t2) {
|
|
return t2.getFullYear() < 2e3 || t2.getFullYear() > (/* @__PURE__ */ new Date()).getFullYear();
|
|
} }, saveData: {} };
|
|
}, created: function() {
|
|
this.query.year = (/* @__PURE__ */ new Date()).getFullYear().toString();
|
|
}, mounted: function() {
|
|
this.getlistData();
|
|
}, methods: { getlistData: function() {
|
|
var t2 = this;
|
|
this.listLoading = true, this.query.companyId = JSON.parse(localStorage.getItem("companyInfo")).osId, Object(s["a"])(this.query).then((function(e2) {
|
|
if (t2.listTable = [{ name: "主营业务收入", value: "subject100", isEdit: false, monthData: [] }, { name: "营业利润", value: "subject101", isEdit: false, monthData: [] }, { name: "净利润", value: "subject102", isEdit: false, monthData: [] }], 0 == e2.code) {
|
|
for (var a2 = 0; a2 < 3; a2++) if (e2.data && e2.data["subject10".concat(a2)]) t2.listTable[a2].monthData = JSON.parse(e2.data["subject10".concat(a2)]);
|
|
else for (var n2 = 0; n2 < 12; n2++) t2.listTable[a2].monthData.push({ amount: 0, month: n2 + 1 });
|
|
t2.listLoading = false;
|
|
} else t2.listLoading = false;
|
|
})).catch((function(e2) {
|
|
t2.listLoading = false;
|
|
}));
|
|
}, editClick: function(t2) {
|
|
this.saveData = JSON.parse(JSON.stringify(t2)), t2.isEdit = true;
|
|
}, escClick: function(t2) {
|
|
t2.monthData = this.saveData.monthData, t2.isEdit = false;
|
|
}, saveClick: function(t2) {
|
|
var e2, a2 = this, n2 = true, r2 = l(t2.monthData);
|
|
try {
|
|
for (r2.s(); !(e2 = r2.n()).done; ) {
|
|
var i2 = e2.value;
|
|
void 0 != i2.amount && null != i2.amount || (this.$message("金额不能为空,请检查!"), n2 = false);
|
|
}
|
|
} catch (u2) {
|
|
r2.e(u2);
|
|
} finally {
|
|
r2.f();
|
|
}
|
|
if (n2) {
|
|
var o2 = JSON.parse(window.localStorage.getItem("memberInfor")), c2 = { companyId: JSON.parse(window.localStorage.getItem("companyInfo")).osId, updaterId: o2.id, updaterName: o2.name, year: this.query.year };
|
|
c2["".concat(t2.value)] = JSON.stringify(t2.monthData), Object(s["d"])(c2).then((function(t3) {
|
|
a2.$message({ type: "success", message: "设置成功!" }), a2.getlistData();
|
|
}));
|
|
}
|
|
}, onSearch: function(t2) {
|
|
t2 && this.getlistData();
|
|
} } }, f = d, m = (a("b4e5"), a("829d")), v = Object(m["a"])(f, i, o, false, null, null, null), y = v.exports, p = function() {
|
|
var t2 = this, e2 = t2.$createElement, a2 = t2._self._c || e2;
|
|
return a2("div", [a2("div", [a2("el-form", { ref: "query", attrs: { model: t2.query } }, [a2("el-row", { attrs: { gutter: 20 } }, [a2("el-col", { attrs: { span: 4 } }, [a2("el-form-item", { attrs: { prop: "year" } }, [a2("el-date-picker", { staticStyle: { width: "100%" }, attrs: { type: "year", format: "yyyy", "value-format": "yyyy", placeholder: "选择年", clearable: false, editable: false, "picker-options": t2.pickerOptions }, on: { change: t2.onSearch }, model: { value: t2.query.year, callback: function(e3) {
|
|
t2.$set(t2.query, "year", e3);
|
|
}, expression: "query.year" } })], 1)], 1)], 1)], 1)], 1), t2._v(" "), a2("div", [a2("div", { staticClass: "headerTop" }, [a2("span", { staticClass: "title" }, [t2._v("现金流量表列表【"), a2("b", [t2._v(t2._s(t2.query.year))]), t2._v("】")])]), t2._v(" "), a2("div", [a2("el-table", { directives: [{ name: "loading", rawName: "v-loading", value: t2.listLoading, expression: "listLoading" }], attrs: { "header-cell-style": { background: "#FAFAFA" }, data: t2.listTable, align: "center", border: "" } }, [a2("el-table-column", { attrs: { align: "center", label: "科目", "min-width": "230", "show-overflow-tooltip": "", fixed: "" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [t2._v(t2._s(e3.row.name || "-"))];
|
|
} }]) }), t2._v(" "), t2._l(12, (function(e3) {
|
|
return a2("el-table-column", { key: e3, attrs: { align: "center", label: e3 + "月", width: "160", "show-overflow-tooltip": "" }, scopedSlots: t2._u([{ key: "default", fn: function(n2) {
|
|
return [n2.row.isEdit ? a2("div", [a2("el-input-number", { staticStyle: { width: "100%" }, attrs: { size: "small", "controls-position": "right", precision: 2 }, model: { value: n2.row.monthData[e3 - 1].amount, callback: function(a3) {
|
|
t2.$set(n2.row.monthData[e3 - 1], "amount", a3);
|
|
}, expression: "scope.row.monthData[item - 1].amount" } })], 1) : a2("div", { staticStyle: { "text-align": "right" } }, [t2._v(t2._s(t2._f("formatMoney")(n2.row.monthData[e3 - 1].amount)))])];
|
|
} }], null, true) });
|
|
})), t2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "操作", width: "100", fixed: "right" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [e3.row.isEdit ? t2._e() : a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text", size: "mini" }, on: { click: function(a3) {
|
|
return t2.editClick(e3.row);
|
|
} } }, [t2._v("修改")]), t2._v(" "), e3.row.isEdit ? a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text", size: "mini" }, on: { click: function(a3) {
|
|
return t2.saveClick(e3.row);
|
|
} } }, [t2._v("保存")]) : t2._e(), t2._v(" "), e3.row.isEdit ? a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text", size: "mini" }, on: { click: function(a3) {
|
|
return t2.escClick(e3.row);
|
|
} } }, [t2._v("取消")]) : t2._e()];
|
|
} }]) })], 2)], 1)])]);
|
|
}, h = [];
|
|
function b(t2, e2) {
|
|
var a2 = "undefined" != typeof Symbol && t2[Symbol.iterator] || t2["@@iterator"];
|
|
if (!a2) {
|
|
if (Array.isArray(t2) || (a2 = g(t2)) || e2 && t2 && "number" == typeof t2.length) {
|
|
a2 && (t2 = a2);
|
|
var n2 = 0, r2 = function() {
|
|
};
|
|
return { s: r2, n: function() {
|
|
return n2 >= t2.length ? { done: true } : { done: false, value: t2[n2++] };
|
|
}, e: function(t3) {
|
|
throw t3;
|
|
}, f: r2 };
|
|
}
|
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
}
|
|
var i2, o2 = true, s2 = false;
|
|
return { s: function() {
|
|
a2 = a2.call(t2);
|
|
}, n: function() {
|
|
var t3 = a2.next();
|
|
return o2 = t3.done, t3;
|
|
}, e: function(t3) {
|
|
s2 = true, i2 = t3;
|
|
}, f: function() {
|
|
try {
|
|
o2 || null == a2.return || a2.return();
|
|
} finally {
|
|
if (s2) throw i2;
|
|
}
|
|
} };
|
|
}
|
|
function g(t2, e2) {
|
|
if (t2) {
|
|
if ("string" == typeof t2) return w(t2, e2);
|
|
var a2 = {}.toString.call(t2).slice(8, -1);
|
|
return "Object" === a2 && t2.constructor && (a2 = t2.constructor.name), "Map" === a2 || "Set" === a2 ? Array.from(t2) : "Arguments" === a2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a2) ? w(t2, e2) : void 0;
|
|
}
|
|
}
|
|
function w(t2, e2) {
|
|
(null == e2 || e2 > t2.length) && (e2 = t2.length);
|
|
for (var a2 = 0, n2 = Array(e2); a2 < e2; a2++) n2[a2] = t2[a2];
|
|
return n2;
|
|
}
|
|
var _ = { data: function() {
|
|
return { listLoading: false, listTable: [], setList: [], query: { year: "" }, pickerOptions: { disabledDate: function(t2) {
|
|
return t2.getFullYear() < 2e3 || t2.getFullYear() > (/* @__PURE__ */ new Date()).getFullYear();
|
|
} }, saveData: {} };
|
|
}, created: function() {
|
|
this.query.year = (/* @__PURE__ */ new Date()).getFullYear().toString();
|
|
}, mounted: function() {
|
|
this.getlistData();
|
|
}, methods: { getlistData: function() {
|
|
var t2 = this;
|
|
this.listLoading = true, this.query.companyId = JSON.parse(localStorage.getItem("companyInfo")).osId, Object(s["a"])(this.query).then((function(e2) {
|
|
if (t2.listTable = [{ name: "经营活动产生的现金流入详情", value: "subject200", isEdit: false, monthData: [] }, { name: "经营活动产生的现金流出详情", value: "subject201", isEdit: false, monthData: [] }, { name: "投资活动产生的现金流入详情", value: "subject202", isEdit: false, monthData: [] }, { name: "投资活动产生的现金流出详情", value: "subject203", isEdit: false, monthData: [] }, { name: "筹措活动产生的现金流入详情", value: "subject204", isEdit: false, monthData: [] }, { name: "筹措活动产生的现金流出详情", value: "subject205", isEdit: false, monthData: [] }], 0 == e2.code) {
|
|
for (var a2 = 0; a2 < 6; a2++) if (e2.data && e2.data["subject20".concat(a2)]) t2.listTable[a2].monthData = JSON.parse(e2.data["subject20".concat(a2)]);
|
|
else for (var n2 = 0; n2 < 12; n2++) t2.listTable[a2].monthData.push({ amount: 0, month: n2 + 1 });
|
|
t2.listLoading = false;
|
|
} else t2.listLoading = false;
|
|
})).catch((function(e2) {
|
|
t2.listLoading = false;
|
|
}));
|
|
}, editClick: function(t2) {
|
|
this.saveData = JSON.parse(JSON.stringify(t2)), t2.isEdit = true;
|
|
}, escClick: function(t2) {
|
|
t2.monthData = this.saveData.monthData, t2.isEdit = false;
|
|
}, saveClick: function(t2) {
|
|
var e2, a2 = this, n2 = true, r2 = b(t2.monthData);
|
|
try {
|
|
for (r2.s(); !(e2 = r2.n()).done; ) {
|
|
var i2 = e2.value;
|
|
void 0 != i2.amount && null != i2.amount || (this.$message("金额不能为空,请检查!"), n2 = false);
|
|
}
|
|
} catch (c2) {
|
|
r2.e(c2);
|
|
} finally {
|
|
r2.f();
|
|
}
|
|
if (n2) {
|
|
var o2 = JSON.parse(window.localStorage.getItem("memberInfor")), l2 = { companyId: JSON.parse(window.localStorage.getItem("companyInfo")).osId, updaterId: o2.id, updaterName: o2.name, year: this.query.year };
|
|
l2["".concat(t2.value)] = JSON.stringify(t2.monthData), Object(s["d"])(l2).then((function(t3) {
|
|
a2.$message({ type: "success", message: "设置成功!" }), a2.getlistData();
|
|
}));
|
|
}
|
|
}, onSearch: function(t2) {
|
|
t2 && this.getlistData();
|
|
} } }, D = _, S = (a("692f"), Object(m["a"])(D, p, h, false, null, null, null)), k = S.exports, x = function() {
|
|
var t2 = this, e2 = t2.$createElement, a2 = t2._self._c || e2;
|
|
return a2("div", [a2("div", [a2("el-form", { ref: "query", attrs: { model: t2.query } }, [a2("el-row", { attrs: { gutter: 20 } }, [a2("el-col", { attrs: { span: 4 } }, [a2("el-form-item", { attrs: { prop: "year" } }, [a2("el-date-picker", { staticStyle: { width: "100%" }, attrs: { type: "year", format: "yyyy", "value-format": "yyyy", placeholder: "选择年", clearable: false, editable: false, "picker-options": t2.pickerOptions }, on: { change: t2.onSearch }, model: { value: t2.query.year, callback: function(e3) {
|
|
t2.$set(t2.query, "year", e3);
|
|
}, expression: "query.year" } })], 1)], 1)], 1)], 1)], 1), t2._v(" "), a2("div", [a2("div", { staticClass: "headerTop" }, [a2("span", { staticClass: "title" }, [t2._v("资产及负债表列表【"), a2("b", [t2._v(t2._s(t2.query.year))]), t2._v("】")])]), t2._v(" "), a2("div", [a2("el-table", { directives: [{ name: "loading", rawName: "v-loading", value: t2.listLoading, expression: "listLoading" }], attrs: { "header-cell-style": { background: "#FAFAFA" }, data: t2.listTable, align: "center", border: "" } }, [a2("el-table-column", { attrs: { align: "center", label: "科目", "min-width": "160", "show-overflow-tooltip": "", fixed: "" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [t2._v(t2._s(e3.row.name || "-"))];
|
|
} }]) }), t2._v(" "), t2._l(12, (function(e3) {
|
|
return a2("el-table-column", { key: e3, attrs: { align: "center", label: e3 + "月", width: "160", "show-overflow-tooltip": "" }, scopedSlots: t2._u([{ key: "default", fn: function(n2) {
|
|
return [n2.row.isEdit ? a2("div", [a2("el-input-number", { staticStyle: { width: "100%" }, attrs: { size: "small", "controls-position": "right", precision: 2 }, model: { value: n2.row.monthData[e3 - 1].amount, callback: function(a3) {
|
|
t2.$set(n2.row.monthData[e3 - 1], "amount", a3);
|
|
}, expression: "scope.row.monthData[item - 1].amount" } })], 1) : a2("div", { staticStyle: { "text-align": "right" } }, [t2._v(t2._s(t2._f("formatMoney")(n2.row.monthData[e3 - 1].amount)))])];
|
|
} }], null, true) });
|
|
})), t2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "操作", width: "100", fixed: "right" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [e3.row.isEdit ? t2._e() : a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text", size: "mini" }, on: { click: function(a3) {
|
|
return t2.editClick(e3.row);
|
|
} } }, [t2._v("修改")]), t2._v(" "), e3.row.isEdit ? a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text", size: "mini" }, on: { click: function(a3) {
|
|
return t2.saveClick(e3.row);
|
|
} } }, [t2._v("保存")]) : t2._e(), t2._v(" "), e3.row.isEdit ? a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text", size: "mini" }, on: { click: function(a3) {
|
|
return t2.escClick(e3.row);
|
|
} } }, [t2._v("取消")]) : t2._e()];
|
|
} }]) })], 2)], 1)])]);
|
|
}, O = [];
|
|
function I(t2, e2) {
|
|
var a2 = "undefined" != typeof Symbol && t2[Symbol.iterator] || t2["@@iterator"];
|
|
if (!a2) {
|
|
if (Array.isArray(t2) || (a2 = N(t2)) || e2 && t2 && "number" == typeof t2.length) {
|
|
a2 && (t2 = a2);
|
|
var n2 = 0, r2 = function() {
|
|
};
|
|
return { s: r2, n: function() {
|
|
return n2 >= t2.length ? { done: true } : { done: false, value: t2[n2++] };
|
|
}, e: function(t3) {
|
|
throw t3;
|
|
}, f: r2 };
|
|
}
|
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
}
|
|
var i2, o2 = true, s2 = false;
|
|
return { s: function() {
|
|
a2 = a2.call(t2);
|
|
}, n: function() {
|
|
var t3 = a2.next();
|
|
return o2 = t3.done, t3;
|
|
}, e: function(t3) {
|
|
s2 = true, i2 = t3;
|
|
}, f: function() {
|
|
try {
|
|
o2 || null == a2.return || a2.return();
|
|
} finally {
|
|
if (s2) throw i2;
|
|
}
|
|
} };
|
|
}
|
|
function N(t2, e2) {
|
|
if (t2) {
|
|
if ("string" == typeof t2) return j(t2, e2);
|
|
var a2 = {}.toString.call(t2).slice(8, -1);
|
|
return "Object" === a2 && t2.constructor && (a2 = t2.constructor.name), "Map" === a2 || "Set" === a2 ? Array.from(t2) : "Arguments" === a2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a2) ? j(t2, e2) : void 0;
|
|
}
|
|
}
|
|
function j(t2, e2) {
|
|
(null == e2 || e2 > t2.length) && (e2 = t2.length);
|
|
for (var a2 = 0, n2 = Array(e2); a2 < e2; a2++) n2[a2] = t2[a2];
|
|
return n2;
|
|
}
|
|
var E = { data: function() {
|
|
return { listLoading: false, listTable: [], setList: [], query: { year: "" }, pickerOptions: { disabledDate: function(t2) {
|
|
return t2.getFullYear() < 2e3 || t2.getFullYear() > (/* @__PURE__ */ new Date()).getFullYear();
|
|
} }, saveData: {} };
|
|
}, created: function() {
|
|
this.query.year = (/* @__PURE__ */ new Date()).getFullYear().toString();
|
|
}, mounted: function() {
|
|
this.getlistData();
|
|
}, methods: { getlistData: function() {
|
|
var t2 = this;
|
|
this.listLoading = true, this.query.companyId = JSON.parse(localStorage.getItem("companyInfo")).osId, Object(s["a"])(this.query).then((function(e2) {
|
|
if (t2.listTable = [{ name: "负债合计", value: "subject300", isEdit: false, monthData: [] }, { name: "资产总计", value: "subject301", isEdit: false, monthData: [] }], 0 == e2.code) {
|
|
for (var a2 = 0; a2 < 6; a2++) if (e2.data && e2.data["subject30".concat(a2)]) t2.listTable[a2].monthData = JSON.parse(e2.data["subject30".concat(a2)]);
|
|
else for (var n2 = 0; n2 < 12; n2++) t2.listTable[a2].monthData.push({ amount: 0, month: n2 + 1 });
|
|
t2.listLoading = false;
|
|
} else t2.listLoading = false;
|
|
})).catch((function(e2) {
|
|
t2.listLoading = false;
|
|
}));
|
|
}, editClick: function(t2) {
|
|
this.saveData = JSON.parse(JSON.stringify(t2)), t2.isEdit = true;
|
|
}, escClick: function(t2) {
|
|
t2.monthData = this.saveData.monthData, t2.isEdit = false;
|
|
}, saveClick: function(t2) {
|
|
var e2, a2 = this, n2 = true, r2 = I(t2.monthData);
|
|
try {
|
|
for (r2.s(); !(e2 = r2.n()).done; ) {
|
|
var i2 = e2.value;
|
|
void 0 != i2.amount && null != i2.amount || (this.$message("金额不能为空,请检查!"), n2 = false);
|
|
}
|
|
} catch (c2) {
|
|
r2.e(c2);
|
|
} finally {
|
|
r2.f();
|
|
}
|
|
if (n2) {
|
|
var o2 = JSON.parse(window.localStorage.getItem("memberInfor")), l2 = { companyId: JSON.parse(window.localStorage.getItem("companyInfo")).osId, updaterId: o2.id, updaterName: o2.name, year: this.query.year };
|
|
l2["".concat(t2.value)] = JSON.stringify(t2.monthData), Object(s["d"])(l2).then((function(t3) {
|
|
a2.$message({ type: "success", message: "设置成功!" }), a2.getlistData();
|
|
}));
|
|
}
|
|
}, onSearch: function(t2) {
|
|
t2 && this.getlistData();
|
|
} } }, C = E, q = (a("568f"), Object(m["a"])(C, x, O, false, null, null, null)), A = q.exports, L = { components: { profitData: y, cashData: k, debtData: A }, data: function() {
|
|
return { activeName: "profit" };
|
|
}, mounted: function() {
|
|
}, methods: { handleClick: function(t2, e2) {
|
|
} } }, F = L, J = (a("436c"), Object(m["a"])(F, n, r, false, null, "e85ca540", null));
|
|
e["default"] = J.exports;
|
|
}, b4e5: function(t, e, a) {
|
|
"use strict";
|
|
a("e06d");
|
|
}, ba77: function(t, e, a) {
|
|
}, cd05: function(t, e, a) {
|
|
"use strict";
|
|
a.d(e, "b", (function() {
|
|
return r;
|
|
})), a.d(e, "c", (function() {
|
|
return i;
|
|
})), a.d(e, "a", (function() {
|
|
return o;
|
|
})), a.d(e, "d", (function() {
|
|
return s;
|
|
}));
|
|
var n = a("b775");
|
|
function r(t2) {
|
|
return Object(n["a"])({ url: "/hakocompany/ChargeReport/company/last/year/overdue/budget", method: "post", data: t2 });
|
|
}
|
|
function i(t2) {
|
|
return Object(n["a"])({ url: "/hakocompany/ChargeReport/company/previous/year/arrears/budget", method: "post", data: t2 });
|
|
}
|
|
function o(t2) {
|
|
return Object(n["a"])({ url: "/hakocompany/CompanyFinance/findByCompanyIdAndYear", method: "post", data: t2 });
|
|
}
|
|
function s(t2) {
|
|
return Object(n["a"])({ url: "/hakocompany/CompanyFinance/update", method: "post", data: t2 });
|
|
}
|
|
}, e06d: function(t, e, a) {
|
|
}, f3d2: function(t, e, a) {
|
|
} }]);
|