{"remainingRequest":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\jd_cgpt_fvue\\src\\views\\Normal\\SupplierManagement\\enterpriseInvitation\\index.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\src\\views\\Normal\\SupplierManagement\\enterpriseInvitation\\index.vue","mtime":1720730442290},{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/es6.object.keys\";\nimport _defineProperty from \"D:/jenkins/workspace/jd_cgpt_fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\nimport \"core-js/modules/web.dom.iterable\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\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//\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//\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//\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//\nimport supplierManger from '@/api/supplierManger.js';\nimport pagination from '@/components/pagination';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport routerManagement from '@/api/BasicDataManagement/routerManagement.js';\nimport req from '@/request.js';\nimport utils from '@/utils.js';\nexport default {\n name: 'DemandEntry',\n components: {\n pagination: pagination\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n currentPage: 1,\n tableMaxHeight: 400,\n loading: false,\n tableLoading: false,\n visible: false,\n tableData: [],\n loadingBtn: false,\n rejectDialog: false,\n multipleSelection: [],\n rejectionReason: '',\n form: {},\n authList: [],\n params: {\n pageBean: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n sorter: [{\n direction: 'DESC',\n property: 'createTime'\n }]\n },\n queryParam: {\n pageBean: {\n page: 1,\n pageSize: 20,\n total: 0\n }\n },\n searchForm: {\n type: 1,\n reviewStatus: 1\n },\n // 顶部搜索对象\n deleteIds: '',\n // 是否选中列表解锁删除按钮\n activeCollapse1: ['1', '2'],\n fileList: [],\n // 文件上传\n edit: false,\n // 是否是修改功能\n currentDataDel: [],\n // 删除时排查是否有在审核的数据\n dialogVisible: false,\n auditing: false\n };\n },\n created: function created() {\n if (this.$route.params.pageBean) {\n this.params = this.$route.params.pageBean;\n this.pageResult = this.$route.params.pageBean.pageBean;\n }\n\n this.handleSearch();\n },\n methods: {\n getDictName: function getDictName(code, value) {\n return utils.getDictName(code, value);\n },\n //获取数据\n loadData: function loadData(params) {\n var _this = this;\n\n this.tableLoading = true;\n this.$http.post('${portal}/supplier/bizSupplierEnterprise/v1/queryByEnterprise', params).then(function (res) {\n _this.tableLoading = false;\n var data = res && res.data || {};\n _this.tableData = data.rows || [];\n _this.pageResult = {\n page: data.page,\n pageSize: data.pageSize,\n total: data.total\n };\n });\n },\n // 驳回\n saveReject: function saveReject() {\n var _this2 = this;\n\n this.loadingBtn = true;\n this.$http.post('${portal}/supplier/bizSupplierEnterprise/v1/updateReviewStatus?id=' + this.form.id + '&status=3&rejectionReason=' + this.rejectionReason).then(function (res) {\n if (res.data.state) {\n _this2.$message.success(res.data.message);\n }\n\n _this2.handleSearch();\n\n _this2.dialogBeforeClose();\n\n _this2.loadingBtn = false;\n });\n },\n // 审核\n handleAudit: function handleAudit() {\n var _this3 = this;\n\n if (this.this.multipleSelection.length > 1) {\n this.$message.warning('请选择一条数据!');\n return;\n }\n\n this.auditing = true;\n this.$http.post('${portal}/supplier/bizSupplierEnterprise/v1/updateReviewStatus?id=' + this.multipleSelection[0].id + '&status=2&rejectionReason=').then(function (res) {\n if (res.data.state) {\n _this3.$message.success(res.data.message);\n }\n\n _this3.handleSearch();\n\n _this3.auditing = false;\n });\n },\n handleSelectionChange: function handleSelectionChange(val) {\n this.multipleSelection = val; // if (this.multipleSelection.length > 1) {\n // this.$refs.multipleSelection.toggleRowSelection(\n // this.multipleSelection[0],\n // false\n // )\n // }\n },\n //添加\n handleAdd: function handleAdd() {\n this.$router.push({\n name: 'addDialog'\n });\n },\n // 驳回\n handleReject: function handleReject() {\n if (this.multipleSelection.length == 0) {\n this.$message.warning('请选择数据!');\n return;\n }\n\n if (this.multipleSelection.length > 1) {\n this.$message.warning('请选择一条数据!');\n return;\n }\n\n this.form = this.multipleSelection[0];\n this.rejectDialog = true;\n },\n // 查看审核记录\n handleView: function handleView() {\n var _this4 = this;\n\n if (this.multipleSelection.length == 0) {\n this.$message.warning('请选择数据!');\n return;\n }\n\n if (this.multipleSelection.length > 1) {\n this.$message.warning('请选择一条数据!');\n return;\n }\n\n this.loading = true;\n this.$http.get('${portal}/supplier/bizSupplierEnterprise/v1/getById/' + this.multipleSelection[0].id).then(function (res) {\n _this4.loading = false;\n var data = res.data;\n _this4.form = data;\n\n _this4.form.qualificationLabelList.forEach(function (item) {\n if (item.accessoryList && item.accessoryList.length != 0) {\n item.accessoryList.forEach(function (val) {\n if (val.sourceId == item.id) {\n val.qualificationCode = item.qualificationCode;\n val.qualificationName = item.qualificationName;\n val.qualificationAcquisitionDate = item.qualificationAcquisitionDate;\n val.expiryDate = item.expiryDate;\n }\n });\n }\n });\n });\n this.dialogVisible = true;\n },\n handleAuth: function handleAuth(row) {\n var _this5 = this;\n\n var data = {\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'admittedSupplierId',\n relation: 'AND',\n value: row.id\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'type',\n relation: 'AND',\n value: 1\n }],\n pageBean: {\n page: -1,\n pageSize: -1\n },\n sorter: [{\n direction: 'DESC',\n property: 'create_time_'\n }]\n };\n this.$http.post('${portal}/supplierEnterpriseAuditing/v1/page', data).then(function (res) {\n _this5.authList = res.data.value.rows;\n _this5.visible = true;\n });\n },\n // 编辑\n handleEdit: function handleEdit(rows) {\n this.$refs.form.clearValidate();\n this.$router.push({\n name: \"addDialog\",\n query: {\n rows: rows\n }\n });\n },\n // 跳转问题清单\n handleJump: function handleJump(row) {\n var data = {\n row: row,\n form: 'enterprise'\n };\n localStorage.setItem('dataKey', JSON.stringify(data));\n this.$router.push({\n path: \"/supplierIssueList/\".concat(row.supplierId, \"/\").concat(row.enterpriseId),\n query: {\n data: data\n }\n });\n },\n // 详情\n handleDetail: function handleDetail(rows) {\n this.$router.push({\n path: \"/onboardingDetail/\".concat(rows.id)\n });\n },\n //下载按钮回调\n downloadFile: function downloadFile(name, url) {\n var a = document.createElement('a');\n var event = new MouseEvent('click');\n a.download = name;\n a.target = '_blank';\n a.href = url;\n a.dispatchEvent(event);\n },\n // 删除\n handleDelete: function handleDelete() {\n var _this6 = this;\n\n var selection = this.$refs.multipleSelection.selection;\n\n if (selection.length === 0) {\n this.$alert('请选择要删除的数据!', this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n type: 'warning'\n });\n } else {\n var ids = [];\n selection.forEach(function (item) {\n var str = 'ids=' + item.id;\n ids.push(str);\n });\n ids = ids.join('&');\n this.$confirm(this.$t('common.sureDelete'), this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'warning'\n }).then(function () {\n _this6.tableLoading = true;\n supplierManger.delManage(ids).then(function (res) {\n _this6.tableLoading = false;\n\n if (res.data.state) {\n _this6.$message.success('删除成功!');\n\n _this6.handleSearch();\n } else {\n _this6.$message.error('删除失败!');\n }\n });\n });\n }\n },\n //重置\n clearSearchForm: function clearSearchForm() {\n this.searchForm = {\n type: 1,\n reviewStatus: 1\n };\n this.handleSearch();\n },\n // 顶部搜索\n handleSearch: function handleSearch() {\n var obj = this.searchForm;\n var querys = [];\n\n for (var i in obj) {\n if (obj[i]) {\n querys.push({\n group: 'main',\n operation: i == 'reviewStatus' || i == 'supplier_name_' ? 'LIKE' : 'EQUAL',\n parentGroup: '',\n property: i,\n relation: 'AND',\n value: obj[i]\n });\n }\n }\n\n this.params.querys = querys;\n this.loadData(this.params);\n },\n handleCurrentChange: function handleCurrentChange(page) {\n this.params.pageBean = _objectSpread(_objectSpread({}, this.params.pageBean), {}, {\n page: page\n });\n this.loadData(this.params);\n },\n handleSizeChange: function handleSizeChange(pageSize) {\n this.params.pageBean = _objectSpread(_objectSpread({}, this.params.pageBean), {}, {\n pageSize: pageSize\n });\n this.loadData(this.params);\n },\n dialogBeforeClose: function dialogBeforeClose() {\n this.dialogVisible = false;\n this.visible = false;\n this.rejectDialog = false;\n }\n },\n computed: {\n SearchPanel: function SearchPanel() {\n return {\n '--searchPanel': this.searchPanel + 'px'\n };\n }\n }\n};",null]}