WXL
6 天以前 5e1745487b290612c6282006822b431843a081af
测试完成
已修改8个文件
207 ■■■■■ 文件已修改
src/views/followvisit/discharge/index.vue 25 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/followvisit/record/detailpage/index.vue 56 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/followvisit/record/index.vue 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/patient/follow/index.vue 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/patient/patient/behospitalized.vue 21 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/patient/patient/hospital.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/patient/propaganda/QuestionnaireTask.vue 62 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
vue.config.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/followvisit/discharge/index.vue
@@ -327,13 +327,7 @@
            />
          </template>
        </el-table-column>
        <el-table-column
          label="随访人员"
          align="center"
          key="updateBy"
          prop="updateBy"
          width="120"
        />
        <el-table-column
          label="随访完成时间"
          sortable
@@ -373,6 +367,13 @@
          align="center"
          key="drname"
          prop="drname"
        />
        <el-table-column
          label="随访人员"
          align="center"
          key="updateBy"
          prop="updateBy"
          width="120"
        />
        <el-table-column
          label="出院天数"
@@ -436,15 +437,15 @@
        >
        </el-table-column>
        <!-- <el-table-column
          label="疾病名称"
        <el-table-column
          label="诊断名称"
          align="center"
          key="icdName"
          prop="icdName"
          key="leavediagname"
          prop="leavediagname"
          width="120"
          :show-overflow-tooltip="true"
        >
        </el-table-column> -->
        </el-table-column>
        <el-table-column
          label="出院随访模板名称"
src/views/followvisit/record/detailpage/index.vue
@@ -15,7 +15,7 @@
                >查看患者全部服务</el-button
              >
              <el-button v-else type="success" @click="getTaskservelist(id)"
                >查看患者本次服务信息</el-button
                >只展示本次服务信息</el-button
              >
            </div>
            <div style="margin-left: 20px; color: #59a0f0">
@@ -32,7 +32,7 @@
        </div>
      </div>
      <div>
        <el-table :data="logsheetlist" style="width: 100%">
        <el-table :data="logsheetlist" :row-class-name="tableRowClassName" style="width: 100%">
          <el-table-column
            prop="sendname"
            align="center"
@@ -200,7 +200,6 @@
                size="medium"
                type="text"
                @click="Seedetails(scope.row)"
                v-hasPermi="['system:user:edit']"
                ><span class="button-zx"
                  ><i class="el-icon-s-order"></i>查看</span
                ></el-button
@@ -677,6 +676,7 @@
      activeName: "wj",
      voice: "",
      templateid: "",
      again:'',
      zcform: {},
      form: {},
      tableDatatop: [], //题目表
@@ -749,7 +749,7 @@
          }]
        },
      userform: {},
      Whetherall: false, //是否全部记录展示
      Whetherall: true, //是否全部记录展示
      dialogFormVisible: false,
      Voicetype: 0, //是否为语音服务
      logsheetlist: [],
@@ -767,11 +767,11 @@
    this.id = this.$route.query.id;
    this.sendname = this.$route.query.sendname;
    this.patid = this.$route.query.patid;
    this.again = this.$route.query.again;
    this.Voicetype = this.$route.query.Voicetype;
    this.serviceType = this.$route.query.serviceType;
    console.log(this.id, this.patid);
    this.getTaskservelist(this.id);
    this.getTaskservelist();
  },
  methods: {
@@ -784,7 +784,11 @@
        isFinish: false,
      }).then((res) => {
        if (res.code === 200) {
          this.tableDatatop = res.data.scriptResult;
          if (this.again&&res.data.upScriptResult) {
          this.tableDatatop = res.data.upScriptResult;
          }else{
            this.tableDatatop = res.data.scriptResult;
          }
          this.tableDatatop.forEach((item) => {
            if (item.scriptType == 2) item.scriptResult = [];
            if (item.scriptResult && item.scriptType != 2) {
@@ -845,10 +849,8 @@
        patid: this.patid,
        subId: id ? id : this.id,
      };
      console.log(this.voiceDatatop, "111");
      getPersonVoices(obj).then((res) => {
        console.log("222");
        if (res.code == 200) {
          this.voiceDatatop = res.data.serviceSubtaskDetails;
          this.voice = res.data.voice;
@@ -863,7 +865,6 @@
              item.scriptResult = [];
            }
          });
          console.log(this.tableDatatop, "this.tableDatatop");
          if (!this.tableDatatop.length) {
            this.puttaskid(this.templateid);
@@ -892,7 +893,6 @@
              item.scriptResult = [];
            }
          });
          console.log(this.tableDatatop, "this.tableDatatop");
        }
      });
    },
