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

异物/检修 新增绑定设备 一些属性cz 管径等必填

parent 2440fb33
<template>
<BasePage :power='power' ref="basePage" class="min_full" :config="config">
<template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template>
<template #toolbar="ctx">
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">示例按钮</el-button> -->
</template>
</BasePage>
</template>
<script>
export default {
name: 'wlxx',
data() {
return {
power: {
add: false,
copy: false,
/* 手动控制删除 */
delButton: false,
/* 手动控制编辑按钮权限 */
editButton: false,
/* 是否渲染右侧操作按钮 */
operateButtons: false,
/* 是否开启工作流按钮 */
workFlow: false,
/* 表格开启选择,以及记住选择 */
showSelection: false,
saveSelected: false
},
config: {
/* 基本配置*/
url: 'sbgl/usbxx',
tableTitle: [
{
title: "设备编码",
field: "code",
width: 140
},
{
title: "设备名称",
field: "name",
width: 140
},
// {
// title: "层级码",
// field: "cjid",
// width: 140
// },
{
title: "设备类型",
field: "type",
width: 140,
transform: {
"url": "sbgl/usblx/query",
"label": "name",
"value": "code"
}
},
{
title: "机组编码",
field: "jzbm",
width: 140,
transform: {
"url": "sbgl/ujzbm/query",
"label": "name",
"value": "code"
}
},
{
title: "风险等级",
field: "fxdj",
width: 140,
transform: {
"url": "sbgl/usbxx/init/fxlevel",
"label": "name",
"value": "id"
}
},
{
title: "规格",
field: "gg",
width: 140
},
{
title: "管径",
field: "gj",
width: 140
},
{
title: "流通直径",
field: "ltzj",
width: 140
},
{
title: "备注",
field: "bz",
width: 250
},
{
title: "创建人",
field: "cjr",
width:120
},
{
title: "创建时间",
field: "cjsj",
fieldType: 'ftDateTime'
},
{
title: "维护人",
field: "whr",
hidden: true,
width:120
},
{
title: "维护时间",
field: "whsj",
fieldType: 'ftDateTime',
hidden: true
}
],
queryParams: [
[
{
label: '设备信息',
prop: 'sbxxInfo',
span: 6,
type: 'input',
value: ''
}
]
],
/* 默认启停用 */
showqt: false,
}
}
},
methods: {
/* 示例*/
// demo(basePage){
// }
},
components: {
}
}
</script>
<style>
</style>
......@@ -36,6 +36,7 @@
prop: 'cz',
span: 12,
type: 'input',
required:true,
},
{
label: '规格',
......
......@@ -32,6 +32,13 @@
type: 'input',
required:true,
},
{
label: '材质',
prop: 'cz',
span: 12,
type: 'input',
required:true,
},
{
label: '规格',
prop: 'gg',
......
......@@ -31,6 +31,11 @@
field: "name",
width: 140
},
{
title: "材质",
field: "cz",
width: 200
},
{
title: "规格",
field: "gg",
......
......@@ -47,6 +47,7 @@
prop: 'cz',
span: 24,
type: 'input',
required:true
},
{
label: '异物地点',
......
......@@ -13,11 +13,41 @@
import {
editMixin
} from 'common'
import sbxx from '@/views/auxinput/sbxx'
export default {
mixins: [editMixin],
data() {
return {
editColItemList: [
{
label: '设备名称',
prop: 'sbxxid',
span: 12,
required: true,
type: 'AuxInput',
typeConfig: {
isRequest: false,
dynamic: true,
code: true,
component: sbxx,
label: 'sbxxName',
transform: {
value: 'id',
label: 'name'
},
give(res){
this.form.sbxxCode=res.code
}
}
},
{
label: '设备编码',
prop: 'sbxxCode',
span: 12,
type: 'input',
required: true,
readonly: true
},
{
label: '检修内容',
......
......@@ -45,7 +45,18 @@
config: {
/* 基本配置*/
url: 'jxgl/usbjx',
tableTitle: [{
tableTitle: [
{
title: "设备名称",
field: "sbxxName",
width: 180
},
{
title: "设备编码",
field: "sbxxCode",
width: 180
},
{
title: "检修内容",
field: "jxnr",
width: 350
......
......@@ -110,6 +110,7 @@
prop: 'gj',
span: 8,
"type": "input",
required: true,
},
{
label: '流通直径',
......
......@@ -110,6 +110,7 @@
prop: 'gj',
span: 8,
"type": "input",
required: true
},
{
label: '流通直径',
......
......@@ -13,12 +13,41 @@
import {
editMixin
} from 'common'
import sbxx from '@/views/auxinput/sbxx'
export default {
mixins: [editMixin],
data() {
return {
editColItemList: [
{
label: '设备名称',
prop: 'sbxxid',
span: 12,
required: true,
type: 'AuxInput',
typeConfig: {
isRequest: false,
dynamic: true,
code: true,
component: sbxx,
label: 'sbxxName',
transform: {
value: 'id',
label: 'name'
},
give(res){
this.form.sbxxCode=res.code
}
}
},
{
label: '设备编码',
prop: 'sbxxCode',
span: 12,
type: 'input',
required: true,
readonly: true
},
{
label: '名称',
prop: 'name',
......@@ -57,6 +86,7 @@
prop: 'cz',
span: 12,
type: 'input',
required: true,
},
{
label: "地点",
......
......@@ -36,7 +36,16 @@
"value": "id"
}
},
{
title: "设备名称",
field: "sbxxName",
width: 180
},
{
title: "设备编码",
field: "sbxxCode",
width: 180
},
{
label: "规格",
prop: "ggxh",
......
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