This commit is contained in:
parent
73ea741726
commit
29905e454e
|
|
@ -445,7 +445,7 @@ export default {
|
||||||
let title = '新增申请'
|
let title = '新增申请'
|
||||||
if (this.routerParams.isView) {
|
if (this.routerParams.isView) {
|
||||||
title = '查看申请'
|
title = '查看申请'
|
||||||
} else if (this.routerParams.isEdit) {
|
} else if (this.routerParams.isEdit == 'true') {
|
||||||
title = '编辑申请'
|
title = '编辑申请'
|
||||||
}
|
}
|
||||||
this.queryParams.id = this.routerParams.id || ''
|
this.queryParams.id = this.routerParams.id || ''
|
||||||
|
|
|
||||||
|
|
@ -297,7 +297,7 @@ export default {
|
||||||
let title = '新增申请'
|
let title = '新增申请'
|
||||||
if (this.routerParams.isView) {
|
if (this.routerParams.isView) {
|
||||||
title = '查看申请'
|
title = '查看申请'
|
||||||
} else if (this.routerParams.isEdit) {
|
} else if (this.routerParams.isEdit == 'true') {
|
||||||
title = '编辑申请'
|
title = '编辑申请'
|
||||||
}
|
}
|
||||||
this.queryParams.id = this.routerParams.id || ''
|
this.queryParams.id = this.routerParams.id || ''
|
||||||
|
|
@ -595,6 +595,12 @@ export default {
|
||||||
return this.$message.error('请至少选择一项申请设备')
|
return this.$message.error('请至少选择一项申请设备')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (const item of this.ids) {
|
||||||
|
if (!item.useTime) {
|
||||||
|
return this.$message.error('请填写所选设备的退库日期')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
this.$confirm('是否确定提交申请?', '提示', {
|
this.$confirm('是否确定提交申请?', '提示', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
|
|
|
||||||
|
|
@ -262,7 +262,7 @@ export default {
|
||||||
},
|
},
|
||||||
// 新增
|
// 新增
|
||||||
handleAdd() {
|
handleAdd() {
|
||||||
this.$router.push({ path: '/business/warehouse/details',query: {isEdit: true } })
|
this.$router.push({ path: '/business/warehouse/details',query: { isEdit: false } })
|
||||||
},
|
},
|
||||||
// 查看
|
// 查看
|
||||||
handleView(row) {
|
handleView(row) {
|
||||||
|
|
|
||||||
|
|
@ -273,7 +273,7 @@ export default {
|
||||||
this.routerParams = this.$route.query
|
this.routerParams = this.$route.query
|
||||||
let title = '新增维修'
|
let title = '新增维修'
|
||||||
if (this.routerParams.isView) title = '维修查看'
|
if (this.routerParams.isView) title = '维修查看'
|
||||||
else if (this.routerParams.isEdit) title = '维修编辑'
|
else if (this.routerParams.isEdit == 'true') title = '维修编辑'
|
||||||
else if (this.routerParams.isSubmit) title = '维修提交'
|
else if (this.routerParams.isSubmit) title = '维修提交'
|
||||||
|
|
||||||
this.queryParams.id = this.routerParams.applyId || ''
|
this.queryParams.id = this.routerParams.applyId || ''
|
||||||
|
|
|
||||||
|
|
@ -162,7 +162,7 @@ export default {
|
||||||
let title = '新增工具'
|
let title = '新增工具'
|
||||||
if (this.routerParams.isView) {
|
if (this.routerParams.isView) {
|
||||||
title = '查看工具'
|
title = '查看工具'
|
||||||
} else if (this.routerParams.isEdit) {
|
} else if (this.routerParams.isEdit == 'true') {
|
||||||
title = '编辑工具'
|
title = '编辑工具'
|
||||||
}
|
}
|
||||||
this.queryParams.applyId = this.routerParams.applyId || ''
|
this.queryParams.applyId = this.routerParams.applyId || ''
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue