Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
76b89d3fc1
121
src/views/components/DepartmentList.vue
Normal file
121
src/views/components/DepartmentList.vue
Normal file
@ -0,0 +1,121 @@
|
|||||||
|
<template>
|
||||||
|
<div class="left">
|
||||||
|
<div class="name">科室名称</div>
|
||||||
|
<div>
|
||||||
|
<el-input v-model="querydepartmen.departmentName" placeholder="请输入科室名称" clearable
|
||||||
|
@keyup.enter.native="Departmentlist" />
|
||||||
|
</div>
|
||||||
|
<div class="listitem">
|
||||||
|
<div :class="itemid == null ? 'allactive' : 'all'" @click="itemdata()">
|
||||||
|
全部
|
||||||
|
</div>
|
||||||
|
<span class="count">{{ count }}</span>
|
||||||
|
</div>
|
||||||
|
<div class="listitem" v-for="(item, index) in DepartmentoList" :key="index" @click="itemdata(item)">
|
||||||
|
<div :class="itemid == item.id ? 'allactive' : 'all'">
|
||||||
|
{{ item.departmentName }}
|
||||||
|
</div>
|
||||||
|
<span class="count">{{ item.countNum }}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { listOperationNum } from "@/api/operationInfo/operationInfo";
|
||||||
|
export default {
|
||||||
|
name: "DepartmentList",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
//校验
|
||||||
|
itemid: null,
|
||||||
|
// 表格数据
|
||||||
|
DepartmentoList: [],
|
||||||
|
count: '',
|
||||||
|
// 查询参数
|
||||||
|
querydepartmen: {
|
||||||
|
departmentName: "",
|
||||||
|
},
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.Departmentlist();
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
name(val) {
|
||||||
|
this.querydepartmen.departmentName = val
|
||||||
|
this.Departmentlist();
|
||||||
|
},
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
// 左侧科室
|
||||||
|
itemdata(item) {
|
||||||
|
if (item) {
|
||||||
|
this.itemid = item.id
|
||||||
|
} else {
|
||||||
|
this.itemid = null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// 左侧科室
|
||||||
|
Departmentlist() {
|
||||||
|
listOperationNum(this.querydepartmen).then(response => {
|
||||||
|
this.DepartmentoList = response.data;
|
||||||
|
let sum = 0;
|
||||||
|
this.DepartmentoList.forEach((item) => {
|
||||||
|
if (item.countNum != null) {
|
||||||
|
sum += item.countNum;
|
||||||
|
}
|
||||||
|
this.count = sum;
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
::v-deep .el-input-number .el-input__inner {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.left {
|
||||||
|
// height: calc(100vh - 119px);
|
||||||
|
height: 100%;
|
||||||
|
overflow: auto;
|
||||||
|
|
||||||
|
.name {
|
||||||
|
font-weight: 700;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.listitem {
|
||||||
|
width: 100%;
|
||||||
|
height: 50px;
|
||||||
|
border-bottom: 1px solid #dcdfe6;
|
||||||
|
|
||||||
|
.count {
|
||||||
|
display: inline-block;
|
||||||
|
position: relative;
|
||||||
|
// right: -172px;
|
||||||
|
left: 210px;
|
||||||
|
color: #a4a6aa;
|
||||||
|
top: -35px;
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.all {
|
||||||
|
height: 50px;
|
||||||
|
line-height: 50px;
|
||||||
|
padding-left: 13px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.allactive {
|
||||||
|
background: #e8f4ff;
|
||||||
|
height: 50px;
|
||||||
|
line-height: 50px;
|
||||||
|
padding-left: 13px;
|
||||||
|
border-left: 3px solid #4d9de7;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@ -412,6 +412,9 @@ export default {
|
|||||||
this.queryParams.departmentId = null
|
this.queryParams.departmentId = null
|
||||||
this.queryParams.wardId = null
|
this.queryParams.wardId = null
|
||||||
this.queryParams.attendingPhysicianId = null
|
this.queryParams.attendingPhysicianId = null
|
||||||
|
setTimeout(() => {
|
||||||
|
this.attendingPhysicianlist = []
|
||||||
|
}, 1000);
|
||||||
},
|
},
|
||||||
//清空院区
|
//清空院区
|
||||||
clearcampusAgency() {
|
clearcampusAgency() {
|
||||||
|
|||||||
@ -83,8 +83,8 @@
|
|||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="开证医生" prop="certificateIssuingDoctor">
|
<el-form-item label="开证医生" prop="certificateIssuingDoctorId">
|
||||||
<el-select v-model="queryParams.certificateIssuingDoctorId" filterable placeholder="请选择主治医生"
|
<el-select v-model="queryParams.certificateIssuingDoctorId" filterable placeholder="请选择开证医生"
|
||||||
style="width: 200px" clearable>
|
style="width: 200px" clearable>
|
||||||
<el-option v-for="item in attendingPhysicianlist" :key="item.userId" :label="item.nickName"
|
<el-option v-for="item in attendingPhysicianlist" :key="item.userId" :label="item.nickName"
|
||||||
:value="item.userId">
|
:value="item.userId">
|
||||||
@ -262,8 +262,8 @@
|
|||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="开证医生" prop="certificateIssuingDoctor" v-if="form.hospitalAgencyId">
|
<el-form-item label="开证医生" prop="certificateIssuingDoctorId" v-if="form.hospitalAgencyId">
|
||||||
<el-select v-model="form.certificateIssuingDoctorId" filterable placeholder="请选择主治医生" style="width: 200px"
|
<el-select v-model="form.certificateIssuingDoctorId" filterable placeholder="请选择开证医生" style="width: 200px"
|
||||||
clearable>
|
clearable>
|
||||||
<el-option v-for="item in form_attendingPhysicianlist" :key="item.userId" :label="item.nickName"
|
<el-option v-for="item in form_attendingPhysicianlist" :key="item.userId" :label="item.nickName"
|
||||||
:value="item.userId">
|
:value="item.userId">
|
||||||
@ -523,6 +523,7 @@ export default {
|
|||||||
// 查询参数
|
// 查询参数
|
||||||
appointmentDate: [],
|
appointmentDate: [],
|
||||||
queryParams: {
|
queryParams: {
|
||||||
|
certificateIssuingDoctorId: undefined,
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
appointmentDateStart: '',
|
appointmentDateStart: '',
|
||||||
@ -708,7 +709,7 @@ export default {
|
|||||||
sex: null,
|
sex: null,
|
||||||
address: null,
|
address: null,
|
||||||
patientType: 'PRE_HOSPITALIZED_PATIENT',
|
patientType: 'PRE_HOSPITALIZED_PATIENT',
|
||||||
certificateIssuingDoctor: null,
|
certificateIssuingDoctorId: null,
|
||||||
mainDiagnosis: null,
|
mainDiagnosis: null,
|
||||||
hospitalAgencyId: null,
|
hospitalAgencyId: null,
|
||||||
campusAgencyId: null,
|
campusAgencyId: null,
|
||||||
@ -725,6 +726,7 @@ export default {
|
|||||||
},
|
},
|
||||||
resetHospital() {
|
resetHospital() {
|
||||||
this.formHospital = {
|
this.formHospital = {
|
||||||
|
attendingPhysicianId: undefined,
|
||||||
patientName: null,
|
patientName: null,
|
||||||
patientPhone: null,
|
patientPhone: null,
|
||||||
familyMemberPhone: null,
|
familyMemberPhone: null,
|
||||||
@ -737,7 +739,6 @@ export default {
|
|||||||
certificateIssuingDoctor: null,
|
certificateIssuingDoctor: null,
|
||||||
visitMethod: 'BE_IN_HOSPITAL',
|
visitMethod: 'BE_IN_HOSPITAL',
|
||||||
mainDiagnosis: null,
|
mainDiagnosis: null,
|
||||||
attendingPhysicianId: null,
|
|
||||||
hospitalAgencyId: null,
|
hospitalAgencyId: null,
|
||||||
campusAgencyId: null,
|
campusAgencyId: null,
|
||||||
departmentId: null,
|
departmentId: null,
|
||||||
@ -1013,8 +1014,6 @@ export default {
|
|||||||
// }
|
// }
|
||||||
// getDepartmentList(query).then(res => {
|
// getDepartmentList(query).then(res => {
|
||||||
if (type) {
|
if (type) {
|
||||||
|
|
||||||
|
|
||||||
if (!typetwo) {
|
if (!typetwo) {
|
||||||
this.formHospital.departmentId = null
|
this.formHospital.departmentId = null
|
||||||
this.formHospital.wardId = null
|
this.formHospital.wardId = null
|
||||||
@ -1036,8 +1035,6 @@ export default {
|
|||||||
// }
|
// }
|
||||||
// getDepartmentList(query).then(res => {
|
// getDepartmentList(query).then(res => {
|
||||||
if (type) {
|
if (type) {
|
||||||
|
|
||||||
|
|
||||||
if (!typetwo) {
|
if (!typetwo) {
|
||||||
this.formHospital.wardId = null
|
this.formHospital.wardId = null
|
||||||
this.form.wardId = null
|
this.form.wardId = null
|
||||||
@ -1053,13 +1050,19 @@ export default {
|
|||||||
this.form.campusAgencyId = null
|
this.form.campusAgencyId = null
|
||||||
this.form.departmentId = null
|
this.form.departmentId = null
|
||||||
this.form.wardId = null
|
this.form.wardId = null
|
||||||
|
this.form.attendingPhysicianId = null
|
||||||
this.formHospital.campusAgencyId = null
|
this.formHospital.campusAgencyId = null
|
||||||
this.formHospital.departmentId = null
|
this.formHospital.departmentId = null
|
||||||
this.formHospital.wardId = null
|
this.formHospital.wardId = null
|
||||||
|
this.formHospital.attendingPhysicianId = null
|
||||||
} else {
|
} else {
|
||||||
this.queryParams.campusAgencyId = null
|
this.queryParams.campusAgencyId = null
|
||||||
this.queryParams.departmentId = null
|
this.queryParams.departmentId = null
|
||||||
this.queryParams.wardId = null
|
this.queryParams.wardId = null
|
||||||
|
this.queryParams.attendingPhysicianId = null
|
||||||
|
setTimeout(() => {
|
||||||
|
this.attendingPhysicianlist = []
|
||||||
|
}, 1000);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//清空院区
|
//清空院区
|
||||||
@ -1137,6 +1140,10 @@ export default {
|
|||||||
window.removeEventListener('resize', this.getMaxTableHeight, true)
|
window.removeEventListener('resize', this.getMaxTableHeight, true)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
changecertificateIssuingDoctor(e) {
|
||||||
|
console.log(e)
|
||||||
|
console.log(this.queryParams)
|
||||||
|
},
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -149,6 +149,7 @@
|
|||||||
prop="templateContent"
|
prop="templateContent"
|
||||||
label="模板内容"
|
label="模板内容"
|
||||||
align="center"
|
align="center"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
>
|
>
|
||||||
|
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|||||||
@ -92,7 +92,7 @@
|
|||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="主治医生" prop="attendingPhysician">
|
<el-form-item label="主治医生" prop="attendingPhysicianId">
|
||||||
<el-select v-model="queryParams.attendingPhysicianId" filterable placeholder="请选择主治医生" style="width: 200px"
|
<el-select v-model="queryParams.attendingPhysicianId" filterable placeholder="请选择主治医生" style="width: 200px"
|
||||||
clearable>
|
clearable>
|
||||||
<el-option v-for="item in attendingPhysicianlist" :key="item.userId" :label="item.nickName"
|
<el-option v-for="item in attendingPhysicianlist" :key="item.userId" :label="item.nickName"
|
||||||
@ -1089,13 +1089,19 @@ export default {
|
|||||||
this.form.campusAgencyId = null
|
this.form.campusAgencyId = null
|
||||||
this.form.departmentId = null
|
this.form.departmentId = null
|
||||||
this.form.wardId = null
|
this.form.wardId = null
|
||||||
|
this.form.attendingPhysicianId = null
|
||||||
this.formHospital.campusAgencyId = null
|
this.formHospital.campusAgencyId = null
|
||||||
this.formHospital.departmentId = null
|
this.formHospital.departmentId = null
|
||||||
this.formHospital.wardId = null
|
this.formHospital.wardId = null
|
||||||
|
this.formHospital.attendingPhysicianId = null
|
||||||
} else {
|
} else {
|
||||||
this.queryParams.campusAgencyId = null
|
this.queryParams.campusAgencyId = null
|
||||||
this.queryParams.departmentId = null
|
this.queryParams.departmentId = null
|
||||||
this.queryParams.wardId = null
|
this.queryParams.wardId = null
|
||||||
|
this.queryParams.attendingPhysicianId = null
|
||||||
|
setTimeout(() => {
|
||||||
|
this.attendingPhysicianlist = []
|
||||||
|
}, 1000);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//清空院区
|
//清空院区
|
||||||
|
|||||||
@ -69,7 +69,7 @@
|
|||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="主治医生" prop="attendingPhysician">
|
<el-form-item label="主治医生" prop="attendingPhysicianId">
|
||||||
<el-select v-model="queryParams.attendingPhysicianId" filterable placeholder="请选择主治医生" style="width:200px"
|
<el-select v-model="queryParams.attendingPhysicianId" filterable placeholder="请选择主治医生" style="width:200px"
|
||||||
clearable>
|
clearable>
|
||||||
<el-option v-for="item in attendingPhysicianlist" :key="item.userId" :label="item.nickName"
|
<el-option v-for="item in attendingPhysicianlist" :key="item.userId" :label="item.nickName"
|
||||||
@ -202,8 +202,8 @@
|
|||||||
<myPagination v-show="total > 0" :total="total" :pageSize="queryParams.pageSize"
|
<myPagination v-show="total > 0" :total="total" :pageSize="queryParams.pageSize"
|
||||||
:indexFromWrap="queryParams.pageNum" @updateCPage="updateCPage"></myPagination>
|
:indexFromWrap="queryParams.pageNum" @updateCPage="updateCPage"></myPagination>
|
||||||
<!-- 添加或修改患者信息对话框 -->
|
<!-- 添加或修改患者信息对话框 -->
|
||||||
<el-dialog :title="title" :visible.sync="open" width="1000px" append-to-body>
|
<el-dialog :title="title" :visible.sync="open" width="1000px" append-to-body :before-close="handleClose">
|
||||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px" :inline="true">
|
<el-form ref="openform" :model="form" :rules="rules" label-width="100px" :inline="true">
|
||||||
<div class="title">基本信息</div>
|
<div class="title">基本信息</div>
|
||||||
<el-form-item label="患者姓名" prop="patientName">
|
<el-form-item label="患者姓名" prop="patientName">
|
||||||
<el-input v-model="form.patientName" placeholder="请输入患者姓名" style="width:200px" />
|
<el-input v-model="form.patientName" placeholder="请输入患者姓名" style="width:200px" />
|
||||||
@ -251,58 +251,58 @@
|
|||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="院区" prop="campusAgencyId" v-if="form.hospitalAgencyId">
|
<el-form-item label="院区" prop="campusAgencyId" v-show="form.hospitalAgencyId">
|
||||||
<el-select v-model="form.campusAgencyId" filterable placeholder="请选择院区" style="width:200px" clearable
|
<el-select v-model="form.campusAgencyId" filterable placeholder="请选择院区" style="width:200px" clearable
|
||||||
@clear="clearcampusAgency(1)" @change="changecampusAgency($event, 1)">
|
@clear="clearcampusAgency(1)" @change="changecampusAgency($event, 1)">
|
||||||
<el-option v-for="item in form_campusAgencylist" :key="item.id" :label="item.agencyName" :value="item.id">
|
<el-option v-for="item in form_campusAgencylist" :key="item.id" :label="item.agencyName" :value="item.id">
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="科室名称" prop="departmentId" v-if="form.hospitalAgencyId">
|
<el-form-item label="科室名称" prop="departmentId" v-show="form.hospitalAgencyId">
|
||||||
<el-select v-model="form.departmentId" filterable placeholder="请选择科室" style="width:200px" clearable
|
<el-select v-model="form.departmentId" filterable placeholder="请选择科室" style="width:200px" clearable
|
||||||
@clear="cleardepartment(1)" @change="changedepartment($event, 1)">
|
@clear="cleardepartment(1)" @change="changedepartment($event, 1)">
|
||||||
<el-option v-for="item in form_departmentlist" :key="item.id" :label="item.departmentName" :value="item.id">
|
<el-option v-for="item in form_departmentlist" :key="item.id" :label="item.departmentName" :value="item.id">
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="预约病区" prop="wardId" v-if="form.hospitalAgencyId">
|
<el-form-item label="预约病区" prop="wardId" v-show="form.hospitalAgencyId">
|
||||||
<el-select v-model="form.wardId" filterable placeholder="请选择病区" style="width:200px" clearable>
|
<el-select v-model="form.wardId" filterable placeholder="请选择病区" style="width:200px" clearable>
|
||||||
<el-option v-for="item in form_wardlist" :key="item.id" :label="item.departmentName" :value="item.id">
|
<el-option v-for="item in form_wardlist" :key="item.id" :label="item.departmentName" :value="item.id">
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="主治医生" prop="attendingPhysician" v-if="form.hospitalAgencyId">
|
<el-form-item label="主治医生" prop="attendingPhysician" v-show="form.hospitalAgencyId">
|
||||||
<el-select v-model="form.attendingPhysicianId" filterable placeholder="请选择主治医生" style="width:200px" clearable>
|
<el-select v-model="form.attendingPhysicianId" filterable placeholder="请选择主治医生" style="width:200px" clearable>
|
||||||
<el-option v-for="item in form_attendingPhysicianlist" :key="item.userId" :label="item.nickName"
|
<el-option v-for="item in form_attendingPhysicianlist" :key="item.userId" :label="item.nickName"
|
||||||
:value="item.userId">
|
:value="item.userId">
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="门诊号" prop="inHospitalNumber" v-if="form.visitMethod == 'OUTPATIENT_SERVICE'">
|
<el-form-item label="门诊号" prop="inHospitalNumber" v-show="form.visitMethod == 'OUTPATIENT_SERVICE'">
|
||||||
<el-input v-model="form.inHospitalNumber" placeholder="请输入门诊号" style="width:200px"
|
<el-input v-model="form.inHospitalNumber" placeholder="请输入门诊号" style="width:200px"
|
||||||
onKeyUp="value=value.replace(/[\W]/g,'')" />
|
onKeyUp="value=value.replace(/[\W]/g,'')" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="住院号" prop="inHospitalNumber" v-if="form.visitMethod == 'BE_IN_HOSPITAL'">
|
<el-form-item label="住院号" prop="inHospitalNumber" v-show="form.visitMethod == 'BE_IN_HOSPITAL'">
|
||||||
<el-input v-model="form.inHospitalNumber" placeholder="请输入住院号" style="width:200px"
|
<el-input v-model="form.inHospitalNumber" placeholder="请输入住院号" style="width:200px"
|
||||||
onKeyUp="value=value.replace(/[\W]/g,'')" />
|
onKeyUp="value=value.replace(/[\W]/g,'')" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="责任护士" prop="responsibleNurse" v-if="form.visitMethod == 'BE_IN_HOSPITAL'">
|
<el-form-item label="责任护士" prop="responsibleNurse" v-show="form.visitMethod == 'BE_IN_HOSPITAL'">
|
||||||
<el-input v-model="form.responsibleNurse" placeholder="请输入责任护士" style="width:200px" />
|
<el-input v-model="form.responsibleNurse" placeholder="请输入责任护士" style="width:200px" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="就诊流水号" prop="visitSerialNumber">
|
<el-form-item label="就诊流水号" prop="visitSerialNumber">
|
||||||
<el-input v-model="form.visitSerialNumber" placeholder="请输入就诊流水号" style="width:200px" />
|
<el-input v-model="form.visitSerialNumber" placeholder="请输入就诊流水号" style="width:200px" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="门诊时间" prop="dischargeTime" v-if="form.visitMethod == 'OUTPATIENT_SERVICE'">
|
<el-form-item label="门诊时间" prop="dischargeTime" v-show="form.visitMethod == 'OUTPATIENT_SERVICE'">
|
||||||
<el-date-picker clearable v-model="form.dischargeTime" type="datetime" value-format="yyyy-MM-dd HH:mm"
|
<el-date-picker clearable v-model="form.dischargeTime" type="datetime" value-format="yyyy-MM-dd HH:mm"
|
||||||
format='yyyy-MM-dd HH:mm' placeholder="请选择门诊时间" style="width:200px">
|
format='yyyy-MM-dd HH:mm' placeholder="请选择门诊时间" style="width:200px">
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="入院时间" prop="admissionTime" v-if="form.visitMethod == 'BE_IN_HOSPITAL'">
|
<el-form-item label="入院时间" prop="admissionTime" v-show="form.visitMethod == 'BE_IN_HOSPITAL'">
|
||||||
<el-date-picker clearable v-model="form.admissionTime" type="datetime" value-format="yyyy-MM-dd HH:mm"
|
<el-date-picker clearable v-model="form.admissionTime" type="datetime" value-format="yyyy-MM-dd HH:mm"
|
||||||
format='yyyy-MM-dd HH:mm' style="width:200px" placeholder="请选择入院时间">
|
format='yyyy-MM-dd HH:mm' style="width:200px" placeholder="请选择入院时间">
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="出院时间" prop="dischargeTime" v-if="form.visitMethod == 'BE_IN_HOSPITAL'">
|
<el-form-item label="出院时间" prop="dischargeTime" v-show="form.visitMethod == 'BE_IN_HOSPITAL'">
|
||||||
<el-date-picker clearable v-model="form.dischargeTime" type="datetime" value-format="yyyy-MM-dd HH:mm"
|
<el-date-picker clearable v-model="form.dischargeTime" type="datetime" value-format="yyyy-MM-dd HH:mm"
|
||||||
format='yyyy-MM-dd HH:mm' :picker-options="pickerOptions" style="width:200px" placeholder="请选择出院时间">
|
format='yyyy-MM-dd HH:mm' :picker-options="pickerOptions" style="width:200px" placeholder="请选择出院时间">
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
@ -310,13 +310,13 @@
|
|||||||
<el-form-item label="手术名称" prop="surgicalName">
|
<el-form-item label="手术名称" prop="surgicalName">
|
||||||
<el-input v-model="form.surgicalName" placeholder="请输入手术名称" style="width:200px" />
|
<el-input v-model="form.surgicalName" placeholder="请输入手术名称" style="width:200px" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="手术记录" prop="surgicalRecord" v-if="form.visitMethod == 'BE_IN_HOSPITAL'">
|
<el-form-item label="手术记录" prop="surgicalRecord" v-show="form.visitMethod == 'BE_IN_HOSPITAL'">
|
||||||
<editor v-model="form.surgicalRecord" :min-height="192" style="width:838px" />
|
<editor v-model="form.surgicalRecord" :min-height="192" style="width:838px" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="入院病历">
|
<el-form-item label="入院病历">
|
||||||
<editor v-model="form.inHospitalInfo" :min-height="192" style="width:838px" />
|
<editor v-model="form.inHospitalInfo" :min-height="192" style="width:838px" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="出院病历" v-if="form.visitMethod == 'BE_IN_HOSPITAL'">
|
<el-form-item label="出院病历" v-show="form.visitMethod == 'BE_IN_HOSPITAL'">
|
||||||
<editor v-model="form.outHospitalInfo" :min-height="192" style="width:838px" />
|
<editor v-model="form.outHospitalInfo" :min-height="192" style="width:838px" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- <el-form-item label="患者来源" prop="patientSource">
|
<!-- <el-form-item label="患者来源" prop="patientSource">
|
||||||
@ -743,7 +743,7 @@ export default {
|
|||||||
patientSource: null,
|
patientSource: null,
|
||||||
delFlag: null,
|
delFlag: null,
|
||||||
};
|
};
|
||||||
this.resetForm("form");
|
this.resetForm("openform");
|
||||||
},
|
},
|
||||||
/** 搜索按钮操作 */
|
/** 搜索按钮操作 */
|
||||||
handleQuery() {
|
handleQuery() {
|
||||||
@ -782,6 +782,7 @@ export default {
|
|||||||
handleUpdate(row) {
|
handleUpdate(row) {
|
||||||
this.reset();
|
this.reset();
|
||||||
const id = row.patientVisitRecordId || this.patientVisitRecordIds
|
const id = row.patientVisitRecordId || this.patientVisitRecordIds
|
||||||
|
console.log(id)
|
||||||
getPatientInfo(id).then(response => {
|
getPatientInfo(id).then(response => {
|
||||||
this.form = response.data;
|
this.form = response.data;
|
||||||
this.form = response.data;
|
this.form = response.data;
|
||||||
@ -798,6 +799,10 @@ export default {
|
|||||||
this.title = "修改患者信息";
|
this.title = "修改患者信息";
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
handleClose() {
|
||||||
|
this.form = {}
|
||||||
|
this.open = false
|
||||||
|
},
|
||||||
/** 提交按钮 */
|
/** 提交按钮 */
|
||||||
submitForm() {
|
submitForm() {
|
||||||
if (this.form.visitMethod == 'BE_IN_HOSPITAL') {
|
if (this.form.visitMethod == 'BE_IN_HOSPITAL') {
|
||||||
@ -1003,10 +1008,15 @@ export default {
|
|||||||
this.form.campusAgencyId = null
|
this.form.campusAgencyId = null
|
||||||
this.form.departmentId = null
|
this.form.departmentId = null
|
||||||
this.form.wardId = null
|
this.form.wardId = null
|
||||||
|
this.form.attendingPhysicianId = null
|
||||||
} else {
|
} else {
|
||||||
this.queryParams.campusAgencyId = null
|
this.queryParams.campusAgencyId = null
|
||||||
this.queryParams.departmentId = null
|
this.queryParams.departmentId = null
|
||||||
this.queryParams.wardId = null
|
this.queryParams.wardId = null
|
||||||
|
this.queryParams.attendingPhysicianId = null
|
||||||
|
setTimeout(() => {
|
||||||
|
this.attendingPhysicianlist = []
|
||||||
|
}, 1000);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//清空院区
|
//清空院区
|
||||||
|
|||||||
@ -2,24 +2,7 @@
|
|||||||
<div class="app-container" ref="layout">
|
<div class="app-container" ref="layout">
|
||||||
<el-row :gutter="20">
|
<el-row :gutter="20">
|
||||||
<el-col :span="5" :xs="24">
|
<el-col :span="5" :xs="24">
|
||||||
<div class="left" ref="box">
|
<DepartmentList ref="DepartmentList"></DepartmentList>
|
||||||
<div class="name">科室名称</div>
|
|
||||||
<div>
|
|
||||||
<el-input v-model="name" placeholder="请输入科室名称" clearable @keyup.enter.native="handleQuery" />
|
|
||||||
</div>
|
|
||||||
<div class="listitem">
|
|
||||||
<div :class="itemname == null ? 'allactive' : 'all'" @click="itemdata()">
|
|
||||||
全部
|
|
||||||
</div>
|
|
||||||
<span class="count">{{ count }}</span>
|
|
||||||
</div>
|
|
||||||
<div class="listitem" v-for="(item, index) in DepartmentoList" :key="index" @click="itemdata(item)">
|
|
||||||
<div :class="itemname == item.id ? 'allactive' : 'all'">
|
|
||||||
{{ item.departmentName }}
|
|
||||||
</div>
|
|
||||||
<span class="count">{{ item.countNum }}</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="19" :xs="24">
|
<el-col :span="19" :xs="24">
|
||||||
<div ref="topform" class="form">
|
<div ref="topform" class="form">
|
||||||
@ -145,7 +128,11 @@
|
|||||||
<script>
|
<script>
|
||||||
import { listOperationInfo, getOperationInfo, delOperationInfo, addOperationInfo, updateOperationInfo, listOperationNum } from "@/api/operationInfo/operationInfo";
|
import { listOperationInfo, getOperationInfo, delOperationInfo, addOperationInfo, updateOperationInfo, listOperationNum } from "@/api/operationInfo/operationInfo";
|
||||||
import { department, listDisease } from "@/api/manage/script";
|
import { department, listDisease } from "@/api/manage/script";
|
||||||
|
import DepartmentList from '../../components/DepartmentList.vue'
|
||||||
export default {
|
export default {
|
||||||
|
components: {
|
||||||
|
DepartmentList,
|
||||||
|
},
|
||||||
name: "OperationInfo",
|
name: "OperationInfo",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@ -157,8 +144,6 @@ export default {
|
|||||||
name: '',
|
name: '',
|
||||||
departmentId: null,
|
departmentId: null,
|
||||||
count: '',
|
count: '',
|
||||||
|
|
||||||
|
|
||||||
innerVisibleshow: false, //科室弹框
|
innerVisibleshow: false, //科室弹框
|
||||||
// 科室
|
// 科室
|
||||||
informationqueryParams: {
|
informationqueryParams: {
|
||||||
@ -168,7 +153,6 @@ export default {
|
|||||||
},
|
},
|
||||||
infolist: [],
|
infolist: [],
|
||||||
totaldepartment: 0,
|
totaldepartment: 0,
|
||||||
|
|
||||||
// 遮罩层
|
// 遮罩层
|
||||||
loading: true,
|
loading: true,
|
||||||
// 选中数组
|
// 选中数组
|
||||||
@ -266,7 +250,7 @@ export default {
|
|||||||
mounted() {
|
mounted() {
|
||||||
this.getMaxTableHeight()
|
this.getMaxTableHeight()
|
||||||
this.screenChange()
|
this.screenChange()
|
||||||
// this.$refs.box.addEventListener('scroll', this.lazyLoading) // 滚动到底部,再加载的处理事件
|
// this.$refs.DepartmentList.addEventListener('scroll', this.lazyLoading) // 滚动到底部,再加载的处理事件
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 点击科室
|
// 点击科室
|
||||||
|
|||||||
@ -278,7 +278,7 @@
|
|||||||
<el-form-item label="任务类型" prop="">
|
<el-form-item label="任务类型" prop="">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="form.taskType"
|
v-model="form.taskType"
|
||||||
style="width: 130px"
|
style="width: 150px"
|
||||||
@change="changeTaskType"
|
@change="changeTaskType"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
@ -293,7 +293,7 @@
|
|||||||
<el-form-item label="任务细分" prop="">
|
<el-form-item label="任务细分" prop="">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="form.taskSubdivision"
|
v-model="form.taskSubdivision"
|
||||||
style="width: 130px"
|
style="width: 150px"
|
||||||
@change="changetaskSubdivision"
|
@change="changetaskSubdivision"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
@ -343,6 +343,15 @@
|
|||||||
:templateName="form.templateName"
|
:templateName="form.templateName"
|
||||||
></question>
|
></question>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<span
|
||||||
|
style="display: inline-block; width: 10px"
|
||||||
|
v-if="
|
||||||
|
form.taskSubdivisiontemplateType == 'QUESTIONNAIRE' &&
|
||||||
|
form.templateId
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<el-button @click="looklist">预览</el-button>
|
||||||
|
</span>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
label="宣教库模板选择"
|
label="宣教库模板选择"
|
||||||
prop=""
|
prop=""
|
||||||
@ -354,42 +363,66 @@
|
|||||||
:templateName="form.templateName"
|
:templateName="form.templateName"
|
||||||
></propaganda>
|
></propaganda>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<span
|
||||||
|
style="display: inline-block; width: 10px"
|
||||||
|
v-if="
|
||||||
|
form.taskSubdivisiontemplateType == 'PROPAGANDA' &&
|
||||||
|
form.templateId
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<el-button @click="imagepreviews">预览</el-button>
|
||||||
|
</span>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
<!-- 宣教 -->
|
<!-- 宣教 -->
|
||||||
<div
|
<el-dialog
|
||||||
class="imageScriptpreviews"
|
title="宣教预览"
|
||||||
v-if="
|
:visible.sync="imageScriptpreviews"
|
||||||
formview &&
|
width="60%"
|
||||||
form.taskSubdivisiontemplateType == 'PROPAGANDA' &&
|
|
||||||
form.templateId
|
|
||||||
"
|
|
||||||
>
|
>
|
||||||
<div class="bodytop">
|
<div
|
||||||
<div class="titledata">{{ formview.propagandaTitle }}</div>
|
class="imageScriptpreviews"
|
||||||
|
v-if="
|
||||||
<div>
|
formview &&
|
||||||
<img :src="baseUrl + formview.propagandaCoverPath" alt="" />
|
form.taskSubdivisiontemplateType == 'PROPAGANDA' &&
|
||||||
<div class="know">知识卡片</div>
|
form.templateId
|
||||||
<div class="knowlist">
|
"
|
||||||
<Editorxj
|
>
|
||||||
v-model="formview.propagandaContent"
|
<div class="titletop">文章模板:{{ formview.propagandaTitle }}</div>
|
||||||
:min-height="192"
|
<div class="bodytop">
|
||||||
/>
|
<div class="titledata">{{ formview.propagandaTitle }}</div>
|
||||||
|
<div>
|
||||||
|
<img :src="baseUrl + formview.propagandaCoverPath" alt="" />
|
||||||
|
<div class="know">知识卡片</div>
|
||||||
|
<div class="knowlist">
|
||||||
|
<Editorxj
|
||||||
|
v-model="formview.propagandaContent"
|
||||||
|
:min-height="192"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<span slot="footer" class="dialog-footer">
|
||||||
|
<el-button type="primary" @click="imageScriptpreviews = false"
|
||||||
|
>关闭</el-button
|
||||||
|
>
|
||||||
|
</span>
|
||||||
|
</el-dialog>
|
||||||
<!-- 问卷 -->
|
<!-- 问卷 -->
|
||||||
<div
|
|
||||||
class="righttextarea"
|
<el-dialog
|
||||||
v-if="
|
title="问卷预览"
|
||||||
form.taskSubdivisiontemplateType == 'QUESTIONNAIRE' &&
|
:visible.sync="lookquestionlist"
|
||||||
form.templateId
|
width="40%"
|
||||||
"
|
|
||||||
>
|
>
|
||||||
<questionopennew :lookitemnew="lookitemnew"></questionopennew>
|
<questionopennew :lookitemnew="lookitemnew"></questionopennew>
|
||||||
</div>
|
<span slot="footer" class="dialog-footer">
|
||||||
|
<el-button type="primary" @click="lookquestionlist = false"
|
||||||
|
>关闭</el-button
|
||||||
|
>
|
||||||
|
</span>
|
||||||
|
</el-dialog>
|
||||||
<div class="bottomform">
|
<div class="bottomform">
|
||||||
<wangeditor
|
<wangeditor
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
@ -510,7 +543,9 @@
|
|||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="pushMethod">
|
</div>
|
||||||
|
<div class="flexs">
|
||||||
|
<div class="pushMethods">
|
||||||
话术模板:
|
话术模板:
|
||||||
<span
|
<span
|
||||||
class="spanname"
|
class="spanname"
|
||||||
@ -529,6 +564,12 @@
|
|||||||
:templateName="form.phoneTemplateName"
|
:templateName="form.phoneTemplateName"
|
||||||
></scripts>
|
></scripts>
|
||||||
</span>
|
</span>
|
||||||
|
<span
|
||||||
|
style="display: inline-block; width: 10px"
|
||||||
|
v-if="form.phoneTemplateId"
|
||||||
|
>
|
||||||
|
<el-button @click="look">预览</el-button>
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="pushMethod"
|
class="pushMethod"
|
||||||
@ -549,6 +590,12 @@
|
|||||||
:templateName="form.templateName"
|
:templateName="form.templateName"
|
||||||
></question>
|
></question>
|
||||||
</span>
|
</span>
|
||||||
|
<span
|
||||||
|
style="display: inline-block; width: 10px"
|
||||||
|
v-if="form.templateId"
|
||||||
|
>
|
||||||
|
<el-button @click="lookquestion">预览</el-button>
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="pushMethod">
|
<!-- <div class="pushMethod">
|
||||||
<el-switch
|
<el-switch
|
||||||
@ -628,21 +675,33 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- 话术模板内容 -->
|
<!-- 话术模板内容 -->
|
||||||
<div
|
<el-dialog
|
||||||
class="imageScriptpreview"
|
title="话术预览"
|
||||||
v-if="phoneNodeContent "
|
:visible.sync="lookNodeContent"
|
||||||
|
width="90%"
|
||||||
>
|
>
|
||||||
<Scriptpreview
|
<Scriptpreview
|
||||||
:phoneNodeContent="phoneNodeContent"
|
:phoneNodeContent="phoneNodeContent"
|
||||||
></Scriptpreview>
|
></Scriptpreview>
|
||||||
</div>
|
<span slot="footer" class="dialog-footer">
|
||||||
|
<el-button type="primary" @click="lookNodeContent = false"
|
||||||
|
>关闭</el-button
|
||||||
|
>
|
||||||
|
</span>
|
||||||
|
</el-dialog>
|
||||||
<!-- 问卷模板内容 -->
|
<!-- 问卷模板内容 -->
|
||||||
<div
|
<el-dialog
|
||||||
class="imageScriptpreview"
|
title="问卷预览"
|
||||||
v-if="lookitemnew"
|
:visible.sync="lookquestionname"
|
||||||
|
width="40%"
|
||||||
>
|
>
|
||||||
<questionopennew :lookitemnew="lookitemnew"></questionopennew>
|
<questionopennew :lookitemnew="lookitemnew"></questionopennew>
|
||||||
</div>
|
<span slot="footer" class="dialog-footer">
|
||||||
|
<el-button type="primary" @click="lookquestionname = false"
|
||||||
|
>关闭</el-button
|
||||||
|
>
|
||||||
|
</span>
|
||||||
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -851,18 +910,10 @@ import indexjs from "./indexjs.js";
|
|||||||
export default indexjs;
|
export default indexjs;
|
||||||
</script>
|
</script>
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
.righttextarea {
|
|
||||||
padding: 10px;
|
|
||||||
border: 1.5px solid #c7c7c7;
|
|
||||||
border-radius: 5px;
|
|
||||||
}
|
|
||||||
::v-deep iframe {
|
::v-deep iframe {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 500px;
|
height: 500px;
|
||||||
}
|
}
|
||||||
.imageScriptpreview {
|
|
||||||
margin-top: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.imageScriptpreviews {
|
.imageScriptpreviews {
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
@ -1005,44 +1056,53 @@ export default indexjs;
|
|||||||
height: 130px;
|
height: 130px;
|
||||||
margin: 20px 0 0;
|
margin: 20px 0 0;
|
||||||
padding: 20px 50px 0px 20px;
|
padding: 20px 50px 0px 20px;
|
||||||
|
.flexs {
|
||||||
.flextwo {
|
display: flex;
|
||||||
// display: flex;
|
width: 100%;
|
||||||
// align-items: center;
|
.pushMethod {
|
||||||
margin-top: 20px;
|
height: 30px;
|
||||||
|
margin-top: 30px;
|
||||||
.text {
|
margin-left: 67px;
|
||||||
|
line-height: 37px;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: #64666a;
|
color: #64666a;
|
||||||
}
|
|
||||||
|
|
||||||
.textarea {
|
.spanname {
|
||||||
width: 90%;
|
pointer-events: none;
|
||||||
padding: 0 10px;
|
|
||||||
height: 50px;
|
|
||||||
line-height: 50px;
|
|
||||||
// border: 1px solid #dcdfe6;
|
|
||||||
border-radius: 5px;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
|
|
||||||
::v-deep .el-input {
|
|
||||||
padding: 0 10px;
|
|
||||||
width: 50%;
|
|
||||||
color: black;
|
|
||||||
font-size: 14px;
|
|
||||||
height: 40px;
|
|
||||||
line-height: 40px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .el-input__inner {
|
::v-deep .el-input__inner {
|
||||||
color: black;
|
color: black;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
cursor: default !important;
|
}
|
||||||
|
|
||||||
|
span {
|
||||||
|
color: black;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.pushMethods {
|
||||||
|
height: 30px;
|
||||||
|
margin-top: 30px;
|
||||||
|
line-height: 37px;
|
||||||
|
font-size: 14px;
|
||||||
|
color: #64666a;
|
||||||
|
|
||||||
|
.spanname {
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
::v-deep .el-input__inner {
|
||||||
|
color: black;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
span {
|
||||||
|
color: black;
|
||||||
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.flex {
|
.flex {
|
||||||
display: flex;
|
display: flex;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|||||||
@ -46,6 +46,10 @@ export default {
|
|||||||
name: "specialDiseaseNode",
|
name: "specialDiseaseNode",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
lookNodeContent: false,
|
||||||
|
lookquestionname: false,
|
||||||
|
lookquestionlist: false,//问卷
|
||||||
|
imageScriptpreviews: false,//宣教
|
||||||
formview: {},
|
formview: {},
|
||||||
lookitemnew: {},
|
lookitemnew: {},
|
||||||
baseUrl: process.env.VUE_APP_BASE_API,
|
baseUrl: process.env.VUE_APP_BASE_API,
|
||||||
@ -157,9 +161,6 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
},
|
},
|
||||||
mounted() {
|
|
||||||
// this.form = this.lists[0].list[0];
|
|
||||||
},
|
|
||||||
methods: {
|
methods: {
|
||||||
// 短信提醒
|
// 短信提醒
|
||||||
infolistword() {
|
infolistword() {
|
||||||
@ -353,7 +354,6 @@ export default {
|
|||||||
|
|
||||||
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')
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -622,14 +622,29 @@ export default {
|
|||||||
},
|
},
|
||||||
// 话术
|
// 话术
|
||||||
messageontemplateword(item) {
|
messageontemplateword(item) {
|
||||||
console.log(item, 'item')
|
|
||||||
this.form.phoneTemplateId = item.templateId;
|
this.form.phoneTemplateId = item.templateId;
|
||||||
this.form.phoneTemplateName = item.templateName;
|
this.form.phoneTemplateName = item.templateName;
|
||||||
|
|
||||||
this.phoneNodeContent = item.phoneNodeContent;
|
this.phoneNodeContent = item.phoneNodeContent;
|
||||||
},
|
},
|
||||||
|
// 预览话术图
|
||||||
|
look() {
|
||||||
|
this.lookNodeContent = true
|
||||||
|
},
|
||||||
|
// 预览问卷
|
||||||
|
lookquestion() {
|
||||||
|
this.lookquestionname = true
|
||||||
|
},
|
||||||
|
// 宣教预览
|
||||||
|
imagepreviews() {
|
||||||
|
this.imageScriptpreviews = true
|
||||||
|
},
|
||||||
|
// 问卷库模板选择
|
||||||
|
looklist() {
|
||||||
|
this.lookquestionlist = true
|
||||||
|
},
|
||||||
|
// 切换人工电话和自动外呼
|
||||||
changephoneDialMethod(e) {
|
changephoneDialMethod(e) {
|
||||||
console.log(e)
|
// console.log(e)
|
||||||
if (e == 'AI') {
|
if (e == 'AI') {
|
||||||
// this.form.templateId=''
|
// this.form.templateId=''
|
||||||
// 清空问卷id和名字
|
// 清空问卷id和名字
|
||||||
@ -638,21 +653,15 @@ export default {
|
|||||||
// 清空话术和问卷
|
// 清空话术和问卷
|
||||||
this.phoneNodeContent = ''
|
this.phoneNodeContent = ''
|
||||||
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 = ''
|
||||||
// 清空话术和问卷
|
// 清空话术和问卷
|
||||||
this.phoneNodeContent = ''
|
this.phoneNodeContent = ''
|
||||||
this.lookitemnew = ''
|
this.lookitemnew = ''
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//短信传值
|
//短信传值
|
||||||
@ -727,8 +736,6 @@ export default {
|
|||||||
// !e.taskStatus
|
// !e.taskStatus
|
||||||
// );
|
// );
|
||||||
// return
|
// return
|
||||||
|
|
||||||
|
|
||||||
specialDiseaseNode(this.itemlist).then((res) => {
|
specialDiseaseNode(this.itemlist).then((res) => {
|
||||||
this.info();
|
this.info();
|
||||||
loading.close();
|
loading.close();
|
||||||
@ -741,7 +748,7 @@ export default {
|
|||||||
},
|
},
|
||||||
//问卷传值
|
//问卷传值
|
||||||
questionontemplate(item) {
|
questionontemplate(item) {
|
||||||
console.log(item, 'iten')
|
// 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
|
||||||
@ -766,33 +773,20 @@ export default {
|
|||||||
}
|
}
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.form = uitem;
|
this.form = uitem;
|
||||||
// console.log( this.form,'this.form')
|
|
||||||
// console.log(this.form, ' this.form')
|
|
||||||
this.$forceUpdate()
|
this.$forceUpdate()
|
||||||
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.data, 'this.formview')
|
|
||||||
|
|
||||||
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) {
|
||||||
|
|
||||||
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) {
|
||||||
this.changeTaskType(this.form.taskType, this.form.taskSubdivision);
|
this.changeTaskType(this.form.taskType, this.form.taskSubdivision);
|
||||||
|
|||||||
@ -267,7 +267,7 @@ export default {
|
|||||||
|
|
||||||
this.showquestion = true;
|
this.showquestion = true;
|
||||||
questionname(row.id).then((res) => {
|
questionname(row.id).then((res) => {
|
||||||
console.log(res, "res");
|
// console.log(res, "res");
|
||||||
this.lookitemnew = res.data;
|
this.lookitemnew = res.data;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
@ -79,7 +79,6 @@ export default {
|
|||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
lookitemnew(newValue, oldValue) {
|
lookitemnew(newValue, oldValue) {
|
||||||
console.log(newValue, 'newValue111')
|
|
||||||
if (newValue) {
|
if (newValue) {
|
||||||
this.questiondata = newValue;
|
this.questiondata = newValue;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -48,8 +48,8 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
<el-input
|
<el-input
|
||||||
v-model="item.routeNodeDay"
|
v-model="item.routeNodeDay"
|
||||||
style="width: 70px"
|
|
||||||
type="number"
|
type="number"
|
||||||
|
style="width: 70px"
|
||||||
:min="0"
|
:min="0"
|
||||||
></el-input>
|
></el-input>
|
||||||
<span>天</span>
|
<span>天</span>
|
||||||
@ -65,7 +65,7 @@
|
|||||||
<el-card
|
<el-card
|
||||||
v-for="(uitem, uindex) in item.list"
|
v-for="(uitem, uindex) in item.list"
|
||||||
:key="uitem.id"
|
:key="uitem.id"
|
||||||
@click.native="bottomclickevent(uitem, index, uindex)"
|
@click.native="bottomclickevent(uitem, index, uindex, item)"
|
||||||
:class="listindex == index && itemindex == uindex ? 'cards' : ''"
|
:class="listindex == index && itemindex == uindex ? 'cards' : ''"
|
||||||
>
|
>
|
||||||
<h3 style="height: 20px">{{ uitem.taskTypeName }}</h3>
|
<h3 style="height: 20px">{{ uitem.taskTypeName }}</h3>
|
||||||
@ -94,7 +94,7 @@
|
|||||||
<el-form-item label="任务类型" prop="">
|
<el-form-item label="任务类型" prop="">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="form.taskType"
|
v-model="form.taskType"
|
||||||
style="width: 110px"
|
style="width: 150px"
|
||||||
@change="changeTaskType"
|
@change="changeTaskType"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
@ -109,7 +109,7 @@
|
|||||||
<el-form-item label="任务细分" prop="">
|
<el-form-item label="任务细分" prop="">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="form.taskSubdivision"
|
v-model="form.taskSubdivision"
|
||||||
style="width: 110px"
|
style="width: 150px"
|
||||||
@change="changetaskSubdivision"
|
@change="changetaskSubdivision"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
@ -122,7 +122,7 @@
|
|||||||
</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: 150px">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in taskStatusDictList"
|
v-for="item in taskStatusDictList"
|
||||||
:key="item.id"
|
:key="item.id"
|
||||||
@ -159,6 +159,15 @@
|
|||||||
:templateName="form.templateName"
|
:templateName="form.templateName"
|
||||||
></question>
|
></question>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<span
|
||||||
|
style="display: inline-block; width: 10px"
|
||||||
|
v-if="
|
||||||
|
form.taskSubdivisiontemplateType == 'QUESTIONNAIRE' &&
|
||||||
|
form.templateId
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<el-button @click="looklist">预览</el-button>
|
||||||
|
</span>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
label="宣教库模板选择"
|
label="宣教库模板选择"
|
||||||
prop=""
|
prop=""
|
||||||
@ -170,42 +179,66 @@
|
|||||||
:templateName="form.templateName"
|
:templateName="form.templateName"
|
||||||
></propaganda>
|
></propaganda>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<span
|
||||||
|
style="display: inline-block; width: 10px"
|
||||||
|
v-if="
|
||||||
|
form.taskSubdivisiontemplateType == 'PROPAGANDA' &&
|
||||||
|
form.templateId
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<el-button @click="imagepreviews">预览</el-button>
|
||||||
|
</span>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
<!-- 宣教 -->
|
<!-- 宣教 -->
|
||||||
<div
|
<el-dialog
|
||||||
class="imageScriptpreviews"
|
title="宣教预览"
|
||||||
v-if="
|
:visible.sync="imageScriptpreviews"
|
||||||
formview &&
|
width="60%"
|
||||||
form.taskSubdivisiontemplateType == 'PROPAGANDA' &&
|
|
||||||
form.templateId
|
|
||||||
"
|
|
||||||
>
|
>
|
||||||
<div class="bodytop">
|
<div
|
||||||
<div class="titledata">{{ formview.propagandaTitle }}</div>
|
class="imageScriptpreviews"
|
||||||
|
v-if="
|
||||||
|
formview &&
|
||||||
|
form.taskSubdivisiontemplateType == 'PROPAGANDA' &&
|
||||||
|
form.templateId
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<div class="titletop">文章模板:{{ formview.propagandaTitle }}</div>
|
||||||
|
<div class="bodytop">
|
||||||
|
<div class="titledata">{{ formview.propagandaTitle }}</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<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"
|
v-model="formview.propagandaContent"
|
||||||
:min-height="192"
|
:min-height="192"
|
||||||
/>
|
/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<span slot="footer" class="dialog-footer">
|
||||||
|
<el-button type="primary" @click="imageScriptpreviews = false"
|
||||||
|
>关闭</el-button
|
||||||
|
>
|
||||||
|
</span>
|
||||||
|
</el-dialog>
|
||||||
<!-- 问卷 -->
|
<!-- 问卷 -->
|
||||||
<div
|
<el-dialog
|
||||||
class="righttextarea"
|
title="问卷预览"
|
||||||
v-show="
|
:visible.sync="lookquestionlist"
|
||||||
form.taskSubdivisiontemplateType == 'QUESTIONNAIRE' &&
|
width="40%"
|
||||||
form.templateId
|
|
||||||
"
|
|
||||||
>
|
>
|
||||||
<questionopennew :lookitemnew="lookitemnew"></questionopennew>
|
<questionopennew :lookitemnew="lookitemnew"></questionopennew>
|
||||||
</div>
|
<span slot="footer" class="dialog-footer">
|
||||||
|
<el-button type="primary" @click="lookquestionlist = false"
|
||||||
|
>关闭</el-button
|
||||||
|
>
|
||||||
|
</span>
|
||||||
|
</el-dialog>
|
||||||
<div class="bottomform">
|
<div class="bottomform">
|
||||||
<wangeditor
|
<wangeditor
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
@ -342,7 +375,9 @@
|
|||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="pushMethod">
|
</div>
|
||||||
|
<div class="flexs">
|
||||||
|
<div class="pushMethods">
|
||||||
话术模板:
|
话术模板:
|
||||||
<span
|
<span
|
||||||
class="spanname"
|
class="spanname"
|
||||||
@ -361,6 +396,13 @@
|
|||||||
:templateName="form.phoneTemplateName"
|
:templateName="form.phoneTemplateName"
|
||||||
></scripts>
|
></scripts>
|
||||||
</span>
|
</span>
|
||||||
|
<span
|
||||||
|
style="display: inline-block; width: 10px"
|
||||||
|
v-if="form.phoneTemplateId"
|
||||||
|
>
|
||||||
|
<el-button @click="look">预览</el-button>
|
||||||
|
</span>
|
||||||
|
<!-- <br/> -->
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="pushMethod"
|
class="pushMethod"
|
||||||
@ -381,6 +423,12 @@
|
|||||||
:templateName="form.templateName"
|
:templateName="form.templateName"
|
||||||
></question>
|
></question>
|
||||||
</span>
|
</span>
|
||||||
|
<span
|
||||||
|
style="display: inline-block; width: 10px"
|
||||||
|
v-if="form.templateId"
|
||||||
|
>
|
||||||
|
<el-button @click="lookquestion">预览</el-button>
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="pushMethod">
|
<!-- <div class="pushMethod">
|
||||||
<el-switch
|
<el-switch
|
||||||
@ -467,20 +515,33 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- 话术模板内容 -->
|
<!-- 话术模板内容 -->
|
||||||
<div
|
<el-dialog
|
||||||
class="imageScriptpreview"
|
title="话术预览"
|
||||||
v-if="
|
:visible.sync="lookNodeContent"
|
||||||
phoneNodeContent && form.templateType == 'SCRIPT'
|
width="90%"
|
||||||
"
|
|
||||||
>
|
>
|
||||||
<Scriptpreview
|
<Scriptpreview
|
||||||
:phoneNodeContent="phoneNodeContent"
|
:phoneNodeContent="phoneNodeContent"
|
||||||
></Scriptpreview>
|
></Scriptpreview>
|
||||||
</div>
|
<span slot="footer" class="dialog-footer">
|
||||||
|
<el-button type="primary" @click="lookNodeContent = false"
|
||||||
|
>关闭</el-button
|
||||||
|
>
|
||||||
|
</span>
|
||||||
|
</el-dialog>
|
||||||
<!-- 问卷模板内容 -->
|
<!-- 问卷模板内容 -->
|
||||||
<div class="imageScriptpreview" v-else-if="lookitemnew && form.templateType == 'QUESTIONNAIRE'">
|
<el-dialog
|
||||||
|
title="问卷预览"
|
||||||
|
:visible.sync="lookquestionname"
|
||||||
|
width="40%"
|
||||||
|
>
|
||||||
<questionopennew :lookitemnew="lookitemnew"></questionopennew>
|
<questionopennew :lookitemnew="lookitemnew"></questionopennew>
|
||||||
</div>
|
<span slot="footer" class="dialog-footer">
|
||||||
|
<el-button type="primary" @click="lookquestionname = false"
|
||||||
|
>关闭</el-button
|
||||||
|
>
|
||||||
|
</span>
|
||||||
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -575,11 +636,14 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
formview: {},
|
formview: {},
|
||||||
|
lookquestionname: false,
|
||||||
|
lookquestionlist: false,
|
||||||
|
lookNodeContent: false,
|
||||||
|
imageScriptpreviews: false,
|
||||||
lookitemnew: {},
|
lookitemnew: {},
|
||||||
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: "",
|
||||||
@ -665,26 +729,40 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted() {},
|
mounted() {},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 问卷库模板选择
|
||||||
|
looklist() {
|
||||||
|
this.lookquestionlist = true;
|
||||||
|
},
|
||||||
|
// 预览问卷
|
||||||
|
lookquestion() {
|
||||||
|
this.lookquestionname = true;
|
||||||
|
},
|
||||||
|
// 宣教预览
|
||||||
|
imagepreviews() {
|
||||||
|
this.imageScriptpreviews = true;
|
||||||
|
},
|
||||||
|
// 预览话术图
|
||||||
|
look() {
|
||||||
|
this.lookNodeContent = true;
|
||||||
|
},
|
||||||
|
// 切换人工和自动
|
||||||
changephoneDialMethod(e) {
|
changephoneDialMethod(e) {
|
||||||
console.log(e);
|
|
||||||
if (e == "AI") {
|
if (e == "AI") {
|
||||||
// this.form.templateId=''
|
// this.form.templateId=''
|
||||||
// 清空问卷id和名字
|
// 清空问卷id和名字
|
||||||
this.form.phoneTemplateId = "";
|
this.form.phoneTemplateId = "";
|
||||||
this.form.phoneTemplateName = "";
|
this.form.phoneTemplateName = "";
|
||||||
// 清空话术和问卷
|
// 清空话术和问卷
|
||||||
this.phoneNodeContent = "";
|
// this.phoneNodeContent = "";
|
||||||
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 = "";
|
||||||
// 清空话术和问卷
|
// 清空话术和问卷
|
||||||
this.phoneNodeContent = "";
|
// this.phoneNodeContent = "";
|
||||||
this.lookitemnew = "";
|
this.lookitemnew = "";
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -702,7 +780,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 +821,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 +841,15 @@ 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 (
|
||||||
console.log(this.form.templateId,'this.form.templateId5555555555')
|
this.form.templateType == "QUESTIONNAIRE" ||
|
||||||
|
(this.form.templateType == "SCRIPT" && this.form.templateId)
|
||||||
|
) {
|
||||||
// 问卷模板回显
|
// 问卷模板回显
|
||||||
questionname(this.form.templateId).then((res) => {
|
questionname(this.form.templateId).then((res) => {
|
||||||
this.lookitemnew = res.data;
|
this.lookitemnew = res.data;
|
||||||
@ -949,7 +1023,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 +1036,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 +1063,22 @@ 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 (
|
||||||
console.log(this.form.templateId,'this.form.templateId')
|
this.form.templateType == "QUESTIONNAIRE" &&
|
||||||
|
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 +1232,10 @@ 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();
|
||||||
}
|
}
|
||||||
@ -1199,22 +1275,17 @@ export default {
|
|||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
.righttextarea {
|
|
||||||
padding: 10px;
|
|
||||||
border: 1.5px solid #c7c7c7;
|
|
||||||
border-radius: 5px;
|
|
||||||
}
|
|
||||||
::v-deep iframe {
|
::v-deep iframe {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 500px;
|
height: 500px;
|
||||||
}
|
}
|
||||||
.imageScriptpreview {
|
|
||||||
width: 100%;
|
|
||||||
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 +1327,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;
|
||||||
@ -1288,11 +1360,6 @@ export default {
|
|||||||
|
|
||||||
.card {
|
.card {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
// width: 100%;
|
|
||||||
// height: 200px;
|
|
||||||
// margin: 20px 0 0;
|
|
||||||
// padding: 20px 50px 0px 20px;
|
|
||||||
// background-color: #fff;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 130px;
|
height: 130px;
|
||||||
margin: 20px 0 0;
|
margin: 20px 0 0;
|
||||||
@ -1337,7 +1404,53 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.flexs {
|
||||||
|
display: flex;
|
||||||
|
width: 100%;
|
||||||
|
.pushMethod {
|
||||||
|
height: 30px;
|
||||||
|
margin-top: 30px;
|
||||||
|
margin-left: 67px;
|
||||||
|
line-height: 37px;
|
||||||
|
font-size: 14px;
|
||||||
|
color: #64666a;
|
||||||
|
|
||||||
|
.spanname {
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
::v-deep .el-input__inner {
|
||||||
|
color: black;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
span {
|
||||||
|
color: black;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.pushMethods {
|
||||||
|
height: 30px;
|
||||||
|
margin-top: 30px;
|
||||||
|
line-height: 37px;
|
||||||
|
font-size: 14px;
|
||||||
|
color: #64666a;
|
||||||
|
|
||||||
|
.spanname {
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
::v-deep .el-input__inner {
|
||||||
|
color: black;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
span {
|
||||||
|
color: black;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
.flex {
|
.flex {
|
||||||
display: flex;
|
display: flex;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user