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
498a30cd
Commit
498a30cd
authored
May 16, 2022
by
季圣华
Browse files
修改商品模块,删除商品条码的时候增加传值
parent
5a87de50
Changes
1
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/views/material/modules/MaterialModal.vue
View file @
498a30cd
...
...
@@ -189,7 +189,8 @@
:rowSelection=
"true"
:actionButton=
"true"
@
valueChange=
"onValueChange"
@
added=
"onAdded"
>
@
added=
"onAdded"
@
deleted=
"onDeleted"
>
<
template
#buttonAfter
>
<a-button
@
click=
"batchSetPrice('purchase')"
>
采购价-批量
</a-button>
<a-button
style=
"margin-left: 8px"
@
click=
"batchSetPrice('commodity')"
>
零售价-批量
</a-button>
...
...
@@ -316,6 +317,7 @@
switchDisabled
:
false
,
//开关的启用状态
barCodeSwitch
:
false
,
//生成条码开关
maxBarCodeInfo
:
''
,
//最大条码
meDeleteIdList
:
[],
//删除条码信息的id数组
prefixNo
:
'
material
'
,
sku
:
{
manyColor
:
'
多颜色
'
,
...
...
@@ -653,6 +655,7 @@
}
else
{
formData
.
imgName
=
''
}
formData
.
meDeleteIdList
=
this
.
meDeleteIdList
//接口调用
let
url
=
this
.
url
.
add
,
method
=
'
post
'
if
(
this
.
model
.
id
)
{
...
...
@@ -810,6 +813,9 @@
this
.
maxBarCodeInfo
=
this
.
maxBarCodeInfo
+
1
target
.
setValues
([{
rowKey
:
row
.
id
,
values
:
{
barCode
:
this
.
maxBarCodeInfo
,
commodityUnit
:
unit
?
unit
:
''
}}])
},
onDeleted
(
value
)
{
this
.
meDeleteIdList
=
(
value
)
},
//单元值改变一个字符就触发一次
onValueChange
(
event
)
{
const
{
type
,
row
,
column
,
value
,
target
}
=
event
...
...
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