su
su1124
2024-01-30 b0d733958a618b9fc5ce0ee2fee5d2b146a7a748
su
7个文件已修改
1个文件已添加
197 ■■■■■ 已修改文件
src/api/system/user.js 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/Packagese/index.vue 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/jianqianwenzhen/index.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/yonghu/index.vue 146 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/hosp/history/index.vue 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/hosp/project/index.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/tijian/index.vue 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/user/index.vue 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/system/user.js
@@ -155,4 +155,13 @@
    method: 'get',
    params: query
  })
}
// 查询用户列表
export function list(query) {
  return request({
    url: '/hosp/usermid/list',
    method: 'get',
    params: query
  })
}
src/components/Packagese/index.vue
@@ -88,16 +88,22 @@
    },
    methods: {
        getAllList(){
            this.loading = true;
            this.openone = true
            getTjHyBgList(this.queryParams).then(res => {
                this.dataList = res.data
                this.loading = false;
            })
        },
        getList() {
            this.loading = true;
            this.openone = false
            Packagestlist(this.queryParams).then(res => {
                this.dataList = res.rows
                this.loading = false;
            })
        },
        handleQuery() {
            // if(this.openone == false){
src/components/jianqianwenzhen/index.vue
@@ -1031,6 +1031,7 @@
      // })
      updateHistory(this.form).then((response) => {
        this.$modal.msgSuccess("修改成功");
        this.form = response.data;
      });
    },
  },
src/components/yonghu/index.vue
New file
@@ -0,0 +1,146 @@
<template>
    <div>
        <el-dialog :title="title" :visible.sync="open" width="1200px" append-to-body>
            <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="68px">
                <el-form-item label="编码" prop="pacCode">
                    <el-input v-model="queryParams.pacCode" placeholder="请输入编码" clearable
                        @keyup.enter.native="handleQuery" style="width: 120px;" />
                </el-form-item>
                <el-form-item label="名称" prop="pacName">
                    <el-input v-model="queryParams.pacName" placeholder="请输入名称" clearable
                        @keyup.enter.native="handleQuery" style="width: 130px;" />
                </el-form-item>
                <el-form-item label="内容" prop="pacRemark">
                    <el-input v-model="queryParams.pacRemark" placeholder="请输入内容" clearable
                        @keyup.enter.native="handleQuery" style="width: 130px;" />
                </el-form-item>
                <el-form-item>
                    <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
                </el-form-item>
            </el-form>
            <el-table :data="dataList" ref="elTable" v-loading="loading" @selection-change="handleSelectionChange" border
                height="320px">
                <el-table-column type="selection" width="40" align="center" />
                <el-table-column label="用户ID"  prop="xh" align="id" />
                <el-table-column label="用户工号" align="center" prop="userName" />
                <el-table-column label="姓名" align="center" prop="staffName" width="100px" />
                <el-table-column label="性别" align="center" prop="sex" width="100px" >
                     <template slot-scope="scope" >
                        <dict-tag :options="dict.type.sys_user_sex" :value="scope.row.sex" />
                      </template>
                </el-table-column>
                <el-table-column label="身份证号" align="center" prop="cardNo" />
                <el-table-column label="手机号码" align="center" prop="phonenumber" />
                <el-table-column label="医保编码" align="center" prop="medicalId" />
                <el-table-column label="专家资格证号" align="center" prop="phaCertifiedNo" />
                <el-table-column label="处方职称" align="center" prop="cftitle" />
                <el-table-column label="部门ID" align="center" prop="deptId" />
                <el-table-column label="对应科室名称" align="center" prop="deptName" />
                <el-table-column label="签名图片" align="center" prop="qmtpbm" >
                    <template slot-scope="scope">
                        <image-preview :src="scope.row.qmtpbm" :width="50" :height="50" />
                    </template>
                </el-table-column>
                <el-table-column label="人员类别" align="center" prop="kindCode" />
                <el-table-column label="数据状态" align="center" prop="effective" />
            </el-table>
            <span slot="footer" class="dialog-footer">
                <el-button @click="open = false">取 消</el-button>
                <el-button type="primary" @click="handleOk">确 定</el-button>
            </span>
        </el-dialog>
    </div>
