pages-todo-repairExamine2-repairExamine2Detail-repairExamine2Detail.fa3e0607.js 16 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-todo-repairExamine2-repairExamine2Detail-repairExamine2Detail"],{"06a6":function(t,a,e){"use strict";e.r(a);var i=e("a7fc"),s=e("a84e");for(var n in s)"default"!==n&&function(t){e.d(a,t,(function(){return s[t]}))}(n);e("7794");var o,c=e("f0c5"),r=Object(c["a"])(s["default"],i["b"],i["c"],!1,null,"1d9ea322",null,!1,i["a"],o);a["default"]=r.exports},7794:function(t,a,e){"use strict";var i=e("c087"),s=e.n(i);s.a},a7fc:function(t,a,e){"use strict";var i;e.d(a,"b",(function(){return s})),e.d(a,"c",(function(){return n})),e.d(a,"a",(function(){return i}));var s=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("v-uni-view",{staticClass:"page"},[e("v-uni-view",{staticClass:"grace-list-items",staticStyle:{background:"#fff","margin-bottom":"16upx"}},[e("v-uni-view",{staticClass:"grace-title grace-border-b",staticStyle:{margin:"0 20upx"}},[e("v-uni-text",{staticClass:"grace-icons icon-comments icon grace-blue"}),e("v-uni-text",{staticClass:"title grace-black"},[t._v("设备信息")])],1),e("v-uni-view",{staticClass:" g-title-bx-row",staticStyle:{padding:"0 20upx"}},[e("v-uni-text",{staticClass:" grace-black9 g-card-w"},[t._v("设备内部编号:")]),e("v-uni-text",{staticClass:" grace-black5 grace-bold"},[t._v(t._s(t.dataValue.eqCode))])],1),e("v-uni-view",{staticClass:" g-title-bx-row",staticStyle:{padding:"0 20upx"}},[e("v-uni-text",{staticClass:" grace-black9 g-card-w"},[t._v("设备名称:")]),e("v-uni-text",{staticClass:" grace-black5 grace-bold"},[t._v(t._s(t.dataValue.eqName))])],1),e("v-uni-view",{staticClass:" g-title-bx-row",staticStyle:{padding:"0 20upx"}},[e("v-uni-text",{staticClass:" grace-black9 g-card-w"},[t._v("报修时间:")]),e("v-uni-text",{staticClass:" grace-black5 grace-bold"},[t._v(t._s(void 0==t.dataValue.requestTime?" ":t.dataValue.requestTime))])],1)],1),e("v-uni-view",{staticClass:"g-line"}),e("v-uni-view",{staticClass:"grace-title grace-border-b",staticStyle:{margin:"0 20upx"}},[e("v-uni-text",{staticClass:"grace-icons icon-article icon grace-blue"}),e("v-uni-text",{staticClass:"title grace-black"},[t._v("维修详情")])],1),e("v-uni-view",{staticClass:"input-bx"},[e("v-uni-view",{staticClass:" grace-form grace-margin-top"},[e("v-uni-view",{staticClass:"grace-items grace-noborder"},[e("v-uni-view",{staticClass:"grace-label grace-bold"},[t._v("故障详情")])],1),e("v-uni-view",{staticClass:"grace-items grace-noborder"},[e("v-uni-view",{staticClass:"other"},[e("v-uni-textarea",{attrs:{name:"details",disabled:!0},model:{value:t.dataValue.details,callback:function(a){t.$set(t.dataValue,"details",a)},expression:"dataValue.details"}})],1)],1),e("v-uni-view",{staticClass:"grace-items"},[e("v-uni-view",{staticClass:"grace-label grace-bold"},[t._v("维修人")]),e("v-uni-input",{staticClass:"input",attrs:{type:"text",name:"pickName",placeholder:"",value:t.dataValue.pickName,disabled:!0}})],1),e("v-uni-view",{staticClass:"grace-items"},[e("v-uni-view",{staticClass:"grace-label grace-bold"},[t._v("维修日期")]),e("v-uni-input",{staticClass:"input",attrs:{type:"text",name:"requestTime",placeholder:"",value:t.dataValue.stopTime,disabled:!0}})],1)],1)],1),e("v-uni-view",{staticClass:"g-line"}),e("v-uni-view",{staticClass:"grace-title grace-border-b",staticStyle:{margin:"0 20upx"}},[e("v-uni-text",{staticClass:"grace-icons icon-article icon grace-blue"}),e("v-uni-text",{staticClass:"title grace-black"},[t._v("故障诊断")])],1),e("v-uni-view",{staticClass:"input-bx"},[e("gracePage",{attrs:{customHeader:!1}},[e("v-uni-view",{attrs:{slot:"gBody"},slot:"gBody"},[e("v-uni-view",{staticClass:"grace-table grace-margin-top"},[e("v-uni-view",{staticClass:"grace-theader grace-bg-green"},[e("v-uni-text",{staticClass:"grace-td grace-bold"},[t._v("故障部位")]),e("v-uni-text",{staticClass:"grace-td grace-bold"},[t._v("故障详情")])],1),t._l(t.detailList2,(function(a,i){return e("v-uni-view",{key:i,staticClass:"grace-tbody"},[e("v-uni-text",{staticClass:"grace-td"},[t._v(t._s(a.positionName))]),e("v-uni-text",{staticClass:"grace-td"},[t._v(t._s(a.appearanceName))])],1)}))],2)],1)],1)],1),e("v-uni-view",{staticClass:"grace-title grace-border-b",staticStyle:{margin:"0 20upx"}},[e("v-uni-text",{staticClass:"grace-icons icon-article icon grace-blue"}),e("v-uni-text",{staticClass:"title grace-black"},[t._v("领用情况")])],1),e("v-uni-view",{staticClass:"input-bx"},[e("gracePage",{attrs:{customHeader:!1}},[e("v-uni-view",{attrs:{slot:"gBody"},slot:"gBody"},[e("v-uni-view",{staticClass:"grace-table grace-margin-top"},[e("v-uni-view",{staticClass:"grace-theader grace-bg-green"},[e("v-uni-text",{staticClass:"grace-td grace-bold"},[t._v("单号")]),e("v-uni-text",{staticClass:"grace-td grace-bold"},[t._v("日期")]),e("v-uni-text",{staticClass:"grace-td grace-bold"},[t._v("状态")])],1),t._l(t.detailList,(function(a,i){return e("v-uni-view",{key:i,staticClass:"grace-tbody"},[e("v-uni-text",{staticClass:"grace-td",attrs:{"data-id":a.id,"data-usecode":a.applyCode},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.onDetailListTap1.apply(void 0,arguments)}}},[t._v(t._s(a.applyCode))]),e("v-uni-text",{staticClass:"grace-td",attrs:{"data-id":a.id,"data-usecode":a.applyCode},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.onDetailListTap1.apply(void 0,arguments)}}},[t._v(t._s(a.createDate))]),e("v-uni-text",{staticClass:"grace-td",attrs:{"data-id":a.id,"data-usecode":a.applyCode},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.onDetailListTap1.apply(void 0,arguments)}}},[t._v(t._s(0==a.statue?"未领用":"已领用"))])],1)}))],2)],1)],1)],1),e("v-uni-view",{staticClass:"grace-list-items",staticStyle:{background:"#fff","margin-bottom":"16upx"}},[e("v-uni-view",{staticClass:"grace-title grace-border-b",staticStyle:{margin:"0 20upx"}},[e("v-uni-text",{staticClass:"grace-icons icon-article icon grace-blue"}),e("v-uni-text",{staticClass:"title grace-black"},[t._v("审核情况")])],1),e("v-uni-view",{staticClass:"g-title-bx-row",staticStyle:{padding:"0 20upx","word-wrap":"break-word",height:"auto"}},[e("v-uni-text",{staticClass:" grace-black9 g-card-w"},[t._v("使用人审核:")]),e("v-uni-text",{staticClass:" grace-black5 grace-bold"},[t._v(t._s(t.status1))])],1),e("v-uni-view",{staticClass:"g-title-bx-row",staticStyle:{padding:"0 20upx","word-wrap":"break-word",height:"auto"}},[e("v-uni-text",{staticClass:" grace-black9 g-card-w"},[t._v("设备主管审核:")]),e("v-uni-text",{staticClass:" grace-black5 grace-bold"},[t._v(t._s(t.status2))])],1)],1),e("v-uni-view",{staticClass:"input-bx"},[e("v-uni-form",{staticClass:"grace-form grace-margin-top",on:{submit:function(a){arguments[0]=a=t.$handleEvent(a),t.formSubmit.apply(void 0,arguments)}}},["yes"==t.isbtn?e("v-uni-view",{staticClass:"btn-bx"},[e("v-uni-button",{staticClass:"btn-sub",attrs:{formType:"submit"}},[t._v("审核通过")]),e("v-uni-button",{staticClass:"btn-res",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.btn_out.apply(void 0,arguments)}}},[t._v("审核驳回")])],1):t._e()],1)],1),e("graceShade",{attrs:{show:t.isShowChooseBx}},[e("v-uni-view",{staticClass:"demo-msg grace-relative"},[e("v-uni-view",{staticClass:"grace-title grace-border-b",staticStyle:{margin:"0 20upx"}},[e("v-uni-text",{staticClass:"grace-icons icon-shoucang chat-filled icon grace-red"}),e("v-uni-text",{staticClass:"title grace-black"},[t._v("驳回")])],1),e("v-uni-form",{staticClass:"grace-form grace-margin-top",on:{submit:function(a){arguments[0]=a=t.$handleEvent(a),t.formSubmit2.apply(void 0,arguments)}}},[e("v-uni-view",{staticClass:"grace-items grace-noborder"},[e("v-uni-view",{staticClass:"grace-label grace-bold",staticStyle:{width:"600rpx"}},[t._v("请输入不通过原因:")])],1),e("v-uni-view",{staticClass:"grace-items grace-noborder"},[e("v-uni-view",{staticClass:"other"},[e("v-uni-textarea",{attrs:{placeholder:"请输入.....",name:"workflowNote"}})],1)],1),e("v-uni-view",{staticClass:"other"},[e("v-uni-text",{directives:[{name:"show",rawName:"v-show",value:t.isRes,expression:"isRes"}],staticStyle:{color:"#f00"}},[t._v("驳回原因必填")])],1),e("v-uni-view",{staticClass:"btn-bx"},[e("v-uni-button",{staticClass:"btn-sub",attrs:{formType:"submit"}},[t._v("保存")]),e("v-uni-button",{staticClass:"btn-res",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.formCancel2.apply(void 0,arguments)}}},[t._v("取消")])],1)],1),e("v-uni-view",{staticClass:"close-btn grace-icons icon-close3 grace-black grace-absolute-rt",on:{click:function(a){if(a.target!==a.currentTarget)return null;arguments[0]=a=t.$handleEvent(a),t.closeShade.apply(void 0,arguments)}}})],1)],1)],1)},n=[]},a84e:function(t,a,e){"use strict";e.r(a);var i=e("c4ed"),s=e.n(i);for(var n in i)"default"!==n&&function(t){e.d(a,t,(function(){return i[t]}))}(n);a["default"]=s.a},ad62:function(t,a,e){var i=e("24fb");a=i(!1),a.push([t.i,".img-bx[data-v-1d9ea322]{width:100%;height:%?400?%;border:1px solid #acacac;margin-bottom:%?10?%}.img[data-v-1d9ea322]{width:100%;height:%?400?%}.btn-choose[data-v-1d9ea322]{width:%?200?%;height:%?60?%;border-radius:%?10?%;background:#fff;font-size:%?30?%;line-height:2;color:#333;border:1px solid #acacac}.input-bx[data-v-1d9ea322]{height:auto;background:#fff;padding:0 %?30?%}.show-title[data-v-1d9ea322]{height:%?90?%;background:#f2f2f2;padding-left:%?40?%;line-height:2}.title[data-v-1d9ea322]{font-size:%?32?%;color:#333;font-weight:700}.radio-bx[data-v-1d9ea322]{padding:%?0?% %?20?%}.radio-bx uni-label[data-v-1d9ea322]{font-size:%?32?%;color:#333;margin-right:%?20?%}.choose-title[data-v-1d9ea322]{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?%}.choose-title uni-text[data-v-1d9ea322]{font-size:%?32?%;color:#333;font-weight:700;display:block;margin-bottom:%?10?%}.choose-title uni-input[data-v-1d9ea322]{width:%?410?%;height:%?50?%;border:1px solid #acacac;font-size:%?32?%;color:#333}.choose-bx[data-v-1d9ea322]{height:%?400?%;width:100%}.detail-bx[data-v-1d9ea322]{padding:%?0?% %?20?%;border:1px solid #acacac}.li-item[data-v-1d9ea322]{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;margin:%?10?% %?30?%;line-height:1.8;vertical-align:bottom}.li-title[data-v-1d9ea322]{font-size:%?30?%;color:#666;width:%?450?%}.li-date[data-v-1d9ea322]{font-size:%?30?%;color:#666}.detail-li[data-v-1d9ea322]{width:100%;height:%?270?%;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;-webkit-box-sizing:border-box;box-sizing:border-box}.detli-tt[data-v-1d9ea322]{font-size:%?30?%;color:#666;margin-left:%?20?%;display:block;width:100%;height:%?60?%}.ipt-input[data-v-1d9ea322]{width:%?200?%;height:%?50?%;border:1px solid #acacac;font-size:%?30?%;color:#666;margin-top:%?20?%;display:inline-block}.btn-del[data-v-1d9ea322]{width:%?120?%;height:%?86?%;border-radius:%?10?%;background:#f60;font-size:%?32?%;color:#fff;position:absolute;right:0;bottom:%?10?%}.btn-del2[data-v-1d9ea322]{width:%?120?%;height:%?86?%;border-radius:%?10?%;background:#f60;font-size:%?32?%;color:#fff}.btn-bx[data-v-1d9ea322]{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-1d9ea322]{width:%?200?%;height:%?86?%;border-radius:%?10?%;background:#169bd5;font-size:%?32?%;color:#fff}.btn-res[data-v-1d9ea322]{width:%?200?%;height:%?86?%;border-radius:%?10?%;background:#f60;font-size:%?32?%;color:#fff}.li-item2[data-v-1d9ea322]{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-1d9ea322]{font-size:%?30?%;color:#666;font-weight:700}.li-bd2[data-v-1d9ea322]{font-size:%?30?%;color:#666}.demo-msg[data-v-1d9ea322]{width:100%;padding:%?40?%;background:#fff}.close-btn[data-v-1d9ea322]{width:%?80?%;height:%?80?%;line-height:%?80?%;text-align:center;font-size:%?40?%;z-index:7}.grace-td[data-v-1d9ea322]{line-height:%?50?%}",""]),t.exports=a},c087:function(t,a,e){var i=e("ad62");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=e("4f06").default;s("33d6e075",i,!0,{sourceMap:!1,shadowMode:!1})},c4ed:function(t,a,e){"use strict";var i=e("4ea4");Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var s=i(e("3423")),n=i(e("3fe5")),o=i(e("2e9e")),c=i(e("ed72")),r=i(e("3bab")),l={data:function(){return{searchValue:"",isbtn:"yes",id:"",g_username:"epans",g_employeName:"Epans",g_employeId:"2",today_now:"2019-12-01",eqId:"",isShowChooseBx:!1,isRes:!1,dataValue:{},detailList:[],detailList2:[],status1:"",status2:""}},onLoad:function(t){var a=this,e=uni.getStorageSync("g_employeName");a.g_employeName=e,console.log(t);var i=t.id;a.id=i;var s=JSON.parse(t.all);a.all=s;t.isbtn;a.isbtn=t.isbtn,this.dataValue=s,console.log(s);var n=s.repairCode,o=s.eqId;a.eqId=o;var c=uni.getStorageSync("g_pastureId"),r="/authdata/GetDataByName",l={name:"getPartsapplybyMt",parammaps:{RUCode:n,pastureId:c}};a.ajax(r,l,"POST",a.get_detailList_data);var d={name:"getmaintainappearance",parammaps:{maintainId:i,pastureId:c}};a.ajax(r,d,"POST",a.get_detailList_data2);var u={name:"getSHstatueWX",parammaps:{id:i,pastureId:c}};a.ajax(r,u,"POST",a.get_examstatus_data),a.road_name_id_time_data()},onBackPress:function(){return uni.navigateTo({url:"/pages/todo/repairExamine2/repairExamine2"}),!0},methods:{road_name_id_time_data:function(t){var a=this,e=a.get_today_now(),i=uni.getStorageSync("g_username"),s=uni.getStorageSync("g_employeId");a.dataValue.g_username=i,a.g_username=i,a.g_employeId=s,a.today_now=e},onDetailListTap1:function(t){var a=this,e=t.currentTarget.dataset.id,i=t.currentTarget.dataset.usecode,s=JSON.stringify(a.all);uni.reLaunch({url:"./repairExamine2DetailListEdit/repairExamine2DetailListEdit?all="+s+"&id="+e+"&usecode="+i})},formSubmit:function(t){var a=this,e=(a.dataValue,a.detailList,uni.getStorageSync("g_employeId")),i={name:"maintainChargDone",parammaps:{id:a.id,statue:5,empId:e,orderStatue:2}};a.ajax("/authdata/GetDataByName",i,"POST",a.get_edit_status1)},btn_out:function(t){this.isShowChooseBx=!0},closeShade:function(){this.isShowChooseBx=!1},formCancel2:function(t){this.isShowChooseBx=!1,this.isRes=!1},formSubmit2:function(t){var a=this,e=t.detail.value;console.log(e);var i=uni.getStorageSync("g_employeId");if(""!==e.workflowNote){var s={name:"maintainCharge1",parammaps:{id:a.id,statue:6,empId:i,workflowNote:e.workflowNote}};console.log("保存原始数据:"+JSON.stringify(e)),console.log("需要发送的数据:"+JSON.stringify(s)),a.isRes=!1,a.ajax("/authdata/GetDataByName",s,"POST",a.get_edit_status1)}else a.isRes=!0},get_detailList_data:function(t){console.log("详情列表数据1:",t);var a=t.data.list;this.detailList=null==a?[]:a},get_detailList_data2:function(t){console.log("详情列表数据2:",t);var a=t.data.list;this.detailList2=null==a?[]:a},get_edit_status1:function(t){if(console.log("保存状态:",t),"ok"==t.msg)uni.showToast({title:"保存成功",duration:500,icon:"none",success:function(t){setTimeout((function(){uni.navigateTo({url:"/pages/todo/repairExamine2/repairExamine2"})}),1e3)}});else{var a=t.data;uni.showToast({title:"保存失败"+a,duration:2e3,icon:"none"})}},get_examstatus_data:function(t){console.log("审核状态:",t),this.status1=t.data.list[0]["使用人审核"],this.status2=t.data.list[0]["主管审核"]}},components:{gracePage:n.default,graceFlex:o.default,graceSelectImgAndUpload:c.default,graceNumberBox:s.default,graceShade:r.default}};a.default=l}}]);