pages-index-steamMeter-steamMeterDetail-steamMeterDetail.be0222d7.js 14 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-steamMeter-steamMeterDetail-steamMeterDetail"],{"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},"21a7":function(e,t,a){"use strict";var i=a("287c"),n=a.n(i);n.a},"287c":function(e,t,a){var i=a("fc60");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var n=a("4f06").default;n("202f18e7",i,!0,{sourceMap:!1,shadowMode:!1})},"2dfb":function(e,t,a){"use strict";var i=a("62c0"),n=a.n(i);n.a},"2e9e":function(e,t,a){"use strict";a.r(t);var i=a("fbdf"),n=a("8080");for(var r in n)"default"!==r&&function(e){a.d(t,e,(function(){return n[e]}))}(r);a("b722");var o,s=a("f0c5"),c=Object(s["a"])(n["default"],i["b"],i["c"],!1,null,"02c438ce",null,!1,i["a"],o);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},"3a56":function(e,t,a){"use strict";var i=a("4ea4");a("acd8"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(a("3fe5")),r=i(a("2e9e")),o={data:function(){return{g_username:"epans",g_employeName:"Epans",g_employeId:"2",dataValue:{steamNumber:"001",aAmount:"100",endAmount:"11",steamName:"设备部电表",date:"2019-06-06",price:"5元",note:"其他"}}},onBackPress:function(){return uni.redirectTo({url:"/pages/index/steamMeter/steamMeter"}),!0},onLoad:function(e){var t=this,a=uni.getStorageSync("g_employeName");t.g_employeName=a,console.log("前一个页面数据:",e);var i=e.id,n="/authdata/GetDataByName",r={name:"findByIdSteam",parammaps:{id:i}};t.ajax(n,r,"POST",t.get_list_data)},methods:{road_name_id_time_data:function(e){var t=this,a=t.get_today_now(),i=uni.getStorageSync("g_username"),n=uni.getStorageSync("g_employeId");t.dataValue.g_username=i,t.g_username=i,t.g_employeId=n,t.dataValue.date=a},formSubmit:function(e){var t=this,a=e.detail.value,i=this.dataValue,n={name:"updateSteam",parammaps:i};if(console.log("保存原始数据:"+JSON.stringify(a)),n.parammaps.endAmount=a.endAmount,n.parammaps.price1=a.price,n.parammaps.note=a.note,n.parammaps.employeId=this.g_employeId,console.log("需要发送的数据:"+JSON.stringify(n)),parseFloat(n.parammaps.endAmount)<parseFloat(n.parammaps.aAmount))uni.showToast({title:"当前值不得小于上次值!",duration:2e3,icon:"none"});else{var r="/authdata/GetDataByName";t.ajax(r,n,"POST",t.get_edit_status)}},formCancel:function(e){uni.redirectTo({url:"/pages/index/steamMeter/steamMeter"})},get_list_data:function(e){console.log("列表数据:",e),this.dataValue=e.data.list[0],this.road_name_id_time_data()},get_edit_status:function(e){if(console.log("保存状态:",e),null!=e.data.list)"success"==e.data.list[0].msg?uni.showToast({title:"保存成功",duration:500,icon:"none",success:function(e){setTimeout((function(){uni.redirectTo({url:"/pages/index/steamMeter/steamMeter"})}),1e3)}}):uni.showToast({title:"保存失败",duration:2e3,icon:"none"});else if("ok"==e.data.message)uni.showToast({title:"保存成功",duration:500,icon:"none",success:function(e){setTimeout((function(){uni.navigateBack({delta:1})}),1e3)}});else{var t=e.data;uni.showToast({title:"保存失败"+t,duration:2e3,icon:"none"})}}},components:{gracePage:n.default,graceFlex:r.default}};t.default=o},"3fe5":function(e,t,a){"use strict";a.r(t);var i=a("f19a"),n=a("84c7");for(var r in n)"default"!==r&&function(e){a.d(t,e,(function(){return n[e]}))}(r);a("2dfb");var o,s=a("f0c5"),c=Object(s["a"])(n["default"],i["b"],i["c"],!1,null,"68be4825",null,!1,i["a"],o);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},"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 n=a("4f06").default;n("0f67b36b",i,!0,{sourceMap:!1,shadowMode:!1})},7358:function(e,t,a){"use strict";a.r(t);var i=a("f442"),n=a("7617");for(var r in n)"default"!==r&&function(e){a.d(t,e,(function(){return n[e]}))}(r);a("21a7");var o,s=a("f0c5"),c=Object(s["a"])(n["default"],i["b"],i["c"],!1,null,"4067cb98",null,!1,i["a"],o);t["default"]=c.exports},7617:function(e,t,a){"use strict";a.r(t);var i=a("3a56"),n=a.n(i);for(var r in i)"default"!==r&&function(e){a.d(t,e,(function(){return i[e]}))}(r);t["default"]=n.a},8080:function(e,t,a){"use strict";a.r(t);var i=a("3232"),n=a.n(i);for(var r in i)"default"!==r&&function(e){a.d(t,e,(function(){return i[e]}))}(r);t["default"]=n.a},"84c7":function(e,t,a){"use strict";a.r(t);var i=a("451a"),n=a.n(i);for(var r in i)"default"!==r&&function(e){a.d(t,e,(function(){return i[e]}))}(r);t["default"]=n.a},"9e13":function(e,t,a){var i=a("0f6b");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var n=a("4f06").default;n("061c5d19",i,!0,{sourceMap:!1,shadowMode:!1})},b722:function(e,t,a){"use strict";var i=a("9e13"),n=a.n(i);n.a},f19a:function(e,t,a){"use strict";var i;a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return r})),a.d(t,"a",(function(){return i}));var n=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)},r=[]},f442:function(e,t,a){"use strict";var i;a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return r})),a.d(t,"a",(function(){return i}));var n=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.steamNumber))])],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.steamName))])],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.lastDate?" ":e.dataValue.lastDate))])],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"},[a("v-uni-view",{staticClass:"grace-label grace-bold "},[e._v("上次值")]),a("v-uni-input",{staticClass:"input",attrs:{type:"text",name:"lastAmount",placeholder:"",value:e.dataValue.lastAmount,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:"endAmount",placeholder:"",value:e.dataValue.endAmount}})],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:"price",placeholder:"",value:e.dataValue.price}})],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:"g_employeName",placeholder:"",value:e.g_employeName}})],1),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.note}})],1)],1)],1)],1)],1)},r=[]},fbdf:function(e,t,a){"use strict";var i;a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return r})),a.d(t,"a",(function(){return i}));var n=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)},r=[]},fc60:function(e,t,a){var i=a("24fb");t=i(!1),t.push([e.i,".input-bx[data-v-4067cb98]{height:auto;background:#fff;padding:0 %?30?%}.btn-bx[data-v-4067cb98]{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-4067cb98]{width:%?290?%;height:%?86?%;border-radius:%?10?%;background:#169bd5;font-size:%?32?%;color:#fff}.btn-res[data-v-4067cb98]{width:%?290?%;height:%?86?%;border-radius:%?10?%;background:#f60;font-size:%?32?%;color:#fff}",""]),e.exports=t}}]);