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
c62c6139
Commit
c62c6139
authored
Nov 17, 2022
by
季圣华
Browse files
给单据增加有无欠款的筛选
parent
b6215fc4
Changes
2
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/views/bill/PurchaseInList.vue
View file @
c62c6139
...
...
@@ -81,6 +81,14 @@
</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.hasDebt"
>
<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.status"
>
...
...
@@ -142,6 +150,11 @@
<a>
删除
</a>
</a-popconfirm>
</span>
<
template
slot=
"customRenderDebt"
slot-scope=
"value, record"
>
<span
style=
"color:green"
v-if=
"value>0 && record.hasFinancialFlag"
>
{{
value
}}
</span>
<span
style=
"color:red"
v-if=
"value>0 && !record.hasFinancialFlag"
>
{{
value
}}
</span>
<span
v-if=
"value===0"
>
{{
value
}}
</span>
</
template
>
<
template
slot=
"customRenderStatus"
slot-scope=
"status"
>
<a-tag
v-if=
"status == '0'"
color=
"red"
>
未审核
</a-tag>
<a-tag
v-if=
"status == '1'"
color=
"green"
>
已审核
</a-tag>
...
...
@@ -186,6 +199,7 @@
creator
:
""
,
linkNumber
:
""
,
accountId
:
""
,
hasDebt
:
""
,
status
:
""
,
remark
:
""
},
...
...
@@ -238,10 +252,7 @@
},
{
title
:
'
付款
'
,
dataIndex
:
'
changeAmount
'
,
width
:
60
},
{
title
:
'
欠款
'
,
dataIndex
:
'
debt
'
,
width
:
60
,
customRender
:
function
(
text
,
record
,
index
)
{
let
debt
=
record
.
discountLastMoney
+
record
.
otherMoney
-
(
record
.
deposit
+
record
.
changeAmount
)
return
debt
?
debt
.
toFixed
(
2
):
''
}
scopedSlots
:
{
customRender
:
'
customRenderDebt
'
}
},
{
title
:
'
状态
'
,
dataIndex
:
'
status
'
,
width
:
80
,
align
:
"
center
"
,
scopedSlots
:
{
customRender
:
'
customRenderStatus
'
}
...
...
jshERP-web/src/views/bill/SaleOutList.vue
View file @
c62c6139
...
...
@@ -82,6 +82,14 @@
</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.hasDebt"
>
<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.status"
>
...
...
@@ -143,6 +151,11 @@
<a>
删除
</a>
</a-popconfirm>
</span>
<
template
slot=
"customRenderDebt"
slot-scope=
"value, record"
>
<span
style=
"color:green"
v-if=
"value>0 && record.hasFinancialFlag"
>
{{
value
}}
</span>
<span
style=
"color:red"
v-if=
"value>0 && !record.hasFinancialFlag"
>
{{
value
}}
</span>
<span
v-if=
"value===0"
>
{{
value
}}
</span>
</
template
>
<
template
slot=
"customRenderStatus"
slot-scope=
"status"
>
<a-tag
v-if=
"status == '0'"
color=
"red"
>
未审核
</a-tag>
<a-tag
v-if=
"status == '1'"
color=
"green"
>
已审核
</a-tag>
...
...
@@ -186,6 +199,7 @@
creator
:
""
,
linkNumber
:
""
,
accountId
:
""
,
hasDebt
:
""
,
status
:
""
,
remark
:
""
},
...
...
@@ -238,10 +252,7 @@
},
{
title
:
'
收款
'
,
dataIndex
:
'
changeAmount
'
,
width
:
60
},
{
title
:
'
欠款
'
,
dataIndex
:
'
debt
'
,
width
:
60
,
customRender
:
function
(
text
,
record
,
index
)
{
let
debt
=
record
.
discountLastMoney
+
record
.
otherMoney
-
(
record
.
deposit
+
record
.
changeAmount
)
return
debt
?
debt
.
toFixed
(
2
):
''
}
scopedSlots
:
{
customRender
:
'
customRenderDebt
'
}
},
{
title
:
'
状态
'
,
dataIndex
:
'
status
'
,
width
:
80
,
align
:
"
center
"
,
scopedSlots
:
{
customRender
:
'
customRenderStatus
'
}
...
...
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