Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
13655f62
Commit
13655f62
authored
May 31, 2022
by
季圣华
Browse files
解决bug:点新增行的时候数量要自动默认为0,防止弹出覆盖
parent
585a3131
Changes
5
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/components/jeecg/JEditableTable.vue
View file @
13655f62
...
...
@@ -2781,11 +2781,11 @@
})
},
/** 自动选中特殊的key **/
autoSelectBySpecialKey
(
specialKey
)
{
autoSelectBySpecialKey
(
specialKey
,
orderNum
)
{
let
trs
=
this
.
getElement
(
'
tbody
'
).
getElementsByClassName
(
'
tr
'
)
let
trEls
=
[]
for
(
let
tr
of
trs
)
{
trEls
.
push
(
tr
)
if
(
trs
&&
trs
.
length
&&
orderNum
>=
1
)
{
trEls
.
push
(
tr
s
[
orderNum
-
1
]
)
}
trEls
.
forEach
(
tr
=>
{
let
{
idx
}
=
tr
.
dataset
...
...
jshERP-web/src/components/jeecgbiz/JSelectList.vue
View file @
13655f62
<
template
>
<div>
<a-input-search
v-if=
"kind === 'material'"
v-model=
"names"
placeholder=
"
请选择
"
@
pressEnter=
"onPressEnter"
@
search=
"onSearch"
></a-input-search>
<a-input-search
v-if=
"kind === 'material'"
v-model=
"names"
placeholder=
"
条码或名称
"
@
pressEnter=
"onPressEnter"
@
search=
"onSearch"
></a-input-search>
<a-input-search
v-if=
"kind === 'batch'||kind === 'sn'"
v-model=
"names"
placeholder=
"请选择"
readOnly
@
search=
"onSearch"
></a-input-search>
<j-select-material-modal
v-if=
"kind === 'material'"
ref=
"selectModal"
:rows=
"rows"
:multi=
"multi"
:bar-code=
"value"
@
ok=
"selectOK"
@
initComp=
"initComp"
/>
<j-select-batch-modal
v-if=
"kind === 'batch'"
ref=
"selectModal"
:rows=
"rows"
:multi=
"multi"
:bar-code=
"value"
@
ok=
"selectOK"
@
initComp=
"initComp"
/>
...
...
jshERP-web/src/views/bill/mixins/BillModalMixin.js
View file @
13655f62
...
...
@@ -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
)
}
})
}
...
...
jshERP-web/src/views/bill/modules/PurchaseOrderModal.vue
View file @
13655f62
...
...
@@ -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=
"此功能支持扫码枪扫描商品条码进行录入"
>
...
...
jshERP-web/src/views/bill/modules/SaleOrderModal.vue
View file @
13655f62
...
...
@@ -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=
"此功能支持扫码枪扫描商品条码进行录入"
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment