{"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\\procurementDetails.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\src\\views\\Normal\\ManagementBid\\evaluationBid\\component\\procurementDetails.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 _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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 pagination from '@/components/pagination';\nimport basicData from '@/api/basicData';\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 isRadioMode: false,\n handleSaveActive: '',\n loadingBtn: false,\n dataList: [],\n selectArr: [],\n saving: false,\n tableData: [],\n parmas: {},\n bidFileList: [],\n //投标文件\n TenderList: [],\n //招标文件\n SupplementList: [],\n //补遗文件\n objData: {},\n form: {},\n venderList: [],\n //供应商列表\n quotationCompanyList: [],\n objScore: {},\n mannerList: [{\n label: '综合评标法',\n value: 1\n }, {\n label: '最低评标法',\n value: 0\n }],\n searchForm: {\n manner: 1,\n venderName: '',\n score: ''\n },\n // 顶部搜索对象\n scoreData: []\n };\n },\n watch: {// scoreData: {\n // handler(newVal, oldVal) {\n // console.log(newVal)\n // let sum = 0\n // let amount = 0\n // newVal.forEach((item) => {\n // item.children.forEach((val) => {\n // if (val.score) {\n // sum += Number(val.score)\n // this.searchForm.score = sum\n // }\n // if (val.evaluationItemPid == item.id&&val.score) {\n // amount += val.score\n // // item.score = amount\n // }\n // })\n // })\n // },\n // deep: true,\n // },\n },\n mounted: function mounted() {},\n created: function created() {\n this.params = this.$route.query.data;\n this.selectTree();\n this.loadData();\n },\n methods: {\n // 切换tab栏选项\n handleClick: function handleClick() {\n var _this = this;\n\n if (this.activeName == 'first') {}\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.params.id\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.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.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: 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 selectTree: function selectTree() {\n var _this2 = this;\n\n basicData.bizEvaluationItemSelectTree().then(function (res) {\n _this2.treeData = res.value[0].children;\n\n _this2.treeData.forEach(function (item) {\n _this2.$set(item, 'evaluationScore', 0); // this.$set(item, 'score', 0)\n\n });\n });\n },\n getVender: function getVender(id) {\n var _this3 = this;\n\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: 'quo.NOTICE_DETAILED_ID_',\n relation: 'AND',\n value: id\n });\n this.$http.post('${portal}/bizBiddingQuotation/v1/pageMatDetail', parmas).then(function (res) {\n if (res.data.state) {\n _this3.quotationCompanyList = [];\n res.data.value.rows.forEach(function (item) {\n _this3.quotationCompanyList.push(item);\n });\n }\n });\n },\n getCompany: function getCompany(row) {\n var _this4 = this;\n\n this.venderList = [];\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: 'noticeId',\n relation: 'AND',\n value: this.params.id\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'noticeDetailedId',\n relation: 'AND',\n value: row.id\n });\n this.$http.post('${portal}/bizBiddingQuotation/v1/pageQuoOrg', parmas).then(function (res) {\n if (res.data.state) {\n _this4.venderList = res.data.value.rows;\n }\n });\n },\n selectVender: function selectVender(val) {\n this.objData = val;\n this.searchForm.score = this.objData.totalScore;\n this.getScoreData();\n },\n //保存\n handleSave: function handleSave() {\n var _this5 = this;\n\n if (this.searchForm.venderName == '') {\n this.$message.warning('请选择投标单位!');\n return;\n }\n\n var form = _objectSpread(_objectSpread(_objectSpread({}, this.objScore), this.form), this.objData);\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.quotationPrice = this.objData.quotationPrice;\n form.quotationId = this.form.id;\n form.quotationAmount = this.objData.quotationPrice * this.form.matNum;\n form.evaluationMethods = 2;\n form.evaluationMode = 1;\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 form.evaluationDetailList.push(val);\n });\n });\n form.score = this.searchForm.score;\n console.log(form);\n this.saving = true;\n this.$http.post('${portal}/bidEvaluationRecord/v1/bidEvaComprehensiveMat', form).then(function (res) {\n if (res.data.state) {\n _this5.$message.success(res.data.message);\n }\n\n _this5.loadData();\n\n _this5.objData = {};\n _this5.searchForm = {\n venderName: '',\n score: ''\n };\n _this5.saving = false;\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 _this6 = this;\n\n this.tableLoading = true;\n var params = {\n querys: [],\n pageBean: {\n pageSize: -1,\n page: -1\n }\n };\n this.$http.post('${portal}/matApprovalDetails/v1/pageEvaDetail', params).then(function (res) {\n _this6.tableLoading = false;\n var data = res && res.data || {};\n _this6.tableData = data.value.rows || [];\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 //详情\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, '点击行数据');\n this.objData = {};\n this.form = rows;\n this.searchForm.venderName = '';\n this.searchForm.score = '';\n this.getVender(rows.id);\n this.getCompany(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 _this7 = this;\n\n var params = {\n noticeId: this.form.noticeId,\n orgId: this.objData.quotationCompanyId,\n noticeDetailId: this.objData.noticeDetailedId,\n noticeType: 1\n };\n console.log(params, 'paramsparamsparams');\n this.loading = true;\n this.$http.post('${portal}/bizEvaluationSystemDescription/v1/getEvaScore', params).then(function (res) {\n _this7.loading = false;\n var sum = 0;\n\n _this7.selectTree();\n\n _this7.scoreData = [];\n\n if (res.data.state) {\n _this7.objScore = res.data.value;\n var data = res.data.value.descriptionList || [];\n\n _this7.treeData.forEach(function (val) {\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 _this7.$set(e, 'score', 0);\n }\n });\n });\n\n _this7.scoreData = _this7.treeData || [];\n\n _this7.scoreData.sort(function (a, b) {\n if (a['evaluationItemPid'] != b['evaluationItemPid']) {\n return a['evaluationItemPid'].localeCompare(b['evaluationItemPid']);\n }\n });\n\n _this7.$forceUpdate();\n }\n });\n },\n handleInput: function handleInput(row) {\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 getRowKeys: function getRowKeys(row) {\n return row.id;\n },\n saveAll: function saveAll() {\n var _this8 = this;\n\n this.loadingBtn = true;\n var form = {\n noticeId: this.params.id,\n noticeType: 1,\n noticeDetailedId: this.form.id\n };\n this.$http.post('${portal}/bidEvaluationRecord/v1/submitBidEvaluation', form).then(function (res) {\n if (res.data.state) {\n _this8.loadData();\n\n _this8.$message.success(res.data.message);\n }\n\n _this8.loadingBtn = false;\n });\n }\n },\n computed: {\n SearchPanel: function SearchPanel() {\n return {\n '--searchPanel': this.searchPanel + 'px'\n };\n }\n }\n};",null]}