Files
wysite/output/sourcemaps/hc-etms.sqygj.cn/static/js/chunk-5548642f.08ff1e17.js

448 lines
25 KiB
JavaScript

(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["chunk-5548642f"], { "0b37": function(t, e, a) {
"use strict";
a.d(e, "a", (function() {
return n;
})), a.d(e, "b", (function() {
return r;
})), a.d(e, "c", (function() {
return o;
})), a.d(e, "d", (function() {
return c;
})), a.d(e, "f", (function() {
return u;
})), a.d(e, "e", (function() {
return i;
}));
a("8dee"), a("e680"), a("4057"), a("fc02");
function n(t2, e2) {
var a2, n2, r2, o2;
try {
a2 = t2.toString().split(".")[1].length;
} catch (u2) {
a2 = 0;
}
try {
n2 = e2.toString().split(".")[1].length;
} catch (u2) {
n2 = 0;
}
if (o2 = Math.abs(a2 - n2), r2 = Math.pow(10, Math.max(a2, n2)), o2 > 0) {
var c2 = Math.pow(10, o2);
a2 > n2 ? (t2 = Number(t2.toString().replace(".", "")), e2 = Number(e2.toString().replace(".", "")) * c2) : (t2 = Number(t2.toString().replace(".", "")) * c2, e2 = Number(e2.toString().replace(".", "")));
} else t2 = Number(t2.toString().replace(".", "")), e2 = Number(e2.toString().replace(".", ""));
return (t2 + e2) / r2;
}
function r(t2, e2) {
var a2, n2, r2 = 0, o2 = 0;
try {
r2 = t2.toString().split(".")[1].length;
} catch (c2) {
}
try {
o2 = e2.toString().split(".")[1].length;
} catch (c2) {
}
return a2 = Number(t2.toString().replace(".", "")), n2 = Number(e2.toString().replace(".", "")), a2 / n2 * Math.pow(10, o2 - r2);
}
function o(t2, e2) {
var a2 = 0, n2 = t2.toString(), r2 = e2.toString();
try {
a2 += n2.split(".")[1].length;
} catch (o2) {
}
try {
a2 += r2.split(".")[1].length;
} catch (o2) {
}
return Number(n2.replace(".", "")) * Number(r2.replace(".", "")) / Math.pow(10, a2);
}
function c(t2, e2) {
var a2, n2, r2, o2;
try {
a2 = t2.toString().split(".")[1].length;
} catch (c2) {
a2 = 0;
}
try {
n2 = e2.toString().split(".")[1].length;
} catch (c2) {
n2 = 0;
}
return r2 = Math.pow(10, Math.max(a2, n2)), o2 = a2 >= n2 ? a2 : n2, (Math.round(t2 * r2 - e2 * r2) / r2).toFixed(o2);
}
function u(t2, e2) {
if (0 == t2 && (t2 = 0), /[^[\-|0-9][0-9]*]/.test(t2)) return "0";
if (null == t2 || "" === t2) return "";
t2 = t2.toString().replace(/^(-\d*)$/, "$1."), t2 = t2.toString().replace(/^(\d*)$/, "$1."), t2 = (t2 + "00").replace(/(\d*\.\d\d)\d*/, "$1"), t2 = t2.replace(".", ",");
var a2 = /(\d)(\d{3},)/;
while (a2.test(t2)) t2 = t2.replace(a2, "$1,$2");
if (t2 = t2.replace(/,(\d\d)$/, ".$1"), 0 === e2 || void 0 === e2) {
var n2 = t2.split(".");
"00" == n2[1] && (t2 = n2[0]);
}
return t2;
}
function i(t2, e2) {
t2 = t2.toString();
var a2 = t2.indexOf(".");
return t2 = -1 !== a2 ? t2.substring(0, e2 + a2 + 1) : t2.substring(0), parseFloat(t2).toFixed(e2);
}
}, "4006f": function(t, e, a) {
}, 5853: function(t, e, a) {
"use strict";
a("4006f");
}, b071: function(t, e, a) {
"use strict";
a.d(e, "n", (function() {
return r;
})), a.d(e, "q", (function() {
return o;
})), a.d(e, "o", (function() {
return c;
})), a.d(e, "r", (function() {
return u;
})), a.d(e, "E", (function() {
return i;
})), a.d(e, "D", (function() {
return s;
})), a.d(e, "N", (function() {
return l;
})), a.d(e, "K", (function() {
return p;
})), a.d(e, "F", (function() {
return d;
})), a.d(e, "p", (function() {
return m;
})), a.d(e, "G", (function() {
return f;
})), a.d(e, "H", (function() {
return h;
})), a.d(e, "O", (function() {
return b;
})), a.d(e, "k", (function() {
return g;
})), a.d(e, "M", (function() {
return y;
})), a.d(e, "l", (function() {
return v;
})), a.d(e, "j", (function() {
return w;
})), a.d(e, "i", (function() {
return k;
})), a.d(e, "L", (function() {
return S;
})), a.d(e, "x", (function() {
return T;
})), a.d(e, "y", (function() {
return O;
})), a.d(e, "c", (function() {
return _;
})), a.d(e, "d", (function() {
return j;
})), a.d(e, "b", (function() {
return N;
})), a.d(e, "w", (function() {
return C;
})), a.d(e, "v", (function() {
return P;
})), a.d(e, "C", (function() {
return x;
})), a.d(e, "a", (function() {
return I;
})), a.d(e, "A", (function() {
return L;
})), a.d(e, "t", (function() {
return q;
})), a.d(e, "B", (function() {
return R;
})), a.d(e, "u", (function() {
return M;
})), a.d(e, "s", (function() {
return F;
})), a.d(e, "z", (function() {
return $;
})), a.d(e, "P", (function() {
return D;
})), a.d(e, "g", (function() {
return E;
})), a.d(e, "h", (function() {
return U;
})), a.d(e, "f", (function() {
return z;
})), a.d(e, "e", (function() {
return A;
})), a.d(e, "m", (function() {
return B;
})), a.d(e, "I", (function() {
return W;
})), a.d(e, "J", (function() {
return J;
}));
var n = a("b775");
function r(t2) {
return Object(n["a"])({ url: "/hakocompany/data/project/currentYearTotal", method: "POST", data: t2 });
}
function o(t2) {
return Object(n["a"])({ url: "/hakocompany/data/project/employeeReport", method: "POST", data: t2 });
}
function c(t2) {
return Object(n["a"])({ url: "/hakocompany/data/project/currentYearTotalTask", method: "POST", data: t2 });
}
function u(t2) {
return Object(n["a"])({ url: "/hakocompany/data/project/employeeReportTask", method: "POST", data: t2 });
}
function i(t2) {
return Object(n["a"])({ url: "/company/Assess/pageListAssess", method: "POST", data: t2 });
}
function s(t2) {
return Object(n["a"])({ url: "/hakocompany/data/project/chargeTotal", method: "POST", data: t2 });
}
function l(t2) {
return Object(n["a"])({ url: "/hakocompany/data/project/currentTotalTask", method: "POST", data: t2 });
}
function p(t2) {
return Object(n["a"])({ url: "/hakocompany/data/project/syncTaskV2", method: "POST", data: t2 });
}
function d(t2) {
return Object(n["a"])({ url: "/hakocompany/data/project/syncUpdate", method: "POST", data: t2 });
}
function m(t2) {
return Object(n["a"])({ url: "/hakocompany/data/project/downloadChargeTotal", method: "POST", responseType: "blob", data: t2 });
}
function f(t2) {
return Object(n["a"])({ url: "/hakocompany/spaceTaskStatistics/pageList", method: "POST", data: t2 });
}
function h(t2) {
return Object(n["a"])({ url: "/hakocompany/spaceTaskStatistics/exportByMonth", method: "POST", responseType: "blob", data: t2 });
}
function b(t2) {
return Object(n["a"])({ url: "/hakocompany/spaceTaskStatistics/statistics", method: "POST", data: t2 });
}
function g(t2) {
return Object(n["a"])({ url: "/hakocompany/ContractTaskStatistics/pageList", method: "POST", data: t2 });
}
function y(t2) {
return Object(n["a"])({ url: "/hakocompany/ContractTaskStatistics/statistics", method: "POST", data: t2 });
}
function v(t2) {
return Object(n["a"])({ url: "/hakocompany/ContractTaskStatistics/pageItemList", method: "POST", data: t2 });
}
function w(t2) {
return Object(n["a"])({ url: "/hakocompany/ContractExecuteStatistics/pageList", method: "POST", data: t2 });
}
function k(t2) {
return Object(n["a"])({ url: "/hakocompany/ContractExecuteStatistics/export", method: "POST", responseType: "blob", data: t2 });
}
function S(t2) {
return Object(n["a"])({ url: "/hakocompany/ContractExecuteStatistics/statistics", method: "POST", data: t2 });
}
function T(t2) {
return Object(n["a"])({ url: "/hakocompany/InspectSubscribe/reportPageList", method: "POST", data: t2 });
}
function O(t2) {
return Object(n["a"])({ url: "/hakocompany/InspectSubscribe/exportReport", method: "POST", responseType: "blob", data: t2 });
}
function _(t2) {
return Object(n["a"])({ url: "/hakocompany/TaskStatisticsReport/pageList", method: "POST", data: t2 });
}
function j(t2) {
return Object(n["a"])({ url: "/hakocompany/TaskStatisticsReport/statistics", method: "POST", data: t2 });
}
function N(t2) {
return Object(n["a"])({ url: "/hakocompany/TaskStatisticsReport/exportReport", method: "POST", responseType: "blob", data: t2 });
}
function C(t2) {
return Object(n["a"])({ url: "/hakocompany/data/project/personWeekInfo", method: "POST", data: t2 });
}
function P(t2) {
return Object(n["a"])({ url: "/hakocompany/data/project/downloadWeekInfo", method: "POST", responseType: "blob", data: t2 });
}
function x(t2) {
return Object(n["a"])({ url: "/hakocompany/data/project/projectWxpublicUser", method: "POST", data: t2 });
}
function I(t2) {
return Object(n["a"])({ url: "/hakocompany/TaskStatisticsReport/projectPageList", method: "POST", data: t2 });
}
function L(t2) {
return Object(n["a"])({ url: "/hakocompany/PostponeWorder/projectOrderStatisticsPage", method: "POST", data: t2 });
}
function q(t2) {
return Object(n["a"])({ url: "/hakocompany/PostponeWorder/memberOrderPage", method: "POST", data: t2 });
}
function R(t2) {
return Object(n["a"])({ url: "/hakocompany/TaskStatisticsReport/projectPageByTaskType", method: "POST", data: t2 });
}
function M(t2) {
return Object(n["a"])({ url: "/hakocompany/TaskStatisticsReport/pageByTaskType", method: "POST", data: t2 });
}
function F(t2) {
return Object(n["a"])({ url: "/hakocompany/WorkOrder/memberOrderPage", method: "POST", data: t2 });
}
function $(t2) {
return Object(n["a"])({ url: "/hakocompany/PostponeWorder/export", method: "POST", responseType: "blob", data: t2 });
}
function D(t2) {
return Object(n["a"])({ url: "/hakocompany/WorkOrder/export", method: "POST", responseType: "blob", data: t2 });
}
function E(t2) {
return Object(n["a"])({ url: "/hakocompany/data/project/ChargeReportByCharge/pageList", method: "POST", data: t2 });
}
function U(t2) {
return Object(n["a"])({ url: "/hakocompany/data/project/ChargeReportByCharge/pageList/sum", method: "POST", data: t2 });
}
function z(t2) {
return Object(n["a"])({ url: "/hakocompany/data/project/ChargeReportByCharge/out/excel", method: "POST", responseType: "blob", data: t2 });
}
function A(t2) {
return Object(n["a"])({ url: "/hakocompany/data/project/calculated/rate", method: "POST", data: t2 });
}
function B(t2) {
return Object(n["a"])({ url: "/hakocompany/data/project/ChargeReportByCharge/current/by/charges", method: "POST", data: t2 });
}
function W(t2) {
return Object(n["a"])({ url: "/hakocompany/CustomerVisit/statisticsCustomerVisit", method: "POST", data: t2 });
}
function J(t2) {
return Object(n["a"])({ url: "/hakocompany/CustomerVisit/export", method: "POST", responseType: "blob", data: t2 });
}
}, f6b0: function(t, e, a) {
"use strict";
a.d(e, "b", (function() {
return r;
})), a.d(e, "a", (function() {
return o;
}));
var n = a("b775");
function r(t2) {
return Object(n["a"])({ url: "/company/organizationalStructure/findAllPageList", method: "post", data: t2 });
}
function o(t2) {
return Object(n["a"])({ url: "/hakocompany/TaskStatisticsReport/exportProjectReport", method: "POST", responseType: "blob", data: t2 });
}
}, fab1: 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: "headStys" }, [a2("div", { staticClass: "formContent" }, [a2("el-form", { ref: "query", staticClass: "demo-form-inline", attrs: { inline: true, model: t2.query } }, [a2("el-form-item", { attrs: { prop: "month", label: "" } }, [a2("el-date-picker", { staticClass: "queryFromItems", attrs: { type: "month", "value-format": "yyyy-MM", placeholder: "选择月份" }, model: { value: t2.query.month, callback: function(e3) {
t2.$set(t2.query, "month", e3);
}, expression: "query.month" } })], 1), t2._v(" "), a2("el-form-item", { attrs: { prop: "projectUuid", label: "" } }, [a2("el-select", { staticClass: "queryFromItems", attrs: { clearable: "", placeholder: "项目名称" }, model: { value: t2.query.projectUuid, callback: function(e3) {
t2.$set(t2.query, "projectUuid", e3);
}, expression: "query.projectUuid" } }, t2._l(t2.projectList, (function(t3, e3) {
return a2("el-option", { key: e3, attrs: { label: t3.name, value: t3.uuid } });
})), 1)], 1), t2._v(" "), a2("el-form-item", { attrs: { prop: "contractName", label: "" } }, [a2("el-input", { staticClass: "queryFromItems", attrs: { clearable: "", placeholder: "合同名称", maxlength: "64" }, model: { value: t2.query.contractName, callback: function(e3) {
t2.$set(t2.query, "contractName", e3);
}, expression: "query.contractName" } })], 1), t2._v(" "), a2("el-form-item", [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: t2.onSearch } }, [t2._v("查询")])], 1), t2._v(" "), a2("el-form-item", [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: function(e3) {
return t2.resetForm("query");
} } }, [t2._v("重置")])], 1)], 1)], 1), t2._v(" "), a2("div", { staticClass: "contentStys" }, [a2("div", { staticClass: "planLst" }, [a2("span", [t2._v("合同计划执行报表 ")]), t2._v(" "), a2("span", { staticClass: "addPlan" }, [a2("el-button", { attrs: { type: "text" } }, [t2._v(t2._s(t2.listTable.length > 0 ? t2.listTable[0].createTime : "-") + "(最新更新时间)")]), t2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], staticClass: "cololr", attrs: { type: "primary", disabled: t2.updatabtnloading, loading: t2.updatabtnloading }, on: { click: t2.updataStatisic } }, [t2._v("修正统计")]), t2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], staticClass: "cololr", attrs: { type: "primary" }, on: { click: t2.downLoadExecl } }, [t2._v("下载Excel")])], 1)]), t2._v(" "), a2("el-table", { directives: [{ name: "loading", rawName: "v-loading", value: t2.listLoading, expression: "listLoading" }], staticStyle: { width: "96%", "margin-left": "2%" }, attrs: { border: "", data: t2.listTable, "header-cell-style": t2.headClass, "tooltip-effect": "dark", "row-key": t2.getRowKeys, "tree-props": { children: "itemRespDTOList" } } }, [a2("el-table-column", { attrs: { label: "#", align: "center", fixed: "", "min-width": "50" } }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "projectName", "show-overflow-tooltip": "", "min-width": "100", label: "项目名称", fixed: "" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
return [e3.row.contractId ? a2("span", [t2._v(t2._s(e3.row.projectName))]) : a2("span")];
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "contractName", "min-width": "180", label: "合同名称", "show-overflow-tooltip": "" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
return [e3.row.contractId ? a2("span", [t2._v(t2._s(e3.row.contractName))]) : a2("span")];
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "planModel", "min-width": "90", label: "计划类型", "show-overflow-tooltip": "" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
return [e3.row.planModel ? a2("span", [t2._v(t2._s(t2._f("getItemType")(e3.row.planModel, t2.planCategory)))]) : a2("span", [t2._v("全部")])];
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "taskNum", "min-width": "140", label: "本月应完成工单数", "show-overflow-tooltip": "" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
return [null != e3.row.taskNum ? a2("span", { staticClass: "childrenText" }, [t2._v(t2._s(e3.row.taskNum))]) : a2("span", [t2._v(t2._s(t2.culTotal(e3.row, "taskNum")))])];
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "taskCompleteNum", "min-width": "130", label: "本月完成工单数", "show-overflow-tooltip": "" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
return [null != e3.row.taskCompleteNum ? a2("span", { staticClass: "childrenText" }, [t2._v(t2._s(e3.row.taskCompleteNum))]) : a2("span", [t2._v(t2._s(t2.culTotal(e3.row, "taskCompleteNum")))])];
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "taskIncompleteNum", "min-width": "140", label: "本月未完成工单数", "show-overflow-tooltip": "" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
return [null != e3.row.taskIncompleteNum ? a2("span", { staticClass: "childrenText" }, [t2._v(t2._s(e3.row.taskIncompleteNum))]) : a2("span", [t2._v(t2._s(t2.culTotal(e3.row, "taskIncompleteNum")))])];
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "taskEarlyNum", "min-width": "130", label: "本月提前工单数", "show-overflow-tooltip": "" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
return [null != e3.row.taskEarlyNum ? a2("span", { staticClass: "childrenText" }, [t2._v(t2._s(e3.row.taskEarlyNum))]) : a2("span", [t2._v(t2._s(t2.culTotal(e3.row, "taskEarlyNum")))])];
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "taskOvertimeNum", "min-width": "150", label: "本月超时完成工单数", "show-overflow-tooltip": "" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
return [null != e3.row.taskOvertimeNum ? a2("span", { staticClass: "childrenText" }, [t2._v(t2._s(e3.row.taskOvertimeNum))]) : a2("span", [t2._v(t2._s(t2.culTotal(e3.row, "taskOvertimeNum")))])];
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "taskOvertimeIncompleteNum", "min-width": "140", label: "本月超时仍未完成", "show-overflow-tooltip": "" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
return [null != e3.row.taskOvertimeIncompleteNum ? a2("span", { staticClass: "childrenText" }, [t2._v(t2._s(e3.row.taskOvertimeIncompleteNum))]) : a2("span", [t2._v(t2._s(t2.culTotal(e3.row, "taskOvertimeIncompleteNum")))])];
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "taskFollowNum", "min-width": "100", label: "需保持跟进", "show-overflow-tooltip": "" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
return [null != e3.row.taskFollowNum ? a2("span", { staticClass: "childrenText" }, [t2._v(t2._s(e3.row.taskFollowNum))]) : a2("span", [t2._v(t2._s(t2.culTotal(e3.row, "taskFollowNum")))])];
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "spuAmount", "min-width": "180", label: "已完成-基础云豆R1价值", "show-overflow-tooltip": "" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
return [null != e3.row.spuAmount ? a2("span", { staticClass: "childrenText" }, [t2._v(t2._s(e3.row.spuAmount))]) : a2("span", [t2._v(t2._s(t2.culTotal(e3.row, "spuAmount")))])];
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "agreeNum", "min-width": "80", label: "点赞数", "show-overflow-tooltip": "" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
return [null != e3.row.agreeNum ? a2("span", { staticClass: "childrenText" }, [t2._v(t2._s(e3.row.agreeNum))]) : a2("span", [t2._v(t2._s(t2.culTotal(e3.row, "agreeNum")))])];
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "commentNum", "min-width": "80", label: "评分数", "show-overflow-tooltip": "" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
return [null != e3.row.commentNum ? a2("span", { staticClass: "childrenText" }, [t2._v(t2._s(e3.row.commentNum))]) : a2("span", [t2._v(t2._s(t2.culTotal(e3.row, "commentNum")))])];
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "negativeCommentNum", "min-width": "100", label: "低价评分数", "show-overflow-tooltip": "" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
return [null != e3.row.negativeCommentNum ? a2("span", { staticClass: "childrenText" }, [t2._v(t2._s(e3.row.negativeCommentNum))]) : a2("span", [t2._v(t2._s(t2.culTotal(e3.row, "negativeCommentNum")))])];
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "averageScore", "min-width": "90", label: "评分均分", "show-overflow-tooltip": "" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
return [null != e3.row.averageScore ? a2("span", { staticClass: "childrenText" }, [t2._v(t2._s(e3.row.averageScore))]) : a2("span", [t2._v(t2._s(t2.culTotal(e3.row, "averageScore")))])];
} }]) })], 1), t2._v(" "), a2("div", { staticClass: "pagination" }, [a2("el-pagination", { attrs: { "current-page": t2.query.pageNumber, "page-sizes": [10, 20, 30, 100], "page-size": t2.query.pageSize, layout: "total, sizes, prev, pager, next, jumper", total: t2.pageTotal }, on: { "update:currentPage": function(e3) {
return t2.$set(t2.query, "pageNumber", e3);
}, "update:current-page": function(e3) {
return t2.$set(t2.query, "pageNumber", e3);
}, "size-change": t2.handleSizeChange, "current-change": t2.handleCurrentChange } })], 1)], 1)]);
}, r = [], o = (a("4057"), a("8dee"), a("333d")), c = a("f6b0"), u = a("b071"), i = a("dce5"), s = a("0b37"), l = { components: { Pagination: o["a"] }, data: function() {
return { showDialog: false, pageTotal: 0, listLoading: false, projectList: [], listTable: [], planCategory: i["lb"], query: { companyId: JSON.parse(localStorage.getItem("companyInfo")).osId, month: "", projectUuid: "", contractName: "", pageSize: 10, pageNumber: 1 }, updatabtnloading: false };
}, created: function() {
this.headClass();
}, mounted: function() {
this.getProjectsList(), this.getDate(), this.getlistData();
}, methods: { getProjectsList: function() {
var t2 = this, e2 = { pageNumber: -1, pageSize: -1, attribute: 1, companyId: JSON.parse(window.localStorage.getItem("companyInfo")).osId };
Object(c["b"])(e2).then((function(e3) {
t2.projectList = e3.data.records;
}));
}, getlistData: function() {
var t2 = this;
this.listLoading = true, Object(u["j"])(this.query).then((function(e2) {
t2.listTable = e2.data.records, t2.pageTotal = e2.data.rowsCount, t2.listLoading = false;
})).catch((function() {
t2.listLoading = false;
}));
}, updataStatisic: function() {
var t2 = this;
this.updatabtnloading = true;
var e2 = { companyId: JSON.parse(localStorage.getItem("companyInfo")).osId };
Object(u["L"])(e2).then((function(e3) {
0 === e3.code && t2.$message({ message: "修正统计即将开始,数据更新将会耗费一定的时长,请稍后手动刷新数据", type: "warning" }), t2.updatabtnloading = false;
})).catch((function() {
t2.updatabtnloading = false;
}));
}, downLoadExecl: function() {
var t2 = this;
Object(u["i"])(this.query).then((function(e2) {
var a2 = new Blob([e2], { type: "application/vnd.ms-excel;charset=UTF-8" });
if (window.navigator.msSaveOrOpenBlob) navigator.msSaveBlob(a2);
else {
var n2 = document.createElement("a");
n2.download = "".concat(t2.query.month, "合同计划执行报表"), n2.href = URL.createObjectURL(a2), n2.click(), URL.revokeObjectURL(n2.href), document.body.removeChild(n2);
}
})).catch((function(t3) {
}));
}, getRowKeys: function(t2) {
return t2.contractId ? t2.contractId : this.random_string(4) + this.getUid();
}, formatNum: function(t2, e2) {
var a2 = t2[e2.property] ? t2[e2.property] : 0, n2 = a2.toString().replace(/\d+/, (function(t3) {
return t3.replace(/(\d)(?=(\d{3})+$)/g, (function(t4) {
return t4 + ",";
}));
}));
return "¥ " + n2;
}, random_string: function(t2) {
t2 = t2 || 32;
for (var e2 = "ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678", a2 = e2.length, n2 = "", r2 = 0; r2 < t2; r2++) n2 += e2.charAt(Math.floor(Math.random() * a2));
return n2;
}, getUid: function() {
return (/* @__PURE__ */ new Date()).getTime() + Math.floor(1e3 * Math.random() + 1e3).toString();
}, onSearch: function() {
this.query.pageNumber = 1, this.getlistData();
}, resetForm: function(t2) {
this.$refs[t2].resetFields(), this.query.pageNumber = 1, this.getDate(), this.getlistData();
}, handleSizeChange: function(t2) {
this.query.pageSize = t2, this.query.pageNumber = 1, this.getlistData();
}, handleCurrentChange: function(t2) {
this.query.pageNumber = t2, this.getlistData();
}, culTotal: function(t2, e2) {
if (t2.contractId) {
var a2 = t2.itemRespDTOList.reduce((function(t3, a3) {
return Object(s["a"])(a3[e2], t3);
}), 0);
return a2;
}
}, getDate: function() {
var t2 = /* @__PURE__ */ new Date(), e2 = t2.getFullYear(), a2 = t2.getMonth() + 1;
0 == a2 && (e2 -= 1, a2 = 12), a2 = a2 < 10 ? "0" + a2 : a2, this.query.month = e2 + "-" + a2;
}, headClass: function() {
return "text-align:center;background:#FAFAFA;";
} } }, p = l, d = (a("5853"), a("829d")), m = Object(d["a"])(p, n, r, false, null, "95ed15be", null);
e["default"] = m.exports;
} }]);