WXL
2024-08-01 41b1f5280255ac539e40d4cd794532ae1829ce17
src/views/patient/propaganda/particty.vue
@@ -46,7 +46,7 @@
                      <el-input
                        style="width: 220px"
                        :disabled="true"
                        v-model="form.templateName"
                        v-model="form.templatename"
                        placeholder="点击右侧选择"
                      /> </el-form-item
                  ></el-col>
@@ -169,18 +169,6 @@
              </el-form>
            </div>
          </div>
        </div>
        <el-button type="success" @click="nextstep('ruleForm')">{{
          quote ? "立即创建" : "任务详情配置"
        }}</el-button>
        <el-button @click="resetForm('ruleForm')">重置</el-button>
      </div>
      <!-- 任务详情 -->
      <div v-if="Editprogress == 2">
        <el-alert title="在本阶段选择随访病人" type="success" effect="dark">
        </el-alert>
        <div class="leftvlue-jbxx">
          <div class="examine-jic">
            <div class="headline">
              <div>变量匹配量参</div>
@@ -226,6 +214,18 @@
              </div>
            </div>
          </div>
        </div>
        <el-button type="success" @click="nextstep('ruleForm')">{{
          quote ? "立即创建" : "任务详情配置"
        }}</el-button>
        <el-button @click="resetForm('ruleForm')">重置</el-button>
      </div>
      <!-- 任务详情 -->
      <div v-if="Editprogress == 2">
        <el-alert title="在本阶段选择随访病人" type="success" effect="dark">
        </el-alert>
        <div class="leftvlue-jbxx">
          <div class="examine-jic">
            <div class="headline">
              <div>患者列表</div>
@@ -234,7 +234,7 @@
              <div class="jic-value">
                <el-row :gutter="20">
                  <!--用户数据-->
                  <el-form
                  <!-- <el-form
                    :model="topqueryParams"
                    ref="queryForm"
                    size="small"
@@ -248,7 +248,7 @@
                    <el-form-item label="患者范围" prop="status">
                      <el-select
                        v-model="topqueryParams.topic"
                        v-model="topqueryParams.scriptTopic"
                        placeholder="请选择"
                      >
                        <el-option
@@ -263,7 +263,7 @@
                    <el-form-item label="患者状态" prop="status">
                      <el-select
                        v-model="topqueryParams.topic"
                        v-model="topqueryParams.scriptTopic"
                        placeholder="请选择"
                      >
                        <el-option
@@ -277,7 +277,7 @@
                    </el-form-item>
                    <el-form-item label="随访结果" prop="status">
                      <el-select
                        v-model="topqueryParams.topic"
                        v-model="topqueryParams.scriptTopic"
                        placeholder="请选择"
                      >
                        <el-option
@@ -314,7 +314,7 @@
                      >
                    </el-form-item>
                  </el-form>
                  <el-divider></el-divider>
                  <el-divider></el-divider> -->
                  <el-row :gutter="10" class="mb8">
                    <el-col :span="1.5">
                      <el-select
@@ -363,6 +363,7 @@
                    :currentList="overallCase"
                    :tableLabel="tableLabelhz"
                    :serialnumber="false"
                    :searchTrue="true"
                    :multiplechoice="false"
                    :controlxz="false"
                    :typeinfo="2"
@@ -412,7 +413,7 @@
              <el-form-item label="就诊科室" prop="status">
                <el-select
                  v-model="patientqueryParams.topic"
                  v-model="patientqueryParams.scriptTopic"
                  placeholder="请选择"
                >
                  <el-option-group
@@ -479,12 +480,12 @@
      <div class="preview-left">
        <!-- 单选 -->
        <div
          class="topic-dev"
          class="scriptTopic-dev"
          v-for="(item, index) in questionList"
          :key="item.aaa"
        >
          <div class="dev-text">
            {{ index + 1 }}、<span>{{ item.questionText }}</span>
            {{ index + 1 }}、<span>{{ item.scriptContent }}</span>
          </div>
          <div class="dev-xx" v-if="item.valueType == 1">
@@ -501,7 +502,7 @@
            <el-input
              type="textarea"
              placeholder="未获取到信息"
              v-model.sync="item.questionResult"
              v-model.sync="item.scriptResult"
              :rows="2"
            />
          </div>
@@ -557,7 +558,10 @@
                prop="status"
                v-if="currenttype == 1 || currenttype == 8"
              >
                <el-select v-model="topqueryParams.topic" placeholder="请选择">
                <el-select
                  v-model="topqueryParams.scriptTopic"
                  placeholder="请选择"
                >
                  <el-option
                    v-for="item in taskoptions"
                    :key="item.value"
