82 lines
5.3 KiB
JavaScript
82 lines
5.3 KiB
JavaScript
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["chunk-2fa11346"], { 7003: function(t, e, a) {
|
|
}, "707d": function(t, e, a) {
|
|
"use strict";
|
|
a.r(e);
|
|
var s = function() {
|
|
var t2 = this, e2 = t2.$createElement, a2 = t2._self._c || e2;
|
|
return a2("div", { staticClass: "flowlayout incomeStatement" }, [a2("div", { staticClass: "incomeHeader" }, [t2._v("\n 全年收入报表 - 科目维度\n "), a2("el-tooltip", { staticClass: "item", attrs: { effect: "dark", content: t2.captionText, placement: "top-start" } }, [a2("i", { staticClass: "el-icon-question itemcursor" })]), t2._v(" "), a2("span", { staticClass: "updataQuery itemcursor", on: { click: t2.openDialog } }, [t2._v("配置统计科目")]), t2._v(" "), a2("span", { staticClass: "updataQuery itemcursor", on: { click: t2.updataStatisics } }, [t2._v("修正统计")]), t2._v(" "), a2("span", { staticClass: "updataQuery" }, [t2._v(t2._s(t2.updataTime) + " (最近更新时间)")])], 1), t2._v(" "), a2("incomeStatementTable", { ref: "incomeStatementTable", attrs: { subjectName: t2.subjectName }, on: { updataStatisicsTime: t2.updataStatisicsTime } }), t2._v(" "), a2("el-dialog", { attrs: { title: t2.title, width: "400px", "append-to-body": true, "lock-scroll": true, "close-on-click-modal": false, "close-on-press-escape": false, "custom-class": "r2Dialog", visible: t2.dialogTableVisible }, on: { "update:visible": function(e3) {
|
|
t2.dialogTableVisible = e3;
|
|
} } }, [a2("el-scrollbar", { staticClass: "subjectTreeScroll", attrs: { "wrap-style": "overflow-x:hidden;" } }, [a2("el-tree", { ref: "subjectTree", staticClass: "subjectTreeClass", attrs: { data: t2.cascaderDataList, "node-key": "id", "default-expand-all": true, props: t2.cascaderProps, "show-checkbox": "", "check-strictly": true }, on: { "check-change": t2.handleClick } })], 1), t2._v(" "), a2("span", { staticClass: "dialog-footer", attrs: { slot: "footer" }, slot: "footer" }, [a2("el-button", { staticClass: "commitDialogBtn", on: { click: t2.chackChange } }, [t2._v("确 定")])], 1)], 1)], 1);
|
|
}, c = [], n = (a("1bc7"), a("a450"), a("44e7")), i = a("886c"), o = a("b071"), l = { name: "incomeStatement", components: { incomeStatementTable: n["default"] }, data: function() {
|
|
return { captionText: "按“支付时间”、“计费账期”统计实际收入,鼓励项目成员实现“应收未收款”归零。", title: "配置统计科目", dialogTableVisible: false, cascaderProps: { label: "name", children: "subjectChildrens" }, updataTime: "", cascaderDataList: [], subjectKey: "", subjectName: "" };
|
|
}, mounted: function() {
|
|
this.getSubjectList();
|
|
}, methods: { openDialog: function() {
|
|
var t2 = this;
|
|
this.cascaderDataList.length > 0 ? (this.dialogTableVisible = true, this.$nextTick((function() {
|
|
var e2 = t2.$refs.subjectTree.getCheckedNodes();
|
|
0 === e2.length && t2.$refs.subjectTree.setCheckedKeys([t2.subjectKey]);
|
|
})), this.$forceUpdate()) : this.$message({ message: "统计科目获取失败", type: "error" });
|
|
}, getSubjectList: function() {
|
|
var t2 = this, e2 = JSON.parse(window.localStorage.getItem("companyInfo")).osId;
|
|
Object(i["a"])({ companyId: e2 }).then((function(e3) {
|
|
0 === e3.code && e3.data.length > 0 && (t2.subjectKey = e3.data[0].id, t2.subjectName = e3.data[0].name, t2.cascaderDataList = e3.data);
|
|
}));
|
|
}, updataStatisics: function() {
|
|
var t2 = this;
|
|
Object(o["o"])({}).then((function(e2) {
|
|
0 == e2.code && (t2.$message({ message: "修正统计即将开始,数据更新将会耗费一定的时长,请稍后手动刷新数据", type: "warning" }), t2.$nextTick((function() {
|
|
t2.$refs.incomeStatementTable.initPageData();
|
|
})));
|
|
}));
|
|
}, updataStatisicsTime: function(t2) {
|
|
this.updataTime = t2;
|
|
}, handleClick: function(t2, e2, a2) {
|
|
e2 && this.$refs.subjectTree.setCheckedKeys([t2.id]);
|
|
}, chackChange: function() {
|
|
var t2 = this, e2 = this.$refs.subjectTree.getCheckedNodes();
|
|
if (console.log("res", e2), e2.length > 0) {
|
|
var a2 = [];
|
|
e2.forEach((function(e3) {
|
|
a2.push(e3.code), t2.subjectName = e3.name;
|
|
})), this.$nextTick((function() {
|
|
t2.$refs.incomeStatementTable.updataTableRender(a2);
|
|
}));
|
|
}
|
|
this.dialogTableVisible = false;
|
|
} } }, r = l, u = (a("85f7"), a("829d")), d = Object(u["a"])(r, s, c, false, null, "20a39a4c", null);
|
|
e["default"] = d.exports;
|
|
}, "85f7": function(t, e, a) {
|
|
"use strict";
|
|
a("7003");
|
|
}, "886c": function(t, e, a) {
|
|
"use strict";
|
|
a.d(e, "b", (function() {
|
|
return c;
|
|
})), a.d(e, "e", (function() {
|
|
return n;
|
|
})), a.d(e, "c", (function() {
|
|
return i;
|
|
})), a.d(e, "d", (function() {
|
|
return o;
|
|
})), a.d(e, "a", (function() {
|
|
return l;
|
|
}));
|
|
var s = a("b775");
|
|
function c(t2) {
|
|
return Object(s["a"])({ url: "/hakocompany/FsSubject/selectAll", method: "post", data: t2 });
|
|
}
|
|
function n(t2) {
|
|
return Object(s["a"])({ url: "/company/FsSubject/updateDetails", method: "post", data: t2 });
|
|
}
|
|
function i(t2) {
|
|
return Object(s["a"])({ url: "/hakocompany/FsSubject/syncSubject", method: "post", data: t2 });
|
|
}
|
|
function o(t2) {
|
|
return Object(s["a"])({ url: "/hakocompany/FsSubject/batchUpdateStatus", method: "post", data: t2 });
|
|
}
|
|
function l(t2) {
|
|
return Object(s["a"])({ url: "/hakocompany/FsSubject/listByCompanyId", method: "post", data: t2 });
|
|
}
|
|
} }]);
|