Commit bac62f25 authored by dingyoujian's avatar dingyoujian

三违

parent 9de23a92
......@@ -104,3 +104,12 @@ export function queryBglxFile(query) {
data: query||{}
})
}
/* 查询 */
export function doQueryCfbz(query) {
return request({
url: '/aqgl/swgl/swcfbz/query',
method: 'post',
data: query||{}
})
}
......@@ -3,72 +3,105 @@
<!-- 填写表单内容,slot=form必写-->
<el-form slot="form" ref="form" :model="form" label-width="80px" :rules="rules">
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="设备编码" ref="code" prop="code">
<el-col :span="8">
<el-form-item label="公司" ref="gsid" prop="gsid">
<!-- <el-input :readonly="readonly" v-model="form.name" ></el-input> -->
<RelSelect :readonly="readonly" filterable style="width: 100%;" src='/jcsj/common/bm/queryGs' :match="{value:'id',label:'bmmc'}" v-model='form.gsid' ></RelSelect>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="设备编号" ref="dabh" prop="dabh">
<el-input :readonly="readonly" v-model="form.dabh" ></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="设备代码" ref="code" prop="code">
<el-input :readonly="readonly" v-model="form.code" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
</el-row>
<el-row :gutter="20">
<el-col :span="8">
<el-form-item label="设备分类" ref="flid" prop="gsid">
<!-- <el-input :readonly="readonly" v-model="form.name" ></el-input> -->
<RelSelect :readonly="readonly" filterable style="width: 100%;" src='/aqgl/sbgl/sbfl/query' :match="{value:'id',label:'name'}" v-model='form.flid' ></RelSelect>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="设备名称" ref="name" prop="name">
<el-input :readonly="readonly" v-model="form.name" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="制造厂家" ref="productor" prop="productor">
<el-input :readonly="readonly" v-model="form.productor" ></el-input>
<el-col :span="8">
<el-form-item label="使用地点" ref="sydd" prop="sydd">
<el-input :readonly="readonly" v-model="form.sydd" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
</el-row>
<el-row :gutter="20">
<el-col :span="8">
<el-form-item label="型号" ref="model" prop="model">
<el-input :readonly="readonly" v-model="form.model" ></el-input>
</el-form-item>
</el-col>
<!-- <el-col :span="12">
<el-col :span="8">
<el-form-item label="制造厂家" ref="productor" prop="productor">
<el-input :readonly="readonly" v-model="form.productor" ></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="登记证编号" ref="serialno" prop="serialno">
<el-input :readonly="readonly" v-model="form.serialno" ></el-input>
</el-form-item>
</el-col> -->
<el-col :span="12">
<el-form-item label="计量单位" ref="jldw" prop="jldw">
<el-input :readonly="readonly" v-model="form.jldw" ></el-input>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="8">
<el-form-item label="制造日期" ref="ccrq" prop="ccrq">
<el-date-picker value-format="timestamp" style="width: 100%;" :readonly="readonly" type="date"
v-model="form.ccrq" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="12">
<el-col :span="8">
<el-form-item label="启用日期" ref="qyrq" prop="qyrq">
<el-date-picker value-format="timestamp" style="width: 100%;" :readonly="readonly" type="date"
v-model="form.qyrq" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="使用地点" ref="sydd" prop="sydd">
<el-input :readonly="readonly" v-model="form.sydd" ></el-input>
<el-col :span="8">
<el-form-item label="检验日期" ref="scjyrq" prop="scjyrq">
<el-date-picker value-format="timestamp" style="width: 100%;" :readonly="readonly" type="date"
v-model="form.scjyrq" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="用途" ref="yt" prop="yt">
<el-input :readonly="readonly" v-model="form.yt" ></el-input>
</el-row>
<el-row :gutter="20">
<el-col :span="8">
<el-form-item label="下次检验日期" ref="xcjyrq" prop="xcjyrq">
<el-date-picker value-format="timestamp" style="width: 100%;" :readonly="readonly" type="date"
v-model="form.xcjyrq" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="数量" ref="sl" prop="sl">
<el-input :readonly="readonly" v-model="form.sl" ></el-input>
<el-col :span="8">
<el-form-item label="检验周期(天)" ref="jyzq" prop="jyzq">
<el-input type="number" :readonly="readonly" v-model="form.jyzq" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="是否入档" ref="doc" prop="doc">
<el-switch
v-model="form.doc"
active-color="#13ce66"
active-value="Y" inactive-value="N"
inactive-color="#ff4949">
</el-switch>
<el-col :span="8">
<el-form-item label="使用状态" ref="syzt" prop="syzt">
<el-input :readonly="readonly" v-model="form.syzt" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="24">
<el-form-item label="备注" ref="bz" prop="bz">
<el-input type="textarea" :readonly="readonly" v-model="form.bz" ></el-input>
<el-input :readonly="readonly" v-model="form.bz" ></el-input>
</el-form-item>
</el-col>
</el-row>
......@@ -118,9 +151,9 @@
//计量单位
jldw:'',
//启用日期
qyrq:new Date().getTime(),
qyrq:'',
//停用日期
tyrq:new Date().getTime(),
// tyrq:new Date().getTime(),
//停用标志
tybz:'',
//使用地点
......@@ -130,7 +163,7 @@
//数量
sl:'',
//制造日期
ccrq:new Date().getTime(),
ccrq:'',
//工作级别
gzjb:'',
//跨度
......@@ -146,7 +179,7 @@
//电机功率
djgl:'',
//安装日期
azrq:new Date().getTime(),
// azrq:new Date().getTime(),
//安装地点
azdd:'',
//安装单位
......@@ -158,13 +191,13 @@
//检验周期
jyzq:'',
//上次检验日期
scjyrq:new Date().getTime(),
scjyrq:'',
//下次检验日期
xcjyrq:new Date().getTime(),
xcjyrq:'',
//检验前自检结论
jyqzjjl:'',
//实际检验日期
sjjyrq:new Date().getTime(),
sjjyrq:'',
//特检机构检验结论
tjjgjyjl:'',
//检验整改情况
......@@ -258,15 +291,17 @@
//维护人
whr:'',
//维护时间
whsj:new Date().getTime(),
// whsj:new Date().getTime(),
//创建人编码
cjrid:'',
//创建人
cjr:'',
//创建时间
cjsj:new Date().getTime(),
// cjsj:new Date().getTime(),
//系统版本
doc:""
doc:"",
syzt:"",
gsid:""
},
/* form提交时的规则,具体规则参考官网*/
rules: {
......
......@@ -117,26 +117,27 @@
},
/* 表格标题对应参数*/
tableTitle: [
{label: "档案编号", prop: "dabh", fieldType: "ftString",width:100},
{label: "设备编号", prop: "code", fieldType: "ftString",width:140},
{label: "公司", prop: "gsName", fieldType: "ftString",width:96},
//flid,下拉, aqgl/sbgl/sbfl/query
{label: "设备分类", prop: "sbflName", fieldType: "ftString",width:96},
{label: "设备编号", prop: "dabh", fieldType: "ftString",width:100},
{label: "设备代码", prop: "code", fieldType: "ftString",width:140},
{label: "设备名称", prop: "name", fieldType: "ftString",width:160},
{label: "使用地点", prop: "sydd", fieldType: "ftString",width:300},
// {label: "系统分类", prop: "xtflName", fieldType: "ftString",width:48},
// {label: "设备分类", prop: "sbflName", fieldType: "ftString",width:96},
{label: "制造厂家", prop: "productor", fieldType: "ftString",width:300},
{label: "型号", prop: "model", fieldType: "ftString",width:300},
{label: "制造厂家", prop: "productor", fieldType: "ftString",width:300},
{label: "登记证编号", prop: "serialno", fieldType: "ftString",width:300},
{label: "计量单位", prop: "jldw", fieldType: "ftString",width:120},
{label: "制造日期", prop: "ccrq", fieldType: "ftDateTime"},
// {label: "计量单位", prop: "jldw", fieldType: "ftString",width:120},
{label: "启用日期", prop: "qyrq", fieldType: "ftDateTime"},
{label: "检验日期", prop: "scjyrq", fieldType: "ftDateTime"},
{label: "下次检验日期", prop: "xcjyrq", fieldType: "ftDateTime"},
{label: "检验周期", prop: "jyzq", fieldType: "ftString"},
/* {label: "停用日期", prop: "tyrq", fieldType: "ftDateTime"}, */
{label: "使用状态", prop: "tybzName", fieldType: "ftString",width:80},
{label: "使用地点", prop: "sydd", fieldType: "ftString",width:300},
{label: "用途", prop: "yt", fieldType: "ftString",width:300},
{label: "数量", prop: "sl", fieldType: "int"},
{label: "制造日期", prop: "ccrq", fieldType: "ftDateTime"},
{label: "备注", prop: "bz", fieldType: "ftString",width:300},
{label: "是否已入档", prop: "doc", fieldType: "ftString",width:160,show:false},
{label: "是否已入档", prop: "docName", fieldType: "ftString",width:160}
{label: "使用状态", prop: "syzt", fieldType: "ftString",width:80},
{label: "备注", prop: "bz", fieldType: "ftString",width:300}
],
/* 树的标题 */
treeTitle: '公司列表',
......
......@@ -23,7 +23,7 @@
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="所在班组" ref="bzid" prop="bzid">
<el-form-item label="所在部门" ref="bzid" prop="bzid">
<RelSelect linkage :linkParams="{pid:form.bmid}" :readonly="readonly" style="width: 100%;" src='jcsj/common/bm/queryBz' filterable clearable :match="{value:'id',label:'bmmc'}" v-model='form.bzid' ></RelSelect>
</el-form-item>
</el-col>
......
......@@ -103,8 +103,8 @@
tableTitle: [
{label: "工号", prop: "wzrcode", fieldType: "ftString",width:120},
{label: "姓名", prop: "wzr", fieldType: "ftString",width:160},
{label: "所在公司", prop: "bmName", fieldType: "ftString",width:160},
{label: "所在班组", prop: "bzName", fieldType: "ftString",width:160},
{label: "所在公司", prop: "gsName", fieldType: "ftString",width:160},
{label: "所在部门", prop: "bmName", fieldType: "ftString",width:160},
{label: "联系手机", prop: "phone", fieldType: "ftString",width:120},
{label: "违章日期", prop: "wzrq", fieldType: "ftDate"},
{label: "违章行为", prop: "wzxw", fieldType: "ftString",width:280},
......
......@@ -5,37 +5,23 @@
<el-row :gutter="20">
<el-col :span="12">
<!-- <el-input :readonly="readonly" v-model="form.userid" ></el-input> -->
<el-form-item label="姓名" ref="userid" prop="userid">
<el-form-item label="三违人员" ref="userid" prop="userid">
<personSelector :label="form.wzr||form.userid||'暂无'" @selected='wgrSelected' ></personSelector>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="联系手机" >
<el-input :readonly="true" v-model="form.phone" ></el-input>
<!--<el-form-item label="处罚标准" ref="swbzid" prop="swbzid">-->
<!--<RelSelect style="width: 100%;" :readonly="readonly" src='aqgl/swgl/swcfbz/query' :match="{value:'id',label:'swdjName' + 'wglxName'}" v-model='form.swbzid' ></RelSelect>-->
<!--</el-form-item>-->
<el-form-item label="处罚标准" ref="swbzid" prop="swbzid">
<el-select style="width: 100%;" v-model="form.swbzid" placeholder="">
<el-option v-for="(item,index) in cfbzList" :key="item.id" :label="item.wglxName + '______' + item.swdjName" :value="item.id"></el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="所在公司" ref="gsid" prop="gsid">
<RelSelect style="width: 100%;" :readonly="readonly" src='jcsj/common/bm/queryGs' :match="{value:'id',label:'bmmc'}" v-model='form.gsid' ></RelSelect>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="所在班组" ref="bzid" prop="bzid">
<RelSelect linkage :linkParams="{pid:form.gsid}" :readonly="readonly" style="width: 100%;" src='jcsj/common/bm/queryBz' filterable clearable :match="{value:'id',label:'bmmc'}" v-model='form.bzid' ></RelSelect>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<!-- <el-col :span="12">
<el-form-item label="所在部门" ref="bmid" prop="bmid">
<RelSelect hasValue :optionsData='optionsData' style="width: 100%;" :params="{}" src='/kzzx/bm/query' clearable :match="{value:'id',label:'bmmc'}" v-model='form.bmid' ></RelSelect>
</el-form-item>
</el-col>-->
<el-row>
<el-col :span="12">
<el-form-item label="违章日期" ref="wzrq" prop="wzrq">
<el-date-picker value-format="timestamp" style="width: 100%;" :readonly="readonly" type="date"
......@@ -43,17 +29,6 @@
</el-date-picker>
</el-form-item>
</el-col>
<!-- <el-col :span="12">
<el-form-item label="处罚金额" ref="cfje" prop="cfje">
<el-input type='number' :readonly="readonly" v-model="form.cfje" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="备注" ref="bz" prop="bz">
<el-input :readonly="readonly" v-model="form.bz" ></el-input>
</el-form-item>
</el-col> -->
</el-row>
<el-row :gutter="20">
<el-col :span="24">
......@@ -184,11 +159,14 @@
</template>
<script>
import {editMixin} from 'common'
import {doQueryCfbz} from '@/api/threeViolations/enterTV.js';
export default {
mixins: [editMixin],
/* 存放index页面传递的额外参数*/
mounted() {
doQueryCfbz({}).then(e => {
this.cfbzList = e.data.records || []
})
},
/* 组件名称*/
name: "enterTVEdit",
......@@ -200,7 +178,7 @@
/* 额外初始化,根据需求*/
systemType: [],
bmList: [],
cfbzList: [],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: {phone:'',
......@@ -213,7 +191,7 @@
//违规人ID
userid:'',
//违章日期
wzrq:new Date().getTime(),
wzrq: new Date().getTime(),
//违章行为
wzxw:'',
//备注
......@@ -223,13 +201,12 @@
//维护人
whr:'',
//维护时间
whsj:new Date().getTime(),
//创建人编码
cjrid:'',
//创建人
cjr:'',
//创建时间
cjsj:new Date().getTime(),
//系统版本
sysversion:'',
//状态
......@@ -257,7 +234,7 @@
//安全教育人
aqjyrid:'',
//安全教育时间
aqjysj:new Date().getTime(),
aqjysj:'',
//安全教育内容
aqcont:'',
//反思内容
......@@ -269,13 +246,13 @@
//被教育人编码
ldbjyrid:'',
//领导教育时间
ldjysj:new Date().getTime(),
ldjysj:'',
//领导教育内容
ldcont:'',
//家属教育人
jsjyr:'',
//家属教育时间
jsjysj:new Date().getTime(),
jsjysj:'',
//家属教育内容
jscont:'',
//纠正措施
......@@ -285,14 +262,21 @@
//纠正验证人编码
jzyzrid:'',
//纠正验证时间
jzyzsj:new Date().getTime(),
jzyzsj:'',
//处罚标志
cfbz:'',
//处罚金额
cfje:'',
swbzid:''
},
/* form提交时的规则,具体规则参考官网*/
rules: {
userid: [{required: true},
],
swbzid: [{required: true},
],
wzrq: [{required: true},
]
/* bmid: [{
required: true,
trigger: 'blur'
......
......@@ -43,7 +43,8 @@
doQuery,
doAdd,
doUpdate,
doDelete
doDelete,
doQueryCfbz
} from '@/api/threeViolations/enterTV.js';
/* edit页面*/
/* edit页面*/
......@@ -81,10 +82,12 @@
{label: "姓名", prop: "wzr", fieldType: "ftString",width:140},
//{label: "所在部门", prop: "bmName", fieldType: "ftString",width:160},
{label: "所在公司", prop: "gsName", fieldType: "ftString",width:140},
{label: "所在班组", prop: "bzName", fieldType: "ftString",width:140},
{label: "所在部门", prop: "bmName", fieldType: "ftString",width:140},
{label: "联系手机", prop: "phone", fieldType: "ftString",width:120},
{label: "违章日期", prop: "wzrq", fieldType: "ftDate"},
{label: "违章行为", prop: "wzxw", fieldType: "ftString",width:280},
{label: "三违等级", prop: "swdjName", fieldType: "ftString",width:280},
{label: "三违类型", prop: "wglxName", fieldType: "ftString",width:280},
// {label: "备注", prop: "bz", fieldType: "ftString",width:300},
// {label: "维护人", prop: "whr", fieldType: "ftString"},
// {label: "维护时间", prop: "whsj", fieldType: "ftDateTime"},
......
......@@ -23,7 +23,7 @@
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="所在班组" ref="bzid" prop="bzid">
<el-form-item label="所在部门" ref="bzid" prop="bzid">
<RelSelect linkage :linkParams="{pid:form.bmid}" :readonly="readonly" style="width: 100%;" src='jcsj/common/bm/queryBz' filterable clearable :match="{value:'id',label:'bmmc'}" v-model='form.bzid' ></RelSelect>
</el-form-item>
</el-col>
......
......@@ -108,8 +108,8 @@
tableTitle: [
{label: "工号", prop: "wzrcode", fieldType: "ftString",width:120},
{label: "姓名", prop: "wzr", fieldType: "ftString",width:160},
{label: "所在公司", prop: "bmName", fieldType: "ftString",width:160},
{label: "所在班组", prop: "bzName", fieldType: "ftString",width:160},
{label: "所在公司", prop: "gsName", fieldType: "ftString",width:160},
{label: "所在部门", prop: "bmName", fieldType: "ftString",width:160},
{label: "联系手机", prop: "phone", fieldType: "ftString",width:120},
{label: "违章日期", prop: "wzrq", fieldType: "ftDate"},
{label: "处罚金额", prop: "cfje", fieldType: "money"},
......
......@@ -23,7 +23,7 @@
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="所在班组" ref="bzid" prop="bzid">
<el-form-item label="所在部门" ref="bzid" prop="bzid">
<RelSelect linkage :linkParams="{pid:form.bmid}" :readonly="readonly" style="width: 100%;" src='jcsj/common/bm/queryBz' filterable clearable :match="{value:'id',label:'bmmc'}" v-model='form.bzid' ></RelSelect>
</el-form-item>
</el-col>
......
......@@ -109,8 +109,8 @@
tableTitle: [
{label: "工号", prop: "wzrcode", fieldType: "ftString",width:120},
{label: "姓名", prop: "wzr", fieldType: "ftString",width:160},
{label: "所在公司", prop: "bmName", fieldType: "ftString",width:160},
{label: "所在班组", prop: "bzName", fieldType: "ftString",width:160},
{label: "所在公司", prop: "gsName", fieldType: "ftString",width:160},
{label: "所在部门", prop: "bmName", fieldType: "ftString",width:160},
{label: "联系手机", prop: "phone", fieldType: "ftString",width:120},
{label: "违章日期", prop: "wzrq", fieldType: "ftDate"},
{label: "违章行为", prop: "wzxw", fieldType: "ftString",width:280},
......
......@@ -23,7 +23,7 @@
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="所在班组" ref="bzid" prop="bzid">
<el-form-item label="所在部门" ref="bzid" prop="bzid">
<RelSelect linkage :linkParams="{pid:form.bmid}" :readonly="readonly" style="width: 100%;" src='jcsj/common/bm/queryBz' filterable clearable :match="{value:'id',label:'bmmc'}" v-model='form.bzid' ></RelSelect>
</el-form-item>
</el-col>
......
......@@ -121,8 +121,8 @@
tableTitle: [
{label: "工号", prop: "wzrcode", fieldType: "ftString",width:120},
{label: "姓名", prop: "wzr", fieldType: "ftString",width:160},
{label: "所在公司", prop: "bmName", fieldType: "ftString",width:160},
{label: "所在班组", prop: "bzName", fieldType: "ftString",width:160},
{label: "所在公司", prop: "gsName", fieldType: "ftString",width:160},
{label: "所在部门", prop: "bmName", fieldType: "ftString",width:160},
{label: "联系手机", prop: "phone", fieldType: "ftString",width:120},
{label: "违章日期", prop: "wzrq", fieldType: "ftDate"},
{label: "违章行为", prop: "wzxw", fieldType: "ftString",width:280},
......
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