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
1882d8cc
Commit
1882d8cc
authored
Apr 26, 2021
by
季圣华
Browse files
完善多账户和销售人员的展示
parent
16a42c2a
Changes
2
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/views/bill/dialog/BillDetail.vue
View file @
1882d8cc
...
@@ -548,7 +548,7 @@
...
@@ -548,7 +548,7 @@
</a-col>
</a-col>
<a-col
:lg=
"6"
:md=
"12"
:sm=
"24"
>
<a-col
:lg=
"6"
:md=
"12"
:sm=
"24"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"销售人员"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"销售人员"
>
{{
model
.
salesMan
}}
{{
model
.
salesMan
Str
}}
</a-form-item>
</a-form-item>
</a-col>
</a-col>
</a-row>
</a-row>
...
@@ -634,7 +634,7 @@
...
@@ -634,7 +634,7 @@
</a-col>
</a-col>
<a-col
:lg=
"6"
:md=
"12"
:sm=
"24"
>
<a-col
:lg=
"6"
:md=
"12"
:sm=
"24"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"销售人员"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"销售人员"
>
{{
model
.
salesMan
}}
{{
model
.
salesMan
Str
}}
</a-form-item>
</a-form-item>
</a-col>
</a-col>
</a-row>
</a-row>
...
@@ -736,7 +736,7 @@
...
@@ -736,7 +736,7 @@
</a-col>
</a-col>
<a-col
:lg=
"6"
:md=
"12"
:sm=
"24"
>
<a-col
:lg=
"6"
:md=
"12"
:sm=
"24"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"销售人员"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"销售人员"
>
{{
model
.
salesMan
}}
{{
model
.
salesMan
Str
}}
</a-form-item>
</a-form-item>
</a-col>
</a-col>
</a-row>
</a-row>
...
...
jshERP-web/src/views/bill/modules/SaleOutModal.vue
View file @
1882d8cc
...
@@ -84,11 +84,15 @@
...
@@ -84,11 +84,15 @@
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-col
:lg=
"6"
:md=
"12"
:sm=
"24"
>
<a-col
:lg=
"6"
:md=
"12"
:sm=
"24"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"结算账户"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"结算账户"
>
<a-select
placeholder=
"选择结算账户"
v-decorator=
"[ 'accountId' ]"
:dropdownMatchSelectWidth=
"false"
>
<a-select
style=
"width:185px;"
placeholder=
"选择结算账户"
v-decorator=
"[ 'accountId' ]"
:dropdownMatchSelectWidth=
"false"
allowClear
@
select=
"selectAccount"
>
<a-select-option
v-for=
"(item,index) in accountList"
:key=
"index"
:value=
"item.id"
>
<a-select-option
v-for=
"(item,index) in accountList"
:key=
"index"
:value=
"item.id"
>
{{
item
.
name
}}
{{
item
.
name
}}
</a-select-option>
</a-select-option>
</a-select>
</a-select>
<a-tooltip
title=
"多账户明细"
>
<a-button
type=
"default"
icon=
"folder"
style=
"margin-left: 8px;"
size=
"small"
v-show=
"manyAccountBtnStatus"
@
click=
"handleManyAccount"
/>
</a-tooltip>
</a-form-item>
</a-form-item>
</a-col>
</a-col>
<a-col
:lg=
"6"
:md=
"12"
:sm=
"24"
>
<a-col
:lg=
"6"
:md=
"12"
:sm=
"24"
>
...
@@ -110,11 +114,13 @@
...
@@ -110,11 +114,13 @@
</a-form>
</a-form>
</a-spin>
</a-spin>
</j-modal>
</j-modal>
<many-account-modal
ref=
"manyAccountModalForm"
@
ok=
"manyAccountModalFormOk"
></many-account-modal>
<link-bill-list
ref=
"linkBillList"
@
ok=
"linkBillListOk"
></link-bill-list>
<link-bill-list
ref=
"linkBillList"
@
ok=
"linkBillListOk"
></link-bill-list>
</a-card>
</a-card>
</
template
>
</
template
>
<
script
>
<
script
>
import
pick
from
'
lodash.pick
'
import
pick
from
'
lodash.pick
'
import
ManyAccountModal
from
'
../dialog/ManyAccountModal
'
import
LinkBillList
from
'
../dialog/LinkBillList
'
import
LinkBillList
from
'
../dialog/LinkBillList
'
import
{
FormTypes
}
from
'
@/utils/JEditableTableUtil
'
import
{
FormTypes
}
from
'
@/utils/JEditableTableUtil
'
import
{
JEditableTableMixin
}
from
'
@/mixins/JEditableTableMixin
'
import
{
JEditableTableMixin
}
from
'
@/mixins/JEditableTableMixin
'
...
@@ -127,6 +133,7 @@
...
@@ -127,6 +133,7 @@
name
:
"
SaleOutModal
"
,
name
:
"
SaleOutModal
"
,
mixins
:
[
JEditableTableMixin
,
BillModalMixin
],
mixins
:
[
JEditableTableMixin
,
BillModalMixin
],
components
:
{
components
:
{
ManyAccountModal
,
LinkBillList
,
LinkBillList
,
JDate
,
JDate
,
JSelectMultiple
JSelectMultiple
...
@@ -238,6 +245,11 @@
...
@@ -238,6 +245,11 @@
totalPrice
+=
item
.
allPrice
-
0
totalPrice
+=
item
.
allPrice
-
0
}
}
billMain
.
totalPrice
=
totalPrice
billMain
.
totalPrice
=
totalPrice
if
(
billMain
.
accountId
===
0
)
{
billMain
.
accountId
=
''
}
billMain
.
accountIdList
=
this
.
accountIdList
.
length
>
0
?
JSON
.
stringify
(
this
.
accountIdList
)
:
""
billMain
.
accountMoneyList
=
this
.
accountMoneyList
.
length
>
0
?
JSON
.
stringify
(
this
.
accountMoneyList
)
:
""
if
(
this
.
model
.
id
){
if
(
this
.
model
.
id
){
billMain
.
id
=
this
.
model
.
id
billMain
.
id
=
this
.
model
.
id
}
}
...
@@ -247,6 +259,13 @@
...
@@ -247,6 +259,13 @@
rows
:
JSON
.
stringify
(
detailArr
),
rows
:
JSON
.
stringify
(
detailArr
),
}
}
},
},
manyAccountModalFormOk
(
idList
,
moneyList
,
allPrice
)
{
this
.
accountIdList
=
idList
this
.
accountMoneyList
=
moneyList
this
.
$nextTick
(()
=>
{
this
.
form
.
setFieldsValue
({
'
changeAmount
'
:
allPrice
})
});
},
onSearchLinkNumber
()
{
onSearchLinkNumber
()
{
this
.
$refs
.
linkBillList
.
show
(
"
销售订单
"
,
'
客户
'
)
this
.
$refs
.
linkBillList
.
show
(
"
销售订单
"
,
'
客户
'
)
this
.
$refs
.
linkBillList
.
title
=
"
选择销售订单
"
this
.
$refs
.
linkBillList
.
title
=
"
选择销售订单
"
...
...
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