13025 用工形式显示不正确

main
liujun 2023-12-14 18:09:24 +08:00
parent 356eab0ded
commit 9033707ae1
1 changed files with 0 additions and 101 deletions

View File

@ -311,48 +311,6 @@ import { upload } from '@/utils/upload'
export default { export default {
components: { SelectTree }, components: { SelectTree },
data() { 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 { return {
dataForm: { dataForm: {
MAIN_DEPARTMENT: '', MAIN_DEPARTMENT: '',
@ -466,23 +424,8 @@ export default {
ecoArr: [], ecoArr: [],
ecoNameArr: [], ecoNameArr: [],
INDUSTRY: '', INDUSTRY: '',
// imgUrl: require('@/assets/images/map.png'),
rules: { rules: {
MAIN_DEPARTMENT: [{ required: true, message: '主管部门不能为空', trigger: 'blur' }], 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' }], ECONOMIC_TYPE: [{ required: true, message: '请选择经济类型', trigger: 'blur' }],
LONGITUDE: [{ required: true, message: '请选择经度', trigger: 'blur' }], LONGITUDE: [{ required: true, message: '请选择经度', trigger: 'blur' }],
LATITUDE: [{ required: true, message: '请选择纬度', trigger: 'blur' }], LATITUDE: [{ required: true, message: '请选择纬度', trigger: 'blur' }],
@ -645,22 +588,6 @@ export default {
this.$nextTick(() => { // 使 this.$nextTick(() => { // 使
this.$refs.deptTree.handleNodeClick(node) 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() resolve()
}).catch((e) => { }).catch((e) => {
this.$message({ this.$message({
@ -673,9 +600,6 @@ export default {
}) })
}, },
getNextTickData() { getNextTickData() {
// this.$nextTick(() => {
// this.$refs.ecoCascader.presentText = this.censusRegisterPlaceName
// })
if (this.form.CORP_OF_TYPE2 && this.form.CORP_OF_TYPE2 != '') { if (this.form.CORP_OF_TYPE2 && this.form.CORP_OF_TYPE2 != '') {
const node = {} const node = {}
node.id = this.form.CORP_OF_TYPE2 node.id = this.form.CORP_OF_TYPE2
@ -689,11 +613,6 @@ export default {
this.$refs.corpOfTypeRef.handleNodeClick(node) this.$refs.corpOfTypeRef.handleNodeClick(node)
}) })
} }
// const nodea = {}
// nodea.id = this.form.TRAINTYPE
// this.$nextTick(() => { // 使
// this.$refs.keyHyRef.handleNodeClick(nodea)
// })
this.$forceUpdate() this.$forceUpdate()
}, },
/** 上级企业选择 Begin */ /** 上级企业选择 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 = 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_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 + ',' 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 this.dialogParentCorp = false
}, },
/** 上级企业选择 End */ /** 上级企业选择 End */
@ -752,21 +666,6 @@ export default {
spinner: 'el-icon-loading', spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)' 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() const formData = new FormData()
Object.keys(this.dataForm).map(key => { Object.keys(this.dataForm).map(key => {