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
提交
91db5c51
提交
91db5c51
编写于
11月 24, 2021
作者:
xiaoping.di
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
xiugai
上级
35a34e3b
变更
3
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
170 行增加
和
0 行删除
+170
-0
serviceSchedule.js
src/api/serviceSchedule.js
+7
-0
index.js
src/router/index.js
+11
-0
orderStatusUpdate.vue
src/views/IM/diagnosis-admin/orderStatusUpdate.vue
+152
-0
未找到文件。
src/api/serviceSchedule.js
浏览文件 @
91db5c51
...
@@ -92,3 +92,10 @@ export const getLevelAndDayCount = async (data) => {
...
@@ -92,3 +92,10 @@ export const getLevelAndDayCount = async (data) => {
method
:
'post'
,
method
:
'post'
,
});
});
};
};
// 暂时添加刷新问诊接口
export
const
getOrderNoFresh
=
async
(
diagnoseLogId
)
=>
{
return
request
({
url
:
`/diagnose/diagnoseOrderNo/fresh/
${
diagnoseLogId
}
`
,
method
:
'get'
,
});
};
src/router/index.js
浏览文件 @
91db5c51
...
@@ -86,6 +86,13 @@ const administrators = (r) =>
...
@@ -86,6 +86,13 @@ const administrators = (r) =>
()
=>
r
(
require
(
'@/views/IM/diagnosis-admin/administrators.vue'
)),
()
=>
r
(
require
(
'@/views/IM/diagnosis-admin/administrators.vue'
)),
'administrators'
'administrators'
);
);
const
orderStatusUpdate
=
(
r
)
=>
require
.
ensure
(
[],
()
=>
r
(
require
(
'@/views/IM/diagnosis-admin/orderStatusUpdate.vue'
)),
'orderStatusUpdate'
);
const
Layout
=
(
r
)
=>
const
Layout
=
(
r
)
=>
require
.
ensure
([],
()
=>
r
(
require
(
'@/views/layout/Layout.vue'
)),
'Layout'
);
require
.
ensure
([],
()
=>
r
(
require
(
'@/views/layout/Layout.vue'
)),
'Layout'
);
...
@@ -158,6 +165,10 @@ const routerConfig = [
...
@@ -158,6 +165,10 @@ const routerConfig = [
path
:
'/administrators'
,
path
:
'/administrators'
,
component
:
administrators
,
component
:
administrators
,
},
},
{
path
:
'/orderStatusUpdate'
,
component
:
orderStatusUpdate
,
},
],
],
},
},
];
];
...
...
src/views/IM/diagnosis-admin/orderStatusUpdate.vue
0 → 100644
浏览文件 @
91db5c51
<
template
>
<div
class=
"diagnosis-list-content"
>
<div
class=
"select-content screenSet"
>
<div
class=
"title"
>
咨询订单管理后台
</div>
</div>
<div
class=
"component-content screenSet"
>
<el-form
ref=
"form"
:inline=
"true"
:model=
"form"
label-width=
"80px"
>
<el-form-item
label=
"订单变化"
>
<el-input
v-model=
"form.orderName"
/>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
@
click=
"submitConfirm"
>
刷新
</el-button>
</el-form-item>
</el-form>
</div>
</div>
</
template
>
<
script
>
// 这个页面只是暂时的,等自动排班版本修改
import
{
getOrderNoFresh
}
from
'@/api/serviceSchedule'
;
export
default
{
name
:
'OrderStatusUpdate'
,
data
()
{
return
{
form
:
{
orderName
:
''
,
},
submitFlag
:
true
,
};
},
mounted
()
{},
methods
:
{
submitConfirm
()
{
this
.
$confirm
(
'是否要跟新订单状态?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
}).
then
(()
=>
{
this
.
onSubmit
();
});
},
onSubmit
()
{
if
(
this
.
form
.
orderName
&&
this
.
submitFlag
)
{
this
.
submitFlag
=
false
;
getOrderNoFresh
(
this
.
form
.
orderName
)
.
then
((
res
)
=>
{
let
tipText
=
''
;
if
(
res
.
code
===
'000000'
)
{
tipText
=
'更新订单成功'
;
}
else
{
tipText
=
res
.
message
;
}
this
.
form
.
orderName
=
''
;
this
.
submitFlag
=
true
;
this
.
$message
({
message
:
tipText
,
type
:
'warning'
,
duration
:
1000
,
});
})
.
cache
((
err
)
=>
{
console
.
log
(
err
);
this
.
$message
({
message
:
'服务异常'
,
type
:
'warning'
,
duration
:
1000
,
});
});
}
else
{
this
.
$message
({
message
:
'请先输入订单id'
,
type
:
'warning'
,
duration
:
1000
,
});
}
console
.
log
(
this
.
form
);
},
init
()
{
console
.
log
(
11
);
},
},
};
</
script
>
<
style
lang=
"scss"
scoped
>
.diagnosis-list-content
{
.select-content
{
margin-bottom
:
10px
;
padding
:
10px
;
background
:
#fff
;
overflow
:
hidden
!
important
;
.title
{
height
:
50px
;
display
:
flex
;
justify-content
:
flex-start
;
align-items
:
center
;
}
.form-container
{
display
:
flex
;
justify-content
:
space-between
;
.form-li
{
display
:
flex
;
flex-direction
:
column
;
// justify-content: space-between;
}
.form-btn
{
display
:
flex
;
flex-direction
:
column
;
justify-content
:
flex-start
;
.form-btn-li
{
display
:
flex
;
justify-content
:
flex-end
;
margin-bottom
:
20px
;
}
}
}
.select-bottom
{
height
:
50px
;
cursor
:
pointer
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
color
:
#0d9078
;
}
.btn-wrap
{
text-align
:
right
;
}
.t-b
{
margin-bottom
:
10px
;
}
}
.component-content
{
height
:
400px
;
padding
:
10px
;
background
:
#fff
;
overflow
:
hidden
!
important
;
}
}
</
style
>
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录