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
57fd1c38
Commit
57fd1c38
authored
Apr 14, 2023
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
edf4fbcd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
103 additions
and
64 deletions
+103
-64
addFinancialDocumentsSPF.vue
src/components/FinancialModule/addFinancialDocumentsSPF.vue
+103
-64
No files found.
src/components/FinancialModule/addFinancialDocumentsSPF.vue
View file @
57fd1c38
...
...
@@ -493,7 +493,7 @@
</template>
<el-tooltip
content=
"配置手配费"
placement=
"top"
>
<el-switch
v-model=
"isHandFee"
>
v-model=
"isHandFee"
@
change=
"getHandFee"
>
</el-switch>
</el-tooltip>
</div>
...
...
@@ -502,26 +502,27 @@
<p>
手配费:
<span>
<el-select
v-model=
'HandFee.Id'
class=
"w135 _border_b_1"
@
change=
"chooseHandFee"
>
<el-select
v-model=
'HandFee.
Branch
Id'
class=
"w135 _border_b_1"
@
change=
"chooseHandFee"
>
<el-option
v-for=
'item in HandFeeList'
:label=
'item.Name'
:value=
'item.Id'
:key=
'item.Id'
>
:label=
'item.
Branch
Name'
:value=
'item.
Branch
Id'
:key=
'item.
Branch
Id'
>
</el-option>
</el-select>
</span>
<template
v-if=
"HandFeeDetail"
>
适用公司:
{{
HandFeeDetail
.
BranchName
}}
手配费币种:
{{
HandFeeDetail
.
CurrencyName
}}
<span
style=
"margin-left: 20px;"
>
手配费币种:
{{
HandFeeDetail
.
CurrencyName
}}
</span>
</
template
>
<span
style=
"margin-left: 20px;color: red;"
>
注:以下手配费请准确填写、系统将自动生成手配费支出单据
</span>
</p>
</div>
<table
v-if=
"HandFeeDetail"
class=
"Receipt_table"
border=
"1"
bordercolor=
"#106BAF"
<table
v-if=
"HandFeeDetail&&
HandFeeDetail.DetailList.findIndex((x)=>x.show == true)!=-1"
class=
"Receipt_table"
border=
"1"
bordercolor=
"#106BAF"
style=
"border-collapse:collapse;margin-top: 10px;"
>
<tr>
<!-- <th rowspan="2" width="150">公司</th>
<th rowspan="2" width="150">手配费币种</th> -->
<th
colspan=
"3"
>
明细
</th>
<th
rowspan=
"2"
>
合计
</th>
<th
rowspan=
"2"
>
{{$t('hotel.hotel_remark')}}
</th>
</tr>
<tr>
...
...
@@ -529,28 +530,34 @@
<th
width=
"100"
>
数量
</th>
<th
width=
"100"
>
金额
</th>
</tr>
<tr
class=
"addList1"
v-for=
"(x,index) in HandFeeDetail.HandFeeList"
>
<!-- <td :rowspan="HandFeeDetail.HandFeeList.length" v-if="index==0">
{{HandFeeDetail.BranchName}}
</td>
<td :rowspan="HandFeeDetail.HandFeeList.length" v-if="index==0">
{{HandFeeDetail.CurrencyName}}
</td> -->
<
template
v-for=
"(x,index) in HandFeeDetail.DetailList"
>
<tr
v-if=
"x.show"
class=
"addList2"
>
<td>
<el-select
v-model=
'x.Type'
placeholder=
"选择类型"
class=
"w80 _border_b_1"
>
<!--
<el-select
v-model=
'x.Type'
placeholder=
"选择类型"
class=
"w80 _border_b_1"
>
<el-option
v-for=
'item in TypeListArr'
:label=
'item.Name'
:value=
'item.Id'
:key=
'item.Id'
>
</el-option>
</el-select>
</el-select>
-->
<span
v-if=
"x.Type==1"
>
房
</span>
<span
v-if=
"x.Type==2"
>
餐
</span>
<span
v-if=
"x.Type==3"
>
车
</span>
<span
v-if=
"x.Type==4"
>
门票
</span>
</td>
<td>
<el-input
v-model=
"x.Num"
type=
"Number"
class=
"w80 _border_b_1"
></el-input>
</td>
<td><el-input
v-model=
"x.Num"
type=
"Number"
@
keyup
.
native=
"checkInteger(x,'Num')"
class=
"w80 _border_b_1"
></el-input></td>
<td><el-input
v-model=
"x.Unit_Price"
type=
"Number"
@
keyup
.
native=
"checkInteger(x,'Number')"
class=
"w80 _border_b_1"
></el-input></td>
@
keyup
.
native=
"checkInteger(x,'Number')"
class=
"w80 _border_b_1"
></el-input></td>
<td>
{{
x
.
Num
*
x
.
Unit_Price
}}
</td>
<td><el-input
v-model=
"x.Remark"
type=
"textarea"
></el-input></td>
</tr>
</
template
>
</table>
</template>
...
...
@@ -774,10 +781,10 @@ export default {
TCID
:
''
,
HandFeeList
:
[],
//手配费配置列表
HandFee
:{
Id
:
null
,
Branch
Id
:
null
,
Type
:
null
},
HandFeeDetail
:
null
,
HandFeeDetail
:
null
,
//已选手配费信息
TypeListArr
:
[
{
Name
:
'房'
,
Id
:
1
,
disabled
:
false
},
{
Name
:
'餐'
,
Id
:
2
,
disabled
:
false
},
...
...
@@ -788,41 +795,42 @@ export default {
}
},
methods
:{
getHandFee
(){
if
(
this
.
isHandFee
){
this
.
chooseHandFee
()
}
else
{
this
.
msg
.
HandFeeList
=
null
this
.
msg
.
KingdeeBranchId
=
null
}
},
chooseHandFee
(){
if
(
this
.
msg
.
detailList
.
length
==
0
)
return
let
HandFeeObj
=
this
.
HandFeeList
.
map
(
item
=>
{
if
(
item
.
Id
==
this
.
HandFee
.
Id
)
return
item
})
if
(
this
.
msg
.
detailList
.
length
>
0
){
let
HandFeeObj
=
this
.
HandFeeList
.
map
(
item
=>
{
if
(
item
.
BranchId
==
this
.
HandFee
.
BranchId
)
return
item
})
this
.
HandFeeDetail
=
HandFeeObj
[
0
]
let
numToFANG
=
0
let
numToCAN
=
0
let
numToCE
=
0
let
numToMEN
=
0
this
.
msg
.
detailList
.
forEach
((
x
,
index
)
=>
{
let
obj
=
JSON
.
parse
(
JSON
.
stringify
(
x
))
if
(
x
.
CostTypeName
.
indexOf
(
'房'
)
!=-
1
||
x
.
CostTypeName
.
indexOf
(
'餐'
)
!=-
1
||
x
.
CostTypeName
.
indexOf
(
'车'
)
!=-
1
||
x
.
CostTypeName
.
indexOf
(
'门票'
)
!=-
1
){
let
Obj
=
{
Type
:
null
,
Unit_Price
:
x
.
UnitPrice
,
Num
:
x
.
Number
,
Remark
:
null
}
if
(
x
.
CostTypeName
.
indexOf
(
'房'
)
!=-
1
){
Obj
.
Type
=
1
}
if
(
x
.
CostTypeName
.
indexOf
(
'餐'
)
!=-
1
){
Obj
.
Type
=
2
}
if
(
x
.
CostTypeName
.
indexOf
(
'车'
)
!=-
1
){
Obj
.
Type
=
3
}
if
(
x
.
CostTypeName
.
indexOf
(
'门票'
)
!=-
1
){
Obj
.
Type
=
4
}
let
isPush
=
true
HandFeeObj
[
0
].
HandFeeList
.
forEach
((
y
,
indexs
)
=>
{
if
(
index
==
indexs
){
isPush
=
false
y
.
Type
=
Obj
.
Type
y
.
Unit_Price
=
x
.
UnitPrice
y
.
Num
=
x
.
Number
}
this
.
HandFeeDetail
.
DetailList
.
forEach
((
y
,
indexs
)
=>
{
if
(
x
.
CostTypeName
.
indexOf
(
'房'
)
!=-
1
&&
y
.
Type
==
1
){
y
.
show
=
true
,
numToFANG
+=
Number
(
obj
.
Number
),
y
.
Num
=
numToFANG
}
if
(
x
.
CostTypeName
.
indexOf
(
'餐'
)
!=-
1
&&
y
.
Type
==
2
){
y
.
show
=
true
,
numToCAN
+=
Number
(
obj
.
Number
),
y
.
Num
=
numToCAN
}
if
(
x
.
CostTypeName
.
indexOf
(
'车'
)
!=-
1
&&
y
.
Type
==
3
){
y
.
show
=
true
,
numToCE
+=
Number
(
obj
.
Number
),
y
.
Num
=
numToCE
}
if
(
x
.
CostTypeName
.
indexOf
(
'门票'
)
!=-
1
&&
y
.
Type
==
4
){
y
.
show
=
true
,
numToMEN
+=
Number
(
obj
.
Number
),
y
.
Num
=
numToMEN
}
})
if
(
isPush
&&
HandFeeObj
[
0
].
HandFeeList
.
length
<
5
)
HandFeeObj
[
0
].
HandFeeList
.
push
(
JSON
.
parse
(
JSON
.
stringify
(
Obj
)))
}
})
this
.
HandFeeDetail
=
HandFeeObj
[
0
]
// this.$forceUpdate()
// console.log(this.HandFeeDetail)
}
else
{
this
.
HandFeeDetail
.
DetailList
.
forEach
((
y
,
indexs
)
=>
{
y
.
show
=
false
})
}
},
//获取手配费所有配置
GetHandFeeList
()
{
...
...
@@ -833,12 +841,17 @@ export default {
if
(
res
.
data
.
resultCode
==
1
)
{
let
arrList
=
function
(
arr
){
arr
.
forEach
(
item
=>
{
item
.
HandFeeList
=
[]
item
.
Num
=
null
item
.
Remark
=
null
item
.
show
=
false
})
}
arrList
(
res
.
data
.
data
)
res
.
data
.
data
.
forEach
(
x
=>
{
arrList
(
x
.
DetailList
)
})
this
.
HandFeeList
=
res
.
data
.
data
;
this
.
HandFee
.
Id
=
this
.
HandFeeList
[
0
].
Id
this
.
HandFee
.
BranchId
=
this
.
HandFeeList
[
0
].
BranchId
this
.
HandFeeDetail
.
CurrencyName
=
this
.
HandFeeList
[
0
].
CurrencyName
}
},
err
=>
{}
...
...
@@ -848,6 +861,7 @@ export default {
obj
.
show
=
false
;
this
.
msg
.
Description
=
this
.
Description
;
this
.
msg
.
detailList
.
splice
(
i
,
1
);
this
.
chooseHandFee
()
this
.
$forceUpdate
();
},
IsPublicChange
(
val
){
...
...
@@ -1028,7 +1042,31 @@ export default {
e
.
target
.
value
=
(
e
.
target
.
value
.
match
(
/^
\d
*
(\.?\d{0,1})
/g
)[
0
])
||
null
},
AddFinancial
(
z
){
//保存
// 手配费参数
if
(
this
.
isHandFee
){
this
.
msg
.
KingdeeBranchId
=
this
.
HandFeeDetail
.
BranchId
this
.
msg
.
HandFeeList
=
[]
for
(
let
i
=
0
;
i
<
4
;
i
++
){
if
(
this
.
HandFeeDetail
.
DetailList
[
i
].
show
&&
(
!
this
.
HandFeeDetail
.
DetailList
[
i
].
Num
||!
this
.
HandFeeDetail
.
DetailList
[
i
].
Unit_Price
)){
this
.
Error
(
'手配费数量及金额需大于0'
)
return
}
}
this
.
HandFeeDetail
.
DetailList
.
forEach
(
x
=>
{
let
obj
=
{
Type
:
x
.
Type
,
Num
:
x
.
Num
,
Unit_Price
:
x
.
Unit_Price
,
Remark
:
x
.
Remark
}
if
(
x
.
show
){
this
.
msg
.
HandFeeList
.
push
(
JSON
.
parse
(
JSON
.
stringify
(
obj
)))
}
})
}
// console.log(this.msg,'----HandFeeList',this.msg.KingdeeBranchId)
// return
if
(
z
){
this
.
msg
.
Status
=
0
;
}
else
{
...
...
@@ -1036,6 +1074,7 @@ export default {
if
(
this
.
msg
.
detailList
.
length
<
1
)
return
this
.
$message
.
error
(
this
.
$t
(
'rule.qtxzsyxfyshuoming'
));
if
(
this
.
msg
.
PayDate
===
''
)
return
this
.
$message
.
error
(
this
.
$t
(
'rule.qxzyjfkshijian'
));
}
if
(
this
.
msg
.
IsPublic
!=
8
&&
this
.
msg
.
IsPublic
!=
9
){
if
(
this
.
msg
.
ClientType
===
''
)
return
this
.
$message
.
error
(
this
.
$t
(
'rule.qxzfkduixiang'
));
}
else
{
...
...
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