{"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\\ReformSituation\\components\\addNation.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\ReformSituation\\components\\addNation.vue","mtime":1745230952366},{"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 _defineProperty from \"D:/jenkins/workspace/reform-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.regexp.split\";\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//\nimport { TableMixin } from '@/mixins/tableMixin';\nimport FileList from '@/components/uploadFile/FileList.vue';\nimport UploadFile from '@/components/uploadFile/index.vue';\nimport utils from '@/utils';\nexport default {\n name: 'AddFormDialog',\n components: {\n UploadFile: UploadFile,\n FileList: FileList\n },\n mixins: [TableMixin],\n props: {},\n data: function data() {\n var _this = this;\n\n var validateProofFileList = function validateProofFileList(rule, value, callback) {\n var parts = rule.field.split('.');\n var listName = parts[0];\n var index = parts[1];\n var proofFileList = parts[2];\n\n if (_this.parameter[listName][index].proofFileIsClassified === '0') {\n if (_this.parameter[listName][index][proofFileList].length > 0) {\n callback();\n } else {\n callback(new Error('请上传附件'));\n }\n } else {\n callback();\n }\n };\n\n return {\n activeCollapse1: '1',\n visibleProject: false,\n reqLoading: false,\n parameter: {\n nationList: [],\n historyNationList: []\n },\n specificSituationOptions: [],\n rules: {\n effectCardTopic: [{\n required: true,\n message: '情况描述不能为空',\n trigger: 'blur'\n }],\n details: [{\n required: true,\n message: '具体情形',\n trigger: 'change'\n }],\n proofFileList: [{\n validator: validateProofFileList,\n trigger: 'blur'\n }]\n },\n // 上传附件时的标识\n upIndex: 0,\n upType: '',\n backUp: {\n nationList: [],\n historyNationList: []\n },\n category: '',\n isDetails: false,\n isAudit: false\n };\n },\n created: function created() {},\n methods: {\n getDemandData: function getDemandData() {\n var _this2 = this;\n\n var arr = utils.getDictItemsFromCache('sj_ggcx_hkdfs');\n arr.forEach(function (item) {\n if (item.value === '1') {\n _this2.specificSituationOptions = item.lowerDic['sj_cxxs_jtqx'];\n }\n });\n },\n upDate: function upDate(data, isDetails) {\n this.isDetails = isDetails !== '详情';\n this.isAudit = isDetails === '改革办审核';\n this.getDemandData();\n this.visibleProject = true;\n\n if (data.length > 0) {\n this.parameter.nationList = data.filter(function (item) {\n return item.isHistory === '0';\n });\n this.parameter.historyNationList = data.filter(function (item) {\n return item.isHistory === '1';\n });\n }\n\n this.backUp = JSON.parse(JSON.stringify(this.parameter));\n },\n handleClose: function handleClose() {\n this.parameter = JSON.parse(JSON.stringify(this.backUp));\n this.parameter.nationList = this.parameter.nationList.filter(function (item) {\n return item.details !== '';\n });\n this.$emit('confirm', this.parameter, '1');\n this.visibleProject = false;\n },\n confirmChange: function confirmChange() {\n var _this3 = this;\n\n this.$refs['formInfo'].validate(function (valid) {\n if (valid) {\n _this3.$emit('confirm', _this3.parameter, '2');\n\n _this3.visibleProject = false;\n } else {\n _this3.$message.warning('请填写必填选项!');\n }\n });\n },\n tableAdd: function tableAdd(type) {\n if (type === 'nationList') {\n this.parameter[type].push({\n id: this.parameter[type].length + new Date(),\n effectCardTopic: '',\n isHistory: '0',\n details: '',\n proofFileList: [],\n proofFileIsClassified: '0'\n });\n }\n },\n tableDel: function tableDel(type, row) {\n this.parameter[type] = this.parameter[type].filter(function (item) {\n return item.id !== row.id;\n });\n },\n // 附件相关\n openUploade: function openUploade(type, index, code, category) {\n this.category = category;\n this.upIndex = index;\n this.upType = type;\n this.$refs.uploadFile.open(code);\n },\n setAipher: function setAipher() {\n if (this.category === 'history') {\n this.$set(this.parameter.historyNationList[this.upIndex], 'proofFileIsClassified', '1');\n } else {\n this.$set(this.parameter.nationList[this.upIndex], 'proofFileIsClassified', '1');\n }\n },\n deleteTag: function deleteTag(index, type, category) {\n if (category === 'history') {\n this.$set(this.parameter.historyNationList[index], 'proofFileIsClassified', '0');\n } else {\n this.$set(this.parameter.nationList[index], 'proofFileIsClassified', '0');\n }\n },\n setFileList: function setFileList(res) {\n var file = _objectSpread(_objectSpread({}, res), {}, {\n id: res.response.fileId\n });\n\n var upIndex = this.upIndex,\n upType = this.upType;\n\n if (this.category === 'history') {\n this.parameter.historyNationList[upIndex].proofFileList.push(file);\n } else {\n this.parameter.nationList[upIndex].proofFileList.push(file);\n }\n },\n // 删除附件\n changeFileList: function changeFileList(arr, index, type, category) {\n if (category === 'history') {\n this.parameter.historyNationList[this.upIndex].proofFileList = arr;\n } else {\n this.parameter.nationList[this.upIndex].proofFileList = arr;\n }\n }\n }\n};",null]}