{"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\\ProjectManagement\\projectProcurementApproval\\index.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\src\\views\\Normal\\ProjectManagement\\projectProcurementApproval\\index.vue","mtime":1712176808388},{"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\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\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 queryParam: {\r\n pageBean: {\r\n page: 1,\r\n pageSize: 20,\r\n total: 0\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: 'noticeType',\r\n relation: 'AND',\r\n value: ''\r\n }\r\n ]\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 procurementManagement\r\n .projectApprovalProDetailsPage(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 console.log(this.tableData)\r\n })\r\n },\r\n //发布\r\n publishBtn() {\r\n let ids = this.handleDeleteId.join(',')\r\n this.$confirm('确定发布选中数据?', '提示', {\r\n confirmButtonText: '确 定',\r\n cancelButtonText: '取 消',\r\n type: 'warning'\r\n }).then(() => {\r\n this.$http.post('${portal}/projectApproval/v1/modifyBidStatus?ids='+ids+'&status=3')\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 }\r\n })\r\n .catch(res => {\r\n this.$message.error(res.data.message)\r\n })\r\n })\r\n },\r\n //下架\r\n shelvesTaken() {\r\n let ids = this.handleDeleteId.join(',')\r\n this.$confirm('确定下架选中数据?', '提示', {\r\n confirmButtonText: '确 定',\r\n cancelButtonText: '取 消',\r\n type: 'warning'\r\n }).then(() => {\r\n this.$http.post('${portal}/projectApproval/v1/modifyBidStatus?ids='+ids+'&status=0')\r\n .then(res => {\r\n if (res.data.state) {\r\n this.$message.success(res.data.message)\r\n this.loadData()\r\n }\r\n })\r\n .catch(res => {\r\n this.$message.error(res.data.message)\r\n })\r\n })\r\n },\r\n //添加\r\n handleAdd() {\r\n this.$router.push('projectApprovalAddDialog')\r\n },\r\n // 编辑\r\n handleEdit(rows) {\r\n this.$refs.form.clearValidate()\r\n this.$router.push({\r\n name: 'projectApprovalAddDialog',\r\n query: {editRows: rows, pageBean: this.params}\r\n })\r\n },\r\n // 详情\r\n handleDetail(rows) {\r\n this.$router.push({\r\n name: 'projectApprovalDetail',\r\n query: {detailRows: rows, pageBean: this.params}\r\n })\r\n },\r\n // 删除\r\n handleDelete() {\r\n this.$confirm('确定删除选中数据?', '提示', {\r\n confirmButtonText: '确 定',\r\n cancelButtonText: '取 消',\r\n type: 'warning'\r\n }).then(() => {\r\n procurementManagement\r\n .projectApprovalProDetailsRemove(this.handleDeleteId)\r\n .then(res => {\r\n if (res.state) {\r\n this.$message.success(res.message)\r\n\r\n this.loadData()\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.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]}