(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-todo-repair-repairDetail-repairDetailListEditFault-repairDetailListEditFault"],{"2d82":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,".input-bx[data-v-5c303266]{height:auto;background:#fff;padding:0 %?30?%}.btn-bx[data-v-5c303266]{display:-webkit-box;display:-webkit-flex;display:flex;-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;padding:%?30?% 0}.btn-sub[data-v-5c303266]{width:%?290?%;height:%?86?%;border-radius:%?10?%;background:#169bd5;font-size:%?32?%;color:#fff}.btn-res[data-v-5c303266]{width:%?290?%;height:%?86?%;border-radius:%?10?%;background:#f60;font-size:%?32?%;color:#fff}.choose-bx[data-v-5c303266]{height:%?700?%;width:100%;background:#fff}.detail-bx[data-v-5c303266]{padding:%?0?% %?20?%;border:1px solid #acacac}.li-item[data-v-5c303266]{height:auto;border-bottom:%?1?% solid #ccc;display:-webkit-box;display:-webkit-flex;display:flex;-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;padding:%?10?% %?30?%;line-height:1.8;vertical-align:bottom;background:#fff}.li-title[data-v-5c303266]{font-size:%?30?%;color:#666;width:%?440?%}.li-date[data-v-5c303266]{font-size:%?30?%;color:#666}.detail-li[data-v-5c303266]{width:100%;height:auto;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;border-bottom:%?1?% solid #d3d3d3;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;box-sizing:border-box;padding-bottom:%?80?%}.detli-tt[data-v-5c303266]{font-size:%?30?%;color:#666;margin-left:%?20?%;display:block;width:100%;height:auto;padding:%?10?% 0}.ipt-input[data-v-5c303266]{width:%?200?%;height:%?50?%;border:1px solid #acacac;font-size:%?30?%;color:#666;margin-top:%?20?%;display:inline-block}.btn-del[data-v-5c303266]{width:%?200?%;height:%?80?%;border-radius:%?10?%;background:#f60;font-size:%?32?%;color:#fff;position:absolute;right:0;bottom:%?-80?%}.btn-bx[data-v-5c303266]{display:-webkit-box;display:-webkit-flex;display:flex;-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;width:100%;margin-top:%?80?%}.btn-sub[data-v-5c303266]{width:%?290?%;height:%?86?%;border-radius:%?10?%;background:#169bd5;font-size:%?32?%;color:#fff}.btn-res[data-v-5c303266]{width:%?290?%;height:%?86?%;border-radius:%?10?%;background:#f60;font-size:%?32?%;color:#fff}.li-item2[data-v-5c303266]{height:%?90?%;border-bottom:%?1?% solid #ccc;display:-webkit-box;display:-webkit-flex;display:flex;-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;margin:%?0?% %?30?%;line-height:3;vertical-align:bottom}.li-hd2[data-v-5c303266]{font-size:%?30?%;color:#666;font-weight:700}.li-bd2[data-v-5c303266]{font-size:%?30?%;color:#666}.demo-msg[data-v-5c303266]{width:100%;padding:%?40?%;background:#fff}.close-btn[data-v-5c303266]{width:%?80?%;height:%?80?%;line-height:%?80?%;text-align:center;font-size:%?40?%;z-index:7}.grace-scroll-y[data-v-5c303266]{height:%?800?%;width:100%}",""]),t.exports=e},3389:function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,".gui-search[data-v-5dedde33]{background:#fff;border-radius:%?66?%;box-sizing:border-box;padding:0 %?10?%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-align:center;-webkit-align-items:center;align-items:center;overflow:hidden}.gui-search-icon[data-v-5dedde33]{text-align:center;-webkit-flex-shrink:0;flex-shrink:0}.gui-search-input[data-v-5dedde33]{width:%?600?%;margin:0 %?10?%;border:none;padding:0}",""]),t.exports=e},"3b3e":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={props:{height:{type:String,default:"60rpx"},background:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"28rpx"},iconWidth:{type:String,default:"60rpx"},iconColor:{type:String,default:"#A5A7B2"},iconFontSize:{type:String,default:"30rpx"},inputHeight:{type:String,default:"30rpx"},inputFontSize:{type:String,default:"26rpx"},placeholder:{type:String,default:"关键字"},kwd:{type:String,default:""}},data:function(){return{inputVal:""}},created:function(){this.inputVal=this.kwd},methods:{clearKwd:function(){this.inputVal="",this.$emit("clear","")},inputting:function(t){this.$emit("inputting",t.detail.value)},confirm:function(t){this.$emit("confirm",t.detail.value)}}};e.default=a},4567:function(t,e,i){"use strict";var a;i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return a}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"page"},[i("v-uni-view",{staticClass:"input-bx"},[i("v-uni-form",{staticClass:"grace-form grace-margin-top",on:{submit:function(e){arguments[0]=e=t.$handleEvent(e),t.formSubmitNew.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"grace-items"},[i("v-uni-view",{staticClass:"grace-label grace-bold"},[t._v("故障部位")]),i("v-uni-view",{staticClass:"other"},[i("v-uni-picker",{attrs:{value:t.index3,range:t.pickerArr3,"range-key":"positionName",name:"picker"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.bindPickerChange3.apply(void 0,arguments)}}},[i("v-uni-text",[t._v(t._s(t.pickerArr3[t.index3].positionName))])],1)],1)],1),i("v-uni-view",{staticClass:"grace-items"},[i("v-uni-view",{staticClass:"grace-label grace-bold"},[t._v("故障详情")]),i("v-uni-view",{staticClass:"other"},[i("v-uni-picker",{attrs:{value:t.index4,range:t.pickerArr4,"range-key":"appearanceName",name:"picker"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.bindPickerChange4.apply(void 0,arguments)}}},[i("v-uni-text",[t._v(t._s(t.pickerArr4[t.index4].appearanceName))])],1)],1)],1)],1)],1),i("v-uni-view",{staticClass:"grace-title grace-border-b",staticStyle:{margin:"0 20upx"}},[i("v-uni-text",{staticClass:"grace-icons icon-article icon grace-blue"}),i("v-uni-text",{staticClass:"title grace-black"},[t._v("维修")])],1),i("v-uni-view",{staticClass:"input-bx"},[i("v-uni-form",{staticClass:"grace-form grace-margin-top",on:{submit:function(e){arguments[0]=e=t.$handleEvent(e),t.formSubmit.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"equit-bx"},[i("v-uni-view",{staticClass:"detail-bx"},[t._l(t.detailList,(function(e,a){return[i("v-uni-view",{staticClass:"detail-li",attrs:{"data-index":a},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onDetailListTap.apply(void 0,arguments)}}},[i("v-uni-view",{staticStyle:{width:"100%",position:"relative"}},[i("v-uni-text",{staticClass:"detli-tt"},[t._v("故障部位: "+t._s(e.positionName))]),i("v-uni-text",{staticClass:"detli-tt"},[t._v("故障详情:")]),i("v-uni-view",{staticClass:"detli-tt"},[i("v-uni-textarea",{attrs:{placeholder:"请输入.....",name:"appearanceName","data-index":a},on:{input:function(e){arguments[0]=e=t.$handleEvent(e),t.bindTextChange.apply(void 0,arguments)}},model:{value:e.appearanceName,callback:function(i){t.$set(e,"appearanceName",i)},expression:"item.appearanceName"}})],1),i("v-uni-text",{staticClass:"detli-tt"},[t._v("故障原因:")]),i("v-uni-view",{staticClass:"detli-tt"},[i("v-uni-textarea",{attrs:{placeholder:"请输入.....",name:"failureCause","data-index":a,"auto-height":!0},on:{input:function(e){arguments[0]=e=t.$handleEvent(e),t.on_fail_tap.apply(void 0,arguments)}},model:{value:e.failureCause,callback:function(i){t.$set(e,"failureCause",i)},expression:"item.failureCause"}})],1),i("v-uni-text",{staticClass:"detli-tt"},[t._v("处理方式:")]),i("v-uni-view",{staticClass:"detli-tt"},[i("v-uni-textarea",{attrs:{placeholder:"请输入.....",name:"treatmentMethod","data-index":a,"auto-height":!0},on:{input:function(e){arguments[0]=e=t.$handleEvent(e),t.on_method_tap.apply(void 0,arguments)}},model:{value:e.treatmentMethod,callback:function(i){t.$set(e,"treatmentMethod",i)},expression:"item.treatmentMethod"}})],1),i("v-uni-button",{directives:[{name:"show",rawName:"v-show",value:"yes"==t.isbtn,expression:"isbtn == 'yes'"}],staticClass:"btn-del",attrs:{"data-index":a},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onDeleteTap.apply(void 0,arguments)}}},[t._v("删除")])],1)],1)]}))],2)],1),i("v-uni-view",{staticClass:"btn-bx"},[i("v-uni-button",{directives:[{name:"show",rawName:"v-show",value:"yes"==t.isbtn,expression:"isbtn == 'yes'"}],staticClass:"btn-sub",attrs:{formType:"submit"}},[t._v("确定")]),i("v-uni-button",{staticClass:"btn-sub",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.on_cancel_tap.apply(void 0,arguments)}}},[t._v("取消")])],1)],1)],1)],1)},o=[]},"618e":function(t,e,i){var a=i("3389");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("d6865264",a,!0,{sourceMap:!1,shadowMode:!1})},"6c9b":function(t,e,i){"use strict";i.r(e);var a=i("ad69"),n=i("9673");for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("9cfd");var r,s=i("f0c5"),d=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,"5dedde33",null,!1,a["a"],r);e["default"]=d.exports},"758b":function(t,e,i){"use strict";i.r(e);var a=i("4567"),n=i("da20");for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("9e51");var r,s=i("f0c5"),d=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,"5c303266",null,!1,a["a"],r);e["default"]=d.exports},9673:function(t,e,i){"use strict";i.r(e);var a=i("3b3e"),n=i.n(a);for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);e["default"]=n.a},"9cbb":function(t,e,i){"use strict";var a=i("4ea4");i("a434"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(i("3423")),o=a(i("3fe5")),r=a(i("2e9e")),s=a(i("ed72")),d=a(i("3bab")),l=a(i("6c9b")),c={data:function(){return{searchValue:"",g_username:"epans",g_employeName:"Epans",g_employeId:"2",today_now:"2019-12-01",id:"",isShowChooseBx:!1,orderCode:" ",pickerArr3:[{positionName:"",id:""}],index3:0,pickerArr4:[{name:"",id:""}],index4:0,detailList:[]}},onLoad:function(t){var e=this,i=uni.getStorageSync("g_employeName"),a=uni.getStorageSync("g_pastureId");e.g_employeName=i;t.isbtn;e.isbtn=t.isbtn,console.log(t);var n=JSON.parse(t.all);console.log(n);var o=n.id;e.id=o;var r=n.eqId;e.eqId=r,this.dataValue=n,this.all=n,e.road_name_id_time_data();var s="/authdata/GetDataByName",d={name:"getmaintainappearance",parammaps:{maintainId:o,pastureId:a}};e.ajax(s,d,"POST",e.get_detailList_data);var l="/authdata/GetDataByName",c=(a=uni.getStorageSync("g_pastureId"),{name:"geteqPosition",parammaps:{eqId:r,pastureId:a}});e.ajax(l,c,"POST",e.get_selectlist_data3),e.road_name_id_time_data()},onBackPress:function(){var t=this.isbtn;return uni.navigateTo({url:"/pages/todo/repairDetail/repairDetail?&isbtn="+t}),!0},methods:{road_name_id_time_data:function(t){var e=this,i=e.get_today_now(),a=uni.getStorageSync("g_username"),n=uni.getStorageSync("g_employeId");e.dataValue.g_username=a,e.g_username=a,e.g_employeId=n,e.today_now=i},bindPickerChange4:function(t){var e=t.target.value;this.index4=e,console.log("维修人下拉框改变,携带值为:"+e);var i=this.pickerArr4[e]["id"];console.log("维修人下拉框选中的ID值:"+i),this.pickerId4=i;var a=this.pickerArr3[this.index3],n=this.pickerArr4[e],o={repirsTime:new Date,maintainId:this.id},r=Object.assign({},n,a,o);r=Object.assign({},n,a,o);console.log(r);var s=this.detailList;s.push(r),this.detailList=s},bindPickerChange3:function(t){var e=this,i=t.target.value;this.index3=i,console.log("部门下拉框改变,携带值为:"+i);var a=this.pickerArr3[i]["id"];console.log("部门下拉框选中的ID值:"+a),this.pickerId3=a;var n=uni.getStorageSync("g_pastureId"),o="/authdata/GetDataByName",r={name:"getAppearancebyPid",parammaps:{pastureId:n,id:a}};e.ajax(o,r,"POST",e.get_selectlist_data4)},closeShade:function(){this.isShowChooseBx=!1},bindTextChange:function(t){console.log(t);var e=this,i=t.detail.value,a=t.currentTarget.dataset.index;e.detailList[a].appearanceName=i},onDetailListTap:function(t){var e=this,i=t.currentTarget.dataset.index,a=e.detailList;console.log("当前点击的数据",JSON.stringify(a[i]))},onDeleteTap:function(t){var e=this,i=t.currentTarget.dataset.index,a=e.detailList;console.log("当前点击的数据",JSON.stringify(a[i])),e.detailList.splice(i,1)},on_fail_tap:function(t){var e=this,i=t.currentTarget.dataset.index;e.detailList;console.log("当前点击的数据",i);var a=t.detail.value;e.detailList[i]["failureCause"]=a},on_method_tap:function(t){var e=this,i=t.currentTarget.dataset.index;e.detailList;console.log("当前点击的数据",i);var a=t.detail.value;e.detailList[i]["treatmentMethod"]=a},formSubmit:function(t){var e=this;e.dataValue,uni.getStorageSync("g_pastureId"),uni.getStorageSync("g_pastureNum"),uni.getStorageSync("g_employeId"),uni.getStorageSync("g_dempmId");console.log(e.id);var i={common:{returnmap:"0"},data:[{name:"deleteMaintainAppearance",type:"e",parammaps:{maintainId:e.id}},{name:"insertSpotList",resultmaps:{list:e.detailList},children:[{name:"insertMaintainAppearance",type:"e",parammaps:{appearanceName:"@insertSpotList.appearanceName",positionId:e.pickerId3,positionName:"@insertSpotList.positionName",repirsTime:new Date,maintainId:e.id}}]}]};console.log("发送数据:"+JSON.stringify(i)),e.ajax("/authdata/ExecDataByConfig",i,"POST",e.get_edit_status3)},get_selectlist_data3:function(t){var e=this;if(console.log("部位下拉框列表数据:",t),null===t.data.list)uni.showToast({title:"部位下拉框获取数据为空",duration:2e3,icon:"none"});else{this.pickerArr3=t.data.list;var i=t.data.list[0].id,a=uni.getStorageSync("g_pastureId");e.pickerId3=i;var n="/authdata/GetDataByName",o={name:"getAppearancebyPid",parammaps:{pastureId:a,id:i}};e.ajax(n,o,"POST",e.get_selectlist_data44)}},get_selectlist_data44:function(t){console.log("部位详情下拉框列表数据:",t),null===t.data.list?uni.showToast({title:"部位详情下拉框获取数据为空",duration:2e3,icon:"none"}):(this.pickerArr4=t.data.list,this.pickerId4=t.data.list[0].id)},get_selectlist_data4:function(t){console.log("部位详情下拉框列表数据:",t),null===t.data.list?uni.showToast({title:"部位详情下拉框获取数据为空",duration:2e3,icon:"none"}):(this.pickerArr4=t.data.list,this.pickerId4=t.data.list[0].id)},get_orderCode_data:function(t){console.log("领用单号数据:",t),this.orderCode=t.data.list[0].orderCode},on_cancel_tap:function(t){var e=this,i=e.all,a=i.id,n=e.isbtn;uni.redirectTo({url:"/pages/todo/repair/repairDetail/repairDetail?all="+JSON.stringify(i)+"&id="+a+"&isbtn="+n})},get_detailList_data:function(t){console.log("详情列表数据:",t),void 0==t.data.list?this.detailList=[]:this.detailList=t.data.list},get_edit_status3:function(t){console.log("保存状态:",t);var e=this,i=e.all,a=i.id,n=e.isbtn;if(console.log(i),"ok"==t.msg)uni.showToast({title:"保存成功",duration:500,icon:"none",success:function(t){setTimeout((function(){uni.redirectTo({url:"/pages/todo/repair/repairDetail/repairDetail?all="+JSON.stringify(i)+"&id="+a+"&isbtn="+n})}),1e3)}});else{var o=t.data;uni.showModal({title:"保存失败"+o,content:o,showCancel:!1,success:function(t){t.confirm&&console.log("用户点击确定")}})}}},components:{gracePage:o.default,graceFlex:r.default,graceSelectImgAndUpload:s.default,graceNumberBox:n.default,graceShade:d.default,graceSearch:l.default}};e.default=c},"9cfd":function(t,e,i){"use strict";var a=i("618e"),n=i.n(a);n.a},"9e51":function(t,e,i){"use strict";var a=i("d18a"),n=i.n(a);n.a},ad69:function(t,e,i){"use strict";var a;i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return a}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"gui-search",style:{height:t.height,backgroundColor:t.background}},[i("v-uni-view",{staticClass:"gui-search-icon grace-icons icon-search",style:{color:t.iconColor,fontSize:t.iconFontSize,lineHeight:t.height,width:t.iconWidth}}),i("v-uni-input",{staticClass:"gui-search-input",style:{height:t.inputHeight,lineHeight:t.inputHeight,fontSize:t.inputFontSize},attrs:{type:"text",value:"",placeholder:t.placeholder,"confirm-type":"search"},on:{input:function(e){arguments[0]=e=t.$handleEvent(e),t.inputting.apply(void 0,arguments)},confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.confirm.apply(void 0,arguments)}},model:{value:t.inputVal,callback:function(e){t.inputVal=e},expression:"inputVal"}}),t.inputVal.length>0?i("v-uni-view",{staticClass:"gui-search-icon grace-icons icon-close",style:{color:t.iconColor,fontSize:t.iconFontSize,lineHeight:t.height,width:t.iconWidth},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.clearKwd.apply(void 0,arguments)}}}):t._e()],1)},o=[]},d18a:function(t,e,i){var a=i("2d82");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("56dfe97f",a,!0,{sourceMap:!1,shadowMode:!1})},da20:function(t,e,i){"use strict";i.r(e);var a=i("9cbb"),n=i.n(a);for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);e["default"]=n.a}}]);