修复出入库类型错误

This commit is contained in:
gyq 2024-07-29 17:47:57 +08:00
parent bf0da42707
commit 77f75bbbeb
2 changed files with 10 additions and 1 deletions

View File

@ -304,7 +304,6 @@ export default {
this.inTabValue = value
this.shopTypesActive = 0
this.resetHandle()
this.queryForm.type = type
},
//
consCountTotal(cvalue, row, key1, key2 = undefined) {
@ -415,6 +414,11 @@ export default {
resetHandle() {
this.showResult = false
this.queryForm = { ...this.resetForm }
if (this.inTabValue == 'goods') {
this.queryForm.type = this.shopTypes[this.shopTypesActive].value
} else {
this.queryForm.type = this.inTabs.find(item => item.value == this.inTabValue).type
}
this.tableData.list = []
this.$refs.queryForm.resetFields()
},

View File

@ -409,6 +409,11 @@ export default {
resetHandle() {
this.showResult = false
this.queryForm = { ...this.resetForm }
if (this.inTabValue == 'goods') {
this.queryForm.type = this.shopTypes[this.shopTypesActive].value
} else {
this.queryForm.type = this.inTabs.find(item => item.value == this.inTabValue).type
}
this.tableData.list = []
this.$refs.queryForm.resetFields()
},