重拨次数:
-
-
+
+
@@ -311,24 +476,44 @@
时间间隔(分):
-
+
短信提醒:
-
-
+
+
短信模板:
-
-
+
+
@@ -351,11 +536,22 @@ import { signrouteadd } from "@/api/system/ManuallyCreatingTasks";
import { getAgencytype } from "@/api/system/agency";
import { list, triggerCondition, getList, } from "@/api/system/specialDiseaseNode";
+
export default {
components: { scriptphone, question, propaganda, scripts, message, officialAccount, miniProgram },
name: "ManuallyCreatingTasks",
data() {
return {
+ show: 0,
+ pickerOptions: {
+ disabledDate(time) {
+ // 选择今天以及今天之后的日期
+ return time.getTime() < Date.now() - 8.64e7// 如果没有后面的-8.64e7就是不可以选择
+ // 选择今天以及今天之前的日期
+ // return time.getTime() > Date.now() - 8.64e7// 如果没有后面的-8.64e7就是不可以选择今天的
+ }
+ },
+
heightLine: 0,
optionsname: '',
options: [],
@@ -364,13 +560,14 @@ export default {
optionslisttime: [],
parentDictCodelist: [],
updata: {
+ importId: "",
signPatientRecordId: "",
patientId: "",
patientName: "",
departmentId: "",
departmentName: "",
routeName: "",
- suitRange: "",
+ suitRange: "OUTPATIENT_SERVICE_DISCHARGE",
routeNodeList: [],
triggerConditionList: [
{
@@ -404,7 +601,7 @@ export default {
{
routeNodeDay: "",
taskNodeType: "",
- routeNodeName: "",
+ routeNodeName: "AFTER_VISIT_DISCHARGE",
// questionExpirationDate: 7,
questionInfoId: "",
questionnaireName: "",
@@ -418,6 +615,15 @@ export default {
appletPushSign: "0",
phonePushSign: "1",
phoneDialMethod: "",
+ plantype: "PLUSDAY",
+ nodePlanTime: "",
+ checked1: 1,
+ checked2: false,
+ checked3: false,
+ disabled: true,
+ disableddata: false,
+ disabledcount: false
+
},
],
listindex: 0,
@@ -425,6 +631,8 @@ export default {
// dictDataType: "",
};
},
+ watch: {
+ },
created() {
this.infolist();
this.infolistword();
@@ -434,16 +642,157 @@ export default {
this.optiononditionOperator();
this.updata.signPatientRecordId = this.$route.query.signPatientRecordId;
this.updata.patientId = this.$route.query.patientId;
+ this.updata.importId = this.$route.query.importId;
this.updata.patientName = this.$route.query.patientName;
this.updata.departmentId = this.$route.query.departmentId;
this.updata.departmentName = this.$route.query.departmentName;
this.formInline = this.list[0];
+
},
mounted() {
this.getMaxTableHeight()
this.screenChange()
},
methods: {
+ // 出院/诊后
+ handleCheckAllChange1(e, item) {
+ console.log(e, item, 'value')
+ item.checked2 = ""
+ item.checked3 = ""
+ item.disabled = true
+ item.disableddata = false
+ item.disabledcount = false
+ item.nodePlanTime = ""
+ item.timedata = ""
+ item.plantype = "PLUSDAY"
+ // if (e == true) {
+ // item.checked2 = false
+ // item.checked3 = false
+ // item.disabled = true
+ // item.disableddata = false
+ // item.disabledcount = false
+ // item.nodePlanTime = ""
+ // item.timedata = ""
+ // item.plantype = "PLUSDAY"
+ // } else {
+ // item.disableddata = true
+ // item.disabledcount = true
+ // item.routeNodeName = ""
+ // item.routeNodeDay = ""
+ // }
+ },
+ // 指定时间
+ handleCheckAllChange2(e, item, index) {
+ item.checked1 = ""
+ item.checked3 = ""
+ console.log(this.list, 'list')
+ item.routeNodeName = ""
+ item.routeNodeDay = ""
+ item.disabled = false
+ item.disableddata = true
+ item.disabledcount = true
+ item.plantype = "APPOINT"
+ item.timedata = ""
+
+
+ // if (e == false) {
+ // item.nodePlanTime = ""
+ // item.disabled = true
+ // } else {
+ // item.plantype = "APPOINT"
+ // item.timedata = ""
+ // console.log(e, item, index, 'value2')
+ // item.disabled = false
+ // item.disableddata = true
+ // item.disabledcount = true
+ // }
+ },
+ // 立即执行
+ handleCheckAllChange3(e, item) {
+ item.checked1 = ""
+ item.checked2 = ""
+ item.routeNodeName = ""
+ item.routeNodeDay = ""
+ console.log(e, item, 'value3')
+ let yy = new Date().getFullYear();
+ let mm = (new Date().getMonth() + 1) < 10 ? '0' + (new Date().getMonth() + 1) : (new Date().getMonth() + 1);
+ let dd = (new Date().getDate()) < 10 ? '0' + (new Date().getDate() + 1) : (new Date().getDate() + 1);
+ let hh = new Date().getHours() < 10 ? '0' + new Date().getHours() : new Date().getHours();
+ let mf = new Date().getMinutes() < 10 ? '0' + new Date().getMinutes() : new Date().getMinutes();
+ let ss = new Date().getSeconds() < 10 ? '0' + new Date().getSeconds() : new Date().getSeconds();
+ var data = yy + '-' + mm + '-' + dd + ' ' + hh + ':' + mf + ':' + ss
+ item.timedata = data
+ console.log(data, '日期');
+ item.plantype = "CURRENT"
+ item.disableddata = true
+ item.disabledcount = true
+ item.disabled = true
+ item.nodePlanTime = ""
+ // if (e == true) {
+ // console.log('00000000000000000000')
+ // let yy = new Date().getFullYear();
+ // let mm = (new Date().getMonth() + 1) < 10 ? '0' + (new Date().getMonth() + 1) : (new Date().getMonth() + 1);
+ // let dd = (new Date().getDate()) < 10 ? '0' + (new Date().getDate() + 1) : (new Date().getDate() + 1);
+ // let hh = new Date().getHours() < 10 ? '0' + new Date().getHours() : new Date().getHours();
+ // let mf = new Date().getMinutes() < 10 ? '0' + new Date().getMinutes() : new Date().getMinutes();
+ // let ss = new Date().getSeconds() < 10 ? '0' + new Date().getSeconds() : new Date().getSeconds();
+ // var data = yy + '-' + mm + '-' + dd + ' ' + hh + ':' + mf + ':' + ss
+ // item.timedata = data
+ // console.log(data, '日期');
+ // item.plantype = "CURRENT"
+ // item.disableddata = true
+ // item.disabledcount = true
+ // item.disabled = true
+ // item.nodePlanTime = ""
+
+ // } else {
+ // item.timedata = ""
+ // }
+ },
+
+ upload() {
+ // return
+ this.$confirm('保存此任务, 是否继续?', '提示', {
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ }).then(() => {
+ this.updata.routeNodeList = this.list;
+ var newObj = JSON.parse(JSON.stringify(this.updata));
+ newObj.routeNodeList.forEach(e => {
+ if (e.timedata) {
+ e.nodePlanTime = e.timedata
+ }
+ delete e.timedata;
+ delete e.checked1;
+ delete e.checked2;
+ delete e.checked3;
+ delete e.disableddata;
+ delete e.disabledcount;
+ delete e.disabled;
+ })
+ console.log(newObj, 'this.newObj')
+ console.log(this.updata, 'this.updata')
+ // return
+ signrouteadd(newObj).then((res) => {
+ this.$notify({
+ type: "success",
+ title: "提示",
+ message: "保存成功,即将返回签约患者列表",
+ duration: 3000,
+ });
+ setTimeout(() => {
+ this.$store
+ .dispatch("tagsView/delView", this.$route)
+ .then(({ visitedViews }) => {
+ this.$router.push({
+ path: "/patient/signRecord",
+ });
+ });
+ }, 3000);
+ });
+ })
+ },
+
//点击任务内容
taskNodeTypechange(e) {
if (e == 'PHONE_OUTBOUND') {
@@ -551,6 +900,10 @@ export default {
var dictType = "suit_range";
getAgencytype(dictType).then((res) => {
this.options = res.data;
+ if (this.options) {
+ this.changeoptions(this.updata.suitRange)
+
+ }
});
},
infolistword() {
@@ -566,6 +919,7 @@ export default {
});
},
changeoptions(e) {
+ console.log(e, 'e');
let parentDictCode = this.options.find((el) => el.dictValue == e).dictCode;
list(parentDictCode).then((res) => {
this.parentDictCodelist = res.rows;
@@ -676,7 +1030,17 @@ export default {
appletPushSign: "0",
phonePushSign: "1",
phoneDialMethod: "",
+ nodePlanTime: '',
+ checked1: 1,
+ checked2: "",
+ checked3: "",
+ disabled: true,
+ disableddata: false,
+ disabledcount: false,
+ timedata: "",
+
});
+ console.log(this.list, 'this.list');
},
delitem(item, index, list) {
list.splice(index, 1);
@@ -698,31 +1062,6 @@ export default {
this.formInline.phoneTemplateName = ''
}
},
- upload() {
- this.$confirm('保存此任务, 是否继续?', '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- }).then(() => {
- this.updata.routeNodeList = this.list;
- signrouteadd(this.updata).then((res) => {
- this.$notify({
- type: "success",
- title: "提示",
- message: "保存成功,即将返回签约患者列表",
- duration: 3000,
- });
- setTimeout(() => {
- this.$store
- .dispatch("tagsView/delView", this.$route)
- .then(({ visitedViews }) => {
- this.$router.push({
- path: "/patient/signRecord",
- });
- });
- }, 3000);
- });
- })
- },
// 获取表格最高高度
getMaxTableHeight() {
const windowInnerHeight = window.innerHeight // 屏幕可视高度
@@ -750,6 +1089,9 @@ export default {
display: inline-block !important;
float: inline-start !important;
}
+::v-deep .el-input.is-disabled .el-input__inner {
+ background: #fff;
+}
.titlemengt {
width: 98.5%;
@@ -766,7 +1108,7 @@ export default {
::-webkit-scrollbar-thumb {
border-radius: 5px;
- background: #C0C0C0;
+ background: #c0c0c0;
}
::-webkit-scrollbar-track {
@@ -834,7 +1176,6 @@ export default {
}
.nodesname {
-
// margin-left: 6%;
// width: 660px;
// display: flex;
@@ -851,13 +1192,6 @@ export default {
}
}
}
-
-.selectnamelist {
- // position: absolute;
- // right: 54px;
- // top: -8px;
-}
-
.PushMethod {
height: 100px;
padding: 20px;
@@ -870,8 +1204,6 @@ export default {
align-items: center;
}
-
-
.nodes {
// height: var(--heightLine);
background-color: #f1f3f5;
@@ -887,9 +1219,8 @@ export default {
// height: calc(100vh - 320px);
height: 100%;
width: 25%;
- padding: 0 40px 20px 40px;
+ padding: 0 5px 20px 40px;
background-color: #fff;
- overflow-y: scroll;
.timetitle {
height: 60px;
@@ -900,7 +1231,9 @@ export default {
::v-deep .el-timeline {
width: 100%;
- padding: 15px 0 0 !important;
+ overflow-y: auto;
+ height: calc(100% - 60px);
+ padding: 15px 30px 0 0 !important;
}
}
@@ -918,7 +1251,7 @@ export default {
display: flex;
justify-content: space-between;
align-items: center;
-
+ margin-bottom: 10px;
.toptop {
display: flex;
align-items: center;