This commit is contained in:
duanxiaohai 2024-11-22 14:08:40 +08:00
parent 93d1ba2725
commit a43d548b18
5 changed files with 95 additions and 120 deletions

BIN
dist.zip

Binary file not shown.

View File

@ -15,7 +15,6 @@
</el-icon>
</div>
</template>
<div class="tabelPart">
<div class="bo">
<div class="title">
@ -101,12 +100,12 @@
</template>
<script setup>
import {
onMounted,
reactive,
ref,
onBeforeMount,
defineProps,
watch,
reactive,
onMounted,
defineProps,
onBeforeMount,
nextTick,
} from "vue";
import { CircleCloseFilled } from "@element-plus/icons-vue";
@ -121,23 +120,22 @@ const props = defineProps({
return false;
},
},
tableData: {
type: Array,
default: () => {
return [];
},
},
title: {
type: String,
default: () => {
return "";
},
},
menu: {
type: String,
tableData: {
type: Array,
default: () => {
return "";
return [];
},
},
menu: {
type: Array,
default: () => {
return [];
},
},
});
@ -146,8 +144,8 @@ const emit = defineEmits(["close"]);
const dialogShow = ref();
const data = reactive({
title: "",
content: {},
menu: {},
content: {},
active: 4, //
stepdata: [
{
@ -172,7 +170,6 @@ const titleshow = ref(false);
const onMenu = (val, index) => {
// console.log(val, index);
// data.menu = val;
data.menu.forEach((element) => {
element.show = false;
});
@ -208,9 +205,6 @@ watch(
if (data.menu.length > 0) {
data.menu[0].show = true;
}
// if (data.content == "") {
// let data1 = `XXXX \n`;
// }
if (!data.content.show) {
// data.stepdata[1].description = "2024.9.16";
// data.content.yw = data.menu[0].property;
@ -219,6 +213,8 @@ watch(
data.stepdata[1].description = `业务单位:${data.menu[0].yw} \n 业务负责人:${data.menu[0].property}\n 受理日期2024.9.16`;
data.stepdata[2].description = `${data.content.name}办结时间:${data.content.time}`;
data.stepdata[3].description = `${data.content.time1}`;
} else {
// data.menu[0].label = data.content.bt
}
}
}
@ -237,6 +233,7 @@ const closeDialog = () => {
emit("close");
};
</script>
<style lang="scss" scoped>
:deep(.el-dialog) {
--el-dialog-bg-color: none;

View File

@ -499,7 +499,7 @@ const search1 = reactive({
date1: "",
});
var titleList = reactive([
const titleList = reactive([
{
title: "服务项目(未完成)",
id: 1,
@ -862,51 +862,51 @@ const columnsList = reactive({
},
],
},
职工医疗保险: {
titleList: [
{
title: "服务项目(未完成)",
id: 1,
col: "columns",
},
],
columns: [
{
label: "序号",
property: "index",
width: "60",
},
{
label: "姓名",
property: "xm",
width: "70",
},
{
label: "身份证",
property: "sfzhm",
width: "170",
},
{
label: "联系电话",
property: "sjhm",
width: "120",
},
{
label: "乡镇(街道)",
property: "xzjd",
width: "100",
},
{
label: "村社",
property: "cs",
width: "100",
},
{
label: "地址",
property: "dz",
},
],
},
// : {
// titleList: [
// {
// title: "()",
// id: 1,
// col: "columns",
// },
// ],
// columns: [
// {
// label: "",
// property: "index",
// width: "60",
// },
// {
// label: "",
// property: "xm",
// width: "70",
// },
// {
// label: "",
// property: "sfzhm",
// width: "170",
// },
// {
// label: "",
// property: "sjhm",
// width: "120",
// },
// {
// label: "()",
// property: "xzjd",
// width: "100",
// },
// {
// label: "",
// property: "cs",
// width: "100",
// },
// {
// label: "",
// property: "dz",
// },
// ],
// },
});
//
var timer;
@ -1003,12 +1003,11 @@ const getRegisteredDB = () => {
if (res.code == 200) {
const { value } = chooseTitle;
if ([2, 3, 4, 5].includes(value)) {
console.log(value);
// console.log(value);
data[`tableData${value}`] = res.data;
data[`pagination${value}`].total = res.count; // total
const currentPage = data[`pagination${value}`].current; //
const pageSize = data[`pagination${value}`].pageSize; //
// index
res.data.forEach((item, index) => {
item.index = index + 1 + (currentPage - 1) * pageSize;
@ -1101,13 +1100,22 @@ const handlePagination1 = (currentPage) => {
getRegisteredDB();
};
onMounted(() => {
data.xh = routers.query.xh;
data.bm = routers.query.bm;
data.msgId = routers.query.msgId;
data.columns =
columnsList["最低生活保障"][columnsList["最低生活保障"].titleList[0].col];
data.url = columnsList["最低生活保障"].titleList[0].url;
titleList = columnsList["最低生活保障"].titleList;
// data.xh = routers.query.xh;
// data.bm = routers.query.bm;
// data.msgId = routers.query.msgId;
// data.columns =
// columnsList[""][columnsList[""].titleList[0].col];
// data.url = columnsList[""].titleList[0].url;
const query = routers.query;
Object.assign(data, { xh: query.xh, bm: query.bm, msgId: query.msgId });
const defaultTitle = columnsList["最低生活保障"].titleList[0];
data.columns = columnsList["最低生活保障"][defaultTitle.col];
data.url = defaultTitle.url;
titleList.splice(0, titleList.length, ...(data.xh === "59"
? columnsList["最低生活保障"].titleList
: [defaultTitle]
));
personDetails();
});
</script>

View File

@ -541,11 +541,6 @@ const lampScreen = (val) => {
align: "center",
type: "slot",
},
// {
// label: "",
// property: "dz",
// tooltip: true,
// },
{
label: "年龄",
property: "nl",
@ -739,6 +734,9 @@ const tableType = reactive({
//
const statusDetails = (val) => {
if (val.deng == 1 || val.deng == 2) {
return ;
}
if (data.name == "食品安全监管" || data.name == "药品安全监管") {
data.dxbm = val.dxbm;
getTable2(tableType);
@ -902,15 +900,6 @@ const openLC = (val) => {
// console.log(data.name);
Process.data.show = false;
Process.data.bt = data.name;
// res.data.ysx.forEach((item, index) => {
// Process.menu.push({
// label: item.bzlx,
// property: maskYwfzr(item.ywfzr),
// yw: `${item.qtbm}-${item.zrks}`,
// show: false,
// });
// });
res.data.wxs.forEach((item, index) => {
Process.menu.push({
label: item.bzlx,
@ -921,28 +910,8 @@ const openLC = (val) => {
});
dialogShowProcess.value = true;
} else if (data.name == "城乡居民基本医疗保险") {
// console.log(data.name);
Process.data.show = false;
Process.data.bt = data.name;
// if (val.sfzhm == 339655) {
// Process.data.name =
// " \n165250.359900 \n";
// } else if (val.sfzhm == 345797) {
// Process.data.name =
// "\n50569.355330.52 \n";
// } else if (val.sfzhm == 59715) {
// Process.data.name =
// " \n72308.796130 \n";
// } else if (val.sfzhm == 259384) {
// Process.data.name =
// " \n82337.199900 \n";
// } else if (val.sfzhm == 364099) {
// Process.data.name =
// " \n60668.461532.91 \n";
// } else if (val.sfzhm == 37083) {
// Process.data.name =
// " \n76284.159900 \n";
// }
const rescueData = {
339655: "符合救助条件 \n自付金额165250.35元已临时救助9900元 \n",
345797: "符合救助条件 \n自付金额50569.35元已临时救助5330.52元 \n",
@ -982,21 +951,15 @@ const openLC = (val) => {
show: true,
});
});
// res.data.wxs.forEach((item, index) => {
// Process.menu.push({
// label: item.bzlx,
// property: maskYwfzr(item.ywfzr),
// yw: `${item.qtbm}-${item.zrks}`,
// show: true,
// });
// });
dialogShowProcess.value = true;
} else {
Process.data.show = true;
Process.data.yw = "医保局-龙游县医疗保障事业管理中心";
Process.data.fzr = "周*珊,伊*田,杨**";
Process.data.bt = data.name;
Process.menu.push({
label: data.name,
});
dialogShowProcess.value = true;
}
}
@ -1042,6 +1005,13 @@ const getTable = (pagination) => {
break;
case "3":
data.tableData2 = res.data;
data.tableData2 = data.tableData2.map((item) => {
return {
...item,
pushSendTotal:
item.pushSendTotal == 0 ? "1" : item.pushSendTotal,
};
});
pagination2.total = res.count;
break;
default:

View File

@ -5332,7 +5332,7 @@ const reset_font2 = () => {
};
// const bjtitle = ref();
// const jsqx = ref(false);
const isCollapsed = ref(false);
const isCollapsed = ref(true);
const toggleCollapse = () => {
isCollapsed.value = !isCollapsed.value;
@ -5996,7 +5996,7 @@ onMounted(async () => {
transition: color 0.2s ease;
}
.arrow:hover {
color: #000000;
color: #0c356a;
}
}