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
5ae65cea
Commit
5ae65cea
authored
Nov 23, 2023
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
ed392837
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
26 deletions
+40
-26
FinancialDocumentsDetail.vue
src/components/FinancialModule/FinancialDocumentsDetail.vue
+40
-26
No files found.
src/components/FinancialModule/FinancialDocumentsDetail.vue
View file @
5ae65cea
...
@@ -1117,11 +1117,28 @@
...
@@ -1117,11 +1117,28 @@
<div
class=
"shangchuanfujian"
><button
class=
"hollowFixedBtn"
@
click=
"upLoadFuJian"
>
上传附件
</button></div>
<div
class=
"shangchuanfujian"
><button
class=
"hollowFixedBtn"
@
click=
"upLoadFuJian"
>
上传附件
</button></div>
</div>
</div>
</div>
</div>
<!-- 是否需要发票 -->
<div
style=
"border-top: 1px solid #dedede;margin-top: 10px;
</div>
<div
class=
"_fujian_box"
v-if=
"GetDetail.VorcherInos
&&GetDetail.VorcherInos.length===0
&&GetDetail.IsUploadPic===1
&&saveMsg.length===0"
>
<div
style=
"margin-top: 80px;"
>
<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=
""
>
<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"
>
上传附件
</button></div>
</div>
</div>
<!-- 是否需要发票 -->
<div
class=
"_fujian_box"
style=
"border-top: 1px solid #dedede;margin-top: 650px;
padding: 0 0 10px 0;"
padding: 0 0 10px 0;"
v-if=
"GetDetail.KingdeeInvoice&&(GetDetail.KingdeeInvoice==1||GetDetail.KingdeeInvoice==3)
v-if=
"(GetDetail.CreateBy==userInfo.EmployeeId
&&(GetDetail.CreateBy==userInfo.EmployeeId
||GetDetail.InvoiceExamineBy==userInfo.EmployeeId
||GetDetail.InvoiceExamineBy==userInfo.EmployeeId
||ActionMenuCode.indexOf('F_Query_AllIncomPay')!= -1)"
>
||ActionMenuCode.indexOf('F_Query_AllIncomPay')!= -1)"
>
<p
<p
...
@@ -1133,7 +1150,7 @@
...
@@ -1133,7 +1150,7 @@
</span>
</span>
</p>
</p>
<div
class=
"_addUpload_box _addUpload_box_btm clearfix"
>
<div
class=
"_addUpload_box _addUpload_box_btm clearfix"
>
<
template
v-if=
"GetDetail.InvoiceVoucherInfo&&GetDetail.InvoiceVoucherInfo.length>0"
<
!-- <
template v-if="GetDetail.InvoiceVoucherInfo&&GetDetail.InvoiceVoucherInfo.length>0"
v-for="(file,fIndex) in GetDetail.InvoiceVoucherInfo">
v-for="(file,fIndex) in GetDetail.InvoiceVoucherInfo">
<div v-if="file.Type==3">
<div v-if="file.Type==3">
<div style="width:100%;height:100%;overflow: hidden;">
<div style="width:100%;height:100%;overflow: hidden;">
...
@@ -1151,7 +1168,7 @@
...
@@ -1151,7 +1168,7 @@
@click="showUpLoadFile(file)">
@click="showUpLoadFile(file)">
</div>
</div>
</div>
</div>
</
template
>
</template>
-->
<
template
v-if=
"InvoiceVoucherList.length>0"
<
template
v-if=
"InvoiceVoucherList.length>0"
v-for=
"(file,fIndex) in InvoiceVoucherList"
>
v-for=
"(file,fIndex) in InvoiceVoucherList"
>
<div
v-if=
"file.Type==3"
>
<div
v-if=
"file.Type==3"
>
...
@@ -1192,25 +1209,6 @@
...
@@ -1192,25 +1209,6 @@
</div>
</div>
</div>
</div>
</div>
<div
class=
"_fujian_box"
v-if=
"GetDetail.VorcherInos
&&GetDetail.VorcherInos.length===0
&&GetDetail.IsUploadPic===1
&&saveMsg.length===0"
>
<div
style=
"margin-top: 80px;"
>
<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=
""
>
<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"
>
上传附件
</button></div>
</div>
</div>
</div>
</div>
<p
class=
"_splic"
>
<p
class=
"_splic"
>
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
...
@@ -2190,6 +2188,8 @@
...
@@ -2190,6 +2188,8 @@
Id
:
this
.
ID
,
Id
:
this
.
ID
,
InvoiceVoucherList
:
this
.
InvoiceVoucherList
InvoiceVoucherList
:
this
.
InvoiceVoucherList
};
};
console
.
log
(
"this.InvoiceVoucherList"
,
this
.
InvoiceVoucherList
);
this
.
apipost
(
'Financial_post_UpdateInvoiceVoucher'
,
msg
,
res
=>
{
this
.
apipost
(
'Financial_post_UpdateInvoiceVoucher'
,
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
$message
.
success
(
'上传成功'
);
this
.
$message
.
success
(
'上传成功'
);
...
@@ -2568,11 +2568,21 @@
...
@@ -2568,11 +2568,21 @@
});
});
},
},
deleteUploadFile
(
i
,
type
)
{
// 删除上传文件
deleteUploadFile
(
i
,
type
)
{
// 删除上传文件
if
(
type
==
1
){
this
.
$confirm
(
"一旦删除不可恢复, 确认删除?"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
})
.
then
(()
=>
{
if
(
type
==
1
){
this
.
InvoiceVoucherList
.
splice
(
i
,
1
);
this
.
InvoiceVoucherList
.
splice
(
i
,
1
);
}
else
{
}
else
{
this
.
saveMsg
.
splice
(
i
,
1
);
this
.
saveMsg
.
splice
(
i
,
1
);
}
}
})
.
catch
(()
=>
{});
},
},
showUpLoadFile
(
i
)
{
// 预览上传文件
showUpLoadFile
(
i
)
{
// 预览上传文件
...
@@ -2640,6 +2650,10 @@
...
@@ -2640,6 +2650,10 @@
},
res
=>
{
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
let
data
=
res
.
data
.
data
;
let
data
=
res
.
data
.
data
;
//2023-11-23 add by:W
if
(
data
.
InvoiceVoucherInfo
){
this
.
InvoiceVoucherList
=
data
.
InvoiceVoucherInfo
;
}
data
.
DetailList
.
forEach
(
x
=>
{
data
.
DetailList
.
forEach
(
x
=>
{
x
.
UnitPrice
=
this
.
$commonUtils
.
addCommas
(
Math
.
round
(
x
.
UnitPrice
*
100
)
/
100
)
x
.
UnitPrice
=
this
.
$commonUtils
.
addCommas
(
Math
.
round
(
x
.
UnitPrice
*
100
)
/
100
)
x
.
Money
=
Math
.
round
(
x
.
Money
*
100
)
/
100
x
.
Money
=
Math
.
round
(
x
.
Money
*
100
)
/
100
...
...
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