Merge remote-tracking branch 'origin/dev' into lmy20231113

cmt1.0
limingyu 2023-12-14 18:29:52 +08:00
commit 06b03de0cd
9 changed files with 131 additions and 98 deletions

View File

@ -11,7 +11,7 @@ module.exports = {
assetsPublicPath: '/',
proxyTable: {
'/api': {
target: 'http://192.168.0.45:8091/',
target: 'http://192.168.0.79:8091/',
changeOrigin: true,
pathRewrite: {
'^/api': ''

View File

@ -496,27 +496,27 @@ import { upload } from '@/utils/upload'
export default {
components: { SelectTree },
data() {
var hasCode = (rule, value, callback) => {
if (value) {
requestFN(
'/corpinfo/hasCode',
{
CODE: value,
CORPINFO_ID: this.form.CORPINFO_ID
}
).then((data) => {
if (!data.pd) {
callback()
} else {
callback(new Error('统一社会信用代码重复'))
}
}).catch((e) => {
})
} else {
callback()
}
}
// var hasCode = (rule, value, callback) => {
// if (value) {
// requestFN(
// '/corpinfo/hasCode',
// {
// CODE: value,
// CORPINFO_ID: this.form.CORPINFO_ID
// }
// ).then((data) => {
// if (!data.pd) {
// callback()
// } else {
// callback(new Error(''))
// }
// }).catch((e) => {
//
// })
// } else {
// callback()
// }
// }
return {
config: config,
dialogMap: false,
@ -569,12 +569,12 @@ export default {
{ required: true, message: '企业名称不能为空', trigger: 'blur' }
],
CODE: [
{ required: true, message: '统一社会信用代码不能为空', trigger: 'blur' },
{
pattern: /^[^_IOZSVa-z\W]{2}\d{6}[^_IOZSVa-z\W]{10}$/,
message: '请输入正确的统一社会信用代码'
},
{ validator: hasCode, trigger: 'blur' }
{ required: false, message: '统一社会信用代码不能为空', trigger: 'blur' }
// , {
// pattern: /^[^_IOZSVa-z\W]{2}\d{6}[^_IOZSVa-z\W]{10}$/,
// message: ''
// },
// { validator: hasCode, trigger: 'blur' }
],
PROVINCE: [
{ required: true, message: '省不能为空', trigger: 'blur' }
@ -748,66 +748,73 @@ export default {
})
},
confirm() {
this.$refs.form.validate(valid => {
if (valid) {
const loading = this.$loading({
lock: true,
text: '提交中...',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
})
if (this.form.INDUSTRYALL && this.form.INDUSTRYALL.length > 0) {
this.form.CORP_TYPE = this.form.INDUSTRYALL[0] || ''
this.form.CORP_TYPE2 = this.form.INDUSTRYALL[1] || ''
this.form.CORP_TYPE3 = this.form.INDUSTRYALL[2] || ''
this.form.CORP_TYPE4 = this.form.INDUSTRYALL[3] || ''
}
const formData = new FormData()
Object.keys(this.pdrelated).map(key => {
formData.append(key, this.pdrelated[key])
})
Object.keys(this.form).map(key => {
formData.append(key, this.form[key])
})
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)
this.$confirm('此操作将会修改企业登录密码为Aa@123456789是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.$refs.form.validate(valid => {
if (valid) {
const loading = this.$loading({
lock: true,
text: '提交中...',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
})
if (this.form.INDUSTRYALL && this.form.INDUSTRYALL.length > 0) {
this.form.CORP_TYPE = this.form.INDUSTRYALL[0] || ''
this.form.CORP_TYPE2 = this.form.INDUSTRYALL[1] || ''
this.form.CORP_TYPE3 = this.form.INDUSTRYALL[2] || ''
this.form.CORP_TYPE4 = this.form.INDUSTRYALL[3] || ''
}
const formData = new FormData()
Object.keys(this.pdrelated).map(key => {
formData.append(key, this.pdrelated[key])
})
Object.keys(this.form).map(key => {
formData.append(key, this.form[key])
})
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)
this.form.COMPANY_AREA =
upload(
'/corpinfo/edit',
formData
).then((data) => {
if (this.$refs.upload.uploadFiles.length > 0) {
loading.close()
this.uploadImg()
} else {
loading.close()
this.$message({
message: '操作成功',
type: 'success'
formData.append('COMPANY_AREA', this.$refs.PROVINCE.selected.label + this.$refs.CITY.selected.label + this.$refs.COUNTRY.selected.label)
this.form.COMPANY_AREA =
upload(
'/corpinfo/edit',
formData
).then((data) => {
if (this.$refs.upload.uploadFiles.length > 0) {
loading.close()
this.uploadImg()
} else {
loading.close()
this.$message({
message: '操作成功',
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((e) => {
loading.close()
this.$message({
message: '操作失败',
type: 'error'
})
})
}
}
})
}).catch(() => {
})
},

View File

@ -63,6 +63,9 @@
<el-button v-if="form.PERSON_TYPE == '主要负责人' || form.PERSON_TYPE == '安全管理人员' || form.PERSON_TYPE == '特种作业人员'" plain type="success" @click="changePersonType"></el-button>
</div>
</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-radio-group v-model="form.IS_HAZARDCONFIRMER">
<el-radio :label="0" value="0"></el-radio>
@ -814,6 +817,7 @@ export default {
form: {
IS_HAZARDCONFIRMER: 0,
INFORPOST: '',
CARDNO: '',
INFORTITLE: '',
INFORTITLEValue: '',
infortitleType: 'select',

View File

@ -76,7 +76,7 @@
<th>消防设备编号</th>
<th>检查情况</th>
<th>点位检查照片</th>
<th>点位合格照片</th>
<!-- <th>点位合格照片</th>-->
</tr>
<template v-if="varList.length !== 0">
<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>
</td>
</template>
<template>
<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>
</td>
</template>
<!-- <template>-->
<!-- <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>-->
<!-- </td>-->
<!-- </template>-->
</tr>
</template>
<template v-else>

View File

@ -129,7 +129,12 @@
<span v-else>{{ row.DEPARTMENT_NAME }}</span>
</template>
</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" >
<template slot-scope="{row}">
<span v-if="row.STATE == 1"></span>

View File

@ -67,12 +67,12 @@
</template>
</el-table-column>
<!-- <el-table-column prop="PTYPE" label="人员类型" />-->
<el-table-column prop="JOBTYPE" label="作业类别" />
<el-table-column prop="OPERATIONITEM" label="操作项目" />
<!--<el-table-column prop="JOBTYPE" label="作业类别" />
<el-table-column prop="OPERATIONITEM" label="操作项目" />-->
<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="REVIEWTIME" label="复审时间" width="120" />
<el-table-column prop="REVIEWTIME" label="复审时间" width="120" />-->
<el-table-column label="操作" align="left" width="400">
<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>

View File

@ -48,7 +48,7 @@
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="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_PHONE" label="联系人电话" width="100" />
<el-table-column prop="CORP_NAME" label="创建单位" show-overflow-tooltip />

View File

@ -47,6 +47,11 @@
</el-col>
</el-row>
<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-form-item label="开户人" prop="CREATOR">
<el-input id="CREATOR" ref="CREATOR" v-model="dataForm.USER_NAME" disabled maxlength="255" placeholder="这里输入开户人..." title="开户人"/>
@ -351,7 +356,7 @@ export default {
COMPANY_AREA: '',
dataForm: {
MAIN_DEPARTMENT: '',
businessLicenseDate: '',
businessLicenseDate: [],
SUPERVISE_CORPINFO_DEPT_NAME: '',
COMPETENT_DEPT_NAME: '',
MANAGER_DEPARTMENT_NAME: '',
@ -381,7 +386,6 @@ export default {
enterpriseSizeList: [], //
industryList: [], //
treeData: [], //
businessLicenseImgs: [],
config: config,
corpStateList: [], //
hylxList: [], // (GB-T4754-2017)
@ -472,6 +476,7 @@ export default {
ECO_TYPE: '',
ecoArr: [],
ecoNameArr: [],
businessLicenseImgs: [],
INDUSTRY: '',
// imgUrl: require('@/assets/images/map.png'),
rules: {
@ -639,6 +644,12 @@ export default {
tm: new Date().getTime()
}
).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(',')
this.businessLicenseImgs = []
@ -662,6 +673,11 @@ export default {
if (this.dataForm.COMPANY_AREA) {
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()
}).catch((e) => {
this.$message({

View File

@ -96,7 +96,8 @@
</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 class="title">
<span class="l"></span>