chunk-fa40.5e3b37c8.js
23.5 KB
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-fa40","m1cH"],{CPBB:function(e,r,a){"use strict";a.r(r);var t=a("gDS+"),l=a.n(t),s=a("P2sY"),i=a.n(s),n=a("4d7F"),o=a.n(n),c=a("m1cH"),d=a.n(c),m=a("7NVX"),u=a("hZMg"),p={name:"BiddingEdit",components:{AddDialog:m.a},props:{params:{type:Object,default:function(){return{}}},fn:{type:Function}},data:function(){return new Date,new Date("2017-12-31"),{WEBURL:"https://bhg.didihu.com.cn",CONSTANTSSTATUS:this.$Constants.ORDERALLSTATUS,loading:!0,pickerOption:{},ruleForm:{orderSn:"",orderStatus:"",storeName:"",contactName:"",contactPhone:"",contactProvince:void 0,contactAddress:"",serviceDate:"2019-02-01",quoteLastTime:"2019-02-01",noPriceTime:"",serviceType:[],referencePrice:0,carBrand:void 0,carSeries:void 0,carType:"",remarkImages:[],carOwnName:"",carOwnPhone:"",reserveMan:"",reserveManPhone:"",reserveInstallTime:null,reserveInstallReason:"",deviceServer:"",deviceServerPhone:"",deviceTechnician:"",deviceTechnicianPhone:"",completeTime:"",installRemark:"",deviceImages:[]},rules:{orderSn:[{min:0,max:50,message:"请输入订单编号",trigger:"blur",placeholder:"请输入订单编号"}],orderStatus:[{min:0,max:50,message:"请输入订单状态",trigger:"blur",placeholder:"请输入订单状态"}],storeName:[{required:!0,min:0,max:50,msg:"请输入店面名称",trigger:"blur",placeholder:"请输入店面名称",validator:this.$Common.checkRegExpName}],contactName:[{required:!0,min:0,max:50,msg:"请输入联系人",trigger:"blur",placeholder:"请输入联系人",validator:this.$Common.checkRegExpName}],contactPhone:[{required:!0,min:0,max:50,msg:"请输入联系方式",trigger:"blur",placeholder:"请输入联系方式",validator:this.$Common.checkRegExpPhone}],contactProvince:[{required:!0,message:"请选择所在城区",trigger:"blur",placeholder:"请选择所在城区"}],contactAddress:[{required:!0,min:0,max:50,message:"请输入详细地址",trigger:"blur",placeholder:"请输入详细地址"}],serviceDate:[{required:!0,message:"请选择期望上门时间",trigger:"blur",placeholder:"请选择期望上门时间"}],quoteLastTime:[{required:!0,message:"请选择报价截止时间",trigger:"blur",placeholder:"请选择报价截止时间"}],serviceType:[{required:!0,type:"array",message:"请至少选择一个服务类型",trigger:"change",placeholder:"请选择服务类型"}],carBrand:[{type:"number",message:"请选择品牌",trigger:"change",placeholder:"请选择品牌"}],carSeries:[{type:"number",message:"请选择车系",trigger:"change",placeholder:"请选择车系"}],carType:[{type:"string",message:"请选择车型",trigger:"change",placeholder:"请选择车型"}],carOwnName:[{min:0,max:50,message:"请输入对接人姓名",trigger:"blur",placeholder:"请输入对接人姓名"}],carOwnPhone:[{min:0,max:50,message:"请输入对接人电话",trigger:"blur",placeholder:"请输入对接人电话"}],reserveMan:[{min:0,max:50,message:"请输入预约人",trigger:"blur",placeholder:"请输入预约人"}],reserveManPhone:[{min:0,max:50,message:"请输入预约人联系方式",trigger:"blur",placeholder:"请输入预约人联系方式"}],reserveInstallTime:[{message:"请选择预约上门时间",trigger:"blur",placeholder:"请选择预约上门时间"}],reserveInstallReason:[{message:"请选择预约备注",trigger:"change",placeholder:"请选择预约备注"}],deviceServer:[{min:0,max:50,message:"请输入服务商",trigger:"blur",placeholder:"请输入服务商"}],deviceServerPhone:[{min:0,max:50,message:"请输入服务商联系方式",trigger:"blur",placeholder:"请输入服务商联系方式"}],deviceTechnician:[{min:0,max:50,message:"请输入技工",trigger:"blur",placeholder:"请输入技工"}],deviceTechnicianPhone:[{min:0,max:50,message:"请输入技工联系方式",trigger:"blur",placeholder:"请输入技工联系方式"}],completeTime:[{message:"请选择完成时间",trigger:"blur",placeholder:"请选择完成时间"}],installRemark:[{min:0,max:50,message:"请输入备注",trigger:"blur",placeholder:"请输入备注"}]},serviceTypeOptions:[],reserveInstallReasonOptions:[],carBrandOptions:[],carTypeOptions:[],carSeriesOptions:[],asycOptions:[],asycAddressModel:[],asycAddressProps:{label:"areaName",value:"id",children:"children",checkStrictly:!1},isDisabled:!0}},mounted:function(){var r=this;this.getDictDataListByKey(),this.getreserveInstallReasonOptionsByKey(),this.getEditDetail(),this.getCarbrandList(),this.getAddress(0).then(function(e){r.asycOptions=e}),this.isDisabled="edit"!=this.params.type},methods:{resetForm:function(){this.$set(this,"ruleForm",{orderSn:"",orderStatus:"",storeName:"",contactName:"",contactPhone:"",contactProvince:void 0,contactAddress:"",serviceDate:"2019-02-01",quoteLastTime:"2019-02-01",noPriceTime:"",serviceType:[],referencePrice:0,carBrand:void 0,carSeries:void 0,carType:"",remarkImages:[],carOwnName:"",carOwnPhone:"",reserveMan:"",reserveManPhone:"",reserveInstallTime:"",reserveInstallReason:"",deviceServer:"",deviceServerPhone:"",deviceTechnician:"",deviceTechnicianPhone:"",completeTime:"",installRemark:"",deviceImages:[]})},handleAsycChange:function(t){var l=this;return 3==t.length&&(this.ruleForm.contactProvince=String([].concat(d()(t))[2]),this.$refs.ruleForm.validateField("contactProvince")),new o.a(function(e){var a=t[t.length-1];l.getAddress(a).then(function(r){l.asycOptions.map(function(e){e.id==a?e.children=r:e.children&&0<e.children.length&&e.children.map(function(e){e.id==a&&(t.length<2||r.map(function(e){e.children=null}),e.children=r)})}),e()})})},getAddress:function(e){var r={id:e,type:"children"};return new o.a(function(a){Object(u.vb)(r).then(function(e){var r=[];e.data.map(function(e){e.children=[],r.push(e)}),a(r)})})},getDictDataListByKey:function(){var t=this;Object(u.Kb)({dictType:"sys_order_service_item"}).then(function(e){var a=[];t.serviceAsycType=[],e.data.items.map(function(e,r){a.push({value:e.dataKey,label:e.dataValue}),t.serviceAsycType[r]=e.dataKey}),t.serviceTypeOptions=a}).catch(function(e){})},getreserveInstallReasonOptionsByKey:function(){var a=this;Object(u.Kb)({dictType:"reserve_install_reason"}).then(function(e){var r=[];a.reserveInstallReasonAsycType=[],e.data.items.map(function(e){r.push({value:e.dataKey,label:e.dataValue}),a.reserveInstallReasonAsycType[e.dataKey]=e.dataValue}),a.reserveInstallReasonOptions=r}).catch(function(e){})},getEditDetail:function(){var l=this;Object(u.Ab)({conditions:this.params.orderCode}).then(function(e){if(l.loading=!1,e&&200==e.code){var r=e.data.items[0],a={orderSn:r.orderSn,orderStatus:1==r.canceled?l.CONSTANTSSTATUS[r.activeStatus]?l.CONSTANTSSTATUS[r.activeStatus].split(",")[0]:"":l.CONSTANTSSTATUS[9].split(",")[0],storeName:r.merchantName?r.merchantName:"",contactName:r.contact,contactPhone:r.phoneNumber,contactProvince:r.district?String(r.district):"",contactAddress:r.address,serviceDate:r.expectInstallTime?r.expectInstallTime.substring(0,16):"",quoteLastTime:r.quoteLastTime?r.quoteLastTime.substring(0,16):"",noPriceTime:r.noBidingDuration&&0!=r.canceled?r.noBidingDuration.split(":")[0]+"小时"+r.noBidingDuration.split(":")[1]+"分钟":"0小时0分钟",serviceType:r.serviceTypes?r.serviceTypes.split(","):"",referencePrice:r.referencePrice?r.referencePrice:0,carBrand:Number(r.carBrand)&&null!=r.carBrand?Number(r.carBrand):void 0,carSeries:Number(r.carSeries)&&null!=r.carSeries?Number(r.carSeries):void 0,carType:String(r.carType)&&"null"!=String(r.carType)?String(r.carType):"",remarkImages:r.files?r.files.split(","):[],carOwnName:r.carOwner,carOwnPhone:r.carOwnerPhone,reserveMan:r.reserveMan,reserveManPhone:r.reserveManPhone,reserveInstallTime:r.reserveInstallTime?r.reserveInstallTime.substring(0,16):"",reserveInstallReason:r.reserveInstallReason,deviceServer:r.serviceInfo?r.serviceInfo.name:"",deviceServerPhone:r.serviceInfo?r.serviceInfo.phone:"",deviceTechnician:r.machanicInfo?r.machanicInfo.name:"",deviceTechnicianPhone:r.machanicInfo?r.machanicInfo.phone:"",completeTime:r.completeTime,installRemark:r.installRemark,deviceImages:r.surroundingPicture?r.surroundingPicture.split(","):[]};r.carSeries&&l.getCarseriesList(r.carBrand),r.carType&&l.getCartypeList(r.carSeries);var t=i()({},l.ruleForm,a);l.$nextTick(function(){l.$set(l,"ruleForm",t)}),r.area&&(l.asycAddressModel=l.$Common.fliterAddress(r.area)[2],l.getAddress(0).then(function(e){l.asycOptions=e,l.$nextTick(function(){l.handleAsycChange(l.$Common.fliterAddress(r.area)[2].splice(0,1)).then(function(e){l.handleAsycChange(l.$Common.fliterAddress(r.area)[2].splice(0,2)).then(function(e){})})})}))}})},comfirmDetail:function(){var a=this;this.$refs.ruleForm.validate(function(e){if(e){var r={id:a.params.id,contact:a.ruleForm.contactName,phoneNumber:a.ruleForm.contactPhone,district:a.ruleForm.contactProvince,address:a.ruleForm.contactAddress,bidExpectInstallTime:a.ruleForm.serviceDate,quoteLastTime:a.ruleForm.quoteLastTime,serviceTypes:a.ruleForm.serviceType.join(","),referencePrice:a.ruleForm.referencePrice,carBrand:Number(a.ruleForm.carBrand),carSeries:Number(a.ruleForm.carSeries),carType:a.ruleForm.carType?String(a.ruleForm.carType):"",carOwner:a.ruleForm.carOwnName,carOwnerPhone:a.ruleForm.carOwnPhone,reserveMan:a.ruleForm.reserveMan,reserveManPhone:a.ruleForm.reserveManPhone,reserveInstallTime:a.ruleForm.reserveInstallTime,reserveInstallReason:a.ruleForm.reserveInstallReason,completeTime:a.ruleForm.completeTime,installRemark:a.ruleForm.installRemark};Object(u.x)(JSON.parse(l()(r))).then(function(e){e&&200==e.code&&(a.$message({type:"success",message:"编辑成功!"}),a.fn(!0))})}})},carBrandChange:function(){this.getCarseriesList(this.ruleForm.carBrand),this.ruleForm.carSeries=void 0,this.ruleForm.carType=""},carSeriesChange:function(){this.getCartypeList(this.ruleForm.carSeries),this.ruleForm.carType=""},getCarbrandList:function(){var a=this;Object(u.Db)().then(function(e){if(e&&200==e.code){var r=[];a.serviceAsycType=[],e.data.item.map(function(e){r.push({value:e.bid,label:e.brand}),a.serviceAsycType[e.dataKey]=e.dataValue}),a.carBrandOptions=r}})},getCarseriesList:function(e){var a=this;Object(u.Eb)({brandId:Number(e)}).then(function(e){if(e&&200==e.code){var r=[];a.serviceAsycType=[],e.data.item.map(function(e){r.push({value:e.csid,label:e.carseries}),a.serviceAsycType[e.dataKey]=e.dataValue}),a.carSeriesOptions=r}})},getCartypeList:function(e){var a=this;Object(u.Fb)({seriesId:Number(e)}).then(function(e){if(e&&200==e.code){var r=[];a.serviceAsycType=[],e.data.item.map(function(e){r.push({value:String(e.id),label:e.name}),a.serviceAsycType[e.dataKey]=e.dataValue}),a.carTypeOptions=r}})},getUserInfoForOrder:function(){switch(this.userType=this.$store.getters.navbarType,this.userType+""){case"0":this.CONSTANTSSTATUS=this.$Constants.ORDERALLSTATUS;break;case"1":this.CONSTANTSSTATUS=this.$Constants.ORDERSERVERSTATUS;break;case"2":this.CONSTANTSSTATUS=this.$Constants.ORDERSTORESTATUS}}}},v=(a("s8qa"),a("H84Z"),a("KHd+")),h=Object(v.a)(p,function(){var a=this,e=a.$createElement,t=a._self._c||e;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:a.loading,expression:"loading"}],staticClass:"detail-container-bidding",attrs:{"element-loading-text":"hard working..."}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:a.ruleForm,rules:a.rules,"label-width":"120px"}},[t("h3",[a._v("订单信息")]),a._v(" "),t("div",{staticClass:"h3_part"},[t("el-form-item",{attrs:{label:"订单编号",prop:"orderSn"}},[t("el-input",{attrs:{placeholder:a.rules.orderSn[0].placeholder,disabled:""},model:{value:a.ruleForm.orderSn,callback:function(e){a.$set(a.ruleForm,"orderSn",e)},expression:"ruleForm.orderSn"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"订单状态",prop:"orderStatus"}},[t("el-input",{attrs:{placeholder:a.rules.orderStatus[0].placeholder,disabled:""},model:{value:a.ruleForm.orderStatus,callback:function(e){a.$set(a.ruleForm,"orderStatus",e)},expression:"ruleForm.orderStatus"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"店面名称",prop:"storeName"}},[t("el-input",{attrs:{placeholder:a.rules.storeName[0].placeholder,disabled:""},model:{value:a.ruleForm.storeName,callback:function(e){a.$set(a.ruleForm,"storeName",e)},expression:"ruleForm.storeName"}})],1),a._v(" "),t("el-form-item",{staticClass:"width-50 pr-0",attrs:{label:"联系人",prop:"contactName"}},[t("el-input",{attrs:{placeholder:a.rules.contactName[0].placeholder,disabled:a.isDisabled},model:{value:a.ruleForm.contactName,callback:function(e){a.$set(a.ruleForm,"contactName",e)},expression:"ruleForm.contactName"}})],1),a._v(" "),t("el-form-item",{staticClass:"width-50 pl-0",attrs:{label:"联系方式",prop:"contactPhone"}},[t("el-input",{attrs:{placeholder:a.rules.contactPhone[0].placeholder,disabled:a.isDisabled},model:{value:a.ruleForm.contactPhone,callback:function(e){a.$set(a.ruleForm,"contactPhone",e)},expression:"ruleForm.contactPhone"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"所在城区",prop:"contactProvince"}},[t("el-cascader",{attrs:{disabled:a.isDisabled,options:a.asycOptions,"change-on-select":!0,props:a.asycAddressProps,placeholder:a.rules.contactProvince[0].placeholder},on:{change:a.handleAsycChange,"expand-change":a.handleAsycChange},model:{value:a.asycAddressModel,callback:function(e){a.asycAddressModel=e},expression:"asycAddressModel"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"详细地址",prop:"contactAddress"}},[t("el-input",{attrs:{type:"textarea",placeholder:a.rules.contactAddress[0].placeholder,disabled:a.isDisabled},model:{value:a.ruleForm.contactAddress,callback:function(e){a.$set(a.ruleForm,"contactAddress",e)},expression:"ruleForm.contactAddress"}})],1),a._v(" "),t("el-form-item",{staticClass:"width-50 pr-0",attrs:{label:"期望上门时间",prop:"serviceDate"}},[t("el-date-picker",{attrs:{placeholder:a.rules.serviceDate[0].placeholder,"picker-options":a.pickerOption,type:"datetime",format:"yyyy-MM-dd HH:mm","value-format":"yyyy-MM-dd HH:mm",disabled:a.isDisabled},model:{value:a.ruleForm.serviceDate,callback:function(e){a.$set(a.ruleForm,"serviceDate",e)},expression:"ruleForm.serviceDate"}})],1),a._v(" "),t("el-form-item",{staticClass:"width-50 pl-0",attrs:{label:"报价截止时间",prop:"quoteLastTime"}},[t("el-date-picker",{attrs:{placeholder:a.rules.quoteLastTime[0].placeholder,"picker-options":a.pickerOption,type:"datetime",format:"yyyy-MM-dd HH:mm","value-format":"yyyy-MM-dd HH:mm",disabled:a.isDisabled},model:{value:a.ruleForm.quoteLastTime,callback:function(e){a.$set(a.ruleForm,"quoteLastTime",e)},expression:"ruleForm.quoteLastTime"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"无人报价时长",prop:"noPriceTime"}},[t("el-input",{attrs:{disabled:""},model:{value:a.ruleForm.noPriceTime,callback:function(e){a.$set(a.ruleForm,"noPriceTime",e)},expression:"ruleForm.noPriceTime"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"服务类型",prop:"serviceType"}},[t("el-checkbox-group",{attrs:{disabled:a.isDisabled},model:{value:a.ruleForm.serviceType,callback:function(e){a.$set(a.ruleForm,"serviceType",e)},expression:"ruleForm.serviceType"}},a._l(a.serviceTypeOptions,function(e,r){return t("el-checkbox",{key:r,attrs:{label:e.value,name:"type"}},[a._v("\n "+a._s(e.label)+"\n ")])}))],1),a._v(" "),t("el-form-item",{attrs:{label:"参考价格(元)",prop:"referencePrice"}},[t("el-input-number",{attrs:{"controls-position":"right",min:0,max:1e6,precision:0,step:100,size:"small",disabled:a.isDisabled},model:{value:a.ruleForm.referencePrice,callback:function(e){a.$set(a.ruleForm,"referencePrice",e)},expression:"ruleForm.referencePrice"}})],1),a._v(" "),t("el-form-item",{staticClass:"width-50 pad-r-0",attrs:{label:"品牌车型",prop:"carBrand"}},[t("el-select",{attrs:{disabled:a.isDisabled,placeholder:a.rules.carBrand[0].placeholder},on:{change:a.carBrandChange},model:{value:a.ruleForm.carBrand,callback:function(e){a.$set(a.ruleForm,"carBrand",e)},expression:"ruleForm.carBrand"}},a._l(a.carBrandOptions,function(e,r){return t("el-option",{key:r,attrs:{label:e.label,value:e.value}})}))],1),a._v(" "),t("el-form-item",{staticClass:"width-20 car-style",attrs:{prop:"carSeries"}},[t("el-select",{attrs:{disabled:a.isDisabled,placeholder:a.rules.carSeries[0].placeholder},on:{change:a.carSeriesChange},model:{value:a.ruleForm.carSeries,callback:function(e){a.$set(a.ruleForm,"carSeries",e)},expression:"ruleForm.carSeries"}},a._l(a.carSeriesOptions,function(e,r){return t("el-option",{key:r,attrs:{label:e.label,value:e.value}})}))],1),a._v(" "),t("el-form-item",{staticClass:"width-20 car-style",attrs:{prop:"carType"}},[t("el-select",{attrs:{disabled:a.isDisabled,placeholder:a.rules.carType[0].placeholder},model:{value:a.ruleForm.carType,callback:function(e){a.$set(a.ruleForm,"carType",e)},expression:"ruleForm.carType"}},a._l(a.carTypeOptions,function(e,r){return t("el-option",{key:r,attrs:{label:e.label,value:e.value}})}))],1),a._v(" "),t("el-form-item",{staticClass:"width-90",attrs:{label:"备注照片"}},a._l(a.ruleForm.remarkImages,function(e,r){return t("el-image",{key:r,staticStyle:{width:"100px",height:"100px","margin-right":"12px"},attrs:{fit:"contain",src:e,"preview-src-list":[e]}})}))],1),a._v(" "),t("h3",[a._v("对接人信息")]),a._v(" "),t("div",{staticClass:"h3_part"},[t("el-form-item",{staticClass:"width-50 pr-0",attrs:{label:"对接人姓名",prop:"carOwnName"}},[t("el-input",{attrs:{placeholder:a.rules.carOwnName[0].placeholder,disabled:a.isDisabled},model:{value:a.ruleForm.carOwnName,callback:function(e){a.$set(a.ruleForm,"carOwnName",e)},expression:"ruleForm.carOwnName"}})],1),a._v(" "),t("el-form-item",{staticClass:"width-50 pl-0",attrs:{label:"对接人电话",prop:"carOwnPhone"}},[t("el-input",{attrs:{placeholder:a.rules.carOwnPhone[0].placeholder,disabled:a.isDisabled},model:{value:a.ruleForm.carOwnPhone,callback:function(e){a.$set(a.ruleForm,"carOwnPhone",e)},expression:"ruleForm.carOwnPhone"}})],1)],1),a._v(" "),7==a.params.activeStatus||8==a.params.activeStatus?[t("h3",[a._v("预约信息")]),a._v(" "),t("div",{staticClass:"h3_part"},[t("el-form-item",{staticClass:"width-50 pr-0",attrs:{label:"预约人",prop:"reserveMan"}},[t("el-input",{attrs:{placeholder:a.rules.reserveMan[0].placeholder,disabled:a.isDisabled},model:{value:a.ruleForm.reserveMan,callback:function(e){a.$set(a.ruleForm,"reserveMan",e)},expression:"ruleForm.reserveMan"}})],1),a._v(" "),t("el-form-item",{staticClass:"width-50 pl-0",attrs:{label:"联系方式",prop:"reserveManPhone"}},[t("el-input",{attrs:{placeholder:a.rules.reserveManPhone[0].placeholder,disabled:a.isDisabled},model:{value:a.ruleForm.reserveManPhone,callback:function(e){a.$set(a.ruleForm,"reserveManPhone",e)},expression:"ruleForm.reserveManPhone"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"预约上门时间",prop:"reserveInstallTime"}},[t("el-date-picker",{attrs:{placeholder:a.rules.reserveInstallTime[0].placeholder,"picker-options":a.pickerOption,type:"datetime",format:"yyyy-MM-dd HH:mm","value-format":"yyyy-MM-dd HH:mm",disabled:a.isDisabled},model:{value:a.ruleForm.reserveInstallTime,callback:function(e){a.$set(a.ruleForm,"reserveInstallTime",e)},expression:"ruleForm.reserveInstallTime"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"预约备注",prop:"reserveInstallReason"}},[t("el-select",{attrs:{placeholder:a.rules.reserveInstallReason[0].placeholder,disabled:a.isDisabled},model:{value:a.ruleForm.reserveInstallReason,callback:function(e){a.$set(a.ruleForm,"reserveInstallReason",e)},expression:"ruleForm.reserveInstallReason"}},a._l(a.reserveInstallReasonOptions,function(e,r){return t("el-option",{key:r,attrs:{label:e.label,value:e.value}})}))],1)],1)]:a._e(),a._v(" "),t("h3",[a._v("安装信息")]),a._v(" "),t("div",{staticClass:"h3_part"},[t("el-form-item",{staticClass:"width-50 pr-0",attrs:{label:"服务商",prop:"deviceServer"}},[t("el-input",{attrs:{placeholder:a.rules.deviceServer[0].placeholder,disabled:""},model:{value:a.ruleForm.deviceServer,callback:function(e){a.$set(a.ruleForm,"deviceServer",e)},expression:"ruleForm.deviceServer"}})],1),a._v(" "),t("el-form-item",{staticClass:"width-50 pl-0",attrs:{label:"联系方式",prop:"deviceServerPhone"}},[t("el-input",{attrs:{placeholder:a.rules.deviceServerPhone[0].placeholder,disabled:""},model:{value:a.ruleForm.deviceServerPhone,callback:function(e){a.$set(a.ruleForm,"deviceServerPhone",e)},expression:"ruleForm.deviceServerPhone"}})],1),a._v(" "),6==a.params.activeStatus||7==a.params.activeStatus||8==a.params.activeStatus?[t("el-form-item",{staticClass:"width-50 pr-0",attrs:{label:"技工",prop:"deviceTechnician"}},[t("el-input",{attrs:{placeholder:a.rules.deviceTechnician[0].placeholder,disabled:""},model:{value:a.ruleForm.deviceTechnician,callback:function(e){a.$set(a.ruleForm,"deviceTechnician",e)},expression:"ruleForm.deviceTechnician"}})],1),a._v(" "),t("el-form-item",{staticClass:"width-50 pl-0",attrs:{label:"联系方式",prop:"deviceTechnicianPhone"}},[t("el-input",{attrs:{placeholder:a.rules.deviceTechnicianPhone[0].placeholder,disabled:""},model:{value:a.ruleForm.deviceTechnicianPhone,callback:function(e){a.$set(a.ruleForm,"deviceTechnicianPhone",e)},expression:"ruleForm.deviceTechnicianPhone"}})],1)]:a._e(),a._v(" "),8==a.params.activeStatus?[t("el-form-item",{staticClass:"width-50 pr-0",attrs:{label:"完成时间",prop:"completeTime"}},[t("el-date-picker",{attrs:{placeholder:a.rules.completeTime[0].placeholder,"picker-options":a.pickerOption,type:"datetime",format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-dd HH-mm-ss",disabled:""},model:{value:a.ruleForm.completeTime,callback:function(e){a.$set(a.ruleForm,"completeTime",e)},expression:"ruleForm.completeTime"}})],1),a._v(" "),t("el-form-item",{staticClass:"textarea_form",attrs:{label:"备注",prop:"installRemark"}},[t("el-input",{attrs:{placeholder:a.rules.installRemark[0].placeholder,type:"textarea",disabled:""},model:{value:a.ruleForm.installRemark,callback:function(e){a.$set(a.ruleForm,"installRemark",e)},expression:"ruleForm.installRemark"}})],1),a._v(" "),t("el-form-item",{staticClass:"width-90",attrs:{label:"安装照片"}},a._l(a.ruleForm.deviceImages,function(e,r){return t("el-image",{key:r,staticStyle:{width:"100px",height:"100px","margin-right":"12px"},attrs:{fit:"contain",src:e,"preview-src-list":[e]}})}))]:a._e()],2)],2)],1)},[],!1,null,"0bb15140",null);h.options.__file="detail.vue",r.default=h.exports},H84Z:function(e,r,a){"use strict";var t=a("JJJq");a.n(t).a},JJJq:function(e,r,a){},WEEz:function(e,r,a){"use strict";var t=a("Kw5r");t.default.directive("dialogDrag",{bind:function(e,r,a,t){var n,o,c=-1<e.className.indexOf("dialogDragNoHeader")?e.querySelector(".el-tabs__header"):e.querySelector(".el-dialog__header");if(n="el-tabs__header is-top"==c.className?(o=!0,document.querySelectorAll(".el-dialog")[r.value]):(o=!1,e.querySelector(".el-dialog")),c.style.cursor="move",n){var d=n&&n.currentStyle||window.getComputedStyle(n,null);c.onmousedown=function(e){var t=e.clientX-(o?0:c.offsetLeft),l=e.clientY-(o?0:c.offsetTop),s=void 0,i=void 0;i=d.left.includes("%")?(s=+document.body.clientWidth*(+d.left.replace(/\%/g,"")/100),+document.body.clientHeight*(+d.top.replace(/\%/g,"")/100)):(s=+d.left.replace(/\px/g,""),+d.top.replace(/\px/g,"")),document.onmousemove=function(e){var r=e.clientX-t,a=e.clientY-l;n.style.left=r+s+"px",n.style.top=a+i+"px"},document.onmouseup=function(e){document.onmousemove=null,document.onmouseup=null}}}}}),t.default.directive("dialogDragWidth",{bind:function(r,e,a,t){var l=e.value.$el.querySelector(".el-dialog");r.onmousedown=function(e){var a=e.clientX-r.offsetLeft;document.onmousemove=function(e){e.preventDefault();var r=e.clientX-a;l.style.width=r+"px"},document.onmouseup=function(e){document.onmousemove=null,document.onmouseup=null}}}})},m1cH:function(e,r,a){"use strict";r.__esModule=!0;var t,l=(t=a("rfXi"))&&t.__esModule?t:{default:t};r.default=function(e){if(Array.isArray(e)){for(var r=0,a=Array(e.length);r<e.length;r++)a[r]=e[r];return a}return(0,l.default)(e)}},s8qa:function(e,r,a){"use strict";var t=a("xslt");a.n(t).a},xslt:function(e,r,a){}}]);