{"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\\MajorReformProjects\\BrandDisplay\\dialog\\BrandDisplayForm.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\MajorReformProjects\\BrandDisplay\\dialog\\BrandDisplayForm.vue","mtime":1716260780582},{"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/es6.regexp.split\";\nimport \"core-js/modules/web.dom.iterable\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 UploadFile from '@/components/uploadFile/index.vue';\nimport FileList from '@/components/uploadFile/FileList.vue';\nimport brand from '@/api/MajorReformProjects/brandDisplay';\nimport RejectInfoDialog from '@/components/dialog/RejectInfoBlockDialog.vue';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport utils from '@/utils.js';\nexport default {\n name: 'ReformPilotManageDialog',\n components: {\n UploadFile: UploadFile,\n FileList: FileList,\n RejectInfoDialog: RejectInfoDialog\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n formVisible: false,\n reqLoading: false,\n markLoading: false,\n dialogVisible: false,\n fileList: [],\n queryParam: {\n pageBean: {\n page: 1,\n pageSize: -1\n }\n },\n rules: {\n specificDetails: [{\n required: true,\n message: '请选择具体情形',\n trigger: 'blur'\n }],\n effectForm: [{\n required: true,\n message: '请选择获肯定方式',\n trigger: 'change'\n }],\n completionDate: [{\n required: true,\n message: '请选择品牌创建日期',\n trigger: 'change'\n }]\n },\n reqData: {\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 },\n activeCollapse: ['1', '3'],\n specificDetailOptions: [],\n primaryFileList: [],\n tableData: {\n pilotProjectFill: {\n status: 0\n },\n pilotBrandPushList: [{\n classified: '',\n specificDetails: '',\n effectForm: '',\n completionDate: '',\n files: []\n }]\n },\n addFileIndex: null,\n projectInfo: {},\n histroyData: null,\n isUpdate: false,\n fillId: '',\n approvalComments: [],\n status: 0,\n title: '添加'\n };\n },\n created: function created() {},\n methods: {\n //\n openForm: function openForm(item) {\n if (item.id) {\n this.reqLoading = true;\n this.fillId = item.id;\n this.getBrandInfoById(item.projectId);\n }\n\n this.projectInfo = item;\n this.formVisible = true;\n },\n updateSave: function updateSave() {\n var _this = this;\n\n this.$refs.brandInfo.validate(function (valid) {\n if (valid) {\n _this.$confirm('确认保存修改?', '更新提示', {\n confirmButtonText: '确认',\n cancelButtonText: '取消',\n type: 'success'\n }).then(function () {\n _this.markLoading = true;\n var data = JSON.parse(JSON.stringify(_this.tableData));\n data.pilotBrandPushList.forEach(function (item) {\n var _item = item,\n classified = _item.classified,\n specificDetails = _item.specificDetails,\n effectForm = _item.effectForm,\n completionDate = _item.completionDate,\n files = _item.files;\n item.ids = files && files.length ? files.map(function (item) {\n return item.id || item.response.fileId;\n }) : [];\n item = {\n classified: classified,\n specificDetails: specificDetails,\n effectForm: effectForm,\n completionDate: completionDate\n };\n });\n data.pilotProjectFill = {\n status: _this.projectInfo.status,\n projectId: _this.projectInfo.projectId\n };\n data.pilotProjectFill.id = _this.fillId;\n\n _this.updateById(data);\n });\n }\n });\n },\n handleAddOrUpdate: function handleAddOrUpdate(status) {\n var _this2 = this;\n\n this.$refs.brandInfo.validate(function (valid) {\n if (valid) {\n var message = status === 1 ? '确认提交本次更新并上报吗?' : status === 5 ? '确认审核通过?' : '确认提交本次更新保存为草稿吗?';\n\n _this2.$confirm(message, '更新提示', {\n confirmButtonText: '确认',\n cancelButtonText: '取消',\n type: 'success'\n }).then(function () {\n _this2.markLoading = true;\n var data = JSON.parse(JSON.stringify(_this2.tableData));\n data.pilotBrandPushList.forEach(function (item) {\n var _item2 = item,\n classified = _item2.classified,\n specificDetails = _item2.specificDetails,\n effectForm = _item2.effectForm,\n completionDate = _item2.completionDate,\n files = _item2.files;\n item.ids = files && files.length ? files.map(function (item) {\n return item.id || item.response.fileId;\n }) : [];\n item = {\n classified: classified,\n specificDetails: specificDetails,\n effectForm: effectForm,\n completionDate: completionDate\n };\n });\n data.pilotProjectFill = {\n status: status,\n projectId: _this2.projectInfo.projectId\n };\n\n if (_this2.isUpdate || _this2.title === '编辑' || _this2.title === '审核') {\n data.pilotProjectFill.id = _this2.fillId;\n\n _this2.updateById(data);\n } else {\n _this2.addOrUpdate(data);\n }\n });\n }\n });\n },\n // 驳回\n openInputVisible: function openInputVisible() {\n var _this3 = this;\n\n this.$confirm('确认驳回吗?', this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'error'\n }).then(function () {\n _this3.$refs.RejectInfoDialog.open();\n });\n },\n sendRejectInfo: function sendRejectInfo(approvalComments) {\n var _this4 = this;\n\n this.markLoading = true;\n var data = JSON.parse(JSON.stringify(this.tableData));\n data.pilotBrandPushList.forEach(function (item) {\n var _item3 = item,\n classified = _item3.classified,\n specificDetails = _item3.specificDetails,\n effectForm = _item3.effectForm,\n completionDate = _item3.completionDate,\n files = _item3.files;\n item.ids = files && files.length ? files.map(function (item) {\n return item.id || item.response.fileId;\n }) : [];\n item = {\n classified: classified,\n specificDetails: specificDetails,\n effectForm: effectForm,\n completionDate: completionDate\n };\n });\n data.pilotProjectFill = {\n status: 4,\n projectId: this.projectInfo.projectId,\n approvalComments: approvalComments\n };\n data.pilotProjectFill.id = this.fillId;\n brand.updateById(data, function (res) {\n if (res.state) {\n _this4.handleClose();\n\n _this4.markLoading = false;\n\n _this4.$message.success('审核驳回成功!');\n\n _this4.$emit('flushed');\n }\n\n _this4.markLoading = false;\n });\n },\n // 新增或者更新\n addOrUpdate: function addOrUpdate(data) {\n var _this5 = this;\n\n brand.addBrandUpdate(data, function (res) {\n if (res.state) {\n _this5.handleClose();\n\n _this5.markLoading = false;\n\n _this5.$message.success(\"\\u54C1\\u724C\\u663E\\u793A\\u5EA6\\u63A8\\u8FDB\\u66F4\\u65B0\\u6210\\u529F\");\n\n _this5.$emit('flushed');\n } else {\n _this5.markLoading = false;\n\n _this5.$message.success(\"\\u54C1\\u724C\\u663E\\u793A\\u5EA6\\u63A8\\u8FDB\\u66F4\\u65B0\\u5931\\u8D25\");\n }\n });\n },\n updateById: function updateById(data) {\n var _this6 = this;\n\n brand.updateById(data, function (res) {\n if (res.state) {\n _this6.handleClose();\n\n _this6.markLoading = false;\n _this6.isUpdate = false;\n\n _this6.$message.success(\"\\u54C1\\u724C\\u663E\\u793A\\u5EA6\\u63A8\\u8FDB\\u4FEE\\u6539\\u66F4\\u65B0\\u6210\\u529F\");\n\n _this6.$emit('flushed');\n } else {\n _this6.markLoading = false;\n\n _this6.$message.success(\"\\u54C1\\u724C\\u663E\\u793A\\u5EA6\\u63A8\\u8FDB\\u4FEE\\u6539\\u66F4\\u65B0\\u5931\\u8D25\");\n }\n });\n },\n setAipher: function setAipher() {\n this.tableData.pilotBrandPushList[this.addFileIndex].classified = '文件涉密,已通过内网邮件上传。';\n },\n // 根据项目id查询品牌推进信息\n getBrandInfoById: function getBrandInfoById(id) {\n var _this7 = this;\n\n brand.getBrandInfoById(id, function (res) {\n _this7.status = res[0].status;\n\n if (_this7.title === '编辑' || _this7.title === '审核') {\n _this7.tableData = res[0];\n _this7.tableData.pilotBrandPushList = res[0].pilotBrandPushList;\n\n var _arr = utils.getDictItemsFromCache('pd_hkdxs');\n\n res[0].pilotBrandPushList.forEach(function (item, index) {\n item.specificDetails = item.specificDetails + '';\n\n _arr.forEach(function (item1) {\n if (item1.value == item.effectForm) {\n _this7.specificDetailOptions[index] = item1.lowerDic['ppcj_jtqx'];\n }\n });\n });\n\n if (res[1]) {\n _this7.histroyData = res[1] || null;\n _this7.histroyData.approvalComments = res[1].approvalComments ? res[1].approvalComments.split('$_$') : [];\n }\n } else {\n _this7.histroyData = res[0];\n _this7.histroyData.approvalComments = res[0] && res[0].approvalComments ? res[0].approvalComments.split('$_$') : [];\n }\n\n _this7.reqLoading = false;\n });\n },\n // 根据获肯定形式获取具体情形\n getSpecificDetail: function getSpecificDetail(val, obj, key, index) {\n if (this.specificDetailOptions[index] && this.specificDetailOptions[index].length) {\n this.specificDetailOptions.splice(index, 1, obj.lowerDic['ppcj_jtqx']);\n } else {\n this.specificDetailOptions.push(obj.lowerDic['ppcj_jtqx']);\n }\n\n this.tableData.pilotBrandPushList[index].specificDetails = '';\n },\n setSpecificDetailOptions: function setSpecificDetailOptions(code, value) {\n var _this8 = this;\n\n arr.forEach(function (item) {\n if (item.value == '6') {\n console.log(item);\n\n _this8.specificDetailOptions.push(item.lowerDic['ppcj_jtqx']);\n\n console.log(_this8.specificDetailOptions);\n }\n });\n },\n addTableData: function addTableData() {\n var data = {\n classified: '',\n specificDetails: '',\n effectForm: '',\n completionDate: '',\n files: []\n };\n this.tableData.pilotBrandPushList.push(data);\n },\n deleteTableData: function deleteTableData(item, index) {\n this.specificDetailOptions.splice(index, 1);\n this.tableData.pilotBrandPushList.splice(index, 1);\n },\n // ------------\n // 文件相关\n openUploade: function openUploade(index) {\n this.addFileIndex = index;\n console.log(index);\n this.$refs.uploadFile.open('ProjectBrand');\n },\n setFileList: function setFileList(file) {\n console.log(this.tableData.pilotBrandPushList[this.addFileIndex]);\n\n if (this.tableData.pilotBrandPushList[this.addFileIndex].files) {\n this.tableData.pilotBrandPushList[this.addFileIndex].files.push(file);\n } else {\n this.$set(this.tableData.pilotBrandPushList[this.addFileIndex], 'files', []);\n this.tableData.pilotBrandPushList[this.addFileIndex].files.push(file);\n }\n },\n changeFileList: function changeFileList(data, index) {\n this.tableData.pilotBrandPushList[index].files = data;\n },\n // ------------\n handleClose: function handleClose() {\n this.formVisible = false;\n this.tableData.pilotBrandPushList = [{\n classified: '',\n specificDetails: '',\n effectForm: '',\n completionDate: '',\n files: []\n }]; // if (this.$refs.brandInfo) {\n // this.$refs.brandInfo.resetFields()\n // }\n\n this.histroyData = null;\n this.approvalComments = [];\n }\n }\n};",null]}