@@ -572,7 +576,10 @@
                prop="status"
                v-if="currenttype == 4 || currenttype == 5"
              >
                <el-select v-model="topqueryParams.topic" placeholder="请选择">
                <el-select
                  v-model="topqueryParams.scriptTopic"
                  placeholder="请选择"
                >
                  <el-option
                    v-for="item in taskoptions"
                    :key="item.value"
@@ -587,7 +594,10 @@
                prop="status"
                v-if="currenttype == 2 || currenttype == 3 || currenttype == 7"
              >
                <el-select v-model="topqueryParams.topic" placeholder="请选择">
                <el-select
                  v-model="topqueryParams.scriptTopic"
                  placeholder="请选择"
                >
                  <el-option
                    v-for="item in taskoptions"
                    :key="item.value"
@@ -692,6 +702,7 @@
      overallCase: [], //选择患者总
      allpids: [],
      libId: null, //模板库模版id
      nhh: null, //是否依照新增
      Editprogress: 1, //编辑进度
      drawermb: false, //选择模版弹窗
      previewtf: false, //预览
@@ -712,44 +723,14 @@
        { label: "入院日期", width: "", prop: "inhosptime" },
        { label: "创建人(缺)", width: "", prop: "update_by" },
      ],
      tableLabelxj: [
        { label: "随访名称", width: "", prop: "preachname" },
        { label: "随访描述", width: "", prop: "note" },
        { label: "随访形式", width: "", prop: "playType" },
        { label: "适用方式", width: "", prop: "suitway" },
        { label: "修改日期", width: "", prop: "uploadTime" },
        { label: "创建人(缺)", width: "", prop: "updateBy" },
      ],
      tableLabelmz: [
        { label: "随访名称", width: "", prop: "templateName" },
        { label: "主要内容", width: "", prop: "note" },
        { label: "修改日期", width: "", prop: "updateTime" },
        { label: "创建人(缺)", width: "", prop: "updateBy" },
      ],
      tableLabelcy: [
        { label: "随访名称", width: "", prop: "templateName" },
        { label: "随访计划", width: "", prop: "impTemplate" },
        { label: "修改日期", width: "", prop: "uploadTime" },
        { label: "创建人(缺)", width: "", prop: "updateBy" },
      ],
      tableLabelfz: [
        { label: "通知名称", width: "", prop: "templateName" },
        { label: "通知模版", width: "", prop: "impTemplate" },
        { label: "修改日期", width: "", prop: "uploadTime" },
        { label: "创建人(缺)", width: "", prop: "updateBy" },
      ],
      tableLabeltj: [
        { label: "通知名称", width: "", prop: "name" },
        { label: "通知模版", width: "", prop: "impTemplate" },
        { label: "修改日期", width: "", prop: "uploadTime" },
        { label: "创建人(缺)", width: "", prop: "updateBy" },
      ],
      tableLabelwj: [
        { label: "问卷名称", width: "", prop: "name" },
        { label: "问卷模版", width: "", prop: "impTemplate" },
        { label: "修改日期", width: "", prop: "uploadTime" },
        { label: "创建人(缺)", width: "", prop: "updateBy" },
      ],
      // 变量
      tableLabelvariable: [
        { label: "变量名称", width: "", prop: "variablename" },
@@ -757,15 +738,13 @@
        { label: "替换值", width: "", prop: "Replacementvalue" },
      ],
      preachform: [
        { label: "多媒体", value: 1 },
        { label: "纸质", value: 2 },
        { label: "电话", value: 3 },
        { label: "线下", value: 1 },
        { label: "电话", value: 2 },
        { label: "小程序", value: 3 },
        { label: "短信", value: 4 },
        { label: "微信公众号", value: 5 },
        { label: "微信小程序", value: 6 },
        { label: "支付宝", value: 7 },
        { label: "智能小程序", value: 8 },
        { label: "钉钉", value: 9 },
        { label: "微信公众", value: 5 },
        { label: "钉钉", value: 6 },
        { label: "智能机器人", value: 7 },
      ],
      // 时间处理
      daytime: [], //日期
@@ -849,7 +828,7 @@
      form: {
        patTaskRelevances: [],
        sendType: 1,
        templateName: "",
        templatename: "",
        templateid: null,
        libtemplateid: null,
      },
@@ -876,6 +855,7 @@
    this.id = this.$route.query.id;
    this.form.type = this.$route.query.type;
    this.form.typename = this.$route.query.typename;
    this.form.nhh = this.$route.query.nhh;
    this.listDept();
    this.Acquisitiontype();
    this.Getdetails();
