解决bug:点新增行的时候数量要自动默认为0,防止弹出覆盖
This commit is contained in:
@@ -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)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -69,6 +69,7 @@
|
||||
:actionButton="rowCanEdit"
|
||||
:dragSort="rowCanEdit"
|
||||
@valueChange="onValueChange"
|
||||
@added="onAdded"
|
||||
@deleted="onDeleted">
|
||||
<template #buttonAfter>
|
||||
<a-row v-if="rowCanEdit" :gutter="24" style="float:left;padding-bottom: 5px;" data-step="4" data-title="扫码录入" data-intro="此功能支持扫码枪扫描商品条码进行录入">
|
||||
|
||||
@@ -69,6 +69,7 @@
|
||||
:actionButton="true"
|
||||
:dragSort="true"
|
||||
@valueChange="onValueChange"
|
||||
@added="onAdded"
|
||||
@deleted="onDeleted">
|
||||
<template #buttonAfter>
|
||||
<a-row :gutter="24" style="float:left;" data-step="4" data-title="扫码录入" data-intro="此功能支持扫码枪扫描商品条码进行录入">
|
||||
|
||||
Reference in New Issue
Block a user