推送方式:
@@ -162,21 +237,33 @@
模板:
-
+
+
-
+
-
+
-
+
推送方式:
@@ -185,89 +272,136 @@
模板:
-
+
+
-
+
-
+
+
+
+
+
+ 推送方式:
+ 人工电话
+
+
+ 模板:
+
+
+
+
+
+
+
+
+
+ 重播次数:
+
+
+
+
+
+
+
+
+ 时间间隔:
+
+
+
+
+
+
+
+ 短信提醒:
+
+
+
+
+
+
+ 短信模板:
+
+
+
+
+
+
+
-
@@ -281,18 +415,24 @@ import message from '@/views/system/components/message.vue'
import propaganda from '@/views/system/components/propaganda.vue'
import officialAccount from '@/views/system/components/officialAccount.vue'
import miniProgram from '@/views/system/components/miniProgram.vue'
+import scripts from '@/views/system/components/script.vue'
+
import {
- selectTaskTypeList, taskPartitionList, taskStatusDictList, specialDiseaseNode, selectSpecialDiseasenew, updateRouteCheckStatus, getById
+ selectTaskTypeList, taskPartitionList, taskStatusDictList, specialDiseaseNode, selectSpecialDiseasenew, updateRouteCheckStatus, getById, selectSpecialDisease,
} from '@/api/system/specialDiseaseNode'
import questionopennew from '../components/questionopennew.vue';
import Editorxj from "../../system/Editorxj/index.vue";
+import { getAgencytype } from "@/api/system/agency";
export default {
- components: { wangeditor, question, propaganda, message, officialAccount, miniProgram, questionopennew, Editorxj },
+ components: { wangeditor, question, propaganda, message, officialAccount, miniProgram, questionopennew, Editorxj, scripts,},
props: ['lookitem'],
name: "specialDiseaseNodeopen",
data() {
return {
+ options: [],
+ optionslist: [],
+ optionslistS: [],
show: false,
baseUrl: process.env.VUE_APP_BASE_API,
dialogVisible: false,
@@ -308,6 +448,7 @@ export default {
totalNumber: 0,
agreeNumber: 0,
updata: {
+ specialDiseaseRouteId: "",
manageRouteId: '',
suitRange: '',
routeName: '',
@@ -325,7 +466,7 @@ export default {
executionTime: '',
appletPushSign: '0',
officialPushSign: '0',
- messagePushSign: '0',
+ messagePushSign: 0,
taskSubdivisiontemplateType: '',
officialRemindContent: '',
messagePreview: '',
@@ -338,18 +479,25 @@ export default {
lookitemnew: {},
value: '',
input: '',
+ parentDictCode: "",
//任务类型
selectTaskTypeList: [],
//任务状态
taskStatusDictList: [],
//任务细分
taskPartitionList: [],
+ parentDictCodelist: [],
};
},
created() {
this.updata = this.lookitem
+ console.log(this.updata)
this.updata.manageRouteId = this.lookitem.manageRouteId
+ this.updata.specialDiseaseRouteId =this.updata.id
this.taskinfo();
+ this.infolistword();
+ this.infolistMESSAGE();
+ this.infolist();
},
beforeDestroy() { },
watch: {
@@ -362,25 +510,115 @@ export default {
mounted() {
},
methods: {
+ infolistword() {
+ var dictType = "text_message_remind";
+ getAgencytype(dictType).then((res) => {
+ this.optionslist = res.data;
+ // this.taskinfo();
+ });
+ },
+ infolistMESSAGE() {
+ var dictType = "redial_times";
+ getAgencytype(dictType).then((res) => {
+ this.optionslistS = res.data;
+ // this.taskinfo();
+ });
+ },
+ infolist() {
+ var dictType = "suit_range";
+ getAgencytype(dictType).then((res) => {
+ this.options = res.data;
+ this.taskinfo();
+ });
+ },
+ changeoptions(e) {
+ this.parentDictCode = this.options.find(
+ (el) => el.dictValue == e
+ )?.dictCode;
+ this.changelisy();
+ },
+ changelisy() {
+ list(this.parentDictCode).then((res) => {
+ this.parentDictCodelist = res.rows;
+ });
+ },
info() {
- selectSpecialDiseasenew(this.updata.manageRouteId).then(res => {
- this.agreeNumber = res.data.agreeNumber
- this.totalNumber = res.data.totalNumber
- res.data.forEach(e => {
- e.messagePushSign = '' + e.messagePushSign
- e.officialPushSign = '' + e.officialPushSign
- e.appletPushSign = '' + e.appletPushSign
- })
- this.lists = this.handleData(res.data, 'routeNodeDay', 'routeNodeName')
- getById(this.lists[0].list[0].id).then(res => {
- this.form = res.data
- this.lookitemnew = res.data.detailInfo
+ const loading = this.$loading({
+ lock: true,
+ text: "数据加载中",
+ spinner: "el-icon-loading",
+ background: "rgba(0, 0, 0, 0.7)",
+ });
+ this.lists = [];
+ if (this.$route.query) {
+ this.parentDictCode = this.options.find(
+ (el) => el.dictValue == this.updata.suitRange
+ )?.dictCode;
+ // this.changelisy();
+ this.updata.routeName = this.$route.query.routeName;
+ // this.updata.specialDiseaseRouteId = this.$route.query.id;
+ selectSpecialDisease(this.updata.id).then((res) => {
+ loading.close();
+ this.agreeNumber = res.data.agreeNumber;
+ this.totalNumber = res.data.totalNumber;
+ res.data.specialDiseaseNodeList.forEach((e) => {
+ console.log(e, "eeeeeeeeeeeeeeeee");
+ if(e.messagePushSign){
+ e.messagePushSign = "" + e.messagePushSign;
+
+ }if( e.officialPushSign ){
+ e.officialPushSign = "" + e.officialPushSign;
+
+ }
+ if(e.appletPushSign){
+ e.appletPushSign = "" + e.appletPushSign;
+
+ }
+ if(e.phonePushSign){
+ e.phonePushSign = ""+e.phonePushSign
+
+ }
+ });
+ this.lists = this.handleData(
+ res.data.specialDiseaseNodeList,
+ "routeNodeDay",
+ "routeNodeName"
+ );
+ this.form = this.lists[0].list[0];
if (this.form.taskType) {
- this.changeTaskType(this.form.taskType, this.form.taskSubdivision)
+ this.changeTaskType(this.form.taskType, this.form.taskSubdivision);
}
- })
- this.$refs.wangeditor.disable();
- })
+ });
+ } else {
+ loading.close();
+ this.lists.push({
+ routeNodeName: "",
+ routeNodeDay: "",
+ list: [
+ {
+ nodeContent: "
",
+ templateId: "",
+ templateName: "",
+ taskType: "",
+ taskSubdivision: "",
+ taskSubdivisionName: "",
+ taskStatus: "",
+ secondClassifyDescribe: "",
+ executionTime: "",
+ appletPushSign: "0",
+ officialPushSign: "0",
+ messagePushSign: "0",
+ messagePreview: "",
+ officialRemindContent: "",
+ taskSubdivisiontemplateType: "",
+ appletRemindContent: "",
+ appletPromptDescription: "",
+ },
+ ],
+ });
+ this.form = this.lists[0].list[0];
+ console.log(this.form, "6555555555555555");
+ }
},
handleData(list, key, keytwo) {
//得到数据的主键列表
@@ -447,6 +685,18 @@ export default {
this.form.templateId = item.templateId
this.form.templateName = item.templateName
},
+ // 短信
+ messageontemplateMESSAGE(item) {
+ this.form.phoneMessageTemplateId = item.templateId;
+ this.form.phoneMessageTemplateName = item.templateName;
+ this.form.messagePreview = item.templateContent;
+ },
+ // 话术
+ messageontemplateword(item) {
+ this.form.phoneTemplateId = item.templateId;
+ this.form.phoneTemplateName = item.templateName;
+ // this.form.messagePreview = item.templateContent;
+ },
//宣教传值
propagandaontemplate(item) {
this.form.templateId = item.templateId
@@ -516,31 +766,39 @@ export default {
})
},
addlist() {
+ list(this.parentDictCode).then((res) => {
+ // this.parentDictCodelist = res.rows;
+ res.rows.forEach((e) => {
+ this.lists.forEach((el) => {
+ el.routeNodeName = e.dictLabel;
+ });
+ });
+ });
this.lists.push({
routeNodeName: "",
- routeNodeDay: '',
+ routeNodeDay: "",
list: [
{
- nodeContent: '
',
- templateId: '',
- templateName: '',
- taskType: '',
- officialRemindContent: '',
- taskSubdivision: '',
- taskSubdivisionName: '',
- appletRemindContent: '',
- appletPromptDescription: '',
- taskStatus: '',
- secondClassifyDescribe: '',
- executionTime: '',
- appletPushSign: '0',
- officialPushSign: '0',
- messagePushSign: '0',
- messagePreview: '',
- taskSubdivisiontemplateType: '',
+ nodeContent: "
",
+ templateId: "",
+ templateName: "",
+ taskType: "",
+ officialRemindContent: "",
+ taskSubdivision: "",
+ taskSubdivisionName: "",
+ appletRemindContent: "",
+ appletPromptDescription: "",
+ taskStatus: "",
+ secondClassifyDescribe: "",
+ executionTime: "",
+ appletPushSign: "0",
+ officialPushSign: "0",
+ messagePushSign: "0",
+ messagePreview: "",
+ taskSubdivisiontemplateType: "",
},
- ]
- })
+ ],
+ });
},
additem(item) {
item.list.push({
@@ -691,8 +949,6 @@ export default {
padding: 20px 50px 0px 20px;
.flextwo {
- display: flex;
- align-items: center;
margin-top: 20px;
.text {
@@ -700,6 +956,12 @@ export default {
color: #64666a;
}
+ ::v-deep .el-input__inner {
+ color: black !important;
+ background-color: #fff !important;
+ cursor: default !important;
+ }
+
.textarea {
width: 90%;
padding: 0 10px;
@@ -728,15 +990,20 @@ export default {
.flex {
display: flex;
+ width: 100%;
align-items: center;
+ // background: red;
justify-content: space-between;
.pushMethod {
height: 30px;
+ margin-top: 30px;
line-height: 30px;
font-size: 13px;
color: #64666a;
-
+ .spanname {
+ pointer-events: none;
+ }
::v-deep .el-input__inner {
color: black;
font-size: 13px;
diff --git a/src/views/system/record/record.vue b/src/views/system/record/record.vue
index 6059013..661f218 100644
--- a/src/views/system/record/record.vue
+++ b/src/views/system/record/record.vue
@@ -332,7 +332,7 @@