(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-spotCheck-spotCheckDetail-spotCheckDetail"],{"206f":function(t,a,e){"use strict";var i=e("a3c2"),s=e.n(i);s.a},"51e2":function(t,a,e){var i=e("24fb");a=i(!1),a.push([t.i,".show-title[data-v-5c32fb71]{height:%?60?%;background:#f2f2f2;padding-left:%?40?%}.title[data-v-5c32fb71]{font-size:%?28?%;color:#333;font-weight:700}.list-bx[data-v-5c32fb71]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;padding:%?30?%;-webkit-flex-wrap:wrap;flex-wrap:wrap;width:100%;height:auto}.list-item[data-v-5c32fb71]{width:90%;min-height:%?90?%;border-bottom:%?1?% solid #d3d3d3;position:relative}.li-hd[data-v-5c32fb71]{font-size:%?28?%;color:#333;margin-right:%?10?%;width:%?600?%;display:block;line-height:2}.li-img[data-v-5c32fb71]{width:%?50?%;height:%?50?%;right:%?0?%;top:%?10?%;position:absolute}.btn-bx[data-v-5c32fb71]{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}.btn-sub[data-v-5c32fb71]{width:%?190?%;height:%?86?%;border-radius:%?10?%;background:#169bd5;font-size:%?32?%;color:#fff}.btn-res[data-v-5c32fb71]{width:%?190?%;height:%?86?%;border-radius:%?10?%;background:#f60;font-size:%?32?%;color:#fff}",""]),t.exports=a},a3c2:function(t,a,e){var i=e("51e2");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=e("4f06").default;s("6f013b9d",i,!0,{sourceMap:!1,shadowMode:!1})},c27a:function(t,a,e){"use strict";var i;e.d(a,"b",(function(){return s})),e.d(a,"c",(function(){return c})),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.date))])],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.inspection))])],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:"list-bx"},[t._l(t.dataList,(function(a,i){return[e("v-uni-view",{staticClass:"list-item",attrs:{"data-index":i}},[e("v-uni-text",{staticClass:"li-hd"},[t._v("部位:"+t._s(a.partName))]),e("v-uni-text",{staticClass:"li-hd"},[t._v("检查内容:"+t._s(a.examine))]),e("v-uni-text",{staticClass:"li-hd"},[t._v("标准: "+t._s(a.standard))]),e("v-uni-image",{staticClass:"li-img",attrs:{src:0==a.checkResult?t.imgSuccess:t.imgFalse,mode:"aspectFit"}})],1)]}))],2),e("v-uni-view",{staticClass:"btn-bx"})],1)},c=[]},c7ae:function(t,a,e){"use strict";e.r(a);var i=e("cf6a"),s=e.n(i);for(var c in i)"default"!==c&&function(t){e.d(a,t,(function(){return i[t]}))}(c);a["default"]=s.a},cf6a:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var i={data:function(){return{imgSuccess:"../../../../static/index/success.png",imgFalse:"../../../../static/index/false.png",id:"2",today_now:"",g_employeName:"Epans",dataValue:{},dataList:[]}},onBackPress:function(){return uni.redirectTo({url:"/pages/index/spotCheck/spotCheck"}),!0},onLoad:function(t){var a=this,e=uni.getStorageSync("g_employeName");a.g_employeName=e;var i=a.get_today();a.today_now=i,console.log("前一个页面数据:",t);var s=JSON.parse(t.all);this.dataValue=s,console.log(s);var c=t.id;this.id=c;var n=uni.getStorageSync("g_username");a.g_username=n;var o="/authdata/GetDataByName",r={name:"findByIdSpotCheck",parammaps:{id:c}};a.ajax(o,r,"POST",a.get_list_data)},methods:{onListTap:function(t){var a=this,e=t.currentTarget.dataset.index,i=a.dataList,s=i[e]["checkResult"],c=i[e];console.log("当前点击的数据",JSON.stringify(c)),0==s?(i[e]["checkResult"]="1",a.dataList=i,c["checkResult"]="1"):(i[e]["checkResult"]="0",a.dataList=i,c["checkResult"]="0");var n={common:{returnmap:"0"},data:[{name:"updateSpotCheck",type:"e",parammaps:c},{name:"updateSpotCheckResults",type:"e",parammaps:{id:a.id}}]};console.log("需要发送的数据:"+JSON.stringify(n));var o="/authdata/ExecDataByConfig";a.ajax(o,n,"POST",a.get_edit_status)},form_submit:function(){},form_cancel:function(t){uni.redirectTo({url:"/pages/index/spotCheck/spotCheck"})},get_card_data:function(t){console.log("设备数据:",JSON.stringify(t)),this.dataValue=t.data.list[0]},get_list_data:function(t){console.log("列表数据:",JSON.stringify(t)),this.dataList=t.data.list},get_edit_status:function(t){if(console.log("保存状态:",t),"ok"==t.msg)uni.showToast({title:"保存成功",duration:500,icon:"none",success:function(t){}});else{var a=t.data;uni.showToast({title:"保存失败"+a,duration:2e3,icon:"none"})}}}};a.default=i},d51d:function(t,a,e){"use strict";e.r(a);var i=e("c27a"),s=e("c7ae");for(var c in s)"default"!==c&&function(t){e.d(a,t,(function(){return s[t]}))}(c);e("206f");var n,o=e("f0c5"),r=Object(o["a"])(s["default"],i["b"],i["c"],!1,null,"5c32fb71",null,!1,i["a"],n);a["default"]=r.exports}}]);