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
30fb65ac
Commit
30fb65ac
authored
Aug 22, 2023
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
701bc1ce
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
724 additions
and
770 deletions
+724
-770
HandFeeQuery.vue
src/components/FinancialModule/HandFee/HandFeeQuery.vue
+37
-28
HandFeeStatistics.vue
src/components/FinancialModule/HandFee/HandFeeStatistics.vue
+687
-742
No files found.
src/components/FinancialModule/HandFee/HandFeeQuery.vue
View file @
30fb65ac
...
@@ -13,7 +13,6 @@
...
@@ -13,7 +13,6 @@
<el-col
:span=
"4"
>
<el-col
:span=
"4"
>
<el-form-item
label=
"手配费公司:"
>
<el-form-item
label=
"手配费公司:"
>
<el-select
filterable
v-model=
'msg.KingdeeBranchId'
:disabled=
"!isRB_Depart_Id"
class=
""
>
<el-select
filterable
v-model=
'msg.KingdeeBranchId'
:disabled=
"!isRB_Depart_Id"
class=
""
>
<!--
<el-option
:value=
"-1"
label=
"不限"
></el-option>
-->
<el-option
v-for=
'item in GetHandFeeList'
:label=
'item.BranchName'
:value=
'item.BranchId'
<el-option
v-for=
'item in GetHandFeeList'
:label=
'item.BranchName'
:value=
'item.BranchId'
:key=
'item.BranchId'
>
:key=
'item.BranchId'
>
</el-option>
</el-option>
...
@@ -22,7 +21,8 @@
...
@@ -22,7 +21,8 @@
</el-col>
</el-col>
<el-col
:span=
"6"
>
<el-col
:span=
"6"
>
<el-form-item
label=
"发团日期:"
>
<el-form-item
label=
"发团日期:"
>
<el-date-picker
class=
"h34"
v-model=
"missionDate"
type=
"daterange"
value-format=
"yyyy-MM-dd"
>
<el-date-picker
class=
"h34"
v-model=
"missionDate"
type=
"daterange"
value-format=
"yyyy-MM-dd"
@
input=
"getdatalist"
>
</el-date-picker>
</el-date-picker>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
...
@@ -36,10 +36,10 @@
...
@@ -36,10 +36,10 @@
</div>
</div>
<div
class=
"_fnDm_content"
v-loading=
'loading'
>
<div
class=
"_fnDm_content"
v-loading=
'loading'
>
<el-table
ref=
"multipleTable"
:data=
"DataList"
tooltip-effect=
"dark"
style=
"width: 100%"
row-key=
"FinanceId"
>
<el-table
ref=
"multipleTable"
:data=
"DataList"
tooltip-effect=
"dark"
style=
"width: 100%"
row-key=
"FinanceId"
>
<el-table-column
prop=
""
label=
"公司"
width=
"1
2
0"
>
<el-table-column
prop=
""
label=
"公司"
width=
"1
5
0"
>
<template
slot-scope=
"scope"
>
{{
scope
.
row
.
BranchName
}}
</
template
>
<template
slot-scope=
"scope"
>
{{
scope
.
row
.
BranchName
}}
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
""
label=
"团队信息"
width=
"
18
0"
>
<el-table-column
prop=
""
label=
"团队信息"
width=
"
20
0"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<template
v-if=
"scope.row.OtherType==0"
>
<template
v-if=
"scope.row.OtherType==0"
>
{{
scope
.
row
.
TCNUM
}}
(
{{
scope
.
row
.
TCID
}}
)
{{
scope
.
row
.
TCNUM
}}
(
{{
scope
.
row
.
TCID
}}
)
...
@@ -49,49 +49,61 @@
...
@@ -49,49 +49,61 @@
</
template
>
</
template
>
</template>
</template>
</el-table-column>
</el-table-column>
<el-table-column
prop=
""
label=
"类型"
width=
"1
2
0"
>
<el-table-column
prop=
""
label=
"类型"
width=
"1
8
0"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<template
v-for=
"(subItem,subIndex) in scope.row.CostTypeList"
>
<template
v-for=
"(subItem,subIndex) in scope.row.CostTypeList"
>
<span
:key=
"subIndex"
>
{{
subItem
.
CostTypeName
}}
<span
:key=
"subIndex"
>
{{
subItem
.
CostTypeName
}}
</span>
</span>
<br
:key=
"subIndex+10000"
/>
</
template
>
</
template
>
</template>
</template>
</el-table-column>
</el-table-column>
<el-table-column
prop=
""
label=
"数量"
width=
"1
2
0"
>
<el-table-column
prop=
""
label=
"数量"
width=
"1
5
0"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<template
v-for=
"(subItem,subIndex) in scope.row.CostTypeList"
>
<template
v-for=
"(subItem,subIndex) in scope.row.CostTypeList"
>
<span
:key=
"subIndex"
>
<span
:key=
"subIndex"
>
{{
subItem
.
Number
}}
{{
subItem
.
Number
}}
</span>
</span>
<br
:key=
"subIndex+20000"
/>
</
template
>
</
template
>
</template>
</template>
</el-table-column>
</el-table-column>
<el-table-column
prop=
""
label=
"酒店信息"
width=
"120"
>
<el-table-column
prop=
""
label=
"金额"
width=
"150"
>
<
template
slot-scope=
"scope"
>
<template
v-for=
"(subItem,subIndex) in scope.row.CostTypeList"
>
<span
:key=
"subIndex"
>
{{
subItem
.
Money
}}
</span>
<br
:key=
"subIndex+30000"
/>
</
template
>
</template>
</el-table-column>
<el-table-column
prop=
""
label=
"酒店信息"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<template
v-if=
"scope.row.OtherType==0 && scope.row.HotelList&&scope.row.HotelList.length>0"
>
<template
v-if=
"scope.row.OtherType==0 && scope.row.HotelList&&scope.row.HotelList.length>0"
>
<el-popover
width=
"980"
trigger=
"click"
placement=
"right"
>
<template
v-for=
"(subItem,subIndex) in scope.row.HotelList"
>
<commonHotelInfo
:HotelObj=
"scope.row.HotelList"
:showHotelObj=
"showHotelObj"
:TCID=
"scope.row.TCID"
<span
:key=
"subIndex+40000"
>
{{
subItem
.
UseDay
}}
:TCNUM=
"scope.row.TCNUM"
></commonHotelInfo>
<template
v-if=
"subItem.SubList&&subItem.SubList.length>0"
>
<div
slot=
"reference"
style=
"cursor:pointer;"
>
<template
v-for=
"(childItem) in subItem.SubList"
>
酒店使用情况
【
{{
childItem
.
NewHotelName
}}
】
</div>
</
template
>
</el-popover>
</template>
</span>
<br
:key=
"subIndex+50000"
/>
</template>
</template>
</template>
</template>
</template>
</el-table-column>
</el-table-column>
<el-table-column
prop=
""
label=
"总金额"
width=
"1
2
0"
>
<el-table-column
prop=
""
label=
"总金额"
width=
"1
5
0"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
TotalMoney
}}
{{
scope
.
row
.
TotalMoney
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
</div>
</div>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
commonHotelInfo
from
"../../commonPage/commonHotelInfo.vue"
;
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
...
@@ -121,10 +133,12 @@
...
@@ -121,10 +133,12 @@
created
()
{
created
()
{
let
sDate
=
this
.
FormartDate
(
new
Date
(
this
.
getBeforeDate
(
1
)));
let
sDate
=
this
.
FormartDate
(
new
Date
(
this
.
getBeforeDate
(
1
)));
let
eDate
=
this
.
FormartDate
(
new
Date
(
this
.
getBeforeDate
(
0
)));
let
eDate
=
this
.
FormartDate
(
new
Date
(
this
.
getBeforeDate
(
0
)));
sDate
=
'2023-07-01'
;
var
now
=
new
Date
();
var
firstDay
=
new
Date
(
now
.
getFullYear
(),
now
.
getMonth
(),
1
)
sDate
=
this
.
FormartDate
(
firstDay
);
//sDate = '2023-06-01'
this
.
missionDate
=
[
sDate
,
eDate
]
this
.
missionDate
=
[
sDate
,
eDate
]
this
.
msg
.
QStartDate
=
sDate
;
this
.
msg
.
QStartDate
=
sDate
;
this
.
msg
.
QEndDate
=
eDate
;
this
.
msg
.
QEndDate
=
eDate
;
let
userInfo
=
this
.
getLocalStorage
();
let
userInfo
=
this
.
getLocalStorage
();
let
ActionMenuCode
=
userInfo
.
ActionMenuCode
;
let
ActionMenuCode
=
userInfo
.
ActionMenuCode
;
...
@@ -134,13 +148,12 @@
...
@@ -134,13 +148,12 @@
this
.
getHandFeeBranch
();
this
.
getHandFeeBranch
();
},
},
components
:
{
components
:
{
commonHotelInfo
,
},
},
mounted
()
{
mounted
()
{
},
},
methods
:
{
methods
:
{
//获取手配费公司
//获取手配费公司
getHandFeeBranch
()
{
getHandFeeBranch
()
{
this
.
apipost
(
this
.
apipost
(
...
@@ -165,19 +178,16 @@
...
@@ -165,19 +178,16 @@
);
);
},
},
getdatalist
()
{
getdatalist
()
{
console
.
log
(
"this.missionDate"
,
this
.
missionDate
)
if
(
this
.
missionDate
&&
this
.
missionDate
.
length
==
2
)
{
if
(
this
.
missionDate
)
{
this
.
msg
.
QStartDate
=
this
.
missionDate
[
0
];
this
.
msg
.
QStartDate
=
this
.
missionDate
[
0
];
this
.
msg
.
QEndDate
=
this
.
missionDate
[
1
];
this
.
msg
.
QEndDate
=
this
.
missionDate
[
1
];
}
}
this
.
loading
=
true
;
this
.
loading
=
true
;
this
.
apipost
(
this
.
apipost
(
"Financial_post_GetJanpanHandFeeMonthBoard"
,
this
.
msg
,
"Financial_post_GetJanpanHandFeeMonthBoard"
,
this
.
msg
,
res
=>
{
res
=>
{
this
.
loading
=
false
;
this
.
loading
=
false
;
console
.
log
(
"res"
,
res
.
data
);
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
DataList
=
res
.
data
.
data
;
this
.
DataList
=
res
.
data
.
data
;
}
}
...
@@ -187,7 +197,6 @@
...
@@ -187,7 +197,6 @@
}
}
);
);
}
}
}
}
}
}
...
...
src/components/FinancialModule/HandFee/HandFeeStatistics.vue
View file @
30fb65ac
<
style
scoped
>
<
style
scoped
>
/
deep
/
.el-table
th
.el-table__cell
{
/
deep
/
.el-table
th
.el-table__cell
{
background-color
:
#E6E6E6
;
background-color
:
#E6E6E6
;
}
}
</
style
>
</
style
>
<
template
>
<
template
>
<div
class=
"page_RecPayQuery"
>
<div
class=
"page_RecPayQuery"
>
<div
class=
"query-box"
>
<div
class=
"query-box"
>
<el-form
class=
"_info_box clearfix"
label-width=
"110px"
>
<el-form
class=
"_info_box clearfix"
label-width=
"110px"
>
<el-row
style=
"padding:15px 20px 0 0;"
>
<el-row
style=
"padding:15px 20px 0 0;"
>
<el-col
:span=
"4"
>
<el-col
:span=
"4"
>
<el-form-item
label=
"单号:"
>
<el-form-item
label=
"单号:"
>
<el-input
clearable
placeholder=
""
class=
""
v-model=
"msg.FrID"
@
keyup
.
native=
"checkInteger(msg,'FrID')"
></el-input>
<el-input
clearable
placeholder=
""
class=
""
v-model=
"msg.FrID"
@
keyup
.
native=
"checkInteger(msg,'FrID')"
>
</el-form-item>
</el-input>
</el-col>
</el-form-item>
<el-col
:span=
"4"
>
</el-col>
<el-form-item
label=
"手配费公司:"
>
<el-col
:span=
"4"
>
<el-select
filterable
v-model=
'msg.KingdeeBranchId'
<el-form-item
label=
"手配费公司:"
>
:disabled=
"!isRB_Depart_Id"
class=
""
>
<el-select
filterable
v-model=
'msg.KingdeeBranchId'
:disabled=
"!isRB_Depart_Id"
class=
""
>
<!--
<el-option
:value=
"-1"
label=
"不限"
></el-option>
-->
<el-option
v-for=
'item in GetHandFeeList'
:label=
'item.BranchName'
:value=
'item.BranchId'
<el-option
v-for=
'item in GetHandFeeList'
:key=
'item.BranchId'
>
:label=
'item.BranchName'
</el-option>
:value=
'item.BranchId'
</el-select>
:key=
'item.BranchId'
>
</el-form-item>
</el-option>
</el-col>
</el-select>
<el-col
:span=
"4"
>
</el-form-item>
<el-form-item
label=
"公司:"
>
</el-col>
<el-select
filterable
v-model=
'msg.RB_Branch_Id'
>
<el-col
:span=
"4"
>
<el-option
:value=
"-1"
label=
"不限"
></el-option>
<el-form-item
label=
"公司:"
>
<el-option
v-for=
'item in CompanyList'
:label=
'item.BName'
:value=
'item.Id'
:key=
'item.Id'
>
<el-select
filterable
v-model=
'msg.RB_Branch_Id'
>
</el-option>
<el-option
:value=
"-1"
label=
"不限"
></el-option>
</el-select>
<el-option
v-for=
'item in CompanyList'
</el-form-item>
:label=
'item.BName'
</el-col>
:value=
'item.Id'
:key=
'item.Id'
>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"4"
>
<el-col
:span=
"4"
>
<el-form-item
label=
"费用类型:"
>
<el-form-item
label=
"费用类型:"
>
<el-select
filterable
v-model=
'msg.CostTypeID'
>
<el-select
filterable
v-model=
'msg.CostTypeID'
>
<el-option
:value=
"0"
label=
"不限"
></el-option>
<el-option
:value=
"0"
label=
"不限"
></el-option>
<el-option
v-for=
"item in GetCostTypeList"
:key=
"item.ID"
:value=
"item.ID"
:label=
"item.Name"
></el-option>
<el-option
v-for=
"item in GetCostTypeList"
:key=
"item.ID"
:value=
"item.ID"
:label=
"item.Name"
>
</el-select>
</el-option>
</el-form-item>
</el-select>
</el-col>
</el-form-item>
<el-col
:span=
"4"
>
</el-col>
<el-form-item
label=
"付款对象:"
>
<el-col
:span=
"4"
>
<el-select
filterable
v-model=
'msg.ClientID'
>
<el-form-item
label=
"付款对象:"
>
<el-option
value=
""
label=
"不限"
></el-option>
<el-select
filterable
v-model=
'msg.ClientID'
>
<el-option
v-for=
'item in ClientAccountList'
<el-option
value=
""
label=
"不限"
></el-option>
:label=
'item.AccountAlias'
<el-option
v-for=
'item in ClientAccountList'
:label=
'item.AccountAlias'
:value=
'item.ID'
:key=
'item.ID'
>
:value=
'item.ID'
</el-option>
:key=
'item.ID'
>
</el-select>
</el-option>
</el-form-item>
</el-select>
</el-col>
</el-form-item>
<el-col
:span=
"4"
>
</el-col>
<el-form-item
label=
"审核状态:"
>
<el-col
:span=
"4"
>
<el-select
filterable
v-model=
'msg.Status'
class=
""
>
<el-form-item
label=
"审核状态:"
>
<el-option
key=
"-1"
value=
"-1"
label=
"不限"
></el-option>
<el-select
filterable
v-model=
'msg.Status'
class=
""
>
<el-option
key=
"0"
value=
"0"
label=
"暂存"
></el-option>
<el-option
key=
"-1"
value=
"-1"
label=
"不限"
></el-option>
<el-option
key=
"1"
value=
"1"
label=
"审核中"
></el-option>
<el-option
key=
"0"
value=
"0"
label=
"暂存"
></el-option>
<el-option
key=
"2"
value=
"2"
label=
"通过"
></el-option>
<el-option
key=
"1"
value=
"1"
label=
"审核中"
></el-option>
<el-option
key=
"3"
value=
"3"
label=
"驳回"
></el-option>
<el-option
key=
"2"
value=
"2"
label=
"通过"
></el-option>
<el-option
key=
"4"
value=
"4"
label=
"作废"
></el-option>
<el-option
key=
"3"
value=
"3"
label=
"驳回"
></el-option>
<el-option
key=
"5"
value=
"5"
label=
"出纳暂存"
></el-option>
<el-option
key=
"4"
value=
"4"
label=
"作废"
></el-option>
</el-select>
<el-option
key=
"5"
value=
"5"
label=
"出纳暂存"
></el-option>
</el-form-item>
</el-select>
</el-col>
</el-form-item>
<template
v-if=
"heightQueryBox"
></
template
>
</el-col>
<el-col
:span=
"6"
>
</el-col>
<el-form-item
label=
"制单日期:"
>
<el-date-picker
class=
"h34"
@
change=
"timeAdd(1)"
v-model=
"productionDate"
type=
"daterange"
value-format=
"yyyy-MM-dd"
>
</el-date-picker>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"交易日期:"
>
<el-date-picker
class=
"h34"
v-model=
"transactionDate"
@
change=
"timeAdd(3)"
type=
"daterange"
value-format=
"yyyy-MM-dd"
>
</el-date-picker>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"发团日期:"
>
<el-date-picker
class=
"h34"
v-model=
"missionDate"
@
change=
"timeAdd(4)"
type=
"daterange"
value-format=
"yyyy-MM-dd"
>
</el-date-picker>
</el-form-item>
</el-col>
<template
v-if=
"heightQueryBox"
></
template
>
</el-row>
<el-col
:span=
"6"
>
</el-form>
<el-form-item
label=
"制单日期:"
>
<ul
class=
"clearfix"
>
<el-date-picker
class=
"h34"
<li
class=
"hight_query"
>
@
change=
"timeAdd(1)"
<button
class=
"hollowFixedBtn"
@
click=
"resetPageIndex()"
>
{{$t('pub.searchBtn')}}
</button>
v-model=
"productionDate"
<button
class=
"normalBtn"
@
click=
"DocumentMaking"
>
制单
</button>
type=
"daterange"
<button
class=
"normalBtn"
@
click=
"method5()"
>
导出
</button>
value-format=
"yyyy-MM-dd"
>
<button
class=
"normalBtn"
@
click=
"GoToDetails()"
>
明细查询
</button>
</el-date-picker>
</li>
</el-form-item>
</ul>
</el-col>
</div>
<el-col
:span=
"6"
>
<!-- 统计版块 -->
<el-form-item
label=
"交易日期:"
>
<div
style=
"color: black;font-size: 17px;padding: 0 0 20px 10px;border-bottom: 1px solid #EBEEF5;"
>
<el-date-picker
class=
"h34"
<span>
本位币总金额:
v-model=
"transactionDate"
{{total.toFixed(2)}}
@
change=
"timeAdd(3)"
</span>
type=
"daterange"
<span
style=
"margin-left: 15px;"
>
待制单总金额:
value-format=
"yyyy-MM-dd"
>
{{totalBW2.toFixed(2)}}
</el-date-picker>
</span>
</el-form-item>
<span
style=
"margin-left: 15px;"
>
已制单总金额:
</el-col>
{{totalBW.toFixed(2)}}
<el-col
:span=
"6"
>
</span>
<el-form-item
label=
"发团日期:"
>
<span
style=
"margin-left: 15px;"
>
原币总金额:
<el-date-picker
class=
"h34"
{{totalYB.toFixed(2)}}
v-model=
"missionDate"
</span>
@
change=
"timeAdd(4)"
</div>
type=
"daterange"
<div
style=
"display: flex;flex-wrap: nowrap; padding: 10px;"
>
value-format=
"yyyy-MM-dd"
>
<div
style=
"display: flex;flex-wrap: wrap;"
>
</el-date-picker>
<span>
已选数据:
</span>
</el-form-item>
<
template
v-if=
"multipleSelection.length>0"
>
</el-col>
<el-tag
size=
"mini"
closable
style=
"margin-right: 5px;margin-bottom: 5px;"
v-for=
"(x,index) in multipleSelection"
:key=
"x.FinanceId"
@
close=
"handleClose([multipleSelection[index]])"
>
{{
x
.
FinanceId
}}
/
{{
x
.
CurrencyName
+
':'
+
x
.
OriginalMoney
}}
</el-tag>
</
template
>
<
template
v-else
>
无
</
template
>
</div>
<div
style=
"margin-left: 20px;flex-shrink: 0;"
>
总金额:{{totalZD}}
</div>
</div>
<div
class=
"_fnDm_content"
v-loading=
'loading'
>
<el-table
ref=
"multipleTable"
:data=
"DataList"
tooltip-effect=
"dark"
style=
"width: 100%"
row-key=
"FinanceId"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
:reserve-selection=
"true"
:selectable=
"selectable"
width=
"55"
>
</el-table-column>
<el-table-column
prop=
""
label=
"公司"
width=
"120"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
BranchName
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"FinanceId"
label=
"单号"
width=
"80"
>
<
template
slot-scope=
"scope"
>
<span
style=
"cursor: pointer;color: #00C6FF;"
@
click=
"openDetails(scope.row)"
>
{{
scope
.
row
.
FinanceId
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"CostTypeName"
label=
"费用类型"
>
</el-table-column>
<el-table-column
prop=
""
label=
"关联信息"
width=
"200"
>
<
template
slot-scope=
"scope"
>
<template
v-if=
"scope.row.TCNUM"
>
{{
scope
.
row
.
TCNUM
}}
</
template
>
<
template
v-if=
"scope.row.TCID"
>
(
{{
scope
.
row
.
TCID
}}
)
</
template
>
<
template
v-if=
"!scope.row.TCNUM||!scope.row.TCID"
>
-
</
template
>
</template>
</el-table-column>
<el-table-column
prop=
""
label=
"付款对象"
show-overflow-tooltip
>
<
template
slot-scope=
"scope"
>
<p>
{{
scope
.
row
.
AccountNumber
}}
</p>
</
template
>
</el-table-column>
<el-table-column
prop=
"TradeDate"
label=
"交易日期"
show-overflow-tooltip
width=
"100"
>
<
template
slot-scope=
"scope"
>
<p>
{{
scope
.
row
.
TradeDate
?
scope
.
row
.
TradeDate
:
'-'
}}
</p>
</
template
>
</el-table-column>
<el-table-column
prop=
"CurrencyName"
label=
"币种"
width=
"80"
>
</el-table-column>
<el-table-column
prop=
"OriginalMoney"
label=
"原币金额"
width=
"100"
>
</el-table-column>
<el-table-column
prop=
"Rate"
label=
"汇率"
width=
"80"
>
</el-table-column>
<el-table-column
prop=
"Money"
label=
"本位币金额"
width=
"100"
>
</el-table-column>
<el-table-column
prop=
""
label=
"制单人员"
width=
"100"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
CreateByName
}}
<p>
{{
scope
.
row
.
CreateDate
}}
</p>
</
template
>
</el-table-column>
<el-table-column
prop=
"Remark"
label=
"备注"
show-overflow-tooltip
></el-table-column>
<el-table-column
prop=
""
label=
"状态"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.Status==1"
style=
"color: red;"
>
审核中
</span>
<span
v-if=
"scope.row.Status==2"
style=
"color: #2BB87C;"
>
通过
</span>
<span
v-if=
"scope.row.Status==3"
style=
"color: wheat"
>
驳回
</span>
<span
v-if=
"scope.row.Status==4"
style=
"color: orange"
>
作废
</span>
<span
v-if=
"scope.row.Status==5"
style=
"color: #00C6FF"
>
出纳暂存
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"HandFeeFrId"
label=
"关联代付单"
width=
"120"
>
<
template
slot-scope=
"scope"
>
<template
v-if=
"scope.row.HandFeeFrId"
>
{{
scope
.
row
.
HandFeeFrId
}}
</
template
>
<p
v-else
style=
"cursor: pointer;color: #00C6FF;"
@
click=
"isshezhiBox=true,shezhiMsg.FinanceId=scope.row.FinanceId"
>
设置关联
</p>
</template>
</el-table-column>
<el-table-column
prop=
""
label=
"关联手配费收入单"
show-overflow-tooltip
width=
"150"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
HandFeeIncomeFrId
?
scope
.
row
.
HandFeeIncomeFrId
:
'-'
}}
</
template
>
</el-table-column>
</el-table>
</div>
</el-row>
<el-dialog
custom-class=
'w400'
title=
"手配费制单"
:visible
.
sync=
"iszhidanBox"
center
>
</el-form>
<
template
>
<ul
class=
"clearfix"
>
<div
style=
"color: black;font-size: 17px;padding: 0 0 10px 10px;border-bottom: 1px solid #EBEEF5;"
>
<li
class=
"hight_query"
>
<p>
已选中
{{
multipleSelection
.
length
}}
条数据
</p>
<!-- <span>
<p
style=
"margin-top: 15px;"
>
原币总金额:
<em @click.stop="heightQueryBox=!heightQueryBox">高级查询 <i class="iconfont icon-gengduo"></i></em>
{{
totalZD
.
toFixed
(
2
)
}}
</span> -->
</p>
<button
class=
"hollowFixedBtn"
@
click=
"resetPageIndex()"
>
{{$t('pub.searchBtn')}}
</button>
<button
class=
"normalBtn"
@
click=
"DocumentMaking"
>
制单
</button>
<button
class=
"normalBtn"
@
click=
"method5()"
>
导出
</button>
</li>
</ul>
</div>
</div>
<!-- 统计版块 -->
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
style=
"color: black;font-size: 17px;padding: 0 0 20px 10px;border-bottom: 1px solid #EBEEF5;"
>
<button
class=
"hollowFixedBtn"
@
click=
"iszhidanBox=false"
>
{{
$t
(
'pub.cancelBtn'
)
}}
</button>
<span>
本位币总金额:
<button
class=
"normalBtn"
type=
"primary"
@
click=
"getMaking()"
>
{{
$t
(
'pub.sureBtn'
)
}}
</button>
{{total.toFixed(2)}}
</span>
<span
style=
"margin-left: 15px;"
>
待制单总金额:
{{totalBW2.toFixed(2)}}
</span>
<span
style=
"margin-left: 15px;"
>
已制单总金额:
{{totalBW.toFixed(2)}}
</span>
<span
style=
"margin-left: 15px;"
>
原币总金额:
{{totalYB.toFixed(2)}}
</span>
</div>
<div
style=
"display: flex;flex-wrap: nowrap; padding: 10px;"
>
<div
style=
"display: flex;flex-wrap: wrap;"
>
<span>
已选数据:
</span>
<
template
v-if=
"multipleSelection.length>0"
>
<el-tag
size=
"mini"
closable
style=
"margin-right: 5px;margin-bottom: 5px;"
v-for=
"(x,index) in multipleSelection"
:key=
"x.FinanceId"
@
close=
"handleClose([multipleSelection[index]])"
>
{{
x
.
FinanceId
}}
/
{{
x
.
CurrencyName
+
':'
+
x
.
OriginalMoney
}}
</el-tag>
</
template
>
<
template
v-else
>
无
</
template
>
</div>
<div
style=
"margin-left: 20px;flex-shrink: 0;"
>
总金额:{{totalZD}}
</div>
</div>
</div>
<div
class=
"_fnDm_content"
v-loading=
'loading'
>
</
template
>
<el-table
</el-dialog>
ref=
"multipleTable"
<el-dialog
custom-class=
'w400'
title=
"设置手配费关联"
:visible
.
sync=
"isshezhiBox"
center
>
:data=
"DataList"
<
template
>
tooltip-effect=
"dark"
<el-form
label-width=
"120px"
:model=
"shezhiMsg"
:rules=
"rules"
ref=
"shezhiMsg"
>
style=
"width: 100%"
<el-form-item
label=
"关联手配费单号"
prop=
"HandFeeFrId"
>
row-key=
"FinanceId"
<el-input
v-model=
"shezhiMsg.HandFeeFrId"
placeholder=
"请输入关联手配费单号"
></el-input>
@
selection-change=
"handleSelectionChange"
</el-form-item>
>
</el-form>
<el-table-column
<div
slot=
"footer"
class=
"dialog-footer"
>
type=
"selection"
<button
class=
"hollowFixedBtn"
@
click=
"isshezhiBox=false"
>
{{
$t
(
'pub.cancelBtn'
)
}}
</button>
:reserve-selection=
"true"
<button
class=
"normalBtn"
type=
"primary"
@
click=
"setHandFeeFr()"
>
{{
$t
(
'pub.sureBtn'
)
}}
</button>
:selectable=
"selectable"
width=
"55"
>
</el-table-column>
<el-table-column
prop=
""
label=
"公司"
width=
"120"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
BranchName
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"FinanceId"
label=
"单号"
width=
"80"
>
<
template
slot-scope=
"scope"
>
<span
style=
"cursor: pointer;color: #00C6FF;"
@
click=
"openDetails(scope.row)"
>
{{
scope
.
row
.
FinanceId
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"CostTypeName"
label=
"费用类型"
>
</el-table-column>
<el-table-column
prop=
""
label=
"关联信息"
width=
"200"
>
<
template
slot-scope=
"scope"
>
<template
v-if=
"scope.row.TCNUM"
>
{{
scope
.
row
.
TCNUM
}}
</
template
>
<
template
v-if=
"scope.row.TCID"
>
(
{{
scope
.
row
.
TCID
}}
)
</
template
>
<
template
v-if=
"!scope.row.TCNUM||!scope.row.TCID"
>
-
</
template
>
</template>
</el-table-column>
<el-table-column
prop=
""
label=
"付款对象"
show-overflow-tooltip
>
<
template
slot-scope=
"scope"
>
<p>
{{
scope
.
row
.
AccountNumber
}}
</p>
<!--
<p>
{{
scope
.
row
.
TradeDate
}}
</p>
-->
</
template
>
</el-table-column>
<el-table-column
prop=
"TradeDate"
label=
"交易日期"
show-overflow-tooltip
width=
"100"
>
<
template
slot-scope=
"scope"
>
<p>
{{
scope
.
row
.
TradeDate
?
scope
.
row
.
TradeDate
:
'-'
}}
</p>
</
template
>
</el-table-column>
<el-table-column
prop=
"CurrencyName"
label=
"币种"
width=
"80"
>
</el-table-column>
<el-table-column
prop=
"OriginalMoney"
label=
"原币金额"
width=
"100"
>
</el-table-column>
<el-table-column
prop=
"Rate"
label=
"汇率"
width=
"80"
>
</el-table-column>
<el-table-column
prop=
"Money"
label=
"本位币金额"
width=
"100"
>
</el-table-column>
<el-table-column
prop=
""
label=
"制单人员"
width=
"100"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
CreateByName
}}
<p>
{{
scope
.
row
.
CreateDate
}}
</p>
</
template
>
</el-table-column>
<el-table-column
prop=
"Remark"
label=
"备注"
show-overflow-tooltip
></el-table-column>
<el-table-column
prop=
""
label=
"状态"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.Status==1"
style=
"color: red;"
>
审核中
</span>
<span
v-if=
"scope.row.Status==2"
style=
"color: #2BB87C;"
>
通过
</span>
<span
v-if=
"scope.row.Status==3"
style=
"color: wheat"
>
驳回
</span>
<span
v-if=
"scope.row.Status==4"
style=
"color: orange"
>
作废
</span>
<span
v-if=
"scope.row.Status==5"
style=
"color: #00C6FF"
>
出纳暂存
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"HandFeeFrId"
label=
"关联代付单"
width=
"120"
>
<
template
slot-scope=
"scope"
>
<template
v-if=
"scope.row.HandFeeFrId"
>
{{
scope
.
row
.
HandFeeFrId
}}
</
template
>
<p
v-else
style=
"cursor: pointer;color: #00C6FF;"
@
click=
"isshezhiBox=true,shezhiMsg.FinanceId=scope.row.FinanceId"
>
设置关联
</p>
</template>
</el-table-column>
<el-table-column
prop=
""
label=
"关联手配费收入单"
show-overflow-tooltip
width=
"150"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
HandFeeIncomeFrId
?
scope
.
row
.
HandFeeIncomeFrId
:
'-'
}}
</
template
>
</el-table-column>
</el-table>
</div>
</div>
</
template
>
<el-dialog
custom-class=
'w400'
title=
"手配费制单"
:visible
.
sync=
"iszhidanBox"
center
>
</el-dialog>
<
template
>
<!-- 已选制单列表 -->
<div
style=
"color: black;font-size: 17px;padding: 0 0 10px 10px;border-bottom: 1px solid #EBEEF5;"
>
<!--
<p>
已选中
{{
multipleSelection
.
length
}}
条数据
</p>
<p
style=
"margin-top: 15px;"
>
原币总金额:
{{
totalZD
.
toFixed
(
2
)
}}
</p>
</div>
<div
slot=
"footer"
class=
"dialog-footer"
>
<button
class=
"hollowFixedBtn"
@
click=
"iszhidanBox=false"
>
{{
$t
(
'pub.cancelBtn'
)
}}
</button>
<button
class=
"normalBtn"
type=
"primary"
@
click=
"getMaking()"
>
{{
$t
(
'pub.sureBtn'
)
}}
</button>
</div>
</
template
>
</el-dialog>
<el-dialog
custom-class=
'w400'
title=
"设置手配费关联"
:visible
.
sync=
"isshezhiBox"
center
>
<
template
>
<el-form
label-width=
"120px"
:model=
"shezhiMsg"
:rules=
"rules"
ref=
"shezhiMsg"
>
<el-form-item
label=
"关联手配费单号"
prop=
"HandFeeFrId"
>
<el-input
v-model=
"shezhiMsg.HandFeeFrId"
placeholder=
"请输入关联手配费单号"
></el-input>
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<button
class=
"hollowFixedBtn"
@
click=
"isshezhiBox=false"
>
{{
$t
(
'pub.cancelBtn'
)
}}
</button>
<button
class=
"normalBtn"
type=
"primary"
@
click=
"setHandFeeFr()"
>
{{
$t
(
'pub.sureBtn'
)
}}
</button>
</div>
</
template
>
</el-dialog>
<!-- 已选制单列表 -->
<!--
<template v-if="showDialog">
<template v-if="showDialog">
<selectListData
<selectListData
:BillMakingMsg="BillMakingMsg"
:BillMakingMsg="BillMakingMsg"
...
@@ -314,168 +241,175 @@
...
@@ -314,168 +241,175 @@
@success="showDialog=false,getPageList()"
@success="showDialog=false,getPageList()"
@close="showDialog=false"></selectListData>
@close="showDialog=false"></selectListData>
</template> -->
</template> -->
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
myBill
from
"../FinancialSubmodule/BillModule.vue"
;
import
myBill
from
"../FinancialSubmodule/BillModule.vue"
;
import
myrbvBill
from
"../FinancialSubmodule/ReceivablesModule.vue"
;
import
myrbvBill
from
"../FinancialSubmodule/ReceivablesModule.vue"
;
import
myhrBill
from
"../FinancialSubmodule/MergeBillModule.vue"
;
import
myhrBill
from
"../FinancialSubmodule/MergeBillModule.vue"
;
import
Vue
from
'vue'
import
Vue
from
'vue'
import
selectListData
from
"./components/selectListData"
;
import
selectListData
from
"./components/selectListData"
;
export
default
{
export
default
{
data
(){
data
()
{
return
{
return
{
showDialog
:
false
,
showDialog
:
false
,
shezhiMsg
:
{
shezhiMsg
:
{
FinanceId
:
0
,
FinanceId
:
0
,
HandFeeFrId
:
null
HandFeeFrId
:
null
},
},
isshezhiBox
:
false
,
isshezhiBox
:
false
,
GetHandFeeList
:
[],
GetHandFeeList
:
[],
multipleSelection
:
[],
multipleSelection
:
[],
showID
:
false
,
showID
:
false
,
active
:
1
,
active
:
1
,
userId
:
0
,
userId
:
0
,
iszhidanBox
:
false
,
iszhidanBox
:
false
,
searchList
:
[],
searchList
:
[],
ClientAccountList
:
[],
//付款对象
ClientAccountList
:
[],
//付款对象
msg
:
{
msg
:
{
FrID
:
''
,
FrID
:
''
,
CostTypeID
:
0
,
//费用类型ID
CostTypeID
:
0
,
//费用类型ID
RB_Branch_Id
:
-
1
,
// 公司ID
RB_Branch_Id
:
-
1
,
// 公司ID
sDate
:
''
,
//制单起始日期
sDate
:
''
,
//制单起始日期
eDate
:
''
,
eDate
:
''
,
sTradeDate
:
''
,
//交易起始日期
sTradeDate
:
''
,
//交易起始日期
eTradeDate
:
''
,
eTradeDate
:
''
,
QEndDate
:
''
,
//出团起始日期
QEndDate
:
''
,
//出团起始日期
QStartDate
:
''
,
QStartDate
:
''
,
ClientID
:
''
,
//付款对象ID
ClientID
:
''
,
//付款对象ID
Status
:
'-1'
,
//状态
Status
:
'-1'
,
//状态
KingdeeBranchId
:
0
,
//当前登录人的公司
KingdeeBranchId
:
0
,
//当前登录人的公司
HandFeeFrId
:
0
HandFeeFrId
:
0
},
},
isRB_Depart_Id
:
false
,
isRB_Depart_Id
:
false
,
getCompanyMsg
:{
// 公司
getCompanyMsg
:
{
// 公司
RB_Group_Id
:
'0'
,
RB_Group_Id
:
'0'
,
Status
:
'0'
,
Status
:
'0'
,
},
},
getDepartmentMsg
:{
// 部门
getDepartmentMsg
:
{
// 部门
RB_Group_Id
:
''
,
RB_Group_Id
:
''
,
RB_Branch_Id
:
''
,
RB_Branch_Id
:
''
,
Status
:
0
,
Status
:
0
,
ParentId
:
-
1
,
ParentId
:
-
1
,
Tier
:
0
,
Tier
:
0
,
},
},
employeeMsg
:
{
// 员工
employeeMsg
:
{
// 员工
GroupId
:
''
,
GroupId
:
''
,
BranchId
:
-
1
,
BranchId
:
-
1
,
DepartmentId
:
0
,
DepartmentId
:
0
,
PostId
:
0
,
PostId
:
0
,
IsLeave
:
0
,
IsLeave
:
0
,
},
},
zhuanMsg
:
{
zhuanMsg
:
{
AuditEmId
:
null
,
AuditEmId
:
null
,
WorkFlowId
:
0
,
WorkFlowId
:
0
,
},
},
//转交信息
//转交信息
zhuanjiaoMsg
:
{
zhuanjiaoMsg
:
{
CreateBy
:
''
,
CreateBy
:
''
,
FrIDList
:
[]
FrIDList
:
[]
},
},
DataList
:
[],
DataList
:
[],
GetFinancLogList
:
[],
GetFinancLogList
:
[],
StatusList
:
[],
StatusList
:
[],
accountList
:
[],
accountList
:
[],
CompanyList
:
[],
CompanyList
:
[],
productionDate
:
[],
productionDate
:
[],
approvalDate
:
[],
approvalDate
:
[],
transactionDate
:
[],
transactionDate
:
[],
missionDate
:
[],
missionDate
:
[],
GetCostTypeList
:
[],
GetCostTypeList
:
[],
checkList
:
[],
checkList
:
[],
checkAllList
:
[],
checkAllList
:
[],
dateStart
:
''
,
dateStart
:
''
,
dateEnd
:
''
,
dateEnd
:
''
,
dateArr
:
''
,
dateArr
:
''
,
status
:
'1'
,
status
:
'1'
,
type
:
'1'
,
type
:
'1'
,
loading
:
false
,
loading
:
false
,
LogLoading
:
false
,
LogLoading
:
false
,
currentPage
:
1
,
currentPage
:
1
,
total
:
0
,
total
:
0
,
totalYB
:
0
,
totalYB
:
0
,
totalBW
:
0
,
totalBW
:
0
,
totalBW2
:
0
,
totalBW2
:
0
,
totalZD
:
0
,
totalZD
:
0
,
totalBWZD
:
0
,
totalBWZD
:
0
,
ChineseStr
:
''
,
ChineseStr
:
''
,
mathNumber
:
''
,
mathNumber
:
''
,
DepartIDs
:
''
,
DepartIDs
:
''
,
tableData
:
[],
tableData
:
[],
heightQueryBox
:
false
,
heightQueryBox
:
false
,
BillMakingMsg
:
{
BillMakingMsg
:
{
OtherType
:
0
,
OtherType
:
0
,
StandardCurrencyName
:
""
,
StandardCurrencyName
:
""
,
Money
:
0
,
Money
:
0
,
IsUploadPic
:
1
,
IsUploadPic
:
1
,
},
},
rules
:{
rules
:
{
HandFeeFrId
:
[{
HandFeeFrId
:
[{
required
:
true
,
required
:
true
,
message
:
'请输入关联手配费单号'
,
message
:
'请输入关联手配费单号'
,
trigger
:
'blur'
trigger
:
'blur'
}],
}],
}
}
}
}
},
},
created
(){
created
()
{
if
(
this
.
$route
.
query
.
FrID
)
{
if
(
this
.
$route
.
query
.
FrID
)
{
this
.
msg
.
FrID
=
this
.
$route
.
query
.
FrID
;
this
.
msg
.
FrID
=
this
.
$route
.
query
.
FrID
;
}
}
if
(
this
.
$route
.
query
.
HandFeeFrId
)
{
if
(
this
.
$route
.
query
.
HandFeeFrId
)
{
this
.
msg
.
HandFeeFrId
=
this
.
$route
.
query
.
HandFeeFrId
this
.
msg
.
HandFeeFrId
=
this
.
$route
.
query
.
HandFeeFrId
}
else
{
}
else
{
let
sDate
=
this
.
FormartDate
(
new
Date
(
this
.
getBeforeDate
(
1
)));
let
sDate
=
this
.
FormartDate
(
new
Date
(
this
.
getBeforeDate
(
1
)));
let
eDate
=
this
.
FormartDate
(
new
Date
(
this
.
getBeforeDate
(
0
)));
let
eDate
=
this
.
FormartDate
(
new
Date
(
this
.
getBeforeDate
(
0
)));
this
.
productionDate
=
[
sDate
,
eDate
]
this
.
productionDate
=
[
sDate
,
eDate
]
this
.
msg
.
sDate
=
sDate
;
this
.
msg
.
sDate
=
sDate
;
this
.
msg
.
eDate
=
eDate
;
this
.
msg
.
eDate
=
eDate
;
}
}
},
},
components
:
{
components
:
{
"my-Bill"
:
myBill
,
"my-Bill"
:
myBill
,
"my-RVB-Bill"
:
myrbvBill
,
"my-RVB-Bill"
:
myrbvBill
,
selectListData
selectListData
},
},
mounted
(){
mounted
()
{
let
userInfo
=
this
.
getLocalStorage
();
let
userInfo
=
this
.
getLocalStorage
();
let
ActionMenuCode
=
userInfo
.
ActionMenuCode
;
let
ActionMenuCode
=
userInfo
.
ActionMenuCode
;
if
(
ActionMenuCode
.
indexOf
(
'F_Query_AllIncomPay'
)
!=
-
1
||
ActionMenuCode
.
indexOf
(
'S_CheckAllOrder'
)
!=
-
1
){
if
(
ActionMenuCode
.
indexOf
(
'F_Query_AllIncomPay'
)
!=
-
1
||
ActionMenuCode
.
indexOf
(
'S_CheckAllOrder'
)
!=
-
1
)
{
this
.
isRB_Depart_Id
=
true
this
.
isRB_Depart_Id
=
true
}
}
this
.
getCompanyMsg
.
RB_Group_Id
=
this
.
employeeMsg
.
GroupId
=
this
.
getDepartmentMsg
.
RB_Group_Id
=
userInfo
.
RB_Group_id
;
//集团ID
this
.
getCompanyMsg
.
RB_Group_Id
=
this
.
employeeMsg
.
GroupId
=
this
.
getDepartmentMsg
.
RB_Group_Id
=
userInfo
this
.
DepartIDs
=
userInfo
.
RB_Department_Id
;
.
RB_Group_id
;
//集团ID
this
.
userId
=
userInfo
.
EmployeeId
;
this
.
DepartIDs
=
userInfo
.
RB_Department_Id
;
this
.
financeinfo_post_GetCostTypeList
();
this
.
userId
=
userInfo
.
EmployeeId
;
this
.
getCompanyList
();
//获取公司列表
this
.
financeinfo_post_GetCostTypeList
();
this
.
FinancialFlowTemplate_post_GetStatusList
();
this
.
getCompanyList
();
//获取公司列表
this
.
getFKList
()
//付款对象
this
.
FinancialFlowTemplate_post_GetStatusList
();
this
.
GetHandFee
()
//手配费公司
this
.
getFKList
()
//付款对象
this
.
GetHandFee
()
//手配费公司
},
},
methods
:{
methods
:
{
getMoney
(){
//跳转到明细
GoToDetails
()
{
var
path
=
"/HandFeeQuery"
;
var
params
=
{};
this
.
OpenNewPage
(
path
,
params
)
},
getMoney
()
{
let
Money
=
0
let
Money
=
0
let
totalZD
=
0
let
totalZD
=
0
let
totalBWZD
=
0
let
totalBWZD
=
0
this
.
multipleSelection
.
forEach
(
x
=>
{
this
.
multipleSelection
.
forEach
(
x
=>
{
totalZD
+=
(
x
.
OriginalMoney
*
100
)
totalZD
+=
(
x
.
OriginalMoney
*
100
)
totalBWZD
+=
(
x
.
Money
*
100
)
totalBWZD
+=
(
x
.
Money
*
100
)
})
})
this
.
totalZD
=
totalZD
/
100
this
.
totalZD
=
totalZD
/
100
this
.
totalBWZD
=
totalBWZD
/
100
this
.
totalBWZD
=
totalBWZD
/
100
},
},
handleClose
(
rows
){
handleClose
(
rows
)
{
if
(
rows
)
{
if
(
rows
)
{
rows
.
forEach
(
row
=>
{
rows
.
forEach
(
row
=>
{
this
.
$refs
.
multipleTable
.
toggleRowSelection
(
row
);
this
.
$refs
.
multipleTable
.
toggleRowSelection
(
row
);
...
@@ -484,324 +418,335 @@ export default {
...
@@ -484,324 +418,335 @@ export default {
this
.
getMoney
()
this
.
getMoney
()
// this.multipleSelection.splice(index,1)
// this.multipleSelection.splice(index,1)
},
},
// 单据详情
// 单据详情
openDetails
(
item
)
{
openDetails
(
item
)
{
let
query
=
{
let
query
=
{
id
:
item
.
FinanceId
,
id
:
item
.
FinanceId
,
blank
:
"y"
,
blank
:
"y"
,
};
};
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
"/FinancialDocumentsDetail"
,
path
:
"/FinancialDocumentsDetail"
,
query
query
});
});
},
},
// 设置手配费关联
// 设置手配费关联
setHandFeeFr
(){
setHandFeeFr
()
{
this
.
$refs
[
'shezhiMsg'
].
validate
((
valid
)
=>
{
this
.
$refs
[
'shezhiMsg'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
this
.
apipost
(
'Financial_post_SetFinanceHandFeeRelevance'
,
this
.
shezhiMsg
,
res
=>
{
this
.
apipost
(
'Financial_post_SetFinanceHandFeeRelevance'
,
this
.
shezhiMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
){
this
.
isshezhiBox
=
false
this
.
getPageList
()
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
err
=>
{})
}
else
{
return
false
;
}
});
},
DocumentMaking
(){
let
ids
=
this
.
multipleSelection
.
map
(
x
=>
{
return
x
.
FinanceId
})
if
(
ids
.
length
==
0
){
return
this
.
$message
.
error
(
'请勾选需要制单的数据'
);
}
this
.
getMoney
()
this
.
BillMakingMsg
.
Money
=
this
.
totalZD
this
.
iszhidanBox
=
true
this
.
apipost
(
'Financial_post_SetFinanceHandFeeCode'
,{
FrIds
:
ids
.
join
(
','
)
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
){
this
.
BillMakingMsg
.
StandardCurrencyName
=
res
.
data
.
data
// this.showDialog = true
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
err
=>
{})
},
selectable
(
row
,
index
)
{
if
(
!
row
.
HandFeeIncomeFrId
){
return
true
}
else
{
return
false
}
},
handleSelectionChange
(
val
)
{
this
.
multipleSelection
=
val
;
this
.
getMoney
()
},
GetHandFee
()
{
this
.
apipost
(
"handfee_post_GetHandFeeList"
,
{
BranchId
:
-
1
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
GetHandFeeList
=
res
.
data
.
data
;
this
.
isshezhiBox
=
false
this
.
GetHandFeeList
.
forEach
(
x
=>
{
this
.
getPageList
()
if
(
x
.
BranchId
==
this
.
msg
.
KingdeeBranchId
){
}
else
{
this
.
msg
.
KingdeeBranchId
=
x
.
BranchId
this
.
Error
(
res
.
data
.
message
);
}
}
})
},
err
=>
{})
if
(
this
.
msg
.
KingdeeBranchId
<=
0
){
}
else
{
this
.
msg
.
KingdeeBranchId
=
this
.
GetHandFeeList
[
0
].
BranchId
return
false
;
}
});
},
DocumentMaking
()
{
let
ids
=
this
.
multipleSelection
.
map
(
x
=>
{
return
x
.
FinanceId
})
if
(
ids
.
length
==
0
)
{
return
this
.
$message
.
error
(
'请勾选需要制单的数据'
);
}
this
.
getMoney
()
this
.
BillMakingMsg
.
Money
=
this
.
totalZD
this
.
iszhidanBox
=
true
this
.
apipost
(
'Financial_post_SetFinanceHandFeeCode'
,
{
FrIds
:
ids
.
join
(
','
)
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
BillMakingMsg
.
StandardCurrencyName
=
res
.
data
.
data
// this.showDialog = true
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
err
=>
{})
},
selectable
(
row
,
index
)
{
if
(
!
row
.
HandFeeIncomeFrId
)
{
return
true
}
else
{
return
false
}
},
handleSelectionChange
(
val
)
{
this
.
multipleSelection
=
val
;
this
.
getMoney
()
},
GetHandFee
()
{
this
.
apipost
(
"handfee_post_GetHandFeeList"
,
{
BranchId
:
-
1
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
GetHandFeeList
=
res
.
data
.
data
;
this
.
GetHandFeeList
.
forEach
(
x
=>
{
if
(
x
.
BranchId
==
this
.
msg
.
KingdeeBranchId
)
{
this
.
msg
.
KingdeeBranchId
=
x
.
BranchId
}
}
this
.
getPageList
();
})
if
(
this
.
msg
.
KingdeeBranchId
<=
0
)
{
this
.
msg
.
KingdeeBranchId
=
this
.
GetHandFeeList
[
0
].
BranchId
}
}
},
this
.
getPageList
();
err
=>
{}
);
},
//获取付款列表
getFKList
()
{
let
msg
=
{
ID
:
0
,
Type
:
0
,
ObjID
:
0
,
CardNum
:
''
}
}
this
.
apipost
(
},
"financeinfo_post_GetClientAccountList"
,
msg
,
err
=>
{}
res
=>
{
);
if
(
res
.
data
.
resultCode
==
1
)
{
},
this
.
ClientAccountList
=
res
.
data
.
data
;
//获取付款列表
}
getFKList
()
{
let
msg
=
{
ID
:
0
,
Type
:
0
,
ObjID
:
0
,
CardNum
:
''
}
this
.
apipost
(
"financeinfo_post_GetClientAccountList"
,
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
ClientAccountList
=
res
.
data
.
data
;
}
}
);
}
},
);
//设置转交
},
getMaking
(){
//设置转交
this
.
iszhidanBox
=
false
;
getMaking
()
{
this
.
makeAdocument
(
1
)
this
.
iszhidanBox
=
false
;
},
this
.
makeAdocument
(
1
)
// 制作单据
},
makeAdocument
(
num
,
StandardCurrencyName
)
{
// 制作单据
let
type
=
0
makeAdocument
(
num
,
StandardCurrencyName
)
{
if
(
num
==
3
){
let
type
=
0
type
=
2
if
(
num
==
3
)
{
}
else
{
type
=
2
type
=
num
}
else
{
}
type
=
num
}
this
.
BillMakingMsg
.
OtherType
=
71
;
this
.
BillMakingMsg
.
OtherType
=
71
;
let
text
=
""
;
let
text
=
""
;
if
(
num
==
1
)
{
if
(
num
==
1
)
{
text
=
"收款"
;
text
=
"收款"
;
}
else
if
(
num
==
2
)
{
}
else
if
(
num
==
2
)
{
text
=
"付款"
;
text
=
"付款"
;
}
}
let
query
=
{
let
query
=
{
blank
:
"y"
,
blank
:
"y"
,
tab
:
`新增
${
text
}
单据`
,
tab
:
`新增
${
text
}
单据`
,
Name
:
'PIC手配费月结收款单'
,
Name
:
'PIC手配费月结收款单'
,
Type
:
type
,
Type
:
type
,
id
:
271
,
id
:
271
,
orderObj
:
JSON
.
stringify
(
this
.
BillMakingMsg
),
orderObj
:
JSON
.
stringify
(
this
.
BillMakingMsg
),
};
};
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
"/addReceivablesDocuments"
,
path
:
"/addReceivablesDocuments"
,
query
query
});
});
return
return
this
.
$store
.
commit
(
"ChoiceAddFinancialDocuments"
);
this
.
$store
.
commit
(
"ChoiceAddFinancialDocuments"
);
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
"/ChoiceAddFinancialDocuments"
,
path
:
"/ChoiceAddFinancialDocuments"
,
query
query
});
});
},
resetPageIndex
(){
// 重置页码
this
.
msg
.
pageIndex
=
1
;
this
.
currentPage
=
1
;
this
.
getPageList
()
},
},
getPageList
(){
// 获取列表数据
resetPageIndex
()
{
// 重置页码
this
.
loading
=
true
;
this
.
msg
.
pageIndex
=
1
;
this
.
apipost
(
'Financial_post_GetFinanceHandFeeList'
,
this
.
msg
,
res
=>
{
this
.
currentPage
=
1
;
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
getPageList
()
let
data
=
res
.
data
.
data
},
this
.
total
=
0
;
getPageList
()
{
// 获取列表数据
this
.
totalYB
=
0
this
.
loading
=
true
;
this
.
totalBW
=
0
this
.
apipost
(
'Financial_post_GetFinanceHandFeeList'
,
this
.
msg
,
res
=>
{
this
.
totalBW2
=
0
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
DataList
=
data
;
let
data
=
res
.
data
.
data
this
.
DataList
.
forEach
(
x
=>
{
this
.
total
=
0
;
this
.
totalYB
+=
x
.
OriginalMoney
this
.
totalYB
=
0
if
(
x
.
HandFeeIncomeFrId
){
this
.
totalBW
=
0
this
.
totalBW
+=
x
.
OriginalMoney
this
.
totalBW2
=
0
}
else
{
this
.
DataList
=
data
;
this
.
totalBW2
+=
x
.
OriginalMoney
this
.
DataList
.
forEach
(
x
=>
{
}
this
.
totalYB
+=
x
.
OriginalMoney
this
.
total
+=
x
.
Money
if
(
x
.
HandFeeIncomeFrId
)
{
})
this
.
totalBW
+=
x
.
OriginalMoney
this
.
loading
=
false
;
}
else
{
}
else
{
this
.
totalBW2
+=
x
.
OriginalMoney
this
.
loading
=
false
;
}
this
.
$message
.
error
(
res
.
data
.
message
);
this
.
total
+=
x
.
Money
}
})
},
err
=>
{})
this
.
loading
=
false
;
},
}
else
{
method5
()
{
this
.
loading
=
false
;
let
msg
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
msg
))
this
.
$message
.
error
(
res
.
data
.
message
);
let
userInfo
=
this
.
getLocalStorage
();
}
msg
.
EmployeeId
=
userInfo
.
EmployeeId
},
err
=>
{})
this
.
GetLocalFile
(
"Financial_post_GetFinanceHandFeeListToExcel"
,
msg
,
"手配费用单据.xls"
);
},
}
,
method5
()
{
FinancialFlowTemplate_post_GetStatusList
(){
// 获取审核状态枚举
let
msg
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
msg
))
this
.
apipost
(
'FinancialFlowTemplate_post_GetStatusList'
,{},
res
=>
{
let
userInfo
=
this
.
getLocalStorage
();
if
(
res
.
data
.
resultCode
==
1
)
{
msg
.
EmployeeId
=
userInfo
.
EmployeeId
this
.
StatusList
=
res
.
data
.
data
;
this
.
GetLocalFile
(
"Financial_post_GetFinanceHandFeeListToExcel"
,
msg
,
"手配费用单据.xls"
);
},
FinancialFlowTemplate_post_GetStatusList
()
{
// 获取审核状态枚举
this
.
apipost
(
'FinancialFlowTemplate_post_GetStatusList'
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
StatusList
=
res
.
data
.
data
;
}
},
err
=>
{})
},
getAccountList
(
i
,
t
)
{
//收款账户
let
accountList
=
[];
if
(
t
==
1
)
{
// 银行
this
.
apipost
(
'bankaccount_post_GetList'
,
{
TypeId
:
i
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
let
data
=
res
.
data
.
data
;
data
.
forEach
(
x
=>
{
let
obj
=
{
ID
:
x
.
ID
,
Name
:
x
.
Alias
,
Nom
:
0
,
}
}
},
err
=>
{})
accountList
.
push
(
obj
)
},
})
getAccountList
(
i
,
t
){
//收款账户
this
.
accountList
=
accountList
;
let
accountList
=
[];
if
(
t
==
1
){
// 银行
this
.
apipost
(
'bankaccount_post_GetList'
,{
TypeId
:
i
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
let
data
=
res
.
data
.
data
;
data
.
forEach
(
x
=>
{
let
obj
=
{
ID
:
x
.
ID
,
Name
:
x
.
Alias
,
Nom
:
0
,
}
accountList
.
push
(
obj
)
})
this
.
accountList
=
accountList
;
}
},
err
=>
{})
}
}
if
(
t
==
2
){
//平台账户
},
err
=>
{})
let
msg
=
{
}
BackId
:
0
,
if
(
t
==
2
)
{
//平台账户
TypeId
:
i
,
let
msg
=
{
BranchId
:
-
1
,
BackId
:
0
,
Alias
:
''
TypeId
:
i
,
BranchId
:
-
1
,
Alias
:
''
}
this
.
apipost
(
'BankAccount_post_GetPlatformList'
,
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
let
data
=
res
.
data
.
data
;
data
.
forEach
(
x
=>
{
let
obj
=
{
ID
:
x
.
ID
,
Name
:
x
.
Alias
,
Nom
:
x
.
PlatformNo
}
}
this
.
apipost
(
'BankAccount_post_GetPlatformList'
,
msg
,
res
=>
{
accountList
.
push
(
obj
)
if
(
res
.
data
.
resultCode
==
1
)
{
})
let
data
=
res
.
data
.
data
;
this
.
accountList
=
accountList
;
data
.
forEach
(
x
=>
{
let
obj
=
{
ID
:
x
.
ID
,
Name
:
x
.
Alias
,
Nom
:
x
.
PlatformNo
}
accountList
.
push
(
obj
)
})
this
.
accountList
=
accountList
;
}
},
err
=>
{})
}
}
if
(
t
==
3
){
//现金账户
},
err
=>
{})
let
msg
=
{
}
TypeId
:
i
,
if
(
t
==
3
)
{
//现金账户
BranchId
:
-
1
,
let
msg
=
{
Alias
:
''
TypeId
:
i
,
BranchId
:
-
1
,
Alias
:
''
}
this
.
apipost
(
'BankAccount_post_GetCashAccountList'
,
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
let
data
=
res
.
data
.
data
;
data
.
forEach
(
x
=>
{
let
obj
=
{
ID
:
x
.
ID
,
Name
:
x
.
Alias
,
Nom
:
0
}
}
this
.
apipost
(
'BankAccount_post_GetCashAccountList'
,
msg
,
res
=>
{
accountList
.
push
(
obj
)
if
(
res
.
data
.
resultCode
==
1
)
{
})
let
data
=
res
.
data
.
data
;
this
.
accountList
=
accountList
data
.
forEach
(
x
=>
{
let
obj
=
{
ID
:
x
.
ID
,
Name
:
x
.
Alias
,
Nom
:
0
}
accountList
.
push
(
obj
)
})
this
.
accountList
=
accountList
}
},
err
=>
{})
}
}
if
(
t
==
4
){
//资金池账户
},
err
=>
{})
let
msg
=
{
}
TypeId
:
i
,
if
(
t
==
4
)
{
//资金池账户
BranchId
:
-
1
,
let
msg
=
{
Alias
:
''
TypeId
:
i
,
BranchId
:
-
1
,
Alias
:
''
}
this
.
apipost
(
'BankAccount_post_GetCashPoolList'
,
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
let
data
=
res
.
data
.
data
;
data
.
forEach
(
x
=>
{
let
obj
=
{
ID
:
x
.
ID
,
Name
:
x
.
Alias
,
Nom
:
0
}
}
this
.
apipost
(
'BankAccount_post_GetCashPoolList'
,
msg
,
res
=>
{
accountList
.
push
(
obj
)
if
(
res
.
data
.
resultCode
==
1
)
{
})
let
data
=
res
.
data
.
data
;
this
.
accountList
=
accountList
data
.
forEach
(
x
=>
{
let
obj
=
{
ID
:
x
.
ID
,
Name
:
x
.
Alias
,
Nom
:
0
}
accountList
.
push
(
obj
)
})
this
.
accountList
=
accountList
}
},
err
=>
{})
}
}
},
err
=>
{})
}
},
},
getCompanyList
(){
//获取公司列表
getCompanyList
()
{
//获取公司列表
this
.
apipost
(
'admin_get_BranchGetList'
,
this
.
getCompanyMsg
,
res
=>
{
this
.
apipost
(
'admin_get_BranchGetList'
,
this
.
getCompanyMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
){
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
CompanyList
=
res
.
data
.
data
;
this
.
CompanyList
=
res
.
data
.
data
;
}
else
{}
}
else
{}
},
err
=>
{})
},
err
=>
{})
},
},
financeinfo_post_GetCostTypeList
(){
// 费用类型
financeinfo_post_GetCostTypeList
()
{
// 费用类型
this
.
apipost
(
'financeinfo_post_GetCostTypeList'
,{
Name
:
''
,
type
:
0
,
DepartIDs
:
this
.
DepartIDs
},
res
=>
{
this
.
apipost
(
'financeinfo_post_GetCostTypeList'
,
{
if
(
res
.
data
.
resultCode
==
1
){
Name
:
''
,
this
.
GetCostTypeList
=
res
.
data
.
data
;
type
:
0
,
}
else
{
DepartIDs
:
this
.
DepartIDs
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
GetCostTypeList
=
res
.
data
.
data
;
}
else
{
}
}
},
err
=>
{})
},
err
=>
{})
},
},
timeAdd
(
t
){
// 日期格式
timeAdd
(
t
)
{
// 日期格式
if
(
t
==
1
){
//制单日期
if
(
t
==
1
)
{
//制单日期
if
(
!
this
.
productionDate
){
if
(
!
this
.
productionDate
)
{
this
.
msg
.
sDate
=
''
;
this
.
msg
.
sDate
=
''
;
this
.
msg
.
eDate
=
''
;
this
.
msg
.
eDate
=
''
;
return
return
}
}
this
.
msg
.
sDate
=
this
.
productionDate
[
0
];
this
.
msg
.
sDate
=
this
.
productionDate
[
0
];
this
.
msg
.
eDate
=
this
.
productionDate
[
1
];
this
.
msg
.
eDate
=
this
.
productionDate
[
1
];
}
}
if
(
t
==
2
){
//审批日期
if
(
t
==
2
)
{
//审批日期
if
(
!
this
.
approvalDate
){
if
(
!
this
.
approvalDate
)
{
this
.
dateStart
=
''
;
this
.
dateStart
=
''
;
this
.
dateEnd
=
''
;
this
.
dateEnd
=
''
;
return
return
}
}
this
.
dateStart
=
this
.
approvalDate
[
0
];
this
.
dateStart
=
this
.
approvalDate
[
0
];
this
.
dateEnd
=
this
.
approvalDate
[
1
];
this
.
dateEnd
=
this
.
approvalDate
[
1
];
}
if
(
t
==
3
){
//交易日期
}
if
(
!
this
.
transactionDate
){
if
(
t
==
3
)
{
//交易日期
this
.
msg
.
sTradeDate
=
''
;
if
(
!
this
.
transactionDate
)
{
this
.
msg
.
eTradeDate
=
''
;
this
.
msg
.
sTradeDate
=
''
;
return
this
.
msg
.
eTradeDate
=
''
;
}
return
this
.
msg
.
sTradeDate
=
this
.
transactionDate
[
0
];
}
this
.
msg
.
eTradeDate
=
this
.
transactionDate
[
1
];
this
.
msg
.
sTradeDate
=
this
.
transactionDate
[
0
];
}
this
.
msg
.
eTradeDate
=
this
.
transactionDate
[
1
];
if
(
t
==
4
){
//发团日期
}
if
(
!
this
.
missionDate
){
if
(
t
==
4
)
{
//发团日期
this
.
dateStart
=
''
;
if
(
!
this
.
missionDate
)
{
this
.
dateEnd
=
''
;
this
.
dateStart
=
''
;
return
this
.
dateEnd
=
''
;
}
return
this
.
msg
.
QStartDate
=
this
.
missionDate
[
0
];
}
this
.
msg
.
QEndDate
=
this
.
missionDate
[
1
];
this
.
msg
.
QStartDate
=
this
.
missionDate
[
0
];
}
this
.
msg
.
QEndDate
=
this
.
missionDate
[
1
];
},
}
},
}
}
}
}
</
script
>
</
script
>
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