{"remainingRequest":"D:\\jenkins\\workspace\\ljzc-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\ljzc-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\ljzc-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\ljzc-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\ljzc-fvue\\src\\views\\FixedAsset\\FixedAssetsLedger\\AssetType\\components\\editAddDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\ljzc-fvue\\src\\views\\FixedAsset\\FixedAssetsLedger\\AssetType\\components\\editAddDialog.vue","mtime":1701943659846},{"path":"D:\\jenkins\\workspace\\ljzc-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\ljzc-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\ljzc-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\ljzc-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\ljzc-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//\nimport utils from '@/utils.js';\nimport Breadcrumb from '@/components/Breadcrumb/index.vue';\nimport api from '@/api/FixedAsset/FixedAssetsLedger/AssetType.js';\nexport default {\n name: 'domesticDialog',\n components: {\n Breadcrumb: Breadcrumb\n },\n data: function data() {\n return {\n breadcrumbOpt: [{\n breadcrumbName: '类型信息'\n }, {\n breadcrumbName: '添加'\n }],\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 orgTree: [],\n //组织树\n orgValue: [],\n parameter: {},\n orgId: '' //组织id\n\n };\n },\n created: function created() {\n this.getFixedTree();\n },\n mounted: function mounted() {},\n methods: {\n //编辑\n addModifyBtn: function addModifyBtn(val) {\n if (val) {\n this.breadcrumbOpt[1].breadcrumbName = '编辑';\n this.modifychoData(val);\n } else {\n this.breadcrumbOpt[1].breadcrumbName = '添加';\n }\n },\n //获取修改回显数据\n modifychoData: function modifychoData(val) {\n var _this = this;\n\n api.detailsData(val.id, function (res) {\n if (res) {\n _this.parameter = res;\n\n if (res.parentId) {\n _this.orgValue = utils.getAllParentArr(_this.orgTree, res.parentId, 'id', 'children');\n } // if (res.projectAddvcd) {\n // let fullId = utils.trimSpace(res.projectAddvcd.split('/'))\n // console.log(fullId);\n // }\n\n }\n });\n },\n //获取组织树\n getFixedTree: function getFixedTree() {\n var _this2 = this;\n\n api.getFixedTree({}, function (res) {\n if (res.state) {\n _this2.orgTree = res.value;\n }\n });\n },\n //绑定所属业主\n handelOrg: function handelOrg() {\n var data = this.$refs[\"cascaderOrg\"].getCheckedNodes()[0].data;\n this.parameter.parentId = data.id;\n },\n // 关闭//面包屑点击\n handleClose: function handleClose() {\n this.$emit('closeComponent');\n this.orgValue = [];\n this.parameter = {};\n this.$refs.formInfo.clearValidate();\n },\n // 保存\n handleSave: function handleSave() {\n var _this3 = this;\n\n this.$refs.formInfo.validate(function (valid) {\n if (valid) {\n if (_this3.breadcrumbOpt[1].breadcrumbName === '添加') {\n api.addData(_this3.parameter, function (res) {\n if (res.state) {\n _this3.$message.success('保存成功');\n\n _this3.handleClose();\n }\n });\n } else if (_this3.breadcrumbOpt[1].breadcrumbName === '编辑') {\n api.editData(_this3.parameter, function (res) {\n if (res.state) {\n _this3.$message.success('编辑成功');\n\n _this3.handleClose();\n }\n });\n }\n }\n });\n }\n }\n};",null]}