{"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\\MunicipalDemandEntry.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\reformDemandAnalysis\\municipalDemand\\MunicipalDemandEntry.vue","mtime":1731060280892},{"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 \"core-js/modules/es6.reflect.delete-property\";\nimport \"core-js/modules/es6.regexp.to-string\";\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//\nimport pagination from '@/components/pagination';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport dialogVue from \"./dialog/demandDialog.vue\";\nimport RejectInfoDialog from '@/components/dialog/RejectInfoDialog.vue';\nimport req from '@/request.js';\nimport utils from '@/utils.js';\nvar portal = window.context.portal;\nexport default {\n name: 'MunicipalDemandEntry',\n components: {\n pagination: pagination,\n dialogVue: dialogVue,\n RejectInfoDialog: RejectInfoDialog\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n tableMaxHeight: 400,\n loading: false,\n tableLoading: false,\n tableData: [],\n multipleSelection: [],\n groupList: [],\n // 专项小区下拉选择 去掉了最后一项各专项小组\n ggxq_shzt: [],\n //审核状态\n params: {\n pageBean: {\n page: 1,\n pageSize: 20,\n total: 0\n }\n },\n pageResult: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n searchForm: {},\n // 顶部搜索对象\n deleteIds: '',\n // 是否选中列表解锁删除按钮\n fileList: [],\n // 文件上传\n dialog: {\n title: '添加',\n visible: false\n },\n dialogForm: {},\n disabled: false,\n // 是否禁止输入输入\n edit: false,\n // 是否是修改功能\n currentDataDel: [],\n // 删除时排查是否有在审核的数据\n rules: {\n demandTopic: {\n required: true,\n message: '请输入需求题目',\n trigger: 'blur'\n },\n demandSourceChannel: {\n required: true,\n message: '请选择来源渠道',\n trigger: 'blur'\n },\n demandField: {\n required: true,\n message: '请选择所属领域',\n trigger: 'blur'\n },\n demandRunway: {\n required: true,\n message: '请选择所属跑道',\n trigger: 'blur'\n },\n demandDate: {\n required: true,\n message: '请输入日期',\n trigger: 'blur'\n }\n }\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');\n },\n methods: {\n getDictName: function getDictName(code, value) {\n return utils.getDictName(code, value);\n },\n //获取数据\n loadData: function loadData(params) {\n var _this = this;\n\n this.tableLoading = true;\n req.post(portal + '/bizReformDemandAnalysisLibrary/v1/getList?isAffirm=false', params).then(function (res) {\n _this.tableLoading = false;\n var data = res && res.data || {};\n _this.tableData = data.rows || [];\n _this.pageResult = {\n page: data.page,\n pageSize: data.pageSize,\n total: data.total\n };\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 refreshData: function refreshData() {\n this.loadData(this.params);\n },\n handleOpenDialog: function handleOpenDialog(row, title) {\n this.$refs.dialogVue.openDialog(row, title);\n },\n // 删除\n handleDelete: function handleDelete() {\n var _this4 = this;\n\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 _this4.tableLoading = true;\n req.remove(portal + '/bizReformDemandAnalysisLibrary/v1/deleteByParentIds?isAffirm=false&parentIds=' + _this4.deleteIds).then(function (res) {\n _this4.loadData(_this4.params);\n });\n });\n },\n // 上报或者撤回\n handleAppear: function handleAppear(data, status) {\n var _this5 = this;\n\n var msg = status ? '上报' : '撤回';\n this.$confirm(\"\\u786E\\u8BA4\".concat(msg, \"\\u5417\\uFF1F\"), this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: status ? 'success' : 'error'\n }).then(function () {\n data.status = status;\n\n if (!status) {\n data.approvalResults = 2;\n }\n\n _this5.tableLoading = true;\n req.post(portal + '/bizReformDemandAnalysisLibrary/v1/updateAuditStatus', data).then(function (res) {\n if (res.data.state) {\n _this5.$message.success(\"\".concat(msg, \"\\u6210\\u529F\"));\n } else {\n _this5.$message.error(\"\".concat(msg, \"\\u5931\\u8D25\"));\n }\n\n _this5.loadData(_this5.params);\n });\n });\n },\n // 详情\n handleLookDetiles: function handleLookDetiles(row) {\n var _this6 = this;\n\n console.log(row);\n this.dialog.title = '详情';\n this.dialog.visible = true;\n this.loading = true; // 清除表单效验\n\n this.$refs.form.clearValidate();\n var api = \"/approvalLog/bizAchieveStatusLog/v1/queryAchieveStatusLogByBizIdAndStatus?bizId=\".concat(row.id, \"&status=\").concat(row.status);\n req.put(portal + api).then(function (res) {\n _this6.loading = false;\n\n if (res.status == 200) {\n _this6.dialogForm = res && res.data || {};\n _this6.dialogForm = _objectSpread(_objectSpread({}, row), _this6.dialogForm);\n var data = _this6.dialogForm;\n\n _this6.getByDemandFiledData('ggbb_ssly', data.demandField);\n\n if (data.demandRunway) {\n data.demandRunway = data.demandRunway.toString();\n }\n\n _this6.disabledDetils = true;\n }\n }).catch(function () {\n _this6.loading = false;\n });\n },\n //修改\n handleDbClick: function handleDbClick(row) {\n var _this7 = this;\n\n this.dialog.title = '编辑';\n this.dialog.visible = true;\n this.loading = true; // 清除表单效验\n\n this.$refs.form.clearValidate();\n var api = \"/approvalLog/bizAchieveStatusLog/v1/queryAchieveStatusLogByBizIdAndStatus?bizId=\".concat(row.id, \"&status=\").concat(row.status);\n req.put(portal + api).then(function (res) {\n _this7.loading = false;\n\n if (res.status == 200) {\n _this7.dialogForm = res && res.data || {};\n _this7.dialogForm = _objectSpread(_objectSpread({}, row), {}, {\n approvalComments: _this7.dialogForm.approvalComments\n });\n var data = _this7.dialogForm;\n\n _this7.getByDemandFiledData('ggbb_ssly', data.demandField);\n\n if (data.demandRunway) {\n data.demandRunway = data.demandRunway.toString();\n }\n\n _this7.disabledDetils = false;\n _this7.edit = true;\n }\n }).catch(function () {\n _this7.loading = false;\n });\n },\n // 顶部搜索\n handleSearch: function handleSearch() {\n var obj = this.searchForm;\n var querys = [];\n\n for (var i in obj) {\n if (obj[i]) {\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 }\n }\n\n this.params.querys = querys;\n this.params.pageBean.page = 1;\n this.loadData(this.params);\n },\n // 弹层关闭\n handleDialogClose: function handleDialogClose() {\n this.dialog.visible = false;\n },\n // 表单提交保存\n submit: function submit(status) {\n var _this8 = this;\n\n this.dialogForm.status = status; // 删除approvalComments参数确保能够保存\n\n Reflect.deleteProperty(this.dialogForm, 'approvalComments');\n this.$refs.form.validate(function (valid) {\n var url = '';\n\n if (_this8.edit) {\n url = '/bizReformDemandAnalysisLibrary/v1/updateInfo';\n } else {\n url = '/bizReformDemandAnalysisLibrary/v1/';\n }\n\n if (valid) {\n _this8.loading = true;\n req.post(portal + url, _this8.dialogForm).then(function (res) {\n if (res.data.state) {\n _this8.dialog.visible = false;\n\n _this8.loadData(_this8.params);\n }\n\n _this8.loading = false;\n }).catch(function () {\n _this8.loading = false;\n });\n } else {\n return false;\n }\n });\n },\n handleSelectionChange: function handleSelectionChange(currentData) {\n this.currentDataDel = currentData;\n if (currentData.length === 0) return this.deleteIds = '';\n var ids = [];\n currentData.forEach(function (item) {\n if (item.status == 0 || item.status == 2) {\n ids.push(item.id);\n }\n }); // this.$message.error(`【${item.demandTopic}】已上报待审核不能删除!`)\n\n this.deleteIds = ids.join(',');\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 }\n};",null]}