projects/mesxc-dy #328
@ -138,7 +138,7 @@ export default {
|
|||||||
color: 'primary',
|
color: 'primary',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'separate',
|
type: this.$auth.hasPermi('base:core-customer:create') ? 'separate' : '',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: this.$auth.hasPermi('base:core-customer:create') ? 'button' : '',
|
type: this.$auth.hasPermi('base:core-customer:create') ? 'button' : '',
|
||||||
|
@ -110,7 +110,7 @@ export default {
|
|||||||
color: 'primary',
|
color: 'primary',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'separate',
|
type: this.$auth.hasPermi('base:core-department:create') ? 'separate' : '',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: this.$auth.hasPermi('base:core-department:create') ? 'button' : '',
|
type: this.$auth.hasPermi('base:core-department:create') ? 'button' : '',
|
||||||
|
@ -156,11 +156,11 @@ export default {
|
|||||||
prop: 'createTime',
|
prop: 'createTime',
|
||||||
label: '添加时间',
|
label: '添加时间',
|
||||||
fixed: true,
|
fixed: true,
|
||||||
width: 180,
|
minWidth: 180,
|
||||||
filter: (val) => moment(val).format('yyyy-MM-DD HH:mm:ss'),
|
filter: (val) => moment(val).format('yyyy-MM-DD HH:mm:ss'),
|
||||||
},
|
},
|
||||||
{ prop: 'name', label: '设备名称', width: 180, showOverflowtooltip: true },
|
{ prop: 'name', label: '设备名称', minWidth: 180, showOverflowtooltip: true },
|
||||||
{ width: 250, prop: 'code', label: '设备编码' },
|
{ minWidth: 250, prop: 'code', label: '设备编码' },
|
||||||
{ prop: 'equipmentTypeName', label: '设备类型' },
|
{ prop: 'equipmentTypeName', label: '设备类型' },
|
||||||
{ prop: 'enName', label: '英文名称' },
|
{ prop: 'enName', label: '英文名称' },
|
||||||
{ prop: 'abbr', label: '缩写' },
|
{ prop: 'abbr', label: '缩写' },
|
||||||
@ -211,7 +211,7 @@ export default {
|
|||||||
color: 'primary',
|
color: 'primary',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'separate',
|
type: (this.$auth.hasPermi('base:core-equipment:export') || this.$auth.hasPermi('base:core-equipment:create')) ? 'separate' : '',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: this.$auth.hasPermi('base:core-equipment:export')
|
type: this.$auth.hasPermi('base:core-equipment:export')
|
||||||
|
@ -126,7 +126,8 @@ export default {
|
|||||||
color: 'primary',
|
color: 'primary',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'separate',
|
type: this.$auth.hasPermi('base:core-equipment-bind-section:create')
|
||||||
|
? 'separate' : '',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: this.$auth.hasPermi('base:core-equipment-bind-section:create')
|
type: this.$auth.hasPermi('base:core-equipment-bind-section:create')
|
||||||
|
@ -90,7 +90,7 @@ export default {
|
|||||||
prop: 'createTime',
|
prop: 'createTime',
|
||||||
label: '添加时间',
|
label: '添加时间',
|
||||||
fixed: true,
|
fixed: true,
|
||||||
width: 180,
|
minWidth: 180,
|
||||||
filter: (val) => moment(val).format('yyyy-MM-DD HH:mm:ss'),
|
filter: (val) => moment(val).format('yyyy-MM-DD HH:mm:ss'),
|
||||||
},
|
},
|
||||||
{ prop: 'name', label: '类型名称' },
|
{ prop: 'name', label: '类型名称' },
|
||||||
@ -111,7 +111,8 @@ export default {
|
|||||||
color: 'primary',
|
color: 'primary',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'separate',
|
type: this.$auth.hasPermi('base:core-equipment-type:create')
|
||||||
|
? 'separate' : '',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: this.$auth.hasPermi('base:core-equipment-type:create')
|
type: this.$auth.hasPermi('base:core-equipment-type:create')
|
||||||
|
@ -137,7 +137,7 @@ export default {
|
|||||||
color: 'primary',
|
color: 'primary',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'separate',
|
type: this.$auth.hasPermi('base:core-hot-material-check:create') ? 'separate' : '',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: this.$auth.hasPermi('base:core-hot-material-check:create') ? 'button' : '',
|
type: this.$auth.hasPermi('base:core-hot-material-check:create') ? 'button' : '',
|
||||||
|
@ -110,7 +110,7 @@ export default {
|
|||||||
color: 'primary',
|
color: 'primary',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'separate',
|
type: this.$auth.hasPermi('base:core-major:create') ? 'separate' : '',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: this.$auth.hasPermi('base:core-major:create') ? 'button' : '',
|
type: this.$auth.hasPermi('base:core-major:create') ? 'button' : '',
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
<method-btn
|
<method-btn
|
||||||
v-if="tableBtn.length"
|
v-if="tableBtn.length"
|
||||||
slot="handleBtn"
|
slot="handleBtn"
|
||||||
:width="120"
|
:Width="120"
|
||||||
label="操作"
|
label="操作"
|
||||||
:method-list="tableBtn"
|
:method-list="tableBtn"
|
||||||
@clickBtn="handleClick" />
|
@clickBtn="handleClick" />
|
||||||
@ -48,45 +48,45 @@ const tableProps = [
|
|||||||
prop: 'createTime',
|
prop: 'createTime',
|
||||||
label: '添加时间',
|
label: '添加时间',
|
||||||
filter: parseTime,
|
filter: parseTime,
|
||||||
width: 150,
|
minWidth: 150,
|
||||||
showOverflowtooltip: true
|
showOverflowtooltip: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'name',
|
prop: 'name',
|
||||||
label: '产品名称',
|
label: '产品名称',
|
||||||
width: 150,
|
minWidth: 150,
|
||||||
showOverflowtooltip: true
|
showOverflowtooltip: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'code',
|
prop: 'code',
|
||||||
label: '产品编码',
|
label: '产品编码',
|
||||||
width: 190,
|
minWidth: 190,
|
||||||
showOverflowtooltip: true
|
showOverflowtooltip: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'productType',
|
prop: 'productType',
|
||||||
label: '产品类型',
|
label: '产品类型',
|
||||||
filter: publicFormatter('product_type'),
|
filter: publicFormatter('product_type'),
|
||||||
width: 180,
|
minWidth: 180,
|
||||||
showOverflowtooltip: true
|
showOverflowtooltip: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'specifications',
|
prop: 'specifications',
|
||||||
label: '规格',
|
label: '规格',
|
||||||
width: 150,
|
minWidth: 150,
|
||||||
showOverflowtooltip: true
|
showOverflowtooltip: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'unit',
|
prop: 'unit',
|
||||||
label: '单位',
|
label: '单位',
|
||||||
filter: publicFormatter('unit_dict'),
|
filter: publicFormatter('unit_dict'),
|
||||||
width: 90,
|
minWidth: 90,
|
||||||
showOverflowtooltip: true
|
showOverflowtooltip: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'remark',
|
prop: 'remark',
|
||||||
label: '备注',
|
label: '备注',
|
||||||
width: 120,
|
minWidth: 120,
|
||||||
showOverflowtooltip: true
|
showOverflowtooltip: true
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
@ -141,7 +141,7 @@ export default {
|
|||||||
color: 'primary',
|
color: 'primary',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'separate',
|
type: this.$auth.hasPermi('base:core-product:create') ? 'separate' : '',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: this.$auth.hasPermi('base:core-product:create') ? 'button' : '',
|
type: this.$auth.hasPermi('base:core-product:create') ? 'button' : '',
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
<method-btn
|
<method-btn
|
||||||
v-if="tableBtn.length"
|
v-if="tableBtn.length"
|
||||||
slot="handleBtn"
|
slot="handleBtn"
|
||||||
:width="120"
|
:minWidth="120"
|
||||||
label="操作"
|
label="操作"
|
||||||
:method-list="tableBtn"
|
:method-list="tableBtn"
|
||||||
@clickBtn="handleClick" />
|
@clickBtn="handleClick" />
|
||||||
@ -30,7 +30,7 @@
|
|||||||
@cancel="handleCancel"
|
@cancel="handleCancel"
|
||||||
@confirm="handleConfirm"
|
@confirm="handleConfirm"
|
||||||
:before-close="handleCancel"
|
:before-close="handleCancel"
|
||||||
width="50%">
|
minWidth="50%">
|
||||||
<add-or-update
|
<add-or-update
|
||||||
ref="addOrUpdate"
|
ref="addOrUpdate"
|
||||||
@refreshDataList="successSubmit"></add-or-update>
|
@refreshDataList="successSubmit"></add-or-update>
|
||||||
@ -56,39 +56,39 @@ const tableProps = [
|
|||||||
prop: 'createTime',
|
prop: 'createTime',
|
||||||
label: '添加时间',
|
label: '添加时间',
|
||||||
filter: parseTime,
|
filter: parseTime,
|
||||||
width: 150,
|
minWidth: 150,
|
||||||
showOverflowtooltip: true
|
showOverflowtooltip: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'factoryName',
|
prop: 'factoryName',
|
||||||
label: '工厂',
|
label: '工厂',
|
||||||
width: 150,
|
minWidth: 150,
|
||||||
showOverflowtooltip: true
|
showOverflowtooltip: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'roomNameDict',
|
prop: 'roomNameDict',
|
||||||
label: '车间名称',
|
label: '车间名称',
|
||||||
filter: publicFormatter('workshop'),
|
filter: publicFormatter('workshop'),
|
||||||
width: 120,
|
minWidth: 120,
|
||||||
showOverflowtooltip: true
|
showOverflowtooltip: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'name',
|
prop: 'name',
|
||||||
label: '产线名称',
|
label: '产线名称',
|
||||||
width: 120,
|
minWidth: 120,
|
||||||
showOverflowtooltip: true
|
showOverflowtooltip: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'code',
|
prop: 'code',
|
||||||
label: '产线编码',
|
label: '产线编码',
|
||||||
width: 150,
|
minWidth: 150,
|
||||||
showOverflowtooltip: true
|
showOverflowtooltip: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'enabled',
|
prop: 'enabled',
|
||||||
label: '当前状态',
|
label: '当前状态',
|
||||||
filter: codeFilter('lineStatus'),
|
filter: codeFilter('lineStatus'),
|
||||||
width: 120,
|
minWidth: 120,
|
||||||
showOverflowtooltip: true
|
showOverflowtooltip: true
|
||||||
},
|
},
|
||||||
// {
|
// {
|
||||||
@ -98,13 +98,13 @@ const tableProps = [
|
|||||||
{
|
{
|
||||||
prop: 'description',
|
prop: 'description',
|
||||||
label: '描述',
|
label: '描述',
|
||||||
width: 120,
|
minWidth: 120,
|
||||||
showOverflowtooltip: true
|
showOverflowtooltip: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'remark',
|
prop: 'remark',
|
||||||
label: '备注',
|
label: '备注',
|
||||||
width: 120,
|
minWidth: 120,
|
||||||
showOverflowtooltip: true
|
showOverflowtooltip: true
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
@ -147,7 +147,7 @@ export default {
|
|||||||
color: 'primary',
|
color: 'primary',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'separate',
|
type: this.$auth.hasPermi('base:core-production-line:create') ? 'separate' : '',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: this.$auth.hasPermi('base:core-production-line:create') ? 'button' : '',
|
type: this.$auth.hasPermi('base:core-production-line:create') ? 'button' : '',
|
||||||
|
@ -132,7 +132,7 @@ export default {
|
|||||||
color: 'primary',
|
color: 'primary',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'separate',
|
type: this.$auth.hasPermi('base:core-supplier:create') ? 'separate' : '',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: this.$auth.hasPermi('base:core-supplier:create') ? 'button' : '',
|
type: this.$auth.hasPermi('base:core-supplier:create') ? 'button' : '',
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2021-11-18 14:16:25
|
* @Date: 2021-11-18 14:16:25
|
||||||
* @LastEditors: DY
|
* @LastEditors: DY
|
||||||
* @LastEditTime: 2024-04-08 14:27:29
|
* @LastEditTime: 2024-04-10 16:16:31
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -201,6 +201,7 @@
|
|||||||
@pagination="getList" /> -->
|
@pagination="getList" /> -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div v-if="this.$auth.hasPermiAnd(['base:material-product-bom-det:query', 'extend:process-flow:query'])">
|
||||||
<div class="card" style="padding-bottom: 16px;">
|
<div class="card" style="padding-bottom: 16px;">
|
||||||
<div class="boxTitle">
|
<div class="boxTitle">
|
||||||
<span class="blueTitle"></span>
|
<span class="blueTitle"></span>
|
||||||
@ -220,6 +221,7 @@
|
|||||||
:page-sizes="[5, 10, 15]"
|
:page-sizes="[5, 10, 15]"
|
||||||
@pagination="getList" /> -->
|
@pagination="getList" /> -->
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- <div class="drawer-body__footer">
|
<!-- <div class="drawer-body__footer">
|
||||||
<el-button type="primary" @click="goback()">关闭</el-button>
|
<el-button type="primary" @click="goback()">关闭</el-button>
|
||||||
@ -461,7 +463,7 @@ export default {
|
|||||||
});
|
});
|
||||||
// 获取预使用原料列表
|
// 获取预使用原料列表
|
||||||
console.log('111我看看', this.dataForm.materialMethod)
|
console.log('111我看看', this.dataForm.materialMethod)
|
||||||
if (this.dataForm.id) {
|
if (this.dataForm.id && this.$auth.hasPermiAnd(['base:material-product-bom-det:query', 'extend:process-flow:query'])) {
|
||||||
if (this.dataForm.materialMethod === 1) {
|
if (this.dataForm.materialMethod === 1) {
|
||||||
// 产品
|
// 产品
|
||||||
getlistByProductId({
|
getlistByProductId({
|
||||||
|
@ -157,7 +157,8 @@ export default {
|
|||||||
// showTip: '预使用原料信息'
|
// showTip: '预使用原料信息'
|
||||||
// }
|
// }
|
||||||
// : undefined,
|
// : undefined,
|
||||||
{
|
this.$auth.hasPermi(`base:core-work-order:update`)
|
||||||
|
? {
|
||||||
type: 'active',
|
type: 'active',
|
||||||
btnName: '激活',
|
btnName: '激活',
|
||||||
showParam: {
|
showParam: {
|
||||||
@ -175,8 +176,10 @@ export default {
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
{
|
: undefined,
|
||||||
|
this.$auth.hasPermi(`base:core-work-order:update`)
|
||||||
|
? {
|
||||||
type: 'pause',
|
type: 'pause',
|
||||||
btnName: '暂停',
|
btnName: '暂停',
|
||||||
showParam: {
|
showParam: {
|
||||||
@ -189,8 +192,10 @@ export default {
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
{
|
: undefined,
|
||||||
|
this.$auth.hasPermi(`base:core-work-order:update`)
|
||||||
|
? {
|
||||||
type: 'nullify',
|
type: 'nullify',
|
||||||
btnName: '作废',
|
btnName: '作废',
|
||||||
showParam: {
|
showParam: {
|
||||||
@ -203,8 +208,10 @@ export default {
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
{
|
: undefined,
|
||||||
|
this.$auth.hasPermi(`base:core-work-order:update`)
|
||||||
|
? {
|
||||||
type: 'finish',
|
type: 'finish',
|
||||||
btnName: '完成',
|
btnName: '完成',
|
||||||
showParam: {
|
showParam: {
|
||||||
@ -222,8 +229,10 @@ export default {
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
{
|
: undefined,
|
||||||
|
this.$auth.hasPermi(`base:core-work-order:update`)
|
||||||
|
? {
|
||||||
type: 'stop',
|
type: 'stop',
|
||||||
btnName: '终止',
|
btnName: '终止',
|
||||||
showParam: {
|
showParam: {
|
||||||
@ -241,8 +250,12 @@ export default {
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
this.$auth.hasPermi(`base:core-work-order:detail`)
|
: undefined,
|
||||||
|
this.$auth.hasPermiAnd([
|
||||||
|
'base:core-work-order:query',
|
||||||
|
'base:order:query'
|
||||||
|
])
|
||||||
? {
|
? {
|
||||||
type: 'detail',
|
type: 'detail',
|
||||||
btnName: '查看详情',
|
btnName: '查看详情',
|
||||||
|
@ -163,7 +163,7 @@ export default {
|
|||||||
color: 'primary',
|
color: 'primary',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'separate',
|
type: this.$auth.hasPermi('base:core-worker:create') ? 'separate' : '',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: this.$auth.hasPermi('base:core-worker:create') ? 'button' : '',
|
type: this.$auth.hasPermi('base:core-worker:create') ? 'button' : '',
|
||||||
|
@ -52,8 +52,7 @@ const tableProps = [
|
|||||||
{
|
{
|
||||||
prop: 'createTime',
|
prop: 'createTime',
|
||||||
label: '添加时间',
|
label: '添加时间',
|
||||||
filter: parseTime,
|
filter: parseTime
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'code',
|
prop: 'code',
|
||||||
@ -116,7 +115,7 @@ export default {
|
|||||||
color: 'primary',
|
color: 'primary',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'separate',
|
type: this.$auth.hasPermi('base:core-workshop-section:create') ? 'separate' : '',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: this.$auth.hasPermi('base:core-workshop-section:create') ? 'button' : '',
|
type: this.$auth.hasPermi('base:core-workshop-section:create') ? 'button' : '',
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2021-11-18 14:16:25
|
* @Date: 2021-11-18 14:16:25
|
||||||
* @LastEditors: DY
|
* @LastEditors: DY
|
||||||
* @LastEditTime: 2024-03-21 15:21:32
|
* @LastEditTime: 2024-04-11 16:22:19
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -122,14 +122,14 @@
|
|||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="attr-list" v-if="idAttrShow">
|
<div class="attr-list" v-if="idAttrShow && this.$auth.hasPermi('base:material-attr:query')">
|
||||||
<small-title
|
<small-title
|
||||||
style="margin: 16px 0; padding-left: 8px"
|
style="margin: 16px 0; padding-left: 8px"
|
||||||
:no-padding="true">
|
:no-padding="true">
|
||||||
物料属性
|
物料属性
|
||||||
</small-title>
|
</small-title>
|
||||||
|
|
||||||
<div v-if="!isdetail" class="action_btn">
|
<div v-if="!isdetail && this.$auth.hasPermi('base:material-attr:create')" class="action_btn">
|
||||||
<template>
|
<template>
|
||||||
<span style="display: inline-block;">
|
<span style="display: inline-block;">
|
||||||
<el-button type="text" @click="addNew()" icon="el-icon-plus">新增</el-button>
|
<el-button type="text" @click="addNew()" icon="el-icon-plus">新增</el-button>
|
||||||
@ -182,16 +182,23 @@ import { parseTime } from '../../core/mixins/code-filter';
|
|||||||
import attrAdd from './attr-add';
|
import attrAdd from './attr-add';
|
||||||
import { getDictDatas } from "@/utils/dict";
|
import { getDictDatas } from "@/utils/dict";
|
||||||
|
|
||||||
const tableBtn = [
|
// const tableBtn = [
|
||||||
{
|
// this.$auth.hasPermiAnd([
|
||||||
type: 'edit',
|
// 'base:material-attr:create',
|
||||||
btnName: '编辑',
|
// 'base:material-attr:update'
|
||||||
},
|
// ]) ?
|
||||||
{
|
// {
|
||||||
type: 'delete',
|
// type: 'edit',
|
||||||
btnName: '删除',
|
// btnName: '编辑',
|
||||||
},
|
// }
|
||||||
];
|
// : undefined,
|
||||||
|
// this.$auth.hasPermi('base:material-attr:delete') ?
|
||||||
|
// {
|
||||||
|
// type: 'delete',
|
||||||
|
// btnName: '删除',
|
||||||
|
// }
|
||||||
|
// : undefined,
|
||||||
|
// ];
|
||||||
const tableProps = [
|
const tableProps = [
|
||||||
{
|
{
|
||||||
prop: 'createTime',
|
prop: 'createTime',
|
||||||
@ -213,7 +220,23 @@ export default {
|
|||||||
components: { SmallTitle, attrAdd },
|
components: { SmallTitle, attrAdd },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
tableBtn,
|
tableBtn: [
|
||||||
|
this.$auth.hasPermiAnd([
|
||||||
|
'base:material-attr:create',
|
||||||
|
'base:material-attr:update'
|
||||||
|
]) ?
|
||||||
|
{
|
||||||
|
type: 'edit',
|
||||||
|
btnName: '编辑',
|
||||||
|
}
|
||||||
|
: undefined,
|
||||||
|
this.$auth.hasPermi('base:material-attr:delete') ?
|
||||||
|
{
|
||||||
|
type: 'delete',
|
||||||
|
btnName: '删除',
|
||||||
|
}
|
||||||
|
: undefined,
|
||||||
|
],
|
||||||
tableProps,
|
tableProps,
|
||||||
addOrUpdateVisible: false,
|
addOrUpdateVisible: false,
|
||||||
urlOptions: {
|
urlOptions: {
|
||||||
|
@ -134,7 +134,7 @@ export default {
|
|||||||
color: 'primary',
|
color: 'primary',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'separate',
|
type: this.$auth.hasPermi('base:material:create') ? 'separate' : '',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: this.$auth.hasPermi('base:material:create') ? 'button' : '',
|
type: this.$auth.hasPermi('base:material:create') ? 'button' : '',
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2021-11-18 14:16:25
|
* @Date: 2021-11-18 14:16:25
|
||||||
* @LastEditors: DY
|
* @LastEditors: DY
|
||||||
* @LastEditTime: 2024-03-21 14:39:52
|
* @LastEditTime: 2024-04-11 16:44:41
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -56,14 +56,14 @@
|
|||||||
</el-row>
|
</el-row>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
<div class="attr-list" v-if="idAttrShow">
|
<div class="attr-list" v-if="idAttrShow && this.$auth.hasPermiAnd(['base:material-product-bom:query', 'base:material-product-bom-det:query'])">
|
||||||
<small-title
|
<small-title
|
||||||
style="margin: 16px 0; padding-left: 8px"
|
style="margin: 16px 0; padding-left: 8px"
|
||||||
:no-padding="true">
|
:no-padding="true">
|
||||||
BOM明细
|
BOM明细
|
||||||
</small-title>
|
</small-title>
|
||||||
|
|
||||||
<div v-if="!isdetail" class="action_btn">
|
<div v-if="!isdetail && this.$auth.hasPermi('base:material-product-bom:create')" class="action_btn">
|
||||||
<template>
|
<template>
|
||||||
<span style="display: inline-block;">
|
<span style="display: inline-block;">
|
||||||
<el-button type="text" @click="addNew()" icon="el-icon-plus">添加</el-button>
|
<el-button type="text" @click="addNew()" icon="el-icon-plus">添加</el-button>
|
||||||
@ -116,16 +116,16 @@ import { parseTime } from '../../core/mixins/code-filter';
|
|||||||
import attrAdd from './attr-add';
|
import attrAdd from './attr-add';
|
||||||
import { publicFormatter } from '@/utils/dict';
|
import { publicFormatter } from '@/utils/dict';
|
||||||
|
|
||||||
const tableBtn = [
|
// const tableBtn = [
|
||||||
{
|
// {
|
||||||
type: 'edit',
|
// type: 'edit',
|
||||||
btnName: '编辑',
|
// btnName: '编辑',
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
type: 'delete',
|
// type: 'delete',
|
||||||
btnName: '删除',
|
// btnName: '删除',
|
||||||
},
|
// },
|
||||||
];
|
// ];
|
||||||
const tableProps = [
|
const tableProps = [
|
||||||
{
|
{
|
||||||
prop: 'createTime',
|
prop: 'createTime',
|
||||||
@ -160,7 +160,24 @@ export default {
|
|||||||
components: { SmallTitle, attrAdd },
|
components: { SmallTitle, attrAdd },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
tableBtn,
|
tableBtn: [
|
||||||
|
this.$auth.hasPermiAnd([
|
||||||
|
'base:material-product-bom:update',
|
||||||
|
'base:material-product-bom-det:create',
|
||||||
|
'base:material-product-bom-det:update'
|
||||||
|
]) ?
|
||||||
|
{
|
||||||
|
type: 'edit',
|
||||||
|
btnName: '编辑',
|
||||||
|
}
|
||||||
|
: undefined,
|
||||||
|
this.$auth.hasPermi('base:material-product-bom:delete') ?
|
||||||
|
{
|
||||||
|
type: 'delete',
|
||||||
|
btnName: '删除',
|
||||||
|
}
|
||||||
|
: undefined,
|
||||||
|
],
|
||||||
tableProps,
|
tableProps,
|
||||||
addOrUpdateVisible: false,
|
addOrUpdateVisible: false,
|
||||||
urlOptions: {
|
urlOptions: {
|
||||||
|
@ -110,7 +110,7 @@ export default {
|
|||||||
color: 'primary',
|
color: 'primary',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'separate',
|
type: this.$auth.hasPermi('base:material:create') ? 'separate' : '',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: this.$auth.hasPermi('base:material:create') ? 'button' : '',
|
type: this.$auth.hasPermi('base:material:create') ? 'button' : '',
|
||||||
|
@ -125,7 +125,7 @@ export default {
|
|||||||
// name: 'reset',
|
// name: 'reset',
|
||||||
// },
|
// },
|
||||||
{
|
{
|
||||||
type: 'separate',
|
type: this.$auth.hasPermi('base:core-factory:create') ? 'separate' : '',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: this.$auth.hasPermi('base:core-factory:create') ? 'button' : '',
|
type: this.$auth.hasPermi('base:core-factory:create') ? 'button' : '',
|
||||||
|
@ -244,7 +244,8 @@ export default {
|
|||||||
color: 'primary',
|
color: 'primary',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'separate',
|
type: this.$auth.hasPermi('equipment:alarm-group:create')
|
||||||
|
? 'separate' : '',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: this.$auth.hasPermi('equipment:alarm-group:create')
|
type: this.$auth.hasPermi('equipment:alarm-group:create')
|
||||||
|
@ -201,7 +201,8 @@ export default {
|
|||||||
color: 'primary',
|
color: 'primary',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'separate',
|
type: this.$auth.hasPermi('equipment:bind-group:create')
|
||||||
|
? 'separate' : '',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: this.$auth.hasPermi('equipment:bind-group:create')
|
type: this.$auth.hasPermi('equipment:bind-group:create')
|
||||||
|
@ -158,14 +158,14 @@ export default {
|
|||||||
: undefined,
|
: undefined,
|
||||||
].filter((v) => v),
|
].filter((v) => v),
|
||||||
tableProps: [
|
tableProps: [
|
||||||
{ prop: 'productionLine', label: '产线', width: 120, showOverflowtooltip: true },
|
{ prop: 'productionLine', label: '产线', minWidth: 120, showOverflowtooltip: true },
|
||||||
{ prop: 'workshopSection', label: '工段', width: 120, showOverflowtooltip: true },
|
{ prop: 'workshopSection', label: '工段', minWidth: 120, showOverflowtooltip: true },
|
||||||
{ prop: 'equipmentName', label: '设备名', width: 120, showOverflowtooltip: true },
|
{ prop: 'equipmentName', label: '设备名', minWidth: 120, showOverflowtooltip: true },
|
||||||
{ prop: 'equipmentCode', label: '设备编码', width: 200, showOverflowtooltip: true },
|
{ prop: 'equipmentCode', label: '设备编码', minWidth: 200, showOverflowtooltip: true },
|
||||||
{ prop: 'plcCode', label: '关联表编码', width: 220, showOverflowtooltip: true },
|
{ prop: 'plcCode', label: '关联表编码', minWidth: 220, showOverflowtooltip: true },
|
||||||
{ prop: 'plcTableName', label: '关联表名', width: 150, showOverflowtooltip: true },
|
{ prop: 'plcTableName', label: '关联表名', minWidth: 150, showOverflowtooltip: true },
|
||||||
{ prop: 'plcName', label: '标识名称', width: 150, showOverflowtooltip: true },
|
{ prop: 'plcName', label: '标识名称', minWidth: 150, showOverflowtooltip: true },
|
||||||
{ prop: 'bindingParameters', label: '绑定参数数量', width: 120, showOverflowtooltip: true },
|
{ prop: 'bindingParameters', label: '绑定参数数量', minWidth: 120, showOverflowtooltip: true },
|
||||||
// {
|
// {
|
||||||
// _action: 'params-bind',
|
// _action: 'params-bind',
|
||||||
// label: '查看绑定',
|
// label: '查看绑定',
|
||||||
@ -217,7 +217,8 @@ export default {
|
|||||||
color: 'primary',
|
color: 'primary',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'separate',
|
type: this.$auth.hasPermi('equipment:collection-config:create')
|
||||||
|
? 'separate' : '',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: this.$auth.hasPermi('equipment:collection-config:create')
|
type: this.$auth.hasPermi('equipment:collection-config:create')
|
||||||
|
@ -160,13 +160,12 @@ export default {
|
|||||||
color: 'primary',
|
color: 'primary',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'separate',
|
type: this.$auth.hasPermi('base:equipment-plc:create')
|
||||||
|
? 'separate' : '',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
// type: this.$auth.hasPermi('equipment:realtime-table-config:create')
|
type: this.$auth.hasPermi('base:equipment-plc:create')
|
||||||
// ? 'button'
|
? 'button' : '',
|
||||||
// : '',
|
|
||||||
type: 'button',
|
|
||||||
btnName: '新增',
|
btnName: '新增',
|
||||||
name: 'add',
|
name: 'add',
|
||||||
plain: true,
|
plain: true,
|
||||||
@ -194,7 +193,7 @@ export default {
|
|||||||
input: true,
|
input: true,
|
||||||
label: '编码',
|
label: '编码',
|
||||||
prop: 'code',
|
prop: 'code',
|
||||||
url: '/base/equipment-group/getCode',
|
url: '/base/energy-plc/getCode',
|
||||||
rules: [{ required: true, message: '编码不能为空', trigger: 'blur' }],
|
rules: [{ required: true, message: '编码不能为空', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
@ -101,7 +101,10 @@ export default {
|
|||||||
color: 'primary',
|
color: 'primary',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'separate',
|
type: (this.$auth.hasPermi('equipment:inspection-confirm:create') ||
|
||||||
|
this.$auth.hasPermi('equipment:inspection-confirm:confirm') ||
|
||||||
|
this.$auth.hasPermi('equipment:inspection-confirm:export'))
|
||||||
|
? 'separate' : '',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: this.$auth.hasPermi('equipment:inspection-confirm:create')
|
type: this.$auth.hasPermi('equipment:inspection-confirm:create')
|
||||||
|
@ -166,7 +166,8 @@ export default {
|
|||||||
color: 'primary',
|
color: 'primary',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'separate',
|
type: this.$auth.hasPermi('equipment:check-record:export')
|
||||||
|
? 'separate' : '',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: this.$auth.hasPermi('equipment:check-record:export')
|
type: this.$auth.hasPermi('equipment:check-record:export')
|
||||||
|
@ -157,7 +157,8 @@ export default {
|
|||||||
color: 'primary',
|
color: 'primary',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'separate',
|
type: this.$auth.hasPermi('equipment:check-setting:create')
|
||||||
|
? 'separate' : '',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: this.$auth.hasPermi('equipment:check-setting:create')
|
type: this.$auth.hasPermi('equipment:check-setting:create')
|
||||||
|
@ -37,11 +37,11 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
v-if="selectedBox[0]"
|
v-if="selectedBox[0]"
|
||||||
width="160"
|
minWidth="160"
|
||||||
label="设备保养单号"
|
label="设备保养单号"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
prop="maintainOrderNumber"></el-table-column>
|
prop="maintainOrderNumber"></el-table-column>
|
||||||
<el-table-column v-if="selectedBox[1]" width="128" label="保养计划名称" prop="planName">
|
<el-table-column v-if="selectedBox[1]" minWidth="128" label="保养计划名称" prop="planName">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.planName || '---' }}
|
{{ scope.row.planName || '---' }}
|
||||||
</template>
|
</template>
|
||||||
@ -67,7 +67,7 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
v-if="selectedBox[5]"
|
v-if="selectedBox[5]"
|
||||||
width="150"
|
minWidth="150"
|
||||||
label="计划结束时间"
|
label="计划结束时间"
|
||||||
prop="planEndTime">
|
prop="planEndTime">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
@ -76,7 +76,7 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
v-if="selectedBox[6]"
|
v-if="selectedBox[6]"
|
||||||
width="150"
|
minWidth="150"
|
||||||
label="实际开始时间"
|
label="实际开始时间"
|
||||||
prop="startTime">
|
prop="startTime">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
@ -85,7 +85,7 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
v-if="selectedBox[7]"
|
v-if="selectedBox[7]"
|
||||||
width="150"
|
minWidth="150"
|
||||||
label="实际结束时间"
|
label="实际结束时间"
|
||||||
prop="endTime">
|
prop="endTime">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
@ -94,7 +94,7 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
v-if="selectedBox[8]"
|
v-if="selectedBox[8]"
|
||||||
width="150"
|
minWidth="150"
|
||||||
label="确认截止时间"
|
label="确认截止时间"
|
||||||
prop="confirmDueTime">
|
prop="confirmDueTime">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
@ -103,7 +103,7 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
v-if="selectedBox[9]"
|
v-if="selectedBox[9]"
|
||||||
width="150"
|
minWidth="150"
|
||||||
label="保养计划类型"
|
label="保养计划类型"
|
||||||
prop="relatePlan">
|
prop="relatePlan">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
|
@ -157,7 +157,7 @@ export default {
|
|||||||
color: 'primary',
|
color: 'primary',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'separate',
|
type: (this.$auth.hasPermi('equipment:maintain-confirm:confirm') || this.$auth.hasPermi('equipment:maintain-confirm:confirm') || this.$auth.hasPermi('equipment:maintain-confirm:export')) ? 'separate' : '',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: this.$auth.hasPermi('equipment:maintain-confirm:create')
|
type: this.$auth.hasPermi('equipment:maintain-confirm:create')
|
||||||
|
@ -131,7 +131,7 @@ export default {
|
|||||||
// width: 180,
|
// width: 180,
|
||||||
// filter: parseTime(createTime),
|
// filter: parseTime(createTime),
|
||||||
// },
|
// },
|
||||||
{ prop: 'code', label: '保养计划单号', width: 150, showOverflowtooltip: true },
|
{ prop: 'code', label: '保养计划单号', minWidth: 150, showOverflowtooltip: true },
|
||||||
{ prop: 'name', label: '保养计划名称', minWidth: 118, showOverflowtooltip: true },
|
{ prop: 'name', label: '保养计划名称', minWidth: 118, showOverflowtooltip: true },
|
||||||
{ prop: 'departmentName', label: '部门', minWidth: 100, showOverflowtooltip: true },
|
{ prop: 'departmentName', label: '部门', minWidth: 100, showOverflowtooltip: true },
|
||||||
{ prop: 'lineName', label: '产线名', minWidth: 100, showOverflowtooltip: true },
|
{ prop: 'lineName', label: '产线名', minWidth: 100, showOverflowtooltip: true },
|
||||||
@ -190,7 +190,8 @@ export default {
|
|||||||
color: 'primary',
|
color: 'primary',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'separate',
|
type: this.$auth.hasPermi('equipment:maintain-monitor:export')
|
||||||
|
? 'separate' : '',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: this.$auth.hasPermi('equipment:maintain-monitor:export')
|
type: this.$auth.hasPermi('equipment:maintain-monitor:export')
|
||||||
|
@ -65,57 +65,57 @@ const tableProps = [
|
|||||||
{
|
{
|
||||||
prop: 'name',
|
prop: 'name',
|
||||||
label: '保养计划名称',
|
label: '保养计划名称',
|
||||||
width: 120,
|
minWidth: 120,
|
||||||
showOverflowtooltip: true
|
showOverflowtooltip: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'departmentName',
|
prop: 'departmentName',
|
||||||
label: '部门',
|
label: '部门',
|
||||||
width: 120,
|
minWidth: 120,
|
||||||
showOverflowtooltip: true
|
showOverflowtooltip: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'lineName',
|
prop: 'lineName',
|
||||||
label: '产线名',
|
label: '产线名',
|
||||||
width: 120,
|
minWidth: 120,
|
||||||
showOverflowtooltip: true
|
showOverflowtooltip: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'maintenancePeriod',
|
prop: 'maintenancePeriod',
|
||||||
label: '保养频率(天/次)',
|
label: '保养频率(天/次)',
|
||||||
width: 150,
|
minWidth: 150,
|
||||||
showOverflowtooltip: true
|
showOverflowtooltip: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'firstMaintenanceTime',
|
prop: 'firstMaintenanceTime',
|
||||||
label: '首次保养时间',
|
label: '首次保养时间',
|
||||||
filter: parseTime,
|
filter: parseTime,
|
||||||
width: 150,
|
minWidth: 150,
|
||||||
showOverflowtooltip: true
|
showOverflowtooltip: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'maintainDuration',
|
prop: 'maintainDuration',
|
||||||
label: '保养时长',
|
label: '保养时长',
|
||||||
width: 120,
|
minWidth: 120,
|
||||||
showOverflowtooltip: true
|
showOverflowtooltip: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'maintainer',
|
prop: 'maintainer',
|
||||||
label: '计划保养人员',
|
label: '计划保养人员',
|
||||||
width: 150,
|
minWidth: 150,
|
||||||
showOverflowtooltip: true
|
showOverflowtooltip: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'confirmTimeLimit',
|
prop: 'confirmTimeLimit',
|
||||||
label: '确认时限',
|
label: '确认时限',
|
||||||
filter: toDay,
|
filter: toDay,
|
||||||
width: 130,
|
minWidth: 130,
|
||||||
showOverflowtooltip: true
|
showOverflowtooltip: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'remark',
|
prop: 'remark',
|
||||||
label: '备注',
|
label: '备注',
|
||||||
width: 150,
|
minWidth: 150,
|
||||||
showOverflowtooltip: true
|
showOverflowtooltip: true
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
@ -172,7 +172,7 @@ export default {
|
|||||||
color: 'primary',
|
color: 'primary',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'separate',
|
type: this.$auth.hasPermi('equipment:plan-config:create') ? 'separate' : '',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: this.$auth.hasPermi('equipment:plan-config:create') ? 'button' : '',
|
type: this.$auth.hasPermi('equipment:plan-config:create') ? 'button' : '',
|
||||||
|
@ -131,21 +131,21 @@ export default {
|
|||||||
// width: 180,
|
// width: 180,
|
||||||
// filter: timeFilter,
|
// filter: timeFilter,
|
||||||
// },
|
// },
|
||||||
{ prop: 'maintainOrderNumber', label: '设备保养单号', width: 170, showOverflowtooltip: true },
|
{ prop: 'maintainOrderNumber', label: '设备保养单号', minWidth: 170, showOverflowtooltip: true },
|
||||||
{ prop: 'planName', label: '保养计划名称', width: 150, showOverflowtooltip: true },
|
{ prop: 'planName', label: '保养计划名称', minWidth: 150, showOverflowtooltip: true },
|
||||||
{ prop: 'departmentName', label: '部门', width: 120, showOverflowtooltip: true },
|
{ prop: 'departmentName', label: '部门', minWidth: 120, showOverflowtooltip: true },
|
||||||
{ prop: 'lineName', label: '产线名', width: 120, showOverflowtooltip: true },
|
{ prop: 'lineName', label: '产线名', minWidth: 120, showOverflowtooltip: true },
|
||||||
{ prop: 'planStartTime', label: '计划开始时间', filter: parseTime, width: 150, showOverflowtooltip: true },
|
{ prop: 'planStartTime', label: '计划开始时间', filter: parseTime, minWidth: 150, showOverflowtooltip: true },
|
||||||
{ prop: 'planEndTime', label: '计划结束时间', filter: parseTime, width: 150, showOverflowtooltip: true },
|
{ prop: 'planEndTime', label: '计划结束时间', filter: parseTime, minWidth: 150, showOverflowtooltip: true },
|
||||||
{ prop: 'startTime', label: '实际开始时间', filter: parseTime, width: 150, showOverflowtooltip: true },
|
{ prop: 'startTime', label: '实际开始时间', filter: parseTime, minWidth: 150, showOverflowtooltip: true },
|
||||||
{ prop: 'endTime', label: '实际结束时间', filter: parseTime, width: 150, showOverflowtooltip: true },
|
{ prop: 'endTime', label: '实际结束时间', filter: parseTime, minWidth: 150, showOverflowtooltip: true },
|
||||||
// { prop: 'equipmentName', label: '设备名称' },
|
// { prop: 'equipmentName', label: '设备名称' },
|
||||||
// { prop: 'maintainWorker', label: '保养人员' },
|
// { prop: 'maintainWorker', label: '保养人员' },
|
||||||
{
|
{
|
||||||
prop: 'relatePlan',
|
prop: 'relatePlan',
|
||||||
label: '保养计划类型',
|
label: '保养计划类型',
|
||||||
filter: (v) => (v != null ? ['', '计划型', '非计划型'][v] : ''),
|
filter: (v) => (v != null ? ['', '计划型', '非计划型'][v] : ''),
|
||||||
width: 170,
|
minWidth: 170,
|
||||||
showOverflowtooltip: true
|
showOverflowtooltip: true
|
||||||
},
|
},
|
||||||
{ prop: 'opt', label: '详情', name: '详情', subcomponent: btn }
|
{ prop: 'opt', label: '详情', name: '详情', subcomponent: btn }
|
||||||
@ -198,7 +198,8 @@ export default {
|
|||||||
color: 'primary',
|
color: 'primary',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'separate',
|
type: this.$auth.hasPermi('equipment:maintain-record:export')
|
||||||
|
? 'separate' : '',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: this.$auth.hasPermi('equipment:maintain-record:export')
|
type: this.$auth.hasPermi('equipment:maintain-record:export')
|
||||||
|
@ -173,7 +173,7 @@ export default {
|
|||||||
color: 'primary',
|
color: 'primary',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'separate',
|
type: (this.$auth.hasPermi('equipment:repair:export') || this.$auth.hasPermi('equipment:repair:create')) ? 'separate' : '',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: this.$auth.hasPermi('equipment:repair:export') ? 'button' : '',
|
type: this.$auth.hasPermi('equipment:repair:export') ? 'button' : '',
|
||||||
|
Loading…
Reference in New Issue
Block a user