| | |
| | | </div> |
| | | <div class="jic-value"> |
| | | <el-form ref="form" :model="form" label-width="105px"> |
| | | <el-form-item label="模版名称:"> |
| | | <el-input |
| | | style="width: 220px" |
| | | v-model="form.bt" |
| | | placeholder="请在下方选择" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="发送时间:" v-if="currenttype != 2"> |
| | | <el-date-picker |
| | | v-model="form.name" |
| | |
| | | @handleUpdate="handleUpdate" |
| | | @handleSelectionChange="handleSelectionChange" |
| | | :currentList="userList" |
| | | :tableLabel="tableLabelxj" |
| | | :tableLabel="tableLabel" |
| | | :controlsc="false" |
| | | :multiplechoice="false" |
| | | /> |
| | |
| | | <el-alert title="在本阶段选择宣教病人" type="success" effect="dark"> |
| | | </el-alert> |
| | | <div class="leftvlue-jbxx"> |
| | | <div class="examine-jic"> |
| | | <div class="headline"> |
| | | <div>变量匹配量参</div> |
| | | </div> |
| | | <div class="examine-jic"> |
| | | <div class="jic-value"> |
| | | <el-row :gutter="20"> |
| | | <el-table :data="variableList" style="width: 100%"> |
| | | <el-table-column |
| | | prop="variablename" |
| | | align="center" |
| | | label="变量名称" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="character" |
| | | align="center" |
| | | label="匹配符" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column label="替换值" align="center"> |
| | | <template slot-scope="scope"> |
| | | <el-input |
| | | v-model="scope.row.Replacementvalue" |
| | | placeholder="请输入内容" |
| | | ></el-input> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="操作" align="center"> |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | | size="mini" |
| | | @click="variableEdit(scope.$index, scope.row)" |
| | | >编辑</el-button |
| | | > |
| | | <el-button |
| | | size="mini" |
| | | type="danger" |
| | | @click="variableDelete(scope.$index, scope.row)" |
| | | >删除</el-button |
| | | > |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </el-row> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="examine-jic"> |
| | | <div class="headline"> |
| | | <div>患者列表</div> |
| | |
| | | import { messagelistpatient } from "@/api/patient/homepage"; |
| | | import { |
| | | getTaskpatient, |
| | | getlibrarylist, |
| | | getFollowuplist, |
| | | getQtemplatelist, |
| | | edithetask, |
| | | addhetask, |
| | | gethetaskinfo, |
| | |
| | | return { |
| | | title: "宣教内容列表", |
| | | currenttype: 1, //1宣教2门诊3出院4复诊5体检6问卷 |
| | | id: "", |
| | | Editprogress: 1, //编辑进度 |
| | | loading: false, // 遮罩层 |
| | | patientloading: false, // 遮罩层 |
| | |
| | | { label: "性别", width: "", prop: "sex" }, |
| | | { label: "年龄", width: "", prop: "age" }, |
| | | { label: "就诊科室", width: "", prop: "impTemplate" }, |
| | | { label: "入院日期", width: "", prop: "create_time" }, |
| | | { label: "创建人", width: "", prop: "update_by" }, |
| | | { label: "入院日期", width: "", prop: "uploadTime" }, |
| | | { label: "创建人(缺)", width: "", prop: "update_by" }, |
| | | ], |
| | | tableLabelxj: [ |
| | | { label: "宣教名称", width: "", prop: "name" }, |
| | | { label: "宣教类型", width: "", prop: "nametype" }, |
| | | { label: "宣教模版", width: "", prop: "impTemplate" }, |
| | | { label: "创建日期", width: "", prop: "create_time" }, |
| | | { label: "创建人", width: "", prop: "update_by" }, |
| | | { label: "宣教名称", width: "", prop: "preachname" }, |
| | | { label: "宣教描述", width: "", prop: "note" }, |
| | | { label: "宣教形式", width: "", prop: "playType" }, |
| | | { label: "适用方式", width: "", prop: "suitway" }, |
| | | { label: "创建日期", width: "", prop: "uploadTime" }, |
| | | { label: "创建人(缺)", width: "", prop: "update_by" }, |
| | | ], |
| | | tableLabelmz: [ |
| | | { label: "随访名称", width: "118", prop: "name" }, |
| | | { label: "随访名称", width: "118", prop: "templateName" }, |
| | | { label: "随访模版", width: "130", prop: "impTemplate" }, |
| | | { label: "创建日期", width: "136", prop: "create_time" }, |
| | | { label: "创建人", width: "130", prop: "update_by" }, |
| | | { label: "创建日期", width: "136", prop: "uploadTime" }, |
| | | { label: "创建人(缺)", width: "130", prop: "update_by" }, |
| | | ], |
| | | tableLabelcy: [ |
| | | { label: "随访名称", width: "118", prop: "name" }, |
| | | { label: "随访名称", width: "118", prop: "templateName" }, |
| | | { label: "随访计划", width: "130", prop: "impTemplate" }, |
| | | { label: "创建日期", width: "136", prop: "create_time" }, |
| | | { label: "创建人", width: "130", prop: "update_by" }, |
| | | { label: "创建日期", width: "136", prop: "uploadTime" }, |
| | | { label: "创建人(缺)", width: "130", prop: "update_by" }, |
| | | ], |
| | | tableLabelfz: [ |
| | | { label: "通知名称", width: "118", prop: "name" }, |
| | | { label: "通知名称", width: "118", prop: "templateName" }, |
| | | { label: "通知模版", width: "130", prop: "impTemplate" }, |
| | | { label: "创建日期", width: "136", prop: "create_time" }, |
| | | { label: "创建人", width: "130", prop: "update_by" }, |
| | | { label: "创建日期", width: "136", prop: "uploadTime" }, |
| | | { label: "创建人(缺)", width: "130", prop: "update_by" }, |
| | | ], |
| | | tableLabeltj: [ |
| | | { label: "通知名称", width: "118", prop: "name" }, |
| | | { label: "通知模版", width: "130", prop: "impTemplate" }, |
| | | { label: "创建日期", width: "136", prop: "create_time" }, |
| | | { label: "创建人", width: "130", prop: "update_by" }, |
| | | { label: "创建日期", width: "136", prop: "uploadTime" }, |
| | | { label: "创建人(缺)", width: "130", prop: "update_by" }, |
| | | ], |
| | | tableLabelwj: [ |
| | | { label: "问卷名称", width: "118", prop: "name" }, |
| | | { label: "问卷模版", width: "130", prop: "impTemplate" }, |
| | | { label: "创建日期", width: "136", prop: "create_time" }, |
| | | { label: "创建人", width: "130", prop: "update_by" }, |
| | | { label: "创建日期", width: "136", prop: "uploadTime" }, |
| | | { label: "创建人(缺)", width: "130", prop: "update_by" }, |
| | | ], |
| | | // 变量 |
| | | tableLabelvariable: [ |
| | | { label: "变量名称", width: "", prop: "variablename" }, |
| | | { label: "匹配符", width: "", prop: "character" }, |
| | | { label: "替换值", width: "", prop: "Replacementvalue" }, |
| | | ], |
| | | topqueryParams: { |
| | | pageNum: 1, // |
| | |
| | | userList: [], //模版列表 |
| | | patientuserList: [], //选择患者列表 |
| | | sonuserList: [], //选中患者列表 |
| | | variableList: [ |
| | | { |
| | | variablename: "姓名", |
| | | character: "${name}", |
| | | Replacementvalue: "龙傲天", |
| | | }, |
| | | { |
| | | variablename: "地址", |
| | | character: "${dzz}", |
| | | Replacementvalue: "龙宫", |
| | | }, |
| | | { |
| | | variablename: "电话", |
| | | character: "${dhh}", |
| | | Replacementvalue: "八个八", |
| | | }, |
| | | ], //变量列表 |
| | | tasktopic: null, //新增类型 |
| | | form: { |
| | | name: "", |
| | |
| | | resource: "", |
| | | desc: "", |
| | | }, |
| | | options: [ |
| | | { |
| | | value: "选项1", |
| | | label: "黄金糕", |
| | | }, |
| | | { |
| | | value: "选项2", |
| | | label: "双皮奶", |
| | | }, |
| | | { |
| | | value: "选项5", |
| | | label: "北京烤鸭", |
| | | }, |
| | | ], |
| | | taskoptions: [ |
| | | { |
| | | value: "1", |
| | |
| | | components: { SFtable }, |
| | | |
| | | created() { |
| | | this.id = this.$route.query.id; |
| | | this.Addsubtask(); |
| | | this.Getsubtask(); |
| | | this.Acquisitiontype(); |
| | | |
| | | }, |
| | | |
| | | methods: { |
| | | // 获取当前类型 |
| | | Acquisitiontype() { |
| | | let queryParams = { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | isavailable: "", |
| | | }; |
| | | getTaskpatient({ allhosp: 1 }).then((res) => { |
| | | console.log(res); |
| | | }); |
| | |
| | | "智能小程序", |
| | | "钉钉", |
| | | ]; |
| | | getlibrarylist(queryParams).then((response) => { |
| | | this.userList = response.rows; |
| | | this.total = response.total; |
| | | }); |
| | | } else if (this.currenttype == 2) { |
| | | this.title = "随访内容列表"; |
| | | this.tableLabel = this.tableLabelmz; |
| | | this.checkboxlist = ["当面", "纸质", "电话", "短信", "微信公众号"]; |
| | | getFollowuplist(queryParams).then((response) => { |
| | | this.userList = response.rows; |
| | | this.total = response.total; |
| | | }); |
| | | } else if (this.currenttype == 3) { |
| | | this.title = "随访计划列表"; |
| | | this.tableLabel = this.tableLabelcy; |
| | | this.checkboxlist = ["当面", "纸质", "电话", "短信", "微信公众号"]; |
| | | getFollowuplist(queryParams).then((response) => { |
| | | this.userList = response.rows; |
| | | this.total = response.total; |
| | | }); |
| | | } else if (this.currenttype == 4) { |
| | | this.title = "通知内容列表"; |
| | | this.tableLabel = this.tableLabelfz; |
| | | this.checkboxlist = ["电话", "短信", "微信公众号"]; |
| | | getFollowuplist(queryParams).then((response) => { |
| | | this.userList = response.rows; |
| | | this.total = response.total; |
| | | }); |
| | | } else if (this.currenttype == 5) { |
| | | this.title = "通知内容列表"; |
| | | this.tableLabel = this.tableLabeltj; |
| | | this.checkboxlist = ["纸质", "电话", "短信", "微信公众号"]; |
| | | getFollowuplist(queryParams).then((response) => { |
| | | this.userList = response.rows; |
| | | this.total = response.total; |
| | | }); |
| | | } else if (this.currenttype == 6) { |
| | | this.title = "问卷内容列表"; |
| | | this.tableLabel = this.tableLabelwj; |
| | |
| | | "微信小程序", |
| | | "钉钉", |
| | | ]; |
| | | getQtemplatelist(queryParams).then((response) => { |
| | | this.userList = response.rows; |
| | | this.total = response.total; |
| | | }); |
| | | } |
| | | }, |
| | | // 下一步 |
| | |
| | | console.log(this.userList); |
| | | }); |
| | | }, |
| | | /** 查询患者列表 */ |
| | | // 变量--------------- |
| | | variableEdit(index, row) { |
| | | console.log(index, row); |
| | | }, |
| | | variableDelete(index, row) { |
| | | console.log(index, row); |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |