修改
This commit is contained in:
parent
a37ecfcbf4
commit
e059cd61ae
@ -116,7 +116,10 @@
|
||||
</el-tabs>
|
||||
</div>
|
||||
<!-- 文章模板 -->
|
||||
<div class="right" v-if="$route.query.taskNodeType == 'PROPAGANDA_ARTICLE'">
|
||||
<div
|
||||
class="right"
|
||||
v-if="$route.query.taskNodeType == 'PROPAGANDA_ARTICLE'"
|
||||
>
|
||||
<div class="sport">文章模板:{{ formview.propagandaTitle }}</div>
|
||||
<div class="bodytop">
|
||||
<div>
|
||||
@ -143,16 +146,11 @@
|
||||
<!-- 问卷模板 -->
|
||||
<div
|
||||
class="right"
|
||||
v-if="
|
||||
$route.query.taskNodeType == 'QUESTIONNAIRE_SCALE'
|
||||
|
||||
"
|
||||
v-if="$route.query.taskNodeType == 'QUESTIONNAIRE_SCALE'"
|
||||
>
|
||||
<div
|
||||
class="handle"
|
||||
v-if="
|
||||
$route.query.taskNodeType == 'QUESTIONNAIRE_SCALE'
|
||||
"
|
||||
class="handle"
|
||||
v-if="$route.query.taskNodeType == 'QUESTIONNAIRE_SCALE'"
|
||||
>
|
||||
<el-form
|
||||
:inline="true"
|
||||
@ -343,86 +341,6 @@
|
||||
label-width="110px"
|
||||
:inline="true"
|
||||
>
|
||||
<!-- <br/> -->
|
||||
<el-form-item label="是否接通" prop="phone">
|
||||
<el-radio
|
||||
v-model="formlist.phoneConnectStatus"
|
||||
label="CONNECTED"
|
||||
>已接通</el-radio
|
||||
>
|
||||
<el-radio
|
||||
v-model="formlist.phoneConnectStatus"
|
||||
label="NOTCONNECTED"
|
||||
>未接通</el-radio
|
||||
>
|
||||
</el-form-item>
|
||||
<br />
|
||||
|
||||
<el-form-item label="任务处理信息" prop="routeHandleRemark">
|
||||
<el-input
|
||||
v-model="formlist.routeHandleRemark"
|
||||
placeholder="请输入任务处理信息"
|
||||
/>
|
||||
</el-form-item>
|
||||
<br />
|
||||
<!-- <el-form-item label="话术名称" prop="scriptName">
|
||||
<el-input
|
||||
disabled
|
||||
v-model="formlist.scriptName"
|
||||
placeholder="请输入话术名称"
|
||||
/>
|
||||
|
||||
</el-form-item> -->
|
||||
<!-- <br /> -->
|
||||
<el-form-item label="通用话术名称" prop="phoneTemplateName">
|
||||
<el-input
|
||||
disabled
|
||||
v-model="formlist.phoneTemplateName"
|
||||
placeholder="请输入通用话术名称"
|
||||
/>
|
||||
</el-form-item>
|
||||
<br />
|
||||
<!-- <el-form-item label="话术简介" prop="scriptIntroduction">
|
||||
<el-input
|
||||
disabled
|
||||
type="textarea"
|
||||
v-model="formlist.scriptIntroduction"
|
||||
placeholder="请输入话术简介"
|
||||
/>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="任务处理信息" prop="routeHandleRemark">
|
||||
<el-input
|
||||
type="textarea"
|
||||
v-model="formlist.routeHandleRemark"
|
||||
placeholder="请输入任务处理信息"
|
||||
/>
|
||||
</el-form-item> -->
|
||||
<!-- <br /> -->
|
||||
<el-form-item label="电话推送" prop="phonePushSign">
|
||||
<!-- <el-input
|
||||
|
||||
type="textarea"
|
||||
v-model="formlist.routeHandleRemark"
|
||||
placeholder="请输入任务处理信息"
|
||||
/> -->
|
||||
<!-- <el-switch
|
||||
disabled
|
||||
v-model="formlist.phonePushSign"
|
||||
active-color="#13ce66"
|
||||
active-value="1"
|
||||
inactive-value="0"
|
||||
>
|
||||
</el-switch> -->
|
||||
<el-radio disabled v-model="formlist.phonePushSign" label="1"
|
||||
>已开启</el-radio
|
||||
>
|
||||
<el-radio disabled v-model="formlist.phonePushSign" label="0"
|
||||
>未开启</el-radio
|
||||
>
|
||||
</el-form-item>
|
||||
<br />
|
||||
|
||||
<el-form-item label="电话" prop="patientPhone">
|
||||
<el-input
|
||||
disabled
|
||||
@ -431,61 +349,74 @@
|
||||
/>
|
||||
</el-form-item>
|
||||
<br />
|
||||
<!-- <div style="background:red;width:200px;height:1600px"> -->
|
||||
<el-form-item label="重复次数" prop="phoneRedialTimes">
|
||||
<el-select
|
||||
v-model="formlist.phoneRedialTimes"
|
||||
<el-form-item label="是否接通" prop="phone">
|
||||
<el-radio
|
||||
disabled
|
||||
style="width: 200px"
|
||||
v-model="formlist.phoneConnectStatus"
|
||||
label="CONNECTED"
|
||||
>已接通</el-radio
|
||||
>
|
||||
<el-option
|
||||
v-for="item in optionslistS"
|
||||
:key="item.dictValue"
|
||||
:label="item.dictLabel"
|
||||
:value="item.dictValue"
|
||||
>
|
||||
</el-option>
|
||||
</el-select>
|
||||
<el-radio
|
||||
disabled
|
||||
v-model="formlist.phoneConnectStatus"
|
||||
label="NOTCONNECTED"
|
||||
>未接通</el-radio
|
||||
>
|
||||
</el-form-item>
|
||||
<br />
|
||||
<el-form-item label="通用话术名称" prop="phoneTemplateName">
|
||||
<el-input
|
||||
disabled
|
||||
v-model="formlist.phoneTemplateName"
|
||||
placeholder="请输入通用话术名称"
|
||||
/>
|
||||
</el-form-item>
|
||||
<br />
|
||||
<el-form-item label="重复次数" prop="phoneRedialTimes">
|
||||
<el-input
|
||||
disabled
|
||||
v-model="formlist.phoneRedialTimes"
|
||||
placeholder=""
|
||||
/>
|
||||
</el-form-item>
|
||||
<br />
|
||||
<el-form-item label="电话短信提醒" prop="phone">
|
||||
<el-select
|
||||
<el-input
|
||||
disabled
|
||||
v-model="formlist.phoneMessageRemind"
|
||||
style="width: 200px"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in optionslist"
|
||||
:key="item.dictValue"
|
||||
:label="item.dictLabel"
|
||||
:value="item.dictValue"
|
||||
>
|
||||
</el-option>
|
||||
</el-select>
|
||||
<!-- <el-input
|
||||
style="width: 200px"
|
||||
v-model="formlist.phoneMessageRemind"
|
||||
placeholder="请输入电话"
|
||||
/> -->
|
||||
placeholder=""
|
||||
/>
|
||||
</el-form-item>
|
||||
<br />
|
||||
<div class="pushMethod">
|
||||
<el-form-item label="短信模板:" prop="phone">
|
||||
<span class="spanname">
|
||||
<message
|
||||
style="width: 200px; height: 10px"
|
||||
@on-template="messageontemplateMESSAGE"
|
||||
:templateId="formlist.phoneMessageTemplateId"
|
||||
:templateName="formlist.phoneMessageTemplateName"
|
||||
></message>
|
||||
</span>
|
||||
</el-form-item>
|
||||
</div>
|
||||
<el-form-item label="短信模板:" prop="phone">
|
||||
<span class="spanname">
|
||||
<message
|
||||
style="width: 200px; height: 50px"
|
||||
@on-template="messageontemplateMESSAGE"
|
||||
:templateId="formlist.phoneMessageTemplateId"
|
||||
:templateName="formlist.phoneMessageTemplateName"
|
||||
>
|
||||
</message>
|
||||
</span>
|
||||
</el-form-item>
|
||||
<br />
|
||||
<el-form-item label="话术图" prop="phone">
|
||||
<img
|
||||
:src="formlist.scriptFilePath"
|
||||
style="width: 250px; height: 200px"
|
||||
<!-- <img :src="formlist.scriptFilePath" style="width: 250px; height: 200px" /> -->
|
||||
<el-button
|
||||
type="primary"
|
||||
size="small"
|
||||
@click="scriptlook(formlist.phoneNodeContent)"
|
||||
>预览</el-button
|
||||
>
|
||||
</el-form-item>
|
||||
<br />
|
||||
<el-form-item label="任务处理信息" prop="routeHandleRemark">
|
||||
<el-input
|
||||
type="textarea"
|
||||
disabled
|
||||
v-model="formlist.routeHandleRemark"
|
||||
style="width: 500px"
|
||||
placeholder="请输入任务处理信息"
|
||||
/>
|
||||
</el-form-item>
|
||||
<br />
|
||||
@ -510,6 +441,19 @@
|
||||
</el-form>
|
||||
</div> -->
|
||||
</div>
|
||||
<!-- 预览 -->
|
||||
<el-dialog title="话术预览" :visible.sync="lookshow" width="90%">
|
||||
<Scriptpreview
|
||||
:phoneNodeContent="phoneNodeContent"
|
||||
v-if="lookshow"
|
||||
></Scriptpreview>
|
||||
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="lookshow = false"
|
||||
>确 定</el-button
|
||||
>
|
||||
</span>
|
||||
</el-dialog>
|
||||
<!-- 文字提醒 -->
|
||||
<div v-if="$route.query.taskNodeType == 'TEXT_REMIND'">
|
||||
<div class="sport">文字提醒</div>
|
||||
@ -542,11 +486,9 @@
|
||||
import { getPropaganda } from "@/api/manage/propaganda";
|
||||
import Editorxj from "../../system/Editorxj/index.vue";
|
||||
import message from "../components/message.vue";
|
||||
import Scriptpreview from ".././components/Scriptpreviewopen.vue";
|
||||
|
||||
import {
|
||||
|
||||
selectPhonePush,
|
||||
} from "@/api/system/followupsee";
|
||||
import { selectPhonePush } from "@/api/system/followupsee";
|
||||
import {
|
||||
selectVisitRecord,
|
||||
selectPatientQuestionSubmit,
|
||||
@ -556,13 +498,21 @@ import { getAgencytype } from "@/api/system/agency";
|
||||
export default {
|
||||
components: {
|
||||
message,
|
||||
Editorxj
|
||||
Editorxj,
|
||||
Scriptpreview,
|
||||
},
|
||||
name: "patientdetails",
|
||||
// components: { },
|
||||
data() {
|
||||
return {
|
||||
checkeddata: [],
|
||||
lookshow: false,
|
||||
phoneNodeContent: {
|
||||
scriptInfoId: null,
|
||||
flowScheme: null,
|
||||
nodes: [],
|
||||
edges: [],
|
||||
},
|
||||
formlists: {},
|
||||
baseUrl: process.env.VUE_APP_BASE_API,
|
||||
radio: "1",
|
||||
@ -584,10 +534,9 @@ export default {
|
||||
};
|
||||
},
|
||||
created() {
|
||||
console.log(this.$route.query);
|
||||
this.info();
|
||||
this.infolistMESSAGE();
|
||||
this.infolistword()
|
||||
// this.infolistMESSAGE();
|
||||
// this.infolistword();
|
||||
// 文字提醒
|
||||
if (this.$route.query.textRemindContent) {
|
||||
this.formlists.textRemindContent = this.$route.query.textRemindContent;
|
||||
@ -600,7 +549,7 @@ export default {
|
||||
this.getPropagandaLIST();
|
||||
} else if (
|
||||
// 人工随访和问卷
|
||||
|
||||
|
||||
this.$route.query.taskNodeType == "QUESTIONNAIRE_SCALE"
|
||||
) {
|
||||
this.selectlist();
|
||||
@ -609,22 +558,36 @@ export default {
|
||||
selectPhonePush(this.$route.query.manageRouteNodeId).then((response) => {
|
||||
if (response.data) {
|
||||
this.formlist = response.data;
|
||||
this.formlist.phoneRedialTimes = response.data.phoneRedialTimes;
|
||||
this.infolistMESSAGE();
|
||||
this.infolistword();
|
||||
|
||||
if (this.formlist.phonePushSign == 0) {
|
||||
this.formlist.phonePushSign = '0'
|
||||
this.formlist.phonePushSign = "0";
|
||||
} else if (this.formlist.phonePushSign == 1) {
|
||||
this.formlist.phonePushSign = '1'
|
||||
this.formlist.phonePushSign = "1";
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
scriptlook(e) {
|
||||
if (e == null || e == "") {
|
||||
this.$message.error("暂无话术图");
|
||||
} else {
|
||||
this.phoneNodeContent = e;
|
||||
this.lookshow = true;
|
||||
}
|
||||
},
|
||||
// 发送短信
|
||||
infolistword() {
|
||||
var dictType = "text_message_remind";
|
||||
getAgencytype(dictType).then((res) => {
|
||||
this.optionslist = res.data;
|
||||
// this.taskinfo();
|
||||
this.formlist.phoneMessageRemind = this.optionslist.find(
|
||||
(el) => el.dictValue == this.formlist.phoneMessageRemind
|
||||
)?.dictLabel;
|
||||
});
|
||||
},
|
||||
|
||||
@ -640,6 +603,9 @@ export default {
|
||||
var dictType = "redial_times";
|
||||
getAgencytype(dictType).then((res) => {
|
||||
this.optionslistS = res.data;
|
||||
this.formlist.phoneRedialTimes = this.optionslistS.find(
|
||||
(el) => el.dictValue == this.formlist.phoneRedialTimes
|
||||
)?.dictLabel;
|
||||
});
|
||||
},
|
||||
// 宣教
|
||||
@ -701,7 +667,7 @@ export default {
|
||||
this.questiondata.questionSubjectList[index].optionAnswer = e;
|
||||
},
|
||||
|
||||
radioGroupChange(e, item) { },
|
||||
radioGroupChange(e, item) {},
|
||||
// 选中某个单选框时,由radio时触发
|
||||
radioChange(e, item, index) {
|
||||
console.log(e, item, index, "选中某个单选框时");
|
||||
@ -743,6 +709,14 @@ export default {
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
::v-deep .el-input.is-disabled .el-input__inner {
|
||||
background: #fff !important;
|
||||
color: #606266;
|
||||
}
|
||||
::v-deep .el-textarea.is-disabled .el-textarea__inner {
|
||||
color: #606266;
|
||||
background: #fff;
|
||||
}
|
||||
::v-deep iframe {
|
||||
width: 100%;
|
||||
height: 500px;
|
||||
@ -831,7 +805,9 @@ export default {
|
||||
font-size: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
.spanname {
|
||||
pointer-events: none;
|
||||
}
|
||||
.right {
|
||||
width: 70%;
|
||||
padding-bottom: 30px;
|
||||
@ -843,8 +819,8 @@ export default {
|
||||
margin-top: 20px;
|
||||
::v-deep .el-textarea__inner {
|
||||
width: 350px;
|
||||
height: 250px;
|
||||
}
|
||||
height: 250px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user