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
f52a4c34
Commit
f52a4c34
authored
May 22, 2022
by
季圣华
Browse files
给单据中商品的选择增加批次和序列号过滤的功能
parent
2f6eb271
Changes
1
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/components/jeecgbiz/modal/JSelectMaterialModal.vue
View file @
f52a4c34
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
<a-row
:gutter=
"24"
>
<a-row
:gutter=
"24"
>
<a-col
:md=
"6"
:sm=
"8"
>
<a-col
:md=
"6"
:sm=
"8"
>
<a-form-item
label=
"商品"
:labelCol=
"
{span: 5}" :wrapperCol="{span: 18, offset: 1}">
<a-form-item
label=
"商品"
:labelCol=
"
{span: 5}" :wrapperCol="{span: 18, offset: 1}">
<a-input
ref=
"material"
placeholder=
"条码、名称、规格、型号"
v-model=
"queryParam.q"
></a-input>
<a-input
ref=
"material"
placeholder=
"条码、名称、规格、型号
、颜色
"
v-model=
"queryParam.q"
></a-input>
</a-form-item>
</a-form-item>
</a-col>
</a-col>
<a-col
:md=
"6"
:sm=
"8"
>
<a-col
:md=
"6"
:sm=
"8"
>
...
@@ -42,8 +42,30 @@
...
@@ -42,8 +42,30 @@
<a-col
:md=
"6"
:sm=
"24"
>
<a-col
:md=
"6"
:sm=
"24"
>
<a-button
type=
"primary"
@
click=
"loadMaterialData(1)"
>
查询
</a-button>
<a-button
type=
"primary"
@
click=
"loadMaterialData(1)"
>
查询
</a-button>
<a-button
style=
"margin-left: 8px"
@
click=
"searchReset(1)"
>
重置
</a-button>
<a-button
style=
"margin-left: 8px"
@
click=
"searchReset(1)"
>
重置
</a-button>
<a
@
click=
"handleToggleSearch"
style=
"margin-left: 8px"
>
{{
toggleSearchStatus
?
'
收起
'
:
'
展开
'
}}
<a-icon
:type=
"toggleSearchStatus ? 'up' : 'down'"
/>
</a>
</a-col>
</a-col>
</span>
</span>
<template
v-if=
"toggleSearchStatus"
>
<a-col
:md=
"6"
:sm=
"24"
>
<a-form-item
label=
"序列号"
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
>
<a-select
placeholder=
"有无序列号"
v-model=
"queryParam.enableSerialNumber"
>
<a-select-option
value=
"1"
>
有
</a-select-option>
<a-select-option
value=
"0"
>
无
</a-select-option>
</a-select>
</a-form-item>
</a-col>
<a-col
:md=
"6"
:sm=
"24"
>
<a-form-item
label=
"批号"
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
>
<a-select
placeholder=
"有无批号"
v-model=
"queryParam.enableBatchNumber"
>
<a-select-option
value=
"1"
>
有
</a-select-option>
<a-select-option
value=
"0"
>
无
</a-select-option>
</a-select>
</a-form-item>
</a-col>
</
template
>
</a-row>
</a-row>
</a-form>
</a-form>
<a-table
<a-table
...
@@ -90,7 +112,10 @@
...
@@ -90,7 +112,10 @@
modalWidth
:
1450
,
modalWidth
:
1450
,
queryParam
:
{
queryParam
:
{
q
:
''
,
q
:
''
,
depotId
:
''
categoryId
:
''
,
depotId
:
''
,
enableSerialNumber
:
''
,
enableBatchNumber
:
''
},
},
labelCol
:
{
labelCol
:
{
xs
:
{
span
:
24
},
xs
:
{
span
:
24
},
...
@@ -315,7 +340,8 @@
...
@@ -315,7 +340,8 @@
if
(
this
.
queryParam
.
q
===
this
.
dataSource
[
0
].
mBarCode
||
if
(
this
.
queryParam
.
q
===
this
.
dataSource
[
0
].
mBarCode
||
this
.
queryParam
.
q
===
this
.
dataSource
[
0
].
name
||
this
.
queryParam
.
q
===
this
.
dataSource
[
0
].
name
||
this
.
queryParam
.
q
===
this
.
dataSource
[
0
].
standard
||
this
.
queryParam
.
q
===
this
.
dataSource
[
0
].
standard
||
this
.
queryParam
.
q
===
this
.
dataSource
[
0
].
model
)
{
this
.
queryParam
.
q
===
this
.
dataSource
[
0
].
model
||
this
.
queryParam
.
q
===
this
.
dataSource
[
0
].
color
)
{
let
arr
=
[]
let
arr
=
[]
arr
.
push
(
this
.
dataSource
[
0
].
id
)
arr
.
push
(
this
.
dataSource
[
0
].
id
)
this
.
selectedRowKeys
=
arr
this
.
selectedRowKeys
=
arr
...
...
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