1 line
4.9 KiB
JavaScript
1 line
4.9 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-repairDispatchFinish-repairDispatchFinish"],{"1e4f0":function(t,i,e){"use strict";e.r(i);var a=e("db98"),s=e.n(a);for(var n in a)["default"].indexOf(n)<0&&function(t){e.d(i,t,(function(){return a[t]}))}(n);i["default"]=s.a},db98:function(t,i,e){"use strict";e("6a54");var a=e("f5bd").default;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,e("bf0f"),e("2797"),e("5c47"),e("a1c1"),e("c223");var s=a(e("102c")),n=a(e("e408")),r=a(e("87cf")),o=e("6bc9"),u={data:function(){return{orderImg:r.default.baseUrl+"img/order.png",myOrders:[],orders:[],storeId:"",noData:!1,page:1,loadingStatus:"loading",loadingContentText:{contentdown:"上拉加载更多",contentrefresh:"加载中",contentnomore:"没有更多"}}},components:{noDataPage:s.default,uniLoadMore:n.default},onLoad:function(){this.java110Context.onLoad();var t=this.java110Context.getUserInfo(),i=t.storeId;this.storeId=i,this._loadMyModify()},onReachBottom:function(){"noMore"!=this.loadingStatus&&this._loadMyModify()},methods:{_loadMyModify:function(){this.loadingStatus="more";var t=this,i=this.java110Context.getUserInfo(),e=(i.storeId,{page:this.page,row:15,userId:i.userId,communityId:(0,o.getCurrentCommunity)().communityId});this.java110Context.request({url:r.default.listStaffFinishRepairs,header:t.java110Context.getHeaders(),method:"GET",data:e,success:function(i){var e=i.data;if(0==e.code){var a=e.data;a.forEach((function(t){var i=t.appointmentTime,e=new Date(i.replace(/-/g,"/"));t.appointmentTime=e.getMonth()+1+"-"+e.getDate()})),t.myOrders=t.myOrders.concat(a),t.page++,t.myOrders.length<1?t.noData=!0:t.myOrders.length!=e.total||(t.loadingStatus="noMore")}else uni.showToast({icon:"none",title:e.msg})},fail:function(t){wx.showToast({title:this.$t("pages.repairDispatchFinish.repairDispatchFinish.服务器异常了"),icon:"none",duration:2e3})}})},repairDetail:function(t){console.log("_item",t),uni.navigateTo({url:"/pages/repairDetail/repairDetail?repairId="+t.repairId+"&storeId="+this.storeId})}}};i.default=u},ea12:function(t,i,e){"use strict";e.r(i);var a=e("fe79"),s=e("1e4f0");for(var n in s)["default"].indexOf(n)<0&&function(t){e.d(i,t,(function(){return s[t]}))}(n);var r=e("828b"),o=Object(r["a"])(s["default"],a["b"],a["c"],!1,null,"763c8530",null,!1,a["a"],void 0);i["default"]=o.exports},fe79:function(t,i,e){"use strict";e.d(i,"b",(function(){return s})),e.d(i,"c",(function(){return n})),e.d(i,"a",(function(){return a}));var a={uniLoadMore:e("e408").default,noDataPage:e("102c").default},s=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("v-uni-view",[0==t.noData?e("v-uni-view",[t._l(t.myOrders,(function(i,a){return e("v-uni-view",{key:a,staticClass:"bg-white margin-top margin-right-xs radius margin-left-xs padding"},[e("v-uni-view",{staticClass:"flex padding-bottom-xs solid-bottom justify-between"},[e("v-uni-view",[t._v(t._s(i.repairId))]),e("v-uni-view",{staticClass:"text-gray"},[t._v(t._s(i.tel))])],1),e("v-uni-view",{staticClass:"flex margin-top justify-between"},[e("v-uni-view",{staticClass:"text-gray"},[t._v(" "+t._s(t.$t("pages.repairDispatchFinish.repairDispatchFinish.报修类型")))]),e("v-uni-view",{staticClass:"text-gray"},[t._v(t._s(i.repairTypeName))])],1),e("v-uni-view",{staticClass:"flex margin-top-xs justify-between"},[e("v-uni-view",{staticClass:"text-gray"},[t._v(" "+t._s(t.$t("pages.repairDispatchFinish.repairDispatchFinish.报修人")))]),e("v-uni-view",{staticClass:"text-gray"},[t._v(t._s(i.repairName))])],1),e("v-uni-view",{staticClass:"flex margin-top-xs justify-between"},[e("v-uni-view",{staticClass:"text-gray"},[t._v(" "+t._s(t.$t("pages.repairDispatchFinish.repairDispatchFinish.位置")))]),e("v-uni-view",{staticClass:"text-gray"},[t._v(t._s(i.repairObjName))])],1),e("v-uni-view",{staticClass:"flex margin-top-xs justify-between"},[e("v-uni-view",{staticClass:"text-gray"},[t._v(" "+t._s(t.$t("pages.repairDispatchFinish.repairDispatchFinish.预约时间")))]),e("v-uni-view",{staticClass:"text-gray"},[t._v(t._s(i.appointmentTime))])],1),e("v-uni-view",{staticClass:"flex margin-top-xs justify-between"},[e("v-uni-view",{staticClass:"text-gray"},[t._v(" "+t._s(t.$t("pages.repairDispatchFinish.repairDispatchFinish.状态")))]),e("v-uni-view",{staticClass:"text-gray"},[t._v(t._s(i.stateName))])],1),e("v-uni-view",{staticClass:"flex margin-top-xs justify-between"},[e("v-uni-view",{staticClass:"text-gray"},[t._v(" "+t._s(t.$t("pages.repairDispatchFinish.repairDispatchFinish.报修内容")))]),e("v-uni-view",{staticClass:"text-gray"},[t._v(t._s(i.context))])],1),e("v-uni-view",{staticClass:"solid-top flex justify-end margin-top padding-top-sm "},[e("v-uni-button",{staticClass:"cu-btn sm line-gray",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.repairDetail(i)}}},[t._v(" "+t._s(t.$t("pages.repairDispatchFinish.repairDispatchFinish.详情")))])],1)],1)})),e("uni-load-more",{attrs:{status:t.loadingStatus,"content-text":t.loadingContentText}})],2):e("v-uni-view",[e("no-data-page")],1)],1)},n=[]}}]); |