49.5a6e72ff251b768d9d19.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?7a5a","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,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AS,GAAA,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/49.5a6e72ff251b768d9d19.js","sourcesContent":["<template> \r\n <div class=\"app-container\">\r\n <div class=\"table-layout\">\r\n <el-row>\r\n <el-col :span=\"4\" class=\"table-cell-title\">名称</el-col>\r\n <el-col :span=\"4\" class=\"table-cell-title\">优惠券类型</el-col>\r\n <el-col :span=\"4\" class=\"table-cell-title\">可使用商品</el-col>\r\n <el-col :span=\"4\" class=\"table-cell-title\">使用门槛</el-col>\r\n <el-col :span=\"4\" class=\"table-cell-title\">面值</el-col>\r\n <el-col :span=\"4\" class=\"table-cell-title\">状态</el-col>\r\n </el-row>\r\n <el-row>\r\n <el-col :span=\"4\" class=\"table-cell\">{{coupon.name}}</el-col>\r\n <el-col :span=\"4\" class=\"table-cell\">{{coupon.type | formatType}}</el-col>\r\n <el-col :span=\"4\" class=\"table-cell\">{{coupon.useType | formatUseType}}</el-col>\r\n <el-col :span=\"4\" class=\"table-cell\">满{{coupon.minPoint}}元可用</el-col>\r\n <el-col :span=\"4\" class=\"table-cell\">{{coupon.amount}}元</el-col>\r\n <el-col :span=\"4\" class=\"table-cell\">{{coupon.endTime | formatStatus}}</el-col>\r\n </el-row>\r\n <el-row>\r\n <el-col :span=\"4\" class=\"table-cell-title\">有效期</el-col>\r\n <el-col :span=\"4\" class=\"table-cell-title\">总发行量</el-col>\r\n <el-col :span=\"4\" class=\"table-cell-title\">已领取</el-col>\r\n <el-col :span=\"4\" class=\"table-cell-title\">待领取</el-col>\r\n <el-col :span=\"4\" class=\"table-cell-title\">已使用</el-col>\r\n <el-col :span=\"4\" class=\"table-cell-title\">未使用</el-col>\r\n </el-row>\r\n <el-row>\r\n <el-col :span=\"4\" class=\"table-cell\" style=\"font-size: 13px\">\r\n {{coupon.startTime|formatDate}}至{{coupon.endTime|formatDate}}\r\n </el-col>\r\n <el-col :span=\"4\" class=\"table-cell\">{{coupon.publishCount}}</el-col>\r\n <el-col :span=\"4\" class=\"table-cell\">{{coupon.receiveCount}}</el-col>\r\n <el-col :span=\"4\" class=\"table-cell\">{{coupon.publishCount-coupon.receiveCount}}</el-col>\r\n <el-col :span=\"4\" class=\"table-cell\">{{coupon.useCount}}</el-col>\r\n <el-col :span=\"4\" class=\"table-cell\">{{coupon.publishCount-coupon.useCount}}</el-col>\r\n </el-row>\r\n </div>\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-select v-model=\"listQuery.useStatus\" placeholder=\"全部\" clearable class=\"input-width\">\r\n <el-option v-for=\"item in useTypeOptions\"\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-item label=\"订单编号:\">\r\n <el-input v-model=\"listQuery.orderSn\" class=\"input-width\" placeholder=\"订单编号\"></el-input>\r\n </el-form-item>\r\n </el-form>\r\n </div>\r\n </el-card>\r\n <div class=\"table-container\">\r\n <el-table ref=\"couponHistoryTable\"\r\n :data=\"list\"\r\n style=\"width: 100%;\"\r\n v-loading=\"listLoading\" border>\r\n <el-table-column label=\"优惠码\" width=\"160\" align=\"center\">\r\n <template slot-scope=\"scope\">{{scope.row.couponCode}}</template>\r\n </el-table-column>\r\n <el-table-column label=\"领取会员\" width=\"140\" align=\"center\">\r\n <template slot-scope=\"scope\">{{scope.row.memberNickname}}</template>\r\n </el-table-column>\r\n <el-table-column label=\"领取方式\" width=\"100\" align=\"center\">\r\n <template slot-scope=\"scope\">{{scope.row.getType | formatGetType}}</template>\r\n </el-table-column>\r\n <el-table-column label=\"领取时间\" width=\"160\" align=\"center\">\r\n <template slot-scope=\"scope\">{{scope.row.createTime | formatTime}}</template>\r\n </el-table-column>\r\n <el-table-column label=\"当前状态\" width=\"140\" align=\"center\">\r\n <template slot-scope=\"scope\">{{scope.row.useStatus | formatCouponHistoryUseType}}</template>\r\n </el-table-column>\r\n <el-table-column label=\"使用时间\" width=\"160\" align=\"center\">\r\n <template slot-scope=\"scope\">{{scope.row.useTime | formatTime}}</template>\r\n </el-table-column>\r\n <el-table-column label=\"订单编号\" align=\"center\">\r\n <template slot-scope=\"scope\">{{scope.row.orderSn===null?'N/A':scope.row.orderSn}}</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 {formatDate} from '@/utils/date';\r\n import {getCoupon} from '@/api/coupon';\r\n import {fetchList as fetchCouponHistoryList} from '@/api/couponHistory';\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 const defaultListQuery = {\r\n pageNum: 1,\r\n pageSize: 10,\r\n useStatus: null,\r\n orderSn: null,\r\n couponId: null\r\n };\r\n const defaultUseTypeOptions= [\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 export default {\r\n name: 'couponHistoryList',\r\n data() {\r\n return {\r\n coupon: {},\r\n listQuery: Object.assign({}, defaultListQuery),\r\n useTypeOptions:Object.assign({},defaultUseTypeOptions),\r\n list:null,\r\n total:null,\r\n listLoading:false\r\n }\r\n },\r\n created() {\r\n getCoupon(this.$route.query.id).then(response => {\r\n this.coupon = response.data;\r\n });\r\n this.listQuery.couponId=this.$route.query.id;\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 if (endTime > now) {\r\n return '未过期'\r\n } else {\r\n return '已过期';\r\n }\r\n },\r\n formatGetType(type) {\r\n if(type===1){\r\n return '主动获取';\r\n }else{\r\n return '后台赠送';\r\n }\r\n },\r\n formatCouponHistoryUseType(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 formatTime(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 hh:mm:ss')\r\n },\r\n },\r\n methods: {\r\n getList(){\r\n this.listLoading=true;\r\n fetchCouponHistoryList(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 handleResetSearch() {\r\n this.listQuery = Object.assign({}, defaultListQuery);\r\n this.listQuery.couponId=this.$route.query.id;\r\n },\r\n handleSearchList() {\r\n this.listQuery.pageNum = 1;\r\n this.getList();\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 }\r\n }\r\n</script>\r\n<style scoped>\r\n .app-container {\r\n width: 80%;\r\n margin: 20px auto;\r\n }\r\n\r\n .filter-container {\r\n margin-top: 20px;\r\n }\r\n\r\n .table-layout {\r\n margin-top: 20px;\r\n border-left: 1px solid #DCDFE6;\r\n border-top: 1px solid #DCDFE6;\r\n }\r\n\r\n .table-cell {\r\n height: 60px;\r\n line-height: 40px;\r\n border-right: 1px solid #DCDFE6;\r\n border-bottom: 1px solid #DCDFE6;\r\n padding: 10px;\r\n font-size: 14px;\r\n color: #606266;\r\n text-align: center;\r\n overflow: hidden;\r\n }\r\n\r\n .table-cell-title {\r\n border-right: 1px solid #DCDFE6;\r\n border-bottom: 1px solid #DCDFE6;\r\n padding: 10px;\r\n background: #F2F6FC;\r\n text-align: center;\r\n font-size: 14px;\r\n color: #303133;\r\n }\r\n</style>\r\n\r\n\r\n\n\n\n// WEBPACK FOOTER //\n// src/views/sms/coupon/history.vue","import request from '@/utils/request'\r\nexport function fetchList(params) {\r\n return request({\r\n url:'/couponHistory/list',\r\n method:'get',\r\n params:params\r\n })\r\n}\r\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-0e89bc35\",\"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}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-0e89bc35\\\",\\\"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-0e89bc35\\\",\\\"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-0e89bc35\"\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":""}