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
0b57d323
Commit
0b57d323
authored
Nov 30, 2023
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
54acfea2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
154 additions
and
2 deletions
+154
-2
ShoppingReimbursement.vue
src/components/ShoppingStore/ShoppingReimbursement.vue
+154
-2
No files found.
src/components/ShoppingStore/ShoppingReimbursement.vue
View file @
0b57d323
...
...
@@ -41,8 +41,16 @@
<el-date-picker
v-model=
'msg.EndDate'
class=
'w135'
value-format=
"yyyy-MM-dd"
type=
"date"
></el-date-picker>
</span>
</li>
<li>
<span>
<em>
只看已导入佣金数据的团
</em>
<el-switch
v-model=
"msg.IsQCommission"
active-value=
"true"
inactive-value=
"false"
>
</el-switch>
</span>
</li>
<li>
<input
type=
"button"
class=
"normalBtn"
:value=
"$t('pub.searchBtn')"
@
click=
"getList();resetPageIndex()"
/>
<input
type=
"button"
class=
"normalBtn"
value=
"批量制佣金单"
@
click=
"MoreCreateBill()"
/>
</li>
</ul>
</div>
...
...
@@ -71,6 +79,7 @@
<table
border=
"0"
cellspacing=
"1"
cellpadding=
"0"
class=
"ShoppingTable"
style=
"border: 1px solid rgb(230, 230, 230);min-width: 1600px"
v-loading=
"loading"
>
<tr>
<th
width=
"60"
>
<el-checkbox
v-model=
"checkAll"
@
change=
"getSelectAll()"
>
全选
</el-checkbox></th>
<th
width=
"115"
>
{{
$t
(
'active.ad_xuhao'
)
}}
</th>
<th
width=
"100"
>
{{
$t
(
'sm.chufadi'
)
}}
</th>
<th
width=
"110"
>
{{
$t
(
'salesModule.CompanyNum'
)
}}
</th>
...
...
@@ -102,6 +111,9 @@
<template
v-for=
"(item,index) in outItem.PriceShopList"
>
<template
v-for=
"(subItem,subIndex) in item.ShopDetailsList"
>
<tr>
<td
:rowspan=
"outItem.rowspanCount"
v-if=
"index==0&&subIndex==0"
>
<el-checkbox
@
change=
"changeCheck(outItem)"
v-model=
"outItem.IsCheck"
:disabled=
"outItem.IsCheckDisabled"
></el-checkbox>
</td>
<td
:rowspan=
"outItem.rowspanCount"
v-if=
"index==0&&subIndex==0"
>
{{
outItem
.
NewCombinationNum
}}
</td>
...
...
@@ -297,8 +309,14 @@
</tr>
</tbody>
</table>
<el-pagination
background
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"msg.currentPage"
layout=
"total,prev, pager, next, jumper"
:page-size=
"msg.pageSize"
:total=
"msg.total"
></el-pagination>
<el-pagination
background
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"msg.currentPage"
layout=
"total, sizes, prev, pager, next, jumper"
:page-size=
"msg.pageSize"
:page-sizes=
"[10, 20, 30, 40,50]"
@
size-change=
"handleSizeChange"
:total=
"msg.total"
>
</el-pagination>
</div>
<a
id=
'blankLink1'
target=
"_blank"
style=
"display:none"
>
1
</a>
<el-dialog
custom-class=
'w400'
title=
"请选择需要制单的团号"
:visible
.
sync=
"zhuanjiaoBox"
center
>
...
...
@@ -365,6 +383,13 @@
</div>
</
template
>
</el-dialog>
<el-dialog
title=
"生成财务单据"
:visible
.
sync=
"BOSSDialog"
>
<
template
>
<p
class=
"boss_btn"
>
{{
$t
(
'ios.gongji'
)
}}
{{
selectedRowKeys
.
length
}}
{{
$t
(
'ios.tdqdi'
)
}}
<span>
{{
(
bossLen
>
selectedRowKeys
.
length
)?
selectedRowKeys
.
length
:
bossLen
}}
</span>
{{
$t
(
'ios.tiao'
)
}}
</p>
<p
class=
"boss_btn_tips"
>
批量制单中请不要进行其他操作。
</p></
template
>
</el-dialog>
</div>
</template>
<
script
>
...
...
@@ -378,6 +403,8 @@
{
Name
:
'公司佣金'
,
Id
:
3
},
{
Name
:
'PIC部分'
,
Id
:
4
},
],
checkAll
:
false
,
//全选状态
selectedRowKeys
:
[],
//选中的key
FinanceTypes
:
[
0
],
//佣金类型
loading
:
false
,
PayType
:
1
,
//付款方式
...
...
@@ -399,6 +426,7 @@
total
:
0
,
CombinationNum
:
""
,
//合团号
TCNUM
:
""
,
//团号
IsQCommission
:
false
},
LineList
:
[],
LineTeamList
:
[],
...
...
@@ -409,6 +437,19 @@
CreateHandBillID
:
''
,
CreateHandObj
:
{},
CurrentOutItem
:
{},
//当前选中的团
bossLen
:
null
,
BOSSDialog
:
false
,
userMenuCode
:
false
,
HandShow
:
false
,
nMsg
:
{
TCIDs
:
""
,
PayType
:
1
,
uid
:
0
,
FinanceType
:
"3,4"
,
LeaderAccountId
:
0
,
GuideAccountId
:
0
,
IsFee
:
1
},
}
},
methods
:
{
...
...
@@ -554,6 +595,12 @@
this
.
msg
.
pageIndex
=
val
;
this
.
getList
();
},
handleSizeChange
(
val
)
{
this
.
msg
.
pageIndex
=
1
;
this
.
msg
.
pageSize
=
val
;
this
.
getList
();
},
resetPageIndex
()
{
this
.
msg
.
pageIndex
=
1
;
this
.
currentPage
=
1
;
...
...
@@ -584,6 +631,43 @@
}
}
},
//全选
getSelectAll
(){
if
(
this
.
checkAll
)
{
this
.
selectedRowKeys
=
[]
// 判断是否已全部选中,是则清空已选列表
this
.
checkAll
=
false
;
this
.
shopDataList
.
forEach
((
item
)
=>
{
if
(
item
.
IsCheck
)
item
.
IsCheck
=
false
;
})
this
.
$forceUpdate
();
}
else
{
this
.
shopDataList
.
forEach
((
item
)
=>
{
if
(
!
this
.
selectedRowKeys
.
includes
(
item
.
TCIDs
)
&&
item
.
IsCheckDisabled
==
false
)
{
item
.
IsCheck
=
true
;
this
.
selectedRowKeys
.
push
(
item
.
TCIDs
)
// 否则将未选中的全部加入已选列表中
}
})
this
.
checkAll
=
true
;
this
.
$forceUpdate
();
}
},
changeCheck
(
row
){
if
(
!
this
.
selectedRowKeys
.
includes
(
row
.
TCIDs
))
{
row
.
IsCheck
=
true
;
this
.
selectedRowKeys
.
push
(
row
.
TCIDs
);
}
else
{
row
.
IsCheck
=
false
;
let
index
=
this
.
selectedRowKeys
.
indexOf
(
row
.
TCIDs
);
this
.
selectedRowKeys
.
splice
(
index
,
1
);
}
if
(
this
.
selectedRowKeys
.
length
==
this
.
shopDataList
.
length
)
{
this
.
checkAll
=
true
;
}
else
{
this
.
checkAll
=
false
;
}
this
.
$forceUpdate
();
},
//生成单据
CreateBill
()
{
var
that
=
this
;
...
...
@@ -630,6 +714,74 @@
// });
},
//生成单据
increment
()
{
console
.
log
(
"bossLen"
,
this
.
bossLen
);
if
(
this
.
bossLen
&&
this
.
bossLen
<=
this
.
selectedRowKeys
.
length
)
{
this
.
nMsg
.
uid
=
this
.
getLocalStorage
().
EmployeeId
;
this
.
nMsg
.
TCIDs
=
this
.
selectedRowKeys
[
this
.
bossLen
-
1
];
this
.
apipost
(
"dmcstatistics_post_CheckShopDetailsDMCRate"
,
this
.
nMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
data
.
result
==
0
)
{
this
.
$message
.
error
(
res
.
data
.
message
);
this
.
loading
=
false
;
this
.
selectedRowKeys
=
[];
this
.
getList
();
this
.
BOSSDialog
=
false
;
}
else
{
this
.
apipost
(
"dmcstatistics_post_BatchShopCreateBill"
,
this
.
nMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
bossLen
+=
1
;
this
.
increment
();
}
else
{
this
.
$message
.
error
(
"单据生成失败,请稍后重试"
);
this
.
loading
=
false
;
this
.
selectedRowKeys
=
[];
this
.
getList
();
this
.
BOSSDialog
=
false
;
}
});
}
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
);
this
.
loading
=
false
;
this
.
selectedRowKeys
=
[];
this
.
getList
();
this
.
BOSSDialog
=
false
;
}
},
err
=>
{}
);
}
else
{
this
.
BOSSDialog
=
false
;
this
.
selectedRowKeys
=
[];
this
.
$message
.
success
(
"批量制单成功!"
);
this
.
loading
=
false
;
this
.
checkAll
=
false
;
this
.
getList
();
}
},
MoreCreateBill
()
{
if
(
this
.
selectedRowKeys
&&
this
.
selectedRowKeys
.
length
==
0
){
this
.
$message
.
Error
(
"请至少选择一个团!"
);
return
;
}
this
.
$confirm
(
'是否批量生成财务单据?'
,
this
.
$t
(
'tips.tips'
),
{
confirmButtonText
:
`确定`
,
cancelButtonText
:
`取消`
,
type
:
'warning'
}).
then
(()
=>
{
this
.
bossLen
=
1
;
this
.
BOSSDialog
=
true
;
this
.
increment
();
}).
catch
(()
=>
{});
},
financeinfo_post_GetClientAccountList
(
ObjID
,
type
)
{
//获取付款 对象类型 新增用
let
msg
=
{
ID
:
0
,
...
...
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