{"remainingRequest":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\jd_cgpt_fvue\\src\\views\\Normal\\BasicDataManagement\\evaluationSystem\\component\\lowestAddDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\src\\views\\Normal\\BasicDataManagement\\evaluationSystem\\component\\lowestAddDialog.vue","mtime":1719866430339},{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.function.name\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 Breadcrumb from '@/components/Breadcrumb/index.vue';\nimport methodUnits from \"./methodUnits.vue\";\nimport basicData from '@/api/basicData';\nexport default {\n name: 'domesticDialog',\n components: {\n Breadcrumb: Breadcrumb,\n methodUnits: methodUnits\n },\n props: {\n editData: Object\n },\n data: function data() {\n return {\n breadcrumbOpt: [{\n breadcrumbName: '最低价评标法'\n }, {\n breadcrumbName: '新增'\n }],\n options: [],\n rules: {\n preparedOrgName: [{\n required: true,\n message: '请输入编制单位',\n trigger: 'blur'\n }],\n name: [{\n required: true,\n message: '请输入名称',\n trigger: 'blur'\n }]\n },\n useOrgListValue: '',\n treeData: [],\n methodUnitsList: [],\n parameter: {\n evaluatingMethods: 2,\n useOrgList: [],\n preparedOrgId: '',\n description: '',\n remarks: ''\n }\n };\n },\n created: function created() {\n this.addModifyBtn();\n this.selectTree();\n this.currentUser = JSON.parse(sessionStorage.getItem('currentUserDetail'));\n this.parameter.preparedOrgId = this.currentUser.org[0].orgId;\n this.parameter.preparedOrgName = this.currentUser.org[0].orgName;\n this.parameter.preparedOrgCode = this.currentUser.org[0].orgCode;\n },\n mounted: function mounted() {},\n methods: {\n //查询物料分类树结构\n selectTree: function selectTree() {\n var _this = this;\n\n basicData.bizEvaluationItemSelectTree().then(function (res) {\n _this.treeData = res.value[0].children;\n });\n },\n //使用单位\n purchasingUnitsBtn: function purchasingUnitsBtn() {\n this.$refs.troubleshooting.add();\n },\n addDetail: function addDetail(list) {\n this.methodUnitsList = list;\n this.parameter.useOrgList = list.map(function (item) {\n return {\n orgId: item.id\n };\n });\n this.useOrgListValue = list.map(function (item) {\n return item.name;\n }).join(',');\n },\n //编辑\n addModifyBtn: function addModifyBtn() {\n if (this.$route.query.editRows) {\n console.log();\n this.breadcrumbOpt[1].breadcrumbName = '编辑';\n this.modifychoData(this.$route.query.editRows);\n } else {\n this.breadcrumbOpt[1].breadcrumbName = '新增';\n }\n },\n //获取修改回显数据\n modifychoData: function modifychoData(val) {\n var _this2 = this;\n\n basicData.bizEvaluationSystemId(val.id).then(function (res) {\n _this2.parameter = res.value;\n _this2.methodUnitsList = res.value.orgs;\n _this2.useOrgListValue = res.value.orgs.map(function (item) {\n return item.name;\n }).join(',');\n _this2.parameter.useOrgList = res.value.orgs.map(function (item) {\n return {\n orgId: item.id\n };\n });\n });\n },\n // 关闭//面包屑点击\n handleClose: function handleClose() {\n if (this.breadcrumbOpt[1].breadcrumbName === '编辑') {\n this.$router.push({\n name: 'evaluationSystem',\n params: {\n tabsActiveName: 'lowestMethod',\n pageBean: this.$route.query.pageBean\n }\n });\n } else {\n this.$router.push({\n name: 'evaluationSystem',\n params: {\n tabsActiveName: 'lowestMethod'\n }\n });\n }\n\n this.parameter = {};\n },\n // 保存\n handleSave: function handleSave() {\n var _this3 = this;\n\n this.$refs.formInfo.validate(function (valid) {\n if (valid) {\n basicData.bizEvaluationSaveOrUpdate(_this3.parameter).then(function (res) {\n if (res.state) {\n _this3.$message.success(res.message);\n\n if (_this3.breadcrumbOpt[1].breadcrumbName === '编辑') {\n _this3.$router.push({\n name: 'evaluationSystem',\n params: {\n tabsActiveName: 'lowestMethod',\n pageBean: _this3.$route.query.pageBean\n }\n });\n } else {\n _this3.$router.push({\n name: 'evaluationSystem',\n params: {\n tabsActiveName: 'lowestMethod'\n }\n });\n }\n }\n });\n }\n });\n }\n }\n};",null]}