</template>
<script>
import {list} from "@/api/system/user";
export default {
    name: 'Packages',
    // props: {
    //     row: {
    //         type: Object,
    //     }
    // },
    dicts: [
    "sys_user_sex",
  ],
    data() {
        return {
            open: false,
            openone:false,
            // 弹出层标题
            title: "",
            dataList: [],
            // 遮罩层
            loading: false,
            form: {
                desc: ""
            },
            queryParams: {
                pacCode: "",
                pacName: "",
                pacRemark: "",
            },
            list: [],
            fList: {}
        };
    },
    watch: {
        // 'row'(val, newVla) {
        //     console.log(val,newVla)
        //     this.fList = val
        //     console.log(this.fList);
        // }
    },
    mounted() {
        // this.getList()
    },
    created() {
        // this.getList()
    },
    methods: {
        getAllList(){
            this.openone = true
            newGetTjPat(this.queryParams).then(res => {
                this.dataList = res.data
            })
        },
        getList() {
            this.openone = false
            list(this.queryParams).then(res => {
                this.dataList = res.rows
            })
        },
        handleQuery() {
            if(this.openone == false){
                this.getList()
            }else  if(this.openone == true){
                this.getAllList()
            }
        },
        handleSelectionChange(selection) {
            if (selection.length > 1) {
                this.$refs.elTable.clearSelection(); // 清空所有选择
                this.$refs.elTable.toggleRowSelection(selection.pop()); // 设置选择项
            }
            this.list = selection;
            console.log(this.list)
        },
        handleOk() {
            this.open = false
            if (this.list.length == 1) {
                this.$emit('add',this.list);
            }
        }
    }
}
</script>
<style scoped></style>
src/views/hosp/history/index.vue
@@ -138,9 +138,7 @@
        </div>
      </div>
      <div class="hist3">
        <jianqianwenzhen
          :jianqianwenzhendata="jianqianwenzhendata"
        ></jianqianwenzhen>
        <jianqianwenzhen :jianqianwenzhendata="jianqianwenzhendata"></jianqianwenzhen>
      </div>
    </div>
src/views/hosp/project/index.vue
@@ -1005,7 +1005,7 @@
    handleQuerys() {
      this.$refs.aaa.open = true;
      this.$refs.aaa.getAllList();
      this.$refs.aaa.title = "证件字典";
      this.$refs.aaa.title = "数据字典";
    },
    handleChanges(param1) {
      console.log(param1);
src/views/system/tijian/index.vue
@@ -202,6 +202,11 @@
              </el-form-item>
            </el-col>
            <el-col :span="7">
              <el-form-item label="文化程度" prop="wenHua" style="display: flex">
                <el-input style="width: 100%" :disabled="isDisabled" v-model="form.wenHua" placeholder="请输入文化程度" />
              </el-form-item>
            </el-col>
            <el-col :span="7">
              <el-button v-show="lishi" type="primary" @click="cope" size="mini">一键复制</el-button>
              <el-button type="primary" @click="inputChanges" v-show="lishi" size="mini"
                :disabled="confirm">历史体检记录</el-button>
src/views/system/user/index.vue
@@ -192,6 +192,13 @@
          <el-input v-model="form.userId" placeholder="请输入用户id" />
        </el-form-item> -->
          <el-form-item label="用户名称" prop="nickName">
             <span
            slot="label"
            style="display: inline-block; border-bottom: 2px solid blue"
            @click="handlePackage"
          >
            用户名称
          </span>
            <el-input v-model="form.nickName" placeholder="请输入用户昵称" maxlength="30" style="width: 130px" />
          </el-form-item>
          <el-form-item label="用户工号" prop="userName">
@@ -672,10 +679,12 @@
        <el-button type="primary" @click="tijiao">确 定</el-button>
      </span>
    </el-dialog>
    <yonghu ref="aaa" @add="handleChanges" />
  </div>
</template>
<script>
import yonghu from "@/components/yonghu";
import {
  listUser,
  getUser,
@@ -714,7 +723,7 @@
    "dict_user_work",
    "dict_qhdm",
  ],
  components: { Treeselect },
  components: { Treeselect, yonghu },
  data() {
    let checkPhoneNum = (rule, value, callback) => {
         console.log( value)
@@ -985,6 +994,19 @@
      this.queryParams.deptId = data.id;
      this.handleQuery();
    },
     handlePackage() {
      this.$refs.aaa.open = true;
      this.$refs.aaa.getList();
      this.$refs.aaa.title = "数据字典";
    },
    handleChanges(param1) {
      this.form.nickName = param1[0].staffName;
      // this.form.hisPacId = param1[0].pacId;
      // if (param1[0].price) {
      //   this.form.counterPrice = param1[0].price;
      //   this.form.retailPrice = param1[0].price;
      // }
    },
    // 用户状态修改
    handleStatusChange(row) {
      let text = row.status === "0" ? "启用" : "停用";