WXL
2025-04-11 ee8f1a0138b4b7de2389e31d2eb186167a1548f7
测试完成
已修改10个文件
115 ■■■■■ 文件已修改
src/store/getters.js 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/store/modules/user.js 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/followvisit/discharge/index.vue 58 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/followvisit/record/detailpage/index.vue 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/patient/patient/authRole.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/patient/patient/behospitalized.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/patient/patient/hospital.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/patient/patient/outpatient.vue 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/patient/patient/profile/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/user/authRole.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/store/getters.js
@@ -14,6 +14,7 @@
  permissions: (state) => state.user.permissions,
  belongWards: (state) => state.user.belongWards,
  belongDepts: (state) => state.user.belongDepts,
  hisUserId: (state) => state.user.hisUserId,
  permission_routes: (state) => state.permission.routes,
  topbarRouters: (state) => state.permission.topbarRouters,
  defaultRoutes: (state) => state.permission.defaultRoutes,
src/store/modules/user.js
@@ -7,6 +7,7 @@
    name: '',
    Id: '',
    avatar: '',
    hisUserId:'',
    belongWards:[],
    belongDepts:[],
    roles: [],
@@ -106,6 +107,9 @@
    SET_leavehospitaldistrictcodes: (state, belongWards) => {
      state.belongWards = belongWards
    },
    SET_hisUserId: (state, hisUserId) => {
      state.hisUserId = hisUserId
    },
    SET_leaveldeptcodes: (state, belongDepts) => {
      state.belongDepts = belongDepts
    }
@@ -147,8 +151,8 @@
            commit('SET_ROLES', ['ROLE_DEFAULT'])
          }
          commit('SET_NAME', user.userName)
          console.log(user.userId,'user1');
          commit('SET_Id', user.userId)
          commit('SET_hisUserId', user.hisUserId)
          commit('SET_leavehospitaldistrictcodes', user.belongWards)
          commit('SET_leaveldeptcodes', user.belongDepts)
          commit('SET_AVATAR', avatar)
src/views/followvisit/discharge/index.vue
@@ -167,21 +167,7 @@
            >新增</el-button
          >
        </el-col>
        <el-col :span="1.5">
          <div class="documentf">
            <div class="document">
              <el-button
                type="warning"
                plain
                icon="el-icon-upload2"
                size="medium"
                @click="handleExport"
                v-hasPermi="['system:user:export']"
                >导出</el-button
              >
            </div>
          </div>
        </el-col>
        <el-col :span="1.5">
          <div class="documentf">
            <div class="document">
@@ -219,6 +205,19 @@
                size="medium"
                @click="buidegetTasklist()"
                >待办服务</el-button
              >
            </div>
          </div>
        </el-col>
        <el-col :span="1.5">
          <div class="documentf">
            <div class="document">
              <el-button
                type="primary"
                plain
                size="medium"
                @click="affiliation()"
                >本人所属服务</el-button
              >
            </div>
          </div>
@@ -751,6 +750,13 @@
        <!-- <el-form-item label="即刻发送">
          <el-switch v-model="zcform.delivery"></el-switch>
        </el-form-item> -->
        <el-form-item label="出院时间">
          <el-input
            style="width: 400px"
            disabled
            v-model="zcform.endtime"
          ></el-input>
        </el-form-item>
        <el-form-item label="随访完成时间" prop="date1">
          <el-date-picker
            type="date"
@@ -1078,16 +1084,11 @@
    /** 查询随访服务列表 */
    getList(refresh) {
      // 默认全部
      console.log(this.topqueryParams,'topqueryParams');
      console.log(store.getters.belongDepts,'store.getters.belongDepts');
      if (this.topqueryParams.searchscope == 3) {
        this.topqueryParams.leaveldeptcodes = store.getters.belongDepts.map(
          (obj) => obj.deptCode
        );
      console.log('3');
        this.topqueryParams.leavehospitaldistrictcodes =
          store.getters.belongWards.map((obj) => obj.districtCode);
      }
@@ -1146,6 +1147,11 @@
        });
        this.total = response.total;
      });
    },
    affiliation(){
      this.topqueryParams.drcode=store.getters.hisUserId;
      this.topqueryParams.nurseId=store.getters.hisUserId;
      this.getList(1);
    },
    buidegetTasklist(type) {
      if (this.topqueryParams.searchscope == 3) {
@@ -1306,11 +1312,14 @@
      this.topqueryParams = {
        pageNum: 1,
        pageSize: 10,
        serviceType: 2,
        sort: 2,
        sendstate: 2,
        searchscope: 2,
      };
        sort: 2, //0 出院时间(正序)    1 出院时间(倒序)   2 发送时间(正序)    3 发送时间(倒序)
        serviceType: 2,
        searchscope: 3,
        scopetype: [],
        leaveldeptcodes: [],
        leavehospitaldistrictcodes: [],
      },
      this.handleQuery(1);
    },
    // 多选框选中数据
@@ -1483,6 +1492,7 @@
    // 再次随访
    followupvisit(row) {
      this.zcform = row;
      this.zcform.endtime = this.formatTime(this.zcform.endtime);
      this.dialogFormVisible = true;
    },
    onSubmit() {},
src/views/followvisit/record/detailpage/index.vue
@@ -565,6 +565,13 @@
            v-model="form.leavehospitaldistrictname"
          ></el-input>
        </el-form-item>
        <el-form-item label="出院时间">
          <el-input
            style="width: 400px"
            disabled
            v-model="form.endtime"
          ></el-input>
        </el-form-item>
        <el-form-item label="随访方式" prop="resource">
          <el-radio-group v-model="form.resource">
