WXL
2025-02-25 bfce8d1b8f02af1ac9223e4e0d315b858557a2f5
src/views/patient/propaganda/QuestionnaireTask.vue
@@ -196,14 +196,21 @@
                    </div>
                  </div>
                </el-form-item>
                <el-row>
                <!-- <el-form-item label="任务关联" prop="longTask">
                  <el-radio-group v-model="form.relevance">
                    <el-radio :label="0">科室关联</el-radio>
                    <el-radio :label="1">病区关联</el-radio>
                  </el-radio-group>
                </el-form-item> -->
                <el-row >
                  <el-col :span="20"
                    ><el-form-item label="适用科室" prop="region">
                      <el-select
                        v-model="form.deptcode"
                        v-model="deptcodesWards"
                        @remove-tag="removetag"
                        style="width: 400px"
                        size="medium"
                        multiple
                        filterable
                        placeholder="请选择科室"
                      >
@@ -218,14 +225,38 @@
                      </el-select> </el-form-item
                  ></el-col>
                </el-row>
                <el-row>
                <el-row >
                  <el-col :span="20"
                    ><el-form-item label="适用病区" prop="region">
                      <el-select
                        v-model="form.leavehospitaldistrictcode"
                        v-model="leavehospitaldistrictcodes"
                        style="width: 400px"
                        @remove-tag="removehpsp"
                        size="medium"
                        multiple
                        filterable
                        placeholder="请选择病区"
                      >
                        <el-option
                          class="ruleFormaa"
                          v-for="item in belongWards"
                          :key="item.districtCode"
                          :label="item.districtName"
                          :value="item.districtCode"
                        >
                        </el-option>
                      </el-select> </el-form-item
                  ></el-col>
                </el-row>
                <el-row v-if="form.relevance == 2">
                  <el-col :span="20"
                    ><el-form-item label="适用疾病" prop="region">
                      <el-select
                        v-model="leavehospitaldistrictcodes"
                        style="width: 400px"
                        @remove-tag="removehpsp"
                        size="medium"
                        multiple
                        filterable
                        placeholder="请选择病区"
                      >
@@ -487,7 +518,6 @@
            <!-- 选择患者列表 -->
            <SFtable
              ref="multipleTable"
              @handleSelectionChange="handleSelectionChange"
              :currentList="patientuserList"
              :tableLabel="tableLabelhz"
@@ -803,7 +833,7 @@
} from "@/api/AiCentre/index";
import SFtable from "@/components/SFtable"; //表格组件
import {  MessageBox,  } from "element-ui";
import { MessageBox } from "element-ui";
export default {
  name: "ServiceDetails",
@@ -990,7 +1020,7 @@
        templatename: "",
        templateid: null,
        libtemplateid: null,
        kcb: "亲爱的患者/家属,您好!我们是无锡儿童医院的医护人员,为了更好地了解您的康复情况,请您抽一点宝贵时间,观看这份宣教资讯。",
        kcb: "亲爱的患者/家属,您好!我们是景宁人民医院的医护人员,为了更好地了解您的康复情况,请您抽一点宝贵时间,观看这份宣教资讯。",
        jsy: "请您注意休息和营养,生活上要劳逸结合,适当锻炼,戒烟限酒,保持心情舒畅,定期复诊。那本次宣教内容就到这里,祝您身体健康!",
      },
      taskoptions: [
@@ -1033,7 +1063,7 @@
      tasktypes: [
        {
          value: 1,
          label: "监测评估",
          label: "心电随访",
        },
        {
          value: 2,
@@ -1041,7 +1071,7 @@
        },
        {
          value: 3,
          label: "门诊随访",
          label: "影像随访",
        },
        {
          value: 4,
@@ -1049,24 +1079,15 @@
        },
        {
          value: 5,
          label: "复诊管理",
          label: "体检随访",
        },
        {
          value: 6,
          label: "满意度调查",
          value: 11,
          label: "医技随访",
        },
        {
          value: 7,
          label: "患者日常报告",
        },
        {
          value: 9,
          label: "患者异常报告",
        },
        {
          value: 8,
          label: "其他通知",
          value: 10,
          label: "专科随访",
        },
      ],
      // 科室/病区
@@ -1097,7 +1118,7 @@
        //   { required: true, message: "适用病区不能为空", trigger: "blur" },
        // ],
      },
      belongDepts:[],
      belongDepts: [],
      // 科室院区查询入参
      queryParamsdept: {},
      quote: false,
