(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-todo-repairDispatch-repairDispatchDetail-repairDispatchDetail"],{"0f6b":function(e,t,i){var a=i("24fb");t=a(!1),t.push([e.i,".gui-flex[data-v-02c438ce]{display:-webkit-box;display:-webkit-flex;display:flex}.row[data-v-02c438ce]{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row}.column[data-v-02c438ce]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.wrap[data-v-02c438ce]{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;flex-wrap:wrap}.nowrap[data-v-02c438ce]{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-flex-wrap:nowrap;flex-wrap:nowrap}.space-between[data-v-02c438ce]{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.left[data-v-02c438ce]{-webkit-box-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start}.right[data-v-02c438ce]{-webkit-box-pack:end;-webkit-justify-content:flex-end;justify-content:flex-end}.xcenter[data-v-02c438ce]{-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.xreverse[data-v-02c438ce]{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-webkit-flex-direction:row-reverse;flex-direction:row-reverse}.top[data-v-02c438ce]{-webkit-box-align:start;-webkit-align-items:flex-start;align-items:flex-start}.ycenter[data-v-02c438ce]{-webkit-box-align:center;-webkit-align-items:center;align-items:center}.bottom[data-v-02c438ce]{-webkit-box-align:end;-webkit-align-items:flex-end;align-items:flex-end}",""]),e.exports=t},2102:function(e,t,i){"use strict";var a=i("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(i("3fe5")),n=a(i("2e9e")),s=a(i("ed72")),o={data:function(){return{g_username:"",g_employeName:"Epans",g_employeId:"",today_now:"",isbtn:"yes",dataValue:{},pickerArr3:[{name:"",id:""}],index3:0,pickerId3:"",pickerArr4:[{empname:"",id:""}],index4:0,pickerId4:""}},onLoad:function(e){var t=this,i=uni.getStorageSync("g_employeName");t.g_employeName=i,console.log(e);var a=JSON.parse(e.all);this.dataValue=a,console.log(a);a.deptId,e.isbtn;t.isbtn=e.isbtn,t.road_name_id_time_data();var r="/authdata/GetDataByName",n=uni.getStorageSync("g_pastureId"),s={name:"getRepirsdept",parammaps:{pastureId:n}};t.ajax(r,s,"POST",t.get_selectlist_data3)},onBackPress:function(){return uni.navigateTo({url:"/pages/todo/repairDispatch/repairDispatch"}),!0},methods:{road_name_id_time_data:function(e){var t=this,i=t.get_today_now(),a=uni.getStorageSync("g_username"),r=uni.getStorageSync("g_employeId");t.dataValue.g_username=a,t.g_username=a,t.g_employeId=r,t.today_now=i},bindPickerChange1:function(e){var t=e.target.value;this.index1=t,console.log("派单人下拉框改变,携带值为:"+t);var i=this.pickerArr1[t]["id"];console.log("派单人下拉框选中的ID值:"+i),this.pickerId1=i,this.dataValue.employeId=i},bindPickerChange4:function(e){var t=e.target.value;this.index4=t,console.log("维修人下拉框改变,携带值为:"+t);var i=this.pickerArr4[t]["id"];console.log("维修人下拉框选中的ID值:"+i),this.pickerId4=i},bindPickerChange3:function(e){var t=this,i=e.target.value;this.index3=i,console.log("部门下拉框改变,携带值为:"+i);var a=this.pickerArr3[i]["id"];console.log("部门下拉框选中的ID值:"+a),this.pickerId3=a;var r=uni.getStorageSync("g_pastureId"),n="/authdata/GetDataByName",s={name:"getRepirsEmp",parammaps:{pastureId:r,deptid:a}};t.ajax(n,s,"POST",t.get_selectlist_data4)},formSubmit:function(e){var t=this,i=uni.getStorageSync("g_employeId"),a={name:"setRepirsEmp",parammaps:{id:t.dataValue.id,repairDept:t.pickerId3,pickId:t.pickerId4,chargeDate:t.today_now,chargeId:i}};console.log("发送数据:"+JSON.stringify(a)),t.ajax("/authdata/GetDataByName",a,"POST",t.get_edit_status)},formCancel:function(e){uni.navigateBack({delta:1})},get_selectlist_data3:function(e){var t=this;if(console.log("部位下拉框列表数据:",e),null===e.data.list)uni.showToast({title:"部位下拉框获取数据为空",duration:2e3,icon:"none"});else{this.pickerArr3=e.data.list;var i=e.data.list[0].id,a=uni.getStorageSync("g_pastureId");t.pickerId3=i;var r="/authdata/GetDataByName",n={name:"getRepirsEmp",parammaps:{pastureId:a,deptid:i}};t.ajax(r,n,"POST",t.get_selectlist_data4)}},get_selectlist_data4:function(e){console.log("部位详情下拉框列表数据:",e),null===e.data.list?uni.showToast({title:"部位详情下拉框获取数据为空",duration:2e3,icon:"none"}):(this.pickerArr4=e.data.list,this.pickerId4=e.data.list[0].id)},get_edit_status:function(e){if(console.log("保存状态:",e),"ok"==e.msg)uni.showToast({title:"保存成功",duration:500,icon:"none",success:function(e){setTimeout((function(){uni.navigateTo({url:"/pages/todo/repairDispatch/repairDispatch"})}),1e3)}});else{var t=e.data;uni.showToast({title:"保存失败"+t,duration:2e3,icon:"none"})}}},components:{gracePage:r.default,graceFlex:n.default,graceSelectImgAndUpload:s.default}};t.default=o},"2dfb":function(e,t,i){"use strict";var a=i("62c0"),r=i.n(a);r.a},"2e9e":function(e,t,i){"use strict";i.r(t);var a=i("fbdf"),r=i("8080");for(var n in r)"default"!==n&&function(e){i.d(t,e,(function(){return r[e]}))}(n);i("b722");var s,o=i("f0c5"),c=Object(o["a"])(r["default"],a["b"],a["c"],!1,null,"02c438ce",null,!1,a["a"],s);t["default"]=c.exports},3232:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a={props:{classes:{type:Array,default:function(){return new Array}}}};t.default=a},"34d8":function(e,t,i){"use strict";i.r(t);var a=i("57ee"),r=i.n(a);for(var n in a)"default"!==n&&function(e){i.d(t,e,(function(){return a[e]}))}(n);t["default"]=r.a},3900:function(e,t,i){var a=i("aabb");"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var r=i("4f06").default;r("035303f2",a,!0,{sourceMap:!1,shadowMode:!1})},"3fe5":function(e,t,i){"use strict";i.r(t);var a=i("f19a"),r=i("84c7");for(var n in r)"default"!==n&&function(e){i.d(t,e,(function(){return r[e]}))}(n);i("2dfb");var s,o=i("f0c5"),c=Object(o["a"])(r["default"],a["b"],a["c"],!1,null,"68be4825",null,!1,a["a"],s);t["default"]=c.exports},"451a":function(e,t,i){"use strict";i("c975"),i("a9e3"),i("ac1f"),i("5319"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a={props:{customHeader:{type:Boolean,default:!0},headerHeight:{type:Number,default:44},headerIndex:{type:Number,default:999},headerBG:{type:String,default:"none"},statusBarBG:{type:String,default:"none"},footerIndex:{type:Number,default:999},footerBg:{type:String,default:""},isSwitchPage:{type:Boolean,default:!1},rbWidth:{type:Number,default:100},rbBottom:{type:Number,default:100},rbRight:{type:Number,default:20}},data:function(){return{statusBarHeight:0,iphoneXButtomHeight:0,BoundingWidth:"0px"}},created:function(){try{var e=uni.getSystemInfoSync();e.model=e.model.replace(" ",""),-1!=e.model.indexOf("iPhoneX")&&(this.iphoneXButtomHeight=uni.upx2px(50))}catch(t){return null}this.customHeader&&(this.statusBarHeight=e.statusBarHeight)}};t.default=a},"57ee":function(e,t,i){"use strict";i("a434"),i("a9e3"),i("ac1f"),i("5319"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a={props:{maxFileNumber:{type:Number,default:9},btnName:{type:String,default:"添加照片"},items:{type:Array,default:function(){return[]}},closeBtnColor:{type:String,default:"#666666"},uploadServerUrl:{type:String,default:""},progressSize:{type:Number,default:1},progressColor:{type:String,default:"#27BD81"},progressBGColor:{type:String,default:"#F8F8F8"},fileName:{type:String,default:"file"},formData:{type:Object,default:function(){return{}}},imgMode:{type:String,default:"widthFix"},header:{type:Object,default:function(){return{optname:"insertcustompic",token:uni.getStorageSync("g_token")}}}},data:function(){return{imgLists:[],updatting:!1,resArr:[],isDel:!1,isDelIndex:0}},watch:{imgLists:function(e,t){this.updatting||this.$emit("change",e,this.isDel,this.isDelIndex)}},methods:{clearAllImgs:function(){this.imgLists=[]},addImg:function(){var e=this,t=this.maxFileNumber-this.imgLists.length;if(t<1)return!1;uni.chooseImage({count:t,sizeType:["compressed"],success:function(t){for(var i=0;ithis.imgLists.length-1)return console.log("res",t),uni.hideLoading(),this.updatting=!1,this.$emit("uploaded",this.resArr),void this.resArr.splice(0);if(""!=this.uploadServerUrl)if(this.imgLists[e].progress>=1)this.uploadBase(e+1,t);else{this.imgLists[e].error=!1;var a=uni.uploadFile({url:this.uploadServerUrl,filePath:this.imgLists[e].url,name:this.fileName,formData:this.formData,header:this.header,success:function(t){t=JSON.parse(t.data);var a=t.execresult;console.log(t),i.imgLists[e].result=t,i.uploadBase(e+1,a)},fail:function(t){uni.showToast({title:"上传失败,请点击图片重试",icon:"none"}),i.error(e)}});a.onProgressUpdate((function(t){t.progress>0&&(i.imgLists[e].progress=t.progress,i.imgLists.splice(e,1,i.imgLists[e]))}))}else uni.showToast({title:"请设置上传服务器地址",icon:"none"})},error:function(e){var t=this;this.updatting=!1,setTimeout((function(){t.imgLists[e].progress=0,t.imgLists[e].error=!0,t.$emit("uploaderror")}),500)},setItems:function(e){this.imgLists=[];for(var t=0;t