{"remainingRequest":"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\\productOrgDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Device\\deviceManage\\components\\productOrgDialog.vue","mtime":1687946823184},{"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//\n\r\nimport utils from '@/hotent-ui-util.js'\r\nimport dictUtils from '@/components/dict/DictSelectUtils.js'\r\nimport productManage from '@/api/device/productManage.js'\r\nexport default {\r\n name: 'FormDialog',\r\n props: {\r\n showFormDias: {\r\n type: Boolean,\r\n default: false\r\n },\r\n titles: {\r\n type: String,\r\n default: ''\r\n },\r\n pId: {\r\n type: String,\r\n default: ''\r\n }\r\n },\r\n data() {\r\n return {\r\n params: {\r\n code: '',\r\n name: '',\r\n memo: '',\r\n parentId: this.pId\r\n },\r\n activeCollapse1:'1',\r\n rules: {\r\n name: [\r\n {\r\n required: true,\r\n message: '请输入产品名称',\r\n trigger: 'blur'\r\n }\r\n ],\r\n code: [\r\n {\r\n required: true,\r\n message: '请输入产品编码',\r\n trigger: 'blur'\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n created() {},\r\n methods: {\r\n handleClose() {\r\n this.params = {\r\n name: '',\r\n code: '',\r\n memo: '',\r\n parentId: ''\r\n }\r\n this.activeCollapse1 = \"1\"\r\n this.$emit('closeFormDiaos')\r\n this.$emit('refList')\r\n },\r\n handleSave() {\r\n this.$refs.formInfo.validate(valid => {\r\n if (valid) {\r\n if (this.titles === '新增') {\r\n productManage.addProductType(this.params).then(response => {\r\n if (response.state) {\r\n this.$notify({\r\n type: 'success',\r\n message: this.titles + '成功',\r\n duration: 2000\r\n })\r\n this.$emit('closeFormDiaos')\r\n this.$emit('refList')\r\n } else {\r\n this.$message.warning(response.message)\r\n }\r\n })\r\n }\r\n } else {\r\n return false\r\n }\r\n })\r\n }\r\n }\r\n}\r\n",null]}