{"remainingRequest":"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\\bidOpeningManagement\\component\\bidCompetitiveNegotiation.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\src\\views\\Normal\\ManagementBid\\bidOpeningManagement\\component\\bidCompetitiveNegotiation.vue","mtime":1717533647311},{"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":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nimport pagination from '@/components/pagination'\r\nimport bidOpeningUnits from './bidOpeningUnits.vue'\r\nimport evaluationBid from './evaluationBid.vue'\r\nimport {TableMixin} from '@/mixins/tableMixin'\r\nimport routerManagement from '@/api/BasicDataManagement/routerManagement.js'\r\nexport default {\r\n name: 'DemandEntry',\r\n components: {\r\n pagination,\r\n bidOpeningUnits,\r\n evaluationBid\r\n },\r\n mixins: [TableMixin],\r\n data() {\r\n return {\r\n currentPage: 1,\r\n tableMaxHeight: 400,\r\n loading: false,\r\n objData: {},\r\n rounding: false,\r\n tableLoading: false,\r\n showTroubleshooting: false,\r\n markerFlowValue: {},\r\n roundsTwoLoading: false,\r\n roundsTwoValue: {},\r\n bidsLoading: false,\r\n bidsValue: {personnel: '', way: ''},\r\n echoValue: {\r\n name: ''\r\n },\r\n manageData: [],\r\n bidOpening: [],\r\n options: [\r\n {\r\n value: 0,\r\n label: '未开标'\r\n },\r\n {\r\n value: 1,\r\n label: '已开标'\r\n }\r\n ],\r\n tableData: [],\r\n multipleSelection: [],\r\n queryParam: {\r\n pageBean: {\r\n page: 1,\r\n pageSize: 20,\r\n total: 0\r\n }\r\n },\r\n querys: [\r\n {\r\n group: 'main',\r\n operation: 'IN',\r\n parentGroup: '',\r\n property: 'bidStatus',\r\n relation: 'AND',\r\n value: ['3', '4', '5']\r\n },\r\n {\r\n group: 'main',\r\n operation: 'EQUAL',\r\n parentGroup: '',\r\n property: 'procureType',\r\n relation: 'AND',\r\n value: 4\r\n }\r\n ],\r\n search: {\r\n code: 0\r\n }, // 顶部搜索对象\r\n flowing: false,\r\n bidDataList: [],\r\n showDetals: false,\r\n bidsSaveing: false,\r\n deleteIds: '', // 是否选中列表解锁删除按钮\r\n activeCollapse1: ['1', '2'],\r\n fileList: [], // 文件上传\r\n edit: false, // 是否是修改功能\r\n currentDataDel: [], // 删除时排查是否有在审核的数据\r\n roundsRules: {\r\n biddingStartTime: [\r\n {\r\n required: true,\r\n message: '请选择报价开始时间',\r\n trigger: ['blur', 'change']\r\n }\r\n ],\r\n biddingEndTime: [\r\n {\r\n required: true,\r\n message: '请选择报价结束时间',\r\n trigger: ['blur', 'change']\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n mounted() {},\r\n created() {\r\n this.loadData()\r\n },\r\n methods: {\r\n // 点击关闭按钮\r\n handleClose() {\r\n this.showTroubleshooting = false\r\n this.roundsTwoLoading = false\r\n this.bidsLoading = false\r\n this.bidOpening = []\r\n this.bidsValue.personnel = ''\r\n this.bidsValue.way = ''\r\n this.echoValue = {}\r\n },\r\n close() {\r\n this.showDetals = false\r\n },\r\n //发起新一轮报价\r\n roundsTwo(row) {\r\n this.objData = row\r\n this.roundsTwoLoading = true\r\n },\r\n //发起新一轮报价保存\r\n roundsTwoSave() {\r\n let form = this.objData\r\n form.bidStatus = 3\r\n form.biddingStartTime = this.roundsTwoValue.biddingStartTime\r\n form.biddingEndTime = this.roundsTwoValue.biddingEndTime\r\n form.newQuoReason = this.roundsTwoValue.newQuoReason\r\n console.log(form)\r\n this.$refs.roundsRules.validate(valid => {\r\n if (valid) {\r\n this.rounding = true\r\n this.$http\r\n .post('${portal}/matApproval/v1/newRoundQuo', form)\r\n .then(res => {\r\n console.log(res, 'm;ress')\r\n // 表单验证通过\r\n if (res.data.state) {\r\n this.$message.success(res.data.message)\r\n this.roundsTwoValue = {}\r\n this.roundsTwoLoading = false\r\n }\r\n this.rounding = false\r\n this.loadData()\r\n })\r\n }\r\n })\r\n },\r\n //流标保存\r\n handleSave() {\r\n this.flowing = true\r\n this.showTroubleshooting = false\r\n let form = this.flowForm\r\n form.bidStatus = 8\r\n form.failBidReason = this.markerFlowValue.failBidReason\r\n this.$http\r\n .post('${portal}/matApproval/v1/newRoundQuo', form)\r\n .then(res => {\r\n console.log(res, 'res')\r\n if (res.data.state) {\r\n this.$message.success(res.data.message)\r\n this.loadData()\r\n this.markerFlowValue = {}\r\n this.showTroubleshooting = false\r\n this.flowing = false\r\n } else {\r\n this.flowing = false\r\n }\r\n })\r\n },\r\n //流标\r\n markerFlow(row) {\r\n this.flowForm = row\r\n this.showTroubleshooting = true\r\n },\r\n //开标保存\r\n bidsSave() {\r\n this.bidsSaveing = true\r\n let form = this.objData\r\n if (this.bidOpening.length != 0) {\r\n form.projectEvaluationExpertList = this.bidOpening\r\n }\r\n this.$http.post('${portal}/matApproval/v1/openingBid', form).then(res => {\r\n console.log(res, 'res')\r\n if (res.data.state) {\r\n this.$message.success(res.data.message)\r\n this.loadData()\r\n this.bidsValue = {}\r\n this.bidsLoading = false\r\n this.bidsSaveing = false\r\n } else {\r\n this.bidsSaveing = false\r\n }\r\n })\r\n },\r\n //开标\r\n bidsBtn(row) {\r\n let params = {\r\n querys: [\r\n {\r\n group: 'main',\r\n operation: 'EQUAL',\r\n parentGroup: '',\r\n property: 'noticeId',\r\n relation: 'AND',\r\n value: row.id\r\n }\r\n ]\r\n }\r\n this.$http\r\n .post('${portal}/bizBiddingQuotation/v1/matBidOpenOrgData', params)\r\n .then(res => {\r\n console.log(res, 'res')\r\n if (res.data.state) {\r\n this.objData = res.data.value\r\n this.manageData = res.data.value.quotationList\r\n this.bidsLoading = true\r\n if (res.data.value.projectEvaluationExpertList.length == 0) {\r\n } else {\r\n this.bidsValue.personnel = res.data.value.projectEvaluationExpertList\r\n .map(item => {\r\n return item.fullname\r\n })\r\n .join(',')\r\n }\r\n }\r\n })\r\n },\r\n //评标人员\r\n purchasingUnitsBtn() {\r\n this.$refs.troubleshooting.add()\r\n },\r\n addDetail(list) {\r\n this.bidOpening = list\r\n this.bidsValue.personnel = list\r\n .map(item => {\r\n return item.fullname\r\n })\r\n .join(',')\r\n console.log(this.bidsValue.personnel)\r\n },\r\n //评标办法\r\n evaluationBid() {\r\n this.$refs.troublebids.add()\r\n },\r\n bidsDetail(list) {\r\n this.bidsValue.way = list.name\r\n this.echoValue = list\r\n this.objData.evaluationTemplateId = this.echoValue.id\r\n this.objData.evaluationMethod = this.echoValue.evaluatingMethods\r\n },\r\n //获取数据\r\n loadData() {\r\n this.tableLoading = true\r\n this.queryParam.querys = []\r\n if (this.querys[0].value) {\r\n this.queryParam.querys.push(this.querys[0])\r\n }\r\n if (this.querys[1].value) {\r\n this.queryParam.querys.push(this.querys[1])\r\n }\r\n if (this.querys[2].value) {\r\n this.queryParam.querys.push(this.querys[2])\r\n }\r\n this.$http\r\n .post('${portal}/matApproval/v1/bidOpenData', this.queryParam)\r\n .then(res => {\r\n console.log(res, 'res')\r\n this.tableLoading = false\r\n if (res.data.state) {\r\n this.tableData = res.data.value.rows\r\n console.log('返回的表格数据', this.tableData)\r\n this.queryParam.pageBean = {\r\n page: res.data.value.page,\r\n pageSize: res.data.value.pageSize,\r\n total: res.data.value.total\r\n }\r\n }\r\n })\r\n },\r\n handleDetails(row) {\r\n console.log(row, 'row')\r\n let params = {\r\n querys: [\r\n {\r\n group: 'main',\r\n operation: 'EQUAL',\r\n parentGroup: '',\r\n property: 'quo.QUOTATION_COMPANY_ID_',\r\n relation: 'AND',\r\n value: row.quotationCompanyId\r\n },\r\n {\r\n group: 'main',\r\n operation: 'EQUAL',\r\n parentGroup: '',\r\n property: 'quo.NOTICE_ID_',\r\n relation: 'AND',\r\n value: row.noticeId\r\n }\r\n ]\r\n }\r\n\r\n this.$http\r\n .post('${portal}/matApprovalDetails/v1/bidOpenManageData', params)\r\n .then(res => {\r\n console.log(res, 'res')\r\n if (res.data.state) {\r\n this.bidDataList = res.data.value.rows\r\n this.showDetals = true\r\n }\r\n })\r\n },\r\n clearSearchForm() {\r\n this.querys[0].value = ['3', '4', '5']\r\n this.querys[1].value = '4'\r\n const moment = require('moment')\r\n this.querys[2].value = moment().format('YYYY-MM-DD HH:mm:ss')\r\n this.loadData()\r\n },\r\n // 顶部搜索\r\n handleSearch() {\r\n this.loadData()\r\n },\r\n handleSelectionChange(currentData) {\r\n this.currentDataDel = currentData\r\n if (currentData.length === 0) return (this.deleteIds = '')\r\n let ids = []\r\n currentData.forEach(item => {\r\n ids.push(item.id)\r\n })\r\n // this.$message.error(`【${item.demandTopic}】已上报待审核不能删除!`)\r\n this.deleteIds = ids.join(',')\r\n },\r\n handleCurrentChange(page) {\r\n this.queryParam.pageBean = {...this.queryParam.pageBean, page}\r\n this.loadData(this.queryParam)\r\n },\r\n handleSizeChange(pageSize) {\r\n this.queryParam.pageBean = {...this.queryParam.pageBean, pageSize}\r\n this.loadData(this.queryParam)\r\n }\r\n },\r\n computed: {\r\n SearchPanel() {\r\n return {\r\n '--searchPanel': this.searchPanel + 'px'\r\n }\r\n }\r\n }\r\n}\r\n",null]}