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

no message

parent 419383fc
......@@ -5,4 +5,4 @@ VUE_APP_TITLE = 陕钢安全管理
ENV = 'production'
# 陕钢安全管理/生产环境
VUE_APP_BASE_API = 'dmg'
VUE_APP_BASE_API = 'http://localhost:80/'
import request from 'common/src/utils/request'
/* 查询 */
export function getSbflInfo(params){
return doQuery
}
export function doQuery(query) {
return request({
url: '/aqgl/sbgl/sbfl/query',
method: 'post',
data: query||{}
})
return request({
url: '/aqgl/sbgl/sbfl/query',
method: 'post',
data: query||{}
})
}
/* 更新 */
export function doUpdate(query) {
......
......@@ -56,6 +56,16 @@
<el-input :readonly="readonly" v-model="form.sl" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="是否入档" ref="doc" prop="doc">
<el-switch
v-model="form.doc"
active-color="#13ce66"
active-value="Y" inactive-value="N"
inactive-color="#ff4949">
</el-switch>
</el-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>
......@@ -121,8 +131,6 @@
sl:'',
//出厂日期
ccrq:new Date().getTime(),
//系统分类
xtfl:'0',
//工作级别
gzjb:'',
//跨度
......@@ -258,7 +266,7 @@
//创建时间
cjsj:new Date().getTime(),
//系统版本
sysversion:'',
doc:""
},
/* form提交时的规则,具体规则参考官网*/
rules: {
......
......@@ -8,23 +8,26 @@
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">档案编号:</span>
<el-input></el-input>
<el-input v-model="queryParams.dabh"></el-input>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">设备名称:</span>
<el-input></el-input>
<el-input v-model="queryParams.sbxx"></el-input>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">是否已入档:</span>
<el-date-picker
v-model="queryParams.ksrq"
type="date"
placeholder="选择日期">
</el-date-picker>
<el-select v-model="queryParams.doc" placeholder="请选择">
<el-option
v-for="item in options"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</div>
</el-col>
......@@ -77,7 +80,10 @@
},
data() {
return {
options:[
{label:"是",value:"Y"},
{label:"否",value:"N"},
],
/*需要的额外参数 */
showDialog: false,
DialogName: '',
......@@ -87,10 +93,10 @@
baseUrl: '/aqgl/sbxx',
/* 查询参数*/
queryParams: {
ksrq: '',
jsrq: '',
xtfl:'0'
dabh: '',
sbxx: '',
doc:'',
xtfl:"0",
},
/* 表格标题对应参数*/
tableTitle: [
......@@ -110,73 +116,11 @@
{label: "用途", prop: "yt", fieldType: "ftString",width:300},
{label: "数量", prop: "sl", fieldType: "int"},
{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: "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}
{label: "备注", prop: "bz", fieldType: "ftString",width:300},
{label: "是否已入档", prop: "doc", fieldType: "ftString",width:300,show:false},
{label: "是否已入档", prop: "docName", fieldType: "ftString",width:300}
]
}
},
......
......@@ -3,11 +3,16 @@
<!-- 填写表单内容,slot=form必写-->
<el-form slot="form" ref="form" :model="form" label-width="80px" :rules="rules">
<el-row :gutter="20">
<el-col :span="12">
<el-col :span="24">
<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="code" prop="code">
<el-input :readonly="readonly" v-model="form.code" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="名称" ref="name" prop="name">
<el-input :readonly="readonly" v-model="form.name" ></el-input>
......@@ -36,16 +41,11 @@
</el-form-item>
</el-col>
<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-input :readonly="readonly" v-model="form.sydd" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-col :span="24">
<el-form-item label="制造商" ref="productor" prop="productor">
<el-input :readonly="readonly" v-model="form.productor" ></el-input>
</el-form-item>
......@@ -463,7 +463,6 @@
//档案编号
dabh:'',
//系统分类
xtfl:'',
//设备分类
flid:'',
//名称
......@@ -491,7 +490,7 @@
//出厂日期
ccrq:new Date().getTime(),
//系统分类
xtfl:'',
xtfl:'2',
//工作级别
gzjb:'',
//跨度
......
......@@ -7,19 +7,19 @@
<el-row :gutter="20" class="search-row-1">
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">档案编号:</span>
<el-input></el-input>
<span class="search-span">系统名称:</span>
<el-input v-model="queryParams.xtmc"></el-input>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">设备名称:</span>
<el-select></el-select>
<el-input v-model="queryParams.name"></el-input>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">是否已入档:</span>
<span class="search-span">启用日期:</span>
<el-date-picker
v-model="queryParams.ksrq"
type="date"
......@@ -27,6 +27,19 @@
</el-date-picker>
</div>
</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>
</div>
......@@ -49,7 +62,15 @@
<div class="tablePagers">
<TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem'
@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>
</div>
</div>
......@@ -69,7 +90,7 @@
} from 'common'
export default {
mixins: [tableMixin],
name: 'appVersion',
name: 'environment',
/* 初始额外赋值*/
async mounted() {
......@@ -77,7 +98,10 @@
},
data() {
return {
options:[
{label:"在用",value:"Y"},
{label:"停用",value:"N"},
],
/*需要的额外参数 */
showDialog: false,
DialogName: '',
......@@ -87,23 +111,27 @@
baseUrl: '/aqgl/sbxx',
/* 查询参数*/
queryParams: {
ksrq: '',
jsrq: ''
xtmc:"",
name:"",
qyrq:"",
tybz:"",
xtfl:"2"
},
/* 表格标题对应参数*/
tableTitle: [
// {label: "设备编码", prop: "code", fieldType: "ftString",width:300},
{label: "设备编码", prop: "code", fieldType: "ftString",width:300},
// {label: "档案编号", prop: "dabh", fieldType: "ftString",width:300},
// {label: "系统分类", prop: "xtflName", fieldType: "ftString",width:48},
// {label: "设备分类", prop: "sbflName", fieldType: "ftString",width:96},
{label: "名称", prop: "name", fieldType: "ftString",width:300},
// {label: "设备分类", prop: "sbflName", fieldType: "ftString",width:96},
{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: "model", 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: "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: "yt", fieldType: "ftString",width:300},
{label: "数量", prop: "sl", fieldType: "int"},
......@@ -132,41 +160,6 @@
// {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},
......@@ -191,7 +184,32 @@
/* 初始化赋值操作*/
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,17 +12,33 @@
</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-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-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-col :span="24">
<el-form-item label="设施" ref="sbxxName" prop="sbxxName">
<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-col>
<el-col :span="12">
</el-row>
<el-row :gutter="20">
<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>
......@@ -67,6 +83,7 @@
</template>
<script>
import {editMixin} from 'common'
import {doQuery as getSbInfo} from '@/api/equipment/sbxj.js';
export default {
mixins: [editMixin],
/* 存放index页面传递的额外参数*/
......@@ -74,23 +91,30 @@
},
/* 组件名称*/
name: "aqglSbxjEdit",
name: "inspection",
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data() {
return {
/* 额外初始化,根据需求*/
systemType: [],
options:[
{label:"(空)",value:""},
{label:"普通设备",value:"0"},
{label:"特种设备",value:"1"},
{label:"环保设备",value:"2"},
{label:"防护设备",value:"3"},
],
sbxxInfo:[],
bmList: [],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: {
//ID
id:'',
//巡检日期
xjrq:new Date().getTime(),
sbxxName:"",
sbxxCode:"",
//设备分类
xtfl:'',
//设备ID
......@@ -119,8 +143,6 @@
cjr:'',
//创建时间
cjsj:new Date().getTime(),
//系统版本
sysversion:'',
},
/* form提交时的规则,具体规则参考官网*/
rules: {
......@@ -129,9 +151,18 @@
}
},
methods: {
jcrSelected(row){
this.jcrid=row.id
}
jcrSelected(row){
this.jcrid=row.id
},
change(e){
let _this=this;
getSbInfo({mid:e}).then(res=>{
if(res.success){
_this.sbxxInfo=res.data.records
}
})
}
}
}
</script>
......
......@@ -8,33 +8,39 @@
<el-col :span="6" class="search-col">
<div class="search-item">
<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>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">设施编号:</span>
<el-select></el-select>
<el-input v-model="queryParams.code"></el-input>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">设施名称:</span>
<el-date-picker
v-model="queryParams.ksrq"
type="date"
placeholder="选择日期">
</el-date-picker>
<el-input v-model="queryParams.sbxx"></el-input>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">检查状态:</span>
<el-date-picker
v-model="queryParams.ksrq"
type="date"
placeholder="选择日期">
</el-date-picker>
<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>
......@@ -100,7 +106,18 @@
},
data() {
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,
DialogName: '',
......@@ -110,19 +127,18 @@
baseUrl: '/aqgl/sbgl/sbxj',
/* 查询参数*/
queryParams: {
ksrq: '',
jsrq: ''
xtfl:""
},
/* 表格标题对应参数*/
tableTitle: [
{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: "设备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:100},
{label: "检查状态", prop: "zt", fieldType: "ftString",width:100,show:false},
{label: "检查状态", prop: "ztName", fieldType: "ftString",width:100},
{label: "检查情况", prop: "jcqk", fieldType: "ftString",width:300},
{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 @@
<!-- 填写表单内容,slot=form必写-->
<el-form slot="form" ref="form" :model="form" label-width="110px" :rules="rules">
<el-row :gutter="20">
<el-col :span="12">
<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-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-form-item label="档案编号" ref="dabh" prop="dabh">
<el-input :readonly="readonly" v-model="form.dabh" ></el-input>
<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">
......@@ -28,11 +33,7 @@
<el-input :readonly="readonly" v-model="form.flid" ></el-input>
</el-form-item>
</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-form-item label="下次检验日期" ref="xcjyrq" prop="xcjyrq">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
......@@ -94,11 +95,11 @@
<el-input :readonly="readonly" v-model="form.sydd" ></el-input>
</el-form-item>
</el-col> -->
<el-col :span="12">
<!-- <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> -->
<el-col :span="24">
<el-form-item label="用途" ref="yt" prop="yt">
<el-input :readonly="readonly" v-model="form.yt" ></el-input>
......@@ -458,7 +459,7 @@
//档案编号
dabh:'',
//系统分类
xtfl:'',
xtfl:'3',
//设备分类
flid:'',
//名称
......@@ -485,8 +486,6 @@
sl:'',
//出厂日期
ccrq:new Date().getTime(),
//系统分类
xtfl:'',
//工作级别
gzjb:'',
//跨度
......
......@@ -8,24 +8,20 @@
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">档案编号:</span>
<el-input></el-input>
<el-input v-model="queryParams.dabh"></el-input>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">设备名称:</span>
<el-select></el-select>
<el-input v-model="queryParams.sbxx"></el-input>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">是否已入档:</span>
<el-date-picker
v-model="queryParams.ksrq"
type="date"
placeholder="选择日期">
</el-date-picker>
</div>
<div class="search-item">
<span class="search-span">安装位置:</span>
<el-input v-model="queryParams.azdd"></el-input>
</div>
</el-col>
</el-row>
......@@ -69,7 +65,7 @@
} from 'common'
export default {
mixins: [tableMixin],
name: 'appVersion',
name: 'maintain',
/* 初始额外赋值*/
async mounted() {
......@@ -87,8 +83,10 @@
baseUrl: '/aqgl/sbxx',
/* 查询参数*/
queryParams: {
ksrq: '',
jsrq: ''
xtfl:"3",
dabh:"",
azdd:"",
sbxx:"",
},
/* 表格标题对应参数*/
tableTitle: [
......@@ -167,7 +165,7 @@
// {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:160},
// {label: "附件数", prop: "attachcount", fieldType: "int"},
{label: "备注", prop: "bz", fieldType: "ftString",width:300},
// {label: "维护人", prop: "whr", fieldType: "ftString"},
......
<template>
<div style="display: flex;">
<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 class="min_full" style="width: calc(100% - 200px)">
<!-- 查询条件-->
......@@ -12,30 +12,39 @@
<el-col :span="6" class="search-col">
<div class="search-item">
<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>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<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>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<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>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<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>
</el-col>
</el-row>
</div>
<!-- 按钮操作-->
<el-row class="tool-bar">
......@@ -54,7 +63,6 @@
<div class="tablePagers">
<TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem'
@getRow='getRow'>
</TablePager>
</div>
......@@ -70,8 +78,9 @@
doQuery,
doAdd,
doUpdate,
doDelete
doDelete,
} from '@/api/equipment/sbxx.js';
import {doQuery as getSbflinfo } from '@/api/equipment/sbfl.js'
/* edit页面*/
import Edit from './edit'
import {
......@@ -79,15 +88,13 @@
} from 'common'
export default {
mixins: [tableMixin],
name: 'appVersion',
name: 'specialEquipment',
/* 初始额外赋值*/
async mounted() {
},
data() {
return {
/*需要的额外参数 */
showDialog: false,
DialogName: '',
......@@ -97,19 +104,34 @@
baseUrl: '/aqgl/sbxx',
/* 查询参数*/
queryParams: {
dabh:"",
sbxx:"",
jyrq:"",
tybz:"",
flid:"",
xtfl:"1"
},
editDataX:"",
/* 树的标题 */
treeTitle: '设备分类',
treeDefaultProps: {
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: [
{label: "档案编号", prop: "dabh", fieldType: "ftString",width:300},
{label: "名称", prop: "name", fieldType: "ftString",width:300},
{label: "制造商", prop: "productor", fieldType: "ftString",width:300},
{label: "档案编号", prop: "dabh", fieldType: "ftString",width:100},
{label: "名称", prop: "name", fieldType: "ftString",width:200},
{label: "制造商", prop: "productor", fieldType: "ftString",width:200},
{label: "使用状态", prop: "tybzName", fieldType: "ftString",width:80},
......@@ -130,11 +152,12 @@
},
methods: {
selectedTree(e){
this.queryParams.bmid=e.id||'root'
this.$refs['TablePager'].pageQuery()
this.queryParams.flid=e.id||'1';
this.$refs['TablePager'].pageQuery();
this.editDataX=e.id;
},
/* 基础查询*/
/* 基础查询*/
query: doQuery,
/* 基础增*/
apiAdd: doAdd,
......
......@@ -20,11 +20,8 @@
<script>
/* 引入需要的接口*/
import {
QueryAppversion,
QueryApptype,
AddAppversion,
DelAppversion,
UpdateAppversion
QueryAppversion
} from "common/src/api/system/dmgSystem.js";
/* edit页面*/
import Edit from './edit'
......@@ -56,7 +53,9 @@
systemType: [],
baseUrl: 'kzzx/appversion',
/* 查询参数*/
queryParams: {},
queryParams: {
},
/* 表格标题对应参数*/
tableTitle: [{
prop: 'appid',
......@@ -75,12 +74,6 @@
/* 基础查询*/
query: QueryAppversion,
/* 基础增*/
apiAdd: AddAppversion,
/* 基础更新*/
apiUpdate: UpdateAppversion,
/* 删除操作*/
apiDelete: DelAppversion,
/* 初始化赋值操作*/
},
/* 注册组件*/
components: {
......
......@@ -34,9 +34,11 @@ module.exports = {
open: true,
proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: {
target: `http://192.168.30.254:18080/dmg`,
// target: `http://localhost:9080/dmg`,
// target: `http://192.168.30.254:18080/dmg`,
target: `http://localhost:9080/sgaq`,
changeOrigin: true,
pathRewrite: {
['^' + 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