@@ -960,7 +960,6 @@
    },
    yuyingetdetail() {
      this.tableDatatop.forEach((item, index) => {
        console.log(item.scriptResult, "scriptResult");
        item.scriptResult = item.scriptResult.join("&");
        item.templatequestionnum = index + 1;
        item.subId = this.id;
@@ -997,8 +996,6 @@
    // 获取患者记录
    getTaskservelist(id) {
      console.log(id, "idsub");
      if (id) {
        this.Whetherall = false;
      } else {
@@ -1010,7 +1007,7 @@
        subId: id,
      }).then((res) => {
        if (res.code == 200) {
          this.form = res.rows[0].serviceSubtaskList[0];
          this.form = res.rows[0].serviceSubtaskList.find(item => item.id == this.id);
          this.logsheetlist = res.rows[0].serviceSubtaskList;
          this.templateid = this.logsheetlist[0].templateid;
          const targetDate = new Date(this.form.longSendTime); // 目标日期
@@ -1027,8 +1024,6 @@
          }
          this.getuserinfo();
        }
        console.log(this.Voicetype, "this.Voicetype");
        if (this.Voicetype) {
          this.getPersonVoices();
        } else {
@@ -1048,14 +1043,13 @@
          Editsingletaskson(objson).then((res) => {
            if (res.code) {
              this.$modal.msgSuccess("服务记录成功");
              this.getTaskservelist(this.id);
              this.getTaskservelist();
            }
          });
        }
      });
    },
    Editsingletasksonyic(sendstate) {
      console.log(sendstate, "sendstate");
      let objson = {};
      getTaskservelist({
@@ -1063,7 +1057,7 @@
        subId: this.id,
      }).then((res) => {
        if (res.code == 200) {
          objson = res.rows[0].serviceSubtaskList[0];
          objson = res.rows[0].serviceSubtaskList.find(item => item.id == this.id);
          objson.remark = this.form.remark;
          if (sendstate) objson.sendstate = sendstate;
          Editsingletaskson(objson).then((res) => {
@@ -1076,11 +1070,18 @@
                  this.$modal.msgError("基础信息修改失败");
                }
              });
              this.getTaskservelist(this.id);
              this.getTaskservelist();
            }
          });
        }
      });
    },
    // 异常列渲染
    tableRowClassName({ row, rowIndex }) {
      if (row.id == this.id) {
        return "warning-row";
      }
      return "";
    },
    // 调起再次发送
    sendAgain() {
@@ -1098,18 +1099,16 @@
              this.Voicetype = 1;
            }
          }
          console.log(this.Voicetype, "this.Voicetype");
          this.taskid = row.taskid;
          this.id = row.id;
          this.patid = row.patid;
          this.serviceType = row.serviceType;
          this.getTaskservelist(this.id);
          this.getTaskservelist();
        })
        .catch(() => {});
    },
    handleOptionChange(a, b, c) {
      console.log(this.tableDatatop[b], "this.tableDatatop[b]");
console.log(a);
      if (this.Voicetype) {
        var obj = this.tableDatatop[b].ivrTaskScriptTargetoptionList.find(
@@ -1193,9 +1192,7 @@
      return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
    },
    updateScore(a, b, c) {
      console.log(a);
      console.log(b);
      console.log(c);
    },
  },
};
@@ -1225,6 +1222,9 @@
    }
  }
}
::v-deep.el-table .warning-row {
  background: #c4e2ee;
}
.Followuserinfos {
  margin: 20px 10px;
  align-items: center;
src/views/followvisit/record/index.vue
@@ -165,7 +165,6 @@
                icon="el-icon-upload2"
                size="medium"
                @click="handleExport"
                v-hasPermi="['system:user:export']"
                >导出</el-button
              >
            </div>
@@ -508,7 +507,7 @@
                ></el-button
              >
            </el-tooltip> -->
            <el-tooltip
            <!-- <el-tooltip
              v-if="scope.row.sendstate == 1 || scope.row.sendstate == 2"
              class="item"
              effect="dark"
@@ -524,7 +523,7 @@
                  ><i class="el-icon-remove-outline"></i>暂停服务</span
                ></el-button
              >
            </el-tooltip>
            </el-tooltip> -->
            <el-button size="medium" type="text" @click="Seedetails(scope.row)"
              ><span class="button-zx"
                ><i class="el-icon-s-order"></i>查看详情</span
@@ -908,6 +907,10 @@
      topicoptions: [
        {
          value: null,
          label: "全部",
        },
        {
          value: 1,
          label: "表单已领取",
        },
@@ -1067,11 +1070,11 @@
      });
    },
    //患者360跳转
    gettoken360(sfzh,drcode,drname) {
    gettoken360(sfzh, drcode, drname) {
      this.postData.YeWuXX.BingRenXX.ZhengJianHM = sfzh;
      if (this.postData.XiaoXiTou.ZuHuMC=='丽水市中医院') {
        this.postData.YeWuXX.YongHuXX.YongHuID = '1400398571877961728';
        this.postData.YeWuXX.YongHuXX.YongHuXM = 'LSZYY';
      if (this.postData.XiaoXiTou.ZuHuMC == "丽水市中医院") {
        this.postData.YeWuXX.YongHuXX.YongHuID = "1400398571877961728";
        this.postData.YeWuXX.YongHuXX.YongHuXM = "LSZYY";
      }
      query360PatInfo(this.postData).then((res) => {
        if (res.data.url) {
@@ -1244,6 +1247,9 @@
        sort: 2,
        searchscope: 2,
        sendstate: 2,
        scopetype: [],
        leaveldeptcodes: [],
        leavehospitaldistrictcodes: [],
      };
      this.handleQuery(1);
    },
@@ -1395,6 +1401,7 @@
          patid: row.patid,
          id: row.id,
          Voicetype: type,
          again: 1,
        },
      });
    },
