{
- // return this.permission['inspectionroute_col_' + v.prop]
+ // return this.permission['inspectionobject_col_' + v.prop]
// })
return {
addBtn: false,
diff --git a/src/views/inspection/inspectionobjectDetail.vue b/src/views/inspection/inspectionobjectDetail.vue
index ff481a4..3a63578 100644
--- a/src/views/inspection/inspectionobjectDetail.vue
+++ b/src/views/inspection/inspectionobjectDetail.vue
@@ -9,14 +9,14 @@
+ v-if="addUpdateShowButton && permission.inspectionobject_add">
确定
+ v-if="shouldShowButton && permission.inspectionobject_edit">
修改
@@ -30,7 +30,7 @@ import {getToken} from "@/util/auth";
import request from "@/router/axios";
export default {
- name: "inspectionrouteDetail",
+ name: "inspectionobjectDetail",
data() {
return {
addUpdateShowButton:{},
@@ -233,7 +233,7 @@ export default {
...mapGetters(["permission"]),
permissionList() {
// this.option.column = this.option.column.filter(v => {
- // return this.permission['inspectionroute_col_' + v.prop]
+ // return this.permission['inspectionobject_col_' + v.prop]
// })
return {
addBtn: false,
diff --git a/src/views/leger/equipmentledger.vue b/src/views/leger/equipmentledger.vue
index 5aef489..9a955d5 100644
--- a/src/views/leger/equipmentledger.vue
+++ b/src/views/leger/equipmentledger.vue
@@ -32,27 +32,31 @@
新增
批量审核
批量驳回
导出
- 查看详情
- 删除
+ 查看详情
+ 删除
diff --git a/src/views/leger/equipmentledgerDetail.vue b/src/views/leger/equipmentledgerDetail.vue
index b0b880c..a8f1b9c 100644
--- a/src/views/leger/equipmentledgerDetail.vue
+++ b/src/views/leger/equipmentledgerDetail.vue
@@ -75,32 +75,32 @@
+ v-if="addUpdateShowButton && permission.equipmentledger_add">
确定
+ v-if="addUpdateShowButton ">
取消
+ v-if="shouldShowButton && permission.equipmentledger_audit">
审核
+ v-if="shouldShowButton && permission.equipmentledger_reject">
驳回
+ v-if="UpdateShowButton && permission.equipmentledger_edit">
修改
+ v-if="shouldShowButton && permission.equipmentledger_delete">
删除
diff --git a/src/views/leger/toolinventoryrecord.vue b/src/views/leger/toolinventoryrecord.vue
index 78d9cd6..ce9667e 100644
--- a/src/views/leger/toolinventoryrecord.vue
+++ b/src/views/leger/toolinventoryrecord.vue
@@ -31,27 +31,31 @@
新增
批量审核
批量驳回
导出
+ v-if="permission.toolinventoryrecord_export"
+ @click="handleExport()">导出
- 查看
- 删除
+ 查看详情
+ 删除
diff --git a/src/views/leger/toolinventoryrecordDetail.vue b/src/views/leger/toolinventoryrecordDetail.vue
index 22e5151..fd9ca5b 100644
--- a/src/views/leger/toolinventoryrecordDetail.vue
+++ b/src/views/leger/toolinventoryrecordDetail.vue
@@ -100,35 +100,35 @@
+
+ 确定
+ v-if="addUpdateShowButton ">
取消
-
- 确定
+ v-if="shouldShowButton && permission.toolinventoryrecord_audit">
审核
+ v-if="shouldShowButton && permission.toolinventoryrecord_reject">
驳回
+ v-if="UpdateShowButton && permission.toolinventoryrecord_edit">
修改
+ v-if="shouldShowButton && permission.toolinventoryrecord_delete">
删除
@@ -173,7 +173,7 @@ import {readonly} from "vue";
import {getToken} from "@/util/auth";
import {getListByTaskNo} from "@/api/inspection/inspectionresult";
export default {
- name: "equipmentledgerDetail",
+ name: "toolinventoryrecordDetail",
data () {
return {
checkStatusValue:{},
diff --git a/src/views/smart/workpermit.vue b/src/views/smart/workpermit.vue
index 9cf6a97..945cb31 100644
--- a/src/views/smart/workpermit.vue
+++ b/src/views/smart/workpermit.vue
@@ -23,7 +23,7 @@
size="small"
icon="el-icon-delete"
plain
- v-if="permission.equipmentledger_delete"
+ v-if="permission.workpermit_delete"
@click="handleDelete">批量删除
@@ -31,28 +31,32 @@
新增
批量审核
批量驳回
导出
- 查看详情
- 关票
- 删除
+ 查看详情
+ 关票
+ 删除
+ v-if="addUpdateShowButton && permission.workpermit_add">
确定
+ v-if="shouldShowButton && permission.workpermit_close">
关票
+ v-if="shouldShowButton && permission.workpermit_audit">
审核
+ v-if="shouldShowButton && permission.workpermit_reject">
驳回
+ v-if="UpdateShowButton && permission.workpermit_edit">
修改
+ v-if="shouldShowButton && permission.workorder_delete">
删除
From 8c63d848645c07ad18ab07e364e3364a76853f62 Mon Sep 17 00:00:00 2001
From: yangzhicheng
Date: Thu, 18 Jul 2024 16:15:50 +0800
Subject: [PATCH 2/3] =?UTF-8?q?=E5=BC=B9=E7=AA=97=E5=86=85=E5=AE=B9?=
=?UTF-8?q?=E6=B8=85=E7=A9=BA=E5=A4=84=E7=90=86=E4=BF=AE=E6=AD=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/inspection/inspectionplan.vue | 4 ++--
src/views/inspection/inspectionroute.vue | 4 ++--
src/views/spares/materialDetail.vue | 5 ++++-
3 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/src/views/inspection/inspectionplan.vue b/src/views/inspection/inspectionplan.vue
index 96d4a7b..129e7df 100644
--- a/src/views/inspection/inspectionplan.vue
+++ b/src/views/inspection/inspectionplan.vue
@@ -320,7 +320,7 @@
return;
}
this.cancelBox = true;
- this.$refs.cancelForm.resetForm();
+ this.cancelForm.cancelReason = '';
},
handleDetailCancel() {
this.$confirm("是否将选择数据改为失效状态?", {
@@ -332,7 +332,7 @@
return lapse(this.ids, this.cancelForm.cancelReason);
})
.then(() => {
- this.$refs.cancelForm.resetForm();
+ this.cancelForm.cancelReason = '';
this.cancelBox = false;
this.onLoad(this.page);
this.$message({
diff --git a/src/views/inspection/inspectionroute.vue b/src/views/inspection/inspectionroute.vue
index 89654af..17801cf 100644
--- a/src/views/inspection/inspectionroute.vue
+++ b/src/views/inspection/inspectionroute.vue
@@ -302,7 +302,7 @@
return;
}
this.cancelBox = true;
- this.$refs.cancelForm.resetForm();
+ this.cancelForm.cancelReason = '';
},
handleDetailCancel() {
this.$confirm("是否将选择数据改为失效状态?", {
@@ -314,7 +314,7 @@
return lapse(this.ids, this.cancelForm.cancelReason);
})
.then(() => {
- this.$refs.cancelForm.resetForm();
+ this.cancelForm.cancelReason = '';
this.cancelBox = false;
this.onLoad(this.page);
this.$message({
diff --git a/src/views/spares/materialDetail.vue b/src/views/spares/materialDetail.vue
index 5db6cb9..be4f991 100644
--- a/src/views/spares/materialDetail.vue
+++ b/src/views/spares/materialDetail.vue
@@ -442,6 +442,8 @@
},
methods: {
test(val) {
+ this.diaForm.code = '';
+ this.diaForm.type = '';
this.dialogVisible = true;
},
handleFormSubmit() {
@@ -630,7 +632,8 @@
if (valid) {
done()
codeAdd(this.diaForm).then(() => {
- this.$refs.diaForm.resetForm();
+ this.diaForm.code = '';
+ this.diaForm.type = '';
this.dialogVisible = false;
this.SearchClassCode();
this.$message({
From 464063e106627babfb9145db8016f7c83e587a9b Mon Sep 17 00:00:00 2001
From: zhen <1173776308@qq.com>
Date: Thu, 18 Jul 2024 16:33:49 +0800
Subject: [PATCH 3/3] =?UTF-8?q?=E5=BC=A0=E5=90=8C=E6=9C=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/smart/operationticket.vue | 6 +++---
src/views/smart/operationticketDetail.vue | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/views/smart/operationticket.vue b/src/views/smart/operationticket.vue
index 6a55c54..6e4bc31 100644
--- a/src/views/smart/operationticket.vue
+++ b/src/views/smart/operationticket.vue
@@ -70,9 +70,9 @@
取消
+ size="small"
+ plain
+ @click="handleDetailCancel">取消