Compare commits

...

17 Commits

Author SHA1 Message Date
liujun 9f3953ed3f 1、承诺书错别字更改 2024-02-21 17:16:11 +08:00
liujun bc8ff65d07 1、承诺书、委托书转变必传
2、bug修改(集团单位查看不到归属自己的相关方)
2024-02-21 11:25:46 +08:00
liujun df78271dc5 监管端上传委托书功能 2024-02-04 11:03:10 +08:00
liujun e1bd6891fb Merge remote-tracking branch 'origin/dev-2024年1月8日' into liujun-2024-02-04-相关方新流程上线后新提需求 2024-02-04 09:09:22 +08:00
liujun 4be34ded89 1、审批历史数据未清理
2、地图测试环境图片地址更改
3、消防统计页面点击详情后,返回刷新页面bug修复
2024-01-31 10:51:51 +08:00
liujun c5919657e5 1、错别字更改
2、监管端查询sql报错修改
3、表单提交后未清空。
2024-01-29 17:20:47 +08:00
liujun 0ffdfd2149 1、流程数据保存错误bug修改
2、打回后无法审批bug修复
2024-01-29 13:20:27 +08:00
liujun d7d5fd6fa9 13817 批量推送和单独推送 单位搜索框加关键字搜索 2024-01-27 16:13:10 +08:00
liujun d74cb3930d 13854 选择框的高度长度不一 2024-01-27 16:09:30 +08:00
liujun be9d06d481 13853 判空提示语 跟标题对不上 2024-01-27 16:06:28 +08:00
liujun 426a7648c9 13856 审核完一个人之后,审核下一个人,输入框内信息没有重置清空 2024-01-27 16:03:31 +08:00
liujun efd87d7ac5 13818 批量推送和单独推送 文字修改 监管部门不合适 2024-01-25 20:03:38 +08:00
liujun e105f75dc0 若干bug修复 2024-01-19 18:35:26 +08:00
liujun a567d36025 相关方流程变更 2024-01-17 18:43:02 +08:00
liujun 64935b4b54 13025 用工形式显示不正确 2024-01-05 09:29:48 +08:00
liujun ff31836619 13323 编辑页面 部门排序 是数字了还让输入数字 2024-01-04 09:35:40 +08:00
guoyuepeng 5b3b27e6ed 添加 更新.md 2023-12-28 10:49:58 +08:00
8 changed files with 182 additions and 62 deletions

View File

