Merge remote-tracking branch 'origin/dev' into lmy20231113
commit
06b03de0cd
|
@ -11,7 +11,7 @@ module.exports = {
|
||||||
assetsPublicPath: '/',
|
assetsPublicPath: '/',
|
||||||
proxyTable: {
|
proxyTable: {
|
||||||
'/api': {
|
'/api': {
|
||||||
target: 'http://192.168.0.45:8091/',
|
target: 'http://192.168.0.79:8091/',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
pathRewrite: {
|
pathRewrite: {
|
||||||
'^/api': ''
|
'^/api': ''
|
||||||
|
|
|
@ -496,27 +496,27 @@ import { upload } from '@/utils/upload'
|
||||||
export default {
|
export default {
|
||||||
components: { SelectTree },
|
components: { SelectTree },
|
||||||
data() {
|
data() {
|
||||||
var hasCode = (rule, value, callback) => {
|
// var hasCode = (rule, value, callback) => {
|
||||||
if (value) {
|
// if (value) {
|
||||||
requestFN(
|
// requestFN(
|
||||||
'/corpinfo/hasCode',
|
// '/corpinfo/hasCode',
|
||||||
{
|
// {
|
||||||
CODE: value,
|
// CODE: value,
|
||||||
CORPINFO_ID: this.form.CORPINFO_ID
|
// CORPINFO_ID: this.form.CORPINFO_ID
|
||||||
}
|
// }
|
||||||
).then((data) => {
|
// ).then((data) => {
|
||||||
if (!data.pd) {
|
// if (!data.pd) {
|
||||||
callback()
|
// callback()
|
||||||
} else {
|
// } else {
|
||||||
callback(new Error('统一社会信用代码重复'))
|
// callback(new Error('统一社会信用代码重复'))
|
||||||
}
|
// }
|
||||||
}).catch((e) => {
|
// }).catch((e) => {
|
||||||
|
//
|
||||||
})
|
// })
|
||||||
} else {
|
// } else {
|
||||||
callback()
|
// callback()
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
return {
|
return {
|
||||||
config: config,
|
config: config,
|
||||||
dialogMap: false,
|
dialogMap: false,
|
||||||
|
@ -569,12 +569,12 @@ export default {
|
||||||
{ required: true, message: '企业名称不能为空', trigger: 'blur' }
|
{ required: true, message: '企业名称不能为空', trigger: 'blur' }
|
||||||
],
|
],
|
||||||
CODE: [
|
CODE: [
|
||||||
{ required: true, message: '统一社会信用代码不能为空', trigger: 'blur' },
|
{ required: false, message: '统一社会信用代码不能为空', trigger: 'blur' }
|
||||||
{
|
// , {
|
||||||
pattern: /^[^_IOZSVa-z\W]{2}\d{6}[^_IOZSVa-z\W]{10}$/,
|
// pattern: /^[^_IOZSVa-z\W]{2}\d{6}[^_IOZSVa-z\W]{10}$/,
|
||||||
message: '请输入正确的统一社会信用代码'
|
// message: '请输入正确的统一社会信用代码'
|
||||||
},
|
// },
|
||||||
{ validator: hasCode, trigger: 'blur' }
|
// { validator: hasCode, trigger: 'blur' }
|
||||||
],
|
],
|
||||||
PROVINCE: [
|
PROVINCE: [
|
||||||
{ required: true, message: '省不能为空', trigger: 'blur' }
|
{ required: true, message: '省不能为空', trigger: 'blur' }
|
||||||
|
@ -748,66 +748,73 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
confirm() {
|
confirm() {
|
||||||
this.$refs.form.validate(valid => {
|
this.$confirm('此操作将会修改企业登录密码为Aa@123456789是否继续?', '提示', {
|
||||||
if (valid) {
|
confirmButtonText: '确定',
|
||||||
const loading = this.$loading({
|
cancelButtonText: '取消',
|
||||||
lock: true,
|
type: 'warning'
|
||||||
text: '提交中...',
|
}).then(() => {
|
||||||
spinner: 'el-icon-loading',
|
this.$refs.form.validate(valid => {
|
||||||
background: 'rgba(0, 0, 0, 0.7)'
|
if (valid) {
|
||||||
})
|
const loading = this.$loading({
|
||||||
if (this.form.INDUSTRYALL && this.form.INDUSTRYALL.length > 0) {
|
lock: true,
|
||||||
this.form.CORP_TYPE = this.form.INDUSTRYALL[0] || ''
|
text: '提交中...',
|
||||||
this.form.CORP_TYPE2 = this.form.INDUSTRYALL[1] || ''
|
spinner: 'el-icon-loading',
|
||||||
this.form.CORP_TYPE3 = this.form.INDUSTRYALL[2] || ''
|
background: 'rgba(0, 0, 0, 0.7)'
|
||||||
this.form.CORP_TYPE4 = this.form.INDUSTRYALL[3] || ''
|
})
|
||||||
}
|
if (this.form.INDUSTRYALL && this.form.INDUSTRYALL.length > 0) {
|
||||||
const formData = new FormData()
|
this.form.CORP_TYPE = this.form.INDUSTRYALL[0] || ''
|
||||||
Object.keys(this.pdrelated).map(key => {
|
this.form.CORP_TYPE2 = this.form.INDUSTRYALL[1] || ''
|
||||||
formData.append(key, this.pdrelated[key])
|
this.form.CORP_TYPE3 = this.form.INDUSTRYALL[2] || ''
|
||||||
})
|
this.form.CORP_TYPE4 = this.form.INDUSTRYALL[3] || ''
|
||||||
Object.keys(this.form).map(key => {
|
}
|
||||||
formData.append(key, this.form[key])
|
const formData = new FormData()
|
||||||
})
|
Object.keys(this.pdrelated).map(key => {
|
||||||
if (this.form.FOURTYPE == '1') {
|
formData.append(key, this.pdrelated[key])
|
||||||
if (this.$refs.fourUpload.uploadFiles.length > 0) {
|
})
|
||||||
// eslint-disable-next-line no-redeclare
|
Object.keys(this.form).map(key => {
|
||||||
for (var i = 0; i < this.$refs.fourUpload.uploadFiles.length; i++) {
|
formData.append(key, this.form[key])
|
||||||
if (this.$refs.fourUpload.uploadFiles[i]) {
|
})
|
||||||
formData.append('fourFiles', this.$refs.fourUpload.uploadFiles[i].raw)
|
if (this.form.FOURTYPE == '1') {
|
||||||
|
if (this.$refs.fourUpload.uploadFiles.length > 0) {
|
||||||
|
// eslint-disable-next-line no-redeclare
|
||||||
|
for (var i = 0; i < this.$refs.fourUpload.uploadFiles.length; i++) {
|
||||||
|
if (this.$refs.fourUpload.uploadFiles[i]) {
|
||||||
|
formData.append('fourFiles', this.$refs.fourUpload.uploadFiles[i].raw)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else if (this.form.FOURTYPE == '2') {
|
||||||
|
formData.append('fourFiles', this.FFILE)
|
||||||
}
|
}
|
||||||
} else if (this.form.FOURTYPE == '2') {
|
|
||||||
formData.append('fourFiles', this.FFILE)
|
|
||||||
}
|
|
||||||
|
|
||||||
formData.append('COMPANY_AREA', this.$refs.PROVINCE.selected.label + this.$refs.CITY.selected.label + this.$refs.COUNTRY.selected.label)
|
formData.append('COMPANY_AREA', this.$refs.PROVINCE.selected.label + this.$refs.CITY.selected.label + this.$refs.COUNTRY.selected.label)
|
||||||
this.form.COMPANY_AREA =
|
this.form.COMPANY_AREA =
|
||||||
upload(
|
upload(
|
||||||
'/corpinfo/edit',
|
'/corpinfo/edit',
|
||||||
formData
|
formData
|
||||||
).then((data) => {
|
).then((data) => {
|
||||||
if (this.$refs.upload.uploadFiles.length > 0) {
|
if (this.$refs.upload.uploadFiles.length > 0) {
|
||||||
loading.close()
|
loading.close()
|
||||||
this.uploadImg()
|
this.uploadImg()
|
||||||
} else {
|
} else {
|
||||||
loading.close()
|
loading.close()
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '操作成功',
|
message: '操作成功',
|
||||||
type: 'success'
|
type: 'success'
|
||||||
|
})
|
||||||
|
this.goOut('0')
|
||||||
|
// this.$parent.activeName = 'CorpView'
|
||||||
|
}
|
||||||
|
}).catch((e) => {
|
||||||
|
loading.close()
|
||||||
|
this.$message({
|
||||||
|
message: '操作失败',
|
||||||
|
type: 'error'
|
||||||
|
})
|
||||||
})
|
})
|
||||||
this.goOut('0')
|
}
|
||||||
// this.$parent.activeName = 'CorpView'
|
})
|
||||||
}
|
}).catch(() => {
|
||||||
}).catch((e) => {
|
|
||||||
loading.close()
|
|
||||||
this.$message({
|
|
||||||
message: '操作失败',
|
|
||||||
type: 'error'
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -63,6 +63,9 @@
|
||||||
<el-button v-if="form.PERSON_TYPE == '主要负责人' || form.PERSON_TYPE == '安全管理人员' || form.PERSON_TYPE == '特种作业人员'" plain type="success" @click="changePersonType">补充证照信息</el-button>
|
<el-button v-if="form.PERSON_TYPE == '主要负责人' || form.PERSON_TYPE == '安全管理人员' || form.PERSON_TYPE == '特种作业人员'" plain type="success" @click="changePersonType">补充证照信息</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="定位卡号" prop="CARDNO">
|
||||||
|
<el-input v-model="form.CARDNO" placeholder="这里输入定位卡号..."/>
|
||||||
|
</el-form-item>
|
||||||
<el-form-item label="是否为隐患确认人" prop="IS_HAZARDCONFIRMER">
|
<el-form-item label="是否为隐患确认人" prop="IS_HAZARDCONFIRMER">
|
||||||
<el-radio-group v-model="form.IS_HAZARDCONFIRMER">
|
<el-radio-group v-model="form.IS_HAZARDCONFIRMER">
|
||||||
<el-radio :label="0" value="0">否</el-radio>
|
<el-radio :label="0" value="0">否</el-radio>
|
||||||
|
@ -814,6 +817,7 @@ export default {
|
||||||
form: {
|
form: {
|
||||||
IS_HAZARDCONFIRMER: 0,
|
IS_HAZARDCONFIRMER: 0,
|
||||||
INFORPOST: '',
|
INFORPOST: '',
|
||||||
|
CARDNO: '',
|
||||||
INFORTITLE: '',
|
INFORTITLE: '',
|
||||||
INFORTITLEValue: '',
|
INFORTITLEValue: '',
|
||||||
infortitleType: 'select',
|
infortitleType: 'select',
|
||||||
|
|
|
@ -76,7 +76,7 @@
|
||||||
<th>消防设备编号</th>
|
<th>消防设备编号</th>
|
||||||
<th>检查情况</th>
|
<th>检查情况</th>
|
||||||
<th>点位检查照片</th>
|
<th>点位检查照片</th>
|
||||||
<th>点位合格照片</th>
|
<!-- <th>点位合格照片</th>-->
|
||||||
</tr>
|
</tr>
|
||||||
<template v-if="varList.length !== 0">
|
<template v-if="varList.length !== 0">
|
||||||
<tr v-for="(data,index) in varList" :key="index">
|
<tr v-for="(data,index) in varList" :key="index">
|
||||||
|
@ -108,11 +108,11 @@
|
||||||
<a style="text-decoration: underline" @click="qualified(data.EQUIPMENT_POINT_ID,14)">点位检查照片</a>
|
<a style="text-decoration: underline" @click="qualified(data.EQUIPMENT_POINT_ID,14)">点位检查照片</a>
|
||||||
</td>
|
</td>
|
||||||
</template>
|
</template>
|
||||||
<template>
|
<!-- <template>-->
|
||||||
<td v-if="data.INDEX_F == '1'" :rowspan="data.ROWSPAN" class="text-center">
|
<!-- <td v-if="data.INDEX_F == '1'" :rowspan="data.ROWSPAN" class="text-center">-->
|
||||||
<a style="text-decoration: underline" @click="qualified(data.QUALIFIED_PHOTOS_ID,115)">点位合格照片</a>
|
<!-- <a style="text-decoration: underline" @click="qualified(data.QUALIFIED_PHOTOS_ID,115)">点位合格照片</a>-->
|
||||||
</td>
|
<!-- </td>-->
|
||||||
</template>
|
<!-- </template>-->
|
||||||
</tr>
|
</tr>
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
|
|
|
@ -129,7 +129,12 @@
|
||||||
<span v-else>{{ row.DEPARTMENT_NAME }}</span>
|
<span v-else>{{ row.DEPARTMENT_NAME }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="MANAGE_CORPS_NAME" label="监理单位" show-overflow-tooltip />
|
<el-table-column label="监理单位" show-overflow-tooltip>
|
||||||
|
<template slot-scope="{row}">
|
||||||
|
<span v-if="row.MANAGE_CORPS_NAME"> {{ row.MANAGE_CORPS_NAME }} </span>
|
||||||
|
<span v-else>无</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column prop="STATE" label="状态" width="100" >
|
<el-table-column prop="STATE" label="状态" width="100" >
|
||||||
<template slot-scope="{row}">
|
<template slot-scope="{row}">
|
||||||
<span v-if="row.STATE == 1">进行中</span>
|
<span v-if="row.STATE == 1">进行中</span>
|
||||||
|
|
|
@ -67,12 +67,12 @@
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!-- <el-table-column prop="PTYPE" label="人员类型" />-->
|
<!-- <el-table-column prop="PTYPE" label="人员类型" />-->
|
||||||
<el-table-column prop="JOBTYPE" label="作业类别" />
|
<!--<el-table-column prop="JOBTYPE" label="作业类别" />
|
||||||
<el-table-column prop="OPERATIONITEM" label="操作项目" />
|
<el-table-column prop="OPERATIONITEM" label="操作项目" />-->
|
||||||
<el-table-column prop="NAME" label="姓名" width="100" />
|
<el-table-column prop="NAME" label="姓名" width="100" />
|
||||||
<el-table-column prop="SEX" label="性别" width="50" />
|
<!--<el-table-column prop="SEX" label="性别" width="50" />
|
||||||
<el-table-column prop="CERTIFICATE_NUM" label="作业证书编号" />
|
<el-table-column prop="CERTIFICATE_NUM" label="作业证书编号" />
|
||||||
<el-table-column prop="REVIEWTIME" label="复审时间" width="120" />
|
<el-table-column prop="REVIEWTIME" label="复审时间" width="120" />-->
|
||||||
<el-table-column label="操作" align="left" width="400">
|
<el-table-column label="操作" align="left" width="400">
|
||||||
<template slot-scope="{row}">
|
<template slot-scope="{row}">
|
||||||
<el-button v-show="edit" type="success" icon="el-icon-edit" size="mini" @click="resetPwd(row.PERSONNELMANAGEMENT_ID,row.NAME)">重置密码</el-button>
|
<el-button v-show="edit" type="success" icon="el-icon-edit" size="mini" @click="resetPwd(row.PERSONNELMANAGEMENT_ID,row.NAME)">重置密码</el-button>
|
||||||
|
|
|
@ -48,7 +48,7 @@
|
||||||
align="center"/>
|
align="center"/>
|
||||||
<el-table-column type="index" label="序号" width="50" align="center" />
|
<el-table-column type="index" label="序号" width="50" align="center" />
|
||||||
<el-table-column prop="UNITS_NAME" label="相关方单位名称" show-overflow-tooltip />
|
<el-table-column prop="UNITS_NAME" label="相关方单位名称" show-overflow-tooltip />
|
||||||
<el-table-column prop="CODE" label="统一社会信用代码" width="200" />
|
<!--<el-table-column prop="CODE" label="统一社会信用代码" width="200" />-->
|
||||||
<el-table-column prop="CONTACTS" label="联系人" width="150" show-overflow-tooltip />
|
<el-table-column prop="CONTACTS" label="联系人" width="150" show-overflow-tooltip />
|
||||||
<el-table-column prop="CONTACTS_PHONE" label="联系人电话" width="100" />
|
<el-table-column prop="CONTACTS_PHONE" label="联系人电话" width="100" />
|
||||||
<el-table-column prop="CORP_NAME" label="创建单位" show-overflow-tooltip />
|
<el-table-column prop="CORP_NAME" label="创建单位" show-overflow-tooltip />
|
||||||
|
|
|
@ -47,6 +47,11 @@
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row :gutter="20">
|
<el-row :gutter="20">
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="集团单位" prop="corpTypeName">
|
||||||
|
<el-input id="corpTypeName" ref="corpTypeName" v-model="dataForm.corpTypeName" disabled maxlength="255" placeholder="这里输入开户人..." title="开户人"/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="开户人" prop="CREATOR">
|
<el-form-item label="开户人" prop="CREATOR">
|
||||||
<el-input id="CREATOR" ref="CREATOR" v-model="dataForm.USER_NAME" disabled maxlength="255" placeholder="这里输入开户人..." title="开户人"/>
|
<el-input id="CREATOR" ref="CREATOR" v-model="dataForm.USER_NAME" disabled maxlength="255" placeholder="这里输入开户人..." title="开户人"/>
|
||||||
|
@ -351,7 +356,7 @@ export default {
|
||||||
COMPANY_AREA: '',
|
COMPANY_AREA: '',
|
||||||
dataForm: {
|
dataForm: {
|
||||||
MAIN_DEPARTMENT: '',
|
MAIN_DEPARTMENT: '',
|
||||||
businessLicenseDate: '',
|
businessLicenseDate: [],
|
||||||
SUPERVISE_CORPINFO_DEPT_NAME: '',
|
SUPERVISE_CORPINFO_DEPT_NAME: '',
|
||||||
COMPETENT_DEPT_NAME: '',
|
COMPETENT_DEPT_NAME: '',
|
||||||
MANAGER_DEPARTMENT_NAME: '',
|
MANAGER_DEPARTMENT_NAME: '',
|
||||||
|
@ -381,7 +386,6 @@ export default {
|
||||||
enterpriseSizeList: [], // 企业规模数据
|
enterpriseSizeList: [], // 企业规模数据
|
||||||
industryList: [], // 行业类型数据
|
industryList: [], // 行业类型数据
|
||||||
treeData: [], // 主管部门
|
treeData: [], // 主管部门
|
||||||
businessLicenseImgs: [],
|
|
||||||
config: config,
|
config: config,
|
||||||
corpStateList: [], // 企业经营状态
|
corpStateList: [], // 企业经营状态
|
||||||
hylxList: [], // 国民经济行业分类 (GB-T4754-2017)
|
hylxList: [], // 国民经济行业分类 (GB-T4754-2017)
|
||||||
|
@ -472,6 +476,7 @@ export default {
|
||||||
ECO_TYPE: '',
|
ECO_TYPE: '',
|
||||||
ecoArr: [],
|
ecoArr: [],
|
||||||
ecoNameArr: [],
|
ecoNameArr: [],
|
||||||
|
businessLicenseImgs: [],
|
||||||
INDUSTRY: '',
|
INDUSTRY: '',
|
||||||
// imgUrl: require('@/assets/images/map.png'),
|
// imgUrl: require('@/assets/images/map.png'),
|
||||||
rules: {
|
rules: {
|
||||||
|
@ -639,6 +644,12 @@ export default {
|
||||||
tm: new Date().getTime()
|
tm: new Date().getTime()
|
||||||
}
|
}
|
||||||
).then((data) => {
|
).then((data) => {
|
||||||
|
this.businessLicenseImgs = []
|
||||||
|
if (data.licenseImgs) {
|
||||||
|
data.licenseImgs.forEach(item => {
|
||||||
|
this.businessLicenseImgs.push(this.config.fileUrl + item.FILEPATH)
|
||||||
|
})
|
||||||
|
}
|
||||||
data.pd.SELECT_FORM = data.pd.SELECT_FORM.split(',')
|
data.pd.SELECT_FORM = data.pd.SELECT_FORM.split(',')
|
||||||
|
|
||||||
this.businessLicenseImgs = []
|
this.businessLicenseImgs = []
|
||||||
|
@ -662,6 +673,11 @@ export default {
|
||||||
if (this.dataForm.COMPANY_AREA) {
|
if (this.dataForm.COMPANY_AREA) {
|
||||||
this.COMPANY_AREA = this.dataForm.COMPANY_AREA.replaceAll(',', ' / ')
|
this.COMPANY_AREA = this.dataForm.COMPANY_AREA.replaceAll(',', ' / ')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.dataForm.businessLicenseDate = []
|
||||||
|
this.dataForm.businessLicenseDate.push(this.dataForm.LICENSE_START)
|
||||||
|
this.dataForm.businessLicenseDate.push(this.dataForm.LICENSE_END)
|
||||||
|
|
||||||
resolve()
|
resolve()
|
||||||
}).catch((e) => {
|
}).catch((e) => {
|
||||||
this.$message({
|
this.$message({
|
||||||
|
|
|
@ -96,7 +96,8 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="dy-card-content">
|
<!--点位检查合格标准照片-->
|
||||||
|
<div class="dy-card-content" v-if="false">
|
||||||
<div v-if="images.length > 0 " class="dy-card-content-item">
|
<div v-if="images.length > 0 " class="dy-card-content-item">
|
||||||
<div class="title">
|
<div class="title">
|
||||||
<span class="l"></span>
|
<span class="l"></span>
|
||||||
|
|
Loading…
Reference in New Issue