pages-index-reportRepair-reportRepairDetail-reportRepairDetail.d259dcae.js 17 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-reportRepair-reportRepairDetail-reportRepairDetail"],{"0f6b":function(e,t,a){var i=a("24fb");t=i(!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},2607:function(e,t,a){"use strict";a.r(t);var i=a("df4a"),r=a("4df0");for(var n in r)"default"!==n&&function(e){a.d(t,e,(function(){return r[e]}))}(n);a("7ce6");var s,o=a("f0c5"),c=Object(o["a"])(r["default"],i["b"],i["c"],!1,null,"4c82d59c",null,!1,i["a"],s);t["default"]=c.exports},"2dfb":function(e,t,a){"use strict";var i=a("62c0"),r=a.n(i);r.a},"2e9e":function(e,t,a){"use strict";a.r(t);var i=a("fbdf"),r=a("8080");for(var n in r)"default"!==n&&function(e){a.d(t,e,(function(){return r[e]}))}(n);a("b722");var s,o=a("f0c5"),c=Object(o["a"])(r["default"],i["b"],i["c"],!1,null,"02c438ce",null,!1,i["a"],s);t["default"]=c.exports},3232:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={props:{classes:{type:Array,default:function(){return new Array}}}};t.default=i},"3fe5":function(e,t,a){"use strict";a.r(t);var i=a("f19a"),r=a("84c7");for(var n in r)"default"!==n&&function(e){a.d(t,e,(function(){return r[e]}))}(n);a("2dfb");var s,o=a("f0c5"),c=Object(o["a"])(r["default"],i["b"],i["c"],!1,null,"68be4825",null,!1,i["a"],s);t["default"]=c.exports},"451a":function(e,t,a){"use strict";a("c975"),a("a9e3"),a("ac1f"),a("5319"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={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=i},"4df0":function(e,t,a){"use strict";a.r(t);var i=a("c844"),r=a.n(i);for(var n in i)"default"!==n&&function(e){a.d(t,e,(function(){return i[e]}))}(n);t["default"]=r.a},"5ade":function(e,t,a){var i=a("24fb");t=i(!1),t.push([e.i,"uni-page-body[data-v-68be4825]{width:100%;height:100vh;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.grace-sbody[data-v-68be4825]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;width:100%;-webkit-box-flex:1;-webkit-flex:1;flex:1;\n}.grace-page-header[data-v-68be4825]{width:100%;position:fixed;left:0;top:0;z-index:99}.grace-page-status-bar[data-v-68be4825]{width:100%;height:0}.grace-page-header-nav[data-v-68be4825]{width:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-flex-wrap:nowrap;flex-wrap:nowrap;height:44px;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.grace-header-main[data-v-68be4825]{width:%?300?%;-webkit-box-flex:1;-webkit-flex:auto;flex:auto;overflow:hidden}.grace-page-body[data-v-68be4825]{width:100%;-webkit-box-flex:1;-webkit-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.grace-page-footer[data-v-68be4825]{width:100%;position:fixed;left:0;bottom:0;z-index:99}.gui-page-rb-area[data-v-68be4825]{width:%?100?%;position:fixed;right:%?20?%;bottom:%?100?%;z-index:100}",""]),e.exports=t},"62c0":function(e,t,a){var i=a("5ade");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=a("4f06").default;r("0f67b36b",i,!0,{sourceMap:!1,shadowMode:!1})},"656c":function(e,t,a){var i=a("24fb");t=i(!1),t.push([e.i,".input-bx[data-v-4c82d59c]{height:auto;background:#fff;padding:0 %?30?%}.btn-bx[data-v-4c82d59c]{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-4c82d59c]{width:%?290?%;height:%?86?%;border-radius:%?10?%;background:#169bd5;font-size:%?32?%;color:#fff}.btn-res[data-v-4c82d59c]{width:%?290?%;height:%?86?%;border-radius:%?10?%;background:#f60;font-size:%?32?%;color:#fff}",""]),e.exports=t},"7ce6":function(e,t,a){"use strict";var i=a("ed08"),r=a.n(i);r.a},8080:function(e,t,a){"use strict";a.r(t);var i=a("3232"),r=a.n(i);for(var n in i)"default"!==n&&function(e){a.d(t,e,(function(){return i[e]}))}(n);t["default"]=r.a},"84c7":function(e,t,a){"use strict";a.r(t);var i=a("451a"),r=a.n(i);for(var n in i)"default"!==n&&function(e){a.d(t,e,(function(){return i[e]}))}(n);t["default"]=r.a},"9e13":function(e,t,a){var i=a("0f6b");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=a("4f06").default;r("061c5d19",i,!0,{sourceMap:!1,shadowMode:!1})},b722:function(e,t,a){"use strict";var i=a("9e13"),r=a.n(i);r.a},c844:function(e,t,a){"use strict";var i=a("4ea4");a("4160"),a("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(a("3fe5")),n=i(a("2e9e")),s={data:function(){return{g_username:"",g_employeName:"",g_employeId:"",departmenId:"",assTypeId:"",partId:"",today_now:"",dataValue:{},pickerArr1:[{partName:"",id:""}],index1:0,pickerId1:"",pickerArr2:[{appearanceName:"",id:""}],index2:0,pickerId2:""}},onBackPress:function(){return uni.redirectTo({url:"/pages/index/reportRepair/reportRepair"}),!0},onLoad:function(e){var t=this,a=uni.getStorageSync("g_employeName");t.g_employeName=a,console.log("前一个页面数据:",e);var i=e.id,r=e.assTypeId;t.assTypeId=r;e.partId;var n="/authdata/GetDataByName",s={name:"getRepirsListAPPDetail",parammaps:{id:i}};t.ajax(n,s,"POST",t.get_list_data),setTimeout((function(){console.log("初始化部位ID:",t.pickerId1,"初始化现象ID:",t.pickerId2),t.index1=t.get_picker_index(t.pickerArr1,t.pickerId1),t.index2=t.get_picker_index(t.pickerArr2,t.pickerId2)}),100)},methods:{road_name_id_time_data:function(e){var t=this,a=t.get_today_now(),i=uni.getStorageSync("g_username"),r=uni.getStorageSync("g_employeId");t.dataValue.g_username=i,t.g_username=i,t.g_employeId=r,t.today_now=a},get_picker_index:function(e,t){var a=0;return e.forEach((function(e,i){e.id==t&&(a=i)})),a},formSubmit:function(e){var t=this,a=e.detail.value,i=this.dataValue,r={name:"updateByIdMaintain",parammaps:i};r.parammaps.appearanceId=t.pickerId1,r.parammaps.phenomen=t.pickerId2,r.parammaps.details=a.details,r.parammaps.inputDatetime=t.today_now,r.parammaps.jwt_username=t.g_username,console.log("保存原始数据:"+JSON.stringify(a)),console.log("需要发送的数据:"+JSON.stringify(r));var n="/authdata/GetDataByName";t.ajax(n,r,"POST",t.get_edit_status)},formCancel:function(e){uni.redirectTo({url:"/pages/index/reportRepair/reportRepair"})},get_list_data:function(e){console.log("列表数据:",e),this.dataValue=e.data.list[0],this.pickerId1=e.data.list[0]["appearanceId"],this.pickerId2=e.data.list[0]["phenomen"],console.log("初始化部位ID:",this.pickerId1,"初始化现象ID:",this.pickerId2),this.road_name_id_time_data()},get_selectlist_data1:function(e){console.log("故障部位下拉框列表数据:",e),null===e.data.list?uni.showToast({title:"下拉框获取数据为空",duration:2e3,icon:"none"}):this.pickerArr1=e.data.list},get_selectlist_data2:function(e){console.log("故障现象下拉框列表数据:",e),null===e.data.list||(this.pickerArr2=e.data.list),console.log(this.pickerId1)},get_edit_status:function(e){if(console.log("保存状态:",e),null!=e.data.list)if("success"==e.data.list[0].msg)uni.showToast({title:"保存成功",duration:500,icon:"none",success:function(e){setTimeout((function(){uni.redirectTo({url:"/pages/index/reportRepair/reportRepair"})}),1e3)}});else{var t=e.data;uni.showModal({title:"保存失败",content:t,showCancel:!1,success:function(e){e.confirm&&console.log("用户点击确定")}})}else"ok"==e.data.message?uni.showToast({title:"保存成功",duration:500,icon:"none",success:function(e){setTimeout((function(){uni.redirectTo({url:"/pages/index/reportRepair/reportRepair"})}),1e3)}}):uni.showToast({title:"保存失败",duration:2e3,icon:"none"})},bindPickerChange1:function(e){var t=e.target.value;this.index1=t,console.log("故障部位下拉框改变,携带值为:"+t);var a=this.pickerArr1[t]["id"];console.log("故障部位下拉框选中的ID值:"+a),this.pickerId1=a;var i=this,r={name:"findAllAppearance",parammaps:{assTypeId:i.assTypeId,partId:a}},n="/authdata/GetDataByName";i.ajax(n,r,"POST",i.get_selectlist_data2)},bindPickerChange2:function(e){var t=e.target.value;this.index2=t,console.log("故障现象下拉框改变,携带值为:"+t);var a=this.pickerArr2[t]["id"];console.log("故障现象下拉框选中的ID值:"+a),this.pickerId2=a}},components:{gracePage:r.default,graceFlex:n.default}};t.default=s},df4a:function(e,t,a){"use strict";var i;a.d(t,"b",(function(){return r})),a.d(t,"c",(function(){return n})),a.d(t,"a",(function(){return i}));var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-uni-view",{staticClass:"page"},[a("v-uni-view",{staticClass:"grace-list-items",staticStyle:{background:"#fff","margin-bottom":"16upx"}},[a("v-uni-view",{staticClass:"grace-title grace-border-b",staticStyle:{margin:"0 20upx"}},[a("v-uni-text",{staticClass:"grace-icons icon-comments icon grace-blue"}),a("v-uni-text",{staticClass:"title grace-black"},[e._v("设备信息")])],1),a("v-uni-view",{staticClass:"grace-nowrap g-title-bx-row",staticStyle:{padding:"0 20upx"}},[a("v-uni-text",{staticClass:" grace-black9 g-card-w"},[e._v("设备内部编号:")]),a("v-uni-text",{staticClass:" grace-black5 grace-bold"},[e._v(e._s(e.dataValue.eqCode))])],1),a("v-uni-view",{staticClass:"grace-nowrap g-title-bx-row",staticStyle:{padding:"0 20upx"}},[a("v-uni-text",{staticClass:" grace-black9 g-card-w"},[e._v("设备名称:")]),a("v-uni-text",{staticClass:" grace-black5 grace-bold"},[e._v(e._s(e.dataValue.eqName))])],1),a("v-uni-view",{staticClass:"grace-nowrap g-title-bx-row",staticStyle:{padding:"0 20upx"}},[a("v-uni-text",{staticClass:" grace-black9 g-card-w"},[e._v("所属部门:")]),a("v-uni-text",{staticClass:" grace-black5 grace-bold"},[e._v(e._s(e.dataValue.departmentName))])],1),a("v-uni-view",{staticClass:"grace-nowrap g-title-bx-row",staticStyle:{padding:"0 20upx"}},[a("v-uni-text",{staticClass:" grace-black9 g-card-w"},[e._v("责任人:")]),a("v-uni-text",{staticClass:" grace-black5 grace-bold"},[e._v(e._s(e.dataValue.requesterName))])],1),a("v-uni-view",{staticClass:"grace-nowrap g-title-bx-row",staticStyle:{padding:"0 20upx"}},[a("v-uni-text",{staticClass:" grace-black9 g-card-w"},[e._v("上次报修日期:")]),a("v-uni-text",{staticClass:" grace-black5 grace-bold"},[e._v(e._s(void 0==e.dataValue.requestTime?" ":e.dataValue.requestTime))])],1)],1),a("v-uni-view",{staticClass:"g-line"}),a("v-uni-view",{staticClass:"grace-title grace-border-b",staticStyle:{margin:"0 20upx"}},[a("v-uni-text",{staticClass:"grace-icons icon-article icon grace-blue"}),a("v-uni-text",{staticClass:"title grace-black"},[e._v("报修详情")])],1),a("v-uni-view",{staticClass:"input-bx"},[a("v-uni-form",{staticClass:"grace-form grace-margin-top",on:{submit:function(t){arguments[0]=t=e.$handleEvent(t),e.formSubmit.apply(void 0,arguments)}}},[a("v-uni-view",{staticClass:"grace-items grace-noborder"},[a("v-uni-view",{staticClass:"grace-label grace-bold"},[e._v("故障详情")])],1),a("v-uni-view",{staticClass:"grace-items grace-noborder"},[a("v-uni-view",{staticClass:"other"},[a("v-uni-textarea",{attrs:{placeholder:"请输入.....",name:"details",value:e.dataValue.details,disabled:!0}})],1)],1),a("v-uni-view",{staticClass:"grace-items"},[a("v-uni-view",{staticClass:"grace-label grace-bold "},[e._v("报修人")]),a("v-uni-input",{staticClass:"input",attrs:{type:"text",name:"applyName",placeholder:"",value:e.dataValue.requesterName,disabled:!0}})],1),a("v-uni-view",{staticClass:"grace-items"},[a("v-uni-view",{staticClass:"grace-label grace-bold "},[e._v("报修日期")]),a("v-uni-input",{staticClass:"input",attrs:{type:"text",name:"applyTime",placeholder:"",value:e.dataValue.requestTime,disabled:!0}})],1),a("v-uni-view",{staticClass:"grace-items"},[a("v-uni-view",{staticClass:"grace-label grace-bold "},[e._v("维修人")]),a("v-uni-input",{staticClass:"input",attrs:{type:"text",name:"disposeName",placeholder:"",value:e.dataValue.pickName,disabled:!0}})],1),a("v-uni-view",{staticClass:"grace-items"},[a("v-uni-view",{staticClass:"grace-label grace-bold "},[e._v("维修日期")]),a("v-uni-input",{staticClass:"input",attrs:{type:"text",name:"dealTime",placeholder:"",value:e.dataValue.orderTime,disabled:!0}})],1),a("v-uni-view",{staticClass:"grace-items"},[a("v-uni-view",{staticClass:"grace-label grace-bold "},[e._v("维修完成日期")]),a("v-uni-input",{staticClass:"input",attrs:{type:"text",name:"stopTime",placeholder:"",value:e.dataValue.stopTime,disabled:!0}})],1),a("v-uni-view",{staticClass:"grace-items"},[a("v-uni-view",{staticClass:"grace-label grace-bold "},[e._v("确认完成日期")]),a("v-uni-input",{staticClass:"input",attrs:{type:"text",name:"stopTime",placeholder:"",value:e.dataValue.chargeDate,disabled:!0}})],1)],1)],1)],1)},n=[]},ed08:function(e,t,a){var i=a("656c");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=a("4f06").default;r("18a6eb30",i,!0,{sourceMap:!1,shadowMode:!1})},f19a:function(e,t,a){"use strict";var i;a.d(t,"b",(function(){return r})),a.d(t,"c",(function(){return n})),a.d(t,"a",(function(){return i}));var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-uni-view",{staticClass:"grace-sbody"},[e.customHeader?a("v-uni-view",[a("v-uni-view",{staticClass:"grace-page-header",style:{"z-index":e.headerIndex,background:e.headerBG}},[a("v-uni-view",{staticClass:"grace-page-status-bar",style:{height:e.statusBarHeight+"px",background:e.statusBarBG}}),a("v-uni-view",{staticClass:"grace-page-header-nav",style:{height:e.headerHeight+"px"}},[a("v-uni-view",{staticClass:"grace-header-main"},[e._t("gHeader")],2),a("v-uni-view",{style:{width:e.BoundingWidth,height:"10px"}})],1)],1),a("v-uni-view",{style:{width:"100%",height:e.statusBarHeight+e.headerHeight+"px"}})],1):e._e(),a("v-uni-view",{staticClass:"grace-page-body"},[e._t("gBody")],2),e.isSwitchPage?e._e():a("v-uni-view",{style:{width:"100%",height:e.iphoneXButtomHeight+"px"}}),a("v-uni-view",{staticClass:"grace-page-footer",style:{"z-index":e.footerIndex,background:e.footerBg}},[e._t("gFooter"),e.isSwitchPage?e._e():a("v-uni-view",{style:{width:"100%",height:e.iphoneXButtomHeight+"px"}})],2),a("v-uni-view",{staticClass:"gui-page-rb-area",style:{right:e.rbRight+"rpx",bottom:e.rbBottom+"rpx",width:e.rbWidth+"rpx"}},[e._t("gRTArea")],2)],1)},n=[]},fbdf:function(e,t,a){"use strict";var i;a.d(t,"b",(function(){return r})),a.d(t,"c",(function(){return n})),a.d(t,"a",(function(){return i}));var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-uni-view",{staticClass:"gui-flex",class:e.classes},[e._t("default")],2)},n=[]}}]);