Files
PropertyDeployment/resources/Web/PropertyApp/html/static/js/pages-appointment-appointment.a8111a9d.js
Anfioo 4c2a450928 江门
prod
2026-02-01 16:17:43 +08:00

1 line
8.6 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-appointment-appointment"],{"1ba8":function(t,e,n){"use strict";n.r(e);var a=n("ca1a"),i=n("d02d");for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var s=n("828b"),r=Object(s["a"])(i["default"],a["b"],a["c"],!1,null,"3cb0b33d",null,!1,a["a"],void 0);e["default"]=r.exports},"371d":function(t,e,n){"use strict";n("6a54");var a=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("d4b5"),n("c223");var i=a(n("102c")),o=a(n("e408")),s=a(n("87cf")),r=n("6bc9"),u=n("49b2"),c=n("b9c3"),p=a(n("9b8e"));p.default.prototype.$preventClick=c.preventClick;var d={data:function(){return{onoff:!0,orderImg:s.default.baseUrl+"img/order.png",myOrders:[],orders:[],storeId:"",noData:!1,page:1,loadingStatus:"loading",loadingContentText:{contentdown:this.$t("pages.appointment.appointment.上拉加载更多"),contentrefresh:this.$t("pages.appointment.appointment.加载中"),contentnomore:this.$t("pages.appointment.appointment.没有更多")},repairStates:[{name:"请选择"}],repairStatesIndex:0,repairState:"",repairName:"",modal:{showModal:!1,title:this.$t("pages.appointment.appointment.暂停原因"),text:this.$t("pages.appointment.appointment.请填写暂停原因")}}},components:{noDataPage:i.default,uniLoadMore:o.default},onLoad:function(){this.java110Context.onLoad()},onShow:function(){var t=this.java110Context.getUserInfo(),e=t.storeId;this.storeId=e,this.myOrders=[],this.page=1,this._loadMyModify()},onReachBottom:function(){"noMore"!=this.loadingStatus&&this._loadMyModify()},methods:{scanCodeHandler:function(){var t=this;uni.scanCode({onlyFromCamera:!0,scanType:["qrCode"],autoZoom:!1,success:function(e){console.log("扫码结果:".concat(JSON.stringify(e,null,2))),t.parseQRCode(e)},fail:function(t){console.log("错误:".concat(t))},complete:function(t){console.log("ok")}})},parseQRCode:function(t){uni.vibrateShort(),console.log({title:t.result}),this.comfirmTimeId(t.result)},_searchRepair:function(){this.myOrders=[],this.page=1,this._loadMyModify()},repairStatesChange:function(t){if(this.repairStatesIndex=t.target.value,0!=this.repairStatesIndex){var e=this.repairStates[this.repairStatesIndex];this.repairState=e.statusCd}else this.repairState=""},checkAuth:function(t){return this.java110Context.hasPrivilege(t)},_loadMyModify:function(){this.loadingStatus="more";var t=this,e=this.java110Context.getUserInfo(),n=(e.storeId,{page:t.page,row:15,userId:e.userId,communityId:(0,r.getCurrentCommunity)().communityId,repairName:t.repairName,state:t.repairState});this.java110Context.request({url:s.default.listCommunitySpaceConfirmOrder,header:t.java110Context.getHeaders(),method:"GET",data:n,success:function(e){var n=e.data;if(0!=n.code)return uni.showToast({icon:"none",title:n.msg}),void(t.onoff=!0);t.myOrders=[];var a=n.data;return t.myOrders=t.myOrders.concat(a),t.myOrders.length<1?(t.noData=!0,void(t.onoff=!0)):(t.noData=!1,t.myOrders.length==n.total?(t.loadingStatus="noMore",void(t.onoff=!0)):void 0)},fail:function(e){wx.showToast({title:t.$t("pages.appointment.appointment.服务器异常了"),icon:"none",duration:2e3})}})},navigateToAppScan:function(){var t=this;console.log("App端直接扫码"),uni.scanCode({onlyFromCamera:!0,scanType:["qrCode","barCode"],success:function(e){console.log("扫码成功:",e.result),uni.vibrateShort(),t.comfirmTimeId(e.result)},fail:function(t){console.warn("扫码失败或取消:",t),uni.showToast({title:"扫码失败或取消",icon:"none"})},complete:function(){console.log("扫码流程结束")}})},navigateToScan:function(){setTimeout((function(){uni.navigateTo({url:"/pages/appointment/hou_one"})}),300)},comfirmTimeId:function(t){var e=this;""!=t&&(e.repairName=t,setTimeout((function(){uni.showModal({cancelText:e.$t("pages.appointment.appointment.取消"),confirmText:e.$t("pages.appointment.appointment.核销"),content:e.$t("pages.appointment.appointment.核销码:")+t,success:function(t){if(t.confirm){wx.showToast({title:e.$t("pages.appointment.appointment.请稍后"),icon:"none"});var n={timeId:e.repairName,communityId:(0,r.getCurrentCommunity)().communityId};(0,u.saveCommunitySpaceConfirmOrder)(e,n).then((function(t){uni.showToast({title:e.$t("pages.appointment.appointment.操作成功")}),e.repairName="",wx.hideLoading(),e._loadMyModify()}))}}})}),1e3))}}};e.default=d},"49b2":function(t,e,n){"use strict";n("6a54");var a=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.saveCommunitySpaceConfirmOrder=function(t,e){return new Promise((function(n,a){t.context.post({url:i.default.saveCommunitySpaceConfirmOrder,data:e,success:function(t){0==t.data.code?n(t):wx.showToast({title:"核销状态:"+t.data.msg,icon:"none",duration:3e3})},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:3e3})}})}))},n("bf0f");var i=a(n("87cf"));a(n("1ef3"))},b9c3:function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.preventClick=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=this;n.onoff?(n.onoff=!1,t(e)):uni.showToast({title:"操作过于频繁",icon:"none"})}},ca1a:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}));var a={uniLoadMore:n("e408").default,noDataPage:n("102c").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",[n("v-uni-view",{staticClass:"cu-bar bg-white search "},[n("v-uni-view",{staticClass:"search-form round"},[n("v-uni-text",{staticClass:"cuIcon-search"}),n("v-uni-input",{attrs:{type:"text",placeholder:this.$t("pages.appointment.appointment.输入核销码"),"confirm-type":"search"},model:{value:t.repairName,callback:function(e){t.repairName=e},expression:"repairName"}})],1),n("v-uni-view",{staticClass:"action"},[n("v-uni-button",{staticClass:"cu-btn bg-gradual-green shadow-blur round",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.navigateToScan()}}},[t._v(" "+t._s(t.$t("pages.appointment.appointment.扫码")))]),n("v-uni-button",{staticClass:"cu-btn bg-gradual-red shadow-blur round",staticStyle:{"margin-left":"10px"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.comfirmTimeId(t.repairName)}}},[t._v(" "+t._s(t.$t("pages.appointment.appointment.核销")))])],1)],1),0==t.noData?n("v-uni-view",[t._l(t.myOrders,(function(e,a){return n("v-uni-view",{key:a,staticClass:"bg-white margin-top margin-right-xs radius margin-left-xs padding"},[n("v-uni-view",{staticClass:"flex padding-bottom-xs solid-bottom justify-between"},[n("v-uni-view",{staticStyle:{"font-size":"14px"}},[t._v(" "+t._s(t.$t("pages.appointment.appointment.单号"))),n("span",{staticClass:"text-gray",staticStyle:{"margin-left":"10px"}},[t._v(t._s(e.orderId))])])],1),n("v-uni-view",{staticClass:"flex margin-top justify-between"},[n("v-uni-view",{staticClass:"text-gray"},[t._v(" "+t._s(t.$t("pages.appointment.appointment.场地")))]),n("v-uni-view",{staticClass:"text-gray"},[t._v(t._s(e.spaceName))])],1),n("v-uni-view",{staticClass:"flex margin-top-xs justify-between"},[n("v-uni-view",{staticClass:"text-gray"},[t._v(" "+t._s(t.$t("pages.appointment.appointment.预约日期")))]),n("v-uni-view",{staticClass:"text-gray"},[t._v(t._s(e.appointmentTime))])],1),n("v-uni-view",{staticClass:"flex margin-top-xs justify-between"},[n("v-uni-view",{staticClass:"text-gray"},[t._v(" "+t._s(t.$t("pages.appointment.appointment.预约时间")))]),n("v-uni-view",{staticClass:"text-gray"},[t._v(t._s(e.hours))])],1),n("v-uni-view",{staticClass:"flex margin-top-xs justify-between"},[n("v-uni-view",{staticClass:"text-gray"},[t._v(" "+t._s(t.$t("pages.appointment.appointment.预约人")))]),n("v-uni-view",{staticClass:"text-gray"},[t._v(t._s(e.personName))])],1),n("v-uni-view",{staticClass:"flex margin-top-xs justify-between"},[n("v-uni-view",{staticClass:"text-gray"},[t._v(" "+t._s(t.$t("pages.appointment.appointment.预约电话")))]),n("v-uni-view",{staticClass:"text-gray"},[t._v(t._s(e.personTel))])],1),n("v-uni-view",{staticClass:"flex margin-top-xs justify-between"},[n("v-uni-view",{staticClass:"text-gray"},[t._v(" "+t._s(t.$t("pages.appointment.appointment.核销时间")))]),n("v-uni-view",{staticClass:"text-gray"},[t._v(t._s(e.createTime))])],1),n("v-uni-view",{staticClass:"solid-top flex justify-end margin-top padding-top-sm "})],1)})),n("uni-load-more",{attrs:{status:t.loadingStatus,"content-text":t.loadingContentText}})],2):n("v-uni-view",[n("no-data-page")],1)],1)},o=[]},d02d:function(t,e,n){"use strict";n.r(e);var a=n("371d"),i=n.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a}}]);