Files
wysite/output/sourcemaps/hc-pos.sqygj.cn/static/js/chunk-1b9c6262.57965733.js

1399 lines
117 KiB
JavaScript
Raw 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-1b9c6262"], { "00df": function(module, __webpack_exports__, __webpack_require__) {
"use strict";
var _utils_cul__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("0b37"), _utils_dataDict__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("dce5");
__webpack_exports__["a"] = { props: { tableData: { type: Array, default: [] }, tools: { type: Boolean, default: false }, del: { type: Boolean, default: false }, search: { type: Boolean, default: true }, quote: { type: Boolean, default: false }, selection: { type: Boolean, default: false }, pageIndex: { type: Boolean, default: false }, page: { type: Boolean, default: false }, opentype: { type: String, default: "add" }, attrData: { type: Object, default: function() {
return {};
} }, autoPass: { type: Number, default: 0 } }, data: function() {
return { editVisible: false, tableIndex: 0, editForm: {}, editRule: { spuQuantity: { required: true, message: "请输入SPU-Q的数值", trigger: "blur" }, spuTime: { required: true, message: "请输入SPU-T的数值", trigger: "blur" }, spuSpend: { required: true, message: "请输入SPU-S的数值", trigger: "blur" }, spuLaborResource: { required: true, message: "请输入SPU-R1的数值", trigger: "blur" } }, professionalList: _utils_dataDict__WEBPACK_IMPORTED_MODULE_1__["Ub"], taskType: _utils_dataDict__WEBPACK_IMPORTED_MODULE_1__["rc"], listLoading: false, listTable: [], pageTotal: 0, spaceTypeList: [], locationList: [], formInfo: { pageNumber: 1, pageSize: 10 }, selectionList: [], tooltipText: "本功能控制本次计划管理下的该作业标准是否要求拍照", tooltipText2: "本功能控制本次计划管理下的该作业标准执行时是否允许从相册选择照片" };
}, watch: { tableData: { handler: function(t, e) {
}, deep: true } }, mounted: function() {
console.log(this.attrData, "asdjklasdjaklsdjaskd++++++++++++");
}, methods: { handleSizeChange: function(t) {
this.formInfo.pageNumber = 1, this.formInfo.pageSize = t;
}, handleCurrentChange: function(t) {
this.formInfo.pageNumber = t;
}, formatType: function formatType(val) {
return val ? eval(val).label : "-";
}, formatPlanType: function(t) {
if (t && "0" != t) {
var e = parseInt(t);
return this.taskType[e - 1].label;
}
return "-";
}, thisTaskInfor: function(t, e) {
var a = { type: t, data: e };
this.$emit("tableClickInfor", a);
}, deleteItemStand: function(t) {
var e = this;
this.$confirm("此操作将在本次创建移除该标准,点击上方“确认添加”可重新查询出该数据, 是否继续?", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }).then((function() {
e.$emit("deleteItemStand", t);
})).catch((function() {
}));
}, setToolTipContent: function(t) {
return "";
}, culCurrentImg: function(t, e) {
return t && Array.isArray(t) && t.length > 0 ? t.filter((function(t2) {
return 2 == t2.selected;
})).length : 0;
}, quoteImg: function(t, e) {
if ("add" === this.opentype || "edit" === this.opentype || "copy" === this.opentype) {
if ("add" === this.opentype || "edit" === this.opentype || "copy" === this.opentype) {
if (1 === this.attrData.planStatus || 3 === this.attrData.planStatus) return void this.$message({ message: "当前状态不允许编辑标准示例图片。", type: "error" });
console.log(e.locationExamplesImageRespDTOS, "row.locationExamplesImageRespDTOS"), this.$emit("queryCurStandLocationImg", { locationId: e.locationId, examplesImageUrl: e.examplesImageUrl ? e.examplesImageUrl : "", index: t.$index, standardUuid: e.standardUuid, spaceUuid: e.spaceUuid, locationExamplesImageRespDTOS: e.locationExamplesImageRespDTOS && Array.isArray(e.locationExamplesImageRespDTOS) && e.locationExamplesImageRespDTOS.length > 0 ? e.locationExamplesImageRespDTOS : [] });
}
} else this.$emit("queryCurStandLocationImg", { locationId: e.locationId, examplesImageUrl: e.examplesImageUrl ? e.examplesImageUrl : "", index: t.$index, standardUuid: e.standardUuid, spaceUuid: e.spaceUuid, locationExamplesImageRespDTOS: e.locationExamplesImageRespDTOS && Array.isArray(e.locationExamplesImageRespDTOS) && e.locationExamplesImageRespDTOS.length > 0 ? e.locationExamplesImageRespDTOS : [] });
}, editClick: function(t, e) {
this.tableIndex = e, this.editForm = JSON.parse(JSON.stringify(t)), this.editVisible = true;
}, inputChange: function() {
this.editForm.spuQuantity && this.editForm.spuSpend ? this.editForm.spuLaborResource = Object(_utils_cul__WEBPACK_IMPORTED_MODULE_0__["b"])(Object(_utils_cul__WEBPACK_IMPORTED_MODULE_0__["c"])(Object(_utils_cul__WEBPACK_IMPORTED_MODULE_0__["c"])(this.editForm.spuQuantity, this.editForm.spuTime), this.editForm.spuSpend), 3600).toFixed(2) : this.editForm.spuLaborResource = 0;
}, confirmClick: function() {
var t = this;
this.$refs["editForm"].validate((function(e) {
if (e) {
var a = JSON.parse(JSON.stringify(t.editForm));
t.$set(t.tableData, t.tableIndex, a), t.$nextTick((function() {
this.eidtClose();
}));
}
}));
}, eidtClose: function() {
this.$refs["editForm"].resetFields(), this.editVisible = false;
} } };
}, "25c0": function(t, e, a) {
}, 2769: function(t, e, a) {
}, "35ad": function(t, e, a) {
"use strict";
a.d(e, "b", (function() {
return i;
})), a.d(e, "a", (function() {
return r;
})), a.d(e, "n", (function() {
return o;
})), a.d(e, "j", (function() {
return s;
})), a.d(e, "l", (function() {
return l;
})), a.d(e, "k", (function() {
return c;
})), a.d(e, "m", (function() {
return u;
})), a.d(e, "c", (function() {
return p;
})), a.d(e, "i", (function() {
return d;
})), a.d(e, "d", (function() {
return m;
})), a.d(e, "g", (function() {
return f;
})), a.d(e, "f", (function() {
return h;
})), a.d(e, "h", (function() {
return g;
})), a.d(e, "e", (function() {
return v;
}));
var n = a("b775");
function i(t2) {
return Object(n["a"])({ url: "/appproject/Contract/pageList", method: "post", data: t2 });
}
function r(t2) {
return Object(n["a"])({ url: "/appproject/Contract/create", method: "POST", data: t2 });
}
function o(t2) {
return Object(n["a"])({ url: "/appproject/Contract/update", method: "POST", data: t2 });
}
function s(t2) {
return Object(n["a"])({ url: "/appproject/Contract/delete", method: "POST", data: t2 });
}
function l(t2) {
return Object(n["a"])({ url: "/appproject/Contract/findById", method: "POST", data: t2 });
}
function c(t2) {
return Object(n["a"])({ url: "/appproject/Contract/deletePaymentInfo", method: "POST", data: t2 });
}
function u(t2) {
return Object(n["a"])({ url: "/appproject/supplier/pageList", method: "POST", data: t2 });
}
function p(t2) {
return Object(n["a"])({ url: "/appproject/ContractStandRel/standRelQuery", method: "POST", data: t2 });
}
function d(t2) {
return Object(n["a"])({ url: "/appproject/ContractStandRel/standRelCreateBatch", method: "POST", data: t2 });
}
function m(t2) {
return Object(n["a"])({ url: "/project/ContractStandRecognize/recognize", method: "POST", data: t2 });
}
function f(t2) {
return Object(n["a"])({ url: "/project/ContractStandRecognize/pageList", method: "POST", data: t2 });
}
function h(t2) {
return Object(n["a"])({ url: "/project/ContractStandRecognize/deleteBatch", method: "POST", data: t2 });
}
function g(t2) {
return Object(n["a"])({ url: "/project/ContractStandRecognize/update", method: "POST", data: t2 });
}
function v(t2) {
return Object(n["a"])({ url: "/project/ContractStandRecognize/standCommit", method: "POST", data: t2 });
}
}, "36a3": function(t, e, a) {
}, "370e": function(t, e, a) {
"use strict";
a("25c0");
}, "37fc": function(t, e, a) {
"use strict";
var n = function() {
var t2 = this, e2 = t2.$createElement, a2 = t2._self._c || e2;
return a2("div", { staticClass: "planSetting" }, [a2("header", [a2("SubTitle", { attrs: { title: t2.title } })], 1), t2._v(" "), "add" === t2.opentype || "edit" === t2.opentype || "copy" === t2.opentype ? a2("div", { staticClass: "operationInfor" }, [a2("el-tabs", { staticClass: "planSettingTabs", attrs: { type: "border-card" }, on: { "tab-click": t2.handleClick }, model: { value: t2.activeName, callback: function(e3) {
t2.activeName = e3;
}, expression: "activeName" } }, [a2("el-tab-pane", { attrs: { label: "合同作业标准", name: "workStand" } }, [a2("workStand", { ref: "workStand", attrs: { changeType: "workStand", opentype: t2.opentype, attrData: t2.attrData }, on: { updataWorkStandSel: t2.updataWorkStandSel, standSearchQuery: t2.setStandSearchQuery } })], 1), t2._v(" "), a2("el-tab-pane", { attrs: { label: "5A标准", name: "five" } }, [a2("workStand", { ref: "five", attrs: { changeType: "five", opentype: t2.opentype, attrData: t2.attrData }, on: { updataWorkStandSel: t2.updataWorkStandSel, standSearchQuery: t2.setStandSearchQuery } })], 1), t2._v(" "), a2("el-tab-pane", { attrs: { label: "作业网格", name: "workPosition" } }, [a2("workPosition", { ref: "workPosition", attrs: { opentype: t2.opentype, attrData: t2.attrData, selectChange: t2.workTargetSelect }, on: { updataWorkPositionSel: t2.updataWorkPositionSel } })], 1), t2._v(" "), a2("el-tab-pane", { attrs: { label: "作业对象", name: "workTarget" } }, [a2("workTarget", { ref: "workTarget", attrs: { opentype: t2.opentype, attrData: t2.attrData, selectChange: t2.workStandSelect }, on: { updataworkTargetSel: t2.updataworkTargetSel } })], 1), t2._v(" "), a2("el-tab-pane", { attrs: { label: "危险源标准", name: "dangerousStandards" } }, [a2("workStand", { ref: "dangerousStandards", attrs: { changeType: "dangerousStandards", opentype: t2.opentype, attrData: t2.attrData }, on: { updataWorkStandSel: t2.updataWorkStandSel, standSearchQuery: t2.setStandSearchQuery } })], 1)], 1)], 1) : t2._e(), t2._v(" "), "add" === t2.opentype || "edit" === t2.opentype || "copy" === t2.opentype ? a2("div", { staticClass: "operationAdd" }, [a2("el-button", { attrs: { type: "primary", disabled: !(t2.workStandSelect.length > 0) }, on: { click: t2.submitAdd } }, [t2._v("确认添加")])], 1) : t2._e(), t2._v(" "), t2.listTable.length > 0 ? a2("div", { staticClass: "selectedPosStand" }, t2._l(t2.listTable, (function(e3, n2) {
return a2("div", { directives: [{ name: "show", rawName: "v-show", value: t2.isShow, expression: "isShow" }], key: n2, staticClass: "workInforItem" }, [a2("div", { staticClass: "workItemlocation" }, [t2._v("\n " + t2._s(e3.spaceName + "-" + e3.location) + "\n "), a2("label", { staticClass: "isNeedScanCode" }, [t2._v("扫码开启工作:\n "), a2("el-switch", { attrs: { disabled: !(e3.planDeviceList.length > 0) || (1 === t2.attrData.planStatus || 3 === t2.attrData.planStatus || 5 === t2.attrData.planStatus), "active-color": "#13ce66", "active-text": "是", "inactive-text": "否", "active-value": 1, "inactive-value": 2 }, model: { value: e3.needScanCode, callback: function(a3) {
t2.$set(e3, "needScanCode", a3);
}, expression: "item.needScanCode" } }), t2._v(" "), "view" === t2.opentype || "edit" === t2.opentype || "copy" === t2.opentype ? a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], staticClass: "locationCheckImg", attrs: { type: "primary", size: "mini" }, on: { click: function(a3) {
return t2.viewLocation(e3);
} } }, [t2._v("查看照片")]) : t2._e()], 1), t2._v(" "), a2("div", { staticClass: "rigth" }, ["add" === t2.opentype || "edit" === t2.opentype || "copy" === t2.opentype ? a2("el-button", { attrs: { type: "primary", disabled: !(e3.planDeviceList.length > 0) || (1 === t2.attrData.planStatus || 3 === t2.attrData.planStatus), size: "mini" }, on: { click: function(e4) {
return t2.deleteLocation(n2);
} } }, [t2._v("删除")]) : t2._e(), t2._v(" "), a2("span", { on: { click: function(e4) {
return t2.handleSlowList(n2);
} } }, [t2._v("\n " + t2._s(e3.isShow ? "收起" : "展开") + "\n "), a2("i", { class: { icons: true, "el-icon-arrow-down": !e3.isShow, "el-icon-arrow-up": e3.isShow } })])], 1)]), t2._v(" "), e3.planDeviceList.length > 0 ? a2("el-tabs", { directives: [{ name: "show", rawName: "v-show", value: e3.isShow, expression: "item.isShow" }], staticClass: "planSettingTabs", attrs: { type: "border-card", value: e3.planDeviceList[0].targetUuid, closable: ("add" === t2.opentype || "edit" === t2.opentype || "copy" === t2.opentype) && (1 !== t2.attrData.planStatus && 3 !== t2.attrData.planStatus) }, on: { "tab-remove": function(e4) {
return t2.closeTabs(n2, e4);
} } }, t2._l(e3.planDeviceList, (function(e4, i2) {
return a2("el-tab-pane", { key: i2, staticClass: "workItemPane", attrs: { label: e4.targetName, name: e4.targetUuid } }, [a2("editStandTable", { attrs: { autoPass: t2.autoPass, tableData: e4.standardRespDTOList, pageIndex: true, page: true, opentype: t2.opentype, attrData: t2.attrData }, on: { queryCurStandLocationImg: function(e5) {
return t2.queryCurStandLocationImg(n2, i2, e5);
}, deleteItemStand: function(e5) {
return t2.deleteItemStand(n2, i2, e5);
} } })], 1);
})), 1) : t2._e()], 1);
})), 0) : t2._e(), t2._v(" "), a2("task-infomation", { ref: "taskInfomationRef", attrs: { selectStand: t2.selectStand, attrData: t2.attrData, taskData: t2.settingData, addType: t2.addType, opentype: t2.opentype } }), t2._v(" "), a2("el-dialog", { staticClass: "dialogHead", attrs: { "show-close": true, "close-on-press-escape": false, "close-on-click-modal": false, visible: t2.pictureDialog, width: "630px" }, on: { "update:visible": function(e3) {
t2.pictureDialog = e3;
} } }, [a2("span", { attrs: { slot: "title" }, slot: "title" }, [a2("span", { staticClass: "header-main-title" }, [t2._v("照片集")]), t2._v(" "), "task" === !t2.opentype ? a2("span", { staticClass: "header-sub-title" }, [t2._v("注:选择以下照片作为标准照片后,将在计划工单中显示作为参照标准图片")]) : t2._e()]), t2._v(" "), t2.getImgUrr(t2.imageUrl).length > 0 ? a2("div", { staticStyle: { "margin-bottom": "24px" } }, [a2("h4", { staticStyle: { "margin-top": "-15px" } }, [t2._v("示例图片:")]), t2._v(" "), a2("el-row", t2._l(t2.getImgUrr(t2.imageUrl), (function(t3) {
return a2("el-col", { key: t3, attrs: { span: 6 } }, [a2("div", { staticClass: "imgItem" }, [a2("span", { staticClass: "imgWrap" }, [a2("el-image", { staticStyle: { cursor: "pointer", width: "100px", height: "100px" }, attrs: { src: t3, "preview-src-list": [t3] } })], 1)])]);
})), 1), t2._v(" "), a2("div", { staticClass: "tab-title2" })], 1) : t2._e(), t2._v(" "), a2("div", { staticClass: "imgPreview" }, [t2.pictureUrl.length > 0 ? t2._l(Math.ceil(t2.pictureUrl.length / 3), (function(e3, n2) {
return a2("el-row", { key: e3, staticClass: "pictureRow", attrs: { type: "flex" } }, t2._l(t2.pictureUrl.slice(0 === n2 ? 0 : 3 * n2, 3 * (n2 + 1)), (function(e4) {
return a2("el-col", { key: e4.src, attrs: { span: 8 } }, [a2("div", { staticClass: "imgItem", on: { click: function(a3) {
return t2.handleImg(e4);
} } }, [a2("span", { staticClass: "imgWrap" }, [a2("img", { staticStyle: { cursor: "pointer" }, attrs: { src: e4.src, alt: "" } })]), t2._v(" "), a2("span", { staticClass: "btnWrap2" }, [a2("i", { staticClass: "floats" }, [a2("el-image", { staticClass: "bannerImg", attrs: { src: t2.replaceUrl(e4.src), "preview-src-list": [e4.src], fit: "contain" } })], 1)]), t2._v(" "), !e4.checked || "view" !== t2.opentype && "edit" !== t2.opentype && "copy" !== t2.opentype ? t2._e() : a2("span", { staticClass: "btnWrap" }, [a2("el-button", { attrs: { type: "primary", icon: "el-icon-check", circle: "" } })], 1)])]);
})), 1);
})) : a2("div", { staticClass: "noData" }, [t2._v("暂无数据")]), t2._v(" "), a2("div", { staticClass: "picture" }, [t2.pictureUrl.length > 0 && ("view" === t2.opentype || "edit" === t2.opentype || "copy" === t2.opentype) ? a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: t2.saveSelect } }, [t2._v("确定选择")]) : t2._e(), t2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: function(e3) {
t2.pictureDialog = false;
} } }, [t2._v("取消")])], 1)], 2)]), t2._v(" "), a2("el-dialog", { attrs: { title: "示例图片", visible: t2.locationEgImgDialog, width: "600px" }, on: { "update:visible": function(e3) {
t2.locationEgImgDialog = e3;
} } }, [t2.unreferencedImages.length > 0 ? a2("div", [a2("h4", { staticStyle: { "margin-bottom": "15px", color: "#409EFF" } }, [t2._v("网格备选图片库")]), t2._v(" "), a2("div", { staticClass: "locationEgImgBox" }, t2._l(t2.unreferencedImages, (function(e3, n2) {
return a2("div", { key: "unref-" + n2, staticClass: "locationEgImgItem" }, [a2("div", { staticClass: "locationEgImgItemImgBox" }, [a2("el-image", { staticClass: "locationEgImgItemImg", staticStyle: { cursor: "pointer" }, attrs: { src: e3.examplesImageUrl, fit: "fill", "preview-src-list": t2.allExampleImagesPreviewList } })], 1), t2._v(" "), "view" !== t2.opentype ? a2("div", { staticClass: "setEgImg", class: "unimgSelected", on: { click: function(a3) {
return t2.addToReferencedImages(e3);
} } }, [t2._v("\n 添加到引用示例图片库\n ")]) : a2("div", { staticClass: "setEgImg", staticStyle: { cursor: "not-allowed", opacity: "0.5" } }, [t2._v("\n 已引用\n ")])]);
})), 0), t2._v(" "), a2("div", { staticClass: "tab-title2" })]) : t2._e(), t2._v(" "), t2.referencedImages.length > 0 ? a2("div", [a2("h4", { staticStyle: { "margin-bottom": "15px", color: "#67C23A" } }, [t2._v("引用示例图片库")]), t2._v(" "), a2("div", { staticClass: "locationEgImgBox" }, t2._l(t2.referencedImages, (function(e3, n2) {
return a2("div", { key: "ref-" + n2, staticClass: "locationEgImgItem" }, [a2("div", { staticClass: "locationEgImgItemImgBox" }, [a2("el-image", { staticClass: "locationEgImgItemImg", staticStyle: { cursor: "pointer" }, attrs: { src: e3.examplesImageUrl, fit: "fill", "preview-src-list": t2.allExampleImagesPreviewList } })], 1), t2._v(" "), "view" !== t2.opentype ? a2("div", { staticClass: "setEgImg", class: 2 === e3.selected ? "imgSelected" : "unimgSelected", on: { click: function(a3) {
t2.setCurrentImgToEgImg(e3, t2.getOriginalIndex(e3));
} } }, [t2._v("\n " + t2._s(2 === e3.selected ? "示例图片" : "设为示例图片") + "\n ")]) : a2("div", { staticClass: "setEgImg", class: 2 === e3.selected ? "imgSelected" : "unimgSelected", staticStyle: { cursor: "default" } }, [t2._v("\n " + t2._s(2 === e3.selected ? "示例图片" : "设为示例图片") + "\n ")])]);
})), 0)]) : t2._e(), t2._v(" "), 0 === t2.locationEgImg.length ? a2("div", { staticStyle: { color: "red", "text-align": "center" } }, [t2._v("\n 暂无示例图片可引用\n ")]) : t2._e(), t2._v(" "), a2("span", { staticClass: "dialog-footer", attrs: { slot: "footer" }, slot: "footer" }, [a2("el-button", { on: { click: t2.closelocationEgImgDialog } }, [t2._v("关闭")])], 1)])], 1);
}, i = [], r = a("f139"), o = function() {
var t2 = this, e2 = t2.$createElement, a2 = t2._self._c || e2;
return a2("div", { staticClass: "workPosition" }, [a2("div", { staticClass: "planWorkSearchBox" }, [a2("el-form", { staticClass: "demo-form-inline", attrs: { inline: true, model: t2.query } }, [a2("el-form-item", { attrs: { prop: "sceneId" } }, [a2("el-select", { attrs: { placeholder: "选择场景归属", clearable: "" }, model: { value: t2.query.sceneId, callback: function(e3) {
t2.$set(t2.query, "sceneId", e3);
}, expression: "query.sceneId" } }, t2._l(t2.sceneMenu, (function(t3, e3) {
return a2("el-option", { key: e3, attrs: { label: t3.sceneName, value: t3.id } });
})), 1)], 1), t2._v(" "), a2("el-form-item", [a2("el-select", { staticClass: "formItem", attrs: { disabled: "view" === t2.opentype || 1 === t2.attrData.planStatus || 3 === t2.attrData.planStatus, multiple: "", "collapse-tags": "", filterable: "", clearable: "", placeholder: "请选择作业空间" }, on: { change: t2.selectChanged }, model: { value: t2.query.spaceUuidList, callback: function(e3) {
t2.$set(t2.query, "spaceUuidList", e3);
}, expression: "query.spaceUuidList" } }, t2._l(t2.spaceList, (function(t3) {
return a2("el-option", { key: t3.spaceUuid, attrs: { label: t3.name, value: t3.spaceUuid } });
})), 1)], 1), t2._v(" "), a2("el-form-item", [a2("el-select", { staticClass: "formItem", attrs: { disabled: "view" === t2.opentype || 1 === t2.attrData.planStatus || 3 === t2.attrData.planStatus, multiple: "", "collapse-tags": "", filterable: "", clearable: "", placeholder: "请选择作业网格" }, model: { value: t2.query.locationUuidList, callback: function(e3) {
t2.$set(t2.query, "locationUuidList", e3);
}, expression: "query.locationUuidList" } }, t2._l(t2.locationList, (function(t3) {
return a2("el-option", { key: t3.locationUuid, attrs: { label: t3.location, value: t3.locationUuid } });
})), 1)], 1), t2._v(" "), a2("el-form-item", [a2("el-button", { attrs: { disabled: "view" === t2.opentype || 1 === t2.attrData.planStatus || 3 === t2.attrData.planStatus }, on: { click: function(e3) {
return t2.onReset("query");
} } }, [t2._v("重置")]), t2._v(" "), a2("el-button", { attrs: { type: "primary", disabled: "view" === t2.opentype || 1 === t2.attrData.planStatus || 3 === t2.attrData.planStatus }, on: { click: function(e3) {
return t2.onSearch("");
} } }, [t2._v("查询")])], 1)], 1)], 1), t2._v(" "), a2("div", { staticClass: "planWorkTable" }, [a2("el-table", { ref: "workPositionMultipleTable", staticStyle: { width: "100%" }, attrs: { "row-key": "locationUuid", border: "", size: "small", data: t2.tableData.slice((t2.query.pageNumber - 1) * t2.query.pageSize, t2.query.pageNumber * t2.query.pageSize), "tooltip-effect": "dark", "header-cell-style": t2.headClass }, on: { "selection-change": t2.handleSelectionChange } }, [a2("el-table-column", { attrs: { type: "selection", align: "center", "reserve-selection": true, width: "55", selectable: t2.locationSelcet } }), t2._v(" "), a2("el-table-column", { attrs: { label: "场景", align: "center", prop: "sceneName" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
return [a2("span", [t2._v(t2._s(e3.row.sceneName || "-"))])];
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { label: "空间网格编码", align: "center", prop: "locationCode" } }), t2._v(" "), a2("el-table-column", { attrs: { label: "空间", prop: "spaceName", align: "center", "show-overflow-tooltip": "" } }), t2._v(" "), a2("el-table-column", { attrs: { label: "网格", prop: "location", align: "center", "show-overflow-tooltip": "" } })], 1), t2._v(" "), a2("div", { staticClass: "pagination" }, [a2("Pagination", { attrs: { total: t2.pageTotal }, on: { handleCurrentChange: t2.handleCurrentChange, handleSizeChange: t2.handleSizeChange } })], 1)], 1)]);
}, s = [], l = a("333d"), c = a("f8b7"), u = a("8826"), p = a("d2a7"), d = { name: "workPosition", components: { Pagination: l["a"] }, props: { selectChange: { type: Array, default: [] }, opentype: { type: String, default: "add" }, attrData: { type: Object, default: function() {
return {};
} } }, data: function() {
return { spaceList: [], locationList: [], query: { pageNumber: 1, pageSize: 10, projectUuid: "", sceneId: "", locationUuidList: [], spaceUuidList: [], targetUuid: [] }, workPositionSelection: [], pageTotal: 0, tableData: [], sceneMenu: [] };
}, watch: { selectChange: { handler: function(t2, e2) {
this.parentChange();
}, deep: true } }, mounted: function() {
this.query.projectUuid = this.$store.state.community_uuid, this.getSceneMenuList(), this.spaceLocation(), this.getTableList();
}, methods: { getSceneMenuList: function() {
var t2 = this;
Object(p["a"])().then((function(e2) {
t2.sceneMenu = e2.data;
}));
}, spaceLocation: function() {
var t2 = this, e2 = { projectId: this.$store.state.community_uuid }, a2 = { projectUuid: this.$store.state.community_uuid, pageNumber: -1, pageSize: -1, spaceUuidList: [] };
Object(c["J"])(e2).then((function(e3) {
0 == e3.code && (t2.spaceList = e3.data);
})), this.positionQuery(a2);
}, positionQuery: function(t2) {
var e2 = this;
Object(c["I"])(t2).then((function(t3) {
0 == t3.code && (e2.locationList = t3.data.records);
}));
}, selectChanged: function(t2) {
var e2 = { projectUuid: this.$store.state.community_uuid, pageNumber: -1, pageSize: -1, spaceUuidList: t2 };
this.positionQuery(e2);
}, parentChange: function() {
var t2 = this, e2 = { locationUuidList: [], standUuidList: [], targetUuidList: this.selectChange.length > 0 ? this.getArByKey(this.selectChange, "targetUuid", 0) : [], selectType: 2, projectUuid: this.$store.state.community_uuid };
Object(u["b"])(e2).then((function(e3) {
if (0 === e3.code && e3.data) {
var a2 = e3.data.locationUuidList, n2 = t2.tableData.filter((function(t3) {
return a2.some((function(e4) {
return e4 === t3.locationUuid;
}));
}));
console.log("workPositionMultipleTable", n2), n2.length > 0 ? t2.$nextTick((function() {
n2.forEach((function(e4) {
t2.$refs.workPositionMultipleTable.toggleRowSelection(e4, true);
}));
})) : t2.$nextTick((function() {
t2.$refs.workPositionMultipleTable.clearSelection();
})), t2.$forceUpdate();
}
}));
}, headClass: function() {
return "text-align:center;background:#FAFAFA;";
}, handleSizeChange: function(t2) {
this.query.pageNumber = 1, this.query.pageSize = t2.limit;
}, handleCurrentChange: function(t2) {
this.query.pageNumber = t2.currentPage;
}, onReset: function(t2) {
this.query.pageNumber = 1, this.query.sceneId = "", this.query.locationUuidList = [], this.query.spaceUuidList = [], this.$refs.workPositionMultipleTable.clearSelection(), this.getTableList();
}, onSearch: function() {
this.query.pageNumber = 1, this.getTableList();
}, getTableList: function() {
var t2 = this, e2 = this.query;
e2.enableStatus = 0, Object(u["d"])(e2).then((function(e3) {
0 == e3.code && (t2.tableData = e3.data, t2.pageTotal = e3.data.length);
}));
}, locationSelcet: function() {
return "view" !== this.opentype && 1 !== this.attrData.planStatus && 3 !== this.attrData.planStatus;
}, handleSelectionChange: function(t2) {
this.workPositionSelection = t2, this.$emit("updataWorkPositionSel", t2);
}, getArByKey: function(t2, e2, a2, n2) {
if (0 === a2) return t2.map((function(t3) {
return t3[e2];
}));
var i2 = void 0 === n2 ? "," : n2;
return t2.map((function(t3) {
return t3[e2];
})).join(i2);
} } }, m = d, f = a("829d"), h = Object(f["a"])(m, o, s, false, null, null, null), g = h.exports, v = function() {
var t2 = this, e2 = t2.$createElement, a2 = t2._self._c || e2;
return a2("div", { staticClass: "workPosition" }, [a2("div", { staticClass: "planWorkSearchBox" }, [a2("el-form", { staticClass: "demo-form-inline", attrs: { inline: true, model: t2.query } }, [a2("el-form-item", [a2("el-select", { staticClass: "formItem", attrs: { disabled: "view" === t2.opentype || 1 === t2.attrData.planStatus || 3 === t2.attrData.planStatus, multiple: "", "collapse-tags": "", filterable: "", clearable: "", placeholder: "请选择作业网格" }, model: { value: t2.query.locationUuidList, callback: function(e3) {
t2.$set(t2.query, "locationUuidList", e3);
}, expression: "query.locationUuidList" } }, t2._l(t2.locationList, (function(t3) {
return a2("el-option", { key: t3.locationUuid, attrs: { label: t3.location, value: t3.locationUuid } });
})), 1)], 1), t2._v(" "), a2("el-form-item", [a2("el-form-item", [a2("el-input", { attrs: { disabled: "view" === t2.opentype || 1 === t2.attrData.planStatus || 3 === t2.attrData.planStatus, placeholder: "请输入作业对象", maxlength: "36", clearable: "" }, model: { value: t2.query.targetName, callback: function(e3) {
t2.$set(t2.query, "targetName", e3);
}, expression: "query.targetName" } })], 1)], 1), t2._v(" "), a2("el-form-item", [a2("el-button", { attrs: { disabled: "view" === t2.opentype || 1 === t2.attrData.planStatus || 3 === t2.attrData.planStatus }, on: { click: function(e3) {
return t2.onReset("query");
} } }, [t2._v("重置")]), t2._v(" "), a2("el-button", { attrs: { type: "primary", disabled: "view" === t2.opentype || 1 === t2.attrData.planStatus || 3 === t2.attrData.planStatus }, on: { click: function(e3) {
return t2.onSearch("");
} } }, [t2._v("查询")])], 1)], 1)], 1), t2._v(" "), a2("div", { staticClass: "planWorkTable" }, [a2("el-table", { ref: "workTargetMultipleTable", staticStyle: { width: "100%" }, attrs: { "row-key": "targetUuid", border: "", size: "small", data: t2.tableData.slice((t2.query.pageNumber - 1) * t2.query.pageSize, t2.query.pageNumber * t2.query.pageSize), "tooltip-effect": "dark", "header-cell-style": t2.headClass }, on: { "selection-change": t2.handleSelectionChange } }, [a2("el-table-column", { attrs: { type: "selection", align: "center", "reserve-selection": true, width: "55", selectable: t2.locationSelcet } }), t2._v(" "), a2("el-table-column", { attrs: { label: "作业对象", align: "center", prop: "targetName" } }), t2._v(" "), a2("el-table-column", { attrs: { label: "作业对象类型", prop: "targetType", align: "center" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
return [t2._v("\n " + t2._s(t2._f("getItemType")(e3.row.targetType, t2.targetTypeList)) + "\n ")];
} }]) })], 1), t2._v(" "), a2("div", { staticClass: "pagination" }, [a2("Pagination", { attrs: { total: t2.pageTotal }, on: { handleCurrentChange: t2.handleCurrentChange, handleSizeChange: t2.handleSizeChange } })], 1)], 1)]);
}, y = [], b = { name: "workTarget", components: { Pagination: l["a"] }, props: { selectChange: { type: Array, default: [] }, opentype: { type: String, default: "add" }, attrData: { type: Object, default: function() {
return {};
} } }, data: function() {
return { spaceList: [], locationList: [], query: { pageNumber: 1, pageSize: 10, projectUuid: "", locationUuidList: [], spaceUuidList: [], targetName: "" }, workTargetSelection: [], pageTotal: 0, tableData: [], targetTypeList: [{ value: 1, label: "设备" }, { value: 2, label: "空间" }, { value: 3, label: "物品" }] };
}, watch: { selectChange: { handler: function(t2, e2) {
this.parentChange();
}, deep: true } }, mounted: function() {
this.query.projectUuid = this.$store.state.community_uuid, this.positionQuery(), this.getTableList();
}, methods: { positionQuery: function() {
var t2 = this, e2 = { projectUuid: this.$store.state.community_uuid, pageNumber: -1, pageSize: -1, spaceUuidList: [] };
Object(c["I"])(e2).then((function(e3) {
0 == e3.code && (t2.locationList = e3.data.records);
}));
}, selectChanged: function(t2) {
this.$store.state.community_uuid;
}, parentChange: function() {
var t2 = this, e2 = { locationUuidList: [], targetUuidList: [], standUuidList: this.selectChange.length > 0 ? this.getArByKey(this.selectChange, "standUuid", 0) : [], selectType: 3, projectUuid: this.$store.state.community_uuid };
Object(u["b"])(e2).then((function(e3) {
if (0 === e3.code && e3.data) {
var a2 = e3.data.targetUuidList, n2 = t2.tableData.filter((function(t3) {
return a2.some((function(e4) {
return e4 === t3.targetUuid;
}));
}));
console.log("needSelect", n2), n2.length > 0 ? t2.$nextTick((function() {
n2.forEach((function(e4) {
t2.$refs.workTargetMultipleTable.toggleRowSelection(e4, true);
}));
})) : t2.$nextTick((function() {
t2.$refs.workTargetMultipleTable.clearSelection();
})), t2.$forceUpdate();
}
}));
}, headClass: function() {
return "text-align:center;background:#FAFAFA;";
}, handleSizeChange: function(t2) {
this.query.pageNumber = 1, this.query.pageSize = t2.limit;
}, handleCurrentChange: function(t2) {
this.query.pageNumber = t2.currentPage;
}, onReset: function(t2) {
this.query.pageNumber = 1, this.query.locationUuidList = [], this.query.targetName = "", this.$refs.workTargetMultipleTable.clearSelection(), this.getTableList();
}, onSearch: function() {
this.query.pageNumber = 1, this.getTableList();
}, getTableList: function() {
var t2 = this, e2 = this.query;
Object(u["e"])(e2).then((function(e3) {
0 == e3.code && (t2.tableData = e3.data, t2.pageTotal = e3.data.length);
}));
}, locationSelcet: function() {
return "view" !== this.opentype && 1 !== this.attrData.planStatus && 3 !== this.attrData.planStatus;
}, handleSelectionChange: function(t2) {
this.workTargetSelection = t2, this.$emit("updataworkTargetSel", t2);
}, getArByKey: function(t2, e2, a2, n2) {
if (0 === a2) return t2.map((function(t3) {
return t3[e2];
}));
var i2 = void 0 === n2 ? "," : n2;
return t2.map((function(t3) {
return t3[e2];
})).join(i2);
} } }, S = b, _ = Object(f["a"])(S, v, y, false, null, null, null), w = _.exports, k = function() {
var t2 = this, e2 = t2.$createElement, a2 = t2._self._c || e2;
return a2("div", { staticClass: "workPosition" }, [a2("div", { staticClass: "planWorkSearchBox" }, [a2("el-form", { staticClass: "demo-form-inline", attrs: { inline: true, model: t2.query } }, [a2("el-form-item", [a2("el-select", { staticClass: "formItem", attrs: { disabled: "view" === t2.opentype || 1 === t2.attrData.planStatus || 3 === t2.attrData.planStatus, multiple: "", "collapse-tags": "", filterable: "", clearable: "", placeholder: "请选择项目合同" }, model: { value: t2.query.contractIds, callback: function(e3) {
t2.$set(t2.query, "contractIds", e3);
}, expression: "query.contractIds" } }, t2._l(t2.contractList, (function(t3) {
return a2("el-option", { key: t3.id, attrs: { label: t3.name, value: t3.id } });
})), 1)], 1), t2._v(" "), a2("el-form-item", [a2("el-select", { staticClass: "formItem", attrs: { disabled: "view" === t2.opentype || 1 === t2.attrData.planStatus || 3 === t2.attrData.planStatus, multiple: "", "collapse-tags": "", filterable: "", clearable: "", placeholder: "请选择作业网格" }, on: { change: t2.standLocationQueryChange }, model: { value: t2.query.locationUuidList, callback: function(e3) {
t2.$set(t2.query, "locationUuidList", e3);
}, expression: "query.locationUuidList" } }, t2._l(t2.locationList, (function(t3) {
return a2("el-option", { key: t3.locationUuid, attrs: { label: t3.location, value: t3.locationUuid } });
})), 1)], 1), t2._v(" "), a2("el-form-item", [a2("el-form-item", [a2("el-input", { attrs: { disabled: "view" === t2.opentype || 1 === t2.attrData.planStatus || 3 === t2.attrData.planStatus, placeholder: "请输入作业对象", maxlength: "36", clearable: "" }, model: { value: t2.query.targetName, callback: function(e3) {
t2.$set(t2.query, "targetName", e3);
}, expression: "query.targetName" } })], 1)], 1), t2._v(" "), a2("el-form-item", [a2("el-form-item", [a2("el-input", { attrs: { disabled: "view" === t2.opentype || 1 === t2.attrData.planStatus || 3 === t2.attrData.planStatus, placeholder: "请输入作业事项", maxlength: "36", clearable: "" }, model: { value: t2.query.eventName, callback: function(e3) {
t2.$set(t2.query, "eventName", e3);
}, expression: "query.eventName" } })], 1)], 1), t2._v(" "), a2("el-form-item", [a2("el-form-item", { attrs: { prop: "freParam" } }, [a2("div", { staticClass: "formLoop" }, [a2("el-form-item", { attrs: { prop: "loopNum" } }, [a2("el-input", { staticClass: "formLoop-loopNum", attrs: { disabled: "" }, model: { value: t2.freParam.loopNum, callback: function(e3) {
t2.$set(t2.freParam, "loopNum", "string" === typeof e3 ? e3.trim() : e3);
}, expression: "freParam.loopNum" } })], 1), t2._v(" "), a2("el-form-item", { staticClass: "formLoop-loopType", attrs: { prop: "loopType" } }, [a2("el-select", { attrs: { placeholder: "请选择频次类型", clearable: "" }, model: { value: t2.freParam.loopType, callback: function(e3) {
t2.$set(t2.freParam, "loopType", e3);
}, expression: "freParam.loopType" } }, t2._l(t2.frequencyLevel, (function(t3, e3) {
return a2("el-option", { key: e3, attrs: { label: t3.label, value: t3.value } });
})), 1)], 1), t2._v(" "), a2("el-form-item", { staticClass: "formLoop-loopType", attrs: { prop: "loopType" } }, [a2("el-select", { attrs: { placeholder: "请选择作业菜单分类", clearable: "" }, model: { value: t2.query.controlType, callback: function(e3) {
t2.$set(t2.query, "controlType", e3);
}, expression: "query.controlType" } }, t2._l(t2.planModeLArr, (function(t3, e3) {
return a2("el-option", { key: e3, attrs: { label: t3.label, value: t3.value } });
})), 1)], 1), t2._v(" "), a2("el-form-item", { attrs: { prop: "rateNum" } }, [a2("el-input-number", { staticClass: "formLoop-rateNum", attrs: { precision: 0, "controls-position": "right", min: 1, max: 15 }, model: { value: t2.freParam.rateNum, callback: function(e3) {
t2.$set(t2.freParam, "rateNum", "string" === typeof e3 ? e3.trim() : e3);
}, expression: "freParam.rateNum" } })], 1), t2._v(" "), a2("span", { staticClass: "ci" }, [t2._v("次")])], 1)])], 1), t2._v(" "), a2("el-form-item", [a2("el-button", { attrs: { disabled: "view" === t2.opentype || 1 === t2.attrData.planStatus || 3 === t2.attrData.planStatus }, on: { click: function(e3) {
return t2.onReset("query");
} } }, [t2._v("重置")]), t2._v(" "), a2("el-button", { attrs: { type: "primary", disabled: "view" === t2.opentype || 1 === t2.attrData.planStatus || 3 === t2.attrData.planStatus }, on: { click: function(e3) {
return t2.onSearch("");
} } }, [t2._v("查询")])], 1)], 1)], 1), t2._v(" "), a2("div", { staticClass: "planWorkTable" }, [a2("el-table", { ref: "workStandMultipleTable", staticStyle: { width: "100%" }, attrs: { "row-key": "standUuid", border: "", size: "small", data: t2.tableData, "tooltip-effect": "dark", "header-cell-style": t2.headClass }, on: { "selection-change": t2.handleSelectionChange } }, [a2("el-table-column", { attrs: { type: "selection", align: "center", "reserve-selection": true, "min-width": "55", selectable: t2.locationSelcet } }), t2._v(" "), a2("el-table-column", { attrs: { label: "作业事项", prop: "eventName", align: "center", "min-width": "120", "show-overflow-tooltip": "" } }), t2._v(" "), a2("el-table-column", { attrs: { label: "作业标准", prop: "serviceDesc", align: "center", "min-width": "120", "show-overflow-tooltip": "" } }), t2._v(" "), a2("el-table-column", { attrs: { label: "检查标准", prop: "checkDesc", align: "center", "min-width": "120", "show-overflow-tooltip": "" } }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "50", label: "AI标准", prop: "freName", "show-overflow-tooltip": "" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
return [a2("span", [t2._v("\n " + t2._s(null != e3.row.aiStandard && 1 == e3.row.isAiCheck ? "是" : "否") + "\n ")])];
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { label: "参考频次", prop: "freName", align: "center", "min-width": "80", "show-overflow-tooltip": "" } }), t2._v(" "), a2("el-table-column", { attrs: { label: "参考岗位", prop: "jobName", align: "center", "min-width": "100", "show-overflow-tooltip": "" } }), t2._v(" "), a2("el-table-column", { attrs: { label: "作业菜单分类", prop: "controlType", align: "center", "min-width": "100", "show-overflow-tooltip": "" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
return [a2("span", [t2._v(t2._s(t2._f("getItemType")(e3.row.controlType, t2.planModeLArr)))])];
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { label: "图片集", align: "center", "min-width": "100", fixed: "right" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
return ["view" === t2.opentype && 3 === t2.attrData.planStatus ? a2("el-link", { attrs: { type: "primary" }, on: { click: function(a3) {
return t2.viewPhotos(e3.row, 1);
} } }, [t2._v("查看图片集")]) : a2("el-link", { attrs: { type: "primary" }, on: { click: function(a3) {
return t2.viewPhotos(e3.row, 2);
} } }, [t2._v("查看图片")])];
} }]) })], 1), t2._v(" "), a2("div", { staticClass: "pagination" }, [a2("Pagination", { attrs: { total: t2.pageTotal }, on: { handleCurrentChange: t2.handleCurrentChange, handleSizeChange: t2.handleSizeChange } })], 1)], 1), t2._v(" "), a2("el-dialog", { staticClass: "dialogHead", attrs: { "show-close": true, "close-on-press-escape": false, "close-on-click-modal": false, visible: t2.pictureDialog, width: "630px" }, on: { "update:visible": function(e3) {
t2.pictureDialog = e3;
} } }, [a2("span", { attrs: { slot: "title" }, slot: "title" }, [a2("span", { staticClass: "header-main-title" }, [t2._v("照片集")]), t2._v(" "), "task" === !t2.opentype ? a2("span", { staticClass: "header-sub-title" }, [t2._v("注:选择以下照片作为标准照片后,将在计划工单中显示作为参照标准图片")]) : t2._e()]), t2._v(" "), t2.getImgUrr(t2.imageUrl).length > 0 ? a2("div", { staticStyle: { "margin-bottom": "24px" } }, [a2("h4", { staticStyle: { "margin-top": "-15px" } }, [t2._v("示例图片:")]), t2._v(" "), a2("el-row", t2._l(t2.getImgUrr(t2.imageUrl), (function(t3) {
return a2("el-col", { key: t3, attrs: { span: 6 } }, [a2("div", { staticClass: "imgItem" }, [a2("span", { staticClass: "imgWrap" }, [a2("el-image", { staticStyle: { cursor: "pointer", width: "100px", height: "100px" }, attrs: { src: t3, "preview-src-list": [t3] } })], 1)])]);
})), 1), t2._v(" "), a2("div", { staticClass: "tab-title2" })], 1) : t2._e(), t2._v(" "), a2("div", { staticClass: "imgPreview" }, [t2.pictureUrl.length > 0 ? t2._l(Math.ceil(t2.pictureUrl.length / 3), (function(e3, n2) {
return a2("el-row", { key: e3, staticClass: "pictureRow", attrs: { type: "flex" } }, t2._l(t2.pictureUrl.slice(0 === n2 ? 0 : 3 * n2, 3 * (n2 + 1)), (function(e4) {
return a2("el-col", { key: e4.src, attrs: { span: 8 } }, [a2("div", { staticClass: "imgItem", on: { click: function(a3) {
return t2.handleImg(e4);
} } }, [a2("span", { staticClass: "imgWrap" }, [a2("img", { staticStyle: { cursor: "pointer" }, attrs: { src: e4.src, alt: "" } })]), t2._v(" "), a2("span", { staticClass: "btnWrap2" }, [a2("i", { staticClass: "floats" }, [a2("el-image", { staticClass: "bannerImg", attrs: { src: t2.replaceUrl(e4.src), "preview-src-list": [e4.src], fit: "contain" } })], 1)]), t2._v(" "), !e4.checked || "view" !== t2.opentype && "edit" !== t2.opentype && "copy" !== t2.opentype ? t2._e() : a2("span", { staticClass: "btnWrap" }, [a2("el-button", { attrs: { type: "primary", icon: "el-icon-check", circle: "" } })], 1)])]);
})), 1);
})) : a2("div", { staticClass: "noData" }, [t2._v("暂无数据")]), t2._v(" "), a2("div", { staticClass: "picture" }, [t2.pictureUrl.length > 0 && ("view" === t2.opentype || "edit" === t2.opentype || "copy" === t2.opentype) ? a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: t2.saveSelect } }, [t2._v("确定选择")]) : t2._e(), t2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: function(e3) {
t2.pictureDialog = false;
} } }, [t2._v("取消")])], 1)], 2)])], 1);
}, T = [], I = a("be2e"), D = a("35ad"), U = a("8f53"), C = { name: "workStand", components: { Pagination: l["a"] }, props: { changeType: { type: String }, opentype: { type: String, default: "add" }, attrData: { type: Object, default: function() {
return {};
} } }, data: function() {
return { pictureDialog: false, pictureUrl: [], locationImageList: [], imageUrl: "", imageSave: {}, planModeLArr: U["w"], spaceList: [], locationList: [], query: { pageNumber: 1, pageSize: 10, projectUuid: "", contractIds: [], locationUuidList: [], eventName: "", targetName: "", freParam: "", controlType: "" }, workStandSelection: [], pageTotal: 0, tableData: [], contractList: [], LevelArr: [{ label: "普通", value: 1 }, { label: "培训", value: 2 }, { label: "认证", value: 3 }], frequencyLevel: U["i"], freParam: { loopNum: 1, loopType: "", rateNum: 1 } };
}, watch: { freParam: { handler: function(t2, e2) {
"" === this.freParam.loopType || void 0 === this.freParam.loopType || null === this.freParam.loopType ? this.query.freParam = "" : this.query.freParam = Object.values(this.freParam).join(",");
}, deep: true } }, created: function() {
}, mounted: function() {
this.query.projectUuid = this.$store.state.community_uuid, this.spaceLocation(), this.getlistData(), "add" == this.opentype && "dangerousStandards" !== this.changeType && 1 !== this.attrData.planModel && (this.query.controlType = this.attrData.planModel);
}, methods: { getlistData: function() {
var t2 = this, e2 = { pageSize: -1, pageNumber: -1, projectUuid: this.$store.state.community_uuid, companyId: this.$store.state.companyId };
Object(D["b"])(e2).then((function(e3) {
0 === e3.code && e3.data ? (t2.contractList = e3.data.records, "view" === t2.opentype || 1 === t2.attrData.planStatus || 3 === t2.attrData.planStatus ? t2.query.contractIds = [] : "workStand" == t2.changeType && 1 !== t2.attrData.planModel && (t2.query.contractIds = [e3.data.records[0].id]), t2.getTableList()) : t2.contractList = [];
}));
}, reviewStandSelect: function(t2) {
var e2 = this, a2 = t2, n2 = this.tableData.filter((function(t3) {
return a2.some((function(e3) {
return e3.standardUuid === t3.standUuid;
}));
}));
this.$nextTick((function() {
n2.forEach((function(t3) {
e2.$refs.workStandMultipleTable.toggleRowSelection(t3, true);
}));
})), this.$forceUpdate();
}, spaceLocation: function() {
var t2 = this, e2 = { projectId: this.$store.state.community_uuid }, a2 = { projectUuid: this.$store.state.community_uuid, pageNumber: -1, pageSize: -1, spaceUuidList: [] };
Object(c["J"])(e2).then((function(e3) {
0 == e3.code && (t2.spaceList = e3.data);
})), this.positionQuery(a2);
}, positionQuery: function(t2) {
var e2 = this;
Object(c["I"])(t2).then((function(t3) {
0 == t3.code && (e2.locationList = t3.data.records);
}));
}, selectChanged: function(t2) {
var e2 = { projectUuid: this.$store.state.community_uuid, pageNumber: -1, pageSize: -1, spaceUuidList: t2 };
this.positionQuery(e2);
}, headClass: function() {
return "text-align:center;background:#FAFAFA;";
}, handleSizeChange: function(t2) {
this.query.pageNumber = 1, this.query.pageSize = t2.limit, this.getTableList();
}, handleCurrentChange: function(t2) {
this.query.pageNumber = t2.currentPage, this.getTableList();
}, onReset: function(t2) {
this.query.pageNumber = 1, this.query.locationUuidList = [], this.query.contractIds = [], this.query.eventName = "", this.query.targetName = "", this.freParam.loopNum = 1, this.freParam.loopType = "", this.freParam.rateNum = 1, this.query.freParam = "", this.query.controlType = "", this.$refs.workStandMultipleTable.clearSelection(), this.getTableList();
}, onSearch: function() {
this.query.pageNumber = 1, this.getTableList();
}, getTableList: function() {
var t2 = this, e2 = this.query;
"dangerousStandards" == this.changeType && (e2.isDanger = 1), Object(u["h"])(e2).then((function(e3) {
0 == e3.code && (t2.tableData = e3.data.records, t2.pageTotal = e3.data.rowsCount);
}));
}, locationSelcet: function() {
return "view" !== this.opentype && 1 !== this.attrData.planStatus && 3 !== this.attrData.planStatus;
}, handleSelectionChange: function(t2) {
this.workStandSelection = t2, this.$emit("updataWorkStandSel", t2);
}, standLocationQueryChange: function() {
this.$emit("standSearchQuery", this.query.locationUuidList);
}, viewPhotos: function(t2, e2) {
var a2 = this, n2 = { projectUuid: this.$store.state.community_uuid, standUuid: t2.standUuid, type: e2 };
Object(I["qb"])(n2).then((function(t3) {
if (0 === t3.code) {
var e3 = t3.data.records;
e3.length && (a2.pictureUrl = e3.map((function(t4, e4) {
return { src: t4.imageUrl, checked: false };
})));
}
})), this.pictureDialog = true;
}, getviewImageUrl: function(t2) {
if (this.pictureUrl = [], t2.standImageUrl) {
var e2 = (t2.standImageUrl.indexOf(";") > 0 ? t2.standImageUrl.split(";") : t2.standImageUrl.split(",")) || [];
this.pictureUrl = e2.map((function(t3, e3) {
return { src: t3 };
}));
} else this.pictureUrl = [];
this.pictureDialog = true;
}, viewPhoto: function(t2) {
this.getviewImageUrl(t2);
}, getImgUrr: function(t2) {
return t2 && t2.split(";") || [];
}, handleImg: function(t2) {
var e2 = this.examplesImageUrl.indexOf(t2.src);
if (-1 !== e2) return this.examplesImageUrl.splice(e2, 1), void (t2.checked = false);
this.examplesImageUrl.length >= 6 || (this.examplesImageUrl.push(t2.src), t2.checked = true);
}, replaceUrl: function(t2) {
return t2 && t2.split(";")[0] || "";
}, saveSelect: function() {
this.examplesImageUrl.length > 6 && "add" !== this.opentype ? this.$message({ message: "最多只能选择6张图片", type: "error" }) : 0 != this.examplesImageUrl.length || "add" === this.opentype ? (this.imageSave.examplesImageUrl = this.examplesImageUrl.join(";"), 2 === this.imageType ? this.saveStandImgGather(this.imageSave) : this.saveLocationImg(this.imageSave)) : this.$message({ message: "请选择图片", type: "error" });
}, saveLocationImg: function(t2) {
var e2 = this;
Object(c["d"])(t2).then((function(t3) {
0 == t3.code && (e2.$message({ message: "保存成功", type: "success" }), e2.pictureDialog = false);
})).catch((function() {
e2.pictureDialog = false;
})), this.pictureDialog = false;
}, saveStandImgGather: function(t2) {
var e2 = this;
Object(c["e"])(t2).then((function(t3) {
0 == t3.code && (e2.$message({ message: "保存成功", type: "success" }), e2.pictureDialog = false);
})).catch((function() {
e2.pictureDialog = false;
})), this.pictureDialog = false;
} } }, L = C, j = (a("d5de"), Object(f["a"])(L, k, T, false, null, "5546d154", null)), P = j.exports, x = a("d8b0"), O = function() {
var t2 = this, e2 = t2.$createElement, a2 = t2._self._c || e2;
return a2("div", [a2("el-table", { directives: [{ name: "loading", rawName: "v-loading", value: t2.listLoading, expression: "listLoading" }], ref: "standDataTable", attrs: { border: "", data: t2.tableData.slice((t2.formInfo.pageNumber - 1) * t2.formInfo.pageSize, t2.formInfo.pageNumber * t2.formInfo.pageSize), "row-key": "standUuid", "header-cell-style": { background: "#FAFAFA", color: "#606266" }, "tooltip-effect": "dark" } }, [t2.selection ? a2("el-table-column", { attrs: { "show-overflow-tooltip": "", "reserve-selection": true, type: "selection", width: "55" } }) : t2._e(), t2._v(" "), t2.pageIndex ? a2("el-table-column", { attrs: { label: "#", width: "50", align: "center", fixed: "" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
return [a2("span", [t2._v(t2._s(e3.$index + (t2.formInfo.pageNumber - 1) * t2.formInfo.pageSize + 1) + "\n ")])];
} }], null, false, 3443501601) }) : t2._e(), t2._v(" "), a2("el-table-column", { attrs: { "min-width": "120", align: "center", "show-overflow-tooltip": "", label: "作业对象类型" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
return [t2._v("\n " + t2._s(1 === e3.row.targetType ? "设备" : 2 === e3.row.targetType ? "空间" : 3 === e3.row.targetType ? "物品" : 4 === e3.row.targetType ? "房屋" : "未知") + "\n ")];
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { "min-width": "100", align: "center", label: "作业对象" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
return [a2("el-tooltip", { staticClass: "item", attrs: { effect: "dark", placement: "top-start" } }, [a2("div", { attrs: { slot: "content" }, slot: "content" }, [t2._v("\n 作业对象:" + t2._s(e3.row.targetName || "-")), a2("br"), t2._v("\n 参考频次:" + t2._s(e3.row.recomndFreqName || "-")), a2("br"), t2._v("\n 专业等级:" + t2._s(e3.row.professionalLevel || "-")), a2("br"), t2._v("\n 安全等级:" + t2._s(e3.row.dangerousLevel || "-")), a2("br"), t2._v("\n 温度:" + t2._s(e3.row.temperatureLevel || "-")), a2("br"), t2._v("\n 私密度:" + t2._s(e3.row.privacyLevel || "-") + "\n ")]), t2._v(" "), a2("div", { staticClass: "tdTooltipItem" }, [t2._v(t2._s(e3.row.targetName || "-"))])])];
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { "min-width": "120", align: "center", label: "作业事项" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
return [a2("el-tooltip", { staticClass: "item", attrs: { effect: "dark", placement: "top-start" } }, [a2("div", { attrs: { slot: "content" }, slot: "content" }, [t2._v("\n 作业事项:" + t2._s(e3.row.eventName || "-")), a2("br"), t2._v("\n 参考频次:" + t2._s(e3.row.recomndFreqName || "-")), a2("br"), t2._v("\n 专业等级:" + t2._s(e3.row.professionalLevel || "-")), a2("br"), t2._v("\n 安全等级:" + t2._s(e3.row.dangerousLevel || "-")), a2("br"), t2._v("\n 温度:" + t2._s(e3.row.temperatureLevel || "-")), a2("br"), t2._v("\n 私密度:" + t2._s(e3.row.privacyLevel || "-") + "\n ")]), t2._v(" "), a2("div", { staticClass: "tdTooltipItem" }, [t2._v(t2._s(e3.row.eventName || "-"))])])];
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "160", label: "作业标准" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
return [a2("el-tooltip", { staticClass: "item", attrs: { effect: "dark", placement: "top-start" } }, [a2("div", { attrs: { slot: "content" }, slot: "content" }, [t2._v("\n 作业标准:" + t2._s(e3.row.proStandard || "-")), a2("br"), t2._v("\n 参考频次:" + t2._s(e3.row.recomndFreqName || "-")), a2("br"), t2._v("\n 专业等级:" + t2._s(e3.row.professionalLevel || "-")), a2("br"), t2._v("\n 安全等级:" + t2._s(e3.row.dangerousLevel || "-")), a2("br"), t2._v("\n 温度:" + t2._s(e3.row.temperatureLevel || "-")), a2("br"), t2._v("\n 私密度:" + t2._s(e3.row.privacyLevel || "-") + "\n ")]), t2._v(" "), a2("div", { staticClass: "tdTooltipItem" }, [t2._v(t2._s(e3.row.proStandard || "-"))])])];
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "160", label: "检查标准", "show-overflow-tooltip": "" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
return [a2("el-tooltip", { staticClass: "item", attrs: { effect: "dark", placement: "top-start" } }, [a2("div", { attrs: { slot: "content" }, slot: "content" }, [t2._v("\n 检查标准:" + t2._s(e3.row.checkStandard || "-")), a2("br"), t2._v("\n 参考频次:" + t2._s(e3.row.recomndFreqName || "-")), a2("br"), t2._v("\n 专业等级:" + t2._s(e3.row.professionalLevel || "-")), a2("br"), t2._v("\n 安全等级:" + t2._s(e3.row.dangerousLevel || "-")), a2("br"), t2._v("\n 温度:" + t2._s(e3.row.temperatureLevel || "-")), a2("br"), t2._v("\n 私密度:" + t2._s(e3.row.privacyLevel || "-") + "\n ")]), t2._v(" "), a2("div", { staticClass: "tdTooltipItem" }, [t2._v("\n " + t2._s(e3.row.checkStandard || "-") + "\n ")])])];
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "100", label: "参考岗位", "show-overflow-tooltip": "" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
return [t2._v("\n " + t2._s(e3.row.recomndJobName || "-") + "\n ")];
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "100", "show-overflow-tooltip": "" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
return [a2("div", { staticClass: "quoteBtn" }, [a2("el-link", { attrs: { type: "primary", disabled: ("add" === t2.opentype || "edit" === t2.opentype || "copy" === t2.opentype) && (1 === t2.attrData.planStatus || 3 === t2.attrData.planStatus) }, on: { click: function(a3) {
return t2.quoteImg(e3, e3.row);
} } }, [t2._v(t2._s("add" === t2.opentype || "edit" === t2.opentype || "copy" === t2.opentype ? "引用" : "查看"))]), t2._v("" + t2._s(t2.culCurrentImg(e3.row.locationExamplesImageRespDTOS, e3.row)) + " 张)\n ")], 1)];
} }]) }, [a2("template", { slot: "header" }, [t2._v("\n 示例图片\n "), a2("el-tooltip", { staticClass: "item", attrs: { effect: "dark", content: "示例图片只能引用1张", placement: "top-start" } }, [a2("i", { staticClass: "el-icon-question" })])], 1)], 2), t2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "80" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
return [a2("el-switch", { attrs: { disabled: "add" !== t2.opentype && "edit" !== t2.opentype && "copy" !== t2.opentype || (1 === t2.attrData.planStatus || 3 === t2.attrData.planStatus || 2 === t2.autoPass), "active-color": "#13ce66", "active-value": 1, "inactive-value": 2 }, model: { value: e3.row.autoPass, callback: function(a3) {
t2.$set(e3.row, "autoPass", a3);
}, expression: "scope.row.autoPass" } })];
} }]) }, [a2("template", { slot: "header" }, [t2._v("\n 合格\n ")])], 2), t2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "80" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
return [a2("el-switch", { attrs: { disabled: "add" !== t2.opentype && "edit" !== t2.opentype && "copy" !== t2.opentype || (1 === t2.attrData.planStatus || 3 === t2.attrData.planStatus || 2 === t2.autoPass), "active-color": "#13ce66", "active-value": 1, "inactive-value": 2 }, model: { value: e3.row.isShowCapture, callback: function(a3) {
t2.$set(e3.row, "isShowCapture", a3);
}, expression: "scope.row.isShowCapture" } })];
} }]) }, [a2("template", { slot: "header" }, [t2._v("\n 拍照\n "), a2("el-tooltip", { staticClass: "item", attrs: { effect: "dark", content: t2.tooltipText, placement: "top-start" } }, [a2("i", { staticClass: "el-icon-question" })])], 1)], 2), t2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "80" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
return [a2("el-switch", { attrs: { disabled: "add" !== t2.opentype && "edit" !== t2.opentype && "copy" !== t2.opentype || (1 === t2.attrData.planStatus || 3 === t2.attrData.planStatus), "active-color": "#13ce66", "active-value": 1, "inactive-value": 2 }, model: { value: e3.row.photoAlbum, callback: function(a3) {
t2.$set(e3.row, "photoAlbum", a3);
}, expression: "scope.row.photoAlbum" } })];
} }]) }, [a2("template", { slot: "header" }, [t2._v("\n 相册\n "), a2("el-tooltip", { staticClass: "item", attrs: { effect: "dark", content: t2.tooltipText2, placement: "top-start" } }, [a2("i", { staticClass: "el-icon-question" })])], 1)], 2), t2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "80" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
return [a2("el-switch", { attrs: { disabled: "add" !== t2.opentype && "edit" !== t2.opentype && "copy" !== t2.opentype || (1 === t2.attrData.planStatus || 3 === t2.attrData.planStatus), "active-color": "#13ce66", "active-value": 1, "inactive-value": 2 }, model: { value: e3.row.isAiCheck, callback: function(a3) {
t2.$set(e3.row, "isAiCheck", a3);
}, expression: "scope.row.isAiCheck" } })];
} }]) }, [a2("template", { slot: "header" }, [t2._v(" AI验收 ")])], 2), t2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "90", label: "重要等级" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
return [a2("span", [t2._v(t2._s(e3.row.importantLevel || "-"))])];
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "90", label: "安全等级" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
return [a2("span", [t2._v(t2._s(e3.row.dangerousLevel || "-"))])];
} }]) }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "100" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
return [a2("span", [t2._v(t2._s(e3.row.spuQuantity || 0))]), t2._v(" "), "add" !== t2.opentype && "edit" !== t2.opentype && "copy" !== t2.opentype || 1 === t2.attrData.planStatus || 3 === t2.attrData.planStatus ? t2._e() : a2("i", { staticClass: "el-icon-edit editIcon", on: { click: function(a3) {
return t2.editClick(e3.row, e3.$index);
} } })];
} }]) }, [a2("template", { slot: "header" }, [t2._v("\n 定量\n "), a2("el-tooltip", { staticClass: "item", attrs: { effect: "dark", content: "数量,例如面积、窗户数量等", placement: "top-start" } }, [a2("i", { staticClass: "el-icon-question" })])], 1)], 2), t2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "100" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
return [a2("span", [t2._v(t2._s(e3.row.spuSpend || 0))]), t2._v(" "), "add" !== t2.opentype && "edit" !== t2.opentype && "copy" !== t2.opentype || 1 === t2.attrData.planStatus || 3 === t2.attrData.planStatus ? t2._e() : a2("i", { staticClass: "el-icon-edit editIcon", on: { click: function(a3) {
return t2.editClick(e3.row, e3.$index);
} } })];
} }]) }, [a2("template", { slot: "header" }, [t2._v("\n 定价\n "), a2("el-tooltip", { staticClass: "item", attrs: { effect: "dark", content: "工时单价", placement: "top-start" } }, [a2("i", { staticClass: "el-icon-question" })])], 1)], 2), t2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "100" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
return [a2("span", [t2._v(t2._s(e3.row.spuLaborResource || 0))])];
} }]) }, [a2("template", { slot: "header" }, [t2._v("\n 价值\n "), a2("el-tooltip", { staticClass: "item", attrs: { effect: "dark", content: "人工成本SPU-R1 = SPU-Q*SPU-T*SPU-S/3600", placement: "top-start" } }, [a2("i", { staticClass: "el-icon-question" })])], 1)], 2), t2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "100" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
return [a2("span", [t2._v(t2._s(e3.row.updateUserName || "-"))])];
} }]) }, [a2("template", { slot: "header" }, [t2._v(" 修改人 ")])], 2), t2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "160" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
return [a2("span", [t2._v(t2._s(e3.row.updateDate || "-"))])];
} }]) }, [a2("template", { slot: "header" }, [t2._v(" 修改时间 ")])], 2), t2._v(" "), "add" === t2.opentype || "edit" === t2.opentype || "copy" === t2.opentype ? a2("el-table-column", { attrs: { label: "操作", align: "center", "min-width": "80", fixed: "right" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
return [a2("el-button", { attrs: { type: "text", disabled: "add" !== t2.opentype && "edit" !== t2.opentype && "copy" !== t2.opentype || (1 === t2.attrData.planStatus || 3 === t2.attrData.planStatus) }, on: { click: function(a3) {
return t2.deleteItemStand(e3);
} } }, [t2._v("删除")])];
} }], null, false, 829164705) }) : t2._e()], 1), t2._v(" "), t2.page ? a2("div", { staticClass: "paginations" }, [a2("el-pagination", { attrs: { background: "", "current-page": t2.formInfo.pageNumber, "page-sizes": [10, 30, 50, 100, 200], "page-size": t2.formInfo.pageSize, layout: "total, sizes, prev, pager, next, jumper", total: t2.tableData.length }, on: { "update:currentPage": function(e3) {
return t2.$set(t2.formInfo, "pageNumber", e3);
}, "update:current-page": function(e3) {
return t2.$set(t2.formInfo, "pageNumber", e3);
}, "size-change": t2.handleSizeChange, "current-change": t2.handleCurrentChange } })], 1) : t2._e(), t2._v(" "), a2("el-dialog", { attrs: { title: "编辑SPU数据", "close-on-click-modal": false, "close-on-press-escape": false, visible: t2.editVisible, width: "30%", "before-close": t2.eidtClose }, on: { "update:visible": function(e3) {
t2.editVisible = e3;
} } }, [a2("el-form", { ref: "editForm", attrs: { model: t2.editForm, rules: t2.editRule, "label-width": "100px" } }, [a2("el-form-item", { attrs: { label: "定量", prop: "spuQuantity" } }, [a2("el-input-number", { attrs: { "controls-position": "right", precision: 0, step: 1, min: 1, max: 99999999 }, on: { change: t2.inputChange }, model: { value: t2.editForm.spuQuantity, callback: function(e3) {
t2.$set(t2.editForm, "spuQuantity", e3);
}, expression: "editForm.spuQuantity" } })], 1), t2._v(" "), a2("el-form-item", { attrs: { label: "SPU-T", prop: "spuTime" } }, [a2("el-input-number", { attrs: { "controls-position": "right", disabled: "" }, model: { value: t2.editForm.spuTime, callback: function(e3) {
t2.$set(t2.editForm, "spuTime", e3);
}, expression: "editForm.spuTime" } })], 1), t2._v(" "), a2("el-form-item", { attrs: { label: "定价", prop: "spuSpend" } }, [a2("el-input-number", { attrs: { "controls-position": "right", precision: 2, step: 1, min: 0.01, max: 99999999 }, on: { change: t2.inputChange }, model: { value: t2.editForm.spuSpend, callback: function(e3) {
t2.$set(t2.editForm, "spuSpend", e3);
}, expression: "editForm.spuSpend" } })], 1), t2._v(" "), a2("el-form-item", { attrs: { label: "价值", prop: "spuLaborResource" } }, [a2("el-input-number", { attrs: { "controls-position": "right", disabled: "" }, model: { value: t2.editForm.spuLaborResource, callback: function(e3) {
t2.$set(t2.editForm, "spuLaborResource", e3);
}, expression: "editForm.spuLaborResource" } }), t2._v(" "), a2("div", [a2("i", { staticClass: "el-icon-info" }), t2._v(" "), a2("span", { staticClass: "spuR1Tip" }, [t2._v("人工成本SPU-R1 = SPU-Q*SPU-T*SPU-S/3600")])])], 1), t2._v(" "), a2("el-form-item", [a2("el-button", { attrs: { type: "primary" }, on: { click: t2.confirmClick } }, [t2._v("确定")]), t2._v(" "), a2("el-button", { on: { click: t2.eidtClose } }, [t2._v("取消")])], 1)], 1)], 1)], 1);
}, $ = [], q = a("00df"), N = q["a"], R = (a("5c7c"), Object(f["a"])(N, O, $, false, null, null, null)), E = R.exports, A = a("fc4e"), F = a("5f43"), M = a("7274");
function B(t2) {
return K(t2) || W(t2) || Q(t2) || z();
}
function z() {
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
function Q(t2, e2) {
if (t2) {
if ("string" == typeof t2) return V(t2, e2);
var a2 = {}.toString.call(t2).slice(8, -1);
return "Object" === a2 && t2.constructor && (a2 = t2.constructor.name), "Map" === a2 || "Set" === a2 ? Array.from(t2) : "Arguments" === a2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a2) ? V(t2, e2) : void 0;
}
}
function W(t2) {
if ("undefined" != typeof Symbol && null != t2[Symbol.iterator] || null != t2["@@iterator"]) return Array.from(t2);
}
function K(t2) {
if (Array.isArray(t2)) return V(t2);
}
function V(t2, e2) {
(null == e2 || e2 > t2.length) && (e2 = t2.length);
for (var a2 = 0, n2 = Array(e2); a2 < e2; a2++) n2[a2] = t2[a2];
return n2;
}
var G = { name: "planSetting", components: { SubTitle: r["a"], workPosition: g, workTarget: w, workStand: P, TaskInfomation: x["a"], editStandTable: E }, props: ["opentype", "attrData", "taskData", "settingData", "addType"], data: function() {
return { title: "作业信息", activeName: "workStand", projectUuid: "", listTable: [], workPositionSelect: [], workTargetSelect: [], workStandSelect: [], isShow: true, planDeviceActiveName: "", pictureDialog: false, pictureUrl: [], locationImageList: [], locationUuid: "", imageType: null, imageUrl: "", examplesImageUrl: [], imageSave: {}, locationEgImgDialog: false, locationEgImg: [], setImgStand: null, standHasQuery: [], selectStand: [], autoPass: null };
}, computed: { unreferencedImages: function() {
return this.locationEgImg.filter((function(t2) {
return 0 === t2.isPtuImage;
}));
}, referencedImages: function() {
return this.locationEgImg.filter((function(t2) {
return 0 !== t2.isPtuImage;
}));
}, allExampleImagesPreviewList: function() {
return this.locationEgImg.map((function(t2) {
return t2.examplesImageUrl;
})).filter((function(t2) {
return t2;
}));
} }, watch: { listTable: { handler: function(t2, e2) {
this.getSelectedStand();
}, deep: true }, opentype: { handler: function(t2, e2) {
var a2 = this;
"view" !== this.opentype && "edit" !== this.opentype && "copy" !== this.opentype || setTimeout((function() {
a2.reviewPlanStand();
}), 1e3);
}, deep: true }, attrData: { handler: function(t2, e2) {
if ("add" === this.opentype && "ptuPlan" == this.addType) {
var a2 = this.attrData.planStandardDeviceList, n2 = JSON.parse(JSON.stringify(a2));
n2.length > 0 && n2.map((function(t3) {
return t3.planDeviceList.map((function(t4) {
t4.standardRespDTOList.map((function(t5) {
return Object.assign(t5, { examplesImageUrl: "", autoPass: t5.autoPass ? t5.autoPass : 1 });
}));
})), Object.assign(t3, { isShow: true });
})), this.listTable = n2, this.$nextTick((function() {
this.reviewLocationTargetAndStand(), console.log("tmpList", n2);
}));
}
}, deep: true } }, mounted: function() {
this.projectUuid = this.$store.state.community_uuid, this.getSet();
}, methods: { getSet: function() {
var t2 = this;
Object(M["l"])({ projectUuid: this.$store.state.community_uuid, projectName: this.$store.state.community_name, pageSize: -1, pageNumber: -1 }).then((function(e2) {
0 == e2.code && e2.data.records.length && "add" == t2.opentype && (t2.autoPass = e2.data.records[0].autoPass);
}));
}, handleClick: function(t2) {
var e2 = t2.paneName;
this.activeName = e2;
}, reviewPlanStand: function() {
var t2 = this, e2 = { planUuid: this.attrData.planUuid, type: "group" == this.addType || "ptuPlan" == this.addType ? "ptu" : "", taskUuid: null };
Object(c["t"])(e2).then((function(e3) {
if (0 === e3.code) {
var a2 = e3.data;
a2.length > 0 ? (t2.listTable = a2, t2.listTable.map((function(t3) {
return t3.isShow = true;
})), t2.reviewLocationTargetAndStand()) : t2.listTable = [];
}
}));
}, reviewLocationTargetAndStand: function() {
var t2 = this, e2 = [];
this.listTable.map((function(t3) {
var a2 = t3.planDeviceList;
a2.map((function(t4) {
e2 = 0 === e2.length ? B(t4.standardRespDTOList) : e2.concat(t4.standardRespDTOList);
}));
})), console.log("reviewSelectStand", e2), e2.length > 0 ? (this.$nextTick((function() {
t2.$refs.workStand ? t2.$refs.workStand.reviewStandSelect(e2) : console.log("此时为查看状态不回显"), t2.$refs.five && t2.$refs.five.reviewStandSelect(e2);
})), this.$forceUpdate()) : console.log("未查询到相关标准不回显");
}, submitAdd: function() {
if (0 === this.workStandSelect.length) return this.$message({ message: "请先选择作业标准", type: "error" }), false;
var t2 = {};
"ptuPlan" === this.addType ? (t2 = { projectUuid: this.projectUuid, locationUuidList: this.workPositionSelect.length > 0 ? this.standHasQuery.length > 0 ? this.standHasQuery : this.getArByKey(this.workPositionSelect, "locationUuid", 0) : [], targetUuidList: this.workTargetSelect.length > 0 ? this.getArByKey(this.workTargetSelect, "targetUuid", 0) : [], standUuidList: this.workStandSelect.length > 0 ? this.getArByKey(this.workStandSelect, "standUuid", 0) : [] }, this.$route.query.ids && (t2.standardGroupIds = this.attrData.ptuIds), this.$route.query.dangerSourceIds && (t2.dangerSourceIds = this.attrData.ptuIds)) : t2 = { projectUuid: this.projectUuid, locationUuidList: this.workPositionSelect.length > 0 ? this.standHasQuery.length > 0 ? this.standHasQuery : this.getArByKey(this.workPositionSelect, "locationUuid", 0) : [], targetUuidList: this.workTargetSelect.length > 0 ? this.getArByKey(this.workTargetSelect, "targetUuid", 0) : [], standUuidList: this.workStandSelect.length > 0 ? this.getArByKey(this.workStandSelect, "standUuid", 0) : [] }, console.log(t2, "params", this.addType, "this.addType"), "ptuPlan" == this.addType ? this.$route.query.ids ? this.queryPlanStandardV2(t2, 1) : this.$route.query.dangerSourceIds && this.queryPlanStandardV3(t2, 1) : this.queryPlanStandard(t2);
}, queryPlanStandard: function(t2) {
var e2 = this;
Object(u["f"])(t2).then((function(t3) {
if (0 === t3.code && t3.data) {
var a2 = t3.data;
a2.length > 0 ? a2.forEach((function(t4) {
t4.isShow = true, t4.planDeviceList.forEach((function(t5) {
t5.standardRespDTOList.forEach((function(t6) {
t6.examplesImageUrl = "", 2 === e2.autoPass ? (t6.autoPass = 1, t6.isShowCapture = 1) : t6.autoPass = t6.autoPass ? t6.autoPass : 1;
}));
}));
})) : e2.$message({ message: "未查询到任何相关信息,请重新选择标准", type: "error" }), e2.listTable = a2, e2.updataSettingData();
} else e2.listTable = [];
}));
}, queryPlanStandardV2: function(t2, e2) {
var a2 = this;
Object(A["h"])(t2).then((function(t3) {
if (0 === t3.code && t3.data.planStandardDeviceList) {
var n2 = t3.data.planStandardDeviceList;
n2.length > 0 ? n2.map((function(t4) {
return t4.planDeviceList.map((function(t5) {
t5.standardRespDTOList.map((function(t6) {
return Object.assign(t6, { examplesImageUrl: "", autoPass: t6.autoPass ? t6.autoPass : 1 });
}));
})), Object.assign(t4, { isShow: true });
})) : a2.$message({ message: "未查询到任何相关信息,请重新选择标准", type: "error" }), 1 == e2 && (a2.listTable = n2), a2.updataSettingData();
} else a2.listTable = [];
}));
}, queryPlanStandardV3: function(t2, e2) {
var a2 = this;
Object(A["i"])(t2).then((function(t3) {
if (0 === t3.code && t3.data.planStandardDeviceList) {
var n2 = t3.data.planStandardDeviceList;
n2.length > 0 ? n2.map((function(t4) {
return t4.planDeviceList.map((function(t5) {
t5.standardRespDTOList.map((function(t6) {
return Object.assign(t6, { examplesImageUrl: "", autoPass: t6.autoPass ? t6.autoPass : 1 });
}));
})), Object.assign(t4, { isShow: true });
})) : a2.$message({ message: "未查询到任何相关信息,请重新选择标准", type: "error" }), 1 == e2 && (a2.listTable = n2), a2.updataSettingData();
} else a2.listTable = [];
}));
}, updataSettingData: function() {
var t2 = this.listTable, e2 = [];
t2.map((function(t3) {
e2.push({ locationUuid: t3.locationUuid, needScanCode: t3.needScanCode || 2 });
}));
var a2 = Object.assign({}, { equipmentData: t2, taskInspectionsStandardAddReqDTO: this.onSiteInspectionList, planType: 1 });
this.$emit("getSettingData", { settingData: a2, planLocationInfoList: e2 });
}, getPlanSettingData: function() {
var t2 = this.listTable, e2 = this.$refs.taskInfomationRef.getTaskInfomation();
if (e2) {
var a2 = this.getSelectedStand();
if (0 === a2.length) return this.$message({ message: "请在作业信息中选择作业标准,并点击“确认添加”,以完成计划标准添加", type: "error" }), false;
var n2 = [];
t2.map((function(t3) {
n2.push({ locationUuid: t3.locationUuid, needScanCode: t3.needScanCode || 2 });
}));
var i2 = Object.assign({}, e2, { planLocationInfoList: n2, taskInspectionsStandardAddReqDTO: a2, planType: 1 });
return i2;
}
}, getSelectedStand: function() {
var t2 = [];
if (this.listTable.map((function(e3) {
var a2 = e3.planDeviceList;
a2.map((function(e4) {
t2 = 0 === t2.length ? B(e4.standardRespDTOList) : t2.concat(e4.standardRespDTOList);
}));
})), this.selectStand = t2, this.$refs.taskInfomationRef.getSelectStand(), "ptuPlan" == this.addType) {
var e2 = { projectUuid: this.projectUuid, locationUuidList: this.workPositionSelect.length > 0 ? this.standHasQuery.length > 0 ? this.standHasQuery : this.getArByKey(this.workPositionSelect, "locationUuid", 0) : [], targetUuidList: this.workTargetSelect.length > 0 ? this.getArByKey(this.workTargetSelect, "targetUuid", 0) : [], standUuidList: this.workStandSelect.length > 0 ? this.getArByKey(this.workStandSelect, "standUuid", 0) : [] };
this.$route.query.ids && (e2.standardGroupIds = this.attrData.ptuIds, this.queryPlanStandardV2(e2, 2)), this.$route.query.dangerSourceIds && (e2.dangerSourceIds = this.attrData.ptuIds, this.queryPlanStandardV3(e2, 2));
}
return t2;
}, updataWorkPositionSel: function(t2) {
this.workPositionSelect = t2;
}, updataworkTargetSel: function(t2) {
this.workTargetSelect = t2;
}, updataWorkStandSel: function(t2) {
this.workStandSelect = t2;
}, setStandSearchQuery: function(t2) {
this.standHasQuery = t2;
}, handleSlow: function() {
this.isShow = !this.isShow;
}, handleSlowList: function(t2) {
var e2 = this, a2 = !this.listTable[t2].isShow;
this.$nextTick((function() {
e2.$set(e2.listTable[t2], "isShow", a2);
})), this.$forceUpdate();
}, deleteLocation: function(t2) {
var e2 = this, a2 = this.listTable;
a2.splice(t2, 1), this.$nextTick((function() {
e2.listTable = a2;
})), this.$forceUpdate(), this.updataSettingData();
}, closeTabs: function(t2, e2) {
this.deleteDevice(t2, e2);
}, deleteDevice: function(t2, e2) {
var a2 = this;
console.log("index", t2), console.log("targetName", e2);
var n2 = this.listTable, i2 = this.listTable[t2].planDeviceList;
i2.splice(i2.findIndex((function(t3) {
return t3.targetUuid === e2;
})), 1), i2.length > 0 ? this.$nextTick((function() {
a2.$set(a2.listTable[parIndex], "planDeviceList", i2);
})) : (n2.splice(t2, 1), this.$nextTick((function() {
a2.listTable = n2;
}))), this.$forceUpdate(), this.updataSettingData();
}, deleteItemStand: function(t2, e2, a2) {
var n2 = this;
console.log("parIndex", t2), console.log("thisIndex", e2), console.log("deleteItemStand", a2);
var i2 = a2.$index, r2 = this.listTable, o2 = this.listTable[t2].planDeviceList, s2 = this.listTable[t2].planDeviceList[e2].standardRespDTOList;
s2.splice(i2, 1), s2.length > 0 ? this.$nextTick((function() {
n2.$set(n2.listTable[t2].planDeviceList[e2], "standardRespDTOList", s2);
})) : (o2.splice(e2, 1), o2.length > 0 ? this.$nextTick((function() {
n2.$set(n2.listTable[t2], "planDeviceList", o2);
})) : (r2.splice(t2, 1), this.$nextTick((function() {
n2.listTable = r2;
})))), this.$forceUpdate(), this.updataSettingData();
}, getImgUrr: function(t2) {
return t2 && t2.split(";") || [];
}, replaceUrl: function(t2) {
return t2 && t2.split(";")[0] || "";
}, saveSelect: function() {
this.examplesImageUrl.length > 6 && "add" !== this.opentype ? this.$message({ message: "最多只能选择6张图片", type: "error" }) : 0 != this.examplesImageUrl.length || "add" === this.opentype ? (this.imageSave.examplesImageUrl = this.examplesImageUrl.join(";"), 2 === this.imageType ? this.saveStandImgGather(this.imageSave) : this.saveLocationImg(this.imageSave)) : this.$message({ message: "请选择图片", type: "error" });
}, saveLocationImg: function(t2) {
var e2 = this;
Object(c["d"])(t2).then((function(t3) {
0 == t3.code && (e2.$message({ message: "保存成功", type: "success" }), e2.pictureDialog = false);
})).catch((function() {
e2.pictureDialog = false;
})), this.pictureDialog = false;
}, saveStandImgGather: function(t2) {
var e2 = this;
Object(c["e"])(t2).then((function(t3) {
0 == t3.code && (e2.$message({ message: "保存成功", type: "success" }), e2.pictureDialog = false);
})).catch((function() {
e2.pictureDialog = false;
})), this.pictureDialog = false;
}, seeClick: function(t2) {
this.$router.replace({ path: "/workOrderManagement/temporaryManagement/viewWorkOrderDetails", query: { orderNo: t2.workOrderNo } });
}, getviewImageUrl: function(t2) {
if (this.pictureUrl = [], "task" === this.opentype) {
if (t2.imageUrl) {
var e2 = t2.imageUrl.split(";") || [];
this.pictureUrl = e2.map((function(t3, e3) {
return { src: t3 };
}));
} else this.pictureUrl = [];
this.pictureDialog = true;
}
}, viewPhoto: function(t2) {
this.getviewImageUrl(t2);
}, viewLocation: function(t2) {
var e2 = this;
this.locationUuid = "", this.examplesImageUrl = [], this.imageSave = {}, this.imageType = 1, this.locationUuid = t2.locationUuid;
var a2 = { planUuid: this.attrData.planUuid, standardUuid: t2.standardUuid, locationUuid: t2.locationUuid, projectUuid: this.projectUuid };
this.imageSave = a2, Object(c["K"])(a2).then((function(t3) {
if (0 === t3.code) {
var a3 = t3.data.imageUrlList;
t3.data.examplesImageUrl && (e2.imageUrl = t3.data.examplesImageUrl), a3.length && (e2.pictureUrl = a3.map((function(t4, e3) {
return { src: t4, checked: false };
})));
}
})), this.pictureDialog = true;
}, queryCurStandLocationImg: function(t2, e2, a2) {
this.setImgStand = { topIndex: t2, parIndex: e2, val: a2 }, this.locationEgImg = a2.locationExamplesImageRespDTOS, this.locationEgImgDialog = true;
}, setCurrentImgToEgImg: function(t2, e2) {
var a2 = this;
"view" !== this.opentype ? (this.locationEgImg.forEach((function(t3, n2) {
t3.standardUuid = a2.setImgStand.val.standardUuid, n2 == e2 ? a2.$set(a2.locationEgImg[e2], "selected", t3.selected = 2) : a2.$set(a2.locationEgImg[n2], "selected", t3.selected = 1);
})), Object(F["D"])({ standardUuid: this.setImgStand.val.standardUuid, imageRespDTOList: this.locationEgImg }).then((function(t3) {
0 == t3.code && a2.$message.success("设置示例图片成功");
})), this.$forceUpdate()) : this.$message({ message: "查看模式下不允许设置示例图片", type: "warning" });
}, getOriginalIndex: function(t2) {
return this.locationEgImg.findIndex((function(e2) {
return e2.examplesImageUrl === t2.examplesImageUrl;
}));
}, addToReferencedImages: function(t2) {
var e2 = this;
if ("view" !== this.opentype) if (0 === t2.isPtuImage) {
var a2 = { standardUuid: this.setImgStand.val.standardUuid, isPtuImage: 1, imageRespDTOList: [{ id: t2.id, locationUuid: t2.locationUuid, examplesImageUrl: t2.examplesImageUrl, selected: t2.selected, imageDataList: t2.imageDataList, standardUuid: t2.standardUuid, planUuid: t2.planUuid, topis: t2.topis, spaceUuid: t2.spaceUuid }] };
Object(A["j"])(a2).then((function(a3) {
if (0 === a3.code) {
e2.$message.success("添加到引用示例图片库成功");
var n2 = e2.getOriginalIndex(t2);
-1 !== n2 && e2.$set(e2.locationEgImg[n2], "isPtuImage", 1), e2.$forceUpdate();
} else e2.$message.error(a3.message || "操作失败");
})).catch((function(t3) {
e2.$message.error("操作失败"), console.error(t3);
}));
} else this.$message({ message: "该图片已经是引用图片", type: "warning" });
else this.$message({ message: "查看模式下不允许添加到引用示例图片库", type: "warning" });
}, closelocationEgImgDialog: function() {
this.locationEgImg = [], this.locationEgImgDialog = false;
}, queryLocationImage: function(t2) {
var e2 = this;
console.log(t2, "val+++6+6+"), this.pictureUrl = [], this.examplesImageUrl = [], Object(F["z"])({ locationUuid: t2.locationUuid, standardUuid: t2.standardUuid }).then((function(a2) {
0 === a2.code && a2.data.length > 0 && a2.data.length && (e2.pictureUrl = a2.data.map((function(e3, a3) {
return { locationUuid: t2.locationUuid, src: e3.examplesImageUrl, checked: false };
})));
})), this.pictureDialog = true;
}, viewPhotos: function(t2) {
var e2 = this;
this.examplesImageUrl = [], this.pictureUrl = [], this.imageSave = {}, this.imageType = 2;
this.dataObj;
var a2 = { planUuid: this.attrData.planUuid, standardUuid: t2.standardUuid, projectUuid: this.projectUuid, locationUuid: t2.locationId };
this.imageSave = a2, Object(c["L"])(a2).then((function(t3) {
if (0 === t3.code) {
var a3 = t3.data.imageUrlList;
a3.length && (e2.pictureUrl = a3.map((function(t4, e3) {
return { src: t4, checked: false };
})));
}
})), this.pictureDialog = true;
}, handleImg: function(t2) {
var e2 = this.examplesImageUrl.indexOf(t2.src);
if (-1 !== e2) return this.examplesImageUrl.splice(e2, 1), void (t2.checked = false);
this.examplesImageUrl.length >= 6 || (this.examplesImageUrl.push(t2.src), t2.checked = true);
}, handleEdit: function(t2) {
this.editObj = t2, null != this.editObj.standImageUrl && "" != this.editObj.standImageUrl ? (this.fileList = [], this.editObj.standImageUrl.indexOf(",") > 0 ? this.fileList = this.editObj.standImageUrl.split(",").map((function(t3) {
return { url: t3 };
})) : this.fileList.push({ url: this.editObj.standImageUrl })) : this.fileList = [], this.inspectionItemDialog = true;
}, getArByKey: function(t2, e2, a2, n2) {
if (0 === a2) return t2.map((function(t3) {
return t3[e2];
}));
var i2 = void 0 === n2 ? "," : n2;
return t2.map((function(t3) {
return t3[e2];
})).join(i2);
} } }, H = G, J = (a("d009"), a("6ff6"), Object(f["a"])(H, n, i, false, null, "46f796c7", null));
e["a"] = J.exports;
}, "5be0": function(t, e, a) {
}, "5c7c": function(t, e, a) {
"use strict";
a("f2a3");
}, "6ff6": function(t, e, a) {
"use strict";
a("36a3");
}, 7274: function(t, e, a) {
"use strict";
a.d(e, "f", (function() {
return i;
})), a.d(e, "t", (function() {
return r;
})), a.d(e, "x", (function() {
return o;
})), a.d(e, "g", (function() {
return s;
})), a.d(e, "B", (function() {
return l;
})), a.d(e, "s", (function() {
return c;
})), a.d(e, "c", (function() {
return u;
})), a.d(e, "l", (function() {
return p;
})), a.d(e, "z", (function() {
return d;
})), a.d(e, "A", (function() {
return m;
})), a.d(e, "n", (function() {
return f;
})), a.d(e, "m", (function() {
return h;
})), a.d(e, "j", (function() {
return g;
})), a.d(e, "o", (function() {
return v;
})), a.d(e, "h", (function() {
return y;
})), a.d(e, "i", (function() {
return b;
})), a.d(e, "k", (function() {
return S;
})), a.d(e, "p", (function() {
return _;
})), a.d(e, "y", (function() {
return w;
})), a.d(e, "r", (function() {
return k;
})), a.d(e, "w", (function() {
return T;
})), a.d(e, "a", (function() {
return I;
})), a.d(e, "b", (function() {
return D;
})), a.d(e, "e", (function() {
return U;
})), a.d(e, "d", (function() {
return C;
})), a.d(e, "v", (function() {
return L;
})), a.d(e, "q", (function() {
return j;
})), a.d(e, "u", (function() {
return P;
}));
var n = a("b775");
function i(t2) {
return Object(n["a"])({ url: "/appproject/ProjectConfig/findByUuid", method: "post", data: t2 });
}
function r(t2) {
return Object(n["a"])({ url: "/appproject/ProjectConfig/updateByProjectUuid", method: "post", data: t2 });
}
function o(t2) {
return Object(n["a"])({ url: "/appproject/ProjectConfig/scheduled/push/date", method: "post", data: t2 });
}
function s(t2) {
return Object(n["a"])({ url: "/appproject/OrderInfo/findLiaisonByProjectUuids", method: "post", data: t2 });
}
function l(t2) {
return Object(n["a"])({ url: "/appproject/ProjectInit/getVisitConfig", method: "post", data: t2 });
}
function c(t2) {
return Object(n["a"])({ url: "/appproject/ProjectInit/updateBatchVisitConfig", method: "post", data: t2 });
}
function u(t2) {
return Object(n["a"])({ url: "/appproject/QualityControls/choose", method: "post", data: t2 });
}
function p(t2) {
return Object(n["a"])({ url: "/appproject/QualityControls/pageList", method: "post", data: t2 });
}
function d(t2) {
return Object(n["a"])({ url: "/appproject/ChargeReceivable/urge/listFee", method: "post", data: t2 });
}
function m(t2) {
return Object(n["a"])({ url: "/appproject/CustomerVisit/create/by/urge/model", method: "post", data: t2 });
}
function f(t2) {
return Object(n["a"])({ url: "/appproject/SalaryConfig/findByProjectUuid", method: "post", data: t2 });
}
function h(t2) {
return Object(n["a"])({ url: "/appproject/SalaryConfig/edit", method: "post", data: t2 });
}
function g(t2) {
return Object(n["a"])({ url: "/appproject/MemberSalaryConfig/pageList", method: "post", data: t2 });
}
function v(t2) {
return Object(n["a"])({ url: "/appproject/MemberSalaryConfig/salaryItemPageList", method: "post", data: t2 });
}
function y(t2) {
return Object(n["a"])({ url: "/appproject/MemberSalaryConfig/create", method: "post", data: t2 });
}
function b(t2) {
return Object(n["a"])({ url: "/appproject/MemberSalaryConfig/findById", method: "post", data: t2 });
}
function S(t2) {
return Object(n["a"])({ url: "/appproject/MemberSalaryConfig/update", method: "post", data: t2 });
}
function _(t2) {
return Object(n["a"])({ url: "/appproject/ProjectConfig/updateAccessControlByProjectUuid", method: "post", data: t2 });
}
function w(t2) {
return Object(n["a"])({ url: "/appproject/ProjectConfig/updateTargetValueByProjectUuid", method: "post", data: t2 });
}
function k(t2) {
return Object(n["a"])({ url: "/appproject/ProjectConfig/updateAutoResetDangerousByProjectUuid", method: "post", data: t2 });
}
function T(t2) {
return Object(n["a"])({ url: "/appproject/ProjectConfig/updateMeterReadingType", method: "post", data: t2 });
}
function I(t2) {
return Object(n["a"])({ url: "/appproject/ChargeOrderConfig/pageList", method: "post", data: t2 });
}
function D(t2) {
return Object(n["a"])({ url: "/appproject/ChargeOrderConfig/update", method: "post", data: t2 });
}
function U(t2) {
return Object(n["a"])({ url: "/appproject/ProjectReturnStatistics/debtAnalysisDetail", method: "post", data: t2 });
}
function C(t2) {
return Object(n["a"])({ url: "/appproject/ChargeOrder/createBatch", method: "post", data: t2 });
}
function L(t2) {
return Object(n["a"])({ url: "/appproject/ProjectConfig/updateEnergyParams", method: "post", data: t2 });
}
function j(t2) {
return Object(n["a"])({ url: "/appproject/ProjectConfig/updateAutoCharge", method: "post", data: t2 });
}
function P(t2) {
return Object(n["a"])({ url: "/appproject/ProjectConfig/updateChargeDeduction", method: "post", data: t2 });
}
}, b428: function(t, e, a) {
}, c4ed: 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: "app-container" }, [t2.list ? a2("div", { staticClass: "bgHeight" }, [a2("div", { ref: "box", staticClass: "searchStys transition_dom" }, [a2("el-form", { ref: "query", attrs: { model: t2.query } }, [a2("div", { ref: "form_box", staticClass: "searchBar" }, [a2("div", { staticClass: "searchInput" }, [a2("el-row", { attrs: { gutter: 20 } }, [a2("el-col", { attrs: { span: 4 } }, [a2("el-form-item", { attrs: { prop: "groupNo" } }, [a2("el-input", { attrs: { placeholder: "输入PTU组合编号", clearable: "" }, model: { value: t2.query.groupNo, callback: function(e3) {
t2.$set(t2.query, "groupNo", e3);
}, expression: "query.groupNo" } })], 1)], 1), t2._v(" "), a2("el-col", { attrs: { span: 4 } }, [a2("el-form-item", { attrs: { prop: "name" } }, [a2("el-input", { attrs: { placeholder: "输入PTU组合名称", clearable: "" }, model: { value: t2.query.name, callback: function(e3) {
t2.$set(t2.query, "name", e3);
}, expression: "query.name" } })], 1)], 1), t2._v(" "), a2("el-col", { attrs: { span: 4 } }, [a2("el-form-item", { attrs: { prop: "createUserName" } }, [a2("el-input", { attrs: { placeholder: "创建人", clearable: "" }, model: { value: t2.query.createUserName, callback: function(e3) {
t2.$set(t2.query, "createUserName", e3);
}, expression: "query.createUserName" } })], 1)], 1), t2._v(" "), a2("el-col", { attrs: { span: 4 } }, [a2("el-form-item", { attrs: { prop: "planModel" } }, [a2("el-select", { attrs: { clearable: "", placeholder: "请选择作业菜单分类" }, model: { value: t2.query.planModel, callback: function(e3) {
t2.$set(t2.query, "planModel", e3);
}, expression: "query.planModel" } }, t2._l(t2.planModeLArr, (function(t3) {
return a2("el-option", { key: t3.value, attrs: { label: t3.label, value: t3.value } });
})), 1)], 1)], 1), t2._v(" "), a2("el-col", { attrs: { span: 6 } }, [a2("el-form-item", { attrs: { prop: "deviceId" } }, [a2("el-cascader", { attrs: { clearable: "", placeholder: "请选择设备类型", options: t2.typeList, props: { label: "eventName", children: "children", value: "id", emitPath: false }, filterable: "" }, model: { value: t2.query.deviceId, callback: function(e3) {
t2.$set(t2.query, "deviceId", e3);
}, expression: "query.deviceId" } })], 1)], 1)], 1)], 1), t2._v(" "), a2("div", { staticClass: "searchBtn" }, [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("重置")]), t2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: t2.onSearch } }, [t2._v("查询")]), t2._v(" "), t2.is_show || "80px" == t2.height ? t2._e() : a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text" }, on: { click: t2.upAndDown } }, [t2._v("展开"), a2("i", { staticClass: "el-icon-arrow-down" })]), t2._v(" "), t2.is_show && "80px" != t2.height ? a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text" }, on: { click: t2.upAndDown } }, [t2._v("收起"), a2("i", { staticClass: "el-icon-arrow-up" })]) : t2._e()], 1)], 1)])])], 1), t2._v(" "), a2("el-card", { staticClass: "box-card", attrs: { shadow: "never" } }, [a2("div", { staticClass: "planLst", attrs: { slot: "header" }, slot: "header" }, [a2("span", { staticClass: "planTitle" }, [t2._v("PTU组合列表")]), t2._v(" "), a2("el-button", { attrs: { type: "primary", size: "small" }, on: { click: function(e3) {
t2.deviceVisible = true;
} } }, [t2._v("创建三保两修PTU组合")]), t2._v(" "), a2("el-button", { attrs: { type: "primary", size: "small" }, on: { click: t2.addPTU } }, [t2._v("创建PTU组合")]), t2._v(" "), a2("el-button", { attrs: { type: "primary", size: "small" }, on: { click: t2.ptuToPlan } }, [t2._v("生成服务订单计划")])], 1), t2._v(" "), a2("el-table", { directives: [{ name: "loading", rawName: "v-loading", value: t2.listLoading, expression: "listLoading" }], ref: "tableList", attrs: { align: "center", border: "", "header-cell-style": { background: "#FAFAFA", color: "#606266" }, data: t2.listTable, "tooltip-effect": "dark" }, on: { "selection-change": t2.selectChange } }, [a2("el-table-column", { attrs: { type: "selection", align: "center", width: "55", "show-overflow-tooltip": "" } }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "200", label: "PTU组合编号", "show-overflow-tooltip": "" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
return [t2._v("\n " + t2._s(e3.row.groupNo || "-") + "\n ")];
} }], null, false, 1888908750) }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "200", label: "PTU组合名称", "show-overflow-tooltip": "" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
return [t2._v("\n " + t2._s(e3.row.name || "-") + "\n ")];
} }], null, false, 2129237207) }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "200", label: "设备类型", "show-overflow-tooltip": "" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
return [t2._v("\n " + t2._s(e3.row.deviceName || "-") + "\n ")];
} }], null, false, 731224591) }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "120", label: "作业菜单分类", "show-overflow-tooltip": true }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
return [t2._v(t2._s(t2._f("getItemType")(e3.row.planModel, t2.planModeLArr)))];
} }], null, false, 246687602) }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "120", label: "创建人", "show-overflow-tooltip": "" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
return [t2._v("\n " + t2._s(e3.row.createUserName || "-") + "\n ")];
} }], null, false, 2021740866) }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "120", label: "创建时间", "show-overflow-tooltip": "" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
return [t2._v("\n " + t2._s(e3.row.createTime || "-") + "\n ")];
} }], null, false, 1372402849) }), t2._v(" "), a2("el-table-column", { attrs: { prop: "statueName", align: "center", "min-width": "100", label: "操作", fixed: "right", "show-overflow-tooltip": "" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
return [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text" }, on: { click: function(a3) {
return t2.veiwPtu(e3.row);
} } }, [t2._v("查看")]), t2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text" }, on: { click: function(a3) {
return t2.eidtPtu(e3.row);
} } }, [t2._v("编辑")]), t2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text" }, on: { click: function(a3) {
return t2.delPtu(e3.row);
} } }, [t2._v("删除")])];
} }], null, false, 3634204648) })], 1), t2._v(" "), a2("div", { staticClass: "paginations" }, [a2("el-pagination", { attrs: { background: "", "current-page": t2.query.pageNumber, "page-sizes": [10, 30, 50, 100, 200], "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)], 1) : t2._e(), t2._v(" "), t2.group ? a2("div", [a2("addGroup", { ref: "group", attrs: { show: t2.group, planModel: t2.planModel }, on: { goBack: t2.goBack } })], 1) : t2._e(), t2._v(" "), a2("el-dialog", { attrs: { title: "生成三保两修PTU组合", visible: t2.deviceVisible, width: "30%", "before-close": t2.deviceClose }, on: { "update:visible": function(e3) {
t2.deviceVisible = e3;
} } }, [a2("el-form", { ref: "deviceForm", attrs: { model: t2.deviceForm, "label-width": "100px" } }, [a2("el-form-item", { attrs: { label: "设备类型", prop: "deviceTypeId", rules: { required: true, message: "请选择设备类型", trigger: "change" } } }, [a2("el-cascader", { attrs: { clearable: "", placeholder: "请选择设备类型", options: t2.typeList, props: { label: "eventName", children: "children", value: "id", emitPath: false }, filterable: "" }, model: { value: t2.deviceForm.deviceTypeId, callback: function(e3) {
t2.$set(t2.deviceForm, "deviceTypeId", e3);
}, expression: "deviceForm.deviceTypeId" } })], 1), t2._v(" "), a2("el-form-item", { attrs: { label: "设备关联标准", prop: "bindStand" } }, [a2("el-switch", { attrs: { "active-value": 1, "inactive-value": 0 }, model: { value: t2.deviceForm.bindStand, callback: function(e3) {
t2.$set(t2.deviceForm, "bindStand", e3);
}, expression: "deviceForm.bindStand" } }), t2._v(" "), a2("div", { staticClass: "standTip" }, [a2("i", { staticClass: "el-icon-warning" }), t2._v("\n 若设备没有关联标准,默认将“日保”等标准绑定到设备\n ")])], 1), t2._v(" "), a2("el-form-item", [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary", loading: t2.createLoad }, on: { click: t2.postConfirm } }, [t2._v("立即生成")]), t2._v(" "), a2("el-button", { on: { click: t2.deviceClose } }, [t2._v("取消")])], 1)], 1)], 1)], 1);
}, i = [], r = a("fc4e"), o = function() {
var t2 = this, e2 = t2.$createElement, a2 = t2._self._c || e2;
return a2("div", { staticClass: "planOrder" }, [a2("el-card", { staticStyle: { "margin-bottom": "20px" }, attrs: { shadow: "never" } }, [a2("el-page-header", { attrs: { content: t2.title }, on: { back: t2.goBack } })], 1), t2._v(" "), a2("el-card", { attrs: { shadow: "never" } }, [a2("section", [a2("groupInfo", { ref: "info", attrs: { addType: t2.addType, attrData: t2.attrData, opentype: t2.opentype }, model: { value: t2.info, callback: function(e3) {
t2.info = e3;
}, expression: "info" } }), t2._v(" "), a2("plan-setting", { ref: "planSetting", attrs: { opentype: t2.opentype, addType: t2.addType, settingData: t2.settingData, attrData: t2.attrData, taskData: t2.taskData }, on: { handleCancel: t2.handleCancel, getSettingData: t2.getSettingData } }), t2._v(" "), t2.planRouteFlag ? a2("plan-route", { ref: "planRoute", attrs: { addType: t2.addType, settingData: t2.settingData, attrData: t2.attrData, opentype: t2.opentype, routeData: t2.routeData }, on: { handleCancel: t2.handleCancel, getRouteData: t2.getRouteData, addFormData: t2.addFormData } }) : t2._e()], 1), t2._v(" "), "view" === t2.opentype ? a2("div", { staticClass: "taskBtn" }, [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: t2.handleCancel } }, [t2._v("返回")])], 1) : a2("div", { staticClass: "taskBtn" }, [a2("span", [a2("el-button", { attrs: { type: "primary", disabled: t2.btnSave, loading: t2.btnSave }, on: { click: t2.handleSave } }, [t2._v("保存")])], 1), t2._v(" "), a2("span", [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: t2.handleCancel } }, [t2._v("取 消")])], 1)])])], 1);
}, s = [], l = function() {
var t2 = this, e2 = t2.$createElement, a2 = t2._self._c || e2;
return a2("div", { staticClass: "content" }, [a2("el-form", { ref: "infoForm", attrs: { model: t2.infoForm, rules: t2.rules, "label-width": "120px", disabled: "view" === t2.opentype } }, [a2("el-form-item", { attrs: { label: "PTU名称", prop: "name" } }, [a2("el-input", { attrs: { clearable: "" }, model: { value: t2.infoForm.name, callback: function(e3) {
t2.$set(t2.infoForm, "name", e3);
}, expression: "infoForm.name" } })], 1), t2._v(" "), a2("el-form-item", { attrs: { label: "作业菜单分类", prop: "planModel" } }, [a2("el-select", { attrs: { placeholder: "请选择作业菜单分类", clearable: "", disabled: t2.isDis && "edit" === t2.opentype }, model: { value: t2.infoForm.planModel, callback: function(e3) {
t2.$set(t2.infoForm, "planModel", e3);
}, expression: "infoForm.planModel" } }, t2._l(t2.planModeLArr, (function(t3, e3) {
return a2("el-option", { key: e3, attrs: { label: t3.label, value: t3.value } });
})), 1)], 1), t2._v(" "), a2("el-form-item", { attrs: { label: "备注", prop: "remark" } }, [a2("el-input", { attrs: { type: "textarea", autosize: { minRows: 2 }, clearable: "" }, model: { value: t2.infoForm.remark, callback: function(e3) {
t2.$set(t2.infoForm, "remark", e3);
}, expression: "infoForm.remark" } })], 1)], 1)], 1);
}, c = [], u = a("8f53"), p = { props: ["addType", "attrData", "opentype"], data: function() {
return { planModeLArr: u["w"], infoForm: { name: "", remark: "", planModel: "" }, rules: { name: { required: true, message: "请输入PTU组合名称", trigger: "blur" }, planModel: { required: true, message: "请选择作业菜单分类", trigger: "change" } }, isDis: false };
}, watch: { attrData: { handler: function() {
this.initInfo(this.attrData);
}, deep: true } }, methods: { initInfo: function() {
this.attrData.groupNo && (this.infoForm.name = this.attrData.name, this.infoForm.planModel = this.attrData.planModel, this.infoForm.remark = this.attrData.remark), this.isDis = null != this.infoForm.planModel && "" != this.infoForm.planModel;
}, dataPost: function() {
var t2 = this, e2 = true;
return this.$refs["infoForm"].validate((function(a2) {
a2 ? (t2.infoForm.projectUuid = t2.$store.state.community_uuid, t2.$emit("input", t2.infoForm)) : e2 = false;
})), e2;
} } }, d = p, m = (a("d4d0"), a("829d")), f = Object(m["a"])(d, l, c, false, null, "45a2975b", null), h = f.exports, g = a("b406"), v = a("cc4d"), y = a("37fc");
a("f8b7");
function b(t2) {
return b = "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;
}, b(t2);
}
function S(t2, e2) {
var a2 = Object.keys(t2);
if (Object.getOwnPropertySymbols) {
var n2 = Object.getOwnPropertySymbols(t2);
e2 && (n2 = n2.filter((function(e3) {
return Object.getOwnPropertyDescriptor(t2, e3).enumerable;
}))), a2.push.apply(a2, n2);
}
return a2;
}
function _(t2) {
for (var e2 = 1; e2 < arguments.length; e2++) {
var a2 = null != arguments[e2] ? arguments[e2] : {};
e2 % 2 ? S(Object(a2), true).forEach((function(e3) {
w(t2, e3, a2[e3]);
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t2, Object.getOwnPropertyDescriptors(a2)) : S(Object(a2)).forEach((function(e3) {
Object.defineProperty(t2, e3, Object.getOwnPropertyDescriptor(a2, e3));
}));
}
return t2;
}
function w(t2, e2, a2) {
return (e2 = k(e2)) in t2 ? Object.defineProperty(t2, e2, { value: a2, enumerable: true, configurable: true, writable: true }) : t2[e2] = a2, t2;
}
function k(t2) {
var e2 = T(t2, "string");
return "symbol" == b(e2) ? e2 : e2 + "";
}
function T(t2, e2) {
if ("object" != b(t2) || !t2) return t2;
var a2 = t2[Symbol.toPrimitive];
if (void 0 !== a2) {
var n2 = a2.call(t2, e2 || "default");
if ("object" != b(n2)) return n2;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return ("string" === e2 ? String : Number)(t2);
}
var I = { components: { groupInfo: h, PlanHeader: g["a"], PlanRoute: v["a"], PlanSetting: y["a"] }, props: { planModel: { type: Number, default: 1 }, content: { type: String, default: "" } }, data: function() {
return { info: {}, title: "", planeStep: 1, opentype: "add", addType: "group", btnSave: false, planInfor: {}, taskData: {}, attrData: { planModel: this.planModel, projectUuid: "", projectName: "", planName: "", memo: "", defaultRequire: "", ydPoolId: "" }, settingData: { planEndDate: "", planInfoAddReqDTO: [], planNature: "0", planStartDate: "", planToTaskTimeReqDTO: [], taskInspectionsStandardAddReqDTO: [], equipmentData: [] }, routeData: { planRoute: "", planStatus: true }, planHeader: { 1: "定制计划基本属性", 2: "选择点位及设备", 3: "顺序位置" }, planRouteFlag: true, planRouteStr: "" };
}, methods: { addFormData: function(t2) {
this.planRouteStr = t2.map((function(t3) {
return t3.location;
})).join("=Connector=>");
}, titleInfoLst: function(t2, e2) {
t2 && this.getInfoByID(t2, e2), this.opentype = e2, "add" == e2 ? (this.title = "新增PTU组合", this.btnSave = false, this.$refs.planSetting.$refs.taskInfomationRef.defaultSet()) : "view" == e2 ? (this.title = "查看PTU组合", this.btnSava = false) : "edit" == e2 && (this.title = "编辑PTU组合", this.btnSava = false);
}, getInfoByID: function(t2, e2) {
var a2 = this;
Object(r["e"])({ id: t2.id, uuid: "ptu" }).then((function(t3) {
if (0 === t3.code) {
var n2 = t3.data;
n2.planStatus = "view" == e2 ? 1 : 4, a2.attrData = n2, a2.attrData.planEndDate = "", a2.attrData.planStartDate = "", a2.planInfor = n2, a2.planInfor.planEndDate = "", a2.planInfor.planStartDate = "", a2.settingData = { planEndDate: "", planInfoAddReqDTO: [], planNature: n2.planNature, planStartDate: "", planToTaskTimeReqDTO: [], taskInspectionsStandardAddReqDTO: [], equipmentData: [] };
}
}));
}, handleCancel: function() {
this.goBack();
}, handleSave: function() {
var t2 = this;
if (this.btnSave = true, this.$refs.info.dataPost()) {
var e2 = this.$refs.planSetting.getPlanSettingData();
if (e2) {
var a2 = this.$refs.planRoute.handleSave(this.opentype);
this.planRouteStr && (a2.planRoute = this.planRouteStr);
var n2 = _(_(_({}, this.info), e2), a2), i2 = {};
if (i2.createUserId = this.$store.state.user.userInfo.memberId, i2.createUserName = this.$store.state.user.userInfo.memberName, i2.cycleWeek = n2.cycleWeek, i2.frequencyParam = n2.frequencyParam, i2.name = n2.name, i2.planLocationInfoList = n2.planLocationInfoList, i2.projectUuid = n2.projectUuid, i2.remark = n2.remark, i2.planModel = n2.planModel, i2.standardBackupsReqDTOS = n2.taskInspectionsStandardAddReqDTO, i2.timeInfoList = n2.planToTaskTimeReqDTO, i2.planNature = n2.planNature, i2.planRoute = n2.planRoute, console.log("param", n2), "add" === this.opentype || "copy" === this.opentype) Object(r["c"])(i2).then((function(e3) {
0 == e3.code && (t2.$message({ message: "创建成功", type: "success" }), t2.btnSave = false, t2.goBack());
})).catch((function() {
t2.btnSave = false;
}));
else {
var o2 = Object.assign(i2, { id: this.attrData.id, planUuid: this.attrData.planUuid });
Object(r["g"])(o2).then((function(e3) {
0 == e3.code && (t2.$message({ message: "更新成功", type: "success" }), t2.btnSave = false, t2.goBack());
})).catch((function() {
t2.btnSave = false;
}));
}
this.planRouteStr = "";
} else this.btnSave = false;
} else this.btnSave = false;
}, getAttrData: function(t2) {
var e2 = t2.attrData;
t2.step;
this.attrData = e2;
}, getSettingData: function(t2) {
var e2 = this;
this.planRouteFlag = false;
var a2 = t2.settingData;
t2.step;
this.settingData = a2, setTimeout((function() {
e2.planRouteFlag = true;
}), 500);
}, getRouteData: function(t2) {
var e2 = t2.settingData, a2 = (t2.step, t2.attrData), n2 = t2.routeData;
this.settingData = e2, this.attrData = a2, this.routeData = n2;
}, goBack: function() {
this.$emit("goBack");
} } }, D = I, U = (a("e621"), Object(m["a"])(D, o, s, false, null, "8e9be644", null)), C = U.exports, L = a("be2e"), j = { components: { addGroup: C }, data: function() {
return { is_show: true, height: "", pageTotal: 0, list: true, group: false, planModel: 3, query: { pageNumber: 1, pageSize: 10, groupNo: "", name: "", planModel: "", createUserName: "", deviceId: "" }, listLoading: false, listTable: [], deviceVisible: false, deviceForm: { deviceTypeId: "", bindStand: 0 }, typeList: [], createLoad: false, planModeLArr: u["w"] };
}, created: function() {
this.getRealHeight(), this.getType();
}, mounted: function() {
this.getList();
}, methods: { getList: function() {
var t2 = this;
this.query.projectUuid = this.$store.state.community_uuid, this.listLoading = true, Object(r["f"])(this.query).then((function(e2) {
t2.listTable = e2.data.records, t2.pageTotal = e2.data.rowsCount, t2.listLoading = false;
}));
}, delPtu: function(t2) {
var e2 = this;
this.$confirm("此操作将删除该PTU组合, 是否继续?", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }).then((function() {
Object(r["d"])({ id: t2.id }).then((function(t3) {
e2.$message({ message: "操作成功", type: "success" }), e2.getList();
}));
})).catch((function() {
}));
}, handleSizeChange: function(t2) {
this.query.pageSize = t2, this.getList();
}, handleCurrentChange: function(t2) {
this.query.pageNumber = t2, this.getList();
}, addPTU: function() {
var t2 = this;
this.list = false, this.group = true, this.$nextTick((function() {
t2.$refs.group.titleInfoLst("", "add");
}));
}, veiwPtu: function(t2) {
var e2 = this;
this.list = false, this.group = true, this.$nextTick((function() {
e2.$refs.group.titleInfoLst(t2, "view");
}));
}, eidtPtu: function(t2) {
var e2 = this;
this.list = false, this.group = true, this.$nextTick((function() {
e2.$refs.group.titleInfoLst(t2, "edit");
}));
}, goBack: function() {
this.list = true, this.group = false, this.getList();
}, upAndDown: function() {
this.is_show ? this.$refs.box.style.height = "80px" : this.$refs.box.style.height = this.height, this.is_show = !this.is_show;
}, getRealHeight: function() {
this.$nextTick((function() {
this.height = this.$refs.form_box.offsetHeight + "px", this.$refs.box.style.height = this.height;
}));
}, onSearch: function() {
this.query.pageNumber = 1, this.getList();
}, resetForm: function(t2) {
this.$refs[t2].resetFields(), this.query.planModel = "", this.getList();
}, selectChange: function(t2) {
this.selectionList = t2;
}, ptuToPlan: function() {
if (this.selectionList.length <= 0) return this.$message({ message: "请先选择需要生成计划的PTU组合", type: "error" }), false;
var t2 = [];
this.selectionList.map((function(e3) {
t2.push(e3.id);
}));
var e2 = this.$router.resolve({ path: "/ptuToPlan", query: { ids: t2.toString() } });
this.$refs.tableList.clearSelection(), window.open(e2.href, "_blank");
}, getType: function() {
var t2 = this, e2 = { projectId: this.$store.state.community_uuid, queryTypeL: 2 };
Object(L["F"])(e2).then((function(e3) {
console.log("%c [ res ----- ]-", "font-size:13px; background:pink; color:#bf2c9f;", e3), t2.typeList = e3.data;
}));
}, postConfirm: function() {
var t2 = this;
this.$refs["deviceForm"].validate((function(e2) {
if (e2) {
t2.createLoad = true;
var a2 = { projectUuid: t2.$store.state.community_uuid, deviceTypeUuid: t2.deviceForm.deviceTypeId, createUserId: t2.$store.state.user.userInfo.memberId, createUserName: t2.$store.state.user.userInfo.memberName, bindStand: t2.deviceForm.bindStand };
Object(r["a"])(a2).then((function(e3) {
0 == e3.code && (t2.$message({ type: "success", message: "操作成功,请等待系统生成!" }), t2.createLoad = false, t2.deviceClose(), t2.getList());
})).catch((function(e3) {
t2.createLoad = false;
}));
}
}));
}, deviceClose: function() {
this.$refs["deviceForm"].resetFields(), this.deviceVisible = false;
} } }, P = j, x = (a("370e"), Object(m["a"])(P, n, i, false, null, null, null));
e["default"] = x.exports;
}, d009: function(t, e, a) {
"use strict";
a("5be0");
}, d4d0: function(t, e, a) {
"use strict";
a("b428");
}, d5de: function(t, e, a) {
"use strict";
a("e91a");
}, e621: function(t, e, a) {
"use strict";
a("2769");
}, e91a: function(t, e, a) {
}, f2a3: function(t, e, a) {
}, fc4e: function(t, e, a) {
"use strict";
a.d(e, "f", (function() {
return i;
})), a.d(e, "c", (function() {
return r;
})), a.d(e, "d", (function() {
return o;
})), a.d(e, "e", (function() {
return s;
})), a.d(e, "g", (function() {
return l;
})), a.d(e, "b", (function() {
return c;
})), a.d(e, "h", (function() {
return u;
})), a.d(e, "i", (function() {
return p;
})), a.d(e, "a", (function() {
return d;
})), a.d(e, "j", (function() {
return m;
}));
var n = a("b775");
function i(t2) {
return Object(n["a"])({ url: "/appproject/StandardGroup/page", method: "POST", data: t2 });
}
function r(t2) {
return Object(n["a"])({ url: "/appproject/StandardGroup/create", method: "POST", data: t2 });
}
function o(t2) {
return Object(n["a"])({ url: "/appproject/StandardGroup/delete", method: "POST", data: t2 });
}
function s(t2) {
return Object(n["a"])({ url: "/appproject/StandardGroup/findById", method: "POST", data: t2 });
}
function l(t2) {
return Object(n["a"])({ url: "/appproject/StandardGroup/update", method: "POST", data: t2 });
}
function c(t2) {
return Object(n["a"])({ url: "/appproject/StandardGroup/createGroup", method: "POST", data: t2 });
}
function u(t2) {
return Object(n["a"])({ url: "/appproject/PlanStandard/queryPlanStandardLightweightV2", method: "POST", data: t2 });
}
function p(t2) {
return Object(n["a"])({ url: "/appproject/PlanStandard/queryPlanStandardLightweightV3", method: "POST", data: t2 });
}
function d(t2) {
return Object(n["a"])({ url: "/appproject/StandardGroup/createByDeviceType", method: "POST", data: t2 });
}
function m(t2) {
return Object(n["a"])({ url: "/appproject/SpaceLocation/setPtuImage", method: "POST", data: t2 });
}
} }]);