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

View File

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

View File

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

View File

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