@ -54,6 +54,18 @@ Vue.config.productionTip = false
Vue.use(Element, {
size: Cookies.get('size') || 'small' // set element-ui default size
})
// 树数据结构去除空子级
Vue.prototype.removeEmptyChildren = function(data) {
for (let i = 0; i < data.length; i++) {
if (data[i].nodes && data[i].nodes.length > 0) {
this.removeEmptyChildren(data[i].nodes)
} else {
delete data[i].nodes
}
}
return data
}
/* eslint-disable no-new */
new Vue({
el: '#app',

View File

@ -118,12 +118,7 @@
<span v-if="row.USER_ID != userId">
<el-tag v-if="row.STATUS == 1" type="warning"></el-tag>
<el-tag v-if="row.STATUS == 0" type="info"></el-tag>
<el-tag v-if="row.STATUS == 2" type="success">
<template v-if="row.TRAIN_STATUS == '1'">
已培训合格
</template>
<template v-else></template>
</el-tag>
<el-tag v-if="row.STATUS == 2" type="success"></el-tag>
<el-tag v-if="row.STATUS == 9"></el-tag>
</span>
<span v-else />

View File

@ -877,6 +877,7 @@ export default {
this.dataForm.businessLicenseDate = []
this.dataForm.businessLicenseDate.push(this.dataForm.LICENSE_START)
this.dataForm.businessLicenseDate.push(this.dataForm.LICENSE_END)
this.dataForm.USER_NAME = this.dataForm.USER_NAME ? this.dataForm.USER_NAME : this.dataForm.USER_NAME_B
this.$forceUpdate()
// 2023-08-31
if (this.dataForm.SELECT_FORM) {

View File

@ -16,11 +16,6 @@
@node-click="handleNodeClick"/>
</el-aside>
<el-main>
<!-- <div class="filter-btn-group">
<div>
<el-button @click="showGraph()"></el-button>
</div>
</div>-->
<el-table
v-loading="listLoading"
ref="multipleTable"
@ -83,23 +78,6 @@
<el-form-item label="部门职能">
<el-input :rows="3" v-model="form.FUNCTIONS" type="textarea" placeholder="这里输入部门职能..." />
</el-form-item>
<!-- <el-form-item label="是否监管部门">
<el-radio-group v-model="form.IS_REGULATORY" @change="changeIssup">
<el-radio :label="'1'"></el-radio>
<el-radio :label="'0'"></el-radio>
</el-radio-group>
</el-form-item>-->
<!-- <el-form-item v-show="form.IS_REGULATORY=='1'" label="监管部门" prop="MAIN_DEPARTMENT" class="is-required">
<SelectTree
ref="deptTree"
:clearable="false"
:options="treeData"
:props="defaultProps"
v-model="form.MAIN_DEPARTMENT"
placeholder="请选择监管部门"
style="width: 100%"
/>
</el-form-item>-->
<el-form-item label="备注">
<el-input :rows="3" v-model="form.BZ" type="textarea" placeholder="这里输入备注..." />
</el-form-item>
@ -386,6 +364,7 @@ export default {
}
).then((data) => {
this.form = Object.assign({}, data.pd) // copy obj
this.form.DEPT_SORT = Number(this.form.DEPT_SORT)
this.pds = data.pds || [] //
this.dialogFormAdd = true

View File

@ -45,12 +45,10 @@
<el-table-column prop="NAME" label="姓名" align="center"/>
<el-table-column prop="DEPARTMENT_NAME" label="部门" align="center"/>
<el-table-column prop="EMPLOYER_NAME" label="外派公司名称" align="center"/>
<el-table-column label="操作" align="center" width="250">
<el-table-column label="操作" align="center" width="100">
<template slot-scope="{row}">
<el-button type="primary" icon="el-icon-edit" size="mini" @click="handleShow(row)"></el-button>
<el-button type="primary" icon="el-icon-s-claim" size="mini" @click="sendMessage([row])"></el-button>
<el-button v-if="false" type="success" icon="el-icon-edit" size="mini" @click="getUserInfo(row)">
</el-button>
<el-button v-if="false" type="success" icon="el-icon-edit" size="mini" @click="getUserInfo(row)"></el-button>
</template>
</el-table-column>
</el-table>

View File

@ -5,18 +5,58 @@
:append-to-body="appendToBody"
:before-close="beforeClose"
title="推送"
width="500px"
width="1100px"
destroy-on-close>
<el-form label-position="right" label-width="100px">
<el-form-item prop="TERRITORIALITY" label="集团单位 ">
<el-select v-model="corp_id" placeholder="请选择集团单位 " style="width: 90%" @change="getInfo">
<el-option
v-for="item in jituanDanweiTreeData"
:key="item.CORPINFO_ID"
:label="item.CORP_NAME"
:value="JSON.stringify(item)"/>
</el-select>
</el-form-item>
<el-form ref="form" :model="form" :rules="rules" label-width="200px" label-position="right" type="flex">
<el-row>
<el-col :span="12">
<el-form-item prop="APPOINT_CORP_ID" label="单位 ">
<el-select v-model="corp_id" filterable placeholder="请选择单位 " style="width: 300px" @change="getInfo">
<el-option
v-for="item in jituanDanweiTreeData"
:key="item.CORPINFO_ID"
:label="item.CORP_NAME"
:value="JSON.stringify(item)"/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="APPOINT_DEPARTMENT_ID" label="指定部门:">
<Treeselect
:options="departmentTree"
:normalizer="normalizer"
v-model="form.APPOINT_DEPARTMENT_ID"
placeholder="请选择部门"
no-options-text="暂无数据"
no-children-text="暂无数据"
style="width: 300px"
@select="getPeopleList($event)"
/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item prop="APPOINT_USER_ID" label="指定审批人:">
<el-select v-model="form.user" style="width: 300px" placeholder="请选择" @change="chooseUser">
<el-option v-for="item in peopleList" :key="item.USER_ID" :value="JSON.stringify(item)" :label="item.NAME"/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="APPOINT_ANNEX" label="承诺书:">
<upload-file
:file-list.sync="form.APPOINT_ANNEX"
:multiple="false"
:accept="'.pdf,.jpg,.png,doc,docx'"
:limit="1"
:size="1024"
:upload-type="1"/>
</el-form-item>
</el-col>
</el-row>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="visible = false"> </el-button>
@ -30,9 +70,11 @@
import vueQr from 'vue-qr'
import Treeselect from '@riophae/vue-treeselect'
import { requestFN } from '@/utils/request'
import uploadFile from '../../../util/uploadFile/index.vue'
import { upload } from '@/utils/upload'
export default {
components: { Treeselect, vueQr },
components: { Treeselect, vueQr, uploadFile },
props: {
appendToBody: {
type: Boolean,
@ -48,7 +90,43 @@ export default {
corp_id: null,
corp_name: '',
heirloom: {},
listFlag: false
listFlag: false,
departmentTree: [],
peopleList: [],
normalizer(node) {
return {
id: node.id,
label: node.name,
children: node.nodes
}
},
form: {
STATUS: null,
APPOINT_CORP_ID: '',
APPOINT_CORP_NAME: '',
APPOINT_DEPARTMENT_ID: null,
APPOINT_DEPARTMENT_NAME: '',
APPOINT_USER_ID: '',
APPOINT_USER_NAME: '',
APPOINT_ANNEX: [],
user: '',
tm: new Date().getTime(),
list: []
},
rules: {
APPOINT_DEPARTMENT_ID: [
{ required: true, message: '请选择指定部门', trigger: 'change' }
],
APPOINT_USER_ID: [
{ required: true, message: '请选择指定审批人', trigger: 'change' }
],
APPOINT_CORP_ID: [
{ required: true, message: '请选择企业', trigger: 'change' }
],
APPOINT_ANNEX: [
{ required: true, message: '请上传文件', trigger: 'change' }
]
}
}
},
methods: {
@ -80,32 +158,88 @@ export default {
},
getInfo(e) {
const info = JSON.parse(e)
this.corp_name = info.CORP_NAME
this.form.APPOINT_CORP_ID = info.CORPINFO_ID
this.form.APPOINT_CORP_NAME = info.CORP_NAME
this.form.APPOINT_DEPARTMENT_ID = null
this.form.APPOINT_DEPARTMENT_NAME = ''
this.form.APPOINT_USER_ID = ''
this.form.APPOINT_USER_NAME = ''
this.form.user = ''
this.getDepartmentTree()
},
beforeClose() {
this.corp_id = null
this.visible = false
this.form = {
STATUS: null,
APPOINT_CORP_ID: '',
APPOINT_CORP_NAME: '',
APPOINT_DEPARTMENT_ID: null,
APPOINT_DEPARTMENT_NAME: '',
APPOINT_USER_ID: '',
APPOINT_USER_NAME: '',
user: '',
tm: new Date().getTime(),
list: []
}
},
sendMessage() {
const corp_id = JSON.parse(this.corp_id).CORPINFO_ID
requestFN(
'/trainingbatch/sendMessage',
{
list: this.heirloom,
corp_id: corp_id,
corp_name: this.corp_name,
tm: new Date().getTime()
}
).then((data) => {
if (data.code !== '0') {
this.$message.error(data.msg)
this.$refs.form.validate((valid) => {
if (!valid) {
this.$message.error('请填写完整信息')
} else {
this.$message.success('推送成功')
this.visible = false
this.$emit('refresh', '')
this.form.list = this.heirloom
const formData = new FormData()
Object.keys(this.form).map(key => {
formData.append(key, this.form[key])
})
formData.append('chenNuoShu', this.form.APPOINT_ANNEX[0].raw)
upload('/trainingbatch/sendMessage', formData
).then((data) => {
if (data.code !== '0') {
this.$message.error(data.msg)
} else {
this.$message.success('推送成功')
this.visible = false
this.$emit('refresh', '')
this.beforeClose()
}
})
}
})
},
getDepartmentTree() {
requestFN(
'/companyApi/department/listTree',
{ CORPINFO_ID: this.form.APPOINT_CORP_ID }
).then((data) => {
this.departmentTree = this.removeEmptyChildren(JSON.parse(data.zTreeNodes))
}).catch((e) => {
console.log(e)
})
},
getPeopleList(e) {
this.form.APPOINT_DEPARTMENT_NAME = e.name
requestFN(
'/companyApi/user/listAll',
{
DEPARTMENT_ID: e.id
}
).then((data) => {
this.form.APPOINT_USER_ID = ''
this.form.APPOINT_USER_NAME = ''
this.form.user = ''
this.peopleList = data.userList
}).catch((e) => {
console.log(e)
})
},
chooseUser(e) {
const entity = JSON.parse(e)
this.form.APPOINT_USER_ID = entity.USER_ID
this.form.APPOINT_USER_NAME = entity.NAME
}
}
}
</script>

View File

@ -39,7 +39,7 @@ export default {
},
info: {
type: String,
default: '文件大小不超过500kb'
default: '文件大小不超过500MB'
}
},
data() {

1
更新.md Normal file
View File

@ -0,0 +1 @@
升级内容: 企业端PC 1、新增-三人以上风险分布图菜单-分公司进行上传维护 2、新增-人员聚集分布图菜单-分公司进行上传维护 3、新增-人员培训申请-分公司进行申请培训 4、新增-相关方人员撤场申请审批-分公司审批相关方人员撤回申请 监管端PC 1、新增-三人以上风险分布图菜单,查看分公司数据 2、新增-人员聚集分布图菜单,查看分公司数据 3、优化-重点工程菜单-搜索条件可以手动输入,主管部门和监管部门可以选择全部企业 4、优化-入场告知培训管理-优化审核流程 相关方PC 1、新增-人员推送申请-相关方对分公司推送人员 2、新增-人员撤回申请-相关方对分公司申请撤回人员 企业端APP 1、优化-动火作业-监火改为选择部门 2、新增-查看重点工程监控视频 3、新增-重点工程创建人审核开工申请和结束申请 监管端APP 1、新增-查看重点工程监控视频 2、新增-重点工程创建人审核开工申请和结束申请 一公司app 1、新增-原来动火作业改为国标新动火作业审批流程