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
d7491db8
Commit
d7491db8
authored
Aug 15, 2025
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
0360400c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
503 additions
and
1 deletion
+503
-1
AddComplaints.vue
src/components/Complaints/AddComplaints.vue
+203
-0
ComplaintsDetail.vue
src/components/Complaints/ComplaintsDetail.vue
+275
-1
listManagerMixin.js
src/components/common/mixins/listManagerMixin.js
+17
-0
config.js
src/router/config.js
+8
-0
No files found.
src/components/Complaints/AddComplaints.vue
View file @
d7491db8
...
...
@@ -96,6 +96,91 @@
width
:
757px
!important
;
}
._addUpload_tips
{
font-size
:
12px
;
color
:
#999999
;
}
._addUpload_box
{
display
:
block
;
margin-top
:
15px
}
._addUpload_box
img
{
width
:
100%
;
height
:
100%
;
}
._addUpload_box
>
div
{
float
:
left
;
width
:
138px
;
height
:
92px
;
border
:
1px
dashed
rgba
(
210
,
210
,
210
,
1
);
border-radius
:
2px
;
cursor
:
pointer
;
margin-bottom
:
10px
;
padding
:
5px
;
margin-right
:
10px
;
position
:
relative
;
}
._addUpload_box
>
div
:hover
{
background-color
:
#f5f5f5
;
}
._addFile_name
{
padding-left
:
15px
;
max-width
:
450px
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
._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
;
}
._addUpload_box
.icon-guanbi1
:hover
{
font-size
:
12px
;
color
:
#c94052
;
}
._addUpload_box
.icon-excel
,
._addUpload_box
.icon-pdf
{
text-align
:
center
;
font-size
:
38px
;
color
:
green
;
line-height
:
75px
;
}
._show_img_box
{
position
:
fixed
;
background
:
rgba
(
0
,
0
,
0
,
.6
);
left
:
0
;
top
:
0
;
width
:
100%
;
height
:
100%
;
z-index
:
999
;
text-align
:
center
;
}
.AC_content
.el-upload-dragger
{
width
:
126px
!important
;
height
:
80px
!important
;
}
</
style
>
<
template
>
...
...
@@ -140,6 +225,42 @@
</li>
</ul>
</div>
<div
v-if=
"userInfo.SimpleEasy==1"
>
<p>
{{
$t
(
'fnc.scfujian'
)
}}
<span
class=
"_addUpload_tips"
>
{{
$t
(
'tips.wjdxbncgsz'
)
}}
</span></p>
<div
class=
"_addUpload_box clearfix"
>
<template
v-for=
"(file,fIndex) in saveMsg"
>
<div
v-if=
"file.FileType==3"
>
<div
style=
"width:100%;height:100%;overflow: hidden;"
>
<img
: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.FileType==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.FileType==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>
</div>
<el-input
type=
"textarea"
style=
"margin-top:10px;"
:rows=
"5"
v-model=
"EditMsg.Description"
:placeholder=
"$t('objFill.v101.Complaints.jutiwtmstsr')"
></el-input>
<p
style=
"margin: 15px 0"
>
{{$t('objFill.v101.Complaints.zhidinclr')}}
</p>
<el-select
class=
"w150"
v-model=
"EditMsg.NextPersion"
filterable
:placeholder=
"$t('pub.pleaseSel')"
>
...
...
@@ -152,12 +273,24 @@
<!--<input type="button" class="normalBtn" value="暂存" @click="SaveData(1)"/>-->
<input
type=
"button"
class=
"normalBtn"
:value=
"$t('pub.cancelBtn')"
/>
</p>
<div
v-if=
'picIsShow'
class=
"_show_img_box"
@
click=
"picIsShow=false,picObj=[]"
>
<div
style=
"position: absolute; width: 800px; height: 600px; left: 50%; top: 50%; margin-left: -400px; margin-top: -300px;"
>
<el-carousel
:initial-index=
initialIndex
height=
"600px"
:interval=
"5000"
trigger=
"click"
>
<el-carousel-item
style=
"height: 600px;overflow:auto;"
v-for=
"(item,index) in picObj"
:key=
"index"
>
<img
:src=
"item"
style=
""
/>
</el-carousel-item>
</el-carousel>
</div>
</div>
</div>
</template>
<
script
>
export
default
{
data
()
{
return
{
userInfo
:{},
//主题内容
themeList
:
[],
//严重程度
...
...
@@ -168,6 +301,10 @@
severityCked
:
[],
//员工
EmployeeList
:
[],
saveMsg
:[],
picObj
:
[],
picIsShow
:
false
,
initialIndex
:
0
,
//添加修改投诉
EditMsg
:
{
ID
:
0
,
//编号
...
...
@@ -181,6 +318,7 @@
NextPersion
:
''
,
//下一个审核人
LineID
:
0
,
// 线路id
LineteamId
:
0
,
//系列id
FileDataList
:[],
},
//查询参数
QMsg
:
{
...
...
@@ -195,6 +333,64 @@
mounted
()
{
},
methods
:
{
showUpLoadFile
(
i
)
{
// 预览上传文件
if
(
i
.
FileType
==
3
)
{
this
.
picObj
.
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
{
window
.
open
(
"https://view.officeapps.live.com/op/view.aspx?src="
+
i
.
Url
)
}
}
},
deleteUploadFile
(
i
)
{
// 删除上传文件
this
.
saveMsg
.
splice
(
i
,
1
);
},
uploadFileBtn
(
file
)
{
//上传
if
(
file
.
file
.
size
>
1024
*
1024
*
10
)
{
this
.
$message
.
warning
(
this
.
$t
(
'tips.wjdxbncgsz'
))
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
(
this
.
$t
(
'tips.qscWEfile'
));
let
newArr
=
[];
newArr
.
push
(
file
.
file
)
let
path
=
"/Upload/Temporary/"
this
.
$message
.
info
(
this
.
$t
(
'tips.shangchuanzhong'
))
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
,
FileType
:
fileTypeNumber
,
Name
:
x
.
data
.
SourceFileName
,
Url
:
this
.
domainManager
().
ViittoFileUrl
+
x
.
data
.
FilePath
,
})
this
.
$message
.
success
(
this
.
$t
(
'tips.scchenggong'
))
console
.
log
(
"this.saveMsg"
,
this
.
saveMsg
);
},
1
);
},
//选取主题内容
getTheme
(
item
)
{
item
.
isCheck
=
!
item
.
isCheck
;
...
...
@@ -283,6 +479,12 @@
this
.
EditMsg
.
SeverityLevel
=
x
.
Id
;
}
});
if
(
this
.
saveMsg
!=
null
&&
this
.
saveMsg
.
length
>
0
){
this
.
EditMsg
.
FileDataList
=
this
.
saveMsg
;
}
else
{
this
.
EditMsg
.
FileDataList
=
[];
}
this
.
apipost
(
'conplain_post_Set'
,
this
.
EditMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
Success
(
this
.
$t
(
'objFill.v101.administrative.tianjiacg'
));
...
...
@@ -341,6 +543,7 @@
this
.
EditMsg
.
ID
=
this
.
$route
.
query
.
id
;
},
mounted
()
{
this
.
userInfo
=
this
.
getLocalStorage
();
this
.
getEnumeration
();
this
.
getEmployeeList
();
}
...
...
src/components/Complaints/ComplaintsDetail.vue
View file @
d7491db8
This diff is collapsed.
Click to expand it.
src/components/common/mixins/listManagerMixin.js
View file @
d7491db8
...
...
@@ -29,6 +29,7 @@ export const listManagerMixin = {
IsLeave
:
0
,
},
EmployeeList
:
[],
//员工
BranchList
:[],
//公司
//单选产品订单状态
OrderStatusType
:
[
// { Name: this.$t('OrderList.orderStatus.apply'), ID: '1' },
...
...
@@ -58,6 +59,22 @@ export const listManagerMixin = {
}
},
async
getBranch
()
{
//公司
try
{
this
.
apipost
(
'admin_Get_GetCompanyDepartMentEmployeeForChar'
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
BranchList
=
res
.
data
.
data
;
}
},
err
=>
{})
}
catch
(
error
)
{
console
.
error
(
"加载数据失败:"
,
error
);
this
.
$message
.
error
(
"网络请求失败"
);
return
null
;
}
finally
{
}
},
// 通用数据加载方法
async
loadData
(
apiName
,
params
=
{})
{
...
...
src/router/config.js
View file @
d7491db8
...
...
@@ -1905,6 +1905,14 @@ export default {
title
:
'邮轮订单'
},
},
{
path
:
'/cruiseshipVisaOrderList'
,
name
:
'cruiseshipVisaOrderList'
,
component
:
resolve
=>
require
([
'@/components/cruiseshipVisa/list/cruiseshipVisaOrderList'
],
resolve
),
meta
:
{
title
:
'签证订单'
},
},
{
path
:
'/cruiseShipOrderListOP'
,
name
:
'cruiseShipOrderListOP'
,
...
...
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