Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-app-operator-master
Commits
083f2b23
Commit
083f2b23
authored
Mar 21, 2023
by
我在何方
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
财务收款单更新
parent
e279e0d0
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
50 additions
and
19 deletions
+50
-19
financial.js
src/api/ecw/financial.js
+9
-0
dict.js
src/utils/dict.js
+1
-0
receiptDetail.vue
src/views/ecw/financial/receiptDetail.vue
+24
-7
voucher.vue
src/views/ecw/financial/voucher.vue
+16
-12
No files found.
src/api/ecw/financial.js
View file @
083f2b23
...
...
@@ -457,3 +457,12 @@ export function cancelFinanceReceiptItemWriteOff(query) {
})
}
// 取消收款明细反核销
export
function
cancelFinanceReceiptItemWriteOffNo
(
query
)
{
return
request
({
url
:
'
/ecw/receipt-item/cancelFinanceReceiptItemWriteOffNo
'
,
method
:
'
POST
'
,
data
:
query
})
}
src/utils/dict.js
View file @
083f2b23
...
...
@@ -193,6 +193,7 @@ export const DICT_TYPE = {
ORDER_SPECIAL_NEEDS
:
'
order_special_needs
'
,
// 订单特殊需求
ORDER_ABNORMAL_STATE
:
'
order_abnormal_state
'
,
TARGET_TYPE
:
'
target_type
'
,
//部门业绩目标类型
RECEIPT_ITEM_STATE
:
'
receipt_item_state
'
,
//收款单明细状态
// ========== 出货模块 ==========
BOX_SHIPPING_TRAILER_STATUS
:
'
shipping_trailer_status
'
,
// 拖车状态
BOX_SHIPPING_CUSTOMS_TYPE
:
'
shipping_customs_type
'
,
// 报关方式
...
...
src/views/ecw/financial/receiptDetail.vue
View file @
083f2b23
...
...
@@ -251,18 +251,22 @@
<
/el-table-column
>
<
el
-
table
-
column
:
label
=
"
$t('状态')
"
align
=
"
center
"
prop
=
"
status
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
span
>
{{
scope
.
row
.
status
==
0
?
$t
(
'
待核销
'
)
:
$t
(
'
已核销
'
)
}}
<
/span
>
<
dict
-
tag
:
type
=
"
DICT_TYPE.RECEIPT_ITEM_STATE
"
:
value
=
"
scope.row.status
"
/>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
:
label
=
"
$t('操作')
"
align
=
"
center
"
width
=
"
200
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
el
-
button
v
-
if
=
"
scope.row.status == 0
"
v
-
hasPermi
=
"
['ecw:payment:detail:delete']
"
type
=
"
text
"
@
click
=
"
deleteClick(scope.row)
"
>
{{
$t
(
'
删除
'
)
}}
<
/el-button
>
<
el
-
button
type
=
"
text
"
@
click
=
"
detailClick(scope.row)
"
v
-
hasPermi
=
"
['ecw:payment:detail:detail']
"
>
{{
$t
(
'
详情
'
)
}}
<
/el-button
>
<
el
-
button
v
-
if
=
"
scope.row.status == 0
"
type
=
"
text
"
@
click
=
"
detailClick(scope.row)
"
v
-
hasPermi
=
"
['ecw:payment:detail:detail']
"
>
{{
$t
(
'
详情
'
)
}}
<
/el-button
>
<
el
-
button
v
-
if
=
"
scope.row.status == 0
"
type
=
"
text
"
@
click
=
"
$router.push(`bankDetail?id=`+id+`&bankId=`+scope.row.id)
"
v
-
hasPermi
=
"
['ecw:payment:detail:writeOff']
"
>
{{
$t
(
'
核销
'
)
}}
<
/el-button
>
<
el
-
button
v
-
if
=
"
scope.row.status == 1
"
type
=
"
text
"
@
click
=
"
showCancel(scope.$index)
"
v
-
hasPermi
=
"
['ecw:payment:detail:cancelWriteOff']
"
>
{{
$t
(
'
反核销
'
)
}}
<
/el-button
>
<
el
-
button
v
-
if
=
"
scope.row.status == 0
"
type
=
"
text
"
@
click
=
"
editClick(scope.row)
"
v
-
hasPermi
=
"
['ecw:payment:detail:bankEdit']
"
>
{{
$t
(
'
编辑
'
)
}}
<
/el-button
>
<
el
-
button
v
-
if
=
"
scope.row.status == 0
"
type
=
"
text
"
@
click
=
"
cancelClick(scope.$index)
"
v
-
hasPermi
=
"
['ecw:payment:detail:writeOff']
"
>
{{
$t
(
'
取消审核
'
)
}}
<
/el-button
>
<
el
-
button
v
-
if
=
"
scope.row.status == 0
"
type
=
"
text
"
@
click
=
"
$router.push(`/bpm/process-instance/detail?id=`+scope.row.bmpId)
"
v
-
hasPermi
=
"
['ecw:payment:detail:writeOff']
"
>
{{
$t
(
'
审核详情
'
)
}}
<
/el-button
>
<
el
-
button
v
-
if
=
"
scope.row.status == 2
"
type
=
"
text
"
@
click
=
"
cancelClick(scope.$index,1)
"
v
-
hasPermi
=
"
['ecw:payment:detail:cancelDetailApproval']
"
>
{{
$t
(
'
取消审核
'
)
}}
<
/el-button
>
<
el
-
button
v
-
if
=
"
scope.row.status == 3
"
type
=
"
text
"
@
click
=
"
cancelClick(scope.$index,2)
"
v
-
hasPermi
=
"
['ecw:payment:detail:cancelWriteOff']
"
>
{{
$t
(
'
取消反核销审核
'
)
}}
<
/el-button
>
<
el
-
button
v
-
if
=
"
scope.row.status == 3 || scope.row.status == 2
"
type
=
"
text
"
@
click
=
"
$router.push(`/bpm/process-instance/detail?id=`+scope.row.bmpId)
"
v
-
hasPermi
=
"
['ecw:payment:detail:writeOff']
"
>
{{
$t
(
'
审核详情
'
)
}}
<
/el-button
>
<
/template
>
<
/el-table-column
>
<
/el-table
>
...
...
@@ -462,7 +466,7 @@
<
el
-
input
type
=
"
textarea
"
:
rows
=
"
6
"
v
-
model
=
"
cancelReason
"
:
placeholder
=
"
$t('请输入取消审核理由')
"
><
/el-input
>
<
/div
>
<
span
slot
=
"
footer
"
class
=
"
dialog-footer
"
>
<
el
-
button
type
=
"
primary
"
@
click
=
"
cancelClick()
"
>
{{
$t
(
'
提交
'
)
}}
<
/el-button
>
<
el
-
button
type
=
"
primary
"
@
click
=
"
cancel
WriteOff
Click()
"
>
{{
$t
(
'
提交
'
)
}}
<
/el-button
>
<
el
-
button
@
click
=
"
cancelShow = false
"
>
{{
$t
(
'
取消
'
)
}}
<
/el-button
>
<
/span
>
<
/el-dialog
>
...
...
@@ -490,7 +494,8 @@ import {
getReceiptAccountList
,
financeReceiptWriteOff
,
financeReceiptItemWriteOffNo
,
cancelFinanceReceiptItemWriteOff
cancelFinanceReceiptItemWriteOff
,
cancelFinanceReceiptItemWriteOffNo
}
from
"
@/api/ecw/financial
"
;
import
{
getCurrencyPage
}
from
"
@/api/ecw/currency
"
;
import
NP
from
'
number-precision
'
...
...
@@ -541,6 +546,7 @@ export default {
cancelShow
:
false
,
cancelTitle
:
''
,
cancelReason
:
''
,
cancelType
:
1
}
}
,
computed
:
{
...
...
@@ -836,8 +842,9 @@ export default {
this
.
dialogVisible
=
true
}
,
//取消审核弹窗
cancelClick
(
index
){
cancelClick
(
index
,
type
){
this
.
selectIndex
=
index
this
.
cancelType
=
type
this
.
cancelReason
=
''
this
.
cancelShow
=
true
}
,
...
...
@@ -848,10 +855,20 @@ export default {
return
}
var
receiptItemId
=
this
.
detailed
[
this
.
selectIndex
].
id
if
(
this
.
cancelType
==
1
){
cancelFinanceReceiptItemWriteOff
({
receiptItemId
:
receiptItemId
,
remark
:
this
.
cancelReason
}
).
then
(
res
=>
{
this
.
$message
.
success
(
this
.
$t
(
"
提交成功
"
));
this
.
cancelShow
=
false
this
.
getList
()
}
);
}
else
{
cancelFinanceReceiptItemWriteOffNo
({
receiptItemId
:
receiptItemId
,
remark
:
this
.
cancelReason
}
).
then
(
res
=>
{
this
.
$message
.
success
(
this
.
$t
(
"
提交成功
"
));
this
.
cancelShow
=
false
this
.
getList
()
}
);
}
}
,
currencyIdChange
(
val
)
{
val
=
Number
(
val
)
...
...
src/views/ecw/financial/voucher.vue
View file @
083f2b23
...
...
@@ -97,7 +97,7 @@
:
type
=
"
DICT_TYPE.ECW_RECEIPT_STATE
"
:
value
=
"
scope.row.state
"
/>
<
span
v
-
if
=
"
scope.row.
remark
"
:
title
=
"
scope.row.remark
"
><
i
class
=
"
el-icon-question
"
><
/i></
span
>
<
span
v
-
if
=
"
scope.row.
state==1 || scope.row.state ==3 || scope.row.state==8
"
:
title
=
"
scope.row.remark
"
><
i
class
=
"
el-icon-question
"
><
/i></
span
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
:
label
=
"
$t('是否开票')
"
align
=
"
center
"
>
...
...
@@ -118,7 +118,7 @@
@
click
=
"
verificationCancelClick(scope.row)
"
>
{{
$t
(
'
查看
'
)
}}
<
/el-button
>
<
el
-
button
v
-
if
=
"
scope.row.state === 0 || scope.row.state == 1 || scope.row.state == 2 || scope.row.state == 3
"
v
-
if
=
"
scope.row.state === 0 || scope.row.state == 1 || scope.row.state == 2 || scope.row.state == 3
|| scope.row.state == 8
"
size
=
"
mini
"
type
=
"
text
"
v
-
hasPermi
=
"
['ecw:voucher:edit']
"
...
...
@@ -141,7 +141,7 @@
>
{{
$t
(
'
反核销
'
)
}}
<
/el-butto
n
>
<
el
-
button
v
-
if
=
"
scope.row.state ==
4 || scope.row.state == 5 || scope.row.state == 6
"
v
-
if
=
"
scope.row.state ==
1
"
size
=
"
mini
"
type
=
"
text
"
v
-
hasPermi
=
"
['ecw:voucher:cancelWriteOff']
"
...
...
@@ -149,32 +149,33 @@
>
{{
$t
(
'
反审核
'
)
}}
<
/el-butto
n
>
<
el
-
button
v
-
if
=
"
scope.row.state ==
4 || scope.row.state == 5 || scope.row.state == 6
"
v
-
if
=
"
scope.row.state ==
7
"
size
=
"
mini
"
type
=
"
text
"
v
-
hasPermi
=
"
['ecw:vo
ucher:cancelWriteOff
']
"
v
-
hasPermi
=
"
['ecw:vo
cher:cancelAppoval
']
"
@
click
=
"
cancelClick(scope.$index,1)
"
>
{{
$t
(
'
取消审核
'
)
}}
<
/el-butto
n
>
<
el
-
button
v
-
if
=
"
scope.row.state ==
4 || scope.row.state == 5 || scope.row.state == 6
"
v
-
if
=
"
scope.row.state ==
11
"
size
=
"
mini
"
type
=
"
text
"
v
-
hasPermi
=
"
['ecw:vo
ucher:cancelWriteOff
']
"
v
-
hasPermi
=
"
['ecw:vo
cher:cancelWriteOfflNo
']
"
@
click
=
"
cancelClick(scope.$index,3)
"
>
{{
$t
(
'
取消反核销审核
'
)
}}
<
/el-butto
n
>
<
el
-
button
v
-
if
=
"
scope.row.state ==
4 || scope.row.state == 5 || scope.row.state == 6
"
v
-
if
=
"
scope.row.state ==
9
"
size
=
"
mini
"
type
=
"
text
"
v
-
hasPermi
=
"
['ecw:vo
ucher:cancelWriteOff
']
"
v
-
hasPermi
=
"
['ecw:vo
cher:cancelAppovalNo
']
"
@
click
=
"
cancelClick(scope.$index,2)
"
>
{{
$t
(
'
取消反审核
'
)
}}
<
/el-butto
n
>
<
el
-
button
size
=
"
mini
"
type
=
"
text
"
v
-
if
=
"
scope.row.state == 9 || scope.row.state == 7 || scope.row.state == 11
"
v
-
hasPermi
=
"
['ecw:voucher:cancelWriteOff']
"
@
click
=
"
$router.push(`/bpm/process-instance/detail?id=`+scope.row.bmpId)
"
>
{{
$t
(
'
审核详情
'
)
}}
<
/el-butto
n
...
...
@@ -188,9 +189,9 @@
>
{{
$t
(
'
开票
'
)
}}
<
/el-butto
n
>
<
el
-
button
v
-
if
=
"
scope.row.state == 1 || scope.row.state == 2 || scope.row.state == 3
"
v
-
hasPermi
=
"
['ecw:voucher:payment']
"
size
=
"
mini
"
type
=
"
text
"
@
click
=
"
verificationCancelClick(scope.row)
"
>
{{
$t
(
'
收款
'
)
}}
<
/el-button
>
<
el
-
button
v
-
if
=
"
[0,1,
2
].indexOf(scope.row.state) > -1
"
size
=
"
mini
"
type
=
"
text
"
v
-
hasPermi
=
"
['ecw:voucher:delete']
"
@
click
=
"
deleteClick(scope.row)
"
>
{{
$t
(
'
删除
'
)
}}
<
/el-button
>
<
el
-
button
v
-
if
=
"
[0,1,
8
].indexOf(scope.row.state) > -1
"
size
=
"
mini
"
type
=
"
text
"
v
-
hasPermi
=
"
['ecw:voucher:delete']
"
@
click
=
"
deleteClick(scope.row)
"
>
{{
$t
(
'
删除
'
)
}}
<
/el-button
>
<
el
-
button
v
-
if
=
"
scope.row.state != 0
"
v
-
if
=
"
scope.row.state != 0
&& scope.row.state != 7 && scope.row.state != 11 && scope.row.state != 8 && scope.row.state != 9
"
size
=
"
mini
"
type
=
"
text
"
@
click
=
"
toprint(scope.row.id)
"
...
...
@@ -198,7 +199,7 @@
>
{{
$t
(
'
打印
'
)
}}
<
/el-butto
n
>
<
el
-
button
v
-
if
=
"
scope.row.state != 0
"
v
-
if
=
"
scope.row.state != 0
&& scope.row.state != 7 && scope.row.state != 11 && scope.row.state != 8 && scope.row.state != 9
"
size
=
"
mini
"
type
=
"
text
"
v
-
hasPermi
=
"
['ecw:voucher:derive']
"
...
...
@@ -419,16 +420,19 @@ export default {
cancelFinanceReceiptApproval
({
receiptId
:
receiptId
,
remark
:
this
.
cancelReason
}
).
then
(
res
=>
{
this
.
$message
.
success
(
this
.
$t
(
"
提交成功
"
));
this
.
cancelShow
=
false
this
.
getList
();
}
);
}
else
if
(
this
.
cancelIndex
==
2
){
cancelFinanceReceiptApprovalNo
({
receiptId
:
receiptId
,
remark
:
this
.
cancelReason
}
).
then
(
res
=>
{
this
.
$message
.
success
(
this
.
$t
(
"
提交成功
"
));
this
.
cancelShow
=
false
this
.
getList
();
}
);
}
else
{
cancelFinanceReceiptWriteOffNo
({
receiptId
:
receiptId
,
remark
:
this
.
cancelReason
}
).
then
(
res
=>
{
this
.
$message
.
success
(
this
.
$t
(
"
提交成功
"
));
this
.
cancelShow
=
false
this
.
getList
();
}
);
}
...
...
Write
Preview
Markdown
is supported
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