前端最新版本同步
This commit is contained in:
@@ -1,278 +1,203 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<!-- <el-row :gutter="10" class="mb8">
|
||||
<el-form
|
||||
:model="queryParams"
|
||||
ref="queryRef"
|
||||
:inline="true"
|
||||
label-width="85px"
|
||||
>
|
||||
<el-form-item label="结算经办机构:" prop="setlOptins" label-width="110px">
|
||||
<el-input
|
||||
v-model="queryParams.setlOptins"
|
||||
placeholder="请输入结算经办机构"
|
||||
clearable
|
||||
style="width: 150px"
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="结算日期:">
|
||||
<el-date-picker
|
||||
v-model="occurrenceTime"
|
||||
value-format="YYYY-MM-DD"
|
||||
type="daterange"
|
||||
range-separator="-"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"
|
||||
style="width: 300px"
|
||||
></el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="清算类型:" prop="clrType">
|
||||
<el-select
|
||||
v-model="queryParams.clrType"
|
||||
placeholder="请选择清算类型"
|
||||
clearable
|
||||
style="width: 150px"
|
||||
>
|
||||
<el-option
|
||||
v-for="categoryCode in clrTypeOptions"
|
||||
:key="categoryCode.value"
|
||||
:label="categoryCode.label"
|
||||
:value="categoryCode.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-form> -->
|
||||
<!-- <el-button
|
||||
type="primary"
|
||||
plain
|
||||
icon="Edit"
|
||||
@click="handleQuery"
|
||||
>统计</el-button
|
||||
> -->
|
||||
<!-- <el-button
|
||||
type="primary"
|
||||
plain
|
||||
icon="Edit"
|
||||
@click="handleApplyForLiquidation"
|
||||
>申请清算</el-button
|
||||
> -->
|
||||
<!-- </el-col> -->
|
||||
<!-- </el-row> -->
|
||||
<!-- <div style="margin-bottom:5px"> -->
|
||||
<el-row :guutter="15">
|
||||
<el-tabs v-model="activeTabName" type="card" class="inOut-tabs" @tab-click="hendleTabChange">
|
||||
<el-tab-pane label="对账" name="first">
|
||||
<el-row :guutter="15">
|
||||
|
||||
<el-form
|
||||
:model="totalPrice"
|
||||
ref="priceRef"
|
||||
:inline="true"
|
||||
>
|
||||
<el-row :guutter="15">
|
||||
<el-form-item label="结算经办机构:" prop="setlOptins" label-width="160px">
|
||||
<el-input
|
||||
v-model="totalPrice.setlOptins"
|
||||
placeholder="请输入结算经办机构"
|
||||
clearable
|
||||
style="width: 150px"
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="结算日期:" label-width="130px">
|
||||
<el-date-picker
|
||||
v-model="occurrenceTime"
|
||||
value-format="YYYY-MM-DD"
|
||||
type="daterange"
|
||||
range-separator="-"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"
|
||||
style="width: 300px"
|
||||
></el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="清算类型:" prop="clrType" label-width="160px">
|
||||
<el-select
|
||||
v-model="totalPrice.clrType"
|
||||
placeholder="请选择清算类型"
|
||||
clearable
|
||||
style="width: 150px"
|
||||
>
|
||||
<el-option
|
||||
v-for="categoryCode in clrTypeOptions"
|
||||
:key="categoryCode.value"
|
||||
:label="categoryCode.label"
|
||||
:value="categoryCode.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-row>
|
||||
<el-row :guutter="15">
|
||||
<el-form-item label="医疗费总额:" prop="medfeeSumamt" label-width="160px">
|
||||
<el-input
|
||||
v-model="totalPrice.medfeeSumamt"
|
||||
placeholder="请输入医疗费总额"
|
||||
clearable
|
||||
style="width: 150px"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="基金支付总额:" prop="fundAppySum" label-width="160px">
|
||||
<el-input
|
||||
v-model="totalPrice.fundAppySum"
|
||||
placeholder="请输入基金支付总额"
|
||||
clearable
|
||||
style="width: 150px"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="个人账户支付金额:" prop="acctPay" label-width="160px">
|
||||
<el-input
|
||||
v-model="totalPrice.acctPay"
|
||||
placeholder="请输入个人账户支付金额"
|
||||
clearable
|
||||
style="width: 150px"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="现金支付金额:" prop="cashPayamt" label-width="160px">
|
||||
<el-input
|
||||
v-model="totalPrice.cashPayamt"
|
||||
placeholder="请输入现金支付金额"
|
||||
clearable
|
||||
style="width: 150px"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-button
|
||||
type="primary"
|
||||
plain
|
||||
icon="Edit"
|
||||
@click="handOperatedApply"
|
||||
>手动清算</el-button
|
||||
>
|
||||
|
||||
</el-row>
|
||||
<el-form :model="totalPrice" ref="priceRef" :inline="true">
|
||||
<el-row :guutter="15">
|
||||
<el-form-item label="结算经办机构:" prop="setlOptins" label-width="160px">
|
||||
<el-input v-model="totalPrice.setlOptins" placeholder="请输入结算经办机构" clearable style="width: 150px"
|
||||
@keyup.enter="handleQuery" />
|
||||
</el-form-item>
|
||||
<el-form-item label="结算日期:" label-width="130px">
|
||||
<el-date-picker v-model="occurrenceTime" value-format="YYYY-MM-DD" type="daterange" range-separator="-"
|
||||
start-placeholder="开始日期" end-placeholder="结束日期" style="width: 300px"></el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="清算类型:" prop="clrType" label-width="160px">
|
||||
<el-select v-model="queryParams.clrType" placeholder="请选择清算类型" clearable style="width: 150px">
|
||||
<el-option v-for="categoryCode in clrTypeOptions" :key="categoryCode.value" :label="categoryCode.label"
|
||||
:value="categoryCode.value" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="险种类型:" prop="insutype" label-width="160px">
|
||||
<el-select v-model="queryParams.insutype" placeholder="请选择险种类型" clearable style="width: 150px">
|
||||
<el-option v-for="categoryCode in insutypeOptions" :key="categoryCode.value" :label="categoryCode.label"
|
||||
:value="categoryCode.value" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-row>
|
||||
<el-row :guutter="15">
|
||||
<el-form-item label="医疗费总额:" prop="medfeeSumamt" label-width="160px">
|
||||
<el-input v-model="totalPrice.medfeeSumamt" placeholder="请输入医疗费总额" clearable style="width: 150px" />
|
||||
</el-form-item>
|
||||
<el-form-item label="基金支付总额:" prop="fundAppySum" label-width="160px">
|
||||
<el-input v-model="totalPrice.fundAppySum" placeholder="请输入基金支付总额" clearable style="width: 150px" />
|
||||
</el-form-item>
|
||||
<el-form-item label="个人账户支付金额:" prop="acctPay" label-width="160px">
|
||||
<el-input v-model="totalPrice.acctPay" placeholder="请输入个人账户支付金额" clearable style="width: 150px" />
|
||||
</el-form-item>
|
||||
<el-form-item label="现金支付金额:" prop="cashPayamt" label-width="160px">
|
||||
<el-input v-model="totalPrice.cashPayamt" placeholder="请输入现金支付金额" clearable style="width: 150px" />
|
||||
</el-form-item>
|
||||
<el-form-item label="结算笔数:" prop="setlCnt" label-width="160px">
|
||||
<el-input v-model="totalPrice.setlCnt" placeholder="请输入结算笔数" clearable style="width: 150px" />
|
||||
</el-form-item>
|
||||
<!-- <el-button type="primary" plain icon="Edit" @click="handOperatedApply">手动清算</el-button> -->
|
||||
<el-button type="primary" plain icon="Edit" @click="handOperatedReconcileAccounts">手动对账</el-button>
|
||||
|
||||
</el-form>
|
||||
</el-row>
|
||||
</el-row>
|
||||
|
||||
<!-- </div> -->
|
||||
<el-table
|
||||
v-loading="loading"
|
||||
:data="purchaseinventoryList"
|
||||
@selection-change="handleSelectionChange"
|
||||
@row-click="handleRowClick"
|
||||
>
|
||||
<el-table-column type="selection" width="50" align="center" />
|
||||
<el-table-column
|
||||
label="申请清算ID"
|
||||
align="center"
|
||||
key="outResult"
|
||||
prop="outResult"
|
||||
width="270"
|
||||
:show-overflow-tooltip="true"
|
||||
/>
|
||||
<el-table-column
|
||||
label="开始时间"
|
||||
align="center"
|
||||
key="begndate"
|
||||
prop="begndate"
|
||||
width="150"
|
||||
:show-overflow-tooltip="true"
|
||||
/>
|
||||
<el-table-column
|
||||
label="结束时间"
|
||||
align="center"
|
||||
key="enddate"
|
||||
prop="enddate"
|
||||
width="150"
|
||||
:show-overflow-tooltip="true"
|
||||
/>
|
||||
<el-table-column
|
||||
label="清算类别"
|
||||
align="center"
|
||||
key="clrType"
|
||||
prop="clrType"
|
||||
width="100"
|
||||
:show-overflow-tooltip="true"
|
||||
/>
|
||||
<el-table-column
|
||||
label="总费用"
|
||||
align="center"
|
||||
key="medfeeSumamt"
|
||||
prop="medfeeSumamt"
|
||||
width="170"
|
||||
:show-overflow-tooltip="true"
|
||||
/>
|
||||
<el-table-column
|
||||
label="医保认可总费用"
|
||||
align="center"
|
||||
key="medSumfee"
|
||||
prop="medSumfee"
|
||||
width="170"
|
||||
:show-overflow-tooltip="true"
|
||||
/>
|
||||
<el-table-column
|
||||
label="基金申报金额"
|
||||
align="center"
|
||||
key="fundAppySum"
|
||||
prop="fundAppySum"
|
||||
width="170"
|
||||
:show-overflow-tooltip="true"
|
||||
/>
|
||||
<el-table-column
|
||||
label="现金支付总额"
|
||||
align="center"
|
||||
key="cashPayamt"
|
||||
prop="cashPayamt"
|
||||
width="170"
|
||||
:show-overflow-tooltip="true"
|
||||
/>
|
||||
<el-table-column
|
||||
label="个人账户金额"
|
||||
align="center"
|
||||
key="acctPay"
|
||||
prop="acctPay"
|
||||
width="170"
|
||||
:show-overflow-tooltip="true"
|
||||
/>
|
||||
<el-table-column
|
||||
label="状态"
|
||||
align="center"
|
||||
key="status"
|
||||
prop="status"
|
||||
width="170"
|
||||
:show-overflow-tooltip="true"
|
||||
>
|
||||
<template #default="scope">
|
||||
<span>{{ parseTime(scope.row.setlTime) }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- <el-table-column
|
||||
label="是否退费"
|
||||
align="center"
|
||||
key="refdSetlFlag"
|
||||
prop="refdSetlFlag"
|
||||
:show-overflow-tooltip="true"
|
||||
>
|
||||
<template #default="scope">
|
||||
<span>{{ scope.row.refdSetlFlag==1?'退费':'' }}</span>
|
||||
</template>
|
||||
</el-table-column> -->
|
||||
<el-table-column
|
||||
label="操作"
|
||||
align="center"
|
||||
width="300"
|
||||
class-name="small-padding fixed-width"
|
||||
fixed="right"
|
||||
>
|
||||
<template #default="scope">
|
||||
<el-button
|
||||
type="danger"
|
||||
link
|
||||
icon="revoked-filled"
|
||||
:disabled="scope.row.id == ''"
|
||||
@click="revokedSelectedRows(scope.row)"
|
||||
>
|
||||
撤销
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</el-form>
|
||||
</el-row>
|
||||
|
||||
<!-- </div> -->
|
||||
<el-table v-loading="loading" :data="purchaseinventoryList" @selection-change="handleSelectionChange"
|
||||
@row-click="handleRowClick">
|
||||
<el-table-column type="selection" width="50" align="center" />
|
||||
<el-table-column label="申请清算ID" align="center" key="outResult" prop="outResult" width="270"
|
||||
:show-overflow-tooltip="true" />
|
||||
<el-table-column label="开始时间" align="center" key="begndate" prop="begndate" width="150"
|
||||
:show-overflow-tooltip="true" />
|
||||
<el-table-column label="结束时间" align="center" key="enddate" prop="enddate" width="150"
|
||||
:show-overflow-tooltip="true" />
|
||||
<el-table-column label="清算类别" align="center" key="clrType" prop="clrType" width="100"
|
||||
:show-overflow-tooltip="true" />
|
||||
<el-table-column label="总费用" align="center" key="medfeeSumamt" prop="medfeeSumamt" width="170"
|
||||
:show-overflow-tooltip="true" />
|
||||
<el-table-column label="医保认可总费用" align="center" key="medSumfee" prop="medSumfee" width="170"
|
||||
:show-overflow-tooltip="true" />
|
||||
<el-table-column label="基金申报金额" align="center" key="fundAppySum" prop="fundAppySum" width="170"
|
||||
:show-overflow-tooltip="true" />
|
||||
<el-table-column label="现金支付总额" align="center" key="cashPayamt" prop="cashPayamt" width="170"
|
||||
:show-overflow-tooltip="true" />
|
||||
<el-table-column label="个人账户金额" align="center" key="acctPay" prop="acctPay" width="170"
|
||||
:show-overflow-tooltip="true" />
|
||||
<el-table-column label="状态" align="center" key="status" prop="status" width="170" :show-overflow-tooltip="true">
|
||||
<template #default="scope">
|
||||
<span>{{ parseTime(scope.row.setlTime) }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- <el-table-column
|
||||
label="是否退费"
|
||||
align="center"
|
||||
key="refdSetlFlag"
|
||||
prop="refdSetlFlag"
|
||||
:show-overflow-tooltip="true"
|
||||
>
|
||||
<template #default="scope">
|
||||
<span>{{ scope.row.refdSetlFlag==1?'退费':'' }}</span>
|
||||
</template>
|
||||
</el-table-column> -->
|
||||
<el-table-column label="操作" align="center" width="300" class-name="small-padding fixed-width" fixed="right">
|
||||
<template #default="scope">
|
||||
<el-button type="danger" link icon="revoked-filled" :disabled="scope.row.id == ''"
|
||||
@click="revokedSelectedRows(scope.row)">
|
||||
撤销
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="清算" name="second">
|
||||
<el-row :guutter="15">
|
||||
|
||||
<el-form :model="totalPrice" ref="priceRef" :inline="true">
|
||||
<el-row :guutter="15">
|
||||
<el-form-item label="结算经办机构:" prop="setlOptins" label-width="160px">
|
||||
<el-input v-model="totalPrice.setlOptins" placeholder="请输入结算经办机构" clearable style="width: 150px"
|
||||
@keyup.enter="handleQuery" />
|
||||
</el-form-item>
|
||||
<el-form-item label="结算日期:" label-width="130px">
|
||||
<el-date-picker v-model="occurrenceTime" value-format="YYYY-MM-DD" type="daterange" range-separator="-"
|
||||
start-placeholder="开始日期" end-placeholder="结束日期" style="width: 300px"></el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="清算类型:" prop="clrType" label-width="160px">
|
||||
<el-select v-model="queryParams.clrType" placeholder="请选择清算类型" clearable style="width: 150px">
|
||||
<el-option v-for="categoryCode in clrTypeOptions" :key="categoryCode.value" :label="categoryCode.label"
|
||||
:value="categoryCode.value" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="险种类型:" prop="insutype" label-width="160px">
|
||||
<el-select v-model="queryParams.insutype" placeholder="请选择险种类型" clearable style="width: 150px">
|
||||
<el-option v-for="categoryCode in insutypeOptions" :key="categoryCode.value" :label="categoryCode.label"
|
||||
:value="categoryCode.value" />
|
||||
</el-select>
|
||||
</el-form-item> -->
|
||||
</el-row>
|
||||
<el-row :guutter="15">
|
||||
<el-form-item label="医疗费总额:" prop="medfeeSumamt" label-width="160px">
|
||||
<el-input v-model="totalPrice.medfeeSumamt" placeholder="请输入医疗费总额" clearable style="width: 150px" />
|
||||
</el-form-item>
|
||||
<el-form-item label="基金支付总额:" prop="fundAppySum" label-width="160px">
|
||||
<el-input v-model="totalPrice.fundAppySum" placeholder="请输入基金支付总额" clearable style="width: 150px" />
|
||||
</el-form-item>
|
||||
<el-form-item label="个人账户支付金额:" prop="acctPay" label-width="160px">
|
||||
<el-input v-model="totalPrice.acctPay" placeholder="请输入个人账户支付金额" clearable style="width: 150px" />
|
||||
</el-form-item>
|
||||
<el-form-item label="现金支付金额:" prop="cashPayamt" label-width="160px">
|
||||
<el-input v-model="totalPrice.cashPayamt" placeholder="请输入现金支付金额" clearable style="width: 150px" />
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="结算笔数:" prop="setlCnt" label-width="160px">
|
||||
<el-input v-model="totalPrice.setlCnt" placeholder="请输入结算笔数" clearable style="width: 150px" />
|
||||
</el-form-item> -->
|
||||
<el-button type="primary" plain icon="Edit" @click="handOperatedApply">手动清算</el-button>
|
||||
<!-- <el-button type="primary" plain icon="Edit" @click="handOperatedReconcileAccounts">手动对账</el-button> -->
|
||||
|
||||
</el-row>
|
||||
|
||||
</el-form>
|
||||
</el-row>
|
||||
|
||||
<!-- </div> -->
|
||||
<el-table v-loading="loading" :data="purchaseinventoryList" @selection-change="handleSelectionChange"
|
||||
@row-click="handleRowClick">
|
||||
<el-table-column type="selection" width="50" align="center" />
|
||||
<el-table-column label="申请清算ID" align="center" key="outResult" prop="outResult" width="270"
|
||||
:show-overflow-tooltip="true" />
|
||||
<el-table-column label="开始时间" align="center" key="begndate" prop="begndate" width="150"
|
||||
:show-overflow-tooltip="true" />
|
||||
<el-table-column label="结束时间" align="center" key="enddate" prop="enddate" width="150"
|
||||
:show-overflow-tooltip="true" />
|
||||
<el-table-column label="清算类别" align="center" key="clrType" prop="clrType" width="100"
|
||||
:show-overflow-tooltip="true" />
|
||||
<el-table-column label="总费用" align="center" key="medfeeSumamt" prop="medfeeSumamt" width="170"
|
||||
:show-overflow-tooltip="true" />
|
||||
<el-table-column label="医保认可总费用" align="center" key="medSumfee" prop="medSumfee" width="170"
|
||||
:show-overflow-tooltip="true" />
|
||||
<el-table-column label="基金申报金额" align="center" key="fundAppySum" prop="fundAppySum" width="170"
|
||||
:show-overflow-tooltip="true" />
|
||||
<el-table-column label="现金支付总额" align="center" key="cashPayamt" prop="cashPayamt" width="170"
|
||||
:show-overflow-tooltip="true" />
|
||||
<el-table-column label="个人账户金额" align="center" key="acctPay" prop="acctPay" width="170"
|
||||
:show-overflow-tooltip="true" />
|
||||
<el-table-column label="状态" align="center" key="status" prop="status" width="170" :show-overflow-tooltip="true">
|
||||
<template #default="scope">
|
||||
<span>{{ parseTime(scope.row.setlTime) }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- <el-table-column
|
||||
label="是否退费"
|
||||
align="center"
|
||||
key="refdSetlFlag"
|
||||
prop="refdSetlFlag"
|
||||
:show-overflow-tooltip="true"
|
||||
>
|
||||
<template #default="scope">
|
||||
<span>{{ scope.row.refdSetlFlag==1?'退费':'' }}</span>
|
||||
</template>
|
||||
</el-table-column> -->
|
||||
<el-table-column label="操作" align="center" width="300" class-name="small-padding fixed-width" fixed="right">
|
||||
<template #default="scope">
|
||||
<el-button type="danger" link icon="revoked-filled" :disabled="scope.row.id == ''"
|
||||
@click="revokedSelectedRows(scope.row)">
|
||||
撤销
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -282,10 +207,12 @@ import {
|
||||
applyUnClearing,
|
||||
autoApplyFinancialClearing,
|
||||
reconcileDetailList,
|
||||
handOperatedApplyFinancialClearing
|
||||
handOperatedApplyFinancialClearing,
|
||||
handOperatedApplyReconcileAccounts
|
||||
} from "./statisticalManagent";
|
||||
import { getToken } from "@/utils/auth";
|
||||
import { formatDateStr } from '@/utils/index';
|
||||
import { ref } from "vue";
|
||||
const { proxy } = getCurrentInstance();
|
||||
const purchaseinventoryList = ref([]);
|
||||
const loading = ref(false);
|
||||
@@ -297,7 +224,9 @@ const occurrenceTime = ref([
|
||||
formatDateStr(getFirstDayOfMonth(new Date()), 'YYYY-MM-DD'), // 当前月份的第一天
|
||||
formatDateStr(new Date(), 'YYYY-MM-DD') // 当天
|
||||
])
|
||||
const activeTabName = ref("first");
|
||||
const clrTypeOptions = ref([]);
|
||||
const insutypeOptions = ref([]);
|
||||
const filePath = ref("")
|
||||
const purchaseinventoryReturnList = ref([])
|
||||
const loadingReturn = ref(false)
|
||||
@@ -306,19 +235,19 @@ const selectedRow = ref([])
|
||||
const fileSize = ref(10)
|
||||
const uploadList = ref([]);
|
||||
const baseUrl = import.meta.env.VITE_APP_BASE_API;
|
||||
const fileType = ref(["zip","txt"]);
|
||||
const fileType = ref(["zip", "txt"]);
|
||||
const data = reactive({
|
||||
form: {},
|
||||
queryParams: {
|
||||
// pageNo: 1,
|
||||
// pageSize: 10,
|
||||
setlOptins: '229900',
|
||||
filePath: undefined,
|
||||
orgId:undefined,
|
||||
setlOptins: '229900',
|
||||
filePath: undefined,
|
||||
orgId: undefined,
|
||||
clrType: undefined,
|
||||
fileQuryNo: undefined,
|
||||
stmtBegnDate:undefined,
|
||||
stmtEndDate:undefined,
|
||||
fileQuryNo: undefined,
|
||||
stmtBegnDate: undefined,
|
||||
stmtEndDate: undefined,
|
||||
},
|
||||
rules: {},
|
||||
});
|
||||
@@ -329,6 +258,7 @@ const totalPrice = reactive({
|
||||
acctPay: 0,
|
||||
cashPayamt: 0,
|
||||
counts: 0,
|
||||
setlCnt: 0,
|
||||
medSumfee: 0.00
|
||||
});
|
||||
|
||||
@@ -337,7 +267,7 @@ const { queryParams, form, rules } = toRefs(data);
|
||||
watch(
|
||||
() => purchaseinventoryList.value,
|
||||
(newVlaue) => {
|
||||
if(newVlaue&&newVlaue.length>0){
|
||||
if (newVlaue && newVlaue.length > 0) {
|
||||
handleTotalAmount()
|
||||
}
|
||||
},
|
||||
@@ -346,20 +276,20 @@ watch(
|
||||
|
||||
/** 搜索按钮操作 */
|
||||
function handleQuery() {
|
||||
queryParams.value.stmtBegnDate =
|
||||
occurrenceTime.value && occurrenceTime.value.length == 2
|
||||
? occurrenceTime.value[0] + " 00:00:00"
|
||||
: "";
|
||||
queryParams.value.stmtEndDate =
|
||||
occurrenceTime.value && occurrenceTime.value.length == 2
|
||||
? occurrenceTime.value[1] + " 23:59:59"
|
||||
: "";
|
||||
// queryParams.value.pageNo = 1;
|
||||
getList();
|
||||
queryParams.value.stmtBegnDate =
|
||||
occurrenceTime.value && occurrenceTime.value.length == 2
|
||||
? occurrenceTime.value[0] + " 00:00:00"
|
||||
: "";
|
||||
queryParams.value.stmtEndDate =
|
||||
occurrenceTime.value && occurrenceTime.value.length == 2
|
||||
? occurrenceTime.value[1] + " 23:59:59"
|
||||
: "";
|
||||
// queryParams.value.pageNo = 1;
|
||||
getList();
|
||||
}
|
||||
|
||||
function getFirstDayOfMonth(date) {
|
||||
return new Date(date.getFullYear(), date.getMonth(), 1);
|
||||
return new Date(date.getFullYear(), date.getMonth(), 1);
|
||||
}
|
||||
|
||||
// 对象转成指定字符串分隔
|
||||
@@ -377,26 +307,26 @@ function listToString(list, separator) {
|
||||
function handleTotalAmount() {
|
||||
totalPrice.counts = purchaseinventoryList.value.length
|
||||
totalPrice.medfeeSumamt = purchaseinventoryList.value.reduce(
|
||||
(accumulator, currentRow) => {
|
||||
return Number(
|
||||
(accumulator + Number(currentRow.medfeeSumamt || 0)).toFixed(2)
|
||||
);
|
||||
},
|
||||
0
|
||||
);
|
||||
(accumulator, currentRow) => {
|
||||
return Number(
|
||||
(accumulator + Number(currentRow.medfeeSumamt || 0)).toFixed(2)
|
||||
);
|
||||
},
|
||||
0
|
||||
);
|
||||
totalPrice.fundAppySum = purchaseinventoryList.value.reduce(
|
||||
(accumulator, currentRow) => {
|
||||
return Number(
|
||||
(accumulator + Number(currentRow.fundPaySumamt || 0)).toFixed(2)
|
||||
);
|
||||
(accumulator + Number(currentRow.fundPaySumamt || 0)).toFixed(2)
|
||||
);
|
||||
},
|
||||
0
|
||||
);
|
||||
totalPrice.acctPay = purchaseinventoryList.value.reduce(
|
||||
(accumulator, currentRow) => {
|
||||
return Number(
|
||||
(accumulator + Number(currentRow.acctPay || 0)).toFixed(2)
|
||||
);
|
||||
(accumulator + Number(currentRow.acctPay || 0)).toFixed(2)
|
||||
);
|
||||
},
|
||||
0
|
||||
);
|
||||
@@ -413,7 +343,22 @@ function getPharmacyCabinetLists() {
|
||||
{ value: 11, label: '门诊' },
|
||||
{ value: 21, label: '住院' },
|
||||
];
|
||||
insutypeOptions.value = [
|
||||
{ value: 310, label: '职工基本医疗保险' },
|
||||
{ value: 390, label: '城乡居民基本医疗保险' },
|
||||
{ value: 320, label: '公务员医疗补助' },
|
||||
{ value: 330, label: '大额医疗费用补助' },
|
||||
{ value: 340, label: '离休人员医疗保障' },
|
||||
{ value: 350, label: '一至六级残废军人医疗补助' },
|
||||
{ value: 360, label: '老红军医疗保障' },
|
||||
{ value: 370, label: '企业补充医疗保险' },
|
||||
{ value: 380, label: '新型农村合作医疗' },
|
||||
{ value: 391, label: '城镇居民基本医疗保险' },
|
||||
{ value: 392, label: '城乡居民大病医疗保险' },
|
||||
|
||||
];
|
||||
}
|
||||
|
||||
function handleSelectionChangeReturn(selection) {
|
||||
idsReturn.value = selection.map((item) => item.id);
|
||||
singleReturn.value = selection.length != 1;
|
||||
@@ -425,20 +370,20 @@ function getList() {
|
||||
// console.log(res,"res----------------")
|
||||
// loading.value = false;
|
||||
// purchaseinventoryList.value = [{psnNo:"123",mdtrtId:"121",setlId:"1213",medfeeSumamt:"122",fundPaySumamt:"12",acctPay:"4.72",insutype:"410",clrType: 11,contractNo:"229900"},{psnNo:"123",mdtrtId:"121",setlId:"1213",medfeeSumamt:"122",fundPaySumamt:"12",acctPay:"7.43",insutype:"410",clrType: 11,contractNo:"229900"},{psnNo:"123",mdtrtId:"121",setlId:"1213",medfeeSumamt:"122",fundPaySumamt:"12",acctPay:"1",insutype:"410",clrType: 11,contractNo:"229900"},{psnNo:"123",mdtrtId:"121",setlId:"1213",medfeeSumamt:"122",fundPaySumamt:"12",acctPay:"-1",insutype:"410",clrType: 11,contractNo:"229900"}]
|
||||
purchaseinventoryList.value = res.data.records ? res.data.records : res.data;
|
||||
purchaseinventoryList.value = res.data.records ? res.data.records : res.data;
|
||||
total.value = res.data.total;
|
||||
});
|
||||
}
|
||||
|
||||
function handleApplyForLiquidation () {
|
||||
function handleApplyForLiquidation() {
|
||||
let params = {}
|
||||
params.clrType = queryParams.value.clrType?queryParams.value.clrType:""
|
||||
params.setlOptins = queryParams.value.setlOptins?queryParams.value.setlOptins:""
|
||||
params.stmtBegnDate = queryParams.value.stmtBegnDate?queryParams.value.stmtBegnDate:""
|
||||
params.stmtEndDate = queryParams.value.stmtEndDate?queryParams.value.stmtEndDate:""
|
||||
params.clrType = queryParams.value.clrType ? queryParams.value.clrType : ""
|
||||
params.setlOptins = queryParams.value.setlOptins ? queryParams.value.setlOptins : ""
|
||||
params.stmtBegnDate = queryParams.value.stmtBegnDate ? queryParams.value.stmtBegnDate : ""
|
||||
params.stmtEndDate = queryParams.value.stmtEndDate ? queryParams.value.stmtEndDate : ""
|
||||
autoApplyFinancialClearing(params).then((res) => {
|
||||
console.log(res.data,'res----------------');
|
||||
loading.value = false;
|
||||
console.log(res.data, 'res----------------');
|
||||
loading.value = false;
|
||||
});
|
||||
}
|
||||
function isAllSelected() {
|
||||
@@ -447,40 +392,77 @@ function isAllSelected() {
|
||||
|
||||
function revokedSelectedRows(row) {
|
||||
let queryParamsss = {
|
||||
clrAppyEvtId:row.outResult,
|
||||
clroptins:queryParams.value.setlOptins?queryParams.value.setlOptins:"",
|
||||
clrAppyEvtId: row.outResult,
|
||||
clroptins: queryParams.value.setlOptins ? queryParams.value.setlOptins : "",
|
||||
}
|
||||
applyUnClearing(queryParamsss).then(res => {
|
||||
proxy.$message.success('撤销成功')
|
||||
getList()
|
||||
proxy.$message.success('撤销成功')
|
||||
getList()
|
||||
}).catch(err => {
|
||||
proxy.$message.error('撤销失败')
|
||||
proxy.$message.error('撤销失败')
|
||||
})
|
||||
}
|
||||
|
||||
/** 选择条数 */
|
||||
function handleSelectionChange(selection) {
|
||||
selectedRow.value = selection
|
||||
console.log(selectedRow.value,"selectedRow.value")
|
||||
console.log(selectedRow.value, "selectedRow.value")
|
||||
ids.value = selection.map((item) => item.setlId);
|
||||
single.value = selection.length != 1;
|
||||
multiple.value = !selection.length;
|
||||
}
|
||||
function handOperatedApply () {
|
||||
const params = {...totalPrice}
|
||||
params.clrOptins = queryParams.value.setlOptins?queryParams.value.setlOptins:""
|
||||
params.begndate = queryParams.value.stmtBegnDate?queryParams.value.stmtBegnDate:""
|
||||
params.enddate = queryParams.value.stmtEndDate?queryParams.value.stmtEndDate:""
|
||||
params.clrType = queryParams.value.clrType?queryParams.value.clrType:""
|
||||
handOperatedApplyFinancialClearing(params).then(res => {
|
||||
function handOperatedApply() {
|
||||
const params = { ...totalPrice }
|
||||
params.clrOptins = queryParams.value.setlOptins ? queryParams.value.setlOptins : ""
|
||||
params.begndate = occurrenceTime.value[0] ? occurrenceTime.value[0] + ' 00:00:00' : ""
|
||||
params.enddate = occurrenceTime.value[1] ? occurrenceTime.value[1] + ' 23:59:59' : ""
|
||||
params.clrType = queryParams.value.clrType ? queryParams.value.clrType : ""
|
||||
handOperatedApplyFinancialClearing(params).then(res => {
|
||||
}).catch(err => {
|
||||
proxy.$message.error('申请失败')
|
||||
proxy.$message.error('申请失败')
|
||||
})
|
||||
}
|
||||
|
||||
function hendleTabChange() {
|
||||
totalPrice.medfeeSumamt = 0;
|
||||
totalPrice.fundAppySum = 0;
|
||||
totalPrice.acctPay = 0;
|
||||
totalPrice.cashPayamt = 0;
|
||||
totalPrice.counts = 0;
|
||||
totalPrice.setlCnt = 0;
|
||||
totalPrice.medSumfee = 0.00;
|
||||
occurrenceTime.value = [
|
||||
formatDateStr(getFirstDayOfMonth(new Date()), 'YYYY-MM-DD'), // 当前月份的第一天
|
||||
formatDateStr(new Date(), 'YYYY-MM-DD') // 当天
|
||||
]
|
||||
purchaseinventoryList.value = []
|
||||
queryParams.value = {
|
||||
setlOptins: '229900',
|
||||
filePath: undefined,
|
||||
orgId: undefined,
|
||||
clrType: undefined,
|
||||
fileQuryNo: undefined,
|
||||
stmtBegnDate: undefined,
|
||||
stmtEndDate: undefined,
|
||||
}
|
||||
}
|
||||
|
||||
function handOperatedReconcileAccounts() {
|
||||
const params = { ...totalPrice }
|
||||
params.clrOptins = queryParams.value.setlOptins ? queryParams.value.setlOptins : ""
|
||||
params.begndate = occurrenceTime.value[0] ? occurrenceTime.value[0] + ' 00:00:00' : ""
|
||||
params.enddate = occurrenceTime.value[1] ? occurrenceTime.value[1] + ' 23:59:59' : ""
|
||||
params.clrType = queryParams.value.clrType ? queryParams.value.clrType : ""
|
||||
params.insutype = queryParams.value.insutype ? queryParams.value.insutype : ""
|
||||
handOperatedApplyReconcileAccounts(params).then(res => {
|
||||
}).catch(err => {
|
||||
proxy.$message.error('对账失败')
|
||||
})
|
||||
}
|
||||
//点击列表当前行
|
||||
function handleRowClick(row) {
|
||||
// editRowTK.value = row
|
||||
console.log(row,"row")
|
||||
console.log(row, "row")
|
||||
// if(row.returnStatus==1){
|
||||
// loadingReturn.value = true
|
||||
// generatedReturnDetail(row.supplyBusNo).then((response) => {
|
||||
@@ -489,7 +471,7 @@ function handleRowClick(row) {
|
||||
// // k.returnStatus_text = k.returnStatus==1?'已退库':''
|
||||
// k.originalSupplyBusNo = k.originalSupplyBusNo?k.originalSupplyBusNo:row.supplyBusNo
|
||||
// })
|
||||
|
||||
|
||||
// })
|
||||
// loadingReturn.value = false
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user