Files
wysite/output/sourcemaps/hc-etms.sqygj.cn/static/js/chunk-39081a48.880fbf60.js

328 lines
20 KiB
JavaScript

(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["chunk-39081a48"], { "37a0": function(t, e, a) {
}, "79b2": function(t, e, a) {
"use strict";
a("37a0");
}, a98d: function(t, e, a) {
"use strict";
a.r(e);
var o = 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", { 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: "spaceName", label: "" } }, [a2("el-input", { staticClass: "queryFromItems", attrs: { clearable: "", placeholder: "空间", maxlength: "64" }, model: { value: t2.query.spaceName, callback: function(e3) {
t2.$set(t2.query, "spaceName", e3);
}, expression: "query.spaceName" } })], 1), t2._v(" "), a2("el-form-item", { attrs: { prop: "location", label: "" } }, [a2("el-input", { staticClass: "queryFromItems", attrs: { clearable: "", placeholder: "网格", maxlength: "64" }, model: { value: t2.query.location, callback: function(e3) {
t2.$set(t2.query, "location", e3);
}, expression: "query.location" } })], 1), t2._v(" "), a2("el-form-item", { attrs: { prop: "sceneName", label: "" } }, [a2("el-input", { staticClass: "queryFromItems", attrs: { clearable: "", placeholder: "场景归属", maxlength: "64" }, model: { value: t2.query.sceneName, callback: function(e3) {
t2.$set(t2.query, "sceneName", e3);
}, expression: "query.sceneName" } })], 1), t2._v(" "), a2("el-form-item", { attrs: { prop: "targetType", label: "" } }, [a2("el-select", { staticClass: "queryFromItems", attrs: { clearable: "", placeholder: "作业对象类型" }, model: { value: t2.query.targetType, callback: function(e3) {
t2.$set(t2.query, "targetType", e3);
}, expression: "query.targetType" } }, t2._l(t2.targetTypeList, (function(t3) {
return a2("el-option", { key: t3.value, attrs: { label: t3.label, value: t3.value } });
})), 1)], 1), t2._v(" "), a2("el-form-item", { attrs: { prop: "targetName", label: "" } }, [a2("el-input", { staticClass: "queryFromItems", attrs: { clearable: "", placeholder: "作业对象", maxlength: "64" }, model: { value: t2.query.targetName, callback: function(e3) {
t2.$set(t2.query, "targetName", e3);
}, expression: "query.targetName" } })], 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" } }, [a2("el-table-column", { attrs: { label: "#", align: "center", fixed: "", width: "50" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
return [a2("span", [t2._v(t2._s(e3.$index + (t2.query.pageNumber - 1) * t2.query.pageSize + 1))])];
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "projectName", "show-overflow-tooltip": "", "min-width": "150", label: "项目名称", fixed: "" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
return [e3.row.projectName ? a2("span", [t2._v(t2._s(e3.row.projectName))]) : a2("span", [t2._v("-")])];
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "spaceName", width: "200", label: "空间", "show-overflow-tooltip": "" } }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "location", width: "200", label: "网格", "show-overflow-tooltip": "" } }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "sceneName", width: "200", label: "场景归属", "show-overflow-tooltip": "" } }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "targetTypeText", width: "200", label: "作业对象类型", "show-overflow-tooltip": "" } }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "targetName", width: "200", label: "作业对象", "show-overflow-tooltip": "" } }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "month", width: "200", label: "所属月份", "show-overflow-tooltip": "" } }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "spuAmount", width: "200", label: "SPU数量", "show-overflow-tooltip": "" } }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "ptuNum", width: "200", label: "本月应完成数", "show-overflow-tooltip": "" } }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "ptuCompleteNum", width: "200", label: "本月完成次数", "show-overflow-tooltip": "" } }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "ptuEarlyNum", width: "200", label: "本月提前完成", "show-overflow-tooltip": "" } }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "ptuOvertimeNum", width: "200", label: "本月超时完成", "show-overflow-tooltip": "" } }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "ptuOvertimeIncompleteNum", width: "200", label: "本月超时仍未完成", "show-overflow-tooltip": "" } }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "ptuFollowNum", width: "200", label: "需保持跟进", "show-overflow-tooltip": "" } }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "spuAmount", width: "200", label: "完成基础云豆R1价值", "show-overflow-tooltip": "" } }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "agreeNum", width: "200", label: "点赞数", "show-overflow-tooltip": "" } }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "commentNum", width: "200", label: "评分数", "show-overflow-tooltip": "" } }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "averageScore", width: "200", label: "评分均分", "show-overflow-tooltip": "" } }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "negativeCommentNum", width: "200", label: "低分评价条数", "show-overflow-tooltip": "" } })], 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 = [], n = (a("4057"), a("8dee"), a("333d")), c = a("f6b0"), l = a("b071"), i = a("dce5"), u = { components: { Pagination: n["a"] }, data: function() {
return { showDialog: false, pageTotal: 0, listLoading: false, projectList: [], listTable: [], targetTypeList: i["Cb"], query: { month: "", location: "", spaceName: "", sceneName: "", targetName: "", targetType: "", companyId: JSON.parse(localStorage.getItem("companyInfo")).osId, projectUuid: "", 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(l["G"])(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(l["O"])(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(l["H"])(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 o2 = document.createElement("a");
o2.download = "".concat(t2.query.month, "作业网格台账报表"), o2.href = URL.createObjectURL(a2), o2.click(), URL.revokeObjectURL(o2.href), document.body.removeChild(o2);
}
})).catch((function(t3) {
}));
}, formatNum: function(t2, e2) {
var a2 = t2[e2.property] ? t2[e2.property] : 0, o2 = a2.toString().replace(/\d+/, (function(t3) {
return t3.replace(/(\d)(?=(\d{3})+$)/g, (function(t4) {
return t4 + ",";
}));
}));
return "¥ " + o2;
}, 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();
}, headClass: function() {
return "text-align:center;background:#FAFAFA;";
}, 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;
} } }, s = u, p = (a("79b2"), a("829d")), d = Object(p["a"])(s, o, r, false, null, "1945d4cf", null);
e["default"] = d.exports;
}, b071: function(t, e, a) {
"use strict";
a.d(e, "n", (function() {
return r;
})), a.d(e, "q", (function() {
return n;
})), a.d(e, "o", (function() {
return c;
})), a.d(e, "r", (function() {
return l;
})), a.d(e, "E", (function() {
return i;
})), a.d(e, "D", (function() {
return u;
})), a.d(e, "N", (function() {
return s;
})), 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 h;
})), a.d(e, "H", (function() {
return b;
})), a.d(e, "O", (function() {
return f;
})), a.d(e, "k", (function() {
return y;
})), a.d(e, "M", (function() {
return g;
})), a.d(e, "l", (function() {
return v;
})), a.d(e, "j", (function() {
return O;
})), a.d(e, "i", (function() {
return T;
})), a.d(e, "L", (function() {
return S;
})), a.d(e, "x", (function() {
return k;
})), a.d(e, "y", (function() {
return j;
})), a.d(e, "c", (function() {
return w;
})), a.d(e, "d", (function() {
return P;
})), a.d(e, "b", (function() {
return _;
})), a.d(e, "w", (function() {
return N;
})), a.d(e, "v", (function() {
return C;
})), a.d(e, "C", (function() {
return q;
})), a.d(e, "a", (function() {
return x;
})), a.d(e, "A", (function() {
return L;
})), a.d(e, "t", (function() {
return I;
})), a.d(e, "B", (function() {
return R;
})), a.d(e, "u", (function() {
return F;
})), a.d(e, "s", (function() {
return $;
})), a.d(e, "z", (function() {
return z;
})), a.d(e, "P", (function() {
return U;
})), a.d(e, "g", (function() {
return D;
})), a.d(e, "h", (function() {
return B;
})), a.d(e, "f", (function() {
return E;
})), a.d(e, "e", (function() {
return A;
})), a.d(e, "m", (function() {
return W;
})), a.d(e, "I", (function() {
return J;
})), a.d(e, "J", (function() {
return M;
}));
var o = a("b775");
function r(t2) {
return Object(o["a"])({ url: "/hakocompany/data/project/currentYearTotal", method: "POST", data: t2 });
}
function n(t2) {
return Object(o["a"])({ url: "/hakocompany/data/project/employeeReport", method: "POST", data: t2 });
}
function c(t2) {
return Object(o["a"])({ url: "/hakocompany/data/project/currentYearTotalTask", method: "POST", data: t2 });
}
function l(t2) {
return Object(o["a"])({ url: "/hakocompany/data/project/employeeReportTask", method: "POST", data: t2 });
}
function i(t2) {
return Object(o["a"])({ url: "/company/Assess/pageListAssess", method: "POST", data: t2 });
}
function u(t2) {
return Object(o["a"])({ url: "/hakocompany/data/project/chargeTotal", method: "POST", data: t2 });
}
function s(t2) {
return Object(o["a"])({ url: "/hakocompany/data/project/currentTotalTask", method: "POST", data: t2 });
}
function p(t2) {
return Object(o["a"])({ url: "/hakocompany/data/project/syncTaskV2", method: "POST", data: t2 });
}
function d(t2) {
return Object(o["a"])({ url: "/hakocompany/data/project/syncUpdate", method: "POST", data: t2 });
}
function m(t2) {
return Object(o["a"])({ url: "/hakocompany/data/project/downloadChargeTotal", method: "POST", responseType: "blob", data: t2 });
}
function h(t2) {
return Object(o["a"])({ url: "/hakocompany/spaceTaskStatistics/pageList", method: "POST", data: t2 });
}
function b(t2) {
return Object(o["a"])({ url: "/hakocompany/spaceTaskStatistics/exportByMonth", method: "POST", responseType: "blob", data: t2 });
}
function f(t2) {
return Object(o["a"])({ url: "/hakocompany/spaceTaskStatistics/statistics", method: "POST", data: t2 });
}
function y(t2) {
return Object(o["a"])({ url: "/hakocompany/ContractTaskStatistics/pageList", method: "POST", data: t2 });
}
function g(t2) {
return Object(o["a"])({ url: "/hakocompany/ContractTaskStatistics/statistics", method: "POST", data: t2 });
}
function v(t2) {
return Object(o["a"])({ url: "/hakocompany/ContractTaskStatistics/pageItemList", method: "POST", data: t2 });
}
function O(t2) {
return Object(o["a"])({ url: "/hakocompany/ContractExecuteStatistics/pageList", method: "POST", data: t2 });
}
function T(t2) {
return Object(o["a"])({ url: "/hakocompany/ContractExecuteStatistics/export", method: "POST", responseType: "blob", data: t2 });
}
function S(t2) {
return Object(o["a"])({ url: "/hakocompany/ContractExecuteStatistics/statistics", method: "POST", data: t2 });
}
function k(t2) {
return Object(o["a"])({ url: "/hakocompany/InspectSubscribe/reportPageList", method: "POST", data: t2 });
}
function j(t2) {
return Object(o["a"])({ url: "/hakocompany/InspectSubscribe/exportReport", method: "POST", responseType: "blob", data: t2 });
}
function w(t2) {
return Object(o["a"])({ url: "/hakocompany/TaskStatisticsReport/pageList", method: "POST", data: t2 });
}
function P(t2) {
return Object(o["a"])({ url: "/hakocompany/TaskStatisticsReport/statistics", method: "POST", data: t2 });
}
function _(t2) {
return Object(o["a"])({ url: "/hakocompany/TaskStatisticsReport/exportReport", method: "POST", responseType: "blob", data: t2 });
}
function N(t2) {
return Object(o["a"])({ url: "/hakocompany/data/project/personWeekInfo", method: "POST", data: t2 });
}
function C(t2) {
return Object(o["a"])({ url: "/hakocompany/data/project/downloadWeekInfo", method: "POST", responseType: "blob", data: t2 });
}
function q(t2) {
return Object(o["a"])({ url: "/hakocompany/data/project/projectWxpublicUser", method: "POST", data: t2 });
}
function x(t2) {
return Object(o["a"])({ url: "/hakocompany/TaskStatisticsReport/projectPageList", method: "POST", data: t2 });
}
function L(t2) {
return Object(o["a"])({ url: "/hakocompany/PostponeWorder/projectOrderStatisticsPage", method: "POST", data: t2 });
}
function I(t2) {
return Object(o["a"])({ url: "/hakocompany/PostponeWorder/memberOrderPage", method: "POST", data: t2 });
}
function R(t2) {
return Object(o["a"])({ url: "/hakocompany/TaskStatisticsReport/projectPageByTaskType", method: "POST", data: t2 });
}
function F(t2) {
return Object(o["a"])({ url: "/hakocompany/TaskStatisticsReport/pageByTaskType", method: "POST", data: t2 });
}
function $(t2) {
return Object(o["a"])({ url: "/hakocompany/WorkOrder/memberOrderPage", method: "POST", data: t2 });
}
function z(t2) {
return Object(o["a"])({ url: "/hakocompany/PostponeWorder/export", method: "POST", responseType: "blob", data: t2 });
}
function U(t2) {
return Object(o["a"])({ url: "/hakocompany/WorkOrder/export", method: "POST", responseType: "blob", data: t2 });
}
function D(t2) {
return Object(o["a"])({ url: "/hakocompany/data/project/ChargeReportByCharge/pageList", method: "POST", data: t2 });
}
function B(t2) {
return Object(o["a"])({ url: "/hakocompany/data/project/ChargeReportByCharge/pageList/sum", method: "POST", data: t2 });
}
function E(t2) {
return Object(o["a"])({ url: "/hakocompany/data/project/ChargeReportByCharge/out/excel", method: "POST", responseType: "blob", data: t2 });
}
function A(t2) {
return Object(o["a"])({ url: "/hakocompany/data/project/calculated/rate", method: "POST", data: t2 });
}
function W(t2) {
return Object(o["a"])({ url: "/hakocompany/data/project/ChargeReportByCharge/current/by/charges", method: "POST", data: t2 });
}
function J(t2) {
return Object(o["a"])({ url: "/hakocompany/CustomerVisit/statisticsCustomerVisit", method: "POST", data: t2 });
}
function M(t2) {
return Object(o["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 n;
}));
var o = a("b775");
function r(t2) {
return Object(o["a"])({ url: "/company/organizationalStructure/findAllPageList", method: "post", data: t2 });
}
function n(t2) {
return Object(o["a"])({ url: "/hakocompany/TaskStatisticsReport/exportProjectReport", method: "POST", responseType: "blob", data: t2 });
}
} }]);