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-6da4b85c.4d8cc767.js

1 line
15 KiB

1 year ago
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-6da4b85c"],{1125:function(t,e,r){},"2c3e":function(t,e,r){"use strict";var a=r("83ab"),n=r("9f7f").MISSED_STICKY,i=r("c6b6"),o=r("edd0"),s=r("69f3").get,l=RegExp.prototype,c=TypeError;a&&n&&o(l,"sticky",{configurable:!0,get:function(){if(this!==l){if("RegExp"===i(this))return!!s(this).sticky;throw new c("Incompatible receiver, RegExp required")}}})},"3f2a":function(t,e,r){"use strict";r.d(e,"g",(function(){return n})),r.d(e,"d",(function(){return i})),r.d(e,"c",(function(){return o})),r.d(e,"e",(function(){return s})),r.d(e,"a",(function(){return l})),r.d(e,"b",(function(){return c})),r.d(e,"f",(function(){return u})),r.d(e,"h",(function(){return d}));var a=r("6b6c");function n(t){return Object(a.a)({url:"/export/user_list",method:"get",params:t})}function i(t){return Object(a.a)({url:"/export/order_list",method:"get",params:t})}function o(t){return Object(a.a)({url:"/export/order_delivery_list",method:"get",params:t})}function s(t){return Object(a.a)({url:"/export/product_list",method:"get",params:t})}function l(t){return Object(a.a)({url:"/export/bargain_list",method:"get",params:t})}function c(t){return Object(a.a)({url:"/export/combination_list",method:"get",params:t})}function u(t){return Object(a.a)({url:"/export/seckill_list",method:"get",params:t})}function d(t){return Object(a.a)({url:"/export/member_card/".concat(t),method:"get"})}},"49ba":function(t,e,r){"use strict";r.r(e);var a=r("c7eb"),n=r("1da1"),i=r("5530"),o=(r("14d9"),r("b64b"),r("e9c4"),r("99af"),r("d3b7"),r("a434"),r("2f62")),s=r("b7be"),l=r("61f7"),c=r("3f2a");i={name:"marketing_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,columns1:[{title:"ID",key:"id",width:80},{title:"砍价图片",slot:"image",minWidth:90},{title:"砍价名称",key:"title",minWidth:130},{title:"砍价价格",key:"price",minWidth:100},{title:"最低价",key:"min_price",minWidth:100},{title:"参与人数",key:"count_people_all",minWidth:100},{title:"帮忙砍价人数",key:"count_people_help",minWidth:100},{title:"砍价成功人数",key:"count_people_success",minWidth:100},{title:"限量",key:"quota_show",minWidth:100},{title:"限量剩余",key:"quota",minWidth:100},{title:"活动状态",slot:"start_name",minWidth:100},{title:"结束时间",slot:"stop_time",minWidth:150},{title:"上架状态",slot:"status",minWidth:130},{title:"操作",slot:"action",fixed:"right",minWidth:160}],tableList:[],grid:{xl:7,lg:10,md:12,sm:24,xs:24},tableFrom:{status:"",store_name:"",page:1,limit:15},tableFrom2:{status:"",store_name:"",export:1},total:0}},computed:Object(i.a)(Object(i.a)({},Object(o.d)("media",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:"80px"},labelPosition:function(){return this.isMobile?"top":"right"}}),activated:function(){this.getList()},methods:{add:function(){this.$router.push({path:this.$routeProStr+"/marketing/store_bargain/create"})},exportList:function(){var t=this;return Object(n.a)(Object(a.a)().mark((function e(){var r,n,i,o,s,l,c;return Object(a.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.tableFrom.status=t.tableFrom.status||"",r=[],n=[],i=[],o="",(s=JSON.parse(JSON.stringify(t.tableFrom))).page=1,s.limit=50,l=0;case 6:if(l<s.page+1)return e.next=9,t.getExcelData(s);e.next=23;break;case 9:c=e.sent,o=o||c.filename,n.length||(n=c.fileKey),r.length||(r=c.header),c.export.length?(i=i.concat(c.export),s.page++,e.next=20):e.next=18;break;case 18:return t.$exportExcel(r,n,o,i),e.abrupt("return");case 20:l++,e.next=6;break;case 23:case"end":return e.stop()}}),e)})))()},getExcelData:function(t){return new Promise((function(e,r){Object(c.a)(t).then((function(t){e(t.data)}))}))},edit:function(t,e){this.$router.push({path:this.$routeProStr+"/marketing/store_bargain/create/".concat(t.id,"/").concat(e)})},del:function(t,e,r){var a=this;e={title:e,num:r,url:"marketing/bargain/".concat(t.id),method:"DELETE",ids:""};this.$modalSure(e).then((function(t){a.$message.success(t.msg),a.tabl