diff --git a/src/api/manage/taskmanagement.js b/src/api/manage/taskmanagement.js
new file mode 100644
index 0000000..be08ecd
--- /dev/null
+++ b/src/api/manage/taskmanagement.js
@@ -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
+ })
+}
\ No newline at end of file
diff --git a/src/views/manage/taskmanagement/index.vue b/src/views/manage/taskmanagement/index.vue
index 95d3abc..c1c4527 100644
--- a/src/views/manage/taskmanagement/index.vue
+++ b/src/views/manage/taskmanagement/index.vue
@@ -281,6 +281,15 @@
-->
+
{{ item.contextText }}
@@ -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;
}
-
\ No newline at end of file