{"remainingRequest":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/vue-loader/lib/index.js??vue-loader-options!/data/jenkins/workspace/mer.ws.baibaodun.com.cn/src/views/coupon/record/index.vue?vue&type=script&lang=js","dependencies":[{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/src/views/coupon/record/index.vue","mtime":1701742078552},{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/babel-loader/lib/index.js","mtime":456789000000},{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n// +----------------------------------------------------------------------\n// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]\n// +----------------------------------------------------------------------\n// | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.\n// +----------------------------------------------------------------------\n// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权\n// +----------------------------------------------------------------------\n// | Author: CRMEB Team <admin@crmeb.com>\n// +----------------------------------------------------------------------\n\nimport { couponUserListApi } from '@/api/marketing';\nimport { roterPre } from '@/settings';\nimport { userListApi } from '@/api/user';\nimport { checkPermi } from '@/utils/permission'; // 权限判断函数\nexport default {\n  name: 'CouponUser',\n  filters: {\n    failFilter(status) {\n      const statusMap = {\n        receive: '自己领取',\n        send: '后台发送',\n        give: '满赠',\n        new: '新人',\n        buy: '买赠送',\n      };\n      return statusMap[status];\n    },\n    statusFilter(status) {\n      const statusMap = {\n        0: '未使用',\n        1: '已使用',\n        2: '已过期',\n      };\n      return statusMap[status];\n    },\n  },\n  data() {\n    return {\n      Loading: false,\n      roterPre: roterPre,\n      imgList: [],\n      tableFromIssue: {\n        page: 1,\n        limit: 20,\n        uid: '',\n        name: '',\n        status: '',\n      },\n      issueData: {\n        data: [],\n        total: 0,\n      },\n      loading: false,\n      options: [],\n    };\n  },\n  mounted() {\n    if (checkPermi(['merchant:coupon:user:page:list'])) this.getIssueList();\n  },\n  methods: {\n    checkPermi,\n    seachList() {\n      this.tableFromIssue.page = 1;\n      this.getIssueList();\n    },\n    // 列表\n    getIssueList() {\n      this.Loading = true;\n      couponUserListApi(this.tableFromIssue)\n        .then((res) => {\n          this.issueData.data = res.list;\n          this.issueData.total = res.total;\n          // this.issueData.data.map((item) => {\n          //   this.imgList.push(item.user.avatar)\n          // })\n          this.Loading = false;\n        })\n        .catch((res) => {\n          this.Loading = false;\n          this.$message.error(res.message);\n        });\n    },\n    pageChangeIssue(page) {\n      this.tableFromIssue.page = page;\n      this.getIssueList();\n    },\n    handleSizeChangeIssue(val) {\n      this.tableFromIssue.limit = val;\n      this.getIssueList();\n    },\n  },\n};\n",null]}