Files
wysite/hc-pos.sqygj.cn/static/js/chunk-0a005117.5afb6530.js

1 line
22 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-0a005117"],{"317c":function(e,t,a){},bd30:function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"inspection"},[e._l(e.tableData,(function(t,i){return a("div",{key:i,staticClass:"inspectionContent"},[a("div",{staticClass:"header"},[a("div",{staticClass:"left"},[a("span",{staticClass:"workOrderTitle"},[e._v(e._s(t.spaceName)+"-"+e._s(t.location))]),e._v(" "),a("span",["1"===t.planType?a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{size:"mini",disabled:!0}},[e._v("巡检")]):e._e()],1),e._v(" "),a("span",["view"===e.opentype||"edit"===e.opentype||"copy"===e.opentype||"task"===e.opentype?a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"primary",size:"mini"},on:{click:function(a){return e.viewLocation(t)}}},[e._v("查看照片")]):e._e()],1)]),e._v(" "),a("div",{staticClass:"rigth",on:{click:function(t){return e.handleSlow(i)}}},[a("span",[e._v(" \n "+e._s(e.tabIsShowMap[i]?"收回":"展开")+"\n "),a("i",{class:{icon:!0,"el-icon-arrow-down":!e.tabIsShowMap[i],"el-icon-arrow-up":e.tabIsShowMap[i]}})])])]),e._v(" "),a("transition",{attrs:{name:"fade"}},[a("div",{staticClass:"result",style:{display:e.tabIsShowMap[i]?"block":"none"}},[a("p",[e._v("标准列表-巡检")]),e._v(" "),a("div",{staticClass:"tabContainer"},[a("el-table",{ref:"multipleTable"+i,refInFor:!0,staticStyle:{width:"100%"},attrs:{border:"",data:e.getTabeData(t,i),"tooltip-effect":"dark","row-key":"uniqueStandardId","header-cell-style":e.headClass},on:{"selection-change":function(t){e.handleSelectionChange(t,i)}}},["add"===e.opentype||"edit"===e.opentype||"copy"===e.opentype?a("el-table-column",{attrs:{type:"selection",width:"55",align:"center","reserve-selection":!0,selectable:e.standardSelcet,fixed:"left"}}):e._e(),e._v(" "),a("el-table-column",{attrs:{label:"绑定名称","show-overflow-tooltip":"",align:"center",prop:"targetName",width:"150",fixed:"left"}}),e._v(" "),a("el-table-column",{attrs:{label:"项目","show-overflow-tooltip":"",align:"center",prop:"eventProjectName",width:"150",fixed:"left"}}),e._v(" "),a("el-table-column",{attrs:{label:"任务","show-overflow-tooltip":"",align:"center",prop:"eventName",width:"200"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"任务类型","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.eventType[t.row.eventType])+"\n ")]}}],null,!0)}),e._v(" "),a("el-table-column",{attrs:{prop:"proStandard","show-overflow-tooltip":"",align:"center",label:"过程标准","min-width":"200"}}),e._v(" "),a("el-table-column",{attrs:{prop:"checkStandard","show-overflow-tooltip":"",align:"center",label:"检查标准","min-width":"200"}}),e._v(" "),a("el-table-column",{attrs:{label:"参考频次",align:"center",prop:"recomndFreqName",width:"90"}}),e._v(" "),"add"===e.opentype?a("el-table-column",{attrs:{prop:"recomndJobName",align:"center",label:"参考岗位",width:"200"}}):e._e(),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"专业等级",prop:"professionalLevel","min-width":"100"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"安全等级",prop:"dangerousLevel","min-width":"80"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"重要等级",prop:"importantLevel","min-width":"120"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"温度",prop:"temperatureLevel","min-width":"80"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"私密度",prop:"privacyLevel","min-width":"80"}}),e._v(" "),a("el-table-column",{attrs:{label:"类型","show-overflow-tooltip":"",align:"center",prop:"systemType",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.systemType?a("span",[e._v("系统")]):e._e(),e._v(" "),2===t.row.systemType?a("span",[e._v("新建")]):e._e(),e._v(" "),3===t.row.systemType?a("span",[e._v("系统修改")]):e._e(),e._v(" "),4===t.row.systemType?a("span",[e._v("新建修改")]):e._e()]}}],null,!0)}),e._v(" "),"view"===e.opentype||"edit"===e.opentype||"copy"===e.opentype?a("el-table-column",{attrs:{align:"center",label:"是否拍照",prop:"dangerousLevel","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-select",{attrs:{disabled:"task"===e.opentype},on:{change:function(a){return e.selectChanged(t.row.isShowCapture,t.row)}},model:{value:t.row.isShowCapture,callback:function(a){e.$set(t.row,"isShowCapture",a)},expression:"scope.row.isShowCapture"}},e._l(e.checkPicture,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)]}}],null,!0)}):e._e(),e._v(" "),"view"===e.opentype||"edit"===e.opentype||"copy"===e.opentype?a("el-table-column",{attrs:{prop:"",label:"图片集",align:"center",width:"100",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticClass:"textBtn",on:{click:function(a){return e.viewPhotos(t.row)}}},[e._v("查看照片")])]}}],null,!0)}):e._e(),e._v(" "),"add"===e.opentype?a("el-table-column",{attrs:{prop:"",label:"操作",align:"center",width:"100",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticClass:"textBtn",on:{click:function(a){return e.handleEdit(t.row)}}},[e._v("编辑")])]}}],null,!0)}):e._e(),e._v(" "),"task"===e.opentype?a("el-table-column",{attrs:{label:"图片","show-overflow-tooltip":"",align:"center",prop:"systemType",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.imageUrl?a("span",{staticClass:"textBtn",on:{click:function(a){return e.viewPhoto(t.row)}}},[e._v("查看照片")]):e._e(),e._v(" "),t.row.imageUrl?e._e():a("span",{staticClass:"textBtn"},[e._v("-")])]}}],null,!0)}):e._e(),e._v(" "),"task"===e.opentype?a("el-table-column",{attrs:{label:"描述","show-overflow-tooltip":"",align:"center",prop:"systemType",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.remark&&t.row.unqualifiedRemark?a("span",[e._v(e._s(t.row.remark)+","+e._s(t.row.unqualifiedRemark))]):e._e(),e._v(" "),t.row.remark&&!t.row.unqualifiedRemark?a("span",[e._v(e._s(t.row.remark))]):e._e(),e._v(" "),!t.row.remark&&t.row.unqualifiedRemark?a("span",[e._v(e._s(t.row.unqualifiedRemark))]):e._e(),e._v(" "),t.row.remark||t.row.unqualifiedRemark?e._e():a("span",[e._v("-")])]}}],null,!0)}):e._e(),e._v(" "),"task"===e.opentype?a("el-table-column",{attrs:{label:"结果",align:"center",prop:"executeResult",width:"100",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.executeResult?a("span",[e._v("未开始")]):e._e(),e._v(" "),1===t.row.executeResult?a("span",[e._v("不合格")]):e._e(),e._v(" "),2===t.row.executeResult?a("span",[e._v("合格")]):e._e()]}}],null,!0)}):e._e(),e._v(" "),"task"===e.opentype?a("el-table-column",{attrs:{prop:"",label:"关联工单",align:"center",width:"100",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-link",{attrs:{type:"primary",disabled:!t.row.workOrderNo},on:{click:function(a){return e.seeClick(t.row)}}},[e._v("查看")])]}}],null,!0)}):e._e()],1),e._v(" "),a("div",{staticClass:"paginations"},[a("el-pagination",{attrs:{layout:"total, sizes, prev, pager, next, jumper","current-page":e.currentPageMap[i],"page-sizes":[10,30,50,100,200],"page-size":e.pageSizeMap[i],total:t.planStandardList.inspectionsStandardList.length},on:{"size-change":function(a){e.handleSizeChange(a,t,i)},"current-change":function(a){e.handleCurrentChange(a,t,i)}}})],1)],1)])])],1)})),e._v(" "),a("el-dialog",{staticClass:"dialogHead",attrs:{"show-close":!0,"close-on-press-escape":!1,"close-on-click-modal":!1,visible:e.pictureDialog,width:"630px"},on:{"update:visible":function(t){e.pictureDialog=t}}},[a("span",{attrs:{slot:"title"},slot:"title"},[a("span",{staticClass:"header-main-title"},[e._v("照片集")]),e._v(" "),"task"===!e.opentype?a("span",{staticClass:"header-sub-title"},[e._v("注:选择以下照片作为标准照片后,将在计划工单中显示作为参照标准图片")]):e._e()]),e._v(" "),e.getImgUrr(e.imageUrl).length>0?a("div",{staticStyle:{"margin-bottom":"24px"}},[a("h4",{staticStyle:{"margin-top":"-15px"}},[e._v("示例图片:")]),e._v(" "),a("el-row",e._l(e.getImgUrr(e.imageUrl),(function(e){return a("el-col",{key:e,attrs:{span:6}},[a("div",{staticClass:"imgItem"},[a("span",{staticClass:"imgWrap"},[a("el-image",{staticStyle:{cursor:"pointer",width:"100px",height:"100px"},attrs:{src:e,"preview-src-list":[e]}})],1)])])})),1),e._v(" "),a("div",{staticClass:"tab-title2"})],1):e._e(),e._v(" "),a("div",{staticClass:"imgPreview"},[e.pictureUrl.length>0?e._l(Math.ceil(e.pictureUrl.length/3),(function(t,i){return a("el-row",{key:t,staticClass:"pictureRow",attrs:{type:"flex"}},e._l(e.pictureUrl.slice(0===i?0:3*i,3*(i+1)),(function(t){return a("el-col",{key:t.src,attrs:{span:8}},[a("div",{staticClass:"imgItem",on:{click:function(a){return e.handleImg(t)}}},[a("span",{staticClass:"imgWrap"},[a("img",{staticStyle:{cursor:"pointer"},attrs:{src:t.src,alt:""}})]),e._v(" "),a("span",{staticClass:"btnWrap2"},[a("i",{staticClass:"floats"},[a("el-image",{staticClass:"bannerImg",attrs:{src:e.replaceUrl(t.src),"preview-src-list":[t.src],fit:"contain"}})],1)]),e._v(" "),!t.checked||"view"!==e.opentype&&"edit"!==e.opentype&&"copy"!==e.opentype?e._e():a("span",{staticClass:"btnWrap"},[a("el-button",{attrs:{type:"primary",icon:"el-icon-check",circle:""}})],1)])])})),1)})):a("div",{staticClass:"noData"},[e._v("暂无数据")]),e._v(" "),a("div",{staticClass:"picture"},[e.pictureUrl.length>0&&("view"===e.opentype||"edit"===e.opentype||"copy"===e.opentype)?a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"primary"},on:{click:e.saveSelect}},[e._v("确定选择")]):e._e(),e._v(" "),a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],on:{click:function(t){e.pictureDialog=!1}}},[e._v("取消")])],1)],2)]),e._v(" "),a("el-dialog",{staticClass:"dialogHead",attrs:{title:"项目初始化","show-close":!0,"close-on-press-escape":!1,"close-on-click-modal":!1,visible:e.inspectionItemDialog,width:"50%"},on:{"update:visible":function(t){e.inspectionItemDialog=t}}},[a("el-form",{ref:"editObj",staticClass:"demo-ruleForm",attrs:{model:e.editObj,rules:e.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"任务",prop:"eventName"}},[a("el-input",{model:{value:e.editObj.eventName,callback:function(t){e.$set(e.editObj,"eventName",t)},expression:"editObj.eventName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"任务类型:",prop:"eventType"}},[a("el-select",{staticStyle:{width:"100%"},model:{value:e.editObj.eventType,callback:function(t){e.$set(e.editObj,"eventType",t)},expression:"editObj.eventType"}},e._l(e.eventTypeList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"过程标准:",prop:"proStandard"}},[a("el-input",{attrs:{type:"textarea",autosize:{minRows:6,maxRows:6},placeholder:"请输入内容"},model:{value:e.editObj.proStandard,callback:function(t){e.$set(e.editObj,"proStandard",t)},expression:"editObj.proStandard"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"检查标准:",prop:"checkStandard"}},[a("el-input",{attrs:{type:"textarea",autosize:{minRows:6,maxRows:6},placeholder:"请输入内容"},model:{value:e.editObj.checkStandard,callback:function(t){e.$set(e.editObj,"checkStandard",t)},expression:"editObj.checkStandard"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"参考岗位:",prop:"recomndJobName"}},[a("el-input",{attrs:{placeholder:"请输入内容"},model:{value:e.editObj.recomndJobName,callback:function(t){e.$set(e.editObj,"recomndJobName",t)},expression:"editObj.recomndJobName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"参考频次:",prop:"recomndFreqName"}},[a("el-input",{staticClass:"formItemInput",attrs:{placeholder:"输入格式1日1次、1周1次、1年1次"},model:{value:e.editObj.recomndFreqName,callback:function(t){e.$set(e.editObj,"recomndFreqName",t)},expression:"editObj.recomndFreqName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"专业等级:",prop:"professionalLevel"}},[a("el-input-number",{attrs:{"controls-position":"right",min:1,max:9},model:{value:e.editObj.professionalLevel,callback:function(t){e.$set(e.editObj,"professionalLevel",t)},expression:"editObj.professionalLevel"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"安全等级:",prop:"dangerousLevel"}},[a("el-input-number",{attrs:{"controls-position":"right",min:1,max:9},model:{value:e.editObj.dangerousLevel,callback:function(t){e.$set(e.editObj,"dangerousLevel",t)},expression:"editObj.dangerousLevel"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"重要等级:",prop:"importantLevel"}},[a("el-input-number",{attrs:{"controls-position":"right",min:1,max:9},model:{value:e.editObj.importantLevel,callback:function(t){e.$set(e.editObj,"importantLevel",t)},expression:"editObj.importantLevel"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"温度:",prop:"temperatureLevel"}},[a("el-input-number",{attrs:{"controls-position":"right",min:1,max:9},model:{value:e.editObj.temperatureLevel,callback:function(t){e.$set(e.editObj,"temperatureLevel",t)},expression:"editObj.temperatureLevel"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"私密度:",prop:"privacyLevel"}},[a("el-input-number",{attrs:{"controls-position":"right",min:1,max:9},model:{value:e.editObj.privacyLevel,callback:function(t){e.$set(e.editObj,"privacyLevel",t)},expression:"editObj.privacyLevel"}})],1),e._v(" "),a("el-form-item",{staticStyle:{"text-align":"center"}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.saveFormtem("editObj")}}},[e._v("立即创建")]),e._v(" "),a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],on:{click:function(t){e.inspectionItemDialog=!1}}},[e._v("取消")])],1)],1)],1)],2)},n=[],l=a("8988"),r=a("333d"),s=a("f139"),o=a("5f43"),c=a("f8b7"),p={components:{Pagination:r["a"],SubTitle:s["a"],AliOSSUpload:l["a"]},props:["opentype","tableData","reviewStandard","attrData"],data:function(){return{total:0,dataObj:{},currentPageMap:{},imagePreview:"",pageSizeMap:{},tabIsShowMap:{},pictureDialog:!1,allowFileType1:["image"],inspectionItemDialog:!1,pictureUrl:[],locationImageList:[],locationUuid:"",imageType:null,imageUrl:"",examplesImageUrl:[],imageSave:{},taskTime:1,loopType:0,task:1,activeIndex:0,pageTotal:0,taskUuid:"",editObj:{eventName:"",proStandard:"",freName:"",checkStandard:"",recomndFreqName:"",recomndJobName:"",loopType:1,eventType:1,standImageUrl:"",professionalLevel:1,dangerousLevel:1,importantLevel:1,temperatureLevel:1,privacyLevel:1},loopTypeList:[{label:"日",value:1},{label:"周",value:2},{label:"月",value:3},{label:"年",value:4}],eventTypeList:[{label:"巡检类",value:1},{label:"维保类",value:2},{label:"抄表类",value:3},{label:"清洁类",value:4},{label:"绿化类",value:5},{label:"上门拜访类",value:6},{label:"维修类",value:7},{label:"服务礼仪类",value:8},{label:"内部管控类",value:9},{label:"社区温度类",value:10}],LevelArr:[{label:"普通",value:1},{label:"培训",value:2},{label:"认证",value:3}],eventType:{1:"巡检类",2:"维保类",3:"抄表类",4:"清洁类",5:"绿化类",6:"上门拜访类",7:"维修类",8:"服务礼仪类",9:"内部管控类",10:"社区温度类"},levelArr:{1:"普通",2:"培训",3:"认证"},fileList:[],list:[],selectTableInfor:[],emitTableInforList:[],checkPicture:[{id:1,name:"是"},{id:2,name:"否"}],rules:{eventName:[{required:!0,message:"请输入任务名称",trigger:"blur"}],eventType:[{required:!0,message:"请选择任务类型",trigger:"change"}],proStandard:[{required:!0,message:"请输入过程标准",trigger:"blur"}],checkStandard:[{required:!0,message:"请输入检查标准",trigger:"blur"}],recomndJobName:[{required:!0,message:"请输入参考岗位",trigger:"blur"}],recomndFreqName:[{required:!0,message:"请输入参考频次",trigger:"blur"}],professionalLevel:[{required:!0,message:"请输入专业等级",trigger:"blur"}],dangerousLevel:[{required:!0,message:"请输入安全等级",trigger:"blur"}],importantLevel:[{required:!0,message:"请输入重要等级",trigger:"blur"}],temperatureLevel:[{required:!0,message:"请输入温度",trigger:"blur"}],privacyLevel:[{required:!0,message:"请输入私密度",trigger:"blur"}]}}},watch:{tableData:{handler:function(e,t){var a=this;e!==t&&e.forEach((function(e,t){a.$set(a.currentPageMap,t,1),a.$set(a.pageSizeMap,t,10),a.$set(a.tabIsShowMap,t,!0),a.selectTableInfor=Array.from({length:a.tableData.length}),"edit"!==a.opentype&&"copy"!==a.opentype||a.reviewStandardSelect()}))},immediate:!0,deep:!0}},mounted:function(){this.headClass()},methods:{reviewStandardSelect:function(){var e=this,t=this;if(this.reviewStandard.length>0)for(var a=function(){t.$set(e.tabIsShowMap,i,!0);var a=e.tableData[i],n="multipleTable".concat(i),l=a.planStandardList.inspectionsStandardList.filter((function(t){return e.reviewStandard.some((function(e){return e===t.uniqueStandardId}))}));e.$nextTick((function(){l.length>0&&l.forEach((function(e){t.$refs[n][0].toggleRowSelection(e,!0)}))})),e.$forceUpdate()},i=0;i<this.tableData.length;i++)a()},standardSelcet:function(){return"view"!==this.opentype&&1!==this.attrData.planStatus&&3!==this.attrData.planStatus},getInfoList:function(e){this.opentype=e.opentype,this.dataObj=e},getImgUrr:function(e){return e&&e.split(";")||[]},selectChanged:function(e,t){var a=this,i={isShowCapture:e,planUuid:t.planUuid,projectUuid:this.$store.state.community_uuid,standardUuid:t.standardUuid};Object(c["l"])(i).then((function(e){0==e.code&&a.$message({message:"更新成功",type:"success"})}))},replaceUrl:function(e){return e&&e.split(";")[0]||""},getUploadData1:function(e){var t=[];e&&e.length>0&&e.forEach((function(e){t.push(e.filePath)})),this.editObj.standImageUrl=t.join(",")},saveFormtem:function(e){var t=this;this.$refs[e].validate((function(e){if(!e)return!1;t.inspectionItemDialog=!1}))},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(e){var t=this;Object(c["d"])(e).then((function(e){0==e.code&&(t.$message({message:"保存成功",type:"success"}),t.pictureDialog=!1)})).catch((function(){t.pictureDialog=!1})),this.pictureDialog=!1},saveStandImgGather:function(e){var t=this;Object(c["e"])(e).then((function(e){0==e.code&&(t.$message({message:"保存成功",type:"success"}),t.pictureDialog=!1)})).catch((function(){t.pictureDialog=!1})),this.pictureDialog=!1},seeClick:function(e){this.$router.replace({path:"/workOrderManagement/temporaryManagement/viewWorkOrderDetails",query:{orderNo:e.workOrderNo}})},getviewImageUrl:function(e){if(this.pictureUrl=[],"task"===this.opentype){if(e.imageUrl){var t=e.imageUrl.split(";")||[];this.pictureUrl=t.map((function(e,t){return{src:e}}))}else this.pictureUrl=[];this.pictureDialog=!0}},viewPhoto:function(e){this.getviewImageUrl(e)},viewLocation:function(e){var t=this;if(this.locationUuid="",this.examplesImageUrl=[],"task"!==this.opentype){this.imageSave={},this.imageType=1;var a=this.dataObj;this.locationUuid=e.locationUuid;var i={planUuid:a.planUuid,standardUuid:e.standardUuid,locationUuid:e.locationUuid,projectUuid:a.projectUuid};this.imageSave=i,Object(c["K"])(i).then((function(e){if(0===e.code){var a=e.data.imageUrlList;e.data.examplesImageUrl&&(t.imageUrl=e.data.examplesImageUrl),a.length&&(t.pictureUrl=a.map((function(e,t){return{src:e,checked:!1}})))}})),this.pictureDialog=!0}else this.getviewImageUrl(e)},queryLocationImage:function(e){var t=this;this.pictureUrl=[],this.examplesImageUrl=[],Object(o["z"])({locationUuid:e.locationUuid}).then((function(a){0===a.code&&a.data.length>0&&a.data.length&&(t.pictureUrl=a.data.map((function(t,a){return{locationUuid:e.locationUuid,src:t.examplesImageUrl,checked:!1}})))})),this.pictureDialog=!0},viewPhotos:function(e){var t=this;this.examplesImageUrl=[],this.pictureUrl=[],this.imageSave={},this.imageType=2;var a=this.dataObj,i={planUuid:a.planUuid,standardUuid:e.standardUuid,projectUuid:a.projectUuid,locationUuid:e.locationId};this.imageSave=i,Object(c["L"])(i).then((function(e){if(0===e.code){var a=e.data.imageUrlList;a.length&&(t.pictureUrl=a.map((function(e,t){return{src:e,checked:!1}})))}})),this.pictureDialog=!0},handleImg:function(e){var t=this.examplesImageUrl.indexOf(e.src);if(-1!==t)return this.examplesImageUrl.splice(t,1),void(e.checked=!1);this.examplesImageUrl.length>=6||(this.examplesImageUrl.push(e.src),e.checked=!0)},handleEdit:function(e){this.editObj=e,null!=this.editObj.standImageUrl&&""!=this.editObj.standImageUrl?(this.fileList=[],this.editObj.standImageUrl.indexOf(",")>0?this.fileList=this.editObj.standImageUrl.split(",").map((function(e){return{url:e}})):this.fileList.push({url:this.editObj.standImageUrl})):this.fileList=[],this.inspectionItemDialog=!0},handleRemove:function(e,t){var a=[],i=[],n=t.randomUUID;this.tableData.forEach((function(e){var t=e.planStandardList.inspectionsStandardList,i=t.findIndex((function(e){return e.randomUUID===n}));-1!==i&&(t.splice(i,1),a=a.concat(e.planStandardList.inspectionsStandardList))})),this.tableData.forEach((function(e){i=i.concat(e.planStandardList.inspectionsStandardList)})),this.$emit("tableList",i)},handleSizeChange:function(e,t,a){this.currentPageMap[a]=1,this.pageSizeMap[a]=e},handleCurrentChange:function(e,t,a){this.currentPageMap[a]=e},getTabeData:function(e,t){var a=this.currentPageMap[t],i=this.pageSizeMap[t],n=e.planStandardList.inspectionsStandardList.slice(1===a?0:(a-1)*i,a*i);return n},handleSlow:function(e){if(this.tabIsShowMap[e]=!this.tabIsShowMap[e],this.tabIsShowMap[e]){var t=this.selectTableInfor[e],a=this.tableData[e].planStandardList.inspectionsStandardList,i=this;t&&t.length&&this.$nextTick((function(){a.forEach((function(a){t.find((function(e){return a.uniqueStandardId===e.uniqueStandardId}))&&i.$refs.multipleTable[e].toggleRowSelection(a,!0)}))}))}},headClass:function(){return"text-align:center;background:#FAFAFA;"},handleSelectionChange:function(e,t){this.tabIsShowMap[t]&&(this.selectTableInfor[t]=e,this.emitTableInforList=this.selectTableInfor.flat(),this.$emit("tableList",this.emitTableInforList))}}},u=p,d=(a("d38f"),a("829d")),m=Object(d["a"])(u,i,n,!1,null,"bd14ce92",null);t["a"]=m.exports},d38f:function(e,t,a){"use strict";a("317c")}}]);