163 lines
18 KiB
JavaScript
163 lines
18 KiB
JavaScript
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["chunk-7db4b724"], { 5621: function(t, e, a) {
|
|
}, "5be1": function(t, e, a) {
|
|
"use strict";
|
|
a.r(e);
|
|
var l = function() {
|
|
var t2 = this, e2 = t2.$createElement, a2 = t2._self._c || e2;
|
|
return a2("div", { staticClass: "headStys" }, [a2("div", { staticClass: "formContent" }, [a2("div", { staticClass: "container" }, [a2("el-form", { ref: "query", staticClass: "demo-form-inline", attrs: { inline: true, model: t2.query, "label-width": "100px" } }, [a2("div", { staticClass: "house-detail" }, [a2("div", { staticClass: "grid-half" }, [a2("div", { staticClass: "cell" }, [a2("el-form-item", { attrs: { prop: "projectCode" } }, [a2("el-input", { attrs: { clearable: "", placeholder: "请输入项目名称", maxlength: "64" }, model: { value: t2.query.projectName, callback: function(e3) {
|
|
t2.$set(t2.query, "projectName", e3);
|
|
}, expression: "query.projectName" } })], 1)], 1)]), t2._v(" "), a2("div", { staticClass: "grid-half" }, [a2("div", { staticClass: "cell" }, [a2("el-date-picker", { attrs: { type: "daterange", format: "yyyy-MM-dd", "value-format": "yyyy-MM-dd", "range-separator": "至", "start-placeholder": "开始日期", "end-placeholder": "结束日期" }, model: { value: t2.taskDate, callback: function(e3) {
|
|
t2.taskDate = e3;
|
|
}, expression: "taskDate" } })], 1)]), t2._v(" "), a2("div", { staticClass: "grid-half" }, [a2("div", { staticClass: "cell" }, [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), 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)], 1)])])])], 1)]), t2._v(" "), a2("div", { staticClass: "contentStys" }, [a2("div", { staticClass: "planLsts2" }, [a2("el-radio-group", { staticStyle: { "margin-bottom": "30px" }, on: { change: function(e3) {
|
|
return t2.butClick();
|
|
} }, model: { value: t2.tabPosition, callback: function(e3) {
|
|
t2.tabPosition = e3;
|
|
}, expression: "tabPosition" } }, [a2("el-radio-button", { attrs: { label: "2" } }, [t2._v("非计划性工单")]), t2._v(" "), a2("el-radio-button", { attrs: { label: "3" } }, [t2._v("服务工单")])], 1)], 1), t2._v(" "), a2("el-table", { directives: [{ name: "loading", rawName: "v-loading", value: t2.listLoading, expression: "listLoading" }], staticStyle: { width: "96%", "margin-left": "35px", "padding-top": "20px" }, attrs: { fit: "", "highlight-current-row": "", data: t2.listTable, "header-cell-style": t2.headClass, "tooltip-effect": "dark", "default-expand-all": "" }, on: { "row-click": t2.rowClick } }, [a2("el-table-column", { attrs: { label: "#", align: "center", 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", "show-overflow-tooltip": "", label: "项目名称" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("span", [t2._v(t2._s(e3.row.projectName))])];
|
|
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", "show-overflow-tooltip": "", label: "工单总数量" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("span", [t2._v(t2._s(e3.row.orderTotal))])];
|
|
} }]) }), t2._v(" "), 1 == t2.type ? a2("el-table-column", { attrs: { align: "center", "show-overflow-tooltip": "", label: "领取工单数量" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("span", [t2._v(t2._s(e3.row.taskTotal))])];
|
|
} }], null, false, 2066781705) }) : t2._e(), t2._v(" "), 2 == t2.type || 3 == t2.type ? a2("el-table-column", { attrs: { align: "center", "show-overflow-tooltip": "", label: "受理工单数量" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("span", [t2._v(t2._s(e3.row.acceptOrderTotal))])];
|
|
} }], null, false, 453573386) }) : t2._e(), t2._v(" "), 2 == t2.type || 3 == t2.type ? a2("el-table-column", { attrs: { width: "160", align: "center", "show-overflow-tooltip": "", label: "规定受理耗时" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("span", [t2._v(t2._s(e3.row.provisionAcceptTime))])];
|
|
} }], null, false, 113243450) }) : t2._e(), t2._v(" "), 2 == t2.type || 3 == t2.type ? a2("el-table-column", { attrs: { align: "center", "show-overflow-tooltip": "", label: "实际受理平均耗时" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("span", [t2._v(t2._s(e3.row.actualAcceptTime))])];
|
|
} }], null, false, 3436687005) }) : t2._e(), t2._v(" "), 2 == t2.type || 3 == t2.type ? a2("el-table-column", { attrs: { align: "center", "show-overflow-tooltip": "", label: "处理工单数量" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("span", [t2._v(t2._s(e3.row.processOrderTotal))])];
|
|
} }], null, false, 4174408513) }) : t2._e(), t2._v(" "), 2 == t2.type || 3 == t2.type ? a2("el-table-column", { attrs: { align: "center", "show-overflow-tooltip": "", label: "规定处理耗时" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("span", [t2._v(t2._s(e3.row.provisionProcessTime))])];
|
|
} }], null, false, 2773276465) }) : t2._e(), t2._v(" "), 2 == t2.type || 3 == t2.type ? a2("el-table-column", { attrs: { align: "center", width: "140", "show-overflow-tooltip": "", label: "实际处理平均耗时" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("span", [t2._v(t2._s(e3.row.actualProcessTime))])];
|
|
} }], null, false, 819553270) }) : t2._e(), t2._v(" "), 2 == t2.type ? a2("el-table-column", { attrs: { align: "center", "show-overflow-tooltip": "", label: "已评价工单数量" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("span", [t2._v(t2._s(e3.row.finishOrderTotal))])];
|
|
} }], null, false, 2071554169) }) : t2._e(), t2._v(" "), 1 == t2.type ? a2("el-table-column", { attrs: { align: "center", "show-overflow-tooltip": "", label: "领取平均耗时" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("span", [t2._v(t2._s(e3.row.completedTaskNum))])];
|
|
} }], null, false, 2634080016) }) : t2._e(), t2._v(" "), 1 == t2.type ? a2("el-table-column", { attrs: { align: "center", "show-overflow-tooltip": "", label: "完成工单数量" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("span", [t2._v(t2._s(e3.row.uncompletedTaskNum))])];
|
|
} }], null, false, 2411997227) }) : t2._e(), t2._v(" "), 1 == t2.type || 2 == t2.type ? a2("el-table-column", { attrs: { align: "center", "show-overflow-tooltip": "", label: "规定完成耗时" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("span", [t2._v(t2._s(e3.row.provisionFinishTime))])];
|
|
} }], null, false, 2408625257) }) : t2._e(), t2._v(" "), 1 == t2.type || 2 == t2.type ? a2("el-table-column", { attrs: { align: "center", "show-overflow-tooltip": "", label: "实际完成平均耗时" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("span", [t2._v(t2._s(e3.row.actualFinishTime))])];
|
|
} }], null, false, 2442341038) }) : t2._e()], 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), t2._v(" "), a2("div", { staticClass: "container" }), t2._v(" "), a2("div", { staticClass: "contentStys" }, [t2._m(0), t2._v(" "), a2("el-table", { directives: [{ name: "loading", rawName: "v-loading", value: t2.detailedLoading, expression: "detailedLoading" }], staticStyle: { width: "96%", "margin-left": "35px", "padding-top": "20px" }, attrs: { data: t2.orderDetailed, "header-cell-style": t2.headClass, "tooltip-effect": "dark", "default-expand-all": "" } }, [a2("el-table-column", { attrs: { label: "#", align: "center", 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: { prop: "projectName", align: "center", "show-overflow-tooltip": "", label: "项目名称" } }, [t2.orderDetailed.length > 0 ? a2("span", [t2._v(t2._s(t2.projectName))]) : t2._e()]), t2._v(" "), a2("el-table-column", { attrs: { prop: "memberName", align: "center", "show-overflow-tooltip": "", label: "员工名称" } }), t2._v(" "), a2("el-table-column", { attrs: { prop: "memberJobName", align: "center", "show-overflow-tooltip": "", label: "岗位" } }), t2._v(" "), a2("el-table-column", { attrs: { prop: "orderTotal", align: "center", "show-overflow-tooltip": "", label: "工单总数量" } }), t2._v(" "), 1 == t2.type ? a2("el-table-column", { attrs: { align: "center", "show-overflow-tooltip": "", label: "领取工单数量" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("span", [t2._v(t2._s(e3.row.processOrderTotal))])];
|
|
} }], null, false, 4174408513) }) : t2._e(), t2._v(" "), 2 == t2.type || 3 == t2.type ? a2("el-table-column", { attrs: { align: "center", "show-overflow-tooltip": "", label: "受理工单数量" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("span", [t2._v(t2._s(e3.row.acceptOrderTotal))])];
|
|
} }], null, false, 453573386) }) : t2._e(), t2._v(" "), 2 == t2.type || 3 == t2.type ? a2("el-table-column", { attrs: { align: "center", "show-overflow-tooltip": "", label: "规定受理耗时" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("span", [t2._v(t2._s(e3.row.provisionAcceptTime))])];
|
|
} }], null, false, 113243450) }) : t2._e(), t2._v(" "), 2 == t2.type || 3 == t2.type ? a2("el-table-column", { attrs: { align: "center", width: "140", "show-overflow-tooltip": "", label: "实际受理平均耗时" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("span", [t2._v(t2._s(e3.row.actualAcceptTime))])];
|
|
} }], null, false, 3436687005) }) : t2._e(), t2._v(" "), 2 == t2.type || 3 == t2.type ? a2("el-table-column", { attrs: { align: "center", "show-overflow-tooltip": "", label: "处理工单数量" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("span", [t2._v(t2._s(e3.row.processOrderTotal))])];
|
|
} }], null, false, 4174408513) }) : t2._e(), t2._v(" "), 2 == t2.type || 3 == t2.type ? a2("el-table-column", { attrs: { align: "center", "show-overflow-tooltip": "", label: "规定处理耗时" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("span", [t2._v(t2._s(e3.row.provisionProcessTime))])];
|
|
} }], null, false, 2773276465) }) : t2._e(), t2._v(" "), 2 == t2.type || 3 == t2.type ? a2("el-table-column", { attrs: { align: "center", "show-overflow-tooltip": "", label: "实际处理平均耗时" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("span", [t2._v(t2._s(e3.row.actualProcessTime))])];
|
|
} }], null, false, 819553270) }) : t2._e(), t2._v(" "), 2 == t2.type ? a2("el-table-column", { attrs: { align: "center", width: "120", "show-overflow-tooltip": "", label: "已评价工单数量" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("span", [t2._v(t2._s(e3.row.finishOrderTotal))])];
|
|
} }], null, false, 2071554169) }) : t2._e(), t2._v(" "), 1 == t2.type ? a2("el-table-column", { attrs: { align: "center", "show-overflow-tooltip": "", label: "领取平均耗时" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("span", [t2._v(t2._s(e3.row.completedTaskNum))])];
|
|
} }], null, false, 2634080016) }) : t2._e(), t2._v(" "), 1 == t2.type ? a2("el-table-column", { attrs: { align: "center", "show-overflow-tooltip": "", label: "完成工单数量" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("span", [t2._v(t2._s(e3.row.uncompletedTaskNum))])];
|
|
} }], null, false, 2411997227) }) : t2._e(), t2._v(" "), 1 == t2.type || 2 == t2.type ? a2("el-table-column", { attrs: { align: "center", "show-overflow-tooltip": "", label: "规定完成耗时" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("span", [t2._v(t2._s(e3.row.provisionFinishTime))])];
|
|
} }], null, false, 2408625257) }) : t2._e(), t2._v(" "), 1 == t2.type || 2 == t2.type ? a2("el-table-column", { attrs: { align: "center", width: "150", "show-overflow-tooltip": "", label: "实际完成平均耗时" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [a2("span", [t2._v(t2._s(e3.row.actualFinishTime))])];
|
|
} }], null, false, 2442341038) }) : t2._e()], 1), t2._v(" "), a2("div", { staticClass: "pagination" }, [a2("el-pagination", { attrs: { "current-page": t2.detaile.pageNumber, "page-sizes": [10, 20, 30, 100], "page-size": t2.detaile.pageSize, layout: "total, sizes, prev, pager, next, jumper", total: t2.detaiTotal }, on: { "update:currentPage": function(e3) {
|
|
return t2.$set(t2.detaile, "pageNumber", e3);
|
|
}, "update:current-page": function(e3) {
|
|
return t2.$set(t2.detaile, "pageNumber", e3);
|
|
}, "size-change": t2.handleSizeChangeDetai, "current-change": t2.handleCurrentChangeDetai } })], 1)], 1)]);
|
|
}, o = [function() {
|
|
var t2 = this, e2 = t2.$createElement, a2 = t2._self._c || e2;
|
|
return a2("div", { staticClass: "planLst" }, [a2("span", { staticStyle: { color: "#2f2c2c", "font-size": "16px" } }, [t2._v("员工工单耗时明细表")])]);
|
|
}], n = (a("4057"), a("bfb7")), s = a("8975"), r = { name: "configManageList", data: function() {
|
|
return { pageTotal: 0, detaiTotal: 0, tabPosition: "2", listLoading: false, detailedLoading: false, autofocus: true, taskDate: "", projectName: "", type: 2, listTable: [], orderDetailed: [], detaile: { pageNumber: 1, pageSize: 10 }, query: { projectName: "", pageNumber: 1, pageSize: 10 }, projectUuid: "" };
|
|
}, created: function() {
|
|
this.headClass();
|
|
var t2 = /* @__PURE__ */ new Date(), e2 = Object(s["formatDate"])(t2, "Y-M-D"), a2 = this.getDate();
|
|
this.taskDate = [a2, e2];
|
|
}, mounted: function() {
|
|
this.getlistData();
|
|
}, methods: { getDate: function() {
|
|
var t2 = /* @__PURE__ */ new Date(), e2 = t2.getFullYear(), a2 = t2.getMonth();
|
|
return a2 = this.doHandleZero(a2 + 1), e2 + "-" + a2 + "-01";
|
|
}, doHandleZero: function(t2) {
|
|
var e2 = t2;
|
|
return 1 == t2.toString().length && (e2 = "0" + t2), e2;
|
|
}, butClick: function() {
|
|
this.type = parseInt(this.tabPosition), this.getlistData();
|
|
}, rowClick: function(t2, e2, a2) {
|
|
t2.projectUuid && (this.projectUuid = t2.projectUuid, this.projectName = t2.projectName, this.detaile.projectName = t2.projectName), this.taskStatistic();
|
|
}, taskStatistic: function() {
|
|
var t2 = this;
|
|
this.detaile.projectUuid = this.projectUuid, this.detaile.companyId = JSON.parse(window.localStorage.getItem("companyInfo")).osId, this.detaile.type = this.type, this.taskDate ? (this.detaile.taskStartDate = this.taskDate[0] + " 00:00:00", this.detaile.taskEndDate = this.taskDate[1] + " 23:59:59") : (delete this.detaile.taskStartDate, delete this.detaile.taskEndDate), this.detailedLoading = true, Object(n["a"])(this.detaile).then((function(e2) {
|
|
0 == e2.code && (t2.orderDetailed = e2.data.records, t2.detaiTotal = e2.data.rowsCount, t2.detailedLoading = false);
|
|
})).catch((function() {
|
|
t2.detailedLoading = false;
|
|
}));
|
|
}, searchDetaile: function() {
|
|
this.taskStatistic();
|
|
}, handleSizeChangeDetai: function(t2) {
|
|
this.detaile.pageSize = t2, this.taskStatistic();
|
|
}, handleCurrentChangeDetai: function(t2) {
|
|
this.detaile.pageNumber = t2, this.taskStatistic();
|
|
}, handleSizeChange: function(t2) {
|
|
this.query.pageSize = t2, this.getlistData();
|
|
}, handleCurrentChange: function(t2) {
|
|
this.query.pageNumber = t2, this.getlistData();
|
|
}, getlistData: function() {
|
|
var t2 = this;
|
|
this.listLoading = true, this.query.companyId = JSON.parse(window.localStorage.getItem("companyInfo")).osId, this.query.type = this.type, this.taskDate && (this.query.taskStartDate = this.taskDate[0] + " 00:00:00", this.query.taskEndDate = this.taskDate[1] + " 23:59:59"), Object(n["b"])(this.query).then((function(e2) {
|
|
0 == e2.code && (t2.listTable = e2.data.records, t2.pageTotal = e2.data.rowsCount, t2.listLoading = false);
|
|
})).catch((function() {
|
|
t2.listLoading = false;
|
|
}));
|
|
}, onSearch: function() {
|
|
this.query.pageNumber = 1, this.getlistData();
|
|
}, resetForm: function(t2) {
|
|
this.query.pageNumber = 1, this.query.projectName = "", this.taskDate = "", this.query.taskStartDate = "", this.query.taskEndDate = "", delete this.detaile.taskStartDate, delete this.detaile.taskEndDate, this.$refs[t2].resetFields(), this.getlistData();
|
|
}, headClass: function() {
|
|
return "text-align:center;background:#FAFAFA;";
|
|
} } }, i = r, u = (a("b2ce"), a("829d")), c = Object(u["a"])(i, l, o, false, null, "08d16f31", null);
|
|
e["default"] = c.exports;
|
|
}, b2ce: function(t, e, a) {
|
|
"use strict";
|
|
a("5621");
|
|
}, bfb7: function(t, e, a) {
|
|
"use strict";
|
|
a.d(e, "d", (function() {
|
|
return o;
|
|
})), a.d(e, "b", (function() {
|
|
return n;
|
|
})), a.d(e, "a", (function() {
|
|
return s;
|
|
})), a.d(e, "c", (function() {
|
|
return r;
|
|
}));
|
|
var l = a("b775");
|
|
function o(t2) {
|
|
return Object(l["a"])({ url: "/hakocompany/Task/taskStatisticsPageList", method: "post", data: t2 });
|
|
}
|
|
function n(t2) {
|
|
return Object(l["a"])({ url: "/hakocompany/data/project/postponeOrderTimeStatistics", method: "post", data: t2 });
|
|
}
|
|
function s(t2) {
|
|
return Object(l["a"])({ url: "/hakocompany/data/project/postponeOrderStaffTimeStatistics", method: "post", data: t2 });
|
|
}
|
|
function r(t2) {
|
|
return Object(l["a"])({ url: "/data/data/project/propertyStatistics", method: "post", data: t2 });
|
|
}
|
|
} }]);
|