diff --git a/src/views/manage/components/PathReview.vue b/src/views/manage/components/PathReview.vue index 441abc0..eca5a80 100644 --- a/src/views/manage/components/PathReview.vue +++ b/src/views/manage/components/PathReview.vue @@ -255,7 +255,7 @@ {{ item.appletNodeContent }} -
+
话术
@@ -264,7 +264,7 @@ 预览
-
+
宣教
@@ -274,7 +274,7 @@
-
+
问卷
@@ -282,7 +282,7 @@
-
+
文字提醒
@@ -644,4 +644,4 @@ export default { } } } - \ No newline at end of file + diff --git a/src/views/manage/components/specialDiseaseNodeopen.vue b/src/views/manage/components/specialDiseaseNodeopen.vue index 5022a85..0f03902 100644 --- a/src/views/manage/components/specialDiseaseNodeopen.vue +++ b/src/views/manage/components/specialDiseaseNodeopen.vue @@ -8,17 +8,8 @@
适用范围 - - + +
@@ -30,20 +21,12 @@
- +
- + - +
- +
- + :class="listindex == index && itemindex == uindex ? 'cards' : ''">

{{ uitem.taskTypeName }}

- 已审核 - 不同意 - 未审核 + 已审核 + 不同意 + 未审核

{{ uitem.taskSubdivisionName }}

@@ -101,102 +63,50 @@
- - + + - - + + - + - + - + - - + + - - + +
- -
+ +
推送方式: @@ -204,19 +114,11 @@
模板: - +
- +
@@ -225,10 +127,7 @@
-->
-
+
推送方式: @@ -237,21 +136,13 @@
模板: - +
- +
@@ -260,10 +151,7 @@
-->
-
+
推送方式: @@ -272,21 +160,13 @@
模板: - +
- +
@@ -299,11 +179,7 @@
-->
-
+
推送方式: @@ -311,19 +187,11 @@
模板: - +
- +
@@ -331,16 +199,9 @@
重播次数: - - + + @@ -348,11 +209,8 @@
时间间隔: - +
- - + + - - + + - - - + + + - + - +
-
+
- - + +
- - + + - - + + - - - + + + - + - +
@@ -185,24 +86,14 @@
适用范围 - +
编辑 - 展开 + 展开 关闭
@@ -214,59 +105,30 @@
- +
- + - +
- +
- + :class="listindex == index && itemindex == uindex ? 'cards' : ''">

{{ uitem.taskTypeName }}

- 已审核 - 不同意 - 未审核 + 已审核 + 不同意 + 未审核

{{ uitem.taskSubdivisionName }}

