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
a12b297d
Commit
a12b297d
authored
Dec 01, 2023
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
f7ad0747
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
175 additions
and
9 deletions
+175
-9
ShoppingReimbursement.vue
src/components/ShoppingStore/ShoppingReimbursement.vue
+175
-9
No files found.
src/components/ShoppingStore/ShoppingReimbursement.vue
View file @
a12b297d
...
@@ -384,10 +384,58 @@
...
@@ -384,10 +384,58 @@
</
template
>
</
template
>
</el-dialog>
</el-dialog>
<el-dialog
title=
"生成财务单据"
:visible
.
sync=
"BOSSDialog"
>
<el-dialog
title=
"生成财务单据"
:visible
.
sync=
"BOSSDialogText"
class=
"Shopping_bossdialog"
>
<
template
>
<p
class=
"boss_btn"
>
{{
$t
(
'ios.gongji'
)
}}
{{
selectedRowKeys
.
length
}}
{{
$t
(
'ios.tdqdi'
)
}}
<span>
{{
(
bossLen
>
selectedRowKeys
.
length
)?
selectedRowKeys
.
length
:
bossLen
}}
</span>
<
template
v-if=
"!BOSSDialog"
>
<el-form
label-width=
"110px"
>
<el-row>
<el-col
:span=
"12"
:gutter=
"35"
>
<el-form-item
label=
"上传凭证"
>
<div
class=
"_addUpload_box clearfix"
>
<template
v-for=
"(file,fIndex) in saveMsg"
>
<div
v-if=
"file.Type==3"
>
<div
style=
"width:100%;height:100%;overflow: hidden;"
>
<img
style=
"width:100%;height:100%;"
:src=
"file.Url?file.Url:file.Content"
@
click=
"showUpLoadFile(file)"
>
</div>
<span
class=
"iconfont icon-guanbi1"
@
click=
"deleteUploadFile(fIndex)"
></span>
</div>
<div
v-if=
"file.Type==1"
>
<div
class=
"iconfont "
:class=
"file.Content.substring(file.Content.lastIndexOf('.')+1,file.Content.length).toUpperCase()=='PDF'? 'icon-pdf' : 'icon-excel'"
@
click=
"showUpLoadFile(file)"
>
</div>
<span
class=
"iconfont icon-guanbi1"
@
click=
"deleteUploadFile(fIndex)"
></span>
</div>
<div
v-if=
"file.Type==2"
>
<div
class=
"iconfont icon-excel"
@
click=
"showUpLoadFile(file)"
>
</div>
<span
class=
"iconfont icon-guanbi1"
@
click=
"deleteUploadFile(fIndex)"
></span>
</div>
</
template
>
<div
class=
"_pic_upload"
>
<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"
>
{{$t('active.ld_djscwj')}}
</div>
</el-upload>
</div>
</div>
</el-form-item>
</el-col>
</el-row>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<button
class=
"normalBtn"
type=
"primary"
@
click=
"bossLen = 1, MoreSureCreateBill()"
>
{{$t('pub.saveBtn')}}
</button>
<button
class=
"hollowFixedBtn"
@
click=
"BOSSDialogText=false"
>
{{$t('pub.cancelBtn')}}
</button>
</div>
</template>
<
template
v-else
>
<p
class=
"boss_btn"
>
{{
$t
(
'ios.gongji'
)
}}
{{
selectedRowKeys
.
length
}}
{{
$t
(
'ios.tdqdi'
)
}}
<span>
{{
(
bossLen
>
selectedRowKeys
.
length
)?
selectedRowKeys
.
length
:
bossLen
}}
</span>
{{
$t
(
'ios.tiao'
)
}}
</p>
{{
$t
(
'ios.tiao'
)
}}
</p>
<p
class=
"boss_btn_tips"
>
批量制单中请不要进行其他操作。
</p></
template
>
<p
class=
"boss_btn_tips"
>
批量制单中请不要进行其他操作。
</p>
</
template
>
</el-dialog>
</el-dialog>
</div>
</div>
...
@@ -403,6 +451,7 @@
...
@@ -403,6 +451,7 @@
{
Name
:
'公司佣金'
,
Id
:
3
},
{
Name
:
'公司佣金'
,
Id
:
3
},
{
Name
:
'PIC部分'
,
Id
:
4
},
{
Name
:
'PIC部分'
,
Id
:
4
},
],
],
checkAll
:
false
,
//全选状态
checkAll
:
false
,
//全选状态
selectedRowKeys
:
[],
//选中的key
selectedRowKeys
:
[],
//选中的key
FinanceTypes
:
[
0
],
//佣金类型
FinanceTypes
:
[
0
],
//佣金类型
...
@@ -439,6 +488,9 @@
...
@@ -439,6 +488,9 @@
CurrentOutItem
:
{},
//当前选中的团
CurrentOutItem
:
{},
//当前选中的团
bossLen
:
null
,
bossLen
:
null
,
BOSSDialog
:
false
,
BOSSDialog
:
false
,
BOSSDialogText
:
false
,
//上传数组
saveMsg
:[],
userMenuCode
:
false
,
userMenuCode
:
false
,
HandShow
:
false
,
HandShow
:
false
,
nMsg
:
{
nMsg
:
{
...
@@ -448,7 +500,9 @@
...
@@ -448,7 +500,9 @@
FinanceType
:
"3,4"
,
FinanceType
:
"3,4"
,
LeaderAccountId
:
0
,
LeaderAccountId
:
0
,
GuideAccountId
:
0
,
GuideAccountId
:
0
,
IsFee
:
1
IsFee
:
1
,
VoucherList
:[],
IsBatch
:
1
},
},
}
}
},
},
...
@@ -732,7 +786,9 @@
...
@@ -732,7 +786,9 @@
this
.
loading
=
false
;
this
.
loading
=
false
;
this
.
selectedRowKeys
=
[];
this
.
selectedRowKeys
=
[];
this
.
getList
();
this
.
getList
();
this
.
saveMsg
=
[];
this
.
BOSSDialog
=
false
;
this
.
BOSSDialog
=
false
;
this
.
BOSSDialogText
=
false
;
return
;
return
;
}
else
{
}
else
{
this
.
apipost
(
"dmcstatistics_post_BatchShopCreateBill"
,
this
.
nMsg
,
this
.
apipost
(
"dmcstatistics_post_BatchShopCreateBill"
,
this
.
nMsg
,
...
@@ -745,7 +801,9 @@
...
@@ -745,7 +801,9 @@
this
.
loading
=
false
;
this
.
loading
=
false
;
this
.
selectedRowKeys
=
[];
this
.
selectedRowKeys
=
[];
this
.
getList
();
this
.
getList
();
this
.
saveMsg
=
[];
this
.
BOSSDialog
=
false
;
this
.
BOSSDialog
=
false
;
this
.
BOSSDialogText
=
false
;
}
}
});
});
}
}
...
@@ -755,13 +813,17 @@
...
@@ -755,13 +813,17 @@
this
.
loading
=
false
;
this
.
loading
=
false
;
this
.
selectedRowKeys
=
[];
this
.
selectedRowKeys
=
[];
this
.
getList
();
this
.
getList
();
this
.
saveMsg
=
[];
this
.
BOSSDialog
=
false
;
this
.
BOSSDialog
=
false
;
this
.
BOSSDialogText
=
false
;
}
}
},
},
err
=>
{}
err
=>
{}
);
);
}
else
{
}
else
{
this
.
BOSSDialog
=
false
;
this
.
BOSSDialog
=
false
;
this
.
BOSSDialogText
=
false
;
this
.
saveMsg
=
[];
this
.
selectedRowKeys
=
[];
this
.
selectedRowKeys
=
[];
this
.
$message
.
success
(
"批量制单成功!"
);
this
.
$message
.
success
(
"批量制单成功!"
);
this
.
loading
=
false
;
this
.
loading
=
false
;
...
@@ -769,11 +831,19 @@
...
@@ -769,11 +831,19 @@
this
.
getList
();
this
.
getList
();
}
}
},
},
MoreCreateBill
()
{
MoreCreateBill
(){
if
(
this
.
selectedRowKeys
&&
this
.
selectedRowKeys
.
length
==
0
){
if
(
this
.
selectedRowKeys
&&
this
.
selectedRowKeys
.
length
==
0
){
this
.
$message
.
E
rror
(
"请至少选择一个团!"
);
this
.
$message
.
e
rror
(
"请至少选择一个团!"
);
return
;
return
;
}
}
this
.
saveMsg
=
[];
this
.
BOSSDialog
=
false
;
this
.
BOSSDialogText
=
true
;
},
MoreSureCreateBill
()
{
this
.
$confirm
(
'是否批量生成财务单据?'
,
this
.
$t
(
'tips.tips'
),
{
this
.
$confirm
(
'是否批量生成财务单据?'
,
this
.
$t
(
'tips.tips'
),
{
confirmButtonText
:
`确定`
,
confirmButtonText
:
`确定`
,
cancelButtonText
:
`取消`
,
cancelButtonText
:
`取消`
,
...
@@ -783,7 +853,65 @@
...
@@ -783,7 +853,65 @@
this
.
BOSSDialog
=
true
;
this
.
BOSSDialog
=
true
;
this
.
increment
();
this
.
increment
();
}).
catch
(()
=>
{});
}).
catch
(()
=>
{});
},
},
showUpLoadFile
(
i
){
// 预览上传文件
if
(
i
.
Type
==
3
){
this
.
picObj
.
push
(
i
.
Url
);
this
.
imgList
.
push
(
i
.
Url
);
this
.
picIsShow
=
false
;
// this.hideFlashMan = true;
}
else
{
if
(
i
.
Content
.
substring
(
i
.
Content
.
lastIndexOf
(
'.'
)
+
1
,
i
.
Content
.
length
).
toUpperCase
()
==
'PDF'
){
this
.
previewPDF
(
i
.
Url
)
}
else
{
window
.
open
(
"https://view.officeapps.live.com/op/view.aspx?src="
+
i
.
Url
)
}
}
},
deleteUploadFile
(
i
){
// 删除上传文件
this
.
saveMsg
.
splice
(
i
,
1
);
this
.
nMsg
.
VoucherList
=
this
.
saveMsg
;
},
uploadFileBtn
(
file
)
{
//上传
if
(
file
.
file
.
size
>
1024
*
1024
*
10
)
{
this
.
Error
(
'文件大小不能超过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
.
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
.
saveMsg
.
push
({
Content
:
x
.
data
.
FilePath
,
ID
:
0
,
Type
:
fileTypeNumber
,
Url
:
this
.
domainManager
().
ViittoFileUrl
+
x
.
data
.
FilePath
,
})
console
.
log
(
"x"
,
x
,
"saveMsg"
,
this
.
saveMsg
);
this
.
nMsg
.
VoucherList
=
this
.
saveMsg
;
this
.
Success
(
'上传成功'
);
});
},
financeinfo_post_GetClientAccountList
(
ObjID
,
type
)
{
//获取付款 对象类型 新增用
financeinfo_post_GetClientAccountList
(
ObjID
,
type
)
{
//获取付款 对象类型 新增用
let
msg
=
{
let
msg
=
{
ID
:
0
,
ID
:
0
,
...
@@ -827,8 +955,6 @@
...
@@ -827,8 +955,6 @@
myDate
.
getDate
();
myDate
.
getDate
();
this
.
msg
.
StartDate
=
nowDate
;
this
.
msg
.
StartDate
=
nowDate
;
this
.
msg
.
LineId
=
14
;
//默认日本线
this
.
msg
.
LineId
=
14
;
//默认日本线
//this.msg.StartDate = '2019-09-04';
// this.msg.CombinationNum = 'JVS0703HP-MUB';
this
.
getLineList
();
this
.
getLineList
();
this
.
getList
();
this
.
getList
();
},
},
...
@@ -877,4 +1003,44 @@
...
@@ -877,4 +1003,44 @@
border-right
:
0
;
border-right
:
0
;
}
}
.Shopping_bossdialog
._addUpload_box
{
display
:
initial
;
margin-top
:
20px
;
width
:
138px
!important
;
}
.Shopping_bossdialog
._addUpload_box
>
div
{
float
:
left
;
width
:
138px
;
height
:
92px
;
border-radius
:
2px
;
cursor
:
pointer
;
padding
:
5px
;
margin
:
0
10px
10px
0
;
position
:
relative
;
}
.Shopping_bossdialog
._addUpload_box
.icon-guanbi1
{
font-size
:
12px
;
color
:
white
;
display
:
inline-block
;
margin-left
:
15px
;
position
:
absolute
;
right
:
-6px
;
top
:
-9px
;
background-color
:
#f56c6c
;
border-radius
:
50%
;
height
:
20px
;
width
:
20px
;
text-align
:
center
;
line-height
:
20px
;
}
.Shopping_bossdialog
._addUpload_box
.icon-guanbi1
:hover
{
font-size
:
12px
;
color
:
#c94052
;
}
/
deep
/
.Shopping_bossdialog
._pic_upload
.el-upload-dragger
{
width
:
126px
!important
;
height
:
80px
!important
;
}
</
style
>
</
style
>
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