|
@@ -1,14 +1,7 @@
|
|
|
<template>
|
|
|
<div class="app-container">
|
|
|
- <el-form
|
|
|
- :model="queryParams"
|
|
|
- ref="queryForm"
|
|
|
- size="small"
|
|
|
- :inline="true"
|
|
|
- v-show="showSearch"
|
|
|
- label-width="68px"
|
|
|
- >
|
|
|
- <el-form-item label="姓名" prop="xm">
|
|
|
+ <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="140px">
|
|
|
+ <el-form-item label="客户姓名" prop="xm">
|
|
|
<el-input
|
|
|
v-model="queryParams.xm"
|
|
|
placeholder="请输入姓名"
|
|
@@ -32,652 +25,220 @@
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
- <!-- <el-form-item label="入住机构" prop="rzjg">-->
|
|
|
- <!-- <el-input-->
|
|
|
- <!-- v-model="queryParams.rzjg"-->
|
|
|
- <!-- placeholder="请输入入住机构"-->
|
|
|
- <!-- clearable-->
|
|
|
- <!-- @keyup.enter.native="handleQuery"-->
|
|
|
- <!-- />-->
|
|
|
- <!-- </el-form-item>-->
|
|
|
- <!-- <el-form-item label="结算开始日期" prop="jsksrq">-->
|
|
|
- <!-- <el-input-->
|
|
|
- <!-- v-model="queryParams.jsksrq"-->
|
|
|
- <!-- placeholder="请输入结算开始日期"-->
|
|
|
- <!-- clearable-->
|
|
|
- <!-- @keyup.enter.native="handleQuery"-->
|
|
|
- <!-- />-->
|
|
|
- <!-- </el-form-item>-->
|
|
|
- <!-- <el-form-item label="结算结束日期" prop="jsjsrq">-->
|
|
|
- <!-- <el-date-picker clearable-->
|
|
|
- <!-- v-model="queryParams.jsjsrq"-->
|
|
|
- <!-- type="date"-->
|
|
|
- <!-- value-format="yyyy-MM-dd"-->
|
|
|
- <!-- placeholder="请选择结算结束日期">-->
|
|
|
- <!-- </el-date-picker>-->
|
|
|
- <!-- </el-form-item>-->
|
|
|
- <!-- <el-form-item label="充值小记" prop="czxj">-->
|
|
|
- <!-- <el-date-picker clearable-->
|
|
|
- <!-- v-model="queryParams.czxj"-->
|
|
|
- <!-- type="date"-->
|
|
|
- <!-- value-format="yyyy-MM-dd"-->
|
|
|
- <!-- placeholder="请选择充值小记">-->
|
|
|
- <!-- </el-date-picker>-->
|
|
|
- <!-- </el-form-item>-->
|
|
|
- <!-- <el-form-item label="支出" prop="zc">-->
|
|
|
- <!-- <el-input-->
|
|
|
- <!-- v-model="queryParams.zc"-->
|
|
|
- <!-- placeholder="请输入支出"-->
|
|
|
- <!-- clearable-->
|
|
|
- <!-- @keyup.enter.native="handleQuery"-->
|
|
|
- <!-- />-->
|
|
|
- <!-- </el-form-item>-->
|
|
|
- <!-- <el-form-item label="收入" prop="sr">-->
|
|
|
- <!-- <el-input-->
|
|
|
- <!-- v-model="queryParams.sr"-->
|
|
|
- <!-- placeholder="请输入收入"-->
|
|
|
- <!-- clearable-->
|
|
|
- <!-- @keyup.enter.native="handleQuery"-->
|
|
|
- <!-- />-->
|
|
|
- <!-- </el-form-item>-->
|
|
|
- <!-- <el-form-item label="消费小计" prop="xfxj">-->
|
|
|
- <!-- <el-input-->
|
|
|
- <!-- v-model="queryParams.xfxj"-->
|
|
|
- <!-- placeholder="请输入消费小计"-->
|
|
|
- <!-- clearable-->
|
|
|
- <!-- @keyup.enter.native="handleQuery"-->
|
|
|
- <!-- />-->
|
|
|
- <!-- </el-form-item>-->
|
|
|
- <!-- <el-form-item label="余额" prop="ye">-->
|
|
|
- <!-- <el-input-->
|
|
|
- <!-- v-model="queryParams.ye"-->
|
|
|
- <!-- placeholder="请输入余额"-->
|
|
|
- <!-- clearable-->
|
|
|
- <!-- @keyup.enter.native="handleQuery"-->
|
|
|
- <!-- />-->
|
|
|
- <!-- </el-form-item>-->
|
|
|
- <!-- <el-form-item label="客户id" prop="khId">-->
|
|
|
- <!-- <el-input-->
|
|
|
- <!-- v-model="queryParams.khId"-->
|
|
|
- <!-- placeholder="请输入客户id"-->
|
|
|
- <!-- clearable-->
|
|
|
- <!-- @keyup.enter.native="handleQuery"-->
|
|
|
- <!-- />-->
|
|
|
- <!-- </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-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="['organization:cyjs:add']"-->
|
|
|
- <!-- >新增</el-button>-->
|
|
|
- <!-- </el-col>-->
|
|
|
- <!-- <el-col :span="1.5">-->
|
|
|
- <!-- <el-button-->
|
|
|
- <!-- type="success"-->
|
|
|
- <!-- plain-->
|
|
|
- <!-- icon="el-icon-edit"-->
|
|
|
- <!-- size="mini"-->
|
|
|
- <!-- :disabled="single"-->
|
|
|
- <!-- @click="handleUpdate"-->
|
|
|
- <!-- v-hasPermi="['organization:cyjs:edit']"-->
|
|
|
- <!-- >修改</el-button>-->
|
|
|
- <!-- </el-col>-->
|
|
|
- <!-- <el-col :span="1.5">-->
|
|
|
- <!-- <el-button-->
|
|
|
- <!-- type="danger"-->
|
|
|
- <!-- plain-->
|
|
|
- <!-- icon="el-icon-delete"-->
|
|
|
- <!-- size="mini"-->
|
|
|
- <!-- :disabled="multiple"-->
|
|
|
- <!-- @click="handleDelete"-->
|
|
|
- <!-- v-hasPermi="['organization:cyjs:remove']"-->
|
|
|
- <!-- >删除</el-button>-->
|
|
|
- <!-- </el-col>-->
|
|
|
- <!-- <el-col :span="1.5">-->
|
|
|
- <!-- <el-button-->
|
|
|
- <!-- type="warning"-->
|
|
|
- <!-- plain-->
|
|
|
- <!-- icon="el-icon-download"-->
|
|
|
- <!-- size="mini"-->
|
|
|
- <!-- @click="handleExport"-->
|
|
|
- <!-- v-hasPermi="['organization:cyjs:export']"-->
|
|
|
- <!-- >导出</el-button>-->
|
|
|
- <!-- </el-col>-->
|
|
|
- <!-- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>-->
|
|
|
- <!-- </el-row>-->
|
|
|
-
|
|
|
- <el-table
|
|
|
- v-loading="loading"
|
|
|
- :data="cyjsList"
|
|
|
- @selection-change="handleSelectionChange"
|
|
|
- >
|
|
|
- <!-- <el-table-column type="selection" width="55" align="center" /> -->
|
|
|
+ <el-table v-loading="loading" :data="khjbxxList">
|
|
|
<el-table-column label="序号" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
- {{
|
|
|
- (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1
|
|
|
- }}
|
|
|
+ {{(queryParams.pageNum-1)*queryParams.pageSize + scope.$index + 1}}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="姓名" align="center" prop="xm" />
|
|
|
+ <el-table-column label="客户姓名" align="center" prop="xm"/>
|
|
|
<el-table-column label="性别" align="center" prop="xb">
|
|
|
<template slot-scope="scope">
|
|
|
- <dict-tag :options="dict.type.sys_user_sex" :value="scope.row.xb" />
|
|
|
+ <dict-tag :options="dict.type.C0007" :value="scope.row.xb"/>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="手机号码" align="center" prop="sjhm" />
|
|
|
- <el-table-column label="证件号码" align="center" prop="zjhm" />
|
|
|
+ <el-table-column label="手机号码" align="center" prop="sjhm"/>
|
|
|
+ <el-table-column label="证件号码" align="center" prop="zjhm"/>
|
|
|
<el-table-column label="出生日期" align="center" prop="csrq">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ special(scope.row.csrq) }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="入住机构" align="center" prop="jgmc" />
|
|
|
|
|
|
- <!-- <el-table-column label="入住机构" align="center" prop="rzjg" />-->
|
|
|
- <!-- <el-table-column label="结算开始日期" align="center" prop="jsksrq" />-->
|
|
|
- <!-- <el-table-column label="结算结束日期" align="center" prop="jsjsrq" width="180">-->
|
|
|
- <!-- <template slot-scope="scope">-->
|
|
|
- <!-- <span>{{ parseTime(scope.row.jsjsrq, '{y}-{m}-{d}') }}</span>-->
|
|
|
- <!-- </template>-->
|
|
|
- <!-- </el-table-column>-->
|
|
|
- <!-- <el-table-column label="充值小记" align="center" prop="czxj" width="180">-->
|
|
|
- <!-- <template slot-scope="scope">-->
|
|
|
- <!-- <span>{{ parseTime(scope.row.czxj, '{y}-{m}-{d}') }}</span>-->
|
|
|
- <!-- </template>-->
|
|
|
- <!-- </el-table-column>-->
|
|
|
- <!-- <el-table-column label="支出" align="center" prop="zc" />-->
|
|
|
- <!-- <el-table-column label="收入" align="center" prop="sr" />-->
|
|
|
- <!-- <el-table-column label="消费小计" align="center" prop="xfxj" />-->
|
|
|
- <!-- <el-table-column label="余额" align="center" prop="ye" />-->
|
|
|
- <!-- <el-table-column label="客户id" align="center" prop="khId" />-->
|
|
|
- <el-table-column
|
|
|
- label="操作"
|
|
|
- align="center"
|
|
|
- class-name="small-padding fixed-width"
|
|
|
- >
|
|
|
+ <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
icon="el-icon-edit"
|
|
|
- @click="handleView(scope.row)"
|
|
|
- v-hasPermi="['organization:cyjs:edit']"
|
|
|
- >在院结算</el-button
|
|
|
- >
|
|
|
- <!-- <el-button
|
|
|
- size="mini"
|
|
|
- type="text"
|
|
|
- icon="el-icon-edit"
|
|
|
- @click="handleUpdate(scope.row)"
|
|
|
- v-hasPermi="['organization:cyjs:edit']"
|
|
|
- >修改</el-button> -->
|
|
|
- <!-- <el-button
|
|
|
- size="mini"
|
|
|
- type="text"
|
|
|
- icon="el-icon-delete"
|
|
|
- @click="handleDelete(scope.row, scope.$index)"
|
|
|
- v-hasPermi="['organization:cyjs:remove']"
|
|
|
- >删除</el-button
|
|
|
- > -->
|
|
|
+ @click="getSyList(scope.row)"
|
|
|
+ v-hasPermi="['organization:cyjs:list']"
|
|
|
+ >在院结算
|
|
|
+ </el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
|
|
|
<pagination
|
|
|
- v-show="total > 0"
|
|
|
- :total="total"
|
|
|
+ v-show="khTotal>0"
|
|
|
+ :total="khTotal"
|
|
|
:page.sync="queryParams.pageNum"
|
|
|
:limit.sync="queryParams.pageSize"
|
|
|
@pagination="getList"
|
|
|
/>
|
|
|
|
|
|
- <!-- 添加或修改出院结算对话框 -->
|
|
|
- <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
|
|
- <el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
|
|
- <el-form-item label="入住机构" prop="rzjg">
|
|
|
- <el-input v-model="form.rzjg" placeholder="请输入入住机构" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="结算开始日期" prop="jsksrq">
|
|
|
- <el-input v-model="form.jsksrq" placeholder="请输入结算开始日期" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="结算结束日期" prop="jsjsrq">
|
|
|
- <el-date-picker
|
|
|
- clearable
|
|
|
- v-model="form.jsjsrq"
|
|
|
- type="date"
|
|
|
- value-format="yyyy-MM-dd"
|
|
|
- placeholder="请选择结算结束日期"
|
|
|
- >
|
|
|
- </el-date-picker>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="充值小记" prop="czxj">
|
|
|
- <el-date-picker
|
|
|
- clearable
|
|
|
- v-model="form.czxj"
|
|
|
- type="date"
|
|
|
- value-format="yyyy-MM-dd"
|
|
|
- placeholder="请选择充值小记"
|
|
|
- >
|
|
|
- </el-date-picker>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="支出" prop="zc">
|
|
|
- <el-input v-model="form.zc" placeholder="请输入支出" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="收入" prop="sr">
|
|
|
- <el-input v-model="form.sr" placeholder="请输入收入" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="消费小计" prop="xfxj">
|
|
|
- <el-input v-model="form.xfxj" placeholder="请输入消费小计" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="余额" prop="ye">
|
|
|
- <el-input v-model="form.ye" placeholder="请输入余额" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="客户id" prop="khId">
|
|
|
- <el-input v-model="form.khId" placeholder="请输入客户id" />
|
|
|
- </el-form-item>
|
|
|
- </el-form>
|
|
|
- <div slot="footer" class="dialog-footer">
|
|
|
- <el-button type="primary" @click="submitForm">确 定</el-button>
|
|
|
- <el-button @click="cancel">取 消</el-button>
|
|
|
- </div>
|
|
|
- </el-dialog>
|
|
|
|
|
|
- <!-- 出院结算dialog -->
|
|
|
- <el-dialog
|
|
|
- v-dialog-drag
|
|
|
- :title="title"
|
|
|
- :visible.sync="openView"
|
|
|
- width="1200px"
|
|
|
- append-to-body
|
|
|
- >
|
|
|
- <el-form
|
|
|
- size="small"
|
|
|
- :inline="true"
|
|
|
- label-width="68px"
|
|
|
- >
|
|
|
- <el-form-item label="日期" prop="htqdrq">
|
|
|
- <el-date-picker clearable
|
|
|
- v-model="daterangeHtqdrq"
|
|
|
- style="width: 240px"
|
|
|
- type="daterange"
|
|
|
- value-format="yyyyMMdd"
|
|
|
- range-separator="-"
|
|
|
- start-placeholder="开始日期"
|
|
|
- end-placeholder="结束日期">
|
|
|
- </el-date-picker>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item>
|
|
|
- <el-button
|
|
|
- type="primary"
|
|
|
- icon="el-icon-search"
|
|
|
- size="mini"
|
|
|
- @click="handleQueryMin"
|
|
|
- >搜索</el-button
|
|
|
- >
|
|
|
- <el-button icon="el-icon-refresh" size="mini" @click="resetQueryMin"
|
|
|
- >重置</el-button
|
|
|
- >
|
|
|
- </el-form-item>
|
|
|
- </el-form>
|
|
|
- <el-table v-loading="loadingMin" :data="yljgCyjsList" row-key="id">
|
|
|
+ <!-- 显示收银列表对话框 -->
|
|
|
+ <el-dialog v-dialog-drag title="在院结算" :visible.sync="sYopen" width="1000px" append-to-body>
|
|
|
+ <el-table v-loading="syLoading" :data="syglList" show-summary>
|
|
|
<el-table-column label="序号" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
- {{
|
|
|
- (queryParamsMin.pageNum - 1) * queryParamsMin.pageSize +
|
|
|
- scope.$index +
|
|
|
- 1
|
|
|
- }}
|
|
|
+ {{ scope.$index + 1 }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="日期" align="center" prop="htqdrq" >
|
|
|
+ <el-table-column label="日期" align="center" prop="date" />
|
|
|
+ <el-table-column label="充值小计(元)" align="center" prop="money" />
|
|
|
+ <el-table-column label="消费小计(元)" align="center" >
|
|
|
<template slot-scope="scope">
|
|
|
- <span>{{ special(scope.row.htqdrq) }}</span>
|
|
|
+ {{parseFloat(scope.row.cwf) + parseFloat(scope.row.hlf) + parseFloat(scope.row.cyf)}}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="充值小计(元)" align="center" prop="czxj" />
|
|
|
- <el-table-column label="支出(元)" align="center" prop="zc" />
|
|
|
- <el-table-column label="收入(元)" align="center" prop="sr" />
|
|
|
- <el-table-column label="房费押金(元)" align="center" prop="cwfyj" />
|
|
|
- <el-table-column label="护理费押金(元)" align="center" prop="hlfyj" />
|
|
|
- <el-table-column label="餐饮押金(元)" align="center" prop="cyfyj" />
|
|
|
- <el-table-column label="消费小计(元)" align="center" prop="xfxj" />
|
|
|
<el-table-column label="房费(元)" align="center" prop="cwf" />
|
|
|
<el-table-column label="护理费(元)" align="center" prop="hlf" />
|
|
|
<el-table-column label="餐饮费(元)" align="center" prop="cyf" />
|
|
|
- <el-table-column label="余额(元)" align="center" prop="ye" />
|
|
|
+ <el-table-column label="房费押金(元)" align="center" prop="cwfyj" />
|
|
|
+ <el-table-column label="护理费押金((元)" align="center" prop="hlfyj" />
|
|
|
+ <el-table-column label="餐饮费押金((元)" align="center" prop="cyfyj" />
|
|
|
+ <el-table-column label="余额((元)" align="center" >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{parseFloat(scope.row.money) - (parseFloat(scope.row.cwf) + parseFloat(scope.row.hlf) + parseFloat(scope.row.cyf))}}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
</el-table>
|
|
|
-
|
|
|
- <pagination
|
|
|
- v-show="viewTotal > 0"
|
|
|
- :total="viewTotal"
|
|
|
- :page.sync="queryParamsMin.pageNum"
|
|
|
- :limit.sync="queryParamsMin.pageSize"
|
|
|
- @pagination="getListMin"
|
|
|
- />
|
|
|
- <!-- <div slot="footer" class="dialog-footer">
|
|
|
- <el-button type="primary" @click="cancelView">确 定</el-button>
|
|
|
- </div> -->
|
|
|
</el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import {
|
|
|
- listCyjs,
|
|
|
- getCyjs,
|
|
|
- delCyjs,
|
|
|
- addCyjs,
|
|
|
- updateCyjs,
|
|
|
- selectCyjsBykhId,
|
|
|
-} from "@/api/rcyy/cyjs";
|
|
|
+import {listSygl, getSygl, delSygl, addSygl, updateSygl, listByQy, listByZy} from "@/api/rcyy/sygl";
|
|
|
+import { Regular,chineseOne, idCard } from '@/utils/regular'
|
|
|
|
|
|
export default {
|
|
|
- name: "Cyjs",
|
|
|
- dicts: ["sys_user_sex"],
|
|
|
+ name: "Sygl",
|
|
|
+ dicts: ['CZ010', 'CZ011'],
|
|
|
data() {
|
|
|
return {
|
|
|
// 遮罩层
|
|
|
loading: true,
|
|
|
- loadingMin: true,
|
|
|
+ syLoading: true,
|
|
|
// 选中数组
|
|
|
ids: [],
|
|
|
- items: [],
|
|
|
// 非单个禁用
|
|
|
single: true,
|
|
|
// 非多个禁用
|
|
|
multiple: true,
|
|
|
// 显示搜索条件
|
|
|
showSearch: true,
|
|
|
- // 总条数
|
|
|
- total: 0,
|
|
|
- viewTotal: 0,
|
|
|
- // 出院结算表格数据
|
|
|
- cyjsList: [],
|
|
|
- //点击出院结算后表格数据
|
|
|
- yljgCyjsList: [],
|
|
|
- // 弹出层标题
|
|
|
- parent:null,
|
|
|
- syglViewList: [],
|
|
|
- // 弹出层标题
|
|
|
- title: "",
|
|
|
- // 小类弹出层标题
|
|
|
- viewTitle: "",
|
|
|
- // 是否显示弹出层
|
|
|
- open: false,
|
|
|
- // 是否显示详细dialog
|
|
|
- openView: false,
|
|
|
- // 事件发生日期范围
|
|
|
- daterangeHtqdrq:[],
|
|
|
- // 查询参数
|
|
|
+ // 客户信息列表
|
|
|
+ khjbxxList:[],
|
|
|
+ // 客户信息总条数
|
|
|
+ khTotal: 0,
|
|
|
+ // 客户信息查询参数
|
|
|
queryParams: {
|
|
|
pageNum: 1,
|
|
|
pageSize: 10,
|
|
|
- rzjg: null,
|
|
|
- jsksrq: null,
|
|
|
- jsjsrq: null,
|
|
|
- czxj: null,
|
|
|
- zc: null,
|
|
|
- sr: null,
|
|
|
- xfxj: null,
|
|
|
- ye: null,
|
|
|
- khId: null,
|
|
|
},
|
|
|
- queryParamsMin: {
|
|
|
- pageNum: 1,
|
|
|
- pageSize: 10,
|
|
|
- },
|
|
|
- // 表单参数
|
|
|
- form: {},
|
|
|
- // 表单校验
|
|
|
- rules: {
|
|
|
- rzjg: [
|
|
|
- { required: true, message: "入住机构不能为空", trigger: "blur" },
|
|
|
- ],
|
|
|
- jgId: [
|
|
|
- { required: true, message: "养老机构id不能为空", trigger: "blur" },
|
|
|
- ],
|
|
|
- jsksrq: [
|
|
|
- { required: true, message: "结算开始日期不能为空", trigger: "blur" },
|
|
|
- ],
|
|
|
- jsjsrq: [
|
|
|
- { required: true, message: "结算结束日期不能为空", trigger: "blur" },
|
|
|
- ],
|
|
|
- czxj: [
|
|
|
- { required: true, message: "充值小记不能为空", trigger: "blur" },
|
|
|
- ],
|
|
|
- zc: [{ required: true, message: "支出不能为空", trigger: "blur" }],
|
|
|
- sr: [{ required: true, message: "收入不能为空", trigger: "blur" }],
|
|
|
- xfxj: [
|
|
|
- { required: true, message: "消费小计不能为空", trigger: "blur" },
|
|
|
- ],
|
|
|
- ye: [{ required: true, message: "余额不能为空", trigger: "blur" }],
|
|
|
- state: [
|
|
|
- { required: true, message: "数据状态不能为空", trigger: "blur" },
|
|
|
- ],
|
|
|
+ clickKhName:'',
|
|
|
+ // 总条数
|
|
|
+ total: 0,
|
|
|
+ // 养老机构_在院结算表格数据
|
|
|
+ syglList: [],
|
|
|
+ // 查询参数
|
|
|
+ syQueryParams: {
|
|
|
+
|
|
|
},
|
|
|
+ // 弹出层标题
|
|
|
+ title: "",
|
|
|
+ // 是否显示弹出层
|
|
|
+ sYopen: false,
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
this.getList();
|
|
|
},
|
|
|
methods: {
|
|
|
- /** 查询出院结算列表 */
|
|
|
getList() {
|
|
|
this.loading = true;
|
|
|
-
|
|
|
- listCyjs(this.queryParams).then((response) => {
|
|
|
- this.cyjsList = response.rows;
|
|
|
- this.total = response.total;
|
|
|
+ listByQy(this.queryParams).then(response => {
|
|
|
+ this.khjbxxList = response.rows;
|
|
|
+ this.khTotal = response.total;
|
|
|
this.loading = false;
|
|
|
});
|
|
|
},
|
|
|
- // { ...this.formMin, fid: this.parent }
|
|
|
- getListMin() {
|
|
|
- this.loadingMin = true;
|
|
|
- this.queryParamsMin.params = {};
|
|
|
- if (null != this.daterangeHtqdrq && '' != this.daterangeHtqdrq) {
|
|
|
- this.queryParamsMin.params["beginTbrq"] = this.daterangeHtqdrq[0];
|
|
|
- this.queryParamsMin.params["endTbrq"] = this.daterangeHtqdrq[1];
|
|
|
+ getSyList(row) {
|
|
|
+ this.sYopen =true;
|
|
|
+ this.syLoading = true;
|
|
|
+ if (row){
|
|
|
+ this.syQueryParams.khId = row.id
|
|
|
}
|
|
|
- this.queryParamsMin.khId = this.parent;
|
|
|
- selectCyjsBykhId(this.queryParamsMin).then((response) => {
|
|
|
- this.yljgCyjsList = response.rows;
|
|
|
- this.viewTotal = response.total;
|
|
|
- this.loadingMin = false;
|
|
|
+ listByZy(this.syQueryParams).then(response => {
|
|
|
+ this.syglList = response.syList.map((item,index)=>{
|
|
|
+ const sjrzsj = parseInt(response.htxx.sjrzsj.substring(0,6));
|
|
|
+ const date = parseInt(item.date);
|
|
|
+ if (sjrzsj <= date){
|
|
|
+ if ( sjrzsj == date){
|
|
|
+ item.cwfyj = response.htxx.cwfyj;
|
|
|
+ item.hlfyj = response.htxx.hlfyj;
|
|
|
+ item.cyfyj = response.htxx.cyfyj;
|
|
|
+ //计算当月得房费
|
|
|
+ const year = parseInt(response.htxx.sjrzsj.substring(0,4))
|
|
|
+ const month = parseInt(response.htxx.sjrzsj.substring(4,2))
|
|
|
+ const day = parseInt(response.htxx.sjrzsj.substring(6,2))
|
|
|
+ const totalDay = new Date(year, month, 0).getDate();
|
|
|
+ const p = day /totalDay;
|
|
|
+ item.cwf = response.htxx.cwf * p;
|
|
|
+ item.hlf = response.htxx.hlf * p;
|
|
|
+ item.cyf = response.htxx.cyf * p;
|
|
|
+ }else{
|
|
|
+ item.cwf = response.htxx.cwf;
|
|
|
+ item.hlf = response.htxx.hlf;
|
|
|
+ item.cyf = response.htxx.cyf;
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ item.cwfyj = 0;
|
|
|
+ item.hlfyj = 0;
|
|
|
+ item.cyfyj = 0;
|
|
|
+ item.cwf = 0;
|
|
|
+ item.hlf = 0;
|
|
|
+ item.cyf = 0;
|
|
|
+ }
|
|
|
+ return item;
|
|
|
+ });
|
|
|
+ this.total = response.total;
|
|
|
+ this.syLoading = false;
|
|
|
});
|
|
|
},
|
|
|
- // 取消按钮
|
|
|
- cancel() {
|
|
|
- this.open = false;
|
|
|
- this.reset();
|
|
|
- },
|
|
|
// 表单重置
|
|
|
reset() {
|
|
|
- this.form = {
|
|
|
- id: null,
|
|
|
- rzjg: null,
|
|
|
- jgId: null,
|
|
|
- jsksrq: null,
|
|
|
- jsjsrq: null,
|
|
|
- czxj: null,
|
|
|
- zc: null,
|
|
|
- sr: null,
|
|
|
- xfxj: null,
|
|
|
- ye: null,
|
|
|
- khId: null,
|
|
|
- createTimeStr: null,
|
|
|
- createUserId: null,
|
|
|
- createBy: null,
|
|
|
- createUnit: null,
|
|
|
- createUnitName: null,
|
|
|
- updateTimeStr: null,
|
|
|
- updateUserId: null,
|
|
|
- updateBy: null,
|
|
|
- updateUnit: null,
|
|
|
- updateUnitName: null,
|
|
|
- state: null,
|
|
|
- };
|
|
|
- this.resetForm("form");
|
|
|
+ this.submitFormLoading =false;
|
|
|
},
|
|
|
/** 搜索按钮操作 */
|
|
|
handleQuery() {
|
|
|
this.queryParams.pageNum = 1;
|
|
|
this.getList();
|
|
|
},
|
|
|
- /** 弹出搜索按钮操作 */
|
|
|
- handleQueryMin() {
|
|
|
- this.queryParamsMin.pageNum = 1;
|
|
|
- this.getListMin();
|
|
|
- },
|
|
|
/** 重置按钮操作 */
|
|
|
resetQuery() {
|
|
|
this.resetForm("queryForm");
|
|
|
this.handleQuery();
|
|
|
},
|
|
|
- /** 弹出重置按钮操作 */
|
|
|
- resetQueryMin() {
|
|
|
- this.daterangeHtqdrq = null;
|
|
|
- this.handleQueryMin();
|
|
|
- },
|
|
|
- // 多选框选中数据
|
|
|
- handleSelectionChange(selection) {
|
|
|
- this.ids = selection.map((item) => item.id);
|
|
|
- this.items = selection.map((item) => {
|
|
|
- return {
|
|
|
- ...item,
|
|
|
- index: this.cyjsList.map((item) => item.id).indexOf(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;
|
|
|
- getCyjs(id).then((response) => {
|
|
|
- this.form = response.data;
|
|
|
- this.yljgCyjsList = response.data.yljgCyjsList;
|
|
|
- this.open = true;
|
|
|
- this.title = "修改在院结算";
|
|
|
- });
|
|
|
- },
|
|
|
- /** 在院结算按钮操作 */
|
|
|
- handleView(row) {
|
|
|
- if (row) {
|
|
|
- console.log(row,'555');
|
|
|
- this.parent = row.khId;
|
|
|
- this.openView = true;
|
|
|
- this.title = "在院结算";
|
|
|
- }
|
|
|
- this.getListMin();
|
|
|
- },
|
|
|
- cancelView() {
|
|
|
- this.openView = false;
|
|
|
- },
|
|
|
- cancelViewAdd() {
|
|
|
- this.openViewAdd = false;
|
|
|
- this.resetMin();
|
|
|
- },
|
|
|
- submitViewForm() {
|
|
|
- this.$refs["formMin"].validate((valid) => {
|
|
|
- if (valid) {
|
|
|
- if (this.formMin.id != null) {
|
|
|
- updateGmfl({ ...this.formMin, fid: this.parent }).then(
|
|
|
- (response) => {
|
|
|
- this.$modal.msgSuccess("修改成功");
|
|
|
- this.openViewAdd = false;
|
|
|
- this.getListMin();
|
|
|
- }
|
|
|
- );
|
|
|
- } else {
|
|
|
- addGmfl({ ...this.formMin, fid: this.parent }).then((response) => {
|
|
|
- this.$modal.msgSuccess("新增成功");
|
|
|
- this.openViewAdd = false;
|
|
|
- this.getListMin();
|
|
|
- });
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
- },
|
|
|
- /** 提交按钮 */
|
|
|
- submitForm() {
|
|
|
- this.$refs["form"].validate((valid) => {
|
|
|
- if (valid) {
|
|
|
- if (this.form.id != null) {
|
|
|
- updateCyjs(this.form).then((response) => {
|
|
|
- this.$modal.msgSuccess("修改成功");
|
|
|
- this.open = false;
|
|
|
- this.getList();
|
|
|
- });
|
|
|
- } else {
|
|
|
- addCyjs(this.form).then((response) => {
|
|
|
- this.$modal.msgSuccess("新增成功");
|
|
|
- this.open = false;
|
|
|
- this.getList();
|
|
|
- });
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
- },
|
|
|
- /** 删除按钮操作 */
|
|
|
- handleDelete(row, index) {
|
|
|
- const ids = row.id || this.ids;
|
|
|
- let msg = "";
|
|
|
- if (!row.id) {
|
|
|
- msg = index;
|
|
|
- } else {
|
|
|
- msg = this.items
|
|
|
- .map((item) => item.index + 1)
|
|
|
- .sort((a, b) => a - b)
|
|
|
- .join(",");
|
|
|
- }
|
|
|
- this.$modal
|
|
|
- .confirm('是否确认删除出院结算序号为"' + msg + '"的数据项?')
|
|
|
- .then(function () {
|
|
|
- return delCyjs(ids);
|
|
|
- })
|
|
|
- .then(() => {
|
|
|
- this.getList();
|
|
|
- this.$modal.msgSuccess("删除成功");
|
|
|
- })
|
|
|
- .catch(() => {});
|
|
|
- },
|
|
|
+
|
|
|
/** 导出按钮操作 */
|
|
|
handleExport() {
|
|
|
- this.download(
|
|
|
- "organization/cyjs/export",
|
|
|
- {
|
|
|
- ...this.queryParams,
|
|
|
- },
|
|
|
- `cyjs_${new Date().getTime()}.xlsx`
|
|
|
- );
|
|
|
- },
|
|
|
- },
|
|
|
+ this.download('organization/sygl/export', {
|
|
|
+ ...this.queryParams
|
|
|
+ }, `sygl_${new Date().getTime()}.xlsx`)
|
|
|
+ }
|
|
|
+ }
|
|
|
};
|
|
|
</script>
|
|
|
+
|
|
|
+<style rel="stylesheet/scss" lang="scss" scoped>
|
|
|
+.el-select {
|
|
|
+ width: 100%;
|
|
|
+}
|
|
|
+
|
|
|
+.el-date-editor.el-input {
|
|
|
+ width: 100%;
|
|
|
+}
|
|
|
+
|
|
|
+.el-date-picker {
|
|
|
+ width: 100%;
|
|
|
+}
|
|
|
+</style>
|