update hints
This commit is contained in:
parent
b348a31b24
commit
ac28476024
@ -162,7 +162,7 @@ export default {
|
|||||||
input: true,
|
input: true,
|
||||||
label: '属性名称',
|
label: '属性名称',
|
||||||
prop: 'name',
|
prop: 'name',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '属性名称不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
v-loading="formLoading">
|
v-loading="formLoading">
|
||||||
<el-row :gutter="20">
|
<el-row :gutter="20">
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="设备名称" prop="name" :rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
<el-form-item label="设备名称" prop="name" :rules="[{ required: true, message: '设备名称不能为空', trigger: 'blur' }]">
|
||||||
<el-input v-model="form.name" :disabled="disabled" placeholder="请输入设备名称"></el-input>
|
<el-input v-model="form.name" :disabled="disabled" placeholder="请输入设备名称"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
@ -33,7 +33,7 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="设备类型" prop="equipmentTypeId"
|
<el-form-item label="设备类型" prop="equipmentTypeId"
|
||||||
:rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
:rules="[{ required: true, message: '设备类型不能为空', trigger: 'blur' }]">
|
||||||
<el-select v-model="form.equipmentTypeId" :disabled="disabled" filterable placeholder="请选择设备类型">
|
<el-select v-model="form.equipmentTypeId" :disabled="disabled" filterable placeholder="请选择设备类型">
|
||||||
<el-option v-for="eqType in eqTypeList" :key="eqType.id" :label="eqType.name"
|
<el-option v-for="eqType in eqTypeList" :key="eqType.id" :label="eqType.name"
|
||||||
:value="eqType.id"></el-option>
|
:value="eqType.id"></el-option>
|
||||||
@ -43,7 +43,7 @@
|
|||||||
|
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="预计生产时间(min/天)" prop="workTime" :rules="[
|
<el-form-item label="预计生产时间(min/天)" prop="workTime" :rules="[
|
||||||
{ required: true, message: '不能为空', trigger: 'blur' },
|
{ required: true, message: '预计生产时间不能为空', trigger: 'blur' },
|
||||||
{
|
{
|
||||||
type: 'number',
|
type: 'number',
|
||||||
message: '请输入正确的数字值',
|
message: '请输入正确的数字值',
|
||||||
@ -71,7 +71,7 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="设备TT值" prop="tvalue" :rules="[
|
<el-form-item label="设备TT值" prop="tvalue" :rules="[
|
||||||
{ required: true, message: '不能为空', trigger: 'blur' },
|
{ required: true, message: '设备TT值不能为空', trigger: 'blur' },
|
||||||
{
|
{
|
||||||
type: 'number',
|
type: 'number',
|
||||||
message: '请输入正确的数字值',
|
message: '请输入正确的数字值',
|
||||||
@ -86,7 +86,7 @@
|
|||||||
<el-row :gutter="20">
|
<el-row :gutter="20">
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="产品加工时间(s)" prop="processingTime" :rules="[
|
<el-form-item label="产品加工时间(s)" prop="processingTime" :rules="[
|
||||||
{ required: true, message: '不能为空', trigger: 'blur' },
|
{ required: true, message: '产品加工时间不能为空', trigger: 'blur' },
|
||||||
{
|
{
|
||||||
type: 'number',
|
type: 'number',
|
||||||
message: '请输入正确的数字值',
|
message: '请输入正确的数字值',
|
||||||
|
@ -196,7 +196,7 @@ export default {
|
|||||||
input: true,
|
input: true,
|
||||||
label: '设备名称',
|
label: '设备名称',
|
||||||
prop: 'name',
|
prop: 'name',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '设备名称不能为空', trigger: 'blur' }],
|
||||||
// bind: {
|
// bind: {
|
||||||
// disabled: this.editMode == 'detail', // some condition, like detail mode...
|
// disabled: this.editMode == 'detail', // some condition, like detail mode...
|
||||||
// }
|
// }
|
||||||
@ -211,10 +211,6 @@ export default {
|
|||||||
input: true,
|
input: true,
|
||||||
label: '英文名称',
|
label: '英文名称',
|
||||||
prop: 'enName',
|
prop: 'enName',
|
||||||
// rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
|
||||||
// bind: {
|
|
||||||
// disabled: true, // some condition, like detail mode...
|
|
||||||
// }
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
@ -222,10 +218,6 @@ export default {
|
|||||||
input: true,
|
input: true,
|
||||||
label: '缩写',
|
label: '缩写',
|
||||||
prop: 'abbr',
|
prop: 'abbr',
|
||||||
// rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
|
||||||
// bind: {
|
|
||||||
// disabled: true, // some condition, like detail mode...
|
|
||||||
// }
|
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
@ -233,7 +225,7 @@ export default {
|
|||||||
label: '设备类型',
|
label: '设备类型',
|
||||||
prop: 'equipmentTypeId',
|
prop: 'equipmentTypeId',
|
||||||
url: '/base/core-equipment-type/page?pageNo=1&pageSize=100',
|
url: '/base/core-equipment-type/page?pageNo=1&pageSize=100',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '设备类型不能为空', trigger: 'blur' }],
|
||||||
bind: {
|
bind: {
|
||||||
filterable: true,
|
filterable: true,
|
||||||
},
|
},
|
||||||
@ -243,7 +235,7 @@ export default {
|
|||||||
label: '预计生产时间(min/天)',
|
label: '预计生产时间(min/天)',
|
||||||
prop: 'workTime',
|
prop: 'workTime',
|
||||||
rules: [
|
rules: [
|
||||||
{ required: true, message: '不能为空', trigger: 'blur' },
|
{ required: true, message: '预计生产时间不能为空', trigger: 'blur' },
|
||||||
{
|
{
|
||||||
type: 'number',
|
type: 'number',
|
||||||
message: '请输入正确的数字值',
|
message: '请输入正确的数字值',
|
||||||
@ -275,7 +267,7 @@ export default {
|
|||||||
prop: 'tvalue',
|
prop: 'tvalue',
|
||||||
label: '设备TT值',
|
label: '设备TT值',
|
||||||
rules: [
|
rules: [
|
||||||
{ required: true, message: '不能为空', trigger: 'blur' },
|
{ required: true, message: '设备TT值不能为空', trigger: 'blur' },
|
||||||
{
|
{
|
||||||
type: 'number',
|
type: 'number',
|
||||||
message: '请输入正确的数字值',
|
message: '请输入正确的数字值',
|
||||||
@ -291,7 +283,7 @@ export default {
|
|||||||
label: '产品加工时间(s)',
|
label: '产品加工时间(s)',
|
||||||
prop: 'processingTime',
|
prop: 'processingTime',
|
||||||
rules: [
|
rules: [
|
||||||
{ required: true, message: '不能为空', trigger: 'blur' },
|
{ required: true, message: '产品加工时间不能为空', trigger: 'blur' },
|
||||||
{
|
{
|
||||||
type: 'number',
|
type: 'number',
|
||||||
message: '请输入正确的数字值',
|
message: '请输入正确的数字值',
|
||||||
@ -304,7 +296,6 @@ export default {
|
|||||||
{
|
{
|
||||||
input: true,
|
input: true,
|
||||||
label: '制造商',
|
label: '制造商',
|
||||||
// rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
|
||||||
prop: 'manufacturer',
|
prop: 'manufacturer',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -317,7 +308,6 @@ export default {
|
|||||||
{
|
{
|
||||||
textarea: true,
|
textarea: true,
|
||||||
label: '功能描述',
|
label: '功能描述',
|
||||||
// rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
|
||||||
prop: 'description',
|
prop: 'description',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
@ -149,7 +149,7 @@ export default {
|
|||||||
select: true,
|
select: true,
|
||||||
label: '产线',
|
label: '产线',
|
||||||
prop: 'productionLineId',
|
prop: 'productionLineId',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '产线名不能为空', trigger: 'blur' }],
|
||||||
url: '/base/core-production-line/listAll',
|
url: '/base/core-production-line/listAll',
|
||||||
bind: { clearable: true, filterable: true },
|
bind: { clearable: true, filterable: true },
|
||||||
// watch: 'workshopSectionId'
|
// watch: 'workshopSectionId'
|
||||||
@ -159,7 +159,7 @@ export default {
|
|||||||
label: '工段',
|
label: '工段',
|
||||||
prop: 'workshopSectionId',
|
prop: 'workshopSectionId',
|
||||||
depends: 'productionLineId',
|
depends: 'productionLineId',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '工段不能为空', trigger: 'blur' }],
|
||||||
bind: { clearable: true, filterable: true },
|
bind: { clearable: true, filterable: true },
|
||||||
url: '/base/core-workshop-section/listByParentId',
|
url: '/base/core-workshop-section/listByParentId',
|
||||||
},
|
},
|
||||||
@ -169,7 +169,7 @@ export default {
|
|||||||
select: true,
|
select: true,
|
||||||
label: '设备',
|
label: '设备',
|
||||||
prop: 'equipmentId',
|
prop: 'equipmentId',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '设备名不能为空', trigger: 'blur' }],
|
||||||
bind: { clearable: true, filterable: true },
|
bind: { clearable: true, filterable: true },
|
||||||
url: '/base/core-equipment/listAll',
|
url: '/base/core-equipment/listAll',
|
||||||
},
|
},
|
||||||
|
@ -135,7 +135,7 @@ export default {
|
|||||||
input: true,
|
input: true,
|
||||||
label: '设备类型名称',
|
label: '设备类型名称',
|
||||||
prop: 'name',
|
prop: 'name',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '设备类型名不能为空', trigger: 'blur' }],
|
||||||
// bind: {
|
// bind: {
|
||||||
// disabled: true, // some condition, like detail mode...
|
// disabled: true, // some condition, like detail mode...
|
||||||
// }
|
// }
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
<el-form-item
|
<el-form-item
|
||||||
label="产线"
|
label="产线"
|
||||||
prop="productionLineId"
|
prop="productionLineId"
|
||||||
:rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
:rules="[{ required: true, message: '产线不能为空', trigger: 'blur' }]">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="dataForm.productionLineId"
|
v-model="dataForm.productionLineId"
|
||||||
placeholder="请选择产线"
|
placeholder="请选择产线"
|
||||||
@ -35,7 +35,7 @@
|
|||||||
<el-form-item
|
<el-form-item
|
||||||
label="工段"
|
label="工段"
|
||||||
prop="workshopSectionId"
|
prop="workshopSectionId"
|
||||||
:rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
:rules="[{ required: true, message: '工段不能为空', trigger: 'blur' }]">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="dataForm.workshopSectionId"
|
v-model="dataForm.workshopSectionId"
|
||||||
filterable
|
filterable
|
||||||
@ -55,7 +55,7 @@
|
|||||||
<el-form-item
|
<el-form-item
|
||||||
label="设备"
|
label="设备"
|
||||||
prop="equipmentId"
|
prop="equipmentId"
|
||||||
:rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
:rules="[{ required: true, message: '设备不能为空', trigger: 'blur' }]">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="dataForm.equipmentId"
|
v-model="dataForm.equipmentId"
|
||||||
filterable
|
filterable
|
||||||
|
@ -176,7 +176,7 @@ export default {
|
|||||||
url: '/base/production-line/listAll',
|
url: '/base/production-line/listAll',
|
||||||
// prop: '__product_line', // __开头代表不传递给服务器
|
// prop: '__product_line', // __开头代表不传递给服务器
|
||||||
prop: 'productionLineId', // 编辑接口返回的产线id,所以不能使用上面那种形式
|
prop: 'productionLineId', // 编辑接口返回的产线id,所以不能使用上面那种形式
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '产线不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
select: true,
|
select: true,
|
||||||
@ -185,7 +185,7 @@ export default {
|
|||||||
// depends: '__product_line', // 依赖产线获取数据
|
// depends: '__product_line', // 依赖产线获取数据
|
||||||
depends: 'productionLineId',
|
depends: 'productionLineId',
|
||||||
prop: 'workshopSectionId',
|
prop: 'workshopSectionId',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '工段不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
@ -194,7 +194,7 @@ export default {
|
|||||||
label: '设备',
|
label: '设备',
|
||||||
url: '/base/core-equipment/page?pageNo=1&pageSize=100',
|
url: '/base/core-equipment/page?pageNo=1&pageSize=100',
|
||||||
prop: 'equipmentId',
|
prop: 'equipmentId',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '设备不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
input: true,
|
input: true,
|
||||||
|
@ -16,36 +16,20 @@
|
|||||||
<el-form-item
|
<el-form-item
|
||||||
label="报警编码"
|
label="报警编码"
|
||||||
prop="code"
|
prop="code"
|
||||||
:rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
:rules="[{ required: true, message: '报警编码不能为空', trigger: 'blur' }]">
|
||||||
<el-input
|
<el-input
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
v-model="dataForm.code"
|
v-model="dataForm.code"
|
||||||
@change="$emit('update', dataForm)"
|
@change="$emit('update', dataForm)"
|
||||||
placeholder="请输入工段排序" />
|
placeholder="请输入工段排序" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!--
|
|
||||||
<el-form-item
|
|
||||||
label="报警编码"
|
|
||||||
prop="code"
|
|
||||||
:rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
|
||||||
<el-select
|
|
||||||
v-model="dataForm.code"
|
|
||||||
placeholder="请选择产线"
|
|
||||||
@change="handleProductlineChange">
|
|
||||||
<el-option
|
|
||||||
v-for="opt in productionLineList"
|
|
||||||
:key="opt.value"
|
|
||||||
:label="opt.label"
|
|
||||||
:value="opt.value" />
|
|
||||||
</el-select>
|
|
||||||
</el-form-item> -->
|
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item
|
<el-form-item
|
||||||
label="报警类型"
|
label="报警类型"
|
||||||
prop="type"
|
prop="type"
|
||||||
:rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
:rules="[{ required: true, message: '报警类型不能为空', trigger: 'blur' }]">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="dataForm.type"
|
v-model="dataForm.type"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
@ -68,7 +52,7 @@
|
|||||||
<el-form-item
|
<el-form-item
|
||||||
label="报警级别"
|
label="报警级别"
|
||||||
prop="grade"
|
prop="grade"
|
||||||
:rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
:rules="[{ required: true, message: '报警级别不能为空', trigger: 'blur' }]">
|
||||||
<el-select
|
<el-select
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
v-model="dataForm.grade"
|
v-model="dataForm.grade"
|
||||||
@ -101,7 +85,7 @@
|
|||||||
<el-form-item
|
<el-form-item
|
||||||
label="参数列名"
|
label="参数列名"
|
||||||
prop="plcParamName"
|
prop="plcParamName"
|
||||||
:rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
:rules="[{ required: true, message: '参数列名不能为空', trigger: 'blur' }]">
|
||||||
<el-input
|
<el-input
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
v-model="dataForm.plcParamName"
|
v-model="dataForm.plcParamName"
|
||||||
@ -113,7 +97,7 @@
|
|||||||
<el-form-item
|
<el-form-item
|
||||||
label="报警内容"
|
label="报警内容"
|
||||||
prop="alarmContent"
|
prop="alarmContent"
|
||||||
:rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
:rules="[{ required: true, message: '报警内容不能为空', trigger: 'blur' }]">
|
||||||
<el-input
|
<el-input
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
v-model="dataForm.alarmContent"
|
v-model="dataForm.alarmContent"
|
||||||
|
@ -137,7 +137,7 @@ export default {
|
|||||||
label: '报警编码', // 自动生成
|
label: '报警编码', // 自动生成
|
||||||
prop: 'code',
|
prop: 'code',
|
||||||
url: '/base/equipment-group-alarm/getCode',
|
url: '/base/equipment-group-alarm/getCode',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '报警编码不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
select: true,
|
select: true,
|
||||||
@ -147,7 +147,7 @@ export default {
|
|||||||
{ label: '布尔型', value: 2 },
|
{ label: '布尔型', value: 2 },
|
||||||
{ label: '字符型', value: 1 },
|
{ label: '字符型', value: 1 },
|
||||||
],
|
],
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '报警类型不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
@ -168,13 +168,13 @@ export default {
|
|||||||
input: true,
|
input: true,
|
||||||
label: '参数列名', // 在实时数据库的列名
|
label: '参数列名', // 在实时数据库的列名
|
||||||
prop: 'plcParamName',
|
prop: 'plcParamName',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '参数列名不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
input: true,
|
input: true,
|
||||||
label: '报警内容',
|
label: '报警内容',
|
||||||
prop: 'alarmContent',
|
prop: 'alarmContent',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '报警内容不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
@ -177,7 +177,7 @@ export default {
|
|||||||
input: true,
|
input: true,
|
||||||
label: '关联表名',
|
label: '关联表名',
|
||||||
prop: 'plcTableName',
|
prop: 'plcTableName',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '关联表名不能为空', trigger: 'blur' }],
|
||||||
// bind: {
|
// bind: {
|
||||||
// disabled: true, // some condition, like detail mode...
|
// disabled: true, // some condition, like detail mode...
|
||||||
// }
|
// }
|
||||||
@ -187,7 +187,7 @@ export default {
|
|||||||
label: '编码',
|
label: '编码',
|
||||||
prop: 'code',
|
prop: 'code',
|
||||||
url: '/base/equipment-group/getCode',
|
url: '/base/equipment-group/getCode',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '编码不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
@ -195,7 +195,7 @@ export default {
|
|||||||
input: true,
|
input: true,
|
||||||
label: '标识',
|
label: '标识',
|
||||||
prop: 'name',
|
prop: 'name',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '标识不能为空', trigger: 'blur' }],
|
||||||
// bind: {
|
// bind: {
|
||||||
// disabled: true, // some condition, like detail mode...
|
// disabled: true, // some condition, like detail mode...
|
||||||
// }
|
// }
|
||||||
|
@ -166,13 +166,13 @@ export default {
|
|||||||
input: true,
|
input: true,
|
||||||
label: '参数列名',
|
label: '参数列名',
|
||||||
prop: 'plcParamName',
|
prop: 'plcParamName',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '参数列名不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
input: true,
|
input: true,
|
||||||
label: '参数名称',
|
label: '参数名称',
|
||||||
prop: 'name',
|
prop: 'name',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '参数名称不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
@ -181,7 +181,6 @@ export default {
|
|||||||
label: '单位',
|
label: '单位',
|
||||||
prop: 'unit',
|
prop: 'unit',
|
||||||
options: this.getDictDatas(this.DICT_TYPE.UNIT_DICT),
|
options: this.getDictDatas(this.DICT_TYPE.UNIT_DICT),
|
||||||
// rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
switch: true,
|
switch: true,
|
||||||
@ -222,7 +221,6 @@ export default {
|
|||||||
transform: (val) => Number(val),
|
transform: (val) => Number(val),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
// rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
@ -230,13 +228,11 @@ export default {
|
|||||||
input: true,
|
input: true,
|
||||||
label: '标准值',
|
label: '标准值',
|
||||||
prop: 'defaultValue',
|
prop: 'defaultValue',
|
||||||
// rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
input: true,
|
input: true,
|
||||||
label: '描述',
|
label: '描述',
|
||||||
prop: 'description',
|
prop: 'description',
|
||||||
// rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
@ -244,7 +240,6 @@ export default {
|
|||||||
input: true,
|
input: true,
|
||||||
label: '备注',
|
label: '备注',
|
||||||
prop: 'remark',
|
prop: 'remark',
|
||||||
// rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
@ -236,7 +236,7 @@ export default {
|
|||||||
prop: 'plcId',
|
prop: 'plcId',
|
||||||
labelKey: `plcTableName`,
|
labelKey: `plcTableName`,
|
||||||
url: '/base/equipment-plc/listAll',
|
url: '/base/equipment-plc/listAll',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '关联表名不能为空', trigger: 'blur' }],
|
||||||
bind: {
|
bind: {
|
||||||
filterable: true,
|
filterable: true,
|
||||||
},
|
},
|
||||||
@ -248,7 +248,7 @@ export default {
|
|||||||
label: '设备',
|
label: '设备',
|
||||||
prop: 'equipmentId',
|
prop: 'equipmentId',
|
||||||
url: '/base/core-equipment/page?pageNo=1&pageSize=99',
|
url: '/base/core-equipment/page?pageNo=1&pageSize=99',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '设备不能为空', trigger: 'blur' }],
|
||||||
bind: {
|
bind: {
|
||||||
filterable: true,
|
filterable: true,
|
||||||
},
|
},
|
||||||
@ -274,7 +274,7 @@ export default {
|
|||||||
input: true,
|
input: true,
|
||||||
label: '设备名',
|
label: '设备名',
|
||||||
prop: 'equipmentName',
|
prop: 'equipmentName',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '设备名不能为空', trigger: 'blur' }],
|
||||||
// bind: {
|
// bind: {
|
||||||
// disabled: this.editMode == 'detail', // some condition, like detail mode...
|
// disabled: this.editMode == 'detail', // some condition, like detail mode...
|
||||||
// }
|
// }
|
||||||
|
@ -120,13 +120,13 @@ export default {
|
|||||||
input: true,
|
input: true,
|
||||||
label: '参数列名',
|
label: '参数列名',
|
||||||
prop: 'plcParamName',
|
prop: 'plcParamName',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '参数列名不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
input: true,
|
input: true,
|
||||||
label: '参数名称',
|
label: '参数名称',
|
||||||
prop: 'name',
|
prop: 'name',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '参数名称不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
@ -135,7 +135,6 @@ export default {
|
|||||||
label: '单位',
|
label: '单位',
|
||||||
prop: 'unit',
|
prop: 'unit',
|
||||||
options: this.getDictDatas(this.DICT_TYPE.UNIT_DICT),
|
options: this.getDictDatas(this.DICT_TYPE.UNIT_DICT),
|
||||||
// rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
switch: true,
|
switch: true,
|
||||||
@ -176,7 +175,6 @@ export default {
|
|||||||
transform: (val) => Number(val),
|
transform: (val) => Number(val),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
// rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
@ -184,13 +182,11 @@ export default {
|
|||||||
input: true,
|
input: true,
|
||||||
label: '标准值',
|
label: '标准值',
|
||||||
prop: 'defaultValue',
|
prop: 'defaultValue',
|
||||||
// rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
input: true,
|
input: true,
|
||||||
label: '描述',
|
label: '描述',
|
||||||
prop: 'description',
|
prop: 'description',
|
||||||
// rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
@ -198,7 +194,6 @@ export default {
|
|||||||
input: true,
|
input: true,
|
||||||
label: '备注',
|
label: '备注',
|
||||||
prop: 'remark',
|
prop: 'remark',
|
||||||
// rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
@ -191,7 +191,7 @@ export default {
|
|||||||
label: '报警编码', // 自动生成
|
label: '报警编码', // 自动生成
|
||||||
prop: 'code',
|
prop: 'code',
|
||||||
url: '/base/equipment-group-alarm/getCode',
|
url: '/base/equipment-group-alarm/getCode',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '报警编码不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
select: true,
|
select: true,
|
||||||
@ -205,13 +205,13 @@ export default {
|
|||||||
input: true,
|
input: true,
|
||||||
label: '参数列名', // 在实时数据库的列名
|
label: '参数列名', // 在实时数据库的列名
|
||||||
prop: 'plcParamName',
|
prop: 'plcParamName',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '参数列名不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
input: true,
|
input: true,
|
||||||
label: '报警内容',
|
label: '报警内容',
|
||||||
prop: 'alarmContent',
|
prop: 'alarmContent',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '报警内容不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
@ -223,7 +223,7 @@ export default {
|
|||||||
{ label: '布尔型', value: 2 },
|
{ label: '布尔型', value: 2 },
|
||||||
{ label: '字符型', value: 1 },
|
{ label: '字符型', value: 1 },
|
||||||
],
|
],
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '报警类型不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
input: true,
|
input: true,
|
||||||
|
@ -16,36 +16,19 @@
|
|||||||
<el-form-item
|
<el-form-item
|
||||||
label="报警编码"
|
label="报警编码"
|
||||||
prop="code"
|
prop="code"
|
||||||
:rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
:rules="[{ required: true, message: '报警编码不能为空', trigger: 'blur' }]">
|
||||||
<el-input
|
<el-input
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
v-model="dataForm.code"
|
v-model="dataForm.code"
|
||||||
@change="$emit('update', dataForm)"
|
@change="$emit('update', dataForm)"
|
||||||
placeholder="请输入报警编码" />
|
placeholder="请输入报警编码" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<!--
|
|
||||||
<el-form-item
|
|
||||||
label="报警编码"
|
|
||||||
prop="code"
|
|
||||||
:rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
|
||||||
<el-select
|
|
||||||
v-model="dataForm.code"
|
|
||||||
placeholder="请选择产线"
|
|
||||||
@change="handleProductlineChange">
|
|
||||||
<el-option
|
|
||||||
v-for="opt in productionLineList"
|
|
||||||
:key="opt.value"
|
|
||||||
:label="opt.label"
|
|
||||||
:value="opt.value" />
|
|
||||||
</el-select>
|
|
||||||
</el-form-item> -->
|
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item
|
<el-form-item
|
||||||
label="报警级别"
|
label="报警级别"
|
||||||
prop="grade"
|
prop="grade"
|
||||||
:rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
:rules="[{ required: true, message: '报警级别不能为空', trigger: 'blur' }]">
|
||||||
<el-select
|
<el-select
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
v-model="dataForm.grade"
|
v-model="dataForm.grade"
|
||||||
@ -65,7 +48,7 @@
|
|||||||
<el-form-item
|
<el-form-item
|
||||||
label="参数列名"
|
label="参数列名"
|
||||||
prop="plcParamName"
|
prop="plcParamName"
|
||||||
:rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
:rules="[{ required: true, message: '参数列名不能为空', trigger: 'blur' }]">
|
||||||
<el-input
|
<el-input
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
v-model="dataForm.plcParamName"
|
v-model="dataForm.plcParamName"
|
||||||
@ -77,7 +60,7 @@
|
|||||||
<el-form-item
|
<el-form-item
|
||||||
label="报警内容"
|
label="报警内容"
|
||||||
prop="alarmContent"
|
prop="alarmContent"
|
||||||
:rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
:rules="[{ required: true, message: '报警内容不能为空', trigger: 'blur' }]">
|
||||||
<el-input
|
<el-input
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
v-model="dataForm.alarmContent"
|
v-model="dataForm.alarmContent"
|
||||||
@ -91,7 +74,7 @@
|
|||||||
<el-form-item
|
<el-form-item
|
||||||
label="报警类型"
|
label="报警类型"
|
||||||
prop="type"
|
prop="type"
|
||||||
:rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
:rules="[{ required: true, message: '报警类型不能为空', trigger: 'blur' }]">
|
||||||
<el-select
|
<el-select
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
v-model="dataForm.type"
|
v-model="dataForm.type"
|
||||||
|
@ -183,10 +183,7 @@ export default {
|
|||||||
input: true,
|
input: true,
|
||||||
label: '设备分组名称',
|
label: '设备分组名称',
|
||||||
prop: 'name',
|
prop: 'name',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '设备分组名称不能为空', trigger: 'blur' }],
|
||||||
// bind: {
|
|
||||||
// disabled: this.editMode == 'detail', // some condition, like detail mode...
|
|
||||||
// }
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
input: true,
|
input: true,
|
||||||
@ -271,7 +268,7 @@ export default {
|
|||||||
input: true,
|
input: true,
|
||||||
label: '分组名称',
|
label: '分组名称',
|
||||||
prop: 'name',
|
prop: 'name',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '分组名称不能为空', trigger: 'blur' }],
|
||||||
// bind: {
|
// bind: {
|
||||||
// disabled: true, // some condition, like detail mode...
|
// disabled: true, // some condition, like detail mode...
|
||||||
// }
|
// }
|
||||||
@ -283,7 +280,7 @@ export default {
|
|||||||
label: '分组编码',
|
label: '分组编码',
|
||||||
prop: 'code',
|
prop: 'code',
|
||||||
url: '/base/equipment-group/getCode',
|
url: '/base/equipment-group/getCode',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '分组编码不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
@ -291,7 +288,6 @@ export default {
|
|||||||
input: true,
|
input: true,
|
||||||
label: '备注',
|
label: '备注',
|
||||||
prop: 'remark',
|
prop: 'remark',
|
||||||
// rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
|
||||||
bind: {
|
bind: {
|
||||||
placeholder: '请输入备注',
|
placeholder: '请输入备注',
|
||||||
},
|
},
|
||||||
|
@ -191,7 +191,7 @@ export default {
|
|||||||
label: '报警编码', // 自动生成
|
label: '报警编码', // 自动生成
|
||||||
prop: 'code',
|
prop: 'code',
|
||||||
url: '/base/equipment-group-alarm/getCode',
|
url: '/base/equipment-group-alarm/getCode',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '报警编码不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
select: true,
|
select: true,
|
||||||
@ -201,7 +201,7 @@ export default {
|
|||||||
{ label: '布尔型', value: 2 },
|
{ label: '布尔型', value: 2 },
|
||||||
{ label: '字符型', value: 1 },
|
{ label: '字符型', value: 1 },
|
||||||
],
|
],
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '报警类型不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
@ -222,13 +222,13 @@ export default {
|
|||||||
input: true,
|
input: true,
|
||||||
label: '参数列名', // 在实时数据库的列名
|
label: '参数列名', // 在实时数据库的列名
|
||||||
prop: 'plcParamName',
|
prop: 'plcParamName',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '参数列名不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
input: true,
|
input: true,
|
||||||
label: '报警内容',
|
label: '报警内容',
|
||||||
prop: 'alarmContent',
|
prop: 'alarmContent',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '报警内容不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
@ -16,36 +16,20 @@
|
|||||||
<el-form-item
|
<el-form-item
|
||||||
label="报警编码"
|
label="报警编码"
|
||||||
prop="code"
|
prop="code"
|
||||||
:rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
:rules="[{ required: true, message: '报警编码不能为空', trigger: 'blur' }]">
|
||||||
<el-input
|
<el-input
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
v-model="dataForm.code"
|
v-model="dataForm.code"
|
||||||
@change="$emit('update', dataForm)"
|
@change="$emit('update', dataForm)"
|
||||||
placeholder="请输入工段排序" />
|
placeholder="请输入工段排序" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!--
|
|
||||||
<el-form-item
|
|
||||||
label="报警编码"
|
|
||||||
prop="code"
|
|
||||||
:rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
|
||||||
<el-select
|
|
||||||
v-model="dataForm.code"
|
|
||||||
placeholder="请选择产线"
|
|
||||||
@change="handleProductlineChange">
|
|
||||||
<el-option
|
|
||||||
v-for="opt in productionLineList"
|
|
||||||
:key="opt.value"
|
|
||||||
:label="opt.label"
|
|
||||||
:value="opt.value" />
|
|
||||||
</el-select>
|
|
||||||
</el-form-item> -->
|
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item
|
<el-form-item
|
||||||
label="报警级别"
|
label="报警级别"
|
||||||
prop="grade"
|
prop="grade"
|
||||||
:rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
:rules="[{ required: true, message: '报警级别不能为空', trigger: 'blur' }]">
|
||||||
<el-select
|
<el-select
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
v-model="dataForm.grade"
|
v-model="dataForm.grade"
|
||||||
@ -65,7 +49,7 @@
|
|||||||
<el-form-item
|
<el-form-item
|
||||||
label="参数列名"
|
label="参数列名"
|
||||||
prop="plcParamName"
|
prop="plcParamName"
|
||||||
:rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
:rules="[{ required: true, message: '参数列名不能为空', trigger: 'blur' }]">
|
||||||
<el-input
|
<el-input
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
v-model="dataForm.plcParamName"
|
v-model="dataForm.plcParamName"
|
||||||
@ -77,7 +61,7 @@
|
|||||||
<el-form-item
|
<el-form-item
|
||||||
label="报警内容"
|
label="报警内容"
|
||||||
prop="alarmContent"
|
prop="alarmContent"
|
||||||
:rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
:rules="[{ required: true, message: '报警内容不能为空', trigger: 'blur' }]">
|
||||||
<el-input
|
<el-input
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
v-model="dataForm.alarmContent"
|
v-model="dataForm.alarmContent"
|
||||||
@ -91,7 +75,7 @@
|
|||||||
<el-form-item
|
<el-form-item
|
||||||
label="报警类型"
|
label="报警类型"
|
||||||
prop="type"
|
prop="type"
|
||||||
:rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
:rules="[{ required: true, message: '报警类型不能为空', trigger: 'blur' }]">
|
||||||
<el-select
|
<el-select
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
v-model="dataForm.type"
|
v-model="dataForm.type"
|
||||||
|
@ -224,7 +224,7 @@ export default {
|
|||||||
bind: {
|
bind: {
|
||||||
filterable: true,
|
filterable: true,
|
||||||
},
|
},
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '设备不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
@ -238,7 +238,7 @@ export default {
|
|||||||
bind: {
|
bind: {
|
||||||
filterable: true,
|
filterable: true,
|
||||||
},
|
},
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '报警分组不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
@ -269,7 +269,7 @@ export default {
|
|||||||
input: true,
|
input: true,
|
||||||
label: '设备分组名称',
|
label: '设备分组名称',
|
||||||
prop: 'name',
|
prop: 'name',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '设备分组名称不能为空', trigger: 'blur' }],
|
||||||
// bind: {
|
// bind: {
|
||||||
// disabled: this.editMode == 'detail', // some condition, like detail mode...
|
// disabled: this.editMode == 'detail', // some condition, like detail mode...
|
||||||
// }
|
// }
|
||||||
|
@ -224,7 +224,7 @@ export default {
|
|||||||
prop: 'plcId',
|
prop: 'plcId',
|
||||||
labelKey: `plcTableName`,
|
labelKey: `plcTableName`,
|
||||||
url: '/base/equipment-plc/listAll',
|
url: '/base/equipment-plc/listAll',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '关联表名不能为空', trigger: 'blur' }],
|
||||||
bind: {
|
bind: {
|
||||||
filterable: true,
|
filterable: true,
|
||||||
},
|
},
|
||||||
@ -236,7 +236,7 @@ export default {
|
|||||||
label: '设备',
|
label: '设备',
|
||||||
prop: 'equipmentId',
|
prop: 'equipmentId',
|
||||||
url: '/base/core-equipment/page?pageNo=1&pageSize=99',
|
url: '/base/core-equipment/page?pageNo=1&pageSize=99',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '设备不能为空', trigger: 'blur' }],
|
||||||
bind: {
|
bind: {
|
||||||
filterable: true,
|
filterable: true,
|
||||||
},
|
},
|
||||||
@ -262,7 +262,7 @@ export default {
|
|||||||
input: true,
|
input: true,
|
||||||
label: '设备名',
|
label: '设备名',
|
||||||
prop: 'equipmentName',
|
prop: 'equipmentName',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '设备名不能为空', trigger: 'blur' }],
|
||||||
// bind: {
|
// bind: {
|
||||||
// disabled: this.editMode == 'detail', // some condition, like detail mode...
|
// disabled: this.editMode == 'detail', // some condition, like detail mode...
|
||||||
// }
|
// }
|
||||||
|
@ -184,7 +184,7 @@ export default {
|
|||||||
input: true,
|
input: true,
|
||||||
label: '关联表名',
|
label: '关联表名',
|
||||||
prop: 'plcTableName',
|
prop: 'plcTableName',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '关联表名不能为空', trigger: 'blur' }],
|
||||||
// bind: {
|
// bind: {
|
||||||
// disabled: true, // some condition, like detail mode...
|
// disabled: true, // some condition, like detail mode...
|
||||||
// }
|
// }
|
||||||
@ -194,7 +194,7 @@ export default {
|
|||||||
label: '编码',
|
label: '编码',
|
||||||
prop: 'code',
|
prop: 'code',
|
||||||
url: '/base/equipment-group/getCode',
|
url: '/base/equipment-group/getCode',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '编码不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
@ -202,7 +202,7 @@ export default {
|
|||||||
input: true,
|
input: true,
|
||||||
label: '标识',
|
label: '标识',
|
||||||
prop: 'name',
|
prop: 'name',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '标识不能为空', trigger: 'blur' }],
|
||||||
// bind: {
|
// bind: {
|
||||||
// disabled: true, // some condition, like detail mode...
|
// disabled: true, // some condition, like detail mode...
|
||||||
// }
|
// }
|
||||||
|
@ -194,13 +194,13 @@ export default {
|
|||||||
input: true,
|
input: true,
|
||||||
label: '参数列名',
|
label: '参数列名',
|
||||||
prop: 'plcParamName',
|
prop: 'plcParamName',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '参数列名不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
input: true,
|
input: true,
|
||||||
label: '参数名称',
|
label: '参数名称',
|
||||||
prop: 'name',
|
prop: 'name',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '参数名称不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
@ -209,7 +209,6 @@ export default {
|
|||||||
label: '单位',
|
label: '单位',
|
||||||
prop: 'unit',
|
prop: 'unit',
|
||||||
options: this.getDictDatas(this.DICT_TYPE.UNIT_DICT),
|
options: this.getDictDatas(this.DICT_TYPE.UNIT_DICT),
|
||||||
// rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
switch: true,
|
switch: true,
|
||||||
@ -231,7 +230,7 @@ export default {
|
|||||||
{ label: '工艺参数', value: 2 },
|
{ label: '工艺参数', value: 2 },
|
||||||
{ label: '报警参数', value: 3 },
|
{ label: '报警参数', value: 3 },
|
||||||
],
|
],
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '设备参数类型不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
select: true,
|
select: true,
|
||||||
@ -243,7 +242,7 @@ export default {
|
|||||||
{ label: '破损数量', value: 3 },
|
{ label: '破损数量', value: 3 },
|
||||||
{ label: '无类型', value: 4 },
|
{ label: '无类型', value: 4 },
|
||||||
],
|
],
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '生产参数类型不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
@ -275,7 +274,6 @@ export default {
|
|||||||
transform: (val) => Number(val),
|
transform: (val) => Number(val),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
// rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
@ -283,13 +281,11 @@ export default {
|
|||||||
input: true,
|
input: true,
|
||||||
label: '标准值',
|
label: '标准值',
|
||||||
prop: 'defaultValue',
|
prop: 'defaultValue',
|
||||||
// rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
input: true,
|
input: true,
|
||||||
label: '描述',
|
label: '描述',
|
||||||
prop: 'description',
|
prop: 'description',
|
||||||
// rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
@ -297,7 +293,6 @@ export default {
|
|||||||
input: true,
|
input: true,
|
||||||
label: '备注',
|
label: '备注',
|
||||||
prop: 'remark',
|
prop: 'remark',
|
||||||
// rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
@ -1,187 +0,0 @@
|
|||||||
<!--
|
|
||||||
filename: dialogForm.vue
|
|
||||||
author: liubin
|
|
||||||
date: 2023-09-11 15:55:13
|
|
||||||
description: DialogForm for equipmentBindSection only
|
|
||||||
-->
|
|
||||||
|
|
||||||
<template>
|
|
||||||
<el-form
|
|
||||||
ref="form"
|
|
||||||
:model="dataForm"
|
|
||||||
label-width="100px"
|
|
||||||
v-loading="formLoading">
|
|
||||||
<el-row :gutter="20">
|
|
||||||
<el-col :span="12">
|
|
||||||
<el-form-item
|
|
||||||
label="报警编码"
|
|
||||||
prop="code"
|
|
||||||
:rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
|
||||||
<el-input
|
|
||||||
:disabled="disabled"
|
|
||||||
v-model="dataForm.code"
|
|
||||||
@change="$emit('update', dataForm)"
|
|
||||||
placeholder="请输入工段排序" />
|
|
||||||
</el-form-item>
|
|
||||||
<!--
|
|
||||||
<el-form-item
|
|
||||||
label="报警编码"
|
|
||||||
prop="code"
|
|
||||||
:rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
|
||||||
<el-select
|
|
||||||
v-model="dataForm.code"
|
|
||||||
placeholder="请选择产线"
|
|
||||||
@change="handleProductlineChange">
|
|
||||||
<el-option
|
|
||||||
v-for="opt in productionLineList"
|
|
||||||
:key="opt.value"
|
|
||||||
:label="opt.label"
|
|
||||||
:value="opt.value" />
|
|
||||||
</el-select>
|
|
||||||
</el-form-item> -->
|
|
||||||
</el-col>
|
|
||||||
|
|
||||||
<el-col :span="12">
|
|
||||||
<el-form-item
|
|
||||||
label="报警类型"
|
|
||||||
prop="type"
|
|
||||||
:rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
|
||||||
<el-select
|
|
||||||
v-model="dataForm.type"
|
|
||||||
:disabled="disabled"
|
|
||||||
placeholder="请选择报警类型"
|
|
||||||
@change="$emit('update', dataForm)">
|
|
||||||
<el-option
|
|
||||||
v-for="opt in [
|
|
||||||
{ label: '布尔型', value: 2 },
|
|
||||||
{ label: '字符型', value: 1 },
|
|
||||||
]"
|
|
||||||
:key="opt.value"
|
|
||||||
:label="opt.label"
|
|
||||||
:value="opt.value" />
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
<el-row :gutter="20">
|
|
||||||
<el-col :span="12">
|
|
||||||
<el-form-item
|
|
||||||
label="报警级别"
|
|
||||||
prop="grade"
|
|
||||||
:rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
|
||||||
<el-select
|
|
||||||
:disabled="disabled"
|
|
||||||
v-model="dataForm.grade"
|
|
||||||
placeholder="请选择报警级别"
|
|
||||||
@change="$emit('update', dataForm)">
|
|
||||||
<el-option
|
|
||||||
v-for="opt in getDictDatas(DICT_TYPE.EQU_ALARM_LEVEL)"
|
|
||||||
:key="opt.value"
|
|
||||||
:label="opt.label"
|
|
||||||
:value="opt.value" />
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
|
|
||||||
<el-col :span="12">
|
|
||||||
<el-form-item
|
|
||||||
v-if="+dataForm.type == 1"
|
|
||||||
label="设备报警编码"
|
|
||||||
prop="alarmCode">
|
|
||||||
<el-input
|
|
||||||
:disabled="disabled"
|
|
||||||
v-model="dataForm.alarmCode"
|
|
||||||
@change="$emit('update', dataForm)"
|
|
||||||
placeholder="请输入设备报警编码" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
<el-row :gutter="20">
|
|
||||||
<el-col :span="12">
|
|
||||||
<el-form-item
|
|
||||||
label="参数列名"
|
|
||||||
prop="plcParamName"
|
|
||||||
:rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
|
||||||
<el-input
|
|
||||||
:disabled="disabled"
|
|
||||||
v-model="dataForm.plcParamName"
|
|
||||||
placeholder="请输入参数列名"
|
|
||||||
@change="$emit('update', dataForm)"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="12">
|
|
||||||
<el-form-item
|
|
||||||
label="报警内容"
|
|
||||||
prop="alarmContent"
|
|
||||||
:rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
|
||||||
<el-input
|
|
||||||
:disabled="disabled"
|
|
||||||
v-model="dataForm.alarmContent"
|
|
||||||
placeholder="请输入报警内容"
|
|
||||||
@change="$emit('update', dataForm)"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
</el-form>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
export default {
|
|
||||||
name: 'DialogForm',
|
|
||||||
model: {
|
|
||||||
prop: 'dataForm',
|
|
||||||
event: 'update',
|
|
||||||
},
|
|
||||||
emits: ['update'],
|
|
||||||
components: {},
|
|
||||||
props: {
|
|
||||||
dataForm: {
|
|
||||||
type: Object,
|
|
||||||
default: () => ({}),
|
|
||||||
},
|
|
||||||
disabled: {
|
|
||||||
type: Boolean,
|
|
||||||
default: false,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
formLoading: true,
|
|
||||||
};
|
|
||||||
},
|
|
||||||
mounted() {
|
|
||||||
this.getCode('/base/equipment-group-alarm/getCode').then((code) => {
|
|
||||||
this.formLoading = false;
|
|
||||||
this.$emit('update', {
|
|
||||||
...this.dataForm,
|
|
||||||
code,
|
|
||||||
});
|
|
||||||
});
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
/** 模拟透传 ref */
|
|
||||||
validate(cb) {
|
|
||||||
return this.$refs.form.validate(cb);
|
|
||||||
},
|
|
||||||
resetFields(args) {
|
|
||||||
return this.$refs.form.resetFields(args);
|
|
||||||
},
|
|
||||||
async handleProductlineChange(id) {
|
|
||||||
await this.getWorksectionList(id);
|
|
||||||
this.dataForm.workshopSectionId = null;
|
|
||||||
this.$emit('update', this.dataForm);
|
|
||||||
},
|
|
||||||
async getCode(url) {
|
|
||||||
const response = await this.$axios(url);
|
|
||||||
return response.data;
|
|
||||||
},
|
|
||||||
},
|
|
||||||
};
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style scoped lang="scss">
|
|
||||||
.el-date-editor,
|
|
||||||
.el-select {
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
</style>
|
|
@ -1,361 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div class="app-container">
|
|
||||||
<!-- 搜索工作栏 -->
|
|
||||||
<SearchBar
|
|
||||||
:formConfigs="searchBarFormConfig"
|
|
||||||
ref="search-bar"
|
|
||||||
@headBtnClick="handleSearchBarBtnClick" />
|
|
||||||
|
|
||||||
<!-- 列表 -->
|
|
||||||
<base-table
|
|
||||||
:table-props="tableProps"
|
|
||||||
:page="queryParams.pageNo"
|
|
||||||
:limit="queryParams.pageSize"
|
|
||||||
:table-data="list"
|
|
||||||
@emitFun="handleEmitFun">
|
|
||||||
<method-btn
|
|
||||||
v-if="tableBtn.length"
|
|
||||||
slot="handleBtn"
|
|
||||||
label="操作"
|
|
||||||
:width="120"
|
|
||||||
:method-list="tableBtn"
|
|
||||||
@clickBtn="handleTableBtnClick" />
|
|
||||||
</base-table>
|
|
||||||
|
|
||||||
<!-- 分页组件 -->
|
|
||||||
<pagination
|
|
||||||
v-show="total > 0"
|
|
||||||
:total="total"
|
|
||||||
:page.sync="queryParams.pageNo"
|
|
||||||
:limit.sync="queryParams.pageSize"
|
|
||||||
@pagination="getList" />
|
|
||||||
|
|
||||||
<!-- 对话框(添加 / 修改) -->
|
|
||||||
<base-dialog
|
|
||||||
:dialogTitle="title"
|
|
||||||
:dialogVisible="open"
|
|
||||||
width="736px"
|
|
||||||
@close="cancel"
|
|
||||||
@cancel="cancel"
|
|
||||||
@confirm="submitForm">
|
|
||||||
<DialogForm v-if="open" ref="form" v-model="form" :rows="rows" />
|
|
||||||
</base-dialog>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import {
|
|
||||||
createEquipmentGroupAlarm,
|
|
||||||
updateEquipmentGroupAlarm,
|
|
||||||
deleteEquipmentGroupAlarm,
|
|
||||||
getEquipmentGroupAlarm,
|
|
||||||
getEquipmentGroupAlarmPage,
|
|
||||||
exportEquipmentGroupAlarmExcel,
|
|
||||||
} from '@/api/base/equipmentGroupAlarm';
|
|
||||||
import basicPageMixin from '@/mixins/lb/basicPageMixin';
|
|
||||||
import moment from 'moment';
|
|
||||||
import { publicFormatter } from '@/utils/dict';
|
|
||||||
import DialogForm from './dialogForm.vue';
|
|
||||||
|
|
||||||
export default {
|
|
||||||
name: 'EquipmentGroupAlarm',
|
|
||||||
components: { DialogForm },
|
|
||||||
mixins: [basicPageMixin],
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
searchBarKeys: [''],
|
|
||||||
tableBtn: [
|
|
||||||
this.$auth.hasPermi('base:equipment-group-alarm:update')
|
|
||||||
? {
|
|
||||||
type: 'edit',
|
|
||||||
btnName: '修改',
|
|
||||||
}
|
|
||||||
: undefined,
|
|
||||||
this.$auth.hasPermi('base:equipment-group-alarm:delete')
|
|
||||||
? {
|
|
||||||
type: 'delete',
|
|
||||||
btnName: '删除',
|
|
||||||
}
|
|
||||||
: undefined,
|
|
||||||
].filter((v) => v),
|
|
||||||
tableProps: [
|
|
||||||
{
|
|
||||||
prop: 'createTime',
|
|
||||||
label: '添加时间',
|
|
||||||
fixed: true,
|
|
||||||
width: 180,
|
|
||||||
filter: (val) => moment(val).format('yyyy-MM-DD HH:mm:ss'),
|
|
||||||
},
|
|
||||||
{ width: 240, prop: 'code', label: '报警编码' },
|
|
||||||
{
|
|
||||||
prop: 'type',
|
|
||||||
label: '报警类型',
|
|
||||||
filter: (val) =>
|
|
||||||
val != null ? ['-', '字符型', '布尔型', '-'][val] : '-',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: 'grade',
|
|
||||||
label: '报警级别',
|
|
||||||
filter: publicFormatter(this.DICT_TYPE.EQU_ALARM_LEVEL),
|
|
||||||
},
|
|
||||||
{ prop: 'alarmCode', label: '设备报警编码' },
|
|
||||||
{ prop: 'plcParamName', label: '参数列名' },
|
|
||||||
{ prop: 'alarmContent', label: '报警内容' },
|
|
||||||
],
|
|
||||||
searchBarFormConfig: [
|
|
||||||
{
|
|
||||||
type: 'input',
|
|
||||||
label: '设备分组编码',
|
|
||||||
width: '220',
|
|
||||||
placeholder: '/',
|
|
||||||
param: 'equipmentGroupCode',
|
|
||||||
defaultSelect: null,
|
|
||||||
disabled: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: 'input',
|
|
||||||
label: '设备分组名称',
|
|
||||||
placeholder: '/',
|
|
||||||
param: 'equipmentGroupName',
|
|
||||||
defaultSelect: null,
|
|
||||||
disabled: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: this.$auth.hasPermi('base:equipment-group-alarm:create')
|
|
||||||
? 'button'
|
|
||||||
: '',
|
|
||||||
btnName: '新增',
|
|
||||||
name: 'add',
|
|
||||||
plain: true,
|
|
||||||
color: 'success',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
rows: [
|
|
||||||
[
|
|
||||||
{
|
|
||||||
input: true,
|
|
||||||
label: '报警编码', // 自动生成
|
|
||||||
prop: 'code',
|
|
||||||
url: '/base/equipment-group-alarm/getCode',
|
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
select: true,
|
|
||||||
label: '报警类型', // 固定选项
|
|
||||||
prop: 'type',
|
|
||||||
options: [
|
|
||||||
{ label: '布尔型', value: 2 },
|
|
||||||
{ label: '字符型', value: 1 },
|
|
||||||
],
|
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
[
|
|
||||||
{
|
|
||||||
select: true,
|
|
||||||
label: '报警级别', // 字典
|
|
||||||
prop: 'grade',
|
|
||||||
options: this.getDictDatas(this.DICT_TYPE.EQU_ALARM_LEVEL),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
input: true,
|
|
||||||
label: '设备报警编码', // 对应到设备实际的报警编码
|
|
||||||
prop: 'alarmCode',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
[
|
|
||||||
{
|
|
||||||
input: true,
|
|
||||||
label: '参数列名', // 在实时数据库的列名
|
|
||||||
prop: 'plcParamName',
|
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
input: true,
|
|
||||||
label: '报警内容',
|
|
||||||
prop: 'alarmContent',
|
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
],
|
|
||||||
// 是否显示弹出层
|
|
||||||
open: false,
|
|
||||||
// 查询参数
|
|
||||||
queryParams: {
|
|
||||||
pageNo: 1,
|
|
||||||
pageSize: 10,
|
|
||||||
equipmentGroupId: null,
|
|
||||||
},
|
|
||||||
// 表单参数
|
|
||||||
form: {
|
|
||||||
id: null,
|
|
||||||
equipmentGroupId: null,
|
|
||||||
code: null,
|
|
||||||
type: null,
|
|
||||||
grade: null,
|
|
||||||
alarmCode: null,
|
|
||||||
alarmContent: null,
|
|
||||||
plcParamName: null,
|
|
||||||
},
|
|
||||||
// // 表单校验
|
|
||||||
// rules: {
|
|
||||||
// equipmentGroupId: [{ required: true, message: "设备分组ID,关联base_equipment_group不能为空", trigger: "blur" }],
|
|
||||||
// type: [{ required: true, message: "报警类型:1.字符型,2.布尔型不能为空", trigger: "change" }],
|
|
||||||
// alarmContent: [{ required: true, message: "报警内容 该条报警具体的解释不能为空", trigger: "blur" }],
|
|
||||||
// plcParamName: [{ required: true, message: "关联编码,对应到plc_param_name的编码,用于链接数采不能为空", trigger: "blur" }],
|
|
||||||
// }
|
|
||||||
};
|
|
||||||
},
|
|
||||||
// watch: {
|
|
||||||
// $route(value) {
|
|
||||||
// console.log('new route info', value)
|
|
||||||
// }
|
|
||||||
// },
|
|
||||||
// created() {
|
|
||||||
// this.getList();
|
|
||||||
// },
|
|
||||||
activated() {
|
|
||||||
// 设置顶部搜索栏信息
|
|
||||||
const { equipmentGroupName, equipmentGroupCode, equipmentGroupId } =
|
|
||||||
this.$route.params;
|
|
||||||
this.setSearchBarFormValue('equipmentGroupName', equipmentGroupName);
|
|
||||||
this.setSearchBarFormValue('equipmentGroupCode', equipmentGroupCode);
|
|
||||||
this.queryParams.equipmentGroupId = equipmentGroupId;
|
|
||||||
// if (!equipmentGroupId) this.getList(); // 拦截
|
|
||||||
this.getList();
|
|
||||||
},
|
|
||||||
deactivated() {
|
|
||||||
this.setSearchBarFormValue('equipmentGroupName', null);
|
|
||||||
this.setSearchBarFormValue('equipmentGroupCode', null);
|
|
||||||
this.queryParams.equipmentGroupId = null;
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
/** 设置 searchBarForm 的默认值 - 用得比较少 */
|
|
||||||
setSearchBarFormValue(param, value) {
|
|
||||||
this.searchBarFormConfig.forEach((config) => {
|
|
||||||
if (config.param == param) {
|
|
||||||
config.defaultSelect = value;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
/** 查询列表 */
|
|
||||||
getList() {
|
|
||||||
this.loading = true;
|
|
||||||
// 执行查询
|
|
||||||
getEquipmentGroupAlarmPage(this.queryParams).then((response) => {
|
|
||||||
this.list = response.data.list;
|
|
||||||
this.total = response.data.total;
|
|
||||||
this.loading = false;
|
|
||||||
});
|
|
||||||
},
|
|
||||||
/** 取消按钮 */
|
|
||||||
cancel() {
|
|
||||||
this.open = false;
|
|
||||||
this.reset();
|
|
||||||
},
|
|
||||||
/** 表单重置 */
|
|
||||||
reset() {
|
|
||||||
this.form = {
|
|
||||||
id: null,
|
|
||||||
equipmentGroupId: null,
|
|
||||||
code: null,
|
|
||||||
type: null,
|
|
||||||
grade: null,
|
|
||||||
alarmCode: null,
|
|
||||||
alarmContent: null,
|
|
||||||
plcParamName: null,
|
|
||||||
};
|
|
||||||
this.resetForm('form');
|
|
||||||
},
|
|
||||||
/** 搜索按钮操作 */
|
|
||||||
handleQuery() {
|
|
||||||
this.queryParams.pageNo = 1;
|
|
||||||
this.getList();
|
|
||||||
},
|
|
||||||
/** 重置按钮操作 */
|
|
||||||
resetQuery() {
|
|
||||||
this.resetForm('queryForm');
|
|
||||||
this.handleQuery();
|
|
||||||
},
|
|
||||||
/** 新增按钮操作 */
|
|
||||||
handleAdd() {
|
|
||||||
if (this.queryParams.equipmentGroupId == null)
|
|
||||||
return this.$message.error('没有检测到设备分组信息');
|
|
||||||
this.reset();
|
|
||||||
this.open = true;
|
|
||||||
this.title = '添加设备分组报警明细';
|
|
||||||
},
|
|
||||||
/** 修改按钮操作 */
|
|
||||||
handleUpdate(row) {
|
|
||||||
this.reset();
|
|
||||||
const id = row.id;
|
|
||||||
getEquipmentGroupAlarm(id).then((response) => {
|
|
||||||
this.form = response.data;
|
|
||||||
this.open = true;
|
|
||||||
this.title = '修改设备分组报警明细';
|
|
||||||
});
|
|
||||||
},
|
|
||||||
/** 提交按钮 */
|
|
||||||
submitForm() {
|
|
||||||
this.$refs['form'].validate((valid) => {
|
|
||||||
if (!valid) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
// 修改的提交
|
|
||||||
if (this.form.id != null) {
|
|
||||||
updateEquipmentGroupAlarm({
|
|
||||||
...this.form,
|
|
||||||
equipmentGroupId: this.queryParams.equipmentGroupId,
|
|
||||||
}).then((response) => {
|
|
||||||
this.$modal.msgSuccess('修改成功');
|
|
||||||
this.open = false;
|
|
||||||
this.getList();
|
|
||||||
});
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
// 添加的提交
|
|
||||||
createEquipmentGroupAlarm({
|
|
||||||
...this.form,
|
|
||||||
equipmentGroupId: this.queryParams.equipmentGroupId,
|
|
||||||
}).then((response) => {
|
|
||||||
this.$modal.msgSuccess('新增成功');
|
|
||||||
this.open = false;
|
|
||||||
this.getList();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
},
|
|
||||||
/** 删除按钮操作 */
|
|
||||||
handleDelete(row) {
|
|
||||||
const id = row.id;
|
|
||||||
this.$modal
|
|
||||||
.confirm('是否确认删除该报警?')
|
|
||||||
.then(function () {
|
|
||||||
return deleteEquipmentGroupAlarm(id);
|
|
||||||
})
|
|
||||||
.then(() => {
|
|
||||||
this.getList();
|
|
||||||
this.$modal.msgSuccess('删除成功');
|
|
||||||
})
|
|
||||||
.catch(() => {});
|
|
||||||
},
|
|
||||||
/** 导出按钮操作 */
|
|
||||||
handleExport() {
|
|
||||||
// 处理查询参数
|
|
||||||
let params = { ...this.queryParams };
|
|
||||||
params.pageNo = undefined;
|
|
||||||
params.pageSize = undefined;
|
|
||||||
this.$modal
|
|
||||||
.confirm('是否确认导出所有设备分组报警明细数据项?')
|
|
||||||
.then(() => {
|
|
||||||
this.exportLoading = true;
|
|
||||||
return exportEquipmentGroupAlarmExcel(params);
|
|
||||||
})
|
|
||||||
.then((response) => {
|
|
||||||
this.$download.excel(response, '设备分组报警明细.xls');
|
|
||||||
this.exportLoading = false;
|
|
||||||
})
|
|
||||||
.catch(() => {});
|
|
||||||
},
|
|
||||||
},
|
|
||||||
};
|
|
||||||
</script>
|
|
@ -127,7 +127,7 @@ export default {
|
|||||||
label: '巡检内容编号',
|
label: '巡检内容编号',
|
||||||
prop: 'code',
|
prop: 'code',
|
||||||
url: '/base/equipment-check/getCode',
|
url: '/base/equipment-check/getCode',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '巡检内容编号不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
@ -135,7 +135,7 @@ export default {
|
|||||||
input: true,
|
input: true,
|
||||||
label: '巡检项目',
|
label: '巡检项目',
|
||||||
prop: 'program',
|
prop: 'program',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '巡检项目不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
@ -143,7 +143,7 @@ export default {
|
|||||||
input: true,
|
input: true,
|
||||||
label: '巡检内容',
|
label: '巡检内容',
|
||||||
prop: 'content',
|
prop: 'content',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '巡检内容不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
|
@ -166,7 +166,7 @@ export default {
|
|||||||
filterable: true,
|
filterable: true,
|
||||||
clearable: true,
|
clearable: true,
|
||||||
},
|
},
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '设备名称不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
@ -181,8 +181,7 @@ export default {
|
|||||||
clearable: true,
|
clearable: true,
|
||||||
multiple: true,
|
multiple: true,
|
||||||
},
|
},
|
||||||
options: [{ label: 'test', value: 'test' }],
|
rules: [{ required: true, message: '维修工不能为空', trigger: 'blur' }],
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
input: true,
|
input: true,
|
||||||
@ -195,7 +194,7 @@ export default {
|
|||||||
datetime: true,
|
datetime: true,
|
||||||
label: '故障发生时间',
|
label: '故障发生时间',
|
||||||
prop: 'faultTime',
|
prop: 'faultTime',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '故障发生时间不能为空', trigger: 'blur' }],
|
||||||
bind: {
|
bind: {
|
||||||
format: 'yyyy-MM-dd HH:mm:ss',
|
format: 'yyyy-MM-dd HH:mm:ss',
|
||||||
'value-format': 'timestamp',
|
'value-format': 'timestamp',
|
||||||
|
@ -152,14 +152,14 @@ export default {
|
|||||||
input: true,
|
input: true,
|
||||||
label: '配置名称',
|
label: '配置名称',
|
||||||
prop: 'name',
|
prop: 'name',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '配置名称不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
input: true,
|
input: true,
|
||||||
label: '配置编码',
|
label: '配置编码',
|
||||||
prop: 'code',
|
prop: 'code',
|
||||||
url: '/base/equipment-check-config/getCode',
|
url: '/base/equipment-check-config/getCode',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '配置编码不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
@ -168,7 +168,7 @@ export default {
|
|||||||
label: '设备名称',
|
label: '设备名称',
|
||||||
prop: 'equipmentId',
|
prop: 'equipmentId',
|
||||||
url: '/base/core-equipment/listAll',
|
url: '/base/core-equipment/listAll',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '设备名称不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
input: true,
|
input: true,
|
||||||
|
@ -169,14 +169,14 @@ export default {
|
|||||||
input: true,
|
input: true,
|
||||||
label: '计划名称',
|
label: '计划名称',
|
||||||
prop: 'name',
|
prop: 'name',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '计划名称不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
input: true,
|
input: true,
|
||||||
label: '计划编号',
|
label: '计划编号',
|
||||||
prop: 'code',
|
prop: 'code',
|
||||||
url: '/base/equipment-maintain-plan/getCode',
|
url: '/base/equipment-maintain-plan/getCode',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '计划编号不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
@ -185,7 +185,7 @@ export default {
|
|||||||
label: '设备名称',
|
label: '设备名称',
|
||||||
prop: 'equipmentId',
|
prop: 'equipmentId',
|
||||||
url: '/base/core-equipment/listAll',
|
url: '/base/core-equipment/listAll',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '设备名称不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
select: true,
|
select: true,
|
||||||
|
@ -186,7 +186,7 @@ export default {
|
|||||||
filterable: true,
|
filterable: true,
|
||||||
clearable: true,
|
clearable: true,
|
||||||
},
|
},
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '保养设备不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
select: true,
|
select: true,
|
||||||
@ -199,7 +199,7 @@ export default {
|
|||||||
clearable: true,
|
clearable: true,
|
||||||
multiple: true,
|
multiple: true,
|
||||||
},
|
},
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '保养人员不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
input: true,
|
input: true,
|
||||||
@ -216,7 +216,7 @@ export default {
|
|||||||
'active-value': 1,
|
'active-value': 1,
|
||||||
'inactive-value': 2,
|
'inactive-value': 2,
|
||||||
},
|
},
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '是否计划保养不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
{},
|
{},
|
||||||
{
|
{
|
||||||
@ -235,7 +235,7 @@ export default {
|
|||||||
datetime: true,
|
datetime: true,
|
||||||
label: '开始时间',
|
label: '开始时间',
|
||||||
prop: 'startTime',
|
prop: 'startTime',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '开始时间不能为空', trigger: 'blur' }],
|
||||||
bind: {
|
bind: {
|
||||||
format: 'yyyy-MM-dd HH:mm:ss',
|
format: 'yyyy-MM-dd HH:mm:ss',
|
||||||
'value-format': 'timestamp',
|
'value-format': 'timestamp',
|
||||||
@ -247,7 +247,7 @@ export default {
|
|||||||
datetime: true,
|
datetime: true,
|
||||||
label: '结束时间',
|
label: '结束时间',
|
||||||
prop: 'endTime',
|
prop: 'endTime',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '结束时间不能为空', trigger: 'blur' }],
|
||||||
bind: {
|
bind: {
|
||||||
format: 'yyyy-MM-dd HH:mm:ss',
|
format: 'yyyy-MM-dd HH:mm:ss',
|
||||||
'value-format': 'timestamp',
|
'value-format': 'timestamp',
|
||||||
|
@ -63,7 +63,7 @@
|
|||||||
<el-form-item
|
<el-form-item
|
||||||
label="维修开始时间"
|
label="维修开始时间"
|
||||||
prop="maintenanceStartTime"
|
prop="maintenanceStartTime"
|
||||||
:rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
:rules="[{ required: true, message: '维修开始时间不能为空', trigger: 'blur' }]">
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="dataForm.maintenanceStartTime"
|
v-model="dataForm.maintenanceStartTime"
|
||||||
type="datetime"
|
type="datetime"
|
||||||
@ -77,7 +77,7 @@
|
|||||||
<el-form-item
|
<el-form-item
|
||||||
label="维修结束时间"
|
label="维修结束时间"
|
||||||
prop="maintenanceFinishTime"
|
prop="maintenanceFinishTime"
|
||||||
:rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
:rules="[{ required: true, message: '维修结束时间不能为空', trigger: 'blur' }]">
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="dataForm.maintenanceFinishTime"
|
v-model="dataForm.maintenanceFinishTime"
|
||||||
type="datetime"
|
type="datetime"
|
||||||
@ -91,7 +91,7 @@
|
|||||||
<el-form-item
|
<el-form-item
|
||||||
label="维修方式"
|
label="维修方式"
|
||||||
prop="repairMode"
|
prop="repairMode"
|
||||||
:rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
:rules="[{ required: true, message: '维修方式不能为空', trigger: 'blur' }]">
|
||||||
<el-select
|
<el-select
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
v-model="dataForm.repairMode"
|
v-model="dataForm.repairMode"
|
||||||
@ -127,7 +127,7 @@
|
|||||||
<el-form-item
|
<el-form-item
|
||||||
label="故障明细"
|
label="故障明细"
|
||||||
prop="faultDetail"
|
prop="faultDetail"
|
||||||
:rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
:rules="[{ required: true, message: '故障明细不能为空', trigger: 'blur' }]">
|
||||||
<!-- // 富文本 -->
|
<!-- // 富文本 -->
|
||||||
<editor v-model="dataForm.faultDetail" :read-only="disabled" :min-height="380"/>
|
<editor v-model="dataForm.faultDetail" :read-only="disabled" :min-height="380"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
@ -169,7 +169,7 @@ export default {
|
|||||||
input: true,
|
input: true,
|
||||||
label: '维修单号',
|
label: '维修单号',
|
||||||
prop: 'repairOrderNumber',
|
prop: 'repairOrderNumber',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '维修单号不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
select: true,
|
select: true,
|
||||||
@ -180,7 +180,7 @@ export default {
|
|||||||
filterable: true,
|
filterable: true,
|
||||||
clearable: true,
|
clearable: true,
|
||||||
},
|
},
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '设备名称不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
@ -198,7 +198,7 @@ export default {
|
|||||||
// multiple: true,
|
// multiple: true,
|
||||||
},
|
},
|
||||||
// options: [{ label: 'test', value: 'test' }],
|
// options: [{ label: 'test', value: 'test' }],
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '维修工不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
input: true,
|
input: true,
|
||||||
@ -211,7 +211,7 @@ export default {
|
|||||||
datetime: true,
|
datetime: true,
|
||||||
label: '故障发生时间',
|
label: '故障发生时间',
|
||||||
prop: 'faultTime',
|
prop: 'faultTime',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '故障发生时间不能为空', trigger: 'blur' }],
|
||||||
bind: {
|
bind: {
|
||||||
format: 'yyyy-MM-dd HH:mm:ss',
|
format: 'yyyy-MM-dd HH:mm:ss',
|
||||||
'value-format': 'timestamp',
|
'value-format': 'timestamp',
|
||||||
|
@ -161,7 +161,7 @@ export default {
|
|||||||
input: true,
|
input: true,
|
||||||
label: '配置名称',
|
label: '配置名称',
|
||||||
prop: 'name',
|
prop: 'name',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '配置名称不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
@ -174,7 +174,7 @@ export default {
|
|||||||
filterable: true,
|
filterable: true,
|
||||||
clearable: true,
|
clearable: true,
|
||||||
},
|
},
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '设备名称不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
|
@ -153,7 +153,7 @@ export default {
|
|||||||
filterable: true,
|
filterable: true,
|
||||||
clearable: true,
|
clearable: true,
|
||||||
},
|
},
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '供应商不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
@ -196,21 +196,6 @@ export default {
|
|||||||
prop: 'remark',
|
prop: 'remark',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
// [
|
|
||||||
// {
|
|
||||||
// datetime: true,
|
|
||||||
// label: '故障发生时间',
|
|
||||||
// prop: 'faultTime',
|
|
||||||
// rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
|
||||||
// bind: {
|
|
||||||
// format: 'yyyy-MM-dd HH:mm:ss',
|
|
||||||
// 'value-format': 'timestamp',
|
|
||||||
// // 'value-format': 'yyyy-MM-dd HH:mm:ss',
|
|
||||||
// clearable: true,
|
|
||||||
// },
|
|
||||||
// },
|
|
||||||
|
|
||||||
// ],
|
|
||||||
],
|
],
|
||||||
// 是否显示弹出层
|
// 是否显示弹出层
|
||||||
open: false,
|
open: false,
|
||||||
|
@ -211,7 +211,7 @@ export default {
|
|||||||
input: true,
|
input: true,
|
||||||
label: '配置名称',
|
label: '配置名称',
|
||||||
prop: 'name',
|
prop: 'name',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '配置名称不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
@ -224,7 +224,7 @@ export default {
|
|||||||
filterable: true,
|
filterable: true,
|
||||||
clearable: true,
|
clearable: true,
|
||||||
},
|
},
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '设备名称不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
|
@ -180,7 +180,7 @@ export default {
|
|||||||
input: true,
|
input: true,
|
||||||
label: '工艺名称',
|
label: '工艺名称',
|
||||||
prop: 'name',
|
prop: 'name',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '工艺名称不能为空', trigger: 'blur' }],
|
||||||
// bind: {
|
// bind: {
|
||||||
// disabled: this.editMode == 'detail', // some condition, like detail mode...
|
// disabled: this.editMode == 'detail', // some condition, like detail mode...
|
||||||
// }
|
// }
|
||||||
@ -197,6 +197,7 @@ export default {
|
|||||||
select: true,
|
select: true,
|
||||||
label: '产线',
|
label: '产线',
|
||||||
prop: 'lineId',
|
prop: 'lineId',
|
||||||
|
rules: [{ required: true, message: '产线不能为空', trigger: 'blur' }],
|
||||||
// cache: 'processFlow::lineList',
|
// cache: 'processFlow::lineList',
|
||||||
url: '/base/core-production-line/listAll',
|
url: '/base/core-production-line/listAll',
|
||||||
bind: {
|
bind: {
|
||||||
@ -217,8 +218,9 @@ export default {
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
textarea: true,
|
textarea: true,
|
||||||
label: '功能描述',
|
label: '工艺描述',
|
||||||
prop: 'remark',
|
prop: 'remark',
|
||||||
|
rules: [{ required: true, message: '工艺描述不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
@ -102,7 +102,7 @@ export default {
|
|||||||
input: true,
|
input: true,
|
||||||
label: '工序名称',
|
label: '工序名称',
|
||||||
prop: 'name',
|
prop: 'name',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '工序名称不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
@ -111,7 +111,7 @@ export default {
|
|||||||
label: '工段',
|
label: '工段',
|
||||||
prop: 'sectionId',
|
prop: 'sectionId',
|
||||||
url: '/base/core-workshop-section/listAll',
|
url: '/base/core-workshop-section/listAll',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '工段不能为空', trigger: 'blur' }],
|
||||||
bind: {
|
bind: {
|
||||||
filterable: true,
|
filterable: true,
|
||||||
},
|
},
|
||||||
|
@ -25,7 +25,7 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
flowId: null,
|
flowId: null,
|
||||||
currentDet: null
|
currentDet: null,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
provide() {
|
provide() {
|
||||||
@ -36,6 +36,14 @@ export default {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
beforeRouteEnter(to, from, next) {
|
||||||
|
console.log('tot', to, from);
|
||||||
|
if (to.params.id) {
|
||||||
|
next();
|
||||||
|
} else {
|
||||||
|
next({ path: '/extend/process-flow' });
|
||||||
|
}
|
||||||
|
},
|
||||||
activated() {
|
activated() {
|
||||||
console.log('activated...', this.$route.params);
|
console.log('activated...', this.$route.params);
|
||||||
this.flowId = this.$route.params.id;
|
this.flowId = this.$route.params.id;
|
||||||
@ -44,10 +52,9 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
handleDetSelected(det) {
|
handleDetSelected(det) {
|
||||||
if (det != null) {
|
if (det != null) {
|
||||||
this.currentDet = { ...det }
|
this.currentDet = { ...det };
|
||||||
}
|
} else this.currentDet = null;
|
||||||
else this.currentDet = null;
|
},
|
||||||
}
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
@ -68,7 +68,7 @@ export default {
|
|||||||
input: true,
|
input: true,
|
||||||
label: '工序名称',
|
label: '工序名称',
|
||||||
prop: 'name',
|
prop: 'name',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '工序名称不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
@ -77,7 +77,7 @@ export default {
|
|||||||
label: '工段',
|
label: '工段',
|
||||||
prop: 'sectionId',
|
prop: 'sectionId',
|
||||||
url: '/base/core-workshop-section/listAll',
|
url: '/base/core-workshop-section/listAll',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '工段不能为空', trigger: 'blur' }],
|
||||||
bind: {
|
bind: {
|
||||||
filterable: true,
|
filterable: true,
|
||||||
},
|
},
|
||||||
|
@ -6,45 +6,23 @@
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<el-form ref="form" :model="dataForm" label-width="120px" v-loading="formLoading">
|
<el-form
|
||||||
<el-row :gutter="20">
|
ref="form"
|
||||||
<el-col :span="12">
|
:model="dataForm"
|
||||||
<el-form-item label="产线" prop="productionLineId"
|
label-width="120px"
|
||||||
:rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
v-loading="formLoading">
|
||||||
<el-select v-model="dataForm.productionLineId" placeholder="请选择产线" filterable
|
<el-row :gutter="20">
|
||||||
@change="handleProductlineChange">
|
<el-col :span="12">
|
||||||
<el-option v-for="opt in productionLineList" :key="opt.value" :label="opt.label" :value="opt.value" />
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="12">
|
|
||||||
<el-form-item label="工段" prop="sectionId" :rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
|
||||||
<el-select v-model="dataForm.sectionId" placeholder="请选择工段" filterable @change="$emit('update', dataForm)">
|
|
||||||
<el-option v-for="opt in workshopSectionList" :key="opt.value" :label="opt.label" :value="opt.value" />
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
|
|
||||||
<el-col :span="12">
|
|
||||||
<el-form-item label="按钮盒识别码" prop="buttonId" :rules="[
|
|
||||||
{ required: true, message: '不能为空', trigger: 'blur' },
|
|
||||||
{
|
|
||||||
type: 'number',
|
|
||||||
message: '请输入整数',
|
|
||||||
trigger: 'blur',
|
|
||||||
transform: (val) => Number.isInteger(Number(val)) && Number(val),
|
|
||||||
},
|
|
||||||
]">
|
|
||||||
<el-input v-model="dataForm.buttonId" @change="$emit('update', dataForm)" placeholder="请输入整数" />
|
|
||||||
</el-form-item>
|
|
||||||
<!--
|
|
||||||
<el-form-item
|
<el-form-item
|
||||||
label="报警编码"
|
label="产线"
|
||||||
prop="code"
|
prop="productionLineId"
|
||||||
:rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
:rules="[
|
||||||
|
{ required: true, message: '产线不能为空', trigger: 'blur' },
|
||||||
|
]">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="dataForm.code"
|
v-model="dataForm.productionLineId"
|
||||||
placeholder="请选择产线"
|
placeholder="请选择产线"
|
||||||
|
filterable
|
||||||
@change="handleProductlineChange">
|
@change="handleProductlineChange">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="opt in productionLineList"
|
v-for="opt in productionLineList"
|
||||||
@ -52,18 +30,68 @@
|
|||||||
:label="opt.label"
|
:label="opt.label"
|
||||||
:value="opt.value" />
|
:value="opt.value" />
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item> -->
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item
|
||||||
|
label="工段"
|
||||||
|
prop="sectionId"
|
||||||
|
:rules="[
|
||||||
|
{ required: true, message: '工段不能为空', trigger: 'blur' },
|
||||||
|
]">
|
||||||
|
<el-select
|
||||||
|
v-model="dataForm.sectionId"
|
||||||
|
placeholder="请选择工段"
|
||||||
|
filterable
|
||||||
|
@change="$emit('update', dataForm)">
|
||||||
|
<el-option
|
||||||
|
v-for="opt in workshopSectionList"
|
||||||
|
:key="opt.value"
|
||||||
|
:label="opt.label"
|
||||||
|
:value="opt.value" />
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="按钮盒模式" prop="model">
|
<el-form-item
|
||||||
<el-input v-model="dataForm.model" @change="$emit('update', dataForm)" placeholder="请输入按钮盒模式" />
|
label="按钮盒识别码"
|
||||||
</el-form-item>
|
prop="buttonId"
|
||||||
</el-col>
|
:rules="[
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: '按钮盒识别码不能为空',
|
||||||
|
trigger: 'blur',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: 'number',
|
||||||
|
message: '请输入整数',
|
||||||
|
trigger: 'blur',
|
||||||
|
transform: (val) => Number.isInteger(Number(val)) && Number(val),
|
||||||
|
},
|
||||||
|
]">
|
||||||
|
<el-input
|
||||||
|
v-model="dataForm.buttonId"
|
||||||
|
@change="$emit('update', dataForm)"
|
||||||
|
placeholder="请输入整数" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="按钮值" prop="keyValue" :rules="[
|
<el-form-item label="按钮盒模式" prop="model">
|
||||||
{ required: true, message: '不能为空', trigger: 'blur' },
|
<el-input
|
||||||
|
v-model="dataForm.model"
|
||||||
|
@change="$emit('update', dataForm)"
|
||||||
|
placeholder="请输入按钮盒模式" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item
|
||||||
|
label="按钮值"
|
||||||
|
prop="keyValue"
|
||||||
|
:rules="[
|
||||||
|
{ required: true, message: '按钮值不能为空', trigger: 'blur' },
|
||||||
{
|
{
|
||||||
type: 'number',
|
type: 'number',
|
||||||
message: '请输入100以内的整数',
|
message: '请输入100以内的整数',
|
||||||
@ -75,19 +103,27 @@
|
|||||||
Number(val),
|
Number(val),
|
||||||
},
|
},
|
||||||
]">
|
]">
|
||||||
<el-input v-model="dataForm.keyValue" type="number" min="0" max="100" @change="$emit('update', dataForm)"
|
<el-input
|
||||||
placeholder="请输入按钮盒模式" />
|
v-model="dataForm.keyValue"
|
||||||
</el-form-item>
|
type="number"
|
||||||
</el-col>
|
min="0"
|
||||||
|
max="100"
|
||||||
|
@change="$emit('update', dataForm)"
|
||||||
|
placeholder="请输入按钮盒模式" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="检测内容" prop="inspectionDetContent">
|
<el-form-item label="检测内容" prop="inspectionDetContent">
|
||||||
<el-input type="textarea" v-model="dataForm.inspectionDetContent" placeholder="请输入检测内容"
|
<el-input
|
||||||
@change="$emit('update', dataForm)"></el-input>
|
type="textarea"
|
||||||
</el-form-item>
|
v-model="dataForm.inspectionDetContent"
|
||||||
</el-col>
|
placeholder="请输入检测内容"
|
||||||
</el-row>
|
@change="$emit('update', dataForm)"></el-input>
|
||||||
</el-form>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</el-form>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
@ -70,7 +70,7 @@ export default {
|
|||||||
label: '产线',
|
label: '产线',
|
||||||
url: '/base/production-line/listAll',
|
url: '/base/production-line/listAll',
|
||||||
prop: 'productionId',
|
prop: 'productionId',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '产线不能为空', trigger: 'blur' }],
|
||||||
bind: {
|
bind: {
|
||||||
filterable: true,
|
filterable: true,
|
||||||
},
|
},
|
||||||
@ -80,7 +80,7 @@ export default {
|
|||||||
label: '工段',
|
label: '工段',
|
||||||
url: '/base/workshop-section/listAll',
|
url: '/base/workshop-section/listAll',
|
||||||
prop: 'sectionId',
|
prop: 'sectionId',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '工段不能为空', trigger: 'blur' }],
|
||||||
bind: {
|
bind: {
|
||||||
filterable: true,
|
filterable: true,
|
||||||
},
|
},
|
||||||
@ -123,7 +123,6 @@ export default {
|
|||||||
textarea: true,
|
textarea: true,
|
||||||
label: '检测内容',
|
label: '检测内容',
|
||||||
prop: 'inspectionDetContent',
|
prop: 'inspectionDetContent',
|
||||||
// rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
@ -50,7 +50,7 @@
|
|||||||
label: '检测类型',
|
label: '检测类型',
|
||||||
prop: 'typeId',
|
prop: 'typeId',
|
||||||
url: '/base/quality-inspection-type/listAll',
|
url: '/base/quality-inspection-type/listAll',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '检测类型不能为空', trigger: 'blur' }],
|
||||||
bind: {
|
bind: {
|
||||||
filterable: true,
|
filterable: true,
|
||||||
},
|
},
|
||||||
@ -61,7 +61,7 @@
|
|||||||
input: true,
|
input: true,
|
||||||
label: '检测内容',
|
label: '检测内容',
|
||||||
prop: 'content',
|
prop: 'content',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '检测内容不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
|
@ -47,7 +47,13 @@
|
|||||||
input: true,
|
input: true,
|
||||||
label: '检测类型名称',
|
label: '检测类型名称',
|
||||||
prop: 'name',
|
prop: 'name',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: '检测类型名称不能为空',
|
||||||
|
trigger: 'blur',
|
||||||
|
},
|
||||||
|
],
|
||||||
// bind: {
|
// bind: {
|
||||||
// disabled: true, // some condition, like detail mode...
|
// disabled: true, // some condition, like detail mode...
|
||||||
// }
|
// }
|
||||||
@ -174,31 +180,7 @@ export default {
|
|||||||
plain: true,
|
plain: true,
|
||||||
color: 'success',
|
color: 'success',
|
||||||
},
|
},
|
||||||
// {
|
|
||||||
// type: this.$auth.hasPermi('base:quality-inspection-type:export')
|
|
||||||
// ? 'button'
|
|
||||||
// : '',
|
|
||||||
// btnName: '导出',
|
|
||||||
// name: 'export',
|
|
||||||
// color: 'warning',
|
|
||||||
// },
|
|
||||||
],
|
],
|
||||||
// 表单配置
|
|
||||||
// formRows: [
|
|
||||||
// [
|
|
||||||
// {
|
|
||||||
// input: true,
|
|
||||||
// label: '检测类型名称',
|
|
||||||
// prop: 'name',
|
|
||||||
// rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
|
||||||
// // bind: {
|
|
||||||
// // disabled: true, // some condition, like detail mode...
|
|
||||||
// // }
|
|
||||||
// },
|
|
||||||
// ],
|
|
||||||
// [{ input: true, label: '检测类型编码', prop: 'code' }],
|
|
||||||
// [{ input: true, label: '备注', prop: 'remark' }],
|
|
||||||
// ],
|
|
||||||
// 是否显示弹出层
|
// 是否显示弹出层
|
||||||
open: false,
|
open: false,
|
||||||
// 查询参数
|
// 查询参数
|
||||||
@ -208,11 +190,11 @@ export default {
|
|||||||
name: null,
|
name: null,
|
||||||
},
|
},
|
||||||
// 表单参数
|
// 表单参数
|
||||||
form: {
|
form: {
|
||||||
name: null,
|
name: null,
|
||||||
code: undefined,
|
code: undefined,
|
||||||
remark:undefined
|
remark: undefined,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
// watch: {
|
// watch: {
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
<el-form-item
|
<el-form-item
|
||||||
label="检测内容"
|
label="检测内容"
|
||||||
prop="inspectionDetId"
|
prop="inspectionDetId"
|
||||||
:rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
:rules="[{ required: true, message: '检测内容不能为空', trigger: 'blur' }]">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="innerDataForm.inspectionDetId"
|
v-model="innerDataForm.inspectionDetId"
|
||||||
placeholder="请选择检测内容"
|
placeholder="请选择检测内容"
|
||||||
@ -36,7 +36,7 @@
|
|||||||
<el-form-item
|
<el-form-item
|
||||||
label="来源"
|
label="来源"
|
||||||
prop="source"
|
prop="source"
|
||||||
:rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
:rules="[{ required: true, message: '来源不能为空', trigger: 'blur' }]">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="innerDataForm.source"
|
v-model="innerDataForm.source"
|
||||||
placeholder="请选择来源"
|
placeholder="请选择来源"
|
||||||
@ -60,7 +60,7 @@
|
|||||||
<el-form-item
|
<el-form-item
|
||||||
label="产线"
|
label="产线"
|
||||||
prop="productionLineId"
|
prop="productionLineId"
|
||||||
:rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
:rules="[{ required: true, message: '产线不能为空', trigger: 'blur' }]">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="innerDataForm.productionLineId"
|
v-model="innerDataForm.productionLineId"
|
||||||
placeholder="请选择产线"
|
placeholder="请选择产线"
|
||||||
@ -79,7 +79,7 @@
|
|||||||
<el-form-item
|
<el-form-item
|
||||||
label="工段"
|
label="工段"
|
||||||
prop="sectionId"
|
prop="sectionId"
|
||||||
:rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
:rules="[{ required: true, message: '工段不能为空', trigger: 'blur' }]">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="innerDataForm.sectionId"
|
v-model="innerDataForm.sectionId"
|
||||||
placeholder="请选择工段"
|
placeholder="请选择工段"
|
||||||
@ -110,7 +110,7 @@
|
|||||||
<el-form-item
|
<el-form-item
|
||||||
label="检测时间"
|
label="检测时间"
|
||||||
prop="checkTime"
|
prop="checkTime"
|
||||||
:rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
:rules="[{ required: true, message: '检测时间不能为空', trigger: 'blur' }]">
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="innerDataForm.checkTime"
|
v-model="innerDataForm.checkTime"
|
||||||
type="datetime"
|
type="datetime"
|
||||||
|
@ -68,7 +68,7 @@ export default {
|
|||||||
input: true,
|
input: true,
|
||||||
label: '工序名称',
|
label: '工序名称',
|
||||||
prop: 'name',
|
prop: 'name',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '工序名称不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
@ -77,7 +77,7 @@ export default {
|
|||||||
label: '工段',
|
label: '工段',
|
||||||
prop: 'sectionId',
|
prop: 'sectionId',
|
||||||
url: '/base/core-workshop-section/listAll',
|
url: '/base/core-workshop-section/listAll',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '工段不能为空', trigger: 'blur' }],
|
||||||
bind: {
|
bind: {
|
||||||
filterable: true,
|
filterable: true,
|
||||||
},
|
},
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
<el-form-item
|
<el-form-item
|
||||||
label="检测内容"
|
label="检测内容"
|
||||||
prop="inspectionDetId"
|
prop="inspectionDetId"
|
||||||
:rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
:rules="[{ required: true, message: '检测内容不能为空', trigger: 'blur' }]">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="innerDataForm.inspectionDetId"
|
v-model="innerDataForm.inspectionDetId"
|
||||||
placeholder="请选择检测内容"
|
placeholder="请选择检测内容"
|
||||||
@ -36,7 +36,7 @@
|
|||||||
<el-form-item
|
<el-form-item
|
||||||
label="来源"
|
label="来源"
|
||||||
prop="source"
|
prop="source"
|
||||||
:rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
:rules="[{ required: true, message: '来源不能为空', trigger: 'blur' }]">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="innerDataForm.source"
|
v-model="innerDataForm.source"
|
||||||
placeholder="请选择来源"
|
placeholder="请选择来源"
|
||||||
@ -60,7 +60,7 @@
|
|||||||
<el-form-item
|
<el-form-item
|
||||||
label="产线"
|
label="产线"
|
||||||
prop="productionLineId"
|
prop="productionLineId"
|
||||||
:rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
:rules="[{ required: true, message: '产线不能为空', trigger: 'blur' }]">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="innerDataForm.productionLineId"
|
v-model="innerDataForm.productionLineId"
|
||||||
placeholder="请选择产线"
|
placeholder="请选择产线"
|
||||||
@ -79,7 +79,7 @@
|
|||||||
<el-form-item
|
<el-form-item
|
||||||
label="工段"
|
label="工段"
|
||||||
prop="sectionId"
|
prop="sectionId"
|
||||||
:rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
:rules="[{ required: true, message: '工段不能为空', trigger: 'blur' }]">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="innerDataForm.sectionId"
|
v-model="innerDataForm.sectionId"
|
||||||
placeholder="请选择工段"
|
placeholder="请选择工段"
|
||||||
@ -110,7 +110,7 @@
|
|||||||
<el-form-item
|
<el-form-item
|
||||||
label="检测时间"
|
label="检测时间"
|
||||||
prop="checkTime"
|
prop="checkTime"
|
||||||
:rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
:rules="[{ required: true, message: '检测时间不能为空', trigger: 'blur' }]">
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="innerDataForm.checkTime"
|
v-model="innerDataForm.checkTime"
|
||||||
type="datetime"
|
type="datetime"
|
||||||
|
@ -74,7 +74,7 @@ export default {
|
|||||||
url: '/base/quality-inspection-det/listAll',
|
url: '/base/quality-inspection-det/listAll',
|
||||||
prop: 'inspectionDetId',
|
prop: 'inspectionDetId',
|
||||||
labelKey: 'content',
|
labelKey: 'content',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '检测内容不能为空', trigger: 'blur' }],
|
||||||
bind: {
|
bind: {
|
||||||
filterable: true,
|
filterable: true,
|
||||||
},
|
},
|
||||||
@ -102,7 +102,7 @@ export default {
|
|||||||
bind: {
|
bind: {
|
||||||
filterable: true,
|
filterable: true,
|
||||||
},
|
},
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '产线不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
select: true,
|
select: true,
|
||||||
@ -113,7 +113,7 @@ export default {
|
|||||||
bind: {
|
bind: {
|
||||||
filterable: true,
|
filterable: true,
|
||||||
},
|
},
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '工段不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
@ -126,7 +126,7 @@ export default {
|
|||||||
datetime: true,
|
datetime: true,
|
||||||
label: '检测时间',
|
label: '检测时间',
|
||||||
prop: 'checkTime',
|
prop: 'checkTime',
|
||||||
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '检测时间不能为空', trigger: 'blur' }],
|
||||||
bind: {
|
bind: {
|
||||||
format: 'yyyy-MM-dd HH:mm:ss',
|
format: 'yyyy-MM-dd HH:mm:ss',
|
||||||
'value-format': 'timestamp',
|
'value-format': 'timestamp',
|
||||||
@ -135,15 +135,6 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
// [
|
|
||||||
// {
|
|
||||||
// textarea: true,
|
|
||||||
// label: '检测内容',
|
|
||||||
// prop: 'inspectionDetContent',
|
|
||||||
// value: '',
|
|
||||||
// rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
|
||||||
// },
|
|
||||||
// ],
|
|
||||||
[{ textarea: true, label: '描述', prop: 'explainText' }],
|
[{ textarea: true, label: '描述', prop: 'explainText' }],
|
||||||
[{ input: true, label: '备注', prop: 'remark' }],
|
[{ input: true, label: '备注', prop: 'remark' }],
|
||||||
],
|
],
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
<el-form-item
|
<el-form-item
|
||||||
label="检测内容"
|
label="检测内容"
|
||||||
prop="inspectionDetId"
|
prop="inspectionDetId"
|
||||||
:rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
:rules="[{ required: true, message: '检测内容不能为空', trigger: 'blur' }]">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="innerDataForm.inspectionDetId"
|
v-model="innerDataForm.inspectionDetId"
|
||||||
placeholder="请选择检测内容"
|
placeholder="请选择检测内容"
|
||||||
@ -36,7 +36,7 @@
|
|||||||
<el-form-item
|
<el-form-item
|
||||||
label="来源"
|
label="来源"
|
||||||
prop="source"
|
prop="source"
|
||||||
:rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
:rules="[{ required: true, message: '来源不能为空', trigger: 'blur' }]">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="innerDataForm.source"
|
v-model="innerDataForm.source"
|
||||||
placeholder="请选择来源"
|
placeholder="请选择来源"
|
||||||
@ -60,7 +60,7 @@
|
|||||||
<el-form-item
|
<el-form-item
|
||||||
label="产线"
|
label="产线"
|
||||||
prop="productionLineId"
|
prop="productionLineId"
|
||||||
:rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
:rules="[{ required: true, message: '产线不能为空', trigger: 'blur' }]">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="innerDataForm.productionLineId"
|
v-model="innerDataForm.productionLineId"
|
||||||
placeholder="请选择产线"
|
placeholder="请选择产线"
|
||||||
@ -79,7 +79,7 @@
|
|||||||
<el-form-item
|
<el-form-item
|
||||||
label="工段"
|
label="工段"
|
||||||
prop="sectionId"
|
prop="sectionId"
|
||||||
:rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
:rules="[{ required: true, message: '工段不能为空', trigger: 'blur' }]">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="innerDataForm.sectionId"
|
v-model="innerDataForm.sectionId"
|
||||||
placeholder="请选择工段"
|
placeholder="请选择工段"
|
||||||
@ -110,7 +110,7 @@
|
|||||||
<el-form-item
|
<el-form-item
|
||||||
label="检测时间"
|
label="检测时间"
|
||||||
prop="checkTime"
|
prop="checkTime"
|
||||||
:rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
:rules="[{ required: true, message: '检测时间不能为空', trigger: 'blur' }]">
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="innerDataForm.checkTime"
|
v-model="innerDataForm.checkTime"
|
||||||
type="datetime"
|
type="datetime"
|
||||||
|
Loading…
Reference in New Issue
Block a user