Commit ab43c3f5 authored by 李苏's avatar 李苏 💬

设备部分 queryParams

parent 08860671
<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 style="max-height: 75vh;overflow-y: auto;overflow-x: hidden;" slot="form" ref="form" :model="form" label-width="80px" :rules="rules"> <el-form slot="form" ref="form" :model="form" label-width="80px" :rules="rules">
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="序号" ref="roleid" prop="roleid"> <el-form-item label="系统名称" ref="xtmc" prop="xtmc">
<el-input :readonly="readonly" v-model="form.roleid"></el-input> <el-input :readonly="readonly" v-model="form.xtmc" ></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="roleid" prop="roleid"> <el-form-item label="名称" ref="name" prop="name">
<el-input :readonly="readonly" v-model="form.roleid"></el-input> <el-input :readonly="readonly" v-model="form.name" ></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="roleid" prop="roleid"> <el-form-item label="型号" ref="model" prop="model">
<el-input :readonly="readonly" v-model="form.roleid"></el-input> <el-input :readonly="readonly" v-model="form.model" ></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="roleid" prop="roleid"> <el-form-item label="计量单位" ref="jldw" prop="jldw">
<el-input :readonly="readonly" v-model="form.roleid"></el-input> <el-input :readonly="readonly" v-model="form.jldw" ></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="roleid" prop="roleid"> <el-form-item label="数量" ref="sl" prop="sl">
<el-input :readonly="readonly" v-model="form.roleid"></el-input> <el-input :readonly="readonly" v-model="form.sl" ></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="roleid" prop="roleid"> <el-form-item label="启用日期" ref="qyrq" prop="qyrq">
<el-input :readonly="readonly" v-model="form.roleid"></el-input> <el-date-picker style="width: 100%;" :readonly="readonly" type="date"
</el-form-item> v-model="form.qyrq" placeholder="选择日期">
</el-col> </el-date-picker>
<el-col :span="12"> </el-form-item>
<el-form-item label="启用日期" ref="roleid" prop="roleid"> </el-col>
<el-input :readonly="readonly" v-model="form.roleid"></el-input> <el-col :span="24">
</el-form-item> <el-form-item label="参数及量程" ref="cslc" prop="cslc">
</el-col> <el-input type='textarea' :readonly="readonly" v-model="form.cslc" ></el-input>
<el-col :span="12"> </el-form-item>
<el-form-item label="使用状态" ref="roleid" prop="roleid"> </el-col>
<el-input :readonly="readonly" v-model="form.roleid"></el-input> <el-col :span="12">
</el-form-item> <el-form-item label="使用地点" ref="sydd" prop="sydd">
</el-col> <el-input :readonly="readonly" v-model="form.sydd" ></el-input>
<el-col :span="24"> </el-form-item>
<el-form-item label="参数量程" ref="roleid" prop="roleid"> </el-col>
<el-input type="textarea" :readonly="readonly" v-model="form.roleid"></el-input> <el-col :span="12">
</el-form-item> <el-form-item label="制造商" ref="productor" prop="productor">
</el-col> <el-input :readonly="readonly" v-model="form.productor" ></el-input>
<el-col :span="24"> </el-form-item>
<el-form-item label="检测因子" ref="roleid" prop="roleid"> </el-col>
<el-input type="textarea" :readonly="readonly" v-model="form.roleid"></el-input> <el-col :span="24">
</el-form-item> <el-form-item label="备注" ref="bz" prop="bz">
</el-col> <el-input type="textarea" :readonly="readonly" v-model="form.bz" ></el-input>
<el-col :span="24"> </el-form-item>
<el-form-item label="使用地点" ref="roleid" prop="roleid"> </el-col>
<el-input type="textarea" :readonly="readonly" v-model="form.roleid"></el-input> <!-- <el-col :span="12">
</el-form-item> <el-form-item label="设备编码" ref="code" prop="code">
</el-col> <el-input :readonly="readonly" v-model="form.code" ></el-input>
<el-col :span="24"> </el-form-item>
<el-form-item label="生产厂家" ref="roleid" prop="roleid"> </el-col> -->
<el-input type="textarea" :readonly="readonly" v-model="form.roleid"></el-input> <!-- <el-col :span="12">
</el-form-item> <el-form-item label="档案编号" ref="dabh" prop="dabh">
</el-col> <el-input :readonly="readonly" v-model="form.dabh" ></el-input>
<el-col :span="12"> </el-form-item>
<el-form-item label="备注" ref="roleid" prop="roleid"> </el-col> -->
<el-input :readonly="readonly" v-model="form.roleid"></el-input> <!-- <el-col :span="12">
</el-form-item> <el-form-item label="系统分类" ref="xtfl" prop="xtfl">
</el-col> <el-input :readonly="readonly" v-model="form.xtfl" ></el-input>
</el-row> </el-form-item>
</el-form> </el-col>
<!-- 按钮重写, --> <el-col :span="12">
<!-- <div slot="reFooter"> <el-form-item label="设备分类" ref="flid" prop="flid">
<span slot="footer"> <el-input :readonly="readonly" v-model="form.flid" ></el-input>
重写按钮写在这里,根据需要重写 slot(reFooter,foorer) 节点样式 重写方法需要在此页重新定义 </el-form-item>
</span> </el-col> -->
</div> --> <!--
</RelDialog>
-->
<!-- <el-col :span="12">
<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="tyrq" prop="tyrq">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.tyrq" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col> -->
<!-- <el-col :span="12">
<el-form-item label="停用标志" ref="tybz" prop="tybz">
<el-input :readonly="readonly" v-model="form.tybz" ></el-input>
</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-form-item>
</el-col>
-->
<!-- <el-col :span="12">
<el-form-item label="出厂日期" ref="ccrq" prop="ccrq">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.ccrq" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col> -->
</el-row>
<!-- <el-row :gutter="20">
<el-col :span="12">
<el-form-item label="系统分类" ref="xtfl" prop="xtfl">
<el-input :readonly="readonly" v-model="form.xtfl" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="工作级别" ref="gzjb" prop="gzjb">
<el-input :readonly="readonly" v-model="form.gzjb" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="跨度" ref="kd" prop="kd">
<el-input :readonly="readonly" v-model="form.kd" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="提升速度" ref="tssd" prop="tssd">
<el-input :readonly="readonly" v-model="form.tssd" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="运行速度" ref="yxsd" prop="yxsd">
<el-input :readonly="readonly" v-model="form.yxsd" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="吨位" ref="dw" prop="dw">
<el-input :readonly="readonly" v-model="form.dw" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="起升高度" ref="qsgd" prop="qsgd">
<el-input :readonly="readonly" v-model="form.qsgd" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="电机功率" ref="djgl" prop="djgl">
<el-input :readonly="readonly" v-model="form.djgl" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="安装日期" ref="azrq" prop="azrq">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.azrq" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="安装地点" ref="azdd" prop="azdd">
<el-input :readonly="readonly" v-model="form.azdd" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="安装单位" ref="azdw" prop="azdw">
<el-input :readonly="readonly" v-model="form.azdw" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="注册编号" ref="zcbh" prop="zcbh">
<el-input :readonly="readonly" v-model="form.zcbh" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="检验报告编号" ref="jybgbh" prop="jybgbh">
<el-input :readonly="readonly" v-model="form.jybgbh" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="检验周期" ref="jyzq" prop="jyzq">
<el-input :readonly="readonly" v-model="form.jyzq" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="上次检验日期" ref="scjyrq" prop="scjyrq">
<el-date-picker 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="xcjyrq" prop="xcjyrq">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.xcjyrq" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="检验前自检结论" ref="jyqzjjl" prop="jyqzjjl">
<el-input :readonly="readonly" v-model="form.jyqzjjl" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="实际检验日期" ref="sjjyrq" prop="sjjyrq">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.sjjyrq" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="特检机构检验结论" ref="tjjgjyjl" prop="tjjgjyjl">
<el-input :readonly="readonly" v-model="form.tjjgjyjl" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="检验整改情况" ref="jyzgqk" prop="jyzgqk">
<el-input :readonly="readonly" v-model="form.jyzgqk" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="设备升级" ref="sbsj" prop="sbsj">
<el-input :readonly="readonly" v-model="form.sbsj" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="设备资料" ref="sbzl" prop="sbzl">
<el-input :readonly="readonly" v-model="form.sbzl" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="设备资料存放地点" ref="sbzldd" prop="sbzldd">
<el-input :readonly="readonly" v-model="form.sbzldd" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="未检原因" ref="wjyy" prop="wjyy">
<el-input :readonly="readonly" v-model="form.wjyy" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="监测因子" ref="jcyz" prop="jcyz">
<el-input :readonly="readonly" v-model="form.jcyz" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="类型" ref="lx" prop="lx">
<el-input :readonly="readonly" v-model="form.lx" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="主体材质" ref="ztcz" prop="ztcz">
<el-input :readonly="readonly" v-model="form.ztcz" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="容器容积" ref="rqrj" prop="rqrj">
<el-input :readonly="readonly" v-model="form.rqrj" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="容器净重" ref="rqjz" prop="rqjz">
<el-input :readonly="readonly" v-model="form.rqjz" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="设计压力" ref="sjyl" prop="sjyl">
<el-input :readonly="readonly" v-model="form.sjyl" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="设计温度" ref="sjwd" prop="sjwd">
<el-input :readonly="readonly" v-model="form.sjwd" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="最高压力" ref="zgyl" prop="zgyl">
<el-input :readonly="readonly" v-model="form.zgyl" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="耐压试验压力" ref="nysyyl" prop="nysyyl">
<el-input :readonly="readonly" v-model="form.nysyyl" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="管径与壁厚" ref="gjbh" prop="gjbh">
<el-input :readonly="readonly" v-model="form.gjbh" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="管道级别" ref="gdjb" prop="gdjb">
<el-input :readonly="readonly" v-model="form.gdjb" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="管道起点" ref="gdqd" prop="gdqd">
<el-input :readonly="readonly" v-model="form.gdqd" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="管道终点" ref="gdzd" prop="gdzd">
<el-input :readonly="readonly" v-model="form.gdzd" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="压力" ref="yl" prop="yl">
<el-input :readonly="readonly" v-model="form.yl" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="铺设方式" ref="psfs" prop="psfs">
<el-input :readonly="readonly" v-model="form.psfs" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="工作温度" ref="gzwd" prop="gzwd">
<el-input :readonly="readonly" v-model="form.gzwd" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="工作压力" ref="gzyl" prop="gzyl">
<el-input :readonly="readonly" v-model="form.gzyl" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="输送介质" ref="ssjz" prop="ssjz">
<el-input :readonly="readonly" v-model="form.ssjz" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="焊口数量" ref="hksl" prop="hksl">
<el-input :readonly="readonly" v-model="form.hksl" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="保温" ref="bw" prop="bw">
<el-input :readonly="readonly" v-model="form.bw" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="防腐方式" ref="fffs" prop="fffs">
<el-input :readonly="readonly" v-model="form.fffs" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="标识" ref="bs" prop="bs">
<el-input :readonly="readonly" v-model="form.bs" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="公称通径" ref="gctj" prop="gctj">
<el-input :readonly="readonly" v-model="form.gctj" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="产品编号" ref="cpbh" prop="cpbh">
<el-input :readonly="readonly" v-model="form.cpbh" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="整定压力" ref="zdyl" prop="zdyl">
<el-input :readonly="readonly" v-model="form.zdyl" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="层站" ref="dtcz" prop="dtcz">
<el-input :readonly="readonly" v-model="form.dtcz" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="载重" ref="dtzz" prop="dtzz">
<el-input :readonly="readonly" v-model="form.dtzz" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="提升高度" ref="dttsgd" prop="dttsgd">
<el-input :readonly="readonly" v-model="form.dttsgd" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="运行速度" ref="dtyxsd" prop="dtyxsd">
<el-input :readonly="readonly" v-model="form.dtyxsd" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="车牌号" ref="cph" prop="cph">
<el-input :readonly="readonly" v-model="form.cph" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="发动机型号" ref="fdjxh" prop="fdjxh">
<el-input :readonly="readonly" v-model="form.fdjxh" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="发动机编号" ref="fdjbh" prop="fdjbh">
<el-input :readonly="readonly" v-model="form.fdjbh" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="底盘车架号" ref="dpcjh" prop="dpcjh">
<el-input :readonly="readonly" v-model="form.dpcjh" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="拍照选项" ref="pzxx" prop="pzxx">
<el-input :readonly="readonly" v-model="form.pzxx" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="附件数" ref="attachcount" prop="attachcount">
<el-input :readonly="readonly" v-model="form.attachcount" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="系统版本" ref="sysversion" prop="sysversion">
<el-input :readonly="readonly" v-model="form.sysversion" ></el-input>
</el-form-item>
</el-col>
</el-row> -->
</el-form>
</RelDialog>
</template> </template>
<script> <script>
import {editMixin} from 'common' import {editMixin} from 'common'
export default { export default {
mixins: [editMixin], mixins: [editMixin],
/* 存放index页面传递的额外参数*/ /* 存放index页面传递的额外参数*/
mounted() { mounted() {
},
/* 组件名称*/
name: 'roleManagementEdit',
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data() { },
return { /* 组件名称*/
name: "aqglSbxxEdit",
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data() {
return {
/* 额外初始化,根据需求*/
systemType: [],
/* 额外初始化,根据需求*/ bmList: [],
systemType: [],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/ /* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: { form: {
roleid: '', //ID
rolename: '', id:'',
bz: "", //设备编码
code:'',
//档案编号
dabh:'',
//系统分类
xtfl:'',
//设备分类
flid:'',
//名称
name:'',
//制造商
productor:'',
//型号
model:'',
//出厂编号
serialno:'',
//计量单位
jldw:'',
//启用日期
qyrq:new Date().getTime(),
//停用日期
tyrq:new Date().getTime(),
//停用标志
tybz:'',
//使用地点
sydd:'',
//用途
yt:'',
//数量
sl:'',
//出厂日期
ccrq:new Date().getTime(),
//系统分类
xtfl:'',
//工作级别
gzjb:'',
//跨度
kd:'',
//提升速度
tssd:'',
//运行速度
yxsd:'',
//吨位
dw:'',
//起升高度
qsgd:'',
//电机功率
djgl:'',
//安装日期
azrq:new Date().getTime(),
//安装地点
azdd:'',
//安装单位
azdw:'',
//注册编号
zcbh:'',
//检验报告编号
jybgbh:'',
//检验周期
jyzq:'',
//上次检验日期
scjyrq:new Date().getTime(),
//下次检验日期
xcjyrq:new Date().getTime(),
//检验前自检结论
jyqzjjl:'',
//实际检验日期
sjjyrq:new Date().getTime(),
//特检机构检验结论
tjjgjyjl:'',
//检验整改情况
jyzgqk:'',
//设备升级
sbsj:'',
//设备资料
sbzl:'',
//设备资料存放地点
sbzldd:'',
//未检原因
wjyy:'',
//系统名称
xtmc:'',
//参数及量程
cslc:'',
//监测因子
jcyz:'',
//类型
lx:'',
//主体材质
ztcz:'',
//容器容积
rqrj:'',
//容器净重
rqjz:'',
//设计压力
sjyl:'',
//设计温度
sjwd:'',
//最高压力
zgyl:'',
//耐压试验压力
nysyyl:'',
//管径与壁厚
gjbh:'',
//管道级别
gdjb:'',
//管道起点
gdqd:'',
//管道终点
gdzd:'',
//压力
yl:'',
//铺设方式
psfs:'',
//工作温度
gzwd:'',
//工作压力
gzyl:'',
//输送介质
ssjz:'',
//焊口数量
hksl:'',
//保温
bw:'',
//防腐方式
fffs:'',
//标识
bs:'',
//公称通径
gctj:'',
//产品编号
cpbh:'',
//整定压力
zdyl:'',
//层站
dtcz:'',
//载重
dtzz:'',
//提升高度
dttsgd:'',
//运行速度
dtyxsd:'',
//车牌号
cph:'',
//发动机型号
fdjxh:'',
//发动机编号
fdjbh:'',
//底盘车架号
dpcjh:'',
//拍照选项
pzxx:'',
//附件数
attachcount:'',
//备注
bz:'',
//维护人编码
whrid:'',
//维护人
whr:'',
//维护时间
whsj:new Date().getTime(),
//创建人编码
cjrid:'',
//创建人
cjr:'',
//创建时间
cjsj:new Date().getTime(),
//系统版本
sysversion:'',
},
/* form提交时的规则,具体规则参考官网*/
rules: {
}
}
}, },
/* form提交时的规则,具体规则参考官网*/ methods: {
rules: {
roleid: [{
required: true,
trigger: 'blur'
}, ],
rolename: [{
required: true,
trigger: 'blur'
}, ]
}
}
},
methods: {
}
} }
}
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
......
...@@ -45,150 +45,166 @@ ...@@ -45,150 +45,166 @@
<!-- 权限--> <!-- 权限-->
</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 {
/* 引入需要的接口*/ doQuery,
import { doAdd,
QueryKzzxRole, doUpdate,
QueryApptype, doDelete
AddKzzxRole, } from '@/api/equipment/sbxx.js';
DeleteKzzxRole, /* edit页面*/
UpdateKzzxRole, import Edit from './edit'
QtKzzxRole import {
} from "common/src/api/system/dmgSystem.js"; tableMixin
/* edit页面*/ } from 'common'
import Edit from './edit' export default {
import { mixins: [tableMixin],
tableMixin name: 'appVersion',
} from 'common'
export default { /* 初始额外赋值*/
mixins: [tableMixin], async mounted() {
name: 'appVersion', this.$refs['TablePager'].pageQuery()
},
/* 初始额外赋值*/ data() {
async mounted() { return {
this.$refs['TablePager'].pageQuery()
}, /*需要的额外参数 */
data() { showDialog: false,
return { DialogName: '',
type: '',
/*需要的额外参数 */ DialogTitle: '',
showDialog: false, /* 基础url*/
DialogName: '', baseUrl: '/aqgl/sbxx',
type: '', /* 查询参数*/
DialogTitle: '', queryParams: {
/* 基础url*/ ksrq: '',
baseUrl: 'kzzx/role', jsrq: ''
/* 查询参数*/
queryParams: {
ksrq: '',
jsrq: ''
},
/* 表格标题对应参数*/
tableTitle: [
{
prop: 'whsj',
label: '系统名称',
...this.$common('ftDateTime')
},
{
prop: 'whsj',
label: '仪器名称',
...this.$common('ftDateTime')
},
{
prop: 'whr',
label: '型号',
width: '100'
}, },
{ /* 表格标题对应参数*/
prop: 'whr', tableTitle: [
label: '计量单位', // {label: "设备编码", prop: "code", fieldType: "ftString",width:300},
width: '100' // {label: "档案编号", prop: "dabh", fieldType: "ftString",width:300},
}, // {label: "系统分类", prop: "xtflName", fieldType: "ftString",width:48},
{ // {label: "设备分类", prop: "sbflName", fieldType: "ftString",width:96},
prop: 'whr', {label: "名称", prop: "name", fieldType: "ftString",width:300},
label: '数量', {label: "制造商", prop: "productor", fieldType: "ftString",width:300},
width: '100' {label: "型号", prop: "model", fieldType: "ftString",width:300},
}, // {label: "出厂编号", prop: "serialno", fieldType: "ftString",width:300},
{ {label: "计量单位", prop: "jldw", fieldType: "ftString",width:120},
prop: 'whr', {label: "启用日期", prop: "qyrq", fieldType: "ftDateTime"},
label: '启用日期', /* {label: "停用日期", prop: "tyrq", fieldType: "ftDateTime"}, */
width: '100' {label: "使用状态", prop: "tybzName", fieldType: "ftString",width:80},
}, {label: "使用地点", prop: "sydd", fieldType: "ftString",width:300},
{ // {label: "用途", prop: "yt", fieldType: "ftString",width:300},
prop: 'whr', {label: "数量", prop: "sl", fieldType: "int"},
label: '使用状态', // {label: "出厂日期", prop: "ccrq", fieldType: "ftDateTime"},
width: '100' // {label: "系统分类", prop: "xtfl", fieldType: "ftString",width:48},
}, // {label: "工作级别", prop: "gzjb", fieldType: "ftString",width:180},
{ // {label: "跨度", prop: "kd", fieldType: "ftString",width:180},
prop: 'whr', // {label: "提升速度", prop: "tssd", fieldType: "ftString",width:180},
label: '使用地点', // {label: "运行速度", prop: "yxsd", fieldType: "ftString",width:180},
width: '100' // {label: "吨位", prop: "dw", fieldType: "float"},
}, // {label: "起升高度", prop: "qsgd", fieldType: "ftString",width:180},
{ // {label: "电机功率", prop: "djgl", fieldType: "ftString",width:180},
prop: 'whr', // {label: "安装日期", prop: "azrq", fieldType: "ftDateTime"},
label: '生产厂家', // {label: "安装地点", prop: "azdd", fieldType: "ftString",width:300},
width: '100' // {label: "安装单位", prop: "azdw", fieldType: "ftString",width:300},
} // {label: "注册编号", prop: "zcbh", fieldType: "ftString",width:300},
] // {label: "检验报告编号", prop: "jybgbh", fieldType: "ftString",width:300},
} // {label: "检验周期", prop: "jyzq", fieldType: "ftString",width:300},
}, // {label: "上次检验日期", prop: "scjyrq", fieldType: "ftDateTime"},
methods: { // {label: "下次检验日期", prop: "xcjyrq", fieldType: "ftDateTime"},
// {label: "检验前自检结论", prop: "jyqzjjl", fieldType: "ftString",width:300},
// {label: "实际检验日期", prop: "sjjyrq", fieldType: "ftDateTime"},
// {label: "特检机构检验结论", prop: "tjjgjyjl", fieldType: "ftString",width:300},
// {label: "检验整改情况", prop: "jyzgqk", fieldType: "ftString",width:300},
// {label: "设备升级", prop: "sbsj", fieldType: "ftString",width:300},
// {label: "设备资料", prop: "sbzl", fieldType: "ftString",width:300},
// {label: "设备资料存放地点", prop: "sbzldd", fieldType: "ftString",width:300},
// {label: "未检原因", prop: "wjyy", fieldType: "ftString",width:300},
{label: "系统名称", prop: "xtmc", fieldType: "ftString",width:300},
// {label: "参数及量程", prop: "cslc", fieldType: "ftString",width:300},
// {label: "监测因子", prop: "jcyz", fieldType: "ftString",width:300},
// {label: "类型", prop: "lx", fieldType: "ftString",width:120},
// {label: "主体材质", prop: "ztcz", fieldType: "ftString",width:300},
// {label: "容器容积", prop: "rqrj", fieldType: "ftString",width:120},
// {label: "容器净重", prop: "rqjz", fieldType: "ftString",width:120},
// {label: "设计压力", prop: "sjyl", fieldType: "ftString",width:120},
// {label: "设计温度", prop: "sjwd", fieldType: "ftString",width:120},
// {label: "最高压力", prop: "zgyl", fieldType: "ftString",width:120},
// {label: "耐压试验压力", prop: "nysyyl", fieldType: "ftString",width:120},
// {label: "管径与壁厚", prop: "gjbh", fieldType: "ftString",width:120},
// {label: "管道级别", prop: "gdjb", fieldType: "ftString",width:120},
// {label: "管道起点", prop: "gdqd", fieldType: "ftString",width:300},
// {label: "管道终点", prop: "gdzd", fieldType: "ftString",width:300},
// {label: "压力", prop: "yl", fieldType: "ftString",width:120},
// {label: "铺设方式", prop: "psfs", fieldType: "ftString",width:300},
// {label: "工作温度", prop: "gzwd", fieldType: "ftString",width:60},
// {label: "工作压力", prop: "gzyl", fieldType: "ftString",width:60},
// {label: "输送介质", prop: "ssjz", fieldType: "ftString",width:120},
// {label: "焊口数量", prop: "hksl", fieldType: "int"},
// {label: "保温", prop: "bw", fieldType: "ftString",width:120},
// {label: "防腐方式", prop: "fffs", fieldType: "ftString",width:300},
// {label: "标识", prop: "bs", fieldType: "ftString",width:300},
// {label: "公称通径", prop: "gctj", fieldType: "ftString",width:120},
// {label: "产品编号", prop: "cpbh", fieldType: "ftString",width:300},
// {label: "整定压力", prop: "zdyl", fieldType: "ftString",width:120},
// {label: "层站", prop: "dtcz", fieldType: "ftString",width:120},
// {label: "载重", prop: "dtzz", fieldType: "ftString",width:120},
// {label: "提升高度", prop: "dttsgd", fieldType: "ftString",width:120},
// {label: "运行速度", prop: "dtyxsd", fieldType: "ftString",width:120},
// {label: "车牌号", prop: "cph", fieldType: "ftString",width:120},
// {label: "发动机型号", prop: "fdjxh", fieldType: "ftString",width:240},
// {label: "发动机编号", prop: "fdjbh", fieldType: "ftString",width:240},
// {label: "底盘车架号", prop: "dpcjh", fieldType: "ftString",width:240},
// {label: "拍照选项", prop: "pzxx", fieldType: "ftString",width:60},
// {label: "附件数", prop: "attachcount", fieldType: "int"},
// {label: "备注", prop: "bz", fieldType: "ftString",width:300},
// {label: "维护人", prop: "whr", fieldType: "ftString"},
// {label: "维护时间", prop: "whsj", fieldType: "ftDateTime"},
// {label: "创建人", prop: "cjr", fieldType: "ftString"},
// {label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"},
// {label: "是否已入档", prop: "docName", fieldType: "ftString",width:300}
]
}
},
methods: {
/* 基础查询*/ /* 基础查询*/
query: QueryKzzxRole, query: doQuery,
/* 基础增*/ /* 基础增*/
apiAdd: AddKzzxRole, apiAdd: doAdd,
/* 基础更新*/ /* 基础更新*/
apiUpdate: UpdateKzzxRole, apiUpdate: doUpdate,
/* 删除操作*/ /* 删除操作*/
apiDelete: DeleteKzzxRole, apiDelete: doDelete,
/* 初始化赋值操作*/ /* 初始化赋值操作*/
init() { init() {
}
}, },
/* 启用停用*/ components: {
setEnable(id) { Edit,
this.$confirm('是否启用/停用该角色, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
let params = {
id: id
}
QtKzzxRole(params).then(res => {
if (res.success) {
this.$success('操作成功')
this.app.$refs['TablePager'].reLoad()
} else {
this.$error(res.message || '操作失败')
}
})
})
} }
},
components: {
Edit,
} }
</script>
} <style scoped>
</script>
</style>
<style scoped>
\ No newline at end of file
</style>
<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 style="max-height: 75vh;overflow-y: auto;overflow-x: hidden;" slot="form" ref="form" :model="form" label-width="110px" :rules="rules"> <el-form slot="form" ref="form" :model="form" label-width="110px" :rules="rules">
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="编号" ref="roleid" prop="roleid"> <el-form-item label="设备编码" ref="code" prop="code">
<el-input :readonly="readonly" v-model="form.roleid"></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="12"> <el-col :span="12">
<el-form-item label="名称" ref="roleid" prop="roleid"> <el-form-item label="档案编号" ref="dabh" prop="dabh">
<el-input :readonly="readonly" v-model="form.roleid"></el-input> <el-input :readonly="readonly" v-model="form.dabh" ></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="roleid" prop="roleid"> <el-form-item label="安装地点" ref="azdd" prop="azdd">
<el-input :readonly="readonly" v-model="form.roleid"></el-input> <el-input :readonly="readonly" v-model="form.azdd" ></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="roleid" prop="roleid"> <el-form-item label="系统分类" ref="xtfl" prop="xtfl">
<el-input :readonly="readonly" v-model="form.roleid"></el-input> <el-input :readonly="readonly" v-model="form.xtfl" ></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="roleid" prop="roleid"> <el-form-item label="设备分类" ref="flid" prop="flid">
<el-input :readonly="readonly" v-model="form.roleid"></el-input> <el-input :readonly="readonly" v-model="form.flid" ></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="roleid" prop="roleid"> <el-form-item label="名称" ref="name" prop="name">
<el-input :readonly="readonly" v-model="form.roleid"></el-input> <el-input :readonly="readonly" v-model="form.name" ></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="roleid" prop="roleid"> <el-form-item label="下次检验日期" ref="xcjyrq" prop="xcjyrq">
<el-input :readonly="readonly" v-model="form.roleid"></el-input> <el-date-picker style="width: 100%;" :readonly="readonly" type="date"
</el-form-item> v-model="form.xcjyrq" placeholder="选择日期">
</el-col> </el-date-picker>
<el-col :span="12"> </el-form-item>
<el-form-item label="参数" ref="roleid" prop="roleid"> </el-col>
<el-input :readonly="readonly" v-model="form.roleid"></el-input> <el-col :span="12">
</el-form-item> <el-form-item label="检验周期" ref="jyzq" prop="jyzq">
</el-col> <el-input :readonly="readonly" v-model="form.jyzq" ></el-input>
<el-col :span="24"> </el-form-item>
<el-form-item label="用途" ref="roleid" prop="roleid"> </el-col>
<el-input type="textarea" :readonly="readonly" v-model="form.roleid"></el-input> <!-- <el-col :span="12">
</el-form-item> <el-form-item label="制造商" ref="productor" prop="productor">
</el-col> <el-input :readonly="readonly" v-model="form.productor" ></el-input>
<el-col :span="24"> </el-form-item>
<el-form-item label="检查人岗位" ref="roleid" prop="roleid"> </el-col>
<el-input type="textarea" :readonly="readonly" v-model="form.roleid"></el-input> <el-col :span="12">
</el-form-item> <el-form-item label="型号" ref="model" prop="model">
</el-col> <el-input :readonly="readonly" v-model="form.model" ></el-input>
<el-col :span="24"> </el-form-item>
<el-form-item label="拍照选项" ref="roleid" prop="roleid"> </el-col> -->
<el-input type="textarea" :readonly="readonly" v-model="form.roleid"></el-input> <!-- <el-col :span="12">
</el-form-item> <el-form-item label="出厂编号" ref="serialno" prop="serialno">
</el-col> <el-input :readonly="readonly" v-model="form.serialno" ></el-input>
</el-row> </el-form-item>
</el-form> </el-col> -->
<!-- 按钮重写, --> <el-col :span="12">
<!-- <div slot="reFooter"> <el-form-item label="计量单位" ref="jldw" prop="jldw">
<span slot="footer"> <el-input :readonly="readonly" v-model="form.jldw" ></el-input>
重写按钮写在这里,根据需要重写 slot(reFooter,foorer) 节点样式 重写方法需要在此页重新定义 </el-form-item>
</span> </el-col>
</div> --> <el-col :span="12">
</RelDialog> <el-form-item label="启用日期" ref="qyrq" prop="qyrq">
<el-date-picker 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="tyrq" prop="tyrq">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.tyrq" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="参数及量程" ref="cslc" prop="cslc">
<el-input :readonly="readonly" v-model="form.cslc" ></el-input>
</el-form-item>
</el-col>
<!-- <el-col :span="12">
<el-form-item label="停用标志" ref="tybz" prop="tybz">
<el-input :readonly="readonly" v-model="form.tybz" ></el-input>
</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-form-item>
</el-col> -->
<el-col :span="12">
<el-form-item label="拍照选项" ref="pzxx" prop="pzxx">
<el-input :readonly="readonly" v-model="form.pzxx" ></el-input>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="用途" ref="yt" prop="yt">
<el-input :readonly="readonly" v-model="form.yt" ></el-input>
</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-form-item>
</el-col> -->
<!-- <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-form-item>
</el-col> -->
<!-- <el-col :span="12">
<el-form-item label="出厂日期" ref="ccrq" prop="ccrq">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.ccrq" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col> -->
</el-row>
<!-- <el-row :gutter="20">
<el-col :span="12">
<el-form-item label="系统分类" ref="xtfl" prop="xtfl">
<el-input :readonly="readonly" v-model="form.xtfl" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="工作级别" ref="gzjb" prop="gzjb">
<el-input :readonly="readonly" v-model="form.gzjb" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="跨度" ref="kd" prop="kd">
<el-input :readonly="readonly" v-model="form.kd" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="提升速度" ref="tssd" prop="tssd">
<el-input :readonly="readonly" v-model="form.tssd" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="运行速度" ref="yxsd" prop="yxsd">
<el-input :readonly="readonly" v-model="form.yxsd" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="吨位" ref="dw" prop="dw">
<el-input :readonly="readonly" v-model="form.dw" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="起升高度" ref="qsgd" prop="qsgd">
<el-input :readonly="readonly" v-model="form.qsgd" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="电机功率" ref="djgl" prop="djgl">
<el-input :readonly="readonly" v-model="form.djgl" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="安装日期" ref="azrq" prop="azrq">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.azrq" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="安装单位" ref="azdw" prop="azdw">
<el-input :readonly="readonly" v-model="form.azdw" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="注册编号" ref="zcbh" prop="zcbh">
<el-input :readonly="readonly" v-model="form.zcbh" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="检验报告编号" ref="jybgbh" prop="jybgbh">
<el-input :readonly="readonly" v-model="form.jybgbh" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="上次检验日期" ref="scjyrq" prop="scjyrq">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.scjyrq" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="检验前自检结论" ref="jyqzjjl" prop="jyqzjjl">
<el-input :readonly="readonly" v-model="form.jyqzjjl" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="实际检验日期" ref="sjjyrq" prop="sjjyrq">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.sjjyrq" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="特检机构检验结论" ref="tjjgjyjl" prop="tjjgjyjl">
<el-input :readonly="readonly" v-model="form.tjjgjyjl" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="检验整改情况" ref="jyzgqk" prop="jyzgqk">
<el-input :readonly="readonly" v-model="form.jyzgqk" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="设备升级" ref="sbsj" prop="sbsj">
<el-input :readonly="readonly" v-model="form.sbsj" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="设备资料" ref="sbzl" prop="sbzl">
<el-input :readonly="readonly" v-model="form.sbzl" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="设备资料存放地点" ref="sbzldd" prop="sbzldd">
<el-input :readonly="readonly" v-model="form.sbzldd" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="未检原因" ref="wjyy" prop="wjyy">
<el-input :readonly="readonly" v-model="form.wjyy" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="系统名称" ref="xtmc" prop="xtmc">
<el-input :readonly="readonly" v-model="form.xtmc" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="监测因子" ref="jcyz" prop="jcyz">
<el-input :readonly="readonly" v-model="form.jcyz" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="类型" ref="lx" prop="lx">
<el-input :readonly="readonly" v-model="form.lx" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="主体材质" ref="ztcz" prop="ztcz">
<el-input :readonly="readonly" v-model="form.ztcz" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="容器容积" ref="rqrj" prop="rqrj">
<el-input :readonly="readonly" v-model="form.rqrj" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="容器净重" ref="rqjz" prop="rqjz">
<el-input :readonly="readonly" v-model="form.rqjz" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="设计压力" ref="sjyl" prop="sjyl">
<el-input :readonly="readonly" v-model="form.sjyl" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="设计温度" ref="sjwd" prop="sjwd">
<el-input :readonly="readonly" v-model="form.sjwd" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="最高压力" ref="zgyl" prop="zgyl">
<el-input :readonly="readonly" v-model="form.zgyl" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="耐压试验压力" ref="nysyyl" prop="nysyyl">
<el-input :readonly="readonly" v-model="form.nysyyl" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="管径与壁厚" ref="gjbh" prop="gjbh">
<el-input :readonly="readonly" v-model="form.gjbh" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="管道级别" ref="gdjb" prop="gdjb">
<el-input :readonly="readonly" v-model="form.gdjb" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="管道起点" ref="gdqd" prop="gdqd">
<el-input :readonly="readonly" v-model="form.gdqd" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="管道终点" ref="gdzd" prop="gdzd">
<el-input :readonly="readonly" v-model="form.gdzd" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="压力" ref="yl" prop="yl">
<el-input :readonly="readonly" v-model="form.yl" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="铺设方式" ref="psfs" prop="psfs">
<el-input :readonly="readonly" v-model="form.psfs" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="工作温度" ref="gzwd" prop="gzwd">
<el-input :readonly="readonly" v-model="form.gzwd" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="工作压力" ref="gzyl" prop="gzyl">
<el-input :readonly="readonly" v-model="form.gzyl" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="输送介质" ref="ssjz" prop="ssjz">
<el-input :readonly="readonly" v-model="form.ssjz" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="焊口数量" ref="hksl" prop="hksl">
<el-input :readonly="readonly" v-model="form.hksl" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="保温" ref="bw" prop="bw">
<el-input :readonly="readonly" v-model="form.bw" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="防腐方式" ref="fffs" prop="fffs">
<el-input :readonly="readonly" v-model="form.fffs" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="标识" ref="bs" prop="bs">
<el-input :readonly="readonly" v-model="form.bs" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="公称通径" ref="gctj" prop="gctj">
<el-input :readonly="readonly" v-model="form.gctj" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="产品编号" ref="cpbh" prop="cpbh">
<el-input :readonly="readonly" v-model="form.cpbh" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="整定压力" ref="zdyl" prop="zdyl">
<el-input :readonly="readonly" v-model="form.zdyl" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="层站" ref="dtcz" prop="dtcz">
<el-input :readonly="readonly" v-model="form.dtcz" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="载重" ref="dtzz" prop="dtzz">
<el-input :readonly="readonly" v-model="form.dtzz" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="提升高度" ref="dttsgd" prop="dttsgd">
<el-input :readonly="readonly" v-model="form.dttsgd" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="运行速度" ref="dtyxsd" prop="dtyxsd">
<el-input :readonly="readonly" v-model="form.dtyxsd" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="车牌号" ref="cph" prop="cph">
<el-input :readonly="readonly" v-model="form.cph" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="发动机型号" ref="fdjxh" prop="fdjxh">
<el-input :readonly="readonly" v-model="form.fdjxh" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="发动机编号" ref="fdjbh" prop="fdjbh">
<el-input :readonly="readonly" v-model="form.fdjbh" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="底盘车架号" ref="dpcjh" prop="dpcjh">
<el-input :readonly="readonly" v-model="form.dpcjh" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="附件数" ref="attachcount" prop="attachcount">
<el-input :readonly="readonly" v-model="form.attachcount" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="系统版本" ref="sysversion" prop="sysversion">
<el-input :readonly="readonly" v-model="form.sysversion" ></el-input>
</el-form-item>
</el-col>
</el-row> -->
</el-form>
</RelDialog>
</template> </template>
<script> <script>
import {editMixin} from 'common' import {editMixin} from 'common'
export default { export default {
mixins: [editMixin], mixins: [editMixin],
/* 存放index页面传递的额外参数*/ /* 存放index页面传递的额外参数*/
mounted() { mounted() {
},
/* 组件名称*/
name: 'roleManagementEdit',
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data() { },
return { /* 组件名称*/
name: "aqglSbxxEdit",
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
/* 额外初始化,根据需求*/ data() {
systemType: [], return {
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/ /* 额外初始化,根据需求*/
form: { systemType: [],
roleid: '',
rolename: '', bmList: [],
bz: "",
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: {
//ID
id:'',
//设备编码
code:'',
//档案编号
dabh:'',
//系统分类
xtfl:'',
//设备分类
flid:'',
//名称
name:'',
//制造商
productor:'',
//型号
model:'',
//出厂编号
serialno:'',
//计量单位
jldw:'',
//启用日期
qyrq:new Date().getTime(),
//停用日期
tyrq:new Date().getTime(),
//停用标志
tybz:'',
//使用地点
sydd:'',
//用途
yt:'',
//数量
sl:'',
//出厂日期
ccrq:new Date().getTime(),
//系统分类
xtfl:'',
//工作级别
gzjb:'',
//跨度
kd:'',
//提升速度
tssd:'',
//运行速度
yxsd:'',
//吨位
dw:'',
//起升高度
qsgd:'',
//电机功率
djgl:'',
//安装日期
azrq:new Date().getTime(),
//安装地点
azdd:'',
//安装单位
azdw:'',
//注册编号
zcbh:'',
//检验报告编号
jybgbh:'',
//检验周期
jyzq:'',
//上次检验日期
scjyrq:new Date().getTime(),
//下次检验日期
xcjyrq:new Date().getTime(),
//检验前自检结论
jyqzjjl:'',
//实际检验日期
sjjyrq:new Date().getTime(),
//特检机构检验结论
tjjgjyjl:'',
//检验整改情况
jyzgqk:'',
//设备升级
sbsj:'',
//设备资料
sbzl:'',
//设备资料存放地点
sbzldd:'',
//未检原因
wjyy:'',
//系统名称
xtmc:'',
//参数及量程
cslc:'',
//监测因子
jcyz:'',
//类型
lx:'',
//主体材质
ztcz:'',
//容器容积
rqrj:'',
//容器净重
rqjz:'',
//设计压力
sjyl:'',
//设计温度
sjwd:'',
//最高压力
zgyl:'',
//耐压试验压力
nysyyl:'',
//管径与壁厚
gjbh:'',
//管道级别
gdjb:'',
//管道起点
gdqd:'',
//管道终点
gdzd:'',
//压力
yl:'',
//铺设方式
psfs:'',
//工作温度
gzwd:'',
//工作压力
gzyl:'',
//输送介质
ssjz:'',
//焊口数量
hksl:'',
//保温
bw:'',
//防腐方式
fffs:'',
//标识
bs:'',
//公称通径
gctj:'',
//产品编号
cpbh:'',
//整定压力
zdyl:'',
//层站
dtcz:'',
//载重
dtzz:'',
//提升高度
dttsgd:'',
//运行速度
dtyxsd:'',
//车牌号
cph:'',
//发动机型号
fdjxh:'',
//发动机编号
fdjbh:'',
//底盘车架号
dpcjh:'',
//拍照选项
pzxx:'',
//附件数
attachcount:'',
//备注
bz:'',
//维护人编码
whrid:'',
//维护人
whr:'',
//维护时间
whsj:new Date().getTime(),
//创建人编码
cjrid:'',
//创建人
cjr:'',
//创建时间
cjsj:new Date().getTime(),
//系统版本
sysversion:'',
},
/* form提交时的规则,具体规则参考官网*/
rules: {
}
}
}, },
/* form提交时的规则,具体规则参考官网*/ methods: {
rules: {
roleid: [{
required: true,
trigger: 'blur'
}, ],
rolename: [{
required: true,
trigger: 'blur'
}, ]
}
}
},
methods: {
}
} }
}
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
......
...@@ -45,160 +45,166 @@ ...@@ -45,160 +45,166 @@
<!-- 权限--> <!-- 权限-->
</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 {
/* 引入需要的接口*/ doQuery,
import { doAdd,
QueryKzzxRole, doUpdate,
QueryApptype, doDelete
AddKzzxRole, } from '@/api/equipment/sbxx.js';
DeleteKzzxRole, /* edit页面*/
UpdateKzzxRole, import Edit from './edit'
QtKzzxRole import {
} from "common/src/api/system/dmgSystem.js"; tableMixin
/* edit页面*/ } from 'common'
import Edit from './edit' export default {
import { mixins: [tableMixin],
tableMixin name: 'appVersion',
} from 'common'
export default { /* 初始额外赋值*/
mixins: [tableMixin], async mounted() {
name: 'appVersion', this.$refs['TablePager'].pageQuery()
},
/* 初始额外赋值*/ data() {
async mounted() { return {
this.$refs['TablePager'].pageQuery()
}, /*需要的额外参数 */
data() { showDialog: false,
return { DialogName: '',
type: '',
/*需要的额外参数 */ DialogTitle: '',
showDialog: false, /* 基础url*/
DialogName: '', baseUrl: '/aqgl/sbxx',
type: '', /* 查询参数*/
DialogTitle: '', queryParams: {
/* 基础url*/ ksrq: '',
baseUrl: 'kzzx/role', jsrq: ''
/* 查询参数*/
queryParams: {
ksrq: '',
jsrq: ''
},
/* 表格标题对应参数*/
tableTitle: [
{
prop: 'whsj',
label: '编号',
...this.$common('ftDateTime')
},
{
prop: 'whsj',
label: '名称',
...this.$common('ftDateTime')
},
{
prop: 'whr',
label: '安装位置',
width: '100'
}, },
{ /* 表格标题对应参数*/
prop: 'whr', tableTitle: [
label: '使用状态', {label: "设备编码", prop: "code", fieldType: "ftString",width:300},
width: '100' {label: "档案编号", prop: "dabh", fieldType: "ftString",width:300},
}, // {label: "系统分类", prop: "xtflName", fieldType: "ftString",width:48},
{ // {label: "设备分类", prop: "sbflName", fieldType: "ftString",width:96},
prop: 'whr', {label: "名称", prop: "name", fieldType: "ftString",width:300},
label: '检查周期', // {label: "制造商", prop: "productor", fieldType: "ftString",width:300},
width: '100' // {label: "型号", prop: "model", fieldType: "ftString",width:300},
}, // {label: "出厂编号", prop: "serialno", fieldType: "ftString",width:300},
{ // {label: "计量单位", prop: "jldw", fieldType: "ftString",width:120},
prop: 'whr', // {label: "启用日期", prop: "qyrq", fieldType: "ftDateTime"},
label: '检查频次', /* {label: "停用日期", prop: "tyrq", fieldType: "ftDateTime"}, */
width: '100' {label: "使用状态", prop: "tybzName", fieldType: "ftString",width:80},
}, // {label: "使用地点", prop: "sydd", fieldType: "ftString",width:300},
{ {label: "用途", prop: "yt", fieldType: "ftString",width:300},
prop: 'whr', // {label: "数量", prop: "sl", fieldType: "int"},
label: '检查人岗位', // {label: "出厂日期", prop: "ccrq", fieldType: "ftDateTime"},
width: '100' // {label: "系统分类", prop: "xtfl", fieldType: "ftString",width:48},
}, // {label: "工作级别", prop: "gzjb", fieldType: "ftString",width:180},
{ // {label: "跨度", prop: "kd", fieldType: "ftString",width:180},
prop: 'whr', // {label: "提升速度", prop: "tssd", fieldType: "ftString",width:180},
label: '参数', // {label: "运行速度", prop: "yxsd", fieldType: "ftString",width:180},
width: '100' // {label: "吨位", prop: "dw", fieldType: "float"},
}, // {label: "起升高度", prop: "qsgd", fieldType: "ftString",width:180},
{ // {label: "电机功率", prop: "djgl", fieldType: "ftString",width:180},
prop: 'whr', // {label: "安装日期", prop: "azrq", fieldType: "ftDateTime"},
label: '用途', {label: "安装地点", prop: "azdd", fieldType: "ftString",width:300},
width: '100' // {label: "安装单位", prop: "azdw", fieldType: "ftString",width:300},
}, // {label: "注册编号", prop: "zcbh", fieldType: "ftString",width:300},
{ // {label: "检验报告编号", prop: "jybgbh", fieldType: "ftString",width:300},
prop: 'whr', {label: "检验周期", prop: "jyzq", fieldType: "ftString",width:300},
label: '下次检查日期', // {label: "上次检验日期", prop: "scjyrq", fieldType: "ftDateTime"},
width: '100' {label: "下次检验日期", prop: "xcjyrq", fieldType: "ftDateTime"},
}, // {label: "检验前自检结论", prop: "jyqzjjl", fieldType: "ftString",width:300},
{ // {label: "实际检验日期", prop: "sjjyrq", fieldType: "ftDateTime"},
prop: 'whr', // {label: "特检机构检验结论", prop: "tjjgjyjl", fieldType: "ftString",width:300},
label: '拍照选项', // {label: "检验整改情况", prop: "jyzgqk", fieldType: "ftString",width:300},
width: '100' // {label: "设备升级", prop: "sbsj", fieldType: "ftString",width:300},
} // {label: "设备资料", prop: "sbzl", fieldType: "ftString",width:300},
] // {label: "设备资料存放地点", prop: "sbzldd", fieldType: "ftString",width:300},
} // {label: "未检原因", prop: "wjyy", fieldType: "ftString",width:300},
}, // {label: "系统名称", prop: "xtmc", fieldType: "ftString",width:300},
methods: { {label: "参数及量程", prop: "cslc", fieldType: "ftString",width:300},
// {label: "监测因子", prop: "jcyz", fieldType: "ftString",width:300},
// {label: "类型", prop: "lx", fieldType: "ftString",width:120},
// {label: "主体材质", prop: "ztcz", fieldType: "ftString",width:300},
// {label: "容器容积", prop: "rqrj", fieldType: "ftString",width:120},
// {label: "容器净重", prop: "rqjz", fieldType: "ftString",width:120},
// {label: "设计压力", prop: "sjyl", fieldType: "ftString",width:120},
// {label: "设计温度", prop: "sjwd", fieldType: "ftString",width:120},
// {label: "最高压力", prop: "zgyl", fieldType: "ftString",width:120},
// {label: "耐压试验压力", prop: "nysyyl", fieldType: "ftString",width:120},
// {label: "管径与壁厚", prop: "gjbh", fieldType: "ftString",width:120},
// {label: "管道级别", prop: "gdjb", fieldType: "ftString",width:120},
// {label: "管道起点", prop: "gdqd", fieldType: "ftString",width:300},
// {label: "管道终点", prop: "gdzd", fieldType: "ftString",width:300},
// {label: "压力", prop: "yl", fieldType: "ftString",width:120},
// {label: "铺设方式", prop: "psfs", fieldType: "ftString",width:300},
// {label: "工作温度", prop: "gzwd", fieldType: "ftString",width:60},
// {label: "工作压力", prop: "gzyl", fieldType: "ftString",width:60},
// {label: "输送介质", prop: "ssjz", fieldType: "ftString",width:120},
// {label: "焊口数量", prop: "hksl", fieldType: "int"},
// {label: "保温", prop: "bw", fieldType: "ftString",width:120},
// {label: "防腐方式", prop: "fffs", fieldType: "ftString",width:300},
// {label: "标识", prop: "bs", fieldType: "ftString",width:300},
// {label: "公称通径", prop: "gctj", fieldType: "ftString",width:120},
// {label: "产品编号", prop: "cpbh", fieldType: "ftString",width:300},
// {label: "整定压力", prop: "zdyl", fieldType: "ftString",width:120},
// {label: "层站", prop: "dtcz", fieldType: "ftString",width:120},
// {label: "载重", prop: "dtzz", fieldType: "ftString",width:120},
// {label: "提升高度", prop: "dttsgd", fieldType: "ftString",width:120},
// {label: "运行速度", prop: "dtyxsd", fieldType: "ftString",width:120},
// {label: "车牌号", prop: "cph", fieldType: "ftString",width:120},
// {label: "发动机型号", prop: "fdjxh", fieldType: "ftString",width:240},
// {label: "发动机编号", prop: "fdjbh", fieldType: "ftString",width:240},
// {label: "底盘车架号", prop: "dpcjh", fieldType: "ftString",width:240},
{label: "拍照选项", prop: "pzxx", fieldType: "ftString",width:60},
// {label: "附件数", prop: "attachcount", fieldType: "int"},
{label: "备注", prop: "bz", fieldType: "ftString",width:300},
// {label: "维护人", prop: "whr", fieldType: "ftString"},
// {label: "维护时间", prop: "whsj", fieldType: "ftDateTime"},
// {label: "创建人", prop: "cjr", fieldType: "ftString"},
// {label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"},
// {label: "是否已入档", prop: "docName", fieldType: "ftString",width:300}
]
}
},
methods: {
/* 基础查询*/ /* 基础查询*/
query: QueryKzzxRole, query: doQuery,
/* 基础增*/ /* 基础增*/
apiAdd: AddKzzxRole, apiAdd: doAdd,
/* 基础更新*/ /* 基础更新*/
apiUpdate: UpdateKzzxRole, apiUpdate: doUpdate,
/* 删除操作*/ /* 删除操作*/
apiDelete: DeleteKzzxRole, apiDelete: doDelete,
/* 初始化赋值操作*/ /* 初始化赋值操作*/
init() { init() {
}
}, },
/* 启用停用*/ components: {
setEnable(id) { Edit,
this.$confirm('是否启用/停用该角色, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
let params = {
id: id
}
QtKzzxRole(params).then(res => {
if (res.success) {
this.$success('操作成功')
this.app.$refs['TablePager'].reLoad()
} else {
this.$error(res.message || '操作失败')
}
})
})
} }
},
components: {
Edit,
} }
</script>
} <style scoped>
</script>
</style>
<style scoped>
\ No newline at end of file
</style>
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