{"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\\quotesMy\\component\\tendeLimited.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\src\\views\\Normal\\ManagementBid\\quotesMy\\component\\tendeLimited.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 \"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/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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 Breadcrumb from '@/components/Breadcrumb/index.vue';\nimport { mapState } from 'vuex';\nimport basicData from '@/api/basicData';\nexport default {\n name: 'domesticDialog',\n components: {\n Breadcrumb: Breadcrumb\n },\n props: {\n editData: Object\n },\n data: function data() {\n return {\n form: {},\n totalValue: 0,\n importData: {\n title: '导入报价',\n templateName: '导入报价导入模板.xls',\n downloadUrl: window.context.portal + '/matApprovalDetails/v1/exportTemplateToExcel',\n importUrl: window.context.portal + '/matApprovalDetails/v1/excelTemplateToData',\n show: true,\n header: '报价导入'\n },\n dialogVisible: false,\n breadcrumbOpt: [{\n breadcrumbName: '物资采购'\n }, {\n breadcrumbName: '报价'\n }],\n tableData: [],\n dataList: [],\n time: null,\n biding: false,\n addendumList: [],\n //补遗文件\n tenderList: [],\n //投标文件\n exporting: false,\n show: false,\n clarifyList: [],\n //澄清文件\n activeName: '0',\n tableLoading: false,\n id: '',\n method: '',\n params: {},\n objData: {},\n fileList: [],\n saveing: false,\n startTime: null,\n bidFileList: [],\n templateId: '',\n templateDetailId: '',\n endTime: null,\n selectAll: [],\n countDown: null,\n tendering: false,\n dateTime: {\n days: '',\n hours: '',\n minutes: '',\n seconds: ''\n },\n currentUser: {},\n tableHeadData: [{\n label: '我的报价',\n width: 130,\n prop: 'quoArrange'\n }]\n };\n },\n created: function created() {\n ;\n this.tableHeadData = [{\n label: '我的报价',\n width: 130,\n prop: 'quoArrange'\n } // {label: '合计金额', width: 120, prop: 'amount'},\n ], this.currentUser = JSON.parse(sessionStorage.getItem('currentUserDetail'));\n this.id = this.$route.params.id;\n this.method = this.$route.params.method;\n this.loadData();\n this.selectTree();\n },\n watch: {\n tableData: {\n handler: function handler(newVal, oldVal) {\n var _this = this;\n\n var sum = 0;\n newVal.forEach(function (item) {\n if (item.quoArrange != undefined) {\n sum += item.quoArrange * item.matNum;\n item.amount = (item.quoArrange * item.matNum).toFixed(2);\n _this.totalValue = sum.toFixed(2);\n }\n });\n },\n deep: true\n }\n },\n mounted: function mounted() {\n this.getBidFiles();\n },\n computed: _objectSpread({\n uploadHeaders: function uploadHeaders() {\n return {\n Authorization: this.$store.state.login.currentUser && 'Bearer ' + this.$store.state.login.currentUser.token\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 methods: (_methods = {\n handleClick: function handleClick() {\n var _this2 = this;\n\n if (this.activeName == 2) {\n this.getBidFiles();\n }\n\n if (this.activeName == 1) {\n var arr = [];\n var arr1 = [];\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: 'operateOrgId',\n relation: 'AND',\n value: this.currentUser.org[0].orgId\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'projectApprovalId',\n relation: 'AND',\n value: this.id\n });\n this.$http.post('${portal}/clarifyQuestions/v1/page', parmas).then(function (res) {\n arr = res.data.value.rows;\n var data = {\n pageBean: {\n pageSize: -1,\n page: -1\n },\n querys: []\n };\n data.querys.push({\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'questionsId',\n relation: 'AND',\n value: arr[0].projectApprovalId\n });\n\n _this2.$http.post('${portal}/clarifyAnswer/v1/page', data).then(function (res) {\n console.log(res, 1111111111);\n });\n });\n }\n\n if (this.activeName == 4) {\n this.selectTree();\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: 'noticeId',\n relation: 'AND',\n value: this.id\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'noticeType',\n relation: 'AND',\n value: 1\n });\n\n this.$http.post('${portal}/bizEvaluationSystem/v1/pageDetail', _parmas).then(function (res) {\n var data = res.data.value.rows;\n\n _this2.scoreData.forEach(function (item) {\n data.forEach(function (val) {\n val.descriptionList.forEach(function (e) {\n if (e.evaluationItemPid == item.id) {\n item.evaluationScore = 0;\n item.evaluationItemPname = item.subjectName;\n item.evaluationScore += e.evaluationScore;\n item.children.push(e);\n }\n });\n });\n });\n });\n console.log(this.scoreData);\n }\n },\n //查询评标分类树结构\n selectTree: function selectTree() {\n var _this3 = this;\n\n this.scoreData = [];\n basicData.bizEvaluationItemSelectTree().then(function (res) {\n _this3.scoreData = res.value[0].children;\n\n _this3.scoreData.forEach(function (item) {\n _this3.$set(item, 'evaluationScore', 0);\n });\n });\n },\n //报价总额\n totalChange: function totalChange() {\n var _this4 = this;\n\n this.totalValue = 0;\n var sum = 0;\n this.tableData.forEach(function (item) {\n if (item.quoArrange != undefined) {\n sum += item.quoArrange * item.matNum;\n _this4.totalValue = sum.toFixed(2);\n }\n });\n },\n handleDown: function handleDown() {\n var _this5 = this;\n\n this.exporting = true;\n var data = {\n querys: []\n };\n data.querys.push({\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'noticeId',\n relation: 'AND',\n value: this.params.id\n });\n var portal = window.context.portal;\n var query = {\n url: \"\".concat(portal, \"/matApprovalDetails/v1/exportTemplateToExcel\"),\n method: 'post',\n data: data,\n headers: {\n 'Content-type': 'application/json'\n },\n responseType: 'blob',\n //将文件流转成blob对象\n noErrorMsg: true\n };\n this.$http.request(query).then(function (res) {\n if (res.status == 200) {\n _this5.$message.success('导出成功');\n\n _this5.exporting = false;\n } else {\n _this5.$message.error('导出失败');\n\n _this5.exporting = false;\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 /** 鼠标移入cell */\n handleCellEnter: function handleCellEnter(row, column, cell, event) {\n row.isEdit = true;\n },\n\n /** 鼠标移出cell */\n handleCellLeave: function handleCellLeave(row, column, cell, event) {\n row.isEdit = false;\n },\n // 表格行点击\n handleBtn: function handleBtn(rows) {\n console.log(rows, 22222222);\n this.objData = rows;\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 load: function load(data) {\n var _this6 = this;\n\n console.log(data, 'ress');\n var sum = 0;\n this.tableData.forEach(function (item) {\n data.forEach(function (val) {\n if (item.id == val['标的ID']) {\n item.quoArrange = Number(val['含税单价']);\n item.quotationTemplateDetailList.forEach(function (i) {\n if (item.quotationTemplateDetailDataList) {\n item.quotationTemplateDetailDataList.push({\n noticeDetailedId: item.id,\n noticeId: _this6.id,\n noticeType: 1,\n templateId: i.templateId,\n templateDetailId: i.id,\n value: item.quoArrange,\n quoArrange: i.quoArrange\n });\n item.quotationTemplateDetailDataList.forEach(function (val) {\n if (val.quoArrange == '合计金额') {\n val.priceEntry = 2;\n val['value'] = item.quoArrange * item.matNum;\n } else {\n val.priceEntry = 1;\n }\n });\n }\n });\n sum += item.quoArrange * item.matNum;\n }\n });\n });\n },\n loadData: function loadData() {\n var _this7 = this;\n\n this.tableLoading = true;\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.id\n }]\n };\n this.$http.post('${portal}/matApprovalDetails/v1/quoData', params).then(function (res) {\n console.log(res, 'res');\n\n if (res.data.state) {\n _this7.params = res.data.value;\n _this7.time = new Date(_this7.params.biddingEndTime).getTime() - Date.now();\n\n if (new Date(_this7.params.biddingStartTime).getTime() > Date.now()) {\n _this7.show = false;\n }\n\n _this7.tableData = res.data.value.detailsList;\n\n _this7.countDownMethod(_this7.params);\n\n _this7.dataList = [];\n\n if (res.data.value.zbDocument != undefined) {\n _this7.dataList = res.data.value.zbDocument.accessoryList;\n }\n\n _this7.addendumList = [];\n\n if (res.data.value.byDocument != undefined && res.data.value.byDocument.length != 0) {\n res.data.value.byDocument.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 _this7.addendumList.push(val);\n }\n });\n }\n });\n }\n }\n\n _this7.tableData.forEach(function (item, index) {\n if (item.quotationTemplateDetailDataList == undefined) {\n item.quotationTemplateDetailDataList = [];\n }\n\n if (item.quoArrange == undefined) {\n _this7.$set(item, 'quoArrange', 0);\n }\n\n if (item.quotationTemplateDetailList && item.quotationTemplateDetailList.length != 0) {\n if (item.quotationTemplateDetailList[0].value == undefined) {\n item.quoArrange = 0;\n } else {\n item.quoArrange = item.quotationTemplateDetailList[0].value;\n }\n\n item.quotationTemplateDetailList.forEach(function (object) {\n var arr = [];\n arr = Object.keys(item.quotationTemplateDetailList[0]);\n\n _this7.tableHeadData.forEach(function (val) {\n arr.forEach(function (e) {\n if (e == val.prop && object.quoArrange != '') {\n val.label = item.quotationTemplateDetailList[0].quoArrange;\n }\n });\n });\n });\n }\n\n _this7.$set(item, 'isEdit', true);\n });\n\n console.log(_this7.tableData, 'tableData');\n _this7.tableLoading = false;\n });\n },\n // 倒计时定时器\n countDownMethod: function countDownMethod(row) {\n var _this8 = this;\n\n this.countDown = setInterval(function () {\n var date = Date.parse(new Date(row.biddingEndTime)) - Date.parse(new Date());\n\n if (date > 0) {\n _this8.dateTime = _this8.formatDate(date);\n } else {\n _this8.countDown = '已结束';\n _this8.show = true; // this.handleClose()\n\n _this8.tableData = [];\n _this8.totalValue = 0;\n clearInterval(_this8.countDown);\n }\n }, 1000);\n },\n formatDate: function formatDate(time) {\n var days = this.addZero(Math.floor(time / 1000 / 60 / 60 / 24)); //天\n\n var hours = this.addZero(Math.floor(time / 1000 / 60 / 60 % 24)); //时\n\n var minutes = this.addZero(Math.floor(time / 1000 / 60 % 60)); //分\n\n var seconds = this.addZero(Math.floor(time / 1000 % 60)); //秒\n\n return {\n days: days,\n hours: hours,\n minutes: minutes,\n seconds: seconds\n };\n },\n addZero: function addZero(d) {\n return parseInt(d) < 10 ? '0' + d : d;\n },\n // 获取投标文件\n getBidFiles: function getBidFiles() {\n var _this9 = this;\n\n this.tendering = true;\n this.tenderList = [];\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.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: 'supplierId',\n relation: 'AND',\n value: this.currentUser.org[0].orgId\n });\n this.$http.post('${portal}/bidDocuments/v1/page', parmas).then(function (res) {\n var data = res.data.value.rows;\n _this9.tendering = false;\n data.forEach(function (item) {\n if (item.accessoryList && item.accessoryList.length != 0) {\n item.accessoryList.forEach(function (val) {\n _this9.tenderList.push(val);\n });\n }\n });\n });\n },\n // 关闭//面包屑点击\n handleClose: function handleClose() {\n this.$router.push({\n name: 'quotesMy',\n params: {\n tabsActiveName: 'TenderProcurement'\n }\n });\n },\n // 删除\n deleteFile: function deleteFile(index) {\n var _this10 = this;\n\n this.$confirm('是否确认删除该附件', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(function () {\n _this10.bidFileList.splice(index, 1);\n });\n },\n changeQuoArrange: function changeQuoArrange(row) {\n var _this11 = this;\n\n console.log(row, 22222222);\n\n if (row.maximumPriceLimit != undefined) {\n if (row.quoArrange > row.maximumPriceLimit) {\n this.$message.error('当前项报价已超过最高限价,请重新报价!');\n return;\n }\n }\n\n if (row.minQuoPrice != undefined && row.minQuoPrice != 0) {\n if (row.quoArrange > row.minQuoPrice || row.quoArrange == row.minQuoPrice) {\n this.$message.error('请输入低于当前最低价的报价,请重新报价!');\n return;\n }\n }\n\n if (row.quoArrange == '' || row.quoArrange == undefined) {\n row.amount = '';\n }\n\n row.myPrice = row.quoArrange;\n row.quotationTemplateDetailDataList = [];\n row.quotationTemplateDetailList.forEach(function (item) {\n row.quotationTemplateDetailDataList.push({\n noticeDetailedId: row.id,\n noticeId: _this11.id,\n noticeType: 1,\n templateId: item.templateId,\n templateDetailId: item.id,\n value: row.quoArrange,\n quoArrange: item.quoArrange\n });\n });\n this.tableData.forEach(function (e) {\n if (e.quotationTemplateDetailDataList.length != 0) {\n e.quotationTemplateDetailDataList.forEach(function (val) {\n if (e.id == val.noticeDetailedId && val.quoArrange == '合计金额') {\n val.priceEntry = 2;\n val['value'] = e.quoArrange * e.matNum;\n } else {\n val.priceEntry = 1;\n }\n });\n } else {\n e.quotationTemplateDetailList.forEach(function (i) {\n if (i.quoArrange == '合计金额') {\n i.priceEntry = 2;\n }\n\n e.quotationTemplateDetailDataList.push({\n noticeDetailedId: e.id,\n noticeId: _this11.id,\n noticeType: 1,\n templateId: i.templateId,\n templateDetailId: i.id,\n value: e.quoArrange,\n priceEntry: i.priceEntry,\n quoArrange: i.quoArrange\n });\n });\n }\n });\n },\n // 报价\n open: function open() {\n var _this12 = this;\n\n console.log(this.tenderList, '/bidDocuments/v1/removeByIds');\n\n if (this.tenderList.length == 0 && this.params.isBidDocumentsUpload == 1) {\n this.$message.warning('请上传投标文件');\n this.show = true;\n return;\n } else {\n this.show = false;\n }\n\n var quoVo = {\n matApproval: {\n detailsList: []\n }\n };\n\n if (this.tableData[0].quoArrange == 0) {\n this.$message.error('请输入报价');\n this.saveing = false;\n return false;\n }\n\n this.tableData.forEach(function (item) {\n if (item.quoArrange > 0 && item.quoArrange != undefined && item.quoArrange != 0) {\n quoVo.matApproval.detailsList.push(item);\n }\n });\n delete this.params.detailsList;\n quoVo.matApproval = _objectSpread(_objectSpread({}, quoVo.matApproval), this.params);\n console.log(quoVo);\n this.saveing = true;\n this.$http.post('${portal}/bizBiddingQuotation/v1/quotationMat', quoVo).then(function (res) {\n _this12.saveing = false;\n\n if (res.data.state) {\n _this12.$message.success(res.data.message);\n\n _this12.loadData();\n }\n });\n },\n // 文件状态改变时的钩子,添加文件、上传成功和上传失败时都会被调用,function(file, fileList)\n handleSuccess: function handleSuccess(res, file, fileList) {\n console.log(res, fileList);\n this.bidFileList.push(res.value);\n\n if (this.bidFileList.length != 0) {\n this.show = false;\n }\n }\n }, _defineProperty(_methods, \"downloadFile\", function downloadFile(name, url) {\n console.log(name, 'name');\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(id, index) {\n var _this13 = this;\n\n this.$confirm('是否确认删除该附件', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(function () {\n if (_this13.activeName == 2 && id) {\n _this13.$http.post('${portal}/biz/universal/v1/delete?ids=' + id).then(function (res) {\n if (res.data.state) {\n _this13.$message.success('删除成功');\n\n _this13.getBidFiles();\n }\n });\n }\n\n _this13.$forceUpdate();\n });\n }), _defineProperty(_methods, \"dialogBeforeClose\", function dialogBeforeClose() {\n this.dialogVisible = false;\n }), _defineProperty(_methods, \"openBid\", function openBid() {\n this.dialogVisible = true;\n }), _defineProperty(_methods, \"saveBid\", function saveBid() {\n var _this14 = this;\n\n var data = {\n accessoryList: [],\n projectApprovalId: this.params.id,\n projectApprovalType: 1,\n quotationRounds: 1,\n supplierId: ''\n };\n data.supplierId = this.currentUser.org[0].orgId;\n data.accessoryList = this.bidFileList;\n this.biding = true;\n this.$http.post('${portal}/bidDocuments/v1/saveOrUpdateEntity', data).then(function (res) {\n _this14.biding = false;\n\n if (res.data.state) {\n _this14.handleClick();\n\n _this14.dialogBeforeClose();\n\n _this14.bidFileList = [];\n }\n });\n }), _methods)\n};",null]}