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
b8831512
Commit
b8831512
authored
May 25, 2020
by
黄媛媛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
批量转交
parent
7995b1ec
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
114 additions
and
7 deletions
+114
-7
cssReset.css
src/assets/css/cssReset.css
+3
-0
GetWOrkTransferPageLis.vue
src/components/FinancialModule/GetWOrkTransferPageLis.vue
+111
-7
No files found.
src/assets/css/cssReset.css
View file @
b8831512
...
...
@@ -171,6 +171,9 @@ input:-webkit-autofill{-webkit-box-shadow: 0 0 0px 1000px white inset;}
.multiple_input
.el-input
{
height
:
auto
!important
}
.el-input
.el-input__inner
:focus
,
.el-select
.el-input.is-focus
.el-input__inner
{
border-color
:
#E95252
!important
;}
.el-textarea
.el-textarea__inner
:focus
,
.el-select
.el-input.is-focus
.el-textarea__inner
{
border-color
:
#E95252
!important
;}
.el-pagination__sizes
.el-input
.el-input__inner
{
width
:
95px
!important
;
}
.el-select-dropdown__item.selected
{
color
:
#fff
!important
;
background
:
#E95252
!important
;}
.el-date-table
td
.today
span
{
color
:
#E95252
;}
.el-date-table
td
.available
:hover
span
{
color
:
#E95252
;}
...
...
src/components/FinancialModule/GetWOrkTransferPageLis.vue
View file @
b8831512
...
...
@@ -117,10 +117,11 @@
.boss_btn
span
{
color
:
#2BB87C
;
}
</
style
>
<
template
>
<div
class=
"page_fnDm"
@
keyup
.
enter=
"resetPageIndex(),getPageList()"
>
<div
class=
"
GetWOrkTransferPageLis
page_fnDm"
@
keyup
.
enter=
"resetPageIndex(),getPageList()"
>
<ul
class=
"_nav clearfix"
>
<li
:class=
"active==1?'_active':''"
@
click=
"active=1, msg.Conditon=1, BOSSBtn = false, getPageList(), checkList = []"
>
交接人发起的
</li>
<li
:class=
"active==3?'_active':''"
@
click=
"active=3, msg.Conditon=3, getPageList()"
>
待交接人审批的
</li>
...
...
@@ -130,12 +131,15 @@
<li
class=
"hight_query"
>
<button
class=
"hollowFixedBtn"
@
click=
"goUrl('WorkEntrustmentMy')"
>
{{
$t
(
'fnc.gzweituo'
)
}}
</button>
<button
class=
"hollowFixedBtn"
v-if=
"msg.Conditon === 3"
@
click=
"BOSSBtnClick(2)"
>
转交
</button>
<button
class=
"hollowFixedBtn"
v-if=
"msg.Conditon === 1"
@
click=
"getExchange2"
>
批量转交
</button>
</li>
</ul>
</div>
<div
class=
"_fnDm_content"
v-loading=
'loading'
:style=
"
{minHeight:minHeight+'px'}">
<table
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
class=
"singeRowTable"
style=
"margin-bottom:30px;"
>
<tr
class=
"_t_head"
>
<th
v-if=
"msg.Conditon === 1"
><input
type=
"checkbox"
v-model=
"isCkedAll1"
@
click=
'checkedAll1()'
></th>
<th
v-if=
"msg.Conditon === 3"
><input
type=
"checkbox"
v-model=
"isCkedAll"
@
click=
'checkedAll()'
></th>
<th
width=
"90"
>
{{
$t
(
'system.query_company'
)
}}
</th>
<th>
{{
$t
(
'fnc.danhao'
)
}}
</th>
...
...
@@ -150,6 +154,7 @@
<th
v-if=
"msg.Conditon === 1"
>
{{
$t
(
'system.table_operation'
)
}}
</th>
</tr>
<tr
class=
"_item_list"
v-for=
"(item,index) in DataList"
>
<td
v-if=
"msg.Conditon === 1"
><input
type=
"checkbox"
:value=
"item.FrID"
v-model=
"checkList1"
@
change=
"ckeckedOne1"
></td>
<td
v-if=
"msg.Conditon === 3"
><input
type=
"checkbox"
:value=
"item.FrID"
v-model=
"checkList"
@
change=
"ckeckedOne"
></td>
<td>
{{
item
.
BranchName
}}
</td>
<td
class=
"Bill_par"
>
...
...
@@ -299,7 +304,9 @@
background
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"currentPage"
layout=
"total,prev, pager, next, jumper"
@
size-change=
"handleSizeChange"
layout=
"total, sizes, prev, pager, next, jumper"
:page-sizes=
"[6,10,20,50,80,100]"
:page-size=
'msg.pageSize'
:total=
'total'
>
</el-pagination>
...
...
@@ -422,6 +429,45 @@
</div>
</
template
>
</el-dialog>
<!-- 批量转交 -->
<el-dialog
custom-class=
'w400'
title=
"制单人转交"
:visible
.
sync=
"zhuanjiaoBox2"
center
>
<
template
>
<el-form
label-width=
"100px"
>
<el-form-item
label=
"制单人转交:"
>
<el-select
v-model=
"zhuanjiaoMsg2.CreateBy"
filterable
remote
reserve-keyword
:placeholder=
"$t('pub.pleaseImport')"
:remote-method=
"remoteMethodEx"
@
change=
"$forceUpdate()"
>
<el-option
v-for=
"item in searchList"
:key=
"item.empId"
:label=
"item.name"
:value=
"item.empId"
>
<span
style=
"float: left"
>
{{
item
.
name
}}
</span>
<span
style=
"float: right; color: #8492a6; font-size: 13px"
>
{{
item
.
postName
}}
</span>
</el-option>
</el-select>
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<button
class=
"hollowFixedBtn"
@
click=
"zhuanjiaoBox2=false"
>
{{
$t
(
'pub.cancelBtn'
)
}}
</button>
<button
class=
"normalBtn"
type=
"primary"
@
click=
"setExchange2()"
>
{{
$t
(
'pub.sureBtn'
)
}}
</button>
</div>
</
template
>
</el-dialog>
<!-- 批量转交提示 -->
<el-dialog
custom-class=
'w400'
title=
"提示"
:visible
.
sync=
"BoxState"
center
>
<p
style=
"color:red;margin-bottom:15px"
>
请稍等,正在转交{{checkList1.length}}条数据,请不要进行任何操作!
</p>
<div
slot=
"footer"
class=
"dialog-footer"
>
<button
class=
"normalBtn"
type=
"primary"
@
click=
"BoxState=false"
>
{{$t('pub.sureBtn')}}
</button>
</div>
</el-dialog>
</div>
</template>
<
script
>
...
...
@@ -432,18 +478,24 @@ import myGZBill from "./FinancialSubmodule/GZBillModule.vue";
export
default
{
data
(){
return
{
BoxState
:
false
,
widthSon
:
'700px'
,
colorSon
:
"#f5f5f5"
,
showID
:
false
,
active
:
1
,
userId
:
0
,
zhuanjiaoBox
:
false
,
zhuanjiaoBox2
:
false
,
searchList
:[],
//转交信息
zhuanjiaoMsg
:{
CreateBy
:
''
,
FrIDList
:[]
},
zhuanjiaoMsg2
:{
CreateBy
:
''
,
FrIDList
:[]
},
msg
:{
pageIndex
:
1
,
pageSize
:
6
,
...
...
@@ -500,6 +552,8 @@ export default {
AccList
:[],
checkList
:[],
checkAllList
:[],
checkList1
:[],
isCkedAll1
:
false
,
dateStart
:
''
,
dateEnd
:
''
,
dateArr
:
''
,
...
...
@@ -591,6 +645,54 @@ export default {
this
.
AccountType_post_GetList
();
},
methods
:{
handleSizeChange
(
val
){
this
.
msg
.
pageSize
=
val
;
this
.
getPageList
();
},
//批量转交
getExchange2
(){
if
(
this
.
checkList1
.
length
==
0
){
this
.
Error
(
"至少选择一条单据"
);
return
;
}
this
.
zhuanjiaoMsg2
.
CreateBy
=
''
;
this
.
zhuanjiaoMsg2
.
FrIDList
=
this
.
checkList1
;
this
.
zhuanjiaoBox2
=
true
;
},
//设置转交
setExchange2
(){
if
(
this
.
zhuanjiaoMsg2
.
CreateBy
==
''
){
this
.
Error
(
'请选择转交人'
);
return
;
}
this
.
apipost
(
'Financial_post_SetFinanceCreateByCareOf'
,
this
.
zhuanjiaoMsg2
,
res
=>
{
this
.
zhuanjiaoBox2
=
false
;
this
.
BoxState
=
true
;
if
(
res
.
data
.
resultCode
==
1
){
this
.
Success
(
res
.
data
.
message
);
this
.
BoxState
=
false
;
this
.
getPageList
();
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
err
=>
{})
},
ckeckedOne1
()
{
//单选
if
(
this
.
checkList1
.
length
<
this
.
checkAllList
.
length
)
{
this
.
isCkedAll1
=
false
}
else
{
this
.
isCkedAll1
=
true
}
},
checkedAll1
()
{
//全选
if
(
this
.
isCkedAll1
==
true
)
{
this
.
checkList1
=
[];
}
else
{
this
.
checkAllList
.
forEach
(
item
=>
{
this
.
checkList1
.
push
(
item
)
})
}
},
// 催审
cuishen
:
function
(
cmd
,
id
)
{
this
.
$confirm
(
'确定催审?'
,
this
.
$t
(
'tips.tips'
),
{
...
...
@@ -813,11 +915,13 @@ export default {
this
.
loading
=
true
this
.
checkAllList
=
[];
this
.
checkList
=
[];
if
((
t
&&
this
.
BOSSBtn
)
||
(
t
&&
this
.
BOSSBtn2
))
{
this
.
msg
.
pageSize
=
6
;
}
else
{
this
.
msg
.
pageSize
=
6
;
}
this
.
checkList1
=
[];
this
.
isCkedAll1
=
false
;
// if ((t&&this.BOSSBtn)||(t&&this.BOSSBtn2)) {
// this.msg.pageSize = 6;
// } else {
// this.msg.pageSize = 6;
// }
if
(
this
.
msg
.
Status
==
0
){
this
.
checkboxShow
=
true
;
}
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