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
39e9eeae
Commit
39e9eeae
authored
Oct 08, 2021
by
季圣华
Browse files
初步增加扫码功能
parent
644b1851
Changes
2
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/views/bill/mixins/BillModalMixin.js
View file @
39e9eeae
...
...
@@ -22,6 +22,8 @@ export const BillModalMixin = {
accountIdList
:
[],
accountMoneyList
:
[],
billUnitPirce
:
''
,
scanBarCode
:
''
,
scanStatus
:
true
,
spans
:
{
labelCol1
:
{
span
:
2
},
wrapperCol1
:
{
span
:
22
},
...
...
@@ -505,6 +507,16 @@ export const BillModalMixin = {
this
.
$nextTick
(()
=>
{
this
.
form
.
setFieldsValue
({
'
debt
'
:
debtNew
})
});
},
scanEnter
()
{
this
.
scanStatus
=
false
},
scanPressEnter
()
{
console
.
log
(
this
.
scanBarCode
)
},
stopScan
()
{
this
.
scanStatus
=
true
this
.
scanBarCode
=
''
}
}
}
\ No newline at end of file
jshERP-web/src/views/bill/modules/PurchaseInModal.vue
View file @
39e9eeae
...
...
@@ -52,7 +52,21 @@
:actionButton=
"true"
@
valueChange=
"onValueChange"
@
added=
"onAdded"
@
deleted=
"onDeleted"
/>
@
deleted=
"onDeleted"
>
<template
#buttonAfter
>
<a-row
:gutter=
"24"
>
<a-col
v-if=
"scanStatus"
:md=
"6"
:sm=
"24"
>
<a-button
@
click=
"scanEnter"
>
扫码录入
</a-button>
</a-col>
<a-col
v-if=
"!scanStatus"
:md=
"16"
:sm=
"24"
style=
"padding: 0 6px 0 12px"
>
<a-input
placeholder=
"请扫码商品条码并回车"
v-model=
"scanBarCode"
@
pressEnter=
"scanPressEnter"
/>
</a-col>
<a-col
v-if=
"!scanStatus"
:md=
"6"
:sm=
"24"
style=
"padding: 0px"
>
<a-button
@
click=
"stopScan"
>
收起扫码
</a-button>
</a-col>
</a-row>
</
template
>
</j-editable-table>
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-col
:lg=
"24"
:md=
"24"
:sm=
"24"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"{xs: { span: 24 },sm: { span: 24 }}"
label=
""
>
...
...
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