任务管理 删除
This commit is contained in:
parent
b60047306d
commit
bc37303345
18
src/api/manage/taskmanagement.js
Normal file
18
src/api/manage/taskmanagement.js
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
// 删除
|
||||||
|
export function batchDeleteTask(query) {
|
||||||
|
return request({
|
||||||
|
url: '/manage/signroute/batchDeleteTask',
|
||||||
|
method: 'post',
|
||||||
|
data: query
|
||||||
|
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 查询列表
|
||||||
|
export function taskManagement(query) {
|
||||||
|
return request({
|
||||||
|
url: '/manage/signroute/taskManagement',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
@ -281,6 +281,15 @@
|
|||||||
</el-form-item> -->
|
</el-form-item> -->
|
||||||
</SearchFilter>
|
</SearchFilter>
|
||||||
</div>
|
</div>
|
||||||
|
<div ref="mb8" class="mb8">
|
||||||
|
<el-row :gutter="10" class="">
|
||||||
|
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="multiple" @click="handleDelete"
|
||||||
|
v-hasPermi="['manage:preHospitalized:remove']">删除</el-button>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</div>
|
||||||
<div ref="table">
|
<div ref="table">
|
||||||
<el-table
|
<el-table
|
||||||
:max-height="maxTableHeight"
|
:max-height="maxTableHeight"
|
||||||
@ -574,7 +583,7 @@
|
|||||||
超期
|
超期
|
||||||
</div>
|
</div>
|
||||||
<div v-else-if="(AItrue || COMMONtrue)">{{scope.row.phoneNodeExecuteResultStatus}}</div>
|
<div v-else-if="(AItrue || COMMONtrue)">{{scope.row.phoneNodeExecuteResultStatus}}</div>
|
||||||
|
|
||||||
<el-button
|
<el-button
|
||||||
v-if="
|
v-if="
|
||||||
AItrue &&
|
AItrue &&
|
||||||
@ -640,7 +649,7 @@
|
|||||||
<span class="content">{{ item.contextText }}</span>
|
<span class="content">{{ item.contextText }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="imagelistright" v-if="item.role == 'voice'">
|
<div class="imagelistright" v-if="item.role == 'voice'">
|
||||||
<div class="question">
|
<div class="question">
|
||||||
<span class="questionname">{{ item.contextText }}</span>
|
<span class="questionname">{{ item.contextText }}</span>
|
||||||
@ -793,6 +802,12 @@
|
|||||||
createActualTimeTask,
|
createActualTimeTask,
|
||||||
getPhoneDialVideo,
|
getPhoneDialVideo,
|
||||||
} from "@/api/system/followup";
|
} from "@/api/system/followup";
|
||||||
|
import {
|
||||||
|
taskManagement,
|
||||||
|
|
||||||
|
batchDeleteTask
|
||||||
|
} from "@/api/manage/taskmanagement";
|
||||||
|
|
||||||
import { usergetList } from "@/api/unitconfig/patientConfiguration";
|
import { usergetList } from "@/api/unitconfig/patientConfiguration";
|
||||||
import { getAge } from "@/utils/age";
|
import { getAge } from "@/utils/age";
|
||||||
import { selectAgencyList, getAgencyList } from "@/api/manage/selectAgencyList";
|
import { selectAgencyList, getAgencyList } from "@/api/manage/selectAgencyList";
|
||||||
@ -802,7 +817,7 @@
|
|||||||
name: "Followup22",
|
name: "Followup22",
|
||||||
dicts: ["visit_method"],
|
dicts: ["visit_method"],
|
||||||
components: { SearchFilter },
|
components: { SearchFilter },
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
//播放回放
|
//播放回放
|
||||||
@ -1023,12 +1038,12 @@
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
this.questionshow = true;
|
this.questionshow = true;
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
this.$message.error("未查到问卷提交信息");
|
this.$message.error("未查到问卷提交信息");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 任务类型
|
// 任务类型
|
||||||
@ -1056,7 +1071,7 @@
|
|||||||
// }).then(() => {
|
// }).then(() => {
|
||||||
getPhoneDialVideo(row.manageRouteNodeId).then((res) => {
|
getPhoneDialVideo(row.manageRouteNodeId).then((res) => {
|
||||||
console.log(res, "res");
|
console.log(res, "res");
|
||||||
|
|
||||||
if(res.data.record){
|
if(res.data.record){
|
||||||
this.audioshow = true;
|
this.audioshow = true;
|
||||||
this.audiourl = process.env.VUE_APP_BASE_API + res.data.phoneDialRecordVideo;
|
this.audiourl = process.env.VUE_APP_BASE_API + res.data.phoneDialRecordVideo;
|
||||||
@ -1066,13 +1081,13 @@
|
|||||||
// this.$refs.audioPlayer.play();
|
// this.$refs.audioPlayer.play();
|
||||||
// }, 1000);
|
// }, 1000);
|
||||||
});
|
});
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
this.$message.error("未查到回放信息");
|
this.$message.error("未查到回放信息");
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
Outbound(row) {
|
Outbound(row) {
|
||||||
@ -1265,7 +1280,7 @@
|
|||||||
/** 查询患者管理任务执行记录列表 */
|
/** 查询患者管理任务执行记录列表 */
|
||||||
getList() {
|
getList() {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
manualFollowUpList(this.queryParams).then((response) => {
|
taskManagement(this.queryParams).then((response) => {
|
||||||
if (
|
if (
|
||||||
this.queryParams.phoneDialMethod == "AI" &&
|
this.queryParams.phoneDialMethod == "AI" &&
|
||||||
this.queryParams.nodeExecuteStatus == "UNEXECUTED"
|
this.queryParams.nodeExecuteStatus == "UNEXECUTED"
|
||||||
@ -1433,7 +1448,7 @@
|
|||||||
this.phoneDialMethodshow = false;
|
this.phoneDialMethodshow = false;
|
||||||
this.showUNEXECUTED=true;
|
this.showUNEXECUTED=true;
|
||||||
// }
|
// }
|
||||||
|
|
||||||
// else {
|
// else {
|
||||||
// this.queryParams = {
|
// this.queryParams = {
|
||||||
// pageNum: 1,
|
// pageNum: 1,
|
||||||
@ -1476,7 +1491,8 @@
|
|||||||
},
|
},
|
||||||
// 多选框选中数据
|
// 多选框选中数据
|
||||||
handleSelectionChange(selection) {
|
handleSelectionChange(selection) {
|
||||||
this.ids = selection.map((item) => item.id);
|
|
||||||
|
this.ids = selection.map((item) => item.manageRouteNodeId);
|
||||||
this.single = selection.length !== 1;
|
this.single = selection.length !== 1;
|
||||||
this.multiple = !selection.length;
|
this.multiple = !selection.length;
|
||||||
},
|
},
|
||||||
@ -1538,35 +1554,24 @@
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
/** 提交按钮 */
|
|
||||||
submitForm() {
|
|
||||||
this.$refs["form"].validate((valid) => {
|
|
||||||
if (valid) {
|
|
||||||
if (this.form.id != null) {
|
|
||||||
updateTaskExecuteRecord(this.form).then((response) => {
|
|
||||||
this.$modal.msgSuccess("修改成功");
|
|
||||||
this.open = false;
|
|
||||||
this.getList();
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
addTaskExecuteRecord(this.form).then((response) => {
|
|
||||||
this.$modal.msgSuccess("新增成功");
|
|
||||||
this.open = false;
|
|
||||||
this.getList();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
/** 删除按钮操作 */
|
/** 删除按钮操作 */
|
||||||
handleDelete(row) {
|
handleDelete(row) {
|
||||||
const ids = row.id || this.ids;
|
console.log(row.manageRouteNodeId)
|
||||||
|
var ids=[]
|
||||||
|
if(row.manageRouteNodeId){
|
||||||
|
ids.push(row.manageRouteNodeId)
|
||||||
|
|
||||||
|
}else if(this.ids){
|
||||||
|
ids=this.ids
|
||||||
|
|
||||||
|
}
|
||||||
|
// const ids = row.manageRouteNodeId || this.ids;
|
||||||
this.$modal
|
this.$modal
|
||||||
.confirm(
|
.confirm(
|
||||||
'是否确认删除?'
|
'是否确认删除?'
|
||||||
)
|
)
|
||||||
.then(function () {
|
.then(function () {
|
||||||
return delTaskExecuteRecord(ids);
|
return batchDeleteTask(ids);
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.getList();
|
this.getList();
|
||||||
@ -1574,16 +1579,6 @@
|
|||||||
})
|
})
|
||||||
.catch(() => {});
|
.catch(() => {});
|
||||||
},
|
},
|
||||||
/** 导出按钮操作 */
|
|
||||||
handleExport() {
|
|
||||||
this.download(
|
|
||||||
"system/taskExecuteRecord/export",
|
|
||||||
{
|
|
||||||
...this.queryParams,
|
|
||||||
},
|
|
||||||
`taskExecuteRecord_${new Date().getTime()}.xlsx`
|
|
||||||
);
|
|
||||||
},
|
|
||||||
// 获取表格最高高度
|
// 获取表格最高高度
|
||||||
getMaxTableHeight() {
|
getMaxTableHeight() {
|
||||||
const windowInnerHeight = window.innerHeight; // 屏幕可视高度
|
const windowInnerHeight = window.innerHeight; // 屏幕可视高度
|
||||||
@ -1610,7 +1605,7 @@
|
|||||||
window.removeEventListener("resize", this.getMaxTableHeight, true);
|
window.removeEventListener("resize", this.getMaxTableHeight, true);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
renderHeader(h, { column }) {
|
renderHeader(h, { column }) {
|
||||||
return h("span", {}, [
|
return h("span", {}, [
|
||||||
h("span", {}, column.label.split("/")[0]),
|
h("span", {}, column.label.split("/")[0]),
|
||||||
@ -1626,117 +1621,117 @@
|
|||||||
background-color: #fff !important;
|
background-color: #fff !important;
|
||||||
color: black !important;
|
color: black !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .el-textarea.is-disabled .el-textarea__inner {
|
::v-deep .el-textarea.is-disabled .el-textarea__inner {
|
||||||
background-color: #fff !important;
|
background-color: #fff !important;
|
||||||
color: black !important;
|
color: black !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .el-checkbox__input.is-disabled.is-checked .el-checkbox__inner {
|
::v-deep .el-checkbox__input.is-disabled.is-checked .el-checkbox__inner {
|
||||||
border: 1px solid #dcdfe6 !important;
|
border: 1px solid #dcdfe6 !important;
|
||||||
border-color: #1890ff !important;
|
border-color: #1890ff !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .el-checkbox__input.is-disabled + span.el-checkbox__label {
|
::v-deep .el-checkbox__input.is-disabled + span.el-checkbox__label {
|
||||||
color: black !important;
|
color: black !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .el-checkbox__input.is-disabled.is-checked .el-checkbox__inner::after {
|
::v-deep .el-checkbox__input.is-disabled.is-checked .el-checkbox__inner::after {
|
||||||
border-color: #1890ff !important;
|
border-color: #1890ff !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .el-checkbox__input.is-disabled .el-checkbox__inner {
|
::v-deep .el-checkbox__input.is-disabled .el-checkbox__inner {
|
||||||
background-color: #fff !important;
|
background-color: #fff !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .el-radio__input.is-disabled .el-radio__inner {
|
::v-deep .el-radio__input.is-disabled .el-radio__inner {
|
||||||
border: 1px solid #dcdfe6 !important;
|
border: 1px solid #dcdfe6 !important;
|
||||||
background-color: #fff !important;
|
background-color: #fff !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .el-radio__input.is-disabled.is-checked .el-radio__inner {
|
::v-deep .el-radio__input.is-disabled.is-checked .el-radio__inner {
|
||||||
border-color: #1890ff !important;
|
border-color: #1890ff !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .el-radio__input.is-disabled.is-checked .el-radio__inner::after {
|
::v-deep .el-radio__input.is-disabled.is-checked .el-radio__inner::after {
|
||||||
color: #1890ff !important;
|
color: #1890ff !important;
|
||||||
background-color: #1890ff !important;
|
background-color: #1890ff !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .el-radio__input.is-disabled + span.el-radio__label {
|
::v-deep .el-radio__input.is-disabled + span.el-radio__label {
|
||||||
color: black !important;
|
color: black !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tk {
|
.tk {
|
||||||
::v-deep .el-textarea__inner {
|
::v-deep .el-textarea__inner {
|
||||||
margin: 20px 0 10px 30px;
|
margin: 20px 0 10px 30px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .el-radio {
|
::v-deep .el-radio {
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .el-checkbox-group {
|
::v-deep .el-checkbox-group {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
padding: 10px 0px 10px 24px;
|
padding: 10px 0px 10px 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .el-checkbox {
|
::v-deep .el-checkbox {
|
||||||
padding: 10px 0 10px 0px;
|
padding: 10px 0 10px 0px;
|
||||||
// padding: 10px;
|
// padding: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.custom-radio-group {
|
.custom-radio-group {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
padding: 10px 0 10px 10px;
|
padding: 10px 0 10px 10px;
|
||||||
|
|
||||||
.custom {
|
.custom {
|
||||||
padding: 10px 0 10px 10px;
|
padding: 10px 0 10px 10px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.custom-radio-group {
|
.custom-radio-group {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
padding: 10px 0 10px 10px;
|
padding: 10px 0 10px 10px;
|
||||||
|
|
||||||
.custom {
|
.custom {
|
||||||
padding: 10px 0 10px 10px;
|
padding: 10px 0 10px 10px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.right {
|
.right {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
// background: yellow;
|
// background: yellow;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bottomheader {
|
.bottomheader {
|
||||||
width: 99%;
|
width: 99%;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
margin: 0 10px;
|
margin: 0 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.words {
|
.words {
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
padding: 10px 50px 10px 10px;
|
padding: 10px 50px 10px 10px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.audio {
|
.audio {
|
||||||
margin: 10px 0px 10px 0;
|
margin: 10px 0px 10px 0;
|
||||||
.name {
|
.name {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin: 20px
|
margin: 20px
|
||||||
}
|
}
|
||||||
|
|
||||||
.imagelist {
|
.imagelist {
|
||||||
padding-top: 10px;
|
padding-top: 10px;
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -1781,7 +1776,7 @@
|
|||||||
// height: 30px;
|
// height: 30px;
|
||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
padding-right: 10px;
|
padding-right: 10px;
|
||||||
|
|
||||||
background: #51b9ff;
|
background: #51b9ff;
|
||||||
box-shadow: 5px 5px 10px #dbe5f4;
|
box-shadow: 5px 5px 10px #dbe5f4;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
@ -1800,19 +1795,19 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
audio {
|
audio {
|
||||||
width: 350px;
|
width: 350px;
|
||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .el-table {
|
::v-deep .el-table {
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-container {
|
.app-container {
|
||||||
// padding-top: 0 !important;
|
// padding-top: 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
::v-deep.el-table {
|
::v-deep.el-table {
|
||||||
.el-table-column--selection .cell {
|
.el-table-column--selection .cell {
|
||||||
text-overflow: clip !important;
|
text-overflow: clip !important;
|
||||||
@ -1820,22 +1815,22 @@
|
|||||||
padding-right: 3px !important;
|
padding-right: 3px !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// :deep(.el-switch) {
|
// :deep(.el-switch) {
|
||||||
// position: relative;
|
// position: relative;
|
||||||
// user-select: none;
|
// user-select: none;
|
||||||
|
|
||||||
// .el-switch__core {
|
// .el-switch__core {
|
||||||
// width: 45px !important;
|
// width: 45px !important;
|
||||||
// }
|
// }
|
||||||
|
|
||||||
// &.is-checked .el-switch__label {
|
// &.is-checked .el-switch__label {
|
||||||
// position: absolute;
|
// position: absolute;
|
||||||
// top: 0px;
|
// top: 0px;
|
||||||
// left: -3px;
|
// left: -3px;
|
||||||
// color: #fff;
|
// color: #fff;
|
||||||
// }
|
// }
|
||||||
|
|
||||||
// .el-switch__label {
|
// .el-switch__label {
|
||||||
// position: absolute;
|
// position: absolute;
|
||||||
// top: 0px;
|
// top: 0px;
|
||||||
@ -1843,41 +1838,40 @@
|
|||||||
// color: #fff;
|
// color: #fff;
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
|
|
||||||
::v-deep .el-switch {
|
::v-deep .el-switch {
|
||||||
.el-switch__label {
|
.el-switch__label {
|
||||||
position: absolute !important;
|
position: absolute !important;
|
||||||
display: none;
|
display: none;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-switch__label--left {
|
.el-switch__label--left {
|
||||||
z-index: 9 !important;
|
z-index: 9 !important;
|
||||||
left: 20px !important;
|
left: 20px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-switch__label--right {
|
.el-switch__label--right {
|
||||||
z-index: 9;
|
z-index: 9;
|
||||||
left: -3px;
|
left: -3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-switch__label.is-active {
|
.el-switch__label.is-active {
|
||||||
display: block !important;
|
display: block !important;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-switch__core {
|
.el-switch__core {
|
||||||
width: 85px !important;
|
width: 85px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-switch__label {
|
.el-switch__label {
|
||||||
width: 60px !important;
|
width: 60px !important;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .el-table__fixed-right::before {
|
::v-deep .el-table__fixed-right::before {
|
||||||
height: 0px !important;
|
height: 0px !important;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user