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

调整

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