(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e498448e"],{"3bb3":function(t,e,a){"use strict";var r=a("aa33"),i=a.n(r);i.a},aa33:function(t,e,a){},d510:function(t,e,a){"use strict";a.r(e);var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"container"},[a("div",{staticClass:"header"},[a("van-icon",{staticClass:"vanIcon",attrs:{name:"arrow-left"},on:{click:t.backtrack}}),a("span",[t._v(t._s(t.title+"预约"))]),a("span",{staticStyle:{color:"#1c4990"}},[t._v("1")])],1),a("div",{staticClass:"main"},[a("div",{staticClass:"start-title"},[t._v(" 作业信息 ")]),a("Select",{attrs:{verify:!0,title:"申请部门",options:t.getDeptTree},model:{value:t.search.applicantDeptId,callback:function(e){t.$set(t.search,"applicantDeptId",e)},expression:"search.applicantDeptId"}}),a("Select",{attrs:{verify:!0,title:"申请人",options:t.getDeptUserTree},model:{value:t.search.applicantUserId,callback:function(e){t.$set(t.search,"applicantUserId",e)},expression:"search.applicantUserId"}}),a("Select",{attrs:{verify:!0,title:"作业区域",options:t.getAreaTree},model:{value:t.search.workTicketAreaId,callback:function(e){t.$set(t.search,"workTicketAreaId",e)},expression:"search.workTicketAreaId"}}),a("Input",{attrs:{verify:!0,title:"作业地点"},model:{value:t.search.workTicketPlace,callback:function(e){t.$set(t.search,"workTicketPlace",e)},expression:"search.workTicketPlace"}}),a("Input",{attrs:{title:"作业内容",verify:!0},model:{value:t.search.workTicketContent,callback:function(e){t.$set(t.search,"workTicketContent",e)},expression:"search.workTicketContent"}}),a("Time",{attrs:{title:"作业开始时间",verify:!0},model:{value:t.search.workPlanStartTime,callback:function(e){t.$set(t.search,"workPlanStartTime",e)},expression:"search.workPlanStartTime"}}),a("Time",{attrs:{title:"作业结束时间",verify:!0},model:{value:t.search.workPlanEndTime,callback:function(e){t.$set(t.search,"workPlanEndTime",e)},expression:"search.workPlanEndTime"}}),a("Input",{attrs:{verify:!1,title:"关联作业票编号"},model:{value:t.linkWorkTicketNo,callback:function(e){t.linkWorkTicketNo=e},expression:"linkWorkTicketNo"}}),a("FileUploader",{attrs:{title:"作业前置文件",verify:!1},model:{value:t.workTicketProfiler,callback:function(e){t.workTicketProfiler=e},expression:"workTicketProfiler"}}),a("div",{staticClass:"start-title"},[t._v(" 作业人员 ")]),a("Select",{attrs:{verify:!0,title:"作业负责人",options:t.getDeptUserTree},model:{value:t.search.workTicketDirectorId,callback:function(e){t.$set(t.search,"workTicketDirectorId",e)},expression:"search.workTicketDirectorId"}}),a("Radio",{attrs:{verify:!1,title:"作业单位类型",option:t.flatType},model:{value:t.search.workTicketCompanyType,callback:function(e){t.$set(t.search,"workTicketCompanyType",e)},expression:"search.workTicketCompanyType"}}),a("div",["20"===t.search.workTicketCompanyType?a("Select",{attrs:{verify:!0,title:"作业单位",options:t.getDeptTree},model:{value:t.interiorData.workTicketCompany,callback:function(e){t.$set(t.interiorData,"workTicketCompany",e)},expression:"interiorData.workTicketCompany"}}):t._e(),"20"===t.search.workTicketCompanyType?a("Select",{attrs:{title:"内部监护人",verify:!0,options:t.getDeptUserTree},model:{value:t.interiorData.workTicketGuardianUser,callback:function(e){t.$set(t.interiorData,"workTicketGuardianUser",e)},expression:"interiorData.workTicketGuardianUser"}}):t._e(),"20"===t.search.workTicketCompanyType?a("MultipleSelect",{attrs:{verify:!0,title:"内部作业人员",options:t.getDeptUserTree},model:{value:t.interiorData.executeUserIdList,callback:function(e){t.$set(t.interiorData,"executeUserIdList",e)},expression:"interiorData.executeUserIdList"}}):t._e()],1),a("div",["10"===t.search.workTicketCompanyType?a("Select",{attrs:{verify:!0,title:"作业单位",options:t.contractorList},on:{filterData:t.filterData},model:{value:t.contractorData.workTicketCompany,callback:function(e){t.$set(t.contractorData,"workTicketCompany",e)},expression:"contractorData.workTicketCompany"}}):t._e(),"10"===t.search.workTicketCompanyType?a("Select",{attrs:{title:"承包商监护人",verify:!0,options:t.guardianPersonnelList},model:{value:t.contractorData.workTicketGuardianUser,callback:function(e){t.$set(t.contractorData,"workTicketGuardianUser",e)},expression:"contractorData.workTicketGuardianUser"}}):t._e(),"10"===t.search.workTicketCompanyType?a("MultipleSelect",{attrs:{title:"承包商作业人",verify:!0,options:t.operatingPersonnelList},model:{value:t.contractorData.contractorUserIdList,callback:function(e){t.$set(t.contractorData,"contractorUserIdList",e)},expression:"contractorData.contractorUserIdList"}}):t._e()],1),"10"===this.code?a("div",[a("div",{staticClass:"start-title"},[t._v(" 动火作业 ")]),a("Radio",{attrs:{verify:!0,title:"动火级别",option:t.levelType},model:{value:t.data10.hwWorkLevel,callback:function(e){t.$set(t.data10,"hwWorkLevel",e)},expression:"data10.hwWorkLevel"}}),a("Input",{attrs:{title:"动火方式",verify:!0},model:{value:t.data10.hwWorkWay,callback:function(e){t.$set(t.data10,"hwWorkWay",e)},expression:"data10.hwWorkWay"}}),a("Input",{attrs:{title:"动火地点及动火部位",verify:!0},model:{value:t.data10.hwWorkLocation,callback:function(e){t.$set(t.data10,"hwWorkLocation",e)},expression:"data10.hwWorkLocation"}})],1):t._e(),"20"===this.code?a("div",[a("div",{staticClass:"start-title"},[t._v(" 受限作业 ")]),a("Input",{attrs:{title:"受限空间名称",verify:!0},model:{value:t.data20.rsWorkName,callback:function(e){t.$set(t.data20,"rsWorkName",e)},expression:"data20.rsWorkName"}}),a("Input",{attrs:{title:"受限空间内原有介质名称",verify:!0},model:{value:t.data20.rsWorkMediumName,callback:function(e){t.$set(t.data20,"rsWorkMediumName",e)},expression:"data20.rsWorkMediumName"}})],1):t._e(),"30"===this.code?a("div",[a("div",{staticClass:"start-title"},[t._v(" 盲板抽堵 ")]),a("Radio",{attrs:{verify:!0,title:"作业类型",option:t.bpWorkType},model:{value:t.data30.bpWorkType,callback:function(e){t.$set(t.data30,"bpWorkType",e)},expression:"data30.bpWorkType"}}),a("Input",{attrs:{title:"设备管道名称",verify:!0},model:{value:t.data30.bpWorkEpName,callback:function(e){t.$set(t.data30,"bpWorkEpName",e)},expression:"data30.bpWorkEpName"}}),a("div",{staticClass:"start-title-2"},[t._v(" 管道参数 ")]),a("Input",{attrs:{title:"介质",verify:!0},model:{value:t.data30.bpWorkMedium,callback:function(e){t.$set(t.data30,"bpWorkMedium",e)},expression:"data30.bpWorkMedium"}}),a("Input",{attrs:{title:"温度",verify:!0},model:{value:t.data30.bpWorkTemperature,callback:function(e){t.$set(t.data30,"bpWorkTemperature",e)},expression:"data30.bpWorkTemperature"}}),a("Input",{attrs:{title:"压力",verify:!0},model:{value:t.data30.bpWorkPressure,callback:function(e){t.$set(t.data30,"bpWorkPressure",e)},expression:"data30.bpWorkPressure"}}),a("div",{staticClass:"start-title-2"},[t._v(" 盲板参数 ")]),a("Input",{attrs:{title:"材质",verify:!0},model:{value:t.data30.bpWorkMaterial,callback:function(e){t.$set(t.data30,"bpWorkMaterial",e)},expression:"data30.bpWorkMaterial"}}),a("Input",{attrs:{title:"规格",verify:!0},model:{value:t.data30.bpWorkNumber,callback:function(e){t.$set(t.data30,"bpWorkNumber",e)},expression:"data30.bpWorkNumber"}}),a("Input",{attrs:{title:"编号",verify:!0},model:{value:t.data30.bpWorkSpec,callback:function(e){t.$set(t.data30,"bpWorkSpec",e)},expression:"data30.bpWorkSpec"}}),a("div",{staticClass:"start-title-2"},[t._v(" 盲板位图及编号 ")]),a("ImageUpload",{attrs:{title:"位图",verify:!0},model:{value:t.data30.bpWorkImgUrl,callback:function(e){t.$set(t.data30,"bpWorkImgUrl",e)},expression:"data30.bpWorkImgUrl"}}),a("Input",{attrs:{title:"编号",verify:!0},model:{value:t.data30.bpWorkPrepared,callback:function(e){t.$set(t.data30,"bpWorkPrepared",e)},expression:"data30.bpWorkPrepared"}})],1):t._e(),"40"===this.code?a("div",[a("div",{staticClass:"start-title"},[t._v(" 高处作业 ")]),a("Radio",{attrs:{verify:!0,title:"高处作业级别",option:t.levelType},model:{value:t.data40.haWorkLevel,callback:function(e){t.$set(t.data40,"haWorkLevel",e)},expression:"data40.haWorkLevel"}}),a("Input",{attrs:{title:"作业高度",verify:!0},model:{value:t.data40.haWorkHigh,callback:function(e){t.$set(t.data40,"haWorkHigh",e)},expression:"data40.haWorkHigh"}})],1):t._e(),"50"===this.code?a("div",[a("div",{staticClass:"start-title"},[t._v(" 吊装作业 ")]),a("Radio",{attrs:{verify:!0,title:"吊装作业级别",option:t.levelType},model:{value:t.data50.hoWorkLevel,callback:function(e){t.$set(t.data50,"hoWorkLevel",e)},expression:"data50.hoWorkLevel"}}),a("Input",{attrs:{title:"吊具名称",verify:!0},model:{value:t.data50.hoWorkSpreaderName,callback:function(e){t.$set(t.data50,"hoWorkSpreaderName",e)},expression:"data50.hoWorkSpreaderName"}}),a("Input",{attrs:{title:"指挥人员",verify:!0},model:{value:t.data50.hoWorkCommander,callback:function(e){t.$set(t.data50,"hoWorkCommander",e)},expression:"data50.hoWorkCommander"}}),a("Input",{attrs:{title:"司索人",verify:!0},model:{value:t.data50.hoWorkSolicitor,callback:function(e){t.$set(t.data50,"hoWorkSolicitor",e)},expression:"data50.hoWorkSolicitor"}}),a("Input",{attrs:{title:"吊物质量",verify:!0},model:{value:t.data50.hoWorkSuspendedObject,callback:function(e){t.$set(t.data50,"hoWorkSuspendedObject",e)},expression:"data50.hoWorkSuspendedObject"}})],1):t._e(),"60"===this.code?a("div",[a("div",{staticClass:"start-title"},[t._v(" 临时用电作业 ")]),a("Input",{attrs:{title:"用电人",verify:!0},model:{value:t.data60.teWorkElectricityUser,callback:function(e){t.$set(t.data60,"teWorkElectricityUser",e)},expression:"data60.teWorkElectricityUser"}}),a("Input",{attrs:{title:"用电设备",verify:!0},model:{value:t.data60.teWorkElectricityDevice,callback:function(e){t.$set(t.data60,"teWorkElectricityDevice",e)},expression:"data60.teWorkElectricityDevice"}}),a("Input",{attrs:{title:"电源接入点及许可用电功率",verify:!0},model:{value:t.data60.teWorkApEp,callback:function(e){t.$set(t.data60,"teWorkApEp",e)},expression:"data60.teWorkApEp"}}),a("Input",{attrs:{title:"工作电压",verify:!0},model:{value:t.data60.teWorkVoltage,callback:function(e){t.$set(t.data60,"teWorkVoltage",e)},expression:"data60.teWorkVoltage"}})],1):t._e(),"70"===this.code?a("div",[a("div",{staticClass:"start-title"},[t._v(" 动土作业 ")]),a("Input",{attrs:{title:"描述",verify:!0},model:{value:t.data70.bgWorkDescribe,callback:function(e){t.$set(t.data70,"bgWorkDescribe",e)},expression:"data70.bgWorkDescribe"}}),a("ImageUpload",{attrs:{title:"简图",verify:!0},model:{value:t.data70.bgWorkImg,callback:function(e){t.$set(t.data70,"bgWorkImg",e)},expression:"data70.bgWorkImg"}})],1):t._e(),"80"===this.code?a("div",[a("div",{staticClass:"start-title"},[t._v(" 断路作业 ")]),a("Input",{attrs:{title:"相关单位",verify:!0},model:{value:t.data80.rbWorkRelevantUnits,callback:function(e){t.$set(t.data80,"rbWorkRelevantUnits",e)},expression:"data80.rbWorkRelevantUnits"}}),a("Input",{attrs:{title:"相关说明",verify:!0},model:{value:t.data80.rbWorkIllustrate,callback:function(e){t.$set(t.data80,"rbWorkIllustrate",e)},expression:"data80.rbWorkIllustrate"}}),a("Input",{attrs:{title:"断路原因",verify:!0},model:{value:t.data80.rbWorkReason,callback:function(e){t.$set(t.data80,"rbWorkReason",e)},expression:"data80.rbWorkReason"}}),a("ImageUpload",{attrs:{title:"地段示意图",verify:!0},model:{value:t.data80.rbWorkImg,callback:function(e){t.$set(t.data80,"rbWorkImg",e)},expression:"data80.rbWorkImg"}})],1):t._e(),a("van-button",{staticStyle:{"margin-top":"15px"},attrs:{disabled:t.isDisabled,type:"primary"},on:{click:t.add}},[t._v("提交")])],1)])},i=[],o=(a("4de4"),a("4160"),a("b0c0"),a("b64b"),a("d3b7"),a("ac1f"),a("841c"),a("159b"),a("ade3")),s=a("5530"),c=a("2f62"),n=a("8500"),l={data:function(){return{code:"",title:"",isDisabled:!1,guardianPersonnelList:[],operatingPersonnelList:[],search:{applicantUserId:"",workTicketAreaId:"",workTicketCompanyType:"20",workTicketPlace:"",workTicketContent:"",applicantDeptId:"",workPlanStartTime:"",workTicketDirectorId:"",workPlanEndTime:""},rejectReason:"",workTicketProfiler:"",workTicketType:"",linkWorkTicketNo:"",contractorData:{workTicketCompany:"",contractorUserIdList:[],workTicketGuardianUser:""},interiorData:{workTicketCompany:"",executeUserIdList:[],workTicketGuardianUser:""},data10:{hwWorkLevel:"30",hwWorkLocation:"",hwWorkWay:""},data20:{rsWorkMediumName:"",rsWorkName:""},data30:{bpWorkEpName:"",bpWorkImgUrl:"",bpWorkMaterial:"",bpWorkMedium:"",bpWorkNumber:"",bpWorkPrepared:"",bpWorkPressure:"",bpWorkSpec:"",bpWorkTemperature:"",bpWorkType:""},data40:{haWorkHigh:"",haWorkLevel:"30"},data50:{hoWorkCommander:"",hoWorkLevel:"30",hoWorkSolicitor:"",hoWorkSpreaderName:"",hoWorkSuspendedObject:""},data60:{teWorkApEp:"",teWorkElectricityDevice:"",teWorkElectricityUser:"",teWorkVoltage:""},data70:{bgWorkDescribe:"",bgWorkImg:""},data80:{rbWorkIllustrate:"",rbWorkImg:"",rbWorkReason:"",rbWorkRelevantUnits:""},bpWorkType:[{name:"堵盲板",id:"10"},{name:"抽盲板",id:"20"}],flatType:[{name:"承包商",id:"10"},{name:"内部",id:"20"}],levelType:[{name:"特级",id:"10"},{name:"一级",id:"20"},{name:"二级",id:"30"}],workData:{}}},computed:Object(s["a"])({},Object(c["b"])("login",["user"]),{},Object(c["b"])("dangerList",["dangerSrcList","dangerTypeList","getAreaTree","getDeptTree","getDeptUserTree","contractorList","contractorUserList","workticketData"])),watch:{"search.workTicketCompanyType":{handler:function(t,e){"10"===t?this.interiorData=this.$options.data().interiorData:this.contractorData=this.$options.data().contractorData}}},created:function(){this.code=this.$route.query.code,this.title=this.$route.query.name,this.$route.query.id?this.getDetails():(this.search.applicantUserId=this.user.userId,this.search.applicantDeptId=this.user.deptId)},mounted:function(){},methods:{add:function(){var t=this,e="10"===this.search.workTicketCompanyType?"contractorData":"interiorData",a="data".concat(this.code),r=this.$examine(this.search),i=this.$examine(this[e]),o=this.$examine(this[a]);if(!0===r&&!0===i&&!0===o){var c=Object(s["a"])({},this.search,{},this[e],{workTicketType:this.code,workTicketProfiler:this.workTicketProfiler,workTicketExtendDTO:Object(s["a"])({},this[a])});this.isDisabled=!0,c=this.$route.query.id?Object(s["a"])({},c,{id:this.$route.query.id}):c;var l=this.$route.query.id?n["f"]:n["c"];l(c).then((function(e){var a=e.data;200===a.code?(t.$notify({type:"success",message:"作业预约成功",duration:3e3}),t.$router.push("/home"),t.isDisabled=!1):t.isDisabled=!1})).finally((function(){t.isDisabled=!1}))}else!0!==r&&(this.search=Object(s["a"])({},r[0]),setTimeout((function(){t.search=Object(s["a"])({},r[1])}),100)),!0!==i&&(this[e]=Object(s["a"])({},i[0]),setTimeout((function(){t[e]=Object(s["a"])({},i[1])}),100)),!0!==o&&(this[a]=Object(s["a"])({},o[0]),setTimeout((function(){t[a]=Object(s["a"])({},o[1])}),100))},filterData:function(){var t=this;this.guardianPersonnelList=this.contractorUserList.filter((function(e){return e.value===t.contractorData.workTicketCompany})),this.operatingPersonnelList=this.contractorUserList.filter((function(e){return e.value===t.contractorData.workTicketCompany}))},getObj:function(t,e){var a=this;e.forEach((function(e){var r=Object.keys(a[e]);r.forEach((function(r){a[e]=Object(s["a"])({},a[e],Object(o["a"])({},r,t[r]))}))}))},getDetails:function(){this.workData=JSON.parse(JSON.stringify(this.workticketData));var t=["search","contractorData","interiorData"],e=["data10","data20","data30","data40","data50","data60","data70","data80"];this.workTicketType=this.workData.workTicketType,this.workTicketStatus=this.workData.workTicketStatus,this.workTicketProfiler=this.workData.workTicketProfiler,this.linkWorkTicketNo=this.workData.linkWorkTicketNo,this.getObj(this.workData,t),this.getObj(this.workData.workTicketExtendDTO,e),this.filterData(),this.interiorData.workTicketGuardianUser=+this.interiorData.workTicketGuardianUser},backtrack:function(){this.$router.push("/home")}}},k=l,d=(a("3bb3"),a("2877")),p=Object(d["a"])(k,r,i,!1,null,"87715f52",null);e["default"]=p.exports}}]);