You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
shipin/public/admin/system_static/js/chunk-0127fb48.1f08c364.js

1 line
13 KiB

1 year ago
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-0127fb48"],{1184:function(t,e,r){"use strict";r.d(e,"c",(function(){return n})),r.d(e,"d",(function(){return o})),r.d(e,"a",(function(){return i})),r.d(e,"b",(function(){return s})),r.d(e,"g",(function(){return l})),r.d(e,"f",(function(){return c})),r.d(e,"e",(function(){return u})),r("99af");var a=r("6b6c");function n(t){return Object(a.a)({url:"marketing/lottery/list",method:"get",params:t})}function o(t){return Object(a.a)({url:"marketing/lottery/factor_info/".concat(t),method:"get"})}function i(t){return Object(a.a)({url:"marketing/lottery/add",method:"post",data:t})}function s(t,e){return Object(a.a)({url:"marketing/lottery/edit/".concat(t),method:"put",data:e})}function l(t){return Object(a.a)({url:"marketing/lottery/set_status/".concat(t.id,"/").concat(t.status),method:"post"})}function c(t){return Object(a.a)({url:"marketing/lottery/record/list",method:"get",params:t})}function u(t){return Object(a.a)({url:"marketing/lottery/record/deliver",method:"post",data:t})}},"207a":function(t,e,r){"use strict";r.r(e),r("b0c0");var a=r("c7eb"),n=r("1da1"),o=r("5530"),i=(r("14d9"),r("a434"),r("2f62")),s=r("1184"),l=r("61f7");o={name:"storeBargain",filters:{formatDate:function(t){if(0!==t)return t=new Date(1e3*t),Object(l.a)(t,"yyyy-MM-dd hh:mm")}},data:function(){return{loading:!1,tableList:[],tableFrom:{start_status:"",status:"",store_name:"",export:0,page:1,factor:"",limit:15},total:0}},computed:Object(o.a)(Object(o.a)({},Object(i.d)("admin/layout",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:"80px"},labelPosition:function(){return this.isMobile?"top":"right"}}),created:function(){this.getList()},methods:{add:function(){this.$router.push({path:this.$routeProStr+"/marketing/lottery/create"})},edit:function(t){this.$router.push({name:"marketing_create",query:{id:t.id}})},copy:function(t){this.$router.push({name:"marketing_create",query:{id:t.id,copy:1}})},del:function(t,e,r){var a=this;e={title:e,num:r,url:"marketing/lottery/del/".concat(t.id),method:"DELETE",ids:""};this.$modalSure(e).then((function(t){a.$message.success(t.msg),a.tableList.splice(r,1)})).catch((function(t){a.$message.error(t.msg)}))},getRecording:function(t){this.$router.push({path:this.$routeProStr+"/marketing/lottery/recording_list",query:{id:t.id}})},getList:function(){var t=this;this.loading=!0,this.tableFrom.start_status=this.tableFrom.start_status||"",this.tableFrom.status=this.tableFrom.status||"",Object(s.c)(this.tableFrom).then(function(){var e=Object(n.a)(Object(a.a)().mark((function e(r){var n;return Object(a.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=r.data,t.tableList=n.list,t.total=r.data.count,t.loading=!1;case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$message.error(e.msg)}))},userSearchs:function(){this.tableFrom.page=1,this.getList()},onchangeIsShow:function(t){var e=this;t={id:t.id,status:t.status};Object(s.g)(t).then(function(){var t=Object(n.a)(Object(a.a)().mark((function t(r){return Object(a.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$message.success(r.msg),e.getList();case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$message.error(t.msg),e.getList()}))}}},r("a548"),i=r("2877"),r=Object(i.a)(o,(function(){var t=this,e=t._self._c;return e("div",[e("el-card",{staticClass:"ivu-mt",attrs:{bordered:!1,shadow:"never"}},[e("el-form",{ref:"tableFrom",attrs:{model:t.tableFrom,"label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[e("el-scope.row",{attrs:{gutter:24}},[e("el-col",[e("el-form-item",{attrs:{label:"活动类型:",clearable:""}},[e("el-select",{staticStyle:{width:"200px"},attrs:{placeholder:"请选择活动类型",clearable:""},on:{change:t.userSearchs},model:{value:t.tableFrom.factor,callback:function(e){t.$set(t.tableFrom,"factor",e)},expression:"tableFrom.factor"}},[e("el-option",{attrs:{value:"1",la