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
db4121aa
Commit
db4121aa
authored
Sep 30, 2022
by
季圣华
Browse files
给单据中商品的选择框中增加商品的快捷录入
parent
3cf9fa74
Changes
3
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/components/jeecgbiz/JSelectList.vue
View file @
db4121aa
<
template
>
<
template
>
<div>
<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'||kind === 'snAdd'"
v-model=
"names"
placeholder=
"请点开弹窗"
readOnly
@
search=
"onSearch"
></a-input-search>
<a-input-search
v-if=
"kind === 'batch'||kind === 'sn'||kind === 'snAdd'"
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-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"
/>
<j-select-batch-modal
v-if=
"kind === 'batch'"
ref=
"selectModal"
:rows=
"rows"
:multi=
"multi"
:bar-code=
"value"
@
ok=
"selectOK"
@
initComp=
"initComp"
/>
...
...
jshERP-web/src/components/jeecgbiz/modal/JSelectMaterialModal.vue
View file @
db4121aa
...
@@ -40,8 +40,9 @@
...
@@ -40,8 +40,9 @@
</a-col>
</a-col>
<span
style=
"float: left;overflow: hidden;"
class=
"table-page-search-submitButtons"
>
<span
style=
"float: left;overflow: hidden;"
class=
"table-page-search-submitButtons"
>
<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"
icon=
"search"
@
click=
"loadMaterialData(1)"
title=
"查询"
></a-button>
<a-button
style=
"margin-left: 8px"
@
click=
"searchReset(1)"
>
重置
</a-button>
<a-button
style=
"margin-left: 8px"
icon=
"reload"
@
click=
"searchReset(1)"
title=
"重置"
></a-button>
<a-button
style=
"margin-left: 8px"
icon=
"plus"
@
click=
"addMaterial"
title=
"添加"
></a-button>
<a
@
click=
"handleToggleSearch"
style=
"margin-left: 8px"
>
<a
@
click=
"handleToggleSearch"
style=
"margin-left: 8px"
>
{{
toggleSearchStatus
?
'
收起
'
:
'
展开
'
}}
{{
toggleSearchStatus
?
'
收起
'
:
'
展开
'
}}
<a-icon
:type=
"toggleSearchStatus ? 'up' : 'down'"
/>
<a-icon
:type=
"toggleSearchStatus ? 'up' : 'down'"
/>
...
@@ -92,6 +93,7 @@
...
@@ -92,6 +93,7 @@
</div>
</div>
</a-col>
</a-col>
</a-row>
</a-row>
<material-modal
ref=
"modalForm"
@
ok=
"modalFormOk"
></material-modal>
</a-modal>
</a-modal>
</template>
</template>
...
@@ -105,7 +107,9 @@
...
@@ -105,7 +107,9 @@
export
default
{
export
default
{
name
:
'
JSelectMaterialModal
'
,
name
:
'
JSelectMaterialModal
'
,
mixins
:[
JeecgListMixin
],
mixins
:[
JeecgListMixin
],
components
:
{},
components
:
{
MaterialModal
:
()
=>
import
(
'
@/views/material/modules/MaterialModal
'
)
},
props
:
[
'
rows
'
,
'
multi
'
,
'
barCode
'
],
props
:
[
'
rows
'
,
'
multi
'
,
'
barCode
'
],
data
()
{
data
()
{
return
{
return
{
...
@@ -289,6 +293,10 @@
...
@@ -289,6 +293,10 @@
that
.
selectedRowKeys
=
[];
that
.
selectedRowKeys
=
[];
that
.
selectMaterialIds
=
[];
that
.
selectMaterialIds
=
[];
},
},
addMaterial
()
{
this
.
$refs
.
modalForm
.
add
()
this
.
$refs
.
modalForm
.
title
=
'
新增商品
'
},
close
()
{
close
()
{
this
.
searchReset
(
0
);
this
.
searchReset
(
0
);
this
.
visible
=
false
;
this
.
visible
=
false
;
...
...
jshERP-web/src/views/material/modules/MaterialModal.vue
View file @
db4121aa
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
:width=
"1300"
:width=
"1300"
:visible=
"visible"
:visible=
"visible"
:confirmLoading=
"confirmLoading"
:confirmLoading=
"confirmLoading"
:maskClosable=
"false"
v-bind:prefixNo=
"prefixNo"
v-bind:prefixNo=
"prefixNo"
switchHelp
switchHelp
switchFullscreen
switchFullscreen
...
...
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