Commit d67a74a2 authored by 黄自鹏's avatar 黄自鹏

员工持证增加公司

parent 82d4af61
...@@ -3,17 +3,22 @@ ...@@ -3,17 +3,22 @@
<!-- 填写表单内容,slot=form必写--> <!-- 填写表单内容,slot=form必写-->
<el-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules"> <el-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules">
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="8">
<el-form-item label="职工" ref="userid" prop="userid"> <el-form-item label="职工" ref="userid" prop="userid">
<!-- <el-input :readonly="readonly" v-model="form.userid" ></el-input> --> <!-- <el-input :readonly="readonly" v-model="form.userid" ></el-input> -->
<personSelector :label="form.username||form.userid||'暂无'" @selected='userSelected' ></personSelector> <personSelector :label="form.username||form.userid||'暂无'" @selected='userSelected' ></personSelector>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="8">
<el-form-item label="证书编号" ref="code" prop="code"> <el-form-item label="证书编号" ref="code" prop="code">
<el-input :readonly="readonly" v-model="form.code" ></el-input> <el-input :readonly="readonly" v-model="form.code" ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8">
<el-form-item label="所属公司" ref="gsid" prop="gsid">
<RelSelect style="width: 100%;" :readonly="readonly" src='jcsj/common/bm/queryGs' filterable clearable :match="{value:'id',label:'bmmc'}" v-model='form.gsid' ></RelSelect>
</el-form-item>
</el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="24"> <el-col :span="24">
...@@ -120,6 +125,7 @@ ...@@ -120,6 +125,7 @@
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/ /* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: { form: {
gsid:'',
userName:'', userName:'',
//ID //ID
id:'', id:'',
...@@ -169,6 +175,7 @@ ...@@ -169,6 +175,7 @@
}, },
/* form提交时的规则,具体规则参考官网*/ /* form提交时的规则,具体规则参考官网*/
rules: { rules: {
gsid: [{required: true,trigger: 'blur'}, ],
userid: [{required: true,trigger: 'blur'}, ], userid: [{required: true,trigger: 'blur'}, ],
fzdw: [{required: true,trigger: 'blur'},], fzdw: [{required: true,trigger: 'blur'},],
fzrq: [{required: true,trigger: 'blur'}, ], fzrq: [{required: true,trigger: 'blur'}, ],
......
...@@ -4,7 +4,13 @@ ...@@ -4,7 +4,13 @@
<!-- 查询条件--> <!-- 查询条件-->
<div class="search" v-condition> <div class="search" v-condition>
<SearchButton :app='app'></SearchButton> <SearchButton :app='app'></SearchButton>
<el-row :gutter="24" class="search-row-1"> <el-row :gutter="30" class="search-row-1">
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">公司:</span>
<RelSelect style="width: 100%;" src='jcsj/common/bm/queryGs' filterable clearable :match="{value:'id',label:'bmmc'}" v-model='queryParams.gsid' ></RelSelect>
</div>
</el-col>
<el-col :span="6" class="search-col"> <el-col :span="6" class="search-col">
<div class="search-item"> <div class="search-item">
<span class="search-span">证书编号:</span> <span class="search-span">证书编号:</span>
...@@ -91,6 +97,7 @@ import { ...@@ -91,6 +97,7 @@ import {
baseUrl: '/aqgl/rcgl/ygczxx', baseUrl: '/aqgl/rcgl/ygczxx',
/* 查询参数*/ /* 查询参数*/
queryParams: { queryParams: {
gsid:'',
code:'', code:'',
user:'', user:'',
syfw:'', syfw:'',
...@@ -99,6 +106,7 @@ import { ...@@ -99,6 +106,7 @@ import {
}, },
/* 表格标题对应参数*/ /* 表格标题对应参数*/
tableTitle: [ tableTitle: [
{label: "公司", prop: "gsName", fieldType: "ftString",width:100},
{label: "状态", prop: "ztName", fieldType: "ftString",width:60}, {label: "状态", prop: "ztName", fieldType: "ftString",width:60},
{label: "职工工号", prop: "usercode", fieldType: "ftString",width:140}, {label: "职工工号", prop: "usercode", fieldType: "ftString",width:140},
{label: "职工姓名", prop: "username", fieldType: "ftString",width:160}, {label: "职工姓名", prop: "username", fieldType: "ftString",width:160},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment