1 line
4.9 KiB
JavaScript
1 line
4.9 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-repairDispatchFinish-repairDispatchFinish"],{"2aea":function(t,i,a){"use strict";a("6a54");var e=a("f5bd").default;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,a("bf0f"),a("2797"),a("5c47"),a("a1c1"),a("c223");var s=e(a("8981")),n=e(a("aa02")),r=e(a("9494")),o=a("7fee"),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(),a=(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:a,success:function(i){var a=i.data;if(0==a.code){var e=a.data;e.forEach((function(t){var i=t.appointmentTime,a=new Date(i.replace(/-/g,"/"));t.appointmentTime=a.getMonth()+1+"-"+a.getDate()})),t.myOrders=t.myOrders.concat(e),t.page++,t.myOrders.length<1?t.noData=!0:t.myOrders.length!=a.total||(t.loadingStatus="noMore")}else uni.showToast({icon:"none",title:a.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},"5c37":function(t,i,a){"use strict";a.d(i,"b",(function(){return s})),a.d(i,"c",(function(){return n})),a.d(i,"a",(function(){return e}));var e={uniLoadMore:a("aa02").default,noDataPage:a("8981").default},s=function(){var t=this,i=t.$createElement,a=t._self._c||i;return a("v-uni-view",[0==t.noData?a("v-uni-view",[t._l(t.myOrders,(function(i,e){return a("v-uni-view",{key:e,staticClass:"bg-white margin-top margin-right-xs radius margin-left-xs padding"},[a("v-uni-view",{staticClass:"flex padding-bottom-xs solid-bottom justify-between"},[a("v-uni-view",[t._v(t._s(i.repairId))]),a("v-uni-view",{staticClass:"text-gray"},[t._v(t._s(i.tel))])],1),a("v-uni-view",{staticClass:"flex margin-top justify-between"},[a("v-uni-view",{staticClass:"text-gray"},[t._v(" "+t._s(t.$t("pages.repairDispatchFinish.repairDispatchFinish.报修类型")))]),a("v-uni-view",{staticClass:"text-gray"},[t._v(t._s(i.repairTypeName))])],1),a("v-uni-view",{staticClass:"flex margin-top-xs justify-between"},[a("v-uni-view",{staticClass:"text-gray"},[t._v(" "+t._s(t.$t("pages.repairDispatchFinish.repairDispatchFinish.报修人")))]),a("v-uni-view",{staticClass:"text-gray"},[t._v(t._s(i.repairName))])],1),a("v-uni-view",{staticClass:"flex margin-top-xs justify-between"},[a("v-uni-view",{staticClass:"text-gray"},[t._v(" "+t._s(t.$t("pages.repairDispatchFinish.repairDispatchFinish.位置")))]),a("v-uni-view",{staticClass:"text-gray"},[t._v(t._s(i.repairObjName))])],1),a("v-uni-view",{staticClass:"flex margin-top-xs justify-between"},[a("v-uni-view",{staticClass:"text-gray"},[t._v(" "+t._s(t.$t("pages.repairDispatchFinish.repairDispatchFinish.预约时间")))]),a("v-uni-view",{staticClass:"text-gray"},[t._v(t._s(i.appointmentTime))])],1),a("v-uni-view",{staticClass:"flex margin-top-xs justify-between"},[a("v-uni-view",{staticClass:"text-gray"},[t._v(" "+t._s(t.$t("pages.repairDispatchFinish.repairDispatchFinish.状态")))]),a("v-uni-view",{staticClass:"text-gray"},[t._v(t._s(i.stateName))])],1),a("v-uni-view",{staticClass:"flex margin-top-xs justify-between"},[a("v-uni-view",{staticClass:"text-gray"},[t._v(" "+t._s(t.$t("pages.repairDispatchFinish.repairDispatchFinish.报修内容")))]),a("v-uni-view",{staticClass:"text-gray"},[t._v(t._s(i.context))])],1),a("v-uni-view",{staticClass:"solid-top flex justify-end margin-top padding-top-sm "},[a("v-uni-button",{staticClass:"cu-btn sm line-gray",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.repairDetail(i)}}},[t._v(" "+t._s(t.$t("pages.repairDispatchFinish.repairDispatchFinish.详情")))])],1)],1)})),a("uni-load-more",{attrs:{status:t.loadingStatus,"content-text":t.loadingContentText}})],2):a("v-uni-view",[a("no-data-page")],1)],1)},n=[]},b1f8:function(t,i,a){"use strict";a.r(i);var e=a("5c37"),s=a("f758");for(var n in s)["default"].indexOf(n)<0&&function(t){a.d(i,t,(function(){return s[t]}))}(n);var r=a("828b"),o=Object(r["a"])(s["default"],e["b"],e["c"],!1,null,"763c8530",null,!1,e["a"],void 0);i["default"]=o.exports},f758:function(t,i,a){"use strict";a.r(i);var e=a("2aea"),s=a.n(e);for(var n in e)["default"].indexOf(n)<0&&function(t){a.d(i,t,(function(){return e[t]}))}(n);i["default"]=s.a}}]); |