@@ -1307,7 +1328,7 @@
        this.$modal.msgError("请选择服务类型");
        return;
      }
      if (this.form.leavehospitaldistrictcode||this.form.deptcode) {
      if (this.deptcodesWards[0] || this.leavehospitaldistrictcodes[0]) {
      } else {
        this.$modal.msgError("请选择科室或病区");
        return;
@@ -1345,9 +1366,9 @@
        this.form.type = this.$route.query.type;
      }
      this.form.serviceType = this.serviceType;
      // this.form.deptcode = this.deptcodesWards.join(",");
      // this.form.leavehospitaldistrictcode =
      //   this.leavehospitaldistrictcodes.join(",");
      this.form.deptcode = this.deptcodesWards.join(",");
      this.form.leavehospitaldistrictcode =
        this.leavehospitaldistrictcodes.join(",");
      Editsingletask(this.form).then((res) => {
        if (res.code == 200) {
@@ -1554,8 +1575,8 @@
          item.deptName = item.dept;
          item.admindate = item.inhosptime;
          item.sfzh = item.idcardno;
          if (this.patientqueryParams.allhosp==6) {
          item.patfrom = 1;
          if (this.patientqueryParams.allhosp == 6) {
            item.patfrom = 1;
          }
          this.overallCase.push(item);
          this.form.patTaskRelevances.push(item);
@@ -1694,7 +1715,7 @@
        templatename: "",
        templateid: null,
        libtemplateid: null,
        kcb: "亲爱的患者/家属,您好!我们是无锡儿童医院的医护人员,为了更好地了解您的康复情况,请您抽一点宝贵时间,完成这份随访问卷。",
        kcb: "亲爱的患者/家属,您好!我们是景宁人民医院的医护人员,为了更好地了解您的康复情况,请您抽一点宝贵时间,完成这份随访问卷。",
        jsy: "请您注意休息和营养,生活上要劳逸结合,适当锻炼,戒烟限酒,保持心情舒畅,定期复诊。那本次回访就到这里,祝您身体健康!",
      };
@@ -1964,7 +1985,7 @@
          "功能提示",
          {
            confirmButtonText: "保存任务",
            cancelButtonText: "取消",
            cancelButtonText: "暂存模板",
            type: "warning",
          }
        )
@@ -1975,11 +1996,26 @@
            this.objyl.templateid = this.objyl.svyid;
            this.form.libtemplateid = this.objyl.svyid;
            this.objyl.isoperation = 1;
            this.objyl.svyTaskTemplateScriptVOS = this.objyl.svyTemplateLibScripts;
            this.form.svyTaskTemplateVO=this.objyl;
            this.objyl.svyTaskTemplateScriptVOS =
              this.objyl.svyTemplateLibScripts;
            this.form.svyTaskTemplateVO = this.objyl;
            this.submitForm();
          })
          .catch(() => {});
          .catch(() => {
            if (Array.isArray(this.objyl.suitway)) {
              this.objyl.suitway = this.objyl.suitway.join(",");
            }
            this.objyl.templateid = this.objyl.svyid;
            this.form.libtemplateid = this.objyl.svyid;
            this.objyl.isoperation = 1;
            this.objyl.svyTaskTemplateScriptVOS =
              this.objyl.svyTemplateLibScripts;
            this.form.svyTaskTemplateVO = this.objyl;
            this.form.templatename=this.objyl.svyname;
            this.$modal.msgSuccess("暂存成功保存任务后模板失效");
            this.drawermb=false;
            this.previewtf=false;
          });
      } else {
        setTimeout(() => {
          this.previewFn();