{"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\\ProcurementManagement\\multipleRoundsApproval\\component\\multiRoundProcurement.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\src\\views\\Normal\\ProcurementManagement\\multipleRoundsApproval\\component\\multiRoundProcurement.vue","mtime":1720730442290},{"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\r\nimport pagination from '@/components/pagination'\r\nimport {TableMixin} from '@/mixins/tableMixin'\r\nimport procurementManagement from '@/api/procurementManagement'\r\nimport dictUtils from '@/components/dict/DictSelectUtils.js'\r\nimport utils from '@/utils.js'\r\nimport {label} from 'three/examples/jsm/nodes/Nodes.js'\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 tableHeight: 1000,\r\n tableData: [],\r\n handleDeleteActive: true,\r\n handleDeleteId: [],\r\n tableLoading: false,\r\n options: [\r\n {label: '草稿', value: '0'},\r\n {label: '审批中', value: '1'},\r\n {label: '已发布', value: '2'},\r\n {label: '已下架', value: '3'},\r\n {label: '驳回', value: '4'},\r\n ],\r\n queryParam: {\r\n pageBean: {\r\n page: 1,\r\n pageSize: 20,\r\n total: 0,\r\n },\r\n sorter: [\r\n {\r\n direction: 'DESC',\r\n property: 'create_time_',\r\n },\r\n ],\r\n },\r\n cgfbztState: [],\r\n querys: [\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: 'LIKE',\r\n parentGroup: '',\r\n property: 'noticeTitle',\r\n relation: 'AND',\r\n value: '',\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: '',\r\n },\r\n {\r\n group: 'main',\r\n operation: 'EQUAL',\r\n parentGroup: '',\r\n property: 'matIfPlat',\r\n relation: 'AND',\r\n value: '1',\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: '6',\r\n },\r\n {\r\n group: 'main',\r\n operation: 'EQUAL',\r\n parentGroup: '',\r\n property: 'releaseStatus',\r\n relation: 'AND',\r\n value: '0',\r\n },\r\n ],\r\n publishing:false\r\n }\r\n },\r\n mounted() {\r\n this.calcTableHeight()\r\n //页面缩放从新计算表格的高度\r\n window.addEventListener('resize', this.calcTableHeight)\r\n },\r\n created() {\r\n this.loadData()\r\n // 数据单位\r\n this.cgfbztState = dictUtils.getDictItemsFromCache('cgfbzt')\r\n },\r\n beforeDestroy() {\r\n window.removeEventListener('resize', this.calcTableHeight)\r\n },\r\n methods: {\r\n // 获取字典值翻译\r\n getDictName(code, value) {\r\n return utils.getDictName(code, value)\r\n },\r\n // 动态计算表格的高度,自适应当前容器\r\n calcTableHeight() {\r\n this.tableHeight = this.$refs.tableContent.offsetHeight\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 if (this.querys[3].value) {\r\n this.queryParam.querys.push(this.querys[3])\r\n }\r\n if (this.querys[4].value) {\r\n this.queryParam.querys.push(this.querys[4])\r\n }\r\n if (this.querys[5].value) {\r\n this.queryParam.querys.push(this.querys[5])\r\n }\r\n procurementManagement\r\n .bizProjectApprovalPage(this.queryParam)\r\n .then((res) => {\r\n this.queryParam.pageBean.total = res.value.total\r\n this.tableLoading = false\r\n this.tableData = res.value.rows\r\n })\r\n },\r\n //发布\r\n publishBtn() {\r\n let arr = {\r\n id: this.handleDeleteId.join(','),\r\n status: '3',\r\n }\r\n this.$confirm('确定发布选中数据?', '提示', {\r\n confirmButtonText: '确 定',\r\n cancelButtonText: '取 消',\r\n type: 'warning',\r\n }).then(() => {\r\n if (this.handleDeleteId.length > 1) {\r\n this.$message.error('请选择一条数据发布!')\r\n return\r\n } else {\r\n this.publishing = true\r\n this.$http\r\n .post(\r\n '${portal}/matApproval/v1/modifyReleaseStatus?ids=' +\r\n arr.id +\r\n '&status=3'\r\n )\r\n .then((res) => {\r\n this.publishing = false\r\n if (res.data.state) {\r\n this.$message.success(res.data.message)\r\n this.loadData()\r\n }\r\n })\r\n }\r\n })\r\n },\r\n //下架\r\n shelvesTaken() {\r\n let arr = {\r\n id: this.handleDeleteId,\r\n status: '0',\r\n }\r\n this.$confirm('确定下架选中数据?', '提示', {\r\n confirmButtonText: '确 定',\r\n cancelButtonText: '取 消',\r\n type: 'warning',\r\n }).then(() => {\r\n procurementManagement\r\n .bizProjectApprovalUpdateStatus(arr)\r\n .then((res) => {\r\n if (res.state) {\r\n this.$message.success(res.message)\r\n this.loadData()\r\n }\r\n })\r\n .catch((res) => {\r\n this.$message.error(res.message)\r\n })\r\n })\r\n },\r\n //添加\r\n handleAdd() {\r\n this.$router.push({\r\n name: 'approvalAddDialog',\r\n query: {type: 1},\r\n })\r\n },\r\n // 编辑\r\n handleEdit(rows) {\r\n this.$refs.form.clearValidate()\r\n this.$router.push({\r\n name: 'approvalAddDialog',\r\n query: {editRows: rows, type: 1},\r\n })\r\n },\r\n // 详情\r\n handleDetail(rows) {\r\n this.$router.push({\r\n name: 'approvalDetail',\r\n query: {detailRows: rows, type: 1},\r\n })\r\n },\r\n // 删除\r\n handleDelete() {\r\n console.log(this.handleDeleteId, 'this.handleDeleteId')\r\n this.$confirm('确定删除选中数据?', '提示', {\r\n confirmButtonText: '确 定',\r\n cancelButtonText: '取 消',\r\n type: 'warning',\r\n }).then(() => {\r\n procurementManagement\r\n .bizProjectApprovalRemove(this.handleDeleteId)\r\n .then((res) => {\r\n if (res.state) {\r\n this.$notify({\r\n type: 'success',\r\n message: '删除成功',\r\n duration: 2000,\r\n })\r\n\r\n this.loadData()\r\n }\r\n })\r\n .catch((res) => {\r\n this.$notify({\r\n type: 'error',\r\n message: res.message,\r\n duration: 2000,\r\n offset: 80,\r\n })\r\n })\r\n })\r\n },\r\n //重置\r\n clearSearchForm() {\r\n this.querys[0].value = ''\r\n this.querys[1].value = ''\r\n this.querys[2].value = ''\r\n this.querys[3].value = '1'\r\n this.querys[4].value = '6'\r\n this.querys[5].value = '0'\r\n this.loadData()\r\n },\r\n // 顶部搜索\r\n handleSearch() {\r\n this.loadData()\r\n },\r\n handleSelectionChange(val) {\r\n if (val.length !== 0) {\r\n this.handleDeleteActive = false\r\n this.handleDeleteId = val.map((item) => {\r\n return item.id\r\n })\r\n } else {\r\n this.handleDeleteActive = true\r\n }\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]}