{"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\\accessRule\\component\\addRule.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\src\\views\\Normal\\BasicDataManagement\\accessRule\\component\\addRule.vue","mtime":1720730442274},{"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.regexp.split\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 procurementManagement from '@/api/procurementManagement';\nimport expertPoolUnits from \"../../expertManagement/component/expertPoolUnits.vue\";\nexport default {\n name: 'add',\n components: {\n Breadcrumb: Breadcrumb,\n expertPoolUnits: expertPoolUnits\n },\n props: {\n editData: Object\n },\n data: function data() {\n return {\n breadcrumbOpt: [{\n breadcrumbName: '准入规则'\n }, {\n breadcrumbName: '新增'\n }],\n saveing: false,\n loading: false,\n methodUnitsList: [],\n deptsProps: {\n value: 'alias',\n label: 'name',\n children: 'children',\n multiple: true,\n checkStrictly: true\n },\n matCategoryList: [],\n options: [],\n rules: {\n procureOrgName: [{\n required: true,\n message: '请输入企业名称',\n trigger: 'blur'\n }],\n addUserName: [{\n required: true,\n message: '请输入添加人姓名',\n trigger: 'blur'\n }],\n necessaryStatus: [{\n required: true,\n message: '请选择是否必传',\n trigger: 'blur'\n }],\n addTime: [{\n required: true,\n message: '请选择时间',\n trigger: 'blur'\n }],\n matCategoryName: [{\n required: true,\n message: '请选择分类',\n trigger: 'blur'\n }],\n level: [{\n required: true,\n message: '请选择分级',\n trigger: 'blur'\n }],\n qualificationCategoryName: [{\n required: true,\n message: '请选择资质类别',\n trigger: 'blur'\n }]\n },\n parameter: {\n procureOrgName: '',\n procureOrgId: '',\n procureOrgCode: '',\n addTime: '',\n matCategoryName: '',\n configQualificationList: []\n }\n };\n },\n created: function created() {\n this.getSupplierType();\n this.getQualification();\n this.addModifyBtn();\n this.currentUser = JSON.parse(sessionStorage.getItem('currentUserDetail'));\n this.parameter.procureOrgName = this.currentUser.org[0].orgName;\n this.parameter.procureOrgId = this.currentUser.org[0].orgId;\n this.parameter.procureOrgCode = this.currentUser.org[0].orgCode;\n this.parameter.addUserName = this.currentUser.user.fullname;\n },\n mounted: function mounted() {},\n methods: {\n getTreeData: function getTreeData(data) {\n for (var i = 0; i < data.length; i++) {\n if (data[i].children.length < 1) {\n // 最后一级没有数据将children变成undefined\n delete data[i].children;\n } else {\n // children不为空时继续调用该方法\n this.getTreeData(data[i].children);\n }\n }\n\n return data;\n },\n getSupplierType: function getSupplierType() {\n var _this = this;\n\n var params = {\n pageBean: {\n page: -1,\n pageSize: -1\n },\n querys: []\n };\n this.$http.post('${portal}/bizSupplierType/v1/page', params).then(function (res) {\n if (res.data.state) {\n _this.matCategoryList = res.data.value.rows;\n }\n });\n },\n getQualification: function getQualification() {\n var _this2 = this;\n\n var params = {\n pageBean: {\n page: -1,\n pageSize: -1\n }\n };\n this.$http.post('${portal}/bizQualificationCategory/v1/page', params).then(function (res) {\n if (res.data.state) {\n var data = res.data.value.rows;\n _this2.options = data;\n }\n });\n },\n changeQualificat: function changeQualificat(item) {\n var _this3 = this;\n\n this.parameter.list.forEach(function (val) {\n if (val == item.code) {\n _this3.parameter.configQualificationList.push({\n qualificationCategoryId: item.id\n });\n }\n });\n console.log(this.parameter.configQualificationList);\n },\n changeMat: function changeMat(item) {\n this.parameter.matCategoryId = item.id;\n this.parameter.matCategoryCode = item.code;\n this.parameter.matCategoryName = item.name;\n this.parameter.vendorCategoryId = item.id;\n this.parameter.vendorCategoryName = item.name;\n this.parameter.vendorCategoryCode = item.code;\n },\n openOrg: function openOrg() {\n this.$refs.troubleshooting.add();\n },\n addDetail: function addDetail(list) {\n this.parameter.procureOrgName = list[0].name;\n this.parameter.procureOrgId = list[0].id;\n this.parameter.procureOrgCode = list[0].code;\n },\n //编辑\n addModifyBtn: function addModifyBtn() {\n if (this.$route.query.editRows) {\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 _this4 = this;\n\n this.loading = true;\n this.$http.get('${portal}/purchasingApplicationRules/v1/' + val.id).then(function (res) {\n _this4.loading = false;\n _this4.parameter = res.data;\n _this4.parameter.approvalMenuAlias = _this4.parameter.approvalMenuAlias.split(',');\n });\n },\n // 关闭//面包屑点击\n handleClose: function handleClose() {\n if (this.breadcrumbOpt[1].breadcrumbName === '编辑') {\n this.$router.push({\n name: 'accessRule'\n });\n } else {\n this.$router.push({\n name: 'accessRule'\n });\n }\n\n this.parameter = {};\n },\n // 保存\n handleSave: function handleSave() {\n var _this5 = this;\n\n this.$refs.formInfo.validate(function (valid) {\n if (valid) {\n _this5.saveing = true;\n\n _this5.$http.post('${portal}/admissionConfig/v1/saveOrUpdateEntity', _this5.parameter).then(function (res) {\n if (res.data.state) {\n _this5.$message.success(res.data.message);\n\n _this5.handleClose();\n }\n\n _this5.saveing = false;\n });\n }\n });\n }\n }\n};",null]}