{"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\\participateRegistration\\component\\participateMaterial.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\src\\views\\Normal\\ManagementBid\\participateRegistration\\component\\participateMaterial.vue","mtime":1720125638776},{"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\";\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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 { mapState } from 'vuex';\nimport qualificationsDialog from \"./module/qualificationsDialog.vue\";\nimport routerManagement from '@/api/BasicDataManagement/routerManagement.js';\nimport qualification from '@/components/dialog/qualificationDialog.vue';\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 qualificationsDialog: qualificationsDialog,\n qualification: qualification\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n tableHeight: 1000,\n currentPage: 1,\n tableMaxHeight: 400,\n loading: false,\n examineing: false,\n showDialog: false,\n queryParam: {\n pageBean: {\n pageSize: 20,\n page: 1,\n total: 0\n }\n },\n qualificationList: [],\n tableLoading: false,\n dialogVisible: false,\n quesing: false,\n visible: false,\n tableData: [],\n form: {\n describe: '',\n accessoryList: []\n },\n detailsList: [],\n multipleSelection: [],\n params: {},\n rules: {\n describe: [{\n required: true,\n message: '请输入问题描述',\n trigger: 'blur'\n }]\n },\n searchForm: {},\n // 顶部搜索对象\n deleteIds: '',\n // 是否选中列表解锁删除按钮\n currentDataDel: [],\n // 删除时排查是否有在审核的数据\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'BID_STATUS_',\n relation: 'AND',\n value: '3'\n }, {\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'projectNumber',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'LESS',\n parentGroup: '',\n property: 'biddingEndTime',\n relation: 'AND',\n value: ''\n }]\n };\n },\n mounted: function mounted() {},\n created: function created() {\n var moment = require('moment');\n\n this.querys[2].value = moment().format('YYYY-MM-DD HH:mm:ss');\n this.loadData();\n },\n methods: {\n getDictName: function getDictName(code, value) {\n return utils.getDictName(code, value);\n },\n //获取数据\n loadData: function loadData() {\n var _this = this;\n\n this.tableLoading = true;\n this.queryParam.querys = [];\n\n if (this.querys[0].value) {\n this.queryParam.querys.push(this.querys[0]);\n }\n\n if (this.querys[1].value) {\n this.queryParam.querys.push(this.querys[1]);\n }\n\n this.queryParam.sorter = [{\n direction: 'DESC',\n property: 'create_time_'\n }];\n routerManagement.queryEventsList(this.queryParam).then(function (res) {\n if (res.data.state) {\n _this.tableLoading = false;\n _this.tableData = res.data.value.rows;\n _this.queryParam.pageBean = {\n page: res.data.value.page,\n pageSize: res.data.value.pageSize,\n total: res.data.value.total\n };\n }\n\n _this.tableData.forEach(function (item) {\n _this.$set(item, 'joining', false);\n\n _this.$set(item, 'cancle', false);\n });\n\n _this.$set(_this.tableData);\n\n console.log('返回的表格数据', _this.tableData);\n });\n },\n handleSuccess: function handleSuccess(res, fileList) {\n this.form.accessoryList.push(res.value);\n },\n //下载按钮回调\n downloadFile: function downloadFile(name, url) {\n var a = document.createElement('a');\n var event = new MouseEvent('click');\n a.download = name;\n a.target = '_blank';\n a.href = url;\n a.dispatchEvent(event);\n },\n // 删除\n deleteHandle: function deleteHandle(index) {\n var _this2 = this;\n\n this.$confirm('是否确认删除该附件', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(function () {\n _this2.form.accessoryList.splice(index, 1);\n\n _this2.params.matApprovalQualificationList.forEach(function (item) {\n item.accessoryList.forEach(function (val, i) {\n if (index == i) {\n item.accessoryList.splice(i, 1);\n }\n });\n });\n });\n },\n openQualification: function openQualification(row) {\n this.$refs.qualification.add(row);\n },\n getLoad: function getLoad(data) {\n data.forEach(function (item) {\n item.qualificationTypeName = item.qualificationName;\n });\n this.params.matApprovalQualificationList.forEach(function (item) {\n item.accessoryList = data;\n });\n this.$forceUpdate();\n },\n // 参与报名无资质\n handleJoin: function handleJoin(row) {\n var _this3 = this;\n\n console.log(row, 'row');\n row.joining = true;\n\n if (row.joinStatus == 0) {\n var form = {\n noticeId: row.id,\n noticeTitle: row.noticeTitle,\n noticeType: '1',\n status: '',\n noticeCode: row.projectNumber,\n price: row.bond\n };\n\n if (row.hasBond == 1) {\n form.status = 3;\n }\n\n if (row.hasBond == 0) {\n form.status = 1;\n }\n\n this.$http.post('${portal}/userParticipation/v1/participate', form).then(function (res) {\n console.log(res, 'data');\n\n if (res.data.state) {\n _this3.$message.success(res.data.message);\n\n _this3.loadData();\n }\n\n row.joining = false;\n });\n } else {\n this.$http.post('${portal}/userParticipation/v1/modifyStatus?ids=' + row.partId + '&status=1').then(function (res) {\n console.log(res, 'data');\n\n if (res.data.state) {\n _this3.$message.success(res.data.message);\n\n _this3.loadData();\n }\n\n row.joining = false;\n });\n }\n },\n // 有资质报名弹窗\n openJoin: function openJoin(row) {\n var _this4 = this;\n\n // this.$refs.flowDialog.handleOpen(row) \n this.$http.post('${portal}/matApproval/v1/getDataById?id=' + row.id).then(function (res) {\n if (res.data.state) {\n _this4.params = res.data.value;\n _this4.showDialog = true;\n\n _this4.$set(_this4.params);\n\n _this4.params.matApprovalQualificationList.forEach(function (item) {\n item['accessoryList'] = [];\n });\n }\n });\n },\n // 参与报名有资质\n clickJoin: function clickJoin() {\n var _this5 = this;\n\n this.quesing = true;\n var form = {\n noticeId: this.params.id,\n noticeTitle: this.params.noticeTitle,\n noticeType: '1',\n status: '1',\n noticeCode: this.params.projectNumber,\n price: this.params.bond,\n accessoryList: []\n };\n this.params.matApprovalQualificationList.forEach(function (item) {\n if (item.accessoryList && item.accessoryList.length != 0) {\n item.accessoryList.forEach(function (val) {\n if (val.id) {\n delete val.id;\n }\n\n form.accessoryList.push(val);\n });\n }\n });\n\n if (form.accessoryList.length == 0) {\n this.$message.warning('请传入资质附件');\n this.quesing = false;\n return;\n }\n\n this.$http.post('${portal}/userParticipation/v1/qualificationsParticipate', form).then(function (res) {\n console.log(res, 'data');\n\n if (res.data.state) {\n _this5.$message.success(res.data.message);\n\n _this5.loadData();\n\n _this5.dialogBeforeClose();\n }\n\n _this5.quesing = false;\n });\n },\n // 取消报名\n handleCanle: function handleCanle(row) {\n var _this6 = this;\n\n row.cancle = true;\n this.$http.post('${portal}/userParticipation/v1/modifyStatus?ids=' + row.partId + '&status=5').then(function (res) {\n console.log(res, 'data');\n\n if (res.data.state) {\n _this6.$message.success(res.data.message);\n\n _this6.loadData();\n }\n\n row.cancle = false;\n });\n },\n handleExamine: function handleExamine() {\n var _this7 = this;\n\n this.$http.post('${portal}/userParticipation/v1/modifyStatus?ids=' + this.multipleSelection[0].partId + '&status=3').then(function (res) {\n console.log(res, 'data');\n\n if (res.data.state) {\n _this7.$message.success(res.data.message);\n\n _this7.loadData();\n }\n });\n },\n clickSuccess: function clickSuccess(res, row, index) {\n this.params.matApprovalQualificationList.forEach(function (item, i) {\n if (i == index) {\n item.accessoryList.push(res.value);\n\n if (item.accessoryList && item.accessoryList.length != 0) {\n item.accessoryList.forEach(function (val) {\n val['filesize'] = item.fileSize;\n val['fileNum'] = item.fileNum;\n val['qualificationTypeName'] = item.qualificationTypeName;\n val['group'] = item.id;\n });\n }\n }\n });\n this.$forceUpdate();\n },\n // 查看明细\n handleDetails: function handleDetails(row) {\n var _this8 = this;\n\n this.$http.post('${portal}/matApproval/v1/getDataById?id=' + row.id).then(function (res) {\n if (res.data.state) {\n _this8.detailsList = res.data.value.detailsList;\n _this8.dialogVisible = true;\n }\n });\n },\n // 澄清提问\n goQuestions: function goQuestions() {\n this.visible = true;\n },\n handleQuestion: function handleQuestion() {\n var _this9 = this;\n\n var data = {\n projectApprovalId: this.multipleSelection[0].id,\n describe: this.form.describe,\n accessoryList: this.form.accessoryList,\n projectApprovalType: 1\n };\n this.quesing = true;\n this.$http.post('${portal}/clarifyQuestions/v1/saveOrUpdate', data).then(function (res) {\n if (res.data.state) {\n _this9.loadData();\n\n _this9.dialogBeforeClose();\n\n _this9.form = {\n describe: '',\n accessoryList: []\n };\n }\n\n _this9.quesing = false;\n });\n },\n //重置\n clearSearchForm: function clearSearchForm() {\n this.querys[1].value = '';\n this.querys[2].value = '';\n this.loadData();\n },\n // 顶部搜索\n handleSearch: function handleSearch() {\n this.loadData();\n },\n dialogBeforeClose: function dialogBeforeClose() {\n this.dialogVisible = false;\n this.visible = false;\n this.showDialog = false;\n },\n //去结算\n goCheckout: function goCheckout() {\n this.$router.push({\n path: \"participateRecording/\".concat(1)\n });\n },\n handleSelectionChange: function handleSelectionChange(currentData) {\n this.currentDataDel = currentData;\n this.multipleSelection = currentData;\n if (currentData.length === 0) return this.deleteIds = '';\n var ids = [];\n currentData.forEach(function (item) {\n ids.push(item.id);\n });\n this.deleteIds = ids.join(',');\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: _objectSpread({\n SearchPanel: function SearchPanel() {\n return {\n '--searchPanel': this.searchPanel + 'px'\n };\n }\n }, mapState({\n headers: function headers(state) {\n return {\n Authorization: \"Bearer \".concat(state.login.currentUser.token)\n };\n },\n action: function action() {\n return window.context.portal + '/biz/universal/v1/minioUpload';\n }\n }))\n};",null]}