@@ -654,7 +661,7 @@
    this.patid = this.$route.query.patid;
    this.Voicetype = this.$route.query.Voicetype;
    this.serviceType = this.$route.query.serviceType;
console.log(this.id, this.patid);
    console.log(this.id, this.patid);
    this.getTaskservelist(this.id);
  },
@@ -853,7 +860,7 @@
    // 获取患者记录
    getTaskservelist(id) {
      console.log(id,'idsub');
      console.log(id, "idsub");
      if (id) {
        this.Whetherall = false;
@@ -867,12 +874,11 @@
      }).then((res) => {
        if (res.code == 200) {
          this.form = res.rows[0].serviceSubtaskList[0];
          console.log(this.form, "this.form");
          this.logsheetlist = res.rows[0].serviceSubtaskList;
          this.templateid = this.logsheetlist[0].templateid;
          const targetDate = new Date(this.form.longSendTime); // 目标日期
          const now = new Date(); // 当前时间
          this.form.endtime = this.formatTime(this.form.endtime);
          if (now < targetDate && this.form.sendstate == 2) {
            this.$confirm("当前服务未到发送时间请谨慎修改", "提示", {
              confirmButtonText: "确定",
@@ -910,7 +916,7 @@
      });
    },
    Editsingletasksonyic(sendstate) {
      console.log(sendstate,'sendstate');
      console.log(sendstate, "sendstate");
      let objson = {};
      getTaskservelist({
@@ -1003,7 +1009,7 @@
        if (valid) {
          let form = structuredClone(this.form);
          form.longSendTime = this.formatTime(form.date1);
          form.finishtime = '';
          form.finishtime = "";
          if (form.resource) {
            if (form.resource == 2) {
              form.serviceType = 10;
src/views/patient/patient/authRole.vue
@@ -101,8 +101,8 @@
    /** 提交按钮 */
    submitForm() {
      const userId = this.form.userId;
      const roleIds = this.roleIds.join(",");
      updateAuthRole({ userId: userId, roleIds: roleIds }).then((response) => {
      // const roleIds = this.roleIds.join(",");
      updateAuthRole({ userId: userId, roleIds: this.roleIds }).then((response) => {
        this.$modal.msgSuccess("授权成功");
        this.close();
      });
src/views/patient/patient/behospitalized.vue
@@ -598,10 +598,10 @@
    getList() {
      this.loading = true;
      if (this.queryParams.searchscope == 3) {
        this.topqueryParams.leaveldeptcodes = store.getters.belongDepts.map(
        this.queryParams.leaveldeptcodes = store.getters.belongDepts.map(
          (obj) => obj.deptCode
        );
        this.topqueryParams.leavehospitaldistrictcodes =
        this.queryParams.leavehospitaldistrictcodes =
          store.getters.belongWards.map((obj) => obj.districtCode);
      }
      listpatient(this.queryParams).then((response) => {
src/views/patient/patient/hospital.vue
@@ -580,10 +580,10 @@
    /** 查询患者列表 */
    getList() {
      if (this.queryParams.searchscope == 3) {
        this.topqueryParams.leaveldeptcodes = store.getters.belongDepts.map(
        this.queryParams.leaveldeptcodes = store.getters.belongDepts.map(
          (obj) => obj.deptCode
        );
        this.topqueryParams.leavehospitaldistrictcodes =
        this.queryParams.leavehospitaldistrictcodes =
          store.getters.belongWards.map((obj) => obj.districtCode);
      }
      this.loading = true;
src/views/patient/patient/outpatient.vue
@@ -21,9 +21,9 @@
              @keyup.enter.native="handleQuery"
            />
          </el-form-item>
          <el-form-item label="门诊号" prop="patid">
          <el-form-item label="门诊号" prop="outhospno">
            <el-input
              v-model="queryParams.patid"
              v-model="queryParams.outhospno"
              placeholder="请输入门诊号"
              clearable
              style="width: 250px"
@@ -162,8 +162,8 @@
          <el-table-column
            label="门诊号"
            align="center"
            key="patid"
            prop="patid"
            key="outhospno"
            prop="outhospno"
          />
          <el-table-column
                label="姓名"
@@ -584,10 +584,10 @@
    getList() {
      this.loading = true;
      if (this.queryParams.searchscope == 3) {
        this.topqueryParams.leaveldeptcodes = store.getters.belongDepts.map(
        this.queryParams.leaveldeptcodes = store.getters.belongDepts.map(
          (obj) => obj.deptCode
        );
        this.topqueryParams.leavehospitaldistrictcodes =
        this.queryParams.leavehospitaldistrictcodes =
          store.getters.belongWards.map((obj) => obj.districtCode);
      }
      listPatouthosp(this.queryParams).then((response) => {
src/views/patient/patient/profile/index.vue
@@ -376,8 +376,8 @@
          <el-table-column
            label="门诊号"
            align="center"
            key="patid"
            prop="patid"
            key="outhospno"
            prop="outhospno"
          />
          <el-table-column
            label="姓名"
src/views/system/user/authRole.vue
@@ -101,8 +101,8 @@
    /** 提交按钮 */
    submitForm() {
      const userId = this.form.userId;
      const roleIds = this.roleIds.join(",");
      updateAuthRole({ userId: userId, roleIds: roleIds }).then((response) => {
      // const roleIds = this.roleIds.join(",");
      updateAuthRole({ userId: userId, roleIds: this.roleIds }).then((response) => {
        this.$modal.msgSuccess("授权成功");
        this.close();
      });