hz-zhhq-app/unpackage/dist/build/web/static/js/pages-foodMenu-foodStay.45a...

1 line
62 KiB
JavaScript
Raw Normal View History

2025-02-25 15:19:01 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-foodMenu-foodStay"],{"144a":function(e,t,i){"use strict";i.r(t);var a=i("e11b"),n=i("81de");for(var o in n)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(o);i("4197");var c=i("828b"),r=Object(c["a"])(n["default"],a["b"],a["c"],!1,null,"347c93c8",null,!1,a["a"],void 0);t["default"]=r.exports},1842:function(e,t,i){"use strict";i.d(t,"b",(function(){return a})),i.d(t,"c",(function(){return n})),i.d(t,"a",(function(){}));var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-uni-view",{staticClass:"hz-header"},[a("v-uni-view",{staticClass:"left"},[a("v-uni-image",{attrs:{src:i("b6a9"),mode:""},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.customNavigateBack.apply(void 0,arguments)}}})],1),a("v-uni-view",{staticClass:"center"},[e._v(e._s(e.title))]),a("v-uni-view",{staticClass:"right"},[e._l(e.imageList,(function(t){return a("v-uni-image",{directives:[{name:"show",rawName:"v-show",value:t.authority,expression:"item.authority"}],key:e.index,attrs:{src:t}})})),a("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:e.btnName,expression:"btnName"}],staticClass:"text-btn",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.optionTab.apply(void 0,arguments)}}},[e._v(e._s(e.btnName))])],2)],1)},n=[]},"1a60":function(e,t,i){"use strict";(function(e){i("6a54");var a=i("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(i("fcf3"));i("c223"),i("64aa"),i("5c47"),i("a1c1");var o=i("5ffc"),c=i("2352"),r=a(i("144a")),d=a(i("4c78")),l={components:{loadMore:r.default,contentNone:d.default},data:function(){return{today:(new Date).getTime(),formatDate:c.formatDate,page:1,pageSize:10,loadingType:0,contentText:{contentdown:"上拉加载更多",contentrefresh:"正在加载...",contentnomore:"没有更多数据了"},currentTabIndex:0,genders:[{id:"梨园",name:"梨园"},{id:"科技楼",name:"科技楼"}],foodTypes:[{id:"0",name:"早餐"},{id:"1",name:"午餐"},{id:"2",name:"晚餐"}],foodTypeIndex:0,foodApply:{USER_ID:(0,c.getStorage)("userInfo").userId,USER_NAME:(0,c.getStorage)("userInfo").userName,LOCATION:"",PHONE:(0,c.getStorage)("userInfo").telnumber,ORG_ID:(0,c.getStorage)("userInfo").department_id,ORG_NAME:(0,c.getStorage)("userInfo").departmentName,NEAL_NUM:1,NEA_TYPE:"",NEAL_TIME:""},reportType:0,reportList:[],imgs:[],showAlert:!1,submitFlag:!0}},watch:{currentTabIndex:function(e,t){1==e?(this.page=1,this.loadingType=0,this.dataList()):(this.foodApply.LOCATION="",this.foodApply.NEAL_NUM=1,this.foodApply.NEA_TYPE="",this.foodApply.NEAL_TIME="")}},onLoad:function(e){this.currentTabIndex=e.currentTabIndex||0},onShow:function(){0==this.currentTabIndex||(this.page=1,this.loadingType=0,this.dataList())},methods:{dataList:function(){var t=this,i={method:o.getWeekMeallist,data:{USER_ID:(0,c.getStorage)("userInfo").userId,pageNum:this.page,pageSize:this.pageSize}};(0,c.callbackRequest)(i).then((function(i){i=i.data,1==i.returnCode?1==t.page?(t.reportList=i.returnData||[],e.log(t.reportList)):i.returnData.length>0?(t.reportList=t.reportList.concat(i.returnData),t.loadingType=0):t.loadingType=2:(0,c.alertTip)(i.returnMsg)}))},submit:function(){var e=this;if(this.submitFlag){if(this.submitFlag=!1,!this.foodApply.LOCATION)return(0,c.alertTip)("请选择食堂"),this.submitFlag=!0,!1;if(this.foodApply.NEA_TYPE||(this.foodApply.NEA_TYPE=this.foodTypes[0].id),!this.foodApply.NEAL_NUM||0==this.foodApply.NEAL_NUM)return(0,c.alertTip)("请输入就餐人数,至少为1"),this.submitFlag=!0,!1;if(!this.foodApply.NEAL_TIME)return(0,c.alertTip)("请选择取餐时间"),this.submitFlag=!0,!1;var t={method:o.addWeekMeal,data:this.foodApply};(0,c.callbackRequest)(t).then((function(t){t=t.data,1==t.returnCode?(e.submitFlag=!0,(0,c.alertTip)(t.returnMsg),setTimeout((function(t){e.currentTabIndex=1}),2e3)):(e.submitFlag=!0,(0,c.alertTip)(t.returnMsg))}))}},changeNumber:function(){var t=this;e.log(this.foodApply.NEAL_NUM),e.log((0,n.default)(this.foodApply.NEAL_NUM)),Number(this.foodApply.NEAL_