diff --git a/src/views/equipmentRepair/repairApply/addRepair.vue b/src/views/equipmentRepair/repairApply/addRepair.vue
index f235a960..31a2355b 100644
--- a/src/views/equipmentRepair/repairApply/addRepair.vue
+++ b/src/views/equipmentRepair/repairApply/addRepair.vue
@@ -8,7 +8,7 @@
维修申请设备
- 添加
+ 添加
确认申请
@@ -108,10 +108,10 @@
-
-
-
-
+
+ 删除
+
@@ -263,6 +263,12 @@ export default {
]
}
},
+ computed: {
+ hideAddDelete() {
+ const source = this.queryParams.source
+ return source === 0 || source === '0' || source === null || source === undefined || source === ''
+ }
+ },
created() {
this.routerParams = this.$route.query
let title = '新增维修'
@@ -271,6 +277,13 @@ export default {
else if (this.routerParams.isSubmit) title = '维修提交'
this.queryParams.id = this.routerParams.applyId || ''
+ this.queryParams.source =
+ this.routerParams.source === undefined ||
+ this.routerParams.source === null ||
+ this.routerParams.source === ''
+ ? 0
+ : this.routerParams.source
+
const obj = Object.assign({}, this.$route, { title })
this.$tab.updatePage(obj)
this.getList()
diff --git a/src/views/equipmentRepair/repairApply/repairList.vue b/src/views/equipmentRepair/repairApply/repairList.vue
index cfc338bb..f0aaf353 100644
--- a/src/views/equipmentRepair/repairApply/repairList.vue
+++ b/src/views/equipmentRepair/repairApply/repairList.vue
@@ -254,9 +254,9 @@ export default {
// 编辑
handleEdit(row) {
if (row.status=='5'){
- this.$router.push({ path: './addRepair', query: { applyId: row.id, isSubmit: true } })
+ this.$router.push({ path: './addRepair', query: { applyId: row.id, isSubmit: true,source:row.source } })
} else {
- this.$router.push({ path: './addRepair', query: { applyId: row.id, isEdit: true } })
+ this.$router.push({ path: './addRepair', query: { applyId: row.id, isEdit: true,source:row.source } })
}
},