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