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