Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-admin-consultation
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
jingqi.liu
pica-admin-consultation
提交
66a5d201
提交
66a5d201
编写于
7月 06, 2021
作者:
vino
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
配置设置运营
上级
ab1de42d
变更
4
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
83 行增加
和
14 行删除
+83
-14
match.vue
src/components/common/match.vue
+46
-9
table-c.vue
src/components/list/table-c.vue
+7
-3
index.js
src/utils/diagnosis/index.js
+11
-0
diagnosis-list-new.vue
src/views/IM/diagnosis-admin/diagnosis-list-new.vue
+19
-2
未找到文件。
src/components/common/match.vue
浏览文件 @
66a5d201
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
updateDiagnosis
}
from
'../../utils/diagnosis'
;
import
{
updateDiagnosis
,
batchSetOperator
}
from
'../../utils/diagnosis'
;
let
vm
=
null
;
let
vm
=
null
;
export
default
{
export
default
{
props
:
{
props
:
{
...
@@ -57,7 +57,15 @@ export default {
...
@@ -57,7 +57,15 @@ export default {
diagnoseLogId
:
{
diagnoseLogId
:
{
type
:
Number
,
type
:
Number
,
default
:
0
default
:
0
}
},
multipleSelection
:
{
type
:
Array
,
default
:
[],
},
batchFlag
:{
type
:
Boolean
,
default
:
false
},
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -81,26 +89,55 @@ export default {
...
@@ -81,26 +89,55 @@ export default {
created
()
{
created
()
{
vm
=
this
;
vm
=
this
;
this
.
getAdminList
();
this
.
getAdminList
();
if
(
this
.
batchFlag
){
this
.
title
=
"批量设置运营"
;
}
},
},
methods
:
{
methods
:
{
confirm
()
{
confirm
()
{
// 单个设置运营
if
(
!
this
.
batchFlag
)
{
let
req
=
{
let
req
=
{
id
:
this
.
diagnoseLogId
,
id
:
this
.
diagnoseLogId
,
bizType
:
1
,
bizType
:
1
,
operatorId
:
this
.
model
.
operatorId
,
operatorId
:
this
.
model
.
operatorId
,
operatorName
:
this
.
model
.
operatorName
operatorName
:
this
.
model
.
operatorName
}
}
updateDiagnosis
(
req
).
then
(
function
(
res
)
{
updateDiagnosis
(
req
).
then
(
function
(
res
)
{
if
(
res
.
code
==
"000000"
)
{
if
(
res
.
code
==
"000000"
)
{
vm
.
cancel
();
vm
.
cancel
();
vm
.
$emit
(
'search'
);
vm
.
$emit
(
'search'
);
}
else
{
vm
.
$message
.
error
(
res
.
message
);
}
}
}).
catch
(
function
(
error
)
{
vm
.
$message
.
error
(
error
);
});
}
// 批量设置运营
else
{
else
{
let
ids
=
[];
if
(
this
.
multipleSelection
.
length
>
0
){
for
(
let
i
=
0
;
i
<
this
.
multipleSelection
.
length
;
i
++
){
ids
.
push
(
this
.
multipleSelection
[
i
].
diagnoseLogId
);
}
}
let
req
=
{
ids
:
ids
,
operatorId
:
this
.
model
.
operatorId
,
operatorName
:
this
.
model
.
operatorName
}
batchSetOperator
(
req
).
then
(
function
(
res
)
{
if
(
res
.
code
==
"000000"
)
{
vm
.
cancel
();
vm
.
$emit
(
'search'
);
}
else
{
vm
.
$message
.
error
(
res
.
message
);
vm
.
$message
.
error
(
res
.
message
);
}
}
}).
catch
(
function
(
error
)
{
}).
catch
(
function
(
error
)
{
vm
.
$message
.
error
(
error
);
vm
.
$message
.
error
(
error
);
});
});
}
},
},
cancel
(){
cancel
(){
...
...
src/components/list/table-c.vue
浏览文件 @
66a5d201
...
@@ -96,12 +96,15 @@ export default {
...
@@ -96,12 +96,15 @@ export default {
tableHeight
:
{
tableHeight
:
{
type
:
Number
,
type
:
Number
,
default
:
500
,
default
:
500
,
}
},
multipleSelection
:
{
type
:
Array
,
default
:
[],
},
},
},
data
()
{
data
()
{
return
{
return
{
tableColumn
:
TABLE_COLUMN
,
tableColumn
:
TABLE_COLUMN
multipleSelection
:
[]
};
};
},
},
mounted
()
{
mounted
()
{
...
@@ -114,6 +117,7 @@ export default {
...
@@ -114,6 +117,7 @@ export default {
// 选择
// 选择
handleSelectionChange
(
val
)
{
handleSelectionChange
(
val
)
{
this
.
multipleSelection
=
val
;
this
.
multipleSelection
=
val
;
this
.
$emit
(
"update:multipleSelection"
,
this
.
multipleSelection
);
},
},
//设为待问诊
//设为待问诊
witeDiagnose
(
row
)
{
witeDiagnose
(
row
)
{
...
...
src/utils/diagnosis/index.js
浏览文件 @
66a5d201
...
@@ -16,3 +16,14 @@ export const updateDiagnosis = (params) => {
...
@@ -16,3 +16,14 @@ export const updateDiagnosis = (params) => {
})
})
};
};
/*批量设置运营*/
export
const
batchSetOperator
=
(
params
)
=>
{
return
fetch
({
headers
,
url
:
getBaseUrl
(
`/diagnose/admin/diagnose/batch/operator`
),
method
:
'post'
,
data
:
params
,
description
:
'批量设置运营'
,
})
};
src/views/IM/diagnosis-admin/diagnosis-list-new.vue
浏览文件 @
66a5d201
...
@@ -174,7 +174,7 @@
...
@@ -174,7 +174,7 @@
</el-row>
</el-row>
<el-row
:gutter=
"5"
type=
"flex"
justify=
"center"
align=
"center"
>
<el-row
:gutter=
"5"
type=
"flex"
justify=
"center"
align=
"center"
>
<el-col
:span=
"24"
class=
"btn-wrap"
>
<el-col
:span=
"24"
class=
"btn-wrap"
>
<el-button
type=
"success"
class=
"submit-btn big-btn"
<el-button
type=
"success"
class=
"submit-btn big-btn"
@
click=
"batchSetOperator"
>
批量设置运营
</el-button
>
批量设置运营
</el-button
>
>
<el-button
type=
"info"
class=
"submit-btn"
@
click=
"download"
<el-button
type=
"info"
class=
"submit-btn"
@
click=
"download"
...
@@ -198,6 +198,7 @@
...
@@ -198,6 +198,7 @@
:totalRows=
"totalRows"
:totalRows=
"totalRows"
:loading=
"loading"
:loading=
"loading"
:tableHeight=
"tableHeight"
:tableHeight=
"tableHeight"
:multipleSelection
.
sync=
"multipleSelection"
@
witeDiagnose=
"witeDiagnose"
@
witeDiagnose=
"witeDiagnose"
@
changeRun=
"changeRun"
@
changeRun=
"changeRun"
@
goDetail=
"goDetail"
@
goDetail=
"goDetail"
...
@@ -219,7 +220,7 @@
...
@@ -219,7 +220,7 @@
></table-component>
></table-component>
</el-tab-pane>
</el-tab-pane>
</el-tabs>
</el-tabs>
<match-component
@
search=
"search"
:matchVisible
.
sync=
"matchVisible"
:diagnoseLogId=
"diagnoseLogId"
></match-component>
<match-component
@
search=
"search"
:matchVisible
.
sync=
"matchVisible"
:diagnoseLogId=
"diagnoseLogId"
:batchFlag=
"batchFlag"
:multipleSelection=
"multipleSelection"
></match-component>
<refund-component
:refundVisible
.
sync=
"refundVisible"
:diagnoseLogId=
"diagnoseLogId"
></refund-component>
<refund-component
:refundVisible
.
sync=
"refundVisible"
:diagnoseLogId=
"diagnoseLogId"
></refund-component>
<followup-component
:followupVisible
.
sync=
"followupVisible"
></followup-component>
<followup-component
:followupVisible
.
sync=
"followupVisible"
></followup-component>
<matching-doctor
:doctorVisible
.
sync=
"doctorVisible"
></matching-doctor>
<matching-doctor
:doctorVisible
.
sync=
"doctorVisible"
></matching-doctor>
...
@@ -310,6 +311,8 @@ export default {
...
@@ -310,6 +311,8 @@ export default {
coordinatingVisible
:
false
,
coordinatingVisible
:
false
,
diagnosisDoctorVisible
:
false
,
diagnosisDoctorVisible
:
false
,
appointmentTimeVisible
:
false
,
appointmentTimeVisible
:
false
,
multipleSelection
:[],
batchFlag
:
false
,
pickerOptions1
:
{
pickerOptions1
:
{
disabledDate
:
(
time
)
=>
{
disabledDate
:
(
time
)
=>
{
return
time
.
getTime
()
>
new
Date
().
getTime
();
//减去一天的时间代表可以选择同一天;
return
time
.
getTime
()
>
new
Date
().
getTime
();
//减去一天的时间代表可以选择同一天;
...
@@ -441,6 +444,7 @@ export default {
...
@@ -441,6 +444,7 @@ export default {
changeRun
(
row
)
{
changeRun
(
row
)
{
this
.
matchVisible
=
true
;
this
.
matchVisible
=
true
;
this
.
diagnoseLogId
=
row
.
diagnoseLogId
;
this
.
diagnoseLogId
=
row
.
diagnoseLogId
;
this
.
batchFlag
=
false
;
},
},
//查看详情/编辑详情
//查看详情/编辑详情
goDetail
(
row
,
flag
)
{
goDetail
(
row
,
flag
)
{
...
@@ -495,6 +499,19 @@ export default {
...
@@ -495,6 +499,19 @@ export default {
},
},
// 取消预约
// 取消预约
// cancelBtn(row) {},
// cancelBtn(row) {},
// 批量设置运营
batchSetOperator
(){
if
(
this
.
multipleSelection
.
length
==
0
){
this
.
$message
({
message
:
'请先选择要操作的数据'
,
type
:
"warning"
});
return
;
}
this
.
matchVisible
=
true
;
this
.
batchFlag
=
true
;
}
},
},
};
};
</
script
>
</
script
>
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录