Compare commits

..

No commits in common. "f92a3a583a07e1371f1ec7bbb935c1aff1931e8f" and "8bba03c8c7bce33508989b5a067cb12e97381ade" have entirely different histories.

7 changed files with 13 additions and 217 deletions

View File

@ -290,7 +290,7 @@ export default {
}
}
}
this.imgUrl = config.fileUrl + data.userPhoto
this.imgUrl = config.httpurl + data.userPhoto
})
.catch((e) => {
MessageBox.alert('登录失效,请重新登录', {
@ -444,11 +444,11 @@ export default {
formData.append('FFILE', this.FFILE)
upload(
'/photo/save',
'/photo/saveNew',
formData
).then((data) => {
this.dialogForm = false
this.imgUrl = config.fileUrl + data.userPhoto
this.imgUrl = config.httpurl + data.userPhoto
loading.close()
}).catch((e) => {
loading.close()

View File

@ -1,174 +0,0 @@
<template>
<div class="app-container">
<el-form :model="ruleForm" :rules="rules" label-width="130px">
<el-row>
<el-col :span="6">
<el-form-item label="人员名称" prop="name" class="input-width">
<el-input v-model="ruleForm.name" placeholder="请输入人员名称"/>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="身份证号" prop="cardId">
<el-input v-model="ruleForm.cardId" placeholder="请输入身份证号"/>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label-width="10px">
<el-button v-waves class="filter-item" type="primary" icon="el-icon-search" @click="getQuery">
搜索
</el-button>
<el-button v-waves class="filter-item" type="success" icon="el-icon-refresh" @click="goKeyReset">
重置
</el-button>
</el-form-item>
</el-col>
</el-row>
</el-form>
<el-table
ref="multipleTable"
:data="varList"
:header-cell-style="{'font-weight': 'bold','color': '#000'}"
tooltip-effect="dark"
border
fit
highlight-current-row>
<el-table-column :selectable="handleSelectWithDifferentStatus" type="selection" width="55" align="center"/>
<el-table-column type="index" label="序号" width="50" align="center"/>
<el-table-column prop="username" label="用户名" align="center"/>
<el-table-column prop="cardId" label="身份证号" align="center"/>
<el-table-column prop="name" label="人员名称" align="center"/>
<el-table-column prop="corpName" label="企业名称" align="center"/>
<el-table-column label="操作" align="center" width="250">
<template slot-scope="{row}">
<el-button type="primary" icon="el-icon-s-claim" size="mini" @click="doCheckIn([row])"></el-button>
</template>
</el-table-column>
</el-table>
<div class="page-btn-group">
<div/>
<pagination :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList"/>
</div>
</div>
</template>
<script>
import Pagination from '@/components/Pagination' // el-pagination
import { requestFN } from '@/utils/request'
import waves from '@/directive/waves' // waves directive
export default {
components: { Pagination },
directives: { waves },
data() {
return {
rules: {
name: [{ required: true, message: '姓名不能为空', trigger: 'blur' }],
cardId: [{ required: true, message: '身份证号不能为空', trigger: 'blur' }]
},
ruleForm: { name: '', cardId: '' },
config: config,
listQuery: {
page: 1,
limit: 10
},
total: 0,
varList: [],
add: false, //
del: false, //
edit: false //
}
},
created() {
// this.getDict()
// this.getList()
},
methods: {
handleSelectWithDifferentStatus(row, rowIndex) {
return true
},
getQuery() {
if (this.ruleForm.name === '') {
this.$message.error('请填写人员名称')
return false
}
if (this.ruleForm.cardId === '') {
this.$message.error('请填写身份证号')
return false
}
if (this.$refs.multipleTable) {
this.$refs.multipleTable.clearSelection()
}
this.listQuery = {
page: 1,
limit: 10
}
this.getList()
},
goKeyReset() {
this.ruleForm.cardId = ''
this.ruleForm.name = ''
this.varList = []
// this.getQuery()
},
getList() {
this.listLoading = true
requestFN(
'/coerce/getUserListByIdCardAndName?showCount=' + this.listQuery.limit + '&currentPage=' + this.listQuery.page,
{
cardId: this.ruleForm.cardId,
name: this.ruleForm.name,
UN_EMPLOY_FLAG: '0'
}
).then((data) => {
this.listLoading = false
this.varList = data.varList
if (this.varList.length === 0) {
this.$message.error('没有相关人员信息')
}
this.total = data.page.totalResult
})
.catch((e) => {
this.listLoading = false
})
},
doCheckIn(row) {
this.$confirm('确定要将 ' + row[0].name + ' 拉入企业吗?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.listLoading = true
requestFN(
'/coerce/doCoerceCheckIn',
{
userId: row[0].userId,
corpinfoId: JSON.parse(sessionStorage.getItem('user')).CORPINFO_ID
}
).then((e) => {
console.log(e)
if (e.msg === '1') {
this.$message({
message: '当前人员已经在企业中',
type: 'warning'
})
} else {
this.$message({
message: '拉入成功',
type: 'success'
})
this.getQuery()
}
this.listLoading = false
}).catch((e) => {
this.listLoading = false
})
}).catch(() => {})
}
}
}
</script>

View File

@ -1,21 +0,0 @@
<template>
<component :is="activeName" />
</template>
<script>
import List from './components/list'
export default {
components: {
List: List
},
data() {
return {
activeName: 'List',
SUPERVISE_CORPINFO_ID: ''
}
}
}
</script>
<style scoped>
</style>

View File

@ -589,7 +589,7 @@ export default {
USERNAME: [
{ required: true, message: '用户名不能为空', trigger: 'blur' },
{
pattern: /^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0-9]|18[0-9]|19[0-9])\d{8}$/,
pattern: /^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0135678]|18[0-9]|19[0-9])\d{8}$/,
message: '用户名为手机号,请正确输入'
},
{ validator: hasName, trigger: 'blur' }

View File

@ -595,7 +595,7 @@ export default {
USERNAME: [
{ required: true, message: '用户名不能为空', trigger: 'blur' },
{
pattern: /^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0-9]|18[0-9]|19[0-9])\d{8}$/,
pattern: /^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0135678]|18[0-9]|19[0-9])\d{8}$/,
message: '用户名为手机号,请正确输入'
},
{ validator: hasName, trigger: 'blur' }

View File

@ -41,7 +41,7 @@
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="股份主管部门" prop="MAIN_DEPARTMENT">
<!-- <Treeselect
<Treeselect
:options="treeData"
:disabled="true"
:normalizer="normalizer"
@ -54,10 +54,7 @@
no-options-text="暂无数据"
no-children-text="暂无数据"
style="width: 100%;"
/>-->
<el-input v-model="dataForm.MAIN_DEPARTMENT_NAME" disabled maxlength="255" title="单位名称"/>
/>
</el-form-item>
</el-col>
<el-col :span="12">
@ -92,7 +89,6 @@
v-model="dataForm.POSSESSION"
:options="areaList"
:props="areaProps"
:append-to-body="false"
:placeholder="dataForm.COMPANY_AREA"
style="width: 100%"
@change="cascaderChange"
@ -192,7 +188,7 @@
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="注册资金(万元)" prop="REGISTERED_CAPITAL">
<el-form-item label="注册资金" prop="REGISTERED_CAPITAL">
<el-input id="REGISTERED_CAPITAL" ref="REGISTERED_CAPITAL" v-model="dataForm.REGISTERED_CAPITAL" type="number" maxlength="11" placeholder="这里输入注册资金..." title="注册资金"/>
</el-form-item>
</el-col>
@ -692,11 +688,11 @@ export default {
],
TOTAL_ASSETS: [
{ required: true, message: '资产总额不能为空', trigger: 'blur' },
{ min: 1, max: 15, message: '请正确的资产总额', trigger: 'blur' }
{ min: 1, max: 5, message: '请正确的资产总额', trigger: 'blur' }
],
REGISTERED_CAPITAL: [
{ required: true, message: '注册资金不能为空', trigger: 'blur' },
{ min: 1, max: 15, message: '请正确的注册资金', trigger: 'blur' }
{ min: 1, max: 5, message: '请正确的注册资金', trigger: 'blur' }
],
EMPLOYMENT_FORM: [{ required: true, message: '请选择用工形式', trigger: 'blur' }],
SELECT_FORMS: [{ required: true, message: '请选择选取形式', trigger: 'blur' }]
@ -768,7 +764,7 @@ export default {
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
})
// await this.getTreeList()
await this.getTreeList()
await this.getDict()
await this.getData()
loading.close()

View File

@ -1,12 +1,7 @@
const config = {
// weburl: 'http://192.168.151.43:8088/', // 前台地址
// httpurl: 'http://192.168.151.43:8088/', // 后台地址
weburl: 'http://192.168.0.49:8088/', // 前台地址
httpurl: 'http://192.168.0.49:8088/', // 后台地址
weburl: 'http://192.168.151.43:8088/', // 前台地址
httpurl: 'http://192.168.151.43:8088/', // 后台地址
qyurl: 'http://192.168.151.43:8088/', // 企业前台
adminurl: 'https://www.qdkjchina.com/qa-prevention-admin/',
// 正式
fileUrl: 'https://qgqy.qhdsafety.com/file/', // 附件服务器地址,