WXL
3 天以前 30e7ca11b36177cdaea2839aa5146c180ce53197
src/views/patient/propaganda/Missioncreation.vue
@@ -390,7 +390,6 @@
                        icon="el-icon-upload2"
                        size="medium"
                        @click="handleImport"
                        >导入</el-button
                      >
                    </el-col>
@@ -592,10 +591,12 @@
          <el-table-column prop="serial" label="患者id"> </el-table-column>
          <el-table-column prop="name" label="姓名"> </el-table-column>
          <el-table-column prop="sex" label="性别"> </el-table-column>
          <el-table-column prop="idcardno" width="300" label="证件号码"> </el-table-column>
          <el-table-column prop="idcardno" width="300" label="证件号码">
          </el-table-column>
          <el-table-column prop="goday" label="出生日期"> </el-table-column>
          <el-table-column prop="telcode" width="200" label="联系方式"> </el-table-column>
          <el-table-column prop="createTime"  width="200" label="创建日期">
          <el-table-column prop="telcode" width="200" label="联系方式">
          </el-table-column>
          <el-table-column prop="createTime" width="200" label="创建日期">
          </el-table-column>
        </el-table>
        <!-- <pagination
@@ -778,8 +779,8 @@
        { label: "身份证", width: "200", prop: "sfzh" },
        { label: "性别", width: "", prop: "sex" },
        { label: "年龄", width: "", prop: "age" },
        { label: "责任护士", width: "", prop: "nurseName" },
        { label: "主治医生", width: "", prop: "drname" },
        // { label: "责任护士", width: "", prop: "nurseName" },
        // { label: "主治医生", width: "", prop: "drname" },
        { label: "科室", width: "240", prop: "dept" },
        { label: "病区", width: "240", prop: "leavehospitaldistrictname" },
      ],
@@ -790,8 +791,8 @@
        { label: "身份证", width: "200", prop: "sfzh" },
        { label: "性别", width: "", prop: "sex" },
        { label: "年龄", width: "", prop: "age" },
        { label: "责任护士", width: "", prop: "nurseName" },
        { label: "主治医生", width: "", prop: "drname" },
        // { label: "责任护士", width: "", prop: "nurseName" },
        // { label: "主治医生", width: "", prop: "drname" },
        { label: "科室", width: "180", prop: "deptName" },
        { label: "病区", width: "150", prop: "leavehospitaldistrictname" },
      ],
