(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-517ba3dc"],{1184:function(e,t,r){"use strict";r.d(t,"d",(function(){return a})),r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return o})),r.d(t,"c",(function(){return s})),r.d(t,"f",(function(){return l})),r.d(t,"g",(function(){return c})),r.d(t,"e",(function(){return u}));var n=r("b6bd");function a(e){return Object(n.a)({url:"lottery/list",method:"get",params:e})}function i(e){return Object(n.a)({url:"lottery/add",method:"post",data:e})}function o(e,t){return Object(n.a)({url:"lottery/edit/".concat(e),method:"put",data:t})}function s(e){return Object(n.a)({url:"lottery/factor_info/".concat(e),method:"get"})}function l(e){return Object(n.a)({url:"lottery/set_status/".concat(e.id,"/").concat(e.status),method:"post"})}function c(e){return Object(n.a)({url:"lottery/record/list",method:"get",params:e})}function u(e){return Object(n.a)({url:"lottery/record/deliver",method:"post",data:e})}},"61f7":function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{})}function m(e){return d.pattern(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,e)}c(u,"请输入%s"),c(m,"%s格式不正确");var d=Object.keys(l).reduce((function(e,t){return e[t]=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o="range"===t?{min:e[0],max:e[1]}:i({},t,e);return a({message:r.replace(":".concat(t),"range"===t?"".concat(e[0],"-").concat(e[1]):e),type:"string"},o,{},n)},c(e[t],l[t]),e}),{})},8562:function(e,t,r){"use strict";var n=r("9c39");r.n(n).a},"9c39":function(e,t,r){},ca99:function(e,t,r){"use strict";r.r(t);var n=r("a34a"),a=r.n(n),i=r("2f62"),o=r("1184"),s=r("61f7"),l=r("f8b7"),c={deliver_name:[{required:!0,type:"string",message:"请选择快递公司",trigger:"select"}],deliver_number:[{required:!0,message:"请输入快递单号",trigger:"blur"}]},u={mark:[{required:!0,message:"请输入备注信息",trigger:"blur"}]};function m(e,t,r,n,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function d(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var i=e.apply(t,r);function o(e){m(i,n,a,o,s,"next",e)}function s(e){m(i,n,a,o,s,"throw",e)}o(void 0)}))}}function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var h={name:"lotteryRecordList",filters:{formatDate:function(e){if(0!==e){var t=new Date(1e3*e);return Object(s.a)(t,"yyyy-MM-dd hh:mm")}}},data:function(){return{modals:!1,shipModel:!1,loading:!1,locationList:[],shipForm:{id:"",deliver_name:"",deliver_number:null},markForm:{id:"",mark:""},ruleShip:c,ruleMark:u,lotteryList:[{text:"全部",val:"0"},{text:"积分抽奖",val:"1"},{text:"订单支付",val:"3"},{text:"订单评价",val:"4"},{text:"关注公众号",val:"5"}],typeList:[{text:"全部",val:"0"},{text:"积分",val:"2"},{text:"余额",val:"3"},{text:"红包",val:"4"},{text:"优惠券",val:"5"},{text:"商品",val:"6"}],columns1:[{title:"ID",key:"id",width:80},{title:"用户信息",slot:"user",minWidth:90},{title:"奖品信息",slot:"prize",minWidth:130},{title:"抽奖时间",key:"add_time",minWidth:100},{title:"收货信息",slot:"receive_info",minWidth:100},{title:"备注",slot:"mark",minWidth:100},{title:"操作",slot:"action",minWidth:130}],tableList:[],grid:{xl:6,lg:10,md:12,sm:24,xs:24},tableFrom:{type:"",factor:"",keyword:"",date:[],page:1,limit:15},total:0,timeVal:[],modelType:1,lottery_id:"",modelTitle:"",options:{shortcuts:[{text:"今天",value:function(){var e=new Date,t=new Date;return t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate())),[t,e]}},{text:"昨天",value:function(){var e=new Date,t=new Date;return t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),[t,e]}},{text:"最近7天",value:function(){var e=new Date,t=new Date;return t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-6))),[t,e]}},{text:"最近30天",value:function(){var e=new Date,t=new Date;return t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-29))),[t,e]}},{text:"上月",value:function(){var e=new Date,t=new Date,r=new Date(t.getFullYear(),t.getMonth(),0).getDate();return t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth()-1,1))),e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth()-1,r))),[t,e]}},{text:"本月",value:function(){var e=new Date,t=new Date;return t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),1))),[t,e]}},{text:"本年",value:function(){var e=new Date,t=new Date;return t.setTime(t.setTime(new Date((new Date).getFullYear(),0,1))),[t,e]}}]}}},computed:function(e){for(var t=1;t