{"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\\MeetingManagement\\dialog\\DocumentEntryForm.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\MeetingManagement\\dialog\\DocumentEntryForm.vue","mtime":1728439384927},{"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/es7.symbol.async-iterator\";\nimport \"core-js/modules/es6.symbol\";\nimport \"core-js/modules/es6.array.from\";\nimport \"core-js/modules/es6.regexp.to-string\";\nimport _toConsumableArray from \"D:/jenkins/workspace/reform-fvue/node_modules/@babel/runtime/helpers/esm/toConsumableArray\";\nimport \"core-js/modules/es6.regexp.split\";\nimport _defineProperty from \"D:/jenkins/workspace/reform-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.string.iterator\";\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\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === \"undefined\" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 UploadFile from '@/components/uploadFile/index.vue';\nimport FileList from '@/components/uploadFile/FileList.vue';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport meet from '@/api/meeting';\nimport RejectInfoBlockDialog from '@/components/dialog/RejectInfoBlockDialog.vue';\nexport default {\n name: 'ReformPilotManageDialog',\n components: {\n UploadFile: UploadFile,\n FileList: FileList,\n RejectInfoBlockDialog: RejectInfoBlockDialog\n },\n mixins: [TableMixin],\n data: function data() {\n var _this = this;\n\n var checkInvs = function checkInvs(rule, value, callback) {\n if (!_this.unitIds.length) {\n return callback(new Error('请选择对接责任单位'));\n } else {\n callback();\n }\n };\n\n return {\n btnShow: false,\n formVisible: false,\n reqLoading: false,\n markLoading: false,\n activeCollapse: ['1', '2'],\n fileList: [],\n queryParam: {\n pageBean: {\n page: 1,\n pageSize: -1\n }\n },\n rules: {\n fileName: {\n required: true,\n message: '请输入文件名称',\n trigger: 'blur'\n },\n reviewTime: {\n required: true,\n message: '请选择审议时间',\n trigger: 'blur'\n },\n meetingName: {\n required: true,\n message: '请输入会议名称',\n trigger: 'blur'\n },\n ourCityFileName: {\n required: true,\n message: '请选择我市对接文件名称',\n trigger: 'change'\n },\n invs: {\n required: true,\n validator: checkInvs,\n trigger: 'change'\n }\n },\n rules1: {\n abutmentType: {\n required: true,\n message: '请选择对接方式',\n trigger: 'blur'\n },\n abutmentStatus: {\n required: true,\n message: '请选择对接状态',\n trigger: 'blur'\n },\n abutmentDetailed: {\n required: true,\n message: '请输入对接请求内容',\n trigger: 'blur'\n }\n },\n addFileIndex: null,\n histroyData: null,\n isUpdate: false,\n isUpdateEntry: false,\n isHistroy: false,\n dialogForm: {},\n unitId: [],\n unitIds: [],\n unitArr: [],\n isMultiple: false,\n dialogForm1: {},\n options: [{\n value: 0,\n label: '已完成对接'\n }, {\n value: 1,\n label: '未完成对接'\n }],\n unitNames: [],\n classified: 0,\n unitId1: '',\n approvalComments: [],\n unitObj: {}\n };\n },\n created: function created() {},\n methods: {\n //\n openForm: function openForm(item) {\n var _this2 = this;\n\n console.log(item);\n this.formVisible = true;\n\n if (item && item.id) {\n this.reqLoading = true;\n var arr = item.unitId && (item.status || item.status == 0) ? [this.getEntryById(item.id), this.getHistroyDetail({\n id: item.id,\n unitId: item.unitId\n })] : [this.getEntryById(item.id)];\n var unitId = item.unitId,\n unitName = item.unitName,\n unitCode = item.unitCode,\n unitGrade = item.unitGrade;\n this.unitObj = {\n unitId: unitId,\n unitName: unitName,\n unitCode: unitCode,\n unitGrade: unitGrade\n };\n Promise.all(arr).then(function () {\n _this2.reqLoading = false;\n });\n }\n },\n handleSelect: function handleSelect(val) {\n var _this3 = this;\n\n this.options.forEach(function (item) {\n if (item.value == val) {\n _this3.dialogForm.propulsiveDetailed = item.label;\n }\n });\n },\n // ------------\n clearUnitIds: function clearUnitIds(e) {\n this.isMultiple = e == 1 ? true : false;\n this.unitIds = [];\n },\n getTreeItem: function getTreeItem(data, id) {\n var _this4 = this;\n\n data.map(function (item) {\n if (item.id == id) {\n _this4.treeItem = item;\n } else {\n if (item.children) {\n _this4.getTreeItem(item.children, id);\n }\n }\n });\n },\n getParentsById: function getParentsById(list, id) {\n var _iterator = _createForOfIteratorHelper(list),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var item = _step.value;\n\n if (item.id == id) {\n return [item.id];\n }\n\n if (item.children) {\n var node = this.getParentsById(item.children, id);\n\n if (node !== undefined) {\n node.unshift(item.id);\n return node;\n }\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n },\n // 表单提交保存\n handleAddOrUpdate: function handleAddOrUpdate(status) {\n var _this5 = this;\n\n this.$refs.form.validate(function (valid) {\n if (valid) {\n var message = status == 0 ? '确认提交本次录入保存为草稿吗?' : '确认提交本次录入并分发吗?';\n\n _this5.$confirm(message, '更新提示', {\n confirmButtonText: '确认',\n cancelButtonText: '取消',\n type: 'success'\n }).then(function () {\n _this5.markLoading = true;\n var data = JSON.parse(JSON.stringify(_this5.dialogForm));\n var arr = [];\n var unitIds = JSON.parse(JSON.stringify(_this5.unitIds));\n var invIds = _this5.unitArr ? _this5.unitArr.map(function (item) {\n return item.unitId;\n }) : [];\n unitIds.forEach(function (idArr) {\n var id = idArr.pop();\n\n if (invIds.indexOf(id) !== -1) {\n var index = invIds.indexOf(id);\n arr.push(_this5.unitArr[index]);\n } else {\n _this5.getTreeItem(_this5.unitTreeData, id);\n\n var _this5$treeItem = _this5.treeItem,\n unitCode = _this5$treeItem.code,\n unitGrade = _this5$treeItem.grade,\n unitId = _this5$treeItem.id,\n unitName = _this5$treeItem.name;\n arr.push({\n unitCode: unitCode,\n unitGrade: unitGrade,\n unitId: unitId,\n unitName: unitName\n });\n }\n });\n data.invs = arr;\n data.sendStatus = status;\n _this5.isUpdate ? _this5.upadteDocumentEntry(data) : _this5.addDocumentEntry(data);\n });\n } else {\n return false;\n }\n });\n },\n // 新增\n addDocumentEntry: function addDocumentEntry(data) {\n var _this6 = this;\n\n meet.documentEntry(data, function (res) {\n if (res.state) {\n _this6.handleClose();\n\n _this6.markLoading = false;\n\n _this6.$message.success(\"\\u6587\\u4EF6\\u4EA4\\u529E\\u5F55\\u5165\\u6210\\u529F\");\n\n _this6.$emit('flushed');\n } else {\n _this6.markLoading = false;\n\n _this6.$message.success(\"\\u6587\\u4EF6\\u4EA4\\u529E\\u5F55\\u5165\\u5931\\u8D25\");\n }\n });\n },\n // 修改\n upadteDocumentEntry: function upadteDocumentEntry(data) {\n var _this7 = this;\n\n meet.updateDocumentEntry(data, function (res) {\n if (res.state) {\n _this7.handleClose();\n\n _this7.markLoading = false;\n\n _this7.$message.success(\"\\u6587\\u4EF6\\u4EA4\\u529E\\u5F55\\u5165\\u4FEE\\u6539\\u6210\\u529F\");\n\n _this7.$emit('flushed');\n } else {\n _this7.markLoading = false;\n\n _this7.$message.success(\"\\u6587\\u4EF6\\u4EA4\\u529E\\u5F55\\u5165\\u4FEE\\u6539\\u5931\\u8D25\");\n }\n });\n },\n // 更新部分\n // 保存草稿\n handleDraftOrReport: function handleDraftOrReport(status) {\n var _this8 = this;\n\n this.$refs.form1.validate(function (valid) {\n var flag = valid && _this8.classified || valid && _this8.fileList.length > 0;\n\n if (flag) {\n var message = status == 0 ? '确认提交本次更新保存为草稿吗?' : '确认提交本次更新并上报吗?';\n\n _this8.$confirm(message, '更新提示', {\n confirmButtonText: '确认',\n cancelButtonText: '取消',\n type: 'success'\n }).then(function () {\n _this8.markLoading = true;\n var data = JSON.parse(JSON.stringify(_this8.dialogForm1));\n var id = _this8.dialogForm.id;\n data.status = status;\n data.meetingId = id;\n data.classified = _this8.classified;\n data.ids = _this8.fileList.length ? _this8.fileList.map(function (item) {\n return item.id || item.response.fileId;\n }) : [];\n data = _objectSpread(_objectSpread({}, data), _this8.unitObj);\n console.log(data);\n\n if (!data.ids.length && !data.classified) {\n data.classified = 0;\n }\n\n _this8.isUpdateEntry ? _this8.updateEntry(data) : _this8.addEntry(data);\n });\n } else {\n if (!valid) {\n _this8.$confirm('请填写完整信息。', '提示', {\n cancelButtonText: '关闭',\n showConfirmButton: false,\n type: 'error'\n });\n } else if (_this8.classified != 1 && _this8.fileList.length == 0) {\n _this8.$confirm('请上传佐证材料后保存。', '提示', {\n confirmButtonText: '立即上传',\n cancelButtonText: '关闭',\n type: 'error'\n }).then(function () {\n _this8.openUploade();\n });\n }\n }\n });\n },\n // 录入更新\n addEntry: function addEntry(data) {\n var _this9 = this;\n\n meet.addEntry(data, function (res) {\n if (res.state) {\n _this9.handleClose();\n\n _this9.markLoading = false;\n\n _this9.$message.success(\"\\u6587\\u4EF6\\u72B6\\u6001\\u5F55\\u5165\\u66F4\\u65B0\\u6210\\u529F\");\n\n _this9.$emit('flushed');\n } else {\n _this9.markLoading = false;\n\n _this9.$message.success(\"\\u6587\\u4EF6\\u72B6\\u6001\\u5F55\\u5165\\u66F4\\u65B0\\u5931\\u8D25\");\n }\n });\n },\n // 修改更新\n updateEntry: function updateEntry(data) {\n var _this10 = this;\n\n meet.updateEntry(data, function (res) {\n if (res.state) {\n _this10.handleClose();\n\n _this10.markLoading = false;\n\n _this10.$message.success(\"\\u6587\\u4EF6\\u72B6\\u6001\\u4FEE\\u6539\\u66F4\\u65B0\\u6210\\u529F\");\n\n _this10.$emit('flushed');\n } else {\n _this10.markLoading = false;\n\n _this10.$message.success(\"\\u6587\\u4EF6\\u72B6\\u6001\\u4FEE\\u6539\\u66F4\\u65B0\\u5931\\u8D25\");\n }\n });\n },\n // 查询详情\n getHistroyDetail: function getHistroyDetail(data) {\n var _this11 = this;\n\n return new Promise(function (resolve) {\n meet.getHistroyDetail(data, function (res) {\n if ((res.value[0].status == 3 || res.value[0].status == 2 || res.value[0].status == 4 || res.value[0].status == 5) && _this11.$route.name != 'MeetingAudit' && _this11.$route.name != 'AdvanceAudits') {\n _this11.histroyData = res.value[0];\n _this11.histroyData.approvalComments = res.value[0] && res.value[0].approvalComments ? res.value[0].approvalComments.split('$_$') : [];\n } else {\n _this11.dialogForm1 = res.value[0];\n _this11.fileList = res.value[0].files ? res.value[0].files : [];\n _this11.classified = res.value[0].classified ? res.value[0].classified : 0;\n _this11.approvalComments = res.value[0] && res.value[0].approvalComments ? res.value[0].approvalComments.split('$_$') : [];\n\n if (res.value[1]) {\n _this11.histroyData = res.value[1];\n _this11.histroyData.approvalComments = res.value[1] && res.value[1].approvalComments ? res.value[1].approvalComments.split('$_$') : [];\n }\n }\n\n resolve();\n });\n });\n },\n // 根据id查询录入详情\n getEntryById: function getEntryById(id) {\n var _this12 = this;\n\n return new Promise(function (resolve) {\n meet.getEntryById(id, function (res) {\n _this12.dialogForm = res.value;\n var invs = res.value.invs;\n var ids = invs && invs.length ? invs.map(function (item) {\n return item.unitId;\n }) : [];\n _this12.unitArr = invs;\n ids.forEach(function (id) {\n var node = _this12.getParentsById(_this12.unitTreeData, id);\n\n _this12.unitIds = [].concat(_toConsumableArray(_this12.unitIds), [node]);\n });\n _this12.unitNames = invs && invs.length ? invs.map(function (item) {\n return item.unitName;\n }) : [];\n resolve();\n });\n });\n },\n setAipher: function setAipher(val) {\n this.classified = 1;\n this.cipher = val; // this.handleDraftOrReport(0)\n },\n // 文件相关\n openUploade: function openUploade(index) {\n this.addFileIndex = index;\n this.$refs.uploadFile.open('MeetFile');\n },\n setFileList: function setFileList(file) {\n this.fileList.push(file);\n this.classified = 0;\n },\n changeFileList: function changeFileList(data) {\n this.fileList = data;\n console.log(this.fileList);\n\n if (this.fileList.length == 0) {\n this.classified = 0;\n }\n },\n // ------------\n handleClose: function handleClose() {\n this.formVisible = false;\n this.dialogForm = {};\n this.dialogForm1 = {};\n this.unitIds = [];\n this.unitId = [];\n this.histroyData = null;\n this.classified = 0;\n },\n // 通过\n handleVerify: function handleVerify() {\n var _this13 = this;\n\n this.$confirm('确认通过?', '提示', {\n confirmButtonText: '确认',\n cancelButtonText: '取消',\n type: 'success'\n }).then(function () {\n _this13.markLoading = true;\n var data = JSON.parse(JSON.stringify(_this13.dialogForm1));\n var id = _this13.dialogForm.id;\n data.status = _this13.$route.name == 'MeetingAudit' ? 3 : 5;\n data.meetingId = id;\n data.classified = _this13.classified;\n data.ids = _this13.fileList.length ? _this13.fileList.map(function (item) {\n return item.id || item.response.fileId;\n }) : [];\n data = _objectSpread(_objectSpread({}, data), _this13.unitObj);\n console.log(data);\n\n if (!data.ids.length && !data.classified) {\n data.classified = 0;\n }\n\n meet.updateEntry(data, function (res) {\n if (res.state) {\n _this13.handleClose();\n\n _this13.markLoading = false;\n\n _this13.$message.success(\"\\u901A\\u8FC7\\u6210\\u529F\");\n\n _this13.$emit('flushed');\n } else {\n _this13.markLoading = false;\n\n _this13.$message.success(\"\\u901A\\u8FC7\\u5931\\u8D25\");\n }\n });\n });\n },\n openInputVisible: function openInputVisible() {\n var _this14 = this;\n\n this.$confirm('确认驳回吗?', this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'error'\n }).then(function () {\n _this14.$refs.RejectInfoBlockDialog.open();\n });\n },\n sendRejectInfo: function sendRejectInfo(approvalComments) {\n var _this15 = this;\n\n this.markLoading = true;\n var data = JSON.parse(JSON.stringify(this.dialogForm1));\n var id = this.dialogForm.id;\n data.status = this.$route.name == 'MeetingAudit' ? 2 : 4;\n data.approvalComments = approvalComments;\n data.meetingId = id;\n data.classified = this.classified;\n data.ids = this.fileList.length ? this.fileList.map(function (item) {\n return item.id || item.response.fileId;\n }) : [];\n data = _objectSpread(_objectSpread({}, data), this.unitObj);\n console.log(data);\n\n if (!data.ids.length && !data.classified) {\n data.classified = 0;\n }\n\n meet.updateEntry(data, function (res) {\n if (res.state) {\n _this15.handleClose();\n\n _this15.markLoading = false;\n\n _this15.$message.success(\"\\u9A73\\u56DE\\u6210\\u529F\");\n\n _this15.$emit('flushed');\n } else {\n _this15.markLoading = false;\n\n _this15.$message.success(\"\\u9A73\\u56DE\\u5931\\u8D25\");\n }\n });\n },\n saveAndVerify: function saveAndVerify() {\n var _this16 = this;\n\n this.markLoading = true;\n var data = JSON.parse(JSON.stringify(this.dialogForm));\n var arr = [];\n var unitIds = JSON.parse(JSON.stringify(this.unitIds));\n var invIds = this.unitArr ? this.unitArr.map(function (item) {\n return item.unitId;\n }) : [];\n unitIds.forEach(function (idArr) {\n var id = idArr.pop();\n\n if (invIds.indexOf(id) !== -1) {\n var index = invIds.indexOf(id);\n arr.push(_this16.unitArr[index]);\n } else {\n _this16.getTreeItem(_this16.unitTreeData, id);\n\n var _this16$treeItem = _this16.treeItem,\n unitCode = _this16$treeItem.code,\n unitGrade = _this16$treeItem.grade,\n unitId = _this16$treeItem.id,\n unitName = _this16$treeItem.name;\n arr.push({\n unitCode: unitCode,\n unitGrade: unitGrade,\n unitId: unitId,\n unitName: unitName\n });\n }\n });\n data.invs = arr;\n meet.updateDocumentEntry(data, function (res) {\n if (res.state) {\n _this16.markLoading = false;\n\n _this16.handleVerify();\n } else {\n _this16.markLoading = false;\n }\n });\n },\n saveAndOpenInputVisible: function saveAndOpenInputVisible() {\n var _this17 = this;\n\n this.markLoading = true;\n var data = JSON.parse(JSON.stringify(this.dialogForm));\n var arr = [];\n var unitIds = JSON.parse(JSON.stringify(this.unitIds));\n var invIds = this.unitArr ? this.unitArr.map(function (item) {\n return item.unitId;\n }) : [];\n unitIds.forEach(function (idArr) {\n var id = idArr.pop();\n\n if (invIds.indexOf(id) !== -1) {\n var index = invIds.indexOf(id);\n arr.push(_this17.unitArr[index]);\n } else {\n _this17.getTreeItem(_this17.unitTreeData, id);\n\n var _this17$treeItem = _this17.treeItem,\n unitCode = _this17$treeItem.code,\n unitGrade = _this17$treeItem.grade,\n unitId = _this17$treeItem.id,\n unitName = _this17$treeItem.name;\n arr.push({\n unitCode: unitCode,\n unitGrade: unitGrade,\n unitId: unitId,\n unitName: unitName\n });\n }\n });\n data.invs = arr;\n meet.updateDocumentEntry(data, function (res) {\n if (res.state) {\n _this17.markLoading = false;\n\n _this17.openInputVisible();\n } else {\n _this17.markLoading = false;\n }\n });\n },\n saveOneAll: function saveOneAll() {\n var _this18 = this;\n\n this.$confirm('确认修改保存吗?', '提示', {\n confirmButtonText: '确认',\n cancelButtonText: '取消',\n type: 'success'\n }).then(function () {\n _this18.markLoading = true;\n var data = JSON.parse(JSON.stringify(_this18.dialogForm1));\n var id = _this18.dialogForm.id;\n data.meetingId = id;\n data.classified = _this18.classified;\n data.ids = _this18.fileList.length ? _this18.fileList.map(function (item) {\n return item.id || item.response.fileId;\n }) : [];\n data = _objectSpread(_objectSpread({}, data), _this18.unitObj);\n console.log(data);\n\n if (!data.ids.length && !data.classified) {\n data.classified = 0;\n }\n\n _this18.updateEntry(data);\n });\n },\n saveAll: function saveAll() {\n var _this19 = this;\n\n this.$confirm('确认修改保存吗?', '提示', {\n confirmButtonText: '确认',\n cancelButtonText: '取消',\n type: 'success'\n }).then(function () {\n _this19.markLoading = true;\n var data = JSON.parse(JSON.stringify(_this19.dialogForm));\n var arr = [];\n var unitIds = JSON.parse(JSON.stringify(_this19.unitIds));\n var invIds = _this19.unitArr ? _this19.unitArr.map(function (item) {\n return item.unitId;\n }) : [];\n unitIds.forEach(function (idArr) {\n var id = idArr.pop();\n\n if (invIds.indexOf(id) !== -1) {\n var index = invIds.indexOf(id);\n arr.push(_this19.unitArr[index]);\n } else {\n _this19.getTreeItem(_this19.unitTreeData, id);\n\n var _this19$treeItem = _this19.treeItem,\n unitCode = _this19$treeItem.code,\n unitGrade = _this19$treeItem.grade,\n unitId = _this19$treeItem.id,\n unitName = _this19$treeItem.name;\n arr.push({\n unitCode: unitCode,\n unitGrade: unitGrade,\n unitId: unitId,\n unitName: unitName\n });\n }\n });\n data.invs = arr;\n meet.updateDocumentEntry(data, function (res) {\n if (res.state) {\n var data1 = JSON.parse(JSON.stringify(_this19.dialogForm1));\n var id = _this19.dialogForm.id;\n data1.meetingId = id;\n data1.classified = _this19.classified;\n data1.ids = _this19.fileList.length ? _this19.fileList.map(function (item) {\n return item.id || item.response.fileId;\n }) : [];\n data1 = _objectSpread(_objectSpread({}, data1), _this19.unitObj);\n console.log(data1);\n\n if (!data1.ids.length && !data1.classified) {\n data.classified = 0;\n }\n\n _this19.updateEntry(data1);\n } else {\n _this19.markLoading = false;\n }\n });\n });\n }\n }\n};",null]}