35.d4278044892c94b7cea5.js.map 24 KB

1
  1. {"version":3,"sources":["webpack:///src/views/sms/coupon/index.vue","webpack:///./src/views/sms/coupon/index.vue?aa27","webpack:///./src/views/sms/coupon/index.vue"],"names":["defaultListQuery","pageNum","pageSize","name","type","defaultTypeOptions","label","value","sms_coupon","data","listQuery","assign_default","typeOptions","list","total","listLoading","multipleSelection","created","this","getList","filters","formatType","i","length","formatUseType","useType","formatPlatform","platform","formatDate","time","date","Date","Object","utils_date","formatStatus","endTime","now","getTime","methods","handleResetSearch","handleSearchList","handleSelectionChange","val","handleSizeChange","handleCurrentChange","handleAdd","$router","push","path","handleView","index","row","query","id","handleUpdate","handleDelete","_this","$confirm","confirmButtonText","cancelButtonText","then","coupon","response","$message","message","_this2","views_sms_coupon","render","_vm","_h","$createElement","_c","_self","staticClass","attrs","shadow","_v","staticStyle","float","size","on","click","$event","margin-right","margin-top","inline","model","label-width","placeholder","callback","$$v","$set","expression","clearable","_l","item","key","directives","rawName","ref","width","border","selection-change","align","scopedSlots","_u","fn","scope","_s","_f","minPoint","amount","startTime","$index","background","layout","current-page","page-size","page-sizes","size-change","current-change","update:currentPage","staticRenderFns","Component","__webpack_require__","normalizeComponent","ssrContext","__webpack_exports__"],"mappings":"4KA6GAA,GACAC,QAAA,EACAC,SAAA,GACAC,KAAA,KACAC,KAAA,MAEAC,IAEAC,MAAA,OACAC,MAAA,IAGAD,MAAA,OACAC,MAAA,IAGAD,MAAA,OACAC,MAAA,IAGAD,MAAA,OACAC,MAAA,IAGAC,GACAL,KAAA,aACAM,KAFA,WAGA,OACAC,UAAAC,OAAAX,GACAY,YAAAD,OAAAN,GACAQ,KAAA,KACAC,MAAA,KACAC,aAAA,EACAC,uBAGAC,QAZA,WAaAC,KAAAC,WAEAC,SACAC,WADA,SACAjB,GACA,QAAAkB,EAAA,EAAAA,EAAAjB,EAAAkB,OAAAD,IACA,GAAAlB,IAAAC,EAAAiB,GAAAf,MACA,OAAAF,EAAAiB,GAAAhB,MAGA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C,GAAyBd,EAAAb,aAAAoD,EAAAM,OAAAN,EAAAxD,SAA4CiB,EAAAQ,GAAA,gBAAsB,OAAAR,EAAAQ,GAAA,KAAAL,EAAA,OAAgCE,YAAA,yBAAmCF,EAAA,iBAAsBG,OAAOwC,WAAA,GAAAC,OAAA,wCAAAC,eAAAhD,EAAA1D,UAAAT,QAAAoH,YAAAjD,EAAA1D,UAAAR,SAAAoH,cAAA,SAAAxG,MAAAsD,EAAAtD,OAAkLkE,IAAKuC,cAAAnD,EAAAzB,iBAAA6E,iBAAApD,EAAAxB,oBAAA6E,qBAAA,SAAAvC,GAAkHd,EAAAuB,KAAAvB,EAAA1D,UAAA,UAAAwE,QAA6C,QAE9+JwC,oBCCjB,IAcAC,EAdAC,EAAA,OAcAC,CACArH,EACA0D,GATA,EAVA,SAAA4D,GACAF,EAAA,SAaA,kBAEA,MAUAG,EAAA,QAAAJ,EAAA","file":"static/js/35.d4278044892c94b7cea5.js","sourcesContent":["<template> \r\n <div class=\"app-container\">\r\n <el-card class=\"filter-container\" shadow=\"never\">\r\n <div>\r\n <i class=\"el-icon-search\"></i>\r\n <span>筛选搜索</span>\r\n <el-button\r\n style=\"float:right\"\r\n type=\"primary\"\r\n @click=\"handleSearchList()\"\r\n size=\"small\">\r\n 查询搜索\r\n </el-button>\r\n <el-button\r\n style=\"float:right;margin-right: 15px\"\r\n @click=\"handleResetSearch()\"\r\n size=\"small\">\r\n 重置\r\n </el-button>\r\n </div>\r\n <div style=\"margin-top: 15px\">\r\n <el-form :inline=\"true\" :model=\"listQuery\" size=\"small\" label-width=\"140px\">\r\n <el-form-item label=\"优惠券名称:\">\r\n <el-input v-model=\"listQuery.name\" class=\"input-width\" placeholder=\"优惠券名称\"></el-input>\r\n </el-form-item>\r\n <el-form-item label=\"优惠券类型:\">\r\n <el-select v-model=\"listQuery.type\" placeholder=\"全部\" clearable class=\"input-width\">\r\n <el-option v-for=\"item in typeOptions\"\r\n :key=\"item.value\"\r\n :label=\"item.label\"\r\n :value=\"item.value\">\r\n </el-option>\r\n </el-select>\r\n </el-form-item>\r\n </el-form>\r\n </div>\r\n </el-card>\r\n <el-card class=\"operate-container\" shadow=\"never\">\r\n <i class=\"el-icon-tickets\"></i>\r\n <span>数据列表</span>\r\n <el-button size=\"mini\" class=\"btn-add\" @click=\"handleAdd()\">添加</el-button>\r\n </el-card>\r\n <div class=\"table-container\">\r\n <el-table ref=\"couponTable\"\r\n :data=\"list\"\r\n style=\"width: 100%;\"\r\n @selection-change=\"handleSelectionChange\"\r\n v-loading=\"listLoading\" border>\r\n <el-table-column type=\"selection\" width=\"60\" align=\"center\"></el-table-column>\r\n <el-table-column label=\"编号\" width=\"100\" align=\"center\">\r\n <template slot-scope=\"scope\">{{scope.row.id}}</template>\r\n </el-table-column>\r\n <el-table-column label=\"优惠劵名称\" align=\"center\">\r\n <template slot-scope=\"scope\">{{scope.row.name}}</template>\r\n </el-table-column>\r\n <el-table-column label=\"优惠券类型\" width=\"100\" align=\"center\">\r\n <template slot-scope=\"scope\">{{scope.row.type | formatType}}</template>\r\n </el-table-column>\r\n <el-table-column label=\"可使用商品\" width=\"100\" align=\"center\">\r\n <template slot-scope=\"scope\">{{scope.row.useType | formatUseType}}</template>\r\n </el-table-column>\r\n <el-table-column label=\"使用门槛\" width=\"140\" align=\"center\">\r\n <template slot-scope=\"scope\">满{{scope.row.minPoint}}元可用</template>\r\n </el-table-column>\r\n <el-table-column label=\"面值\" width=\"100\" align=\"center\">\r\n <template slot-scope=\"scope\">{{scope.row.amount}}元</template>\r\n </el-table-column>\r\n <el-table-column label=\"适用平台\" width=\"100\" align=\"center\">\r\n <template slot-scope=\"scope\">{{scope.row.platform | formatPlatform}}</template>\r\n </el-table-column>\r\n <el-table-column label=\"有效期\" width=\"180\" align=\"center\">\r\n <template slot-scope=\"scope\">{{scope.row.startTime|formatDate}}至{{scope.row.endTime|formatDate}}</template>\r\n </el-table-column>\r\n <el-table-column label=\"状态\" width=\"100\" align=\"center\">\r\n <template slot-scope=\"scope\">{{scope.row.endTime | formatStatus}}</template>\r\n </el-table-column>\r\n <el-table-column label=\"操作\" width=\"180\" align=\"center\">\r\n <template slot-scope=\"scope\">\r\n <el-button size=\"mini\"\r\n type=\"text\"\r\n @click=\"handleView(scope.$index, scope.row)\">查看</el-button>\r\n <el-button size=\"mini\"\r\n type=\"text\"\r\n @click=\"handleUpdate(scope.$index, scope.row)\">\r\n 编辑</el-button>\r\n <el-button size=\"mini\"\r\n type=\"text\"\r\n @click=\"handleDelete(scope.$index, scope.row)\">删除</el-button>\r\n </template>\r\n </el-table-column>\r\n </el-table>\r\n </div>\r\n <div class=\"pagination-container\">\r\n <el-pagination\r\n background\r\n @size-change=\"handleSizeChange\"\r\n @current-change=\"handleCurrentChange\"\r\n layout=\"total, sizes,prev, pager, next,jumper\"\r\n :current-page.sync=\"listQuery.pageNum\"\r\n :page-size=\"listQuery.pageSize\"\r\n :page-sizes=\"[5,10,15]\"\r\n :total=\"total\">\r\n </el-pagination>\r\n </div>\r\n </div>\r\n</template>\r\n<script>\r\n import {fetchList,deleteCoupon} from '@/api/coupon';\r\n import {formatDate} from '@/utils/date';\r\n const defaultListQuery = {\r\n pageNum: 1,\r\n pageSize: 10,\r\n name: null,\r\n type: null\r\n };\r\n const defaultTypeOptions=[\r\n {\r\n label: '全场赠券',\r\n value: 0\r\n },\r\n {\r\n label: '会员赠券',\r\n value: 1\r\n },\r\n {\r\n label: '购物赠券',\r\n value: 2\r\n },\r\n {\r\n label: '注册赠券',\r\n value: 3\r\n }\r\n ];\r\n export default {\r\n name:'couponList',\r\n data() {\r\n return {\r\n listQuery:Object.assign({},defaultListQuery),\r\n typeOptions:Object.assign({},defaultTypeOptions),\r\n list:null,\r\n total:null,\r\n listLoading:false,\r\n multipleSelection:[]\r\n }\r\n },\r\n created(){\r\n this.getList();\r\n },\r\n filters:{\r\n formatType(type){\r\n for(let i=0;i<defaultTypeOptions.length;i++){\r\n if(type===defaultTypeOptions[i].value){\r\n return defaultTypeOptions[i].label;\r\n }\r\n }\r\n return '';\r\n },\r\n formatUseType(useType){\r\n if(useType===0){\r\n return '全场通用';\r\n }else if(useType===1){\r\n return '指定分类';\r\n }else{\r\n return '指定商品';\r\n }\r\n },\r\n formatPlatform(platform){\r\n if(platform===1){\r\n return '移动平台';\r\n }else if(platform===2){\r\n return 'PC平台';\r\n }else{\r\n return '全平台';\r\n }\r\n },\r\n formatDate(time){\r\n if(time==null||time===''){\r\n return '--';\r\n }\r\n let date = new Date(time);\r\n return formatDate(date, 'yyyy-MM-dd')\r\n },\r\n formatStatus(endTime){\r\n let now = new Date().getTime();\r\n let endDate = new Date(endTime);\r\n if(endDate>now){\r\n return '未过期'\r\n }else{\r\n return '已过期';\r\n }\r\n }\r\n },\r\n methods:{\r\n handleResetSearch() {\r\n this.listQuery = Object.assign({}, defaultListQuery);\r\n },\r\n handleSearchList() {\r\n this.listQuery.pageNum = 1;\r\n this.getList();\r\n },\r\n handleSelectionChange(val){\r\n this.multipleSelection = val;\r\n },\r\n handleSizeChange(val) {\r\n this.listQuery.pageNum = 1;\r\n this.listQuery.pageSize = val;\r\n this.getList();\r\n },\r\n handleCurrentChange(val) {\r\n this.listQuery.pageNum = val;\r\n this.getList();\r\n },\r\n handleAdd(){\r\n this.$router.push({path: '/sms/addCoupon'})\r\n },\r\n handleView(index, row) {\r\n this.$router.push({path: '/sms/couponHistory', query: {id: row.id}})\r\n },\r\n handleUpdate(index, row) {\r\n this.$router.push({path: '/sms/updateCoupon', query: {id: row.id}})\r\n },\r\n handleDelete(index, row) {\r\n this.$confirm('是否进行删除操作?', '提示', {\r\n confirmButtonText: '确定',\r\n cancelButtonText: '取消',\r\n type: 'warning'\r\n }).then(() => {\r\n deleteCoupon(row.id).then(response=>{\r\n this.$message({\r\n type: 'success',\r\n message: '删除成功!'\r\n });\r\n this.getList();\r\n });\r\n })\r\n },\r\n getList(){\r\n this.listLoading=true;\r\n fetchList(this.listQuery).then(response=>{\r\n this.listLoading = false;\r\n this.list = response.data.list;\r\n this.total = response.data.total;\r\n });\r\n }\r\n }\r\n }\r\n</script>\r\n<style scoped>\r\n .input-width {\r\n width: 203px;\r\n }\r\n</style>\r\n\r\n\r\n\n\n\n// WEBPACK FOOTER //\n// src/views/sms/coupon/index.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"app-container\"},[_c('el-card',{staticClass:\"filter-container\",attrs:{\"shadow\":\"never\"}},[_c('div',[_c('i',{staticClass:\"el-icon-search\"}),_vm._v(\" \"),_c('span',[_vm._v(\"筛选搜索\")]),_vm._v(\" \"),_c('el-button',{staticStyle:{\"float\":\"right\"},attrs:{\"type\":\"primary\",\"size\":\"small\"},on:{\"click\":function($event){_vm.handleSearchList()}}},[_vm._v(\"\\n 查询搜索\\n \")]),_vm._v(\" \"),_c('el-button',{staticStyle:{\"float\":\"right\",\"margin-right\":\"15px\"},attrs:{\"size\":\"small\"},on:{\"click\":function($event){_vm.handleResetSearch()}}},[_vm._v(\"\\n 重置\\n \")])],1),_vm._v(\" \"),_c('div',{staticStyle:{\"margin-top\":\"15px\"}},[_c('el-form',{attrs:{\"inline\":true,\"model\":_vm.listQuery,\"size\":\"small\",\"label-width\":\"140px\"}},[_c('el-form-item',{attrs:{\"label\":\"优惠券名称:\"}},[_c('el-input',{staticClass:\"input-width\",attrs:{\"placeholder\":\"优惠券名称\"},model:{value:(_vm.listQuery.name),callback:function ($$v) {_vm.$set(_vm.listQuery, \"name\", $$v)},expression:\"listQuery.name\"}})],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"优惠券类型:\"}},[_c('el-select',{staticClass:\"input-width\",attrs:{\"placeholder\":\"全部\",\"clearable\":\"\"},model:{value:(_vm.listQuery.type),callback:function ($$v) {_vm.$set(_vm.listQuery, \"type\", $$v)},expression:\"listQuery.type\"}},_vm._l((_vm.typeOptions),function(item){return _c('el-option',{key:item.value,attrs:{\"label\":item.label,\"value\":item.value}})}))],1)],1)],1)]),_vm._v(\" \"),_c('el-card',{staticClass:\"operate-container\",attrs:{\"shadow\":\"never\"}},[_c('i',{staticClass:\"el-icon-tickets\"}),_vm._v(\" \"),_c('span',[_vm._v(\"数据列表\")]),_vm._v(\" \"),_c('el-button',{staticClass:\"btn-add\",attrs:{\"size\":\"mini\"},on:{\"click\":function($event){_vm.handleAdd()}}},[_vm._v(\"添加\")])],1),_vm._v(\" \"),_c('div',{staticClass:\"table-container\"},[_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.listLoading),expression:\"listLoading\"}],ref:\"couponTable\",staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.list,\"border\":\"\"},on:{\"selection-change\":_vm.handleSelectionChange}},[_c('el-table-column',{attrs:{\"type\":\"selection\",\"width\":\"60\",\"align\":\"center\"}}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"编号\",\"width\":\"100\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(_vm._s(scope.row.id))]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"优惠劵名称\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(_vm._s(scope.row.name))]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"优惠券类型\",\"width\":\"100\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(_vm._s(_vm._f(\"formatType\")(scope.row.type)))]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"可使用商品\",\"width\":\"100\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(_vm._s(_vm._f(\"formatUseType\")(scope.row.useType)))]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"使用门槛\",\"width\":\"140\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(\"满\"+_vm._s(scope.row.minPoint)+\"元可用\")]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"面值\",\"width\":\"100\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(_vm._s(scope.row.amount)+\"元\")]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"适用平台\",\"width\":\"100\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(_vm._s(_vm._f(\"formatPlatform\")(scope.row.platform)))]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"有效期\",\"width\":\"180\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(_vm._s(_vm._f(\"formatDate\")(scope.row.startTime))+\"至\"+_vm._s(_vm._f(\"formatDate\")(scope.row.endTime)))]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"状态\",\"width\":\"100\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(_vm._s(_vm._f(\"formatStatus\")(scope.row.endTime)))]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"操作\",\"width\":\"180\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-button',{attrs:{\"size\":\"mini\",\"type\":\"text\"},on:{\"click\":function($event){_vm.handleView(scope.$index, scope.row)}}},[_vm._v(\"查看\")]),_vm._v(\" \"),_c('el-button',{attrs:{\"size\":\"mini\",\"type\":\"text\"},on:{\"click\":function($event){_vm.handleUpdate(scope.$index, scope.row)}}},[_vm._v(\"\\n 编辑\")]),_vm._v(\" \"),_c('el-button',{attrs:{\"size\":\"mini\",\"type\":\"text\"},on:{\"click\":function($event){_vm.handleDelete(scope.$index, scope.row)}}},[_vm._v(\"删除\")])]}}])})],1)],1),_vm._v(\" \"),_c('div',{staticClass:\"pagination-container\"},[_c('el-pagination',{attrs:{\"background\":\"\",\"layout\":\"total, sizes,prev, pager, next,jumper\",\"current-page\":_vm.listQuery.pageNum,\"page-size\":_vm.listQuery.pageSize,\"page-sizes\":[5,10,15],\"total\":_vm.total},on:{\"size-change\":_vm.handleSizeChange,\"current-change\":_vm.handleCurrentChange,\"update:currentPage\":function($event){_vm.$set(_vm.listQuery, \"pageNum\", $event)}}})],1)],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-776a5b8c\",\"hasScoped\":true,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/views/sms/coupon/index.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-776a5b8c\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./index.vue\")\n}\nvar normalizeComponent = require(\"!../../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../../../node_modules/vue-loader/lib/selector?type=script&index=0!./index.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../../node_modules/vue-loader/lib/selector?type=script&index=0!./index.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-776a5b8c\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../../node_modules/vue-loader/lib/selector?type=template&index=0!./index.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-776a5b8c\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/views/sms/coupon/index.vue\n// module id = null\n// module chunks = "],"sourceRoot":""}