@@ -919,14 +899,14 @@
      };
      this.currenttype = this.$route.query.type;
      console.log(this.currenttype, "1");
        // 出院、门诊、专病随访
        this.title = "随访内容列表";
        this.tableLabel = this.tableLabelmz;
        this.checkboxlist = ["纸质", "多媒体", "电话", "微信公众号"];
        getFollowuplist(queryParams).then((response) => {
          this.userList = response.rows;
          this.total = response.total;
        });
      // 出院、门诊、专病随访
      this.title = "随访内容列表";
      this.tableLabel = this.tableLabelmz;
      this.checkboxlist = ["短信", "微信", "人工电话", "智能机器人"];
      getFollowuplist(queryParams).then((response) => {
        this.userList = response.rows;
        this.total = response.total;
      });
    },
    nextstep() {
      if (this.Editprogress <= 3) {
@@ -937,6 +917,10 @@
    submitForm(formName) {
      // this.form.preachform = this.checkList.join(",");
      this.formatFn(1);
      if (!this.form.patTaskRelevances[0]) {
        this.$modal.msgError("请选择病人");
        return;
      }
      const filteredArray = this.variableList.filter(
        (item) =>
          item.name !== "姓名" && item.name !== "电话" && item.name !== "地址"
@@ -963,7 +947,7 @@
    // 确认选择模版放入任务模版
    selectfn(row, type) {
      // 模版情况下获取模版信息
      console.log(row,'选择模版');
      console.log(row, "选择模版");
      this.libName = row.templateName;
      this.libId = row.id;
      getvFollowup({ id: row.id }).then((res) => {
@@ -981,6 +965,7 @@
    // 处理问题层变量
    Variablehandling(arr, type) {
      let Variablist = [];
      this.variableList = []; //变量列表
      if (type == 1) {
        console.log(arr);
        // 循环问题
@@ -997,13 +982,13 @@
            }
          });
        });
        console.log(Variablist, "Variablist");
        const Aarr = Variablist.filter(
          (obj, index, self) =>
            index ===
            self.findIndex((t) => t.name === obj.name && t.value === obj.value)
        );
        this.variableList = this.transitionList.concat(Aarr);
        console.log(this.variableList, "variableList");
        // this.form.textParam = this.convertFormat2ToFormat1(this.variableList);
      }
    },
@@ -1127,6 +1112,7 @@
            this.formatFn(2);
            console.log(this.form.showDate, "this.form");
            this.daytime = this.form.showDate.split(",");
            this.changeTimeday(this.daytime);
            if (this.form.showTimeMorn) {
              if (this.form.sendType == 3) {
                this.time4 = this.form.showTimeMorn;
@@ -1182,10 +1168,13 @@
      console.log(this.form.sendTimeslot, "时间");
    },
    changeTimeday(row) {
      console.log(row, "日期");
      const startDate = new Date(row[0]);
      const endDate = new Date(row[1]);
      this.applydaytime = this.getDates(startDate, endDate);
      this.processingTime();
      if (!top) {
        this.processingTime();
      }
    },
    getDates(startDate, endDate) {
      const dates = [];
@@ -1260,7 +1249,7 @@
      this.Tasktemplate.tempDetpRelevances = null;
      this.Tasktemplate.libtemplateid = id;
      this.Tasktemplate.isoperation = 1;
      this.Tasktemplate.libtemplateName = this.Tasktemplate.templateName;
      this.Tasktemplate.libtemplatename = this.Tasktemplate.templatename;
      console.log(this.libName, this.libId);
      TaskTemplatecomit(this.Tasktemplate).then((response) => {
@@ -1268,9 +1257,9 @@
        this.previewtf = false;
        this.form.templateid = response.data;
        this.form.libtemplateid = this.libId;
        this.form.templateName = this.libName;
        console.log(this.form.templateName, "ss");
        this.$modal.msgSuccess("选择模版成功", this.form.templateName);
        this.form.templatename = this.libName;
        console.log(this.form.templatename, "ss");
        this.$modal.msgSuccess("选择模版成功", this.form.templatename);
      });
    },
    // 处理服务形式
@@ -1403,7 +1392,7 @@
  border: 1px solid #dcdfe6;
  -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12),
    0 0 6px 0 rgba(0, 0, 0, 0.04);
  .topic-dev {
  .scriptTopic-dev {
    margin-bottom: 25px;
    font-size: 20px !important;
    .dev-text {
@@ -1467,7 +1456,7 @@
  width: 22px;
  height: 22px;
}
// ::v-deep.topic-dev.el-radio__label {
// ::v-deep.scriptTopic-dev.el-radio__label {
//   font-size: 24px;
// }
::v-deep.el-radio-group {