audit.js 4.0 KB

1
  1. require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/subPackages/meetingroom/audit"],{"5a42":function(e,t,n){"use strict";(function(e,t){var i=n("4ea4");n("89bd"),n("4a2a");i(n("66fd"));var a=i(n("cd3e"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(a.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},"5f5e":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,"83a1"))}},a=function(){var e=this.$createElement;this._self._c},o=[]},bb0b:function(e,t,n){"use strict";var i=n("bc54"),a=n.n(i);a.a},bc54:function(e,t,n){},c6a5:function(e,t,n){"use strict";n.r(t);var i=n("fcc8"),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},cd3e:function(e,t,n){"use strict";n.r(t);var i=n("5f5e"),a=n("c6a5");for(var o in a)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(o);n("bb0b");var r=n("f0c5"),c=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,"c8ddf810",null,!1,i["a"],void 0);t["default"]=c.exports},fcc8:function(e,t,n){"use strict";(function(e){var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n("2eee")),o=i(n("c973")),r=n("f89c"),c=n("44c6"),s={components:{TelNum:function(){n.e("pages/subPackages/components/tel-number/index").then(function(){return resolve(n("909c"))}.bind(null,n)).catch(n.oe)},vanRadio:function(){n.e("common/vendor").then(function(){return resolve(n("faf0"))}.bind(null,n)).catch(n.oe)},vanRadioGroup:function(){n.e("common/vendor").then(function(){return resolve(n("aad2"))}.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,c.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,c.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,c.getAppUserMain)(t).then((function(t){200==t.key&&(e.bizInfo=t.data.qymc)}))},getOrderDetail:function(){var e=this,t={id:this.appointId};(0,c.getDetial)(t).then((function(t){200==t.key&&(e.roomDetial=t.data.roomDetial,e.oderDetial=t.data.oderDetial,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,c.confirmAudit)(n).then((function(n){console.log("获取提交详情_:",n),200==n.key&&(t.$showToast("审核成功!"),e.navigateBack({success:function(){beforePage.getAppointList("1,3")}}))}))},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=s}).call(this,n("543d")["default"])}},[["5a42","common/runtime","common/vendor","pages/subPackages/common/vendor"]]]);