diff --git a/sgzb-ui/src/views/store/warehousing/putInStore.vue b/sgzb-ui/src/views/store/warehousing/putInStore.vue index 31696384..75da538d 100644 --- a/sgzb-ui/src/views/store/warehousing/putInStore.vue +++ b/sgzb-ui/src/views/store/warehousing/putInStore.vue @@ -693,9 +693,9 @@ export default { resetCodeForm() { this.codeForm = { checkMan: undefined, - putInType: undefined, + putInType: null, remarks: undefined, - typeId: undefined, + typeId: null, num: undefined, codePrefix: undefined, codeSuffixStart: undefined, @@ -792,6 +792,7 @@ export default { this.reset(); this.codeOpen = true; this.title = "数量盘点入库"; + this.$refs['codeForm'].clearValidate() }, /** 新增编号盘点按钮操作 */ handleCodeAdd() { @@ -799,6 +800,7 @@ export default { this.reset(); this.codeOpen = true; this.title = "编码盘点入库"; + this.$refs['codeForm'].clearValidate() }, // 多选框选中数据 handleSelectionChange(selection) { @@ -836,12 +838,11 @@ export default { // 发送请求 inputByCode(SavePutInfoDto).then(response => { this.$message.success('入库成功') - this.codeOpen = false - this.getList() this.resetCodeForm() - this.reset() this.numTableList = [] - this.deviceType = {} + this.codeOpen = false + this.reset() + this.getList() }) } else { // 提交数据 @@ -864,12 +865,11 @@ export default { // 发送请求 inputByCode(SavePutInfoDto).then(response => { this.$message.success('入库成功') - this.codeOpen = false - this.getList() this.resetCodeForm() - this.reset() this.codeTableList = [] - this.deviceType = {} + this.codeOpen = false + this.reset() + this.getList() }) } }