1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-todo-repair-repair"],{"0f6b":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.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}",""]),t.exports=e},"14fb":function(t,e,a){"use strict";var i=a("9105"),n=a.n(i);n.a},17159:function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i}));var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"page",attrs:{slot:"gBody"},slot:"gBody"},[a("v-uni-view",[a("graceNavBar",{attrs:{items:t.navItems2,lineHeight:"80rpx",isCenter:!0,currentIndex:t.navIndex,size:320,activeLineBg:"#3688FF",textAlign:"center",activeColor:"#3688FF",activeLineWidth:"100%",activeLineHeight:"2rpx",margin:10},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.navChange.apply(void 0,arguments)}}})],1),a("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:0===t.navIndex,expression:"navIndex === 0"}]},[a("v-uni-view",{staticClass:"list-bx"},[t._l(t.dataList,(function(e,i){return[a("v-uni-navigator",{attrs:{"open-type":"navigate",url:"./repairDetail/repairDetail?name="+e.name+"&id="+e.id+"&all="+JSON.stringify(e)+"&isbtn=yes","hover-class":"navigator-hover"}},[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-eye icon grace-blue"}),a("v-uni-text",{staticClass:"title grace-black"},[t._v("维修单:"+t._s(e.repairCode))]),a("v-uni-text",{staticClass:"grace-more"},[t._v(t._s(e.orderTime))])],1),a("v-uni-view",{staticClass:"g-title-bx-row",staticStyle:{padding:"0 20upx"}},[a("v-uni-text",{staticClass:"grace-black9 g-list-w"},[t._v("报修:")]),a("v-uni-text",{staticClass:"grace-black6"},[t._v(t._s(e.requesterName))])],1),a("v-uni-view",{staticClass:"g-title-bx-row",staticStyle:{padding:"0 20upx"}},[a("v-uni-text",{staticClass:"grace-black9 g-list-w"},[t._v("设备:")]),a("v-uni-text",{staticClass:"grace-black6"},[t._v(t._s(e.eqCode)+" "+t._s(e.eqName))])],1),a("v-uni-view",{staticClass:"g-title-bx-row",staticStyle:{padding:"0 20upx"}},[a("v-uni-text",{staticClass:"grace-black9 g-list-w"},[t._v("故障:")]),a("v-uni-text",{staticClass:"grace-black6 "},[t._v(t._s(e.partName)+" "+t._s(e.details))])],1)],1),a("v-uni-view",{staticClass:"g-line"})],1)]}))],2)],1),a("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:1===t.navIndex,expression:"navIndex === 1"}]},[a("v-uni-view",{staticClass:"list-bx"},[t._l(t.dataList2,(function(e,i){return[a("v-uni-navigator",{attrs:{"open-type":"navigate",url:"./repairDetail/repairDetail?name="+e.name+"&id="+e.id+"&all="+JSON.stringify(e)+"&isbtn=no","hover-class":"navigator-hover"}},[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-eye icon grace-blue"}),a("v-uni-text",{staticClass:"title grace-black"},[t._v("维修单:"+t._s(e.repairCode))]),a("v-uni-text",{staticClass:"grace-more"},[t._v(t._s(e.orderTime))])],1),a("v-uni-view",{staticClass:"g-title-bx-row",staticStyle:{padding:"0 20upx"}},[a("v-uni-text",{staticClass:"grace-black9 g-list-w"},[t._v("报修:")]),a("v-uni-text",{staticClass:"grace-black6"},[t._v(t._s(e.requesterName))])],1),a("v-uni-view",{staticClass:"g-title-bx-row",staticStyle:{padding:"0 20upx"}},[a("v-uni-text",{staticClass:"grace-black9 g-list-w"},[t._v("设备:")]),a("v-uni-text",{staticClass:"grace-black6"},[t._v(t._s(e.eqCode)+" "+t._s(e.eqName))])],1),a("v-uni-view",{staticClass:"g-title-bx-row",staticStyle:{padding:"0 20upx"}},[a("v-uni-text",{staticClass:"grace-black9 g-list-w"},[t._v("故障:")]),a("v-uni-text",{staticClass:"grace-black6 "},[t._v(t._s(e.partName)+" "+t._s(e.details))])],1)],1),a("v-uni-view",{staticClass:"g-line"})],1)]}))],2)],1)],1)},r=[]},"2dfb":function(t,e,a){"use strict";var i=a("62c0"),n=a.n(i);n.a},"2e9e":function(t,e,a){"use strict";a.r(e);var i=a("fbdf"),n=a("8080");for(var r in n)"default"!==r&&function(t){a.d(e,t,(function(){return n[t]}))}(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);e["default"]=c.exports},"2fbd":function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i}));var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-scroll-view",{class:["grace-nav-bar",t.isCenter?"grace-nav-center":""],attrs:{"scroll-x":!0,"show-scrollbar":!1,"scroll-into-view":"tab-"+t.currentIndex}},t._l(t.items,(function(e,i){return a("v-uni-view",{key:i,staticClass:"nav-item",style:{width:t.size<1?"auto":t.size+"rpx",marginRight:t.margin+"rpx",padding:"0rpx "+t.padding},attrs:{id:"tab-"+i,"data-index":i},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.navchang.apply(void 0,arguments)}}},[a("v-uni-view",{class:["nav-item-title",t.currentIndex==i?"nav-active":""],style:{color:t.currentIndex==i?t.activeColor:t.color,textAlign:t.textAlign,lineHeight:t.lineHeight,fontSize:t.fontSize}},[t._v(t._s(e))]),a("v-uni-view",{staticClass:"nav-active-line-wrap",style:{justifyContent:t.activeDirection}},[t.currentIndex==i?a("v-uni-view",{staticClass:"nav-active-line",style:{background:t.activeLineBg,width:t.activeLineWidth,height:t.activeLineHeight}}):t._e()],1)],1)})),1)},r=[]},3232:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={props:{classes:{type:Array,default:function(){return new Array}}}};e.default=i},3953:function(t,e,a){var i=a("b03d");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("2fb7db32",i,!0,{sourceMap:!1,shadowMode:!1})},"3d6b":function(t,e,a){"use strict";a.r(e);var i=a("e481"),n=a.n(i);for(var r in i)"default"!==r&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},"3fe5":function(t,e,a){"use strict";a.r(e);var i=a("f19a"),n=a("84c7");for(var r in n)"default"!==r&&function(t){a.d(e,t,(function(){return n[t]}))}(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);e["default"]=c.exports},"451a":function(t,e,a){"use strict";a("c975"),a("a9e3"),a("ac1f"),a("5319"),Object.defineProperty(e,"__esModule",{value:!0}),e.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 t=uni.getSystemInfoSync();t.model=t.model.replace(" ",""),-1!=t.model.indexOf("iPhoneX")&&(this.iphoneXButtomHeight=uni.upx2px(50))}catch(e){return null}this.customHeader&&(this.statusBarHeight=t.statusBarHeight)}};e.default=i},"5ade":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.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}",""]),t.exports=e},"5e75":function(t,e,a){"use strict";a.r(e);var i=a("b12d"),n=a.n(i);for(var r in i)"default"!==r&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},"62c0":function(t,e,a){var i=a("5ade");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("0f67b36b",i,!0,{sourceMap:!1,shadowMode:!1})},8080:function(t,e,a){"use strict";a.r(e);var i=a("3232"),n=a.n(i);for(var r in i)"default"!==r&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},"84c5":function(t,e,a){"use strict";var i=a("3953"),n=a.n(i);n.a},"84c7":function(t,e,a){"use strict";a.r(e);var i=a("451a"),n=a.n(i);for(var r in i)"default"!==r&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},9105:function(t,e,a){var i=a("fc35");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("1ab0d544",i,!0,{sourceMap:!1,shadowMode:!1})},"9e13":function(t,e,a){var i=a("0f6b");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("061c5d19",i,!0,{sourceMap:!1,shadowMode:!1})},b012:function(t,e,a){"use strict";a.r(e);var i=a("17159"),n=a("5e75");for(var r in n)"default"!==r&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("84c5");var o,s=a("f0c5"),c=Object(s["a"])(n["default"],i["b"],i["c"],!1,null,"94382f60",null,!1,i["a"],o);e["default"]=c.exports},b03d:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".g-title-bx-row[data-v-94382f60]{height:auto;line-height:2}",""]),t.exports=e},b12d:function(t,e,a){"use strict";var i=a("4ea4");a("99af"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("3fe5")),r=i(a("2e9e")),o=i(a("d7c4")),s={data:function(){return{navItems2:["待处理","已处理"],navIndex:0,dataList:[],dataList2:[],isShow:!0,page:1,totalPages:1,page2:1,totalPages2:1}},onLoad:function(){var t=this,e=(t.g_url,uni.getStorageSync("g_token"),uni.getStorageSync("g_pastureId")),a=uni.getStorageSync("g_employeId"),i=(uni.getStorageSync("g_pastureName"),uni.getStorageSync("g_dempmId")),n="/authdata/GetDataByName",r=(t.get_today(),{name:"getRepirsListAPP1",offset:1,pagecount:10,parammaps:{loginId:a,menu:"Repair",logindeptId:i,orderStatue:1,loginpastureId:e}});t.ajax(n,r,"POST",t.get_list_data);var o={name:"getRepirsListAPP1",offset:1,pagecount:10,parammaps:{loginId:a,menu:"Repair",logindeptId:i,orderStatue:2,loginpastureId:e}};t.ajax(n,o,"POST",t.get_list_data2)},onReachBottom:function(){var t=this;if(0==t.navIndex){var e=t.page+1,a=t.totalPages;console.log("page",e+"totalPages",a),e>a||t.pagedTrailerList(e,10)}else{var i=t.page2+1,n=t.totalPages2;i>n||t.pagedTrailerList2(i,10)}},onBackPress:function(){return uni.switchTab({url:"/pages/todo/todo"}),!0},methods:{pagedTrailerList:function(t,e){var a=this,i=(a.g_url,uni.getStorageSync("g_token"),uni.getStorageSync("g_pastureId")),n=uni.getStorageSync("g_employeId"),r=(uni.getStorageSync("g_pastureName"),uni.getStorageSync("g_dempmId")),o="/authdata/GetDataByName",s=(a.get_today(),{name:"getRepirsListAPP1",offset:t,pagecount:e,parammaps:{loginId:n,menu:"Repair",logindeptId:r,orderStatue:1,loginpastureId:i}});a.ajax(o,s,"POST",a.get_list_data)},pagedTrailerList2:function(t,e){var a=this,i=(a.g_url,uni.getStorageSync("g_token"),uni.getStorageSync("g_pastureId")),n=uni.getStorageSync("g_employeId"),r=(uni.getStorageSync("g_pastureName"),uni.getStorageSync("g_dempmId")),o="/authdata/GetDataByName",s={name:"getRepirsListAPP1",offset:t,pagecount:e,parammaps:{loginId:n,menu:"Repair",logindeptId:r,orderStatue:2,loginpastureId:i}};a.ajax(o,s,"POST",a.get_list_data2)},navChange:function(t){this.navIndex=t},get_list_data:function(t){console.log("列表数据:",t);var e=this;if("fail"==t.data.msg)uni.showToast({title:"暂无数据"+t.data,icon:"none"}),this.isShow=!1;else if(null==t.data.list)uni.showToast({title:"暂无数据",icon:"none"}),this.isShow=!1;else{this.isShow=!0;var a=t.data.list;e.dataList=e.dataList.concat(a),e.totalPages=t.data.pages,e.page=t.data.pageNum}},get_list_data2:function(t){var e=this;if(console.log("列表数据:",t),"fail"==t.data.msg)this.isShow=!1;else if(null==t.data.list)this.isShow=!1;else{this.isShow=!0;var a=t.data.list;e.dataList2=e.dataList2.concat(a),e.totalPages2=t.data.pages,e.page2=t.data.pageNum}}},components:{gracePage:n.default,graceFlex:r.default,graceNavBar:o.default}};e.default=s},b722:function(t,e,a){"use strict";var i=a("9e13"),n=a.n(i);n.a},d7c4:function(t,e,a){"use strict";a.r(e);var i=a("2fbd"),n=a("3d6b");for(var r in n)"default"!==r&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("14fb");var o,s=a("f0c5"),c=Object(s["a"])(n["default"],i["b"],i["c"],!1,null,"647bb7bc",null,!1,i["a"],o);e["default"]=c.exports},e481:function(t,e,a){"use strict";a("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={props:{isCenter:{type:Boolean,default:!1},currentIndex:{type:Number,default:0},size:{type:Number,default:120},fontSize:{type:String,default:"28rpx"},items:{type:Array,default:function(){return[]}},activeLineBg:{type:String,default:"linear-gradient(to right, #66BFFF,#3388FF)"},color:{type:String,default:"#333333"},activeColor:{type:String,default:"#333333"},activeLineHeight:{type:String,default:"6rpx"},activeLineWidth:{type:String,default:"36rpx"},activeDirection:{type:String,default:""},margin:{type:Number,default:0},textAlign:{type:String,default:""},lineHeight:{type:String,default:"50rpx"},padding:{type:String,default:"0rpx"}},methods:{navchang:function(t){this.$emit("change",Number(t.currentTarget.dataset.index))}}};e.default=i},f19a:function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i}));var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"grace-sbody"},[t.customHeader?a("v-uni-view",[a("v-uni-view",{staticClass:"grace-page-header",style:{"z-index":t.headerIndex,background:t.headerBG}},[a("v-uni-view",{staticClass:"grace-page-status-bar",style:{height:t.statusBarHeight+"px",background:t.statusBarBG}}),a("v-uni-view",{staticClass:"grace-page-header-nav",style:{height:t.headerHeight+"px"}},[a("v-uni-view",{staticClass:"grace-header-main"},[t._t("gHeader")],2),a("v-uni-view",{style:{width:t.BoundingWidth,height:"10px"}})],1)],1),a("v-uni-view",{style:{width:"100%",height:t.statusBarHeight+t.headerHeight+"px"}})],1):t._e(),a("v-uni-view",{staticClass:"grace-page-body"},[t._t("gBody")],2),t.isSwitchPage?t._e():a("v-uni-view",{style:{width:"100%",height:t.iphoneXButtomHeight+"px"}}),a("v-uni-view",{staticClass:"grace-page-footer",style:{"z-index":t.footerIndex,background:t.footerBg}},[t._t("gFooter"),t.isSwitchPage?t._e():a("v-uni-view",{style:{width:"100%",height:t.iphoneXButtomHeight+"px"}})],2),a("v-uni-view",{staticClass:"gui-page-rb-area",style:{right:t.rbRight+"rpx",bottom:t.rbBottom+"rpx",width:t.rbWidth+"rpx"}},[t._t("gRTArea")],2)],1)},r=[]},fbdf:function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i}));var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"gui-flex",class:t.classes},[t._t("default")],2)},r=[]},fc35:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".grace-nav-bar[data-v-647bb7bc]{width:100%;display:-webkit-box;display:-webkit-flex;display:flex;white-space:nowrap}.nav-item[data-v-647bb7bc]{width:%?100?%;display:-webkit-inline-box;display:-webkit-inline-flex;display:inline-flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.nav-item-title[data-v-647bb7bc]{font-size:%?28?%;line-height:%?50?%;width:100%;color:#333}.nav-active[data-v-647bb7bc]{font-size:%?30?%;font-weight:700}.nav-active-line-wrap[data-v-647bb7bc]{display:-webkit-box;display:-webkit-flex;display:flex}.nav-active-line[data-v-647bb7bc]{width:%?36?%;height:%?6?%;margin-top:%?5?%}.grace-nav-center[data-v-647bb7bc]{-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;text-align:center}",""]),t.exports=e}}]);
|