692 lines
66 KiB
JavaScript
692 lines
66 KiB
JavaScript
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["chunk-594c2127"], { 1402: function(e, t, a) {
|
|
"use strict";
|
|
a.r(t);
|
|
var n = function() {
|
|
var e2 = this, t2 = e2.$createElement, n2 = e2._self._c || t2;
|
|
return n2("div", { staticClass: "budgetConfig" }, [n2("div", { staticClass: "elcard" }, [n2("el-row", { attrs: { gutter: 12 } }, [n2("el-col", { attrs: { span: 6 } }, [n2("el-card", { staticClass: "box-card", attrs: { shadow: "hover" } }, [n2("div", { staticClass: "planLst", attrs: { slot: "header" }, slot: "header" }, [n2("span", { staticClass: "planTitle" }, [e2._v("预算项管理")]), e2._v(" "), n2("span", { staticStyle: { "padding-right": "15px" } }, [n2("el-dropdown", { attrs: { trigger: "click" } }, [n2("span", { staticClass: "el-dropdown-link" }, [n2("i", { staticClass: "el-icon-more", staticStyle: { cursor: "pointer" } })]), e2._v(" "), n2("el-dropdown-menu", { attrs: { slot: "dropdown" }, slot: "dropdown" }, [n2("el-dropdown-item", { nativeOn: { click: function(t3) {
|
|
return e2.newNodeInfo();
|
|
} } }, [e2._v("导入模板")]), e2._v(" "), n2("el-dropdown-item", { nativeOn: { click: function(t3) {
|
|
return e2.autoAdd();
|
|
} } }, [e2._v("自动生成")])], 1)], 1)], 1), e2._v(" "), n2("span", { on: { click: function(t3) {
|
|
e2.isShow = !e2.isShow;
|
|
} } }, [n2("i", { class: { icons: true, "el-icon-arrow-down": !e2.isShow, "el-icon-arrow-up": e2.isShow }, staticStyle: { cursor: "pointer" } })])]), e2._v(" "), n2("div", { directives: [{ name: "show", rawName: "v-show", value: e2.isShow, expression: "isShow" }], staticClass: "infoTree" }, [n2("el-input", { attrs: { clearable: "", placeholder: "输入关键字进行过滤" }, model: { value: e2.filterText, callback: function(t3) {
|
|
e2.filterText = t3;
|
|
}, expression: "filterText" } }), e2._v(" "), n2("div", { staticClass: "filterScroll" }, [n2("el-tree", { directives: [{ name: "loading", rawName: "v-loading", value: e2.treeLoading, expression: "treeLoading" }], ref: "tree", staticClass: "filter-tree", staticStyle: { padding: "15px 0px" }, attrs: { data: e2.tableTree, "default-expand-all": false, "node-key": "id", "highlight-current": "", "filter-node-method": e2.filterNode, "expand-on-click-node": false, props: { children: "children", label: "subjectName" } }, on: { "node-click": e2.handleNodeClick }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
var a2 = t3.node, o2 = t3.data;
|
|
return n2("span", { class: [e2.selectNodeId == o2.id ? "nodeActive" : "", "custom-tree-node"], on: { click: function(t4) {
|
|
return e2.selectInfo(o2);
|
|
} } }, [n2("span", [e2._v(e2._s(a2.label))]), e2._v(" "), -1 == o2.subjectParentId && 1 == o2.mainBudget ? n2("div", [n2("i", { staticClass: "el-icon-s-flag" })]) : e2._e(), e2._v(" "), -1 == o2.subjectParentId ? n2("el-dropdown", { attrs: { trigger: "click" } }, [n2("span", { staticClass: "el-dropdown-link" }, [n2("i", { staticClass: "el-icon-more" })]), e2._v(" "), n2("el-dropdown-menu", { attrs: { slot: "dropdown" }, slot: "dropdown" }, [n2("el-dropdown-item", { nativeOn: { click: function(t4) {
|
|
return e2.exportTemplate(1, "预算表模板", o2);
|
|
} } }, [e2._v("导出预算表")]), e2._v(" "), n2("el-dropdown-item", { attrs: { disabled: "" }, nativeOn: { click: function(t4) {
|
|
return e2.exportTemplate(2, "发生表模板", o2);
|
|
} } }, [e2._v("导出发生表")]), e2._v(" "), n2("el-dropdown-item", { attrs: { disabled: 3 == e2.querySubject.calcMode }, nativeOn: { click: function(t4) {
|
|
return e2.importDataTable(1, o2);
|
|
} } }, [n2("el-upload", { ref: "upload", attrs: { data: o2, "auto-upload": true, "show-file-list": false, accept: ".xls,.xlsx", "http-request": e2.importData, action: "" } }, [e2._v("\n 导入预算表\n ")])], 1), e2._v(" "), n2("el-dropdown-item", { attrs: { disabled: "" }, nativeOn: { click: function(t4) {
|
|
return e2.importDataTable(2, o2);
|
|
} } }, [n2("el-upload", { ref: "upload", attrs: { data: o2, "auto-upload": true, "show-file-list": false, accept: ".xls,.xlsx", "http-request": e2.importData, action: "" } }, [e2._v("\n 导入发生表\n ")])], 1), e2._v(" "), n2("el-dropdown-item", { nativeOn: { click: function(t4) {
|
|
return e2.deleteNodeInfo(o2);
|
|
} } }, [e2._v("删除")]), e2._v(" "), n2("el-dropdown-item", { nativeOn: { click: function(t4) {
|
|
return e2.defaultSetting(o2);
|
|
} } }, [e2._v("设为当年默认")])], 1)], 1) : e2._e()], 1);
|
|
} }]) })], 1)], 1)])], 1), e2._v(" "), n2("el-col", { attrs: { span: 18 } }, [n2("el-row", { staticClass: "overflowScroll" }, [n2("el-col", { attrs: { span: 24 } }, [n2("el-card", { attrs: { shadow: "hover" } }, [n2("el-tabs", { on: { "tab-click": e2.handleClick }, model: { value: e2.activeName, callback: function(t3) {
|
|
e2.activeName = t3;
|
|
}, expression: "activeName" } }, [n2("el-tab-pane", { attrs: { label: "预算/发生数", name: "budgets" } }), e2._v(" "), n2("el-tab-pane", { attrs: { label: "账户信息", name: "account" } })], 1), e2._v(" "), n2("div", [n2("span", [e2._v("预算表年份:")]), e2._v(" "), n2("span", [e2._v(e2._s(e2.querySubject.year || "-"))])]), e2._v(" "), "account" === e2.activeName ? n2("div", { staticStyle: { "padding-top": "15px" } }, [n2("el-table", { attrs: { border: "", data: e2.accountTable.slice((e2.currentPage - 1) * e2.pageSize, e2.currentPage * e2.pageSize), "header-cell-style": e2.headClass, "tooltip-effect": "dark" } }, [n2("el-table-column", { attrs: { label: "#", fixed: "", align: "center", "min-width": "50" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [n2("span", [e2._v(e2._s(t3.$index + (e2.currentPage - 1) * e2.pageSize + 1) + "\n ")])];
|
|
} }], null, false, 1119617291) }), e2._v(" "), n2("el-table-column", { attrs: { prop: "month", fixed: "", "min-width": "55", align: "center", label: "月份" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [t3.row.month ? n2("span", [e2._v(e2._s(t3.row.month) + "月")]) : e2._e()];
|
|
} }], null, false, 2397812890) }), e2._v(" "), n2("el-table-column", { attrs: { prop: "integralTypeName", fixed: "", "min-width": "100", align: "center", label: "积分种类" } }), e2._v(" "), n2("el-table-column", { attrs: { prop: "integralTypeCode", fixed: "", "min-width": "100", align: "center", label: "积分代码" } }), e2._v(" "), n2("el-table-column", { attrs: { prop: "accountNo", "min-width": "200", align: "center", label: "账户号" } }), e2._v(" "), n2("el-table-column", { attrs: { prop: "ownerOfAccountName", "min-width": "160", align: "center", "show-overflow-tooltip": "", label: "开户人姓名" } }), e2._v(" "), n2("el-table-column", { attrs: { prop: "credentialType", "min-width": "160", align: "center", label: "开户人证件类型" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [n2("span", [e2._v(e2._s(1 == t3.row.credentialType ? "身份证" : 2 == t3.row.credentialType ? "企业统一代码" : "其他"))])];
|
|
} }], null, false, 1953218900) }), e2._v(" "), n2("el-table-column", { attrs: { prop: "idcard", "min-width": "220", "show-overflow-tooltip": "", align: "center", label: "证件号" } }), e2._v(" "), n2("el-table-column", { attrs: { prop: "amount", "min-width": "120", align: "center", label: "当前余额(元)" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [n2("span", [e2._v(e2._s(e2._f("changeTwoDecimal")(t3.row.amount)))])];
|
|
} }], null, false, 1509859922) })], 1), e2._v(" "), n2("div", { staticClass: "paginations" }, [n2("el-pagination", { attrs: { background: "", "current-page": e2.currentPage, "page-sizes": [10, 30, 50, 100, 200], "page-size": e2.pageSize, layout: "total, sizes, prev, pager, next, jumper", total: e2.accountTable.length }, on: { "update:currentPage": function(t3) {
|
|
e2.currentPage = t3;
|
|
}, "update:current-page": function(t3) {
|
|
e2.currentPage = t3;
|
|
}, "size-change": e2.handleSizeCh, "current-change": e2.handleCurrentCh } })], 1)], 1) : e2._e(), e2._v(" "), "budgets" === e2.activeName ? n2("div", [e2.querySubject && e2.querySubject.id ? n2("div", { staticClass: "projectStys" }, [n2("el-row", [n2("el-col", { attrs: { span: 8 } }, [n2("div", { staticClass: "grid-content bg-purple projectStys" }, [e2._v("\n 项目编码:" + e2._s(e2.querySubject.subjectCode) + "\n ")]), e2._v(" "), n2("div", { staticClass: "grid-content bg-purple projectStys", staticStyle: { color: "#ee2e2e" } }, [e2._v("\n 积分种类:预算\n ")]), e2._v(" "), n2("div", { staticClass: "grid-content bg-purple projectStys" }, [e2._v("\n 计算方式:\n "), n2("el-radio", { staticClass: "inputStys", attrs: { disabled: "", label: "1" }, model: { value: e2.calculatedValue, callback: function(t3) {
|
|
e2.calculatedValue = t3;
|
|
}, expression: "calculatedValue" } }, [e2._v("人工录入")])], 1), e2._v(" "), n2("div", { staticClass: "grid-content bg-purple projectStys" }, [e2._v("\n 预算表生成操作人:" + e2._s(e2.querySubject.createBy || "-") + "\n ")])]), e2._v(" "), n2("el-col", { attrs: { span: 8 } }, [n2("div", { staticClass: "grid-content bg-purple-light projectStys" }, [e2._v("\n 科目名称:" + e2._s(e2.querySubject.subjectName) + "\n ")]), e2._v(" "), n2("div", { staticClass: "grid-content bg-purple-light projectStys", staticStyle: { color: "#ee2e2e" } }, [e2._v("\n 开户类型:-\n ")]), e2._v(" "), n2("div", { staticClass: "grid-content bg-purple-light projectStys" }, [n2("el-radio", { attrs: { disabled: "", label: "2" }, model: { value: e2.calculatedValue, callback: function(t3) {
|
|
e2.calculatedValue = t3;
|
|
}, expression: "calculatedValue" } }, [e2._v("公式计算(这里是公式)")])], 1), e2._v(" "), n2("div", { staticClass: "grid-content bg-purple projectStys" }, [e2._v("\n 预算表生成时间:" + e2._s(e2.querySubject.createDate || "-") + "\n ")])])], 1)], 1) : e2._e()]) : e2._e(), e2._v(" "), "budgets" === e2.activeName ? n2("div", { staticStyle: { "padding-top": "15px" } }, [n2("div", { staticStyle: { "font-weight": "600", "font-size": "14px" } }, [e2._v("\n 预算/发生数\n ")]), e2._v(" "), n2("div", { staticClass: "projectStys" }, [3 !== e2.querySubject.calcMode ? n2("el-button", { staticClass: "el-icon-sort", attrs: { size: "medium", type: "primary", disabled: e2.btnDisabled }, on: { click: e2.adjustAmountInfo } }, [e2._v("调整金额")]) : e2._e(), e2._v(" "), 3 !== e2.querySubject.calcMode ? n2("el-button", { staticClass: "el-icon-refresh-right", attrs: { size: "medium", type: "primary", disabled: e2.btnDisabled }, on: { click: e2.correctAmount } }, [e2._v("修正统计")]) : e2._e(), e2._v(" "), 3 == e2.querySubject.calcMode ? n2("el-button", { staticClass: "el-icon-sort", attrs: { size: "medium", type: "primary", disabled: e2.btnDisabled }, on: { click: e2.submitAmount } }, [e2._v("提交审核")]) : e2._e()], 1)]) : e2._e(), e2._v(" "), n2("div", { directives: [{ name: "show", rawName: "v-show", value: e2.budgetShow && "budgets" === e2.activeName, expression: "budgetShow && activeName === 'budgets'" }], staticClass: "tableData" }, [n2("getBud", { ref: "getBud", attrs: { tableData: e2.budgetMoneyData } })], 1)], 1)], 1), e2._v(" "), "budgets" === e2.activeName ? n2("el-col", { staticStyle: { "margin-top": "15px" }, attrs: { span: 24 } }, [n2("el-card", { attrs: { shadow: "hover" } }, [n2("div", { staticClass: "planLst", attrs: { slot: "header" }, slot: "header" }, [n2("span", { staticClass: "planTitle" }, [e2._v("审核记录")]), e2._v(" "), n2("span", { on: { click: function(t3) {
|
|
e2.iFshow = !e2.iFshow;
|
|
} } }, [n2("i", { class: { icon: true, "el-icon-arrow-down": !e2.iFshow, "el-icon-arrow-up": e2.iFshow }, staticStyle: { cursor: "pointer" } })])]), e2._v(" "), n2("div", { directives: [{ name: "show", rawName: "v-show", value: e2.iFshow, expression: "iFshow" }] }, [n2("el-table", { directives: [{ name: "loading", rawName: "v-loading", value: e2.listLoading, expression: "listLoading" }], staticStyle: { width: "100%" }, attrs: { border: "", data: e2.listData, "header-cell-style": e2.headClass, fit: "", "highlight-current-row": "" } }, [n2("el-table-column", { attrs: { label: "#", align: "center", fixed: "", "min-width": "50" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [n2("span", [e2._v(e2._s(t3.$index + (e2.query.pageNumber - 1) * e2.query.pageSize + 1) + "\n ")])];
|
|
} }], null, false, 1163909697) }), e2._v(" "), n2("el-table-column", { attrs: { prop: "applyNo", "min-width": "220", align: "center", fixed: "", label: "审核ID" } }), e2._v(" "), n2("el-table-column", { attrs: { prop: "year", "min-width": "110", align: "center", fixed: "", label: "调整年份" } }), e2._v(" "), n2("el-table-column", { attrs: { prop: "createUserName", "min-width": "110", align: "center", label: "发起人" } }), e2._v(" "), n2("el-table-column", { attrs: { prop: "applyUserName", "min-width": "110", align: "center", label: "审核人" } }), e2._v(" "), n2("el-table-column", { attrs: { prop: "createDate", "min-width": "200", align: "center", "show-overflow-tooltip": "", label: "发起时间" } }), e2._v(" "), n2("el-table-column", { attrs: { prop: "applyDate", "min-width": "200", align: "center", "show-overflow-tooltip": "", label: "审核时间" } }), e2._v(" "), n2("el-table-column", { attrs: { prop: "remark", "min-width": "200", align: "center", "show-overflow-tooltip": "", label: "审核人意见" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [t3.row.remark ? n2("span", [e2._v(e2._s(t3.row.remark))]) : e2._e(), e2._v(" "), t3.row.remark ? e2._e() : n2("span", [e2._v("-")])];
|
|
} }], null, false, 1334697939) }), e2._v(" "), n2("el-table-column", { attrs: { prop: "isAlert", align: "center", "show-overflow-tooltip": "", label: "风险预警" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [1 == t3.row.isAlert ? n2("span", [n2("img", { staticClass: "imgStys", attrs: { src: a("2124"), alt: "" } })]) : e2._e(), e2._v(" "), 2 == t3.row.isAlert ? n2("span", [n2("img", { staticClass: "imgStys", attrs: { src: a("a295"), alt: "" } })]) : e2._e()];
|
|
} }], null, false, 2611018257) }), e2._v(" "), n2("el-table-column", { attrs: { prop: "orderNo", "min-width": "200", align: "center", "show-overflow-tooltip": "", label: "关联工单" } }), e2._v(" "), n2("el-table-column", { attrs: { prop: "applyStatus", align: "center", label: "状态" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [1 == t3.row.applyStatus ? n2("span", [e2._v("未处理")]) : e2._e(), e2._v(" "), 2 == t3.row.applyStatus ? n2("span", [e2._v("处理中")]) : e2._e(), e2._v(" "), 5 == t3.row.applyStatus ? n2("span", [e2._v("已通过")]) : e2._e(), e2._v(" "), 6 == t3.row.applyStatus ? n2("span", { staticClass: "rejected" }, [e2._v("已拒绝")]) : e2._e()];
|
|
} }], null, false, 894841773) }), e2._v(" "), n2("el-table-column", { attrs: { label: "操作", "min-width": "160", align: "center", fixed: "right" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { disabled: 5 == t3.row.applyStatus || 6 == t3.row.applyStatus, type: "text" }, on: { click: function(a2) {
|
|
return e2.agreeClick(t3.row);
|
|
} } }, [e2._v("同意")]), e2._v(" "), n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { disabled: 5 == t3.row.applyStatus || 6 == t3.row.applyStatus, type: "text" }, on: { click: function(a2) {
|
|
return e2.rejectClick(t3.row);
|
|
} } }, [e2._v("拒绝")]), e2._v(" "), n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text" }, on: { click: function(a2) {
|
|
return e2.viewClick(t3.row);
|
|
} } }, [e2._v("查看")])];
|
|
} }], null, false, 1968202610) })], 1), e2._v(" "), n2("div", { staticClass: "paginations" }, [n2("Pagination", { attrs: { total: e2.total }, on: { handleCurrentChange: e2.handleCurrentChange, handleSizeChange: e2.handleSizeChange } })], 1)], 1)])], 1) : e2._e(), e2._v(" "), "budgets" === e2.activeName ? n2("el-col", { staticStyle: { "margin-top": "15px" }, attrs: { span: 24 } }, [n2("updateRecord", { ref: "updateRecs" })], 1) : e2._e()], 1)], 1)], 1)], 1), e2._v(" "), n2("el-dialog", { staticClass: "dialogHead", attrs: { title: "预算/发生值调整详情", visible: e2.adjustDetailDialog, "close-on-press-escape": false, "close-on-click-modal": false }, on: { "update:visible": function(t3) {
|
|
e2.adjustDetailDialog = t3;
|
|
} } }, [n2("adjustDetails", { ref: "adjust", attrs: { tableData: e2.budgetMoneyData2 }, on: { canceAdjust: function(t3) {
|
|
e2.adjustDetailDialog = false;
|
|
} } })], 1), e2._v(" "), n2("el-dialog", { staticClass: "dialogHead", attrs: { title: e2.titleInfo, visible: e2.agreeRemindDialog, "close-on-press-escape": false, "close-on-click-modal": false }, on: { "update:visible": function(t3) {
|
|
e2.agreeRemindDialog = t3;
|
|
} } }, [n2("agreeRemindDialog", { ref: "agreeRemin", on: { agreeReminSubmit: e2.agreeReminSubmit, canceAgreeRemin: function(t3) {
|
|
e2.agreeRemindDialog = false;
|
|
} } })], 1), e2._v(" "), n2("el-dialog", { staticClass: "dialogHead", attrs: { title: "导入模板", width: "30%", visible: e2.importDialog, "close-on-press-escape": false, "close-on-click-modal": false }, on: { "update:visible": function(t3) {
|
|
e2.importDialog = t3;
|
|
} } }, [n2("importTemplateDialog", { ref: "imports", on: { importTemplates: e2.importTemplateSubmit, canceImport: function(t3) {
|
|
e2.importDialog = false;
|
|
} } })], 1), e2._v(" "), n2("el-dialog", { staticClass: "dialogHead", attrs: { visible: e2.adjustAmountDialog, "close-on-press-escape": false, "close-on-click-modal": false }, on: { "update:visible": function(t3) {
|
|
e2.adjustAmountDialog = t3;
|
|
} } }, [n2("span", { attrs: { slot: "title" }, slot: "title" }, [n2("span", { staticClass: "header-main-title" }, [e2._v("预算/发生值调整")]), e2._v(" "), n2("el-tooltip", { attrs: { content: "原值+调整/更新值=后值", placement: "top" } }, [n2("span", { staticClass: "el-icon-warning" })])], 1), e2._v(" "), n2("adjustAmount", { ref: "adjustAmount", attrs: { tableData: e2.budgetMoneyData, year: e2.year2 }, on: { submitAmount: e2.submitAmount, cancelClick: function(t3) {
|
|
e2.adjustAmountDialog = false;
|
|
} } })], 1), e2._v(" "), n2("el-dialog", { attrs: { title: "新增预算", visible: e2.addBudgetShow, "close-on-press-escape": false, "close-on-click-modal": false, width: "30%" }, on: { "update:visible": function(t3) {
|
|
e2.addBudgetShow = t3;
|
|
} } }, [n2("el-form", { ref: "addBudget", attrs: { model: e2.addBudget, rules: e2.addBudgetRules } }, [n2("el-form-item", { attrs: { label: "年份", prop: "year", "label-width": "80px" } }, [n2("el-date-picker", { attrs: { type: "year", placeholder: "请选择年", "value-format": "yyyy" }, model: { value: e2.addBudget.year, callback: function(t3) {
|
|
e2.$set(e2.addBudget, "year", t3);
|
|
}, expression: "addBudget.year" } })], 1)], 1), e2._v(" "), n2("div", { staticClass: "dialog-footer", attrs: { slot: "footer" }, slot: "footer" }, [n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: e2.budgetSubmit } }, [e2._v("确 定")]), e2._v(" "), n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: function(t3) {
|
|
e2.addBudgetShow = false;
|
|
} } }, [e2._v("取 消")])], 1)], 1)], 1);
|
|
}, o = [], r = a("65f5"), l = a("333d"), i = function() {
|
|
var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2;
|
|
return a2("div", { staticClass: "getBudgetAmount" }, [a2("el-table", { staticStyle: { width: "100%" }, attrs: { data: e2.amountData, "header-cell-style": e2.headClass, border: "" } }, [a2("el-table-column", { attrs: { prop: "month", label: "月份", width: "180" } }, [a2("el-table-column", { attrs: { prop: "monthType", align: "center", label: "类型" } })], 1), e2._v(" "), a2("el-table-column", { attrs: { prop: "1month", label: "1月" } }, [a2("el-table-column", { attrs: { align: "center", prop: "1monthBudget", label: "预算" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "1monthArise", label: "发生" } })], 1), e2._v(" "), a2("el-table-column", { attrs: { prop: "2month", label: "2月" } }, [a2("el-table-column", { attrs: { align: "center", prop: "2monthBudget", label: "预算" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "2monthArise", label: "发生" } })], 1), e2._v(" "), a2("el-table-column", { attrs: { prop: "3month", label: "3月" } }, [a2("el-table-column", { attrs: { align: "center", prop: "3monthBudget", label: "预算" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "3monthArise", label: "发生" } })], 1), e2._v(" "), a2("el-table-column", { attrs: { prop: "4month", label: "4月" } }, [a2("el-table-column", { attrs: { align: "center", prop: "4monthBudget", label: "预算" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "4monthArise", label: "发生" } })], 1), e2._v(" "), a2("el-table-column", { attrs: { prop: "5month", label: "5月" } }, [a2("el-table-column", { attrs: { align: "center", prop: "5monthBudget", label: "预算" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "5monthArise", label: "发生" } })], 1), e2._v(" "), a2("el-table-column", { attrs: { prop: "6month", label: "6月" } }, [a2("el-table-column", { attrs: { align: "center", prop: "6monthBudget", label: "预算" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "6monthArise", label: "发生" } })], 1), e2._v(" "), a2("el-table-column", { attrs: { prop: "7month", label: "7月" } }, [a2("el-table-column", { attrs: { align: "center", prop: "7monthBudget", label: "预算" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "7monthArise", label: "发生" } })], 1), e2._v(" "), a2("el-table-column", { attrs: { prop: "8month", label: "8月" } }, [a2("el-table-column", { attrs: { align: "center", prop: "8monthBudget", label: "预算" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "8monthArise", label: "发生" } })], 1), e2._v(" "), a2("el-table-column", { attrs: { prop: "9month", label: "9月" } }, [a2("el-table-column", { attrs: { align: "center", prop: "9monthBudget", label: "预算" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "9monthArise", label: "发生" } })], 1), e2._v(" "), a2("el-table-column", { attrs: { prop: "10month", label: "10月" } }, [a2("el-table-column", { attrs: { align: "center", prop: "10monthBudget", label: "预算" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "10monthArise", label: "发生" } })], 1), e2._v(" "), a2("el-table-column", { attrs: { prop: "11month", label: "11月" } }, [a2("el-table-column", { attrs: { align: "center", prop: "11monthBudget", label: "预算" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "11monthArise", label: "发生" } })], 1), e2._v(" "), a2("el-table-column", { attrs: { prop: "12month", label: "12月" } }, [a2("el-table-column", { attrs: { align: "center", prop: "12monthBudget", label: "预算" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "12monthArise", label: "发生" } })], 1), e2._v(" "), a2("el-table-column", { attrs: { prop: "year", label: "年度" } }, [a2("el-table-column", { attrs: { align: "center", prop: "yearBudget", label: "预算" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "yearArise", label: "发生" } })], 1)], 1)], 1);
|
|
}, s = [], u = { name: "getBudgetAmount", components: {}, props: { tableData: { type: Array } }, data: function() {
|
|
return { amountData: [] };
|
|
}, mounted: function() {
|
|
this.headClass(), this.getRenderTabData();
|
|
}, watch: { tableData: function(e2, t2) {
|
|
e2 !== t2 && this.getRenderTabData();
|
|
} }, methods: { headClass: function() {
|
|
return "text-align:center;background:#FAFAFA;";
|
|
}, changeTwoDecimal: function(e2) {
|
|
var t2 = e2;
|
|
t2 += "", -1 == t2.indexOf(".") && (t2 += ".0"), /\.\d$/.test(t2) && (t2 += "0");
|
|
while (/\d{4}(\.|,)/.test(t2)) t2 = t2.replace(/(\d)(\d{3}(\.|,))/, "$1,$2");
|
|
return t2;
|
|
}, getRenderTabData: function() {
|
|
var e2 = this;
|
|
this.amountData = [];
|
|
var t2 = { monthType: "金额" }, a2 = Array.from({ length: 12 }, (function(e3, t3) {
|
|
return "month_" + ++t3;
|
|
}));
|
|
a2.push("year"), a2.forEach((function(a3, n2) {
|
|
var o2 = e2.tableData[0];
|
|
if (void 0 == o2) return t2["yearBudget"] = 0, t2["yearArise"] = 0, t2[n2 + 1 + "monthBudget"] = 0, void (t2[n2 + 1 + "monthArise"] = 0);
|
|
var r2 = o2[a3];
|
|
12 === n2 ? (t2["yearBudget"] = e2.changeTwoDecimal(r2.budgetValue), t2["yearArise"] = e2.changeTwoDecimal(r2.happenValue)) : (t2[n2 + 1 + "monthBudget"] = e2.changeTwoDecimal(r2.budgetValue), t2[n2 + 1 + "monthArise"] = e2.changeTwoDecimal(r2.happenValue));
|
|
})), this.amountData.push(t2);
|
|
} } }, c = u, d = a("829d"), p = Object(d["a"])(c, i, s, false, null, "10819a10", null), m = p.exports, g = function() {
|
|
var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2;
|
|
return a2("div", { staticClass: "updateRecord" }, [a2("el-card", { attrs: { shadow: "hover" } }, [a2("div", { staticClass: "planLst", attrs: { slot: "header" }, slot: "header" }, [a2("span", { staticClass: "planTitle" }, [e2._v("更新记录")]), e2._v(" "), a2("span", { on: { click: function(t3) {
|
|
e2.updataShow = !e2.updataShow;
|
|
} } }, [a2("i", { class: { icon: true, "el-icon-arrow-down": !e2.updataShow, "el-icon-arrow-up": e2.updataShow }, staticStyle: { cursor: "pointer" } })])]), e2._v(" "), a2("div", { directives: [{ name: "show", rawName: "v-show", value: e2.updataShow, expression: "updataShow" }] }, [a2("el-table", { directives: [{ name: "loading", rawName: "v-loading", value: e2.listLoading, expression: "listLoading" }], staticStyle: { width: "100%" }, attrs: { border: "", data: e2.listData, "header-cell-style": e2.headClass, fit: "", "highlight-current-row": "" } }, [a2("el-table-column", { attrs: { label: "#", align: "center", width: "50" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [a2("span", [e2._v(e2._s(t3.$index + (e2.query.pageNumber - 1) * e2.query.pageSize + 1))])];
|
|
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { prop: "createDate", width: "160", align: "center", label: "更新时间" } }), e2._v(" "), a2("el-table-column", { attrs: { prop: "createUserName", align: "center", label: "更新人" } }), e2._v(" "), a2("el-table-column", { attrs: { prop: "updateMode", align: "center", label: "更新方式" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [1 == t3.row.updateMode ? a2("span", [e2._v("系统自动")]) : e2._e(), e2._v(" "), 2 == t3.row.updateMode ? a2("span", [e2._v("文件导入")]) : e2._e(), e2._v(" "), 3 == t3.row.updateMode ? a2("span", [e2._v("人工修改")]) : e2._e()];
|
|
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { prop: "subjectName", width: "200", align: "center", "show-overflow-tooltip": "", label: "预算科目" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [t3.row.updateMode ? a2("span", [e2._v(e2._s(e2.subjectName))]) : e2._e()];
|
|
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { prop: "adjustType", align: "center", "show-overflow-tooltip": "", label: "类型" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [1 == t3.row.adjustType ? a2("span", [e2._v("预算")]) : e2._e(), e2._v(" "), 2 == t3.row.adjustType ? a2("span", [e2._v("发生")]) : e2._e()];
|
|
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { prop: "year", align: "center", width: "160", "show-overflow-tooltip": "", label: "调整年月" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [t3.row.year ? a2("span", [e2._v(e2._s(t3.row.year) + "年" + e2._s(t3.row.month) + "月")]) : e2._e()];
|
|
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { prop: "accountNo", width: "240", align: "center", "show-overflow-tooltip": "", label: "账户号" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [t3.row.accountNo ? a2("span", [e2._v(e2._s(t3.row.accountNo))]) : a2("span", [e2._v("-")])];
|
|
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { prop: "value", align: "center", label: "原值" } }), e2._v(" "), a2("el-table-column", { attrs: { prop: "updateValue", width: "120", align: "center", label: "调整/更新值" } }), e2._v(" "), a2("el-table-column", { attrs: { prop: "updateAfter", align: "center", label: "后值" } }), e2._v(" "), a2("el-table-column", { attrs: { prop: "applyNo", align: "center", width: "200", label: "审核编号" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [t3.row.applyNo ? a2("span", [e2._v(e2._s(t3.row.applyNo))]) : e2._e(), e2._v(" "), t3.row.applyNo ? e2._e() : a2("span", [e2._v("-")])];
|
|
} }]) })], 1), e2._v(" "), a2("div", { staticClass: "paginations" }, [a2("Pagination", { attrs: { total: e2.total }, on: { handleCurrentChange: e2.handleCurrentChange, handleSizeChange: e2.handleSizeChange } })], 1)], 1)])], 1);
|
|
}, h = [], b = { name: "updateRecord", components: { Pagination: l["a"] }, data: function() {
|
|
return { total: 0, listData: [], subjectName: "", updataShow: true, listLoading: false, query: { pageNumber: 1, pageSize: 10 } };
|
|
}, mounted: function() {
|
|
this.headClass();
|
|
}, methods: { getListPage: function(e2, t2) {
|
|
this.query = e2, this.subjectName = t2, this.getinfo();
|
|
}, getinfo: function() {
|
|
var e2 = this;
|
|
this.listLoading = true;
|
|
var t2 = this.query, a2 = t2.budgetItemId, n2 = t2.year, o2 = t2.projectUuid, l2 = t2.pageNumber, i2 = t2.pageSize, s2 = { budgetItemId: a2, projectUuid: o2, year: parseInt(n2), pageNumber: l2, pageSize: i2 };
|
|
Object(r["r"])(s2).then((function(t3) {
|
|
0 == t3.code && (e2.listData = t3.data.records, e2.total = t3.data.rowsCount, e2.listLoading = false);
|
|
})).catch((function() {
|
|
e2.listLoading = false;
|
|
}));
|
|
}, handleSizeChange: function(e2) {
|
|
this.query.pageSize = e2.limit, this.query.pageNumber = 1, this.getinfo();
|
|
}, handleCurrentChange: function(e2) {
|
|
this.query.pageNumber = e2.currentPage, this.getinfo();
|
|
}, headClass: function() {
|
|
return "text-align:center;background:#FAFAFA;";
|
|
} } }, f = b, v = Object(d["a"])(f, g, h, false, null, "f8ce0e28", null), y = v.exports, w = function() {
|
|
var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2;
|
|
return a2("div", { staticClass: "agreeRemindDialog" }, [a2("div", { staticStyle: { "font-size": "16px" } }, [e2._v("是否确定" + e2._s(e2.valueData) + "当前审核!")]), e2._v(" "), a2("div", { staticStyle: { "margin-top": "20px" } }, [a2("el-input", { attrs: { type: "textarea", maxlength: "100" }, model: { value: e2.comments, callback: function(t3) {
|
|
e2.comments = t3;
|
|
}, expression: "comments" } })], 1), e2._v(" "), a2("div", { staticClass: "btnStsy" }, [a2("el-button", { on: { click: e2.canceAgreeRemin } }, [e2._v("取消")]), e2._v(" "), a2("el-button", { attrs: { type: "primary" }, on: { click: e2.agreeReminSubmit } }, [e2._v("确定")])], 1)]);
|
|
}, _ = [], j = { name: "agreeRemindDialog", data: function() {
|
|
return { comments: "我已仔细阅读,我同意该审批!", valueData: "", obj: {} };
|
|
}, methods: { getValue: function(e2) {
|
|
this.obj = e2, this.comments = "我已仔细阅读,我" + e2.type + "该审批!", this.valueData = e2.type;
|
|
}, canceAgreeRemin: function() {
|
|
this.$emit("canceAgreeRemin", false);
|
|
}, agreeReminSubmit: function() {
|
|
this.comments ? (this.obj.comments = this.comments, this.obj.valueData = this.valueData, this.$emit("agreeReminSubmit", this.obj)) : this.$message({ message: "请输入审批意见", type: "error" });
|
|
} } }, S = j, I = (a("5332"), Object(d["a"])(S, w, _, false, null, "754aa060", null)), A = I.exports, D = function() {
|
|
var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2;
|
|
return a2("div", { staticClass: "agreeRemindDialog" }, [a2("div", { staticStyle: { "font-size": "16px" } }, [a2("el-date-picker", { attrs: { type: "year", placeholder: "请选择年", "value-format": "yyyy", "picker-options": e2.pickerOptions2 }, model: { value: e2.objInfo.year, callback: function(t3) {
|
|
e2.$set(e2.objInfo, "year", t3);
|
|
}, expression: "objInfo.year" } })], 1), e2._v(" "), a2("div", { staticStyle: { "font-size": "16px", "margin-top": "20px" } }, [a2("el-input", { attrs: { placeholder: "请输入节点名称", clearable: "" }, model: { value: e2.objInfo.nodeName, callback: function(t3) {
|
|
e2.$set(e2.objInfo, "nodeName", t3);
|
|
}, expression: "objInfo.nodeName" } })], 1), e2._v(" "), a2("div", { staticStyle: { "margin-top": "20px" } }, [a2("el-select", { attrs: { filterable: "", placeholder: " 请输入模板名称关键词进行搜索" }, model: { value: e2.objInfo.templateName, callback: function(t3) {
|
|
e2.$set(e2.objInfo, "templateName", t3);
|
|
}, expression: "objInfo.templateName" } }, e2._l(e2.options, (function(e3) {
|
|
return a2("el-option", { key: e3.id, attrs: { label: e3.templateName, value: e3.id } });
|
|
})), 1)], 1), e2._v(" "), a2("div", { staticClass: "btnStsy" }, [a2("el-button", { on: { click: e2.canceImport } }, [e2._v("取消")]), e2._v(" "), a2("el-button", { attrs: { type: "primary", loading: e2.disabledBtn }, on: { click: e2.importTemplates } }, [e2._v("确定")])], 1)]);
|
|
}, B = [], C = { name: "agreeRemindDialog", data: function() {
|
|
return { options: [], disabledBtn: false, objInfo: { year: "", nodeName: "", templateName: "" }, pickerOptions2: { disabledDate: function(e2) {
|
|
var t2 = (/* @__PURE__ */ new Date()).getFullYear();
|
|
return e2.getFullYear() < t2 - 5 || e2.getFullYear() > t2;
|
|
} } };
|
|
}, mounted: function() {
|
|
}, methods: { getTemplate: function() {
|
|
var e2 = this;
|
|
Object(r["s"])({ companyId: this.$store.state.companyId }).then((function(t2) {
|
|
0 == t2.code && (e2.options = t2.data.records);
|
|
}));
|
|
}, resetFields: function() {
|
|
this.disabledBtn = false, this.objInfo.nodeName = "", this.objInfo.templateName = "", this.objInfo.year = "";
|
|
}, getValue: function(e2) {
|
|
this.valueData = e2.type;
|
|
}, canceImport: function() {
|
|
this.disabledBtn = false, this.$emit("canceImport", false);
|
|
}, importTemplates: function() {
|
|
if (this.disabledBtn = true, !this.objInfo.year) return this.$message({ message: "请选择年份", type: "error" }), void (this.disabledBtn = false);
|
|
if (!this.objInfo.nodeName) return this.$message({ message: "请输入节点名称", type: "error" }), void (this.disabledBtn = false);
|
|
if (!this.objInfo.templateName) return this.$message({ message: "请选择模板名称", type: "error" }), void (this.disabledBtn = false);
|
|
var e2 = { createUserName: this.$store.state.user.userInfo.memberName, createUserUuid: this.$store.state.user.userInfo.uuid, operatorId: this.$store.state.user.userInfo.id, operatorName: this.$store.state.user.userInfo.memberName, projectUuid: this.$store.state.community_uuid, projectName: this.$store.state.community_name, nodeName: this.objInfo.nodeName, templateId: this.objInfo.templateName, year: this.objInfo.year };
|
|
this.$emit("importTemplates", e2);
|
|
} } }, x = C, k = (a("6e26"), Object(d["a"])(x, D, B, false, null, "4a312f94", null)), N = k.exports, T = function() {
|
|
var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2;
|
|
return a2("div", { staticClass: "adjustAmount" }, [a2("el-table", { staticStyle: { width: "100%" }, attrs: { border: "", data: e2.amountData, "header-cell-style": e2.headClass, "span-method": e2.objectSpanMethod, "row-class-name": e2.tableRowClassName, height: "500px" }, on: { "row-dblclick": e2.dbclick } }, [a2("el-table-column", { attrs: { prop: "id", label: "月份" } }), e2._v(" "), a2("el-table-column", { attrs: { prop: "name", label: "" } }), e2._v(" "), a2("el-table-column", { attrs: { prop: "value", label: "原值" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [a2("span", { staticClass: "spspsp" }, [e2._v("¥" + e2._s(e2._f("changeTwoDecimal")(t3.row.value)))])];
|
|
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { prop: "updateValue", width: "225", label: "调整/更新值" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return ["年度" !== t3.row.id && t3.$index % 2 === 0 ? a2("i", { staticClass: "el-icon-edit updateValue", on: { click: function(a3) {
|
|
return e2.dbclick(t3.row);
|
|
} } }) : e2._e(), e2._v(" "), t3.row.isSelected && "年度" !== t3.row.id && t3.$index % 2 === 0 ? a2("el-input", { attrs: { type: "number", oninput: "if(isNaN(value)) { value = parseFloat(value) } if(value.indexOf('.')>0){value=value.slice(0,value.indexOf('.')+3)}" }, on: { blur: function(a3) {
|
|
return e2.handleBlur(t3.row);
|
|
} }, model: { value: t3.row.updateValue, callback: function(a3) {
|
|
e2.$set(t3.row, "updateValue", a3);
|
|
}, expression: "scope.row.updateValue" } }) : a2("span", { class: { red: t3.row.updateValue < 0 || "年度" === t3.row.id && t3.row.updateValue > 0 } }, [e2._v("¥" + e2._s(e2._f("changeTwoDecimal")("" === t3.row.updateValue ? t3.row.updateValue = 0 : t3.row.updateValue)))])];
|
|
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { prop: "afterValue", label: "后值" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [a2("span", { class: { red: parseFloat(t3.row.value) + parseFloat(t3.row.updateValue) < 0 || "年度" === t3.row.id && t3.row.updateValue > 0 } }, [e2._v("¥" + e2._s((parseFloat(t3.row.value) + parseFloat(t3.row.updateValue)).toFixed(2)))])];
|
|
} }]) })], 1), e2._v(" "), a2("div", { staticStyle: { "text-align": "center", "margin-top": "15px" } }, [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: e2.cancelClick } }, [e2._v("取消")]), e2._v(" "), a2("el-button", { attrs: { type: "primary", loading: e2.disabledBtn }, on: { click: e2.submitAmount } }, [e2._v("提交")])], 1)], 1);
|
|
}, O = [], R = { name: "adjustAmount", data: function() {
|
|
return { amountData: [], disabledBtn: false };
|
|
}, props: { tableData: { type: Array }, year: { type: String, default: "" } }, created: function() {
|
|
this.headClass();
|
|
}, watch: { tableData: function(e2, t2) {
|
|
e2 !== t2 && this.getRenderTableData();
|
|
} }, methods: { dbclick: function(e2, t2, a2) {
|
|
e2.isSelected = !e2.isSelected;
|
|
}, handleBlur: function(e2, t2, a2) {
|
|
e2.isSelected = false;
|
|
var n2 = e2.name, o2 = this.amountData.find((function(e3) {
|
|
return "年度" === e3.id && e3.name === n2;
|
|
}));
|
|
o2 && (o2.updateValue = this.amountData.reduce((function(e3, t3, a3) {
|
|
var o3 = "年度" !== t3.id && t3.name === n2 ? parseFloat(t3.updateValue) : 0;
|
|
return parseFloat(e3) + o3;
|
|
}), 0));
|
|
}, getRenderTableData: function() {
|
|
var e2 = this;
|
|
this.amountData = [];
|
|
var t2 = this.tableData[0], a2 = Array.from({ length: 12 }, (function(e3, t3) {
|
|
return "month_" + ++t3;
|
|
}));
|
|
a2.push("year"), a2.forEach((function(a3, n2) {
|
|
if (void 0 != t2) {
|
|
var o2 = t2[a3], r2 = {}, l2 = {};
|
|
12 === n2 ? (r2["id"] = "年度", l2["id"] = "年度") : (r2["id"] = n2 + 1 + "月", l2["id"] = n2 + 1 + "月"), r2["name"] = "预算", l2["name"] = "发生", l2["month"] = n2 + 1, r2["month"] = n2 + 1, r2["adjustType"] = 1, l2["adjustType"] = 2, r2["year"] = parseInt(e2.year), l2["year"] = parseInt(e2.year), r2["value"] = o2.budgetValue, r2["updateValue"] = o2.budgetUpdateValue || 0, r2["afterValue"] = o2.budgetUpdateAfterValue || 0, l2["value"] = o2.happenValue, l2["updateValue"] = o2.happenUpdateValue || 0, l2["afterValue"] = o2.happenUpdateAfterValue || 0, l2["isSelected"] = false, r2["isSelected"] = false, e2.amountData.push(r2, l2);
|
|
}
|
|
}));
|
|
}, getBtnControl: function() {
|
|
this.disabledBtn = false;
|
|
}, submitAmount: function() {
|
|
this.disabledBtn = true, this.$emit("submitAmount", this.amountData);
|
|
}, cancelClick: function() {
|
|
this.disabledBtn = false, this.$emit("cancelClick", false);
|
|
}, headClass: function() {
|
|
return "text-align:center;background:#FAFAFA;";
|
|
}, objectSpanMethod: function(e2) {
|
|
e2.row, e2.column;
|
|
var t2 = e2.rowIndex, a2 = e2.columnIndex;
|
|
if (0 === a2) return t2 % 2 === 0 ? { rowspan: 2, colspan: 1 } : { rowspan: 0, colspan: 0 };
|
|
}, tableRowClassName: function(e2) {
|
|
e2.row;
|
|
var t2 = e2.rowIndex;
|
|
return t2 % 2 === 0 ? "" : "warning-row";
|
|
} }, mounted: function() {
|
|
this.getRenderTableData();
|
|
} }, U = R, q = (a("c12f"), Object(d["a"])(U, T, O, false, null, "08d655ea", null)), M = q.exports, V = a("ed08"), F = a("72b1"), L = { name: "recordsList", components: { Pagination: l["a"], getBud: m, updateRecord: y, adjustDetails: F["a"], agreeRemindDialog: A, importTemplateDialog: N, adjustAmount: M }, data: function() {
|
|
return { budgetMoneyData: [], budgetMoneyData2: [], activeName: "budgets", accountTable: [], timevalue: "", currentPage: 1, pageSize: 10, template: {}, listData: [], btnDisabled: true, titleInfo: "同意提醒", calculatedValue: "1", year2: "", treeLoading: false, adjustAmountDialog: false, importDialog: false, agreeRemindDialog: false, adjustDetailDialog: false, budgetShow: true, selectNodeId: "", filterText: "", meterDialog: false, selectMeterDialog: false, nodeInfoDialog: false, isShow: true, iFshow: true, listLoading: false, total: 0, pageTotal2: 0, query: { projectUuid: this.$store.state.community_uuid, year: "", pageNumber: 1, pageSize: 10 }, tableTree: [], pickerOptions: { disabledDate: function(e2) {
|
|
return e2.getTime() > Date.now();
|
|
} }, querySubject: {}, objInfo: {}, addBudget: { year: "", createBy: "", projectUuid: "" }, addBudgetRules: { year: [{ required: true, message: "年份是必填项", trigger: "change" }] }, pickerOptions2: { disabledDate: function(e2) {
|
|
var t2 = (/* @__PURE__ */ new Date()).getFullYear();
|
|
return e2.getFullYear() < t2 - 5 || e2.getFullYear() > t2;
|
|
} }, addBudgetShow: false };
|
|
}, watch: { filterText: function(e2) {
|
|
this.$refs.tree.filter(e2);
|
|
} }, mounted: function() {
|
|
var e2 = /* @__PURE__ */ new Date(), t2 = Object(V["c"])(e2, "yyyy");
|
|
this.query.year = t2, this.headClass(), this.getTableTree();
|
|
}, methods: { budgetSubmit: function() {
|
|
var e2 = this;
|
|
console.log(this.addBudget, "this.$refs.addBudget"), this.$refs.addBudget.validate((function(t2) {
|
|
t2 && Object(r["o"])(e2.addBudget).then((function(t3) {
|
|
0 == t3.code && (e2.addBudgetShow = false, e2.getTableTree());
|
|
}));
|
|
}));
|
|
}, autoAdd: function() {
|
|
this.addBudget.year = this.$moment().format("YYYY"), this.addBudgetShow = true, this.addBudget.createBy = this.$store.state.user.name, this.addBudget.projectUuid = this.$store.state.community_uuid;
|
|
}, handleClick: function(e2, t2) {
|
|
"budgets" === e2.name ? this.getListPage() : e2.name;
|
|
}, getAccountInfo: function() {
|
|
var e2 = this, t2 = this.query, a2 = t2.budgetItemId, n2 = t2.year, o2 = { budgetItemId: a2, year: parseInt(n2) };
|
|
Object(r["x"])(o2).then((function(t3) {
|
|
0 == t3.code && (e2.accountTable = t3.data);
|
|
}));
|
|
}, getListQuery: function() {
|
|
"account" === this.activeName ? this.currentPage = 1 : this.getListPage();
|
|
}, adjustAmountInfo: function() {
|
|
if (this.tableTree && 0 == this.tableTree.length) this.$message({ message: "没有需要调整金额的数据", type: "error" });
|
|
else {
|
|
this.adjustAmountDialog = true;
|
|
var e2 = this.query, t2 = e2.budgetItemId, a2 = e2.year;
|
|
this.objInfo = { budgetItemId: t2, year: parseInt(a2) }, this.getInfoList();
|
|
}
|
|
}, correctAmount: function() {
|
|
var e2 = this;
|
|
Object(r["d"])({ budgetItemId: this.query.budgetItemId, year: parseInt(this.query.year) }).then((function(t2) {
|
|
e2.$message({ message: "修正统计成功,请等待数据更新...", type: "success" }), e2.getListPage();
|
|
}));
|
|
}, agreeClick: function(e2) {
|
|
var t2 = this;
|
|
this.titleInfo = "同意提醒", this.agreeRemindDialog = true, this.$nextTick((function() {
|
|
e2.type = "同意", t2.$refs.agreeRemin.getValue(e2);
|
|
}));
|
|
}, viewClick: function(e2) {
|
|
this.adjustDetailDialog = true, this.objInfo = { id: e2.id, year: e2.year, budgetItemId: e2.budgetItemId }, console.log(this.querySubject, "querySubject"), 3 == this.querySubject.calcMode ? this.getInfoList() : this.getModifyDetails();
|
|
}, getModifyDetails: function() {
|
|
var e2 = this;
|
|
this.year2 = this.query.year, Object(r["w"])(this.objInfo).then((function(t2) {
|
|
0 == t2.code && (e2.budgetMoneyData2 = [t2.data]);
|
|
}));
|
|
}, rejectClick: function(e2) {
|
|
var t2 = this;
|
|
this.titleInfo = "拒绝提醒", this.agreeRemindDialog = true, this.$nextTick((function() {
|
|
e2.type = "拒绝", t2.$refs.agreeRemin.getValue(e2);
|
|
}));
|
|
}, agreeReminSubmit: function(e2) {
|
|
var t2 = { id: e2.id, remark: e2.comments, createUserUuid: this.$store.state.user.userInfo.uuid, createUserName: this.$store.state.user.userInfo.memberName };
|
|
"同意" === e2.valueData ? this.approveApply(t2) : this.rejectInfo(t2);
|
|
}, rejectInfo: function(e2) {
|
|
var t2 = this;
|
|
Object(r["A"])(e2).then((function(e3) {
|
|
0 === e3.code && (t2.$message({ message: "操作成功", type: "success" }), t2.agreeRemindDialog = false, t2.getListPage());
|
|
}));
|
|
}, approveApply: function(e2) {
|
|
var t2 = this;
|
|
Object(r["e"])(e2).then((function(e3) {
|
|
0 === e3.code && (t2.$message({ message: "操作成功", type: "success" }), t2.agreeRemindDialog = false, t2.getListPage());
|
|
}));
|
|
}, selectInfo: function(e2) {
|
|
"budgets" === this.activeName && null == e2.children && (this.query.budgetItemId = e2.id, this.getListPage());
|
|
}, getListPage: function() {
|
|
var e2 = this;
|
|
if (this.query.year) {
|
|
this.getApproveInfo(), this.$nextTick((function() {
|
|
e2.$refs.updateRecs.getListPage(e2.query, e2.querySubject.subjectName);
|
|
}));
|
|
var t2 = this.query, a2 = t2.budgetItemId, n2 = t2.year;
|
|
this.objInfo = { budgetItemId: a2, year: parseInt(n2) }, this.getInfoList();
|
|
} else this.$message({ message: "请选择年份", type: "error" });
|
|
}, getInfoList: function() {
|
|
var e2 = this;
|
|
this.year2 = this.query.year, Object(r["y"])(this.objInfo).then((function(t2) {
|
|
0 == t2.code && (e2.budgetMoneyData = [t2.data], e2.budgetMoneyData2 = [t2.data]);
|
|
}));
|
|
}, getApproveInfo: function() {
|
|
var e2 = this;
|
|
this.listLoading = true;
|
|
var t2 = this.query, a2 = t2.budgetItemId, n2 = t2.year, o2 = t2.projectUuid, l2 = t2.pageNumber, i2 = t2.pageSize, s2 = { budgetItemId: a2, projectUuid: o2, year: parseInt(n2), pageNumber: l2, pageSize: i2 };
|
|
Object(r["p"])(s2).then((function(t3) {
|
|
0 == t3.code && (e2.listData = t3.data.records, e2.total = t3.data.rowsCount, e2.listLoading = false);
|
|
})).catch((function() {
|
|
e2.listLoading = false;
|
|
}));
|
|
}, filterNode: function(e2, t2) {
|
|
return !e2 || -1 !== t2.subjectName.indexOf(e2);
|
|
}, handleNodeClick: function(e2) {
|
|
this.querySubject = e2, this.selectNodeId = e2.id, this.query.budgetItemId = e2.id, 3 == this.querySubject.calcMode && (this.query.year = e2.templateId, console.log(this.query.year, "this.query.year")), "account" === this.activeName || "budgets" === this.activeName && (null != e2.children ? this.btnDisabled = true : this.btnDisabled = false, this.getListPage());
|
|
}, deleteNodeInfo: function(e2) {
|
|
var t2 = this, a2 = { id: e2.id };
|
|
this.$confirm("是否确定删除," + this.query.year + e2.subjectName + " 模板,删除后无法恢复,请谨慎操作!", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }).then((function() {
|
|
Object(r["l"])(a2).then((function(e3) {
|
|
0 == e3.code && (t2.$message({ message: "删除成功", type: "success" }), t2.getTableTree());
|
|
}));
|
|
}));
|
|
}, exportTemplate: function(e2, t2, a2) {
|
|
var n2 = { type: e2, id: a2.id, formula: a2.formula, calcMode: a2.calcMode, subjectCode: a2.subjectCode, subjectName: a2.subjectName, subjectParentId: a2.subjectParentId, projectUuid: a2.projectUuid, subjectId: a2.subjectId };
|
|
Object(r["m"])(n2).then((function(e3) {
|
|
var a3 = "application/vnd.ms-excel", n3 = new Blob([e3], { type: a3 }), o2 = t2 + ".xls";
|
|
if (window.navigator.msSaveOrOpenBlob) navigator.msSaveBlob(n3, o2);
|
|
else {
|
|
var r2 = document.createElement("a");
|
|
r2.download = o2, r2.style.display = "none", r2.href = URL.createObjectURL(n3), document.body.appendChild(r2), r2.click(), document.body.removeChild(r2);
|
|
}
|
|
}));
|
|
}, importDataTable: function(e2, t2) {
|
|
this.template = t2, this.template.type = e2;
|
|
}, importData: function(e2) {
|
|
var t2 = this;
|
|
console.log(e2);
|
|
var a2 = e2.file, n2 = a2.size / 1024 / 1024 < 10, o2 = a2.name.lastIndexOf("."), l2 = a2.name.length, i2 = a2.name.substring(o2 + 1, l2);
|
|
if ("xls" == i2 || "xlsx" == i2) if (n2) {
|
|
var s2 = new FormData();
|
|
this.fileName = a2.name, s2.append("file", a2, a2.name), s2.append("appId", 2);
|
|
var u2 = { type: this.template.type, year: this.query.year, projectUuid: this.template.projectUuid, createUserUuid: this.$store.state.user.userInfo.uuid, createUserName: this.$store.state.user.userInfo.memberName, id: e2.data.id };
|
|
Object(r["t"])(s2, u2).then((function(e3) {
|
|
0 == e3.code && (t2.$message({ message: "导入成功", type: "success" }), t2.getTableTree());
|
|
})).catch((function() {
|
|
}));
|
|
} else this.$message("上传文件大小不能超过10M!");
|
|
else this.$message("只能上传Excel文件!");
|
|
}, submitAmount: function(e2) {
|
|
for (var t2 = this, a2 = e2.length - 1; a2 >= 0; a2--) "年度" === e2[a2].id && e2.splice(a2, 1);
|
|
var n2 = { budgetItemId: this.query.budgetItemId, createUserUuid: this.$store.state.user.userInfo.uuid, createUserName: this.$store.state.user.userInfo.memberName, projectUuid: this.query.projectUuid, projectName: this.$store.state.community_name, subjectCode: this.querySubject.subjectCode, subjectName: this.querySubject.subjectName };
|
|
e2.length > 0 && Array.isArray(e2) ? (n2.modifyMoneyList = e2, Object(r["b"])(n2).then((function(e3) {
|
|
0 === e3.code && (t2.$message({ message: "提交成功", type: "success" }), t2.$refs.adjustAmount.getBtnControl(), t2.adjustAmountDialog = false, t2.getListPage());
|
|
})).catch((function() {
|
|
t2.$refs.adjustAmount.getBtnControl(), t2.adjustAmountDialog = false;
|
|
}))) : (n2.modifyMoneyList = null, Object(r["c"])(n2).then((function(e3) {
|
|
0 === e3.code && (t2.$message({ message: "提交成功", type: "success" }), t2.getListPage());
|
|
})));
|
|
}, importTemplateSubmit: function(e2) {
|
|
var t2 = this;
|
|
Object(r["k"])(e2).then((function(e3) {
|
|
0 === e3.code && (t2.$message({ message: "导入成功", type: "success" }), t2.$refs.imports.resetFields(), t2.importDialog = false, t2.getTableTree());
|
|
})).catch((function() {
|
|
t2.$refs.imports.resetFields();
|
|
}));
|
|
}, newNodeInfo: function() {
|
|
var e2 = this;
|
|
this.importDialog = true, this.$nextTick((function() {
|
|
e2.$refs.imports.getTemplate();
|
|
}));
|
|
}, getTableTree: function() {
|
|
var e2 = this;
|
|
this.treeLoading = true, Object(r["q"])({ projectUuid: this.$store.state.community_uuid }).then((function(t2) {
|
|
if (0 == t2.code) {
|
|
if (e2.tableTree = t2.data, t2.data.length > 0 && (e2.selectNodeId = t2.data[0].id, e2.query.budgetItemId = t2.data[0].id, e2.querySubject = t2.data[0], e2.calculatedValue = t2.data[0].calcMode.toString(), 3 == t2.data[0].calcMode && (e2.query.year = t2.data[0].templateId), e2.getListPage()), e2.tableTree && e2.tableTree.length > 0 && e2.tableTree[0].children.length > 0) {
|
|
var a2 = e2.getTreeNode(e2.tableTree[0].children);
|
|
a2 && a2.id && (3 == t2.data[0].calcMode ? e2.btnDisabled = true : e2.btnDisabled = false);
|
|
}
|
|
e2.treeLoading = false;
|
|
}
|
|
})).catch((function() {
|
|
e2.treeLoading = false;
|
|
}));
|
|
}, getTreeNode: function(e2) {
|
|
var t2 = [];
|
|
return e2.forEach((function(e3) {
|
|
var a2 = function(e4) {
|
|
var n2 = e4.children;
|
|
if (n2) for (var o2 = 0; o2 < n2.length; o2++) a2(n2[o2]);
|
|
else t2.push(e4);
|
|
};
|
|
a2(e3);
|
|
})), t2.pop();
|
|
}, headClass: function() {
|
|
return "text-align:center;background:#FAFAFA;";
|
|
}, handleSizeChange: function(e2) {
|
|
this.query.pageSize = e2.limit, this.query.pageNumber = 1, this.getApproveInfo();
|
|
}, handleCurrentChange: function(e2) {
|
|
this.query.pageNumber = e2.currentPage, this.getApproveInfo();
|
|
}, handleSizeCh: function(e2) {
|
|
this.currentPage = 1, this.pageSize = e2;
|
|
}, handleCurrentCh: function(e2) {
|
|
this.currentPage = e2;
|
|
}, defaultSetting: function(e2) {
|
|
var t2 = this;
|
|
Object(r["C"])({ id: e2.id }).then((function(e3) {
|
|
0 == e3.code && (t2.$message({ message: "设置成功", type: "success" }), t2.getTableTree());
|
|
}));
|
|
} } }, P = L, z = (a("5c9b"), Object(d["a"])(P, n, o, false, null, "dbe1e7a0", null));
|
|
t["default"] = z.exports;
|
|
}, 2124: function(e, t) {
|
|
e.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAYCAYAAAD+vg1LAAAEvElEQVRIS5WVa2wUVRTH/+fOY2e39EWBLQYNQQTsloIpJMqj2zUxRrAKwiJtaUIkAqJBHomJmKCfEPWbicEEYkDoQyYRFCNprN0uBeoHIKZ0oSBgokVaDRTa0n3N3GNmoE0fauv9NJl7zm/+59z/PUMYx5p2NuzNkeoSJ/SusE53LDLjY6XRWAHO/pOn1k0Vgvc7z1LS65dLjtwaK88FF5/bqHV3d/tunDF78QHkyKRAJJwPTT/AkolsfUMsdLBzZIzDSPR25ykpo7f1+cP3XXBBdO1TpCjlxPR9ovd2y7VlJ5NDE2f8EM72GfpSW7LUEkrUSRy6/8i5Mt/E5IRXpBSVsPHppeAT9QQGBaIVpVDoMzD6bMaG9mD1RRwNK4UT1Umsi5mSMB/EfsG4D+ZrSUX+nO3pv3V+wYn+QWFC7CeQx5K0qT145Kyr2FHkMfRKQSix2drdc7e/Iyc3K0jMWxiYBxATYD9UqRHhrgTXqmn6sjVUfTMQCftZVdezpNYcLR1pWWTGBw9vemS9kaXbWX39iaTu1aoEsJOYNAluZkGNSkr+ziplElAMpmVMmAqgKS2t3b90yatF2YbRei+RwBrTFTDcFUfDSoFfXQVFfExM96Rlv88+rTlDMXoye69yU2mpnP3thQw7N/NRQ9AOyRxmwklI2j7SKcPA8yNrp6cVUQOifDC/EetMN2CNKR+Prp1mkFgskYheLvnatdqM5vBjBvQPAX6OCe+KP9KHY2vM1MChDoIdu9xP9lUKSXtAOEjp1J5YyOybffqlTBWZu8Aog5RbY8HaxoHkQFPlQlJQx+DrpHFV29O1XaPA8yMrctK67yO28YJU+NX2xbUtTqvmRCsLVQGTGT0JO1VxvdS8AXrg9TkNK/OEx/c5gIVsWS9eDn3VNgpcVL9yiuXzHiDQTEumll8Jmr+6amnCO5C0g4EohDTZoi5VoOXi0pruovqqDCvD3gWmdWC8dqmk+sdR4MKfyv3Soi+IxZQ4kqtuLDV/KzpTNSXN9j4CBSGRBlgloj/ttNzSHqo9VfxdmTeenbkNRBuF5B1tJTXH4NyMoa4YBEuaHKfUagcciIV16vQssD12AUEEwVhNwHlLpqqciopPlPniuVlvg7GJWO6MNdYeGxgJg4c3CAZNjvMD8EBZsxoqZmgG7WNGIbHcGuu0jjt+dcFDFUdqjo8ffDSsBPLVFSDxCRHqWaTeiy0y77jD63+BmSYpFla1hqo7XMUMmhWtXKBqvMxOirorzx65MlCJc1t9anIbIDa7Pf5PxQx/XKI8paU7/LcTpOcZ3JOEAg/0e0DceeeAu/IMzu6BFxP0t5ixQUje/s/ghnI/63SIieYR+JAUdIdsViGIwZIFKbZkWwGTcBUTSyLSGAgRU4CAzW1Lqo+PcsXc5opcCbEX4OVMnBYMyaB//cMQgZndWaOD8BfZ9pttwbqzw33MYWXmtXxV6eqertqYzYABIV0/jrWIHeXK7UQvX5jmvdnfVDqZQaZNBY3lAVJprq3AUAHbYhKaO37HvywJCQUgmxViirPFFylwpmIvJF5mIi/ATEzjUjrysww4vXc61A+Bb2hOZF2p0PgZAnv54XAZv9bhkcQQDIrLNLX8DVTOZnn5H6BhAAAAAElFTkSuQmCC";
|
|
}, "4e8e": function(e, t, a) {
|
|
}, 5332: function(e, t, a) {
|
|
"use strict";
|
|
a("d3b9");
|
|
}, "56e7": function(e, t, a) {
|
|
}, "5c9b": function(e, t, a) {
|
|
"use strict";
|
|
a("56e7");
|
|
}, 6396: function(e, t, a) {
|
|
"use strict";
|
|
Math.easeInOutQuad = function(e2, t2, a2, n) {
|
|
return e2 /= n / 2, e2 < 1 ? a2 / 2 * e2 * e2 + t2 : (e2--, -a2 / 2 * (e2 * (e2 - 2) - 1) + t2);
|
|
};
|
|
(function() {
|
|
window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame;
|
|
})();
|
|
}, "65f5": function(e, t, a) {
|
|
"use strict";
|
|
a.d(t, "s", (function() {
|
|
return o;
|
|
})), a.d(t, "q", (function() {
|
|
return r;
|
|
})), a.d(t, "k", (function() {
|
|
return l;
|
|
})), a.d(t, "p", (function() {
|
|
return i;
|
|
})), a.d(t, "r", (function() {
|
|
return s;
|
|
})), a.d(t, "e", (function() {
|
|
return u;
|
|
})), a.d(t, "A", (function() {
|
|
return c;
|
|
})), a.d(t, "w", (function() {
|
|
return d;
|
|
})), a.d(t, "b", (function() {
|
|
return p;
|
|
})), a.d(t, "c", (function() {
|
|
return m;
|
|
})), a.d(t, "y", (function() {
|
|
return g;
|
|
})), a.d(t, "l", (function() {
|
|
return h;
|
|
})), a.d(t, "z", (function() {
|
|
return b;
|
|
})), a.d(t, "m", (function() {
|
|
return f;
|
|
})), a.d(t, "t", (function() {
|
|
return v;
|
|
})), a.d(t, "x", (function() {
|
|
return y;
|
|
})), a.d(t, "d", (function() {
|
|
return w;
|
|
})), a.d(t, "n", (function() {
|
|
return _;
|
|
})), a.d(t, "E", (function() {
|
|
return j;
|
|
})), a.d(t, "C", (function() {
|
|
return S;
|
|
})), a.d(t, "h", (function() {
|
|
return I;
|
|
})), a.d(t, "i", (function() {
|
|
return A;
|
|
})), a.d(t, "u", (function() {
|
|
return D;
|
|
})), a.d(t, "f", (function() {
|
|
return B;
|
|
})), a.d(t, "g", (function() {
|
|
return C;
|
|
})), a.d(t, "j", (function() {
|
|
return x;
|
|
})), a.d(t, "a", (function() {
|
|
return k;
|
|
})), a.d(t, "o", (function() {
|
|
return N;
|
|
})), a.d(t, "B", (function() {
|
|
return T;
|
|
})), a.d(t, "v", (function() {
|
|
return O;
|
|
})), a.d(t, "D", (function() {
|
|
return R;
|
|
}));
|
|
var n = a("b775");
|
|
function o(e2) {
|
|
return Object(n["a"])({ url: "/appproject/BudgetItem/getTemplatePageList", method: "post", data: e2 });
|
|
}
|
|
function r(e2) {
|
|
return Object(n["a"])({ url: "/appproject/BudgetItem/getBudgetItemTree", method: "post", data: e2 });
|
|
}
|
|
function l(e2) {
|
|
return Object(n["a"])({ url: "/appproject/BudgetItem/create", method: "post", data: e2 });
|
|
}
|
|
function i(e2) {
|
|
return Object(n["a"])({ url: "/appproject/BudgetMoneyModifyApply/pageList", method: "post", data: e2 });
|
|
}
|
|
function s(e2) {
|
|
return Object(n["a"])({ url: "/appproject/BudgetItemMoney/modifyRecordPageList", method: "post", data: e2 });
|
|
}
|
|
function u(e2) {
|
|
return Object(n["a"])({ url: "/appproject/BudgetMoneyModifyApply/approveApply", method: "post", data: e2 });
|
|
}
|
|
function c(e2) {
|
|
return Object(n["a"])({ url: "/appproject/BudgetMoneyModifyApply/refuseApply", method: "post", data: e2 });
|
|
}
|
|
function d(e2) {
|
|
return Object(n["a"])({ url: "/appproject/BudgetItemMoney/modifyDetails", method: "post", data: e2 });
|
|
}
|
|
function p(e2) {
|
|
return Object(n["a"])({ url: "/appproject/BudgetItemMoney/adjustAmount", method: "post", data: e2 });
|
|
}
|
|
function m(e2) {
|
|
return Object(n["a"])({ url: "/appproject/BudgetItemMoney/adjustAmount2", method: "post", data: e2 });
|
|
}
|
|
function g(e2) {
|
|
return Object(n["a"])({ url: "/appproject/BudgetItemMoney/queryBudgetItemMoney", method: "post", data: e2 });
|
|
}
|
|
function h(e2) {
|
|
return Object(n["a"])({ url: "/appproject/BudgetItem/delBudgetItemNode", method: "post", data: e2 });
|
|
}
|
|
function b(e2) {
|
|
return Object(n["a"])({ url: "/appproject/BudgetItemMoney/queryBudgetMoneyStatistical", method: "post", data: e2 });
|
|
}
|
|
function f(e2) {
|
|
return Object(n["a"])({ url: "/appproject/BudgetItem/exportBudgetTemplate", method: "post", responseType: "blob", data: e2 });
|
|
}
|
|
function v(e2, t2) {
|
|
return Object(n["a"])({ url: "/appproject/BudgetItem/importBudgetItemMoney?projectUuid=" + t2.projectUuid + "&year=" + t2.year + "&type=" + t2.type + "&createUserUuid=" + t2.createUserUuid + "&createUserName=" + t2.createUserName + "&id=" + t2.id, method: "post", headers: { "Content-Type": "multipart/form-data;charset=UTF-8" }, data: e2 });
|
|
}
|
|
function y(e2) {
|
|
return Object(n["a"])({ url: "/appproject/BudgetItemMoney/queryBudgetAccountInfo", method: "post", data: e2 });
|
|
}
|
|
function w(e2) {
|
|
return Object(n["a"])({ url: "/appproject/BudgetItemMoney/adjustTotal", method: "post", data: e2 });
|
|
}
|
|
function _(e2) {
|
|
return Object(n["a"])({ url: "/appproject/ProjectConfig/findByUuid", method: "post", data: e2 });
|
|
}
|
|
function j(e2) {
|
|
return Object(n["a"])({ url: "/appproject/ProjectConfig/updateBudgetByProjectUuid", method: "post", data: e2 });
|
|
}
|
|
function S(e2) {
|
|
return Object(n["a"])({ url: "/appproject/BudgetItem/setMainBudgetNode", method: "post", data: e2 });
|
|
}
|
|
function I(e2) {
|
|
return Object(n["a"])({ url: "/appproject/BudgetBusiness/pageList", method: "post", data: e2 });
|
|
}
|
|
function A(e2) {
|
|
return Object(n["a"])({ url: "/appproject/BudgetBusiness/total", method: "post", data: e2 });
|
|
}
|
|
function D(e2, t2) {
|
|
return Object(n["a"])({ url: "/appproject/BudgetBusiness/importExcel/".concat(t2), method: "post", isReturnResponse: true, responseType: "blob", headers: { "Content-Type": "multipart/form-data;charset=UTF-8" }, data: e2 });
|
|
}
|
|
function B(e2) {
|
|
return Object(n["a"])({ url: "/appproject/BudgetBusiness/create", method: "post", data: e2 });
|
|
}
|
|
function C(e2) {
|
|
return Object(n["a"])({ url: "/appproject/BudgetBusiness/findById", method: "post", data: e2 });
|
|
}
|
|
function x(e2) {
|
|
return Object(n["a"])({ url: "/appproject/BudgetBusiness/update", method: "post", data: e2 });
|
|
}
|
|
function k(e2) {
|
|
return Object(n["a"])({ url: "/appproject/BudgetBusiness/log", method: "post", data: e2 });
|
|
}
|
|
function N(e2) {
|
|
return Object(n["a"])({ url: "/appproject/BudgetItemMoney/auto/statistics/generate/budget", method: "post", data: e2 });
|
|
}
|
|
function T(e2) {
|
|
return Object(n["a"])({ url: "/appproject/InvestmentSubscribe/pageList/adopt", method: "post", data: e2 });
|
|
}
|
|
function O(e2) {
|
|
return Object(n["a"])({ url: "/appproject/InvestmentSubscribe/into/rolling/budget", method: "post", data: e2 });
|
|
}
|
|
function R(e2) {
|
|
return Object(n["a"])({ url: "/project/BudgetItemMoney/value/change/statistics", method: "post", data: e2 });
|
|
}
|
|
}, "6e26": function(e, t, a) {
|
|
"use strict";
|
|
a("4e8e");
|
|
}, "72b1": function(e, t, a) {
|
|
"use strict";
|
|
var n = function() {
|
|
var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2;
|
|
return a2("div", { staticClass: "adjustDetails" }, [a2("el-table", { staticStyle: { width: "100%" }, attrs: { data: e2.amountData, "header-cell-style": e2.headClass, "span-method": e2.objectSpanMethod, border: "", "header-row-style": { height: "38px" }, height: "500px" } }, [a2("el-table-column", { attrs: { prop: "id", label: "月份", width: "180" } }), e2._v(" "), a2("el-table-column", { attrs: { prop: "name", label: "" } }), e2._v(" "), a2("el-table-column", { attrs: { prop: "amount1", label: "原值" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [a2("span", [e2._v(e2._s(e2._f("changeTwoDecimal")(t3.row.amount1)))])];
|
|
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { prop: "amount2", label: "调整/更新值" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [a2("span", [e2._v(e2._s(e2._f("changeTwoDecimal")(t3.row.amount2)))])];
|
|
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { prop: "amount3", label: "后值" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [a2("span", [e2._v(e2._s(e2._f("changeTwoDecimal")(t3.row.amount3)))])];
|
|
} }]) })], 1), e2._v(" "), a2("div", { staticStyle: { "text-align": "center", "margin-top": "15px" } }, [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: e2.cancelClick } }, [e2._v("取消")])], 1)], 1);
|
|
}, o = [], r = { data: function() {
|
|
return { amountData: [], listLoading: false, tableData1: [] };
|
|
}, props: { tableData: { type: Array } }, watch: { tableData: function(e2, t2) {
|
|
e2 !== t2 && this.getRenderTableData();
|
|
} }, created: function() {
|
|
this.headClass();
|
|
}, methods: { getRenderTableData: function() {
|
|
var e2 = this;
|
|
this.amountData = [];
|
|
var t2 = this.tableData[0], a2 = Array.from({ length: 12 }, (function(e3, t3) {
|
|
return "month_" + ++t3;
|
|
}));
|
|
a2.push("year"), a2.forEach((function(a3, n2) {
|
|
if (void 0 != t2) {
|
|
var o2 = t2[a3], r2 = {}, l2 = {};
|
|
r2["id"] = 12 === n2 ? "年度" : n2 + 1 + "月", r2["name"] = "预算", l2["name"] = "发生", r2["amount1"] = o2.budgetValue || 0, r2["amount2"] = o2.budgetUpdateValue || 0, r2["amount3"] = o2.budgetUpdateAfterValue || 0, l2["amount1"] = o2.happenValue || 0, l2["amount2"] = o2.happenUpdateValue || 0, l2["amount3"] = o2.happenUpdateAfterValue || 0, e2.amountData.push(r2, l2);
|
|
}
|
|
}));
|
|
}, cancelClick: function() {
|
|
this.$emit("canceAdjust", false);
|
|
}, headClass: function() {
|
|
return "text-align:center;background:#FAFAFA;";
|
|
}, objectSpanMethod: function(e2) {
|
|
e2.row, e2.column;
|
|
var t2 = e2.rowIndex, a2 = e2.columnIndex;
|
|
if (0 === a2) return t2 % 2 === 0 ? { rowspan: 2, colspan: 1 } : { rowspan: 0, colspan: 0 };
|
|
} }, mounted: function() {
|
|
this.getRenderTableData();
|
|
} }, l = r, i = a("829d"), s = Object(i["a"])(l, n, o, false, null, "10dccf1c", null);
|
|
t["a"] = s.exports;
|
|
}, "816d": function(e, t, a) {
|
|
}, a295: function(e, t) {
|
|
e.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAYCAYAAAD+vg1LAAAEnUlEQVRIS5WVXWxURRTH/2dmd3t37y7tstsuLB+ptEWkKBDhwaiADz4IGo2gBpHESAREg1ASEzFBnxD1zcRgAjGiCRJ5AF80JIoCxr6AEhERbKlKKSxtd+l+3e3unXPM3bLlo9HCPN3cmfOb/8z5zzmE2xgXpiLoFO2HvKXBUOHHab1wxguj8RZ487+HQpMDIdrlfZeL8vLsYvHSeHFV8HHAH41GQzMymRwBfGvQadueZAWxWwDSDtbcVShcvnWNAP6/bDuWDYdzc1OpQhX8Z2PDfG3MSqPkawzkO9uA4RsDu6PRemj3YRBxXgWPeIE3zvclk6GsO/S0j9UqY+jDmZnsIfJUnG0IL/Fp9RFI8qR5TUuqcOpLQN9j2/FggFuN0vO0ICFEBRG3i3x80vbFLiX7+oojwvzzSaxdENRB3HWtaeenqmJPEavKKq3UIhHZlglEehuc/GLRZgOB5kIgRGS8tQLxk9BVBr6AuJ+1pZ2LPbadcC28qFj/GrCz33vJHU1eTzMsM4AJ5I8OizKrCbKFSfwK6phADrvMF7SmiGK6X4ClUJhMwA+GZdvJwfy5RYmEdTSVKj0LVAXc5AoBdFdjeLkSeh+EIWHztmUVj025iGxVLMBn43Fbc2maUtQhwDNg+cZX4s3NtzjlJnBPg9Vs/P69JJjETK+0prPfei7pmhicCqUfLBf5SM1q3VFrOmvfu0T0qBi8WU7nPm8HyrWkjoI9y02IRVZpwnYIPi0pa3t7f3/+j3g84pfhrQI84UI2zhrMH64Fd8dCC4X0PhHp1iVZPaNQSI0B/wI0ROLh9yB4TLR5ru2K0+ld1ZmoPSegab+AsiB6vqU/e77m9TNTEPOVIx8TY2GZ5fHZmfxvY8Bd4XATWbJbhFpd1102a6jU46n1UekNguoQwRFms1+LThUy2c77gMzlRMLOc3ErWF4gyEstg4XvxoDP23ZCgvoTAZrIlJe3ZEr/dIXRRHWRnaKwGIKKEHxguQKDDa1X80dPJJPB+kpuEwnWsrgdbYPOARpJ8nVXXAdLI5nKCg98GgioiZEFPmC2UlgsJCsAOuGWK6u9Ex1PJkP1w7nXFWGdYXfL3rRz4J1rJWE0eTUwgEaYchVcO9a5+voZ2md2CtEcYrXxRHrooOfXKriS26QEa424HXsHnYO3Dfae9rym4FOafR8Acqg0kH+rHUhXi9cdguPMleVtaad35AmDzsdCC5jUUgPaN2sgd7Z2kh7AcmP2JiK13rvj/1UsQKJMWBmpy/amOEkJpSQ73Ksn9COAqXC8fx44ofokCwQDpfBrBKxhMZv/E8wW7SGqFp09Ak6LUr5rT1lIlCFizYCqKmZmIfIr4BEQtRt2188cdA6OccXf0xGtFMM7BFhGQhUQ2LuG/+oUHmBkXgKKVL+YyqteubzJx9XiA/hMPNKsgbtBYl1TOl4HghjDxHoQKvBzazrt1WchwNDpieH2OoV7WcgizYYECqxuqxeO7qq52s7YVVopcYYZp6g7FtkByJMABb3dmEZezp0M79LFE0RCJCgC9BWdaQgvUZoe0EJBUWMb6Z1sQAxlSBw20vkvFPNbDgATQSEAAAAASUVORK5CYII=";
|
|
}, c12f: function(e, t, a) {
|
|
"use strict";
|
|
a("816d");
|
|
}, d3b9: function(e, t, a) {
|
|
} }]);
|