This commit is contained in:
duanxiaohai 2024-11-22 20:46:33 +08:00
parent df091b749c
commit c10d13611d
3 changed files with 308 additions and 65 deletions

BIN
dist.zip

Binary file not shown.

View File

@ -110,6 +110,7 @@ import {
} from "vue"; } from "vue";
import { CircleCloseFilled } from "@element-plus/icons-vue"; import { CircleCloseFilled } from "@element-plus/icons-vue";
import { useRouter, useRoute } from "vue-router"; import { useRouter, useRoute } from "vue-router";
import http from "@/utils/request.js";
const router = useRouter(); const router = useRouter();
const routers = useRoute(); const routers = useRoute();
@ -138,14 +139,38 @@ const props = defineProps({
return []; return [];
}, },
}, },
UU: {
type: Array,
default: () => {
return [];
},
},
}); });
const emit = defineEmits(["close"]); // const emit = defineEmits(["close"]);
// //
const dialogShow = ref(); const dialogShow = ref();
const data = reactive({ const data = reactive({
title: "", title: "",
menu: {}, menu: {},
content: {}, content: {
yw: "",
fzr: "",
bt: "",
bm: "",
show: null, //
sfzhm: "",
xh: "",
name: "",
time: "",
time1: "",
sendTime: "",
ywdw: "",
ywfzr: "",
disposalTime: "",
completionTime: "",
nr: "",
},
active: 4, // active: 4, //
stepdata: [ stepdata: [
{ {
@ -168,13 +193,78 @@ const data = reactive({
}); });
const titleshow = ref(false); const titleshow = ref(false);
const emit = defineEmits(["close", "openLCQX"]);
const onMenu = (val, index) => { const onMenu = (val, index) => {
// console.log(val, index);
data.menu.forEach((element) => { data.menu.forEach((element) => {
element.show = false; element.show = false;
}); });
data.menu[index].show = true; data.menu[index].show = true;
// emit("openLCQX", val.bm);
data.content.bm = val.bm
openLCQXs()
}; };
const openLCQXs = () => {
http
.get(
`/api/ggfwyth/pg/fwllcxq?sfzhm=${data.content.sfzhm}&xh=${data.content.xh}&bm=${data.content.bm}`
)
.then((res) => {
if (res.code == 200) {
// data.content.sendTime = "";
// data.content.ywdw = "";
// data.content.ywfzr = "";
// data.content.disposalTime = "";
// data.content.completionTime = "";
// data.content.nr = "";
//
Object.assign(data.content, {
sendTime: "",
ywdw: "",
ywfzr: "",
disposalTime: "",
completionTime: "",
nr: ""
});
if (res.data && res.data.length > 0) {
data.content.sendTime = res.data[0]?.sendTime.split(" ")[0];
data.content.ywdw = "asdasd ";
data.content.ywdw = res.data[1]?.ywdw;
data.content.ywfzr = res.data[1]?.ywfzr;
data.content.disposalTime = res.data[1]?.disposalTime.split(" ")[0];
data.content.completionTime =
res.data[2]?.completionTime.split(" ")[0];
data.content.nr = res.data[2]?.nr;
}
data.stepdata[0].description = `推送时间:${
data.content.sendTime || "未核实"
}`;
//
if (
data.content.ywdw &&
data.content.ywfzr &&
data.content.disposalTime
) {
data.stepdata[1].description = `业务单位:${data.content.ywdw} \n业务负责人${data.content.ywfzr}\n受理日期${data.content.disposalTime}`;
} else {
data.stepdata[1].description = "未核实";
}
//
if (data.content.nr && data.content.completionTime) {
data.stepdata[2].description = `${data.content.nr} \n办结时间${data.content.completionTime}`;
} else {
data.stepdata[2].description = "未核实";
}
data.stepdata[3].description = `核实日期: ${
data.content.time1 || "未核实"
}`;
}
});
};
const scrollContainer = ref(null); const scrollContainer = ref(null);
// //
const scrollLeft = () => { const scrollLeft = () => {
@ -197,11 +287,9 @@ watch(
dialogShow.value = newVal; dialogShow.value = newVal;
if (newVal == true) { if (newVal == true) {
// data.menu.length = 0;
data.menu = props.menu; data.menu = props.menu;
data.title = props.title; data.title = props.title;
data.content = props.tableData; data.content = props.tableData;
console.log(11, data.menu, data.content);
if (data.menu.length > 0) { if (data.menu.length > 0) {
data.menu[0].show = true; data.menu[0].show = true;
} }
@ -209,19 +297,88 @@ watch(
// 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;
// data.content.fzr = data.menu[0].yw; // data.content.fzr = data.menu[0].yw;
data.stepdata[0].description = `推送时间2024.9.15`; // data.stepdata[0].description = `${data.content.sendTime}`;
data.stepdata[1].description = `业务单位:${data.menu[0].yw} \n 业务负责人:${data.menu[0].property}\n 受理日期2024.9.16`; // data.stepdata[1].description = `${data.content.ywdw} \n ${data.content.ywfzr}\n ${data.content.disposalTime}`;
data.stepdata[2].description = `${data.content.name}办结时间:${data.content.time}`; // data.stepdata[2].description = `${data.content.nr} \n${data.content.completionTime}`;
data.stepdata[3].description = `${data.content.time1}`; // data.stepdata[3].description = `${data.content.time1}`;
// data.stepdata[1].description = `${data.content.ywdw || ""} \n${data.content.ywfzr || ""}\n${data.content.disposalTime || ""}`;
// data.stepdata[2].description = `${data.content.nr || ""} \n${data.content.completionTime || ""}`;
data.stepdata[0].description = `推送时间:${
data.content.sendTime || "未核实"
}`;
//
if (
data.content.ywdw &&
data.content.ywfzr &&
data.content.disposalTime
) {
data.stepdata[1].description = `业务单位:${data.content.ywdw} \n业务负责人${data.content.ywfzr}\n受理日期${data.content.disposalTime}`;
} else {
data.stepdata[1].description = "未核实";
}
//
if (data.content.nr && data.content.completionTime) {
data.stepdata[2].description = `${data.content.nr} \n办结时间${data.content.completionTime}`;
} else {
data.stepdata[2].description = "未核实";
}
data.stepdata[3].description = `核实日期: ${
data.content.time1 || "未核实"
}`;
} else { } else {
// data.menu[0].label = data.content.bt // data.menu[0].label = data.content.bt
} }
} }
} }
); );
watch(
() => props.tableData,
(newVal, oldVal) => {
// dialogShow.value = newVal;
// if (newVal == true) {
// console.log(777, newVal,data.menu, data.content);
data.menu = props.menu;
data.title = props.title;
data.content = props.tableData;
if (data.menu.length > 0) {
data.menu[0].show = true;
}
if (!data.content.show) {
data.stepdata[0].description = `推送时间:${
data.content.sendTime || "未核实"
}`;
//
if (
data.content.ywdw &&
data.content.ywfzr &&
data.content.disposalTime
) {
data.stepdata[1].description = `业务单位:${data.content.ywdw} \n业务负责人${data.content.ywfzr}\n受理日期${data.content.disposalTime}`;
} else {
data.stepdata[1].description = "未核实";
}
//
if (data.content.nr && data.content.completionTime) {
data.stepdata[2].description = `${data.content.nr} \n办结时间${data.content.completionTime}`;
} else {
data.stepdata[2].description = "未核实";
}
data.stepdata[3].description = `核实日期: ${
data.content.time1 || "未核实"
}`;
}
}
// }
);
// 使 // 使
onMounted(() => { onBeforeMount(() => {
dialogShow.value = props.dialogShow; dialogShow.value = props.dialogShow;
data.title = props.title; data.title = props.title;
data.content = props.tableData; data.content = props.tableData;

View File

@ -224,7 +224,7 @@
</div> </div>
<!-- 推送次数 --> <!-- 推送次数 -->
<div v-if="item.property == 'pushSendTotal'"> <div v-if="item.property == 'pushSendTotal'">
<div > <div>
{{ scope.row.pushSendTotal }} {{ scope.row.pushSendTotal }}
</div> </div>
</div> </div>
@ -283,7 +283,8 @@
:tableData="Process.data" :tableData="Process.data"
:menu="Process.menu" :menu="Process.menu"
@close="closeProcess" @close="closeProcess"
> >
<!-- @openLCQX="openLCQXs" -->
</DialogProcess> </DialogProcess>
</div> </div>
</template> </template>
@ -609,43 +610,23 @@ const Process = reactive({
yw: "民政局-社会救助科", yw: "民政局-社会救助科",
fzr: "杨*", fzr: "杨*",
bt: "1/6 低保金", bt: "1/6 低保金",
bm: "",
show: true, // show: true, //
sfzhm: "",
xh: "",
name: "", name: "",
time: "2024.10.16", time: "2024.10.16",
time1: "核实日期2024.11.18", time1: "未核实",
sendTime: "未核实",
ywdw: "未核实",
ywfzr: "未核实",
disposalTime: "未核实",
completionTime: "未核实",
nr: "未核实",
}, },
menu: [ menu: [],
// {
// label: "",
// property: "*",
// yw: "-",
// show: true,
// },
// {
// label: "",
// property: "",
// yw: "-",
// show: false,
// },
// {
// label: "",
// yw: "-",
// property: "",
// show: false,
// },
// {
// label: "线",
// yw: "-",
// property: "",
// show: false,
// },
// {
// label: "",
// yw: "-",
// property: "",
// show: false,
// },
],
}); });
const sfType = reactive({ const sfType = reactive({
url: ``, url: ``,
@ -734,7 +715,6 @@ const tableType = reactive({
// //
const statusDetails = (val) => { const statusDetails = (val) => {
if (data.name == "食品安全监管" || data.name == "药品安全监管") { if (data.name == "食品安全监管" || data.name == "药品安全监管") {
data.dxbm = val.dxbm; data.dxbm = val.dxbm;
getTable2(tableType); getTable2(tableType);
@ -842,11 +822,11 @@ const closeProcess = () => {
// //
const openLC = (val) => { const openLC = (val) => {
data.identNo = val.sfzhm; data.identNo = val.sfzhm;
Process.data.sfzhm = val.sfzhm;
Process.data.xh = routers.query.xh;
http http
.get( .get(`/api/ggfwyth/pg/fwllclx?sfzhm=${data.identNo}&xh=${routers.query.xh}`)
`/api/ggfwyth/pg/fwjgqdxq?sfzhm=${data.identNo}&xh=${routers.query.xh}`
)
.then((res) => { .then((res) => {
if (res.code == 200) { if (res.code == 200) {
function maskName(name) { function maskName(name) {
@ -882,23 +862,32 @@ const openLC = (val) => {
} }
} }
Process.menu = []; Process.menu = [];
if (res.data && res.data.length > 0) {
Process.data.bm = res.data[0].bm;
} else {
ElMessage.warning({
message: "暂无数据!",
});
}
if (data.name == "最低生活保障") { if (data.name == "最低生活保障") {
Process.data.show = false; Process.data.show = false;
res.data.ysx.forEach((item, index) => { res.data.forEach((item, index) => {
Process.menu.push({ Process.menu.push({
label: item.bzlx, label: item.bzlx,
property: maskYwfzr(item.ywfzr), property: maskYwfzr(item.ywfzr),
yw: `${item.qtbm}-${item.zrks}`, yw: `${item.qtbm}-${item.zrks}`,
bm: item.bm,
show: false, show: false,
}); });
}); });
// console.log(888, Process.menu);
dialogShowProcess.value = true; openLCQX();
// dialogShowProcess.value = true;
} else if (data.name == "职工基本医疗保险") { } else if (data.name == "职工基本医疗保险") {
// 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.wxs.forEach((item, index) => { res.data.forEach((item, index) => {
Process.menu.push({ Process.menu.push({
label: item.bzlx, label: item.bzlx,
property: maskYwfzr(item.ywfzr), property: maskYwfzr(item.ywfzr),
@ -906,17 +895,18 @@ const openLC = (val) => {
show: true, show: true,
}); });
}); });
// openLCQX();
dialogShowProcess.value = true; dialogShowProcess.value = true;
} else if (data.name == "城乡居民基本医疗保险") { } else if (data.name == "城乡居民基本医疗保险") {
Process.data.show = false; Process.data.show = false;
Process.data.bt = data.name; Process.data.bt = data.name;
const rescueData = { const rescueData = {
339655: "符合救助条件 \n自付金额165250.35元已临时救助9900元 \n", 339655: "符合救助条件 \n自付金额165250.35元已临时救助9900元 ",
345797: "符合救助条件 \n自付金额50569.35元已临时救助5330.52元 \n", 345797: "符合救助条件 \n自付金额50569.35元已临时救助5330.52元 ",
59715: "符合救助条件 \n自付金额72308.79元已临时救助6130元 \n", 59715: "符合救助条件 \n自付金额72308.79元已临时救助6130元 ",
259384: "符合救助条件 \n自付金额82337.19元已临时救助9900元 \n", 259384: "符合救助条件 \n自付金额82337.19元已临时救助9900元 ",
364099: "符合救助条件 \n自付金额60668.46元已临时救助1532.91元 \n", 364099: "符合救助条件 \n自付金额60668.46元已临时救助1532.91元 ",
37083: "符合救助条件 \n自付金额76284.15元已临时救助9900元 \n", 37083: "符合救助条件 \n自付金额76284.15元已临时救助9900元 ",
}; };
const timeData = { const timeData = {
339655: "2024.11.19", 339655: "2024.11.19",
@ -936,12 +926,12 @@ const openLC = (val) => {
}; };
if (rescueData[val.sfzhm]) { if (rescueData[val.sfzhm]) {
Process.data.name = rescueData[val.sfzhm]; Process.data.ywfzr = rescueData[val.sfzhm];
Process.data.time = timeData[val.sfzhm]; Process.data.completionTime = timeData[val.sfzhm];
Process.data.time1 = timeData1[val.sfzhm]; Process.data.time1 = timeData1[val.sfzhm];
} }
res.data.ysx.forEach((item, index) => { res.data.forEach((item, index) => {
Process.menu.push({ Process.menu.push({
label: item.bzlx, label: item.bzlx,
property: maskYwfzr(item.ywfzr), property: maskYwfzr(item.ywfzr),
@ -949,6 +939,7 @@ const openLC = (val) => {
show: true, show: true,
}); });
}); });
// openLCQX();
dialogShowProcess.value = true; dialogShowProcess.value = true;
} else { } else {
Process.data.show = true; Process.data.show = true;
@ -958,12 +949,107 @@ const openLC = (val) => {
Process.menu.push({ Process.menu.push({
label: data.name, label: data.name,
}); });
dialogShowProcess.value = true; openLCQX();
// dialogShowProcess.value = true;
} }
} }
}); });
}; };
const openLCQX = () => {
http
.get(
`/api/ggfwyth/pg/fwllcxq?sfzhm=${data.identNo}&xh=${routers.query.xh}&bm=${Process.data.bm}`
)
.then((res) => {
if (res.code == 200) {
Process.data.sendTime = "";
Process.data.ywdw = "";
Process.data.ywfzr = "";
Process.data.disposalTime = "";
Process.data.completionTime = "";
Process.data.nr = "";
if (res.data && res.data.length > 0) {
Process.data.sendTime = res.data[0]?.sendTime.split(" ")[0];
Process.data.ywdw = res.data[1]?.ywdw;
Process.data.ywfzr = res.data[1]?.ywfzr;
Process.data.disposalTime = res.data[1]?.disposalTime.split(" ")[0];
Process.data.completionTime =
res.data[2]?.completionTime.split(" ")[0];
Process.data.nr = res.data[2]?.nr;
}
dialogShowProcess.value = true;
}
});
};
// const openLCQXs = (val) => {
// console.log(u.value);
// http
// .get(
// `/api/ggfwyth/pg/fwllcxq?sfzhm=${data.identNo}&xh=${routers.query.xh}&bm=${val}`
// )
// .then((res) => {
// if (res.code == 200) {
// function maskName(name) {
// if (name.length === 2) {
// // *
// return name[0] + "*";
// } else if (name.length > 2) {
// //
// return (
// name[0] + "*".repeat(name.length - 2) + name[name.length - 1]
// );
// }
// return name; //
// }
// function maskYwfzr(ywfzr) {
// //
// if (ywfzr.includes("")) {
// //
// return ywfzr.replace(/([^]+[^,]+)/g, (match) => {
// const parts = match.split(""); //
// const maskedNames = parts[1]
// .split(",")
// .map((name) => maskName(name.trim()))
// .join(", "); //
// return `${parts[0]}${maskedNames}`; //
// });
// } else {
// //
// return ywfzr
// .split(",")
// .map((name) => maskName(name.trim()))
// .join(", ");
// }
// }
// Process.data.sendTime = "";
// Process.data.ywdw = "";
// Process.data.ywfzr = "";
// Process.data.disposalTime = "";
// Process.data.completionTime = "";
// Process.data.nr = "";
// if (res.data && res.data.length > 0) {
// Process.data.sendTime = res.data[0]?.sendTime.split(" ")[0];
// Process.data.ywdw = "asdasd ";
// // Process.data.ywdw = res.data[1]?.ywdw;
// // Process.data.ywfzr = res.data[1]?.ywfzr;
// // Process.data.disposalTime = res.data[1]?.disposalTime.split(" ")[0];
// // Process.data.completionTime =
// // res.data[2]?.completionTime.split(" ")[0];
// // Process.data.nr = res.data[2]?.nr;
// }
// console.log(666, Process.data);
// dialogShowProcess.value = true;
// }
// });
// u.value=Process.data;
// console.log(u.value);
// };
const isLoading = ref(true); const isLoading = ref(true);
let loadingCount = 0; // let loadingCount = 0; //
// //