Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
罗超
confucius
Commits
937c05e7
Commit
937c05e7
authored
May 06, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
05fcbc7e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
200 additions
and
52 deletions
+200
-52
schedul-orderlist.vue
src/components/schedul/schedul-orderlist.vue
+200
-52
No files found.
src/components/schedul/schedul-orderlist.vue
View file @
937c05e7
...
@@ -242,45 +242,36 @@
...
@@ -242,45 +242,36 @@
v-model=
"addMsg2.OtherContent"
:rows=
"5"
></el-input>
v-model=
"addMsg2.OtherContent"
:rows=
"5"
></el-input>
<q-btn
color=
"accent"
size=
"sm"
style=
"float:right;margin-top:10px;"
@
click=
"saveTufa"
label=
"保存"
/>
<q-btn
color=
"accent"
size=
"sm"
style=
"float:right;margin-top:10px;"
@
click=
"saveTufa"
label=
"保存"
/>
</div>
</div>
<div
slot=
"reference"
class=
"addSche"
>
<div
slot=
"reference"
class=
"addSche"
@
click=
"clearAddMsg2"
>
<i
class=
"iconfont icon-img_haha"
></i>
<i
class=
"iconfont icon-img_haha"
></i>
</div>
</div>
</el-popover>
</el-popover>
</div>
</div>
<div
class=
"secondList_Bottom"
>
<div
class=
"secondList_Bottom"
>
<div
class=
"tufa_List"
>
<div
class=
"tufa_List"
>
<div
class=
"tufa_left"
>
<div
class=
"tufa_left"
v-if=
"EmergenciesObj&&EmergenciesObj.FileList"
>
<img
src=
"../../assets/images/tufa.png
"
/>
<img
:src=
"EmergenciesObj.FileList[0]
"
/>
</div>
</div>
<div>
<div
v-if=
"EmergenciesObj.OtherContent"
>
打开门面,把电视打开,打扫前台和每处卫生
{{EmergenciesObj.OtherContent}}
注意:不能在前台吃早饭
</div>
</div>
</div>
</div>
<!-- <div class="sche_List_in">
<div class="sche_ListInner" v-if="EmergenciesObj">{{EmergenciesObj.OtherContent}}</div>
</div> -->
</div>
</div>
<div
class=
"tufa_btm"
>
<div
class=
"tufa_btm"
>
<div>
<div>
<div
class=
"tufa_xiugai"
>
<div
class=
"tufa_xiugai"
>
<el-popover
placement=
"bottom"
popper-class=
"tufaPop"
width=
"4
0
0"
trigger=
"click"
>
<el-popover
placement=
"bottom"
popper-class=
"tufaPop"
width=
"4
1
0"
trigger=
"click"
>
<div>
<div>
<el-upload
action=
"https://testopenapi.nbdeli.com/crm/customer/saveChannelLogoFile"
<el-upload
class=
"schedul_Upload"
action=
""
list-type=
"picture-card"
:show-file-list=
"true"
:on-preview=
"handlePictureCardPreview"
:on-success=
"handleUploadSuccess"
list-type=
"picture-card"
:file-list=
"fileListTwo"
:on-remove=
"handleRemoveEdit"
:http-request=
"UploadEdit"
>
:on-remove=
"handleRemove"
:file-list=
"fileList"
>
<i
class=
"el-icon-plus"
></i>
<i
class=
"el-icon-plus"
></i>
</el-upload>
</el-upload>
<el-dialog
:visible
.
sync=
"dialogVisible"
>
<el-input
type=
"textarea"
style=
"margin-top:20px;"
v-model=
"addMsg2.OtherContent"
:rows=
"4"
/>
<img
width=
"100%"
:src=
"ruleForm.dialogImageUrl"
alt
/>
<q-btn
color=
"accent"
size=
"sm"
style=
"float:right;margin-top:10px;"
@
click=
"saveEdit(EmergenciesObj)"
label=
"保存"
/>
</el-dialog>
<el-input
type=
"textarea"
:rows=
"4"
/>
<q-btn
color=
"accent"
size=
"sm"
style=
"float:right;margin-top:10px;"
@
click=
"saveTufa"
label=
"保存"
/>
</div>
</div>
<span
slot=
"reference"
style=
"margin-right:10px;cursor:pointer;"
>
修改
</span>
<span
slot=
"reference"
style=
"margin-right:10px;cursor:pointer;"
@
click=
"EditTufa(EmergenciesObj)"
>
修改
</span>
</el-popover>
</el-popover>
|
<span
style=
"margin-left:10px;cursor:pointer;"
>
删除
</span>
|
<span
style=
"margin-left:15px;cursor:pointer;"
@
click=
"delTufa()"
>
删除
</span>
<q-btn
color=
"accent"
style=
"margin-left:10px;"
slot=
"reference"
size=
"sm"
label=
"确认完成"
/>
</div>
</div>
</div>
</div>
<div
class=
" sche_Fenye"
v-if=
"saveObj&&saveObj.EmergenciesList.length>0"
>
<div
class=
" sche_Fenye"
v-if=
"saveObj&&saveObj.EmergenciesList.length>0"
>
...
@@ -306,28 +297,44 @@
...
@@ -306,28 +297,44 @@
:class=
"{'schNoneNum':saveObj.HandoverList.length==0}"
>
{{this.saveObj.HandoverList.length}}
</span>
:class=
"{'schNoneNum':saveObj.HandoverList.length==0}"
>
{{this.saveObj.HandoverList.length}}
</span>
<el-popover
placement=
"bottom"
popper-class=
"tufaPop"
width=
"400"
trigger=
"click"
>
<el-popover
placement=
"bottom"
popper-class=
"tufaPop"
width=
"400"
trigger=
"click"
>
<div>
<div>
<el-upload
class=
"schedul_Upload"
action=
""
:style=
"{'background-image': 'url('+addMsg3.FileURL+')'}
"
<el-upload
class=
"schedul_Upload"
action=
""
list-type=
"picture-card"
:show-file-list=
"true
"
:
show-file-list=
"false
"
:http-request=
"UploadJiaojie"
>
:
file-list=
"fileListThree"
:on-remove=
"jiaojieRemoveAdd
"
:http-request=
"UploadJiaojie"
>
<i
class=
"el-icon-plus"
></i>
<i
class=
"el-icon-plus"
></i>
<div
class=
"upDiv"
></div>
</el-upload>
</el-upload>
<el-input
type=
"textarea"
style=
"margin-top:20px;"
resize=
"none"
placeholder=
"添加文字内容"
<el-input
type=
"textarea"
style=
"margin-top:20px;"
resize=
"none"
placeholder=
"添加文字内容"
v-model=
"addMsg3.OtherContent"
:rows=
"5"
></el-input>
v-model=
"addMsg3.OtherContent"
:rows=
"5"
></el-input>
<q-btn
color=
"accent"
size=
"sm"
style=
"float:right;margin-top:10px;"
@
click=
"saveJiaojie"
label=
"保存"
/>
<q-btn
color=
"accent"
size=
"sm"
style=
"float:right;margin-top:10px;"
@
click=
"saveJiaojie"
label=
"保存"
/>
</div>
</div>
<div
slot=
"reference"
class=
"addSche"
>
<div
slot=
"reference"
class=
"addSche"
@
click=
"clearAddMsg3"
>
<i
class=
"iconfont icon-img_haha"
></i>
<i
class=
"iconfont icon-img_haha"
></i>
</div>
</div>
</el-popover>
</el-popover>
</div>
</div>
<div
class=
"secondList_Bottom"
>
<div
class=
"secondList_Bottom"
>
<div
class=
"sche_ListInner"
v-if=
"HandoverObj"
>
{{HandoverObj.OtherContent}}
</div>
<div
class=
"tufa_List"
>
<div
class=
"tufa_left"
v-if=
"HandoverObj&&HandoverObj.FileList"
>
<img
:src=
"HandoverObj.FileList[0]"
/>
</div>
<div
v-if=
"HandoverObj.OtherContent"
>
{{HandoverObj.OtherContent}}
</div>
</div>
</div>
</div>
<div
class=
"tufa_btm"
>
<div
class=
"tufa_btm"
>
<div>
<div>
<div
class=
"tufa_xiugai"
>
<div
class=
"tufa_xiugai"
>
<span
style=
"margin-right:10px;"
>
修改
</span>
|
<span
style=
"margin-left:10px;"
>
删除
</span>
<el-popover
placement=
"bottom"
popper-class=
"tufaPop"
width=
"410"
trigger=
"click"
>
<q-btn
color=
"accent"
style=
"margin-left:10px;"
slot=
"reference"
size=
"sm"
label=
"确认完成"
/>
<div>
<el-upload
class=
"schedul_Upload"
action=
""
list-type=
"picture-card"
:show-file-list=
"true"
:file-list=
"fileListFour"
:on-remove=
"jiaoRemoveEdit"
:http-request=
"jiaojieEdit"
>
<i
class=
"el-icon-plus"
></i>
</el-upload>
<el-input
type=
"textarea"
style=
"margin-top:20px;"
v-model=
"addMsg3.OtherContent"
:rows=
"4"
/>
<q-btn
color=
"accent"
size=
"sm"
style=
"float:right;margin-top:10px;"
@
click=
"saveJJEdit(HandoverObj)"
label=
"保存"
/>
</div>
<span
slot=
"reference"
style=
"margin-right:10px;cursor:pointer;"
@
click=
"EditJiaojie(HandoverObj)"
>
修改
</span>
</el-popover>
|
<span
style=
"margin-left:10px;cursor:pointer;"
@
click=
"delJiaojie()"
>
删除
</span>
</div>
</div>
</div>
</div>
<div
class=
" sche_Fenye"
v-if=
"saveObj&&saveObj.HandoverList.length>0"
>
<div
class=
" sche_Fenye"
v-if=
"saveObj&&saveObj.HandoverList.length>0"
>
...
@@ -346,7 +353,8 @@
...
@@ -346,7 +353,8 @@
</template>
</template>
<
script
>
<
script
>
import
{
import
{
SetDutyContent
SetDutyContent
,
RemoveDutyContent
}
from
'../../api/scheduling/schedu'
}
from
'../../api/scheduling/schedu'
import
{
import
{
UploadSelfFile
UploadSelfFile
...
@@ -397,7 +405,11 @@
...
@@ -397,7 +405,11 @@
ruleForm
:
{
ruleForm
:
{
dialogImageUrl
:
"1"
,
//专区logo 上传到后台之后,后台会返回一个id,只需要给后台传id,但是点击编辑的时候后台返回的是http地址
dialogImageUrl
:
"1"
,
//专区logo 上传到后台之后,后台会返回一个id,只需要给后台传id,但是点击编辑的时候后台返回的是http地址
},
},
fileListOne
:[],
fileListOne
:[],
//突发新增图片数组
fileListTwo
:[],
//突发修改图片数组
fileListThree
:[],
//交接说明图片数组
fileListFour
:[],
//交接修改图片数组
}
}
},
},
created
()
{
created
()
{
...
@@ -483,7 +495,8 @@
...
@@ -483,7 +495,8 @@
UploadJiaojie
(
files
)
{
UploadJiaojie
(
files
)
{
UploadSelfFile
(
'Attachment'
,
files
.
file
,
res
=>
{
UploadSelfFile
(
'Attachment'
,
files
.
file
,
res
=>
{
if
(
res
.
Code
==
1
)
{
if
(
res
.
Code
==
1
)
{
this
.
addMsg3
.
FileURL
=
res
.
FileUrl
;
this
.
addMsg3
.
FileList
.
push
(
res
.
FileUrl
);
this
.
fileListThree
.
push
({
url
:
res
.
FileUrl
})
}
}
})
})
},
},
...
@@ -512,6 +525,26 @@
...
@@ -512,6 +525,26 @@
this
.
$refs
.
hengLine
.
click
();
this
.
$refs
.
hengLine
.
click
();
})
})
},
},
//保存编辑突发
saveEdit
(
obj
){
this
.
addMsg2
.
PlanShift
=
obj
.
PlanShift
;
this
.
addMsg2
.
PlanId
=
obj
.
PlanId
;
this
.
addMsg2
.
Id
=
obj
.
Id
;
SetDutyContent
(
this
.
addMsg2
).
then
(
res
=>
{
this
.
$emit
(
'refreshPage'
);
this
.
$refs
.
hengLine
.
click
();
})
},
//保存编辑交接
saveJJEdit
(
obj
){
this
.
addMsg3
.
PlanShift
=
obj
.
PlanShift
;
this
.
addMsg3
.
PlanId
=
obj
.
PlanId
;
this
.
addMsg3
.
Id
=
obj
.
Id
;
SetDutyContent
(
this
.
addMsg3
).
then
(
res
=>
{
this
.
$emit
(
'refreshPage'
);
this
.
$refs
.
hengLine
.
click
();
})
},
//交接工作
//交接工作
saveJiaojie
()
{
saveJiaojie
()
{
this
.
addMsg3
.
PlanShift
=
this
.
saveObj
.
Shift
;
this
.
addMsg3
.
PlanShift
=
this
.
saveObj
.
Shift
;
...
@@ -522,9 +555,27 @@
...
@@ -522,9 +555,27 @@
})
})
},
},
//删除交接新增图片
jiaojieRemoveAdd
(
file
,
fileList
){
this
.
fileListThree
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
url
==
file
.
url
)
{
this
.
fileListThree
.
splice
(
index
,
1
)
}
})
this
.
addMsg3
.
FileList
.
forEach
((
item
,
index
)
=>
{
if
(
item
==
file
.
url
)
{
this
.
addMsg3
.
FileList
.
splice
(
index
,
1
)
}
})
},
//删除突发新增图片
//删除突发新增图片
handleRemoveAdd
(
file
,
fileList
){
handleRemoveAdd
(
file
,
fileList
){
this
.
fileList
.
forEach
((
item
,
index
)
=>
{
this
.
fileList
One
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
url
==
file
.
url
)
if
(
item
.
url
==
file
.
url
)
{
{
this
.
fileListOne
.
splice
(
index
,
1
)
this
.
fileListOne
.
splice
(
index
,
1
)
...
@@ -538,28 +589,125 @@
...
@@ -538,28 +589,125 @@
})
})
},
},
//删除突发编辑图片
handleRemoveEdit
(
file
,
fileList
){
this
.
fileListTwo
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
url
==
file
.
url
)
//删除图片
{
handleRemove
(
file
,
fileList
)
{
this
.
fileListTwo
.
splice
(
index
,
1
)
console
.
log
(
file
);
}
this
.
uploadDisabled
=
false
;
})
this
.
addMsg2
.
FileList
.
forEach
((
item
,
index
)
=>
{
if
(
item
==
file
.
url
)
{
this
.
addMsg2
.
FileList
.
splice
(
index
,
1
)
}
})
},
},
//上传中
jiaoRemoveEdit
(
file
,
fileList
){
handlePictureCardPreview
(
file
)
{
this
.
fileListFour
.
forEach
((
item
,
index
)
=>
{
this
.
dialogImageUrl
=
file
.
url
;
if
(
item
.
url
==
file
.
url
)
console
.
log
(
this
.
dialogImageUrl
);
{
this
.
dialogVisible
=
true
;
this
.
fileListFour
.
splice
(
index
,
1
)
this
.
uploadDisabled
=
true
;
}
})
this
.
addMsg3
.
FileList
.
forEach
((
item
,
index
)
=>
{
if
(
item
==
file
.
url
)
{
this
.
addMsg3
.
FileList
.
splice
(
index
,
1
)
}
})
},
},
//上传成功
UploadEdit
(
files
)
{
handleUploadSuccess
(
file
)
{
UploadSelfFile
(
'Attachment'
,
files
.
file
,
res
=>
{
this
.
ruleForm
.
dialogImageUrl
=
file
.
result
;
//专区logoId
if
(
res
.
Code
==
1
)
{
this
.
uploadDisabled
=
true
;
this
.
addMsg2
.
FileList
.
push
(
res
.
FileUrl
);
this
.
fileListTwo
.
push
({
url
:
res
.
FileUrl
})
}
})
},
//
jiaojieEdit
(
files
){
UploadSelfFile
(
'Attachment'
,
files
.
file
,
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
addMsg3
.
FileList
.
push
(
res
.
FileUrl
);
this
.
fileListFour
.
push
({
url
:
res
.
FileUrl
})
}
})
},
},
//修改突发
EditTufa
(
obj
){
console
.
log
(
obj
,
'obj'
);
this
.
addMsg2
.
OtherContent
=
obj
.
OtherContent
;
this
.
addMsg2
.
FileList
=
obj
.
FileList
;
this
.
fileListTwo
=
[];
obj
.
FileList
.
forEach
(
x
=>
{
this
.
fileListTwo
.
push
({
url
:
x
})
})
},
EditJiaojie
(
obj
){
console
.
log
(
obj
,
'objjjj'
);
this
.
addMsg3
.
OtherContent
=
obj
.
OtherContent
;
this
.
addMsg3
.
FileList
=
obj
.
FileList
;
this
.
fileListFour
=
[];
obj
.
FileList
.
forEach
(
x
=>
{
this
.
fileListFour
.
push
({
url
:
x
})
})
},
//删除突发
delTufa
(){
this
.
$nextTick
(()
=>
{
var
Obj
=
this
.
saveObj
.
EmergenciesList
[
this
.
EmergenciesIndex
];
let
msg
=
{
Id
:
Obj
.
Id
}
SetDutyContent
(
msg
).
then
(
res
=>
{
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
timeout
:
2000
,
message
:
res
.
Message
,
position
:
'top'
})
this
.
EmergenciesIndex
=
0
;
this
.
$emit
(
'refreshPage'
);
this
.
$forceUpdate
();
})
})
},
//删除交接
delJiaojie
(){
this
.
$nextTick
(()
=>
{
var
Obj
=
this
.
saveObj
.
HandoverList
[
this
.
HandoverIndex
];
let
msg
=
{
Id
:
Obj
.
Id
}
SetDutyContent
(
msg
).
then
(
res
=>
{
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
timeout
:
2000
,
message
:
res
.
Message
,
position
:
'top'
})
this
.
HandoverIndex
=
0
;
this
.
$emit
(
'refreshPage'
);
this
.
$forceUpdate
();
})
})
},
//清除addmsg2
clearAddMsg2
(){
this
.
addMsg2
.
OtherContent
=
''
;
this
.
addMsg2
.
FileList
=
[];
this
.
fileListOne
=
[];
},
clearAddMsg3
(){
this
.
addMsg3
.
OtherContent
=
''
;
this
.
addMsg3
.
FileList
=
[];
this
.
fileListThree
=
[];
}
},
},
}
}
...
...
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