{"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\\tenderList.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\src\\views\\Normal\\ManagementBid\\quotesMy\\component\\tenderList.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 _defineProperty from \"D:/jenkins/workspace/jd_cgpt_fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\nimport \"core-js/modules/web.dom.iterable\";\nimport _toConsumableArray from \"D:/jenkins/workspace/jd_cgpt_fvue/node_modules/@babel/runtime/helpers/esm/toConsumableArray\";\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//\nimport pagination from '@/components/pagination';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport routerManagement from '@/api/BasicDataManagement/routerManagement.js';\nimport req from '@/request.js';\nimport utils from '@/utils.js';\nvar portal = window.context.portal;\nexport default {\n name: 'DemandEntry',\n components: {\n pagination: pagination\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n currentPage: 1,\n tableHeight: 1000,\n tableMaxHeight: 400,\n loading: false,\n tableLoading: false,\n tableData: [],\n dialogVisible: false,\n exporting: false,\n detailsList: [],\n multipleSelection: [],\n addressList: [],\n queryParam: {\n pageBean: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n sorter: [{\n direction: 'DESC',\n property: 'create_time_'\n }]\n },\n searchForm: {},\n // 顶部搜索对象\n deleteIds: '',\n // 是否选中列表解锁删除按钮\n edit: false,\n // 是否是修改功能\n currentDataDel: [],\n // 删除时排查是否有在审核的数据\n day: 0,\n hr: 0,\n min: 0,\n sec: 0\n };\n },\n mounted: function mounted() {},\n created: function created() {\n this.getAddress();\n this.loadData(); // 从后端获取的数据,将这一步骤放到异步获取后端数据的地方,对后端返回的数据进行处理\n },\n methods: {\n // 倒计时定时器\n countDownMethod: function countDownMethod(row) {\n var _this = this;\n\n row.countDown = setInterval(function () {\n var date = new Date(row.biddingStartTime) - new Date();\n\n if (date > 0) {\n console.log(date, 'date');\n row.dateTime = _this.formatDate(date);\n _this.tableData = _toConsumableArray(_this.tableData);\n } else {\n clearInterval(row.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 getDictName: function getDictName(code, value) {\n return utils.getDictName(code, value);\n },\n // 获取送货地址\n getAddress: function getAddress() {\n var _this2 = this;\n\n var params = {\n pageBean: {\n pageSize: -1,\n page: -1\n }\n };\n this.$http.post('${portal}/bizDeliveryAddress/v1/query', params).then(function (res) {\n _this2.addressList = res.data.rows;\n });\n },\n // 导出明细\n handleDown: function handleDown() {\n var _this3 = 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.multipleSelection[0].id\n });\n var portal = window.context.portal;\n var query = {\n url: \"\".concat(portal, \"/matApprovalDetails/v1/exportDataToExcel\"),\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 _this3.$message.success('导出成功');\n\n _this3.exporting = false;\n } else {\n _this3.$message.error('导出失败');\n\n _this3.exporting = false;\n }\n });\n },\n dialogBeforeClose: function dialogBeforeClose() {\n this.dialogVisible = false;\n },\n // 明细\n handleDetail: function handleDetail() {\n var _this4 = this;\n\n var data = {\n pageBean: {\n page: -1,\n pageSize: -1\n },\n querys: []\n };\n data.querys.push({\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'noticeId',\n relation: 'AND',\n value: this.multipleSelection[0].id\n });\n this.$http.post('${portal}/matApprovalDetails/v1/page', data).then(function (res) {\n _this4.dialogVisible = true;\n\n if (res.data.state) {\n _this4.detailsList = res.data.value.rows;\n\n _this4.addressList.forEach(function (item) {\n _this4.detailsList.forEach(function (val) {\n if (item.code == val.unloadAddress) {\n val.unloadAddress = item.enterpriseContactAddress;\n }\n });\n });\n }\n });\n },\n //获取数据\n loadData: function loadData() {\n var _this5 = this;\n\n this.tableLoading = true;\n this.$http.post('${portal}/matApproval/v1/quoData', this.queryParam).then(function (res) {\n if (res.data.state) {\n _this5.tableData = res.data.value.rows;\n _this5.queryParam.pageBean = {\n page: res.data.value.page,\n pageSize: res.data.value.pageSize,\n total: res.data.value.total\n };\n\n _this5.tableData.forEach(function (ele) {\n _this5.$set(ele, 'dateTime', null);\n\n ele.dateTime = new Date(ele.biddingStartTime) - new Date();\n }); // for (let i in this.tableData) {\n // this.countDownMethod(i)\n // }\n\n\n console.log(_this5.tableData, 'this.tableData');\n }\n\n _this5.tableLoading = false;\n });\n },\n // 前往报价\n goOffer: function goOffer(rows) {\n this.$refs.form.clearValidate();\n\n if (rows.procureType == 3) {\n this.$router.push({\n path: \"/tendeLimited/\".concat(rows.id, \"/\").concat(rows.evaluationMethod)\n });\n } else {\n this.$router.push({\n path: \"/tendeRecording/\".concat(rows.id, \"/\").concat(rows.evaluationMethod)\n });\n }\n },\n //重置\n clearSearchForm: function clearSearchForm() {\n this.loadData();\n },\n // 顶部搜索\n handleSearch: function handleSearch() {\n this.loadData();\n },\n handleSelectionChange: function handleSelectionChange(currentData) {\n this.multipleSelection = currentData;\n\n if (this.multipleSelection.length > 1) {\n this.$refs.multipleSelection.toggleRowSelection(this.multipleSelection[0], false);\n }\n },\n handleCurrentChange: function handleCurrentChange(page) {\n this.queryParam.pageBean = _objectSpread(_objectSpread({}, this.queryParam.pageBean), {}, {\n page: page\n });\n this.loadData(this.queryParam);\n },\n handleSizeChange: function handleSizeChange(pageSize) {\n this.queryParam.pageBean = _objectSpread(_objectSpread({}, this.queryParam.pageBean), {}, {\n pageSize: pageSize\n });\n this.loadData(this.queryParam);\n }\n },\n computed: {\n SearchPanel: function SearchPanel() {\n return {\n '--searchPanel': this.searchPanel + 'px'\n };\n }\n }\n};",null]}