Commit 06d08f9e authored by 李苏's avatar 李苏 💬

资质证照调整

parent f379fbbc
<template> <template>
<RelDialog :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'> <RelDialog :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'>
<!-- 填写表单内容,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="12">
<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="12">
<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-col :span="8">
<el-form-item label="所属公司" ref="gsid" prop="gsid"> <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> <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-form-item>
</el-col> --> </el-col> -->
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="24"> <el-col :span="24">
<el-form-item label="证书名称" ref="name" prop="name"> <el-form-item label="证书名称" ref="name" prop="name">
<el-input :readonly="readonly" v-model="form.name" ></el-input> <el-input :readonly="readonly" v-model="form.name"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="24"> <el-col :span="24">
<el-form-item label="发证单位" ref="fzdw" prop="fzdw"> <el-form-item label="发证单位" ref="fzdw" prop="fzdw">
<el-input :readonly="readonly" v-model="form.fzdw" ></el-input> <el-input :readonly="readonly" v-model="form.fzdw"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="作业类别" ref="flid" prop="flid"> <el-form-item label="作业类别" ref="flid" prop="flid">
<RelSelect style="width: 100%;" :readonly="readonly" src='aqgl/rcgl/uaqglry/init/zsfl' clearable :match="{value:'id',label:'name'}" v-model='form.flid' ></RelSelect> <RelSelect style="width: 100%;" :readonly="readonly" src='aqgl/rcgl/uaqglry/init/zsfl' clearable
</el-form-item> :match="{value:'id',label:'name'}" v-model='form.flid'></RelSelect>
</el-col> </el-form-item>
<el-col :span="12"> </el-col>
<el-form-item label="适用范围" ref="syfw" prop="syfw"> <el-col :span="12">
<RelSelect style="width: 100%;" :readonly="readonly" src='aqgl/rcgl/uaqglry/init/syfw' clearable :match="{value:'id',label:'name'}" v-model='form.syfw' ></RelSelect> <el-form-item label="适用范围" ref="syfw" prop="syfw">
</el-form-item> <RelSelect style="width: 100%;" :readonly="readonly" src='aqgl/rcgl/uaqglry/init/syfw' clearable
</el-col> :match="{value:'id',label:'name'}" v-model='form.syfw'></RelSelect>
</el-row> </el-form-item>
<el-row :gutter="20"> </el-col>
<el-col :span="9"> </el-row>
<el-form-item label="发证日期" ref="fzrq" prop="fzrq"> <el-row :gutter="20">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date" value-format="timestamp" <el-col :span="9">
v-model="form.fzrq" placeholder="选择日期"> <el-form-item label="发证日期" ref="fzrq" prop="fzrq">
</el-date-picker> <el-date-picker style="width: 100%;" :readonly="readonly" type="date" value-format="timestamp"
</el-form-item> v-model="form.fzrq" placeholder="选择日期">
</el-col> </el-date-picker>
<el-col :span="6"> </el-form-item>
<el-form-item label="有效期(年)" ref="yxq" prop="yxq"> </el-col>
<el-input type="number" :readonly="readonly" v-model="form.yxq" ></el-input> <el-col :span="6">
</el-form-item> <el-form-item label="有效期(年)" ref="yxq" prop="yxq">
</el-col> <el-input type="number" :readonly="readonly" v-model="form.yxq"></el-input>
<el-col :span="9"> </el-form-item>
<el-form-item label="截止日期" ref="jzrq" prop="jzrq"> </el-col>
<el-date-picker style="width: 100%;" :readonly="readonly" type="date" value-format="timestamp" <el-col :span="9">
v-model="form.jzrq" placeholder="选择日期"> <el-form-item label="截止日期" ref="jzrq" prop="jzrq">
</el-date-picker> <el-date-picker style="width: 100%;" :readonly="readonly" type="date" value-format="timestamp"
</el-form-item> v-model="form.jzrq" placeholder="选择日期">
</el-col> </el-date-picker>
</el-row> </el-form-item>
<el-row :gutter="20"> </el-col>
<el-col :span="12"> </el-row>
<el-form-item label="复审日期1" ref="fsrq1" prop="fsrq1"> <el-row :gutter="20">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date" value-format="timestamp" <el-col :span="8">
v-model="form.fsrq1" placeholder="选择日期"> <el-form-item label="复审日期1" ref="fsrq1" prop="fsrq1">
</el-date-picker> <el-date-picker style="width: 100%;" :readonly="readonly" type="date" value-format="timestamp"
</el-form-item> v-model="form.fsrq1" placeholder="选择日期">
</el-col> </el-date-picker>
<el-col :span="12"> </el-form-item>
<el-form-item label="实际复审日期1" ref="sjfsrq1" prop="sjfsrq1"> </el-col>
<el-date-picker style="width: 100%;" :readonly="readonly" type="date" value-format="timestamp" <el-col :span="8">
v-model="form.sjfsrq1" placeholder="选择日期"> <el-form-item label="提醒周期(天)" ref="txzq" prop="txzq">
</el-date-picker> <el-input :readonly="readonly" v-model="form.txzq"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8">
<el-form-item label="提醒日期" ref="txrq" prop="txrq">
<el-date-picker style="width: 100%;" :readonly="true" type="date" value-format="timestamp"
v-model="form.txrq" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="实际复审日期1" ref="sjfsrq1" prop="sjfsrq1">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date" value-format="timestamp"
v-model="form.sjfsrq1" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="复审日期2" ref="fsrq2" prop="fsrq2"> <el-form-item label="复审日期2" ref="fsrq2" prop="fsrq2">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date" value-format="timestamp" <el-date-picker style="width: 100%;" :readonly="readonly" type="date" value-format="timestamp"
v-model="form.fsrq2" placeholder="选择日期"> v-model="form.fsrq2" placeholder="选择日期">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="实际复审日期2" ref="sjfsrq2" prop="sjfsrq2"> <el-form-item label="实际复审日期2" ref="sjfsrq2" prop="sjfsrq2">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date" value-format="timestamp" <el-date-picker style="width: 100%;" :readonly="readonly" type="date" value-format="timestamp"
v-model="form.sjfsrq2" placeholder="选择日期"> v-model="form.sjfsrq2" placeholder="选择日期">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</el-form> </el-form>
</RelDialog> </RelDialog>
</template> </template>
<script> <script>
import {editMixin} from 'common' import {
export default { editMixin
mixins: [editMixin], } from 'common'
/* 存放index页面传递的额外参数*/ export default {
mounted() { mixins: [editMixin],
/* 存放index页面传递的额外参数*/
mounted() {
},
/* 组件名称*/
computed: {
txzq() {
return (
this.form.txzq
)
}, },
/* 组件名称*/ fsrq1() {
name: "aqgl/rcglYgczxxEdit", return (
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/ this.form.fsrq1
)
}
},
/* 组件名称*/
watch:{
txzq(val){
if(this.form.fsrq1){
this.form.txrq=this.form.fsrq1-val*24*60*60*1000
}
},
fsrq1(val){
if(this.form.txzq){
this.form.txrq=this.form.fsrq1-this.form.txzq*24*60*60*1000
}
}
},
data() { data() {
return { return {
/* 额外初始化,根据需求*/ /* 额外初始化,根据需求*/
systemType: [], systemType: [],
bmList: [], bmList: [],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/ /* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: { form: {
gsid:'', txzq: '',
userName:'', txrq: '',
//ID gsid: '',
id:'', userName: '',
//用户编码 //ID
userid:'', id: '',
//证书编号 //用户编码
code:'', userid: '',
//证书名称 //证书编号
name:'', code: '',
flid:'', //证书名称
//发证日期 name: '',
fzrq:'', flid: '',
//有效期 //发证日期
yxq:'', fzrq: '',
//截止日期 //有效期
jzrq:'', yxq: '',
//状态 //截止日期
zt:'', jzrq: '',
//复审日期1 //状态
fsrq1:'', zt: '',
//复审日期2 //复审日期1
fsrq2:'', fsrq1: '',
//实际复审日期1 //复审日期2
sjfsrq1:'', fsrq2: '',
//实际复审日期2 //实际复审日期1
sjfsrq2:'', sjfsrq1: '',
//备注 //实际复审日期2
bz:'', sjfsrq2: '',
//维护人编码 //备注
whrid:'', bz: '',
//维护人 //维护人编码
whr:'', whrid: '',
//维护时间 //维护人
whsj:new Date().getTime(), whr: '',
//创建人编码 //维护时间
cjrid:'', whsj: new Date().getTime(),
//创建人 //创建人编码
cjr:'', cjrid: '',
//创建时间 //创建人
cjsj:new Date().getTime(), cjr: '',
//系统版本 //创建时间
sysversion:'', cjsj: new Date().getTime(),
//发证单位 //系统版本
fzdw:'', sysversion: '',
//适用范围 //发证单位
syfw:'', fzdw: '',
}, //适用范围
/* form提交时的规则,具体规则参考官网*/ syfw: '',
rules: {
gsid: [{required: true,trigger: 'blur'}, ],
userid: [{required: true,trigger: 'blur'}, ],
fzdw: [{required: true,trigger: 'blur'},],
fzrq: [{required: true,trigger: 'blur'}, ],
code: [{required: true,trigger: 'blur'}, ],
name: [{required: true,trigger: 'blur'}, ],
flid: [{required: true,trigger: 'blur'}, ],
syfw: [{required: true,trigger: 'blur'}, ],
}
}
}, },
methods: { /* form提交时的规则,具体规则参考官网*/
userSelected(row){ rules: {
this.form.userid=row.id gsid: [{
} required: true,
trigger: 'blur'
}, ],
userid: [{
required: true,
trigger: 'blur'
}, ],
fzdw: [{
required: true,
trigger: 'blur'
}, ],
fzrq: [{
required: true,
trigger: 'blur'
}, ],
code: [{
required: true,
trigger: 'blur'
}, ],
name: [{
required: true,
trigger: 'blur'
}, ],
flid: [{
required: true,
trigger: 'blur'
}, ],
syfw: [{
required: true,
trigger: 'blur'
}, ],
fsrq1: [{
required: true,
trigger: 'blur'
}, ],
} }
}
},
methods: {
userSelected(row) {
this.form.userid = row.id
}
} }
}
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
......
...@@ -115,6 +115,15 @@ import { ...@@ -115,6 +115,15 @@ import {
{label: "作业类别", prop: "zsflName", fieldType: "ftString", width: 100}, {label: "作业类别", prop: "zsflName", fieldType: "ftString", width: 100},
{label: "发证日期", prop: "fzrq", fieldType: "ftDateTime"}, {label: "发证日期", prop: "fzrq", fieldType: "ftDateTime"},
{label: "有效期", prop: "yxq", fieldType: "float"}, {label: "有效期", prop: "yxq", fieldType: "float"},
{
label: "提醒周期(天)",
prop: "txzq"
},
{
label: "提醒日期",
prop: "txrq",
fieldType: "ftDateTime"
},
{label: "截止日期", prop: "jzrq", fieldType: "ftDateTime"}, {label: "截止日期", prop: "jzrq", fieldType: "ftDateTime"},
{label: "复审日期1", prop: "fsrq1", fieldType: "ftDateTime"}, {label: "复审日期1", prop: "fsrq1", fieldType: "ftDateTime"},
{label: "复审日期2", prop: "fsrq2", fieldType: "ftDateTime"}, {label: "复审日期2", prop: "fsrq2", fieldType: "ftDateTime"},
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="24"> <el-col :span="24">
<el-form-item label="履职内容" ref="content" prop="content"> <el-form-item label="履职内容" ref="content" prop="content">
<RelSelect linkage :linkParams="{flid:form.flid}" :readonly="readonly" style="width: 100%;" src='/aqgl/rcgl/lzbz/query' filterable clearable :match="{value:'content',label:'content'}" v-model='form.content' ></RelSelect> <el-input :readonly="readonly" v-model="form.content" ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
......
<template> <template>
<RelDialog :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'> <RelDialog :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'>
<!-- 填写表单内容,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="12">
<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="12">
<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-col :span="8">
<el-form-item label="所属公司" ref="gsid" prop="gsid"> <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> <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-form-item>
</el-col> --> </el-col> -->
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="24"> <el-col :span="24">
<el-form-item label="证书名称" ref="name" prop="name"> <el-form-item label="证书名称" ref="name" prop="name">
<el-input :readonly="readonly" v-model="form.name" ></el-input> <el-input :readonly="readonly" v-model="form.name"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="24"> <el-col :span="24">
<el-form-item label="发证单位" ref="fzdw" prop="fzdw"> <el-form-item label="发证单位" ref="fzdw" prop="fzdw">
<el-input :readonly="readonly" v-model="form.fzdw" ></el-input> <el-input :readonly="readonly" v-model="form.fzdw"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="作业类别" ref="flid" prop="flid"> <el-form-item label="作业类别" ref="flid" prop="flid">
<RelSelect style="width: 100%;" :readonly="readonly" src='aqgl/rcgl/ygczxx/init/zsfl' clearable :match="{value:'id',label:'name'}" v-model='form.flid' ></RelSelect> <RelSelect style="width: 100%;" :readonly="readonly" src='aqgl/rcgl/ygczxx/init/zsfl' clearable
</el-form-item> :match="{value:'id',label:'name'}" v-model='form.flid'></RelSelect>
</el-col> </el-form-item>
<el-col :span="12"> </el-col>
<el-form-item label="适用范围" ref="syfw" prop="syfw"> <el-col :span="12">
<RelSelect style="width: 100%;" :readonly="readonly" src='aqgl/rcgl/ygczxx/init/syfw' clearable :match="{value:'id',label:'name'}" v-model='form.syfw' ></RelSelect> <el-form-item label="适用范围" ref="syfw" prop="syfw">
</el-form-item> <RelSelect style="width: 100%;" :readonly="readonly" src='aqgl/rcgl/ygczxx/init/syfw' clearable
</el-col> :match="{value:'id',label:'name'}" v-model='form.syfw'></RelSelect>
</el-row> </el-form-item>
<el-row :gutter="20"> </el-col>
<el-col :span="9"> </el-row>
<el-form-item label="发证日期" ref="fzrq" prop="fzrq"> <el-row :gutter="20">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date" value-format="timestamp" <el-col :span="9">
v-model="form.fzrq" placeholder="选择日期"> <el-form-item label="发证日期" ref="fzrq" prop="fzrq">
</el-date-picker> <el-date-picker style="width: 100%;" :readonly="readonly" type="date" value-format="timestamp"
</el-form-item> v-model="form.fzrq" placeholder="选择日期">
</el-col> </el-date-picker>
<el-col :span="6"> </el-form-item>
<el-form-item label="有效期(年)" ref="yxq" prop="yxq"> </el-col>
<el-input type="number" :readonly="readonly" v-model="form.yxq" ></el-input> <el-col :span="6">
</el-form-item> <el-form-item label="有效期(年)" ref="yxq" prop="yxq">
</el-col> <el-input type="number" :readonly="readonly" v-model="form.yxq"></el-input>
<el-col :span="9"> </el-form-item>
<el-form-item label="截止日期" ref="jzrq" prop="jzrq"> </el-col>
<el-date-picker style="width: 100%;" :readonly="readonly" type="date" value-format="timestamp" <el-col :span="9">
v-model="form.jzrq" placeholder="选择日期"> <el-form-item label="截止日期" ref="jzrq" prop="jzrq">
</el-date-picker> <el-date-picker style="width: 100%;" :readonly="readonly" type="date" value-format="timestamp"
</el-form-item> v-model="form.jzrq" placeholder="选择日期">
</el-col> </el-date-picker>
</el-row> </el-form-item>
<el-row :gutter="20"> </el-col>
<el-col :span="12"> </el-row>
<el-form-item label="复审日期1" ref="fsrq1" prop="fsrq1"> <el-row :gutter="20">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date" value-format="timestamp" <el-col :span="8">
v-model="form.fsrq1" placeholder="选择日期"> <el-form-item label="复审日期1" ref="fsrq1" prop="fsrq1">
</el-date-picker> <el-date-picker style="width: 100%;" :readonly="readonly" type="date" value-format="timestamp"
</el-form-item> v-model="form.fsrq1" placeholder="选择日期">
</el-col> </el-date-picker>
<el-col :span="12"> </el-form-item>
<el-form-item label="实际复审日期1" ref="sjfsrq1" prop="sjfsrq1"> </el-col>
<el-date-picker style="width: 100%;" :readonly="readonly" type="date" value-format="timestamp" <el-col :span="8">
v-model="form.sjfsrq1" placeholder="选择日期"> <el-form-item label="提醒周期(天)" ref="txzq" prop="txzq">
</el-date-picker> <el-input :readonly="readonly" v-model="form.txzq"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8">
<el-form-item label="提醒日期" ref="txrq" prop="txrq">
<el-date-picker style="width: 100%;" :readonly="true" type="date" value-format="timestamp"
v-model="form.txrq" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="实际复审日期1" ref="sjfsrq1" prop="sjfsrq1">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date" value-format="timestamp"
v-model="form.sjfsrq1" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="复审日期2" ref="fsrq2" prop="fsrq2"> <el-form-item label="复审日期2" ref="fsrq2" prop="fsrq2">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date" value-format="timestamp" <el-date-picker style="width: 100%;" :readonly="readonly" type="date" value-format="timestamp"
v-model="form.fsrq2" placeholder="选择日期"> v-model="form.fsrq2" placeholder="选择日期">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="实际复审日期2" ref="sjfsrq2" prop="sjfsrq2"> <el-form-item label="实际复审日期2" ref="sjfsrq2" prop="sjfsrq2">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date" value-format="timestamp" <el-date-picker style="width: 100%;" :readonly="readonly" type="date" value-format="timestamp"
v-model="form.sjfsrq2" placeholder="选择日期"> v-model="form.sjfsrq2" placeholder="选择日期">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</el-form> </el-form>
</RelDialog> </RelDialog>
</template> </template>
<script> <script>
import {editMixin} from 'common' import {
export default { editMixin
mixins: [editMixin], } from 'common'
/* 存放index页面传递的额外参数*/ export default {
mounted() { mixins: [editMixin],
/* 存放index页面传递的额外参数*/
mounted() {
}, },
/* 组件名称*/ /* 组件名称*/
name: "aqgl/rcglYgczxxEdit", name: "aqgl/rcglYgczxxEdit",
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/ computed: {
txzq() {
data() { return (
return { this.form.txzq
)
},
fsrq1() {
return (
this.form.fsrq1
)
}
},
watch: {
txzq(val) {
if (this.form.fsrq1) {
this.form.txrq = this.form.fsrq1 - val * 24 * 60 * 60 * 1000
}
},
fsrq1(val) {
if (this.form.txzq) {
this.form.txrq = this.form.fsrq1 - this.form.txzq * 24 * 60 * 60 * 1000
}
}
},
data() {
return {
/* 额外初始化,根据需求*/ /* 额外初始化,根据需求*/
systemType: [], systemType: [],
bmList: [], bmList: [],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/ /* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: { form: {
gsid:'', txzq: '',
userName:'', txrq: '',
//ID gsid: '',
id:'', userName: '',
//用户编码 //ID
userid:'', id: '',
//证书编号 //用户编码
code:'', userid: '',
//证书名称 //证书编号
name:'', code: '',
flid:'', //证书名称
//发证日期 name: '',
fzrq:'', flid: '',
//有效期 //发证日期
yxq:'', fzrq: '',
//截止日期 //有效期
jzrq:'', yxq: '',
//状态 //截止日期
zt:'', jzrq: '',
//复审日期1 //状态
fsrq1:'', zt: '',
//复审日期2 //复审日期1
fsrq2:'', fsrq1: '',
//实际复审日期1 //复审日期2
sjfsrq1:'', fsrq2: '',
//实际复审日期2 //实际复审日期1
sjfsrq2:'', sjfsrq1: '',
//备注 //实际复审日期2
bz:'', sjfsrq2: '',
//维护人编码 //备注
whrid:'', bz: '',
//维护人 //维护人编码
whr:'', whrid: '',
//维护时间 //维护人
whsj:new Date().getTime(), whr: '',
//创建人编码 //维护时间
cjrid:'', whsj: new Date().getTime(),
//创建人 //创建人编码
cjr:'', cjrid: '',
//创建时间 //创建人
cjsj:new Date().getTime(), cjr: '',
//系统版本 //创建时间
sysversion:'', cjsj: new Date().getTime(),
//发证单位 //系统版本
fzdw:'', sysversion: '',
//适用范围 //发证单位
syfw:'', fzdw: '',
}, //适用范围
/* form提交时的规则,具体规则参考官网*/ syfw: '',
rules: {
gsid: [{required: true,trigger: 'blur'}, ],
userid: [{required: true,trigger: 'blur'}, ],
fzdw: [{required: true,trigger: 'blur'},],
fzrq: [{required: true,trigger: 'blur'}, ],
code: [{required: true,trigger: 'blur'}, ],
name: [{required: true,trigger: 'blur'}, ],
flid: [{required: true,trigger: 'blur'}, ],
syfw: [{required: true,trigger: 'blur'}, ],
}
}
}, },
methods: { /* form提交时的规则,具体规则参考官网*/
userSelected(row){ rules: {
this.form.userid=row.id fsrq1: [{
} required: true,
trigger: 'blur'
}, ],
gsid: [{
required: true,
trigger: 'blur'
}, ],
userid: [{
required: true,
trigger: 'blur'
}, ],
fzdw: [{
required: true,
trigger: 'blur'
}, ],
fzrq: [{
required: true,
trigger: 'blur'
}, ],
code: [{
required: true,
trigger: 'blur'
}, ],
name: [{
required: true,
trigger: 'blur'
}, ],
flid: [{
required: true,
trigger: 'blur'
}, ],
syfw: [{
required: true,
trigger: 'blur'
}, ],
} }
}
},
methods: {
userSelected(row) {
this.form.userid = row.id
}
} }
}
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
......
<template> <template>
<div class="min_full"> <div class="min_full">
<!-- 查询条件--> <!-- 查询条件-->
<div class="search" v-condition> <div class="search" v-condition>
<SearchButton :app='app'></SearchButton> <SearchButton :app='app'></SearchButton>
<el-row :gutter="30" class="search-row-1"> <el-row :gutter="30" class="search-row-1">
<!-- <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>
<RelSelect style="width: 100%;" src='jcsj/common/bm/queryGs' filterable clearable :match="{value:'id',label:'bmmc'}" v-model='queryParams.gsid' ></RelSelect> <RelSelect style="width: 100%;" src='jcsj/common/bm/queryGs' filterable clearable :match="{value:'id',label:'bmmc'}" v-model='queryParams.gsid' ></RelSelect>
</div> </div>
</el-col> --> </el-col> -->
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">证书编号:</span>
<el-input v-model="queryParams.code"></el-input>
</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>
<el-input v-model="queryParams.user"></el-input> <el-input v-model="queryParams.code"></el-input>
</div> </div>
</el-col> </el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">证书状态:</span>
<RelSelect src='aqgl/rcgl/ygczxx/init/zt' clearable :match="{value:'id',label:'name'}" v-model='queryParams.zt' ></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>
<RelSelect src='aqgl/rcgl/ygczxx/init/syfw' clearable :match="{value:'id',label:'name'}" v-model='queryParams.syfw' ></RelSelect> <el-input v-model="queryParams.user"></el-input>
</div> </div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">证书状态:</span>
<RelSelect src='aqgl/rcgl/ygczxx/init/zt' clearable :match="{value:'id',label:'name'}"
v-model='queryParams.zt'></RelSelect>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">适用范围:</span>
<RelSelect src='aqgl/rcgl/ygczxx/init/syfw' clearable :match="{value:'id',label:'name'}"
v-model='queryParams.syfw'></RelSelect>
</div>
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
<!-- 按钮操作--> <!-- 按钮操作-->
<el-row class="tool-bar"> <el-row class="tool-bar">
<PrintButton :app='app'></PrintButton> <PrintButton :app='app'></PrintButton>
<ViewButton ref="view" :app='app'></ViewButton> <ViewButton ref="view" :app='app'></ViewButton>
<AddButton ref="add" :app='app'></AddButton> <AddButton ref="add" :app='app'></AddButton>
<CopyButton ref="copy" :app='app'></CopyButton> <CopyButton ref="copy" :app='app'></CopyButton>
<EditButton ref="edit" :app='app'></EditButton> <EditButton ref="edit" :app='app'></EditButton>
<AttachFileButton :app='app' ></AttachFileButton> <AttachFileButton :app='app'></AttachFileButton>
<FieldButton :app='app'></FieldButton> <FieldButton :app='app'></FieldButton>
<ExcelButton :app='app'></ExcelButton> <ExcelButton :app='app'></ExcelButton>
<!-- 额外按钮--> <!-- 额外按钮-->
<!-- 表头设置 --> <!-- 表头设置 -->
<!-- 权限--> <!-- 权限-->
</el-row> </el-row>
<!-- 表格--> <!-- 表格-->
<div class="tablePagers"> <div class="tablePagers">
<TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem' <TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem'
@getRow='getRow'> @getRow='getRow'>
</TablePager> </TablePager>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
/* 引入需要的接口*/ /* 引入需要的接口*/
import { import {
doQuery, doQuery,
doAdd, doAdd,
doUpdate, doUpdate,
doDelete, doDelete,
doInitSyfw doInitSyfw
} from '@/api/daily/holdCertificate.js'; } from '@/api/daily/holdCertificate.js';
/* edit页面*/ /* edit页面*/
import Edit from './edit' import Edit from './edit'
import { import {
tableMixin tableMixin
} from 'common' } from 'common'
export default { export default {
mixins: [tableMixin], mixins: [tableMixin],
name: 'appVersion', name: 'appVersion',
/* 初始额外赋值*/ /* 初始额外赋值*/
async mounted() { async mounted() {
this.$refs['TablePager'].pageQuery() this.$refs['TablePager'].pageQuery()
}, },
data() { data() {
return { return {
/*需要的额外参数 */ /*需要的额外参数 */
showDialog: false, showDialog: false,
DialogName: '', DialogName: '',
type: '', type: '',
DialogTitle: '', DialogTitle: '',
/* 基础url*/ /* 基础url*/
baseUrl: '/aqgl/rcgl/ygczxx', baseUrl: '/aqgl/rcgl/ygczxx',
/* 查询参数*/ /* 查询参数*/
queryParams: { queryParams: {
gsid:'', gsid: '',
code:'', code: '',
user:'', user: '',
syfw:'', syfw: '',
zt:'' zt: ''
}, },
/* 表格标题对应参数*/ /* 表格标题对应参数*/
tableTitle: [ tableTitle: [
// {label: "公司", prop: "gsName", fieldType: "ftString",width:100}, // {label: "公司", prop: "gsName", fieldType: "ftString",width:100},
{label: "状态", prop: "ztName", fieldType: "ftString",width:60}, {
{label: "职工工号", prop: "usercode", fieldType: "ftString",width:140}, label: "状态",
{label: "职工姓名", prop: "username", fieldType: "ftString",width:160}, prop: "ztName",
{label: "证书编号", prop: "code", fieldType: "ftString",width:160}, fieldType: "ftString",
{label: "证书名称", prop: "name", fieldType: "ftString",width:180}, width: 60
{label: "作业类别", prop: "zsflName", fieldType: "ftString", width: 100}, },
{label: "发证日期", prop: "fzrq", fieldType: "ftDateTime"}, {
{label: "有效期", prop: "yxq", fieldType: "float"}, label: "职工工号",
{label: "截止日期", prop: "jzrq", fieldType: "ftDateTime"}, prop: "usercode",
{label: "复审日期1", prop: "fsrq1", fieldType: "ftDateTime"}, fieldType: "ftString",
{label: "复审日期2", prop: "fsrq2", fieldType: "ftDateTime"}, width: 140
{label: "实际复审日期1", prop: "sjfsrq1", fieldType: "ftDateTime"}, },
{label: "实际复审日期2", prop: "sjfsrq2", fieldType: "ftDateTime"}, {
{label: "发证单位", prop: "fzdw", fieldType: "ftString",width:300}, label: "职工姓名",
// {label: "适用范围", prop: "syfw", fieldType: "ftString",width:60}, prop: "username",
{label: "适用范围", prop: "syfwName", fieldType: "ftString",width:160}, fieldType: "ftString",
{label: "备注", prop: "bz", fieldType: "ftString",width:300}, width: 160
{label: "维护人", prop: "whr", fieldType: "ftString"}, },
{label: "维护时间", prop: "whsj", fieldType: "ftDateTime"}, {
{label: "创建人", prop: "cjr", fieldType: "ftString", show: false}, label: "证书编号",
{label: "创建时间", prop: "cjsj", fieldType: "ftDateTime", show: false} prop: "code",
fieldType: "ftString",
] width: 160
} },
}, {
methods: { label: "证书名称",
prop: "name",
query: doQuery, fieldType: "ftString",
/* 基础增*/ width: 180
apiAdd: doAdd, },
/* 基础更新*/ {
apiUpdate: doUpdate, label: "作业类别",
/* 删除操作*/ prop: "zsflName",
apiDelete: doDelete, fieldType: "ftString",
/* 初始化赋值操作*/ width: 100
init() { },
{
}, label: "发证日期",
/* 启用停用*/ prop: "fzrq",
fieldType: "ftDateTime"
},
{
}, label: "提醒周期(天)",
components: { prop: "txzq"
Edit, },
} {
label: "提醒日期",
prop: "txrq",
} fieldType: "ftDateTime"
},
{
label: "有效期",
prop: "yxq",
fieldType: "float"
},
{
label: "截止日期",
prop: "jzrq",
fieldType: "ftDateTime"
},
{
label: "复审日期1",
prop: "fsrq1",
fieldType: "ftDateTime"
},
{
label: "复审日期2",
prop: "fsrq2",
fieldType: "ftDateTime"
},
{
label: "实际复审日期1",
prop: "sjfsrq1",
fieldType: "ftDateTime"
},
{
label: "实际复审日期2",
prop: "sjfsrq2",
fieldType: "ftDateTime"
},
{
label: "发证单位",
prop: "fzdw",
fieldType: "ftString",
width: 300
},
// {label: "适用范围", prop: "syfw", fieldType: "ftString",width:60},
{
label: "适用范围",
prop: "syfwName",
fieldType: "ftString",
width: 160
},
{
label: "备注",
prop: "bz",
fieldType: "ftString",
width: 300
},
{
label: "维护人",
prop: "whr",
fieldType: "ftString"
},
{
label: "维护时间",
prop: "whsj",
fieldType: "ftDateTime"
},
{
label: "创建人",
prop: "cjr",
fieldType: "ftString",
show: false
},
{
label: "创建时间",
prop: "cjsj",
fieldType: "ftDateTime",
show: false
}
]
}
},
methods: {
query: doQuery,
/* 基础增*/
apiAdd: doAdd,
/* 基础更新*/
apiUpdate: doUpdate,
/* 删除操作*/
apiDelete: doDelete,
/* 初始化赋值操作*/
init() {
},
/* 启用停用*/
},
components: {
Edit,
}
}
</script> </script>
<style scoped> <style scoped>
......
...@@ -68,12 +68,24 @@ ...@@ -68,12 +68,24 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="8">
<el-form-item label="复审日期1" ref="fsrq1" prop="fsrq1"> <el-form-item label="复审日期1" ref="fsrq1" prop="fsrq1">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date" value-format="timestamp" <el-date-picker style="width: 100%;" :readonly="readonly" type="date" value-format="timestamp"
v-model="form.fsrq1" placeholder="选择日期"> v-model="form.fsrq1" placeholder="选择日期">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="提醒周期(天)" ref="txzq" prop="txzq">
<el-input :readonly="readonly" v-model="form.txzq"></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="提醒日期" ref="txrq" prop="txrq">
<el-date-picker style="width: 100%;" :readonly="true" type="date" value-format="timestamp"
v-model="form.txrq" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="实际复审日期1" ref="sjfsrq1" prop="sjfsrq1"> <el-form-item label="实际复审日期1" ref="sjfsrq1" prop="sjfsrq1">
...@@ -112,7 +124,31 @@ ...@@ -112,7 +124,31 @@
}, },
/* 组件名称*/ /* 组件名称*/
name: "aqgl/rcglYgczxxEdit", computed: {
txzq() {
return (
this.form.txzq
)
},
fsrq1() {
return (
this.form.fsrq1
)
}
},
/* 组件名称*/
watch:{
txzq(val){
if(this.form.fsrq1){
this.form.txrq=this.form.fsrq1-val*24*60*60*1000
}
},
fsrq1(val){
if(this.form.txzq){
this.form.txrq=this.form.fsrq1-this.form.txzq*24*60*60*1000
}
}
},
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/ /* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data() { data() {
...@@ -125,6 +161,8 @@ ...@@ -125,6 +161,8 @@
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/ /* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: { form: {
txzq: '',
txrq: '',
gsid:'', gsid:'',
userName:'', userName:'',
//ID //ID
...@@ -183,6 +221,10 @@ ...@@ -183,6 +221,10 @@
name: [{required: true,trigger: 'blur'}, ], name: [{required: true,trigger: 'blur'}, ],
flid: [{required: true,trigger: 'blur'}, ], flid: [{required: true,trigger: 'blur'}, ],
syfw: [{required: true,trigger: 'blur'}, ], syfw: [{required: true,trigger: 'blur'}, ],
fsrq1: [{
required: true,
trigger: 'blur'
}, ],
} }
} }
}, },
......
...@@ -115,6 +115,15 @@ import { ...@@ -115,6 +115,15 @@ import {
{label: "作业类别", prop: "zsflName", fieldType: "ftString", width: 100}, {label: "作业类别", prop: "zsflName", fieldType: "ftString", width: 100},
{label: "发证日期", prop: "fzrq", fieldType: "ftDateTime"}, {label: "发证日期", prop: "fzrq", fieldType: "ftDateTime"},
{label: "有效期", prop: "yxq", fieldType: "float"}, {label: "有效期", prop: "yxq", fieldType: "float"},
{
label: "提醒周期(天)",
prop: "txzq"
},
{
label: "提醒日期",
prop: "txrq",
fieldType: "ftDateTime"
},
{label: "截止日期", prop: "jzrq", fieldType: "ftDateTime"}, {label: "截止日期", prop: "jzrq", fieldType: "ftDateTime"},
{label: "复审日期1", prop: "fsrq1", fieldType: "ftDateTime"}, {label: "复审日期1", prop: "fsrq1", fieldType: "ftDateTime"},
{label: "复审日期2", prop: "fsrq2", fieldType: "ftDateTime"}, {label: "复审日期2", prop: "fsrq2", fieldType: "ftDateTime"},
......
...@@ -68,12 +68,24 @@ ...@@ -68,12 +68,24 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="8">
<el-form-item label="复审日期1" ref="fsrq1" prop="fsrq1"> <el-form-item label="复审日期1" ref="fsrq1" prop="fsrq1">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date" value-format="timestamp" <el-date-picker style="width: 100%;" :readonly="readonly" type="date" value-format="timestamp"
v-model="form.fsrq1" placeholder="选择日期"> v-model="form.fsrq1" placeholder="选择日期">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="提醒周期(天)" ref="txzq" prop="txzq">
<el-input :readonly="readonly" v-model="form.txzq"></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="提醒日期" ref="txrq" prop="txrq">
<el-date-picker style="width: 100%;" :readonly="true" type="date" value-format="timestamp"
v-model="form.txrq" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="实际复审日期1" ref="sjfsrq1" prop="sjfsrq1"> <el-form-item label="实际复审日期1" ref="sjfsrq1" prop="sjfsrq1">
...@@ -112,8 +124,31 @@ ...@@ -112,8 +124,31 @@
}, },
/* 组件名称*/ /* 组件名称*/
name: "aqgl/rcglYgczxxEdit", computed: {
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/ txzq() {
return (
this.form.txzq
)
},
fsrq1() {
return (
this.form.fsrq1
)
}
},
/* 组件名称*/
watch:{
txzq(val){
if(this.form.fsrq1){
this.form.txrq=this.form.fsrq1-val*24*60*60*1000
}
},
fsrq1(val){
if(this.form.txzq){
this.form.txrq=this.form.fsrq1-this.form.txzq*24*60*60*1000
}
}
},
data() { data() {
return { return {
...@@ -125,6 +160,8 @@ ...@@ -125,6 +160,8 @@
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/ /* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: { form: {
txzq: '',
txrq: '',
gsid:'', gsid:'',
userName:'', userName:'',
//ID //ID
...@@ -183,6 +220,10 @@ ...@@ -183,6 +220,10 @@
name: [{required: true,trigger: 'blur'}, ], name: [{required: true,trigger: 'blur'}, ],
flid: [{required: true,trigger: 'blur'}, ], flid: [{required: true,trigger: 'blur'}, ],
syfw: [{required: true,trigger: 'blur'}, ], syfw: [{required: true,trigger: 'blur'}, ],
fsrq1: [{
required: true,
trigger: 'blur'
}, ],
} }
} }
}, },
......
...@@ -115,6 +115,15 @@ import { ...@@ -115,6 +115,15 @@ import {
{label: "作业类别", prop: "zsflName", fieldType: "ftString", width: 100}, {label: "作业类别", prop: "zsflName", fieldType: "ftString", width: 100},
{label: "发证日期", prop: "fzrq", fieldType: "ftDateTime"}, {label: "发证日期", prop: "fzrq", fieldType: "ftDateTime"},
{label: "有效期", prop: "yxq", fieldType: "float"}, {label: "有效期", prop: "yxq", fieldType: "float"},
{
label: "提醒周期(天)",
prop: "txzq"
},
{
label: "提醒日期",
prop: "txrq",
fieldType: "ftDateTime"
},
{label: "截止日期", prop: "jzrq", fieldType: "ftDateTime"}, {label: "截止日期", prop: "jzrq", fieldType: "ftDateTime"},
{label: "复审日期1", prop: "fsrq1", fieldType: "ftDateTime"}, {label: "复审日期1", prop: "fsrq1", fieldType: "ftDateTime"},
{label: "复审日期2", prop: "fsrq2", fieldType: "ftDateTime"}, {label: "复审日期2", prop: "fsrq2", fieldType: "ftDateTime"},
......
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