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
0e9ceb82
Commit
0e9ceb82
authored
Oct 21, 2021
by
季圣华
Browse files
给零售单据增加会员的快捷录入
parent
c259b89f
Changes
3
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/views/bill/mixins/BillModalMixin.js
View file @
0e9ceb82
...
...
@@ -220,12 +220,20 @@ export const BillModalMixin = {
this
.
$refs
.
customerModalForm
.
title
=
"
新增客户(提醒:如果找不到新添加的客户,请到用户管理检查是否分配了该客户权限)
"
;
this
.
$refs
.
customerModalForm
.
disableSubmit
=
false
;
},
addMember
()
{
this
.
$refs
.
memberModalForm
.
add
();
this
.
$refs
.
memberModalForm
.
title
=
"
新增会员
"
;
this
.
$refs
.
memberModalForm
.
disableSubmit
=
false
;
},
vendorModalFormOk
()
{
this
.
initSupplier
()
},
customerModalFormOk
()
{
this
.
initCustomer
()
},
memberModalFormOk
()
{
this
.
initRetail
()
},
onAdded
(
event
)
{
const
{
row
,
target
}
=
event
getAction
(
'
/depot/findDepotByCurrentUser
'
).
then
((
res
)
=>
{
...
...
jshERP-web/src/views/bill/modules/RetailBackModal.vue
View file @
0e9ceb82
...
...
@@ -19,6 +19,12 @@
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"会员卡号"
>
<a-select
placeholder=
"选择会员卡号"
v-decorator=
"[ 'organId' ]"
:dropdownMatchSelectWidth=
"false"
showSearch
optionFilterProp=
"children"
>
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<v-nodes
:vnodes=
"menu"
/>
<a-divider
style=
"margin: 4px 0;"
/>
<div
style=
"padding: 4px 8px; cursor: pointer;"
@
mousedown=
"e => e.preventDefault()"
@
click=
"addMember"
><a-icon
type=
"plus"
/>
新增会员
</div>
</div>
<a-select-option
v-for=
"(item,index) in retailList"
:key=
"index"
:value=
"item.id"
>
{{
item
.
supplier
}}
</a-select-option>
...
...
@@ -118,11 +124,13 @@
</a-form>
</a-spin>
<link-bill-list
ref=
"linkBillList"
@
ok=
"linkBillListOk"
></link-bill-list>
<member-modal
ref=
"memberModalForm"
@
ok=
"memberModalFormOk"
></member-modal>
</j-modal>
</template>
<
script
>
import
pick
from
'
lodash.pick
'
import
LinkBillList
from
'
../dialog/LinkBillList
'
import
MemberModal
from
'
../../system/modules/MemberModal
'
import
{
FormTypes
}
from
'
@/utils/JEditableTableUtil
'
import
{
JEditableTableMixin
}
from
'
@/mixins/JEditableTableMixin
'
import
{
BillModalMixin
}
from
'
../mixins/BillModalMixin
'
...
...
@@ -137,8 +145,13 @@
mixins
:
[
JEditableTableMixin
,
BillModalMixin
],
components
:
{
LinkBillList
,
MemberModal
,
JUpload
,
JDate
JDate
,
VNodes
:
{
functional
:
true
,
render
:
(
h
,
ctx
)
=>
ctx
.
props
.
vnodes
,
}
},
data
()
{
return
{
...
...
jshERP-web/src/views/bill/modules/RetailOutModal.vue
View file @
0e9ceb82
...
...
@@ -20,6 +20,12 @@
data-intro=
"如果发现需要选择的会员卡号尚未录入,可以在下拉框中点击新增会员信息进行录入"
>
<a-select
placeholder=
"选择会员卡号"
v-decorator=
"[ 'organId' ]"
:dropdownMatchSelectWidth=
"false"
showSearch
optionFilterProp=
"children"
@
change=
"onChangeOrgan"
>
<div
slot=
"dropdownRender"
slot-scope=
"menu"
>
<v-nodes
:vnodes=
"menu"
/>
<a-divider
style=
"margin: 4px 0;"
/>
<div
style=
"padding: 4px 8px; cursor: pointer;"
@
mousedown=
"e => e.preventDefault()"
@
click=
"addMember"
><a-icon
type=
"plus"
/>
新增会员
</div>
</div>
<a-select-option
v-for=
"(item,index) in retailList"
:key=
"index"
:value=
"item.id"
>
{{
item
.
supplier
}}
</a-select-option>
...
...
@@ -129,10 +135,12 @@
</a-row>
</a-form>
</a-spin>
<member-modal
ref=
"memberModalForm"
@
ok=
"memberModalFormOk"
></member-modal>
</j-modal>
</template>
<
script
>
import
pick
from
'
lodash.pick
'
import
MemberModal
from
'
../../system/modules/MemberModal
'
import
{
FormTypes
}
from
'
@/utils/JEditableTableUtil
'
import
{
JEditableTableMixin
}
from
'
@/mixins/JEditableTableMixin
'
import
{
BillModalMixin
}
from
'
../mixins/BillModalMixin
'
...
...
@@ -146,8 +154,13 @@
name
:
"
RetailOutModal
"
,
mixins
:
[
JEditableTableMixin
,
BillModalMixin
],
components
:
{
MemberModal
,
JUpload
,
JDate
JDate
,
VNodes
:
{
functional
:
true
,
render
:
(
h
,
ctx
)
=>
ctx
.
props
.
vnodes
,
}
},
data
()
{
return
{
...
...
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