audit.js 4.0 KB

1
  1. require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/subPackages/venueRoom/audit"],{"238f":function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return i}));var i={uniEasyinput:function(){return n.e("uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput").then(n.bind(null,"2c3f"))}},a=function(){var e=this.$createElement;this._self._c},o=[]},6694:function(e,t,n){"use strict";(function(e,t){var i=n("47a9");n("5e15"),n("3c60");i(n("3240"));var a=i(n("9466"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(a.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},"7e86":function(e,t,n){"use strict";n.r(t);var i=n("9f61"),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(o);t["default"]=a.a},9466:function(e,t,n){"use strict";n.r(t);var i=n("238f"),a=n("7e86");for(var o in a)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(o);n("fd50");var r=n("828b"),s=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,"508dace6",null,!1,i["a"],void 0);t["default"]=s.exports},"9f61":function(e,t,n){"use strict";(function(e){var i=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n("7eb4")),o=i(n("ee10")),r=n("0165"),s=n("5f08"),c={components:{TelNum:function(){n.e("pages/subPackages/components/tel-number/index").then(function(){return resolve(n("e493"))}.bind(null,n)).catch(n.oe)},vanRadio:function(){n.e("common/vendor").then(function(){return resolve(n("d1bb"))}.bind(null,n)).catch(n.oe)},vanRadioGroup:function(){n.e("common/vendor").then(function(){return resolve(n("f9c9"))}.bind(null,n)).catch(n.oe)}},data:function(){return{active:"",dic_SelectList:{},dic_key:["timeSlot"],currUser:{},bizInfo:{},roomDetial:{},oderDetial:{},appointId:"",readOnlyType:!0,lotInfo:{},seatList:[],num:-1,radio:"1",showStartPicker:!1,showEndPicker:!1,startTime:"",formatStartTime:"",endTime:"",formatEndTime:"",dateList:[{date:"8/1",typeList:["1","3","4"]},{date:"8/2",typeList:["1","2","4"]},{date:"8/3",typeList:["4","2","1"]}],reason:"",timeList:["9:00-12:00","13:00-18:00","18:00-22:00"]}},onLoad:function(e){console.log("1"===e.readOnlyType),this.appointId=e.id,this.readOnlyType="1"===e.readOnlyType,this.currUser=(0,s.getUserLocalStorageInfo)().user,this.getByCodes()},methods:{getByCodes:function(){var e=this;return(0,o.default)(a.default.mark((function t(){var n;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,(0,s.getByCodes)(JSON.stringify(e.dic_key));case 2:n=t.sent,e.dic_SelectList=e.$common.handleDicList(n),e.getOrderDetail();case 5:case"end":return t.stop()}}),t)})))()},getBizMain:function(){var e=this,t={id:this.oderDetial.createdId};(0,s.getAppUserMain)(t).then((function(t){200==t.key&&(e.bizInfo=t.data.qymc)}))},getOrderDetail:function(){var e=this,t={id:this.appointId};(0,s.getDetial)(t).then((function(t){200==t.key&&(e.roomDetial=t.data.roomDetial,e.oderDetial=t.data.oderDetial,e.oderDetial.useTime=e.$common.transDate(e.oderDetial.useTime),e.radio="5"==e.oderDetial.state?"2":"1",e.reason=e.oderDetial.cancelReason,e.getBizMain())}))},submitFrom:function(){var t=this,n={id:this.appointId,confirmType:this.radio,reason:this.reason,userId:this.currUser.id};if(2==this.radio&&!this.reason)return this.$showToast("请填写取消原因!"),!1;(0,s.confirmAudit)(n).then((function(n){console.log("获取提交详情_:",n),200==n.key&&(t.$showToast("审核成功!"),e.switchTab({url:"/pages/index/index"}))}))},startTimeCancel:function(){this.showStartPicker=!1},startTimeConfirml:function(e){this.formatStartTime=(0,r.formatDate)(e,"day"),this.showStartPicker=!1},endTimeCancel:function(){this.showEndPicker=!1},endTimeConfirml:function(e){this.formatEndTime=(0,r.formatDate)(e,"day"),this.showEndPicker=!1}}};t.default=c}).call(this,n("df3c")["default"])},d3fe:function(e,t,n){},fd50:function(e,t,n){"use strict";var i=n("d3fe"),a=n.n(i);a.a}},[["6694","common/runtime","common/vendor","pages/subPackages/common/vendor"]]]);