| | |
| | | <el-step |
| | | icon="el-icon-edit" |
| | | title="基础信息" |
| | | description="选择模版、形式等基础信息" |
| | | description="选择模板、形式等基础信息" |
| | | ></el-step> |
| | | <el-step |
| | | icon="el-icon-user" |
| | |
| | | <div class="leftvlue" style="margin: 0 20px"> |
| | | <!-- 基本信息 --> |
| | | <div v-if="Editprogress == 1"> |
| | | <el-alert title="选择模版、形式等基础信息" type="success" effect="dark"> |
| | | <el-alert title="选择模板、形式等基础信息" type="success" effect="dark"> |
| | | </el-alert> |
| | | <div class="leftvlue-jbxx"> |
| | | <!-- 基础信息 --> |
| | |
| | | /> </el-form-item |
| | | ></el-col> |
| | | <el-col :span="8" |
| | | ><el-form-item label="模版名称"> |
| | | ><el-form-item label="模板名称"> |
| | | <el-input |
| | | style="width: 220px" |
| | | :disabled="true" |
| | |
| | | > |
| | | </span> |
| | | </el-dialog> |
| | | <el-dialog title="模版预览" :visible.sync="previewtf" width="60%"> |
| | | <el-dialog title="模板预览" :visible.sync="previewtf" width="60%"> |
| | | <div class="preview-left"> |
| | | <!-- 单选 --> |
| | | <div |
| | |
| | | </div> |
| | | </div> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="previewGo">前往模版详情修改</el-button> |
| | | <el-button @click="previewGo">前往模板详情修改</el-button> |
| | | <el-button type="primary" @click="previewFn">确认使用</el-button> |
| | | </span> |
| | | </el-dialog> |
| | |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="随访模版分类" prop="region"> |
| | | <el-form-item label="随访模板分类" prop="region"> |
| | | <el-select |
| | | v-model="topqueryParams.assortid" |
| | | size="medium" |
| | |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-divider></el-divider> |
| | | <!-- 选择模版列表 --> |
| | | <!-- 选择模板列表 --> |
| | | <SFtable |
| | | @selectfn="selectfn" |
| | | :currentList="userList" |
| | |
| | | import SFtable from "@/components/SFtable"; //表格组件 |
| | | |
| | | export default { |
| | | name: "ServiceDetails", |
| | | name: "serviceDetailsa", |
| | | data() { |
| | | const endDate = new Date(); |
| | | const startDate = new Date(); |
| | |
| | | title: "随访内容列表", |
| | | currenttype: 1, //1随访2问卷3通知宣教 |
| | | id: "", // |
| | | previewid: "", //任务模版传递id |
| | | previewid: "", //任务模板传递id |
| | | libName: "", |
| | | overallCase: [], //选择患者总 |
| | | // 日期范围 |
| | | dateRange: [startDate, endDate], |
| | | allpids: [], |
| | | libId: null, //模板库模版id |
| | | libId: null, //模板库模板id |
| | | nhh: null, //是否依照新增 |
| | | Editprogress: 1, //编辑进度 |
| | | drawermb: false, //选择模版弹窗 |
| | | drawermb: false, //选择模板弹窗 |
| | | previewtf: false, //预览 |
| | | loading: false, // 遮罩层 |
| | | patientloading: false, // 遮罩层 |
| | |
| | | // 非多个禁用 |
| | | multiple: true, |
| | | // 用户表格数据 |
| | | userList: [], //模版列表 |
| | | userList: [], //模板列表 |
| | | patientuserList: [], //选择患者列表 |
| | | sonuserList: [], //选中患者列表 |
| | | delvariableList: [], //删除变量临时存储 |
| | |
| | | }, |
| | | ], |
| | | quote: false, |
| | | serviceType:null, |
| | | |
| | | }; |
| | | }, |
| | | components: { SFtable }, |
| | |
| | | created() { |
| | | this.id = this.$route.query.id; |
| | | this.form.type = this.$route.query.type; |
| | | this.serviceType = Number(this.$route.query.serviceType); |
| | | this.form.serviceType = Number(this.$route.query.serviceType); |
| | | this.form.nhh = this.$route.query.nhh; |
| | | this.listDept(); |
| | |
| | | } else { |
| | | this.form.isoperation = 1; |
| | | } |
| | | this.form.serviceType=this.serviceType; |
| | | Editsingletask(this.form).then((res) => { |
| | | if (res.code == 200) { |
| | | if (this.form.taskid) { |
| | |
| | | }); |
| | | }, |
| | | // ----------------------表格子组件事件 |
| | | // 确认选择模版放入任务模版 |
| | | // 确认选择模板放入任务模板 |
| | | selectfn(row, type) { |
| | | // 模版情况下获取模版信息 |
| | | console.log(row, "选择模版"); |
| | | // 模板情况下获取模板信息 |
| | | console.log(row, "选择模板"); |
| | | this.libName = row.templateName; |
| | | this.libId = row.id; |
| | | getvFollowup({ id: row.id }).then((res) => { |
| | |
| | | resetForm(formName) { |
| | | this.$refs[formName].resetFields(); |
| | | }, |
| | | // 预览模版 |
| | | // 预览模板 |
| | | PreviewTemplate() {}, |
| | | Acknowledgereference() { |
| | | this.quote = true; |
| | |
| | | console.log(2233); |
| | | if (res.code == 200) { |
| | | this.form = res.data; |
| | | this.form.serviceType=this.serviceType; |
| | | this.overallCase = this.form.patTaskRelevances.concat(); |
| | | this.checkList = this.form.preachform.split(","); |
| | | console.log(this.form.showDate, "this.form"); |
| | |
| | | if (this.time3) this.form.showTimeNight = this.time3.join(","); |
| | | console.log(combinedData, "combinedData"); |
| | | }, |
| | | // 查看模版 |
| | | // 查看模板 |
| | | previewGo() { |
| | | this.$router.push({ |
| | | path: "/knowledge/tpuconfigurat/", |
| | |
| | | this.form.libtemplateid = this.libId; |
| | | this.form.templatename = this.libName; |
| | | console.log(this.form.templatename, "ss"); |
| | | this.$modal.msgSuccess("选择模版成功", this.form.templatename); |
| | | this.$modal.msgSuccess("选择模板成功", this.form.templatename); |
| | | }); |
| | | }, |
| | | // 处理服务形式 |