This commit is contained in:
bb_pan 2026-01-06 20:25:47 +08:00
parent 73ea741726
commit 29905e454e
5 changed files with 11 additions and 5 deletions

View File

@ -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 || ''

View File

@ -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: '取消',

View File

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

View File

@ -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 || ''

View File

@ -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 || ''