@@ -1448,7 +1455,8 @@
      this.topqueryParams.pageNum = null;
      this.topqueryParams.pageSize = null;
      this.download(
        "smartor/serviceSubtask/export",
        // "smartor/serviceSubtask/export",
        "smartor/serviceSubtask/patItemExport",
        {
          ...this.topqueryParams,
        },
src/views/patient/follow/index.vue
@@ -437,9 +437,12 @@
    },
    /** 重置按钮操作 */
    resetQuery() {
      this.dateRange = [];
      this.resetForm("queryForm");
      this.$refs.tree.setCurrentKey(null);
      this.queryParams={
        pageNum: 1,
        pageSize: 10,
        allhosp: "1",
        notrequiredFlag: 1,
      },
      this.handleQuery();
    },
    // 多选框选中数据
src/views/patient/patient/behospitalized.vue
@@ -618,9 +618,6 @@
    },
  },
  created() {
    this.getList();
    this.listDept();
    this.gettabList();
    this.sourcetype[0].children = store.getters.belongDepts.map((dept) => {
      return {
        label: dept.deptName,
@@ -633,6 +630,15 @@
        value: dept.districtCode,
      };
    });
    this.queryParams.leaveldeptcodes = store.getters.belongDepts.map(
      (obj) => obj.deptCode
    );
    this.queryParams.leavehospitaldistrictcodes = store.getters.belongWards.map(
      (obj) => obj.districtCode
    );
    this.getList();
    this.listDept();
    this.gettabList();
  },
  methods: {
    /** 查询患者列表 */
@@ -748,13 +754,12 @@
    },
    /** 搜索按钮操作 */
    handleQuery() {
      if (this.dateRange) {
        this.queryParams.startInHospTime = this.dateRange[0];
        this.queryParams.endInHospTime = this.dateRange[1];
      }else{
        this.queryParams.startInHospTime = '';
        this.queryParams.endInHospTime = '';
      } else {
        this.queryParams.startInHospTime = "";
        this.queryParams.endInHospTime = "";
      }
      this.queryParams.pageNum = 1;
      this.getList();
@@ -772,7 +777,7 @@
        leaveldeptcodes: [],
        leavehospitaldistrictcodes: [],
      };
        this.handleQuery();
      this.handleQuery();
    },
    // 多选框选中数据
    handleSelectionChange(selection) {
src/views/patient/patient/hospital.vue
@@ -607,6 +607,12 @@
        value: dept.districtCode,
      };
    });
    this.queryParams.leaveldeptcodes = store.getters.belongDepts.map(
      (obj) => obj.deptCode
    );
    this.queryParams.leavehospitaldistrictcodes = store.getters.belongWards.map(
      (obj) => obj.districtCode
    );
    this.getList();
    this.listDept();
    this.gettabList();
