Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-admin-consultation
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.education.frontend
pica-admin-consultation
提交
b6833987
提交
b6833987
编写于
5月 10, 2021
作者:
vino
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改创建时间
上级
5eb06c1b
变更
1
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
38 行增加
和
159 行删除
+38
-159
service-list.vue
src/views/IM/diagnosis-admin/service-list.vue
+38
-159
未找到文件。
src/views/IM/diagnosis-admin/service-list.vue
浏览文件 @
b6833987
...
...
@@ -31,23 +31,32 @@
<el-row
:gutter=
"30"
type=
"flex"
style=
"margin-bottom:0;"
>
<el-col
style=
"width: 700px"
>
<el-form-item
label=
"创建时间"
>
<!--
<el-date-picker-->
<!-- v-model="searchParam.startTime"-->
<!-- size="small"-->
<!-- type="date"-->
<!-- placeholder="请选择开始时间"-->
<!-- value-format="yyyy-MM-dd"-->
<!-- :picker-options="pickerOptions0"-->
<!-- >
</el-date-picker>
~-->
<!--
<el-date-picker-->
<!-- v-model="searchParam.endTime"-->
<!-- size="small"-->
<!-- type="date"-->
<!-- placeholder="请选择结束时间"-->
<!-- value-format="yyyy-MM-dd"-->
<!-- :picker-options="pickerOptions1"-->
<!-- default-time="23:59:59"-->
<!-- >
</el-date-picker>
-->
<el-date-picker
v-model=
"searchParam.startTime"
size=
"small"
type=
"date"
placeholder=
"请选择开始时间"
v-model=
"rangeTime"
type=
"daterange"
value-format=
"yyyy-MM-dd"
:picker-options=
"pickerOptions0"
></el-date-picker>
~
<el-date-picker
v-model=
"searchParam.endTime"
size=
"small"
type=
"date"
placeholder=
"请选择结束时间"
value-format=
"yyyy-MM-dd"
:picker-options=
"pickerOptions1"
default-time=
"23:59:59"
></el-date-picker>
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
:picker-options=
"pickerOptions1"
>
</el-date-picker>
</el-form-item>
</el-col>
<el-col
:span=
"8"
style=
"padding-left: 0px;padding-right: 0px;"
>
...
...
@@ -149,7 +158,7 @@
style=
"width: 100%;"
>
<el-col
:span=
"15"
>
<el-form-item
label=
"价格"
class=
"required-label"
>
<el-input
v-model=
"setPriceForm.price"
size=
"small"
:min=
"0"
:max=
"9999"
placeholder=
"请输入价格"
></el-input
>
<el-input
-number
v-model=
"setPriceForm.price"
size=
"small"
:precision=
"2"
:min=
"0"
:max=
"9999"
placeholder=
"请输入价格"
></el-input-number
>
</el-form-item>
</el-col>
<el-col
:span=
"15"
style=
"margin-left: 105px;"
>
...
...
@@ -172,8 +181,8 @@ export default {
endFlag
:
false
,
beginFlag
:
false
,
loading
:
false
,
activeName
:
'second'
,
setPriceVisible
:
false
,
rangeTime
:
""
,
searchParam
:
{
searchKey
:
''
,
serviceTypeId
:
0
,
...
...
@@ -194,10 +203,10 @@ export default {
tableData
:
[],
totalRows
:
0
,
setPriceRules
:
{
price
:
[
{
required
:
true
,
message
:
'请输入价格'
,
trigger
:
'blur'
},
{
pattern
:
/
(
^
[
1-9
]([
0-9
]
+
)?(\.[
0-9
]{1,2})?
$
)
|
(
^
(
0
){1}
$
)
|
(
^
[
0-9
]\.[
0-9
]([
0-9
])?
$
)
/
,
message
:
'请输入正确额格式,可保留两位小数'
}
],
//
price: [
//
{ required: true, message: '请输入价格', trigger: 'blur'},
//
{ pattern: /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/, message: '请输入正确额格式,可保留两位小数' }
//
],
},
liveBack
:
false
,
timeClickFlag
:
true
,
...
...
@@ -233,7 +242,7 @@ export default {
pickerOptions1
:
{
disabledDate
:
time
=>
{
return
(
time
.
getTime
()
<
new
Date
(
this
.
searchParam
.
startTimestamp
).
getTime
()
time
.
getTime
()
>
new
Date
(
).
getTime
()
);
//减去一天的时间代表可以选择同一天;
}
},
...
...
@@ -245,25 +254,6 @@ export default {
this
.
search
()
},
methods
:
{
changeBeginTime
(
val
)
{
this
.
beginFlag
=
false
this
.
endFlag
=
false
let
b
=
new
Date
(
val
).
getTime
(),
e
if
(
this
.
setPriceForm
.
endTime
)
{
e
=
new
Date
(
this
.
setPriceForm
.
endTime
).
getTime
()
}
if
(
val
)
this
.
beginFlag
=
b
>
e
?
true
:
false
},
changeEndTime
(
val
)
{
this
.
beginFlag
=
false
this
.
endFlag
=
false
let
b
=
new
Date
(
val
).
getTime
(),
e
if
(
this
.
setPriceForm
.
beginTime
)
{
e
=
new
Date
(
this
.
setPriceForm
.
beginTime
).
getTime
()
}
if
(
val
)
this
.
endFlag
=
b
<
e
?
true
:
false
},
// 服务名称
getServiceTypeList
()
{
let
url
=
`/diagnose/doctorService/serviceType`
...
...
@@ -273,21 +263,12 @@ export default {
}
})
},
// 问诊状态
getDiagnoseList
()
{
let
url
=
`/basic-data/constants?typeCode=P254`
this
.
GET
(
url
).
then
(
res
=>
{
if
(
res
.
code
==
"000000"
)
{
this
.
diagnosisSelect
=
res
.
data
}
});
},
// tab切换
handleClick
(
val
)
{
this
.
searchParam
.
tab
=
val
.
name
==
'second'
?
2
:
1
this
.
search
()
},
search
(
a
)
{
if
(
this
.
rangeTime
){
this
.
searchParam
.
startTime
=
this
.
rangeTime
[
0
];
this
.
searchParam
.
endTime
=
this
.
rangeTime
[
1
];
}
if
(
a
)
this
.
searchParam
.
pageNo
=
1
this
.
loading
=
true
let
url
=
`/diagnose/doctorService/search`
...
...
@@ -306,20 +287,9 @@ export default {
// 'status': '2'}
// ];
},
// 预约时间
timeHandle
(
row
)
{
this
.
beginFlag
=
false
this
.
endFlag
=
false
this
.
setPriceVisible
=
true
if
(
this
.
$refs
.
setPriceForm
)
{
this
.
$refs
.
setPriceForm
.
resetFields
()
}
this
.
setPriceForm
.
diagnoseLogId
=
row
.
diagnoseLogId
this
.
setPriceForm
.
beginTime
=
row
.
appointBeginTime
this
.
setPriceForm
.
endTime
=
row
.
appointEndTime
},
confirmSetPrice
()
{
if
(
this
.
setPriceForm
.
price
==
""
){
if
(
this
.
setPriceForm
.
price
==
""
||
this
.
setPriceForm
.
price
==
undefined
){
this
.
$message
({
message
:
'请输入问诊价格'
,
type
:
"warning"
...
...
@@ -358,90 +328,6 @@ export default {
}
})
},
// 结束问诊
endDiagnosis
(
row
)
{
this
.
$confirm
(
'确定结束问诊吗?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
this
.
POST
(
`/diagnose/admin/diagnose/end/
${
row
.
diagnoseLogId
}
`
,
''
).
then
(
res
=>
{
if
(
res
.
code
==
"000000"
)
{
this
.
$message
({
message
:
'成功结束问诊'
,
type
:
"success"
})
this
.
searchParam
.
tab
=
1
this
.
search
()
}
else
{
this
.
$message
({
message
:
res
.
message
,
type
:
"error"
})
}
});
})
},
// 呼叫双方
callAll
(
row
)
{
this
.
$confirm
(
'确定呼叫双方吗?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
this
.
POST
(
`/diagnose/admin/diagnose/call/
${
row
.
diagnoseLogId
}
`
,
''
).
then
(
res
=>
{
if
(
res
.
code
!=
"000000"
)
{
this
.
$message
({
message
:
res
.
message
,
type
:
"error"
})
}
})
})
},
// 加入问诊
jionCommunicate
(
row
)
{
this
.
$confirm
(
'确定加入问诊吗?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
this
.
clearSession
()
this
.
$router
.
push
({
path
:
'/diagnosis-live'
,
query
:
{
tid
:
row
.
imTeamId
,
diagnoseLogId
:
row
.
diagnoseLogId
}})
})
},
// 发送消息
sendMessage
(
row
)
{
this
.
$router
.
push
({
path
:
'/diagnosis-im'
,
query
:
{
tid
:
row
.
imTeamId
}})
},
// 选择
selectBtn
(
row
)
{
this
.
POST
(
`/diagnose/admin/diagnose/choose/
${
row
.
diagnoseLogId
}
`
,
''
)
.
then
(
res
=>
{
if
(
res
.
code
==
"000000"
)
{
this
.
$message
({
message
:
'选择成功'
,
type
:
"success"
});
this
.
searchParam
.
tab
=
1
this
.
search
()
}
else
{
this
.
$message
({
message
:
res
.
message
,
type
:
"error"
})
}
})
.
catch
((
error
)
=>
{
this
.
$message
({
message
:
error
,
type
:
"error"
})
})
this
.
activeName
=
'first'
this
.
searchParam
.
tab
=
1
this
.
search
()
},
handleSizeChange
(
value
)
{
this
.
searchParam
.
pageSize
=
value
this
.
search
()
...
...
@@ -450,13 +336,6 @@ export default {
this
.
searchParam
.
pageNo
=
value
this
.
search
()
},
// 清除直播时间相关的seession
clearSession
()
{
sessionStorage
.
removeItem
(
'TIME_askTime'
)
sessionStorage
.
removeItem
(
'TIME_answerTime'
)
sessionStorage
.
removeItem
(
'TIME_useTime'
)
sessionStorage
.
removeItem
(
'TIME_loseTime'
)
},
handleSelectionChange
(
val
)
{
this
.
multipleSelection
=
val
;
},
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录