{"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\\SupplierManagement\\enterpriseInvitation\\component\\addDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\src\\views\\Normal\\SupplierManagement\\enterpriseInvitation\\component\\addDialog.vue","mtime":1720730442290},{"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/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/es6.object.keys\";\nimport _defineProperty from \"D:/jenkins/workspace/jd_cgpt_fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\nimport \"core-js/modules/es6.regexp.split\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.function.name\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 supplierManger from '@/api/supplierManger.js';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport Breadcrumb from '@/components/Breadcrumb/index.vue';\nimport utils from '@/utils.js';\nimport expertPoolUnits from \"./expertPoolUnits.vue\";\nimport expertOrgUnits from \"./expertOrgUnits.vue\";\nimport classificationDialog from \"./classificationDialog.vue\";\nimport multipleInput from \"../../blacklistSupplier/component/multipleInput.vue\";\nexport default {\n name: 'domesticDialog',\n components: {\n Breadcrumb: Breadcrumb,\n expertPoolUnits: expertPoolUnits,\n expertOrgUnits: expertOrgUnits,\n dictUtils: dictUtils,\n multipleInput: multipleInput,\n classificationDialog: classificationDialog\n },\n props: {\n editData: Object\n },\n data: function data() {\n return {\n saveing: false,\n breadcrumbOpt: [{\n breadcrumbName: '企业邀请'\n }, {\n breadcrumbName: '新增'\n }],\n rules: {\n enterpriseName: [{\n required: true,\n message: '请选择企业名称',\n trigger: ['blur', 'change']\n }],\n supplierName: [{\n required: true,\n message: '请选择供应商名称',\n trigger: ['blur', 'change']\n }],\n categoryName: [{\n required: true,\n message: '请选择供应商分类',\n trigger: ['blur', 'change']\n }],\n needProvideQualifications: [{\n required: true,\n message: '请选择资质',\n trigger: ['blur', 'change']\n }],\n qualificationsCodeList: [{\n required: true,\n message: '请选择资质类型',\n trigger: ['blur', 'change']\n }]\n },\n parameter: {\n type: 1,\n categoryCode: '',\n level: 1,\n reviewStatus: 2,\n needProvideQualifications: 0,\n qualificationsCodeList: [],\n suppliersQualificationList: [],\n supplierTypeId: '',\n categoryName: ''\n },\n options: [],\n classList: [],\n suppliersQualificationList: [],\n enterpriseList: [],\n supplierList: [],\n loading: false\n };\n },\n created: function created() {\n this.currentUser = JSON.parse(sessionStorage.getItem('currentUserDetail'));\n this.parameter.enterpriseId = this.currentUser.org[0].orgId;\n this.parameter.enterpriseName = this.currentUser.org[0].orgName;\n this.parameter.enterpriseCode = this.currentUser.org[0].orgCode;\n this.addModifyBtn();\n this.getQualification();\n },\n methods: {\n handleInput: function handleInput() {\n this.$refs['class'].add();\n },\n open: function open(type) {\n this.$refs[type].add();\n },\n deleteTags: function deleteTags(index, key) {\n if (!index) {\n this[key] = [];\n } else {\n this[key].splice(index, 1);\n }\n\n if (key === 'enterpriseList') {\n this.$set(this.parameter, 'enterpriseName', '');\n this.$set(this.parameter, 'enterpriseId', '');\n this.$set(this.parameter, 'enterpriseCode', '');\n }\n\n console.log(this.parameter);\n },\n addDetail: function addDetail(list, key) {\n console.log(list, key);\n this[key] = list;\n\n if (key === 'enterpriseList') {\n this.$set(this.parameter, 'enterpriseName', list[0].name);\n this.$set(this.parameter, 'enterpriseId', list[0].id);\n this.$set(this.parameter, 'enterpriseCode', list[0].code);\n } else {\n var arr = [];\n list.forEach(function (item) {\n arr.push(item.name);\n });\n this.$set(this.parameter, 'supplierName', arr.join(','));\n console.log(this.parameter);\n }\n },\n getClass: function getClass(list) {\n this.parameter.categoryCode = list[0].code;\n this.parameter.categoryName = list[0].name;\n this.parameter.supplierTypeId = list[0].id;\n },\n getByIdData: function getByIdData(id) {\n var _this = this;\n\n supplierManger.getByIdManage(id).then(function (res) {\n console.log(res, 'ress');\n _this.loading = false;\n var data = res.data;\n _this.enterpriseList = [{\n id: data.enterpriseId,\n code: data.enterpriseCode,\n name: data.enterpriseName\n }];\n _this.supplierList = [{\n id: data.supplierId,\n code: data.supplierCode,\n name: data.supplierName\n }];\n _this.parameter = data;\n\n if (_this.parameter.qualificationsCode) {\n _this.parameter.qualificationsCodeList = _this.parameter.qualificationsCode.split(',');\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 console.log(res, 111111111);\n\n if (res.data.state) {\n var data = res.data.value.rows;\n _this2.options = data;\n }\n });\n },\n changeCode: function changeCode(val) {\n var _this3 = this;\n\n console.log(val, 'val');\n var data = dictUtils.getDictItemsFromCache('gysfl');\n data.forEach(function (item) {\n if (item.value == val) {\n _this3.parameter.categoryName = item.name;\n }\n });\n },\n changeStatus: function changeStatus(val) {\n if (val == 1) {\n this.parameter.reviewStatus = 0;\n } else {\n this.parameter.reviewStatus = 2;\n }\n },\n changeQua: function changeQua(val) {\n var _this4 = this;\n\n console.log(val);\n this.parameter.qualificationsCode = val.join(',');\n\n if (this.breadcrumbOpt[1].breadcrumbName === '编辑') {\n this.suppliersQualificationList = [];\n this.options.forEach(function (item) {\n val.forEach(function (v) {\n if (item.code == v) {\n _this4.suppliersQualificationList.push({\n qualificationCategoryId: item.id,\n qualificationCategoryCode: item.code,\n qualificationCategoryName: item.name,\n fileSize: item.fileSize,\n fileNum: item.fileNum\n });\n }\n });\n console.log(_this4.suppliersQualificationList, 1111111111);\n });\n } else {\n this.suppliersQualificationList = [];\n this.options.forEach(function (item) {\n val.forEach(function (v) {\n if (item.code == v) {\n _this4.suppliersQualificationList.push({\n qualificationCategoryId: item.id,\n qualificationCategoryCode: item.code,\n qualificationCategoryName: item.name,\n fileSize: item.fileSize,\n fileNum: item.fileNum\n });\n }\n });\n });\n }\n\n this.$forceUpdate();\n },\n //编辑\n addModifyBtn: function addModifyBtn() {\n // let id = this.$route.query.rows.id\n // if (id) {\n // this.loading = true\n // this.getByIdData(id)\n // this.breadcrumbOpt[1].breadcrumbName = '编辑'\n // } else {\n // }\n this.breadcrumbOpt[1].breadcrumbName = '新增';\n },\n // 关闭//面包屑点击\n handleClose: function handleClose() {\n if (this.breadcrumbOpt[1].breadcrumbName === '编辑') {\n this.$router.push({\n name: 'enterpriseInvitation',\n params: {\n pageBean: this.$route.query.pageBean\n }\n });\n } else {\n this.$router.push({\n name: 'enterpriseInvitation'\n });\n }\n\n this.active = 0; // this.$emit('closeComponent')\n\n this.parameter = {}; // this.$refs.formInfo.clearValidate()\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 if (_this5.suppliersQualificationList.length != 0) {\n _this5.parameter.suppliersQualificationList = _this5.suppliersQualificationList;\n }\n\n var params = _objectSpread(_objectSpread({}, _this5.parameter), {}, {\n supplierList: _this5.supplierList\n });\n\n supplierManger.saveManage(params).then(function (res) {\n _this5.saveing = false;\n\n if (res.data.state) {\n _this5.$confirm('保存成功,是否返回列表页?', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'success'\n }).then(function () {\n _this5.$router.push({\n name: 'enterpriseInvitation'\n });\n });\n } else {\n _this5.loading = false;\n\n _this5.$message.error('保存失败!');\n }\n });\n }\n });\n }\n }\n};",null]}