数量盘点入库-优化

This commit is contained in:
binbin_pan 2024-04-03 10:21:28 +08:00
parent 97b772d3dd
commit 2412194ab7
1 changed files with 10 additions and 10 deletions

View File

@ -693,9 +693,9 @@ export default {
resetCodeForm() { resetCodeForm() {
this.codeForm = { this.codeForm = {
checkMan: undefined, checkMan: undefined,
putInType: undefined, putInType: null,
remarks: undefined, remarks: undefined,
typeId: undefined, typeId: null,
num: undefined, num: undefined,
codePrefix: undefined, codePrefix: undefined,
codeSuffixStart: undefined, codeSuffixStart: undefined,
@ -792,6 +792,7 @@ export default {
this.reset(); this.reset();
this.codeOpen = true; this.codeOpen = true;
this.title = "数量盘点入库"; this.title = "数量盘点入库";
this.$refs['codeForm'].clearValidate()
}, },
/** 新增编号盘点按钮操作 */ /** 新增编号盘点按钮操作 */
handleCodeAdd() { handleCodeAdd() {
@ -799,6 +800,7 @@ export default {
this.reset(); this.reset();
this.codeOpen = true; this.codeOpen = true;
this.title = "编码盘点入库"; this.title = "编码盘点入库";
this.$refs['codeForm'].clearValidate()
}, },
// //
handleSelectionChange(selection) { handleSelectionChange(selection) {
@ -836,12 +838,11 @@ export default {
// //
inputByCode(SavePutInfoDto).then(response => { inputByCode(SavePutInfoDto).then(response => {
this.$message.success('入库成功') this.$message.success('入库成功')
this.codeOpen = false
this.getList()
this.resetCodeForm() this.resetCodeForm()
this.reset()
this.numTableList = [] this.numTableList = []
this.deviceType = {} this.codeOpen = false
this.reset()
this.getList()
}) })
} else { } else {
// //
@ -864,12 +865,11 @@ export default {
// //
inputByCode(SavePutInfoDto).then(response => { inputByCode(SavePutInfoDto).then(response => {
this.$message.success('入库成功') this.$message.success('入库成功')
this.codeOpen = false
this.getList()
this.resetCodeForm() this.resetCodeForm()
this.reset()
this.codeTableList = [] this.codeTableList = []
this.deviceType = {} this.codeOpen = false
this.reset()
this.getList()
}) })
} }
} }