{"remainingRequest":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\reform-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\reform-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\reform-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\reform-fvue\\src\\views\\reformDemandAnalysis\\municipalDemand\\MunicipalDemandConfirm.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\reformDemandAnalysis\\municipalDemand\\MunicipalDemandConfirm.vue","mtime":1703491986021},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\reform-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/reform-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//\nimport pagination from '@/components/pagination';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport req from '@/request.js';\nimport utils from '@/utils.js';\nimport dialogVue from \"./dialog/demandDialog.vue\";\nvar portal = window.context.portal;\nexport default {\n name: 'MunicipalDemandConfirm',\n components: {\n pagination: pagination,\n dialogVue: dialogVue\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n exportLoading: false,\n tableMaxHeight: 400,\n loading: false,\n tableLoading: false,\n tableData: [],\n multipleSelection: [],\n groupList: [],\n // 专项小区下拉选择 去掉了最后一项各专项小组\n ggxq_shzt: [],\n //审核状态 只展示未审核的 -3、4、5\n params: {\n pageBean: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n querys: [{\n group: 'main',\n operation: 'IN',\n property: 'status',\n relation: 'AND',\n value: [3, -4]\n }]\n },\n pageResult: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n searchForm: {},\n // 顶部搜索对象\n activeCollapse1: ['1', '2'],\n fileList: [],\n // 文件上传\n dialog: {\n title: '添加',\n visible: false\n },\n dialogForm: {},\n disabled: false,\n // 是否禁止输入输入\n disabledDetils: false,\n isShow: false,\n // 点击审核时显示\n isEdit: false,\n // 是否是修改\n rules: {\n demandAdoptionStatus: {\n required: true,\n message: '请选择采用状态',\n trigger: 'blur'\n }\n },\n exportId: [],\n shztArr: []\n };\n },\n created: function created() {\n this.loadData(this.params);\n this.getGroupList();\n this.demandRunwaOoptionsSerch = []; // this.groupList = utils.getDictItemsFromCache('zxxz').slice(0, -1)\n\n this.ggxq_shzt = [utils.getDictItemsFromCache('ggxq_shzt')[3], utils.getDictItemsFromCache('ggxq_shzt')[6]];\n },\n methods: {\n // 批量导出\n exportExcel: function exportExcel() {\n var _this = this;\n\n this.exportLoading = true;\n var data = JSON.parse(JSON.stringify(this.params));\n var obj = JSON.parse(JSON.stringify(this.searchForm));\n\n if (!obj.status) {\n if (this.switchStatus) {\n this.operation = 'IN';\n obj.status = [-3, 4, 5];\n } else {\n this.operation = 'IN';\n obj.status = [3, -4];\n }\n }\n\n var querys = [{\n group: 'main',\n operation: 'IN',\n property: 'd.id_',\n relation: 'AND',\n value: this.exportId\n }];\n\n for (var i in obj) {\n if (obj[i]) {\n if (typeof obj[i] == 'string') {\n querys.push({\n group: 'main',\n operation: i == 'PROJECT_NAME_' ? 'LIKE' : 'EQUAL',\n parentGroup: '',\n property: i,\n relation: 'AND',\n value: obj[i]\n });\n } else if (i == 'status') {\n querys.push({\n group: 'main',\n operation: this.operation,\n property: i,\n relation: 'AND',\n value: obj[i]\n });\n } else if (i == 'status_') {\n querys.push({\n group: 'main',\n operation: 'EQUAL',\n property: i,\n relation: 'AND',\n value: obj[i]\n });\n }\n }\n }\n\n data.querys = querys;\n data.pageBean.pageSize = -1;\n req.downloadPostCopy(portal + '/bizReformDemandAnalysisLibrary/v1/demandExport', data).then(function (res) {\n _this.exportLoading = false;\n console.log(res);\n });\n },\n getGroupList: function getGroupList() {\n var _this2 = this;\n\n var data = {\n pageBean: {\n page: 1,\n pageSize: -1\n }\n };\n req.post(portal + \"/fill/bizSpecialGroup/v1/queryPageList\", data).then(function (res) {\n _this2.groupList = res.data.rows.filter(function (item) {\n return item.groupType === 2;\n });\n });\n },\n // 搜索栏专项小组变化\n groupNameChange: function groupNameChange(e) {\n var projectField = '';\n this.groupList.forEach(function (item) {\n if (item.groupName === e) {\n projectField = item.groupField;\n }\n });\n this.getRunwaOoptions(projectField);\n },\n getRunwaOoptions: function getRunwaOoptions(pilotField) {\n var _this3 = this;\n\n var arr = utils.getDictItemsFromCache('ggbb_ssly');\n arr.forEach(function (item) {\n if (item.value == pilotField) {\n _this3.demandRunwaOoptionsSerch = item.lowerDic['ggbb_sspd'];\n }\n });\n },\n // 撤回\n handleAppear: function handleAppear(data) {\n var _this4 = this;\n\n this.$confirm(\"\\u786E\\u8BA4\\u64A4\\u56DE\\u5417\\uFF1F\", this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'error'\n }).then(function () {\n data.approvalResults = 2;\n data.status = 3;\n _this4.tableLoading = true;\n req.post(portal + '/bizReformDemandAnalysisLibrary/v1/updateAuditStatus', data).then(function (res) {\n if (res.data.state) {\n _this4.$message.success(\"\\u64A4\\u56DE\\u6210\\u529F\");\n } else {\n _this4.$message.error(\"\\u64A4\\u56DE\\u5931\\u8D25\");\n }\n\n _this4.loadData(_this4.params);\n });\n });\n },\n getDictName: function getDictName(code, value) {\n return utils.getDictName(code, value);\n },\n //获取数据\n loadData: function loadData(params) {\n var _this5 = this;\n\n this.tableLoading = true;\n req.post(portal + '/bizReformDemandAnalysisLibrary/v1/getList?isAffirm=true', params).then(function (res) {\n _this5.tableLoading = false;\n var data = res && res.data || {};\n _this5.tableData = data.rows || [];\n _this5.pageResult = {\n page: data.page,\n pageSize: data.pageSize,\n total: data.total\n };\n });\n },\n // 审核\n handleOpenDialog: function handleOpenDialog(row, title) {\n this.$refs.dialogVue.openDialog(row, title);\n },\n refreshData: function refreshData() {\n this.loadData(this.params);\n },\n // 顶部搜索\n handleSearch: function handleSearch() {\n var obj = this.searchForm;\n\n if (!obj.status) {\n if (this.switchStatus) {\n this.operation = 'IN';\n obj.status = [-3, 4, 5];\n } else {\n this.operation = 'IN';\n obj.status = [3, -4];\n }\n }\n\n var querys = [];\n\n for (var i in obj) {\n if (obj[i]) {\n if (typeof obj[i] == 'string') {\n querys.push({\n group: 'main',\n operation: i == 'PROJECT_NAME_' ? 'LIKE' : 'EQUAL',\n parentGroup: '',\n property: i,\n relation: 'AND',\n value: obj[i]\n });\n } else if (i == 'status') {\n querys.push({\n group: 'main',\n operation: this.operation,\n property: i,\n relation: 'AND',\n value: obj[i]\n });\n } else if (i == 'status_') {\n querys.push({\n group: 'main',\n operation: 'EQUAL',\n property: i,\n relation: 'AND',\n value: obj[i]\n });\n }\n }\n }\n\n this.params.querys = querys;\n this.params.pageBean.page = 1;\n this.loadData(this.params);\n },\n // 页面中swatch回调事件\n handleSwitch: function handleSwitch(bol) {\n this.switchStatus = bol;\n var arr = utils.getDictItemsFromCache('ggxq_shzt');\n\n if (bol) {\n // 已办\n this.operation = 'IN';\n this.searchForm.status = [-3, 4, 5];\n this.ggxq_shzt = arr.slice(-3);\n } else {\n // 代办\n this.operation = 'IN';\n this.searchForm.status = [3, -4];\n this.ggxq_shzt = [arr[3], arr[6]];\n delete this.searchForm.status_;\n }\n\n this.handleSearch();\n },\n // 弹层关闭\n handleDialogClose: function handleDialogClose() {\n this.dialog.visible = false;\n },\n handleSelectionChange: function handleSelectionChange(currentData) {\n this.exportId = currentData.map(function (item) {\n return item.id;\n });\n },\n handleCurrentChange: function handleCurrentChange(page) {\n this.params.pageBean = _objectSpread(_objectSpread({}, this.params.pageBean), {}, {\n page: page\n });\n this.loadData(this.params);\n },\n handleSizeChange: function handleSizeChange(pageSize) {\n this.params.pageBean = _objectSpread(_objectSpread({}, this.params.pageBean), {}, {\n pageSize: pageSize\n });\n this.loadData(this.params);\n },\n handleDelete: function handleDelete() {\n var _this6 = this;\n\n var delId = JSON.parse(JSON.stringify(this.exportId)).join(',');\n this.$confirm(this.$t('common.sureDelete'), this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'warning'\n }).then(function () {\n _this6.tableLoading = true;\n req.remove(portal + '/bizReformDemandAnalysisLibrary/v1/deleteByParentIds?isAffirm=true&parentIds=' + delId).then(function (res) {\n _this6.loadData(_this6.params);\n });\n });\n }\n }\n};",null]}