@@ -749,7 +755,7 @@
        leaveldeptcodes: [],
        leavehospitaldistrictcodes: [],
      };
        this.handleQuery();
      this.handleQuery();
    },
    // 多选框选中数据
    handleSelectionChange(selection) {
src/views/patient/propaganda/QuestionnaireTask.vue
@@ -364,7 +364,7 @@
                      placeholder="请点击右侧选择"
                    />
                    <el-button
                    v-if="
                      v-if="
                        (form.templateid && form.sendState == 1) ||
                        !form.templateid
                      "
@@ -598,7 +598,7 @@
            v-show="patienttotal > 0 && this.patientqueryParams.allhosp != 6"
            :total="patienttotal"
            :page.sync="patientqueryParams.pageNum"
              :limit.sync="patientqueryParams.pageSize"
            :limit.sync="patientqueryParams.pageSize"
            @pagination="handleAddpatient"
          />
        </div>
@@ -778,6 +778,21 @@
          >保存使用</el-button
        >
      </span>
      <!-- <span slot="footer" class="dialog-footer">
        <el-button
          v-if="(form.templateid && form.sendState == 1) || !form.templateid"
          type="primary"
          @click="Departmenttreatment"
          >{{ form.templateid ? "替换使用" : "选择使用" }}</el-button
        >
        <el-button
          :type="previewtftype ? 'success' : 'warning'"
          @click="previewGo"
          >{{
            previewtftype ? "前往修改已选择模板" : "新增保存并前往修改"
          }}</el-button
        >
      </span> -->
    </el-dialog>
    <el-drawer
      title="问卷内容列表"
@@ -916,6 +931,7 @@
      previewtf: false, //预览
      loading: false, // 遮罩层
      patientloading: false, // 遮罩层
      previewtftype: 0, //预览情况0新模板预览1已选择模板修改
      dialogVisiblepatient: false, //添加患者弹框
      dialogVisiblepatientjb: false, //添加疾病弹框
      deptcodesWards: [], //科室数据
@@ -955,7 +971,7 @@
      tableLabelhzwb: [
        { label: "出院日期", width: "150", prop: "endtime" },
        { label: "患者", width: "", prop: "name" },
        { label: "患者诊断", width: "", prop: "leavediagname" },
        { label: "患者诊断", width: "", prop: "diagname" },
        { label: "身份证", width: "200", prop: "sfzh" },
        { label: "性别", width: "", prop: "sex" },
        { label: "年龄", width: "", prop: "age" },
@@ -1134,51 +1150,51 @@
      tasktypes: [
        {
          value: "1",
          value: 1,
          label: "监测评估",
        },
        {
          value: "2",
          value: 2,
          label: "出院随访",
        },
        {
          value: "3",
          value: 3,
          label: "门诊随访",
        },
        {
          value: "4",
          value: 4,
          label: "宣教关怀",
        },
        {
          value: "5",
          value: 5,
          label: "复诊管理",
        },
        // {
        //   value: "5",
        //   value: 5,
        //   label: "满意度调查",
        // },
        {
          value: "7",
          value: 7,
          label: "患者报告",
        },
        // {
        //   value: "8",
        //   value: 8,
        //   label: "其他通知",
        // },
        {
          value: "9",
          value: 9,
          label: "体检随访",
        },
        // {
        //   value: "10",
        //   value: 1",
        //   label: "医技随访",
        // },
        {
          value: "11",
          value: 11,
          label: "影像随访",
        },
        {
          value: "12",
          value: 12,
          label: "心电随访",
        },
        // {
@@ -1582,6 +1598,7 @@
              this.questionList.forEach((item) => {
                item.qremark = [];
              });
              this.previewtftype = 1;
              this.objyl.svyTemplateLibScripts =
                res.rows[0].svyTemplateLibScripts;
            }
@@ -1679,7 +1696,7 @@
          // { label: "入院日期", width: "170", prop: "starttime" },
          { label: "出院日期", width: "150", prop: "endtime" },
          { label: "患者", width: "", prop: "name" },
        { label: "患者诊断", width: "", prop: "leavediagname" },
          { label: "患者诊断", width: "", prop: "leavediagname" },
          { label: "身份证", width: "200", prop: "idcardno" },
          { label: "性别", width: "", prop: "sex" },
          { label: "年龄", width: "", prop: "age" },
@@ -1693,7 +1710,7 @@
        this.tableLabelhz = [
          { label: "入院日期", width: "150", prop: "starttime" },
          { label: "患者", width: "", prop: "name" },
        { label: "患者诊断", width: "", prop: "leavediagname" },
          { label: "患者诊断", width: "", prop: "leavediagname" },
          { label: "身份证", width: "200", prop: "idcardno" },
          { label: "性别", width: "", prop: "sex" },
          { label: "年龄", width: "", prop: "age" },
@@ -1766,6 +1783,7 @@
          item.deptCode = item.deptcode;
          item.deptName = item.dept;
          item.admindate = item.inhosptime;
          item.diagname = item.leavediagname;
          item.sfzh = item.idcardno;
          if (this.patientqueryParams.allhosp == 6) {
            item.patfrom = 1;
@@ -2179,9 +2197,13 @@
    },
    // 查看模板
    previewGo() {
      this.$router.push({
        path: "/knowledge/tpuconfigurat/",
        query: { id: this.previewid, task: true, data: this.form },
      this.$modal.confirm("是否前往修改任务模板详细内容?").then(() => {
        this.drawermb = false; //选择模板弹窗
        this.previewtf = false; //预览
        this.$router.push({
          path: "/knowledge/tpuconfigurat/",
          query: { id: this.previewid, task: true, data: this.form },
        });
      });
    },
    // 保存/更新任务模板
vue.config.js
@@ -35,7 +35,7 @@
    proxy: {
      // detail: https://cli.vuejs.org/config/#devserver-proxy
      [process.env.VUE_APP_BASE_API]: {
        // target: `http://192.168.68.111:8095`,
        // target: `https://www.health-y.cn/lssf`,
        // target: `http://10.202.20.185:8095`,
        // target: `http://9.208.2.190:8095`,
        target:`http://localhost:8095`,