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

调整

parent 27221567
<template>
<RelDialog :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'>
<!-- 填写表单内容,slot=form必写-->
<el-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules">
<!--<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="序号" ref="xh" prop="xh" >
<el-input :readonly="readonly" v-model="form.xh" ></el-input>
</el-form-item>
</el-col>
</el-row>-->
<RelDialog :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'>
<!-- 填写表单内容,slot=form必写-->
<el-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules">
<!--<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="序号" ref="xh" prop="xh" >
<el-input :readonly="readonly" v-model="form.xh" ></el-input>
</el-form-item>
</el-col>
</el-row>-->
<el-row :gutter="20">
<!-- 公司,班组-->
<el-col :span="24">
<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="bmid" prop="bmid">
<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.bmid' ></RelSelect>
</el-form-item>
</el-col> -->
<el-col :span="12">
<el-form-item label="三违等级" ref="swdj" prop="swdj">
<RelSelect style="width: 100%;" src='/aqgl/swgl/swcfbz/init/swdj' clearable :match="{value:'id',label:'name'}" v-model='form.swdj' ></RelSelect>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="三违类型" ref="wglx" prop="wglx">
<RelSelect style="width: 100%;" src='/aqgl/swgl/swcfbz/init/wglx' clearable :match="{value:'id',label:'name'}" v-model='form.wglx' ></RelSelect>
</el-form-item>
</el-col>
<el-row :gutter="20">
<!-- 公司,班组-->
<el-col :span="24">
<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="bmid" prop="bmid">
<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.bmid' ></RelSelect>
</el-form-item>
</el-col> -->
<el-col :span="12">
<el-form-item label="三违等级" ref="swdj" prop="swdj">
<RelSelect style="width: 100%;" src='/aqgl/swgl/swcfbz/init/swdj' clearable
:match="{value:'id',label:'name'}" v-model='form.swdj'></RelSelect>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="三违类型" ref="wglx" prop="wglx">
<RelSelect style="width: 100%;" src='/aqgl/swgl/swcfbz/init/wglx' clearable
:match="{value:'id',label:'name'}" v-model='form.wglx'></RelSelect>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="罚款金额(元)" ref="fkje" prop="fkje">
<el-input type='number' :readonly="readonly" v-model="form.fkje" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="考核分数" ref="khfs" prop="khfs">
<el-input type='number' :readonly="readonly" v-model="form.khfs" ></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 :readonly="readonly" v-model="form.bz" ></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</RelDialog>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="罚款金额(元)" ref="fkje" prop="fkje">
<el-input type='number' :readonly="readonly" v-model="form.fkje"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="考核分数" ref="khfs" prop="khfs">
<el-input type='number' :readonly="readonly" v-model="form.khfs"></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 :readonly="readonly" v-model="form.bz"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</RelDialog>
</template>
<script>
import {editMixin} from 'common'
export default {
mixins: [editMixin],
/* 存放index页面传递的额外参数*/
mounted() {
import {editMixin} from 'common'
},
/* 组件名称*/
name: "maintainTVEdit",
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
export default {
mixins: [editMixin],
/* 存放index页面传递的额外参数*/
mounted() {
data() {
return {
},
/* 组件名称*/
name: "maintainTVEdit",
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
/* 额外初始化,根据需求*/
systemType: [],
data() {
return {
bmList: [],
/* 额外初始化,根据需求*/
systemType: [],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: {
gsid:'',
//ID
id:'',
//序号
xh:'',
//三违内容
content:'',
//类型
wglx:'',
//考核分数
khfs:'',
//罚款金额
fkje:'',
//罚款金额下限
fkjexx:'',
//罚款金额上限
fkjesx:'',
//备注
bz:''
},
/* form提交时的规则,具体规则参考官网*/
rules: {
xh: [{
required: true,
trigger: 'blur'
}, ],
swdj: [{
required: true,
trigger: 'blur'
}, ],
wglx: [{
required: true,
trigger: 'blur'
}, ]
}
}
},
methods: {
bmList: [],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: {
gsid: '',
//ID
id: '',
//序号
xh: '',
//三违内容
content: '',
//类型
wglx: '',
//考核分数
khfs: '',
//罚款金额
fkje: '',
//罚款金额下限
fkjexx: '',
//罚款金额上限
fkjesx: '',
//备注
bz: ''
},
/* form提交时的规则,具体规则参考官网*/
rules: {
xh: [{
required: true,
trigger: 'blur'
},],
swdj: [{
required: true,
trigger: 'blur'
},],
wglx: [{
required: true,
trigger: 'blur'
},],
gsid: [{
required: true,
trigger: 'blur'
},],
}
}
},
methods: {
}
}
</script>
<style scoped lang="scss">
......
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