diff --git a/src/views/relevantunits/audit/components/corpInfoEdit.vue b/src/views/relevantunits/audit/components/corpInfoEdit.vue index 9a3829a..147891a 100644 --- a/src/views/relevantunits/audit/components/corpInfoEdit.vue +++ b/src/views/relevantunits/audit/components/corpInfoEdit.vue @@ -311,48 +311,6 @@ import { upload } from '@/utils/upload' export default { components: { SelectTree }, data() { - /* var hasName = (rule, value, callback) => { - requestFN( - '/corpinfo/hasName', - { - RELEVANT_UNIT_NAME: value, - CORPINFO_ID: '' - - } - ).then((data) => { - if (data.pd) { - if (data.pd.CORPINFO_ID === this.$parent.CORPINFO_ID) { - callback() - } else { - callback(new Error('单位名称重复')) - } - } - callback() - }).catch((e) => { - callback() - }) - } */ - /* var hasSocialCode = (rule, value, callback) => { - requestFN( - '/corpinfo/hasSocialCode', - { - SOCIAL_CODE: value, - CORPINFO_ID: '' - - } - ).then((data) => { - if (data.pd) { - if (data.pd.CORPINFO_ID === this.$parent.CORPINFO_ID) { - callback() - } else { - callback(new Error('统一社会信用代码重复')) - } - } - callback() - }).catch((e) => { - callback() - }) - } */ return { dataForm: { MAIN_DEPARTMENT: '', @@ -466,23 +424,8 @@ export default { ecoArr: [], ecoNameArr: [], INDUSTRY: '', - // imgUrl: require('@/assets/images/map.png'), rules: { MAIN_DEPARTMENT: [{ required: true, message: '主管部门不能为空', trigger: 'blur' }], - /* RELEVANT_UNIT_NAME: [ - { required: true, message: '单位名字不能为空', trigger: 'blur' }, - { validator: hasName, trigger: 'blur' } - ], */ - /* SOCIAL_CODE: [ - { required: true, message: '统一社会信用代码不能为空', trigger: 'blur' }, - { validator: hasSocialCode, trigger: 'blur' }, - { - pattern: /^[^_IOZSVa-z\W]{2}\d{6}[^_IOZSVa-z\W]{10}$/, - message: '请输入正确的统一社会信用代码' - } - ], */ - // POSSESSION: [{ required: true, message: '属地不能为空', trigger: 'blur' }], - // INDUSTRY: [{ required: true, message: '国民经济行业分类 (GB-T4754-2017)不能为空', trigger: 'blur' }], ECONOMIC_TYPE: [{ required: true, message: '请选择经济类型', trigger: 'blur' }], LONGITUDE: [{ required: true, message: '请选择经度', trigger: 'blur' }], LATITUDE: [{ required: true, message: '请选择纬度', trigger: 'blur' }], @@ -645,22 +588,6 @@ export default { this.$nextTick(() => { // 此处使用这个可以等节点渲染后再获取节点 this.$refs.deptTree.handleNodeClick(node) }) - /* this.OLDFOURTYPE = data.pd.FOURTYPE - this.form = Object.assign(this.form, data.pd) - // 国民经济行业分类 - if (data.pd.industryOption && data.pd.industryOption.length > 0) { - this.hylxList = data.pd.industryOption - } else { - this.getDictByDicId('f2598ba72e864eadabf0ca4b664d26b9').then(data => { - this.hylxList = data - }) - } - // 主管部门监管部门 - if (data.dep) { - this.mainDepartment = data.dep.MAIN_REGULATORY_DEPARTMENT_NAME - this.regulatoryDepartment = data.dep.REGULATORY_DEPARTMENT_NAME - } - console.log('this.form', this.form) */ resolve() }).catch((e) => { this.$message({ @@ -673,9 +600,6 @@ export default { }) }, getNextTickData() { - // this.$nextTick(() => { - // this.$refs.ecoCascader.presentText = this.censusRegisterPlaceName - // }) if (this.form.CORP_OF_TYPE2 && this.form.CORP_OF_TYPE2 != '') { const node = {} node.id = this.form.CORP_OF_TYPE2 @@ -689,11 +613,6 @@ export default { this.$refs.corpOfTypeRef.handleNodeClick(node) }) } - // const nodea = {} - // nodea.id = this.form.TRAINTYPE - // this.$nextTick(() => { // 此处使用这个可以等节点渲染后再获取节点 - // this.$refs.keyHyRef.handleNodeClick(nodea) - // }) this.$forceUpdate() }, /** 上级企业选择 Begin */ @@ -709,11 +628,6 @@ export default { this.form.CORP_GROUP = this.validStr(corp.CORP_GROUP) ? corp.CORP_GROUP : corp.CORPINFO_ID this.form.CORP_GROUP_NAME = this.validStr(corp.CORP_GROUP_NAME) ? corp.CORP_GROUP_NAME : corp.CORP_NAME this.form.CORP_PARENTS = (this.validStr(corp.CORP_PARENTS) ? corp.CORP_PARENTS : ',') + corp.CORPINFO_ID + ',' - // console.log('this.form.CORP_PARENT', this.form.CORP_PARENT) - // console.log('this.form.CORP_PARENT_NAME', this.form.CORP_PARENT_NAME) - // console.log('this.form.CORP_GROUP', this.form.CORP_GROUP) - // console.log('this.form.CORP_GROUP_NAME', this.form.CORP_GROUP_NAME) - // console.log('this.form.CORP_PARENTS', this.form.CORP_PARENTS) this.dialogParentCorp = false }, /** 上级企业选择 End */ @@ -752,21 +666,6 @@ export default { spinner: 'el-icon-loading', background: 'rgba(0, 0, 0, 0.7)' }) - /* if (this.dataForm.POSSESSION && this.dataForm.POSSESSION.length > 0) { - this.dataForm.PROVINCE = this.dataForm.POSSESSION[0] || '' - this.dataForm.CITY = this.dataForm.POSSESSION[1] || '' - this.dataForm.COUNTY = this.dataForm.POSSESSION[2] || '' - this.dataForm.VILLAGE = this.dataForm.POSSESSION[3] || '' - this.dataForm.STREET = this.dataForm.POSSESSION[4] || '' - this.dataForm.COMPANY_AREA = this.$refs.POSSESSION.getCheckedNodes()[0].pathLabels ? this.$refs.POSSESSION.getCheckedNodes()[0].pathLabels.join(',') : '' - } - if (_this.dataForm.INDUSTRYALL && _this.dataForm.INDUSTRYALL.length > 0) { - _this.dataForm.CORP_TYPE = _this.dataForm.INDUSTRYALL[0] || '' - _this.dataForm.CORP_TYPE2 = _this.dataForm.INDUSTRYALL[1] || '' - _this.dataForm.CORP_TYPE3 = _this.dataForm.INDUSTRYALL[2] || '' - _this.dataForm.CORP_TYPE4 = _this.dataForm.INDUSTRYALL[3] || '' - _this.dataForm.CORP_TYPE_NAME = _this.$refs.industryCascader.getCheckedNodes()[0].pathLabels ? _this.$refs.industryCascader.getCheckedNodes()[0].pathLabels.join('/') : '' - } */ const formData = new FormData() Object.keys(this.dataForm).map(key => {