xg
This commit is contained in:
parent
734957ee0e
commit
cb36631499
@ -8,17 +8,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="select">
|
<div class="select">
|
||||||
<span> 适用范围 </span>
|
<span> 适用范围 </span>
|
||||||
<el-select
|
<el-select v-model="updata.suitRange" placeholder="请选择" @change="changeoptions">
|
||||||
v-model="updata.suitRange"
|
<el-option v-for="item in options" :key="item.dictValue" :label="item.dictLabel" :value="item.dictValue">
|
||||||
placeholder="请选择"
|
|
||||||
@change="changeoptions"
|
|
||||||
>
|
|
||||||
<el-option
|
|
||||||
v-for="item in options"
|
|
||||||
:key="item.dictValue"
|
|
||||||
:label="item.dictLabel"
|
|
||||||
:value="item.dictValue"
|
|
||||||
>
|
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</div>
|
</div>
|
||||||
@ -30,59 +21,30 @@
|
|||||||
<i class="el-icon-circle-plus-outline" @click="addlist"></i>
|
<i class="el-icon-circle-plus-outline" @click="addlist"></i>
|
||||||
</div>
|
</div>
|
||||||
<el-timeline>
|
<el-timeline>
|
||||||
<el-timeline-item
|
<el-timeline-item v-for="(item, index) in lists" :key="index" :color="listindex == index ? '#409EFF' : ''">
|
||||||
v-for="(item, index) in lists"
|
|
||||||
:key="index"
|
|
||||||
:color="listindex == index ? '#409EFF' : ''"
|
|
||||||
>
|
|
||||||
<div class="top">
|
<div class="top">
|
||||||
<div class="toptop">
|
<div class="toptop">
|
||||||
<el-select v-model="item.routeNodeName" style="width: 100px">
|
<el-select v-model="item.routeNodeName" style="width: 100px">
|
||||||
<el-option
|
<el-option v-for="item in parentDictCodelist" :key="item.dictValue" :label="item.dictLabel"
|
||||||
v-for="item in parentDictCodelist"
|
:value="item.dictValue">
|
||||||
:key="item.dictValue"
|
|
||||||
:label="item.dictLabel"
|
|
||||||
:value="item.dictValue"
|
|
||||||
>
|
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
<el-input
|
<el-input v-model="item.routeNodeDay" type="number" style="width:70px" :min="0"></el-input>
|
||||||
v-model="item.routeNodeDay"
|
|
||||||
style="width: 70px"
|
|
||||||
type="number"
|
|
||||||
:min="0"
|
|
||||||
></el-input>
|
|
||||||
<span>天</span>
|
<span>天</span>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<i class="el-icon-delete" @click="delitem(item, index)"></i>
|
<i class="el-icon-delete" @click="delitem(item, index)"></i>
|
||||||
<i
|
<i class="el-icon-circle-plus-outline" @click="additem(item)"></i>
|
||||||
class="el-icon-circle-plus-outline"
|
|
||||||
@click="additem(item)"
|
|
||||||
></i>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<el-card
|
<el-card v-for="(uitem, uindex) in item.list" :key="uitem.id"
|
||||||
v-for="(uitem, uindex) in item.list"
|
@click.native="bottomclickevent(uitem, index, uindex, item)"
|
||||||
:key="uitem.id"
|
:class="listindex == index && itemindex == uindex ? 'cards' : ''">
|
||||||
@click.native="bottomclickevent(uitem, index, uindex)"
|
|
||||||
:class="listindex == index && itemindex == uindex ? 'cards' : ''"
|
|
||||||
>
|
|
||||||
<h3 style="height: 20px">{{ uitem.taskTypeName }}</h3>
|
<h3 style="height: 20px">{{ uitem.taskTypeName }}</h3>
|
||||||
<el-tag
|
<el-tag v-if="uitem.routeCheckStatus == 'AGREE'" class="routeCheckStatus">已审核</el-tag>
|
||||||
v-if="uitem.routeCheckStatus == 'AGREE'"
|
<el-tag v-else-if="uitem.routeCheckStatus == 'DISAGREE'" type="danger"
|
||||||
class="routeCheckStatus"
|
class="routeCheckStatus">不同意</el-tag>
|
||||||
>已审核</el-tag
|
<el-tag v-else type="warning" class="routeCheckStatus">未审核</el-tag>
|
||||||
>
|
|
||||||
<el-tag
|
|
||||||
v-else-if="uitem.routeCheckStatus == 'DISAGREE'"
|
|
||||||
type="danger"
|
|
||||||
class="routeCheckStatus"
|
|
||||||
>不同意</el-tag
|
|
||||||
>
|
|
||||||
<el-tag v-else type="warning" class="routeCheckStatus"
|
|
||||||
>未审核</el-tag
|
|
||||||
>
|
|
||||||
<p style="height: 16px">{{ uitem.taskSubdivisionName }}</p>
|
<p style="height: 16px">{{ uitem.taskSubdivisionName }}</p>
|
||||||
</el-card>
|
</el-card>
|
||||||
</el-timeline-item>
|
</el-timeline-item>
|
||||||
@ -92,95 +54,48 @@
|
|||||||
<div class="topform">
|
<div class="topform">
|
||||||
<el-form ref="form" :inline="true" :model="form" class="form">
|
<el-form ref="form" :inline="true" :model="form" class="form">
|
||||||
<el-form-item label="任务类型" prop="">
|
<el-form-item label="任务类型" prop="">
|
||||||
<el-select
|
<el-select v-model="form.taskType" style="width: 110px" @change="changeTaskType">
|
||||||
v-model="form.taskType"
|
<el-option v-for="item in selectTaskTypeList" :key="item.taskTypeCode" :label="item.taskTypeName"
|
||||||
style="width: 110px"
|
:value="item.taskTypeCode">
|
||||||
@change="changeTaskType"
|
|
||||||
>
|
|
||||||
<el-option
|
|
||||||
v-for="item in selectTaskTypeList"
|
|
||||||
:key="item.taskTypeCode"
|
|
||||||
:label="item.taskTypeName"
|
|
||||||
:value="item.taskTypeCode"
|
|
||||||
>
|
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="任务细分" prop="">
|
<el-form-item label="任务细分" prop="">
|
||||||
<el-select
|
<el-select v-model="form.taskSubdivision" style="width: 110px" @change="changetaskSubdivision">
|
||||||
v-model="form.taskSubdivision"
|
<el-option v-for="item in taskPartitionList" :key="item.taskPartitionCode"
|
||||||
style="width: 110px"
|
:label="item.taskPartitionName" :value="item.taskPartitionCode">
|
||||||
@change="changetaskSubdivision"
|
|
||||||
>
|
|
||||||
<el-option
|
|
||||||
v-for="item in taskPartitionList"
|
|
||||||
:key="item.taskPartitionCode"
|
|
||||||
:label="item.taskPartitionName"
|
|
||||||
:value="item.taskPartitionCode"
|
|
||||||
>
|
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="任务状态" prop="">
|
<el-form-item label="任务状态" prop="">
|
||||||
<el-select v-model="form.taskStatus" style="width: 110px">
|
<el-select v-model="form.taskStatus" style="width: 110px">
|
||||||
<el-option
|
<el-option v-for="item in taskStatusDictList" :key="item.id" :label="item.taskStatusName"
|
||||||
v-for="item in taskStatusDictList"
|
:value="item.taskStatusCode">
|
||||||
:key="item.id"
|
|
||||||
:label="item.taskStatusName"
|
|
||||||
:value="item.taskStatusCode"
|
|
||||||
>
|
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="二级分类描述" prop="">
|
<el-form-item label="二级分类描述" prop="">
|
||||||
<el-input
|
<el-input v-model="form.secondClassifyDescribe" style="width: 110px" disabled></el-input>
|
||||||
v-model="form.secondClassifyDescribe"
|
|
||||||
style="width: 110px"
|
|
||||||
disabled
|
|
||||||
></el-input>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="执行时间" prop="">
|
<el-form-item label="执行时间" prop="">
|
||||||
<el-time-select
|
<el-time-select v-model="form.executionTime" style="width: 120px" placeholder="选择时间" disabled>
|
||||||
v-model="form.executionTime"
|
|
||||||
style="width: 120px"
|
|
||||||
placeholder="选择时间"
|
|
||||||
disabled
|
|
||||||
>
|
|
||||||
</el-time-select>
|
</el-time-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item label="问卷库模板选择" prop="" v-if="form.taskSubdivisiontemplateType == 'QUESTIONNAIRE'">
|
||||||
label="问卷库模板选择"
|
<question @on-template="questionontemplate" :templateId="form.templateId"
|
||||||
prop=""
|
:templateName="form.templateName"></question>
|
||||||
v-if="form.taskSubdivisiontemplateType == 'QUESTIONNAIRE'"
|
|
||||||
>
|
|
||||||
<question
|
|
||||||
@on-template="questionontemplate"
|
|
||||||
:templateId="form.templateId"
|
|
||||||
:templateName="form.templateName"
|
|
||||||
></question>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item label="宣教库模板选择" prop="" v-if="form.taskSubdivisiontemplateType == 'PROPAGANDA'">
|
||||||
label="宣教库模板选择"
|
<propaganda @on-template="propagandaontemplate" :templateId="form.templateId"
|
||||||
prop=""
|
:templateName="form.templateName"></propaganda>
|
||||||
v-if="form.taskSubdivisiontemplateType == 'PROPAGANDA'"
|
|
||||||
>
|
|
||||||
<propaganda
|
|
||||||
@on-template="propagandaontemplate"
|
|
||||||
:templateId="form.templateId"
|
|
||||||
:templateName="form.templateName"
|
|
||||||
></propaganda>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
<!-- 宣教 -->
|
<!-- 宣教 -->
|
||||||
<div
|
<div class="imageScriptpreviews" v-if="formview &&
|
||||||
class="imageScriptpreviews"
|
|
||||||
v-if="
|
|
||||||
formview &&
|
|
||||||
form.taskSubdivisiontemplateType == 'PROPAGANDA' &&
|
form.taskSubdivisiontemplateType == 'PROPAGANDA' &&
|
||||||
form.templateId
|
form.templateId
|
||||||
"
|
">
|
||||||
>
|
|
||||||
<div class="bodytop">
|
<div class="bodytop">
|
||||||
<div class="titledata">{{ formview.propagandaTitle }}</div>
|
<div class="titledata">{{ formview.propagandaTitle }}</div>
|
||||||
|
|
||||||
@ -188,40 +103,23 @@
|
|||||||
<img :src="baseUrl + formview.propagandaCoverPath" alt="" />
|
<img :src="baseUrl + formview.propagandaCoverPath" alt="" />
|
||||||
<div class="know">知识卡片</div>
|
<div class="know">知识卡片</div>
|
||||||
<div class="knowlist">
|
<div class="knowlist">
|
||||||
<Editorxj
|
<Editorxj v-model="formview.propagandaContent" :min-height="192" />
|
||||||
v-model="formview.propagandaContent"
|
|
||||||
:min-height="192"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- 问卷 -->
|
<!-- 问卷 -->
|
||||||
<div
|
<div class="righttextarea" v-show="form.taskSubdivisiontemplateType == 'QUESTIONNAIRE' &&
|
||||||
class="righttextarea"
|
|
||||||
v-show="
|
|
||||||
form.taskSubdivisiontemplateType == 'QUESTIONNAIRE' &&
|
|
||||||
form.templateId
|
form.templateId
|
||||||
"
|
">
|
||||||
>
|
|
||||||
<questionopennew :lookitemnew="lookitemnew"></questionopennew>
|
<questionopennew :lookitemnew="lookitemnew"></questionopennew>
|
||||||
</div>
|
</div>
|
||||||
<div class="bottomform">
|
<div class="bottomform">
|
||||||
<wangeditor
|
<wangeditor style="width: 100%" :nodeContent="form.nodeContent" @on-nodeContent="onNodeContent" v-show="form.taskSubdivisiontemplateType != 'QUESTIONNAIRE' &&
|
||||||
style="width: 100%"
|
|
||||||
:nodeContent="form.nodeContent"
|
|
||||||
@on-nodeContent="onNodeContent"
|
|
||||||
v-show="
|
|
||||||
form.taskSubdivisiontemplateType != 'QUESTIONNAIRE' &&
|
|
||||||
form.taskSubdivisiontemplateType != 'PROPAGANDA' &&
|
form.taskSubdivisiontemplateType != 'PROPAGANDA' &&
|
||||||
form.taskSubdivisiontemplateType != 'SCRIPT'
|
form.taskSubdivisiontemplateType != 'SCRIPT'
|
||||||
"
|
" ref="wangeditor" />
|
||||||
ref="wangeditor"
|
<div class="card" v-show="form.taskSubdivisiontemplateType != 'SCRIPT'">
|
||||||
/>
|
|
||||||
<div
|
|
||||||
class="card"
|
|
||||||
v-show="form.taskSubdivisiontemplateType != 'SCRIPT'"
|
|
||||||
>
|
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
<div class="pushMethod">
|
<div class="pushMethod">
|
||||||
推送方式:
|
推送方式:
|
||||||
@ -229,19 +127,11 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="pushMethod">
|
<div class="pushMethod">
|
||||||
模板:
|
模板:
|
||||||
<message
|
<message @on-template="messageontemplate" :templateId="form.messageTemplateId"
|
||||||
@on-template="messageontemplate"
|
:templateName="form.messageTemplateName"></message>
|
||||||
:templateId="form.messageTemplateId"
|
|
||||||
:templateName="form.messageTemplateName"
|
|
||||||
></message>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="pushMethod">
|
<div class="pushMethod">
|
||||||
<el-switch
|
<el-switch v-model="form.messagePushSign" active-color="#13ce66" active-value="1" inactive-value="0">
|
||||||
v-model="form.messagePushSign"
|
|
||||||
active-color="#13ce66"
|
|
||||||
active-value="1"
|
|
||||||
inactive-value="0"
|
|
||||||
>
|
|
||||||
</el-switch>
|
</el-switch>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -250,10 +140,7 @@
|
|||||||
<el-input class="textarea" v-model="form.messagePreview" disabled></el-input>
|
<el-input class="textarea" v-model="form.messagePreview" disabled></el-input>
|
||||||
</div> -->
|
</div> -->
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div class="card" v-show="form.taskSubdivisiontemplateType != 'SCRIPT'">
|
||||||
class="card"
|
|
||||||
v-show="form.taskSubdivisiontemplateType != 'SCRIPT'"
|
|
||||||
>
|
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
<div class="pushMethod">
|
<div class="pushMethod">
|
||||||
推送方式:
|
推送方式:
|
||||||
@ -262,21 +149,13 @@
|
|||||||
<div class="pushMethod">
|
<div class="pushMethod">
|
||||||
模板:
|
模板:
|
||||||
<span>
|
<span>
|
||||||
<officialAccount
|
<officialAccount @on-template="officialAccountontemplate" :templateId="form.officialTemplateId"
|
||||||
@on-template="officialAccountontemplate"
|
:templateName="form.officialTemplateName">
|
||||||
:templateId="form.officialTemplateId"
|
|
||||||
:templateName="form.officialTemplateName"
|
|
||||||
>
|
|
||||||
</officialAccount>
|
</officialAccount>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="pushMethod">
|
<div class="pushMethod">
|
||||||
<el-switch
|
<el-switch v-model="form.officialPushSign" active-color="#13ce66" active-value="1" inactive-value="0">
|
||||||
v-model="form.officialPushSign"
|
|
||||||
active-color="#13ce66"
|
|
||||||
active-value="1"
|
|
||||||
inactive-value="0"
|
|
||||||
>
|
|
||||||
</el-switch>
|
</el-switch>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -285,10 +164,7 @@
|
|||||||
<el-input v-model="form.officialRemindContent" class="textarea" disabled></el-input>
|
<el-input v-model="form.officialRemindContent" class="textarea" disabled></el-input>
|
||||||
</div> -->
|
</div> -->
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div class="card" v-show="form.taskSubdivisiontemplateType != 'SCRIPT'">
|
||||||
class="card"
|
|
||||||
v-show="form.taskSubdivisiontemplateType != 'SCRIPT'"
|
|
||||||
>
|
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
<div class="pushMethod">
|
<div class="pushMethod">
|
||||||
推送方式:
|
推送方式:
|
||||||
@ -297,21 +173,13 @@
|
|||||||
<div class="pushMethod">
|
<div class="pushMethod">
|
||||||
模板:
|
模板:
|
||||||
<span>
|
<span>
|
||||||
<miniProgram
|
<miniProgram @on-template="miniProgramtemplate" :templateId="form.appletTemplateId"
|
||||||
@on-template="miniProgramtemplate"
|
:templateName="form.appletTemplateName">
|
||||||
:templateId="form.appletTemplateId"
|
|
||||||
:templateName="form.appletTemplateName"
|
|
||||||
>
|
|
||||||
</miniProgram>
|
</miniProgram>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="pushMethod">
|
<div class="pushMethod">
|
||||||
<el-switch
|
<el-switch v-model="form.appletPushSign" active-color="#13ce66" active-value="1" inactive-value="0">
|
||||||
v-model="form.appletPushSign"
|
|
||||||
active-color="#13ce66"
|
|
||||||
active-value="1"
|
|
||||||
inactive-value="0"
|
|
||||||
>
|
|
||||||
</el-switch>
|
</el-switch>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -324,19 +192,12 @@
|
|||||||
<el-input v-model="form.appletPromptDescription" class="textarea" disabled></el-input>
|
<el-input v-model="form.appletPromptDescription" class="textarea" disabled></el-input>
|
||||||
</div> -->
|
</div> -->
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div class="card" style="height: 250px" v-show="form.taskSubdivisiontemplateType == 'SCRIPT'">
|
||||||
class="card"
|
|
||||||
style="height: 250px"
|
|
||||||
v-show="form.taskSubdivisiontemplateType == 'SCRIPT'"
|
|
||||||
>
|
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
<div class="pushMethod">
|
<div class="pushMethod">
|
||||||
推送方式:
|
推送方式:
|
||||||
<span>
|
<span>
|
||||||
<el-radio-group
|
<el-radio-group v-model="form.phoneDialMethod" @change="changephoneDialMethod">
|
||||||
v-model="form.phoneDialMethod"
|
|
||||||
@change="changephoneDialMethod"
|
|
||||||
>
|
|
||||||
<el-radio label="COMMON">人工电话</el-radio>
|
<el-radio label="COMMON">人工电话</el-radio>
|
||||||
<el-radio label="AI">自动外呼</el-radio>
|
<el-radio label="AI">自动外呼</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
@ -344,42 +205,24 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="pushMethod">
|
<div class="pushMethod">
|
||||||
话术模板:
|
话术模板:
|
||||||
<span
|
<span class="spanname" v-if="form.templateId && form.phoneDialMethod == 'COMMON'">
|
||||||
class="spanname"
|
<scripts @on-template="messageontemplateword" :templateId="form.phoneTemplateId"
|
||||||
v-if="form.templateId && form.phoneDialMethod == 'COMMON'"
|
:templateName="form.phoneTemplateName"></scripts>
|
||||||
>
|
|
||||||
<scripts
|
|
||||||
@on-template="messageontemplateword"
|
|
||||||
:templateId="form.phoneTemplateId"
|
|
||||||
:templateName="form.phoneTemplateName"
|
|
||||||
></scripts>
|
|
||||||
</span>
|
</span>
|
||||||
<span v-else>
|
<span v-else>
|
||||||
<scripts
|
<scripts @on-template="messageontemplateword" :templateId="form.phoneTemplateId"
|
||||||
@on-template="messageontemplateword"
|
:templateName="form.phoneTemplateName"></scripts>
|
||||||
:templateId="form.phoneTemplateId"
|
|
||||||
:templateName="form.phoneTemplateName"
|
|
||||||
></scripts>
|
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div class="pushMethod" v-if="form.phoneDialMethod == 'COMMON' || !form.phoneDialMethod">
|
||||||
class="pushMethod"
|
|
||||||
v-if="form.phoneDialMethod == 'COMMON' || !form.phoneDialMethod"
|
|
||||||
>
|
|
||||||
问卷模板:
|
问卷模板:
|
||||||
<span class="spanname" v-if="form.phoneTemplateId">
|
<span class="spanname" v-if="form.phoneTemplateId">
|
||||||
<question
|
<question @on-template="questionontemplate" :templateId="form.templateId"
|
||||||
@on-template="questionontemplate"
|
:templateName="form.templateName"></question>
|
||||||
:templateId="form.templateId"
|
|
||||||
:templateName="form.templateName"
|
|
||||||
></question>
|
|
||||||
</span>
|
</span>
|
||||||
<span v-else>
|
<span v-else>
|
||||||
<question
|
<question @on-template="questionontemplate" :templateId="form.templateId"
|
||||||
@on-template="questionontemplate"
|
:templateName="form.templateName"></question>
|
||||||
:templateId="form.templateId"
|
|
||||||
:templateName="form.templateName"
|
|
||||||
></question>
|
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="pushMethod">
|
<!-- <div class="pushMethod">
|
||||||
@ -396,16 +239,9 @@
|
|||||||
<div class="pushMethod">
|
<div class="pushMethod">
|
||||||
重播次数:
|
重播次数:
|
||||||
<span>
|
<span>
|
||||||
<el-select
|
<el-select v-model="form.phoneRedialTimes" style="width: 100px">
|
||||||
v-model="form.phoneRedialTimes"
|
<el-option v-for="item in optionslistS" :key="item.dictValue" :label="item.dictLabel"
|
||||||
style="width: 100px"
|
:value="item.dictValue">
|
||||||
>
|
|
||||||
<el-option
|
|
||||||
v-for="item in optionslistS"
|
|
||||||
:key="item.dictValue"
|
|
||||||
:label="item.dictLabel"
|
|
||||||
:value="item.dictValue"
|
|
||||||
>
|
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</span>
|
</span>
|
||||||
@ -413,11 +249,8 @@
|
|||||||
<div class="pushMethod">
|
<div class="pushMethod">
|
||||||
时间间隔(分):
|
时间间隔(分):
|
||||||
<span>
|
<span>
|
||||||
<el-input
|
<el-input v-model.number="form.phoneTimeInterval" oninput="value=value.replace(/[^\d]/g,'')"
|
||||||
v-model.number="form.phoneTimeInterval"
|
style="width: 100px">
|
||||||
oninput="value=value.replace(/[^\d]/g,'')"
|
|
||||||
style="width: 100px"
|
|
||||||
>
|
|
||||||
<!-- <el-option
|
<!-- <el-option
|
||||||
v-for="item in optionslistS"
|
v-for="item in optionslistS"
|
||||||
:key="item.dictValue"
|
:key="item.dictValue"
|
||||||
@ -430,52 +263,28 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="pushMethod">
|
<div class="pushMethod">
|
||||||
短信提醒:
|
短信提醒:
|
||||||
<el-select
|
<el-select v-model="form.phoneMessageRemind" style="width: 150px">
|
||||||
v-model="form.phoneMessageRemind"
|
<el-option v-for="item in optionslist" :key="item.dictValue" :label="item.dictLabel"
|
||||||
style="width: 150px"
|
:value="item.dictValue">
|
||||||
>
|
|
||||||
<el-option
|
|
||||||
v-for="item in optionslist"
|
|
||||||
:key="item.dictValue"
|
|
||||||
:label="item.dictLabel"
|
|
||||||
:value="item.dictValue"
|
|
||||||
>
|
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</div>
|
</div>
|
||||||
<div class="pushMethod">
|
<div class="pushMethod">
|
||||||
短信模板:
|
短信模板:
|
||||||
<span
|
<span class="spanname" v-if="form.phoneMessageRemind == 'NOT_SEND_MESSAGE'">
|
||||||
class="spanname"
|
<message style="width: 200px" @on-template="messageontemplateMESSAGE"
|
||||||
v-if="form.phoneMessageRemind == 'NOT_SEND_MESSAGE'"
|
:templateId="form.phoneMessageTemplateId" :templateName="form.phoneMessageTemplateName"></message>
|
||||||
>
|
|
||||||
<message
|
|
||||||
style="width: 200px"
|
|
||||||
@on-template="messageontemplateMESSAGE"
|
|
||||||
:templateId="form.phoneMessageTemplateId"
|
|
||||||
:templateName="form.phoneMessageTemplateName"
|
|
||||||
></message>
|
|
||||||
</span>
|
</span>
|
||||||
<span v-else>
|
<span v-else>
|
||||||
<message
|
<message style="width: 200px" @on-template="messageontemplateMESSAGE"
|
||||||
style="width: 200px"
|
:templateId="form.phoneMessageTemplateId" :templateName="form.phoneMessageTemplateName"></message>
|
||||||
@on-template="messageontemplateMESSAGE"
|
|
||||||
:templateId="form.phoneMessageTemplateId"
|
|
||||||
:templateName="form.phoneMessageTemplateName"
|
|
||||||
></message>
|
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- 话术模板内容 -->
|
<!-- 话术模板内容 -->
|
||||||
<div
|
<div class="imageScriptpreview" v-if="phoneNodeContent && form.templateType == 'SCRIPT'
|
||||||
class="imageScriptpreview"
|
">
|
||||||
v-if="
|
<Scriptpreview :phoneNodeContent="phoneNodeContent"></Scriptpreview>
|
||||||
phoneNodeContent && form.templateType == 'SCRIPT'
|
|
||||||
"
|
|
||||||
>
|
|
||||||
<Scriptpreview
|
|
||||||
:phoneNodeContent="phoneNodeContent"
|
|
||||||
></Scriptpreview>
|
|
||||||
</div>
|
</div>
|
||||||
<!-- 问卷模板内容 -->
|
<!-- 问卷模板内容 -->
|
||||||
<div class="imageScriptpreview" v-else-if="lookitemnew && form.templateType == 'QUESTIONNAIRE'">
|
<div class="imageScriptpreview" v-else-if="lookitemnew && form.templateType == 'QUESTIONNAIRE'">
|
||||||
@ -487,41 +296,18 @@
|
|||||||
</div>
|
</div>
|
||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
<el-button @click="TemporaryStorage">暂 存</el-button>
|
<el-button @click="TemporaryStorage">暂 存</el-button>
|
||||||
<el-button
|
<el-button type="primary" @click="dialogVisibletrue" v-if="form.specialDiseaseNodeId">审核完成 {{ agreeNumber ?
|
||||||
type="primary"
|
agreeNumber : "0" }} /
|
||||||
@click="dialogVisible = true"
|
{{ totalNumber ? totalNumber : "0" }}</el-button>
|
||||||
v-if="form.specialDiseaseNodeId"
|
|
||||||
>审核完成 {{ agreeNumber ? agreeNumber : "0" }} /
|
|
||||||
{{ totalNumber ? totalNumber : "0" }}</el-button
|
|
||||||
>
|
|
||||||
</div>
|
</div>
|
||||||
<el-dialog
|
<el-dialog title="提交审核完成" :visible.sync="dialogVisible" width="30%" :before-close="handleClose">
|
||||||
title="提交审核完成"
|
<el-form ref="routeform" :model="routeform" label-width="120px" :rules="rules">
|
||||||
:visible.sync="dialogVisible"
|
|
||||||
width="30%"
|
|
||||||
:before-close="handleClose"
|
|
||||||
>
|
|
||||||
<el-form
|
|
||||||
ref="routeform"
|
|
||||||
:model="routeform"
|
|
||||||
label-width="120px"
|
|
||||||
:rules="rules"
|
|
||||||
>
|
|
||||||
<el-form-item label="节点审核状态" prop="routeCheckStatus">
|
<el-form-item label="节点审核状态" prop="routeCheckStatus">
|
||||||
<el-radio v-model="routeform.routeCheckStatus" label="AGREE"
|
<el-radio v-model="routeform.routeCheckStatus" label="AGREE">同意</el-radio>
|
||||||
>同意</el-radio
|
<el-radio v-model="routeform.routeCheckStatus" label="DISAGREE">不同意</el-radio>
|
||||||
>
|
|
||||||
<el-radio v-model="routeform.routeCheckStatus" label="DISAGREE"
|
|
||||||
>不同意</el-radio
|
|
||||||
>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="节点审核备注">
|
<el-form-item label="节点审核备注">
|
||||||
<el-input
|
<el-input type="textarea" :rows="2" placeholder="请输入节点审核备注" v-model="routeform.routeCheckRemark">
|
||||||
type="textarea"
|
|
||||||
:rows="2"
|
|
||||||
placeholder="请输入节点审核备注"
|
|
||||||
v-model="routeform.routeCheckRemark"
|
|
||||||
>
|
|
||||||
</el-input>
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
@ -579,7 +365,6 @@ export default {
|
|||||||
baseUrl: process.env.VUE_APP_BASE_API,
|
baseUrl: process.env.VUE_APP_BASE_API,
|
||||||
showquestion: false,
|
showquestion: false,
|
||||||
phoneNodeContent: "",
|
phoneNodeContent: "",
|
||||||
|
|
||||||
optionslist: [],
|
optionslist: [],
|
||||||
optionslistS: [],
|
optionslistS: [],
|
||||||
value: "",
|
value: "",
|
||||||
@ -641,7 +426,7 @@ export default {
|
|||||||
this.infolistword();
|
this.infolistword();
|
||||||
this.infolistMESSAGE();
|
this.infolistMESSAGE();
|
||||||
},
|
},
|
||||||
beforeDestroy() {},
|
beforeDestroy() { },
|
||||||
watch: {
|
watch: {
|
||||||
"form.phoneMessageRemind": {
|
"form.phoneMessageRemind": {
|
||||||
handler(newValue, oldValue) {
|
handler(newValue, oldValue) {
|
||||||
@ -663,10 +448,9 @@ export default {
|
|||||||
// phoneTemplateId
|
// phoneTemplateId
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mounted() {},
|
mounted() { },
|
||||||
methods: {
|
methods: {
|
||||||
changephoneDialMethod(e) {
|
changephoneDialMethod(e) {
|
||||||
console.log(e);
|
|
||||||
if (e == "AI") {
|
if (e == "AI") {
|
||||||
// this.form.templateId=''
|
// this.form.templateId=''
|
||||||
// 清空问卷id和名字
|
// 清空问卷id和名字
|
||||||
@ -677,10 +461,8 @@ export default {
|
|||||||
this.lookitemnew = "";
|
this.lookitemnew = "";
|
||||||
} else if (e == "COMMON") {
|
} else if (e == "COMMON") {
|
||||||
// 清空问卷id话术id和对应名字
|
// 清空问卷id话术id和对应名字
|
||||||
|
|
||||||
this.form.templateId = "";
|
this.form.templateId = "";
|
||||||
this.form.templateName = "";
|
this.form.templateName = "";
|
||||||
|
|
||||||
this.form.phoneTemplateId = "";
|
this.form.phoneTemplateId = "";
|
||||||
this.form.phoneTemplateName = "";
|
this.form.phoneTemplateName = "";
|
||||||
// 清空话术和问卷
|
// 清空话术和问卷
|
||||||
@ -702,7 +484,6 @@ export default {
|
|||||||
// this.taskinfo();
|
// this.taskinfo();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
changeoptions(e) {
|
changeoptions(e) {
|
||||||
this.parentDictCode = this.options.find(
|
this.parentDictCode = this.options.find(
|
||||||
(el) => el.dictValue == e
|
(el) => el.dictValue == e
|
||||||
@ -744,7 +525,6 @@ export default {
|
|||||||
res.data.specialDiseaseNodeList.forEach((e) => {
|
res.data.specialDiseaseNodeList.forEach((e) => {
|
||||||
if (e.templateType == "SCRIPT" && e.flowScheme) {
|
if (e.templateType == "SCRIPT" && e.flowScheme) {
|
||||||
this.phoneNodeContent = e.flowScheme;
|
this.phoneNodeContent = e.flowScheme;
|
||||||
console.log(this.phoneNodeContent, "this.phoneNodeContent");
|
|
||||||
}
|
}
|
||||||
if (e.messagePushSign) {
|
if (e.messagePushSign) {
|
||||||
e.messagePushSign = "" + e.messagePushSign;
|
e.messagePushSign = "" + e.messagePushSign;
|
||||||
@ -765,17 +545,12 @@ export default {
|
|||||||
"routeNodeName"
|
"routeNodeName"
|
||||||
);
|
);
|
||||||
this.form = this.lists[0].list[0];
|
this.form = this.lists[0].list[0];
|
||||||
console.log(this.form, "this,form");
|
|
||||||
// 宣教模板回显
|
// 宣教模板回显
|
||||||
if (this.form.templateType == "PROPAGANDA"&&this.form.templateId) {
|
if (this.form.templateType == "PROPAGANDA" && this.form.templateId) {
|
||||||
getPropaganda(this.form.templateId).then((response) => {
|
getPropaganda(this.form.templateId).then((response) => {
|
||||||
console.log(response, " this.formview ");
|
|
||||||
|
|
||||||
this.formview = response.data;
|
this.formview = response.data;
|
||||||
});
|
});
|
||||||
} else if (this.form.templateType == "QUESTIONNAIRE"||this.form.templateType == "SCRIPT"&&this.form.templateId) {
|
} else if (this.form.templateType == "QUESTIONNAIRE" || this.form.templateType == "SCRIPT" && this.form.templateId) {
|
||||||
console.log(this.form.templateId,'this.form.templateId5555555555')
|
|
||||||
|
|
||||||
// 问卷模板回显
|
// 问卷模板回显
|
||||||
questionname(this.form.templateId).then((res) => {
|
questionname(this.form.templateId).then((res) => {
|
||||||
this.lookitemnew = res.data;
|
this.lookitemnew = res.data;
|
||||||
@ -949,7 +724,6 @@ export default {
|
|||||||
// !e.taskSubdivision &&
|
// !e.taskSubdivision &&
|
||||||
// !e.taskStatus
|
// !e.taskStatus
|
||||||
// );
|
// );
|
||||||
// console.log(this.updata,'this.updata')
|
|
||||||
// return
|
// return
|
||||||
specialDiseaseNode(this.updata).then((res) => {
|
specialDiseaseNode(this.updata).then((res) => {
|
||||||
this.info();
|
this.info();
|
||||||
@ -963,19 +737,21 @@ export default {
|
|||||||
},
|
},
|
||||||
//问卷传值
|
//问卷传值
|
||||||
questionontemplate(item) {
|
questionontemplate(item) {
|
||||||
console.log(item, "iten");
|
|
||||||
this.form.templateId = item.templateId;
|
this.form.templateId = item.templateId;
|
||||||
this.form.templateName = item.templateName;
|
this.form.templateName = item.templateName;
|
||||||
this.lookitemnew = item.lookitemnew;
|
this.lookitemnew = item.lookitemnew;
|
||||||
},
|
},
|
||||||
//宣教传值
|
//宣教传值
|
||||||
propagandaontemplate(item) {
|
propagandaontemplate(item) {
|
||||||
console.log(item, "iten");
|
|
||||||
|
|
||||||
this.form.templateId = item.templateId;
|
this.form.templateId = item.templateId;
|
||||||
this.form.templateName = item.templateName;
|
this.form.templateName = item.templateName;
|
||||||
this.formview = item.formview;
|
this.formview = item.formview;
|
||||||
},
|
},
|
||||||
|
//点击审核按钮
|
||||||
|
dialogVisibletrue() {
|
||||||
|
this.form.routeNodeDay = Number(this.lists[this.listindex].routeNodeDay)
|
||||||
|
this.dialogVisible = true
|
||||||
|
},
|
||||||
// 点击每一条
|
// 点击每一条
|
||||||
bottomclickevent(uitem, index, uindex) {
|
bottomclickevent(uitem, index, uindex) {
|
||||||
// this.phoneNodeContent = "";
|
// this.phoneNodeContent = "";
|
||||||
@ -988,24 +764,17 @@ export default {
|
|||||||
}
|
}
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.form = uitem;
|
this.form = uitem;
|
||||||
|
if (this.form.templateType == "PROPAGANDA" && this.form.templateId) {
|
||||||
if (this.form.templateType == "PROPAGANDA"&&this.form.templateId) {
|
getPropaganda(this.form.templateId).then((response) => { // 宣教
|
||||||
// 宣教
|
|
||||||
getPropaganda(this.form.templateId).then((response) => {
|
|
||||||
this.formview = response.data;
|
this.formview = response.data;
|
||||||
});
|
});
|
||||||
} else if (this.form.templateType == "QUESTIONNAIRE"&&this.form.templateId) {
|
} else if (this.form.templateType == "QUESTIONNAIRE" && this.form.templateId) {
|
||||||
console.log(this.form.templateId,'this.form.templateId')
|
questionname(this.form.templateId).then((res) => { // 问卷
|
||||||
questionname(this.form.templateId).then((res) => {
|
|
||||||
// 问卷
|
|
||||||
console.log(res, "res");
|
|
||||||
this.lookitemnew = res.data;
|
this.lookitemnew = res.data;
|
||||||
});
|
});
|
||||||
// this.loading=true
|
|
||||||
} else if (this.form.templateType == "SCRIPT" && this.form.flowScheme) {
|
} else if (this.form.templateType == "SCRIPT" && this.form.flowScheme) {
|
||||||
// 话术
|
// 话术
|
||||||
this.phoneNodeContent = this.form.flowScheme;
|
this.phoneNodeContent = this.form.flowScheme;
|
||||||
console.log(this.phoneNodeContent, "this.phoneNodeContent11");
|
|
||||||
}
|
}
|
||||||
this.taskPartitionList = [];
|
this.taskPartitionList = [];
|
||||||
if (this.form.taskType) {
|
if (this.form.taskType) {
|
||||||
@ -1159,7 +928,7 @@ export default {
|
|||||||
spinner: "el-icon-loading",
|
spinner: "el-icon-loading",
|
||||||
background: "rgba(0, 0, 0, 0.7)",
|
background: "rgba(0, 0, 0, 0.7)",
|
||||||
});
|
});
|
||||||
if (!this.form.routeNodeDay) {
|
if (Number(this.form.routeNodeDay) != 0 && Number(this.form.routeNodeDay) < 0) {
|
||||||
this.$message.error("请输入节点时间段天数");
|
this.$message.error("请输入节点时间段天数");
|
||||||
return loading.close();
|
return loading.close();
|
||||||
}
|
}
|
||||||
@ -1204,17 +973,21 @@ export default {
|
|||||||
border: 1.5px solid #c7c7c7;
|
border: 1.5px solid #c7c7c7;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
::v-deep iframe {
|
::v-deep iframe {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 500px;
|
height: 500px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.imageScriptpreview {
|
.imageScriptpreview {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.imageScriptpreviews {
|
.imageScriptpreviews {
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
width: 90%;
|
width: 90%;
|
||||||
|
|
||||||
// height: 300px;
|
// height: 300px;
|
||||||
.titletop {
|
.titletop {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
@ -1256,6 +1029,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .el-input.is-disabled .el-input__inner {
|
::v-deep .el-input.is-disabled .el-input__inner {
|
||||||
background-color: #fff !important;
|
background-color: #fff !important;
|
||||||
color: #606266 !important;
|
color: #606266 !important;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user