1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-2589d8c4"],{1184:function(e,t,r){"use strict";r.d(t,"c",(function(){return a})),r.d(t,"d",(function(){return n})),r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return l})),r.d(t,"g",(function(){return s})),r.d(t,"f",(function(){return c})),r.d(t,"e",(function(){return u})),r("99af");var i=r("6b6c");function a(e){return Object(i.a)({url:"marketing/lottery/list",method:"get",params:e})}function n(e){return Object(i.a)({url:"marketing/lottery/factor_info/".concat(e),method:"get"})}function o(e){return Object(i.a)({url:"marketing/lottery/add",method:"post",data:e})}function l(e,t){return Object(i.a)({url:"marketing/lottery/edit/".concat(e),method:"put",data:t})}function s(e){return Object(i.a)({url:"marketing/lottery/set_status/".concat(e.id,"/").concat(e.status),method:"post"})}function c(e){return Object(i.a)({url:"marketing/lottery/record/list",method:"get",params:e})}function u(e){return Object(i.a)({url:"marketing/lottery/record/deliver",method:"post",data:e})}},"2c3e":function(e,t,r){"use strict";var i=r("83ab"),a=r("9f7f").MISSED_STICKY,n=r("c6b6"),o=r("edd0"),l=r("69f3").get,s=RegExp.prototype,c=TypeError;i&&a&&o(s,"sticky",{configurable:!0,get:function(){if(this!==s){if("RegExp"===n(this))return!!l(this).sticky;throw new c("Incompatible receiver, RegExp required")}}})},"4d63":function(e,t,r){"use strict";var i=r("83ab"),a=r("da84"),n=r("e330"),o=r("94ca"),l=r("7156"),s=r("9112"),c=r("241c").f,u=r("3a9b"),d=r("44e7"),m=r("577e"),p=r("90d8"),f=r("9f7f"),h=r("aeb0"),b=r("cb2d"),v=r("d039"),g=r("1a2d"),_=r("69f3").enforce,y=r("2626"),k=r("b622"),w=r("fce3"),F=r("107c"),x=k("match"),O=a.RegExp,j=O.prototype,T=a.SyntaxError,M=n(j.exec),S=n("".charAt),$=n("".replace),E=n("".indexOf),C=n("".slice),L=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,R=/a/g,D=/a/g,V=(r=new O(R)!==R,f.MISSED_STICKY),q=f.UNSUPPORTED_Y;k=i&&(!r||V||w||F||v((function(){return D[x]=!1,O(R)!==R||O(D)===D||"/a/i"!==String(O(R,"i"))})));if(o("RegExp",k)){for(var I=function(e,t){var r,i,a=u(j,this),n=d(e),o=void 0===t,c=[],f=e;if(!a&&n&&o&&e.constructor===I)return e;if((n||u(j,e))&&(e=e.source,o)&&(t=p(f)),e=void 0===e?"":m(e),t=void 0===t?"":m(t),f=e,n=t=w&&"dotAll"in R&&(r=!!t&&-1<E(t,"s"))?$(t,/s/g,""):t,V&&"sticky"in R&&(i=!!t&&-1<E(t,"y"))&&q&&(t=$(t,/y/g,"")),F&&(e=(o=function(e){for(var t,r=e.length,i=0,a="",n=[],o={},l=!1,s=!1,c=0,u="";i<=r;i++){if("\\"===(t=S(e,i)))t+=S(e,++i);else if("]"===t)l=!1;else if(!l)switch(!0){case"["===t:l=!0;break;case"("===t:M(L,C(e,i+1))&&(i+=2,s=!0),a+=t,c++;continue;case">"===t&&s:if(""===u||g(o,u))throw new T("Invalid capture group name");o[u]=!0,s=!(n[n.length]=[u,c]),u="";continue}s?u+=t:a+=t}return[a,n]}(e))[0],c=o[1]),o=l(O(e,t),a?this:j,I),(r||i||c.length)&&(t=_(o),r&&(t.dotAll=!0,t.raw=I(function(e){for(var t,r=e.length,i=0,a="",n=!1;i<=r;i++)"\\"===(t=S(e,i))?a+=t+S(e,++i):n||"."!==t?("["===t?n=!0:"]"===t&&(n=!1),a+=t):a+="[\\s\\S]";return a}(e),n)),i&&(t.sticky=!0),c.length)&&(t.groups=c),e!==f)try{s(o,"source",""===f?"(?:)":f)}catch(e){}return o},A=c(O),Y=0;A.length>Y;)h(I,O,A[Y++]);(j.constructor=I).prototype=j,b(a,"RegExp",I,{constructor:!0})}y("RegExp")},"61f7":function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"c",(function(){return s})),r.d(t,"b",(function(){return c}));var i=r("ade3"),a=r("5530");function n(e,t){/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length)));var r,i,a={"M+":e.getMonth()+1,"d+":e.getDate(),"h+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds()};for(r in a)new RegExp("(".concat(r,")")).test(t)&&(i=a[r]+"",t=t.replace(RegExp.$1,1===RegExp.$1.length?i:("00"+i).substr(i.length)));return t}r("ac1f"),r("00b4"),r("5319"),r("4d63"),r("c607"),r("2c3e"),r("25f0"),r("498a"),r("d3b7"),r("13d5"),r("b64b"),r("99af");var o={min:"%s最小长度为:min",max:"%s最大长度为:max",length:"%s长度必须为:length",range:"%s长度为:range",pattern:"$s格式错误"};function l(e,t){e.message=function(e){return t.replace("%s",e||"")}}function s(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return Object(a.a)({required:!0,message:e,type:"string"},t)}function c(e){return u.pattern(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,e)}l(s,"请输入%s"),l(c,"%s格式不正确");var u=Object.keys(o).reduce((function(e,t){return e[t]=function(e){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},o="range"===t?{min:e[0],max:e[1]}:Object(i.a)({},t,e);return Object(a.a)(Object(a.a)({message:r.replace(":".concat(t),"range"===t?"".concat(e[0],"-").concat(e[1]):e),type:"string"},o),n)},l(e[t],o[t]),e}),{})},a2a2:function(e,t,r){"use strict";r("cd90")},c607:function(e,t,r){"use strict";var i=r("83ab"),a=r("fce3"),n=r("c6b6"),o=r("edd0"),l=r("69f3").get,s=RegExp.prototype,c=TypeError;i&&a&&o(s,"dotAll",{configurable:!0,get:function(){if(this!==s){if("RegExp"===n(this))return!!l(this).dotAll;throw new c("Incompatible receiver, RegExp required")}}})},ca99:function(e,t,r){"use strict";r.r(t),r("b0c0");var i=r("c7eb"),a=r("1da1"),n=r("5530"),o=(r("a15b"),r("2f62")),l=r("1184"),s=r("61f7"),c=r("f8b7"),u={deliver_name:[{required:!0,type:"string",message:"请选择快递公司",trigger:"select"}],deliver_number:[{required:!0,message:"请输入快递单号",trigger:"blur"}]},d={mark:[{required:!0,message:"请输入备注信息",trigger:"blur"}]};n={name:"lotteryRecordList",filters:{formatDate:function(e){if(0!==e)return e=new Date(1e3*e),Object(s.a)(e,"yyyy-MM-dd hh:mm")}},data:function(){return{shipModel:!1,loading:!1,locationList:[],shipForm:{id:"",deliver_name:"",deliver_number:null},markForm:{id:"",mark:""},ruleShip:u,ruleMark:d,pickerOptions:this.$timeOptions,typeList:[{text:"全部",val:""},{text:"未中奖",val:"1"},{text:"积分",val:"2"},{text:"余额",val:"3"},{text:"红包",val:"4"},{text:"优惠券",val:"5"},{text:"商品",val:"6"}],tableList:[],grid:{xl:7,lg:10,md:12,sm:24,xs:24},tableFrom:{keyword:"",date:[],page:1,limit:15,factor:""},total:0,timeVal:[],modelType:1,lottery_id:"",modelTitle:""}},computed:Object(n.a)(Object(n.a)({},Object(o.d)("admin/layout",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:"80px"},labelPosition:function(){return this.isMobile?"top":"right"}}),created:function(){this.tableFrom.lottery_id=this.$route.query.id,this.lottery_id=this.$route.query.id,this.getList(),this.getExpressData()},methods:{deliver:function(e,t){this.markForm.id=e.id,this.shipForm.id=e.id,this.shipForm.deliver_name="",this.shipForm.deliver_number="",this.markForm.mark=e.deliver_info.mark,this.modelType=t,this.shipModel=!0},isDeliver:function(e){this.markForm.id=e.id,this.shipForm.id=e.id,this.modelType=1,this.modelTitle="配送信息",this.shipModel=!0,this.shipForm.deliver_name=e.deliver_info.deliver_name,this.shipForm.deliver_number=e.deliver_info.deliver_number},ok:function(e){var t=this;this.$refs[e].validate((function(e){Object(l.e)(1==t.modelType?t.shipForm:t.markForm).then((function(e){t.$message.success("操作成功"),t.shipModel=!1,t.getList(),t.shipForm={id:"",deliver_name:"",deliver_number:null},t.modelTitle="",t.markForm={id:"",mark:""}})).catch((function(e){t.$message.error(e.msg)}))}))},cancel:function(){this.modelType=1,this.modelTitle="",this.shipModel=!1},getExpressData:function(){var e=this;Object(c.j)().then(function(){var t=Object(a.a)(Object(i.a)().mark((function t(r){return Object(i.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.locationList=r.data;case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$message.error(t.msg)}))},onchangeTime:function(e){this.timeVal=e||[],this.tableFrom.data=this.timeVal[0]&&this.timeVal?this.timeVal.join("-"):"",this.tableFrom.page=1,this.getList()},selectChange:function(e){this.tableFrom.page=1,this.tableFrom.date=e,this.timeVal=[],this.getList()},selectType:function(e){this.tableFrom.page=1,this.timeVal=[],this.getList()},selectChangeFactor:function(){this.tableFrom.page=1,this.timeVal=[],this.getList()},getList:function(){var e=this;this.loading=!0,Object(l.f)(this.tableFrom).then(function(){var t=Object(a.a)(Object(i.a)().mark((function t(r){var a;return Object(i.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:a=r.data,e.tableList=a.list,e.total=r.data.count,e.loading=!1;case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.loading=!1,e.$message.error(t.msg)}))},userSearchs:function(){this.tableFrom.page=1,this.getList()}}},r("a2a2"),o=r("2877"),r=Object(o.a)(n,(function(){var e=this,t=e._self._c;return t("div",[t("el-card",{staticClass:"ivu-mt",attrs:{bordered:!1,shadow:"never","body-style":{padding:0}}},[t("div",{staticClass:"padding-add"},[t("el-form",{ref:"tableFrom",attrs:{model:e.tableFrom,"label-width":e.labelWidth,"label-position":"right",inline:""},nativeOn:{submit:function(e){e.preventDefault()}}},[t("el-form-item",{attrs:{label:"活动类型:",clearable:""}},[t("el-select",{staticClass:"form_content_width",attrs:{type:"button",clearable:""},on:{change:e.selectChangeFactor},model:{value:e.tableFrom.factor,callback:function(t){e.$set(e.tableFrom,"factor",t)},expression:"tableFrom.factor"}},[t("el-option",{attrs:{label:"积分抽取",value:1}}),t("el-option",{attrs:{label:"订单支付",value:3}}),t("el-option",{attrs:{label:"订单评价",value:4}})],1)],1),t("el-form-item",{attrs:{label:"时间选择:"}},[t("el-date-picker",{staticStyle:{width:"250px"},attrs:{clearable:"",type:"daterange",editable:!1,format:"yyyy/MM/dd","value-format":"yyyy/MM/dd","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":e.pickerOptions},on:{change:e.onchangeTime},model:{value:e.timeVal,callback:function(t){e.timeVal=t},expression:"timeVal"}})],1),t("el-form-item",{attrs:{label:"奖品类型:"}},[t("el-select",{staticClass:"form_content_width",attrs:{type:"button",clearable:""},on:{change:e.selectType},model:{value:e.tableFrom.type,callback:function(t){e.$set(e.tableFrom,"type",t)},expression:"tableFrom.type"}},e._l(e.typeList,(function(e,r){return t("el-option",{key:r,attrs:{label:e.text,value:e.val}})})),1)],1),t("el-form-item",{attrs:{label:"搜索用户:","label-for":"store_name"}},[t("el-input",{staticClass:"form_content_width",attrs:{clearable:"",placeholder:"请输入用户信息"},model:{value:e.tableFrom.keyword,callback:function(t){e.$set(e.tableFrom,"keyword",t)},expression:"tableFrom.keyword"}})],1),t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:e.userSearchs}},[e._v("查询")])],1)],1)],1)]),t("el-card",{staticClass:"ivu-mt mt16",attrs:{bordered:!1,shadow:"never"}},[t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.tableList,"highlight-current-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"}},[t("el-table-column",{attrs:{label:"ID",width:"80"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("div",[e._v(e._s(r.row.id))])]}}])}),t("el-table-column",{attrs:{label:"用户信息","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("span",[e._v(e._s(r.row.user.nickname)+" ")])]}}])}),t("el-table-column",{attrs:{label:"奖品信息","min-width":"130"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("div",{staticClass:"prize"},[t("img",{attrs:{src:r.row.prize.image,alt:""}}),t("span",[e._v(e._s(r.row.prize.name))])])]}}])}),t("el-table-column",{attrs:{label:"抽奖时间","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("div",[e._v(e._s(r.row.add_time))])]}}])}),t("el-table-column",{attrs:{label:"收货信息","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(r){return[r.row.receive_info.name?t("div",[t("div",[e._v("姓名:"+e._s(r.row.receive_info.name))]),t("div",[e._v("电话:"+e._s(r.row.receive_info.phone))]),t("div",[e._v("地址:"+e._s(r.row.receive_info.address))]),r.row.receive_info.mark?t("div",[e._v("备注:"+e._s(r.row.receive_info.mark))]):e._e()]):e._e()]}}])}),t("el-table-column",{attrs:{label:"备注","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("span",[e._v(e._s(r.row.deliver_info.mark))])]}}])}),t("el-table-column",{attrs:{label:"操作",fixed:"right",width:"120"},scopedSlots:e._u([{key:"default",fn:function(r){return[6==r.row.type&&0===r.row.is_deliver?t("a",{on:{click:function(t){return e.deliver(r.row,1)}}},[e._v("发货")]):6==r.row.type&&1===r.row.is_deliver?t("a",{on:{click:function(t){return e.isDeliver(r.row)}}},[e._v("配送信息")]):e._e(),6==r.row.type?t("el-divider",{attrs:{direction:"vertical"}}):e._e(),t("a",{on:{click:function(t){return e.deliver(r.row,2)}}},[e._v("备注")])]}}])})],1),t("div",{staticClass:"acea-row row-right page"},[e.total?t("pagination",{attrs:{total:e.total,page:e.tableFrom.page,limit:e.tableFrom.limit},on:{"update:page":function(t){return e.$set(e.tableFrom,"page",t)},"update:limit":function(t){return e.$set(e.tableFrom,"limit",t)},pagination:e.getList}}):e._e()],1)],1),t("el-dialog",{attrs:{visible:e.shipModel,width:"540px",title:e.modelTitle||(1===e.modelType?"发货":"备注"),"close-on-click-modal":!1},on:{"update:visible":function(t){e.shipModel=t}}},[t("el-form",{ref:1===e.modelType?"shipForm":"markForm",attrs:{model:1===e.modelType?e.shipForm:e.markForm,rules:1===e.modelType?e.ruleShip:e.ruleMark,"label-width":"90px"},model:{value:e.shipModel,callback:function(t){e.shipModel=t},expression:"shipModel"}},[1===e.modelType?t("el-form-item",{attrs:{label:"快递公司:",prop:"deliver_name"}},[t("el-select",{staticClass:"w100",model:{value:e.shipForm.deliver_name,callback:function(t){e.$set(e.shipForm,"deliver_name",t)},expression:"shipForm.deliver_name"}},e._l(e.locationList,(function(e){return t("el-option",{key:e.id,attrs:{value:e.value,label:e.value}})})),1)],1):e._e(),1===e.modelType?t("el-form-item",{attrs:{label:"快递单号:",prop:"deliver_number"}},[t("el-input",{staticClass:"w100",attrs:{placeholder:"请输入快递单号"},model:{value:e.shipForm.deliver_number,callback:function(t){e.$set(e.shipForm,"deliver_number",t)},expression:"shipForm.deliver_number"}}),"顺丰速运"==e.shipForm.deliver_name?t("div",{staticClass:"tips-info"},[t("p",[e._v("顺丰请输入单号 :收件人或寄件人手机号后四位")]),t("p",[e._v("例如:SF000000000000:3941")])]):e._e()],1):e._e(),2===e.modelType?t("el-form-item",{attrs:{label:"备注:"}},[t("el-input",{staticClass:"w100",attrs:{placeholder:"请输入备注"},model:{value:e.markForm.mark,callback:function(t){e.$set(e.markForm,"mark",t)},expression:"markForm.mark"}})],1):e._e(),t("el-form-item",[t("div",{staticClass:"acea-row row-right"},[t("el-button",{on:{click:function(t){return e.cancel("formValidate")}}},[e._v("关闭")]),t("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.ok(1===e.modelType?"shipForm":"markForm")}}},[e._v("提交")])],1)])],1)],1)],1)}),[],!1,null,"75662a20",null);t.default=r.exports},cd90:function(e,t,r){}}]);
|