{"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\\LandLedger\\LandLedgerEnter\\LandLedgerInfo\\components\\editAddDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\ljzc-fvue\\src\\views\\LandLedger\\LandLedgerEnter\\LandLedgerInfo\\components\\editAddDialog.vue","mtime":1702369423995},{"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":["import \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/es6.regexp.to-string\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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/LandLedger/LandLedgerEnter/LandLedgerInfo.js';\nexport default {\n components: {\n Breadcrumb: Breadcrumb\n },\n data: function data() {\n return {\n breadcrumbOpt: [{\n breadcrumbName: '土地资产入库登记'\n }, {\n breadcrumbName: '添加'\n }],\n parameter: {\n assetType: '',\n assetBusiness: '',\n assetSrc: '',\n assetNature: '',\n assetBelong: '',\n assetDecorate: '',\n landStatus: '',\n isOutAsset: null,\n belongsOrgFullId: '',\n belongsOrgId: '',\n belongsOrgName: '',\n assetLandWarrents: {\n isGetWarrents: '0',\n isMortgage: '0',\n warrentsOrgId: null,\n warrentsNo: null\n },\n assetLandUse: {}\n },\n active: 0,\n warrentsValue: [],\n //权属\n fullTree: [],\n //行政区划\n fullValue: [],\n orgValue: [],\n orgTree: [],\n //组织树\n projectData: [],\n //项目信息\n buildingData: [],\n //楼栋信息\n rules: {\n addvcd: [{\n required: true,\n message: '请选择所在行政区划',\n trigger: 'blur'\n }],\n buildingId: [{\n required: true,\n message: '请选择楼栋',\n trigger: 'blur'\n }],\n name: [{\n required: true,\n message: '请输入资产名称',\n trigger: 'blur'\n }],\n code: [{\n required: true,\n message: '请输入资产编号',\n trigger: 'blur'\n }],\n assetType: [{\n required: true,\n message: '请选择土地类型',\n trigger: 'blur'\n }],\n assetBusiness: [{\n required: true,\n message: '请选择资产业态',\n trigger: 'blur'\n }],\n assetSrc: [{\n required: true,\n message: '请选择资产来源',\n trigger: 'blur'\n }],\n assetNature: [{\n required: true,\n message: '请选择资产属性',\n trigger: 'blur'\n }],\n assetBelong: [{\n required: true,\n message: '请选择资产归属',\n trigger: 'blur'\n }],\n belongsOrgId: [{\n required: true,\n message: '请选择所属公司',\n trigger: 'blur'\n }],\n landStatus: [{\n required: true,\n message: '请选择资产状态',\n trigger: 'blur'\n }],\n bookValue: [{\n required: true,\n message: '请输入账面价值',\n trigger: 'blur'\n }],\n landArea: [{\n required: true,\n message: '请输入土地面积',\n trigger: 'blur'\n }],\n assetLandUse: {\n yearEarnings: [{\n required: true,\n message: '请输入年收益',\n trigger: 'blur'\n }],\n hireArea: [{\n required: true,\n message: '请输入出租面积',\n trigger: 'blur'\n }]\n },\n assetLandWarrents: {\n isGetWarrents: [{\n required: true,\n message: '请选择是否已获取权属信息',\n trigger: 'blur'\n }],\n isMortgage: [{\n required: true,\n message: '请选择是否设置抵质押',\n trigger: 'blur'\n }],\n warrentsOrgId: [{\n required: true,\n message: '请选择权属单位',\n trigger: 'blur'\n }],\n warrentsNo: [{\n required: true,\n message: '请输入权属证号',\n trigger: 'blur'\n }]\n }\n }\n };\n },\n created: function created() {\n var curUserDetail = this.$store.state.user.currentUserDetail;\n this.orgId = curUserDetail.org[0].orgId;\n this.getFullTree();\n this.getUserOrgTree();\n },\n mounted: function mounted() {},\n computed: {\n hireRate: function hireRate() {\n return this.parameter.assetLandUse.hireArea ? this.parameter.assetLandUse.hireArea / this.parameter.landArea * 100 : 0;\n },\n leaseIncome: function leaseIncome() {\n return this.parameter.assetLandUse.yearEarnings ? this.parameter.assetLandUse.yearEarnings / this.parameter.bookValue * 100 : 0;\n }\n },\n watch: {\n hireRate: function hireRate(val) {\n if (val > 100) {\n this.$message.warning('出租率过大!!!请核对数据信息');\n }\n\n this.parameter.assetLandUse.hireRate = val;\n },\n leaseIncome: function leaseIncome(val) {\n this.parameter.assetLandUse.yearEarningsRate = val;\n\n if (val >= 7) {\n this.parameter.assetLandUse.operationLevel = 'A';\n } else if (7 > val >= 5) {\n this.parameter.assetLandUse.operationLevel = 'B';\n } else if (4 > val >= 2) {\n this.parameter.assetLandUse.operationLevel = 'C';\n } else if (2 > val) {\n this.parameter.assetLandUse.operationLevel = 'D';\n }\n }\n },\n methods: {\n //编辑\n addModifyBtn: function addModifyBtn(val) {\n var _this = this;\n\n if (val) {\n this.breadcrumbOpt[1].breadcrumbName = '编辑';\n this.modifychoData(val);\n } else {\n this.breadcrumbOpt[1].breadcrumbName = '添加';\n this.orgValue = utils.getAllParentArr(this.orgTree, this.orgId, 'id', 'children');\n this.parameter.assetType = utils.getDictItemsFromCache('zclx')[0].value;\n this.parameter.assetBusiness = utils.getDictItemsFromCache('zcyt')[0].value;\n this.parameter.assetSrc = utils.getDictItemsFromCache('xmly')[0].value;\n this.parameter.assetNature = utils.getDictItemsFromCache('xmsx')[0].value;\n this.parameter.assetBelong = utils.getDictItemsFromCache('xmgs')[0].value;\n this.parameter.assetDecorate = utils.getDictItemsFromCache('zxzt')[0].value;\n this.parameter.landStatus = utils.getDictItemsFromCache('zcytyt')[0].value; // this.$set(this.parameter)\n\n this.$nextTick(function () {\n _this.handelOrg();\n });\n }\n },\n //获取修改回显数据\n modifychoData: function modifychoData(val) {\n var _this2 = this;\n\n api.detailsData(val.id, function (res) {\n if (res) {\n _this2.parameter = res;\n console.log(res);\n\n if (res.belongsOrgId) {\n _this2.orgValue = utils.getAllParentArr(_this2.orgTree, res.belongsOrgId, 'id', 'children');\n }\n\n if (res.assetLandWarrents && res.assetLandWarrents.warrentsOrgId) {\n _this2.warrentsValue = utils.getAllParentArr(_this2.orgTree, res.assetLandWarrents.warrentsOrgId, 'id', 'children');\n }\n\n if (res.addvcd) {\n _this2.fullValue = utils.getAllParentArr(_this2.fullTree, res.addvcd, 'id', 'children');\n }\n\n if (res.assetLandUse && res.assetLandUse.fillYear) {\n _this2.parameter.assetLandUse.fillYear = _this2.parameter.assetLandUse.fillYear.toString();\n }\n }\n });\n },\n //获取行政区划\n getFullTree: function getFullTree() {\n var _this3 = this;\n\n api.fullTree({}, function (res) {\n if (res.state) {\n _this3.fullTree = res.value;\n console.log(res.value);\n }\n });\n },\n //获取组织树\n getUserOrgTree: function getUserOrgTree() {\n var _this4 = this;\n\n api.getUserOrgTree(this.orgId, function (res) {\n if (res) {\n _this4.orgTree = res;\n }\n });\n },\n //绑定单位\n handelOrg: function handelOrg() {\n var data = this.$refs[\"cascader\"].getCheckedNodes()[0].data;\n this.parameter.belongsOrgFullId = data.path;\n this.parameter.belongsOrgId = data.id;\n this.parameter.belongsOrgName = data.name;\n },\n //绑定行政区划\n handelFull: function handelFull() {\n var data = this.$refs[\"cascaderFull\"].getCheckedNodes()[0].data;\n this.parameter.addvcd = data.code;\n this.parameter.addvcdName = data.name;\n },\n //绑定权属\n handelWarrents: function handelWarrents() {\n var data = this.$refs[\"warrentsCascader\"].getCheckedNodes()[0].data;\n this.parameter.assetLandWarrents.warrentsOrgId = data.id;\n this.parameter.assetLandWarrents.warrentsOrgName = data.name;\n },\n //单选框取消选中\n clickitemdataType: function clickitemdataType(value) {\n console.log(value);\n this.parameter.isOutAsset = value == this.parameter.isOutAsset ? '' : value;\n console.log(this.parameter.isOutAsset);\n },\n // 关闭//面包屑点击\n handleClose: function handleClose() {\n this.$emit('closeComponent');\n this.active = 0;\n this.parameter = {\n assetType: '',\n assetBusiness: '',\n assetSrc: '',\n assetNature: '',\n assetBelong: '',\n assetDecorate: '',\n landStatus: '',\n isOutAsset: null,\n belongsOrgFullId: '',\n belongsOrgId: '',\n belongsOrgName: '',\n assetLandWarrents: {\n isGetWarrents: '0',\n isMortgage: '0',\n warrentsOrgId: null,\n warrentsNo: null\n },\n assetLandUse: {}\n };\n this.$refs.formInfo.clearValidate();\n },\n // 保存\n addBtn: function addBtn() {\n var _this5 = this;\n\n this.$refs.formInfo.validate(function (valid) {\n if (valid) {\n if (_this5.breadcrumbOpt[1].breadcrumbName === '添加') {\n api.addData(_this5.parameter, function (res) {\n if (res.state) {\n _this5.$message.success('保存成功');\n\n _this5.handleClose();\n }\n });\n } else if (_this5.breadcrumbOpt[1].breadcrumbName === '编辑') {\n api.editData(_this5.parameter, function (res) {\n if (res.state) {\n _this5.$message.success('编辑成功');\n\n _this5.handleClose();\n }\n });\n }\n }\n });\n },\n // 下一步\n next: function next(num) {\n var _this6 = this;\n\n if (num > 0) {\n this.$refs.formInfo.validate(function (valid) {\n if (valid) {\n _this6.active += num;\n }\n });\n } else {\n this.active += num;\n }\n }\n }\n};",null]}