{"remainingRequest":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Device\\deviceManage\\components\\productOrgUpdateDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Device\\deviceManage\\components\\productOrgUpdateDialog.vue","mtime":1687946823184},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-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//\nimport productManage from '@/api/device/productManage.js';\nexport default {\n name: 'FormDialog',\n props: {\n showFormDiaUp: {\n type: Boolean,\n default: false\n },\n titleUp: {\n type: String,\n default: ''\n },\n pId: {\n type: String,\n default: ''\n }\n },\n data: function data() {\n return {\n params: {\n code: '',\n name: '',\n memo: '',\n parentId: this.pId,\n id: ''\n },\n activeCollapse1: '1',\n rules: {\n name: [{\n required: true,\n message: '请输入产品名称',\n trigger: 'blur'\n }],\n code: [{\n required: true,\n message: '请输入产品编码',\n trigger: 'blur'\n }]\n }\n };\n },\n created: function created() {\n this.getDetailInfo();\n },\n methods: {\n // 根据ID查询\n getDetailInfo: function getDetailInfo() {\n var _this = this;\n\n productManage.productTypeDetail(this.pId).then(function (res) {\n _this.params = res;\n });\n },\n handleClose: function handleClose() {\n this.params = {\n name: '',\n code: '',\n memo: '',\n parentId: ''\n };\n this.activeCollapse1 = '1';\n this.$emit('closeFormDiaoUp');\n this.$emit('refList');\n },\n handleSave: function handleSave() {\n var _this2 = this;\n\n this.$refs.formInfo.validate(function (valid) {\n if (valid) {\n if (_this2.titleUp === '修改') {\n productManage.updateProductType(_this2.params).then(function (response) {\n if (response.state) {\n _this2.$notify({\n type: 'success',\n message: _this2.titleUp + '成功',\n duration: 2000\n });\n\n _this2.$emit('closeFormDiaoUp');\n\n _this2.$emit('refList');\n } else {\n _this2.$message.warning(response.message);\n }\n });\n }\n } else {\n return false;\n }\n });\n }\n }\n};",null]}