{"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\\participateRegistration\\component\\projectParticipate.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\src\\views\\Normal\\ManagementBid\\participateRegistration\\component\\projectParticipate.vue","mtime":1719607232277},{"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\r\nimport pagination from '@/components/pagination'\r\nimport {TableMixin} from '@/mixins/tableMixin'\r\nimport routerManagement from '@/api/BasicDataManagement/routerManagement.js'\r\nimport req from '@/request.js'\r\nimport utils from '@/utils.js'\r\nconst portal = window.context.portal\r\nexport default {\r\n name: 'DemandEntry',\r\n components: {\r\n pagination\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 queryParam: {\r\n pageBean: {\r\n pageSize: 20,\r\n page: 1,\r\n total: 0\r\n }\r\n },\r\n dialogVisible:false,\r\n tableLoading: false,\r\n tableData: [],\r\n multipleSelection: [],\r\n searchForm: {}, // 顶部搜索对象\r\n deleteIds: '', // 是否选中列表解锁删除按钮\r\n currentDataDel: [], // 删除时排查是否有在审核的数据\r\n querys: [\r\n {\r\n group: 'main',\r\n operation: 'EQUAL',\r\n parentGroup: '',\r\n property: 'BID_STATUS_',\r\n relation: 'AND',\r\n value: '3'\r\n },\r\n {\r\n group: 'main',\r\n operation: 'LIKE',\r\n parentGroup: '',\r\n property: 'projectNumber',\r\n relation: 'AND',\r\n value: ''\r\n },\r\n {\r\n group: 'main',\r\n operation: 'LESS',\r\n parentGroup: '',\r\n property: 'biddingEndTime',\r\n relation: 'AND',\r\n value: ''\r\n }\r\n ]\r\n }\r\n },\r\n mounted() {},\r\n created() {\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 methods: {\r\n getDictName(code, value) {\r\n return utils.getDictName(code, value)\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.post('${portal}/projectApproval/v1/signData',this.queryParam).then(res=>{\r\n if (res.data.state) {\r\n this.tableLoading = false\r\n this.tableData = res.data.value.rows\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 this.tableData.forEach(item => {\r\n this.$set(item, 'joining', false)\r\n this.$set(item, 'cancle', false)\r\n })\r\n this.$set(this.tableData)\r\n console.log('返回的表格数据', this.tableData)\r\n })\r\n },\r\n // 参与报名\r\n handleJoin(row) {\r\n console.log(row, 'row')\r\n row.joining = true\r\n if (row.joinStatus == 0) {\r\n let form = {\r\n noticeId: row.id,\r\n noticeTitle: row.noticeTitle,\r\n noticeType: '2',\r\n status: '1',\r\n noticeCode:row.projectNumber,\r\n price:row.bond\r\n }\r\n this.$http\r\n .post('${portal}/userParticipation/v1/participate', form)\r\n .then(res => {\r\n console.log(res, 'data')\r\n if (res.data.state) {\r\n this.$message.success(res.data.message)\r\n this.loadData()\r\n }\r\n row.joining = false\r\n })\r\n } else {\r\n this.$http\r\n .post(\r\n '${portal}/userParticipation/v1/modifyStatus?ids=' +\r\n row.partId +\r\n '&status=1'\r\n )\r\n .then(res => {\r\n console.log(res, 'data')\r\n if (res.data.state) {\r\n this.$message.success(res.data.message)\r\n this.loadData()\r\n }\r\n row.joining = false\r\n })\r\n }\r\n },\r\n dialogBeforeClose() {\r\n this.dialogVisible = false\r\n this.visible = false\r\n this.showDialog = false\r\n },\r\n // 取消报名\r\n handleCanle(row) {\r\n row.cancle = true\r\n this.$http\r\n .post(\r\n '${portal}/userParticipation/v1/modifyStatus?ids=' +\r\n row.partId +\r\n '&status=5'\r\n )\r\n .then(res => {\r\n console.log(res, 'data')\r\n if (res.data.state) {\r\n this.$message.success(res.data.message)\r\n this.loadData()\r\n }\r\n row.cancle = false\r\n })\r\n },\r\n //重置\r\n clearSearchForm() {\r\n this.querys[1].value = ''\r\n this.querys[2].value = ''\r\n this.loadData()\r\n },\r\n // 顶部搜索\r\n handleSearch() {\r\n this.loadData()\r\n },\r\n // 查看明细\r\n handleDetails(row) {\r\n this.$http\r\n .post('${portal}/matApproval/v1/getDataById?id=' + row.id)\r\n .then((res) => {\r\n if (res.data.state) {\r\n this.detailsList = res.data.value.detailsList\r\n this.dialogVisible = true\r\n }\r\n })\r\n },\r\n //去结算\r\n goCheckout() {\r\n this.$router.push({\r\n path: `participateRecording/${2}`,\r\n })\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.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]}