WXL
2023-11-21 6d3e75d248256fe9860beb91161265af3b39e982
提交信息
已修改8个文件
166 ■■■■■ 文件已修改
src/api/patient/homepage.js 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/smartorpor/pat_archive.js 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/system/tag.js 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/followvisit/tasklist/FollowupDetails/index.vue 44 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/followvisit/tasklist/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/patient/patient/index.vue 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/label/index.vue 40 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
vue.config.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/patient/homepage.js
@@ -2,13 +2,13 @@
import { parseStrEmpty } from "@/utils/ruoyi";//处理字符串,und,null转换为'';
// 查询患者列表
// export function listpatient(query) {
//   return request({
//     url: '/smartor/patarchive/list',
//     method: 'get',
//     params: query
//   })
// };
export function listpatient(query) {
  return request({
    url: '/smartor/patarchive/list',
    method: 'get',
    params: query
  })
};
// 用户信息查询患者列表
export function messagelistpatient(data) {
  return request({
src/api/smartorpor/pat_archive.js
@@ -1,6 +1,28 @@
    /*患者档案API接口
          patid// 自增ID     name// 姓名     sex// 性别   1:男  2:女    iccardno// 证件号码     birthdate// 生日     age// 年龄     source// 来源     archivetime// 建档时间     archiveby// 建档人     telcode// 手机号码     relativetelcode// 亲属号码     iccardtype// 证件类型     orgid// 机构ID     openid// 微信openid     del_flag// 删除标记     update_by// 更新人     update_time// 更新时间     create_by// 创建人     create_time// 创建时间     isupload// 上传标记     upload_time// 上传时间     pid//父ID    guid//GUID
          patid// 自增ID
   name// 姓名
   sex// 性别   1:男  2:女
   iccardno// 证件号码
   birthdate// 生日
   age// 年龄
   source// 来源
   archivetime// 建档时间
   archiveby// 建档人
   telcode// 手机号码
   relativetelcode// 亲属号码
   iccardtype// 证件类型
   orgid// 机构ID
   openid// 微信openid
   del_flag// 删除标记
   update_by// 更新人
   update_time// 更新时间
   create_by// 创建人
   create_time// 创建时间
   isupload// 上传标记
   upload_time// 上传时间
   pid//父ID
   guid//GUID
    */
    import request from '@/utils/request'
src/api/system/tag.js
@@ -3,8 +3,8 @@
// 查询标签列表
export function listTag(query) {
  return request({
    url: '/system/tag/list',
    method: 'get',
    url: '/base/tag/list',
    method: 'post',
    params: query
  })
}
@@ -12,7 +12,7 @@
// 查询标签详细
export function getTag(tagid) {
  return request({
    url: '/system/tag/' + tagid,
    url: '/base/tag/' + tagid,
    method: 'get'
  })
}
@@ -20,7 +20,7 @@
// 新增标签
export function addTag(data) {
  return request({
    url: '/system/tag',
    url: '/base/tag',
    method: 'post',
    data: data
  })
@@ -29,7 +29,7 @@
// 修改标签
export function updateTag(data) {
  return request({
    url: '/system/tag',
    url: '/base/tag',
    method: 'put',
    data: data
  })
@@ -38,7 +38,7 @@
// 删除标签
export function delTag(tagid) {
  return request({
    url: '/system/tag/' + tagid,
    url: '/base/tag/' + tagid,
    method: 'delete'
  })
}
src/views/followvisit/tasklist/FollowupDetails/index.vue
@@ -138,7 +138,7 @@
                        placeholder="请选择"
                      >
                        <el-option
                          v-for="item in topicoptions"
                          v-for="item in taskoptions"
                          :key="item.value"
                          :label="item.label"
                          :value="item.value"
@@ -181,11 +181,11 @@
                  <el-row :gutter="10" class="mb8">
                    <el-col :span="1.5">
                      <el-select
                        v-model="topqueryParams.topic"
                        v-model="tasktopic"
                        placeholder="请选择新增类型"
                      >
                        <el-option
                          v-for="item in topicoptions"
                          v-for="item in taskoptions"
                          :key="item.value"
                          :label="item.label"
                          :value="item.value"
@@ -199,23 +199,13 @@
                        plain
                        icon="el-icon-plus"
                        size="medium"
                        :disabled="!tasktopic"
                        @click="handleAdd"
                        v-hasPermi="['system:user:add']"
                        >新增</el-button
                      >
                    </el-col>
                    <el-col :span="1.5">
                      <el-button
                        type="success"
                        plain
                        icon="el-icon-edit"
                        size="medium"
                        :disabled="single"
                        @click="handleUpdate"
                        v-hasPermi="['system:user:edit']"
                        >修改</el-button
                      >
                    </el-col>
                    <el-col :span="1.5">
                      <el-button
                        type="danger"
@@ -1048,6 +1038,7 @@
      userList: null,
      patientuserList: null,
      sonuserList: null,
      tasktopic: null, //新增类型
      form: {
        name: "",
        region: "",
@@ -1080,6 +1071,24 @@
          label: "北京烤鸭",
        },
      ],
      taskoptions: [
        {
          value: "1",
          label: "通知",
        },
        {
          value: "2",
          label: "随访",
        },
        {
          value: "3",
          label: "问卷",
        },
        {
          value: "4",
          label: "宣教",
        },
      ],
      quote: false,
    };
  },
@@ -1087,6 +1096,7 @@
  created() {
    this.Addsubtask();
    this.Getsubtask();
  },
  methods: {
@@ -1107,6 +1117,7 @@
    },
    // 子任务一级弹框
    handleAdd() {
      this.multiple = true;
      listsvr_prjtaskline(this.deliverytopqueryParams).then((response) => {
        console.log(response);
        this.sonuserList = response.rows;
@@ -1117,6 +1128,7 @@
    },
    // 子任务二级弹框
    handleAddpatient() {
      console.log(this.multiple);
      listpat_archive(this.patientqueryParams).then((response) => {
        console.log(response);
        this.patientuserList = response.rows;
@@ -1130,8 +1142,10 @@
    handleExport() {},
    // 多选框选中数据
    handleSelectionChange(selection) {
      this.ids = null;
      this.ids = selection.map((item) => item.patid).join(",");
      // let result = this.ids.join(",");
      this.multiple = !selection.length;
      console.log(this.ids);
    },
    getList() {},
src/views/followvisit/tasklist/index.vue
@@ -156,7 +156,7 @@
          prop="describe"
        />
        <el-table-column
          label="任务总数"
          label="子任务总数"
          align="center"
          key="nickName"
          prop="nickName"
@@ -579,7 +579,7 @@
    /** 查询门诊随访列表 */
    getList() {
      this.loading = true;
      listsvr_prj(this.addDateRange(this.topqueryParams, this.dateRange)).then(
      listUser(this.addDateRange(this.topqueryParams, this.dateRange)).then(
        (response) => {
          console.log(response);
          this.userList = response.rows;
src/views/patient/patient/index.vue
@@ -478,8 +478,16 @@
  updatepat_archive,
  delpat_archive,
} from "@/api/smartorpor/pat_archive";
import { listbase_tag } from "@/api/smartorpor/base_tag";
import {
  messagelistpatient,
  alterpatient,
  addpatient,
  particularpatient,
  deletepatient,
  Exporterrorpatient,
  toleadpatient,
} from "@/api/patient/homepage";
import { listtag } from "@/api/system/label";
import { getToken } from "@/utils/auth";
import Treeselect from "@riophae/vue-treeselect";
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
@@ -634,7 +642,7 @@
    /** 查询患者列表 */
    getList() {
      this.loading = true;
      listpat_archive(this.queryParams).then((response) => {
      messagelistpatient(this.queryParams).then((response) => {
        console.log(response);
        this.userList = response.rows;
        this.total = response.total;
@@ -644,7 +652,7 @@
    /** 查询标签列表 */
    gettabList() {
      const queryParams = {};
      listbase_tag().then((response) => {
      listtag().then((response) => {
        console.log(response);
        this.optionstag = response.rows;
      });
@@ -718,7 +726,7 @@
    handleUpdate(row) {
      console.log(row);
      const userIds = row.patid || this.ids;
      getpat_archive(userIds).then((response) => {
      particularpatient(userIds).then((response) => {
        console.log(response);
        this.form = response.data;
      });
@@ -729,7 +737,7 @@
    //修改/新增患者
    submitForm() {
      if (this.amendtag) {
        updatepat_archive(this.form)
        alterpatient(this.form)
          .then((response) => {
            console.log(response);
          })
@@ -738,7 +746,7 @@
            this.$modal.msgSuccess("修改成功");
          });
      } else {
        addpat_archive(this.form)
        addpatient(this.form)
          .then((response) => {
            console.log(response);
          })
@@ -758,7 +766,7 @@
      this.$modal
        .confirm('是否确认删除用户编号为"' + userIds + '"的数据项?')
        .then(function () {
          return delpat_archive(userIds);
          return deletepatient(userIds);
        })
        .then(() => {
          this.getList();
src/views/system/label/index.vue
@@ -195,8 +195,8 @@
                <template slot-scope="scope">
                  <el-switch
                    v-model="scope.row.isupload"
                    :active-value="'1'"
                    :inactive-value="'0'"
                    :active-value="1"
                    :inactive-value="0"
                    active-color="#13ce66"
                    @change="handleStatusChange(scope.row)"
                  ></el-switch>
@@ -325,7 +325,19 @@
</template>
<script>
import { changetagcategory } from "@/api/system/label";
import {
  changetagcategory,
  toamendtag,
  toamendtagcategory,
  addapitag,
  addtagcategory,
  detailstag,
  deletetag,
  deletetagcategory,
  exporttag,
  listtag,
  tagclassifylist,
} from "@/api/system/label";
import {
  listbase_tag,
  getbase_tag,
@@ -513,7 +525,7 @@
  methods: {
    /** 查询标签列表 */
    getList() {
      listbase_tag(this.addDateRange(this.queryParams)).then((response) => {
      listtag(this.addDateRange(this.queryParams)).then((response) => {
        console.log(response);
        this.total = response.total;
        this.userList = response.rows;
@@ -546,13 +558,13 @@
    // 添加/修改标签
    Maintenancetag() {
      if (this.lstamendtag) {
        updatebase_tag(this.addDateRange(this.tagform)).then((response) => {
        toamendtag(this.addDateRange(this.tagform)).then((response) => {
          console.log(response);
          this.lstamendtagVisible = false;
          this.getList();
        });
      } else {
        addbase_tag(this.addDateRange(this.tagform)).then((response) => {
        addapitag(this.addDateRange(this.tagform)).then((response) => {
          console.log(response);
          this.lstamendtagVisible = false;
@@ -570,7 +582,7 @@
    // 获取标签分类
    gitclasify() {
      listbase_tagcategory(this.addDateRange(this.forms)).then((response) => {
      tagclassifylist(this.addDateRange(this.forms)).then((response) => {
        console.log(response);
        this.numberlb = response.total;
        this.editableTabs = response.rows;
@@ -580,14 +592,14 @@
    submitsidecolumn() {
      if (this.amendtag) {
        this.classifyform.tagcategoryid = this.idds;
        updatebase_tagcategory(this.addDateRange(this.classifyform)).then(
        toamendtagcategory(this.addDateRange(this.classifyform)).then(
          (response) => {
            console.log(response);
            this.gitclasify();
          }
        );
      } else {
        addbase_tagcategory(this.addDateRange(this.classifyform)).then(
        addtagcategory(this.addDateRange(this.classifyform)).then(
          (response) => {
            console.log(response);
            this.gitclasify();
@@ -603,7 +615,7 @@
    //删除分类
    deletefenlei(row) {
      if (this.deleteVisible) {
        delbase_tagcategory(this.idds).then((response) => {
        deletetagcategory(this.idds).then((response) => {
          console.log(response);
          this.gitclasify();
        });
@@ -643,17 +655,17 @@
    // 标签状态修改
    handleStatusChange(row) {
      console.log(row.isupload);
      let text = row.isupload == "0" ? "停用" : "启用";
      let text = row.isupload == 0 ? "停用" : "启用";
      this.$modal
        .confirm('确认要"' + text + '""' + row.tagname + '"标签吗?')
        .then(function () {
          return updatebase_tag(row);
          return toamendtag(row);
        })
        .then(() => {
          this.$modal.msgSuccess(text + "成功");
        })
        .catch(function () {
          row.isupload = row.isupload == "0" ? "1" : "0";
          row.isupload = row.isupload == 0 ? 1 : 0;
        });
    },
    /** 搜索按钮操作 */
@@ -689,7 +701,7 @@
            : "是否确认删除选中的数据项?"
        )
        .then(function () {
          return delbase_tag(tagids);
          return deletetag(tagids);
        })
        .then(() => {
          this.getList();
vue.config.js
@@ -36,8 +36,8 @@
      // detail: https://cli.vuejs.org/config/#devserver-proxy
      [process.env.VUE_APP_BASE_API]: {
        // target1: `http://192.168.1.4:8080`,
        // target: `http://192.168.1.3:8080`,
        target: `http://www.hxsoft.com:8080`,
        target:`http://localhost:8080`,
        // target: `http://www.hxsoft.com:8080`,
        changeOrigin: true,
        pathRewrite: {
          ['^' + process.env.VUE_APP_BASE_API]: ''