Files
wysite/output/sourcemaps/hc-pos.sqygj.cn/static/js/chunk-2374140c.f0635e56.js

268 lines
20 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["chunk-2374140c"], { "3d28": function(t, e, o) {
"use strict";
o.r(e);
var r = function() {
var t2 = this, e2 = t2.$createElement, o2 = t2._self._c || e2;
return o2("div", { staticClass: "app-container bgHeight" }, [o2("el-form", { ref: "setForm", staticClass: "demo-ruleForm", attrs: { model: t2.setForm, "label-width": "140px" } }, [o2("el-card", { staticClass: "box-card", attrs: { shadow: "never" } }, [o2("el-divider", { attrs: { "content-position": "left" } }, [t2._v("安全生产")]), t2._v(" "), o2("el-form-item", { attrs: { label: "目标值", prop: "safetyTargetValue" } }, [o2("el-input-number", { attrs: { "controls-position": "right", min: 0, max: 100 }, model: { value: t2.setForm.safetyTargetValue, callback: function(e3) {
t2.$set(t2.setForm, "safetyTargetValue", e3);
}, expression: "setForm.safetyTargetValue" } }), t2._v(" "), o2("span", { staticStyle: { margin: "0 15px", "font-weight": "700", color: "#606266" } }, [t2._v("权重")]), t2._v(" "), o2("el-input-number", { attrs: { "controls-position": "right", precision: 3, step: 0.01, min: 0, max: 1 }, model: { value: t2.setForm.safetyProportion, callback: function(e3) {
t2.$set(t2.setForm, "safetyProportion", e3);
}, expression: "setForm.safetyProportion" } })], 1), t2._v(" "), o2("el-divider", { attrs: { "content-position": "left" } }, [t2._v("满意度")]), t2._v(" "), o2("el-form-item", { attrs: { label: "目标值", prop: "satisfactionTargetValue" } }, [o2("el-input-number", { attrs: { "controls-position": "right", min: 0, max: 100 }, model: { value: t2.setForm.satisfactionTargetValue, callback: function(e3) {
t2.$set(t2.setForm, "satisfactionTargetValue", e3);
}, expression: "setForm.satisfactionTargetValue" } }), t2._v(" "), o2("span", { staticStyle: { margin: "0 15px", "font-weight": "700", color: "#606266" } }, [t2._v("权重")]), t2._v(" "), o2("el-input-number", { attrs: { "controls-position": "right", precision: 3, step: 0.01, min: 0, max: 1 }, model: { value: t2.setForm.satisfactionProportion, callback: function(e3) {
t2.$set(t2.setForm, "satisfactionProportion", e3);
}, expression: "setForm.satisfactionProportion" } })], 1), t2._v(" "), o2("el-divider", { attrs: { "content-position": "left" } }, [t2._v("财务效益")]), t2._v(" "), o2("el-form-item", { attrs: { label: "目标值", prop: "financeTargetValue" } }, [o2("el-input-number", { attrs: { "controls-position": "right", min: 0, max: 100 }, model: { value: t2.setForm.financeTargetValue, callback: function(e3) {
t2.$set(t2.setForm, "financeTargetValue", e3);
}, expression: "setForm.financeTargetValue" } }), t2._v(" "), o2("span", { staticStyle: { margin: "0 15px", "font-weight": "700", color: "#606266" } }, [t2._v("权重")]), t2._v(" "), o2("el-input-number", { attrs: { "controls-position": "right", precision: 3, step: 0.01, min: 0, max: 1 }, model: { value: t2.setForm.financeProportion, callback: function(e3) {
t2.$set(t2.setForm, "financeProportion", e3);
}, expression: "setForm.financeProportion" } })], 1), t2._v(" "), o2("el-divider", { attrs: { "content-position": "left" } }, [t2._v("服务质量")]), t2._v(" "), o2("el-form-item", { attrs: { label: "目标值", prop: "serviceTargetValue" } }, [o2("el-input-number", { attrs: { "controls-position": "right", min: 0, max: 100 }, model: { value: t2.setForm.serviceTargetValue, callback: function(e3) {
t2.$set(t2.setForm, "serviceTargetValue", e3);
}, expression: "setForm.serviceTargetValue" } }), t2._v(" "), o2("span", { staticStyle: { margin: "0 15px", "font-weight": "700", color: "#606266" } }, [t2._v("权重")]), t2._v(" "), o2("el-input-number", { attrs: { "controls-position": "right", precision: 3, step: 0.01, min: 0, max: 1 }, model: { value: t2.setForm.serviceProportion, callback: function(e3) {
t2.$set(t2.setForm, "serviceProportion", e3);
}, expression: "setForm.serviceProportion" } })], 1)], 1), t2._v(" "), o2("el-card", { staticClass: "box-card", attrs: { shadow: "never" } }, [o2("el-divider", { attrs: { "content-position": "left" } }, [t2._v("效益权重配置")]), t2._v(" "), o2("el-form-item", { attrs: { label: "流入权重" } }, [o2("el-input-number", { attrs: { "controls-position": "right", precision: 3, step: 0.01, min: 0, max: 1 }, model: { value: t2.setForm.incomeProportion, callback: function(e3) {
t2.$set(t2.setForm, "incomeProportion", e3);
}, expression: "setForm.incomeProportion" } }), t2._v(" "), o2("span", { staticStyle: { margin: "0 15px", "font-weight": "700", color: "#606266" } }, [t2._v("流出权重")]), t2._v(" "), o2("el-input-number", { attrs: { "controls-position": "right", precision: 3, step: 0.01, min: 0, max: 1 }, model: { value: t2.setForm.investmentProportion, callback: function(e3) {
t2.$set(t2.setForm, "investmentProportion", e3);
}, expression: "setForm.investmentProportion" } })], 1)], 1), t2._v(" "), o2("el-card", { staticClass: "box-card", attrs: { shadow: "never" } }, [o2("el-divider", { attrs: { "content-position": "left" } }, [t2._v("工单权重配置")]), t2._v(" "), o2("el-form-item", { attrs: { label: "非计划工单完成率" } }, [o2("el-input-number", { attrs: { "controls-position": "right", precision: 3, step: 0.01, min: 0, max: 1 }, model: { value: t2.setForm.orderCompletedProportion, callback: function(e3) {
t2.$set(t2.setForm, "orderCompletedProportion", e3);
}, expression: "setForm.orderCompletedProportion" } }), t2._v(" "), o2("span", { staticStyle: { margin: "0 15px", "font-weight": "700", color: "#606266" } }, [t2._v("非计划工单合格率")]), t2._v(" "), o2("el-input-number", { attrs: { "controls-position": "right", precision: 3, step: 0.01, min: 0, max: 1 }, model: { value: t2.setForm.orderQualifiedProportion, callback: function(e3) {
t2.$set(t2.setForm, "orderQualifiedProportion", e3);
}, expression: "setForm.orderQualifiedProportion" } })], 1), t2._v(" "), o2("el-form-item", { attrs: { label: "计划工单完成率" } }, [o2("el-input-number", { attrs: { "controls-position": "right", precision: 3, step: 0.01, min: 0, max: 1 }, model: { value: t2.setForm.taskCompletedProportion, callback: function(e3) {
t2.$set(t2.setForm, "taskCompletedProportion", e3);
}, expression: "setForm.taskCompletedProportion" } }), t2._v(" "), o2("span", { staticStyle: { margin: "0 15px", "font-weight": "700", color: "#606266" } }, [t2._v("计划工单合格率")]), t2._v(" "), o2("el-input-number", { attrs: { "controls-position": "right", precision: 3, step: 0.01, min: 0, max: 1 }, model: { value: t2.setForm.taskQualifiedProportion, callback: function(e3) {
t2.$set(t2.setForm, "taskQualifiedProportion", e3);
}, expression: "setForm.taskQualifiedProportion" } })], 1)], 1), t2._v(" "), o2("el-card", { staticClass: "box-card", attrs: { shadow: "never" } }, [o2("el-divider", { attrs: { "content-position": "left" } }, [t2._v("车场初始化数据")]), t2._v(" "), o2("el-form-item", { attrs: { label: "在场车辆数初始化日期时间", "label-width": "200px" } }, [o2("el-date-picker", { attrs: { clearable: false, type: "date", placeholder: "选择日期", format: "yyyy-MM-dd", "value-format": "yyyy-MM-dd", "picker-options": t2.pickerOptions }, model: { value: t2.setForm.carNumResetTime, callback: function(e3) {
t2.$set(t2.setForm, "carNumResetTime", e3);
}, expression: "setForm.carNumResetTime" } }), t2._v(" "), "" !== t2.setForm.carNumResetTime ? o2("el-time-select", { attrs: { clearable: false, "picker-options": { start: "00:00", step: "01:00", end: "24:00" }, placeholder: "选择时间" }, model: { value: t2.time, callback: function(e3) {
t2.time = e3;
}, expression: "time" } }) : t2._e()], 1), t2._v(" "), o2("el-form-item", { attrs: { label: "初始化在场车辆数", "label-width": "200px" } }, [o2("el-input-number", { attrs: { "controls-position": "right", step: 1, min: 0 }, model: { value: t2.setForm.initialCarNum, callback: function(e3) {
t2.$set(t2.setForm, "initialCarNum", e3);
}, expression: "setForm.initialCarNum" } })], 1)], 1), t2._v(" "), o2("el-card", { staticClass: "box-card", attrs: { shadow: "never" } }, [o2("div", { staticClass: "box-bottom" }, [o2("div", { staticClass: "bottom-msg" }, [o2("div", [t2._v("最近操作人:" + t2._s(t2.setForm.cockpitUpdaterName || "-"))]), t2._v(" "), o2("div", [t2._v("最近操作时间:" + t2._s(t2.setForm.cockpitUpdateTime || "-"))])]), t2._v(" "), o2("el-button", { attrs: { type: "primary" }, on: { click: t2.confirmSet } }, [t2._v("保存")])], 1)])], 1)], 1);
}, n = [], i = o("7274");
function a(t2) {
return a = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t3) {
return typeof t3;
} : function(t3) {
return t3 && "function" == typeof Symbol && t3.constructor === Symbol && t3 !== Symbol.prototype ? "symbol" : typeof t3;
}, a(t2);
}
function s(t2, e2) {
var o2 = Object.keys(t2);
if (Object.getOwnPropertySymbols) {
var r2 = Object.getOwnPropertySymbols(t2);
e2 && (r2 = r2.filter((function(e3) {
return Object.getOwnPropertyDescriptor(t2, e3).enumerable;
}))), o2.push.apply(o2, r2);
}
return o2;
}
function c(t2) {
for (var e2 = 1; e2 < arguments.length; e2++) {
var o2 = null != arguments[e2] ? arguments[e2] : {};
e2 % 2 ? s(Object(o2), true).forEach((function(e3) {
p(t2, e3, o2[e3]);
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t2, Object.getOwnPropertyDescriptors(o2)) : s(Object(o2)).forEach((function(e3) {
Object.defineProperty(t2, e3, Object.getOwnPropertyDescriptor(o2, e3));
}));
}
return t2;
}
function p(t2, e2, o2) {
return (e2 = u(e2)) in t2 ? Object.defineProperty(t2, e2, { value: o2, enumerable: true, configurable: true, writable: true }) : t2[e2] = o2, t2;
}
function u(t2) {
var e2 = m(t2, "string");
return "symbol" == a(e2) ? e2 : e2 + "";
}
function m(t2, e2) {
if ("object" != a(t2) || !t2) return t2;
var o2 = t2[Symbol.toPrimitive];
if (void 0 !== o2) {
var r2 = o2.call(t2, e2 || "default");
if ("object" != a(r2)) return r2;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return ("string" === e2 ? String : Number)(t2);
}
var l = { data: function() {
return { setInfo: "", time: "", pickerOptions: { disabledDate: function(t2) {
return t2.getTime() < (/* @__PURE__ */ new Date()).setHours(0, 0, 0, 0);
} }, setForm: { safetyTargetValue: 0, safetyProportion: 0, satisfactionTargetValue: 0, satisfactionProportion: 0, financeTargetValue: 0, financeProportion: 0, serviceTargetValue: 0, serviceProportion: 0, incomeProportion: 0, investmentProportion: 0, orderCompletedProportion: 0, orderQualifiedProportion: 0, taskCompletedProportion: 0, taskQualifiedProportion: 0, carNumResetTime: "", initialCarNum: 0 } };
}, created: function() {
this.getSet();
}, methods: { handleDateChange: function(t2) {
if (t2) {
var e2 = new Date(t2);
e2.setMinutes(0), e2.setSeconds(0), this.setForm.carNumResetTime = this.formatDateTime(e2);
}
}, formatDateTime: function(t2) {
var e2 = t2.getFullYear(), o2 = String(t2.getMonth() + 1).padStart(2, "0"), r2 = String(t2.getDate()).padStart(2, "0"), n2 = String(t2.getHours()).padStart(2, "0");
return "".concat(e2, "-").concat(o2, "-").concat(r2, " ").concat(n2, ":00:00");
}, getSet: function() {
var t2 = this;
Object(i["f"])({ uuid: this.$store.state.community_uuid }).then((function(e2) {
e2.data && 0 == e2.code ? (console.log(e2), t2.setInfo = JSON.parse(JSON.stringify(e2.data)), t2.setForm.safetyTargetValue = t2.setInfo.safetyTargetValue, t2.setForm.satisfactionTargetValue = t2.setInfo.satisfactionTargetValue, t2.setForm.financeTargetValue = t2.setInfo.financeTargetValue, t2.setForm.serviceTargetValue = t2.setInfo.serviceTargetValue, t2.setForm.safetyProportion = t2.setInfo.safetyProportion, t2.setForm.satisfactionProportion = t2.setInfo.satisfactionProportion, t2.setForm.financeProportion = t2.setInfo.financeProportion, t2.setForm.serviceProportion = t2.setInfo.serviceProportion, t2.setForm.incomeProportion = t2.setInfo.incomeProportion, t2.setForm.investmentProportion = t2.setInfo.investmentProportion, t2.setForm.orderCompletedProportion = t2.setInfo.orderCompletedProportion, t2.setForm.orderQualifiedProportion = t2.setInfo.orderQualifiedProportion, t2.setForm.taskCompletedProportion = t2.setInfo.taskCompletedProportion, t2.setForm.taskQualifiedProportion = t2.setInfo.taskQualifiedProportion, t2.setForm.cockpitUpdaterName = t2.setInfo.cockpitUpdaterName, t2.setForm.cockpitUpdateTime = t2.setInfo.cockpitUpdateTime, t2.setForm.cockpitUpdaterId = t2.setInfo.cockpitUpdaterId, t2.setForm.initialCarNum = t2.setInfo.initialCarNum, t2.setInfo.carNumResetTime && (t2.setForm.carNumResetTime = t2.setInfo.carNumResetTime.split(" ")[0], t2.time = t2.setInfo.carNumResetTime.split(" ")[1])) : t2.setInfo = "";
}));
}, confirmSet: function() {
var t2 = this;
if ("" === this.setForm.carNumResetTime && "" === this.time && 0 === this.setForm.initialCarNum || "" != this.time && "" != this.setForm.carNumResetTime && 0 != this.setForm.initialCarNum) if (this.setForm.safetyProportion + this.setForm.satisfactionProportion + this.setForm.financeProportion + this.setForm.serviceProportion === 1) if (this.setForm.incomeProportion + this.setForm.investmentProportion === 1) if (this.setForm.orderCompletedProportion + this.setForm.orderQualifiedProportion + this.setForm.taskCompletedProportion + this.setForm.taskQualifiedProportion === 1) {
var e2 = c(c({}, this.setForm), {}, { projectUuid: this.$store.state.community_uuid });
this.setForm.carNumResetTime && this.time && (e2.carNumResetTime = this.setForm.carNumResetTime + " " + this.time + ":00"), 0 == this.setForm.initialCarNum && delete e2.initialCarNum, e2.cockpitUpdaterName = this.$store.state.user.userInfo.memberName, e2.cockpitUpdaterId = this.$store.state.user.userInfo.memberId, Object(i["y"])(e2).then((function(e3) {
0 == e3.code && (t2.$message({ message: "设置成功!", type: "success" }), t2.getSet());
}));
} else this.$message.warning("计划/非计划工单完成/合格率权重的累计和必须为1");
else this.$message.warning("效益指数流入/流出权重的累计和必须为1");
else this.$message.warning("安全生产、财务效益、客户满意、服务质量所有权重的累计和必须为1");
else this.$message.error("更新失败,车场初始化数据日期时间和数据必须同时提交,不可有一者为空");
} } }, d = l, f = (o("d5e4"), o("829d")), b = Object(f["a"])(d, r, n, false, null, "2106de2e", null);
e["default"] = b.exports;
}, 7274: function(t, e, o) {
"use strict";
o.d(e, "f", (function() {
return n;
})), o.d(e, "t", (function() {
return i;
})), o.d(e, "x", (function() {
return a;
})), o.d(e, "g", (function() {
return s;
})), o.d(e, "B", (function() {
return c;
})), o.d(e, "s", (function() {
return p;
})), o.d(e, "c", (function() {
return u;
})), o.d(e, "l", (function() {
return m;
})), o.d(e, "z", (function() {
return l;
})), o.d(e, "A", (function() {
return d;
})), o.d(e, "n", (function() {
return f;
})), o.d(e, "m", (function() {
return b;
})), o.d(e, "j", (function() {
return g;
})), o.d(e, "o", (function() {
return v;
})), o.d(e, "h", (function() {
return h;
})), o.d(e, "i", (function() {
return P;
})), o.d(e, "k", (function() {
return F;
})), o.d(e, "p", (function() {
return j;
})), o.d(e, "y", (function() {
return y;
})), o.d(e, "r", (function() {
return C;
})), o.d(e, "w", (function() {
return O;
})), o.d(e, "a", (function() {
return _;
})), o.d(e, "b", (function() {
return k;
})), o.d(e, "e", (function() {
return T;
})), o.d(e, "d", (function() {
return x;
})), o.d(e, "v", (function() {
return S;
})), o.d(e, "q", (function() {
return w;
})), o.d(e, "u", (function() {
return I;
}));
var r = o("b775");
function n(t2) {
return Object(r["a"])({ url: "/appproject/ProjectConfig/findByUuid", method: "post", data: t2 });
}
function i(t2) {
return Object(r["a"])({ url: "/appproject/ProjectConfig/updateByProjectUuid", method: "post", data: t2 });
}
function a(t2) {
return Object(r["a"])({ url: "/appproject/ProjectConfig/scheduled/push/date", method: "post", data: t2 });
}
function s(t2) {
return Object(r["a"])({ url: "/appproject/OrderInfo/findLiaisonByProjectUuids", method: "post", data: t2 });
}
function c(t2) {
return Object(r["a"])({ url: "/appproject/ProjectInit/getVisitConfig", method: "post", data: t2 });
}
function p(t2) {
return Object(r["a"])({ url: "/appproject/ProjectInit/updateBatchVisitConfig", method: "post", data: t2 });
}
function u(t2) {
return Object(r["a"])({ url: "/appproject/QualityControls/choose", method: "post", data: t2 });
}
function m(t2) {
return Object(r["a"])({ url: "/appproject/QualityControls/pageList", method: "post", data: t2 });
}
function l(t2) {
return Object(r["a"])({ url: "/appproject/ChargeReceivable/urge/listFee", method: "post", data: t2 });
}
function d(t2) {
return Object(r["a"])({ url: "/appproject/CustomerVisit/create/by/urge/model", method: "post", data: t2 });
}
function f(t2) {
return Object(r["a"])({ url: "/appproject/SalaryConfig/findByProjectUuid", method: "post", data: t2 });
}
function b(t2) {
return Object(r["a"])({ url: "/appproject/SalaryConfig/edit", method: "post", data: t2 });
}
function g(t2) {
return Object(r["a"])({ url: "/appproject/MemberSalaryConfig/pageList", method: "post", data: t2 });
}
function v(t2) {
return Object(r["a"])({ url: "/appproject/MemberSalaryConfig/salaryItemPageList", method: "post", data: t2 });
}
function h(t2) {
return Object(r["a"])({ url: "/appproject/MemberSalaryConfig/create", method: "post", data: t2 });
}
function P(t2) {
return Object(r["a"])({ url: "/appproject/MemberSalaryConfig/findById", method: "post", data: t2 });
}
function F(t2) {
return Object(r["a"])({ url: "/appproject/MemberSalaryConfig/update", method: "post", data: t2 });
}
function j(t2) {
return Object(r["a"])({ url: "/appproject/ProjectConfig/updateAccessControlByProjectUuid", method: "post", data: t2 });
}
function y(t2) {
return Object(r["a"])({ url: "/appproject/ProjectConfig/updateTargetValueByProjectUuid", method: "post", data: t2 });
}
function C(t2) {
return Object(r["a"])({ url: "/appproject/ProjectConfig/updateAutoResetDangerousByProjectUuid", method: "post", data: t2 });
}
function O(t2) {
return Object(r["a"])({ url: "/appproject/ProjectConfig/updateMeterReadingType", method: "post", data: t2 });
}
function _(t2) {
return Object(r["a"])({ url: "/appproject/ChargeOrderConfig/pageList", method: "post", data: t2 });
}
function k(t2) {
return Object(r["a"])({ url: "/appproject/ChargeOrderConfig/update", method: "post", data: t2 });
}
function T(t2) {
return Object(r["a"])({ url: "/appproject/ProjectReturnStatistics/debtAnalysisDetail", method: "post", data: t2 });
}
function x(t2) {
return Object(r["a"])({ url: "/appproject/ChargeOrder/createBatch", method: "post", data: t2 });
}
function S(t2) {
return Object(r["a"])({ url: "/appproject/ProjectConfig/updateEnergyParams", method: "post", data: t2 });
}
function w(t2) {
return Object(r["a"])({ url: "/appproject/ProjectConfig/updateAutoCharge", method: "post", data: t2 });
}
function I(t2) {
return Object(r["a"])({ url: "/appproject/ProjectConfig/updateChargeDeduction", method: "post", data: t2 });
}
}, "91cb": function(t, e, o) {
}, d5e4: function(t, e, o) {
"use strict";
o("91cb");
} }]);