@@ -817,7 +818,7 @@
        { label: "短信", value: 4 },
        { label: "微信公众", value: 5 },
        { label: "钉钉", value: 6 },
        { label: "智能机器人", value: 7 },
        // { label: "智能机器人", value: 7 },
      ],
      upload: {
        // 是否显示弹出层(用户导入)
@@ -921,7 +922,7 @@
        templatename: "",
        templateid: null,
        libtemplateid: null,
        kcb: "亲爱的患者-家属,您好!我们是浙中医大二院的医护人员,为了更好地了解您的康复情况,请您抽一点宝贵时间,观看这份宣教资讯。",
        kcb: "亲爱的患者-家属,您好!我们是无锡儿童医院的医护人员,为了更好地了解您的康复情况,请您抽一点宝贵时间,观看这份宣教资讯。",
        jsy: "生活上要劳逸结合,注意休息和营养,适当锻炼,戒烟限酒,保持心情舒畅,定期复诊。那本次宣教内容就到这里,祝您身体健康!",
      },
      taskoptions: [
@@ -969,7 +970,7 @@
    this.belongDepts = store.getters.belongDepts;
    this.form.typename = this.$route.query.typename;
    this.form.serviceType = Number(this.$route.query.serviceType);
    this.listDept();
    // this.listDept();
    this.Acquisitiontype();
    this.Getdetails();
    this.getheLibraryAssort();
@@ -1042,10 +1043,10 @@
            label: "微信小程序",
          },
          {
            value: "8",
            label: "智能机器人",
          },
          // {
          //   value: "8",
          //   label: "智能机器人",
          // },
        ];
      } else if (this.form.serviceType == 8) {
        this.checkboxlist = [
@@ -1062,10 +1063,10 @@
            label: "微信小程序",
          },
          {
            value: "8",
            label: "智能机器人",
          },
          // {
          //   value: "8",
          //   label: "智能机器人",
          // },
          {
            value: "9",
            label: "钉钉",
@@ -1094,6 +1095,11 @@
        this.$modal.msgError("未选择模板");
        return;
      }
      if (this.form.deptcode || this.form.leavehospitaldistrictcode) {
      } else {
        this.$modal.msgError("请选择科室或病区");
        return;
      }
      const filteredArray = this.variableList.filter(
        (item) =>
          item.name !== "姓名" && item.name !== "电话" && item.name !== "地址"
@@ -1104,7 +1110,7 @@
        this.form.isoperation = 2;
      } else {
        this.form.isoperation = 1;
        this.form.sendState=1;
        this.form.sendState = 1;
      }
      if (!this.form.type) {
        this.form.type = this.$route.query.type;
@@ -1196,8 +1202,8 @@
          { label: "身份证", width: "200", prop: "sfzh" },
          { label: "性别", width: "", prop: "sex" },
          { label: "年龄", width: "", prop: "age" },
          { label: "责任护士", width: "", prop: "nurseName" },
          { label: "医生", width: "", prop: "drname" },
          // { label: "责任护士", width: "", prop: "nurseName" },
          // { label: "医生", width: "", prop: "drname" },
          { label: "科室", width: "180", prop: "dept" },
          { label: "病区", width: "150", prop: "leavehospitaldistrictname" },
        ];
@@ -1256,7 +1262,7 @@
    handleExport() {},
    // 选择患者表数据
    handleSelectionChange(selection,type) {
    handleSelectionChange(selection, type) {
      console.log("多选患者");
      this.SelectPatientslist = selection;
      this.multiple = !selection.length;
@@ -1271,8 +1277,8 @@
            item.sfzh = item.idcardno;
          }
          if (type) {
            item.hospType=type
          }else{
            item.hospType = type;
          } else {
            item.hospType = this.patientqueryParams.allhosp;
          }
          this.overallCase.push(item);
@@ -1350,8 +1356,8 @@
        templateid: null,
        libtemplateid: null,
        serviceType: Number(this.$route.query.serviceType),
        kcb: "亲爱的患者-家属,您好!我们是浙中医大二院的医护人员,为了更好地了解您的康复情况,请您抽一点宝贵时间,完成这份随访问卷。",
        jsy: "生活上要劳逸结合,注意休息和营养,适当锻炼,戒烟限酒,保持心情舒畅,定期复诊。那本次回访就到这里,祝您身体健康!",
        kcb: "亲爱的患者-家属,您好!我们是无锡儿童医院的医护人员,为了更好地了解您的康复情况,请您抽一点宝贵时间,完成这份随访问卷。",
        jsy: "感谢您参与本次随访。您的反馈帮助我们更好地了解宝宝的适应情况,并为您提供更精准的护理建议与健康指导。祝您和宝宝健康快乐",
      };
      if (this.id) {
@@ -1416,12 +1422,12 @@
      });
    },
    // 获取科室列表
    listDept() {
      listDept().then((res) => {
        this.topicoptions = this.handleTree(res.data, "deptId");
        console.log(this.topicoptions, "topicoptions");
      });
    },
    // listDept() {
    //   listDept().then((res) => {
    //     this.topicoptions = this.handleTree(res.data, "deptId");
    //     console.log(this.topicoptions, "topicoptions");
    //   });
    // },
    // 新增派送患者
    AddDispatchpatients() {
      // this.SelectPatientslist.forEach((item) => {
@@ -1520,16 +1526,19 @@
    previewFn() {
      this.Tasktemplate.id = null;
      this.Tasktemplate.templateid = this.libId;
      this.Tasktemplate.isoperation = 1;
      TaskQuestioncomit(this.Tasktemplate).then((response) => {
        console.log(response);
        this.previewtf = false;
        this.form.templateid = response.data;
        this.form.libtemplateid = this.libId;
        this.form.templatename = this.libName;
        this.$modal.msgSuccess("选择模板成功");
      });
      this.form.templateid = this.libId;
      this.form.templatename = this.libName;
      this.$modal.msgSuccess("选择模板成功");
      this.previewtf = false;
      // this.Tasktemplate.isoperation = 1;
      // TaskQuestioncomit(this.Tasktemplate).then((response) => {
      //   console.log(response);
      //   this.previewtf = false;
      //   this.form.templateid = response.data;
      //   this.form.libtemplateid = this.libId;
      //   this.form.templatename = this.libName;
      // });
    },
    // 处理服务形式
    formatFn(type) {
@@ -1573,7 +1582,6 @@
    handleFileSuccess(response, file, fileList) {
      this.upload.isUploading = false;
      this.uploadingData = response.rows;
      console.log(response, "文件");
      this.$refs.upload.clearFiles();
    },
@@ -1584,9 +1592,9 @@
        this.$refs.upload.submit();
        this.dractive++;
      } else if (this.dractive == 2) {
        this.handleSelectionChange(this.uploadingData,4);
        this.handleSelectionChange(this.uploadingData, 4);
        this.upload.open = false;
        this.dractive = 1
        this.dractive = 1;
      }
    },