{"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\\FilingOfOneMatter\\components\\DistrictsCountiesEntry.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\FilingOfOneMatter\\components\\DistrictsCountiesEntry.vue","mtime":1699372135735},{"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/web.dom.iterable\";\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\";\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//\nimport pagination from '@/components/pagination';\nimport { TableMixin } from '@/mixins/tableMixin';\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 },\n mixins: [TableMixin],\n data: function data() {\n return {\n tableMaxHeight: 400,\n loading: false,\n tableLoading: false,\n tableData: [],\n multipleSelection: [],\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 activeCollapse1: ['1', '2'],\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 yjs_sxlb: []\n };\n },\n created: function created() {\n this.loadData(this.params);\n this.yjs_sxlb = utils.getDictItemsFromCache('yjs_sxlb');\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 //添加\n handleAdd: function handleAdd() {\n this.edit = false;\n this.disabledDetils = false;\n this.dialogForm = {\n demandField: 1,\n demandRunway: '1',\n demandSourceChannel: 1,\n demandDate: this.getDate()\n };\n this.dialog.title = '添加';\n this.dialog.visible = true;\n },\n // 删除\n handleDelete: function handleDelete() {\n var _this2 = 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 req.remove(portal + '/bizReformDemandAnalysisLibrary/v1/?ids=' + _this2.deleteIds).then(function (res) {\n _this2.loadData(_this2.params);\n });\n });\n },\n // 上报或者撤回\n handleAppear: function handleAppear(data, status) {\n var _this3 = 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 _this3.tableLoading = true;\n req.post(portal + '/bizReformDemandAnalysisLibrary/v1/updateAuditStatus', data).then(function (res) {\n if (res.data.state) {\n _this3.$message.success(\"\".concat(msg, \"\\u6210\\u529F\"));\n } else {\n _this3.$message.error(\"\".concat(msg, \"\\u5931\\u8D25\"));\n }\n\n _this3.loadData(_this3.params);\n });\n });\n },\n // 详情\n handleLookDetiles: function handleLookDetiles(row) {\n var _this4 = 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 _this4.loading = false;\n\n if (res.status == 200) {\n _this4.dialogForm = res && res.data || {};\n _this4.dialogForm = _objectSpread(_objectSpread({}, row), _this4.dialogForm);\n var data = _this4.dialogForm;\n\n _this4.getByDemandFiledData('ggbb_ssly', data.demandField);\n\n if (data.demandRunway) {\n data.demandRunway = data.demandRunway.toString();\n }\n\n _this4.disabledDetils = true;\n _this4.activeCollapse1 = ['1', '2'];\n }\n }).catch(function () {\n _this4.loading = false;\n });\n },\n //修改\n handleDbClick: function handleDbClick(row) {\n var _this5 = 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 _this5.loading = false;\n\n if (res.status == 200) {\n _this5.dialogForm = res && res.data || {};\n _this5.dialogForm = _objectSpread(_objectSpread({}, row), {}, {\n approvalComments: _this5.dialogForm.approvalComments\n });\n var data = _this5.dialogForm;\n\n _this5.getByDemandFiledData('ggbb_ssly', data.demandField);\n\n if (data.demandRunway) {\n data.demandRunway = data.demandRunway.toString();\n }\n\n _this5.disabledDetils = false;\n _this5.edit = true;\n _this5.activeCollapse1 = ['1', '2'];\n }\n }).catch(function () {\n _this5.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 == 'demandTopic' ? '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.loadData(this.params);\n },\n // 弹层关闭\n handleDialogClose: function handleDialogClose() {\n this.dialog.visible = false;\n },\n // 表单提交保存\n submit: function submit(status) {\n var _this6 = 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 (_this6.edit) {\n url = '/bizReformDemandAnalysisLibrary/v1/updateInfo';\n } else {\n url = '/bizReformDemandAnalysisLibrary/v1/';\n }\n\n if (valid) {\n _this6.loading = true;\n req.post(portal + url, _this6.dialogForm).then(function (res) {\n if (res.data.state) {\n _this6.dialog.visible = false;\n\n _this6.loadData(_this6.params);\n }\n\n _this6.loading = false;\n }).catch(function () {\n _this6.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]}