{"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\\MattersAdvanceDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\MeetingManagement\\dialog\\MattersAdvanceDialog.vue","mtime":1716260780738},{"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.regexp.split\";\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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 RecordPopover from '@/components/dialog/RecordPopover.vue';\nimport UploadFile from '@/components/uploadFile/index.vue';\nimport FileList from '@/components/uploadFile/FileList.vue';\nimport req from '@/request.js';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport utils from '@/utils.js';\nvar portal = window.context.portal;\nexport default {\n name: 'ReformPilotManageDialog',\n components: {\n UploadFile: UploadFile,\n FileList: FileList,\n RecordPopover: RecordPopover\n },\n mixins: [TableMixin],\n data: function data() {\n var _ref;\n\n return _ref = {\n formVisible: false,\n reqLoading: false,\n markLoading: false,\n showNews: false,\n dialogVisible: false,\n apperLoading: false,\n saveLoading: false,\n fileList: [],\n title: '',\n queryParam: {\n pageBean: {\n page: 1,\n pageSize: -1\n }\n },\n rules: {\n progress: [{\n required: true,\n message: '请条目式列举落实该交办任务面临的主要困难和问题',\n trigger: 'blur'\n }],\n measures: [{\n required: true,\n message: '请条目式列举落实该交办任务开展的工作',\n trigger: 'blur'\n }],\n abutmentStatus: [{\n required: true,\n message: '请选择推进状态',\n trigger: 'blur'\n }],\n remarks: [{\n required: true,\n message: '请输入下步工作计划',\n trigger: 'blur'\n }]\n },\n params: {\n pageBean: {\n page: 1,\n pageSize: 20,\n showTotal: true\n },\n params: {},\n querys: []\n },\n classified: 0\n }, _defineProperty(_ref, \"apperLoading\", false), _defineProperty(_ref, \"saveLoading\", false), _defineProperty(_ref, \"activeCollapse\", ['1', '2', '3', '4']), _defineProperty(_ref, \"specificDetailOptions\", []), _defineProperty(_ref, \"primarList\", []), _defineProperty(_ref, \"tableData\", {\n files: []\n }), _defineProperty(_ref, \"showDetails\", false), _defineProperty(_ref, \"showAdd\", false), _defineProperty(_ref, \"projectInfo\", {}), _defineProperty(_ref, \"historyData\", null), _defineProperty(_ref, \"hisData\", []), _defineProperty(_ref, \"unitNameArr\", []), _defineProperty(_ref, \"groupName\", []), _defineProperty(_ref, \"saveValueData\", null), _defineProperty(_ref, \"abutmentStatusList\", []), _ref;\n },\n created: function created() {\n this.abutmentStatusList = utils.getDictItemsFromCache('xqzt');\n },\n methods: {\n //接收父组件信息\n openForm: function openForm(row, title) {\n var _this = this;\n\n console.log(row);\n this.title = title;\n this.title = title;\n this.formVisible = true;\n this.projectInfo = row;\n this.groupName = JSON.parse(row.groupName).map(function (item) {\n return item.groupName;\n });\n this.unitNameArr = row.cooperativeUnitName == '' ? [] : row.cooperativeUnitName.split(',');\n\n if (this.title == '详情') {\n this.showDetails = true;\n }\n\n var list = [];\n var param = {\n querys: [],\n pageBean: {\n pageSize: 2\n },\n sorter: [{\n direction: 'DESC',\n property: 'LAST_TIME_'\n }]\n };\n\n if (row.pushStatus) {\n this.reqLoading = true;\n param.querys.push({\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'DETAILS_ID_',\n relation: 'AND',\n value: row.id\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'UNIT_ID_',\n relation: 'AND',\n value: row.unitId\n });\n req.post(portal + '/bizMeetingEventPush/v1/queryHistory', param).then(function (res) {\n if (res.data.state) {\n list = res.data.value;\n\n if (_this.title == '详情' || _this.title == '编辑') {\n _this.tableData = list[0];\n _this.tableData.abutmentStatus = list[0].abutmentStatus + '';\n _this.tableData.approvalCommentsList = list[0] && list[0].approvalComments ? list[0].approvalComments.split('$_$') : [];\n _this.classified = _this.tableData.classified;\n\n if (list[1] && (list[1].status == 2 || list[1].status == 2 || list[1].status == 5)) {\n _this.historyData = list[1] || null;\n _this.historyData.approvalCommentsList = list[1] && list[1].approvalComments ? list[1].approvalComments.split('$_$') : [];\n } else {\n _this.historyData = null;\n }\n } else {\n _this.historyData = list[0] || null;\n _this.historyData.approvalCommentsList = list[0] && list[0].approvalComments ? list[0].approvalComments.split('$_$') : [];\n }\n\n if (_this.historyData && _this.historyData.abutmentStatus) {\n _this.abutmentStatusList.forEach(function (item) {\n if (_this.historyData.status == 5 && item.value - 0 < _this.historyData.abutmentStatus - 0) {\n item.disabled = true;\n }\n });\n }\n\n _this.reqLoading = false;\n } else {\n _this.reqLoading = false;\n }\n });\n }\n },\n // 表单提交保存\n submit: function submit(status) {\n var _this2 = this;\n\n if (status == 1) {\n this.saveLoading = true;\n }\n\n if (status == 0) {\n this.apperLoading = true;\n }\n\n this.$refs.form.validate(function (valid) {\n if (valid) {\n _this2.loading = true;\n var url = null;\n var data = JSON.parse(JSON.stringify(_this2.projectInfo));\n data.detailsId = data.id;\n delete data.id;\n data = _objectSpread(_objectSpread({}, data), _this2.tableData);\n data.classified = _this2.classified;\n data.files = _this2.tableData.files.map(function (item) {\n if (item.response) {\n item.id = item.response.fileId;\n }\n\n return item;\n });\n delete data.bizMeetingEventPushList;\n\n if (data.files.length >= 1) {\n data.classified = 0;\n } // else {\n // data.classified = 1\n // }\n\n\n data.status = status;\n url = '/bizMeetingEventPush/v1/saveOrUpdateEntity';\n\n if (data.abutmentStatus == '3' && !data.classified == '1') {\n if (!data.files.length && data.classified == '0') {\n _this2.$confirm('请上传佐证材料后保存。', '提示', {\n confirmButtonText: '立即上传',\n cancelButtonText: '关闭',\n type: 'error'\n }).then(function () {\n _this2.saveValueData = data;\n\n _this2.openUploade();\n });\n } else {\n _this2.saveData(url, data);\n }\n } else {\n _this2.saveData(url, data);\n }\n } else {\n _this2.saveLoading = false;\n _this2.apperLoading = false;\n return false;\n }\n });\n },\n saveData: function saveData(url, data) {\n var _this3 = this;\n\n this.markLoading = true;\n req.post(portal + url, data).then(function (res) {\n if (res.data.state) {\n _this3.saveLoading = false;\n _this3.apperLoading = false;\n _this3.formVisible = false;\n\n _this3.handleClose(); // this.$parent.loadData(this.params)\n\n\n _this3.$parent.handleSearch();\n\n _this3.$message.success('保存成功');\n\n _this3.markLoading = false;\n } else {\n _this3.saveLoading = false;\n _this3.apperLoading = false;\n\n _this3.$message.error('保存失败');\n\n _this3.markLoading = false;\n }\n\n _this3.loading = false;\n }).catch(function () {\n _this3.loading = false;\n _this3.saveLoading = false;\n _this3.apperLoading = false;\n });\n },\n setAipher: function setAipher(val) {\n // this.tableData.classified = '文件涉密,已通过内网邮件上传。'\n this.classified = 1;\n this.cipher = val;\n\n if (this.saveLoading == true) {\n var url = '/bizMeetingEventPush/v1/saveOrUpdateEntity';\n var value = JSON.parse(JSON.stringify(this.saveValueData));\n value.classified = 1;\n this.saveData(url, value);\n }\n },\n // 根据项目id查询品牌推进信息\n getformById: function getformById(id) {\n brand.getformById(id, function (res) {\n console.log(res);\n });\n },\n // ------------\n // 文件相关\n openUploade: function openUploade() {\n this.$refs.uploadFile.open('ProjectExperience');\n },\n setFileList: function setFileList(file) {\n this.tableData.files.push(file);\n this.classified = 0;\n\n if (this.saveLoading == true) {\n var url = '/bizMeetingEventPush/v1/saveOrUpdateEntity';\n var value = JSON.parse(JSON.stringify(this.saveValueData));\n value.classified = 0;\n this.saveData(url, value);\n }\n },\n changeFileList: function changeFileList(data, index) {\n this.tableData.files = data;\n },\n // ------------\n handleClose: function handleClose() {\n if (this.$refs['form']) {\n this.$refs['form'].clearValidate();\n }\n\n this.tableData = {};\n this.formVisible = false;\n this.showDetails = false;\n this.showAdd = false;\n this.historyData = null;\n this.title = '';\n this.tableData = {\n files: []\n };\n this.classified = 0;\n this.abutmentStatusList.forEach(function (item) {\n item.disabled = false;\n });\n }\n }\n};",null]}