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
1624f2c2
Commit
1624f2c2
authored
Nov 10, 2023
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
单据 发票审核
parent
dfededf1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
359 additions
and
36 deletions
+359
-36
BasicDocuments.vue
src/components/FinancialModule/BasicDocuments.vue
+58
-5
FinancialDocuments.vue
src/components/FinancialModule/FinancialDocuments.vue
+2
-2
FinancialDocumentsDetail.vue
src/components/FinancialModule/FinancialDocumentsDetail.vue
+150
-19
RecPayQuery.vue
src/components/FinancialModule/RecPayQuery.vue
+93
-10
index.vue
src/components/index.vue
+56
-0
No files found.
src/components/FinancialModule/BasicDocuments.vue
View file @
1624f2c2
...
...
@@ -1103,6 +1103,35 @@
<button
class=
"hollowFixedBtn"
@
click=
"upLoadFuJian"
>
上传附件
</button>
</div>
</div>
<div
style=
"border-top: 1px solid #dedede;margin-top: 10px;
padding: 0 0 10px 0;"
v-if=
"GetDetail.KingdeeInvoice&&(GetDetail.KingdeeInvoice==1||GetDetail.KingdeeInvoice==3)"
>
<p
style=
"margin-top: 10px;"
>
<span
style=
"color: red;"
>
需要发票
</span>
</p>
<div
class=
"_addUpload_box _addUpload_box_btm clearfix"
v-if=
"GetDetail.InvoiceVoucherInfo.length>0"
style=
"overflow: hidden;max-height: auto;"
>
<
template
v-for=
"(file,fIndex) in GetDetail.InvoiceVoucherInfo"
>
<div
v-if=
"file.Type==3"
>
<div
style=
"width:100%;height:100%;overflow: hidden;"
>
<el-image
style=
"width: 100%; height: auto"
:src=
"file.Url?file.Url:file.Content"
:preview-src-list=
"[file.Url?file.Url:file.Content]"
>
</el-image>
<!--
<img
:src=
"file.Url?file.Url:file.Content"
@
click=
"showImg(file.Url?file.Url:file.Content)"
>
-->
</div>
</div>
<div
v-if=
"file.Type==1"
>
<div
class=
"iconfont _wenjian_P"
:class=
"file.Content.substring(file.Content.lastIndexOf('.')+1,file.Content.length).toUpperCase()=='PDF'? 'icon-pdf' : 'icon-excel'"
@
click=
"showUpLoadFileT(file)"
>
</div>
</div>
</
template
>
</div>
</div>
</div>
</div>
<div
class=
"w890px"
>
...
...
@@ -1268,7 +1297,7 @@
<span
class=
"_sn"
v-if=
"son.AuditStatus==2"
>
通过
</span>
<span
class=
"_m"
v-if=
"son.AuditStatus==4"
>
驳回
</span>
<span
v-if=
"GetDetail.RB_Branch_Id == 1220 && GetDetail.IsShowFY==0 && (GetDetail.TemplateId == 247 || GetDetail.TemplateId == 245) && son.AuditEmId == 2739"
>
<span
v-if=
"GetDetail.RB_Branch_Id == 1220 && GetDetail.IsShowFY==0 && (GetDetail.TemplateId == 247 || GetDetail.TemplateId == 245) && son.AuditEmId == 2739"
>
<span
style=
"color:red"
>
*返佣制单
</span>
:
<el-checkbox
v-model=
"AuditOrRefundMsg.AutoFinanceType"
:true-label=
"1"
:false-label=
"0"
></el-checkbox>
<el-select
v-if=
"AuditOrRefundMsg.AutoFinanceType==1"
filterable
v-model=
'AuditOrRefundMsg.FCostTypeId'
class=
" _border_b_1"
style=
"width:130px"
>
<el-option
label=
'房费送客手数料'
value=
'1851'
key=
'1851'
></el-option>
...
...
@@ -1586,7 +1615,7 @@
<p
class=
"_pp_info"
>
转交备注:
{{
z
.
Remarks
?
z
.
Remarks
:
'无'
}}
</p>
</div>
</
template
>
<span
v-if=
"GetDetail.RB_Branch_Id == 1220 && GetDetail.IsShowFY==0 && (GetDetail.TemplateId == 247 || GetDetail.TemplateId == 245) && son.AuditEmId == 2739"
>
<span
v-if=
"GetDetail.RB_Branch_Id == 1220 && GetDetail.IsShowFY==0 && (GetDetail.TemplateId == 247 || GetDetail.TemplateId == 245) && son.AuditEmId == 2739"
>
<span
style=
"color:red"
>
*返佣制单
</span>
:
<el-checkbox
v-model=
"AuditOrRefundMsg.AutoFinanceType"
:true-label=
"1"
:false-label=
"0"
></el-checkbox>
<el-select
v-if=
"AuditOrRefundMsg.AutoFinanceType==1"
filterable
v-model=
'AuditOrRefundMsg.FCostTypeId'
class=
" _border_b_1"
style=
"width:130px"
>
<el-option
label=
'房费送客手数料'
value=
'1851'
key=
'1851'
></el-option>
...
...
@@ -2000,7 +2029,7 @@
</
template
>
</div>
<p
style=
"color: red;"
v-if=
"GetDetail.Status==4"
>
该单据已作废,无法审核
</p>
<div
style=
"padding-left: 75px;"
v-if=
"GetDetail.Status!=2
"
>
<div
style=
"padding-left: 75px;"
v-if=
"GetDetail.Status!=2"
>
<!-- v-if="GetDetail.Status!=4 && !GetDetail.SigningCustomerId" -->
<
template
v-if=
"GetDetail.Status!=4 && financeShow"
>
<button
class=
"normalBtn"
@
click=
"AuditOrRefund()"
>
保存
</button>
...
...
@@ -2015,6 +2044,15 @@
</template>
</div>
</div>
<!-- 发票审核 -->
<div
class=
"_submit"
v-if=
"returnCode==8"
>
<div
style=
"padding-left: 75px;"
>
<el-button
:loading=
"InvoiceLoading"
class=
"normalBtn"
@
click=
"AuditInvoice()"
>
通过
</el-button>
<button
class=
"hollowFixedBtn"
@
click=
"ReturnBack()"
>
返回
</button>
</div>
</div>
<div
class=
"_submit"
v-if=
"GetDetail.Is_Self==1&& MsgUrl"
>
<div>
<label>
转交人:
</label>
...
...
@@ -2246,7 +2284,8 @@
F_PayMoney_CapitalPool
:
false
,
is_financeShow
:
false
,
isReceivablesAccount
:
false
,
clientData
:
{}
clientData
:
{},
InvoiceLoading
:
false
}
},
components
:
{
...
...
@@ -2273,6 +2312,21 @@
OrderReceivablesAccount
},
methods
:
{
// 发票审核
AuditInvoice
(){
this
.
InvoiceLoading
=
true
this
.
apipost
(
'Financial_post_ExamineFinanceInvoice'
,
{
Id
:
this
.
GetDetail
.
FrID
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
$message
.
success
(
'操作成功'
)
this
.
InvoiceLoading
=
false
this
.
ReturnBack
()
}
else
{
this
.
Error
(
res
.
data
.
message
)
}
},
err
=>
{})
},
// 获取订单客户收款账号
getReceivablesAccount
(
OrderID
){
this
.
apipost
(
'Financial_post_GetCanActivityContractInfo'
,
{
...
...
@@ -2325,7 +2379,6 @@
this
.
imgList
.
push
(
i
.
Url
);
this
.
picIsShow
=
true
;
}
else
{
if
(
i
.
Content
.
substring
(
i
.
Content
.
lastIndexOf
(
'.'
)
+
1
,
i
.
Content
.
length
).
toUpperCase
()
==
'PDF'
)
{
this
.
previewPDF
(
i
.
Url
)
}
else
{
...
...
src/components/FinancialModule/FinancialDocuments.vue
View file @
1624f2c2
...
...
@@ -593,7 +593,7 @@
<li
:class=
"active==7?'_active':''"
@
click=
"getActive(7,7,-1)"
>
{{
$t
(
'ios.bbhuide'
)
}}
<span
v-if=
"rejectNum !=='' && rejectNum>=0"
style=
"color:red"
>
(
{{
rejectNum
}}
)
</span></li>
<li
:class=
"active==4?'_active':''"
@
click=
"getActive(4,4,-1)"
>
{{
$t
(
'ios.csgwode'
)
}}
</li>
<li
:class=
"active==8?'_active':''"
@
click=
"getActive(8,8,-1)"
>
发票审核
</li>
<li
class=
"hight_query"
style=
"float:right;"
>
<span>
<em
@
click
.
stop=
"heightQueryBox=!heightQueryBox"
>
{{
$t
(
'fnc.gjchaxun'
)
}}
<i
...
...
@@ -1040,7 +1040,7 @@
@
click=
"goUrl('CapitalAllocationDetail',item.FrID,active,msg.pageIndex)"
></i>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"$t('fnc.shenhe')"
placement=
"top"
>
<i
v-if=
"
msg.Conditon==3 && item.Is_Self!=1
"
class=
"iconfont icon-ico_commodity_defaul"
<i
v-if=
"
(msg.Conditon==3 && item.Is_Self!=1)||(msg.Conditon==8 && item.Is_Self!=1)
"
class=
"iconfont icon-ico_commodity_defaul"
@
click=
"goUrl('BasicDocuments',item.FrID,active,msg.pageIndex)"
></i>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"催审"
placement=
"top"
>
...
...
src/components/FinancialModule/FinancialDocumentsDetail.vue
View file @
1624f2c2
...
...
@@ -596,9 +596,8 @@
}
.FinancialDocumentsDetail
._addUpload_box_btm
{
padding-top
:
2
0px
;
margin-top
:
1
0px
;
max-height
:
230px
;
overflow
:
auto
;
}
._addUpload_box_btm
img
{
...
...
@@ -1089,7 +1088,7 @@
</div>
</div>
<div>
<div
class=
"_addUpload_box _addUpload_box_btm clearfix"
>
<div
class=
"_addUpload_box _addUpload_box_btm clearfix"
v-if=
"saveMsg.length>0"
>
<
template
v-for=
"(file,fIndex) in saveMsg"
>
<div
v-if=
"file.Type==3"
>
<div
style=
"width:100%;height:100%;overflow: hidden;"
>
...
...
@@ -1108,7 +1107,7 @@
</
template
>
</div>
</div>
<div
style=
"margin-top:
8
0px;"
>
<div
style=
"margin-top:
1
0px;"
>
<div
class=
"_pic_upload"
v-if=
"GetDetail.IsUploadPic===1"
>
<!--<div class="_pic_upload" v-if="saveMsg.length!==5 && ((saveMsg.length + GetDetail.VorcherInos.length) < 5)">-->
<el-upload
drag
:http-request=
"uploadFileBtn"
:multiple=
"true"
:show-file-list=
"false"
action=
""
>
...
...
@@ -1118,6 +1117,54 @@
</div>
<div
class=
"shangchuanfujian"
><button
class=
"hollowFixedBtn"
@
click=
"upLoadFuJian"
>
上传附件
</button></div>
</div>
<!-- 是否需要发票 -->
<div
style=
"border-top: 1px solid #dedede;margin-top: 10px;
padding: 0 0 10px 0;"
v-if=
"GetDetail.KingdeeInvoice&&(GetDetail.KingdeeInvoice==1||GetDetail.KingdeeInvoice==3)"
>
<p
style=
"margin-top: 10px;"
>
<span
style=
"color: red;"
>
需要发票
</span>
</p>
<div
class=
"_addUpload_box _addUpload_box_btm clearfix"
v-if=
"InvoiceVoucherList.length>0"
>
<
template
v-for=
"(file,fIndex) in InvoiceVoucherList"
>
<div
v-if=
"file.Type==3"
>
<div
style=
"width:100%;height:100%;overflow: hidden;"
>
<el-image
style=
"width: 100%; height: auto"
:src=
"file.Url?file.Url:file.Content"
:preview-src-list=
"[file.Url?file.Url:file.Content]"
>
</el-image>
<!--
<img
:src=
"file.Url?file.Url:file.Content"
@
click=
"showImg(file.Url?file.Url:file.Content)"
>
-->
</div>
<span
class=
"iconfont icon-guanbi1"
v-if=
"(GetDetail.CreateBy==userInfo.EmployeeId||GetDetail.InvoiceExamineBy==userInfo.EmployeeId)&&GetDetail.InvoiceState!=2"
@
click=
"deleteUploadFile(fIndex,1)"
></span>
</div>
<div
v-if=
"file.Type==1"
>
<div
class=
"iconfont _wenjian_P"
:class=
"file.Content.substring(file.Content.lastIndexOf('.')+1,file.Content.length).toUpperCase()=='PDF'? 'icon-pdf' : 'icon-excel'"
@
click=
"showUpLoadFileT(file)"
>
</div>
<span
class=
"iconfont icon-guanbi1"
v-if=
"(GetDetail.CreateBy==userInfo.EmployeeId||GetDetail.InvoiceExamineBy==userInfo.EmployeeId)&&GetDetail.InvoiceState!=2"
@
click=
"deleteUploadFile(fIndex,1)"
></span>
</div>
</
template
>
</div>
<div
style=
"margin-top: 10px;"
v-if=
"(GetDetail.CreateBy==userInfo.EmployeeId||GetDetail.InvoiceExamineBy==userInfo.EmployeeId)&&GetDetail.InvoiceState!=2"
>
<div
class=
"_pic_upload"
>
<!--<div class="_pic_upload" v-if="saveMsg.length!==5 && ((saveMsg.length + GetDetail.VorcherInos.length) < 5)">-->
<el-upload
drag
:http-request=
"uploadFileBtnFP"
:multiple=
"true"
:show-file-list=
"false"
action=
""
>
<i
class=
"el-icon-plus avatar-uploader-icon"
></i>
<div
class=
"el-upload__text"
>
点击/拖拽上传发票
</div>
</el-upload>
</div>
<div
class=
"shangchuanfujian"
><button
class=
"hollowFixedBtn"
@
click=
"upLoadFuJian(1)"
>
上传发票
</button></div>
</div>
</div>
</div>
<div
class=
"_fujian_box"
v-if=
"GetDetail.VorcherInos
&&GetDetail.VorcherInos.length===0
...
...
@@ -1134,6 +1181,8 @@
<div
class=
"shangchuanfujian"
><button
class=
"hollowFixedBtn"
@
click=
"upLoadFuJian"
>
上传附件
</button></div>
</div>
</div>
</div>
<p
class=
"_splic"
>
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
...
...
@@ -1506,6 +1555,7 @@
export
default
{
data
()
{
return
{
InvoiceVoucherList
:[],
//发票附件
isCostTypeId
:
false
,
//地接费(领取)用款计划
isOrderOP
:
false
,
//是否跳转op订单页面
tableShowHandFee
:
true
,
...
...
@@ -2047,19 +2097,54 @@
}
},
err
=>
{})
},
upLoadFuJian
:
function
()
{
if
(
this
.
saveMsg
.
length
===
0
)
return
this
.
$message
.
error
(
'请上传文件!'
);
let
msg
=
{
FrID
:
this
.
ID
,
vorcherInos
:
this
.
saveMsg
};
this
.
apipost
(
'Financial_post_SetVoucher'
,
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
Financial_post_GetDetail
(
this
.
ID
)
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
);
upLoadFuJian
(
type
)
{
// 保存发票
if
(
type
==
1
){
let
that
=
this
if
(
this
.
InvoiceVoucherList
.
length
===
0
)
return
this
.
$message
.
error
(
'请上传发票文件!'
);
if
(
this
.
GetDetail
.
Is_Merge
===
1
&&
this
.
ZhiDanRen
!==
this
.
bossID
){
this
.
$confirm
(
'合并单据,共用发票文件'
,
this
.
$t
(
"tips.tips"
),
{
confirmButtonText
:
this
.
$t
(
"pub.sureBtn"
),
cancelButtonText
:
this
.
$t
(
"pub.cancelBtn"
),
type
:
"warning"
})
.
then
(()
=>
{
that
.
setUpdateInvoiceVoucher
()
})
.
catch
(()
=>
{
});
}
else
{
that
.
setUpdateInvoiceVoucher
()
}
},
null
)
}
else
{
if
(
this
.
saveMsg
.
length
===
0
)
return
this
.
$message
.
error
(
'请上传文件!'
);
let
msg
=
{
FrID
:
this
.
ID
,
vorcherInos
:
this
.
saveMsg
};
this
.
apipost
(
'Financial_post_SetVoucher'
,
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
Financial_post_GetDetail
(
this
.
ID
)
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
);
}
},
null
)
}
},
// 保存发票接口
setUpdateInvoiceVoucher
(){
let
msg
=
{
Id
:
this
.
ID
,
InvoiceVoucherList
:
this
.
InvoiceVoucherList
};
this
.
apipost
(
'Financial_post_UpdateInvoiceVoucher'
,
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
Financial_post_GetDetail
(
this
.
ID
)
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
);
}
},
null
)
},
bohui
()
{
this
.
finacialDialog
=
true
;
...
...
@@ -2349,6 +2434,46 @@
}
})
},
uploadFileBtnFP
(
file
)
{
//上传发票
if
(
file
.
file
.
size
>
1024
*
1024
*
10
)
{
this
.
$message
.
warning
(
'文件大小不能超过10M!'
)
return
}
// 1 文档 2 数据 3 图片
let
typeArr
=
[{
stringArr
:
'GIF|JPG|JPEG|PNG|BMP'
,
type
:
3
},
{
stringArr
:
'DOCX|DOC|XLSX|XLS|PPT|PPTX|PDF'
,
type
:
1
},
]
let
ft
=
file
.
file
.
name
.
substring
(
file
.
file
.
name
.
lastIndexOf
(
'.'
)
+
1
,
file
.
file
.
name
.
length
).
toUpperCase
();
let
fileTypeNumber
=
2
;
let
typeOk
=
false
;
typeArr
.
forEach
(
x
=>
{
if
(
x
.
stringArr
.
indexOf
(
ft
)
!=
'-1'
)
{
fileTypeNumber
=
x
.
type
;
typeOk
=
true
;
}
});
if
(
!
typeOk
)
return
this
.
$message
.
error
(
'请上传图片、word、excel类型的文件!'
);
let
newArr
=
[];
newArr
.
push
(
file
.
file
)
let
path
=
"/Upload/Temporary/"
this
.
$message
.
info
(
'上传中...'
)
this
.
UploadSelfFileT
(
path
,
newArr
,
x
=>
{
let
fileSize
=
file
.
file
.
size
<
1024
?
file
.
file
.
size
:
(
file
.
file
.
size
/
1024
).
toFixed
(
0
);
this
.
InvoiceVoucherList
.
push
({
Type
:
fileTypeNumber
,
Content
:
x
.
data
.
FilePath
,
Url
:
this
.
domainManager
().
ViittoFileUrl
+
x
.
data
.
FilePath
,
});
this
.
$message
.
success
(
'上传成功'
);
});
},
uploadFileBtn
(
file
)
{
//上传
if
(
file
.
file
.
size
>
1024
*
1024
*
10
)
{
this
.
$message
.
warning
(
'文件大小不能超过10M!'
)
...
...
@@ -2388,8 +2513,12 @@
this
.
$message
.
success
(
'上传成功'
);
});
},
deleteUploadFile
(
i
)
{
// 删除上传文件
this
.
saveMsg
.
splice
(
i
,
1
);
deleteUploadFile
(
i
,
type
)
{
// 删除上传文件
if
(
type
==
1
){
this
.
InvoiceVoucherList
.
splice
(
i
,
1
);
}
else
{
this
.
saveMsg
.
splice
(
i
,
1
);
}
},
showUpLoadFileT
(
i
)
{
// 预览上传文件
if
(
i
.
Type
==
3
)
{
...
...
@@ -2528,7 +2657,9 @@
this
.
FrID
=
this
.
GetDetail
.
FrID
;
this
.
SourceID
=
this
.
GetDetail
.
SourceID
;
this
.
Callback
=
this
.
GetDetail
.
Callback
;
if
(
this
.
GetDetail
.
InvoiceVoucherInfo
&&
this
.
GetDetail
.
InvoiceVoucherInfo
.
length
>
0
){
this
.
InvoiceVoucherList
=
JSON
.
parse
(
JSON
.
stringify
((
this
.
GetDetail
.
InvoiceVoucherInfo
)))
}
if
(
this
.
GetDetail
.
DetailList
.
length
>
0
)
{
this
.
GetDetail
.
DetailList
.
forEach
(
item
=>
{
if
(
item
.
CostTypeName
==
"差旅费"
)
{
...
...
src/components/FinancialModule/RecPayQuery.vue
View file @
1624f2c2
...
...
@@ -63,6 +63,16 @@
</el-form-item>
</el-col>
<template
v-if=
"heightQueryBox"
>
<!-- 发票标识 -->
<el-col
:span=
"4"
v-if=
"true"
>
<el-form-item
label=
"发票标识:"
>
<el-select
filterable
v-model=
'msg.InvoiceState'
class=
""
>
<el-option
v-for=
"item in KingdeelnvoiceList"
:key=
"item.Id"
:value=
"item.Id"
:label=
"item.Name"
></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"4"
>
<el-form-item
label=
"费用类型:"
>
<el-select
filterable
v-model=
'msg.CostTypeID'
>
...
...
@@ -173,28 +183,28 @@
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"
6
"
>
<el-col
:span=
"
5
"
>
<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-col
:span=
"
5
"
>
<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-col
:span=
"
5
"
>
<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>
<el-col
:span=
"
6
"
>
<el-col
:span=
"
5
"
>
<el-form-item
label=
"备注查询:"
>
<el-input
v-model=
"msg.Remark"
></el-input>
</el-form-item>
...
...
@@ -225,8 +235,16 @@
style=
"font-size: 12px;"
></i></em>
</span>
<button
class=
"hollowFixedBtn"
@
click=
"resetPageIndex(),getPageList()"
>
{{$t('pub.searchBtn')}}
</button>
<button
class=
"normalBtn"
@
click=
"method5()"
>
导出
</button>
<button
v-if=
"userinfo.PostName=='财务总监'"
class=
"normalBtn"
@
click=
"method5(1)"
>
日本导出
</button>
<el-button
:loading=
"loadingDC"
class=
"normalBtn"
@
click=
"method5()"
>
导出
</el-button>
<el-button
:loading=
"loadingDC1"
v-if=
"userinfo.PostName=='财务总监'"
class=
"normalBtn"
@
click=
"method5(1)"
>
日本导出
</el-button>
<el-button
:loading=
"loadingDC2"
class=
"normalBtn"
@
click=
"method5(2)"
>
发票导出
</el-button>
</li>
</ul>
</div>
...
...
@@ -561,7 +579,27 @@
outline: none;"
class=
"iconfont icon-bianji"
@
click=
"showPayment(scope.row.FrID)"
>
</i>
</el-tooltip>
<el-tooltip
class=
"item"
v-if=
"scope.row.KingdeeInvoice>0&&scope.row.KingdeeInvoice!=3"
:content=
"scope.row.KingdeeInvoice==1?'不需要发票':'需要发票'"
placement=
"top"
>
<i
style=
"width: 30px;
height: 30px;
display: inline-block;
color: white !important;
border-radius: 50%;
text-align: center;
line-height: 30px;
margin-right: 10px;
cursor: pointer;
outline: none;"
:style=
"
{
'background-color':scope.row.KingdeeInvoice!=3?'#47BF8C':'rgba(71,191,140,0.5)'
}"
:class="[scope.row.KingdeeInvoice==1?'el-icon-open':'el-icon-turn-off']"
@click="EditInvoiceStatus(scope.row)">
</i>
</el-tooltip>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -661,7 +699,7 @@
<
template
v-if=
"transactionTax"
>
<shouxufei
:transTax=
"transTax"
@
success=
"close(),resetPageIndex(),getPageList()"
@
close=
"close"
></shouxufei>
</
template
>
<!--修改付款对象-->
>
<!--修改付款对象-->
<el-dialog
title=
"修改垫付对象"
width=
"300px"
:visible
.
sync=
"PaymentSync"
center
>
<el-form
class=
"cdForm"
label-width=
"90px"
>
<el-form-item
label=
"客户类型"
prop=
"ClientType"
>
...
...
@@ -700,6 +738,15 @@
export
default
{
data
()
{
return
{
loadingDC
:
false
,
loadingDC1
:
false
,
loadingDC2
:
false
,
isKingdeeInvoice
:
1
,
//1 是 2否 3禁止编辑
KingdeelnvoiceList
:[
{
Name
:
'不限'
,
Id
:
0
},
{
Name
:
'未上传发票附件'
,
Id
:
1
},
// {Name:'发票附件待审核',Id:2},
],
userinfo
:{},
alltransaction
:
[],
transactionmode
:
false
,
...
...
@@ -719,6 +766,7 @@
zhuanjiaoBox
:
false
,
searchList
:
[],
msg
:
{
InvoiceState
:
0
,
pageIndex
:
1
,
pageSize
:
5
,
FrID
:
''
,
...
...
@@ -943,6 +991,28 @@
})
},
methods
:
{
// 是否需要发票
EditInvoiceStatus
(
row
){
let
KingdeeInvoice
if
(
row
.
KingdeeInvoice
==
1
){
KingdeeInvoice
=
2
}
else
if
(
row
.
KingdeeInvoice
==
2
){
KingdeeInvoice
=
1
}
this
.
apipost
(
"Financial_post_UpdateKingdeeInvoice"
,
{
Id
:
row
.
FrID
,
KingdeeInvoice
:
KingdeeInvoice
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
getPageList
();
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
err
=>
{})
},
showjiaoyi
(
FrId
)
{
//弹出交易方式修改
...
...
@@ -1113,12 +1183,14 @@
},
method5
(
type
)
{
let
url
=
'Financial_post_DownInOrOut'
if
(
type
==
1
){
if
(
type
==
1
){
//日本导出
url
=
'Financial_post_DownInOrOutForJapanPay'
if
(
this
.
msg
.
AuditId
==
''
&&!
this
.
msg
.
AuditId
){
this
.
$message
.
error
(
'请选择待审核人'
);
return
}
}
else
if
(
type
==
2
){
//发票导出
url
=
'Financial_post_DownFinanceNoInvoice'
}
if
(
!
this
.
msg
.
ClientID
)
this
.
msg
.
ClientID
=
0
;
if
(
!
this
.
msg
.
ClientType
)
this
.
msg
.
ClientType
=
0
;
...
...
@@ -1137,7 +1209,18 @@
if
(
!
this
.
msg
.
AccountType
)
this
.
msg
.
AccountType
=
0
;
if
(
!
this
.
msg
.
KJCostTypeId
)
this
.
msg
.
KJCostTypeId
=
0
;
if
(
!
this
.
msg
.
IsSelectKJSetCostType
)
this
.
msg
.
IsSelectKJSetCostType
=
0
;
this
.
GetLocalFile
(
url
,
this
.
msg
,
"收支款.xls"
);
if
(
type
==
1
){
this
.
loadingDC1
=
true
}
else
if
(
type
==
2
){
this
.
loadingDC2
=
true
}
else
{
this
.
loadingDC
=
true
}
this
.
GetLocalFile
(
url
,
this
.
msg
,
"收支款.xls"
,
x
=>
{
this
.
loadingDC
=
false
this
.
loadingDC1
=
false
this
.
loadingDC2
=
false
});
},
financeRemove
(
id
)
{
//作废
this
.
$confirm
(
'是否对申请单进行作废操作?作废后不可恢复!'
,
'提示'
,
{
...
...
src/components/index.vue
View file @
1624f2c2
...
...
@@ -173,6 +173,10 @@
@
click
.
native=
"goUrlT('FinancialDocuments',3,'财务单据')"
>
<i
class=
"iconfont icon-nav-caiwu"
style=
"color:#8e44ad"
></i>
财务单
<el-badge
v-if=
"NotDealCount8>0"
class=
"mark"
:value=
"NotDealCount8?NotDealCount8:0"
type=
"primary"
style=
"right: 65px;"
@
click
.
native
.
stop=
"goUrlT('FinancialDocuments',8,'财务单据')"
/>
<el-badge
class=
"mark"
:value=
"NotDealCount?NotDealCount:'0'"
/>
<i
class=
"iconfont icon-right1"
></i>
</el-dropdown-item>
...
...
@@ -1472,6 +1476,7 @@
isFirstLoad
:
true
,
unReadMsgId
:
[],
isFocus
:
true
,
NotDealCount8
:
""
,
NotDealCount
:
""
,
MyAuditCount
:
""
,
sysMsgPageIndex
:
1
,
...
...
@@ -1869,6 +1874,7 @@
if
(
this
.
boxInfo
.
y
==
0
)
{
this
.
boxInfo
.
y
=
280
;
}
this
.
GetExamineFinanceInvoiceList
();
this
.
Financial_post_GetNotDealCount
();
this
.
app_user_workflow_MyAuditCount
();
this
.
refreshSysNoteDate
();
...
...
@@ -2419,6 +2425,56 @@
}
return
result
;
},
// 发票审核提示
GetExamineFinanceInvoiceList
()
{
let
msg
=
{
pageIndex
:
1
,
pageSize
:
5
,
FrID
:
"0"
,
sDate
:
""
,
eDate
:
""
,
Status
:
"-1"
,
TemplateId
:
"0"
,
RB_Branch_Id
:
-
1
,
RB_Depart_Id
:
0
,
sTradeDate
:
""
,
eTradeDate
:
""
,
ClientType
:
0
,
RemitterName
:
""
,
ClientID
:
0
,
sMoney
:
""
,
eMoney
:
""
,
CurrencyId
:
"0"
,
CostTypeID
:
0
,
Conditon
:
1
,
TCNUM
:
""
,
TradeWay
:
0
,
Type
:
"0"
,
AccountType
:
0
,
QEndDate
:
""
,
QStartDate
:
""
,
UpdateBy
:
0
,
IsFormRecPayQuery
:
"1"
,
KJCostTypeId
:
0
,
IsSelectKJSetCostType
:
0
,
Remark
:
""
,
Sort
:
"2"
,
KingdeeMark
:
"0"
,
AuditId
:
""
,
TCID
:
0
,
OrderID
:
0
,
EmployeeId
:
this
.
userInfo
.
EmployeeId
}
this
.
apipost
(
"Financial_post_GetExamineFinanceInvoiceList"
,
msg
,
r
=>
{
if
(
r
.
data
.
resultCode
==
1
)
{
this
.
NotDealCount8
=
r
.
data
.
data
.
FinanceCount
;
}
},
null
);
},
Financial_post_GetNotDealCount
()
{
this
.
apipost
(
"Financial_post_GetNotDealCount"
,
{},
...
...
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