{"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\\bidMatApproval.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\src\\views\\Normal\\ManagementBid\\bidOpeningManagement\\component\\bidMatApproval.vue","mtime":1720557639678},{"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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 viewing: false,\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: 'LIKE',\r\n parentGroup: '',\r\n property: 'bidStatus',\r\n relation: 'AND',\r\n value: '',\r\n },\r\n ],\r\n search: {\r\n code: '',\r\n }, // 顶部搜索对象\r\n flowing: false,\r\n bidDataList: [],\r\n showView: false,\r\n detailsList: [],\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 this.showView = 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 handleDetail() {\r\n if (this.multipleSelection.length > 1) {\r\n this.$message.warning('请选择单条数据进行查看')\r\n return\r\n }\r\n this.handleDetails()\r\n },\r\n handleView() {\r\n if (this.multipleSelection.length > 1) {\r\n this.$message.warning('请选择单条数据进行查看')\r\n return\r\n }\r\n let params = {\r\n pageBean: {\r\n page: -1,\r\n pageSize: -1,\r\n },\r\n querys: [],\r\n }\r\n params.querys.push(\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: this.multipleSelection[0].id,\r\n },\r\n {\r\n group: 'main',\r\n operation: 'EQUAL',\r\n parentGroup: '',\r\n property: 'quo.QUOTATION_ROUNDS_',\r\n relation: 'AND',\r\n value: this.multipleSelection[0].quotationRoundsNum,\r\n }\r\n )\r\n this.$http\r\n .post('${portal}/bizBiddingQuotation/v1/pageQuoAndMatDetail', params)\r\n .then((res) => {\r\n if (res.data.state) {\r\n this.detailsList = res.data.value.rows\r\n this.showView = true\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.$confirm('确认当前信息后请点击确定以进行开标?', '提示', {\r\n confirmButtonText: '确 定',\r\n cancelButtonText: '取 消',\r\n type: 'warning',\r\n })\r\n .then(() => {\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\r\n .post('${portal}/matApproval/v1/openingBid', 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.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 .catch(() => {\r\n this.$message.info('已取消')\r\n })\r\n },\r\n //开标\r\n bidsBtn(row) {\r\n this.manageData = []\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.push(this.objData)\r\n this.bidsValue.personnel = this.objData.projectEvaluationExpertList\r\n .map((item) => {\r\n return item.fullname\r\n })\r\n .join(',')\r\n this.bidsLoading = true\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 this.queryParam.sorter = [\r\n {\r\n direction: 'DESC',\r\n property: 'create_time_',\r\n },\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 changeCode(val) {\r\n console.log(val)\r\n if (val == '') {\r\n this.querys[0].value = ['3', '4', '5']\r\n }\r\n if (val == 0) {\r\n this.querys[0].value = ['3', '4']\r\n }\r\n if (val == 1) {\r\n this.querys[0].value = ['5']\r\n }\r\n },\r\n handleDetails() {\r\n let params = {\r\n pageBean: {\r\n page: -1,\r\n pageSize: -1,\r\n },\r\n querys: [\r\n {\r\n group: 'main',\r\n operation: 'EQUAL',\r\n parentGroup: '',\r\n property: 'round',\r\n relation: 'AND',\r\n value: this.multipleSelection[0].quotationRoundsNum,\r\n },\r\n {\r\n group: 'main',\r\n operation: 'EQUAL',\r\n parentGroup: '',\r\n property: 'noticeId',\r\n relation: 'AND',\r\n value: this.multipleSelection[0].id,\r\n },\r\n {\r\n group: 'main',\r\n operation: 'EQUAL',\r\n parentGroup: '',\r\n property: 'status',\r\n relation: 'AND',\r\n value: 1,\r\n },\r\n ],\r\n }\r\n this.$http\r\n .post('${portal}/userParticipation/v1/pageRegistraAndBid', 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 // 顶部搜索\r\n handleSearch() {\r\n this.loadData()\r\n },\r\n clearSearchForm() {\r\n this.querys[0].value = ['3', '4', '5']\r\n this.querys[1].value = ''\r\n this.search.code = ''\r\n this.loadData()\r\n },\r\n handleSelectionChange(currentData) {\r\n this.currentDataDel = currentData\r\n this.multipleSelection = currentData\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]}