浏览代码

老人信息和审核信息

chubiao 11 月之前
父节点
当前提交
cc30d1e324
共有 3 个文件被更改,包括 590 次插入1 次删除
  1. 44 0
      ruoyi-ui/src/api/lnst/shxx.js
  2. 8 1
      ruoyi-ui/src/views/lnst/lrxx/index.vue
  3. 538 0
      ruoyi-ui/src/views/lnst/shxx/index.vue

+ 44 - 0
ruoyi-ui/src/api/lnst/shxx.js

@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询老年食堂老人基本信息审核信息列表
+export function listShxx(query) {
+  return request({
+    url: '/lnst/shxx/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询老年食堂老人基本信息审核信息详细
+export function getShxx(id) {
+  return request({
+    url: '/lnst/shxx/' + id,
+    method: 'get'
+  })
+}
+
+// 新增老年食堂老人基本信息审核信息
+export function addShxx(data) {
+  return request({
+    url: '/lnst/shxx',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改老年食堂老人基本信息审核信息
+export function updateShxx(data) {
+  return request({
+    url: '/lnst/shxx',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除老年食堂老人基本信息审核信息
+export function delShxx(id) {
+  return request({
+    url: '/lnst/shxx/' + id,
+    method: 'delete'
+  })
+}

+ 8 - 1
ruoyi-ui/src/views/lnst/lrxx/index.vue

@@ -65,6 +65,11 @@
             v-if="user.userType !== '07' && ['1', '2'].includes(scope.row.lzzt)"
           >审核
           </el-button>
+          <el-button
+            size="mini" type="text" icon="el-icon-edit" v-hasPermi="['lnst:lrxx:checkList']"
+            @click="handleCheckRe(scope.row.id)"
+          >审核记录
+          </el-button>
           <el-button
             size="mini" type="text" icon="el-icon-edit" v-hasPermi="['lnst:lrxx:edit']"
             @click="handleUpdate(scope.row, 'edit')"
@@ -690,7 +695,9 @@ export default {
       this.insertOpen = true;
       this.title = '添加老人基本信息';
     },
-
+    handleCheckRe(id){
+      this.$router.push({path: 'shxx', query: {id: id}})
+    },
     /** 审核/修改 按钮操作 */
     handleUpdate(row, type) {
       this.showTjsh = false;

+ 538 - 0
ruoyi-ui/src/views/lnst/shxx/index.vue

@@ -0,0 +1,538 @@
+<template>
+  <div class="app-container">
+    <el-row :gutter="20">
+      <!--部门数据-->
+      <el-col :span="4" :xs="24" v-if="!queryParams.lrId">
+        <dept-tree-one
+          :isFive="false" :isJl="true" :expandOnClickNode="false" :showCheckbox="false"
+          :userId="user.userData.dept.parentId" @handleNodeClick="handleNodeClick">
+        </dept-tree-one>
+      </el-col>
+      <el-col :span="queryParams.lrId?24:20" :xs="24">
+        <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch"
+                 label-width="68px">
+
+
+          <el-form-item label="申请时间" prop="sqsjStart">
+            <el-date-picker
+              style="width: 215px" v-model="queryParams.sqsjStart"
+              value-format="yyyyMMdd" type="date" placeholder="申请时间开始"
+            ></el-date-picker>
+            至
+            <el-date-picker
+              style="width: 215px" v-model="queryParams.sqsjEnd"
+              value-format="yyyyMMdd" type="date" placeholder="申请时间结束"
+            ></el-date-picker>
+          </el-form-item>
+          <el-form-item label="老人姓名" prop="lrXm" v-if="!queryParams.lrId">
+            <el-input
+              v-model="queryParams.lrXm"
+              placeholder="请输入老人姓名"
+              clearable
+              @keyup.enter.native="handleQuery"
+            />
+          </el-form-item>
+          <el-form-item label="证件号码" prop="lrZjhm" v-if="!queryParams.lrId">
+            <el-input
+              v-model="queryParams.lrZjhm"
+              placeholder="请输入老人身份证件号码"
+              clearable
+              @keyup.enter.native="handleQuery"
+            />
+          </el-form-item>
+
+          <!--      <el-form-item label="出生日期" prop="lrCsrq">-->
+          <!--        <el-date-picker clearable-->
+          <!--                        v-model="queryParams.lrCsrq"-->
+          <!--                        type="date"-->
+          <!--                        value-format="yyyyMMdd"-->
+          <!--                        placeholder="请选择出生日期">-->
+          <!--        </el-date-picker>-->
+          <!--      </el-form-item>-->
+
+          <el-form-item label="联系电话" prop="lrCydh" v-if="!queryParams.lrId">
+            <el-input
+              v-model="queryParams.lrCydh"
+              placeholder="请输入联系电话"
+              clearable
+              @keyup.enter.native="handleQuery"
+            />
+          </el-form-item>
+
+          <el-form-item label="申请原因" prop="sqyy">
+            <el-input
+              v-model="queryParams.sqyy"
+              placeholder="请输入申请原因"
+              clearable
+              @keyup.enter.native="handleQuery"
+            />
+          </el-form-item>
+
+          <el-form-item label="状态" prop="lzzt">
+            <el-select v-model="queryParams.lzzt" placeholder="请选择状态" clearable>
+              <el-option
+                v-for="dict in dict.type.lr_info_check"
+                :key="dict.value"
+                :label="dict.label"
+                :value="dict.value"
+              />
+            </el-select>
+          </el-form-item>
+          <el-form-item>
+            <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
+            <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
+          </el-form-item>
+        </el-form>
+
+        <!--    <el-row :gutter="10" class="mb8">-->
+        <!--      <el-col :span="1.5">-->
+        <!--        <el-button-->
+        <!--          type="primary"-->
+        <!--          plain-->
+        <!--          icon="el-icon-plus"-->
+        <!--          size="mini"-->
+        <!--          @click="handleAdd"-->
+        <!--          v-hasPermi="['system:shxx:add']"-->
+        <!--        >新增-->
+        <!--        </el-button>-->
+        <!--      </el-col>-->
+        <!--      <el-col :span="1.5">-->
+        <!--        <el-button-->
+        <!--          type="warning"-->
+        <!--          plain-->
+        <!--          icon="el-icon-download"-->
+        <!--          size="mini"-->
+        <!--          @click="handleExport"-->
+        <!--          v-hasPermi="['system:shxx:export']"-->
+        <!--        >导出-->
+        <!--        </el-button>-->
+        <!--      </el-col>-->
+        <!--      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>-->
+        <!--    </el-row>-->
+
+        <el-table v-loading="loading" :data="shxxList">
+          <el-table-column label="序号" align="center">
+            <template slot-scope="scope">
+              {{ (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1 }}
+            </template>
+          </el-table-column>
+          <el-table-column label="老人姓名" align="center" prop="lrXm"/>
+          <el-table-column label="证件号码" align="center" prop="lrZjhm"/>
+          <!--      <el-table-column label="性别" align="center" prop="lrXb">-->
+          <!--      </el-table-column>-->
+          <!--      <el-table-column label="出生日期" align="center" prop="lrCsrq" width="180">-->
+          <!--        <template slot-scope="scope">-->
+          <!--          <span>{{ special(scope.row.lrCsrq) }}</span>-->
+          <!--        </template>-->
+          <!--      </el-table-column>-->
+          <!--      <el-table-column label="民族" align="center" prop="lrMz">-->
+          <!--      </el-table-column>-->
+          <!--      <el-table-column label="居住地址" align="center" prop="jzdz"/>-->
+          <el-table-column label="联系电话" align="center" prop="lrCydh"/>
+          <!--      <el-table-column label="老年人图片" align="center" prop="lrTx"/>-->
+          <!--      <el-table-column label="老人头像对比结果" align="center" prop="lrTxdb"/>-->
+          <!--      <el-table-column label="老人证件照" align="center" prop="lrZjz"/>-->
+          <el-table-column label="申请原因" align="center" prop="sqyy"/>
+          <el-table-column label="申请时间" align="center" prop="sqsj" width="180">
+            <template slot-scope="scope">
+              <span>{{ special(scope.row.sqsj, 'time') }}</span>
+            </template>
+          </el-table-column>
+          <el-table-column label="状态" align="center" prop="lzzt">
+            <template slot-scope="scope">
+              <dict-tag :options="dict.type.lr_info_check" :value="scope.row.lzzt"/>
+            </template>
+          </el-table-column>
+          <el-table-column label="审核时间" align="center" prop="spsj" width="180">
+            <template slot-scope="scope">
+              <span>{{ special(scope.row.spsj, 'time') }}</span>
+            </template>
+          </el-table-column>
+          <!--      <el-table-column label="审批意见" align="center" prop="spyj"/>-->
+
+          <el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right">
+            <template slot-scope="scope">
+              <el-button
+                size="mini"
+                type="text"
+                icon="el-icon-edit"
+                @click="handleUpdate(scope.row)"
+                v-hasPermi="['system:shxx:edit']"
+              >详情
+              </el-button>
+              <!--          <el-button-->
+              <!--            size="mini"-->
+              <!--            type="text"-->
+              <!--            icon="el-icon-delete"-->
+              <!--            @click="handleDelete(scope.row,scope.$index)"-->
+              <!--            v-hasPermi="['system:shxx:remove']"-->
+              <!--          >删除-->
+              <!--          </el-button>-->
+            </template>
+          </el-table-column>
+        </el-table>
+
+        <pagination
+          v-show="total>0"
+          :total="total"
+          :page.sync="queryParams.pageNum"
+          :limit.sync="queryParams.pageSize"
+          @pagination="getList"
+        />
+
+        <!--详情-->
+        <el-dialog v-dialog-drag :title="title" :visible.sync="open" width="1200px" append-to-body>
+          <el-scrollbar wrapClass="scrollbar-wrap">
+            <h3>基本信息</h3>
+            <table>
+              <tr>
+                <td>老人姓名</td>
+                <td>{{ form.lrXm }}</td>
+                <td>证件号码</td>
+                <td>{{ form.lrZjhm }}</td>
+                <td>联系电话</td>
+                <td>{{ form.lrCydh }}</td>
+
+              </tr>
+              <tr>
+                <td>性别</td>
+                <td>{{ form.lrXb }}</td>
+                <td>出生日期</td>
+                <td>{{ special(form.lrCsrq) }}</td>
+                <td>民族</td>
+                <td>{{ form.lrMz }}</td>
+              </tr>
+              <tr>
+                <td>户籍地址</td>
+                <td>{{ form.lrHjbcxx }}</td>
+                <td>居住地址</td>
+                <td>{{ form.jzdz }}</td>
+                <!--            <td>监护人姓名</td>-->
+                <!--            <td>{{ form.jhrxm }} </td>-->
+              </tr>
+              <tr>
+                <td>监护人姓名</td>
+                <td>{{ form.jhrxm }}</td>
+                <td>监护人联系电话</td>
+                <td>{{ form.jhrlxdh }}</td>
+              </tr>
+            </table>
+            <h3>照片信息</h3>
+            <table>
+              <tr>
+                <td>身份证人像面</td>
+                <td><img :src="form.lrZjz"></img></td>
+                <td>身份证国徽面</td>
+                <td><img :src="form.sfzzpb"></img></td>
+                <td>现场照片</td>
+                <td><img :src="form.lrTx"></img></td>
+              </tr>
+            </table>
+            <table>
+            </table>
+            <h3>特殊材料</h3>
+            <table>
+              <tr>
+                <td>是否特困</td>
+                <td>{{ translateDict('CZ035', form.istk) }}</td>
+                <td>是否低保</td>
+                <td>{{ translateDict('CZ035', form.isdb) }}</td>
+                <td>是否重残</td>
+                <td>{{ translateDict('CZ035', form.iszc) }}</td>
+              </tr>
+              <tr>
+                <td>特困证明</td>
+                <td><img :src="form.tkzm"></img></td>
+                <td>低保证明</td>
+                <td><img :src="form.dbzm"></img></td>
+                <td>重残证明</td>
+                <td><img :src="form.zczm"></img></td>
+              </tr>
+            </table>
+            <h3>审核信息</h3>
+            <table>
+              <tr>
+                <td>申请原因</td>
+                <td>{{ form.sqyy }}</td>
+                <td>申请时间</td>
+                <td>{{ special(form.sqsj) }}</td>
+                <td>状态</td>
+                <td>{{ translateDict('lr_info_check', form.lzzt) }}</td>
+              </tr>
+              <tr>
+                <td>审核结果</td>
+                <td>{{ form.spjg }}</td>
+                <td>审批意见</td>
+                <td>{{ form.spyj }}</td>
+                <td>审核时间</td>
+                <td>{{ special(form.spsj) }}</td>
+              </tr>
+            </table>
+          </el-scrollbar>
+          <div slot="footer" class="dialog-footer">
+            <el-button @click="cancel">取 消</el-button>
+          </div>
+        </el-dialog>
+      </el-col>
+    </el-row>
+  </div>
+</template>
+
+<script>
+import {addShxx, delShxx, getShxx, listShxx, updateShxx} from "@/api/lnst/shxx";
+import {chineseOne, idCard, Regular} from '@/utils/regular'
+import {mapState} from "vuex";
+
+export default {
+  name: "Shxx",
+  dicts: ['C0009', 'CH051', 'C0007', 'lr_info_check', 'CZ035'],
+  data() {
+    return {
+      // 遮罩层
+      loading: true,
+      submitFormLoading: false,
+      // 选中数组
+      ids: [],
+      // 非单个禁用
+      single: true,
+      // 非多个禁用
+      multiple: true,
+      // 显示搜索条件
+      showSearch: true,
+      // 总条数
+      total: 0,
+      // 老年食堂老人基本信息审核信息表格数据
+      shxxList: [],
+      // 弹出层标题
+      title: "",
+      // 是否显示弹出层
+      open: false,
+      // 查询参数
+      queryParams: {
+        pageNum: 1,
+        pageSize: 10,
+        sqsjStart: null,
+        sqsjEnd: null,
+        lrXm: null,
+        lrZjhm: null,
+        lrCydh: null,
+        sqyy: null,
+        lzzt: null,
+      },
+      // 表单参数
+      form: {},
+      // 表单校验
+      rules: {
+        lrId: [
+          {required: true, message: "基本信息id不能为空", trigger: "blur"},
+        ],
+        lrZjhm: [
+          {required: true, message: "老人身份证件号码不能为空", trigger: "blur"},
+          {max: 72, message: '老人身份证件号码不能超过72个字符', trigger: 'blur'},
+        ],
+        lrJmzjhm: [
+          {max: 72, message: '老人加密证件号码不能超过72个字符', trigger: 'blur'},
+        ],
+        lrXm: [
+          {required: true, message: "老人姓名不能为空", trigger: "blur"},
+          {validator: chineseOne, trigger: 'blur'},
+        ],
+        lrHjdz: [
+          {max: 36, message: '户籍地址不能超过36个字符', trigger: 'blur'},
+        ],
+        lrCydh: [
+          {max: 54, message: '常用联系电话不能超过54个字符', trigger: 'blur'},
+        ],
+        lrTx: [
+          {max: 100, message: '老年人图片不能超过100个字符', trigger: 'blur'},
+        ],
+        sqyy: [
+          {max: 72, message: '申请原因不能超过72个字符', trigger: 'blur'},
+        ],
+        spjg: [
+          {max: 2, message: '审核结果不能超过2个字符', trigger: 'blur'},
+        ],
+        createBmjsc: [
+          {max: 60, message: '部门检索串不能超过60个字符', trigger: 'blur'},
+        ],
+        createQhjsc: [
+          {max: 80, message: '区划检索串不能超过80个字符', trigger: 'blur'},
+        ],
+        state: [
+          {required: true, message: "数据状态不能为空", trigger: "blur"},
+        ]
+      }
+    };
+  },
+  computed: {
+    ...mapState(["user"]),
+  },
+  created() {
+    if (this.$route.query.id) {
+      this.queryParams.lrId = this.$route.query.id
+    }
+    this.queryParams.lrHjdz = this.user.userData.dept.locationCode
+    this.getList();
+  },
+  methods: {
+    handleNodeClick(data) {
+      this.queryParams.lrHjdz = data.code;
+      this.getList();
+    },
+    translateDict(type, value) {
+      return this.selectDictLabel(this.dict.type[type], value)
+    },
+    /** 查询老年食堂老人基本信息审核信息列表 */
+    getList() {
+      this.loading = true;
+      this.queryParams.params = {};
+      this.queryParams.params["sqsjStart"] = this.queryParams.sqsjStart || '';
+      this.queryParams.params["sqsjEnd"] = this.queryParams.sqsjEnd || '';
+
+      listShxx(this.queryParams).then(response => {
+        this.shxxList = response.rows;
+        this.total = response.total;
+        this.loading = false;
+      });
+    },
+    // 取消按钮
+    cancel() {
+      this.open = false;
+      this.reset();
+    },
+    // 表单重置
+    reset() {
+      this.submitFormLoading = false;
+      this.form = {
+        id: null,
+        lrId: null,
+        lrZjhm: null,
+        lrJmzjhm: null,
+        xslrZjhm: null,
+        lrXm: null,
+        lrXb: null,
+        lrCsrq: null,
+        lrMz: null,
+        lrHjdz: null,
+        lrHjbcxx: null,
+        lrCydh: null,
+        lrTx: null,
+        lrTxdb: null,
+        lrZjz: null,
+        sqyy: null,
+        sqsj: null,
+        spsj: null,
+        spjg: null,
+        spyj: null,
+        lzzt: null,
+        createBmjsc: null,
+        createQhjsc: null,
+        state: null
+      };
+      this.resetForm("form");
+    },
+    /** 搜索按钮操作 */
+    handleQuery() {
+      this.queryParams.pageNum = 1;
+      this.getList();
+    },
+    /** 重置按钮操作 */
+    resetQuery() {
+      this.resetForm("queryForm");
+      this.handleQuery();
+    },
+    // 多选框选中数据
+    handleSelectionChange(selection) {
+      this.ids = selection.map(item => item.id)
+      this.single = selection.length !== 1
+      this.multiple = !selection.length
+    },
+    /** 新增按钮操作 */
+    handleAdd() {
+      this.reset();
+      this.open = true;
+      this.title = "添加老年食堂老人基本信息审核信息";
+    },
+    /** 修改按钮操作 */
+    handleUpdate(row) {
+      this.reset();
+      const id = row.id || this.ids
+      getShxx(id).then(response => {
+        this.form = response.data;
+        /****** sks 需要改动的地方 start ******/
+        this.copyForm = this.deepCopy(response.data)
+        /****** sks 需要改动的地方 end ******/
+        this.open = true;
+        this.title = "老年食堂老人审核信息";
+      });
+    },
+    /** 提交按钮 */
+    submitForm() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          this.submitFormLoading = true;
+          if (this.form.id != null) {
+            /****** sks 需要改动的地方 start ******/
+            let formData = this.comparisonObject(this.form, this.copyForm);
+            if (formData) {
+              updateShxx({...formData, id: this.form.id}).then(response => {
+                this.$modal.msgSuccess("修改成功");
+                this.open = false;
+                this.shxxList = this.dataReplacement(this.shxxList, this.form.id, formData);
+                // this.getList();
+              }).finally(() => this.submitFormLoading = false);
+            } else {
+              this.$modal.msgSuccess("修改成功");
+              this.open = false;
+              this.submitFormLoading = false;
+            }
+            /****** sks 需要改动的地方 end ******/
+          } else {
+            addShxx(this.form).then(response => {
+              this.$modal.msgSuccess("新增成功");
+              this.open = false;
+              // this.getList();
+              /****** sks 需要改动的地方 start ******/
+              if (this.queryParams.pageSize === this.shxxList.length) {
+                this.shxxList.pop();
+              }
+              this.shxxList.unshift({...this.form, id: response.data});
+              this.total++;
+              /****** sks 需要改动的地方 end ******/
+            }).finally(() => this.submitFormLoading = false);
+          }
+        }
+      });
+    },
+    /** 删除按钮操作 */
+    handleDelete(row, index) {
+      const ids = row.id || this.ids;
+      const xh = (this.queryParams.pageNum - 1) * this.queryParams.pageSize + index + 1;
+      this.$modal.confirm('确认删除' + this.changeDelData(row, 'id', 'ID值', xh) + '的记录?').then(function () {
+        return delShxx(ids);
+      }).then(() => {
+        // this.getList();
+        /****** sks 需要改动的地方 ind参数需要传进来 start ******/
+        this.shxxList.splice(index, 1);
+        if (this.shxxList.length === 0) {
+          this.getList();
+        } else {
+          this.total--;
+        }
+        this.$modal.msgSuccess("删除成功");
+        /****** sks 需要改动的地方 end ******/
+      }).catch(() => {
+      });
+    },
+    /** 导出按钮操作 */
+    handleExport() {
+      this.download('system/shxx/export', {
+        ...this.queryParams
+      }, `shxx_${new Date().getTime()}.xlsx`)
+    }
+  }
+};
+</script>
+<style rel="stylesheet/scss" lang="scss" scoped>
+@import '@/assets/styles/common/common.scss';
+</style>