pages-todo-maintenanceExamine2-maintenanceExamine2Detail-maintenanceExamine2Detail.0fb8ad0b.js 17 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-todo-maintenanceExamine2-maintenanceExamine2Detail-maintenanceExamine2Detail"],{2467:function(t,a,e){"use strict";e.r(a);var i=e("e524"),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},"87e1":function(t,a,e){var i=e("b21f");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=e("4f06").default;s("011d9db3",i,!0,{sourceMap:!1,shadowMode:!1})},"9ada":function(t,a,e){"use strict";e.r(a);var i=e("a6309"),s=e("2467");for(var n in s)"default"!==n&&function(t){e.d(a,t,(function(){return s[t]}))}(n);e("ec34");var o,c=e("f0c5"),l=Object(c["a"])(s["default"],i["b"],i["c"],!1,null,"b5db597c",null,!1,i["a"],o);a["default"]=l.exports},a6309: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:"grace-nowrap 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:"grace-nowrap 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:"grace-nowrap 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.plantime))])],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"},[e("v-uni-view",{staticClass:"grace-label grace-bold"},[t._v("部门")]),e("v-uni-input",{staticClass:"input",attrs:{type:"text",name:"departmentName",placeholder:"",value:t.dataValue.departmentName,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:"empname",placeholder:"",value:t.dataValue.empname,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:"plantime",placeholder:"",value:t.dataValue.plantime,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:"upNameLevel",placeholder:"",value:t.dataValue.upNameLevel,disabled:!0}})],1)],1),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("标准")]),e("v-uni-text",{staticClass:"grace-td grace-bold"},[t._v("执行动作")])],1),t._l(t.detailList1,(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.program))]),e("v-uni-text",{staticClass:"grace-td"},[t._v(t._s(a.standard))]),e("v-uni-text",{staticClass:"grace-td"},[t._v(t._s(a.active))])],1)}))],2)],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("日期")]),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",attrs:{"data-id":a.id,"data-usecode":a.applyCode},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.onDetailListTap2.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.onDetailListTap2.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.onDetailListTap2.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.status3))])],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=[]},b21f:function(t,a,e){var i=e("24fb");a=i(!1),a.push([t.i,".input-bx[data-v-b5db597c]{height:auto;background:#fff;padding:0 %?30?%}.input-item[data-v-b5db597c]{margin-bottom:%?20?%;padding:%?0?% %?30?%}.ipt-title[data-v-b5db597c]{font-size:%?32?%;color:#333;margin-bottom:%?20?%}.ipt-textarea[data-v-b5db597c]{width:100%;height:%?200?%;border:1px solid #acacac;font-size:%?32?%;color:#333}.img-bx[data-v-b5db597c]{width:100%;height:%?400?%;border:1px solid #acacac;margin-bottom:%?10?%}.img[data-v-b5db597c]{width:100%;height:%?400?%}.btn-choose[data-v-b5db597c]{width:%?200?%;height:%?60?%;border-radius:%?10?%;background:#fff;font-size:%?30?%;line-height:2;color:#333;border:1px solid #acacac}.show-title[data-v-b5db597c]{height:%?90?%;background:#f2f2f2;padding-left:%?40?%;line-height:2}.title[data-v-b5db597c]{font-size:%?32?%;color:#333;font-weight:700}.radio-bx[data-v-b5db597c]{padding:%?0?% %?20?%}.radio-bx uni-label[data-v-b5db597c]{font-size:%?32?%;color:#333;margin-right:%?20?%}.choose-title[data-v-b5db597c]{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-b5db597c]{font-size:%?32?%;color:#333;font-weight:700;display:block;margin-bottom:%?10?%}.choose-title uni-input[data-v-b5db597c]{width:%?410?%;height:%?50?%;border:1px solid #acacac;font-size:%?32?%;color:#333}.choose-bx[data-v-b5db597c]{height:%?400?%;width:100%}.detail-bx[data-v-b5db597c]{padding:%?0?% %?20?%;border:1px solid #acacac}.li-item[data-v-b5db597c]{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-b5db597c]{font-size:%?30?%;color:#666;width:%?440?%}.li-date[data-v-b5db597c]{font-size:%?30?%;color:#666}.detail-li1[data-v-b5db597c]{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;-webkit-box-sizing:border-box;box-sizing:border-box}.detail-li2[data-v-b5db597c]{width:100%;height:%?380?%;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-b5db597c]{font-size:%?30?%;color:#666;margin-left:%?20?%;display:block;width:100%;height:auto;padding:%?10?% %?0?%}.ipt-input[data-v-b5db597c]{width:%?200?%;height:%?50?%;border:1px solid #acacac;font-size:%?30?%;color:#666;margin-top:%?20?%;display:inline-block}.btn-del[data-v-b5db597c]{width:%?120?%;height:%?86?%;border-radius:%?10?%;background:#f60;font-size:%?32?%;color:#fff;position:absolute;right:0;bottom:%?10?%}.btn-bx[data-v-b5db597c]{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-b5db597c]{width:%?290?%;height:%?86?%;border-radius:%?10?%;background:#169bd5;font-size:%?32?%;color:#fff}.btn-res[data-v-b5db597c]{width:%?290?%;height:%?86?%;border-radius:%?10?%;background:#f60;font-size:%?32?%;color:#fff}.demo-msg[data-v-b5db597c]{width:100%;padding:%?40?%;background:#fff}.close-btn[data-v-b5db597c]{width:%?80?%;height:%?80?%;line-height:%?80?%;text-align:center;font-size:%?40?%;z-index:7}",""]),t.exports=a},e524:function(t,a,e){"use strict";var i=e("4ea4");Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var s=i(e("ade3")),n=i(e("3423")),o=i(e("3fe5")),c=i(e("2e9e")),l=i(e("3bab")),r=i(e("ed72")),d={data:function(){var t;return t={searchValue:"",isbtn:"no",g_username:"epans",g_employeName:"Epans",g_employeId:"2",today_now:"2019-12-01",id:"",upkeepCode:""},(0,s.default)(t,"isbtn","yes"),(0,s.default)(t,"isShowChooseBx",!1),(0,s.default)(t,"isRes",!1),(0,s.default)(t,"dataValue",{}),(0,s.default)(t,"detailList1",[]),(0,s.default)(t,"detailList2",[]),(0,s.default)(t,"status1",""),(0,s.default)(t,"status2",""),(0,s.default)(t,"status3",""),t},onLoad:function(t){var a=this,e=uni.getStorageSync("g_employeName");a.g_employeName=e;t.isbtn;a.isbtn=t.isbtn,console.log(t);var i=t.id;this.id=i;var s=JSON.parse(t.all);this.all=s,this.dataValue=s;var n=s.upkeepCode;this.upkeepCode=n;var o=uni.getStorageSync("g_pastureId");console.log(s);var c={name:"getUpkeepTemplateListbyeq",parammaps:{id:s.bigupkeeptemplateId}};a.ajax("/authdata/GetDataByName",c,"POST",a.get_detailList_data1);c={name:"getPartsapplybyMt",parammaps:{RUCode:n}};a.ajax("/authdata/GetDataByName",c,"POST",a.get_detailList_data2);var l={name:"getSHstatueBY",parammaps:{id:i,pastureId:o}};a.ajax("/authdata/GetDataByName",l,"POST",a.get_examstatus_data),a.road_name_id_time_data()},onBackPress:function(){return uni.reLaunch({url:"/pages/todo/maintenanceExamine2/maintenanceExamine2"}),!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},onDetailListTap2:function(t){var a=this,e=t.currentTarget.dataset.id,i=t.currentTarget.dataset.usecode,s=JSON.stringify(a.all);uni.reLaunch({url:"./maintenanceExamine2DetailListEdit/maintenanceExamine2DetailListEdit?all="+s+"&id="+e+"&usecode="+i})},formSubmit:function(t){var a=this,e=(a.dataValue,a.detailList,uni.getStorageSync("g_employeId")),i={name:"upkeepCharge3",parammaps:{id:a.id,statue:5,empId:e,workflowNote:""}};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:"upkeepCharge3",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_data1:function(t){console.log("详情列表数据:",t);var a=t.data.list;this.detailList1=null==a?[]:a},get_detailList_data2:function(t){console.log("详情列表数据:",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/maintenanceExamine2/maintenanceExamine2"})}),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]["设备主管审核"],this.status3=t.data.list[0]["部门主管审核"]}},components:{gracePage:o.default,graceFlex:c.default,graceSelectImgAndUpload:r.default,graceNumberBox:n.default,graceShade:l.default}};a.default=d},ec34:function(t,a,e){"use strict";var i=e("87e1"),s=e.n(i);s.a}}]);