36.6342797351081300aea4.js.map 29 KB

1
  1. {"version":3,"sources":["webpack:///src/views/sms/coupon/history.vue","webpack:///./src/api/couponHistory.js","webpack:///./src/views/sms/coupon/history.vue?c9dd","webpack:///./src/views/sms/coupon/history.vue"],"names":["defaultTypeOptions","label","value","defaultListQuery","pageNum","pageSize","useStatus","orderSn","couponId","defaultUseTypeOptions","coupon_history","name","data","coupon","listQuery","assign_default","useTypeOptions","list","total","listLoading","created","_this","this","Object","$route","query","id","then","response","getList","filters","formatType","type","i","length","formatUseType","useType","formatPlatform","platform","formatDate","time","date","Date","utils_date","formatStatus","endTime","getTime","formatGetType","formatCouponHistoryUseType","formatTime","methods","params","_this2","request","url","method","handleResetSearch","handleSearchList","handleSizeChange","val","handleCurrentChange","sms_coupon_history","render","_vm","_h","$createElement","_c","_self","staticClass","attrs","span","_v","_s","_f","minPoint","amount","staticStyle","font-size","startTime","publishCount","receiveCount","useCount","shadow","float","size","on","click","$event","margin-right","margin-top","inline","model","label-width","placeholder","clearable","callback","$$v","$set","expression","_l","item","key","directives","rawName","ref","width","border","align","scopedSlots","_u","fn","scope","row","couponCode","memberNickname","getType","createTime","useTime","background","layout","current-page","page-size","page-sizes","size-change","current-change","update:currentPage","staticRenderFns","Component","__webpack_require__","normalizeComponent","ssrContext","__webpack_exports__"],"mappings":"0LAwHA,IAAAA,IAEAC,MAAA,OACAC,MAAA,IAGAD,MAAA,OACAC,MAAA,IAGAD,MAAA,OACAC,MAAA,IAGAD,MAAA,OACAC,MAAA,IAGAC,GACAC,QAAA,EACAC,SAAA,GACAC,UAAA,KACAC,QAAA,KACAC,SAAA,MAEAC,IAEAR,MAAA,MACAC,MAAA,IAGAD,MAAA,MACAC,MAAA,IAGAD,MAAA,MACAC,MAAA,IAGAQ,GACAC,KAAA,oBACAC,KAFA,WAGA,OACAC,UACAC,UAAAC,OAAAZ,GACAa,eAAAD,OAAAN,GACAQ,KAAA,KACAC,MAAA,KACAC,aAAA,IAGAC,QAZA,WAYA,IAAAC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AA,SAAAC,GAAiC,OAAAhD,EAAAQ,GAAAR,EAAAS,GAAAT,EAAAU,GAAA,aAAAV,CAAAgD,EAAAC,IAAAK,kBAAqEtD,EAAAQ,GAAA,KAAAL,EAAA,mBAAoCG,OAAOpE,MAAA,OAAA0G,MAAA,UAAgCC,YAAA7C,EAAA8C,KAAsBR,IAAA,UAAAS,GAAA,SAAAC,GAAiC,OAAAhD,EAAAQ,GAAAR,EAAAS,GAAA,OAAAuC,EAAAC,IAAAzG,QAAA,MAAAwG,EAAAC,IAAAzG,kBAA8E,OAAAwD,EAAAQ,GAAA,KAAAL,EAAA,OAAgCE,YAAA,yBAAmCF,EAAA,iBAAsBG,OAAOiD,WAAA,GAAAC,OAAA,wCAAAC,eAAAzD,EAAAjD,UAAAV,QAAAqH,YAAA1D,EAAAjD,UAAAT,SAAAqH,cAAA,SAAAxG,MAAA6C,EAAA7C,OAAkLmE,IAAKsC,cAAA5D,EAAAL,iBAAAkE,iBAAA7D,EAAAH,oBAAAiE,qBAAA,SAAAtC,GAAkHxB,EAAAkC,KAAAlC,EAAAjD,UAAA,UAAAyE,QAA6C,QAErxMuC,oBCCjB,IAcAC,EAdAC,EAAA,OAcAC,CACAvH,EACAmD,GATA,EAVA,SAAAqE,GACAF,EAAA,SAaA,kBAEA,MAUAG,EAAA,QAAAJ,EAAA","file":"static/js/36.6342797351081300aea4.js","sourcesContent":["<template> \n <div class=\"app-container\">\n <div class=\"table-layout\">\n <el-row>\n <el-col :span=\"4\" class=\"table-cell-title\">名称</el-col>\n <el-col :span=\"4\" class=\"table-cell-title\">优惠券类型</el-col>\n <el-col :span=\"4\" class=\"table-cell-title\">可使用商品</el-col>\n <el-col :span=\"4\" class=\"table-cell-title\">使用门槛</el-col>\n <el-col :span=\"4\" class=\"table-cell-title\">面值</el-col>\n <el-col :span=\"4\" class=\"table-cell-title\">状态</el-col>\n </el-row>\n <el-row>\n <el-col :span=\"4\" class=\"table-cell\">{{coupon.name}}</el-col>\n <el-col :span=\"4\" class=\"table-cell\">{{coupon.type | formatType}}</el-col>\n <el-col :span=\"4\" class=\"table-cell\">{{coupon.useType | formatUseType}}</el-col>\n <el-col :span=\"4\" class=\"table-cell\">满{{coupon.minPoint}}元可用</el-col>\n <el-col :span=\"4\" class=\"table-cell\">{{coupon.amount}}元</el-col>\n <el-col :span=\"4\" class=\"table-cell\">{{coupon.endTime | formatStatus}}</el-col>\n </el-row>\n <el-row>\n <el-col :span=\"4\" class=\"table-cell-title\">有效期</el-col>\n <el-col :span=\"4\" class=\"table-cell-title\">总发行量</el-col>\n <el-col :span=\"4\" class=\"table-cell-title\">已领取</el-col>\n <el-col :span=\"4\" class=\"table-cell-title\">待领取</el-col>\n <el-col :span=\"4\" class=\"table-cell-title\">已使用</el-col>\n <el-col :span=\"4\" class=\"table-cell-title\">未使用</el-col>\n </el-row>\n <el-row>\n <el-col :span=\"4\" class=\"table-cell\" style=\"font-size: 13px\">\n {{coupon.startTime|formatDate}}至{{coupon.endTime|formatDate}}\n </el-col>\n <el-col :span=\"4\" class=\"table-cell\">{{coupon.publishCount}}</el-col>\n <el-col :span=\"4\" class=\"table-cell\">{{coupon.receiveCount}}</el-col>\n <el-col :span=\"4\" class=\"table-cell\">{{coupon.publishCount-coupon.receiveCount}}</el-col>\n <el-col :span=\"4\" class=\"table-cell\">{{coupon.useCount}}</el-col>\n <el-col :span=\"4\" class=\"table-cell\">{{coupon.publishCount-coupon.useCount}}</el-col>\n </el-row>\n </div>\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-select v-model=\"listQuery.useStatus\" placeholder=\"全部\" clearable class=\"input-width\">\n <el-option v-for=\"item in useTypeOptions\"\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-item label=\"订单编号:\">\n <el-input v-model=\"listQuery.orderSn\" class=\"input-width\" placeholder=\"订单编号\"></el-input>\n </el-form-item>\n </el-form>\n </div>\n </el-card>\n <div class=\"table-container\">\n <el-table ref=\"couponHistoryTable\"\n :data=\"list\"\n style=\"width: 100%;\"\n v-loading=\"listLoading\" border>\n <el-table-column label=\"优惠码\" width=\"160\" align=\"center\">\n <template slot-scope=\"scope\">{{scope.row.couponCode}}</template>\n </el-table-column>\n <el-table-column label=\"领取会员\" width=\"140\" align=\"center\">\n <template slot-scope=\"scope\">{{scope.row.memberNickname}}</template>\n </el-table-column>\n <el-table-column label=\"领取方式\" width=\"100\" align=\"center\">\n <template slot-scope=\"scope\">{{scope.row.getType | formatGetType}}</template>\n </el-table-column>\n <el-table-column label=\"领取时间\" width=\"160\" align=\"center\">\n <template slot-scope=\"scope\">{{scope.row.createTime | formatTime}}</template>\n </el-table-column>\n <el-table-column label=\"当前状态\" width=\"140\" align=\"center\">\n <template slot-scope=\"scope\">{{scope.row.useStatus | formatCouponHistoryUseType}}</template>\n </el-table-column>\n <el-table-column label=\"使用时间\" width=\"160\" align=\"center\">\n <template slot-scope=\"scope\">{{scope.row.useTime | formatTime}}</template>\n </el-table-column>\n <el-table-column label=\"订单编号\" align=\"center\">\n <template slot-scope=\"scope\">{{scope.row.orderSn===null?'N/A':scope.row.orderSn}}</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 {formatDate} from '@/utils/date';\n import {getCoupon} from '@/api/coupon';\n import {fetchList as fetchCouponHistoryList} from '@/api/couponHistory';\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 const defaultListQuery = {\n pageNum: 1,\n pageSize: 10,\n useStatus: null,\n orderSn: null,\n couponId: null\n };\n const defaultUseTypeOptions= [\n {\n label: \"未使用\",\n value: 0\n },\n {\n label: \"已使用\",\n value: 1\n },\n {\n label: \"已过期\",\n value: 2\n }\n ];\n export default {\n name: 'couponHistoryList',\n data() {\n return {\n coupon: {},\n listQuery: Object.assign({}, defaultListQuery),\n useTypeOptions:Object.assign({},defaultUseTypeOptions),\n list:null,\n total:null,\n listLoading:false\n }\n },\n created() {\n getCoupon(this.$route.query.id).then(response => {\n this.coupon = response.data;\n });\n this.listQuery.couponId=this.$route.query.id;\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 if (endTime > now) {\n return '未过期'\n } else {\n return '已过期';\n }\n },\n formatGetType(type) {\n if(type===1){\n return '主动获取';\n }else{\n return '后台赠送';\n }\n },\n formatCouponHistoryUseType(useType) {\n if (useType === 0) {\n return '未使用';\n } else if (useType === 1) {\n return '已使用';\n } else {\n return '已过期';\n }\n },\n formatTime(time) {\n if (time == null || time === '') {\n return '--';\n }\n let date = new Date(time);\n return formatDate(date, 'yyyy-MM-dd hh:mm:ss')\n },\n },\n methods: {\n getList(){\n this.listLoading=true;\n fetchCouponHistoryList(this.listQuery).then(response=>{\n this.listLoading=false;\n this.list=response.data.list;\n this.total=response.data.total;\n });\n },\n handleResetSearch() {\n this.listQuery = Object.assign({}, defaultListQuery);\n this.listQuery.couponId=this.$route.query.id;\n },\n handleSearchList() {\n this.listQuery.pageNum = 1;\n this.getList();\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 }\n }\n</script>\n<style scoped>\n .app-container {\n width: 80%;\n margin: 20px auto;\n }\n\n .filter-container {\n margin-top: 20px;\n }\n\n .table-layout {\n margin-top: 20px;\n border-left: 1px solid #DCDFE6;\n border-top: 1px solid #DCDFE6;\n }\n\n .table-cell {\n height: 60px;\n line-height: 40px;\n border-right: 1px solid #DCDFE6;\n border-bottom: 1px solid #DCDFE6;\n padding: 10px;\n font-size: 14px;\n color: #606266;\n text-align: center;\n overflow: hidden;\n }\n\n .table-cell-title {\n border-right: 1px solid #DCDFE6;\n border-bottom: 1px solid #DCDFE6;\n padding: 10px;\n background: #F2F6FC;\n text-align: center;\n font-size: 14px;\n color: #303133;\n }\n</style>\n\n\n\n\n\n// WEBPACK FOOTER //\n// src/views/sms/coupon/history.vue","import request from '@/utils/request'\nexport function fetchList(params) {\n return request({\n url:'/couponHistory/list',\n method:'get',\n params:params\n })\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/api/couponHistory.js","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"app-container\"},[_c('div',{staticClass:\"table-layout\"},[_c('el-row',[_c('el-col',{staticClass:\"table-cell-title\",attrs:{\"span\":4}},[_vm._v(\"名称\")]),_vm._v(\" \"),_c('el-col',{staticClass:\"table-cell-title\",attrs:{\"span\":4}},[_vm._v(\"优惠券类型\")]),_vm._v(\" \"),_c('el-col',{staticClass:\"table-cell-title\",attrs:{\"span\":4}},[_vm._v(\"可使用商品\")]),_vm._v(\" \"),_c('el-col',{staticClass:\"table-cell-title\",attrs:{\"span\":4}},[_vm._v(\"使用门槛\")]),_vm._v(\" \"),_c('el-col',{staticClass:\"table-cell-title\",attrs:{\"span\":4}},[_vm._v(\"面值\")]),_vm._v(\" \"),_c('el-col',{staticClass:\"table-cell-title\",attrs:{\"span\":4}},[_vm._v(\"状态\")])],1),_vm._v(\" \"),_c('el-row',[_c('el-col',{staticClass:\"table-cell\",attrs:{\"span\":4}},[_vm._v(_vm._s(_vm.coupon.name))]),_vm._v(\" \"),_c('el-col',{staticClass:\"table-cell\",attrs:{\"span\":4}},[_vm._v(_vm._s(_vm._f(\"formatType\")(_vm.coupon.type)))]),_vm._v(\" \"),_c('el-col',{staticClass:\"table-cell\",attrs:{\"span\":4}},[_vm._v(_vm._s(_vm._f(\"formatUseType\")(_vm.coupon.useType)))]),_vm._v(\" \"),_c('el-col',{staticClass:\"table-cell\",attrs:{\"span\":4}},[_vm._v(\"满\"+_vm._s(_vm.coupon.minPoint)+\"元可用\")]),_vm._v(\" \"),_c('el-col',{staticClass:\"table-cell\",attrs:{\"span\":4}},[_vm._v(_vm._s(_vm.coupon.amount)+\"元\")]),_vm._v(\" \"),_c('el-col',{staticClass:\"table-cell\",attrs:{\"span\":4}},[_vm._v(_vm._s(_vm._f(\"formatStatus\")(_vm.coupon.endTime)))])],1),_vm._v(\" \"),_c('el-row',[_c('el-col',{staticClass:\"table-cell-title\",attrs:{\"span\":4}},[_vm._v(\"有效期\")]),_vm._v(\" \"),_c('el-col',{staticClass:\"table-cell-title\",attrs:{\"span\":4}},[_vm._v(\"总发行量\")]),_vm._v(\" \"),_c('el-col',{staticClass:\"table-cell-title\",attrs:{\"span\":4}},[_vm._v(\"已领取\")]),_vm._v(\" \"),_c('el-col',{staticClass:\"table-cell-title\",attrs:{\"span\":4}},[_vm._v(\"待领取\")]),_vm._v(\" \"),_c('el-col',{staticClass:\"table-cell-title\",attrs:{\"span\":4}},[_vm._v(\"已使用\")]),_vm._v(\" \"),_c('el-col',{staticClass:\"table-cell-title\",attrs:{\"span\":4}},[_vm._v(\"未使用\")])],1),_vm._v(\" \"),_c('el-row',[_c('el-col',{staticClass:\"table-cell\",staticStyle:{\"font-size\":\"13px\"},attrs:{\"span\":4}},[_vm._v(\"\\n \"+_vm._s(_vm._f(\"formatDate\")(_vm.coupon.startTime))+\"至\"+_vm._s(_vm._f(\"formatDate\")(_vm.coupon.endTime))+\"\\n \")]),_vm._v(\" \"),_c('el-col',{staticClass:\"table-cell\",attrs:{\"span\":4}},[_vm._v(_vm._s(_vm.coupon.publishCount))]),_vm._v(\" \"),_c('el-col',{staticClass:\"table-cell\",attrs:{\"span\":4}},[_vm._v(_vm._s(_vm.coupon.receiveCount))]),_vm._v(\" \"),_c('el-col',{staticClass:\"table-cell\",attrs:{\"span\":4}},[_vm._v(_vm._s(_vm.coupon.publishCount-_vm.coupon.receiveCount))]),_vm._v(\" \"),_c('el-col',{staticClass:\"table-cell\",attrs:{\"span\":4}},[_vm._v(_vm._s(_vm.coupon.useCount))]),_vm._v(\" \"),_c('el-col',{staticClass:\"table-cell\",attrs:{\"span\":4}},[_vm._v(_vm._s(_vm.coupon.publishCount-_vm.coupon.useCount))])],1)],1),_vm._v(\" \"),_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-select',{staticClass:\"input-width\",attrs:{\"placeholder\":\"全部\",\"clearable\":\"\"},model:{value:(_vm.listQuery.useStatus),callback:function ($$v) {_vm.$set(_vm.listQuery, \"useStatus\", $$v)},expression:\"listQuery.useStatus\"}},_vm._l((_vm.useTypeOptions),function(item){return _c('el-option',{key:item.value,attrs:{\"label\":item.label,\"value\":item.value}})}))],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"订单编号:\"}},[_c('el-input',{staticClass:\"input-width\",attrs:{\"placeholder\":\"订单编号\"},model:{value:(_vm.listQuery.orderSn),callback:function ($$v) {_vm.$set(_vm.listQuery, \"orderSn\", $$v)},expression:\"listQuery.orderSn\"}})],1)],1)],1)]),_vm._v(\" \"),_c('div',{staticClass:\"table-container\"},[_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.listLoading),expression:\"listLoading\"}],ref:\"couponHistoryTable\",staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.list,\"border\":\"\"}},[_c('el-table-column',{attrs:{\"label\":\"优惠码\",\"width\":\"160\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(_vm._s(scope.row.couponCode))]}}])}),_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.memberNickname))]}}])}),_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(\"formatGetType\")(scope.row.getType)))]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"领取时间\",\"width\":\"160\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(_vm._s(_vm._f(\"formatTime\")(scope.row.createTime)))]}}])}),_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(_vm._f(\"formatCouponHistoryUseType\")(scope.row.useStatus)))]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"使用时间\",\"width\":\"160\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(_vm._s(_vm._f(\"formatTime\")(scope.row.useTime)))]}}])}),_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.orderSn===null?'N/A':scope.row.orderSn))]}}])})],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-557aa042\",\"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/history.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-557aa042\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./history.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!./history.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../../node_modules/vue-loader/lib/selector?type=script&index=0!./history.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-557aa042\\\",\\\"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!./history.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-557aa042\"\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/history.vue\n// module id = null\n// module chunks = "],"sourceRoot":""}