Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
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
李俊赕
self-support
Commits
4865a1a5
Commit
4865a1a5
authored
Apr 29, 2021
by
Morson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面细节优化调整
parent
5419b705
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
441 additions
and
436 deletions
+441
-436
appoint-time.vue
src/components/appoint/appoint-time.vue
+4
-4
feedback.vue
src/pages/order/feedback.vue
+437
-432
No files found.
src/components/appoint/appoint-time.vue
View file @
4865a1a5
...
@@ -96,9 +96,9 @@
...
@@ -96,9 +96,9 @@
},
},
data
()
{
data
()
{
return
{
return
{
currentDay
:
0
,
currentDay
:
null
,
currentTime
:
null
,
currentTime
:
null
,
appointTime
:
n
ow
,
appointTime
:
n
ull
,
appointRange
:
""
,
appointRange
:
""
,
num
:
0
,
num
:
0
,
hasLast
:
false
hasLast
:
false
...
@@ -106,9 +106,9 @@
...
@@ -106,9 +106,9 @@
},
},
watch
:
{
watch
:
{
title
()
{
title
()
{
this
.
currentDay
=
0
this
.
currentDay
=
null
this
.
appointTime
=
now
this
.
currentTime
=
null
this
.
currentTime
=
null
this
.
appointTime
=
null
this
.
appointRange
=
""
this
.
appointRange
=
""
}
}
},
},
...
...
src/pages/order/feedback.vue
View file @
4865a1a5
...
@@ -3,22 +3,9 @@
...
@@ -3,22 +3,9 @@
<view
class=
"feedback-box bg"
>
<view
class=
"feedback-box bg"
>
<u-navbar
back-icon-color=
"#FFFFFF"
:background=
"background"
title=
"过程反馈"
titleColor=
"#FFFFFF"
:border-bottom=
"false"
></u-navbar>
<u-navbar
back-icon-color=
"#FFFFFF"
:background=
"background"
title=
"过程反馈"
titleColor=
"#FFFFFF"
:border-bottom=
"false"
></u-navbar>
<view
class=
"content u-p-l-30 u-p-r-30"
>
<view
class=
"content u-p-l-30 u-p-r-30"
>
<!--
<view
class=
"width-320 u-m-t-20"
>
<u-subsection
:bold=
"false"
:current=
"curSub"
:list=
"subList"
active-color=
"white"
bg-color=
"white"
height=
"72"
inactive-color=
"#666"
button-color=
"#2272FF"
border-radius=
"36"
></u-subsection>
</view>
-->
<view
class=
"top-tab"
>
<view
class=
"top-tab"
>
<u-tabs
<u-tabs
:list=
"
tabList"
:list=
"
options"
:current=
"curTab"
:current=
"curTab"
height=
"60"
height=
"60"
gutter=
"89"
gutter=
"89"
...
@@ -32,31 +19,30 @@
...
@@ -32,31 +19,30 @@
@
change=
"changeTab"
@
change=
"changeTab"
></u-tabs>
></u-tabs>
</view>
</view>
<!--
<view
class=
"con-box"
>
</view>
-->
<view
class=
"content-view"
>
<view
class=
"content-view"
>
<view
class=
"con-box"
>
<view
class=
"con-box"
>
<view
class=
"title"
>
{{
feedback
.
own
.
title
}}
</view>
<view
class=
"title"
>
{{
traceTitles
[
0
]
}}
</view>
<view
class=
"u-flex u-flex-wrap"
>
<view
class=
"u-flex u-flex-wrap"
>
<view
<view
v-for=
"(item, index) in options[curTab]"
v-for=
"(item, index) in options[curTab]['owns']"
:key=
"index"
:key=
"index"
@
click=
"changeOwn(index)"
@
click=
"changeOwn(index, item.name, item.types)"
:class=
"
{'txt-item':true,'active': (trace.reasonRelegation == index)}">
:class=
"
{ 'txt-item': true, active: curOwn == index }"
<text
class=
"txt"
>
{{
item
}}
</text>
>
<text
class=
"txt"
>
{{
item
.
name
}}
</text>
</view>
</view>
</view>
</view>
<u-gap
height=
"30"
></u-gap>
<u-gap
height=
"30"
></u-gap>
<view
class=
"title"
>
{{
feedback
.
type
.
title
}}
</view>
<view
class=
"title"
>
{{
traceTitles
[
1
]
}}
</view>
<view
class=
"u-flex u-flex-wrap"
>
<view
class=
"u-flex u-flex-wrap"
>
<view
<view
v-for=
"(txt, index) in options[curTab][trace.reasonRelegation]"
v-for=
"(txt, index) in options[curTab]['owns'][curOwn]['types']"
:key=
"index"
:key=
"index"
@
click=
"changeType(txt)"
@
click=
"changeType(index, txt)"
:class=
"
{'txt-item':true,'active': (trace.reason == txt)}" style="width: 306rpx;margin-right: 18rpx">
:class=
"
{ 'txt-item': true, active: trace.reason == txt }"
<text
class=
"txt"
>
{{
txt
}}
</text>
style="width: 306rpx;margin-right: 18rpx"
>
<text
class=
"txt"
>
{{
txt
}}
</text>
</view>
</view>
</view>
</view>
<view
class=
"input-view"
v-show=
"showRemark"
>
<view
class=
"input-view"
v-show=
"showRemark"
>
...
@@ -64,7 +50,14 @@
...
@@ -64,7 +50,14 @@
</view>
</view>
</view>
</view>
<view
class=
"time-view"
>
<view
class=
"time-view"
>
<appoint-time
:dateList=
"dateList"
:title=
"appointTitle"
:timeList=
"timeList"
@
dateChange=
"dateChange"
@
timeChange=
"timeChange"
@
weekChange=
"weekChange"
></appoint-time>
<appoint-time
:dateList=
"dateList"
:title=
"appointTitle"
:timeList=
"timeList"
@
dateChange=
"dateChange"
@
timeChange=
"timeChange"
@
weekChange=
"weekChange"
></appoint-time>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -75,54 +68,55 @@
...
@@ -75,54 +68,55 @@
</
template
>
</
template
>
<
script
>
<
script
>
let
now
=
new
Date
(
new
Date
().
toLocaleDateString
()).
getTime
()
let
now
=
new
Date
(
new
Date
().
toLocaleDateString
()).
getTime
();
import
appointTime
from
'@/components/appoint/appoint-time.vue'
import
appointTime
from
'@/components/appoint/appoint-time.vue'
;
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
orderId
:
null
,
orderId
:
null
,
categoryId
:
null
,
categoryId
:
null
,
showRemark
:
false
,
submiting
:
false
,
dateList
:
[
{
day
:
now
,
timeRange
:
[]},
{
day
:
now
+
(
1
*
86400000
),
timeRange
:
[]},
{
day
:
now
+
(
2
*
86400000
),
timeRange
:
[]},
{
day
:
now
+
(
3
*
86400000
),
timeRange
:
[]},
{
day
:
now
+
(
4
*
86400000
),
timeRange
:
[]},
{
day
:
now
+
(
5
*
86400000
),
timeRange
:
[]},
{
day
:
now
+
(
6
*
86400000
),
timeRange
:
[]},
],
timeList
:
[
{
"name"
:
"06:00-08:00"
,
"pkey"
:
"appointment_range_8"
,
"disabled"
:
false
},
{
"name"
:
"08:00-10:00"
,
"pkey"
:
"appointment_range_10"
,
"disabled"
:
false
},
{
"name"
:
"10:00-12:00"
,
"pkey"
:
"appointment_range_12"
,
"disabled"
:
false
},
{
"name"
:
"12:00-14:00"
,
"pkey"
:
"appointment_range_14"
,
"disabled"
:
false
},
{
"name"
:
"14:00-16:00"
,
"pkey"
:
"appointment_range_16"
,
"disabled"
:
false
},
{
"name"
:
"16:00-18:00"
,
"pkey"
:
"appointment_range_18"
,
"disabled"
:
false
},
{
"name"
:
"18:00-20:00"
,
"pkey"
:
"appointment_range_20"
,
"disabled"
:
false
},
{
"name"
:
"20:00-22:00"
,
"pkey"
:
"appointment_range_22"
,
"disabled"
:
false
},
{
"name"
:
"22:00-24:00"
,
"pkey"
:
"appointment_range_24"
,
"disabled"
:
false
}
],
background
:
{
background
:
{
backgroundColor
:
'none'
,
backgroundColor
:
'none'
},
tabList
:
[{
name
:
'报单'
},
{
name
:
'改约'
}],
curTab
:
0
,
feedback
:
{
own
:{
title
:
'问题归属'
,
},
},
type
:{
feedback
:
null
,
title
:
'问题类型'
,
options
:
[
{
name
:
'报备'
,
owns
:
[
{
name
:
'客户'
,
types
:
[
'等客户报装电表'
,
'等客户与物业沟通'
,
'等客户改造电源'
,
'客户不确定安装时间'
,
'等客户通知安装时间'
,
'客户电话未打通'
,
'客户反馈暂不安装'
]
},
},
{
name
:
'个人'
,
types
:
[]
},
{
name
:
'客观'
,
types
:
[]
}
]
},
},
appoint
:{
{
name
:
'改约'
,
owns
:
[{
name
:
'客户'
,
types
:
[
'有事耽搁'
,
'未带齐工具'
,
'个人改约'
,
'其他'
]
},
{
name
:
'个人'
,
types
:
[]
},
{
name
:
'客观'
,
types
:
[]
}]
}
'报单'
:
'下次联系时间'
,
],
'改约'
:
'预约时间'
,
dateList
:
[
},
{
day
:
now
,
timeRange
:
[]
},
config
:
null
,
{
day
:
now
+
1
*
86400000
,
timeRange
:
[]
},
options
:
[],
{
day
:
now
+
2
*
86400000
,
timeRange
:
[]
},
{
day
:
now
+
3
*
86400000
,
timeRange
:
[]
},
{
day
:
now
+
4
*
86400000
,
timeRange
:
[]
},
{
day
:
now
+
5
*
86400000
,
timeRange
:
[]
},
{
day
:
now
+
6
*
86400000
,
timeRange
:
[]
}
],
timeList
:
[
{
name
:
'06:00-08:00'
,
pkey
:
'appointment_range_8'
,
disabled
:
false
},
{
name
:
'08:00-10:00'
,
pkey
:
'appointment_range_10'
,
disabled
:
false
},
{
name
:
'10:00-12:00'
,
pkey
:
'appointment_range_12'
,
disabled
:
false
},
{
name
:
'12:00-14:00'
,
pkey
:
'appointment_range_14'
,
disabled
:
false
},
{
name
:
'14:00-16:00'
,
pkey
:
'appointment_range_16'
,
disabled
:
false
},
{
name
:
'16:00-18:00'
,
pkey
:
'appointment_range_18'
,
disabled
:
false
},
{
name
:
'18:00-20:00'
,
pkey
:
'appointment_range_20'
,
disabled
:
false
},
{
name
:
'20:00-22:00'
,
pkey
:
'appointment_range_22'
,
disabled
:
false
},
{
name
:
'22:00-24:00'
,
pkey
:
'appointment_range_24'
,
disabled
:
false
}
],
traceTitles
:
[
'问题归属'
,
'问题类型'
],
appointTitle
:
'预约时间'
,
appoint
:
[
'下次联系时间'
,
'预约时间'
],
trace
:
{
trace
:
{
reasonType
:
'报单'
,
// 反馈类型
reasonType
:
'报单'
,
// 反馈类型
reasonRelegation
:
''
,
// 反馈归属
reasonRelegation
:
''
,
// 反馈归属
...
@@ -130,134 +124,145 @@
...
@@ -130,134 +124,145 @@
appointmentDatetime
:
null
,
// 预约时间
appointmentDatetime
:
null
,
// 预约时间
appointmentDatetimeRange
:
''
,
// 预约时间段类型
appointmentDatetimeRange
:
''
,
// 预约时间段类型
nextTraceDatetime
:
''
,
// 下次跟踪时间
nextTraceDatetime
:
''
,
// 下次跟踪时间
remark
:
''
,
// 备注
remark
:
''
// 备注
},
},
appointTitle
:
"预约时间"
,
appointTime
:
{
num
:
0
,
dateItem
:
{},
timeItem
:
{}
},
showRemark
:
false
,
submiting
:
false
,
curTab
:
0
,
curOwn
:
0
,
num
:
0
};
};
},
},
components
:
{
components
:
{
appointTime
appointTime
},
},
watch
:
{
watch
:
{
vuex_token
(
val
)
{
vuex_token
(
val
)
{
this
.
initPageData
()
this
.
initPageData
();
}
}
},
},
computed
:
{
computed
:
{
disabledSubmit
()
{
disabledSubmit
()
{
let
self
=
this
let
self
=
this
;
if
(
self
.
trace
.
reasonType
&&
self
.
trace
.
reasonType
==
'报备'
){
if
(
self
.
trace
.
reasonType
&&
self
.
trace
.
reasonType
==
'报备'
)
{
if
(
self
.
trace
.
reasonRelegation
&&
self
.
trace
.
reason
if
(
self
.
trace
.
reasonRelegation
&&
self
.
trace
.
reason
&&
self
.
trace
.
nextTraceDatetime
&&
self
.
trace
.
appointmentDatetimeRange
)
{
&&
self
.
trace
.
nextTraceDatetime
&&
self
.
trace
.
appointmentDatetimeRange
)
{
return
false
;
return
false
}
}
}
else
if
(
self
.
trace
.
reasonType
&&
self
.
trace
.
reasonType
==
'改约'
)
{
}
else
if
(
self
.
trace
.
reasonType
&&
self
.
trace
.
reasonType
==
'改约'
)
{
if
(
self
.
trace
.
reasonRelegation
&&
self
.
trace
.
reason
if
(
self
.
trace
.
reasonRelegation
&&
self
.
trace
.
reason
&&
self
.
trace
.
appointmentDatetime
&&
self
.
trace
.
appointmentDatetimeRange
)
{
&&
self
.
trace
.
appointmentDatetime
&&
self
.
trace
.
appointmentDatetimeRange
)
{
return
false
;
return
false
}
}
}
}
return
true
return
true
;
},
}
},
},
async
onLoad
(
e
)
{
async
onLoad
(
e
)
{
this
.
orderId
=
1
this
.
orderId
=
1
;
this
.
categoryId
=
88
this
.
categoryId
=
88
;
if
(
e
)
{
if
(
e
)
{
this
.
orderId
=
e
.
orderId
||
null
this
.
orderId
=
e
.
orderId
||
null
;
this
.
categoryId
=
e
.
categoryId
||
null
this
.
categoryId
=
e
.
categoryId
||
null
;
}
}
uni
.
showLoading
({
uni
.
showLoading
({
title
:
"数据加载中"
,
title
:
'数据加载中'
,
mask
:
true
mask
:
true
})
});
await
this
.
initPageData
()
await
this
.
initPageData
();
},
},
methods
:
{
methods
:
{
/* 初始化页面数据 */
/* 初始化页面数据 */
async
initPageData
()
{
async
initPageData
()
{
let
self
=
this
let
self
=
this
;
let
params
=
{
categoryId
:
self
.
categoryId
}
await
Promise
.
all
([
self
.
loadCalendar
(),
self
.
loadTimerange
()]);
let
pse
=
await
Promise
.
all
([
self
.
$u
.
api
.
feedbackConfig
(
params
),
self
.
loadCalendar
(),
self
.
loadTimerange
()])
let
params
=
{
categoryId
:
self
.
categoryId
};
let
res
=
pse
[
0
]
let
res
=
await
self
.
$u
.
api
.
feedbackConfig
(
params
);
if
(
res
&&
res
.
code
==
200
)
{
if
(
res
&&
res
.
code
==
200
)
{
self
.
config
=
res
.
data
self
.
feedback
=
res
.
data
;
self
.
initParams
()
self
.
buildConfig
();
self
.
buildConfig
()
}
}
uni
.
hideLoading
();
uni
.
hideLoading
()
},
},
/* 组装
参数 */
/* 组装数据项
参数 */
buildConfig
()
{
buildConfig
()
{
let
self
=
this
let
self
=
this
;
if
(
self
.
config
)
{
if
(
self
.
feedback
)
{
let
tabs
=
Object
.
keys
(
self
.
config
)
let
tabs
=
Object
.
keys
(
self
.
feedback
);
let
list
=
Object
.
values
(
self
.
config
)
let
tabVals
=
Object
.
values
(
self
.
feedback
);
tabs
.
forEach
(
function
(
tab
,
index
){
let
configs
=
[];
self
.
tabList
[
index
]
=
{
name
:
tab
}
tabs
.
forEach
(
function
(
tab
,
index
)
{
self
.
options
[
index
]
=
list
[
index
]
let
row
=
tabVals
[
index
];
})
let
owns
=
Object
.
keys
(
row
);
let
ownVals
=
Object
.
values
(
row
);
configs
[
index
]
=
{
name
:
tab
,
owns
:
[]
};
if
(
tab
==
'改约'
)
{
self
.
appoint
[
index
]
=
'预约时间'
}
else
if
(
tab
==
'报备'
)
{
self
.
appoint
[
index
]
=
'下次联系时间'
}
owns
.
forEach
(
function
(
own
,
key
)
{
configs
[
index
][
'owns'
][
key
]
=
{
name
:
own
,
types
:
ownVals
[
key
]
};
});
});
// 数组改写需要刷新绑定数据
self
.
options
=
configs
;
this
.
initParams
()
}
}
},
},
/* 初始化参数 */
/* 初始化参数 */
initParams
()
{
initParams
()
{
let
self
=
this
let
self
=
this
;
if
(
self
.
config
)
{
if
(
self
.
options
)
{
let
tabs
=
Object
.
keys
(
self
.
config
)
let
tabList
=
self
.
options
[
self
.
curTab
]
let
list
=
Object
.
values
(
self
.
config
)
self
.
trace
.
reasonType
=
tabList
.
name
;
let
relegation
=
Object
.
keys
(
list
[
self
.
curTab
])[
0
]
self
.
trace
.
reasonRelegation
=
tabList
[
'owns'
][
self
.
curOwn
].
name
;
let
types
=
Object
.
values
(
list
[
self
.
curTab
][
relegation
])
self
.
trace
.
reason
=
tabList
[
'owns'
][
self
.
curOwn
][
'types'
][
0
];
self
.
trace
.
reasonType
=
tabs
[
self
.
curTab
]
self
.
appointTitle
=
self
.
appoint
[
self
.
curTab
]
self
.
trace
.
reasonRelegation
=
relegation
self
.
trace
.
remark
=
''
;
self
.
trace
.
reason
=
types
[
0
]
if
(
self
.
trace
.
reasonType
==
'改约'
)
{
self
.
showRemark
=
true
;
if
(
self
.
trace
.
reasonType
==
'改约'
)
{
if
(
self
.
dateList
&&
self
.
timeList
)
{
self
.
showRemark
=
true
self
.
appointTitle
=
'预约时间'
if
(
self
.
dateList
&&
self
.
timeList
)
{
self
.
timeList
.
map
((
item
,
index
)
=>
{
self
.
timeList
.
map
((
item
,
index
)
=>
{
if
(
self
.
dateList
.
indexOf
(
item
.
pkey
)
>
-
1
)
{
if
(
self
.
dateList
.
indexOf
(
item
.
pkey
)
>
-
1
)
{
item
.
disabled
=
true
item
.
disabled
=
true
;
}
else
{
}
else
{
item
.
disabled
=
false
item
.
disabled
=
false
;
}
}
})
});
}
}
}
else
{
}
else
{
self
.
showRemark
=
false
self
.
showRemark
=
false
;
self
.
trace
.
remark
=
''
self
.
appointTitle
=
'下次联系时间'
self
.
timeList
.
map
((
item
,
index
)
=>
{
self
.
timeList
.
map
((
item
,
index
)
=>
{
item
.
disabled
=
false
item
.
disabled
=
false
;
})
});
}
}
}
}
},
},
/* 加载日历数据 */
/* 加载日历数据 */
async
loadCalendar
()
{
async
loadCalendar
()
{
let
self
=
this
let
self
=
this
;
let
params
=
{
let
res
=
await
this
.
$u
.
api
.
workerCalendar
({
num
:
this
.
num
});
num
:
this
.
num
if
(
res
&&
res
.
code
==
200
)
{
}
self
.
dateList
=
res
.
data
;
let
res
=
await
this
.
$u
.
api
.
workerCalendar
(
params
)
if
(
res
&&
res
.
code
==
200
)
{
self
.
dateList
=
res
.
data
}
}
},
},
/* 加载预约时间段 */
/* 加载预约时间段 */
async
loadTimerange
()
{
async
loadTimerange
()
{
let
self
=
this
let
self
=
this
;
let
res
=
await
this
.
$u
.
api
.
openTimerange
()
let
res
=
await
this
.
$u
.
api
.
openTimerange
();
if
(
res
&&
res
.
code
==
200
)
{
if
(
res
&&
res
.
code
==
200
)
{
let
list
=
res
.
data
let
list
=
res
.
data
;
list
.
map
((
item
,
index
)
=>
{
list
.
map
((
item
,
index
)
=>
{
item
.
disabled
=
false
item
.
disabled
=
false
;
})
});
self
.
timeList
=
list
self
.
timeList
=
list
;
}
}
},
},
...
@@ -266,90 +271,91 @@
...
@@ -266,90 +271,91 @@
*/
*/
changeTab
(
index
)
{
changeTab
(
index
)
{
this
.
curTab
=
index
;
this
.
curTab
=
index
;
this
.
initParams
()
this
.
initParams
();
},
},
changeOwn
(
key
)
{
changeOwn
(
index
,
own
,
types
)
{
let
self
=
this
let
self
=
this
;
self
.
trace
.
reasonRelegation
=
key
self
.
curOwn
=
index
;
self
.
trace
.
reason
=
self
.
options
[
self
.
curTab
][
key
][
0
]
self
.
trace
.
reasonRelegation
=
own
;
self
.
trace
.
reason
=
types
[
0
];
},
},
changeType
(
key
)
{
changeType
(
index
,
type
)
{
this
.
trace
.
reason
=
key
this
.
trace
.
reason
=
type
;
},
},
weekChange
(
data
)
{
weekChange
(
data
)
{
// 点击下一周
// 点击下一周
console
.
log
(
data
,
'week-data'
)
console
.
log
(
data
,
'week-data'
);
if
(
data
&&
data
.
time
)
{
if
(
data
&&
data
.
time
)
{
let
num
=
data
.
num
let
num
=
data
.
num
;
let
time
=
data
.
time
let
time
=
data
.
time
;
this
.
num
=
num
this
.
num
=
num
;
if
(
num
==
0
)
{
if
(
num
==
0
)
{
this
.
loadCalendar
()
this
.
loadCalendar
();
}
else
{
}
else
{
this
.
loadCalendar
()
this
.
loadCalendar
();
}
}
}
}
},
},
dateChange
(
data
)
{
dateChange
(
data
)
{
// 点击日期选择
// 点击日期选择
console
.
log
(
data
,
'week-data'
)
console
.
log
(
data
,
'week-data'
);
let
self
=
this
let
self
=
this
;
if
(
self
.
trace
.
reasonType
==
'报备'
)
{
self
.
appointTime
.
dateItem
=
data
.
item
self
.
trace
.
appointmentDatetime
=
null
if
(
self
.
trace
.
reasonType
==
'报备'
)
{
self
.
trace
.
nextTraceDatetime
=
data
.
item
.
day
self
.
trace
.
appointmentDatetime
=
null
;
self
.
trace
.
nextTraceDatetime
=
data
.
item
.
day
;
self
.
timeList
.
map
((
item
,
index
)
=>
{
self
.
timeList
.
map
((
item
,
index
)
=>
{
item
.
disabled
=
false
item
.
disabled
=
false
;
})
});
}
else
if
(
self
.
trace
.
reasonType
==
'改约'
)
{
}
else
if
(
self
.
trace
.
reasonType
==
'改约'
)
{
self
.
trace
.
appointmentDatetime
=
data
.
item
.
day
self
.
trace
.
appointmentDatetime
=
data
.
item
.
day
;
self
.
trace
.
nextTraceDatetime
=
null
self
.
trace
.
nextTraceDatetime
=
null
;
self
.
timeList
.
map
((
item
,
index
)
=>
{
self
.
timeList
.
map
((
item
,
index
)
=>
{
if
(
data
.
item
.
timeRange
.
indexOf
(
item
.
pkey
)
>
-
1
)
{
if
(
data
.
item
.
timeRange
.
indexOf
(
item
.
pkey
)
>
-
1
)
{
item
.
disabled
=
true
item
.
disabled
=
true
;
}
else
{
}
else
{
item
.
disabled
=
false
item
.
disabled
=
false
;
}
}
})
});
}
}
self
.
trace
.
appointmentDatetimeRange
=
''
;
},
},
timeChange
(
data
)
{
timeChange
(
data
)
{
// 时间段选择变化
// 时间段选择变化
console
.
log
(
data
,
'week-data'
)
console
.
log
(
data
,
'week-data'
);
this
.
trace
.
appointmentDatetimeRange
=
data
.
item
this
.
trace
.
appointmentDatetimeRange
=
data
.
item
;
this
.
appointTime
.
timeItem
=
data
.
item
},
},
async
submitForm
()
{
async
submitForm
()
{
let
self
=
this
let
self
=
this
;
self
.
orderId
=
666
self
.
orderId
=
666
;
if
(
!
self
.
orderId
)
{
if
(
!
self
.
orderId
)
{
uni
.
showToast
({
uni
.
showToast
({
icon
:
error
,
icon
:
error
,
title
:
"工单ID不能为空"
title
:
'工单ID不能为空'
})
});
return
false
return
false
;
}
}
self
.
submiting
=
true
self
.
submiting
=
true
;
let
res
=
await
self
.
$u
.
api
.
traceAndAppointment
(
self
.
trace
,
self
.
orderId
)
let
res
=
await
self
.
$u
.
api
.
traceAndAppointment
(
self
.
trace
,
self
.
orderId
);
self
.
submiting
=
false
self
.
submiting
=
false
;
},
}
}
}
}
};
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
.bg
{
.bg
{
width
:
750rpx
;
width
:
750rpx
;
height
:
100vh
;
height
:
100vh
;
overflow
:
auto
;
overflow
:
auto
;
background-color
:
#F4F5F
7
;
background-color
:
#f4f5f
7
;
background-image
:
linear-gradient
(
to
top
,
#F4F5F7
0%
,
#2272FF
50%
);
background-image
:
linear-gradient
(
to
top
,
#f4f5f7
0%
,
#2272ff
50%
);
background-size
:
750rpx
600rpx
;
background-size
:
750rpx
600rpx
;
background-repeat
:
no-repeat
;
background-repeat
:
no-repeat
;
}
}
.feedback-box
{
.feedback-box
{
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
.header
{
.header
{
...
@@ -360,17 +366,17 @@
...
@@ -360,17 +366,17 @@
.title
{
.title
{
font-size
:
40rpx
;
font-size
:
40rpx
;
font-weight
:
bold
;
font-weight
:
bold
;
color
:
#FFFFFF
;
color
:
#ffffff
;
}
}
}
}
}
}
/
deep
/
.u-subsection
{
/
deep
/
.u-subsection
{
padding
:
4rpx
!
important
;
padding
:
4rpx
!
important
;
}
}
.top-tab
{
.top-tab
{
text-align
:
center
;
text-align
:
center
;
}
}
.content
{
.content
{
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
overflow
:
hidden
;
overflow
:
hidden
;
...
@@ -379,21 +385,21 @@
...
@@ -379,21 +385,21 @@
height
:
100%
;
height
:
100%
;
border-radius
:
12rpx
;
border-radius
:
12rpx
;
overflow
:
auto
;
overflow
:
auto
;
margin-top
:
30rpx
;
margin-top
:
30rpx
;
.time-view
{
.time-view
{
border-radius
:
12rpx
;
border-radius
:
12rpx
;
background-color
:
#FFFFFF
;
background-color
:
#ffffff
;
padding-bottom
:
20rpx
;
padding-bottom
:
20rpx
;
}
}
}
}
}
}
.bottom-view
{
.bottom-view
{
position
:
fixed
;
position
:
fixed
;
bottom
:
44rpx
;
bottom
:
44rpx
;
width
:
100%
;
width
:
100%
;
}
}
.bottom-btn
{
.bottom-btn
{
height
:
104rpx
;
height
:
104rpx
;
width
:
600rpx
;
width
:
600rpx
;
display
:
flex
;
display
:
flex
;
...
@@ -403,33 +409,33 @@
...
@@ -403,33 +409,33 @@
font-size
:
32rpx
;
font-size
:
32rpx
;
font-weight
:
bold
;
font-weight
:
bold
;
}
}
}
}
.con-box
{
.con-box
{
padding
:
30rpx
30rpx
8rpx
30rpx
;
padding
:
30rpx
30rpx
8rpx
30rpx
;
border-radius
:
12rpx
;
border-radius
:
12rpx
;
background-color
:
#FFFFFF
;
background-color
:
#ffffff
;
.title
{
.title
{
font-weight
:
bold
;
font-weight
:
bold
;
font-size
:
32rpx
;
font-size
:
32rpx
;
line-height
:
32rpx
;
line-height
:
32rpx
;
color
:
#333
;
color
:
#333
;
}
}
&
>
.u-flex
{
&
>
.u-flex
{
margin-top
:
40rpx
;
margin-top
:
40rpx
;
margin-right
:
-24rpx
;
margin-right
:
-24rpx
;
.txt-item
{
.txt-item
{
border-radius
:
12rpx
;
border-radius
:
12rpx
;
padding
:
24rpx
38rpx
;
padding
:
24rpx
38rpx
;
width
:
196rpx
;
width
:
196rpx
;
height
:
72rpx
;
height
:
72rpx
;
text-align
:
center
;
text-align
:
center
;
margin-right
:
22rpx
;
margin-right
:
22rpx
;
margin-bottom
:
20rpx
;
margin-bottom
:
20rpx
;
background-color
:
#F4F5F
7
;
background-color
:
#f4f5f
7
;
&
.active
{
&
.active
{
background-color
:
#2272FF
;
background-color
:
#2272ff
;
.txt
{
.txt
{
color
:
#fff
;
color
:
#fff
;
text-overflow
:
ellipsis
;
text-overflow
:
ellipsis
;
overflow
:
hidden
;
overflow
:
hidden
;
...
@@ -439,8 +445,8 @@
...
@@ -439,8 +445,8 @@
}
}
}
}
.txt
{
.txt
{
display
:
block
;
display
:
block
;
font-size
:
26rpx
;
font-size
:
26rpx
;
line-height
:
26rpx
;
line-height
:
26rpx
;
color
:
#333
;
color
:
#333
;
...
@@ -451,49 +457,48 @@
...
@@ -451,49 +457,48 @@
.input-view
{
.input-view
{
margin-bottom
:
24rpx
;
margin-bottom
:
24rpx
;
}
}
.textarea
{
.textarea
{
/
deep
/
.u-input
{
/
deep
/
.u-input
{
textarea
{
textarea
{
margin-top
:
20rpx
;
margin-top
:
20rpx
;
border
:
2rpx
solid
#ececec
;
border
:
2rpx
solid
#ECECEC
;
padding
:
18rpx
30rpx
;
padding
:
18rpx
30rpx
;
}
}
}
}
}
}
}
.btn
{
}
padding
:
30rpx
;
.btn
{
padding
:
30rpx
;
border-radius
:
52rpx
;
border-radius
:
52rpx
;
line-height
:
44rpx
;
line-height
:
44rpx
;
font-size
:
32rpx
;
font-size
:
32rpx
;
text-align
:
center
;
text-align
:
center
;
background-color
:
#2272FF
;
background-color
:
#2272ff
;
color
:
#fff
;
color
:
#fff
;
&
:
:
after
{
&
:
:
after
{
content
:
''
;
content
:
''
;
height
:
0
;
height
:
0
;
border
:
none
;
border
:
none
;
}
}
}
}
button
[
disabled
]
:not
([
type
])
{
button
[
disabled
]
:not
([
type
])
{
background
:
#D1D4D
4
;
background
:
#d1d4d
4
;
color
:
#FFFFFF
;
color
:
#ffffff
;
}
}
.btn
{
.btn
{
padding
:
30rpx
;
padding
:
30rpx
;
border-radius
:
52rpx
;
border-radius
:
52rpx
;
line-height
:
44rpx
;
line-height
:
44rpx
;
font-size
:
32rpx
;
font-size
:
32rpx
;
text-align
:
center
;
text-align
:
center
;
background-color
:
#2272FF
;
background-color
:
#2272ff
;
color
:
#fff
;
color
:
#fff
;
&
:
:
after
{
&
:
:
after
{
content
:
''
;
content
:
''
;
height
:
0
;
height
:
0
;
}
}
}
}
.width-320
{
.width-320
{
width
:
320rpx
;
width
:
320rpx
;
}
}
</
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