This commit is contained in:
姚宇浩 2024-08-09 15:37:03 +08:00
parent 77a86f999d
commit 01ace14996
1 changed files with 31 additions and 106 deletions

View File

@ -93,7 +93,7 @@
</div> </div>
</div> </div>
<div class="person-side"> <div class="person-side">
<div> <div v-if="rightType == '1'">
<div class="my-label"> <div class="my-label">
<div class="my-label-title">{{ pdT }}</div> <div class="my-label-title">{{ pdT }}</div>
</div> </div>
@ -119,15 +119,16 @@
> >
<template v-for="item in tableType.columns"> <template v-for="item in tableType.columns">
<el-table-column <el-table-column
v-if="item.type === 'slot'" v-if="item.type == 'slot'"
:label="item.label" :label="item.label"
:property="item.property" :prop="item.property"
:align="center"
> >
<template #default="scope"> <template #default="scope">
<!-- 医疗保险类型 --> <!-- 医疗保险类型 -->
<div v-if="item.property == 'ylbxlx'"> <div v-if="item.property == 'ylbxlx'">
<div v-if="scope.row.ylbxlx == 0">城乡居民基本医疗保险</div> <div v-if="scope.row.ylbxlx == 0">
城乡居民基本医疗保险
</div>
<div v-else>职工基本医疗保险</div> <div v-else>职工基本医疗保险</div>
</div> </div>
<!-- 养老金类型 --> <!-- 养老金类型 -->
@ -140,9 +141,8 @@
<el-table-column <el-table-column
v-else v-else
:width="item.width" :width="item.width"
:property="item.property" :prop="item.property"
:label="item.label" :label="item.label"
:align="center"
/> />
</template> </template>
</el-table> </el-table>
@ -158,7 +158,7 @@
/> />
</div> </div>
</div> </div>
<div> <div v-else>
<div class="my-label"> <div class="my-label">
<div class="my-label-title">{{ pdT }}</div> <div class="my-label-title">{{ pdT }}</div>
</div> </div>
@ -179,7 +179,7 @@
<Dialog <Dialog
:dialogShow="dialogShow" :dialogShow="dialogShow"
:columns="tableType.columns" :columns="tableType.columns"
:title="tableType.title" :title="tableType.title2"
:tableData="tableType.data" :tableData="tableType.data"
:pagination="paginationDialog" :pagination="paginationDialog"
@close="close" @close="close"
@ -316,56 +316,27 @@ const dataMyTag = reactive({
* @type {Array} * @type {Array}
* @description 表格配置 * @description 表格配置
*/ */
tableList: [
{
name: "yljlx",
label: "养老金类型",
width: "160",
},
{
name: "yljffrq",
label: "发放日期",
},
{
name: "yljffje",
label: "发放金额(元)",
},
],
}); });
// //
const data = ref([
{
type: "基础养老金",
date: "2022-01-01",
sum: "1000",
},
{
type: "基础养老金",
date: "2022-01-01",
sum: "1000",
},
{
type: "基础养老金",
date: "2022-01-01",
sum: "1000",
},
{
type: "基础养老金",
date: "2022-01-01",
sum: "1000",
},
]);
const pagination = reactive({ const pagination = reactive({
current: 1, current: 1,
pageSize: 5, pageSize: 5,
total: 50, total: 50,
showTotal: 0, showTotal: 0,
}); });
//
const paginationDialog = reactive({
current: 1,
pageSize: 10,
total: 50,
showTotal: 0,
});
const baseInfo = ref({}); const baseInfo = ref({});
const dialogShow = ref(false); const dialogShow = ref(false);
const tableType = reactive({ const tableType = reactive({
url: "", url: "",
//
title2: "",
title: "出生", title: "出生",
columns: [], columns: [],
data: [], data: [],
@ -491,7 +462,7 @@ const columnsList = reactive({
{ {
label: "养老金类型", label: "养老金类型",
property: "yljlx", property: "yljlx",
type:'slot', type: "slot",
}, },
{ {
label: "养老金发放金额", label: "养老金发放金额",
@ -502,7 +473,6 @@ const columnsList = reactive({
label: "养老金发放日期", label: "养老金发放日期",
property: "yljffrq", property: "yljffrq",
}, },
], ],
}, },
综合: { 综合: {
@ -516,6 +486,7 @@ const columnsList = reactive({
{ {
label: "发放日期", label: "发放日期",
property: "jfrq", property: "jfrq",
// type: "slot",
}, },
{ {
label: "缴费金额", label: "缴费金额",
@ -557,7 +528,7 @@ const pd = computed(() => {
// //
const onClickTag = (item) => { const onClickTag = (item) => {
tableType.title = item.name; tableType.title2 = item.name;
tableType.columns = columnsList["特殊标签"].column; tableType.columns = columnsList["特殊标签"].column;
dialogShow.value = true; dialogShow.value = true;
}; };
@ -568,27 +539,25 @@ const onClickTag2 = (name) => {
tableType.columns = columnsList[name].column; tableType.columns = columnsList[name].column;
getTable(tableType.url, true); getTable(tableType.url, true);
}; };
const paginationDialog = reactive({
current: 1,
pageSize: 10,
total: 50,
showTotal: 0,
});
//01 //01
const rightType = ref(0); const rightType = ref(0);
// //
const rightList = ref([]); const rightList = ref([]);
// //
const getTable = (url, csh) => { const getTable = (url, csh) => {
// cshtruefalse
http http
.get(url, { .get(url, {
identNo: identNo.value, identNo: identNo.value,
current: pagination.current, page: pagination.current,
size: pagination.pageSize, size: pagination.pageSize,
}) })
.then((res) => { .then((res) => {
if (res.code == 200) { if (res.code == 200) {
tableType.data = res.data; tableType.data = res.data;
if (res?.count) {
pagination.total = res.count;
}
if (csh) { if (csh) {
if (tableType.data?.length > 1) { if (tableType.data?.length > 1) {
rightType.value = 1; rightType.value = 1;
@ -597,12 +566,11 @@ const getTable = (url, csh) => {
rightList.value.length = 0; rightList.value.length = 0;
} else { } else {
rightList.value = tableType.data[0]; rightList.value = tableType.data[0];
console.log(22222, rightList.value);
} }
rightType.value = 0; rightType.value = 0;
} }
} }
console.log(rightType.value);
} }
}); });
}; };
@ -632,53 +600,10 @@ const getData = (identNo) => {
item.show = 1; item.show = 1;
} }
}); });
// if (res.data[item.jkName]) {
// item.show = Number(res.data[item.jkName]);
// }
}); });
if (res.data.yljlx) {
data.value = [
{
type: res.data.yljlx,
date: res.data.yljffrq,
sum: res.data.yljffje,
},
];
} else {
data.value = [];
}
// console.log(dataMyTag.myTag, 555);
} }
}); });
}; };
// const getData2 = (nm, identNo) => {
// http
// .get(`/api/ggfwyth/pg/lyxsdbrymdDetails?xm=${nm}&sfzhm=${identNo}`)
// .then((res) => {
// if (res.code == 200) {
// baseInfo.value = res.data;
// // dataMyTag.myTag.map((item) => {
// // if (res.data[item.jkName]) {
// // item.show = Number(res.data[item.jkName]);
// // }
// // });
// if(res.data.yljlx){
// data.value=[
// {
// type:res.data.yljlx,
// date:res.data.yljffrq,
// sum:res.data.yljffje
// }
// ]
// }else{
// data.value=[]
// }
// // console.log(dataMyTag.myTag, 555);
// }
// });
// };
const back = () => { const back = () => {
if (jump.value == "detail") { if (jump.value == "detail") {
router.back(); router.back();
@ -701,8 +626,8 @@ onMounted(() => {
baseInfo.value.dz = routers.query.dz; baseInfo.value.dz = routers.query.dz;
baseInfo.value.identNo = routers.query.identNo; baseInfo.value.identNo = routers.query.identNo;
jump.value = "detail"; jump.value = "detail";
getData("3"); // getData("3");
identNo.value = "3"; // identNo.value = "3";
onClickTag2("出生"); onClickTag2("出生");
} else { } else {
jump.value = "map"; jump.value = "map";