@@ -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({