解决bug:点新增行的时候数量要自动默认为0,防止弹出覆盖

This commit is contained in:
季圣华
2022-05-31 21:18:27 +08:00
parent 585a313182
commit 13655f62df
5 changed files with 8 additions and 5 deletions

View File

@@ -319,6 +319,7 @@ export const BillModalMixin = {
},
onAdded(event) {
const { row, target } = event
target.setValues([{rowKey: row.id, values: {operNumber:0}}])
getAction('/depot/findDepotByCurrentUser').then((res) => {
if (res.code === 200) {
let arr = res.data
@@ -394,7 +395,7 @@ export const BillModalMixin = {
target.setValues(mArr);
target.recalcAllStatisticsColumns()
that.autoChangePrice(target)
target.autoSelectBySpecialKey('operNumber')
target.autoSelectBySpecialKey('operNumber', row.orderNum)
}
})
}