diff --git a/.env.dev b/.env.dev index 25e4022b..72036ff0 100644 --- a/.env.dev +++ b/.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' diff --git a/src/views/base/coreWorkOrder/detail.vue b/src/views/base/coreWorkOrder/detail.vue index 600f0c6e..d0d0b17a 100644 --- a/src/views/base/coreWorkOrder/detail.vue +++ b/src/views/base/coreWorkOrder/detail.vue @@ -201,7 +201,7 @@ @pagination="getList" /> --> -
+
diff --git a/src/views/base/materialProductBom/add-or-updata.vue b/src/views/base/materialProductBom/add-or-updata.vue index d90ab2f2..9ccb6c73 100644 --- a/src/views/base/materialProductBom/add-or-updata.vue +++ b/src/views/base/materialProductBom/add-or-updata.vue @@ -56,14 +56,14 @@
-
+
BOM明细 -
+
@@ -96,8 +98,8 @@ @@ -105,8 +107,8 @@ @@ -115,11 +117,11 @@ {{ scope.row.missCheckTrend && scope.row.missCheckTrend != 0 ? - parseFloat((scope.row.missCheckTrend * 100).toFixed(2)) + '%' : scope.row.missCheckTrend == - 0 ? - 0 : - null - }} + parseFloat((scope.row.missCheckTrend * 100).toFixed(2)) + '%' : scope.row.missCheckTrend == + 0 ? + 0 : + null + }} @@ -129,8 +131,8 @@ {{ scope.row.goodProductPassNow ? parseFloat((scope.row.goodProductPassNow * - 100).toFixed(2)) + - '%' : null }} + 100).toFixed(2)) + + '%' : null }} @@ -139,8 +141,8 @@ {{ scope.row.goodProductPassHis ? parseFloat((scope.row.goodProductPassHis * - 100).toFixed(2)) + - '%' : null }} + 100).toFixed(2)) + + '%' : null }} @@ -149,11 +151,11 @@ {{ scope.row.goodProductPassTrend && scope.row.goodProductPassTrend != 0 ? - parseFloat((scope.row.goodProductPassTrend * 100).toFixed(2)) + '%' : scope.row.goodProductPassTrend == - 0 ? - 0 : - null - }} + parseFloat((scope.row.goodProductPassTrend * 100).toFixed(2)) + '%' : scope.row.goodProductPassTrend == + 0 ? + 0 : + null + }} diff --git a/src/views/specialEquipment/basic/FireFighthing.vue b/src/views/specialEquipment/basic/FireFighthing.vue index fdee29af..f2dd2080 100644 --- a/src/views/specialEquipment/basic/FireFighthing.vue +++ b/src/views/specialEquipment/basic/FireFighthing.vue @@ -91,13 +91,13 @@ pageSize: 10, }, 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', btnName: '修改', } : undefined, - this.$auth.hasPermi('base:core-equipment-attr:delete') // ('se:firefight-attr:delete') + this.$auth.hasPermi('base:core-equipment-attr:delete') ? { type: 'delete', btnName: '删除', @@ -142,19 +142,29 @@ export default { return { searchBarKeys: ['name', 'code'], tableBtn: [ - this.$auth.hasPermi(`se:firefight:update`) + this.$auth.hasPermiAnd([ + 'base:core-equipment:query', + 'base:core-equipment-attr:query', + ]) ? { type: 'detail', btnName: '详情', } : 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', btnName: '修改', } : undefined, - this.$auth.hasPermi('se:firefight:delete') + this.$auth.hasPermi('base:core-equipment:delete') ? { type: 'delete', btnName: '删除', @@ -205,17 +215,32 @@ export default { 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: '导出', name: 'export', plain: true, color: 'primary', }, + // { - type: this.$auth.hasPermi('se:firefight:create') ? 'button' : '', + type: this.$auth.hasPermiAnd([ + 'base:core-equipment:create', + 'base:core-worker:query', + ]) + ? 'button' + : '', btnName: '新增', name: 'add', plain: true, diff --git a/src/views/specialEquipment/basic/Manage.vue b/src/views/specialEquipment/basic/Manage.vue index ac915a88..285030a1 100644 --- a/src/views/specialEquipment/basic/Manage.vue +++ b/src/views/specialEquipment/basic/Manage.vue @@ -142,19 +142,29 @@ export default { return { searchBarKeys: ['name', 'code'], tableBtn: [ - this.$auth.hasPermi(`se:manage:update`) + this.$auth.hasPermiAnd([ + 'base:core-equipment:query', + 'base:core-equipment-attr:query', + ]) ? { type: 'detail', btnName: '详情', } : 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', btnName: '修改', } : undefined, - this.$auth.hasPermi('se:manage:delete') + this.$auth.hasPermi('base:core-equipment:delete') ? { type: 'delete', btnName: '删除', @@ -204,10 +214,17 @@ export default { 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' : '', btnName: '导出', @@ -216,7 +233,10 @@ export default { color: 'primary', }, { - type: this.$auth.hasPermi('se:manage:create') + type: this.$auth.hasPermiAnd([ + 'base:core-equipment:create', + 'base:core-worker:query', + ]) ? 'button' : '', btnName: '新增', diff --git a/src/views/specialEquipment/basic/Safety.vue b/src/views/specialEquipment/basic/Safety.vue index ed27cda9..acb9e634 100644 --- a/src/views/specialEquipment/basic/Safety.vue +++ b/src/views/specialEquipment/basic/Safety.vue @@ -141,19 +141,30 @@ export default { return { searchBarKeys: ['name', 'code'], tableBtn: [ - this.$auth.hasPermi(`se:safety:update`) + this.$auth.hasPermiAnd([ + 'base:core-equipment:query', + 'base:core-equipment-attr:query', + ]) ? { type: 'detail', btnName: '详情', } : 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', btnName: '修改', } : undefined, - this.$auth.hasPermi('se:safety:delete') + this.$auth.hasPermi('base:core-equipment:delete') ? { type: 'delete', btnName: '删除', @@ -203,10 +214,17 @@ export default { 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' : '', btnName: '导出', @@ -215,7 +233,10 @@ export default { color: 'primary', }, { - type: this.$auth.hasPermi('se:safety:create') + type: this.$auth.hasPermiAnd([ + 'base:core-equipment:create', + 'base:core-worker:query', + ]) ? 'button' : '', btnName: '新增', diff --git a/src/views/specialEquipment/check/CheckOrderListTable.vue b/src/views/specialEquipment/check/CheckOrderListTable.vue index c231f6d8..26e9c619 100644 --- a/src/views/specialEquipment/check/CheckOrderListTable.vue +++ b/src/views/specialEquipment/check/CheckOrderListTable.vue @@ -103,6 +103,7 @@ label="操作">