{"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\\BasicDataManagement\\enterpriseLibrary\\index.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\src\\views\\Normal\\BasicDataManagement\\enterpriseLibrary\\index.vue","mtime":1720730442274},{"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/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\n\nvar _methods;\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//\nimport supplierManger from '@/api/supplierManger.js';\nimport { mapState } from 'vuex';\nimport pagination from '@/components/pagination';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport routerManagement from '@/api/BasicDataManagement/routerManagement.js';\nimport req from '@/request.js';\nimport qualificationDialog from '@/components/dialog/qualificationDialog.vue';\nimport utils from '@/utils.js';\nimport { file } from 'jszip';\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 dialogVisible: false,\n auditing: false,\n loading: false,\n tableLoading: false,\n loadingBtn: false,\n visible: false,\n qualificationList: [],\n tableData: [],\n fullscreenLoading: false,\n multipleSelection: [],\n form: {},\n parameter: {\n qualificationLabelList: []\n },\n suppliersQualificationList: [],\n index: null,\n queryParam: {\n pageBean: {\n page: 1,\n pageSize: 20,\n total: 0\n }\n },\n searchForm: {},\n // 顶部搜索对象\n authList: [],\n deleteIds: '',\n // 是否选中列表解锁删除按钮\n fileList: [],\n // 文件上传\n edit: false,\n // 是否是修改功能\n currentDataDel: [] // 删除时排查是否有在审核的数据\n\n };\n },\n created: function created() {\n this.handleSearch();\n },\n methods: (_methods = {\n handleSelectionChange: function handleSelectionChange(val) {\n console.log(val);\n this.multipleSelection = val;\n\n if (this.multipleSelection.length > 1) {\n this.$refs.multipleSelection.toggleRowSelection(this.multipleSelection[0], false);\n }\n },\n getDictName: function getDictName(code, value) {\n return utils.getDictName(code, value);\n },\n // 文件状态改变时的钩子,添加文件、上传成功和上传失败时都会被调用,function(file, fileList)\n handleSuccess: function handleSuccess(res, val) {\n var _this = this;\n\n console.log(res, 'resss', val);\n this.form.suppliersQualificationList.forEach(function (item, index) {\n if (index == _this.index) {\n item.accessoryList.push(res.value);\n item.filename = res.value.name;\n item.filetime = res.value.createTime;\n item.url = res.value.url;\n item.fileList.forEach(function (e, n) {\n item.accessoryList.forEach(function (i, v) {\n if (n == _this.index && _this.index == v) {\n var obj = _objectSpread(_objectSpread({}, e), i);\n\n item.fileList.push(obj);\n }\n });\n });\n }\n });\n this.$forceUpdate();\n console.log(this.form.suppliersQualificationList, '11111111');\n },\n onExceed: function onExceed(file, fileList) {\n this.$message.error('超出最大可上传文件个数');\n },\n handleOpen: function handleOpen(row) {\n console.log(row, 'row11');\n this.getById(row.id);\n this.dialogVisible = true;\n },\n submitImport: function submitImport() {\n var _this2 = this;\n\n this.form.suppliersQualificationList.forEach(function (item) {\n if (item.fileList.length != 0) {\n item.fileList.forEach(function (val) {\n _this2.fileList.push(val);\n });\n }\n });\n this.fileList.forEach(function (item) {\n if (item.id) {\n delete item.id;\n }\n });\n var data = {\n id: this.form.id,\n fileList: this.fileList\n };\n this.loadingBtn = true;\n this.fullscreenLoading = true;\n this.$http.post('${portal}/supplier/bizSupplierEnterprise/v1/uploadAccessory', data).then(function (res) {\n _this2.loadingBtn = false;\n _this2.fullscreenLoading = false;\n\n if (res.data.state) {\n _this2.fileList = [];\n\n _this2.$message.success(res.data.message);\n }\n\n _this2.dialogVisible = false;\n\n _this2.handleSearch();\n });\n },\n openUpload: function openUpload(row, index) {\n this.index = index;\n this.clickUpload(row, index);\n },\n clickUpload: function clickUpload(row, index) {\n if (index == this.index) {\n this.$refs['upload'][index].$refs['upload-inner'].handleClick();\n }\n },\n //获取数据\n loadData: function loadData() {\n var _this3 = this;\n\n this.tableLoading = true;\n this.$http.post('${portal}/enterprise/v1/queryAll', this.queryParam).then(function (res) {\n console.log(res, 333333333);\n _this3.tableLoading = false;\n var data = res && res.data || {};\n _this3.tableData = data.rows || [];\n _this3.queryParam.pageBean = {\n page: data.page,\n pageSize: data.pageSize,\n total: data.total\n };\n });\n },\n openQualification: function openQualification(row) {\n this.$refs.qualification.add(row);\n }\n }, _defineProperty(_methods, \"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 }), _defineProperty(_methods, \"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 }), _defineProperty(_methods, \"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 }), _defineProperty(_methods, \"submitImport\", function submitImport() {\n var _this4 = 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 = _this4.form.qualificationMemberId;\n val.qualificationMember = _this4.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 _this4.loadData();\n\n _this4.dialogVisible = false;\n }\n\n _this4.loadingBtn = false;\n });\n }), _defineProperty(_methods, \"handleOpen\", function handleOpen(row) {\n var _this5 = 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 _this5.$set(item, 'dataList', []);\n\n item.qualificationTypeName = item.qualificationCategoryName;\n });\n this.dialogVisible = true;\n }), _defineProperty(_methods, \"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 }), _defineProperty(_methods, \"save\", function save() {\n var _this6 = this;\n\n this.parameter.qualificationLabelList.forEach(function (item, index) {\n if (index == _this6.index) {\n _this6.multipleSelection.forEach(function (val) {\n item.qualificationTypeName = val.name;\n item.qualificationTypeCode = val.code;\n });\n }\n });\n this.visible = false;\n }), _defineProperty(_methods, \"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 }), _defineProperty(_methods, \"handleAudit\", function handleAudit() {\n var _this7 = this;\n\n if (this.fileList.length == 0) {\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=1&rejectionReason=').then(function (res) {\n if (res.data.state) {\n _this7.$message.success(res.data.message);\n }\n\n _this7.handleSearch();\n\n _this7.auditing = false;\n });\n }), _defineProperty(_methods, \"getById\", function getById(id) {\n var _this8 = this;\n\n this.$http.get('${portal}/supplier/bizSupplierEnterprise/v1/getById/' + id).then(function (res) {\n console.log(res, 'da');\n _this8.form = res.data;\n\n _this8.form.suppliersQualificationList.forEach(function (item) {\n _this8.$set(item, 'fileList', []);\n\n _this8.$set(item, 'accessoryList', []);\n\n item.fileList.push({\n qualificationCategoryName: item.qualificationCategoryName,\n qualificationCategoryId: item.qualificationCategoryId\n });\n });\n\n console.log(_this8.form.suppliersQualificationList);\n\n _this8.$forceUpdate();\n });\n }), _defineProperty(_methods, \"addList\", function addList(row, idnex) {\n row.fileList.push({\n qualificationCategoryName: row.qualificationCategoryName\n });\n }), _defineProperty(_methods, \"getLoad\", function getLoad(data) {\n var _this9 = this;\n\n data.forEach(function (val) {\n val.accessoryList = [];\n\n _this9.parameter.qualificationLabelList.forEach(function (item) {\n if (item.dataList.length && val.qualificationTypeCode == item.qualificationCategoryCode) {\n item.dataList = data;\n }\n\n _this9.$forceUpdate();\n });\n });\n this.$forceUpdate();\n }), _defineProperty(_methods, \"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 }), _defineProperty(_methods, \"handleAdd\", function handleAdd(row) {\n var data = {\n row: row,\n form: 'supplier'\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 }), _defineProperty(_methods, \"handleDetail\", function handleDetail(rows) {\n this.$router.push({\n path: \"/onboardingDetail/\".concat(rows.id),\n query: {\n pageBean: this.params\n }\n });\n }), _defineProperty(_methods, \"cancelConfirm\", function cancelConfirm() {\n this.fileList = [];\n this.dialogVisible = false;\n }), _defineProperty(_methods, \"clearSearchForm\", function clearSearchForm() {\n this.searchForm = {};\n this.handleSearch();\n }), _defineProperty(_methods, \"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 }), _defineProperty(_methods, \"deleteHandle\", function deleteHandle(row, index) {\n var _this10 = this;\n\n this.$confirm('是否确认删除该附件', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(function () {\n _this10.form.suppliersQualificationList.forEach(function (item, index) {\n item.fileList.forEach(function (val, i) {\n if (index == i) {\n item.accessoryList.splice(i, 1);\n row.filename = '';\n row.filetime = '';\n row.url = '';\n }\n });\n });\n });\n }), _defineProperty(_methods, \"delTable\", function delTable(index, item) {\n item.fileList.splice(index, 1);\n }), _defineProperty(_methods, \"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 == 'companyName' || i == 'enterprise_name_' ? 'LIKE' : 'EQUAL',\n parentGroup: '',\n property: i,\n relation: 'AND',\n value: obj[i]\n });\n }\n }\n\n this.queryParam.querys = querys;\n this.loadData(this.queryParam);\n }), _defineProperty(_methods, \"handleCurrentChange\", function handleCurrentChange(page) {\n this.queryParam.pageBean = _objectSpread(_objectSpread({}, this.queryParam.pageBean), {}, {\n page: page\n });\n this.loadData(this.queryParam);\n }), _defineProperty(_methods, \"handleSizeChange\", function handleSizeChange(pageSize) {\n this.queryParam.pageBean = _objectSpread(_objectSpread({}, this.queryParam.pageBean), {}, {\n pageSize: pageSize\n });\n this.loadData(this.queryParam);\n }), _defineProperty(_methods, \"handleAuth\", function handleAuth(row) {\n var _this11 = 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 _this11.authList = res.data.value.rows;\n _this11.visible = true;\n });\n }), _defineProperty(_methods, \"dialogBeforeClose\", function dialogBeforeClose() {\n this.visible = false;\n this.dialogVisible = false;\n }), _methods),\n computed: _objectSpread(_objectSpread({}, 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 SearchPanel: function SearchPanel() {\n return {\n '--searchPanel': this.searchPanel + 'px'\n };\n }\n })\n};",null]}