Merge branch 'projects/mesxc-test' into projects/mesxc-zjl
This commit is contained in:
commit
1b2c16fcdb
7
.env.dev
7
.env.dev
@ -1,3 +1,10 @@
|
|||||||
|
###
|
||||||
|
# @Author: zhp
|
||||||
|
# @Date: 2024-04-12 14:30:48
|
||||||
|
# @LastEditTime: 2024-04-12 14:31:16
|
||||||
|
# @LastEditors: zhp
|
||||||
|
# @Description:
|
||||||
|
###
|
||||||
# 开发环境配置
|
# 开发环境配置
|
||||||
ENV = 'development'
|
ENV = 'development'
|
||||||
|
|
||||||
|
@ -201,7 +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 v-if="$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>
|
||||||
|
@ -56,14 +56,14 @@
|
|||||||
</el-row>
|
</el-row>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
<div class="attr-list" v-if="idAttrShow && this.$auth.hasPermiAnd(['base:material-product-bom:query', 'base:material-product-bom-det:query'])">
|
<div class="attr-list" v-if="idAttrShow && $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 && this.$auth.hasPermi('base:material-product-bom:create')" class="action_btn">
|
<div v-if="!isdetail && $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>
|
||||||
|
@ -103,6 +103,7 @@ export default {
|
|||||||
name: 'search',
|
name: 'search',
|
||||||
color: 'primary',
|
color: 'primary',
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
type: this.$auth.hasPermi('monitoring:energy-statistics:create')
|
type: this.$auth.hasPermi('monitoring:energy-statistics:create')
|
||||||
? 'separate'
|
? 'separate'
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2021-11-18 14:16:25
|
* @Date: 2021-11-18 14:16:25
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @LastEditTime: 2024-04-11 13:35:46
|
* @LastEditTime: 2024-04-12 14:26:22
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -100,20 +100,6 @@ import { parseTime } from '../../core/mixins/code-filter';
|
|||||||
import attrAdd from './attr-add';
|
import attrAdd from './attr-add';
|
||||||
// import {DICT_TYPE, getDictDatas} from "@/utils/dict";
|
// import {DICT_TYPE, getDictDatas} from "@/utils/dict";
|
||||||
import { publicFormatter } from '@/utils/dict';
|
import { publicFormatter } from '@/utils/dict';
|
||||||
const tableBtn = [
|
|
||||||
{
|
|
||||||
type: this.$auth.hasPermi('extend:process-equ-material-bom-det:update')
|
|
||||||
? 'edit'
|
|
||||||
: '',
|
|
||||||
btnName: '编辑',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: this.$auth.hasPermi('extend:process-equ-material-bom-det:delete')
|
|
||||||
? 'delete'
|
|
||||||
: '',
|
|
||||||
btnName: '删除',
|
|
||||||
},
|
|
||||||
];
|
|
||||||
const tableProps = [
|
const tableProps = [
|
||||||
{
|
{
|
||||||
prop: 'materialName',
|
prop: 'materialName',
|
||||||
@ -137,22 +123,36 @@ const tableProps = [
|
|||||||
label: '备注',
|
label: '备注',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
const topBtnConfig = [
|
|
||||||
{
|
|
||||||
type: 'add',
|
|
||||||
btnName: 'btn.add'
|
|
||||||
}
|
|
||||||
]
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
mixins: [basicAdd],
|
mixins: [basicAdd],
|
||||||
components: { SmallTitle, attrAdd },
|
components: { SmallTitle, attrAdd },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
tableBtn,
|
tableBtn:[
|
||||||
|
{
|
||||||
|
type: this.$auth.hasPermi(
|
||||||
|
'extend:process-equ-material-bom-det:query'
|
||||||
|
)
|
||||||
|
? 'edit'
|
||||||
|
: '',
|
||||||
|
btnName: '编辑',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: this.$auth.hasPermi('extend:process-equ-material-bom-det:delete')
|
||||||
|
? 'delete'
|
||||||
|
: '',
|
||||||
|
btnName: '删除',
|
||||||
|
},
|
||||||
|
],
|
||||||
tableProps,
|
tableProps,
|
||||||
topBtnConfig,
|
topBtnConfig:[
|
||||||
|
{
|
||||||
|
type: this.$auth.hasPermi('extend:process-equ-material-bom-det:add')
|
||||||
|
? 'add'
|
||||||
|
: '',
|
||||||
|
btnName: 'btn.add'
|
||||||
|
}
|
||||||
|
],
|
||||||
addOrUpdateVisible: false,
|
addOrUpdateVisible: false,
|
||||||
urlOptions: {
|
urlOptions: {
|
||||||
isGetCode: false,
|
isGetCode: false,
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2021-11-18 14:16:25
|
* @Date: 2021-11-18 14:16:25
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @LastEditTime: 2024-04-11 13:35:42
|
* @LastEditTime: 2024-04-12 14:28:44
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -110,20 +110,6 @@ import { parseTime } from '../../core/mixins/code-filter';
|
|||||||
import attrAdd from './attr-add';
|
import attrAdd from './attr-add';
|
||||||
// import {DICT_TYPE, getDictDatas} from "@/utils/dict";
|
// import {DICT_TYPE, getDictDatas} from "@/utils/dict";
|
||||||
|
|
||||||
const tableBtn = [
|
|
||||||
{
|
|
||||||
type: this.$auth.hasPermi('extend:process-equ-value-bom-det:update')
|
|
||||||
? 'edit'
|
|
||||||
: '',
|
|
||||||
btnName: '编辑',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: this.$auth.hasPermi('extend:process-equ-value-bom-det:delete')
|
|
||||||
? 'delete'
|
|
||||||
: '',
|
|
||||||
btnName: '删除',
|
|
||||||
},
|
|
||||||
];
|
|
||||||
const tableProps = [
|
const tableProps = [
|
||||||
{
|
{
|
||||||
prop: 'valueName',
|
prop: 'valueName',
|
||||||
@ -157,25 +143,35 @@ const tableProps = [
|
|||||||
prop: 'remark',
|
prop: 'remark',
|
||||||
label: '备注',
|
label: '备注',
|
||||||
},
|
},
|
||||||
];
|
]
|
||||||
|
export default {
|
||||||
const topBtnConfig = [
|
mixins: [basicAdd],
|
||||||
|
components: { SmallTitle, attrAdd },
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
tableBtn:[
|
||||||
|
{
|
||||||
|
type: this.$auth.hasPermi('extend:process-equ-value-bom-det:update')
|
||||||
|
? 'edit'
|
||||||
|
: '',
|
||||||
|
btnName: '编辑',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: this.$auth.hasPermi('extend:process-equ-value-bom-det:delete')
|
||||||
|
? 'delete'
|
||||||
|
: '',
|
||||||
|
btnName: '删除',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
tableProps,
|
||||||
|
topBtnConfig:[
|
||||||
{
|
{
|
||||||
type: this.$auth.hasPermi('extend:process-equ-value-bom-det:add')
|
type: this.$auth.hasPermi('extend:process-equ-value-bom-det:add')
|
||||||
? 'add'
|
? 'add'
|
||||||
: '',
|
: '',
|
||||||
btnName: 'btn.add'
|
btnName: 'btn.add'
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
|
||||||
export default {
|
|
||||||
mixins: [basicAdd],
|
|
||||||
components: { SmallTitle, attrAdd },
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
tableBtn,
|
|
||||||
tableProps,
|
|
||||||
topBtnConfig,
|
|
||||||
addOrUpdateVisible: false,
|
addOrUpdateVisible: false,
|
||||||
enableList: [
|
enableList: [
|
||||||
{
|
{
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2023-08-01 14:55:51
|
* @Date: 2023-08-01 14:55:51
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @LastEditTime: 2024-04-10 16:31:48
|
* @LastEditTime: 2024-04-12 14:12:55
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -131,7 +131,7 @@ export default {
|
|||||||
width: 250
|
width: 250
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: this.$auth.hasPermi('monitoring:materiel-date-from:query') ? 'button' : '',
|
type: this.$auth.hasPermi('base:material-use-log:query') ? 'button' : '',
|
||||||
btnName: '查询',
|
btnName: '查询',
|
||||||
name: 'search',
|
name: 'search',
|
||||||
color: 'primary',
|
color: 'primary',
|
||||||
@ -163,13 +163,13 @@ export default {
|
|||||||
// },
|
// },
|
||||||
{
|
{
|
||||||
type: this.$auth.hasPermi(
|
type: this.$auth.hasPermi(
|
||||||
'monitoring:materiel-date-from:export'
|
'base:material-use-log:export'
|
||||||
)
|
)
|
||||||
? 'separate'
|
? 'separate'
|
||||||
: '',
|
: '',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: this.$auth.hasPermi('monitoring:materiel-date-from:export') ? 'button' : '',
|
type: this.$auth.hasPermi('base:material-use-log:export') ? 'button' : '',
|
||||||
btnName: '导出',
|
btnName: '导出',
|
||||||
name: 'export',
|
name: 'export',
|
||||||
color: 'primary',
|
color: 'primary',
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2023-08-01 14:55:51
|
* @Date: 2023-08-01 14:55:51
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @LastEditTime: 2024-04-07 16:26:56
|
* @LastEditTime: 2024-04-12 14:16:03
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -97,10 +97,13 @@ export default {
|
|||||||
// }
|
// }
|
||||||
// : undefined,
|
// : undefined,
|
||||||
{
|
{
|
||||||
type: 'processDetail',
|
type: this.$auth.hasPermi(
|
||||||
|
'extend:process-retrospect:query'
|
||||||
|
)
|
||||||
|
? 'button'
|
||||||
|
: '',
|
||||||
btnName: '查看工艺详情',
|
btnName: '查看工艺详情',
|
||||||
},
|
},
|
||||||
|
|
||||||
].filter((v) => v),
|
].filter((v) => v),
|
||||||
list: [],
|
list: [],
|
||||||
listQuery: {
|
listQuery: {
|
||||||
@ -137,7 +140,7 @@ export default {
|
|||||||
{
|
{
|
||||||
|
|
||||||
type: this.$auth.hasPermi(
|
type: this.$auth.hasPermi(
|
||||||
'monitoring:process-traceability:query'
|
'extend:process-retrospect:query'
|
||||||
)
|
)
|
||||||
? 'button'
|
? 'button'
|
||||||
: '',
|
: '',
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2024-01-24 15:15:24
|
* @Date: 2024-01-24 15:15:24
|
||||||
* @LastEditTime: 2024-04-08 11:47:39
|
* @LastEditTime: 2024-04-12 15:13:43
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -184,8 +184,8 @@ export default {
|
|||||||
// console.log(val.setHours(7, 0, 0))
|
// console.log(val.setHours(7, 0, 0))
|
||||||
// console.log(val.setHours(7, 0, 0) + 24 * 60 * 60 * 1000)
|
// console.log(val.setHours(7, 0, 0) + 24 * 60 * 60 * 1000)
|
||||||
// let time = this.format(val.setHours(7, 0, 0))
|
// let time = this.format(val.setHours(7, 0, 0))
|
||||||
this.endTimeStamp = this.format(val.setHours(7, 0, 0)) //+ ' 00:00:00' //new Date(this.startTimeStamp + ' 00:00:00').getTime() / 1000
|
this.startTimeStamp = this.format(val.setHours(7, 0, 1)) //+ ' 00:00:00' //new Date(this.startTimeStamp + ' 00:00:00').getTime() / 1000
|
||||||
this.startTimeStamp = this.format(val.setHours(7, 0, 1) - 24 * 60 * 60 * 1000) //+ ' 23:59:59' //new Date(this.endTimeStamp + ' 23:59:59').getTime() / 1000
|
this.endTimeStamp = this.format(val.setHours(7, 0, 0) + 24 * 60 * 60 * 1000) //+ ' 23:59:59' //new Date(this.endTimeStamp + ' 23:59:59').getTime() / 1000
|
||||||
// console.log(this.listQuery.reportTime);
|
// console.log(this.listQuery.reportTime);
|
||||||
this.listQuery.reportTime[0] = this.format(val.setHours(7, 0, 1)) //+ ' 00:00:00' //new Date(this.startTimeStamp + ' 00:00:00').getTime() / 1000
|
this.listQuery.reportTime[0] = this.format(val.setHours(7, 0, 1)) //+ ' 00:00:00' //new Date(this.startTimeStamp + ' 00:00:00').getTime() / 1000
|
||||||
this.listQuery.reportTime[1] = this.format(val.setHours(7, 0, 0) + 24 * 60 * 60 * 1000) //+ ' 23:59:59' //new Date(this.endTimeStamp + ' 23:59:59').getTime() / 1000
|
this.listQuery.reportTime[1] = this.format(val.setHours(7, 0, 0) + 24 * 60 * 60 * 1000) //+ ' 23:59:59' //new Date(this.endTimeStamp + ' 23:59:59').getTime() / 1000
|
||||||
|
@ -1,14 +1,15 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: Do not edit
|
* @Author: Do not edit
|
||||||
* @Date: 2023-12-13 14:10:04
|
* @Date: 2023-12-13 14:10:04
|
||||||
* @LastEditTime: 2024-03-29 09:43:52
|
* @LastEditTime: 2024-04-12 14:21:34
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<el-row style="float: right; margin-bottom: 5px">
|
<el-row style="float: right; margin-bottom: 5px">
|
||||||
<el-button v-if="!edit" :disabled="noData" size="small" @click="edit = true">编辑</el-button>
|
<el-button v-if="!edit && this.$auth.hasPermi('base:report-auto-original-glass:update')" :disabled="noData"
|
||||||
|
size="small" @click="edit = true">编辑</el-button>
|
||||||
<el-button v-if="edit" size="small" @click="handleReturn()">返回</el-button>
|
<el-button v-if="edit" size="small" @click="handleReturn()">返回</el-button>
|
||||||
<el-button v-if="edit" size="small" @click="updateData">保存</el-button>
|
<el-button v-if="edit" size="small" @click="updateData">保存</el-button>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
@ -160,8 +160,8 @@ export default {
|
|||||||
changeTime(val) {
|
changeTime(val) {
|
||||||
if(val) {
|
if(val) {
|
||||||
// let timeStamp = val.getTime(); //标准时间转为时间戳,毫秒级别
|
// let timeStamp = val.getTime(); //标准时间转为时间戳,毫秒级别
|
||||||
this.startTimeStamp = this.timeFun(new Date(val.getFullYear(), 0, 1, 7, 0, 1).getTime()); //开始时间
|
this.endTimeStamp = this.timeFun(new Date(val.getFullYear(),11, 31, 7, 0, 0).getTime()); //开始时间
|
||||||
this.endTimeStamp = this.timeFun(new Date(val.getFullYear(), 11, 31, 7, 0, 0).getTime()); //结束时间
|
this.startTimeStamp = this.timeFun(new Date(val.getFullYear(), 0, 1, 7, 0, 1).getTime()); //结束时间
|
||||||
this.listQuery.reportTime[0] = parseTime(new Date(val.getFullYear(), 0, 1, 7, 0, 1).getTime()) //+ ' 00:00:00' //new Date(this.startTimeStamp + ' 00:00:00').getTime() / 1000
|
this.listQuery.reportTime[0] = parseTime(new Date(val.getFullYear(), 0, 1, 7, 0, 1).getTime()) //+ ' 00:00:00' //new Date(this.startTimeStamp + ' 00:00:00').getTime() / 1000
|
||||||
this.listQuery.reportTime[1] = parseTime(new Date(val.getFullYear(), 11, 31, 7, 0, 0).getTime()) //+ ' 23:59:59' //new Date(this.endTimeStamp + ' 23:59:59').getTime() / 1000
|
this.listQuery.reportTime[1] = parseTime(new Date(val.getFullYear(), 11, 31, 7, 0, 0).getTime()) //+ ' 23:59:59' //new Date(this.endTimeStamp + ' 23:59:59').getTime() / 1000
|
||||||
} else {
|
} else {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-12-12 13:45:25
|
* @Date: 2023-12-12 13:45:25
|
||||||
* @LastEditTime: 2024-03-29 09:48:24
|
* @LastEditTime: 2024-04-12 15:15:39
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -13,11 +13,12 @@
|
|||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-button type="primary" @click="getDataList()">查询</el-button>
|
<el-button type="primary" @click="getDataList()">查询</el-button>
|
||||||
<el-button v-if="this.$auth.hasPermi('report:glass-month:export')" type="primary" size="small" plain
|
<el-button v-if="this.$auth.hasPermi('base:report-auto-production:query')" type="primary" size="small" plain
|
||||||
@click="handleExport">导出</el-button>
|
@click="handleExport">导出</el-button>
|
||||||
</el-form>
|
</el-form>
|
||||||
<el-row style="float: right; margin-bottom: 5px">
|
<el-row style="float: right; margin-bottom: 5px">
|
||||||
<el-button v-if="!isSave" :disabled="noData" size="small" @click="editDataList()">编辑</el-button>
|
<el-button v-if="!isSave && this.$auth.hasPermi('base:report-auto-production:update')" :disabled="noData"
|
||||||
|
size="small" @click="editDataList()">编辑</el-button>
|
||||||
<el-button v-if="isSave" size="small" @click="handleReturn()">返回</el-button>
|
<el-button v-if="isSave" size="small" @click="handleReturn()">返回</el-button>
|
||||||
<el-button size="small" v-if="isSave" @click="saveDataList()">保存</el-button>
|
<el-button size="small" v-if="isSave" @click="saveDataList()">保存</el-button>
|
||||||
</el-row>
|
</el-row>
|
||||||
@ -485,8 +486,8 @@ export default {
|
|||||||
// console.log(val.setHours(7, 0, 0))
|
// console.log(val.setHours(7, 0, 0))
|
||||||
// console.log(val.setHours(7, 0, 0) + 24 * 60 * 60 * 1000)
|
// console.log(val.setHours(7, 0, 0) + 24 * 60 * 60 * 1000)
|
||||||
// let time = this.format(val.setHours(7, 0, 0))
|
// let time = this.format(val.setHours(7, 0, 0))
|
||||||
this.listQuery.reportTime[1] = this.format(val.setHours(7, 0, 0)) //+ ' 00:00:00' //new Date(this.startTimeStamp + ' 00:00:00').getTime() / 1000
|
this.listQuery.reportTime[0] = this.format(val.setHours(7, 0, 1)) //+ ' 00:00:00' //new Date(this.startTimeStamp + ' 00:00:00').getTime() / 1000
|
||||||
this.listQuery.reportTime[0] = this.format(val.setHours(7, 0, 1) - 24 * 60 * 60 * 1000) //+ ' 23:59:59' //new Date(this.endTimeStamp + ' 23:59:59').getTime() / 1000
|
this.listQuery.reportTime[1] = this.format(val.setHours(7, 0, 0) + 24 * 60 * 60 * 1000) //+ ' 23:59:59' //new Date(this.endTimeStamp + ' 23:59:59').getTime() / 1000
|
||||||
this.timeTips = this.listQuery.reportTime[0] + ' - ' + this.listQuery.reportTime[1]
|
this.timeTips = this.listQuery.reportTime[0] + ' - ' + this.listQuery.reportTime[1]
|
||||||
// console.log(this.listQuery.reportTime);
|
// console.log(this.listQuery.reportTime);
|
||||||
} else {
|
} else {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-12-12 13:45:25
|
* @Date: 2023-12-12 13:45:25
|
||||||
* @LastEditTime: 2024-04-08 11:45:52
|
* @LastEditTime: 2024-04-12 14:22:46
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -12,13 +12,15 @@
|
|||||||
<el-date-picker v-model="reportTime" type="month" size="small" @change="changeTime" placeholder="选择月">
|
<el-date-picker v-model="reportTime" type="month" size="small" @change="changeTime" placeholder="选择月">
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-button v-if="this.$auth.hasPermi('report:auto-production:query')" type="primary" @click="getDataList()">查询
|
<el-button v-if="this.$auth.hasPermi('base:report-auto-production:query')" type="primary" @click="getDataList()">
|
||||||
|
查询
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button v-if="this.$auth.hasPermi('report:auto-production:export')" type="primary" size="small" plain
|
<el-button v-if="this.$auth.hasPermi('base:report-auto-production:export')" type="primary" size="small" plain
|
||||||
@click="handleExport">导出</el-button>
|
@click="handleExport">导出</el-button>
|
||||||
</el-form>
|
</el-form>
|
||||||
<el-row style="float: right; margin-bottom: 5px">
|
<el-row style="float: right; margin-bottom: 5px">
|
||||||
<el-button v-if="!isSave" :disabled="noData" size="small" @click="editDataList()">编辑</el-button>
|
<el-button v-if="!isSave && this.$auth.hasPermi('base:report-auto-production:update')" :disabled="noData"
|
||||||
|
size="small" @click="editDataList()">编辑</el-button>
|
||||||
<el-button v-if="isSave" size="small" @click="handleReturn()">返回</el-button>
|
<el-button v-if="isSave" size="small" @click="handleReturn()">返回</el-button>
|
||||||
<el-button size="small" v-if="isSave" @click="saveDataList()">保存</el-button>
|
<el-button size="small" v-if="isSave" @click="saveDataList()">保存</el-button>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-12-12 13:45:25
|
* @Date: 2023-12-12 13:45:25
|
||||||
* @LastEditTime: 2024-03-29 09:48:41
|
* @LastEditTime: 2024-04-12 14:22:51
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -14,13 +14,15 @@
|
|||||||
style="width: 350px" placeholder="选择周">
|
style="width: 350px" placeholder="选择周">
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-button v-if="this.$auth.hasPermi('report:auto-production:query')" type="primary" @click="getDataList()">查询
|
<el-button v-if="this.$auth.hasPermi('base:report-auto-production:query')" type="primary" @click="getDataList()">
|
||||||
|
查询
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button v-if="this.$auth.hasPermi('report:auto-production:export')" type="primary" size="small" plain
|
<el-button v-if="this.$auth.hasPermi('base:report-auto-production:export')" type="primary" size="small" plain
|
||||||
@click="handleExport">导出</el-button>
|
@click="handleExport">导出</el-button>
|
||||||
</el-form>
|
</el-form>
|
||||||
<el-row style="float: right; margin-bottom: 5px">
|
<el-row style="float: right; margin-bottom: 5px">
|
||||||
<el-button v-if="!isSave" :disabled="noData" size="small" @click="editDataList()">编辑</el-button>
|
<el-button v-if="!isSave && this.$auth.hasPermi('base:report-auto-production:update')" :disabled="noData"
|
||||||
|
size="small" @click="editDataList()">编辑</el-button>
|
||||||
<el-button v-if="isSave" size="small" @click="handleReturn()">返回</el-button>
|
<el-button v-if="isSave" size="small" @click="handleReturn()">返回</el-button>
|
||||||
<el-button size="small" v-if="isSave" @click="saveDataList()">保存</el-button>
|
<el-button size="small" v-if="isSave" @click="saveDataList()">保存</el-button>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-12-12 13:45:25
|
* @Date: 2023-12-12 13:45:25
|
||||||
* @LastEditTime: 2024-04-08 11:46:49
|
* @LastEditTime: 2024-04-12 14:22:54
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -14,15 +14,17 @@
|
|||||||
style="width: 350px" placeholder="选择年">
|
style="width: 350px" placeholder="选择年">
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-button v-if="this.$auth.hasPermi('report:auto-production:query')" type="primary" @click="getDataList()">查询
|
<el-button v-if="this.$auth.hasPermi('base:report-auto-production:query')" type="primary" @click="getDataList()">
|
||||||
|
查询
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button v-if="this.$auth.hasPermi('report:auto-production:export')" type="primary" size="small" plain
|
<el-button v-if="this.$auth.hasPermi('base:report-auto-production:export')" type="primary" size="small" plain
|
||||||
@click="handleExport">导出</el-button>
|
@click="handleExport">导出</el-button>
|
||||||
<!-- <el-button type="primary" icon="el-icon-edit-outline" @click="editDataList()">编辑</el-button>
|
<!-- <el-button type="primary" icon="el-icon-edit-outline" @click="editDataList()">编辑</el-button>
|
||||||
<el-button v-if="isSave" type="success" @click="saveDataList()">保存</el-button> -->
|
<el-button v-if="isSave" type="success" @click="saveDataList()">保存</el-button> -->
|
||||||
</el-form>
|
</el-form>
|
||||||
<el-row style="float: right; margin-bottom: 5px">
|
<el-row style="float: right; margin-bottom: 5px">
|
||||||
<el-button v-if="!isSave" :disabled="noData" size="small" @click="editDataList()">编辑</el-button>
|
<el-button v-if="!isSave && this.$auth.hasPermi('base:report-auto-production:update')" :disabled="noData"
|
||||||
|
size="small" @click="editDataList()">编辑</el-button>
|
||||||
<el-button v-if="isSave" size="small" @click="handleReturn()">返回</el-button>
|
<el-button v-if="isSave" size="small" @click="handleReturn()">返回</el-button>
|
||||||
<el-button size="small" v-if="isSave" @click="saveDataList()">保存</el-button>
|
<el-button size="small" v-if="isSave" @click="saveDataList()">保存</el-button>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
@ -91,13 +91,13 @@
|
|||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
},
|
},
|
||||||
tableBtn: [
|
tableBtn: [
|
||||||
this.$auth.hasPermi('base:core-equipment-attr:update') // ('se:firefight-attr:update') // TODO 此处需用firefight-attr权限还是core-equipment-attr 权限?
|
this.$auth.hasPermi('base:core-equipment-attr:update')
|
||||||
? {
|
? {
|
||||||
type: 'edit',
|
type: 'edit',
|
||||||
btnName: '修改',
|
btnName: '修改',
|
||||||
}
|
}
|
||||||
: undefined,
|
: undefined,
|
||||||
this.$auth.hasPermi('base:core-equipment-attr:delete') // ('se:firefight-attr:delete')
|
this.$auth.hasPermi('base:core-equipment-attr:delete')
|
||||||
? {
|
? {
|
||||||
type: 'delete',
|
type: 'delete',
|
||||||
btnName: '删除',
|
btnName: '删除',
|
||||||
@ -142,19 +142,29 @@ export default {
|
|||||||
return {
|
return {
|
||||||
searchBarKeys: ['name', 'code'],
|
searchBarKeys: ['name', 'code'],
|
||||||
tableBtn: [
|
tableBtn: [
|
||||||
this.$auth.hasPermi(`se:firefight:update`)
|
this.$auth.hasPermiAnd([
|
||||||
|
'base:core-equipment:query',
|
||||||
|
'base:core-equipment-attr:query',
|
||||||
|
])
|
||||||
? {
|
? {
|
||||||
type: 'detail',
|
type: 'detail',
|
||||||
btnName: '详情',
|
btnName: '详情',
|
||||||
}
|
}
|
||||||
: undefined,
|
: undefined,
|
||||||
this.$auth.hasPermi('se:firefight:update')
|
this.$auth.hasPermiAnd([
|
||||||
|
'base:core-equipment:update',
|
||||||
|
'base:core-worker:query',
|
||||||
|
'base:core-equipment:query',
|
||||||
|
'base:core-equipment-attr:create',
|
||||||
|
'base:core-equipment-attr:query',
|
||||||
|
'base:core-equipment-attr:delete',
|
||||||
|
])
|
||||||
? {
|
? {
|
||||||
type: 'edit',
|
type: 'edit',
|
||||||
btnName: '修改',
|
btnName: '修改',
|
||||||
}
|
}
|
||||||
: undefined,
|
: undefined,
|
||||||
this.$auth.hasPermi('se:firefight:delete')
|
this.$auth.hasPermi('base:core-equipment:delete')
|
||||||
? {
|
? {
|
||||||
type: 'delete',
|
type: 'delete',
|
||||||
btnName: '删除',
|
btnName: '删除',
|
||||||
@ -205,17 +215,32 @@ export default {
|
|||||||
color: 'primary',
|
color: 'primary',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'separate',
|
type:
|
||||||
|
this.$auth.hasPermi('base:core-equipment:export') ||
|
||||||
|
this.$auth.hasPermiAnd([
|
||||||
|
'base:core-equipment:create',
|
||||||
|
'base:core-worker:query',
|
||||||
|
])
|
||||||
|
? 'separate'
|
||||||
|
: '',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: this.$auth.hasPermi('se:firefight:export') ? 'button' : '',
|
type: this.$auth.hasPermi('base:core-equipment:export')
|
||||||
|
? 'button'
|
||||||
|
: '',
|
||||||
btnName: '导出',
|
btnName: '导出',
|
||||||
name: 'export',
|
name: 'export',
|
||||||
plain: true,
|
plain: true,
|
||||||
color: 'primary',
|
color: 'primary',
|
||||||
},
|
},
|
||||||
|
//
|
||||||
{
|
{
|
||||||
type: this.$auth.hasPermi('se:firefight:create') ? 'button' : '',
|
type: this.$auth.hasPermiAnd([
|
||||||
|
'base:core-equipment:create',
|
||||||
|
'base:core-worker:query',
|
||||||
|
])
|
||||||
|
? 'button'
|
||||||
|
: '',
|
||||||
btnName: '新增',
|
btnName: '新增',
|
||||||
name: 'add',
|
name: 'add',
|
||||||
plain: true,
|
plain: true,
|
||||||
|
@ -142,19 +142,29 @@ export default {
|
|||||||
return {
|
return {
|
||||||
searchBarKeys: ['name', 'code'],
|
searchBarKeys: ['name', 'code'],
|
||||||
tableBtn: [
|
tableBtn: [
|
||||||
this.$auth.hasPermi(`se:manage:update`)
|
this.$auth.hasPermiAnd([
|
||||||
|
'base:core-equipment:query',
|
||||||
|
'base:core-equipment-attr:query',
|
||||||
|
])
|
||||||
? {
|
? {
|
||||||
type: 'detail',
|
type: 'detail',
|
||||||
btnName: '详情',
|
btnName: '详情',
|
||||||
}
|
}
|
||||||
: undefined,
|
: undefined,
|
||||||
this.$auth.hasPermi('se:manage:update')
|
this.$auth.hasPermiAnd([
|
||||||
|
'base:core-equipment:update',
|
||||||
|
'base:core-worker:query',
|
||||||
|
'base:core-equipment:query',
|
||||||
|
'base:core-equipment-attr:create',
|
||||||
|
'base:core-equipment-attr:query',
|
||||||
|
'base:core-equipment-attr:delete',
|
||||||
|
])
|
||||||
? {
|
? {
|
||||||
type: 'edit',
|
type: 'edit',
|
||||||
btnName: '修改',
|
btnName: '修改',
|
||||||
}
|
}
|
||||||
: undefined,
|
: undefined,
|
||||||
this.$auth.hasPermi('se:manage:delete')
|
this.$auth.hasPermi('base:core-equipment:delete')
|
||||||
? {
|
? {
|
||||||
type: 'delete',
|
type: 'delete',
|
||||||
btnName: '删除',
|
btnName: '删除',
|
||||||
@ -204,10 +214,17 @@ export default {
|
|||||||
color: 'primary',
|
color: 'primary',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'separate',
|
type:
|
||||||
|
this.$auth.hasPermi('base:core-equipment:export') ||
|
||||||
|
this.$auth.hasPermiAnd([
|
||||||
|
'base:core-equipment:create',
|
||||||
|
'base:core-worker:query',
|
||||||
|
])
|
||||||
|
? 'separate'
|
||||||
|
: '',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: this.$auth.hasPermi('se:manage:export')
|
type: this.$auth.hasPermi('base:core-equipment:export')
|
||||||
? 'button'
|
? 'button'
|
||||||
: '',
|
: '',
|
||||||
btnName: '导出',
|
btnName: '导出',
|
||||||
@ -216,7 +233,10 @@ export default {
|
|||||||
color: 'primary',
|
color: 'primary',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: this.$auth.hasPermi('se:manage:create')
|
type: this.$auth.hasPermiAnd([
|
||||||
|
'base:core-equipment:create',
|
||||||
|
'base:core-worker:query',
|
||||||
|
])
|
||||||
? 'button'
|
? 'button'
|
||||||
: '',
|
: '',
|
||||||
btnName: '新增',
|
btnName: '新增',
|
||||||
|
@ -141,19 +141,30 @@ export default {
|
|||||||
return {
|
return {
|
||||||
searchBarKeys: ['name', 'code'],
|
searchBarKeys: ['name', 'code'],
|
||||||
tableBtn: [
|
tableBtn: [
|
||||||
this.$auth.hasPermi(`se:safety:update`)
|
this.$auth.hasPermiAnd([
|
||||||
|
'base:core-equipment:query',
|
||||||
|
'base:core-equipment-attr:query',
|
||||||
|
])
|
||||||
? {
|
? {
|
||||||
type: 'detail',
|
type: 'detail',
|
||||||
btnName: '详情',
|
btnName: '详情',
|
||||||
}
|
}
|
||||||
: undefined,
|
: undefined,
|
||||||
this.$auth.hasPermi('se:safety:update')
|
//
|
||||||
|
this.$auth.hasPermiAnd([
|
||||||
|
'base:core-equipment:update',
|
||||||
|
'base:core-worker:query',
|
||||||
|
'base:core-equipment:query',
|
||||||
|
'base:core-equipment-attr:create',
|
||||||
|
'base:core-equipment-attr:query',
|
||||||
|
'base:core-equipment-attr:delete',
|
||||||
|
])
|
||||||
? {
|
? {
|
||||||
type: 'edit',
|
type: 'edit',
|
||||||
btnName: '修改',
|
btnName: '修改',
|
||||||
}
|
}
|
||||||
: undefined,
|
: undefined,
|
||||||
this.$auth.hasPermi('se:safety:delete')
|
this.$auth.hasPermi('base:core-equipment:delete')
|
||||||
? {
|
? {
|
||||||
type: 'delete',
|
type: 'delete',
|
||||||
btnName: '删除',
|
btnName: '删除',
|
||||||
@ -203,10 +214,17 @@ export default {
|
|||||||
color: 'primary',
|
color: 'primary',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'separate',
|
type:
|
||||||
|
this.$auth.hasPermi('base:core-equipment:export') ||
|
||||||
|
this.$auth.hasPermiAnd([
|
||||||
|
'base:core-equipment:create',
|
||||||
|
'base:core-worker:query',
|
||||||
|
])
|
||||||
|
? 'separate'
|
||||||
|
: '',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: this.$auth.hasPermi('se:safety:export')
|
type: this.$auth.hasPermi('base:core-equipment:export')
|
||||||
? 'button'
|
? 'button'
|
||||||
: '',
|
: '',
|
||||||
btnName: '导出',
|
btnName: '导出',
|
||||||
@ -215,7 +233,10 @@ export default {
|
|||||||
color: 'primary',
|
color: 'primary',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: this.$auth.hasPermi('se:safety:create')
|
type: this.$auth.hasPermiAnd([
|
||||||
|
'base:core-equipment:create',
|
||||||
|
'base:core-worker:query',
|
||||||
|
])
|
||||||
? 'button'
|
? 'button'
|
||||||
: '',
|
: '',
|
||||||
btnName: '新增',
|
btnName: '新增',
|
||||||
|
@ -103,6 +103,7 @@
|
|||||||
label="操作">
|
label="操作">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-tooltip
|
<el-tooltip
|
||||||
|
v-if="$auth.hasPermi('equipment:check:update')"
|
||||||
content="确认"
|
content="确认"
|
||||||
placement="top">
|
placement="top">
|
||||||
<el-button
|
<el-button
|
||||||
@ -114,8 +115,13 @@
|
|||||||
</el-button>
|
</el-button>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
<!-- line -->
|
<!-- line -->
|
||||||
<span style="margin: 0 4px; font-size: 18px; color: #e5e7eb">|</span>
|
<span
|
||||||
|
v-if="$auth.hasPermi('equipment:check:query')"
|
||||||
|
style="margin: 0 4px; font-size: 18px; color: #e5e7eb">
|
||||||
|
|
|
||||||
|
</span>
|
||||||
<el-tooltip
|
<el-tooltip
|
||||||
|
v-if="$auth.hasPermi('equipment:check:query')"
|
||||||
content="查看详情"
|
content="查看详情"
|
||||||
placement="top">
|
placement="top">
|
||||||
<el-button
|
<el-button
|
||||||
@ -126,8 +132,35 @@
|
|||||||
</el-button>
|
</el-button>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
<!-- line -->
|
<!-- line -->
|
||||||
<span style="margin: 0 4px; font-size: 18px; color: #e5e7eb">|</span>
|
<span
|
||||||
|
v-if="
|
||||||
|
$auth.hasPermiAnd([
|
||||||
|
'equipment:check:update',
|
||||||
|
'base:core-worker:query',
|
||||||
|
'base:group-classes:query',
|
||||||
|
'base:core-department:query',
|
||||||
|
'equipment:check:query',
|
||||||
|
'equipment:check:create',
|
||||||
|
'equipment:check:delete',
|
||||||
|
'base:core-equipment:query',
|
||||||
|
])
|
||||||
|
"
|
||||||
|
style="margin: 0 4px; font-size: 18px; color: #e5e7eb">
|
||||||
|
|
|
||||||
|
</span>
|
||||||
<el-tooltip
|
<el-tooltip
|
||||||
|
v-if="
|
||||||
|
$auth.hasPermiAnd([
|
||||||
|
'equipment:check:update',
|
||||||
|
'base:core-worker:query',
|
||||||
|
'base:group-classes:query',
|
||||||
|
'base:core-department:query',
|
||||||
|
'equipment:check:query',
|
||||||
|
'equipment:check:create',
|
||||||
|
'equipment:check:delete',
|
||||||
|
'base:core-equipment:query',
|
||||||
|
])
|
||||||
|
"
|
||||||
content="编辑"
|
content="编辑"
|
||||||
placement="top">
|
placement="top">
|
||||||
<el-button
|
<el-button
|
||||||
@ -138,8 +171,13 @@
|
|||||||
</el-button>
|
</el-button>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
<!-- line -->
|
<!-- line -->
|
||||||
<span style="margin: 0 4px; font-size: 18px; color: #e5e7eb">|</span>
|
<span
|
||||||
|
v-if="$auth.hasPermi('equipment:check:delete')"
|
||||||
|
style="margin: 0 4px; font-size: 18px; color: #e5e7eb">
|
||||||
|
|
|
||||||
|
</span>
|
||||||
<el-tooltip
|
<el-tooltip
|
||||||
|
v-if="$auth.hasPermi('equipment:check:delete')"
|
||||||
content="删除"
|
content="删除"
|
||||||
placement="top">
|
placement="top">
|
||||||
<el-button
|
<el-button
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
v-if="tableBtn.length"
|
v-if="tableBtn.length"
|
||||||
slot="handleBtn"
|
slot="handleBtn"
|
||||||
label="操作"
|
label="操作"
|
||||||
:width="180"
|
:width="128"
|
||||||
:method-list="tableBtn"
|
:method-list="tableBtn"
|
||||||
@clickBtn="handleTableBtnClick" />
|
@clickBtn="handleTableBtnClick" />
|
||||||
</base-table>
|
</base-table>
|
||||||
@ -78,20 +78,29 @@ export default {
|
|||||||
addOrEditTitle: '',
|
addOrEditTitle: '',
|
||||||
searchBarKeys: ['name'],
|
searchBarKeys: ['name'],
|
||||||
tableBtn: [
|
tableBtn: [
|
||||||
this.$auth.hasPermi('se:check:add-item')
|
this.$auth.hasPermiAnd([
|
||||||
|
'equipment:check:create',
|
||||||
|
'equipment:check:query',
|
||||||
|
'equipment:check:update',
|
||||||
|
'equipment:check:delete',
|
||||||
|
])
|
||||||
? {
|
? {
|
||||||
type: 'add',
|
type: 'add',
|
||||||
btnName: '添加',
|
btnName: '添加',
|
||||||
showTip: '添加巡检',
|
showTip: '添加巡检',
|
||||||
}
|
}
|
||||||
: undefined,
|
: undefined,
|
||||||
this.$auth.hasPermi('se:check:update')
|
this.$auth.hasPermiAnd([
|
||||||
|
'equipment:check:update',
|
||||||
|
'equipment:check:query',
|
||||||
|
'base:core-department:query',
|
||||||
|
])
|
||||||
? {
|
? {
|
||||||
type: 'edit',
|
type: 'edit',
|
||||||
btnName: '修改',
|
btnName: '修改',
|
||||||
}
|
}
|
||||||
: undefined,
|
: undefined,
|
||||||
this.$auth.hasPermi('se:check:delete')
|
this.$auth.hasPermi('equipment:check:delete')
|
||||||
? {
|
? {
|
||||||
type: 'delete',
|
type: 'delete',
|
||||||
btnName: '删除',
|
btnName: '删除',
|
||||||
@ -164,10 +173,20 @@ export default {
|
|||||||
color: 'primary',
|
color: 'primary',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'separate',
|
type: this.$auth.hasPermiAnd([
|
||||||
|
'equipment:check:create',
|
||||||
|
'base:core-department:query',
|
||||||
|
])
|
||||||
|
? 'separate'
|
||||||
|
: '',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: this.$auth.hasPermi('se:check:create') ? 'button' : '',
|
type: this.$auth.hasPermiAnd([
|
||||||
|
'equipment:check:create',
|
||||||
|
'base:core-department:query',
|
||||||
|
])
|
||||||
|
? 'button'
|
||||||
|
: '',
|
||||||
btnName: '新增',
|
btnName: '新增',
|
||||||
name: 'add',
|
name: 'add',
|
||||||
plain: true,
|
plain: true,
|
||||||
|
@ -155,10 +155,25 @@ export default {
|
|||||||
color: 'primary',
|
color: 'primary',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'separate',
|
type:
|
||||||
|
this.$auth.hasPermiAnd([
|
||||||
|
'equipment:check:create',
|
||||||
|
'base:core-worker:query',
|
||||||
|
'base:group-classes:query',
|
||||||
|
'base:core-department:query',
|
||||||
|
]) ||
|
||||||
|
this.$auth.hasPermi('equipment:check:export') ||
|
||||||
|
this.$auth.hasPermi('equipment:check:update')
|
||||||
|
? 'separate'
|
||||||
|
: '',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: this.$auth.hasPermi('se:check-unconfirm:create')
|
type: this.$auth.hasPermiAnd([
|
||||||
|
'equipment:check:create',
|
||||||
|
'base:core-worker:query',
|
||||||
|
'base:group-classes:query',
|
||||||
|
'base:core-department:query',
|
||||||
|
])
|
||||||
? 'button'
|
? 'button'
|
||||||
: '',
|
: '',
|
||||||
btnName: '新增',
|
btnName: '新增',
|
||||||
@ -167,18 +182,14 @@ export default {
|
|||||||
color: 'success',
|
color: 'success',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: this.$auth.hasPermi('se:check-unconfirm:export')
|
type: this.$auth.hasPermi('equipment:check:export') ? 'button' : '',
|
||||||
? 'button'
|
|
||||||
: '',
|
|
||||||
btnName: '导出',
|
btnName: '导出',
|
||||||
name: 'export',
|
name: 'export',
|
||||||
plain: true,
|
plain: true,
|
||||||
color: 'warning',
|
color: 'warning',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: this.$auth.hasPermi('se:check-unconfirm:confirm-all')
|
type: this.$auth.hasPermi('equipment:check:update') ? 'button' : '',
|
||||||
? 'button'
|
|
||||||
: '',
|
|
||||||
btnName: '批量确认',
|
btnName: '批量确认',
|
||||||
name: 'batch-confirm',
|
name: 'batch-confirm',
|
||||||
plain: true,
|
plain: true,
|
||||||
|
@ -71,7 +71,7 @@ export default {
|
|||||||
addOrUpdateVisible: false,
|
addOrUpdateVisible: false,
|
||||||
searchBarKeys: ['name', 'actualCheckTime'],
|
searchBarKeys: ['name', 'actualCheckTime'],
|
||||||
tableBtn: [
|
tableBtn: [
|
||||||
this.$auth.hasPermi('se:check-record:detail')
|
this.$auth.hasPermi('equipment:check:query')
|
||||||
? {
|
? {
|
||||||
type: 'detail',
|
type: 'detail',
|
||||||
btnName: '详情',
|
btnName: '详情',
|
||||||
@ -147,10 +147,10 @@ export default {
|
|||||||
color: 'primary',
|
color: 'primary',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'separate',
|
type: this.$auth.hasPermi('equipment:check:export') ? 'separate' : '',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: this.$auth.hasPermi('se:check-record:export') ? 'button' : '',
|
type: this.$auth.hasPermi('equipment:check:export') ? 'button' : '',
|
||||||
btnName: '导出',
|
btnName: '导出',
|
||||||
name: 'export',
|
name: 'export',
|
||||||
plain: true,
|
plain: true,
|
||||||
|
@ -122,20 +122,22 @@ export default {
|
|||||||
minWidth: 158,
|
minWidth: 158,
|
||||||
showOverflowtooltip: true,
|
showOverflowtooltip: true,
|
||||||
},
|
},
|
||||||
{
|
this.$auth.hasPermi('equipment:plan-config:query')
|
||||||
|
? {
|
||||||
prop: 'opt2',
|
prop: 'opt2',
|
||||||
label: '保养内容',
|
label: '保养内容',
|
||||||
entryText: '详情',
|
entryText: '详情',
|
||||||
subcomponent: TableBtn,
|
subcomponent: TableBtn,
|
||||||
width: 100,
|
width: 100,
|
||||||
},
|
}
|
||||||
|
: undefined,
|
||||||
{
|
{
|
||||||
prop: 'remainDays',
|
prop: 'remainDays',
|
||||||
label: '距离下次保养剩余时间(天)',
|
label: '距离下次保养剩余时间(天)',
|
||||||
subcomponent: RemainBox,
|
subcomponent: RemainBox,
|
||||||
minWidth: 210,
|
minWidth: 210,
|
||||||
},
|
},
|
||||||
],
|
].filter(v => v),
|
||||||
searchBarFormConfig: [
|
searchBarFormConfig: [
|
||||||
{
|
{
|
||||||
type: 'select',
|
type: 'select',
|
||||||
@ -151,10 +153,12 @@ export default {
|
|||||||
color: 'primary',
|
color: 'primary',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'separate',
|
type: this.$auth.hasPermi('equipment:plan-config:export')
|
||||||
|
? 'separate'
|
||||||
|
: '',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: this.$auth.hasPermi('se:maintain-plan:export')
|
type: this.$auth.hasPermi('equipment:plan-config:export')
|
||||||
? 'button'
|
? 'button'
|
||||||
: '',
|
: '',
|
||||||
btnName: '导出',
|
btnName: '导出',
|
||||||
|
@ -83,19 +83,31 @@ export default {
|
|||||||
return {
|
return {
|
||||||
searchBarKeys: ['planName'],
|
searchBarKeys: ['planName'],
|
||||||
tableBtn: [
|
tableBtn: [
|
||||||
this.$auth.hasPermi('se:maintain:update')
|
this.$auth.hasPermiAnd([
|
||||||
|
'equipment:plan-config:query',
|
||||||
|
'equipment:plan-config:create',
|
||||||
|
'equipment:plan-config:update',
|
||||||
|
'equipment:plan-config:delete',
|
||||||
|
'base:core-equipment:query',
|
||||||
|
])
|
||||||
? {
|
? {
|
||||||
type: 'addContent',
|
type: 'addContent',
|
||||||
btnName: '添加内容',
|
btnName: '添加内容',
|
||||||
}
|
}
|
||||||
: undefined,
|
: undefined,
|
||||||
this.$auth.hasPermi('se:maintain:update')
|
this.$auth.hasPermiAnd([
|
||||||
|
'equipment:plan-config:update',
|
||||||
|
'equipment:plan-config:query',
|
||||||
|
'base:core-worker:query',
|
||||||
|
'base:core-production-line:query',
|
||||||
|
'base:core-department:query',
|
||||||
|
])
|
||||||
? {
|
? {
|
||||||
type: 'edit',
|
type: 'edit',
|
||||||
btnName: '修改',
|
btnName: '修改',
|
||||||
}
|
}
|
||||||
: undefined,
|
: undefined,
|
||||||
this.$auth.hasPermi('se:maintain:delete')
|
this.$auth.hasPermi('equipment:plan-config:delete')
|
||||||
? {
|
? {
|
||||||
type: 'delete',
|
type: 'delete',
|
||||||
btnName: '删除',
|
btnName: '删除',
|
||||||
@ -166,10 +178,24 @@ export default {
|
|||||||
color: 'primary',
|
color: 'primary',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'separate',
|
type: this.$auth.hasPermiAnd([
|
||||||
|
'equipment:plan-config:create',
|
||||||
|
'base:core-worker:query',
|
||||||
|
'base:core-production-line:query',
|
||||||
|
'base:core-department:query',
|
||||||
|
])
|
||||||
|
? 'separate'
|
||||||
|
: '',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: this.$auth.hasPermi('se:maintain:create') ? 'button' : '',
|
type: this.$auth.hasPermiAnd([
|
||||||
|
'equipment:plan-config:create',
|
||||||
|
'base:core-worker:query',
|
||||||
|
'base:core-production-line:query',
|
||||||
|
'base:core-department:query',
|
||||||
|
])
|
||||||
|
? 'button'
|
||||||
|
: '',
|
||||||
btnName: '新增',
|
btnName: '新增',
|
||||||
name: 'add',
|
name: 'add',
|
||||||
plain: true,
|
plain: true,
|
||||||
|
@ -212,7 +212,7 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {},
|
computed: {},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.loadEquipments();
|
// this.loadEquipments();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
/** 确认是否关闭 */
|
/** 确认是否关闭 */
|
||||||
|
@ -100,26 +100,26 @@ export default {
|
|||||||
return {
|
return {
|
||||||
recordDetailVisible: false,
|
recordDetailVisible: false,
|
||||||
searchBarKeys: ['maintainPlanId', 'startTime', 'special'],
|
searchBarKeys: ['maintainPlanId', 'startTime', 'special'],
|
||||||
tableBtn: [
|
// tableBtn: [
|
||||||
this.$auth.hasPermi('se:maintain-record:update')
|
// this.$auth.hasPermi('se:maintain-record:update')
|
||||||
? {
|
// ? {
|
||||||
type: 'detail',
|
// type: 'detail',
|
||||||
btnName: '详情',
|
// btnName: '详情',
|
||||||
}
|
// }
|
||||||
: undefined,
|
// : undefined,
|
||||||
this.$auth.hasPermi('se:maintain-record:update')
|
// this.$auth.hasPermi('se:maintain-record:update')
|
||||||
? {
|
// ? {
|
||||||
type: 'edit',
|
// type: 'edit',
|
||||||
btnName: '修改',
|
// btnName: '修改',
|
||||||
}
|
// }
|
||||||
: undefined,
|
// : undefined,
|
||||||
this.$auth.hasPermi('se:maintain-record:delete')
|
// this.$auth.hasPermi('se:maintain-record:delete')
|
||||||
? {
|
// ? {
|
||||||
type: 'delete',
|
// type: 'delete',
|
||||||
btnName: '删除',
|
// btnName: '删除',
|
||||||
}
|
// }
|
||||||
: undefined,
|
// : undefined,
|
||||||
].filter((v) => v),
|
// ].filter((v) => v),
|
||||||
tableProps: [
|
tableProps: [
|
||||||
{
|
{
|
||||||
prop: 'maintainOrderNumber',
|
prop: 'maintainOrderNumber',
|
||||||
@ -182,14 +182,16 @@ export default {
|
|||||||
filter: (val) =>
|
filter: (val) =>
|
||||||
val != null ? ['-', '计划型', '非计划型'][val] : '-',
|
val != null ? ['-', '计划型', '非计划型'][val] : '-',
|
||||||
},
|
},
|
||||||
{
|
this.$auth.hasPermi('equipment:maintain-record:query')
|
||||||
|
? {
|
||||||
prop: '_detail',
|
prop: '_detail',
|
||||||
label: '详情',
|
label: '详情',
|
||||||
entryText: '详情',
|
entryText: '详情',
|
||||||
minWidth: 60,
|
minWidth: 60,
|
||||||
subcomponent: TableBtn,
|
subcomponent: TableBtn,
|
||||||
},
|
}
|
||||||
],
|
: '',
|
||||||
|
].filter((v) => v),
|
||||||
searchBarFormConfig: [
|
searchBarFormConfig: [
|
||||||
{
|
{
|
||||||
type: 'select',
|
type: 'select',
|
||||||
@ -222,10 +224,12 @@ export default {
|
|||||||
color: 'primary',
|
color: 'primary',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'separate',
|
type: this.$auth.hasPermi('equipment:maintain-record:export')
|
||||||
|
? 'separate'
|
||||||
|
: '',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: this.$auth.hasPermi('se:maintain-record:export')
|
type: this.$auth.hasPermi('equipment:maintain-record:export')
|
||||||
? 'button'
|
? 'button'
|
||||||
: '',
|
: '',
|
||||||
btnName: '导出',
|
btnName: '导出',
|
||||||
|
@ -88,19 +88,19 @@ export default {
|
|||||||
'specialType',
|
'specialType',
|
||||||
],
|
],
|
||||||
tableBtn: [
|
tableBtn: [
|
||||||
this.$auth.hasPermi('se:repair:finish')
|
this.$auth.hasPermi('equipment:repair:finish')
|
||||||
? {
|
? {
|
||||||
type: 'finish',
|
type: 'finish',
|
||||||
btnName: '完成',
|
btnName: '完成',
|
||||||
}
|
}
|
||||||
: undefined,
|
: undefined,
|
||||||
this.$auth.hasPermi('se:repair:update')
|
this.$auth.hasPermi('equipment:repair:query')
|
||||||
? {
|
? {
|
||||||
type: 'detail',
|
type: 'detail',
|
||||||
btnName: '详情',
|
btnName: '详情',
|
||||||
}
|
}
|
||||||
: undefined,
|
: undefined,
|
||||||
this.$auth.hasPermi('se:repair:delete')
|
this.$auth.hasPermi('equipment:repair:delete')
|
||||||
? {
|
? {
|
||||||
type: 'delete',
|
type: 'delete',
|
||||||
btnName: '删除',
|
btnName: '删除',
|
||||||
@ -212,17 +212,31 @@ export default {
|
|||||||
color: 'primary',
|
color: 'primary',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'separate',
|
type:
|
||||||
|
this.$auth.hasPermi('equipment:repair:export') ||
|
||||||
|
this.$auth.hasPermiAnd([
|
||||||
|
'equipment:repair:create',
|
||||||
|
'base:core-worker:query',
|
||||||
|
'system:user:list',
|
||||||
|
])
|
||||||
|
? 'separate'
|
||||||
|
: '',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: this.$auth.hasPermi('se:repair:export') ? 'button' : '',
|
type: this.$auth.hasPermi('equipment:repair:export') ? 'button' : '',
|
||||||
btnName: '导出',
|
btnName: '导出',
|
||||||
name: 'export',
|
name: 'export',
|
||||||
plain: true,
|
plain: true,
|
||||||
color: 'primary',
|
color: 'primary',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: this.$auth.hasPermi('se:repair:create') ? 'button' : '',
|
type: this.$auth.hasPermiAnd([
|
||||||
|
'equipment:repair:create',
|
||||||
|
'base:core-worker:query',
|
||||||
|
'system:user:list',
|
||||||
|
])
|
||||||
|
? 'button'
|
||||||
|
: '',
|
||||||
btnName: '新增',
|
btnName: '新增',
|
||||||
name: 'add',
|
name: 'add',
|
||||||
plain: true,
|
plain: true,
|
||||||
|
@ -147,10 +147,25 @@ export default {
|
|||||||
color: 'primary',
|
color: 'primary',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'separate',
|
type:
|
||||||
|
this.$auth.hasPermiAnd([
|
||||||
|
'equipment:maintain-record:create',
|
||||||
|
'base:core-worker:query',
|
||||||
|
'base:core-production-line:query',
|
||||||
|
'base:core-department:query',
|
||||||
|
]) ||
|
||||||
|
this.$auth.hasPermi('equipment:maintain-record:update') ||
|
||||||
|
this.$auth.hasPermi('equipment:maintain-record:export')
|
||||||
|
? 'separate'
|
||||||
|
: '',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: this.$auth.hasPermi('se:maintain-record-pre:create')
|
type: this.$auth.hasPermiAnd([
|
||||||
|
'equipment:maintain-record:create',
|
||||||
|
'base:core-worker:query',
|
||||||
|
'base:core-production-line:query',
|
||||||
|
'base:core-department:query',
|
||||||
|
])
|
||||||
? 'button'
|
? 'button'
|
||||||
: '',
|
: '',
|
||||||
btnName: '新增',
|
btnName: '新增',
|
||||||
@ -159,7 +174,7 @@ export default {
|
|||||||
color: 'success',
|
color: 'success',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: this.$auth.hasPermi('se:maintain-record-pre:confirm-all')
|
type: this.$auth.hasPermi('equipment:maintain-record:update')
|
||||||
? 'button'
|
? 'button'
|
||||||
: '',
|
: '',
|
||||||
btnName: '批量确认',
|
btnName: '批量确认',
|
||||||
@ -168,7 +183,7 @@ export default {
|
|||||||
plain: true,
|
plain: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: this.$auth.hasPermi('se:maintain-record-pre:export')
|
type: this.$auth.hasPermi('equipment:maintain-record:export')
|
||||||
? 'button'
|
? 'button'
|
||||||
: '',
|
: '',
|
||||||
btnName: '导出',
|
btnName: '导出',
|
||||||
|
@ -144,7 +144,7 @@
|
|||||||
label="操作">
|
label="操作">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-tooltip
|
<el-tooltip
|
||||||
v-if="$auth.hasPermi('se:maintain-record-pre:confirm')"
|
v-if="$auth.hasPermi('equipment:maintain-record:update')"
|
||||||
content="确认"
|
content="确认"
|
||||||
placement="top">
|
placement="top">
|
||||||
<el-button
|
<el-button
|
||||||
@ -158,11 +158,11 @@
|
|||||||
<!-- line -->
|
<!-- line -->
|
||||||
<span
|
<span
|
||||||
style="margin: 0 4px; font-size: 18px; color: #e5e7eb"
|
style="margin: 0 4px; font-size: 18px; color: #e5e7eb"
|
||||||
v-if="$auth.hasPermi('se:maintain-record-pre:update')">
|
v-if="$auth.hasPermi('equipment:maintain-record:query')">
|
||||||
|
|
|
|
||||||
</span>
|
</span>
|
||||||
<el-tooltip
|
<el-tooltip
|
||||||
v-if="$auth.hasPermi('se:maintain-record-pre:update')"
|
v-if="$auth.hasPermi('equipment:maintain-record:query')"
|
||||||
content="查看详情"
|
content="查看详情"
|
||||||
placement="top">
|
placement="top">
|
||||||
<el-button
|
<el-button
|
||||||
@ -175,11 +175,29 @@
|
|||||||
<!-- line -->
|
<!-- line -->
|
||||||
<span
|
<span
|
||||||
style="margin: 0 4px; font-size: 18px; color: #e5e7eb"
|
style="margin: 0 4px; font-size: 18px; color: #e5e7eb"
|
||||||
v-if="$auth.hasPermi('se:maintain-record-pre:update')">
|
v-if="
|
||||||
|
$auth.hasPermiAnd([
|
||||||
|
'equipment:maintain-record:update',
|
||||||
|
'base:core-production-line:query',
|
||||||
|
'base:core-department:query',
|
||||||
|
'equipment:maintain-record:create',
|
||||||
|
'equipment:maintain-record:query',
|
||||||
|
'equipment:maintain-record:delete',
|
||||||
|
])
|
||||||
|
">
|
||||||
|
|
|
|
||||||
</span>
|
</span>
|
||||||
<el-tooltip
|
<el-tooltip
|
||||||
v-if="$auth.hasPermi('se:maintain-record-pre:update')"
|
v-if="
|
||||||
|
$auth.hasPermiAnd([
|
||||||
|
'equipment:maintain-record:update',
|
||||||
|
'base:core-production-line:query',
|
||||||
|
'base:core-department:query',
|
||||||
|
'equipment:maintain-record:create',
|
||||||
|
'equipment:maintain-record:query',
|
||||||
|
'equipment:maintain-record:delete',
|
||||||
|
])
|
||||||
|
"
|
||||||
content="编辑"
|
content="编辑"
|
||||||
placement="top">
|
placement="top">
|
||||||
<el-button
|
<el-button
|
||||||
@ -190,8 +208,13 @@
|
|||||||
</el-button>
|
</el-button>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
<!-- line -->
|
<!-- line -->
|
||||||
<span style="margin: 0 4px; font-size: 18px; color: #e5e7eb">|</span>
|
<span
|
||||||
|
v-if="$auth.hasPermi('equipment:maintain-record:delete')"
|
||||||
|
style="margin: 0 4px; font-size: 18px; color: #e5e7eb">
|
||||||
|
|
|
||||||
|
</span>
|
||||||
<el-tooltip
|
<el-tooltip
|
||||||
|
v-if="$auth.hasPermi('equipment:maintain-record:delete')"
|
||||||
content="删除"
|
content="删除"
|
||||||
placement="top">
|
placement="top">
|
||||||
<el-button
|
<el-button
|
||||||
|
Loading…
Reference in New Issue
Block a user