Commit 65ffb6d4 authored by 15008242619's avatar 15008242619 Committed by jingnan

退库单退库入库bug修改

parent 3ab96b2e
...@@ -190,6 +190,7 @@ export default { ...@@ -190,6 +190,7 @@ export default {
this.dialogVisible = false this.dialogVisible = false
}) })
} else { } else {
this.setPersonVisible = false
this.$utils.showMessageWarning('退库原因为退库单退库的领用退库和配套退库不能一起提交') this.$utils.showMessageWarning('退库原因为退库单退库的领用退库和配套退库不能一起提交')
} }
}) })
...@@ -204,6 +205,7 @@ export default { ...@@ -204,6 +205,7 @@ export default {
this.dialogVisible = false this.dialogVisible = false
}) })
} else { } else {
this.dialogVisible = false
this.$utils.showMessageWarning('退库原因为退库单退库的不能与其他退库类型一起提交') this.$utils.showMessageWarning('退库原因为退库单退库的不能与其他退库类型一起提交')
} }
}, },
...@@ -215,6 +217,7 @@ export default { ...@@ -215,6 +217,7 @@ export default {
if (this.selectionRows && this.selectionRows.length) { if (this.selectionRows && this.selectionRows.length) {
this.selectionRows.forEach(item => item.inStorageRequestItems.forEach(i => ids.push(i.id))) this.selectionRows.forEach(item => item.inStorageRequestItems.forEach(i => ids.push(i.id)))
} }
if (this.form.userIds && this.form.userIds.length !== 0) {
post('/InStorageRequestItem/creator/apply?userIds=' + this.form.userIds, ids).then(res => { post('/InStorageRequestItem/creator/apply?userIds=' + this.form.userIds, ids).then(res => {
this.$utils.showMessageSuccess('提交成功') this.$utils.showMessageSuccess('提交成功')
setTimeout(() => { setTimeout(() => {
...@@ -228,6 +231,9 @@ export default { ...@@ -228,6 +231,9 @@ export default {
this.setPersonVisible = false this.setPersonVisible = false
this.$set(this.form, 'userIds', '') this.$set(this.form, 'userIds', '')
}) })
} else {
this.$utils.showMessageWarning('请选择工艺员')
}
}, },
setPersonCancle() { setPersonCancle() {
this.setPersonVisible = false this.setPersonVisible = false
......
...@@ -187,6 +187,7 @@ export default { ...@@ -187,6 +187,7 @@ export default {
this.dialogVisible = false this.dialogVisible = false
}) })
} else { } else {
this.setPersonVisible = false
this.$utils.showMessageWarning('退库原因为退库单退库的领用退库和配套退库不能一起提交') this.$utils.showMessageWarning('退库原因为退库单退库的领用退库和配套退库不能一起提交')
} }
}) })
...@@ -200,6 +201,7 @@ export default { ...@@ -200,6 +201,7 @@ export default {
this.dialogVisible = false this.dialogVisible = false
}) })
} else { } else {
this.dialogVisible = false
this.$utils.showMessageWarning('退库原因为退库单退库的不能与其他退库类型一起提交') this.$utils.showMessageWarning('退库原因为退库单退库的不能与其他退库类型一起提交')
} }
}, },
...@@ -208,10 +210,10 @@ export default { ...@@ -208,10 +210,10 @@ export default {
}, },
setPersonConfirm() { setPersonConfirm() {
let ids = [] let ids = []
console.log(this.selectionRows)
if (this.selectionRows && this.selectionRows.length) { if (this.selectionRows && this.selectionRows.length) {
ids = this.selectionRows.map(item => item.processTaskId) ids = this.selectionRows.map(item => item.processTaskId)
} }
if (this.form.userIds && this.form.userIds.length !== 0) {
post('/InStorageRequestItem/creator/applyByItems?userIds=' + this.form.userIds, ids).then(res => { post('/InStorageRequestItem/creator/applyByItems?userIds=' + this.form.userIds, ids).then(res => {
this.$utils.showMessageSuccess('提交成功') this.$utils.showMessageSuccess('提交成功')
this.$refs.applyTable.$refs.asCom.getData() this.$refs.applyTable.$refs.asCom.getData()
...@@ -222,6 +224,9 @@ export default { ...@@ -222,6 +224,9 @@ export default {
this.setPersonVisible = false this.setPersonVisible = false
this.$set(this.form, 'userIds', '') this.$set(this.form, 'userIds', '')
}) })
} else {
this.$utils.showMessageWarning('请选择工艺员')
}
}, },
setPersonCancle() { setPersonCancle() {
this.setPersonVisible = false this.setPersonVisible = false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment