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.
1 line
6.5 KiB
1 line
6.5 KiB
3 months ago
|
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-2d216262"],{c0dc:function(t,e,i){"use strict";i.r(e);var o=i("2f62"),n=i("b7be"),r=i("d708");function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,o)}return i}function c(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?a(Object(i),!0).forEach((function(e){l(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):a(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function l(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=s(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,e||"default");if("object"!=s(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==s(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var u={name:"piecesDiscount",data:function(){return{roterPre:r.a.roterPre,grid:{xl:7,lg:7,md:12,sm:24,xs:24},loading:!1,columns1:[{title:"ID",key:"id",width:80},{title:"活动名称",key:"name",minWidth:100},{title:"参与商品数",key:"product_count",minWidth:100},{title:"活动条件",slot:"threshold_type",minWidth:100},{title:"活动详情",key:"desc",minWidth:100},{title:"支付订单",key:"sum_order",minWidth:100},{title:"参与客户",key:"sum_user",minWidth:100},{title:"实付金额",key:"sum_pay_price",minWidth:100},{title:"是否开启",slot:"status",width:120},{title:"操作",slot:"action",fixed:"right",minWidth:120}],discountFrom:{page:1,limit:15,name:"",status:"",threshold_type:""},list:[],total:0}},computed:c(c({},Object(o.e)("admin/layout",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:96},labelPosition:function(){return this.isMobile?"top":"right"}}),created:function(){this.getList()},methods:{del:function(t,e,i){var o=this,n={title:e,num:i,url:"marketing/promotions/del/".concat(t.id),method:"DELETE",ids:""};this.$modalSure(n).then((function(t){o.$Message.success(t.msg),o.list.splice(i,1),o.list.length||(o.discountFrom.page=1==o.discountFrom.page?1:o.discountFrom.page-1),o.getList()})).catch((function(t){o.$Message.error(t.msg)}))},onchangeIsShow:function(t){var e=this;Object(n.F)(t.id,t.status).then((function(t){e.$Message.success(t.msg)})).catch((function(t){e.$Message.error(t.msg)}))},add:function(){this.$router.push({path:this.roterPre+"/marketing/discount/add_discount/0"})},discountSearchs:function(){this.discountFrom.page=1,this.list=[],this.getList()},getList:function(){var t=this;this.loading=!0,Object(n.E)(3,this.discountFrom).then((function(e){var i=e.data;t.list=i.list,t.total=i.count,t.loading=!1})).catch((function(e){t.loading=!1,t.$Message.error(e.msg)}))},pageChange:function(t){this.discountFrom.page=t,this.getList()},edit:function(t){this.$router.push({path:this.roterPre+"/marketing/discount/add_discount/"+t})}}},d=i("2877"),m=Object(d.a)(u,(function(){var t=this,e=t._self._c;return e("div",[e("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":"",padding:0}},[e("div",{staticClass:"new_card_pd"},[e("Form",{ref:"discountFrom",attrs:{model:t.discountFrom,inline:"","label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[e("FormItem",{attrs:{label:"是否有效:"}},[e("Select",{staticClass:"input-add",attrs:{placeholder:"请选择",clearable:""},on:{"on-change":t.discountSearchs},model:{value:t.discountFrom.status,callback:function(e){t.$set(t.discountFrom,"status",e)},expression:"discountFrom.status"}},[e("Option",{attrs:{value:"1"}},[t._v("
|