diff --git a/src/views/inspection/inspectionobject.vue b/src/views/inspection/inspectionobject.vue index 994d6a1..22a2d9f 100644 --- a/src/views/inspection/inspectionobject.vue +++ b/src/views/inspection/inspectionobject.vue @@ -24,36 +24,39 @@ size="small" icon="el-icon-delete" plain - v-if="permission.inspectionroute_delete" + v-if="permission.inspectionobject_delete" @click="handleDelete">批量删除 { - // 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/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/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 df1d7eb..4c4bbcf 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 98dbfdd..566bac3 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 () { var validatePage = (rule, value, callback) => { if (value === '') { 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">取消
- @@ -96,7 +96,7 @@
- 取消 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"> 删除
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({