48.7436dd2d958bfcba1ad5.js.map 24 KB

1
  1. {"version":3,"sources":["webpack:///src/views/sms/coupon/index.vue","webpack:///./src/views/sms/coupon/index.vue?b39c","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":"8KA6GAA,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,M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AAAC,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/48.7436dd2d958bfcba1ad5.js","sourcesContent":["<template> \n <div class=\"app-container\">\n <el-card class=\"filter-container\" shadow=\"never\">\n <div>\n <i class=\"el-icon-search\"></i>\n <span>筛选搜索</span>\n <el-button\n style=\"float:right\"\n type=\"primary\"\n @click=\"handleSearchList()\"\n size=\"small\">\n 查询搜索\n </el-button>\n <el-button\n style=\"float:right;margin-right: 15px\"\n @click=\"handleResetSearch()\"\n size=\"small\">\n 重置\n </el-button>\n </div>\n <div style=\"margin-top: 15px\">\n <el-form :inline=\"true\" :model=\"listQuery\" size=\"small\" label-width=\"140px\">\n <el-form-item label=\"优惠券名称:\">\n <el-input v-model=\"listQuery.name\" class=\"input-width\" placeholder=\"优惠券名称\"></el-input>\n </el-form-item>\n <el-form-item label=\"优惠券类型:\">\n <el-select v-model=\"listQuery.type\" placeholder=\"全部\" clearable class=\"input-width\">\n <el-option v-for=\"item in typeOptions\"\n :key=\"item.value\"\n :label=\"item.label\"\n :value=\"item.value\">\n </el-option>\n </el-select>\n </el-form-item>\n </el-form>\n </div>\n </el-card>\n <el-card class=\"operate-container\" shadow=\"never\">\n <i class=\"el-icon-tickets\"></i>\n <span>数据列表</span>\n <el-button size=\"mini\" class=\"btn-add\" @click=\"handleAdd()\">添加</el-button>\n </el-card>\n <div class=\"table-container\">\n <el-table ref=\"couponTable\"\n :data=\"list\"\n style=\"width: 100%;\"\n @selection-change=\"handleSelectionChange\"\n v-loading=\"listLoading\" border>\n <el-table-column type=\"selection\" width=\"60\" align=\"center\"></el-table-column>\n <el-table-column label=\"编号\" width=\"100\" align=\"center\">\n <template slot-scope=\"scope\">{{scope.row.id}}</template>\n </el-table-column>\n <el-table-column label=\"优惠劵名称\" align=\"center\">\n <template slot-scope=\"scope\">{{scope.row.name}}</template>\n </el-table-column>\n <el-table-column label=\"优惠券类型\" width=\"100\" align=\"center\">\n <template slot-scope=\"scope\">{{scope.row.type | formatType}}</template>\n </el-table-column>\n <el-table-column label=\"可使用商品\" width=\"100\" align=\"center\">\n <template slot-scope=\"scope\">{{scope.row.useType | formatUseType}}</template>\n </el-table-column>\n <el-table-column label=\"使用门槛\" width=\"140\" align=\"center\">\n <template slot-scope=\"scope\">满{{scope.row.minPoint}}元可用</template>\n </el-table-column>\n <el-table-column label=\"面值\" width=\"100\" align=\"center\">\n <template slot-scope=\"scope\">{{scope.row.amount}}元</template>\n </el-table-column>\n <el-table-column label=\"适用平台\" width=\"100\" align=\"center\">\n <template slot-scope=\"scope\">{{scope.row.platform | formatPlatform}}</template>\n </el-table-column>\n <el-table-column label=\"有效期\" width=\"180\" align=\"center\">\n <template slot-scope=\"scope\">{{scope.row.startTime|formatDate}}至{{scope.row.endTime|formatDate}}</template>\n </el-table-column>\n <el-table-column label=\"状态\" width=\"100\" align=\"center\">\n <template slot-scope=\"scope\">{{scope.row.endTime | formatStatus}}</template>\n </el-table-column>\n <el-table-column label=\"操作\" width=\"180\" align=\"center\">\n <template slot-scope=\"scope\">\n <el-button size=\"mini\"\n type=\"text\"\n @click=\"handleView(scope.$index, scope.row)\">查看</el-button>\n <el-button size=\"mini\"\n type=\"text\"\n @click=\"handleUpdate(scope.$index, scope.row)\">\n 编辑</el-button>\n <el-button size=\"mini\"\n type=\"text\"\n @click=\"handleDelete(scope.$index, scope.row)\">删除</el-button>\n </template>\n </el-table-column>\n </el-table>\n </div>\n <div class=\"pagination-container\">\n <el-pagination\n background\n @size-change=\"handleSizeChange\"\n @current-change=\"handleCurrentChange\"\n layout=\"total, sizes,prev, pager, next,jumper\"\n :current-page.sync=\"listQuery.pageNum\"\n :page-size=\"listQuery.pageSize\"\n :page-sizes=\"[5,10,15]\"\n :total=\"total\">\n </el-pagination>\n </div>\n </div>\n</template>\n<script>\n import {fetchList,deleteCoupon} from '@/api/coupon';\n import {formatDate} from '@/utils/date';\n const defaultListQuery = {\n pageNum: 1,\n pageSize: 10,\n name: null,\n type: null\n };\n const defaultTypeOptions=[\n {\n label: '全场赠券',\n value: 0\n },\n {\n label: '会员赠券',\n value: 1\n },\n {\n label: '购物赠券',\n value: 2\n },\n {\n label: '注册赠券',\n value: 3\n }\n ];\n export default {\n name:'couponList',\n data() {\n return {\n listQuery:Object.assign({},defaultListQuery),\n typeOptions:Object.assign({},defaultTypeOptions),\n list:null,\n total:null,\n listLoading:false,\n multipleSelection:[]\n }\n },\n created(){\n this.getList();\n },\n filters:{\n formatType(type){\n for(let i=0;i<defaultTypeOptions.length;i++){\n if(type===defaultTypeOptions[i].value){\n return defaultTypeOptions[i].label;\n }\n }\n return '';\n },\n formatUseType(useType){\n if(useType===0){\n return '全场通用';\n }else if(useType===1){\n return '指定分类';\n }else{\n return '指定商品';\n }\n },\n formatPlatform(platform){\n if(platform===1){\n return '移动平台';\n }else if(platform===2){\n return 'PC平台';\n }else{\n return '全平台';\n }\n },\n formatDate(time){\n if(time==null||time===''){\n return '--';\n }\n let date = new Date(time);\n return formatDate(date, 'yyyy-MM-dd')\n },\n formatStatus(endTime){\n let now = new Date().getTime();\n let endDate = new Date(endTime);\n if(endDate>now){\n return '未过期'\n }else{\n return '已过期';\n }\n }\n },\n methods:{\n handleResetSearch() {\n this.listQuery = Object.assign({}, defaultListQuery);\n },\n handleSearchList() {\n this.listQuery.pageNum = 1;\n this.getList();\n },\n handleSelectionChange(val){\n this.multipleSelection = val;\n },\n handleSizeChange(val) {\n this.listQuery.pageNum = 1;\n this.listQuery.pageSize = val;\n this.getList();\n },\n handleCurrentChange(val) {\n this.listQuery.pageNum = val;\n this.getList();\n },\n handleAdd(){\n this.$router.push({path: '/sms/addCoupon'})\n },\n handleView(index, row) {\n this.$router.push({path: '/sms/couponHistory', query: {id: row.id}})\n },\n handleUpdate(index, row) {\n this.$router.push({path: '/sms/updateCoupon', query: {id: row.id}})\n },\n handleDelete(index, row) {\n this.$confirm('是否进行删除操作?', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(() => {\n deleteCoupon(row.id).then(response=>{\n this.$message({\n type: 'success',\n message: '删除成功!'\n });\n this.getList();\n });\n })\n },\n getList(){\n this.listLoading=true;\n fetchList(this.listQuery).then(response=>{\n this.listLoading = false;\n this.list = response.data.list;\n this.total = response.data.total;\n });\n }\n }\n }\n</script>\n<style scoped>\n .input-width {\n width: 203px;\n }\n</style>\n\n\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-064486b6\",\"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,\\\"publicPath\\\":\\\"../../\\\"}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-064486b6\\\",\\\"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-064486b6\\\",\\\"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-064486b6\"\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":""}