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
c2c9a465
Commit
c2c9a465
authored
Dec 12, 2021
by
季圣华
Browse files
给零售增加找零字段
parent
19ba6d50
Changes
5
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/views/bill/RetailBackList.vue
View file @
c2c9a465
...
...
@@ -191,7 +191,16 @@
{
title
:
'
单据日期
'
,
dataIndex
:
'
operTimeStr
'
,
width
:
145
},
{
title
:
'
操作员
'
,
dataIndex
:
'
userName
'
,
width
:
80
},
{
title
:
'
金额合计
'
,
dataIndex
:
'
totalPrice
'
,
width
:
80
},
{
title
:
'
付款
'
,
dataIndex
:
'
changeAmount
'
,
width
:
50
},
{
title
:
'
付款金额
'
,
dataIndex
:
'
getAmount
'
,
width
:
80
,
customRender
:
function
(
text
,
record
,
index
)
{
if
(
record
.
backAmount
)
{
return
record
.
changeAmount
+
record
.
backAmount
}
else
{
return
record
.
changeAmount
}
}
},
{
title
:
'
找零
'
,
dataIndex
:
'
backAmount
'
,
width
:
50
},
{
title
:
'
状态
'
,
dataIndex
:
'
status
'
,
width
:
80
,
align
:
"
center
"
,
scopedSlots
:
{
customRender
:
'
customRenderStatus
'
}
},
...
...
jshERP-web/src/views/bill/RetailOutList.vue
View file @
c2c9a465
...
...
@@ -185,7 +185,16 @@
{
title
:
'
单据日期
'
,
dataIndex
:
'
operTimeStr
'
,
width
:
145
},
{
title
:
'
操作员
'
,
dataIndex
:
'
userName
'
,
width
:
80
},
{
title
:
'
金额合计
'
,
dataIndex
:
'
totalPrice
'
,
width
:
80
},
{
title
:
'
收款
'
,
dataIndex
:
'
changeAmount
'
,
width
:
50
},
{
title
:
'
收款金额
'
,
dataIndex
:
'
getAmount
'
,
width
:
80
,
customRender
:
function
(
text
,
record
,
index
)
{
if
(
record
.
backAmount
)
{
return
record
.
changeAmount
+
record
.
backAmount
}
else
{
return
record
.
changeAmount
}
}
},
{
title
:
'
找零
'
,
dataIndex
:
'
backAmount
'
,
width
:
50
},
{
title
:
'
状态
'
,
dataIndex
:
'
status
'
,
width
:
80
,
align
:
"
center
"
,
scopedSlots
:
{
customRender
:
'
customRenderStatus
'
}
},
...
...
jshERP-web/src/views/bill/dialog/BillDetail.vue
View file @
c2c9a465
...
...
@@ -72,18 +72,18 @@
<a-col
:span=
"6"
>
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-col
:lg=
"24"
:md=
"6"
:sm=
"6"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"
实收
金额"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"
单据
金额"
>
{{
model
.
changeAmount
}}
</a-form-item>
</a-col>
<a-col
:lg=
"24"
:md=
"6"
:sm=
"6"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"收款金额"
>
{{
model
.
chan
geAmount
}}
{{
model
.
ge
t
Amount
}}
</a-form-item>
</a-col>
<a-col
:lg=
"24"
:md=
"6"
:sm=
"6"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"找零"
>
0
{{
model
.
backAmount
}}
</a-form-item>
</a-col>
<a-col
:lg=
"24"
:md=
"6"
:sm=
"6"
>
...
...
@@ -146,18 +146,18 @@
<a-col
:span=
"6"
>
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-col
:lg=
"24"
:md=
"6"
:sm=
"6"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"
实付
金额"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"
单据
金额"
>
{{
model
.
changeAmount
}}
</a-form-item>
</a-col>
<a-col
:lg=
"24"
:md=
"6"
:sm=
"6"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"付款金额"
>
{{
model
.
chan
geAmount
}}
{{
model
.
ge
t
Amount
}}
</a-form-item>
</a-col>
<a-col
:lg=
"24"
:md=
"6"
:sm=
"6"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"找零"
>
0
{{
model
.
backAmount
}}
</a-form-item>
</a-col>
<a-col
:lg=
"24"
:md=
"6"
:sm=
"6"
>
...
...
@@ -1260,6 +1260,11 @@
this
.
fileList
=
record
.
fileName
this
.
visible
=
true
;
this
.
model
=
Object
.
assign
({},
record
);
if
(
this
.
model
.
backAmount
)
{
this
.
model
.
getAmount
=
(
this
.
model
.
changeAmount
+
this
.
model
.
backAmount
).
toFixed
(
2
)
}
else
{
this
.
model
.
getAmount
=
this
.
model
.
changeAmount
}
this
.
model
.
debt
=
(
this
.
model
.
discountLastMoney
+
this
.
model
.
otherMoney
-
this
.
model
.
changeAmount
).
toFixed
(
2
)
this
.
$nextTick
(()
=>
{
this
.
form
.
setFieldsValue
(
pick
(
this
.
model
,
'
id
'
))
...
...
jshERP-web/src/views/bill/modules/RetailBackModal.vue
View file @
c2c9a465
...
...
@@ -93,7 +93,7 @@
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-col
:lg=
"24"
:md=
"6"
:sm=
"6"
><br/><br/></a-col>
<a-col
:lg=
"24"
:md=
"6"
:sm=
"6"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"
实付
金额"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"
单据
金额"
>
<a-input
v-decorator.trim=
"[ 'changeAmount' ]"
:style=
"{color:'purple'}"
:readOnly=
"true"
/>
</a-form-item>
</a-col>
...
...
@@ -267,8 +267,11 @@
this
.
fileList
=
[]
}
else
{
this
.
model
.
operTime
=
this
.
model
.
operTimeStr
this
.
model
.
getAmount
=
this
.
model
.
changeAmount
this
.
model
.
backAmount
=
0
if
(
this
.
model
.
backAmount
)
{
this
.
model
.
getAmount
=
(
this
.
model
.
changeAmount
+
this
.
model
.
backAmount
).
toFixed
(
2
)
}
else
{
this
.
model
.
getAmount
=
this
.
model
.
changeAmount
}
this
.
fileList
=
this
.
model
.
fileName
this
.
$nextTick
(()
=>
{
this
.
form
.
setFieldsValue
(
pick
(
this
.
model
,
'
organId
'
,
'
operTime
'
,
'
number
'
,
'
linkNumber
'
,
'
remark
'
,
...
...
jshERP-web/src/views/bill/modules/RetailOutModal.vue
View file @
c2c9a465
...
...
@@ -103,8 +103,8 @@
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-col
:lg=
"24"
:md=
"6"
:sm=
"6"
><br/><br/></a-col>
<a-col
:lg=
"24"
:md=
"6"
:sm=
"6"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"
实收
金额"
data-step=
"5"
data-title=
"
实收
金额"
data-intro=
"
实收
金额等于左侧商品的总金额"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"
单据
金额"
data-step=
"5"
data-title=
"
单据
金额"
data-intro=
"
单据
金额等于左侧商品的总金额"
>
<a-input
v-decorator.trim=
"[ 'changeAmount' ]"
:style=
"{color:'purple'}"
:readOnly=
"true"
/>
</a-form-item>
</a-col>
...
...
@@ -285,7 +285,11 @@
})
}
else
{
this
.
model
.
operTime
=
this
.
model
.
operTimeStr
this
.
model
.
getAmount
=
this
.
model
.
changeAmount
if
(
this
.
model
.
backAmount
)
{
this
.
model
.
getAmount
=
(
this
.
model
.
changeAmount
+
this
.
model
.
backAmount
).
toFixed
(
2
)
}
else
{
this
.
model
.
getAmount
=
this
.
model
.
changeAmount
}
this
.
fileList
=
this
.
model
.
fileName
if
(
this
.
model
.
payType
===
'
预付款
'
){
this
.
payTypeList
=
[]
...
...
@@ -294,7 +298,7 @@
}
this
.
$nextTick
(()
=>
{
this
.
form
.
setFieldsValue
(
pick
(
this
.
model
,
'
organId
'
,
'
operTime
'
,
'
number
'
,
'
payType
'
,
'
remark
'
,
'
discount
'
,
'
discountMoney
'
,
'
discountLastMoney
'
,
'
otherMoney
'
,
'
accountId
'
,
'
changeAmount
'
,
'
getAmount
'
))
'
discount
'
,
'
discountMoney
'
,
'
discountLastMoney
'
,
'
otherMoney
'
,
'
accountId
'
,
'
changeAmount
'
,
'
getAmount
'
,
'
backAmount
'
))
});
// 加载子表数据
let
params
=
{
...
...
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