Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
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
罗超
SuperMan
Commits
f726ef68
Commit
f726ef68
authored
Apr 07, 2024
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
发票修改申请金额
parent
65502459
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
82 additions
and
8 deletions
+82
-8
invoicesManager.vue
src/components/FinancialModule/invoicesManager.vue
+82
-8
No files found.
src/components/FinancialModule/invoicesManager.vue
View file @
f726ef68
...
...
@@ -90,6 +90,9 @@
cursor
:
pointer
;
margin-right
:
10px
}
._zhuihui.xiugai
{
background-color
:
#409EFF
;
}
</
style
>
<
template
>
<div
class=
"page_iisMg"
>
...
...
@@ -182,7 +185,7 @@
<th>
客户
</th>
<th>
开票金额
</th>
<th>
差价
</th>
<th>
申请日期
</th>
<th>
申请日期
/金额
</th>
<th>
{{
$t
(
'hotel.hotel_status'
)
}}
</th>
<th>
{{
$t
(
'system.table_operation'
)
}}
</th>
</tr>
...
...
@@ -199,7 +202,7 @@
<td
:rowspan=
"item.InvoiceApplyList.length"
>
<span>
{{
item
.
DpreadPrice
-
item
.
ApplyTotalPrice
}}
</span>
</td>
<td>
{{
item
.
InvoiceApplyList
[
0
].
CreateDate
.
replace
(
'T'
,
' '
)
}}
</td>
<td>
{{
item
.
InvoiceApplyList
[
0
].
CreateDate
.
replace
(
'T'
,
' '
)
}}
(
{{
item
.
InvoiceApplyList
[
0
].
ApplyMoney
}}
)
</td>
<td>
<span
v-if=
"item.InvoiceApplyList[0].InvoiceApplyState === 1"
class=
"status_Application"
>
申请中
</span>
<span
v-else-if=
"item.InvoiceApplyList[0].InvoiceApplyState === 2"
class=
"status_Cancle"
>
已取消
</span>
...
...
@@ -213,16 +216,19 @@
<i
class=
"iconfont icon-sousuo"
@
click=
"goIisDetail(item.InvoiceApplyList[0].ID)"
></i>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"追回发票"
placement=
"top"
>
<span
v-if=
"item.ApplyTotalPrice!=0"
class=
"_zhuihui"
@
click=
"zhuihui(item.
OrderId
)"
>
{{
$t
(
'objFill.chase'
)
}}
</span>
<span
v-if=
"item.ApplyTotalPrice!=0"
class=
"_zhuihui"
@
click=
"zhuihui(item.
InvoiceApplyList[0].ID
)"
>
{{
$t
(
'objFill.chase'
)
}}
</span>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"确认追回"
placement=
"top"
>
<!-- v-if="item.InvoiceApplyList[0].InvoiceApplyState === 5" -->
<i
v-if=
"item.InvoiceApplyList[0].InvoiceApplyState === 5"
class=
"iconfont icon-ico_commodity_defaul"
@
click=
"setStatus(item.InvoiceApplyList[0].ID, 6)"
></i>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"修改申请金额"
placement=
"top"
>
<span
v-if=
"item.InvoiceApplyList[0].InvoiceApplyState === 1"
class=
"el-icon-edit _zhuihui xiugai"
@
click=
"UpdateInvoiceApplyMoneyDiv(item.InvoiceApplyList[0])"
></span>
</el-tooltip>
</td>
</tr>
<tr
v-for=
"(item2, index2) in item.InvoiceApplyList"
v-if=
"index2!==0"
>
<td>
{{
item2
.
CreateDate
.
replace
(
'T'
,
' '
)
}}
</td>
<td>
{{
item2
.
CreateDate
.
replace
(
'T'
,
' '
)
}}
(
{{
item2
.
ApplyMoney
}}
)
</td>
<td>
<span
v-if=
"item2.InvoiceApplyState === 1"
class=
"status_Application"
>
申请中
</span>
<span
v-else-if=
"item2.InvoiceApplyState === 2"
class=
"status_Cancle"
>
已取消
</span>
...
...
@@ -236,12 +242,16 @@
<i
class=
"iconfont icon-sousuo"
@
click=
"goIisDetail(item2.ID)"
></i>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"追回发票"
placement=
"top"
>
<span
v-if=
"item.ApplyTotalPrice!=0"
class=
"_zhuihui"
@
click=
"zhuihui(item
.OrderId
)"
>
{{
$t
(
'objFill.chase'
)
}}
</span>
<span
v-if=
"item.ApplyTotalPrice!=0"
class=
"_zhuihui"
@
click=
"zhuihui(item
2.ID
)"
>
{{
$t
(
'objFill.chase'
)
}}
</span>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"确认追回"
placement=
"top"
>
<!-- v-if="item2.InvoiceApplyState === 5" -->
<i
v-if=
"item2.InvoiceApplyState === 5"
class=
"iconfont icon-ico_commodity_defaul"
@
click=
"setStatus(item2.ID, 6)"
></i>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"修改申请金额"
placement=
"top"
>
<!-- v-if="item2.InvoiceApplyState === 5" -->
<span
v-if=
"item2.InvoiceApplyState === 1"
class=
"el-icon-edit _zhuihui xiugai"
@
click=
"UpdateInvoiceApplyMoneyDiv(item2)"
></span>
</el-tooltip>
</td>
</tr>
</
template
>
...
...
@@ -257,6 +267,41 @@
:total=
'total'
>
</el-pagination>
</div>
<el-dialog
custom-class=
"w300"
title=
"修改发票申请金额"
:visible
.
sync=
"UpdateApplyMoney.CancelOrderDialog"
>
<div
style=
"padding-bottom:20px"
>
<span
>
原申请金额:{{UpdateApplyMoney.OldApplyMoney}}
</span>
<el-input
style=
"margin-top:10px;"
autofocus
rows=
"5"
type=
"number"
placeholder=
"请填写实际申请金额"
clear=
"w150"
@
input=
"UpdateApplyMoney.ApplyMoney=/^\d+\.?\d{0,2}$/.test(UpdateApplyMoney.ApplyMoney)||UpdateApplyMoney.ApplyMoney == '' ? UpdateApplyMoney.ApplyMoney : UpdateApplyMoney.ApplyMoney=''"
v-model=
"UpdateApplyMoney.ApplyMoney"
></el-input>
<el-row
:gutter=
"20"
style=
"margin-top: 20px;"
>
<el-col
:span=
"24"
style=
"text-align: right;"
>
<input
type=
"button"
class=
"normalBtn"
value=
"确定"
@
click=
"UpdateInvoiceApplyMoney"
/>
<input
type=
"button"
class=
"hollowFixedBtn"
:value=
"$t('pub.closeSel')"
@
click=
"UpdateApplyMoney.CancelOrderDialog = false,UpdateApplyMoney.ID=0,UpdateApplyMoney.ApplyMoney='',UpdateApplyMoney.OldApplyMoney=0"
/>
</el-col>
</el-row>
</div>
</el-dialog>
</div>
</template>
<
script
>
...
...
@@ -287,17 +332,23 @@ export default {
loading
:
false
,
currentPage
:
0
,
total
:
0
,
UpdateApplyMoney
:{
ID
:
0
,
CancelOrderDialog
:
false
,
ApplyMoney
:
''
,
OldApplyMoney
:
0
,
},
};
},
methods
:
{
zhuihui
:
function
(
OrderId
)
{
zhuihui
:
function
(
ID
)
{
this
.
$confirm
(
'是否设置发票状态为追回?'
,
this
.
$t
(
'tips.tips'
),
{
confirmButtonText
:
'确认'
,
cancelButtonText
:
this
.
$t
(
'pub.cancelBtn'
),
type
:
'warning'
}).
then
(()
=>
{
this
.
apipost
(
'InvoiceApply_get_BatchUpdateInvoiceApply'
,
{
OrderId
:
OrderId
,
this
.
apipost
(
'InvoiceApply_get_BatchUpdateInvoiceApply
New
'
,
{
ID
:
ID
,
InvoiceApplyType
:
this
.
msg
.
InvoiceApplyType
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
...
...
@@ -307,6 +358,29 @@ export default {
}).
catch
(()
=>
{
});
},
UpdateInvoiceApplyMoney
:
function
()
{
if
(
this
.
UpdateApplyMoney
.
ApplyMoney
==
''
||
this
.
UpdateApplyMoney
.
ApplyMoney
<=
0
)
{
return
;
}
this
.
apipost
(
'InvoiceApply_get_UpdateInvoiceApplyMoney'
,
{
ID
:
this
.
UpdateApplyMoney
.
ID
,
ApplyMoney
:
this
.
UpdateApplyMoney
.
ApplyMoney
,
InvoiceApplyType
:
this
.
msg
.
InvoiceApplyType
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
UpdateApplyMoney
.
CancelOrderDialog
=
false
;
this
.
UpdateApplyMoney
.
ID
=
0
;
this
.
UpdateApplyMoney
.
OldApplyMoney
=
0
;
this
.
UpdateApplyMoney
.
ApplyMoney
=
0
;
this
.
getPageList
()
}
},
null
)
},
UpdateInvoiceApplyMoneyDiv
:
function
(
item
){
this
.
UpdateApplyMoney
.
CancelOrderDialog
=
true
;
this
.
UpdateApplyMoney
.
ID
=
item
.
ID
;
this
.
UpdateApplyMoney
.
OldApplyMoney
=
item
.
ApplyMoney
;
},
goIisDetail
:
function
(
id
)
{
this
.
$router
.
push
({
name
:
'invoicesManagerDetail'
,
...
...
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