{"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\\DigitalChongqing\\components\\municipalAddForm.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\DigitalChongqing\\components\\municipalAddForm.vue","mtime":1695411696171},{"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.function.name\";\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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 utils from '@/utils.js';\nimport apiList from '@/api/digitalApi/index';\nimport UploadFile from '@/components/uploadFile/index.vue';\nimport FileList from '@/components/uploadFile/newFileList.vue';\nexport default {\n name: 'municipalAddForm',\n components: {\n UploadFile: UploadFile,\n FileList: FileList\n },\n props: {\n reqId: {\n type: String,\n default: ''\n },\n unitId: {\n type: String,\n default: ''\n }\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n activeNames: ['1', '2', '3', '4', '5', '6'],\n markLoading: false,\n infoData: {\n oneData: [{\n oneClassified: 0,\n name: '',\n type: '',\n appertainSystem: '',\n appertainSunway: '',\n briefIntroduction: '',\n currentState: '',\n files: [],\n twoFiles: [],\n auditStatus: '',\n source: '',\n time: Date.now()\n }],\n twoData: [],\n threeData: [],\n fourData: [],\n fiveData: [],\n sixData: []\n },\n twoRunwayOptions: [],\n threeRunwayOptions: [],\n // 是否\n ifOptions: [{\n label: '是',\n value: 1\n }, {\n label: '否',\n value: 0\n }],\n rules: {\n name: [{\n required: true,\n trigger: 'change'\n }],\n type: [{\n required: true,\n trigger: 'change'\n }],\n appertainSystem: [{\n required: true,\n trigger: 'change'\n }],\n appertainSunway: [{\n required: true,\n trigger: 'change'\n }],\n briefIntroduction: [{\n required: true,\n message: '请输入事项简介',\n trigger: 'change'\n }],\n currentState: [{\n required: true,\n trigger: 'change',\n message: '请选择当前状态'\n }],\n auditStatus: [{\n required: true,\n trigger: 'change'\n }],\n applicationIntroduction: [{\n required: true,\n trigger: 'change'\n }],\n source: [{\n required: true,\n trigger: 'change'\n }]\n },\n // 上传附件时的标识\n upIndex: 0,\n upType: null,\n // tab切换\n isHistory: false,\n tableLoading: false,\n // 需要删除的附件id\n deleteIds: [],\n // 是否可编辑\n isEdit: false,\n // 拷贝数据\n copyData: {},\n isEdit1: true\n };\n },\n created: function created() {\n var name = this.$route.name;\n this.routeName = name;\n this.getDetail(this.reqId);\n },\n watch: {\n reqId: {\n immediate: true,\n handler: function handler(newValue, oldValue) {\n if (newValue) {\n this.getDetail(newValue);\n }\n }\n }\n },\n methods: {\n addTableData: function addTableData(type) {\n if (type === 'one') {\n this.infoData.oneData.push({\n oneClassified: 0,\n name: '',\n type: '',\n appertainSystem: '',\n appertainSunway: '',\n briefIntroduction: '',\n currentState: '',\n files: [],\n twoFiles: [],\n auditStatus: '',\n source: '',\n time: Date.now()\n });\n } else if (type === 'two') {\n this.infoData.twoData.push({\n classified: 0,\n name: '',\n appertainSystem: '',\n appertainSunway: '',\n currentState: '',\n files: [],\n auditStatus: '',\n time: Date.now()\n });\n } else if (type === 'three') {\n this.infoData.threeData.push({\n classified: 0,\n name: '',\n appertainSystem: '',\n appertainSunway: '',\n applicationIntroduction: '',\n files: [],\n auditStatus: '',\n time: Date.now()\n });\n } else if (type === 'four') {\n this.infoData.fourData.push({\n classified: 0,\n name: '',\n appertainSystem: '',\n appertainSunway: '',\n applicationIntroduction: '',\n files: [],\n auditStatus: '',\n time: Date.now()\n });\n } else if (type === 'five') {\n this.infoData.fiveData.push({\n classified: 0,\n name: '',\n appertainSystem: '',\n appertainSunway: '',\n applicationIntroduction: '',\n files: [],\n auditStatus: '',\n time: Date.now()\n });\n }\n },\n openExpend: function openExpend(data, table, row) {\n console.log(row);\n var $table = this.$refs[table];\n this.infoData[data].map(function (item) {\n console.log(row.time && row.time === row.time);\n\n if (row.id && row.id === item.id || row.time && row.time === row.time) {\n item.expansion = !item.expansion;\n }\n });\n $table.toggleRowExpansion(row, row.expansion);\n },\n // 根据所属系统获取所属跑道\n hanldeCommonSelect: function hanldeCommonSelect(val, obj, index, type) {\n if (type === 'two') {\n if (obj) {\n this.infoData.twoData[index].appertainSunway = '';\n this.twoRunwayOptions[index] = obj.lowerDic['szcq_sspd'];\n }\n } else if (type === 'three') {\n if (obj) {\n this.infoData.threeData[index].appertainSunway = '';\n this.threeRunwayOptions[index] = obj.lowerDic['szcq_sspd'];\n }\n }\n },\n // 回显时根据所属系统获取所属跑道\n setRunwayOptions: function setRunwayOptions(data) {\n var _this = this;\n\n this.twoRunwayOptions = [];\n this.threeRunwayOptions = [];\n var arr = utils.getDictItemsFromCache('szcq_sstx');\n data.twoData.forEach(function (item) {\n arr.forEach(function (item1) {\n if (item1.value == item.appertainSystem) {\n _this.twoRunwayOptions.push(item1.lowerDic['szcq_sspd']);\n }\n });\n });\n data.threeData.forEach(function (item) {\n arr.forEach(function (item1) {\n if (item1.value == item.appertainSystem) {\n _this.threeRunwayOptions.push(item1.lowerDic['szcq_sspd']);\n }\n });\n });\n },\n // 提交\n submit: function submit() {},\n // 查询详情\n getDetail: function getDetail(id) {},\n // 查询历史\n getHistory: function getHistory(id) {},\n // 附件相关\n openUploade: function openUploade(type, code, index) {\n this.upIndex = index;\n this.upType = type;\n this.$refs.uploadFile.open(code);\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 (upType === 'one') {\n this.infoData.oneData[upIndex].files = this.infoData.oneData[upIndex].files || [];\n this.infoData.oneData[upIndex].files.push(file); // this.infoData.oneData[upIndex].oneClassified = 0\n } else if (upType === 'two') {\n this.infoData.twoData[upIndex].files = this.infoData.twoData[upIndex].files || [];\n this.infoData.twoData[upIndex].files.push(file); // this.infoData.twoData[upIndex].classified = 0\n } else if (upType === 'three') {\n this.infoData.threeData[upIndex].files = this.infoData.threeData[upIndex].files || [];\n this.infoData.threeData[upIndex].files.push(file); // this.infoData.threeData[upIndex].classified = 0\n } else if (upType === 'four') {\n this.infoData.fourData[upIndex].files = this.infoData.fourData[upIndex].files || [];\n this.infoData.fourData[upIndex].files.push(file); // this.infoData.fourData[upIndex].classified = 0\n } else if (upType === 'yjsTwo') {\n this.infoData.oneData[upIndex].twoFiles = this.infoData.oneData[upIndex].twoFiles || [];\n this.infoData.oneData[upIndex].twoFiles.push(file);\n this.infoData.oneData[upIndex].twoClassified = -1;\n }\n },\n setAipher: function setAipher() {\n var upIndex = this.upIndex,\n upType = this.upType;\n\n if (upType === 'one') {\n this.infoData.oneData[upIndex].oneClassified = 1;\n } else if (upType === 'two') {\n this.infoData.twoData[upIndex].classified = 1;\n } else if (upType === 'three') {\n this.infoData.threeData[upIndex].classified = 1;\n } else if (upType === 'four') {\n this.infoData.fourData[upIndex].classified = 1;\n }\n },\n // 删除附件\n changeFileList: function changeFileList(arr, index, type) {\n if (type === 'one') {\n this.infoData.oneData[index].files = arr;\n } else if (type === 'two') {\n this.infoData.twoData[index].files = arr;\n } else if (type === 'three') {\n this.infoData.threeData[index].files = arr;\n } else if (type === 'four') {\n this.infoData.fourData[index].files = arr;\n } else if (type === 'new') {\n this.infoData.oneData[index].twoFiles = arr;\n }\n },\n //\n idExist: function idExist(id) {\n this.deleteIds.push(id);\n },\n // tab切换\n tabToggle: function tabToggle(e) {},\n // 禁用当前行\n filterAuth: function filterAuth(row, type) {\n var name = this.$route.name;\n\n if (name === 'MunicipalAdvanceRenewal') {\n if (this.infoData.status == 1 || this.infoData.status == 3 || this.isHistory || row.auditStatus) {\n return false;\n } else if (this.infoData.status == 4 || this.infoData.status == 0) {\n if (type === 'one' || type === 'four') {\n return row.auditStatus != 3;\n } else {\n return row.auditStatus != 2;\n }\n } else {\n return true;\n }\n } else if (name === 'PromoteAudit') {\n return false;\n } else if (name === 'AdvanceApproval') {\n return this.isHistory ? false : this.isEdit1;\n }\n },\n // 判断是否可编辑\n getIsEdit: function getIsEdit() {\n var _this2 = this;\n\n var data = {\n id: this.reqId,\n unitId: this.unitId\n };\n apiList.getIsEdit(data, function (res) {\n _this2.isEdit1 = res;\n });\n },\n // 禁用删除按钮\n forbiddenBtn: function forbiddenBtn() {\n var name = this.$route.name;\n\n if (name === 'PromoteAudit' || this.isHistory) {\n return false;\n } else if (name === 'MunicipalAdvanceRenewal') {\n if (this.infoData.status == 1 || this.infoData.status == 3) {\n return false;\n } else {\n return true;\n }\n } else {\n return true;\n }\n },\n closeDialog: function closeDialog() {\n this.$refs.form.resetFields();\n this.isHistory = false;\n this.$emit('closeDialog');\n },\n // 删除数据\n delTableData: function delTableData(type, row, index) {\n var _this3 = this;\n\n this.$confirm('确认删除这条数据吗?', '提示', {\n confirmButtonText: '确认',\n cancelButtonText: '取消',\n type: 'error'\n }).then(function () {\n _this3.markLoading = true;\n var originalId = row.originalId;\n\n if (type === 'one') {\n if (originalId) {\n apiList.deleteOneById(originalId, function (res) {\n if (res.state) {\n _this3.infoData.oneData.splice(index, 1);\n\n _this3.$message.success('数据删除成功!');\n }\n\n _this3.markLoading = false;\n });\n } else {\n _this3.infoData.oneData.splice(index, 1);\n\n _this3.$message.success('数据删除成功!');\n\n _this3.markLoading = false;\n }\n } else if (type === 'two') {\n if (originalId) {\n apiList.deleteTwoById(originalId, function (res) {\n if (res.state) {\n _this3.infoData.twoData.splice(index, 1);\n\n _this3.$message.success('数据删除成功!');\n }\n\n _this3.markLoading = false;\n });\n } else {\n _this3.infoData.twoData.splice(index, 1);\n\n _this3.$message.success('数据删除成功!');\n\n _this3.markLoading = false;\n }\n } else if (type === 'three') {\n if (originalId) {\n apiList.deleteThreeById(originalId, function (res) {\n if (res.state) {\n _this3.infoData.threeData.splice(index, 1);\n\n _this3.$message.success('数据删除成功!');\n }\n\n _this3.markLoading = false;\n });\n } else {\n _this3.infoData.threeData.splice(index, 1);\n\n _this3.$message.success('数据删除成功!');\n\n _this3.markLoading = false;\n }\n } else if (type === 'four') {\n if (originalId) {\n apiList.deleteFourById(originalId, function (res) {\n if (res.state) {\n _this3.infoData.fourData.splice(index, 1);\n\n _this3.$message.success('数据删除成功!');\n }\n\n _this3.markLoading = false;\n });\n } else {\n _this3.infoData.fourData.splice(index, 1);\n\n _this3.$message.success('数据删除成功!');\n\n _this3.markLoading = false;\n }\n } else if (type === 'five') {\n if (originalId) {\n apiList.deleteFourById(originalId, function (res) {\n if (res.state) {\n _this3.infoData.fiveData.splice(index, 1);\n\n _this3.$message.success('数据删除成功!');\n }\n\n _this3.markLoading = false;\n });\n } else {\n _this3.infoData.fiveData.splice(index, 1);\n\n _this3.$message.success('数据删除成功!');\n\n _this3.markLoading = false;\n }\n }\n });\n },\n setTagColor: function setTagColor(row) {\n if (row.isBringInto == 5) {\n return '#67c23a';\n } else if (row.isBringInto == 3) {\n return '#e6a23c';\n } else if (row.isBringInto == 4 || row.isBringInto == 2 || row.isBringInto == 1) {\n return '#f56c6c';\n } else if (row.isBringInto == 0) {\n if (row.twoClassified == -1) {\n return '#409eff';\n } else {\n return '#E3C428';\n }\n } else if (row.isBringInto == 6) {\n return '#C0C4CC';\n }\n },\n getContent: function getContent(row) {\n if (row.isBringInto == 5) {\n return '已核准“新一图两清单”';\n } else if (row.isBringInto == 1) {\n return '已驳回“新一图两清单” 1次';\n } else if (row.isBringInto == 2) {\n return '已驳回“新一图两清单” 2 次';\n } else if (row.isBringInto == 3) {\n return '25天内未上传“新一图两清单”';\n } else if (row.isBringInto == 4) {\n return '一个月内未上传“新一图两清单”';\n } else if (row.isBringInto === 0) {\n if (row.twoClassified == -1) {\n if (this.infoData.status === 3) {\n return '已上传“新一图两清单”待改革办核准';\n } else {\n return '已上传“新一图两清单”待审核';\n }\n } else {\n return '待上传“新一图两清单”';\n }\n } else if (row.isBringInto == 6) {\n return '已移除名录库';\n }\n },\n setPopover: function setPopover(row) {\n if (routeName === 'AdvanceApproval') {\n return true;\n } else {\n if (row.isBringInto == 1 || row.isBringInto == 3 || row.isBringInto === 0) {\n return true;\n } else {\n return false;\n }\n }\n }\n }\n};",null]}