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
a697a4f4
Commit
a697a4f4
authored
Apr 15, 2019
by
华国豪
🙄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
财务审批新增一键审批!
parent
4bea2ae8
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
104 additions
and
163 deletions
+104
-163
FinancialOrder.vue
src/components/DomesticModule/FinancialOrder.vue
+0
-1
SettlementOrder.vue
src/components/DomesticModule/SettlementOrder.vue
+2
-2
FinancialDocuments.vue
src/components/FinancialModule/FinancialDocuments.vue
+97
-156
leaderReimbursement.vue
src/components/LeaderManagement/leaderReimbursement.vue
+3
-2
outWorkApproval.vue
src/components/administrative/outWorkApproval.vue
+2
-2
No files found.
src/components/DomesticModule/FinancialOrder.vue
View file @
a697a4f4
...
...
@@ -213,7 +213,6 @@ export default {
}
this
.
apipost
(
'Financial_post_GetTicketFinanceList'
,
msg
,
r
=>
{
if
(
r
.
data
.
resultCode
==
1
){
this
.
total
=
r
.
data
.
data
.
count
;
if
(
this
.
total
>
0
){
this
.
noData
=
false
;
}
else
{
...
...
src/components/DomesticModule/SettlementOrder.vue
View file @
a697a4f4
...
...
@@ -149,8 +149,8 @@
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"currentPage"
layout=
"total,prev, pager, next, jumper"
:page-size=
msg.pageSize
:total=
total
>
:page-size=
'msg.pageSize'
:total=
'total'
>
</el-pagination>
</div>
</div>
...
...
src/components/FinancialModule/FinancialDocuments.vue
View file @
a697a4f4
...
...
@@ -97,6 +97,15 @@
width
:
216px
;
}
._icon_btn
i
.icon-tiaozheng
{
background-color
:
#1296db
;
font-size
:
16px
;}
.boss_btn_tips
,
.boss_btn
{
text-align
:
center
;
}
.boss_btn_tips
{
padding-bottom
:
25px
;
}
.boss_btn
span
{
color
:
#2BB87C
;
}
</
style
>
<
template
>
...
...
@@ -369,160 +378,13 @@
<span>
<em
@
click
.
stop=
"heightQueryBox=!heightQueryBox"
>
{{$t('fnc.gjchaxun')}}
<i
class=
"iconfont icon-gengduo"
></i></em>
</span>
<!-- <div class="hight_query_box" @click.stop>
<el-collapse-transition>
<div v-show="heightQueryBox">
<p class="hqb_t">财务单据高级查询</p>
<el-form :model="msg" ref="msg" label-width="100px">
<ul class="clearfix">
<li>
<el-form-item label="所属公司:">
<el-select filterable v-model='msg.RB_Branch_Id' @change="getDepartmentMsg.RB_Branch_Id=msg.RB_Branch_Id,msg.RB_Depart_Id='',getDepartment()" class="w135">
<el-option :value="-1" :label="$t('pub.unlimitedSel')"></el-option>
<el-option v-for='item in CompanyList'
:label='item.BName'
:value='item.Id'
:key='item.Id'>
</el-option>
</el-select>
</el-form-item>
</li>
<li>
<el-form-item label="费用部门:">
<el-select filterable v-model='msg.RB_Depart_Id' @change="employeeMsg.DepartmentId=msg.RB_Depart_Id,getEmployee(),msg.UpdateBy=''" class="w135">
<el-option :value="0" :label="$t('pub.unlimitedSel')"></el-option>
<el-option v-for='item in DepartmentList'
:label='item.DepartmentName'
:value='item.DepartmentID'
:key='item.DepartmentID'>
</el-option>
</el-select>
</el-form-item>
</li>
<li>
<el-form-item label="制单人员:">
<el-select filterable v-model='msg.UpdateBy' class="w135">
<el-option :value="0" :label="$t('pub.unlimitedSel')"></el-option>
<el-option v-for='item in EmployeeList'
:label='item.EmName'
:value='item.EmployeeId'
:key='item.EmployeeId'>
</el-option>
</el-select>
</el-form-item>
</li>
<li>
<el-form-item label="账户类型:">
<el-select filterable v-model='msg.AccountType' class="w135">
<el-option value="" :label="$t('pub.unlimitedSel')"></el-option>
<el-option v-for='item in AccList'
:label='item.Name'
:value='item.ID'
:key='item.ID'>
</el-option>
</el-select>
</el-form-item>
</li>
<li>
<el-form-item label="交易方式:">
<el-select filterable v-model='msg.TradeWay' @change="getAccountList(msg.AccountType,msg.TradeWay),msg.ClientID=''" class="w135">
<el-option :value="0" :label="$t('pub.unlimitedSel')"></el-option>
<el-option v-for='item in BranchAccountList'
:label='item.Name'
:value='item.ID'
:key='item.ID'>
</el-option>
</el-select>
</el-form-item>
</li>
<li>
<el-form-item label="收付款账户:" >
<el-select filterable v-model='msg.BankID' class="w135">
<el-option value="" :label="$t('pub.unlimitedSel')"></el-option>
<el-option v-for='item in accountList'
:label='item.Name'
:value='item.ID'
:key='item.ID'>
</el-option>
</el-select>
</el-form-item>
</li>
<li v-show="msg.Type==2">
<el-form-item label="对象类型:">
<el-select filterable v-model='msg.ClientType' @change="financeinfo_post_GetClientAccountList(msg.ClientType),msg.ClientID=''" class="w135">
<el-option value="" :label="$t('pub.unlimitedSel')"></el-option>
<el-option v-for='item in ClientTypeList'
:label='item.Name'
:value='item.ID'
:key='item.ID'>
</el-option>
</el-select>
</el-form-item>
</li>
<li v-show="msg.Type==2">
<el-form-item label="付款对象:" >
<el-select filterable v-model='msg.ClientID' class="w135">
<el-option value="" :label="$t('pub.unlimitedSel')"></el-option>
<el-option v-for='item in ClientAccountList'
:label='item.Name'
:value='item.ID'
:key='item.ID'>
</el-option>
</el-select>
</el-form-item>
</li>
<li>
<el-form-item label="团队编号:">
<el-input v-model="msg.TCID" class="w135"></el-input>
</el-form-item>
</li>
<li>
<el-form-item label="订单编号:">
<el-input v-model="msg.OrderID" class="w135"></el-input>
</el-form-item>
</li>
<li>
<el-form-item label="币种类型:" >
<el-select filterable v-model='msg.CurrencyId' class="w135">
<el-option v-for="item in currencyTypeList" :key="item.ID" :value="item.ID" :label="item.Name"></el-option>
</el-select>
</el-form-item>
</li>
<li>
<el-form-item label="费用类型:">
<el-select filterable v-model='msg.CostTypeID' class="w135">
<el-option v-for="item in GetCostTypeList" :key="item.ID" :value="item.ID" :label="item.Name"></el-option>
</el-select>
</el-form-item>
</li>
<li>
<el-form-item label="单据金额:" >
<el-input v-model="msg.sMoney" class="w64d5"></el-input>-<el-input v-model="msg.eMoney" class="w64d5"></el-input>
</el-form-item>
</li>
<li>
<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>
</li>
<li class="_hqb_btn">
<button class="normalBtn" @click="getPageList()">确定</button>
</li>
</ul>
</el-form>
</div>
</el-collapse-transition>
</div> -->
<button
class=
"hollowFixedBtn"
@
click=
"resetPageIndex(),getPageList()"
>
{{$t('pub.searchBtn')}}
</button>
<button
class=
"normalBtn"
@
click=
"goUrlAdd('ChoiceAddFinancialDocuments')"
>
{{$t('pub.addBtn')}}
</button>
<button
class=
"normalBtn"
v-if=
"checkboxShow"
@
click=
"Financial_post_SetBatch"
>
{{$t('fnc.piltijiao')}}
</button>
<button
class=
"normalBtn"
@
click=
"method5()"
>
{{$t('visa.v_daochu')}}
</button>
<button
class=
"hollowFixedBtn"
@
click=
"goUrl('WorkEntrustmentMy')"
>
{{$t('fnc.gzweituo')}}
</button>
<button
class=
"hollowFixedBtn"
@
click=
"BOSSBtn = !BOSSBtn, checkList = [], getPageList(1)"
v-if=
"msg.Conditon === 3 && !userMenuCode"
>
{{BOSSBtn ? '关闭一键审批' : '一键审批'}}
</button>
<button
class=
"hollowFixedBtn"
v-if=
"msg.Conditon === 3 && BOSSBtn"
@
click=
"BOSSBtnClick"
>
审批
</button>
</li>
</ul>
</div>
...
...
@@ -531,7 +393,7 @@
<div
class=
"_fnDm_content"
v-loading=
'loading'
:style=
"{minHeight:minHeight+'px'}"
>
<table
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
class=
"singeRowTable"
>
<tr
class=
"_t_head"
>
<th
v-if=
"checkboxShow"
><input
type=
"checkbox"
v-model=
"isCkedAll"
@
click=
'checkedAll()'
></th>
<th
v-if=
"checkboxShow
|| BOSSBtn
"
><input
type=
"checkbox"
v-model=
"isCkedAll"
@
click=
'checkedAll()'
></th>
<th
width=
"90"
>
{{$t('system.query_company')}}
</th>
<th>
{{$t('fnc.danhao')}}
</th>
<th
width=
"90"
>
{{$t('fnc.djleixing')}}
</th>
...
...
@@ -545,7 +407,7 @@
<th>
{{$t('system.table_operation')}}
</th>
</tr>
<tr
class=
"_item_list"
v-for=
"(item,index) in DataList"
>
<td
v-if=
"checkboxShow"
><input
type=
"checkbox"
:value=
"item.FrID"
v-model=
"checkList"
@
change=
"ckeckedOne"
></td>
<td
v-if=
"checkboxShow
|| BOSSBtn
"
><input
type=
"checkbox"
:value=
"item.FrID"
v-model=
"checkList"
@
change=
"ckeckedOne"
></td>
<td>
{{item.BranchName}}
</td>
<td
class=
"Bill_par"
>
<el-popover
...
...
@@ -696,7 +558,7 @@
<div
class=
"noData"
v-show=
"noData"
>
{{$t('system.content_noData')}}
</div>
<div>
<div
v-if=
"!BOSSBtn"
>
<el-pagination
background
@
current-change=
"handleCurrentChange"
...
...
@@ -763,6 +625,29 @@
<el-button
class=
"normalBtn"
type=
"primary"
@
click=
"UpdateTradeDate()"
>
{{$t('pub.sureBtn')}}
</el-button>
</div>
</el-dialog>
<el-dialog
title=
"一键审批"
width=
"400px"
:visible
.
sync=
"BOSSDialog"
center
:close-on-press-escape=
"false"
:close-on-click-modal=
"false"
>
<
template
v-if=
"!BOSSDialogText"
>
<el-form
label-width=
"110px"
>
<el-form-item
:label=
"$t('fnc.shuoming')"
>
<el-input
type=
"textarea"
v-model=
"AuditOrRefundMsg.Description"
class=
"w216"
></el-input>
</el-form-item>
</el-form>
<el-form>
<div
style=
" text-align: center;"
>
<el-radio
v-model=
"AuditOrRefundMsg.Status"
label=
"5"
>
通过
</el-radio>
<el-radio
v-model=
"AuditOrRefundMsg.Status"
label=
"3"
>
驳回
</el-radio>
</div>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
class=
"hollowFixedBtn"
@
click=
"BOSSDialog=false"
>
{{
$t
(
'pub.cancelBtn'
)
}}
</el-button>
<el-button
class=
"normalBtn"
type=
"primary"
@
click=
"bossLen = 1, subBOSSBtnClick()"
>
{{
$t
(
'pub.sureBtn'
)
}}
</el-button>
</div>
</
template
>
<
template
v-else
>
<p
class=
"boss_btn"
>
共计
{{
checkList
.
length
}}
条,当前第
<span>
{{
bossLen
}}
</span>
条。
</p>
<p
class=
"boss_btn_tips"
>
一键审核中请不要进行其他操作。
</p>
</
template
>
</el-dialog>
</div>
</template>
<
script
>
...
...
@@ -879,7 +764,21 @@ export default {
searchList
:[],
minHeight
:
400
,
//当前登录用户功能权限
ActionMenuCode
:
''
ActionMenuCode
:
''
,
BOSSBtn
:
false
,
AuditOrRefundMsg
:{
WorkFlowId
:
''
,
Description
:
''
,
Status
:
'5'
,
Image
:
''
,
TradeDate
:
new
Date
().
Format
(
"yyyy-MM-dd"
),
tradeWays
:[],
emList
:[],
},
bossLen
:
null
,
BOSSDialog
:
false
,
userMenuCode
:
false
,
BOSSDialogText
:
false
,
}
},
created
(){
...
...
@@ -911,6 +810,8 @@ export default {
"my-HB-Bill"
:
myhrBill
,
},
mounted
(){
let
userInfo
=
this
.
getLocalStorage
();
let
userMenuCode
=
','
+
userInfo
.
ActionMenuCode
+
','
;
this
.
userMenuCode
=
userMenuCode
.
indexOf
(
',C_Batch_AuditFinance,'
)
!=
-
1
?
true
:
false
;
this
.
getCompanyMsg
.
RB_Group_Id
=
this
.
employeeMsg
.
GroupId
=
this
.
getDepartmentMsg
.
RB_Group_Id
=
userInfo
.
RB_Group_id
;
//集团ID
this
.
ActionMenuCode
=
userInfo
.
ActionMenuCode
;
this
.
DepartIDs
=
userInfo
.
RB_Department_Id
;
...
...
@@ -927,7 +828,40 @@ export default {
this
.
FinancialFlowTemplate_post_GetStatusList
();
this
.
getPageList
();
this
.
AccountType_post_GetList
();
},
methods
:{
},
methods
:{
subBOSSBtnClick
:
function
()
{
this
.
loading
=
true
;
if
(
this
.
bossLen
&&
this
.
bossLen
<=
this
.
checkList
.
length
)
{
this
.
BOSSDialogText
=
true
;
this
.
AuditOrRefundMsg
.
WorkFlowId
=
this
.
checkList
[
this
.
bossLen
-
1
]
this
.
apipost
(
'Financial_post_AuditOrRefund'
,
this
.
AuditOrRefundMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
){
this
.
bossLen
+=
1
this
.
subBOSSBtnClick
()
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
);
this
.
loading
=
false
;
this
.
checkList
=
[];
this
.
getPageList
(
1
)
}
},
err
=>
{})
}
else
{
this
.
BOSSDialogText
=
false
;
this
.
BOSSDialog
=
false
;
this
.
checkList
=
[];
this
.
$message
.
success
(
'审核完毕'
);
this
.
loading
=
false
;
this
.
getPageList
(
1
)
}
},
BOSSBtnClick
:
function
()
{
if
(
this
.
checkList
.
length
<
1
)
{
this
.
$message
.
error
(
this
.
$t
(
'rule.qxzygxytjddanju'
));
}
else
{
this
.
BOSSDialog
=
true
;
}
},
goTicketPage
(
data
)
{
// 跳转机票
this
.
$router
.
push
({
name
:
'TicketManager'
,
query
:{
id
:
data
.
SourceID
,
blank
:
'y'
,
tab
:
'票务管理'
}
})
},
...
...
@@ -1022,10 +956,15 @@ export default {
}
},
err
=>
{})
},
getPageList
(){
// 获取列表数据
getPageList
(
t
){
// 获取列表数据
this
.
loading
=
true
this
.
checkAllList
=
[];
this
.
checkList
=
[];
if
(
t
)
{
this
.
msg
.
pageSize
=
1000
;
}
else
{
this
.
msg
.
pageSize
=
6
;
}
if
(
this
.
msg
.
Status
==
0
){
this
.
checkboxShow
=
true
;
}
else
{
...
...
@@ -1067,7 +1006,7 @@ export default {
this
.
$message
.
error
(
res
.
data
.
message
);
}
this
.
queryInfoInit
();
this
.
currentPage
=
parseInt
(
this
.
msg
.
pageIndex
);
this
.
currentPage
=
res
.
data
.
data
.
pageCount
},
err
=>
{})
},
financeRemove
(
id
){
//作废
...
...
@@ -1406,6 +1345,8 @@ export default {
goEit
(
path
,
type
,
id
,
edit
,
Conditon
,
pageIndex
){
this
.
$router
.
push
({
name
:
path
,
query
:{
"type"
:
type
,
"FrID"
:
id
,
"edit"
:
edit
,
"Conditon"
:
Conditon
,
"pageIndex"
:
pageIndex
,
blank
:
'y'
,
tab
:
'修改财务单据'
}
})
}
},
watch
:{
}
}
</
script
>
src/components/LeaderManagement/leaderReimbursement.vue
View file @
a697a4f4
...
...
@@ -638,9 +638,10 @@
let
allMoney
=
this
.
TotalNav
.
reimburseTotalPrice
.
PlanPrice
*
0.98
let
totailMoney
=
0
this
.
nav
.
forEach
(
x
=>
{
totailMoney
+=
x
.
LeaderGetPriceT
totailMoney
+=
parseFloat
(
x
.
LeaderGetPriceT
)
})
if
((
allMoney
-
totailMoney
)
<=
0
)
return
this
.
$message
.
error
(
'总制单金额已大于等于总金额,无法制单!'
)
console
.
log
(
allMoney
,
totailMoney
)
if
((
allMoney
-
totailMoney
)
<
0
)
return
this
.
$message
.
error
(
'总制单金额已大于等于总金额,无法制单!'
)
if
(
!
obj
.
LeaderGetPriceT
||
obj
.
LeaderGetPriceT
<=
0
)
return
this
.
$message
.
error
(
'请输入金额!'
)
let
TCIDARR
=
[
obj
.
TCIDS
]
let
orderObj
=
{
...
...
src/components/administrative/outWorkApproval.vue
View file @
a697a4f4
...
...
@@ -59,8 +59,8 @@
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"currentPage"
layout=
"total,prev, pager, next, jumper"
:page-size=
msg.pageSize
:total=
total
>
:page-size=
'msg.pageSize'
:total=
'total'
>
</el-pagination>
<el-dialog
custom-class=
'w500'
:title=
"dialogTitle"
:visible
.
sync=
"outerVisible"
center
>
...
...
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