任务管理 删除

This commit is contained in:
shidongli 2025-01-21 16:12:40 +08:00
parent b60047306d
commit bc37303345
2 changed files with 99 additions and 87 deletions

View 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
})
}

View File

@ -281,6 +281,15 @@
</el-form-item> -->
</SearchFilter>
</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">
<el-table
:max-height="maxTableHeight"
@ -574,7 +583,7 @@
超期
</div>
<div v-else-if="(AItrue || COMMONtrue)">{{scope.row.phoneNodeExecuteResultStatus}}</div>
<el-button
v-if="
AItrue &&
@ -640,7 +649,7 @@
<span class="content">{{ item.contextText }}</span>
</div>
</div>
<div class="imagelistright" v-if="item.role == 'voice'">
<div class="question">
<span class="questionname">{{ item.contextText }}</span>
@ -793,6 +802,12 @@
createActualTimeTask,
getPhoneDialVideo,
} from "@/api/system/followup";
import {
taskManagement,
batchDeleteTask
} from "@/api/manage/taskmanagement";
import { usergetList } from "@/api/unitconfig/patientConfiguration";
import { getAge } from "@/utils/age";
import { selectAgencyList, getAgencyList } from "@/api/manage/selectAgencyList";
@ -802,7 +817,7 @@
name: "Followup22",
dicts: ["visit_method"],
components: { SearchFilter },
data() {
return {
//
@ -1023,12 +1038,12 @@
});
});
this.questionshow = true;
}else{
this.$message.error("未查到问卷提交信息");
}
});
},
//
@ -1056,7 +1071,7 @@
// }).then(() => {
getPhoneDialVideo(row.manageRouteNodeId).then((res) => {
console.log(res, "res");
if(res.data.record){
this.audioshow = true;
this.audiourl = process.env.VUE_APP_BASE_API + res.data.phoneDialRecordVideo;
@ -1066,13 +1081,13 @@
// this.$refs.audioPlayer.play();
// }, 1000);
});
}else{
this.$message.error("未查到回放信息");
}
});
},
Outbound(row) {
@ -1265,7 +1280,7 @@
/** 查询患者管理任务执行记录列表 */
getList() {
this.loading = true;
manualFollowUpList(this.queryParams).then((response) => {
taskManagement(this.queryParams).then((response) => {
if (
this.queryParams.phoneDialMethod == "AI" &&
this.queryParams.nodeExecuteStatus == "UNEXECUTED"
@ -1433,7 +1448,7 @@
this.phoneDialMethodshow = false;
this.showUNEXECUTED=true;
// }
// else {
// this.queryParams = {
// pageNum: 1,
@ -1476,7 +1491,8 @@
},
//
handleSelectionChange(selection) {
this.ids = selection.map((item) => item.id);
this.ids = selection.map((item) => item.manageRouteNodeId);
this.single = selection.length !== 1;
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) {
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
.confirm(
'是否确认删除?'
)
.then(function () {
return delTaskExecuteRecord(ids);
return batchDeleteTask(ids);
})
.then(() => {
this.getList();
@ -1574,16 +1579,6 @@
})
.catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
this.download(
"system/taskExecuteRecord/export",
{
...this.queryParams,
},
`taskExecuteRecord_${new Date().getTime()}.xlsx`
);
},
//
getMaxTableHeight() {
const windowInnerHeight = window.innerHeight; //
@ -1610,7 +1605,7 @@
window.removeEventListener("resize", this.getMaxTableHeight, true);
});
},
renderHeader(h, { column }) {
return h("span", {}, [
h("span", {}, column.label.split("/")[0]),
@ -1626,117 +1621,117 @@
background-color: #fff !important;
color: black !important;
}
::v-deep .el-textarea.is-disabled .el-textarea__inner {
background-color: #fff !important;
color: black !important;
}
::v-deep .el-checkbox__input.is-disabled.is-checked .el-checkbox__inner {
border: 1px solid #dcdfe6 !important;
border-color: #1890ff !important;
}
::v-deep .el-checkbox__input.is-disabled + span.el-checkbox__label {
color: black !important;
}
::v-deep .el-checkbox__input.is-disabled.is-checked .el-checkbox__inner::after {
border-color: #1890ff !important;
}
::v-deep .el-checkbox__input.is-disabled .el-checkbox__inner {
background-color: #fff !important;
}
::v-deep .el-radio__input.is-disabled .el-radio__inner {
border: 1px solid #dcdfe6 !important;
background-color: #fff !important;
}
::v-deep .el-radio__input.is-disabled.is-checked .el-radio__inner {
border-color: #1890ff !important;
}
::v-deep .el-radio__input.is-disabled.is-checked .el-radio__inner::after {
color: #1890ff !important;
background-color: #1890ff !important;
}
::v-deep .el-radio__input.is-disabled + span.el-radio__label {
color: black !important;
}
.tk {
::v-deep .el-textarea__inner {
margin: 20px 0 10px 30px;
}
}
::v-deep .el-radio {
padding: 10px;
}
::v-deep .el-checkbox-group {
display: flex;
flex-direction: column;
padding: 10px 0px 10px 24px;
}
::v-deep .el-checkbox {
padding: 10px 0 10px 0px;
// padding: 10px;
}
.custom-radio-group {
display: flex;
flex-direction: column;
padding: 10px 0 10px 10px;
.custom {
padding: 10px 0 10px 10px;
}
}
.custom-radio-group {
display: flex;
flex-direction: column;
padding: 10px 0 10px 10px;
.custom {
padding: 10px 0 10px 10px;
}
}
.right {
width: 100%;
// background: yellow;
}
.bottomheader {
width: 99%;
background-color: #fff;
margin: 0 auto;
.title {
line-height: 40px;
font-size: 20px;
margin: 0 10px;
}
.words {
font-size: 15px;
padding: 10px 50px 10px 10px;
}
}
.audio {
margin: 10px 0px 10px 0;
.name {
display: inline-block;
margin: 20px
}
.imagelist {
padding-top: 10px;
display: flex;
@ -1781,7 +1776,7 @@
// height: 30px;
padding-left: 10px;
padding-right: 10px;
background: #51b9ff;
box-shadow: 5px 5px 10px #dbe5f4;
border-radius: 5px;
@ -1800,19 +1795,19 @@
}
}
}
audio {
width: 350px;
}
::v-deep .el-table {
overflow: auto;
}
.app-container {
// padding-top: 0 !important;
}
::v-deep.el-table {
.el-table-column--selection .cell {
text-overflow: clip !important;
@ -1820,22 +1815,22 @@
padding-right: 3px !important;
}
}
// :deep(.el-switch) {
// position: relative;
// user-select: none;
// .el-switch__core {
// width: 45px !important;
// }
// &.is-checked .el-switch__label {
// position: absolute;
// top: 0px;
// left: -3px;
// color: #fff;
// }
// .el-switch__label {
// position: absolute;
// top: 0px;
@ -1843,41 +1838,40 @@
// color: #fff;
// }
// }
::v-deep .el-switch {
.el-switch__label {
position: absolute !important;
display: none;
color: #fff;
}
.el-switch__label--left {
z-index: 9 !important;
left: 20px !important;
}
.el-switch__label--right {
z-index: 9;
left: -3px;
}
.el-switch__label.is-active {
display: block !important;
color: #fff;
}
.el-switch__core {
width: 85px !important;
}
.el-switch__label {
width: 60px !important;
text-align: center;
}
}
::v-deep .el-table__fixed-right::before {
height: 0px !important;
}
</style>