{"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/systemSetting/systemExport/index.vue?vue&type=script&lang=js","dependencies":[{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/src/views/systemSetting/systemExport/index.vue","mtime":1701742078558},{"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// | 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// +----------------------------------------------------------------------\nimport { getToken } from '@/utils/auth';\nexport default {\n  name: 'FileList',\n  data() {\n    return {\n      fileVisible: false,\n      loading: false,\n      tableData: {\n        data: [],\n        total: 0,\n      },\n      tableFrom: {\n        page: 1,\n        limit: 10,\n        type: '',\n      },\n      fileTypeList: [\n        { name: '订单', value: 'order' },\n        { name: '流水记录', value: 'financial' },\n        { name: '发货单', value: 'delivery' },\n        { name: '导入记录', value: 'importDelivery' },\n        { name: '账单信息', value: 'exportFinancial' },\n        { name: '退款单', value: 'refundOrder' },\n      ],\n    };\n  },\n  mounted() {\n    this.exportFileList('');\n  },\n  methods: {\n    exportFileList(num) {\n      this.loading = true;\n      this.tableFrom.page = num || this.tableFrom.page;\n      exportFileLstApi(this.tableFrom)\n        .then((res) => {\n          this.tableData.data = res.data.list;\n          this.tableData.total = res.data.count;\n          this.loading = false;\n        })\n        .catch((res) => {\n          this.$message.error(res.message);\n          this.listLoading = false;\n        });\n    },\n    // 下载\n    downLoad(path) {\n      window.open(path);\n    },\n    pageChange(page) {\n      this.tableFrom.page = page;\n      this.exportFileList('');\n    },\n    pageChangeLog(page) {\n      this.tableFromLog.page = page;\n      this.exportFileList('');\n    },\n    handleSizeChange(val) {\n      this.tableFrom.limit = val;\n      this.exportFileList('');\n    },\n  },\n};\n",null]}