@@ -276,118 +138,59 @@
- - + + - - + + - + - + - + - - + + - + 预览 - - + + + - + + + + 预览
- -
+ +
文章模板:{{ formview.propagandaTitle }}
{{ formview.propagandaTitle }}
@@ -395,54 +198,29 @@
知识卡片
- +
- 关闭 + 关闭
- - + - 关闭 + 关闭 -
- + -
+ v-show="form.taskNodeType != 'QUESTIONNAIRE_SCALE' && form.taskNodeType != 'PROPAGANDA_ARTICLE' && form.taskNodeType != 'PHONE_OUTBOUND'" + ref="wangeditor" /> +
推送方式: @@ -450,27 +228,16 @@
模板: - +
- +
-
+
推送方式: @@ -479,29 +246,18 @@
模板: - +
- +
-
+
推送方式: @@ -510,39 +266,23 @@
模板: - +
- +
-
+
推送方式: - + 人工电话 自动外呼 @@ -552,56 +292,28 @@
话术模板: - - + + - - - - + 预览
-
+ - - + + - 关闭 + 关闭 - + - 关闭 + 关闭
@@ -713,147 +379,64 @@
- - + + - - + +
-
+
-
+
- - + +
- - + + - - + + - - - + + + - + - + - + - 添加属性 + 添加属性
@@ -864,33 +447,14 @@
- - + + - 同意 - 不同意 + 同意 + 不同意 - + @@ -901,13 +465,9 @@
@@ -924,6 +484,7 @@ export default indexjs; .imageScriptpreviews { margin: 0 auto; width: 90%; + // height: 300px; .titletop { font-size: 16px; @@ -965,6 +526,7 @@ export default indexjs; } } } + ::v-deep .el-input.is-disabled .el-input__inner { background-color: #fff !important; color: #606266 !important; @@ -1062,9 +624,11 @@ export default indexjs; height: 130px; margin: 20px 0 0; padding: 20px 50px 0px 20px; + .flexs { display: flex; width: 100%; + .pushMethod { height: 30px; margin-top: 30px; @@ -1087,6 +651,7 @@ export default indexjs; font-size: 14px; } } + .pushMethods { height: 30px; margin-top: 30px; @@ -1109,6 +674,7 @@ export default indexjs; } } } + .flex { display: flex; width: 100%; @@ -1263,7 +829,7 @@ export default indexjs; width: 25%; background-color: #fff; padding: 0 20px 20px; - height: calc(100vh - 273px); + height: calc(100vh - 253px); overflow: auto; @@ -1282,7 +848,7 @@ export default indexjs; .texts { width: 73%; - height: calc(100vh - 273px); + height: calc(100vh - 253px); overflow: auto; background-color: #fff; diff --git a/src/views/system/ManageNodeInformation/indexjs.js b/src/views/system/ManageNodeInformation/indexjs.js index 035e7da..b7a3415 100644 --- a/src/views/system/ManageNodeInformation/indexjs.js +++ b/src/views/system/ManageNodeInformation/indexjs.js @@ -98,7 +98,7 @@ export default { appletPushSign: "0", officialPushSign: "0", messagePushSign: "0", - taskSubdivisiontemplateType: "", + taskNodeType: "", }, itemindex: 0, listindex: 0, @@ -311,6 +311,8 @@ export default { this.info(); this.handleClose(); this.$modal.msgSuccess("审核成功!"); + this.listindex = 0 + this.itemindex = 0 } }); } @@ -356,12 +358,9 @@ export default { this.agreeNumber = res.data.agreeNumber; this.totalNumber = res.data.totalNumber; res.data.specialDiseaseNodeList.forEach((e) => { - - if (e.templateType == 'SCRIPT' && e.flowScheme) { + if (e.taskNodeType == 'PHONE_OUTBOUND' && e.flowScheme) { this.phoneNodeContent = e.flowScheme } - - if (e.messagePushSign) { e.messagePushSign = "" + e.messagePushSign; } @@ -381,15 +380,14 @@ export default { "routeNodeName" ); this.form = this.lists[0].list[0]; - // 宣教模板回显 - if (this.form.templateType == "PROPAGANDA" && this.form.templateId) { + if (this.form.taskNodeType == "PROPAGANDA_ARTICLE" && this.form.templateId) { getPropaganda(this.form.templateId).then((response) => { - console.log(response.data,'data') + console.log(response.data, 'data') this.formview = response.data; }); } else - if (this.form.templateType == "QUESTIONNAIRE" || this.form.templateType == "SCRIPT" && this.form.templateId) { + if (this.form.taskNodeType == "QUESTIONNAIRE_SCALE" || this.form.taskNodeType == "PHONE_OUTBOUND" && this.form.templateId) { // 问卷模板回显 questionname(this.form.templateId).then((res) => { this.lookitemnew = res.data; @@ -420,7 +418,7 @@ export default { messagePushSign: "0", messagePreview: "", officialRemindContent: "", - taskSubdivisiontemplateType: "", + taskNodeType: "", appletRemindContent: "", appletPromptDescription: "", }, @@ -704,9 +702,9 @@ export default { // 暂存 TemporaryStorage() { if ( - this.form.taskSubdivisiontemplateType != "QUESTIONNAIRE" && - this.form.taskSubdivisiontemplateType != "PROPAGANDA" && - this.form.taskSubdivisiontemplateType != 'SCRIPT' + this.form.taskNodeType != "QUESTIONNAIRE_SCALE" && + this.form.taskNodeType != "PROPAGANDA_ARTICLE" && + this.form.taskNodeType != 'PHONE_OUTBOUND' ) { this.$refs.wangeditor.emit(); } @@ -726,23 +724,23 @@ export default { }); this.itemlist.specialDiseaseNodeList = []; this.lists.forEach((e) => { - console.log(e,'taskSubdivisiontemplateType') + console.log(e, 'taskNodeType') e.list.length > 0 ? e.list.forEach((el) => { - console.log(el,'taskSubdivisiontemplateType') + console.log(el, 'taskNodeType') el.routeNodeDay = e.routeNodeDay; el.routeNodeName = e.routeNodeName; if (el.phoneDialMethod == 'COMMON' && el.templateId) { el.phonePushSign = "1"; - el.templateType = 'QUESTIONNAIRE' + el.taskNodeType = 'QUESTIONNAIRE_SCALE' } else if (el.phoneDialMethod == 'COMMON' && el.phoneTemplateId) { el.phonePushSign = "1"; - el.templateType = 'SCRIPT' + el.taskNodeType = 'PHONE_OUTBOUND' } else if (el.phoneDialMethod == "AI" && el.phoneTemplateId) { el.phonePushSign = "1"; - el.templateType = "SCRIPT"; + el.taskNodeType = "PHONE_OUTBOUND"; } this.itemlist.specialDiseaseNodeList.push(el); }) @@ -764,12 +762,14 @@ export default { if (localStorage.getItem('wangeditorlist')) { wangeditorlist = JSON.parse(localStorage.getItem('wangeditorlist')) wangeditorlist = wangeditorlist.filter(e => e.specialDiseaseNodeId == this.form.specialDiseaseNodeId) - console.log(wangeditorlist,'wangeditorlist') + console.log(wangeditorlist, 'wangeditorlist') localStorage.setItem('wangeditorlist', JSON.stringify(wangeditorlist)) } this.info(); loading.close(); this.$modal.msgSuccess("暂存成功!"); + this.listindex = 0 + this.itemindex = 0 }); setTimeout(() => { loading.close(); @@ -794,9 +794,9 @@ export default { }, onemit() { if ( - this.form.taskSubdivisiontemplateType != "QUESTIONNAIRE" && - this.form.taskSubdivisiontemplateType != "PROPAGANDA" && - this.form.taskSubdivisiontemplateType != "SCRIPT" + this.form.taskNodeType != "QUESTIONNAIRE_SCALE" && + this.form.taskNodeType != "PROPAGANDA_ARTICLE" && + this.form.taskNodeType != "PHONE_OUTBOUND" ) { this.$refs.wangeditor.emit(); } @@ -813,21 +813,21 @@ export default { this.listindex = index; this.itemindex = uindex; if ( - uitem.taskSubdivisiontemplateType == "PROPAGANDA" && + uitem.taskNodeType == "PROPAGANDA_ARTICLE" && uitem.templateId ) { await getPropaganda(uitem.templateId).then((response) => { this.formview = response.data; }); } else if ( - uitem.taskSubdivisiontemplateType == "QUESTIONNAIRE" && + uitem.taskNodeType == "QUESTIONNAIRE_SCALE" && uitem.templateId ) { await questionname(uitem.templateId).then((res) => { this.lookitemnew = res.data; }); } else if ( - uitem.taskSubdivisiontemplateType == "SCRIPT" && + uitem.taskNodeType == "PHONE_OUTBOUND" && uitem.flowScheme ) { this.phoneNodeContent = uitem.flowScheme; @@ -860,10 +860,21 @@ export default { (e) => e.taskTypeCode == code )?.taskTypeName; taskPartitionList(id).then((res) => { + res.data?.forEach(e => { + if (e.taskNodeType == 'PHONE_OUTBOUND') { + e.taskPartitionName = e.taskPartitionName + '(电话外呼)' + } else if (e.taskNodeType == 'QUESTIONNAIRE_SCALE') { + e.taskPartitionName = e.taskPartitionName + '(问卷量表)' + } else if (e.taskNodeType == 'PROPAGANDA_ARTICLE') { + e.taskPartitionName = e.taskPartitionName + '(宣教文案)' + } else if (e.taskNodeType == 'TEXT_REMIND') { + e.taskPartitionName = e.taskPartitionName + '(文字提醒)' + } + }) this.taskPartitionList = res.data; this.form.taskSubdivision = ""; this.form.taskSubdivisionName = ""; - this.form.taskSubdivisiontemplateType = ""; + this.form.taskNodeType = ""; this.taskStatusDictList = []; if (taskSubdivision) { this.form.taskSubdivision = taskSubdivision; @@ -874,14 +885,22 @@ export default { //点击任务细分 changetaskSubdivision(code, type) { if ( - this.form.taskSubdivisiontemplateType != "QUESTIONNAIRE" && - this.form.taskSubdivisiontemplateType != "PROPAGANDA" && - this.form.taskSubdivisiontemplateType != "SCRIPT" + this.form.taskNodeType != "QUESTIONNAIRE_SCALE" && + this.form.taskNodeType != "PROPAGANDA_ARTICLE" && + this.form.taskNodeType != "PHONE_OUTBOUND" ) { this.$refs.wangeditor.emit(); } - // console.log(code,'code') setTimeout(() => { + const loading = this.$loading({ + lock: true, + text: "加载中", + spinner: "el-icon-loading", + background: "rgba(0, 0, 0, 0.7)", + }); + if (!type) { + this.form.taskStatus = '' + } this.form.taskSubdivisionName = this.taskPartitionList?.find( (e) => e.taskPartitionCode == code )?.taskPartitionName; @@ -899,16 +918,14 @@ export default { this.form.executionTime = this.taskPartitionList?.find( (e) => e.taskPartitionCode == code )?.executionTime; - this.taskPartitionList.forEach((el) => { if (code == el.taskPartitionCode) { this.form.executionTime = el.executionTime; - this.form.taskSubdivisiontemplateType = el.templateType; - + this.form.taskNodeType = el.taskNodeType; if ( - this.form.taskSubdivisiontemplateType == "SCRIPT" || - this.form.taskSubdivisiontemplateType == "PROPAGANDA" || - this.form.taskSubdivisiontemplateType == "QUESTIONNAIRE" + this.form.taskNodeType == "PHONE_OUTBOUND" || + this.form.taskNodeType == "PROPAGANDA_ARTICLE" || + this.form.taskNodeType == "QUESTIONNAIRE_SCALE" ) { this.form.nodeContent = `

`; } @@ -925,6 +942,7 @@ export default { // console.log(this.form.nodeContent, 'this.form.nodeContent8858585') } }); + loading.close(); }, 500); @@ -963,7 +981,7 @@ export default { officialPushSign: "0", messagePushSign: "0", messagePreview: "", - taskSubdivisiontemplateType: "", + taskNodeType: "", }, ], }); @@ -990,7 +1008,7 @@ export default { officialPushSign: "0", messagePushSign: "0", messagePreview: "", - taskSubdivisiontemplateType: "", + taskNodeType: "", }); }, // 删除节点 diff --git a/src/views/system/ManuallyCreatingTasks/index.vue b/src/views/system/ManuallyCreatingTasks/index.vue index c5ab366..c28e9fc 100644 --- a/src/views/system/ManuallyCreatingTasks/index.vue +++ b/src/views/system/ManuallyCreatingTasks/index.vue @@ -134,11 +134,11 @@

- {{ item.taskType == "PHONE_OUTBOUND" ? "电话外呼" : "" }} - {{ item.taskType == "QUESTIONNAIRE_SCALE" ? "问卷量表" : "" }} - {{ item.taskType == "PROPAGANDA_ARTICLE" ? "宣教文案" : "" }} - {{ item.taskType == "TEXT_REMIND" ? "文字提醒" : "" }} - {{ item.taskType == "ARTIFICIAL_FOLLOW_UP" ? "人工随访" : "" }} + {{ item.taskNodeType == "PHONE_OUTBOUND" ? "电话外呼" : "" }} + {{ item.taskNodeType == "QUESTIONNAIRE_SCALE" ? "问卷量表" : "" }} + {{ item.taskNodeType == "PROPAGANDA_ARTICLE" ? "宣教文案" : "" }} + {{ item.taskNodeType == "TEXT_REMIND" ? "文字提醒" : "" }} + {{ item.taskNodeType == "ARTIFICIAL_FOLLOW_UP" ? "人工随访" : "" }}

@@ -146,51 +146,52 @@
+ :style="formInline.taskNodeType ? formInline.taskNodeType != 'PHONE_OUTBOUND' ? formInline.taskNodeType == 'TEXT_REMIND' ? 'height:260px' : 'height:160px' : 'height:80px' : 'height:80px'"> - - + + 电话外呼 问卷量表 宣教文案 文字提醒 - 人工随访 + - - + - + - + + v-if="formInline.taskNodeType == 'QUESTIONNAIRE_SCALE'"> - + + + + +
-
+ +
推送方式:公众号
模板: @@ -255,10 +249,8 @@
-
+
推送方式:小程序
模板: @@ -271,10 +263,8 @@
-
+
推送方式:短信
模板: @@ -285,7 +275,7 @@
-
+
推送方式: @@ -298,30 +288,18 @@
话术模板: - - - - +
-
+
@@ -339,7 +317,7 @@
- 时间间隔: + 时间间隔: @@ -356,12 +334,7 @@
短信模板: - - - - - + @@ -419,9 +392,9 @@ export default { }, formInline: { routeNodeDay: "", - taskType: "", + taskNodeType: "", routeNodeName: "", - questionExpirationDate: 7, + // questionExpirationDate: 7, questionInfoId: "", questionnaireName: "", phoneId: "", @@ -432,7 +405,8 @@ export default { officialPushSign: "0", messagePushSign: "0", appletPushSign: "0", - phonePushSign: "0", + phonePushSign: "1", + phoneDialMethod: "", }, // updata: { // suitRange: "", @@ -442,9 +416,9 @@ export default { list: [ { routeNodeDay: "", - taskType: "", + taskNodeType: "", routeNodeName: "", - questionExpirationDate: 7, + // questionExpirationDate: 7, questionInfoId: "", questionnaireName: "", phoneId: "", @@ -455,7 +429,8 @@ export default { officialPushSign: "0", messagePushSign: "0", appletPushSign: "0", - phonePushSign: "0", + phonePushSign: "1", + phoneDialMethod: "", }, ], listindex: 0, @@ -482,6 +457,15 @@ export default { this.screenChange() }, methods: { + //点击任务内容 + taskNodeTypechange(e) { + if (e == 'PHONE_OUTBOUND') { + this.formInline.phoneDialMethod = 'AI' + } else { + this.formInline.phoneDialMethod = '' + } + console.log(this.formInline) + }, // 且或 infolistoptionslistS() { var dictType = "trigger_logic"; @@ -647,7 +631,7 @@ export default { }, //问卷传值 questionontemplate(item) { - if (this.formInline.taskType == "ARTIFICIAL_FOLLOW_UP") { + if (this.formInline.taskNodeType == "ARTIFICIAL_FOLLOW_UP") { this.formInline.followTemplateId = item.templateId; this.formInline.followTemplateName = item.templateName; } else { @@ -700,9 +684,9 @@ export default { } this.list.push({ routeNodeDay: "", - taskType: "", + taskNodeType: "", routeNodeName: "", - questionExpirationDate: 7, + // questionExpirationDate: 7, questionInfoId: "", questionnaireName: "", phoneId: "", @@ -713,39 +697,35 @@ export default { officialPushSign: "0", messagePushSign: "0", appletPushSign: "0", - phonePushSign: "0", + phonePushSign: "1", }); }, delitem(item, index, list) { list.splice(index, 1); }, changephoneDialMethod(e) { - console.log(e, 'e') if (e == 'AI') { // this.form.templateId='' this.formInline.phoneId = '' this.formInline.phoneTemplateName = '' - } else if (e == 'COMMON') { this.formInline.questionInfoId = '' this.formInline.questionInfoName = '' - this.formInline.phoneId = '' this.formInline.phoneTemplateName = '' } }, upload() { this.updata.routeNodeList = this.list; - // console.log(this.updata,'this.updata') - this.updata.routeNodeList.forEach((el) => { - if (el.phoneDialMethod == "COMMON" && el.questionInfoId) { - el.templateType = "QUESTIONNAIRE"; - } else if (el.phoneDialMethod == "COMMON" && el.phoneId) { - el.templateType = "SCRIPT"; - } else if (el.phoneDialMethod == "AI" && el.phoneId) { - el.templateType = "SCRIPT"; - } - }); + // this.updata.routeNodeList.forEach((el) => { + // if (el.phoneDialMethod == "COMMON" && el.questionInfoId) { + // el.templateType = "QUESTIONNAIRE"; + // } else if (el.phoneDialMethod == "COMMON" && el.phoneId) { + // el.templateType = "SCRIPT"; + // } else if (el.phoneDialMethod == "AI" && el.phoneId) { + // el.templateType = "SCRIPT"; + // } + // }); this.updata.triggerConditionList.forEach((e) => { e.routeId = this.$route.query.id; e.routeName = this.$route.query.routeName; diff --git a/src/views/system/components/wangEditor.vue b/src/views/system/components/wangEditor.vue index 2eb9630..b322507 100644 --- a/src/views/system/components/wangEditor.vue +++ b/src/views/system/components/wangEditor.vue @@ -236,7 +236,6 @@ export default { this.selectedOptions = []; this.addlist = []; setTimeout(() => { - console.log(this.html, 'this.html') this.editor.focus({ toEnd: true }); // this.editor.focus(); this.$forceUpdate() @@ -273,7 +272,6 @@ export default { // // children: [{ text: "" }], // void 元素必须有一个 children ,其中只有一个空字符串,重要!!! // }; // this.editor.insertNode(resume); - // console.log(this.html, "add是是是是是是所所所所所所"); // // this.addnode = { // // fileName: "", // // fieldMark: "", @@ -295,7 +293,6 @@ export default { }, info() { labelFieldList(this.taskPartitionDictId).then((res) => { - console.log(res, "res"); // res.data.data.forEach((e) => { // e.labelFieldContentList.forEach((el) => { // el.labelFieldId = el.labelFieldContentId; @@ -306,14 +303,11 @@ export default { this.labeloptions = res; } }); - bankLevel("3").then((res) => { - // console.log(res, "打印res值"); // res.forEach((e) => { // e.children.forEach((el) => { // el.children.forEach((f) => { // this.fieldoptions.push(f); - // console.log(f, "fffffffff"); // f.termCode = f.termCode; // f.termContent = f.termContent; // }); @@ -331,20 +325,15 @@ export default { }, watch: { nodeContent(newValue, oldValue) { - // console.log(newValue,'newValue') this.html = newValue; }, taskSubdivision(newvalue, oldvalue) { this.taskSubdivision = newvalue; }, specialDiseaseNodeId(newvalue, oldvalue) { - console.log(newvalue, "specialDiseaseNodeId"); - this.specialDiseaseNodeId = newvalue; }, - taskPartitionDictId(newValue, oldValue) { - console.log(newValue, "taskPartitionDictId"); // this.labeloptions = []; that.taskPartitionDictId = newValue; that.info(); @@ -399,7 +388,6 @@ class MyButtonMenu { } // 点击菜单时触发的函数 exec(editor, value) { - console.log(that.taskPartitionDictId, "that.taskPartitionDictId"); if (that.taskPartitionDictId) { this.vueInstance.labelshow = true; } else { @@ -457,10 +445,7 @@ function withAttachment(editor) { const { isInline, isVoid } = editor; const newEditor = editor; newEditor.isInline = (elem) => { - // console.log(elem,'elem') const type = DomEditor.getNodeType(elem); - // console.log(type,'type') - if (type === "attachment") return true; // 针对 type: attachment ,设置为 inline if (type === "attachmenttwo") return true; // 针对 type: attachment ,设置为 inline return isInline(elem); diff --git a/src/views/system/specialDiseaseNode/index.vue b/src/views/system/specialDiseaseNode/index.vue index dc13ecf..585a0dc 100644 --- a/src/views/system/specialDiseaseNode/index.vue +++ b/src/views/system/specialDiseaseNode/index.vue @@ -81,36 +81,35 @@ - + - + 预览 - + + + + + - + 预览
-
+
文章模板:{{ formview.propagandaTitle }}
{{ formview.propagandaTitle }}
-
知识卡片
@@ -132,14 +131,13 @@
- -
+
推送方式: @@ -160,7 +158,7 @@
-->
-
+
推送方式: @@ -184,7 +182,7 @@
-->
-
+
推送方式: @@ -212,7 +210,7 @@
-->
-
+
推送方式: @@ -227,11 +225,7 @@
话术模板: - - - - + @@ -240,20 +234,16 @@
-
+