{"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\\expertManagement\\component\\expertPoolAddDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\src\\views\\Normal\\BasicDataManagement\\expertManagement\\component\\expertPoolAddDialog.vue","mtime":1720125638776},{"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 \"core-js/modules/es6.regexp.to-string\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\nimport _defineProperty from \"D:/jenkins/workspace/jd_cgpt_fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 basicData from '@/api/basicData';\nimport { mapState } from 'vuex';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nexport default {\n name: 'domesticDialog',\n components: {\n Breadcrumb: Breadcrumb,\n dictUtils: dictUtils\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 dialogVisible: false,\n visible: false,\n index: null,\n loading: false,\n aptitudeList: [],\n params: {},\n multipleSelection: [],\n option: [],\n fileList: [],\n sexOptions: [{\n name: '女',\n value: '0'\n }, {\n name: '男',\n value: '1'\n }],\n rules: {\n // email: [\n // {\n // required: true,\n // message: '请输入邮箱',\n // trigger: 'blur'\n // },\n // {\n // pattern: /^\\w{1,64}@[a-z0-9\\-]{1,256}(\\.[a-z]{2,6}){1,2}$/,\n // message: '邮箱格式不正确',\n // trigger: 'blur'\n // }\n // ],\n idCard: [{\n required: true,\n message: '请输入身份证号',\n trigger: 'blur'\n }, {\n pattern: /(^\\d{15}$)|(^\\d{18}$)|(^\\d{17}(\\d|X|x)$)/,\n message: '身份证号格式不正确',\n trigger: 'blur'\n }],\n mobile: [{\n required: true,\n message: '请输入手机号码',\n trigger: 'blur'\n }, {\n pattern: /^1[3456789]\\d{9}$/,\n message: '手机号码格式不正确',\n trigger: 'blur'\n }],\n account: [{\n required: true,\n message: '请输入门户账号',\n trigger: 'blur'\n }],\n expertTypeName: [{\n required: true,\n message: '请选择专家分类',\n trigger: 'blur'\n }],\n fullname: [{\n required: true,\n message: '请输入专家名称',\n trigger: 'blur'\n }],\n evaType: [{\n required: true,\n message: '请选择评标类型',\n trigger: 'blur'\n }],\n sex: [{\n required: true,\n message: '请选择性别',\n trigger: 'blur'\n }]\n },\n dataList: [],\n parameter: {\n fullname: '',\n account: '',\n nation: '',\n address: '',\n idCard: '',\n birthday: '',\n type: 1,\n mobile: '',\n email: '',\n sex: '1',\n academicDegree: '',\n orgName: '',\n userNumber: '',\n expertTypeName: '',\n typeList: [],\n evaType: '',\n isAddAccount: '',\n qualificationLabelList: []\n }\n };\n },\n created: function created() {\n this.currentUser = JSON.parse(sessionStorage.getItem('currentUserDetail'));\n this.parameter.orgName = this.currentUser.org[0].orgName;\n this.parameter.orgId = this.currentUser.org[0].orgId;\n this.parameter.orgCode = this.currentUser.org[0].orgCode;\n this.addModifyBtn();\n this.option = dictUtils.getDictItemsFromCache('zjpbfl');\n },\n computed: _objectSpread({}, mapState({\n headers: function headers(state) {\n return {\n Authorization: \"Bearer \".concat(state.login.currentUser.token)\n };\n },\n action: function action() {\n return window.context.portal + '/biz/universal/v1/minioUpload';\n }\n })),\n mounted: function mounted() {},\n methods: {\n open: function open() {\n this.getExpert();\n this.dialogVisible = true;\n },\n handleOpen: function handleOpen(row, index) {\n var _this = this;\n\n this.params = row;\n this.index = index;\n this.loading = true;\n this.visible = true;\n basicData.bizQualificationCategoryQuery(this.queryParam).then(function (res) {\n _this.loading = false;\n _this.aptitudeList = res.value.rows;\n });\n },\n dialogBeforeClose: function dialogBeforeClose() {\n this.visible = false;\n this.dialogVisible = false;\n },\n // 上传附件成功回调\n handleSuccess: function handleSuccess(res, row, index) {\n var _this2 = this;\n\n this.parameter.qualificationLabelList.forEach(function (item, i) {\n if (i == _this2.index) {\n item.accessoryList.push(res.value);\n }\n\n item.accessoryList.forEach(function (val) {\n item.name = val.name;\n item.fileTime = val.createTime;\n item.url = val.url;\n });\n });\n },\n openUpload: function openUpload(row) {\n if (row.qualificationTypeName == '' || row.qualificationTypeName == undefined) {\n this.$message.warning('请先选择资质分类');\n } else {\n this.clickUpload();\n }\n },\n clickUpload: function clickUpload() {\n this.$refs['upload'].$refs['upload-inner'].handleClick();\n },\n //下载按钮回调\n downloadFile: function downloadFile(name, url) {\n var a = document.createElement('a');\n var event = new MouseEvent('click');\n a.download = name;\n a.target = '_blank';\n a.href = url;\n a.dispatchEvent(event);\n },\n // 删除\n deleteHandle: function deleteHandle(row, index) {\n this.$confirm('是否确认删除该附件', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(function () {\n row.accessoryList.splice(index, 1);\n row.name = '';\n row.fileTime = '';\n row.url = '';\n row.accessoryList = [];\n });\n },\n addTable: function addTable() {\n this.parameter.qualificationLabelList.push({\n qualificationTypeName: '',\n qualificationTypeCode: '',\n qualificationAcquisitionDate: '',\n expiryDate: '',\n accessoryList: []\n });\n },\n //列表删除行\n delTable: function delTable(index, row) {\n this.parameter.qualificationLabelList.splice(index, 1);\n\n if (row.id) {\n this.parameter.qualificationLabelList.push(row.id);\n }\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 getExpert: function getExpert() {\n var _this3 = this;\n\n basicData.bizExpertTypeQuery(this.queryParam).then(function (res) {\n _this3.dataList = res.rows;\n });\n },\n saveExpert: function saveExpert() {\n this.parameter.typeList = this.multipleSelection;\n var data = this.parameter.typeList.map(function (item) {\n return item.expertTypeName;\n });\n this.parameter.expertTypeName = data.toString();\n this.dialogVisible = false;\n },\n clearExpertType: function clearExpertType() {\n this.parameter.expertTypeName = '';\n this.parameter.typeList = [];\n this.multipleSelection = [];\n this.$forceUpdate();\n },\n handleSelectionChange: function handleSelectionChange(val) {\n this.multipleSelection = val;\n },\n // 联系方式验证账号是否存在\n handleInput: function handleInput(event) {\n var _this4 = this;\n\n var data = {\n mobile: event\n };\n\n if (this.breadcrumbOpt[1].breadcrumbName === '新增') {\n this.$http.post('${portal}/api/user/query', data).then(function (res) {\n if (res.data.value == undefined) {\n _this4.parameter.account = event;\n _this4.parameter.isAddAccount = 1;\n } else {\n _this4.parameter.account = res.data.value.account;\n _this4.parameter.isAddAccount = 0;\n }\n });\n }\n },\n selectChange: function selectChange(val) {\n this.multipleSelection = val;\n\n if (this.multipleSelection.length > 1) {\n this.$refs.multipleSelection.toggleRowSelection(this.multipleSelection[0], false);\n }\n },\n save: function save() {\n var _this5 = this;\n\n this.parameter.qualificationLabelList.forEach(function (item, index) {\n if (index == _this5.index) {\n _this5.multipleSelection.forEach(function (val) {\n item.qualificationTypeName = val.name;\n item.qualificationTypeCode = val.code;\n });\n }\n });\n this.dialogBeforeClose();\n },\n //获取修改回显数据\n modifychoData: function modifychoData(val) {\n var _this6 = this;\n\n this.$http.post('${portal}/bizExpertDatabase/v1/selectOne?id=' + val.id).then(function (res) {\n if (res.data.state) {\n _this6.parameter = res.data.value;\n\n if (_this6.parameter.qualificationLabelList == undefined) {\n _this6.parameter.qualificationLabelList = [];\n }\n\n _this6.parameter.expertTypeName = '';\n\n if (_this6.parameter.typeList && _this6.parameter.typeList.length != 0) {\n _this6.parameter.expertTypeName = _this6.parameter.typeList.map(function (item) {\n return item.expertTypeName;\n });\n }\n\n if (_this6.parameter.orgList && _this6.parameter.orgList.length != 0) {\n _this6.parameter.useOrgList = _this6.parameter.orgList.map(function (item) {\n return item.name;\n });\n }\n\n _this6.parameter.qualificationLabelList.forEach(function (item) {\n item.accessoryList.forEach(function (val) {\n if (item.id == val.sourceId) {\n item.name = val.name;\n item.url = val.url;\n item.fileTime = val.createTime;\n }\n });\n });\n }\n });\n },\n // 关闭//面包屑点击\n handleClose: function handleClose() {\n this.$router.go(-1);\n this.parameter = {};\n },\n // 保存\n handleSave: function handleSave() {\n var _this7 = this;\n\n this.parameter.qualificationLabelList.forEach(function (item) {\n if (item.id) {\n delete item.id;\n }\n\n if (item.accessoryList) {\n item.accessoryList.forEach(function (val) {\n if (val.id) {\n delete val.id;\n }\n });\n }\n });\n this.parameter.evaType = this.parameter.evaType.toString();\n this.$refs.formInfo.validate(function (valid) {\n if (valid) {\n _this7.saveing = true;\n basicData.bizExpertDatabaseSave(_this7.parameter).then(function (res) {\n _this7.saveing = false;\n\n if (res.state) {\n _this7.$message.success('保存成功');\n\n _this7.handleClose();\n }\n });\n }\n });\n }\n }\n};",null]}