{"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\\ReformPilotManage\\components\\updateAll.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\ReformPilotManage\\components\\updateAll.vue","mtime":1718246870654},{"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.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 \"core-js/modules/es6.regexp.split\";\nimport \"core-js/modules/es6.regexp.replace\";\nimport \"core-js/modules/es6.string.iterator\";\nimport _toConsumableArray from \"D:/jenkins/workspace/reform-fvue/node_modules/@babel/runtime/helpers/esm/toConsumableArray\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.function.name\";\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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 pilot from '@/api/pilotprojects';\nimport FormResultsDialog from \"./FormResultsDialog\";\nimport filePreview from '@/components/FilePreview/filePreview.vue';\nimport UploadFile from '@/components/uploadFile/index.vue';\nimport FileList from '@/components/uploadFile/FileList.vue';\nimport RejectInfoDialog from '@/components/dialog/RejectInfoDialog.vue';\nimport sat from '@/api/satisfaction/satisfaction';\nimport { TableMixin } from '@/mixins/tableMixin';\nvar portal = window.context.portal;\nexport default {\n props: {\n sdcjDictName: {\n type: String,\n default: 'sdcj'\n }\n },\n name: 'updateAll',\n components: {\n FormResultsDialog: FormResultsDialog,\n filePreview: filePreview,\n UploadFile: UploadFile,\n RejectInfoDialog: RejectInfoDialog,\n FileList: FileList\n },\n mixins: [TableMixin],\n data: function data() {\n var _this = this;\n\n var checkPilotSupervisor = function checkPilotSupervisor(rule, value, callback) {\n if (_this.parameter.pilotLevel === '1') {\n if (!value) {\n return callback(new Error('请选择主管部委'));\n } else {\n callback();\n }\n } else {\n callback();\n }\n };\n\n var checkUnitName = function checkUnitName(rule, value, callback) {\n if (_this.unitValue && !_this.unitValue.length) {\n return callback(new Error('请选择市级主管部门'));\n } else {\n callback();\n }\n };\n\n var checkAcceptanceTime = function checkAcceptanceTime(rule, value, callback) {\n if (_this.parameter.timePeriod == 1) {\n if (!value) {\n return callback(new Error('请根据文件规定的试点期限选择验收时间'));\n } else {\n callback();\n }\n } else {\n callback();\n }\n };\n\n var checkInvs = function checkInvs(rule, value, callback) {\n if (!_this.districtValue.length) {\n return callback(new Error('请选择部署该试点项目的文件中明确的所有参与试点区县'));\n } else {\n callback();\n }\n };\n\n return {\n actionBtn: false,\n classified: 0,\n //0代表不涉密, 1代表涉密\n timeValue: null,\n options: [{\n value: 0,\n label: '长期'\n }, {\n value: 1,\n label: '限时'\n }],\n reqLoading: false,\n markLoading: false,\n dialogVisible: false,\n fileList: [],\n treeData: [],\n unitValue: [],\n formIsShow: true,\n isEdit: false,\n btnIsShow: false,\n activeCollapse1: ['2', '3'],\n visible: false,\n dialogTitle: '',\n rules: {\n timePeriod: [{\n required: true,\n message: '请选择试点期限',\n trigger: 'change'\n }],\n unitName: [{\n required: true,\n validator: checkUnitName,\n trigger: 'change'\n }],\n taskDetails: [{\n required: true,\n message: '请条目式总结提炼部署该试点项目文件中关于试点任务的描述',\n trigger: 'blur'\n }],\n documentBasis: [{\n required: true,\n message: '请输入部署该试点项目的文件名称',\n trigger: 'blur'\n }],\n pilotProjectName: [{\n required: true,\n message: '请输入试点项目名称',\n trigger: 'blur'\n }],\n pilotLevel: [{\n required: true,\n message: '请选择试点层级',\n trigger: 'blur'\n }],\n invs: [{\n required: true,\n validator: checkInvs,\n trigger: 'change'\n }],\n pilotSupervisor: [{\n required: true,\n validator: checkPilotSupervisor,\n trigger: 'blur'\n }],\n pilotField: [{\n required: true,\n message: '请选择所属领域',\n trigger: 'blur'\n }],\n pilotRunway: [{\n required: true,\n message: '请选择所属跑道',\n trigger: 'blur'\n }],\n startTime: [{\n required: true,\n message: '请选择部署该试点项目的文件印发时间',\n trigger: 'blur'\n }],\n acceptanceTime: [{\n required: true,\n // message: '请根据文件规定的试点期限选择验收时间',\n validator: checkAcceptanceTime,\n trigger: 'blur'\n }],\n pilotTarget: [{\n required: true,\n message: '请条目式总结提炼部署该试点项目文件中关于目标的描述',\n trigger: 'blur'\n }]\n },\n queryParam: {\n pageBean: {\n page: 1,\n pageSize: -1\n }\n },\n parameter: {\n pilotProjectName: '',\n docNo: '',\n pilotLevel: '2',\n pilotSupervisor: '',\n startTime: '',\n acceptanceTime: '',\n classified: 1,\n invs: [],\n pilotTarget: '',\n taskDetails: '',\n status: '',\n id: '',\n docYear: '',\n docName: '',\n docNum: '',\n unitId: '',\n unitName: '',\n unitCode: '',\n unitGrade: '',\n pilotField: '',\n pilotRunway: '',\n documentBasis: '',\n timePeriod: null\n },\n parameter1: {\n propulsiveStatus: '',\n propulsiveDetails: '',\n existingProblems: '',\n workPlan: '',\n id: '',\n actualTime: ''\n },\n rules2: {\n propulsiveStatus: [{\n required: true,\n message: '请选择推进状态',\n trigger: 'change'\n }],\n actualTime: [{\n required: true,\n message: '请选择验收状态',\n trigger: 'change'\n }]\n },\n districtValue: [],\n districtName: [],\n dataDocNo: '',\n routeName: '',\n saveLoading: false,\n saveLoading1: false,\n tableIndex: undefined,\n reqData: {\n groupRelation: 'AND',\n groupTree: {},\n pageBean: {\n page: 1,\n pageSize: 10,\n showTotal: true\n },\n params: {},\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: '',\n relation: 'AND',\n value: {}\n }],\n sorter: [{\n direction: 'ASC',\n property: ''\n }]\n },\n tableData: [],\n isEdit2: false,\n recordsId: '',\n deleteData: [],\n errorText: '',\n errorNum: null,\n districtData: [],\n isUpdate: false,\n pickerOptions: {\n disabledDate: function disabledDate(time) {\n return time.getTime() > Date.now();\n }\n },\n pickerOptions2: {\n disabledDate: function disabledDate(time) {\n return time.getTime() < new Date(_this.parameter.startTime);\n }\n },\n historyData1: null,\n historyTable1: [],\n historyShow: false,\n editOrUpdate: true,\n treeItem: null,\n previewUrl: \"\".concat(portal, \"/file/onlinePreviewController/v1/getFileById_\"),\n approvalComments: [],\n docNo: '',\n isRepeat: true,\n // 文件是否涉密\n cipher: false,\n status: 0,\n isSave: true\n };\n },\n created: function created() {\n this.treeData = JSON.parse(sessionStorage.getItem('responsibilityTree'));\n this.districtData = JSON.parse(sessionStorage.getItem('districtList'));\n },\n methods: {\n updateAll: function updateAll(status) {\n var _this2 = this;\n\n var msg = status ? '确认修改保存并通过吗?' : '确认修改保存吗?';\n this.$refs['formInfo'].validate(function (valid) {\n _this2.$refs.formInfo2.validate(function (valid1) {\n if (valid && valid1) {\n _this2.$confirm(msg, _this2.$t('common.tips'), {\n confirmButtonText: _this2.$t('common.confirm'),\n cancelButtonText: _this2.$t('common.cancel'),\n type: 'success'\n }).then(function () {\n _this2.inputBlur().then(function () {\n _this2.markLoading = true;\n\n if (_this2.isRepeat) {\n var data = JSON.parse(JSON.stringify(_this2.parameter));\n\n var itemId = _this2.unitValue.pop();\n\n _this2.getTreeItem(_this2.treeData, itemId);\n\n var _this2$treeItem = _this2.treeItem,\n id = _this2$treeItem.id,\n name = _this2$treeItem.name,\n code = _this2$treeItem.code,\n grade = _this2$treeItem.grade;\n data.unitId = id || '';\n data.unitName = name || '';\n data.unitCode = code || '';\n data.unitGrade = grade || '';\n data.docNo = \"\".concat(data.docName, \"\\u3010\").concat(data.docYear, \"\\u3011\").concat(data.docNum, \"\\u53F7\");\n var arr = [];\n data.invs.forEach(function (id) {\n _this2.districtData.forEach(function (item) {\n if (item.id == id) {\n var _id = item.id,\n _code = item.code,\n _grade = item.grade,\n _name = item.name;\n arr = [].concat(_toConsumableArray(arr), [{\n unitId: _id,\n unitName: _name,\n unitCode: _code,\n unitGrade: _grade\n }]);\n }\n });\n });\n data.invs = arr;\n\n if (!data.timePeriod) {\n data.acceptanceTime = '';\n }\n\n if (_this2.fileList) {\n var ids = _this2.fileList.map(function (item) {\n return item.id ? item.id : item.response.fileId;\n });\n\n data.ids = ids;\n }\n\n data.classified = _this2.classified;\n _this2.cipher = false; // 推进修改\n\n var pushData = JSON.parse(JSON.stringify(_this2.parameter1));\n\n if (pushData.propulsiveStatus != 3) {\n pushData.actualTime = '';\n }\n\n if (status) {\n pushData.status = status;\n }\n\n var pushArr = _this2.tableData.map(function (item) {\n if (_this2.isUpdate) {\n item.id = '';\n }\n\n return item;\n });\n\n pushArr.forEach(function (item) {\n item.ids = item.fileList ? item.fileList.map(function (file) {\n return file.id || file.response.fileId;\n }) : [];\n });\n pushData.results = pushArr;\n pushData.pilotId = _this2.parameter.id;\n pushData.approvalComments = pushData.approvalCommen ? pushData.approvalComments.join('$_$') : '';\n Promise.all([_this2.updateInfo(data), _this2.updateInputInfo(pushData)]).then(function () {\n _this2.markLoading = false;\n var msg = status ? '修改保存并通过成功' : '修改更新成功';\n\n _this2.$message.success(msg);\n\n _this2.handleClose();\n\n _this2.$emit('sendMsg');\n });\n } else {\n _this2.markLoading = false;\n\n _this2.$confirm(_this2.errorText, '提示', {\n cancelButtonText: '关闭',\n showConfirmButton: false,\n type: 'error'\n });\n }\n });\n });\n }\n });\n });\n },\n openInputVisible: function openInputVisible() {\n var _this3 = this;\n\n this.$refs['formInfo'].validate(function (valid) {\n _this3.$refs.formInfo2.validate(function (valid1) {\n if (valid && valid1) {\n _this3.$confirm('确认修改并驳回吗?', _this3.$t('common.tips'), {\n confirmButtonText: _this3.$t('common.confirm'),\n cancelButtonText: _this3.$t('common.cancel'),\n type: 'error'\n }).then(function () {\n _this3.inputBlur().then(function () {\n if (_this3.isRepeat) {\n _this3.$refs.RejectInfoDialog.open();\n } else {\n _this3.markLoading = false;\n\n _this3.$confirm(_this3.errorText, '提示', {\n cancelButtonText: '关闭',\n showConfirmButton: false,\n type: 'error'\n });\n }\n });\n });\n }\n });\n });\n },\n sendRejectInfo: function sendRejectInfo(approvalComments) {\n var _this4 = this;\n\n this.markLoading = true;\n var data = JSON.parse(JSON.stringify(this.parameter));\n var itemId = this.unitValue.pop();\n this.getTreeItem(this.treeData, itemId);\n var _this$treeItem = this.treeItem,\n id = _this$treeItem.id,\n name = _this$treeItem.name,\n code = _this$treeItem.code,\n grade = _this$treeItem.grade;\n data.unitId = id || '';\n data.unitName = name || '';\n data.unitCode = code || '';\n data.unitGrade = grade || '';\n data.docNo = \"\".concat(data.docName, \"\\u3010\").concat(data.docYear, \"\\u3011\").concat(data.docNum, \"\\u53F7\");\n var arr = [];\n data.invs.forEach(function (id) {\n _this4.districtData.forEach(function (item) {\n if (item.id == id) {\n var _id2 = item.id,\n _code2 = item.code,\n _grade2 = item.grade,\n _name2 = item.name;\n arr = [].concat(_toConsumableArray(arr), [{\n unitId: _id2,\n unitName: _name2,\n unitCode: _code2,\n unitGrade: _grade2\n }]);\n }\n });\n });\n data.invs = arr;\n\n if (!data.timePeriod) {\n data.acceptanceTime = '';\n }\n\n if (this.fileList) {\n var ids = this.fileList.map(function (item) {\n return item.id ? item.id : item.response.fileId;\n });\n data.ids = ids;\n }\n\n data.classified = this.classified;\n this.cipher = false; // 推进修改\n\n var pushData = JSON.parse(JSON.stringify(this.parameter1));\n pushData.approvalComments = approvalComments;\n pushData.status = 11;\n var pushArr = this.tableData.map(function (item) {\n if (_this4.isUpdate) {\n item.id = '';\n }\n\n return item;\n });\n pushArr.forEach(function (item) {\n item.ids = item.fileList ? item.fileList.map(function (file) {\n return file.id || file.response.fileId;\n }) : [];\n });\n pushData.results = pushArr;\n pushData.pilotId = this.parameter.id;\n Promise.all([this.updateInfo(data), this.updateInputInfo(pushData)]).then(function () {\n _this4.markLoading = false;\n\n _this4.$message.success('修改驳回成功');\n\n _this4.handleClose();\n\n _this4.$emit('sendMsg');\n });\n },\n setAipher: function setAipher(val) {\n this.classified = 1;\n this.cipher = val;\n },\n getTreeItem: function getTreeItem(data, id) {\n var _this5 = this;\n\n data.map(function (item) {\n if (item.id == id) {\n _this5.treeItem = item; // 结果赋值\n } else {\n if (item.children) {\n _this5.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 setdocName: function setdocName(e) {\n this.parameter.docName = e.replace(/\\s+/g, '');\n },\n // 打开弹框编辑\n add: function add(item) {\n var _this6 = this;\n\n this.visible = true;\n this.reqLoading = true;\n var reqArr = item.id && item.recId ? [this.advanceRecordsById({\n unitId: item.unitId,\n id: item.id\n }), this.getIds(item.id), this.getFindById(item.id)] : item.id ? [this.getFindById(item.id), this.getIds(item.id)] : [];\n Promise.all(reqArr).then(function () {\n _this6.reqLoading = false;\n });\n this.$nextTick(function () {\n _this6.unitValue = _this6.getParentsById(_this6.treeData, item.mainUnitId);\n }); // this.parameter = item\n\n var docNo = item.docNo,\n classified = item.classified,\n pilotField = item.pilotField,\n pilotRunway = item.pilotRunway;\n this.getByDemandFiledData('ggbb_ssly', pilotField);\n this.classified = classified;\n this.docNo = docNo;\n this.parameter = JSON.parse(JSON.stringify(item));\n this.parameter.pilotRunway = pilotRunway + ''; // this.parameter = {\n // pilotProjectName,\n // docNo,\n // pilotLevel,\n // pilotSupervisor,\n // startTime,\n // acceptanceTime,\n // pilotTarget,\n // taskDetails,\n // status,\n // docYear,\n // docName,\n // docNum,\n // pilotField,\n // pilotRunway: pilotRunway + '',\n // id,\n // documentBasis,\n // mainUnitName,\n // timePeriod,\n // mainUnitId,\n // propulsiveStatus\n // }\n\n this.title = this.$t('common.add');\n },\n onBtnBulr: function onBtnBulr() {\n var _this$parameter = this.parameter,\n docName = _this$parameter.docName,\n docYear = _this$parameter.docYear,\n docNum = _this$parameter.docNum;\n\n if (docName && docYear && (docNum || docNum === 0)) {\n this.inputBlur();\n }\n },\n // 校验文件号\n inputBlur: function inputBlur() {\n var _this7 = this;\n\n return new Promise(function (reslove) {\n _this7.errorText = '';\n var _this7$parameter = _this7.parameter,\n docName = _this7$parameter.docName,\n docYear = _this7$parameter.docYear,\n docNum = _this7$parameter.docNum;\n var docNo = \"\".concat(docName, \"\\u3010\").concat(docYear, \"\\u3011\").concat(docNum, \"\\u53F7\");\n\n if (docName && docYear && (docNum || docNum === 0)) {\n if (!_this7.parameter.id || _this7.docNo != docNo) {\n pilot.docNoWhether(docNo, function (res) {\n if (!res) {\n _this7.isRepeat = false;\n _this7.errorText = '该文件号已存在,请重新录入';\n reslove();\n } else {\n _this7.isRepeat = true;\n reslove();\n }\n });\n } else {\n _this7.isRepeat = true;\n reslove();\n }\n } else {\n _this7.isRepeat = false;\n _this7.errorText = '请输入部署该试点项目的完整文号';\n reslove();\n }\n });\n },\n // ------------\n // 文件相关\n openUploade: function openUploade() {\n this.$refs.uploadFile.open('Pilot');\n },\n setFileList: function setFileList(file) {\n this.fileList.push(file);\n this.classified = 0;\n },\n beforeRemove: function beforeRemove(file, fileList) {\n var _this8 = this;\n\n this.$confirm(\"\\u786E\\u5B9A\\u5220\\u9664 \".concat(file.name, \"\\uFF1F\"), this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'warning'\n }).then(function () {\n var id = file.fileId ? file.fileId : file.id ? file.id : file.response.fileId;\n sat.deleteFileById(id, function (res) {\n if (res.state) {\n _this8.$message.success('附件删除成功');\n\n var arr = _this8.fileList.filter(function (item) {\n var fileId = item.id || item.response.fileId;\n\n if (fileId !== id) {\n return item;\n }\n });\n\n if (arr.length == 0) {\n _this8.classified = 0;\n }\n\n _this8.fileList = arr;\n } else {\n _this8.$message.error('附件删除失败');\n }\n });\n });\n },\n handlePreview: function handlePreview(file) {\n var id = file.fileId ? file.fileId : file.id ? file.id : file.response.fileId;\n var type = file.fileType || (file.extensionName ? file.extensionName : file.name.split('.')[1]);\n this.$refs.filePreview.previewUrl = this.previewUrl + id;\n this.$refs.filePreview.open(type);\n },\n // 文件下载\n handleDownloadFile: function handleDownloadFile(file) {\n var id = file.fileId ? file.fileId : file.id ? file.id : file.response.fileId;\n window.open(portal + \"/file/v1/downloadFile?fileId=\".concat(id), '_self');\n },\n // ------------\n // 区县id\n valueChange: function valueChange(value) {\n this.parameter.invs = value;\n },\n // 修改试点项目信息(试点项目录入)\n updateInfo: function updateInfo(data) {\n return new Promise(function (reslove) {\n pilot.updatePoltproject(data, function (res) {\n // this.$emit('sendMsg')\n // this.handleClose()\n // this.$message.success('修改试点项目信息成功')\n // this.saveLoading1 = false\n // this.markLoading = false\n reslove();\n });\n });\n },\n // 推进录入新增或修改\n // 修改\n updateInputInfo: function updateInputInfo(data) {\n return new Promise(function (reslove) {\n pilot.modifyEntry(data, function (res) {\n reslove();\n });\n });\n },\n // 根据id查询涉及区县列表\n getFindById: function getFindById(id) {\n var _this9 = this;\n\n return new Promise(function (reslove) {\n pilot.getFindById(id, function (res) {\n _this9.approvalComments = res.approvalComments ? res.approvalComments.split('$_$') : [];\n _this9.parameter.invs = res.invs;\n _this9.districtValue = res.invs ? res.invs.map(function (val) {\n return val.unitId;\n }) : [];\n _this9.districtName = res.invs ? res.invs.map(function (val) {\n return val.unitName;\n }) : [];\n reslove();\n });\n });\n },\n // 根据主表id查询推进表信息\n advanceRecordsById: function advanceRecordsById(id) {\n var _this10 = this;\n\n return new Promise(function (resolve) {\n pilot.advanceRecordsById(id, function (res) {\n var _res$value$ = res.value[0],\n results = _res$value$.results,\n approvalComments = _res$value$.approvalComments;\n console.log(res);\n _this10.parameter1 = res.value[0];\n _this10.tableData = results || [];\n var approvalComments1 = approvalComments ? res.value[0].approvalComments.split('$_$') : [];\n _this10.historyData1 = res.value[1] || null;\n console.log(_this10.historyData1, 'historyData1');\n\n if (res.value[1]) {\n _this10.historyData1.approvalComments = res.value[1].approvalComments ? res.value[1].approvalComments.split('$_$') : [];\n }\n\n _this10.parameter1.approvalComments = approvalComments1; // this.historyTable1 = results || []\n\n resolve();\n });\n });\n },\n // 根据id查询附件信息\n getIds: function getIds(id) {\n var _this11 = this;\n\n return new Promise(function (resolve) {\n var data = JSON.parse(JSON.stringify(_this11.reqData));\n data.querys = [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'biz_id_',\n relation: 'AND',\n value: id\n }];\n pilot.getIds(data, function (res) {\n var arr = [];\n res.rows.forEach(function (item) {\n var id = item.id,\n fileName = item.fileName,\n extensionName = item.extensionName;\n var url = \"\".concat(portal, \"/file/onlinePreviewController/v1/getFileById_\").concat(id);\n var obj = {\n id: id,\n name: \"\".concat(fileName, \".\").concat(extensionName),\n url: url,\n fileType: extensionName\n };\n arr.push(obj);\n });\n _this11.fileList = arr;\n _this11.$refs.FormResultsDialog.fileList = arr;\n resolve();\n });\n });\n },\n addResult: function addResult(item, index) {\n this.tableIndex = index;\n this.$refs.FormResultsDialog.open(item);\n },\n // 添加成果形式\n pushTableData: function pushTableData(data) {\n var arr = JSON.parse(JSON.stringify(this.tableData));\n\n if (!arr.length || this.tableIndex === undefined) {\n arr.push(data);\n } else {\n arr.splice(this.tableIndex, 1, data);\n }\n\n this.tableData = arr;\n console.log(arr);\n },\n // 删除\n deleteDate: function deleteDate(index) {\n this.tableData.splice(index, 1);\n },\n // 关闭新增人员窗口\n handleClose: function handleClose() {\n this.historyShow = false;\n this.errorText = '';\n this.visible = false;\n this.parameter = {};\n this.historyData1 = null;\n this.$refs.formInfo.resetFields();\n this.$refs.formInfo2.resetFields();\n this.tableData = [];\n this.parameter1 = {};\n this.approvalComments = [];\n this.classified = 0;\n }\n }\n};",null]}