{"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\\onboardingSupplier\\index.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\src\\views\\Normal\\SupplierManagement\\onboardingSupplier\\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 \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\nimport _defineProperty from \"D:/jenkins/workspace/jd_cgpt_fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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';\nimport { mapState } from 'vuex';\nimport qualificationDialog from '@/components/dialog/qualificationDialog.vue';\nexport default {\n name: 'DemandEntry',\n components: {\n pagination: pagination,\n qualificationDialog: qualificationDialog\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 index: '',\n loadingBtn: false,\n rejectDialog: false,\n fullscreenLoading: false,\n multipleSelection: [],\n qualificationList: [],\n dialogVisible: false,\n rejectionReason: '',\n form: {},\n authList: [],\n parameter: {\n qualificationLabelList: []\n },\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 },\n // 顶部搜索对象\n deleteIds: '',\n // 是否选中列表解锁删除按钮\n activeCollapse1: ['1', '2'],\n fileList: [],\n // 文件上传\n edit: false,\n // 是否是修改功能\n currentDataDel: [],\n // 删除时排查是否有在审核的数据\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/queryBySupplier', 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 handleSuccess: function handleSuccess(res, row, index) {\n row.accessoryList.push(res.value);\n\n var data = _objectSpread(_objectSpread({}, row), res.value);\n\n this.parameter.qualificationLabelList.forEach(function (item) {\n item.dataList.forEach(function (val) {\n if (val.key == data.key) {\n val['name'] = data.name;\n val['createTime'] = data.createTime;\n return val;\n }\n });\n });\n this.$forceUpdate();\n },\n openQualification: function openQualification(row) {\n this.$refs.qualification.add(row);\n },\n getLoad: function getLoad(data) {\n var _this3 = this;\n\n console.log(this.parameter.qualificationLabelList);\n data.forEach(function (val) {\n val.accessoryList = [];\n\n _this3.parameter.qualificationLabelList.forEach(function (item) {\n if (item.dataList.length && val.qualificationTypeCode == item.qualificationCategoryCode) {\n item.dataList = data;\n }\n\n _this3.$forceUpdate();\n });\n });\n this.$forceUpdate();\n },\n // 删除\n deleteHandle: function deleteHandle(row, index) {\n this.$confirm('是否确认删除该附件', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(function () {\n row.accessoryList.splice(index, 1);\n row.name = '';\n row.fileTime = '';\n row.url = '';\n row.accessoryList = [];\n });\n },\n addTable: function addTable(item) {\n item.dataList.push({\n qualificationTypeName: item.qualificationCategoryName,\n qualificationTypeCode: item.qualificationCategoryCode,\n qualificationAcquisitionDate: '',\n expiryDate: '',\n accessoryList: [],\n key: Math.random() + '',\n qualificationForm: 1\n });\n },\n // 审核\n handleAudit: function handleAudit() {\n var _this4 = this;\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 _this4.$message.success(res.data.message);\n }\n\n _this4.handleSearch();\n\n _this4.auditing = false;\n });\n },\n submitImport: function submitImport() {\n var _this5 = this;\n\n this.loadingBtn = true;\n var arr = [];\n this.parameter.qualificationLabelList.forEach(function (item) {\n item.dataList.forEach(function (val) {\n if (val.key) {\n delete val.key;\n }\n\n val.qualificationMemberId = _this5.form.qualificationMemberId;\n val.qualificationMember = _this5.form.qualificationMember;\n arr.push(val);\n });\n });\n this.form.qualificationLabelList = arr;\n this.$http.post('${portal}/supplier/bizSupplierEnterprise/v1/uploadAccessory', this.form).then(function (res) {\n console.log(res, 11111111);\n\n if (res.data.state) {\n _this5.loadData();\n\n _this5.dialogVisible = false;\n }\n\n _this5.loadingBtn = false;\n });\n },\n handleOpen: function handleOpen(row) {\n var _this6 = this;\n\n this.form = row;\n this.form.qualificationMember = row.supplierName;\n this.form.qualificationMemberId = row.supplierId;\n this.parameter.qualificationLabelList = row.suppliersQualificationList;\n this.parameter.qualificationLabelList.forEach(function (item) {\n _this6.$set(item, 'dataList', []);\n\n item.qualificationTypeName = item.qualificationCategoryName;\n });\n this.dialogVisible = true;\n },\n handleSelectionChange: function handleSelectionChange(val) {\n this.multipleSelection = val;\n\n if (this.multipleSelection.length > 1) {\n this.$refs.multipleSelection.toggleRowSelection(this.multipleSelection[0], false);\n }\n },\n //列表删除行\n delTable: function delTable(row, index) {\n this.parameter.qualificationLabelList.forEach(function (item, i) {\n if (index == i) {\n item.dataList.splice(index, 1);\n }\n });\n this.$forceUpdate();\n },\n cancelConfirm: function cancelConfirm() {\n this.fileList = [];\n this.dialogVisible = false;\n },\n //添加\n handleAdd: function handleAdd() {\n this.$router.push({\n path: '/onboardingAddDialog'\n });\n },\n // 驳回\n handleReject: function handleReject(row) {\n this.form = row;\n this.rejectDialog = true;\n },\n // 编辑\n handleEdit: function handleEdit(rows) {\n this.$refs.form.clearValidate();\n this.$router.push({\n path: \"/onboardingAddDialog/\".concat(rows.id),\n query: {\n pageBean: this.params\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 save: function save() {\n var _this7 = this;\n\n this.parameter.qualificationLabelList.forEach(function (item, index) {\n if (index == _this7.index) {\n _this7.multipleSelection.forEach(function (val) {\n item.qualificationTypeName = val.name;\n item.qualificationTypeCode = val.code;\n });\n }\n });\n this.visible = false;\n },\n // 删除\n handleDelete: function handleDelete() {\n var _this8 = 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 _this8.tableLoading = true;\n supplierManger.delManage(ids).then(function (res) {\n _this8.tableLoading = false;\n\n if (res.data.state) {\n _this8.$message.success('删除成功!');\n\n _this8.handleSearch();\n } else {\n _this8.$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 selectChange: function selectChange(val) {\n this.multipleSelection = val;\n\n if (this.multipleSelection.length > 1) {\n this.$refs.multipleSelection.toggleRowSelection(this.multipleSelection[0], false);\n }\n },\n dialogBeforeClose: function dialogBeforeClose() {\n this.visible = false;\n this.dialogVisible = false;\n this.rejectDialog = false;\n }\n },\n computed: _objectSpread({\n SearchPanel: function SearchPanel() {\n return {\n '--searchPanel': this.searchPanel + 'px'\n };\n }\n }, mapState({\n headers: function headers(state) {\n return {\n Authorization: \"Bearer \".concat(state.login.currentUser.token)\n };\n },\n action: function action() {\n return window.context.portal + '/biz/universal/v1/minioUpload';\n }\n }))\n};",null]}