This commit is contained in:
2024-09-14 15:40:58 +08:00
parent e82143e915
commit 73a243f41d
2 changed files with 40 additions and 15 deletions

View File

@ -168,11 +168,11 @@
<el-form :model="formInline" class="demo-form-inline" :inline="true"
v-if="formInline.taskNodeType == 'QUESTIONNAIRE_SCALE'">
<el-form-item label="问卷模板">
<question @on-template="questionontemplate"></question>
<question @on-template="questionontemplate" :node="formInline.phoneDialMethod"></question>
</el-form-item>
<el-form-item label="开启人工随访" label-width="150px">
<el-switch v-model="formInline.phoneDialMethod" active-color="#13ce66" active-value="COMMON"
inactive-value=" ">
@change="changephoneDialMethodtwo" inactive-value="AI">
</el-switch>
</el-form-item>
<!-- <el-form-item label="问卷有效期">
@ -282,7 +282,7 @@
话术模板
<span>
<scripts @on-template="messageontemplateword" :templateId="formInline.phoneId"
:templateName="formInline.phoneTemplateName"></scripts>
:node="formInline.phoneDialMethod" :templateName="formInline.phoneTemplateName"></scripts>
</span>
</div>
<!-- <div class="itemlist" v-if="formInline.phoneDialMethod == 'COMMON' || !formInline.phoneDialMethod">
@ -623,28 +623,27 @@ export default {
messageontemplateMESSAGE(item) {
this.formInline.phoneMessageTemplateId = item.templateId;
this.formInline.phoneMessageTemplateName = item.templateName;
this.list[this.listindex].messageTemplateCode=item.messageTemplateCode
this.list[this.listindex].messageTemplateCode = item.messageTemplateCode
},
messageontemplateMESSAGEtwo(item) {
this.formInline.messageTemplateId = item.templateId;
this.formInline.messageTemplateName = item.templateName;
this.list[this.listindex].messageTemplateCode=item.messageTemplateCode
this.list[this.listindex].messageTemplateCode = item.messageTemplateCode
},
//
messageontemplateword(item) {
this.formInline.phoneId = item.templateId;
this.formInline.phoneTemplateName = item.templateName;
this.list[this.listindex].scriptInfoId=item.scriptInfoId
this.list[this.listindex].phoneTemplateId=item.phoneTemplateId
this.list[this.listindex].scriptInfoId = item.scriptInfoId
this.list[this.listindex].phoneTemplateId = item.phoneTemplateId
},
//
officialAccountontemplate(item) {
this.formInline.officialTemplateId = item.templateId;
this.formInline.officialTemplateName = item.templateName;
this.formInline.officialRemindContent = item.templateContent;
this.list[this.listindex].officialTemplateCode=item.officialTemplateCode
this.list[this.listindex].officialTemplateCode = item.officialTemplateCode
},
//
@ -652,7 +651,7 @@ export default {
this.formInline.appletTemplateId = item.templateId;
this.formInline.appletTemplateName = item.templateName;
this.formInline.appletRemindContent = item.templateContent;
this.list[this.listindex].appletTemplateCode=item.appletTemplateCode
this.list[this.listindex].appletTemplateCode = item.appletTemplateCode
},
clicktimelineitem(item, index) {
this.formInline = item;
@ -682,6 +681,12 @@ export default {
delitem(item, index, list) {
list.splice(index, 1);
},
changephoneDialMethodtwo() {
this.formInline.questionInfoId = ''
this.formInline.questionInfoName = ''
this.formInline.phoneId = ''
this.formInline.phoneTemplateName = ''
},
changephoneDialMethod(e) {
if (e == 'AI') {
this.formInline.phoneId = ''
@ -741,10 +746,11 @@ export default {
};
</script>
<style lang="scss" scoped>
::v-deep .el-form--inline .el-form-item__label{
::v-deep .el-form--inline .el-form-item__label {
display: inline-block !important;
float: inline-start !important;
}
.titlemengt {
width: 98.5%;
border-radius: 10px;

View File

@ -97,7 +97,7 @@
</span>
<el-form-item label="开启人工随访" v-if="form.taskNodeType == 'QUESTIONNAIRE_SCALE'" style="margin-left: 75px">
<el-switch v-model="form.phoneDialMethod" active-color="#13ce66" active-value="COMMON"
@change="changephoneDialMethod" inactive-value="AI">
@change="changephoneDialMethodtwo" inactive-value="AI">
</el-switch>
</el-form-item>
<el-form-item label="宣教库模板选择" prop="" v-if="form.taskNodeType == 'PROPAGANDA_ARTICLE'">
@ -542,15 +542,34 @@ export default {
look() {
this.lookNodeContent = true;
},
//
changephoneDialMethod(e) {
changephoneDialMethodtwo() {
this.form.templateId = "";
this.form.templateName = "";
this.form.phoneTemplateId = "";
this.form.phoneTemplateName = "";
this.form.robotPublishId = "";
this.lookitemnew = "";
},
//
changephoneDialMethod(e) {
if (e == "AI") {
// this.form.templateId=''
// id
this.form.phoneTemplateId = "";
this.form.phoneTemplateName = "";
//
// this.phoneNodeContent = "";
this.lookitemnew = "";
} else if (e == "COMMON") {
// idid
this.form.templateId = "";
this.form.templateName = "";
this.form.phoneTemplateId = "";
this.form.phoneTemplateName = "";
//
// this.phoneNodeContent = "";
this.lookitemnew = "";
}
},
infolistword() {
var dictType = "text_message_remind";
getAgencytype(dictType).then((res) => {