{"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\\ManagementBid\\evaluationBid\\component\\procurementBid.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\src\\views\\Normal\\ManagementBid\\evaluationBid\\component\\procurementBid.vue","mtime":1720557639678},{"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.array.sort\";\nimport \"core-js/modules/es6.number.constructor\";\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\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//\nimport procurementUnits from \"./procurementUnits.vue\";\nimport { getMergeCells } from '@/utils/mergingTable.js';\nimport Breadcrumb from '@/components/Breadcrumb/index.vue';\nimport basicData from '@/api/basicData';\nimport pagination from '@/components/pagination';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport routerManagement from '@/api/BasicDataManagement/routerManagement.js';\nexport default {\n name: 'evaluationManagement',\n components: {\n pagination: pagination,\n Breadcrumb: Breadcrumb,\n procurementUnits: procurementUnits\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n breadcrumbOpt: [{\n breadcrumbName: '物资采购'\n }, {\n breadcrumbName: '综合评标法'\n }],\n loading: false,\n tableLoading: false,\n activeName: 'first',\n handleSaveActive: '',\n dataList: [],\n loadingBtn: false,\n saving: false,\n tableData: [],\n bidFileList: [],\n //投标文件\n TenderList: [],\n //招标文件\n SupplementList: [],\n //补遗文件\n objData: {},\n form: {},\n objScore: {},\n mannerList: [{\n label: '综合评标法',\n value: 1\n }, {\n label: '最低评标法',\n value: 0\n }],\n searchForm: {\n manner: 1,\n name: ''\n },\n // 顶部搜索对象\n scoreData: [],\n selectArr: []\n };\n },\n mounted: function mounted() {},\n created: function created() {\n this.params = this.$route.params;\n console.log(this.params, 'params');\n this.loadData();\n },\n methods: {\n // 切换tab栏选项\n handleClick: function handleClick() {\n var _this = this;\n\n if (this.activeName == 'first') {// this.getScoreData()\n }\n\n if (this.activeName == 'second') {\n this.bidFileList = [];\n var parmas = {\n pageBean: {\n pageSize: -1,\n page: -1\n },\n querys: []\n };\n parmas.querys.push({\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'projectApprovalId',\n relation: 'AND',\n value: this.$route.params.ids\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'projectApprovalType',\n relation: 'AND',\n value: 1\n });\n this.bidFileList = [];\n this.$http.post('${portal}/bidDocuments/v1/page', parmas).then(function (res) {\n var data = res.data.value.rows;\n data.forEach(function (item) {\n if (item.accessoryList && item.accessoryList.length != 0) {\n item.accessoryList.forEach(function (val) {\n if (item.id == val.sourceId) {\n _this.bidFileList.push(val);\n }\n });\n }\n });\n });\n }\n\n if (this.activeName == 'question') {}\n\n if (this.activeName == 'addendum') {\n this.SupplementList = [];\n var _parmas = {\n pageBean: {\n pageSize: -1,\n page: -1\n },\n querys: []\n };\n\n _parmas.querys.push({\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'projectApprovalId',\n relation: 'AND',\n value: this.$route.params.id\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'projectApprovalType',\n relation: 'AND',\n value: 1\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'type',\n relation: 'AND',\n value: 2\n });\n\n this.$http.post('${portal}/tenderDocument/v1/pageAccessory', _parmas).then(function (res) {\n var data = res.data.value.rows;\n data.forEach(function (item) {\n if (item.accessoryList && item.accessoryList.length != 0) {\n item.accessoryList.forEach(function (val) {\n if (item.id == val.sourceId) {\n val.describe = item.describe;\n\n _this.SupplementList.push(val);\n }\n });\n }\n });\n });\n }\n\n if (this.activeName == 'five') {\n this.TenderList = [];\n var _parmas2 = {\n pageBean: {\n pageSize: -1,\n page: -1\n },\n querys: []\n };\n\n _parmas2.querys.push({\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'projectApprovalId',\n relation: 'AND',\n value: this.$route.params.ids\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'projectApprovalType',\n relation: 'AND',\n value: 1\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'type',\n relation: 'AND',\n value: 1\n });\n\n this.$http.post('${portal}/tenderDocument/v1/pageAccessory', _parmas2).then(function (res) {\n var data = res.data.value.rows;\n data.forEach(function (item) {\n if (item.accessoryList && item.accessoryList.length != 0) {\n item.accessoryList.forEach(function (val) {\n if (item.id == val.sourceId) {\n _this.TenderList.push(val);\n }\n });\n }\n });\n });\n }\n },\n // 暂存评标\n saveEva: function saveEva() {\n var _this2 = this;\n\n this.loadingBtn = true;\n\n if (this.searchForm.name == '') {\n this.$message.warning('请选择投标单位!');\n return;\n }\n\n var form = _objectSpread(_objectSpread({}, this.objScore), this.form);\n\n form.evaluationDetailList = [];\n form.noticeTitle = this.params.noticeTitle;\n form.projectNumber = this.params.projectNumber;\n form.quotationOrgId = form.quotationCompanyId;\n form.quotationOrgCode = form.quotationCompanyCode;\n form.quotationOrgName = form.quotationCompanyName;\n form.quotationAmount = this.form.totalPrice;\n form.evaluationMethods = 2;\n form.evaluationMode = 2;\n form.noticeDetaiedId = this.objData.noticeDetaiedId;\n delete form.descriptionList;\n var sum = 0;\n this.scoreData.forEach(function (item) {\n if (item.bidEvaId == undefined) {\n delete form.id;\n }\n\n item.evaluationId = item.evaluationItemId;\n item.children.forEach(function (val) {\n if (item.id == val.evaluationItemPid) {\n val.evaluationSystemDetailId = val.id;\n val.evaluationSystemId = item.id;\n }\n\n if (val.id) {\n delete val.id;\n }\n\n sum += val.score;\n form.evaluationDetailList.push(val);\n });\n });\n form.score = sum;\n console.log(form);\n this.$http.post('${portal}/bidEvaluationRecord/v1/bidEvaComprehensive', form).then(function (res) {\n if (res.data.state) {\n _this2.$message.success(res.data.message);\n }\n\n _this2.loadData();\n\n _this2.loadingBtn = false;\n });\n },\n //提交评标\n handleSave: function handleSave() {\n var _this3 = this;\n\n var form = {};\n form.noticeId = this.params.ids;\n form.noticeType = 1;\n console.log(form);\n this.saving = true;\n this.$http.post('${portal}/bidEvaluationRecord/v1/submitBidEvaluationOrg', form).then(function (res) {\n console.log(res, 'ressss');\n\n if (res.data.state) {\n _this3.$message.success(res.data.message);\n }\n\n _this3.loadData();\n\n _this3.saving = false;\n });\n },\n handleInput: function handleInput(val) {\n this.scoreData.forEach(function (item) {\n item.score = 0;\n item.children.forEach(function (e) {\n item.score += e.score;\n });\n });\n },\n //查看文件\n downloadFile: function downloadFile(name, url) {\n console.log(name, 'name');\n var link = document.createElement('a');\n link.style.display = 'none';\n link.target = '_blank'; // 设置下载地址\n\n link.setAttribute('href', url); // 设置文件名\n\n link.setAttribute('download', name);\n link.download = name;\n document.body.appendChild(link);\n link.click();\n document.body.removeChild(link);\n },\n //获取数据\n loadData: function loadData() {\n var _this4 = this;\n\n var params = {\n pageBean: {\n page: -1,\n pageSize: -1\n },\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'noticeId',\n relation: 'AND',\n value: this.params.ids\n }]\n };\n this.tableLoading = true;\n this.$http.post('${portal}/bizBiddingQuotation/v1/evaOrgQuoData', params).then(function (res) {\n _this4.tableLoading = false;\n\n if (res.data.state) {\n _this4.tableData = res.data.value.rows;\n }\n\n console.log('返回的表格数据', _this4.tableData);\n });\n },\n // 关闭//面包屑点击\n handleClose: function handleClose() {\n this.$router.push({\n name: 'evaluationBid',\n params: {\n tabsActiveName: 'procurementMaterial',\n pageBean: this.$route.query.pageBean\n }\n });\n },\n getSummaries: function getSummaries(param) {\n var columns = param.columns,\n data = param.data;\n var sums = [];\n columns.forEach(function (column, index) {\n if (index === 0) {\n sums[index] = '总价';\n return;\n }\n\n var values = data.map(function (item) {\n return Number(item[column.property]);\n });\n\n if (!values.every(function (value) {\n return isNaN(value);\n })) {\n sums[index] = values.reduce(function (prev, curr) {\n var value = Number(curr);\n\n if (!isNaN(value)) {\n return prev + curr;\n } else {\n return prev;\n }\n }, 0);\n sums[index] += '';\n } else {\n sums[index] = '';\n }\n });\n return sums;\n },\n //详情\n detailBtn: function detailBtn(row) {\n var form = row;\n form.quotationRounds = this.params.quotationRoundsNum;\n this.$refs.troubleshooting.add(form);\n },\n // 表格行点击\n handleBtn: function handleBtn(rows) {\n console.log(rows, 22222222);\n this.form = rows;\n this.objData = rows;\n this.getScoreData();\n this.searchForm.name = rows.quotationCompanyName;\n this.selectArr = [];\n this.$refs.multiple.clearSelection();\n this.selectArr.push(rows);\n this.$refs.multiple.toggleRowSelection(rows);\n },\n selectAll: function selectAll(selection, row) {\n this.$refs.multiple.clearSelection();\n this.selectAll = [];\n },\n handleSelectionChange: function handleSelectionChange(val) {\n this.selectArr = val;\n },\n getScoreData: function getScoreData() {\n var _this5 = this;\n\n this.loading = true;\n this.selectTree();\n var params = {\n noticeId: this.form.noticeId,\n orgId: this.form.quotationCompanyId,\n noticeType: 1\n };\n this.scoreData = [];\n this.$http.post('${portal}/bizEvaluationSystemDescription/v1/getEvaScore', params).then(function (res) {\n _this5.loading = false;\n\n if (res.data.state) {\n _this5.objScore = res.data.value;\n var data = res.data.value.descriptionList || [];\n\n _this5.treeData.forEach(function (val) {\n val.score = 0;\n data.forEach(function (i) {\n if (i.evaluationItemPid == val.id) {\n val.evaluationItemPname = i.evaluationItemPname;\n val.evaluationItemName = i.scoringContent;\n val.evaluationItemPid = val.evaluationItemPid;\n val.evaluationScore += i.evaluationScore;\n val.children.push(i);\n }\n });\n val.children.forEach(function (e) {\n if (e.score == undefined) {\n _this5.$set(e, 'score', 0);\n }\n });\n });\n\n _this5.scoreData = _this5.treeData || [];\n\n _this5.scoreData.sort(function (a, b) {\n if (a['evaluationItemPid'] != b['evaluationItemPid']) {\n return a['evaluationItemPid'].localeCompare(b['evaluationItemPid']);\n }\n\n a.children.forEach(function (val) {\n a.score += val.score;\n });\n b.children.forEach(function (val) {\n b.score += val.score;\n });\n });\n }\n });\n },\n //查询评分分类树结构\n selectTree: function selectTree() {\n var _this6 = this;\n\n this.treeData = [];\n basicData.bizEvaluationItemSelectTree().then(function (res) {\n _this6.treeData = res.value[0].children;\n\n _this6.treeData.forEach(function (item) {\n _this6.$set(item, 'evaluationScore', 0); // this.$set(item, 'score', 0)\n\n });\n });\n }\n },\n computed: {\n SearchPanel: function SearchPanel() {\n return {\n '--searchPanel': this.searchPanel + 'px'\n };\n },\n // 获取所有单元格合并数据\n spanArr: function spanArr() {\n if (!this.scoreColumn.length) return [];\n var mergeCols = ['School', 'Grade', 'Class']; // 需要合并的列(字段)\n\n return getMergeCells(this.scoreData, this.scoreColumn, mergeCols);\n }\n }\n};",null]}