{"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":1685953070058},{"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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 { TableMixin } from '@/mixins/tableMixin';\nimport utils from '@/utils.js';\nexport default {\n name: 'ReformPilotManageDialog',\n components: {\n UploadFile: UploadFile,\n FileList: FileList\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 };\n },\n created: function created() {},\n methods: {\n //\n openForm: function openForm(item) {\n console.log(item);\n\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 handleAddOrUpdate: function handleAddOrUpdate(status) {\n var _this = this;\n\n this.$refs.brandInfo.validate(function (valid) {\n if (valid) {\n var message = status == 0 ? '确认提交本次更新保存为草稿吗?' : '确认提交本次更新并上报吗?';\n\n _this.$confirm(message, '更新提示', {\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 console.log(data);\n data.pilotProjectFill = {\n status: status,\n projectId: _this.projectInfo.projectId\n };\n\n if (_this.isUpdate && _this.status < 5) {\n data.pilotProjectFill.id = _this.fillId;\n\n _this.updateById(data);\n } else {\n _this.addOrUpdate(data);\n }\n });\n }\n });\n },\n // 新增或者更新\n addOrUpdate: function addOrUpdate(data) {\n var _this2 = this;\n\n brand.addBrandUpdate(data, function (res) {\n if (res.state) {\n _this2.handleClose();\n\n _this2.markLoading = false;\n\n _this2.$message.success(\"\\u54C1\\u724C\\u663E\\u793A\\u5EA6\\u63A8\\u8FDB\\u66F4\\u65B0\\u6210\\u529F\");\n\n _this2.$emit('flushed');\n } else {\n _this2.markLoading = false;\n\n _this2.$message.success(\"\\u54C1\\u724C\\u663E\\u793A\\u5EA6\\u63A8\\u8FDB\\u66F4\\u65B0\\u5931\\u8D25\");\n }\n });\n },\n updateById: function updateById(data) {\n var _this3 = this;\n\n brand.updateById(data, function (res) {\n if (res.state) {\n _this3.handleClose();\n\n _this3.markLoading = false;\n _this3.isUpdate = false;\n\n _this3.$message.success(\"\\u54C1\\u724C\\u663E\\u793A\\u5EA6\\u63A8\\u8FDB\\u4FEE\\u6539\\u66F4\\u65B0\\u6210\\u529F\");\n\n _this3.$emit('flushed');\n } else {\n _this3.markLoading = false;\n\n _this3.$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 _this4 = this;\n\n brand.getBrandInfoById(id, function (res) {\n _this4.status = res[0].status;\n\n if (_this4.isUpdate) {\n _this4.tableData = res[0];\n _this4.tableData.pilotBrandPushList = res[0].pilotBrandPushList;\n\n var _arr = utils.getDictItemsFromCache('pd_hkdxs');\n\n res[0].pilotBrandPushList.forEach(function (item) {\n item.specificDetails = item.specificDetails + '';\n\n _arr.forEach(function (item1) {\n if (item1.value == item.effectForm) {\n _this4.specificDetailOptions.push(item1.lowerDic['cxxs-jtqx']);\n }\n });\n });\n\n if (res[1]) {\n _this4.histroyData = res[1] || null;\n _this4.histroyData.approvalComments = res[1].approvalComments ? res[1].approvalComments.split('$_$') : [];\n }\n } else {\n _this4.histroyData = res[0];\n _this4.histroyData.approvalComments = res[0] && res[0].approvalComments ? res[0].approvalComments.split('$_$') : [];\n } // if (res[0].status < 5) {\n // if (res[0].pilotBrandPushList.length) {\n // this.tableData.pilotProjectFill.status = this.approvalComments = res[0]\n // .approvalComments\n // ? res[0].approvalComments.split('$_$')\n // : []\n // }\n // this.histroyData = res[1] ? res[1] : null\n // } else {\n // this.histroyData = res[0]\n // }\n\n\n _this4.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['cxxs-jtqx']);\n } else {\n this.specificDetailOptions.push(obj.lowerDic['cxxs-jtqx']);\n }\n\n this.tableData.pilotBrandPushList[index].specificDetails = '';\n },\n setSpecificDetailOptions: function setSpecificDetailOptions(code, value) {\n var _this5 = this;\n\n arr.forEach(function (item) {\n if (item.value == '6') {\n console.log(item);\n\n _this5.specificDetailOptions.push(item.lowerDic['cxxs-jtqx']);\n\n console.log(_this5.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]}