| | |
| | | // 任务发送,执行 |
| | | export function TaskTemplateSendExecution(data) { |
| | | return request({ |
| | | url: "/dev-api/smartor/tasksingle/taskSend", |
| | | url: "/smartor/tasksingle/taskSend", |
| | | method: "post", |
| | | data: data, |
| | | }); |
| | |
| | | inputVisible: false, |
| | | inputValue: "", |
| | | previewVisible: false, //门诊随访预览弹框 |
| | | TaskOperation: {}, |
| | | radio: "", |
| | | radios: [], |
| | | previewtype: 2, //预览门诊随访类型 |
| | |
| | | deletefn() {}, |
| | | // 任务发起 |
| | | sponsor(row) { |
| | | if (row.sendState != 1) { |
| | | TaskTemplateSendExecution().then((res) => {}); |
| | | console.log(row,'任务信息'); |
| | | if (row.sendState != 2) { |
| | | this.TaskOperation.taskId = row.taskid; |
| | | this.TaskOperation.sendState = 2; |
| | | TaskTemplateSendExecution(this.TaskOperation).then((res) => {}); |
| | | } |
| | | }, |
| | | // 依照新增 |
| | |
| | | }, |
| | | // 暂停 |
| | | stop(row) { |
| | | if (row.sendState == 2 || row.sendState == 3) { |
| | | if (row.sendState == 2) { |
| | | this.TaskOperation.taskId = row.taskId; |
| | | this.TaskOperation.sendState = 3; |
| | | TaskTemplateSendExecution().then((res) => {}); |
| | | } |
| | | }, |