{"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\\negotiationsRecording.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\src\\views\\Normal\\ManagementBid\\quotesMy\\component\\negotiationsRecording.vue","mtime":1712176808388},{"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/es6.string.ends-with\";\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//\nimport Breadcrumb from '@/components/Breadcrumb/index.vue';\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: '/../fvue/static/excel/material.xlsx',\n importUrl: window.context.portal + '/biz/Gs/v1/importExcelData',\n showProject: true,\n header: '报价导入'\n },\n breadcrumbOpt: [{\n breadcrumbName: '项目采购'\n }, {\n breadcrumbName: '报价'\n }],\n tableData: [],\n dataList: [],\n addendumList: [],\n activeName: '0',\n activeList: [{\n value: '0',\n name: '招标文件'\n }, {\n value: '1',\n name: '澄清提问'\n }],\n tableLoading: false,\n saveing: false,\n dateTime: {\n dd: '**',\n hh: '**',\n mm: '**',\n ss: '**'\n },\n startTime: null,\n endTime: null,\n countDown: null,\n id: ''\n };\n },\n created: function created() {\n this.totalChange();\n this.id = this.$route.query.editRows.id;\n this.loadData();\n this.startTime = this.$route.query.editRows.biddingStartTime;\n this.endTime = this.$route.query.editRows.biddingEndTime;\n this.countDownMethod();\n },\n mounted: function mounted() {},\n computed: {\n uploadHeaders: function uploadHeaders() {\n return {\n Authorization: this.$store.state.login.currentUser && 'Bearer ' + this.$store.state.login.currentUser.token\n };\n }\n },\n methods: {\n handleClick: function handleClick() {},\n //报价总额\n totalChange: function totalChange() {\n var _this = this;\n\n this.totalValue = 0;\n this.tableData.forEach(function (item) {\n if (item.myPrice != undefined) {\n _this.totalValue += item.myPrice;\n }\n });\n },\n //删除文件\n deleteHandle: function deleteHandle(index, id) {\n if (this.activeName == 0) {\n this.dataList.splice(index, 1);\n }\n\n if (this.activeName == 1) {\n this.addendumList.splice(index, 1);\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 hadleUploadResult: function hadleUploadResult(response) {\n this.fullscreenLoading = false;\n\n if (response.state) {\n this.$message.success(response.message);\n this.dialogImportVisible = false;\n this.$emit('load', response.value);\n } else {\n this.$message.error(response.message);\n }\n },\n onExceed: function onExceed() {\n this.$message.warning('只能选择一个Excel文件!');\n },\n beforeUpload: function beforeUpload(file) {\n this.fileInfo = file;\n\n if (!file.name.endsWith('.xlsx') && !file.name.endsWith('.xls')) {\n this.$message.warning('只能导入Excel文件!');\n return false;\n }\n\n this.fullscreenLoading = true;\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 this.totalChange();\n },\n // 倒计时定时器\n countDownMethod: function countDownMethod() {\n var _this2 = this;\n\n this.countDown = setInterval(function () {\n var date = new Date(_this2.endTime) - Date.now();\n\n if (date > 0) {\n _this2.dateTime = _this2.formatDate(date);\n } else {\n clearInterval(_this2.countDown);\n }\n }, 1000);\n },\n formatDate: function formatDate(time) {\n var date = new Date(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 var dd = date.getDate() < 10 ? '0' + date.getDate() : date.getDate();\n var hh = date.getHours() < 10 ? '0' + date.getHours() : date.getHours();\n var mm = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes();\n var ss = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds();\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 load: function load() {// this.loadData()\n },\n loadData: function loadData() {\n var _this3 = 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}/projectApprovalDetails/v1/quoData', params).then(function (res) {\n console.log(res, 'res');\n\n if (res.data.state) {\n _this3.tableData = res.data.value.detailsList;\n\n if (res.data.value.zbDocument != undefined) {\n _this3.dataList = res.data.value.zbDocument.accessoryList;\n }\n\n if (res.data.value.byDocument != undefined) {\n _this3.addendumList = res.data.value.byDocument.accessoryList;\n }\n }\n\n _this3.tableData.forEach(function (item) {\n _this3.$set(item, 'isEdit', false);\n });\n\n _this3.tableLoading = false;\n });\n },\n // 关闭//面包屑点击\n handleClose: function handleClose() {\n this.$router.push({\n name: 'quotesMy',\n params: {\n tabsActiveName: 'CompetitiveNegotiation'\n }\n });\n },\n // 报价\n open: function open() {\n var _this4 = this;\n\n this.saveing = true;\n var quoVo = {\n matApproval: {\n detailsList: []\n }\n };\n\n var moment = require('moment');\n\n this.tableData.forEach(function (item) {\n if (item.myPrice > 0) {\n quoVo.matApproval.detailsList.push(item);\n }\n });\n quoVo.matApproval = _objectSpread(_objectSpread({}, quoVo.matApproval), this.$route.query.editRows);\n quoVo.auctionEndDate = moment().format('YYYY-MM-DD HH:mm:ss');\n this.$http.post('${portal}/bizBiddingQuotation/v1/quotationMat', quoVo).then(function (res) {\n _this4.saveing = false;\n\n if (res.data.state) {\n _this4.$message.success(res.data.message);\n }\n });\n }\n }\n};",null]}