Commit 21eebe27 authored by 王向前's avatar 王向前

no message

parent 419383fc
...@@ -5,4 +5,4 @@ VUE_APP_TITLE = 陕钢安全管理 ...@@ -5,4 +5,4 @@ VUE_APP_TITLE = 陕钢安全管理
ENV = 'production' ENV = 'production'
# 陕钢安全管理/生产环境 # 陕钢安全管理/生产环境
VUE_APP_BASE_API = 'dmg' VUE_APP_BASE_API = 'http://localhost:80/'
import request from 'common/src/utils/request' import request from 'common/src/utils/request'
/* 查询 */ /* 查询 */
export function getSbflInfo(params){
return doQuery
}
export function doQuery(query) { export function doQuery(query) {
return request({ return request({
url: '/aqgl/sbgl/sbfl/query', url: '/aqgl/sbgl/sbfl/query',
method: 'post', method: 'post',
data: query||{} data: query||{}
}) })
} }
/* 更新 */ /* 更新 */
export function doUpdate(query) { export function doUpdate(query) {
......
...@@ -56,6 +56,16 @@ ...@@ -56,6 +56,16 @@
<el-input :readonly="readonly" v-model="form.sl" ></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-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-form-item>
</el-col>
<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 type="textarea" :readonly="readonly" v-model="form.bz" ></el-input> <el-input type="textarea" :readonly="readonly" v-model="form.bz" ></el-input>
...@@ -121,8 +131,6 @@ ...@@ -121,8 +131,6 @@
sl:'', sl:'',
//出厂日期 //出厂日期
ccrq:new Date().getTime(), ccrq:new Date().getTime(),
//系统分类
xtfl:'0',
//工作级别 //工作级别
gzjb:'', gzjb:'',
//跨度 //跨度
...@@ -258,7 +266,7 @@ ...@@ -258,7 +266,7 @@
//创建时间 //创建时间
cjsj:new Date().getTime(), cjsj:new Date().getTime(),
//系统版本 //系统版本
sysversion:'', doc:""
}, },
/* form提交时的规则,具体规则参考官网*/ /* form提交时的规则,具体规则参考官网*/
rules: { rules: {
......
...@@ -8,23 +8,26 @@ ...@@ -8,23 +8,26 @@
<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></el-input> <el-input v-model="queryParams.dabh"></el-input>
</div> </div>
</el-col> </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></el-input> <el-input v-model="queryParams.sbxx"></el-input>
</div> </div>
</el-col> </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-date-picker <el-select v-model="queryParams.doc" placeholder="请选择">
v-model="queryParams.ksrq" <el-option
type="date" v-for="item in options"
placeholder="选择日期"> :key="item.value"
</el-date-picker> :label="item.label"
:value="item.value">
</el-option>
</el-select>
</div> </div>
</el-col> </el-col>
...@@ -77,7 +80,10 @@ ...@@ -77,7 +80,10 @@
}, },
data() { data() {
return { return {
options:[
{label:"是",value:"Y"},
{label:"否",value:"N"},
],
/*需要的额外参数 */ /*需要的额外参数 */
showDialog: false, showDialog: false,
DialogName: '', DialogName: '',
...@@ -87,10 +93,10 @@ ...@@ -87,10 +93,10 @@
baseUrl: '/aqgl/sbxx', baseUrl: '/aqgl/sbxx',
/* 查询参数*/ /* 查询参数*/
queryParams: { queryParams: {
ksrq: '', dabh: '',
jsrq: '', sbxx: '',
xtfl:'0' doc:'',
xtfl:"0",
}, },
/* 表格标题对应参数*/ /* 表格标题对应参数*/
tableTitle: [ tableTitle: [
...@@ -110,73 +116,11 @@ ...@@ -110,73 +116,11 @@
{label: "用途", prop: "yt", fieldType: "ftString",width:300}, {label: "用途", prop: "yt", fieldType: "ftString",width:300},
{label: "数量", prop: "sl", fieldType: "int"}, {label: "数量", prop: "sl", fieldType: "int"},
{label: "出厂日期", prop: "ccrq", fieldType: "ftDateTime"}, {label: "出厂日期", prop: "ccrq", fieldType: "ftDateTime"},
// {label: "系统分类", prop: "xtfl", fieldType: "ftString",width:48},
// {label: "工作级别", prop: "gzjb", fieldType: "ftString",width:180},
// {label: "跨度", prop: "kd", fieldType: "ftString",width:180},
// {label: "提升速度", prop: "tssd", fieldType: "ftString",width:180},
// {label: "运行速度", prop: "yxsd", fieldType: "ftString",width:180},
// {label: "吨位", prop: "dw", fieldType: "float"},
// {label: "起升高度", prop: "qsgd", fieldType: "ftString",width:180},
// {label: "电机功率", prop: "djgl", fieldType: "ftString",width:180},
// {label: "安装日期", prop: "azrq", fieldType: "ftDateTime"},
// {label: "安装地点", prop: "azdd", fieldType: "ftString",width:300},
// {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"},
// {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: "bz", fieldType: "ftString",width:300},
// {label: "维护人", prop: "whr", fieldType: "ftString"}, {label: "是否已入档", prop: "doc", fieldType: "ftString",width:300,show:false},
// {label: "维护时间", prop: "whsj", fieldType: "ftDateTime"}, {label: "是否已入档", prop: "docName", fieldType: "ftString",width:300}
// {label: "创建人", prop: "cjr", fieldType: "ftString"},
// {label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"},
// {label: "是否已入档", prop: "docName", fieldType: "ftString",width:300}
] ]
} }
}, },
......
...@@ -3,11 +3,16 @@ ...@@ -3,11 +3,16 @@
<!-- 填写表单内容,slot=form必写--> <!-- 填写表单内容,slot=form必写-->
<el-form 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="24">
<el-form-item label="系统名称" ref="xtmc" prop="xtmc"> <el-form-item label="系统名称" ref="xtmc" prop="xtmc">
<el-input :readonly="readonly" v-model="form.xtmc" ></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-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-col :span="12">
<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>
...@@ -36,16 +41,11 @@ ...@@ -36,16 +41,11 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="参数及量程" ref="cslc" prop="cslc">
<el-input type='textarea' :readonly="readonly" v-model="form.cslc" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="使用地点" ref="sydd" prop="sydd"> <el-form-item label="使用地点" ref="sydd" prop="sydd">
<el-input :readonly="readonly" v-model="form.sydd" ></el-input> <el-input :readonly="readonly" v-model="form.sydd" ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="24">
<el-form-item label="制造商" ref="productor" prop="productor"> <el-form-item label="制造商" ref="productor" prop="productor">
<el-input :readonly="readonly" v-model="form.productor" ></el-input> <el-input :readonly="readonly" v-model="form.productor" ></el-input>
</el-form-item> </el-form-item>
...@@ -463,7 +463,6 @@ ...@@ -463,7 +463,6 @@
//档案编号 //档案编号
dabh:'', dabh:'',
//系统分类 //系统分类
xtfl:'',
//设备分类 //设备分类
flid:'', flid:'',
//名称 //名称
...@@ -491,7 +490,7 @@ ...@@ -491,7 +490,7 @@
//出厂日期 //出厂日期
ccrq:new Date().getTime(), ccrq:new Date().getTime(),
//系统分类 //系统分类
xtfl:'', xtfl:'2',
//工作级别 //工作级别
gzjb:'', gzjb:'',
//跨度 //跨度
......
...@@ -7,19 +7,19 @@ ...@@ -7,19 +7,19 @@
<el-row :gutter="20" class="search-row-1"> <el-row :gutter="20" 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>
<el-input></el-input> <el-input v-model="queryParams.xtmc"></el-input>
</div> </div>
</el-col> </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-select></el-select> <el-input v-model="queryParams.name"></el-input>
</div> </div>
</el-col> </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-date-picker <el-date-picker
v-model="queryParams.ksrq" v-model="queryParams.ksrq"
type="date" type="date"
...@@ -27,6 +27,19 @@ ...@@ -27,6 +27,19 @@
</el-date-picker> </el-date-picker>
</div> </div>
</el-col> </el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">使用状态:</span>
<el-select v-model="queryParams.tyzt" placeholder="请选择">
<el-option
v-for="item in options"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</div>
</el-col>
</el-row> </el-row>
</div> </div>
...@@ -49,7 +62,15 @@ ...@@ -49,7 +62,15 @@
<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'>
<template slot="tabCustom">
<el-table-column label="启用/停用" width="90" header-align="center" >
<template slot-scope="scope">
<el-switch @click.native="setEnable(scope.row)" :value='tybz(scope)' style="width: 80px;justify-content: center;"
active-color="#13ce66" inactive-color="#eee">
</el-switch>
</template>
</el-table-column>
</template>
</TablePager> </TablePager>
</div> </div>
</div> </div>
...@@ -69,7 +90,7 @@ ...@@ -69,7 +90,7 @@
} from 'common' } from 'common'
export default { export default {
mixins: [tableMixin], mixins: [tableMixin],
name: 'appVersion', name: 'environment',
/* 初始额外赋值*/ /* 初始额外赋值*/
async mounted() { async mounted() {
...@@ -77,7 +98,10 @@ ...@@ -77,7 +98,10 @@
}, },
data() { data() {
return { return {
options:[
{label:"在用",value:"Y"},
{label:"停用",value:"N"},
],
/*需要的额外参数 */ /*需要的额外参数 */
showDialog: false, showDialog: false,
DialogName: '', DialogName: '',
...@@ -87,23 +111,27 @@ ...@@ -87,23 +111,27 @@
baseUrl: '/aqgl/sbxx', baseUrl: '/aqgl/sbxx',
/* 查询参数*/ /* 查询参数*/
queryParams: { queryParams: {
ksrq: '', xtmc:"",
jsrq: '' name:"",
qyrq:"",
tybz:"",
xtfl:"2"
}, },
/* 表格标题对应参数*/ /* 表格标题对应参数*/
tableTitle: [ tableTitle: [
// {label: "设备编码", prop: "code", fieldType: "ftString",width:300}, {label: "设备编码", prop: "code", fieldType: "ftString",width:300},
// {label: "档案编号", prop: "dabh", fieldType: "ftString",width:300}, // {label: "档案编号", prop: "dabh", fieldType: "ftString",width:300},
// {label: "系统分类", prop: "xtflName", fieldType: "ftString",width:48}, // {label: "系统分类", prop: "xtflName", fieldType: "ftString",width:48},
// {label: "设备分类", prop: "sbflName", fieldType: "ftString",width:96}, // {label: "设备分类", prop: "sbflName", fieldType: "ftString",width:96},
{label: "名称", prop: "name", fieldType: "ftString",width:300}, {label: "系统名称", prop: "xtmc", fieldType: "ftString",width:180},
{label: "仪器名称", prop: "name", fieldType: "ftString",width:240},
{label: "型号", prop: "model", fieldType: "ftString",width:100},
{label: "计量单位", prop: "jldw", fieldType: "ftString",width:120},
{label: "制造商", prop: "productor", fieldType: "ftString",width:300}, {label: "制造商", prop: "productor", fieldType: "ftString",width:300},
{label: "型号", prop: "model", fieldType: "ftString",width:300},
// {label: "出厂编号", prop: "serialno", fieldType: "ftString",width:300}, // {label: "出厂编号", prop: "serialno", fieldType: "ftString",width:300},
{label: "计量单位", prop: "jldw", fieldType: "ftString",width:120},
{label: "启用日期", prop: "qyrq", fieldType: "ftDateTime"}, {label: "启用日期", prop: "qyrq", fieldType: "ftDateTime"},
/* {label: "停用日期", prop: "tyrq", fieldType: "ftDateTime"}, */ /* {label: "停用日期", prop: "tyrq", fieldType: "ftDateTime"}, */
{label: "使用状态", prop: "tybzName", fieldType: "ftString",width:80}, {label: "使用状态", prop: "tybzName", fieldType: "ftString",width:120},
{label: "使用地点", prop: "sydd", fieldType: "ftString",width:300}, {label: "使用地点", prop: "sydd", fieldType: "ftString",width:300},
// {label: "用途", prop: "yt", fieldType: "ftString",width:300}, // {label: "用途", prop: "yt", fieldType: "ftString",width:300},
{label: "数量", prop: "sl", fieldType: "int"}, {label: "数量", prop: "sl", fieldType: "int"},
...@@ -132,41 +160,6 @@ ...@@ -132,41 +160,6 @@
// {label: "设备资料", prop: "sbzl", fieldType: "ftString",width:300}, // {label: "设备资料", prop: "sbzl", fieldType: "ftString",width:300},
// {label: "设备资料存放地点", prop: "sbzldd", fieldType: "ftString",width:300}, // {label: "设备资料存放地点", prop: "sbzldd", fieldType: "ftString",width:300},
// {label: "未检原因", prop: "wjyy", 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: "pzxx", fieldType: "ftString",width:60},
// {label: "附件数", prop: "attachcount", fieldType: "int"}, // {label: "附件数", prop: "attachcount", fieldType: "int"},
// {label: "备注", prop: "bz", fieldType: "ftString",width:300}, // {label: "备注", prop: "bz", fieldType: "ftString",width:300},
...@@ -191,6 +184,31 @@ ...@@ -191,6 +184,31 @@
/* 初始化赋值操作*/ /* 初始化赋值操作*/
init() { init() {
},
tybz(a) {
let nTy = false
nTy = (a.row.tybz == 'N' ? true : false)
return nTy
},
/* 启用停用*/
setEnable(row) {
this.$confirm('是否启用/停用, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
row["tybz"]=="Y"?row["tybz"]="N":row["tybz"]="Y"
doUpdate(row).then(res => {
if (res.success) {
this.$success('操作成功')
this.app.$refs['TablePager'].refresh()
} else {
this.$error(res.message || '操作失败')
}
})
})
} }
......
...@@ -12,16 +12,32 @@ ...@@ -12,16 +12,32 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="设备分类" ref="xtfl" prop="xtfl"> <el-form-item label="设备分类" ref="xtfl" prop="xtfl">
<el-input :readonly="readonly" v-model="form.xtfl" ></el-input> <el-select v-model="form.xtfl" style="width: 100%;" placeholder="请选择" :readonly="readonly" @change="change">
<el-option
v-for="item in options"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</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="24">
<el-form-item label="设备ID" ref="sbxxid" prop="sbxxid"> <el-form-item label="设施" ref="sbxxName" prop="sbxxName">
<el-input :readonly="readonly" v-model="form.sbxxid" ></el-input> <el-select v-model="form.sbxxId" style="width: 100%;" placeholder="请选择" :readonly="readonly">
<el-option
v-for="item in sbxxInfo"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="安装位置" ref="azwz" prop="azwz"> <el-form-item label="安装位置" ref="azwz" prop="azwz">
<el-input :readonly="readonly" v-model="form.azwz" ></el-input> <el-input :readonly="readonly" v-model="form.azwz" ></el-input>
...@@ -67,6 +83,7 @@ ...@@ -67,6 +83,7 @@
</template> </template>
<script> <script>
import {editMixin} from 'common' import {editMixin} from 'common'
import {doQuery as getSbInfo} from '@/api/equipment/sbxj.js';
export default { export default {
mixins: [editMixin], mixins: [editMixin],
/* 存放index页面传递的额外参数*/ /* 存放index页面传递的额外参数*/
...@@ -74,23 +91,30 @@ ...@@ -74,23 +91,30 @@
}, },
/* 组件名称*/ /* 组件名称*/
name: "aqglSbxjEdit", name: "inspection",
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/ /* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data() { data() {
return { return {
/* 额外初始化,根据需求*/ /* 额外初始化,根据需求*/
systemType: [], systemType: [],
options:[
{label:"(空)",value:""},
{label:"普通设备",value:"0"},
{label:"特种设备",value:"1"},
{label:"环保设备",value:"2"},
{label:"防护设备",value:"3"},
],
sbxxInfo:[],
bmList: [], bmList: [],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/ /* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: { form: {
//ID //ID
id:'', id:'',
//巡检日期 //巡检日期
xjrq:new Date().getTime(), xjrq:new Date().getTime(),
sbxxName:"",
sbxxCode:"",
//设备分类 //设备分类
xtfl:'', xtfl:'',
//设备ID //设备ID
...@@ -119,8 +143,6 @@ ...@@ -119,8 +143,6 @@
cjr:'', cjr:'',
//创建时间 //创建时间
cjsj:new Date().getTime(), cjsj:new Date().getTime(),
//系统版本
sysversion:'',
}, },
/* form提交时的规则,具体规则参考官网*/ /* form提交时的规则,具体规则参考官网*/
rules: { rules: {
...@@ -131,7 +153,16 @@ ...@@ -131,7 +153,16 @@
methods: { methods: {
jcrSelected(row){ jcrSelected(row){
this.jcrid=row.id this.jcrid=row.id
},
change(e){
let _this=this;
getSbInfo({mid:e}).then(res=>{
if(res.success){
_this.sbxxInfo=res.data.records
} }
})
}
} }
} }
</script> </script>
......
...@@ -8,33 +8,39 @@ ...@@ -8,33 +8,39 @@
<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></el-input> <el-select v-model="queryParams.xtfl" placeholder="请选择">
<el-option
v-for="item in options1"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</div> </div>
</el-col> </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-select></el-select> <el-input v-model="queryParams.code"></el-input>
</div> </div>
</el-col> </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-date-picker <el-input v-model="queryParams.sbxx"></el-input>
v-model="queryParams.ksrq"
type="date"
placeholder="选择日期">
</el-date-picker>
</div> </div>
</el-col> </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-date-picker <el-select v-model="queryParams.tyzt" placeholder="请选择">
v-model="queryParams.ksrq" <el-option
type="date" v-for="item in options"
placeholder="选择日期"> :key="item.value"
</el-date-picker> :label="item.label"
:value="item.value">
</el-option>
</el-select>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
...@@ -100,7 +106,18 @@ ...@@ -100,7 +106,18 @@
}, },
data() { data() {
return { return {
options1:[
{label:"(空)",value:""},
{label:"普通设备",value:"0"},
{label:"特种设备",value:"1"},
{label:"环保设备",value:"2"},
{label:"防护设备",value:"3"},
],
options:[
{label:"待检",value:"DJ"},
{label:"正常",value:"ZC"},
{label:"停用",value:"YC"},
],
/*需要的额外参数 */ /*需要的额外参数 */
showDialog: false, showDialog: false,
DialogName: '', DialogName: '',
...@@ -110,19 +127,18 @@ ...@@ -110,19 +127,18 @@
baseUrl: '/aqgl/sbgl/sbxj', baseUrl: '/aqgl/sbgl/sbxj',
/* 查询参数*/ /* 查询参数*/
queryParams: { queryParams: {
ksrq: '', xtfl:""
jsrq: ''
}, },
/* 表格标题对应参数*/ /* 表格标题对应参数*/
tableTitle: [ tableTitle: [
{label: "巡检日期", prop: "xjrq", fieldType: "ftDateTime"}, {label: "巡检日期", prop: "xjrq", fieldType: "ftDateTime"},
{label: "设备分类", prop: "xtfl", fieldType: "ftString",width:96}, {label: "设备分类", prop: "xtfl", fieldType: "ftString",width:96,show:false},
{label: "设备分类", prop: "xtflName", fieldType: "ftString",width:96}, {label: "设备分类", prop: "xtflName", fieldType: "ftString",width:96},
// {label: "设备ID", prop: "sbxxid", fieldType: "ftString",width:192}, // {label: "设备ID", prop: "sbxxid", fieldType: "ftString",width:192},
{label: "设备编号", prop: "sbxxCode", fieldType: "ftString",width:192}, {label: "设备编号", prop: "sbxxCode", fieldType: "ftString",width:192},
{label: "设备名称", prop: "sbxxName", fieldType: "ftString",width:192}, {label: "设备名称", prop: "sbxxName", fieldType: "ftString",width:192},
{label: "安装位置", prop: "azwz", fieldType: "ftString",width:300}, {label: "安装位置", prop: "azwz", fieldType: "ftString",width:300},
{label: "检查状态", prop: "zt", fieldType: "ftString",width:100}, {label: "检查状态", prop: "zt", fieldType: "ftString",width:100,show:false},
{label: "检查状态", prop: "ztName", fieldType: "ftString",width:100}, {label: "检查状态", prop: "ztName", fieldType: "ftString",width:100},
{label: "检查情况", prop: "jcqk", fieldType: "ftString",width:300}, {label: "检查情况", prop: "jcqk", fieldType: "ftString",width:300},
{label: "检查人", prop: "jcrid", fieldType: "ftString",width:192}, {label: "检查人", prop: "jcrid", fieldType: "ftString",width:192},
......
<template>
<RelDialog :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'>
<!-- 填写表单内容,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="xjrq" prop="xjrq">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.xjrq" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<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-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="设备ID" ref="sbxxid" prop="sbxxid">
<el-input :readonly="readonly" v-model="form.sbxxid" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="安装位置" ref="azwz" prop="azwz">
<el-input :readonly="readonly" v-model="form.azwz" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="检查情况" ref="jcqk" prop="jcqk">
<el-input :readonly="readonly" v-model="form.jcqk" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="检查人" ref="jcrid" prop="jcrid">
<el-input :readonly="readonly" v-model="form.jcrid" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="检查时间" ref="jcsj" prop="jcsj">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.jcsj" placeholder="选择日期">
</el-date-picker>
</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="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>
<script>
import {editMixin} from 'common'
export default {
mixins: [editMixin],
/* 存放index页面传递的额外参数*/
mounted() {
},
/* 组件名称*/
name: "aqglSbxjEdit",
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data() {
return {
/* 额外初始化,根据需求*/
systemType: [],
bmList: [],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: {
//ID
id:'',
//巡检日期
xjrq:new Date().getTime(),
//设备分类
flid:'',
//设备ID
sbxxid:'',
//安装位置
azwz:'',
//检查状态
zt:'',
//检查情况
jcqk:'',
//检查人
jcrid:'',
//检查时间
jcsj:new Date().getTime(),
//备注
bz:'',
//维护人编码
whrid:'',
//维护人
whr:'',
//维护时间
whsj:new Date().getTime(),
//创建人编码
cjrid:'',
//创建人
cjr:'',
//创建时间
cjsj:new Date().getTime(),
//系统版本
sysversion:'',
},
/* form提交时的规则,具体规则参考官网*/
rules: {
}
}
},
methods: {
}
}
</script>
<style scoped lang="scss">
</style>
<template>
<div class="min_full">
<!-- 查询条件-->
<div class="search" v-condition>
<SearchButton :app='app'></SearchButton>
<el-row :gutter="20" class="search-row-1">
<el-col :span="12" class="search-col">
<div class="search-item">
<span class="search-span">名称:</span>
<el-input v-model="queryParams.info"></el-input>
</div>
</el-col>
</el-row>
</div>
<!-- 按钮操作-->
<el-row class="tool-bar">
<PrintButton :app='app'></PrintButton>
<ViewButton ref="view" :app='app'></ViewButton>
<AddButton ref="add" :app='app'></AddButton>
<CopyButton ref="copy" :app='app'></CopyButton>
<EditButton ref="edit" :app='app'></EditButton>
<AttachFileButton :app='app' ></AttachFileButton>
<FieldButton :app='app'></FieldButton>
<ExcelButton :app='app'></ExcelButton>
<!-- 额外按钮-->
<!-- 表头设置 -->
<!-- 权限-->
</el-row>
<!-- 表格-->
<div class="tablePagers">
<TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem'
@getRow='getRow'>
</TablePager>
</div>
</div>
</template>
<script>
/* 引入需要的接口*/
import {
doQuery,
doAdd,
doUpdate,
doDelete
} from '@/api/equipment/sbxj.js';
/* edit页面*/
import Edit from './edit'
import {
tableMixin
} from 'common'
export default {
mixins: [tableMixin],
name: 'aqglSbxj',
/* 初始额外赋值*/
async mounted() {
this.$refs['TablePager'].pageQuery()
},
data() {
return {
/*需要的额外参数 */
showDialog: false,
DialogName: '',
type: '',
DialogTitle: '',
/* 基础url*/
baseUrl: '/aqgl/sbgl/sbxj',
/* 查询参数*/
queryParams: {
info: ''
},
/* 表格标题对应参数*/
tableTitle: [
{label: "巡检日期", prop: "xjrq", fieldType: "ftDateTime"},
{label: "设备分类", prop: "xtfl", fieldType: "ftString",width:96},
{label: "设备分类", prop: "xtflName", fieldType: "ftString",width:96},
{label: "设备ID", prop: "sbxxid", fieldType: "ftString",width:192},
{label: "设备编号", prop: "sbxxCode", fieldType: "ftString",width:192},
{label: "设备名称", prop: "sbxxName", fieldType: "ftString",width:192},
{label: "安装位置", prop: "azwz", fieldType: "ftString",width:300},
{label: "检查状态", prop: "zt", fieldType: "ftString",width:12},
{label: "检查状态", prop: "ztName", fieldType: "ftString",width:12},
{label: "检查情况", prop: "jcqk", fieldType: "ftString",width:300},
{label: "检查人", prop: "jcrid", fieldType: "ftString",width:192},
{label: "检查人", prop: "jcrName", fieldType: "ftString",width:192},
{label: "检查时间", prop: "jcsj", fieldType: "ftDateTime"},
{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"},
]
}
},
methods: {
/* 基础查询*/
query: doQuery,
/* 基础增*/
apiAdd: doAdd,
/* 基础更新*/
apiUpdate: doUpdate,
/* 删除操作*/
apiDelete: doDelete,
/* 初始化赋值操作*/
init() {
}
},
components: {
Edit,
}
}
</script>
<style scoped>
</style>
...@@ -3,14 +3,19 @@ ...@@ -3,14 +3,19 @@
<!-- 填写表单内容,slot=form必写--> <!-- 填写表单内容,slot=form必写-->
<el-form 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="24">
<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="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="12"> <el-col :span="12">
<el-form-item label="档案编号" ref="dabh" prop="dabh"> <el-form-item label="名称" ref="name" prop="name">
<el-input :readonly="readonly" v-model="form.dabh" ></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">
...@@ -28,11 +33,7 @@ ...@@ -28,11 +33,7 @@
<el-input :readonly="readonly" v-model="form.flid" ></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-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-col :span="12">
<el-form-item label="下次检验日期" ref="xcjyrq" prop="xcjyrq"> <el-form-item label="下次检验日期" ref="xcjyrq" prop="xcjyrq">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date" <el-date-picker style="width: 100%;" :readonly="readonly" type="date"
...@@ -94,11 +95,11 @@ ...@@ -94,11 +95,11 @@
<el-input :readonly="readonly" v-model="form.sydd" ></el-input> <el-input :readonly="readonly" v-model="form.sydd" ></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="pzxx" prop="pzxx"> <el-form-item label="拍照选项" ref="pzxx" prop="pzxx">
<el-input :readonly="readonly" v-model="form.pzxx" ></el-input> <el-input :readonly="readonly" v-model="form.pzxx" ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col> -->
<el-col :span="24"> <el-col :span="24">
<el-form-item label="用途" ref="yt" prop="yt"> <el-form-item label="用途" ref="yt" prop="yt">
<el-input :readonly="readonly" v-model="form.yt" ></el-input> <el-input :readonly="readonly" v-model="form.yt" ></el-input>
...@@ -458,7 +459,7 @@ ...@@ -458,7 +459,7 @@
//档案编号 //档案编号
dabh:'', dabh:'',
//系统分类 //系统分类
xtfl:'', xtfl:'3',
//设备分类 //设备分类
flid:'', flid:'',
//名称 //名称
...@@ -485,8 +486,6 @@ ...@@ -485,8 +486,6 @@
sl:'', sl:'',
//出厂日期 //出厂日期
ccrq:new Date().getTime(), ccrq:new Date().getTime(),
//系统分类
xtfl:'',
//工作级别 //工作级别
gzjb:'', gzjb:'',
//跨度 //跨度
......
...@@ -8,23 +8,19 @@ ...@@ -8,23 +8,19 @@
<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></el-input> <el-input v-model="queryParams.dabh"></el-input>
</div> </div>
</el-col> </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-select></el-select> <el-input v-model="queryParams.sbxx"></el-input>
</div> </div>
</el-col> </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-date-picker <el-input v-model="queryParams.azdd"></el-input>
v-model="queryParams.ksrq"
type="date"
placeholder="选择日期">
</el-date-picker>
</div> </div>
</el-col> </el-col>
...@@ -69,7 +65,7 @@ ...@@ -69,7 +65,7 @@
} from 'common' } from 'common'
export default { export default {
mixins: [tableMixin], mixins: [tableMixin],
name: 'appVersion', name: 'maintain',
/* 初始额外赋值*/ /* 初始额外赋值*/
async mounted() { async mounted() {
...@@ -87,8 +83,10 @@ ...@@ -87,8 +83,10 @@
baseUrl: '/aqgl/sbxx', baseUrl: '/aqgl/sbxx',
/* 查询参数*/ /* 查询参数*/
queryParams: { queryParams: {
ksrq: '', xtfl:"3",
jsrq: '' dabh:"",
azdd:"",
sbxx:"",
}, },
/* 表格标题对应参数*/ /* 表格标题对应参数*/
tableTitle: [ tableTitle: [
...@@ -167,7 +165,7 @@ ...@@ -167,7 +165,7 @@
// {label: "发动机型号", prop: "fdjxh", fieldType: "ftString",width:240}, // {label: "发动机型号", prop: "fdjxh", fieldType: "ftString",width:240},
// {label: "发动机编号", prop: "fdjbh", fieldType: "ftString",width:240}, // {label: "发动机编号", prop: "fdjbh", fieldType: "ftString",width:240},
// {label: "底盘车架号", prop: "dpcjh", fieldType: "ftString",width:240}, // {label: "底盘车架号", prop: "dpcjh", fieldType: "ftString",width:240},
{label: "拍照选项", prop: "pzxx", fieldType: "ftString",width:60}, {label: "拍照选项", prop: "pzxx", fieldType: "ftString",width:160},
// {label: "附件数", prop: "attachcount", fieldType: "int"}, // {label: "附件数", prop: "attachcount", fieldType: "int"},
{label: "备注", prop: "bz", fieldType: "ftString",width:300}, {label: "备注", prop: "bz", fieldType: "ftString",width:300},
// {label: "维护人", prop: "whr", fieldType: "ftString"}, // {label: "维护人", prop: "whr", fieldType: "ftString"},
......
...@@ -9,8 +9,8 @@ ...@@ -9,8 +9,8 @@
</el-form-item> </el-form-item>
</el-col> --> </el-col> -->
<el-col :span="12"> <el-col :span="12">
<el-form-item label="档案编号" ref="dabh" prop="dabh"> <el-form-item label="设备编码" ref="code" prop="code">
<el-input :readonly="readonly" v-model="form.dabh" ></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">
...@@ -201,246 +201,7 @@ ...@@ -201,246 +201,7 @@
<el-input type="textarea" :readonly="readonly" v-model="form.bz" ></el-input> <el-input type="textarea" :readonly="readonly" v-model="form.bz" ></el-input>
</el-form-item> </el-form-item>
</el-col> </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="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-row>
<el-row :gutter="20">
<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="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="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>
<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="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> </el-form>
</RelDialog> </RelDialog>
</template> </template>
...@@ -450,7 +211,9 @@ ...@@ -450,7 +211,9 @@
mixins: [editMixin], mixins: [editMixin],
/* 存放index页面传递的额外参数*/ /* 存放index页面传递的额外参数*/
mounted() { mounted() {
if(this.type=="add"){
this.form.flid=this.app.editDataX
}
}, },
/* 组件名称*/ /* 组件名称*/
name: "aqglSbxxEdit", name: "aqglSbxxEdit",
...@@ -463,7 +226,7 @@ ...@@ -463,7 +226,7 @@
systemType: [], systemType: [],
bmList: [], bmList: [],
mid:"",
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/ /* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: { form: {
//ID //ID
...@@ -473,7 +236,7 @@ ...@@ -473,7 +236,7 @@
//档案编号 //档案编号
dabh:'', dabh:'',
//系统分类 //系统分类
xtfl:'', xtfl:'1',
//设备分类 //设备分类
flid:'', flid:'',
//名称 //名称
...@@ -500,8 +263,6 @@ ...@@ -500,8 +263,6 @@
sl:'', sl:'',
//出厂日期 //出厂日期
ccrq:new Date().getTime(), ccrq:new Date().getTime(),
//系统分类
xtfl:'',
//工作级别 //工作级别
gzjb:'', gzjb:'',
//跨度 //跨度
...@@ -636,8 +397,8 @@ ...@@ -636,8 +397,8 @@
cjr:'', cjr:'',
//创建时间 //创建时间
cjsj:new Date().getTime(), cjsj:new Date().getTime(),
//系统版本 mid:""
sysversion:'',
}, },
/* form提交时的规则,具体规则参考官网*/ /* form提交时的规则,具体规则参考官网*/
rules: { rules: {
......
<template> <template>
<div style="display: flex;"> <div style="display: flex;">
<div class="min_full" style="width: 200px;border-right: 0px;"> <div class="min_full" style="width: 200px;border-right: 0px;">
<TreeBase :app='app' @selected='selectedTree'></TreeBase> <TreeBase :app='app' @selected='selectedTree' :dgtype="3"></TreeBase>
</div> </div>
<div class="min_full" style="width: calc(100% - 200px)"> <div class="min_full" style="width: calc(100% - 200px)">
<!-- 查询条件--> <!-- 查询条件-->
...@@ -12,30 +12,39 @@ ...@@ -12,30 +12,39 @@
<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.usercx" size="small" class="search-input"></el-input> <el-input v-model="queryParams.dabh" size="small" class="search-input"></el-input>
</div> </div>
</el-col> </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.phone" size="small" class="search-input"></el-input> <el-input v-model="queryParams.sbxx" size="small" class="search-input"></el-input>
</div> </div>
</el-col> </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.phone" size="small" class="search-input"></el-input> <el-date-picker
v-model="queryParams.jyrq"
type="date"
placeholder="选择日期">
</el-date-picker>
</div> </div>
</el-col> </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.phone" size="small" class="search-input"></el-input> <el-select v-model="queryParams.tybz" placeholder="请选择">
<el-option
v-for="item in options"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
<!-- 按钮操作--> <!-- 按钮操作-->
<el-row class="tool-bar"> <el-row class="tool-bar">
...@@ -54,7 +63,6 @@ ...@@ -54,7 +63,6 @@
<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>
...@@ -70,8 +78,9 @@ ...@@ -70,8 +78,9 @@
doQuery, doQuery,
doAdd, doAdd,
doUpdate, doUpdate,
doDelete doDelete,
} from '@/api/equipment/sbxx.js'; } from '@/api/equipment/sbxx.js';
import {doQuery as getSbflinfo } from '@/api/equipment/sbfl.js'
/* edit页面*/ /* edit页面*/
import Edit from './edit' import Edit from './edit'
import { import {
...@@ -79,15 +88,13 @@ ...@@ -79,15 +88,13 @@
} from 'common' } from 'common'
export default { export default {
mixins: [tableMixin], mixins: [tableMixin],
name: 'appVersion', name: 'specialEquipment',
/* 初始额外赋值*/ /* 初始额外赋值*/
async mounted() { async mounted() {
}, },
data() { data() {
return { return {
/*需要的额外参数 */ /*需要的额外参数 */
showDialog: false, showDialog: false,
DialogName: '', DialogName: '',
...@@ -97,19 +104,34 @@ ...@@ -97,19 +104,34 @@
baseUrl: '/aqgl/sbxx', baseUrl: '/aqgl/sbxx',
/* 查询参数*/ /* 查询参数*/
queryParams: { queryParams: {
dabh:"",
sbxx:"",
jyrq:"",
tybz:"",
flid:"",
xtfl:"1"
}, },
editDataX:"",
/* 树的标题 */ /* 树的标题 */
treeTitle: '设备分类', treeTitle: '设备分类',
treeDefaultProps: { treeDefaultProps: {
children: 'children', children: 'children',
label: 'bmmc' label: 'name',
fatherId:'xtfl',
sonId:'id',
rootName:"1"
}, },
apiTreeQuery:getSbflinfo,
treeQueryParams:{xtfl:"1"},
options:[
{label:"是",value:"Y"},
{label:"否",value:"N"},
],
/* 表格标题对应参数*/ /* 表格标题对应参数*/
tableTitle: [ tableTitle: [
{label: "档案编号", prop: "dabh", fieldType: "ftString",width:300}, {label: "档案编号", prop: "dabh", fieldType: "ftString",width:100},
{label: "名称", prop: "name", fieldType: "ftString",width:300}, {label: "名称", prop: "name", fieldType: "ftString",width:200},
{label: "制造商", prop: "productor", fieldType: "ftString",width:300}, {label: "制造商", prop: "productor", fieldType: "ftString",width:200},
{label: "使用状态", prop: "tybzName", fieldType: "ftString",width:80}, {label: "使用状态", prop: "tybzName", fieldType: "ftString",width:80},
...@@ -130,11 +152,12 @@ ...@@ -130,11 +152,12 @@
}, },
methods: { methods: {
selectedTree(e){ selectedTree(e){
this.queryParams.bmid=e.id||'root' this.queryParams.flid=e.id||'1';
this.$refs['TablePager'].pageQuery() this.$refs['TablePager'].pageQuery();
this.editDataX=e.id;
}, },
/* 基础查询*/
/* 基础查询*/
query: doQuery, query: doQuery,
/* 基础增*/ /* 基础增*/
apiAdd: doAdd, apiAdd: doAdd,
......
...@@ -20,11 +20,8 @@ ...@@ -20,11 +20,8 @@
<script> <script>
/* 引入需要的接口*/ /* 引入需要的接口*/
import { import {
QueryAppversion, QueryAppversion
QueryApptype,
AddAppversion,
DelAppversion,
UpdateAppversion
} from "common/src/api/system/dmgSystem.js"; } from "common/src/api/system/dmgSystem.js";
/* edit页面*/ /* edit页面*/
import Edit from './edit' import Edit from './edit'
...@@ -56,7 +53,9 @@ ...@@ -56,7 +53,9 @@
systemType: [], systemType: [],
baseUrl: 'kzzx/appversion', baseUrl: 'kzzx/appversion',
/* 查询参数*/ /* 查询参数*/
queryParams: {}, queryParams: {
},
/* 表格标题对应参数*/ /* 表格标题对应参数*/
tableTitle: [{ tableTitle: [{
prop: 'appid', prop: 'appid',
...@@ -75,12 +74,6 @@ ...@@ -75,12 +74,6 @@
/* 基础查询*/ /* 基础查询*/
query: QueryAppversion, query: QueryAppversion,
/* 基础增*/ /* 基础增*/
apiAdd: AddAppversion,
/* 基础更新*/
apiUpdate: UpdateAppversion,
/* 删除操作*/
apiDelete: DelAppversion,
/* 初始化赋值操作*/
}, },
/* 注册组件*/ /* 注册组件*/
components: { components: {
......
...@@ -34,9 +34,11 @@ module.exports = { ...@@ -34,9 +34,11 @@ module.exports = {
open: true, open: true,
proxy: { proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy // detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: { [process.env.VUE_APP_BASE_API]: {
target: `http://192.168.30.254:18080/dmg`, // target: `http://192.168.30.254:18080/dmg`,
// target: `http://localhost:9080/dmg`, target: `http://localhost:9080/sgaq`,
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: '' ['^' + process.env.VUE_APP_BASE_API]: ''
......
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