{"version":3,"sources":["webpack:///./src/views/promotion/components/coupondetailview.vue?e2fb","webpack:///./src/components/Toolbar.vue?d1e5","webpack:///./src/components/Toolbar.vue?78dd","webpack:///src/components/Toolbar.vue","webpack:///./src/components/Toolbar.vue?33fb","webpack:///./src/components/Toolbar.vue","webpack:///./src/views/promotion/components/coupondetailview.vue?9538","webpack:///src/views/promotion/components/coupondetailview.vue","webpack:///./src/views/promotion/components/coupondetailview.vue?581f","webpack:///./src/views/promotion/components/coupondetailview.vue","webpack:///./src/views/promotion/couponlist.vue?2803","webpack:///src/views/promotion/couponlist.vue","webpack:///./src/views/promotion/couponlist.vue?7e9b","webpack:///./src/views/promotion/couponlist.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","_l","item","BtnArea","key","id","attrs","Css","iconcss","on","$event","callFunc","_v","_s","BtnName","_e","staticRenderFns","name","data","props","methods","$emit","component","ref","childdialogshow","drawgesize","cancel","slot","staticStyle","couponstatechange","model","value","Coupon","listQuery","querymodel","callback","$$v","$set","expression","Id","Name","nativeOn","type","indexOf","_k","keyCode","getCouponList","state","couponcancel","couponpostpone","list","getViewHeight","background","color","height","padding","handleSelectionChange","col","i","label","align","width","scopedSlots","_u","fn","row","State","DeleteTime","Usetime","directives","rawName","total","pageIndex","pageSize","components","Pagination","dialogshow","required","querytype","default","detailviewId","computed","get","set","val","pcouponstatelist","multipleSelection","columns","orderColumn","orderbyasc","MemberId","keyword","CouponTypeId","created","size","getViewWidth","length","$message","message","$prompt","confirmButtonText","inputType","cancelButtonText","inputPattern","inputErrorMessage","then","ids","couponinfopostpone","enddate","catch","$confirm","couponinfocancel","page","limit","querycouponlist","changetab","getList","buttonList","callFunction","detailview","GetNum","UseNum","nousequantity","cancelquantity","outquantity","edit","deleted","isedit","editform","savecomplete","cancelcomplete","detaildialogshow","cancelcouponcomplete","savecouponcomplete","Toolbar","addcoupon","coupondetailview","waves","BtnCode","apply","create","undefined","query","mounted","JSON","$route","path","routers","forEach"],"mappings":"yIA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tE,KAAKmH,SAAS,SAAU,KAAM,CAC5BpE,KAAMA,YACd+D,MAAA,WACQqB,gBAARzH,UAAA,kBACU,EAAV,UACY6F,QAASA,QACTxD,KAAMA,YAER,EAAV,iBAII0E,QA7CJ,SA6CAlH,GAAA,WACkB,MAARA,QAAwB2I,GAAR3I,GAClBP,KAAKsC,UAAUuC,UAAYtE,EAAK8G,KAChCrH,KAAKsC,UAAUwC,SAAWvE,EAAK+G,OAE/BtH,KAAKsC,UAAUuC,UAAY,EAE7BsE,eAAMA,KAAKA,WAAWA,MAAKA,SAAtBA,GACH,EAAR,YACQ,EAAR,uBAIEC,QAnHF,WAmHA,WACA,6BACAC,uCACA,GACIrJ,KAAK0H,WAAa,eAAc1H,KAAKsJ,OAAOC,KAAMC,GAClDxJ,KAAK0H,WAAW+B,SAAQ,SAA5B,GAC2B,WAAjBlJ,EAAKwI,UACP,EAAR,eAE2B,SAAjBxI,EAAKwI,UACP,EAAR,kBCvSmW,I,YCO/VpH,EAAY,eACd,EACA7B,EACAuB,GACA,EACA,KACA,KACA,MAIa,aAAAM,E","file":"js/chunk-eabe95f8.93d111e4.js","sourcesContent":["export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../../../node_modules/css-loader/index.js??ref--10-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../../node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./coupondetailview.vue?vue&type=style&index=0&id=78c735fe&lang=less&scoped=true&\"","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Toolbar.vue?vue&type=style&index=0&lang=css&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"filter-item\"},_vm._l((_vm.buttonList),function(item){return (item.BtnArea === 0)?_c('el-button',{key:item.id,attrs:{\"type\":item.Css,\"icon\":item.iconcss},on:{\"click\":function($event){return _vm.callFunc(item)}}},[_vm._v(_vm._s(item.BtnName))]):_vm._e()}),1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"filter-item\">\r\n <!-- 这里触发点击事件 -->\r\n <el-button \r\n v-for=\"item in buttonList\"\r\n v-bind:key=\"item.id\"\r\n v-if=\"item.BtnArea === 0\"\r\n :type=\"item.Css\"\r\n :icon=\"item.iconcss\"\r\n @click=\"callFunc(item)\"\r\n >{{ item.BtnName }}</el-button>\r\n </div>\r\n</template>\r\n<style lang=\"css\">\r\n@import \"../style/content.css\";\r\n</style>\r\n<script>\r\nexport default {\r\n name: \"Toolbar\",\r\n data() {\r\n return {\r\n };\r\n },\r\n props: [\"buttonList\"], //接受父组件传值\r\n methods: {\r\n callFunc(item) {\r\n this.$emit(\"callFunction\", item); //将值传给父组件\r\n },\r\n },\r\n};\r\n</script>","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Toolbar.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Toolbar.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Toolbar.vue?vue&type=template&id=227748e9&\"\nimport script from \"./Toolbar.vue?vue&type=script&lang=js&\"\nexport * from \"./Toolbar.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Toolbar.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-drawer',{ref:\"drawer\",attrs:{\"visible\":_vm.childdialogshow,\"show-close\":false,\"destroy-on-close\":true,\"wrapperClosable\":false,\"modal\":false,\"direction\":\"rtl\",\"size\":_vm.drawgesize,\"before-close\":_vm.cancel},on:{\"update:visible\":function($event){_vm.childdialogshow=$event}}},[_c('el-row',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_c('el-col',{staticStyle:{\"font-size\":\"18px\",\"color\":\"black\"},attrs:{\"span\":21}},[_vm._v(\"发劵明细\")]),_c('el-col',{staticStyle:{\"color\":\"red\",\"font-size\":\"25px\",\"cursor\":\"pointer\",\"text-align\":\"right\"},attrs:{\"span\":3}},[_c('i',{staticClass:\"el-icon-close\",on:{\"click\":_vm.cancel}})])],1),_c('div',{staticClass:\"dialogshow\"},[_c('div',{staticClass:\"dialoForm-content\"},[_c('el-row',[_c('el-col',{attrs:{\"span\":16}},[_c('el-select',{staticClass:\"filter-item\",staticStyle:{\"width\":\"150px\"},attrs:{\"placeholder\":\"请选择状态\",\"clearable\":true},on:{\"change\":_vm.couponstatechange},model:{value:(_vm.Coupon.listQuery.querymodel.state),callback:function ($$v) {_vm.$set(_vm.Coupon.listQuery.querymodel, \"state\", $$v)},expression:\"Coupon.listQuery.querymodel.state\"}},_vm._l((_vm.pcouponstatelist),function(item){return _c('el-option',{key:item.Id,attrs:{\"label\":item.Name,\"value\":item.Id}})}),1),_c('el-input',{staticClass:\"filter-item\",staticStyle:{\"width\":\"150px\"},attrs:{\"placeholder\":\"会员卡号/手机号\"},nativeOn:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.getCouponList()}},model:{value:(_vm.Coupon.listQuery.querymodel.keyword),callback:function ($$v) {_vm.$set(_vm.Coupon.listQuery.querymodel, \"keyword\", $$v)},expression:\"Coupon.listQuery.querymodel.keyword\"}}),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){return _vm.getCouponList()}}},[_vm._v(\"搜索\")])],1),_c('el-col',{attrs:{\"span\":8}},[_c('div',{staticStyle:{\"float\":\"right\"}},[(_vm.Coupon.listQuery.querymodel.state == 1)?_c('el-button',{attrs:{\"type\":\"error\",\"plain\":\"\"},on:{\"click\":function($event){return _vm.couponcancel()}}},[_vm._v(\"作废\")]):_vm._e(),(\n _vm.Coupon.listQuery.querymodel.state == 3 ||\n _vm.Coupon.listQuery.querymodel.state == 1\n )?_c('el-button',{attrs:{\"type\":\"primary\",\"plain\":\"\"},on:{\"click\":function($event){return _vm.couponpostpone()}}},[_vm._v(\"延期\")]):_vm._e()],1)])],1),_c('el-row',[_c('el-table',{staticClass:\"app-table\",staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.Coupon.list,\"height\":_vm.getViewHeight(),\"border\":\"\",\"fit\":\"\",\"highlight-current-row\":\"\",\"stripe\":\"\",\"header-cell-style\":{ background: '#F3F4F7', color: '#555' },\"row-style\":{ height: '10px' },\"cell-style\":{ padding: '7px 0' }},on:{\"selection-change\":_vm.handleSelectionChange}},[(\n _vm.Coupon.listQuery.querymodel.state == 1 ||\n _vm.Coupon.listQuery.querymodel.state == 3\n )?_c('el-table-column',{attrs:{\"type\":\"selection\",\"width\":\"55\"}}):_vm._e(),_vm._l((_vm.Coupon.columns),function(col,i){return _c('el-table-column',{key:i,attrs:{\"label\":col.label,\"align\":col.align,\"prop\":col.value,\"type\":col.type,\"width\":col.width}})}),_c('el-table-column',{attrs:{\"label\":_vm.Coupon.listQuery.querymodel.state == 0 ? '作废时间' : '使用时间',\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\n var row = ref.row;\nreturn [_vm._v(_vm._s(row.State == 0 ? row.DeleteTime : row.Usetime)+\"\\n \")]}}])})],2),_c('pagination',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.Coupon.total > 0),expression:\"Coupon.total > 0\"}],attrs:{\"total\":_vm.Coupon.total,\"page\":_vm.Coupon.listQuery.pageIndex,\"limit\":_vm.Coupon.listQuery.pageSize},on:{\"update:page\":function($event){return _vm.$set(_vm.Coupon.listQuery, \"pageIndex\", $event)},\"update:limit\":function($event){return _vm.$set(_vm.Coupon.listQuery, \"pageSize\", $event)},\"pagination\":_vm.getCouponList}})],1)],1),_c('div',{staticClass:\"dialoForm-footer\"},[_c('el-button',{staticStyle:{\"width\":\"100px\",\"margin-right\":\"10px\"},on:{\"click\":_vm.cancel}},[_vm._v(\"关 闭\")])],1)])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <el-drawer\r\n :visible.sync=\"childdialogshow\"\r\n :show-close=\"false\"\r\n :destroy-on-close=\"true\"\r\n :wrapperClosable=\"false\"\r\n :modal=\"false\"\r\n direction=\"rtl\"\r\n ref=\"drawer\"\r\n :size=\"drawgesize\"\r\n :before-close=\"cancel\"\r\n >\r\n <el-row slot=\"title\">\r\n <el-col :span=\"21\" style=\"font-size: 18px; color: black\">发劵明细</el-col>\r\n <el-col\r\n :span=\"3\"\r\n style=\"color: red; font-size: 25px; cursor: pointer; text-align: right\"\r\n ><i class=\"el-icon-close\" @click=\"cancel\"></i\r\n ></el-col>\r\n </el-row>\r\n <div class=\"dialogshow\">\r\n <div class=\"dialoForm-content\">\r\n <el-row>\r\n <el-col :span=\"16\">\r\n <el-select\r\n style=\"width: 150px\"\r\n class=\"filter-item\"\r\n v-model=\"Coupon.listQuery.querymodel.state\"\r\n placeholder=\"请选择状态\"\r\n :clearable=\"true\"\r\n @change=\"couponstatechange\"\r\n >\r\n <el-option\r\n v-for=\"item in pcouponstatelist\"\r\n :key=\"item.Id\"\r\n :label=\"item.Name\"\r\n :value=\"item.Id\"\r\n ></el-option>\r\n </el-select>\r\n <el-input\r\n class=\"filter-item\"\r\n v-model=\"Coupon.listQuery.querymodel.keyword\"\r\n placeholder=\"会员卡号/手机号\"\r\n style=\"width: 150px\"\r\n @keyup.enter.native=\"getCouponList()\"\r\n />\r\n <el-button type=\"primary\" @click=\"getCouponList()\">搜索</el-button>\r\n </el-col>\r\n <el-col :span=\"8\">\r\n <div style=\"float: right\">\r\n <el-button\r\n type=\"error\"\r\n plain\r\n v-if=\"Coupon.listQuery.querymodel.state == 1\"\r\n @click=\"couponcancel()\"\r\n >作废</el-button\r\n >\r\n <el-button\r\n type=\"primary\"\r\n v-if=\"\r\n Coupon.listQuery.querymodel.state == 3 ||\r\n Coupon.listQuery.querymodel.state == 1\r\n \"\r\n @click=\"couponpostpone()\"\r\n plain\r\n >延期</el-button\r\n >\r\n </div>\r\n </el-col>\r\n </el-row>\r\n <el-row>\r\n <el-table\r\n class=\"app-table\"\r\n :data=\"Coupon.list\"\r\n :height=\"getViewHeight()\"\r\n border\r\n fit\r\n highlight-current-row\r\n stripe\r\n style=\"width: 100%\"\r\n :header-cell-style=\"{ background: '#F3F4F7', color: '#555' }\"\r\n :row-style=\"{ height: '10px' }\"\r\n :cell-style=\"{ padding: '7px 0' }\"\r\n @selection-change=\"handleSelectionChange\"\r\n >\r\n <el-table-column\r\n v-if=\"\r\n Coupon.listQuery.querymodel.state == 1 ||\r\n Coupon.listQuery.querymodel.state == 3\r\n \"\r\n type=\"selection\"\r\n width=\"55\"\r\n >\r\n </el-table-column>\r\n <el-table-column\r\n :key=\"i\"\r\n v-for=\"(col, i) in Coupon.columns\"\r\n :label=\"col.label\"\r\n :align=\"col.align\"\r\n :prop=\"col.value\"\r\n :type=\"col.type\"\r\n :width=\"col.width\"\r\n >\r\n </el-table-column>\r\n <el-table-column\r\n :label=\"\r\n Coupon.listQuery.querymodel.state == 0 ? '作废时间' : '使用时间'\r\n \"\r\n align=\"center\"\r\n >\r\n <template slot-scope=\"{ row }\"\r\n >{{ row.State == 0 ? row.DeleteTime : row.Usetime }}\r\n </template>\r\n </el-table-column>\r\n </el-table>\r\n <pagination\r\n v-show=\"Coupon.total > 0\"\r\n :total=\"Coupon.total\"\r\n :page.sync=\"Coupon.listQuery.pageIndex\"\r\n :limit.sync=\"Coupon.listQuery.pageSize\"\r\n @pagination=\"getCouponList\"\r\n />\r\n </el-row>\r\n </div>\r\n <div class=\"dialoForm-footer\">\r\n <el-button @click=\"cancel\" style=\"width: 100px; margin-right: 10px\"\r\n >关 闭</el-button\r\n >\r\n </div>\r\n </div>\r\n </el-drawer>\r\n</template>\r\n<style lang=\"less\" scoped>\r\n/deep/ .el-dialog__body {\r\n padding: 5px 0px 5px 0px !important;\r\n}\r\n/deep/ .el-dialog__footer {\r\n padding: 0px 0px !important;\r\n box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.1);\r\n}\r\n/deep/ .el-dialog__header {\r\n padding: 10px 10px 0px !important;\r\n box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);\r\n}\r\n/deep/ .el-tabs__nav-wrap::after {\r\n background-color: white !important;\r\n}\r\n/deep/ .el-tabs__content {\r\n flex-grow: 1 !important;\r\n}\r\n.info_title {\r\n background: #f5f7fa;\r\n color: #666;\r\n font-weight: 700;\r\n text-indent: 16px;\r\n line-height: 30px;\r\n font-size: 16px;\r\n}\r\n.info_content {\r\n text-indent: 30px;\r\n line-height: 30px;\r\n}\r\n.xj {\r\n color: #606266;\r\n text-align: right;\r\n height: 24px;\r\n margin-top: 10px;\r\n}\r\n.xj font {\r\n color: #f56c6c;\r\n font: bold 22px/24px tahoma;\r\n margin-right: 5px;\r\n}\r\n</style>\r\n <script>\r\nimport {\r\n membercouponlist as querycouponlist,\r\n batchcouponinfocancel as couponinfocancel,\r\n batchcouponinfopostpone as couponinfopostpone,\r\n} from \"@/api/coupon\";\r\nimport Pagination from \"@/components/Pagination\";\r\nexport default {\r\n components: { Pagination },\r\n name: \"coupondetailview\",\r\n props: {\r\n dialogshow: {\r\n required: true,\r\n type: Boolean,\r\n },\r\n querytype: {\r\n required: false,\r\n type: Number,\r\n default: -1,\r\n },\r\n detailviewId:{\r\n required: false,\r\n type: Number,\r\n default: -1,\r\n },\r\n },\r\n computed: {\r\n childdialogshow: {\r\n get() {\r\n return this.dialogshow;\r\n },\r\n set(val) {\r\n this.$emit(\"update:dialogshow\", val);\r\n },\r\n },\r\n },\r\n directives: {},\r\n data() {\r\n return {\r\n drawgesize: 750,\r\n pcouponstatelist: [\r\n { Id: -1, Name: \"全部\" },\r\n { Id: 1, Name: \"未使用\" },\r\n { Id: 0, Name: \"已作废\" },\r\n { Id: 2, Name: \"已使用\" },\r\n { Id: 3, Name: \"已过期\" },\r\n ],\r\n multipleSelection: [],\r\n Coupon: {\r\n total: 0,\r\n columns: [\r\n {\r\n label: \"序号\",\r\n value: \"index\",\r\n align: \"center\",\r\n type: \"index\",\r\n width: 55,\r\n },\r\n {\r\n label: \"劵号\",\r\n value: \"CouponNo\",\r\n align: \"center\",\r\n type: \"\",\r\n width: 190,\r\n },\r\n {\r\n label: \"劵名称\",\r\n value: \"CouponName\",\r\n align: \"center\",\r\n type: \"\",\r\n width: 100,\r\n },\r\n {\r\n label: \"劵类型\",\r\n value: \"CouponTypeName\",\r\n align: \"center\",\r\n type: \"\",\r\n width: 100,\r\n },\r\n {\r\n label: \"劵面额/折扣\",\r\n value: \"FaceAmount\",\r\n align: \"center\",\r\n type: \"\",\r\n width: 100,\r\n },\r\n {\r\n label: \"有效期\",\r\n value: \"validdate\",\r\n align: \"center\",\r\n type: \"\",\r\n },\r\n ],\r\n list: [],\r\n listQuery: {\r\n pageIndex: 1,\r\n pageSize: 15,\r\n orderColumn: \"\",\r\n orderbyasc: false,\r\n querymodel: {\r\n MemberId: 0,\r\n state: -1,\r\n keyword: \"\",\r\n CouponTypeId:-1\r\n },\r\n },\r\n },\r\n };\r\n },\r\n created() {\r\n this.Coupon.listQuery.querymodel.state = this.querytype;\r\n this.Coupon.listQuery.querymodel.CouponTypeId=this.detailviewId;\r\n var size = this.getViewWidth();\r\n if (size === 540) {\r\n this.drawgesize = 850;\r\n } else {\r\n this.drawgesize = size;\r\n }\r\n this.getCouponList();\r\n },\r\n methods: {\r\n handleSelectionChange(val) {\r\n this.multipleSelection = val;\r\n },\r\n couponstatechange(value) {\r\n this.getCouponList();\r\n },\r\n cancel() {\r\n this.$emit(\"cancelcomplete\");\r\n },\r\n couponpostpone(row) {\r\n if (this.multipleSelection.length === 0) {\r\n this.$message({\r\n message: \"请至少选择一张优惠劵!\",\r\n type: \"error\",\r\n });\r\n } else {\r\n this.$prompt(\"请选择要延期至的日期\", \"优惠劵延期\", {\r\n confirmButtonText: \"确定\",\r\n inputType: \"date\",\r\n cancelButtonText: \"取消\",\r\n inputPattern:\r\n /^((((1[6-9]|[2-9]\\d)\\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\\d|3[01]))|(((1[6-9]|[2-9]\\d)\\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\\d|30))|(((1[6-9]|[2-9]\\d)\\d{2})-0?2-(0?[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-))$/,\r\n inputErrorMessage: \"日期格式不正确\",\r\n })\r\n .then(({ value }) => {\r\n var ids = [];\r\n this.multipleSelection.forEach((item) => {\r\n ids.push(item.Id);\r\n });\r\n couponinfopostpone({ ids: ids, enddate: value }).then((res) => {\r\n this.$message({\r\n message: \"延期成功!\",\r\n type: \"success\",\r\n });\r\n this.getCouponList();\r\n });\r\n })\r\n .catch(() => {});\r\n }\r\n },\r\n couponcancel(row) {\r\n if (this.multipleSelection.length === 0) {\r\n this.$message({\r\n message: \"请至少选择一张优惠劵!\",\r\n type: \"error\",\r\n });\r\n } else {\r\n this.$confirm(\"作废后不可恢复,确定作废吗?\", \"提示\", {\r\n type: \"warning\",\r\n }).then(() => {\r\n var ids = [];\r\n this.multipleSelection.forEach((item) => {\r\n ids.push(item.Id);\r\n });\r\n couponinfocancel({ ids: ids }).then((res) => {\r\n this.$message({\r\n message: \"作废成功!\",\r\n type: \"success\",\r\n });\r\n this.getCouponList();\r\n });\r\n });\r\n }\r\n },\r\n getCouponList(item) {\r\n if (item != null) {\r\n this.Coupon.listQuery.pageIndex = item.page;\r\n this.Coupon.listQuery.pageSize = item.limit;\r\n }\r\n querycouponlist(this.Coupon.listQuery).then((res) => {\r\n this.Coupon.list = res.data;\r\n this.Coupon.total = res.dataCount;\r\n });\r\n },\r\n changetab(item) {\r\n this.getCouponList();\r\n },\r\n },\r\n};\r\n</script>","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./coupondetailview.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./coupondetailview.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./coupondetailview.vue?vue&type=template&id=78c735fe&scoped=true&\"\nimport script from \"./coupondetailview.vue?vue&type=script&lang=js&\"\nexport * from \"./coupondetailview.vue?vue&type=script&lang=js&\"\nimport style0 from \"./coupondetailview.vue?vue&type=style&index=0&id=78c735fe&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"78c735fe\",\n null\n \n)\n\nexport default component.exports","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:\"filter-container\"},[_c('el-input',{staticClass:\"filter-item\",staticStyle:{\"width\":\"200px\"},attrs:{\"placeholder\":\"优惠劵名称\"},nativeOn:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.getList()}},model:{value:(_vm.listQuery.querymodel.keyword),callback:function ($$v) {_vm.$set(_vm.listQuery.querymodel, \"keyword\", $$v)},expression:\"listQuery.querymodel.keyword\"}}),_c('toolbar',{attrs:{\"buttonList\":_vm.buttonList},on:{\"callFunction\":_vm.callFunction}})],1),_c('el-table',{staticClass:\"app-table\",staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.list,\"border\":\"\",\"fit\":\"\",\"highlight-current-row\":\"\",\"stripe\":\"\",\"height\":_vm.getViewHeight(),\"header-cell-style\":{ background: '#F3F4F7', color: '#555' },\"row-style\":{ height: '10px' },\"cell-style\":{ padding: '7px 0' }}},[_vm._l((_vm.columns),function(col,i){return _c('el-table-column',{key:i,attrs:{\"label\":col.label,\"align\":col.align,\"prop\":col.value,\"type\":col.type,\"width\":col.width}})}),_c('el-table-column',{attrs:{\"label\":\"发放数量\",\"align\":\"center\",\"width\":\"100\",\"prop\":\"GetNum\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar row = ref.row;\nreturn [_c('el-button',{attrs:{\"type\":\"text\"},on:{\"click\":function($event){return _vm.detailview(row, -1)}}},[_vm._v(_vm._s(row.GetNum)+\"\\n \")])]}}])}),_c('el-table-column',{attrs:{\"label\":\"使用数量\",\"align\":\"center\",\"width\":\"100\",\"prop\":\"UseNum\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar row = ref.row;\nreturn [_c('el-button',{attrs:{\"type\":\"text\"},on:{\"click\":function($event){return _vm.detailview(row, 2)}}},[_vm._v(_vm._s(row.UseNum)+\"\\n \")])]}}])}),_c('el-table-column',{attrs:{\"label\":\"待使用数量\",\"align\":\"center\",\"width\":\"100\",\"prop\":\"nousequantity\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar row = ref.row;\nreturn [_c('el-button',{attrs:{\"type\":\"text\"},on:{\"click\":function($event){return _vm.detailview(row, 1)}}},[_vm._v(_vm._s(row.nousequantity)+\"\\n \")])]}}])}),_c('el-table-column',{attrs:{\"label\":\"作废数量\",\"align\":\"center\",\"width\":\"100\",\"prop\":\"cancelquantity\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar row = ref.row;\nreturn [_c('el-button',{attrs:{\"type\":\"text\"},on:{\"click\":function($event){return _vm.detailview(row, 0)}}},[_vm._v(_vm._s(row.cancelquantity)+\"\\n \")])]}}])}),_c('el-table-column',{attrs:{\"label\":\"已过期数量\",\"align\":\"center\",\"width\":\"100\",\"prop\":\"outquantity\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar row = ref.row;\nreturn [_c('el-button',{attrs:{\"type\":\"text\"},on:{\"click\":function($event){return _vm.detailview(row, 3)}}},[_vm._v(_vm._s(row.outquantity)+\"\\n \")])]}}])}),_c('el-table-column',{attrs:{\"label\":\"创建时间\",\"align\":\"center\",\"width\":\"180\",\"prop\":\"CreateTime\"}}),_c('el-table-column',{attrs:{\"label\":\"创建人\",\"align\":\"center\",\"width\":\"100\",\"prop\":\"EmpName\"}}),_c('el-table-column',{attrs:{\"label\":\"操作\",\"align\":\"center\",\"min-width\":120,\"fixed\":\"right\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar row = ref.row;\nreturn [_c('el-tooltip',{attrs:{\"content\":\"编辑\",\"placement\":\"top\"}},[(_vm.authedit)?_c('el-button',{attrs:{\"circle\":\"\",\"type\":\"primary\",\"size\":\"mini\",\"icon\":\"el-icon-edit\"},on:{\"click\":function($event){return _vm.edit(row)}}}):_vm._e()],1),_c('el-tooltip',{attrs:{\"content\":\"删除\",\"placement\":\"top\"}},[(_vm.authdelete)?_c('el-button',{attrs:{\"circle\":\"\",\"icon\":\"el-icon-delete\",\"size\":\"mini\",\"type\":\"danger\"},on:{\"click\":function($event){return _vm.deleted(row)}}}):_vm._e()],1)]}}])})],2),_c('pagination',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.total > 0),expression:\"total > 0\"}],attrs:{\"total\":_vm.total,\"page\":_vm.listQuery.pageIndex,\"limit\":_vm.listQuery.pageSize},on:{\"update:page\":function($event){return _vm.$set(_vm.listQuery, \"pageIndex\", $event)},\"update:limit\":function($event){return _vm.$set(_vm.listQuery, \"pageSize\", $event)},\"pagination\":_vm.getList}}),(_vm.dialogshow)?_c('addcoupon',{attrs:{\"dialogshow\":_vm.dialogshow,\"isedit\":_vm.isedit,\"editform\":_vm.editform},on:{\"savecomplete\":_vm.savecomplete,\"cancelcomplete\":_vm.cancelcomplete}}):_vm._e(),(_vm.detaildialogshow)?_c('coupondetailview',{attrs:{\"dialogshow\":_vm.detaildialogshow,\"detailviewId\":_vm.detailviewId,\"querytype\":_vm.querytype},on:{\"cancelcomplete\":_vm.cancelcouponcomplete,\"savecomplete\":_vm.savecouponcomplete}}):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"app-container\">\r\n <div class=\"filter-container\">\r\n <el-input\r\n class=\"filter-item\"\r\n v-model=\"listQuery.querymodel.keyword\"\r\n placeholder=\"优惠劵名称\"\r\n style=\"width: 200px\"\r\n @keyup.enter.native=\"getList()\"\r\n />\r\n <toolbar :buttonList=\"buttonList\" @callFunction=\"callFunction\"></toolbar>\r\n </div>\r\n <el-table\r\n class=\"app-table\"\r\n :data=\"list\"\r\n border\r\n fit\r\n highlight-current-row\r\n stripe\r\n style=\"width: 100%\"\r\n :height=\"getViewHeight()\"\r\n :header-cell-style=\"{ background: '#F3F4F7', color: '#555' }\"\r\n :row-style=\"{ height: '10px' }\"\r\n :cell-style=\"{ padding: '7px 0' }\"\r\n >\r\n <el-table-column\r\n :key=\"i\"\r\n v-for=\"(col, i) in columns\"\r\n :label=\"col.label\"\r\n :align=\"col.align\"\r\n :prop=\"col.value\"\r\n :type=\"col.type\"\r\n :width=\"col.width\"\r\n >\r\n </el-table-column>\r\n <el-table-column\r\n label=\"发放数量\"\r\n align=\"center\"\r\n width=\"100\"\r\n prop=\"GetNum\"\r\n >\r\n <template slot-scope=\"{ row }\"\r\n ><el-button type=\"text\" @click=\"detailview(row, -1)\"\r\n >{{ row.GetNum }}\r\n </el-button>\r\n </template>\r\n </el-table-column>\r\n <el-table-column\r\n label=\"使用数量\"\r\n align=\"center\"\r\n width=\"100\"\r\n prop=\"UseNum\"\r\n >\r\n <template slot-scope=\"{ row }\"\r\n ><el-button type=\"text\" @click=\"detailview(row, 2)\"\r\n >{{ row.UseNum }}\r\n </el-button>\r\n </template>\r\n </el-table-column>\r\n <el-table-column\r\n label=\"待使用数量\"\r\n align=\"center\"\r\n width=\"100\"\r\n prop=\"nousequantity\"\r\n >\r\n <template slot-scope=\"{ row }\"\r\n ><el-button type=\"text\" @click=\"detailview(row, 1)\"\r\n >{{ row.nousequantity }}\r\n </el-button>\r\n </template>\r\n </el-table-column>\r\n <el-table-column\r\n label=\"作废数量\"\r\n align=\"center\"\r\n width=\"100\"\r\n prop=\"cancelquantity\"\r\n >\r\n <template slot-scope=\"{ row }\"\r\n ><el-button type=\"text\" @click=\"detailview(row, 0)\"\r\n >{{ row.cancelquantity }}\r\n </el-button>\r\n </template>\r\n </el-table-column>\r\n <el-table-column\r\n label=\"已过期数量\"\r\n align=\"center\"\r\n width=\"100\"\r\n prop=\"outquantity\"\r\n >\r\n <template slot-scope=\"{ row }\"\r\n ><el-button type=\"text\" @click=\"detailview(row, 3)\"\r\n >{{ row.outquantity }}\r\n </el-button>\r\n </template>\r\n </el-table-column>\r\n <el-table-column\r\n label=\"创建时间\"\r\n align=\"center\"\r\n width=\"180\"\r\n prop=\"CreateTime\"\r\n >\r\n </el-table-column>\r\n <el-table-column label=\"创建人\" align=\"center\" width=\"100\" prop=\"EmpName\">\r\n </el-table-column>\r\n <el-table-column\r\n label=\"操作\"\r\n align=\"center\"\r\n :min-width=\"120\"\r\n fixed=\"right\"\r\n >\r\n <template slot-scope=\"{ row }\">\r\n <el-tooltip content=\"编辑\" placement=\"top\">\r\n <el-button\r\n circle\r\n type=\"primary\"\r\n size=\"mini\"\r\n icon=\"el-icon-edit\"\r\n v-if=\"authedit\"\r\n @click=\"edit(row)\"\r\n >\r\n </el-button>\r\n </el-tooltip>\r\n <el-tooltip content=\"删除\" placement=\"top\">\r\n <el-button\r\n circle\r\n v-if=\"authdelete\"\r\n icon=\"el-icon-delete\"\r\n size=\"mini\"\r\n type=\"danger\"\r\n @click=\"deleted(row)\"\r\n >\r\n </el-button>\r\n </el-tooltip>\r\n </template>\r\n </el-table-column>\r\n </el-table>\r\n <pagination\r\n v-show=\"total > 0\"\r\n :total=\"total\"\r\n :page.sync=\"listQuery.pageIndex\"\r\n :limit.sync=\"listQuery.pageSize\"\r\n @pagination=\"getList\"\r\n />\r\n <addcoupon\r\n v-if=\"dialogshow\"\r\n :dialogshow=\"dialogshow\"\r\n :isedit=\"isedit\"\r\n :editform=\"editform\"\r\n @savecomplete=\"savecomplete\"\r\n @cancelcomplete=\"cancelcomplete\"\r\n ></addcoupon>\r\n <coupondetailview\r\n v-if=\"detaildialogshow\"\r\n :dialogshow=\"detaildialogshow\"\r\n :detailviewId=\"detailviewId\"\r\n @cancelcomplete=\"cancelcouponcomplete\"\r\n @savecomplete=\"savecouponcomplete\"\r\n :querytype=\"querytype\"\r\n >\r\n </coupondetailview>\r\n </div>\r\n</template>\r\n <script>\r\nimport { query, deleted } from \"@/api/coupon\";\r\nimport waves from \"@/directive/waves\"; // waves directive\r\nimport { getButtonList } from \"../../promissionRouter\";\r\nimport Pagination from \"@/components/Pagination\"; // secondary package based on el-pagination\r\nimport Toolbar from \"../../components/Toolbar\";\r\nimport addcoupon from \"./components/addcoupon.vue\";\r\nimport coupondetailview from \"./components/coupondetailview.vue\";\r\nexport default {\r\n components: { Pagination, Toolbar, addcoupon, coupondetailview },\r\n directives: { waves },\r\n data() {\r\n return {\r\n dialogshow: false,\r\n isedit: false,\r\n buttonList: [],\r\n isedit: false,\r\n authedit: false,\r\n authdelete: false,\r\n editform: {},\r\n downloadLoading: false,\r\n list: null,\r\n pageIndex: 1,\r\n detailviewId: \"\",\r\n querytype: -1,\r\n detaildialogshow: false,\r\n total: 0,\r\n columns: [\r\n {\r\n label: \"序号\",\r\n value: \"index\",\r\n align: \"center\",\r\n type: \"index\",\r\n width: 100,\r\n },\r\n { label: \"劵名称\", value: \"CouponName\", align: \"center\", width: 120 },\r\n {\r\n label: \"劵类型\",\r\n value: \"CouponTypeName\",\r\n align: \"center\",\r\n type: \"\",\r\n width: 100\r\n },\r\n {\r\n label: \"劵面额/折扣\",\r\n value: \"FaceAmount\",\r\n align: \"center\",\r\n type: \"\",\r\n width: 100\r\n },\r\n ],\r\n listQuery: {\r\n pageIndex: 1,\r\n pageSize: 15,\r\n orderColumn: \"\",\r\n orderbyasc: false,\r\n querymodel: {\r\n keyword: \"\",\r\n },\r\n },\r\n };\r\n },\r\n created() {\r\n this.getList();\r\n },\r\n methods: {\r\n callFunction(item) {\r\n this[item.BtnCode].apply(this, item);\r\n },\r\n create() {\r\n this.isedit = false;\r\n this.dialogshow = true;\r\n },\r\n edit(row) {\r\n this.editform = row;\r\n this.isedit = true;\r\n this.dialogshow = true;\r\n },\r\n savecomplete(item) {\r\n this.dialogshow = false;\r\n this.getList();\r\n },\r\n cancelcomplete() {\r\n this.dialogshow = false;\r\n },\r\n savecouponcomplete(item) {\r\n this.detaildialogshow = false;\r\n this.getList();\r\n },\r\n cancelcouponcomplete() {\r\n this.detaildialogshow = false;\r\n },\r\n detailview(row, type) {\r\n this.querytype = type;\r\n this.detaildialogshow = true;\r\n this.detailviewId = row.Id;\r\n },\r\n deleted(row) {\r\n this.$confirm(\"确定删除吗?\", \"提示\", {\r\n type: \"warning\",\r\n }).then(() => {\r\n deleted({ id: row.Id }).then((res) => {\r\n this.$message({\r\n message: \"删除成功!\",\r\n type: \"success\",\r\n });\r\n this.getList();\r\n });\r\n });\r\n },\r\n getList(item) {\r\n if (item != null && item != undefined) {\r\n this.listQuery.pageIndex = item.page;\r\n this.listQuery.pageSize = item.limit;\r\n } else {\r\n this.listQuery.pageIndex = 1;\r\n }\r\n query(this.listQuery).then((res) => {\r\n this.list = res.data;\r\n this.total = res.dataCount;\r\n });\r\n },\r\n },\r\n mounted() {\r\n let routers = window.localStorage.router\r\n ? JSON.parse(window.localStorage.router)\r\n : [];\r\n this.buttonList = getButtonList(this.$route.path, routers);\r\n this.buttonList.forEach((item) => {\r\n if (item.BtnCode === \"delete\") {\r\n this.authdelete = true;\r\n }\r\n if (item.BtnCode === \"edit\") {\r\n this.authedit = true;\r\n }\r\n });\r\n },\r\n};\r\n</script>\r\n ","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./couponlist.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./couponlist.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./couponlist.vue?vue&type=template&id=0a2af0b4&\"\nimport script from \"./couponlist.vue?vue&type=script&lang=js&\"\nexport * from \"./couponlist.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}