This commit is contained in:
duanxiaohai 2024-11-07 11:55:04 +08:00
parent e15ba7e945
commit 38ffce2cd6
6 changed files with 97 additions and 26 deletions

BIN
dist.zip Normal file

Binary file not shown.

View File

@ -41,11 +41,9 @@
</div> </div>
</div> </div>
<div style="width: 100%; height: calc(100% - 110px)" class="table-els"> <div style="width: 100%; height: calc(100% - 110px)" class="table-els">
<div class="tabelHead"> <div class="tabelHead" v-if="data.name == '许可证编号'">
<div><span>姓名</span>{{ data.xq.xm }}</div> <div><span>姓名</span>{{ data.xq.dxmc }}</div>
<div><span>地址</span>{{ data.xq.dz }}</div> <div><span>地址</span>{{ data.xq.dz }}</div>
<div><span>年龄</span>{{ data.xq.nl }}</div>
<div><span>标签</span>{{ data.xq.bq }}</div>
<div class="status"> <div class="status">
<div class="statusMessage"> <div class="statusMessage">
<span>状态</span> <span>状态</span>
@ -61,6 +59,28 @@
</div> </div>
</div> </div>
</div> </div>
<div class="tabelHead" v-else>
<div><span>姓名</span>{{ data.xq.xm }}</div>
<div><span>地址</span>{{ data.xq.dz }}</div>
<div><span>年龄</span>{{ data.xq.nl }}</div>
<div><span>标签</span>{{ data.xq.bq }}</div>
<div class="status">
<div class="statusMessage">
<span>状态</span>
<img :src="lampImages[data.xq.deng]" @click="escalation" />
</div>
<div class="lampBox" v-if="clicked">
<div class="lampTitle">确定要上报吗?</div>
<div class="lampBtn">
<div class="confirm" @click="confirmEvent()">上报</div>
<div class="cancel" @click="cancelEvent()">取消</div>
</div>
</div>
</div>
</div>
<div style="border: 1px solid #5284b0"> <div style="border: 1px solid #5284b0">
<el-table <el-table
:data="data.tableData" :data="data.tableData"
@ -174,6 +194,12 @@ const props = defineProps({
return []; return [];
}, },
}, },
name: {
type: Array,
default: () => {
return [];
},
},
tableData: { tableData: {
type: Object, type: Object,
@ -248,6 +274,8 @@ const data = reactive({
typeId: "", typeId: "",
sfzhm: "", sfzhm: "",
xh: "", xh: "",
dxmc: "",
// pagination: {}, // pagination: {},
}); });
// 使 // 使
@ -274,6 +302,7 @@ watch(
// console.log(props.tableData); // console.log(props.tableData);
data.xq = props.tableData.data.xq; data.xq = props.tableData.data.xq;
data.typeId = props.tableData.typeId; data.typeId = props.tableData.typeId;
data.name = props.tableData.name;
data.sfzhm = props.tableData.data.xq.sfzhm; data.sfzhm = props.tableData.data.xq.sfzhm;
data.xh = props.tableData.data.xq.xh; data.xh = props.tableData.data.xq.xh;
// data.tableData=props.tableData.data; // data.tableData=props.tableData.data;
@ -281,6 +310,8 @@ watch(
data.columns = props.tableData.columns; data.columns = props.tableData.columns;
data.tableData.length = 0; data.tableData.length = 0;
data.dxmc = props.tableData.data.xq.dxmc;
// function maskName(name) { // function maskName(name) {
// if (name.length === 2) { // if (name.length === 2) {
// // * // // *
@ -304,8 +335,6 @@ watch(
// } // }
function maskName(name) { function maskName(name) {
console.log("name", name);
if (name.length === 2) { if (name.length === 2) {
// * // *
return name[0] + "*"; return name[0] + "*";

View File

@ -86,7 +86,8 @@
<el-button <el-button
size="small" size="small"
type="warning" type="warning"
@click="inconsistent(scope.$index, scope.row, 1)" v-if="scope.row.eligible == '0'"
@click="inconsistent(scope.$index, scope.row, 2)"
> >
不符合 不符合
</el-button> </el-button>
@ -112,7 +113,7 @@
<el-button <el-button
size="small" size="small"
type="primary" type="primary"
@click="handleEdit(scope.$index, scope.row, 1)" @click="handleEdit(scope.$index, scope.row, 2)"
> >
确认 确认
</el-button> </el-button>
@ -924,9 +925,9 @@ const onTypel = (val) => {
chooseTitle.value = val.id; chooseTitle.value = val.id;
data.columns = columnsList["最低生活保障"][val.col]; data.columns = columnsList["最低生活保障"][val.col];
data.url = val.url; data.url = val.url;
search1.name = "" search1.name = "";
search1.date = "" search1.date = "";
search1.date1 = "" search1.date1 = "";
if (val.id == 1) { if (val.id == 1) {
data.tableData1 = []; data.tableData1 = [];
personDetails(); personDetails();
@ -1050,10 +1051,11 @@ const handleEdit = (index, row, status) => {
const pushStatus = (val, status) => { const pushStatus = (val, status) => {
http http
.get( .get(
`/api/ggfwyth/pg/operate?bm=${val.bm}&xh=${val.xh}&sfzhm=${val.sfzhm}&status=${status}` `/api/ggfwyth/pg/operate?bm=${val.bm}&xh=${val.xh}&sfzhm=${val.sfzhm}&status=${status}&eligibleRemark=${nonCompliance.value}`
) )
.then((res) => { .then((res) => {
if (res.code == 200) { if (res.code == 200) {
nonCompliance.value = "";
ElMessage.success({ ElMessage.success({
message: "推送成功", message: "推送成功",
}); });

View File

@ -300,6 +300,7 @@ const routers = useRoute();
const data = reactive({ const data = reactive({
name: "", name: "",
identNo: "", //ID identNo: "", //ID
dxbm: "", //
first: 1, //访& first: 1, //访&
tabelshow: true, // tabelshow: true, //
pagedData: [], //() pagedData: [], //()
@ -500,7 +501,9 @@ const sfType = reactive({
}); });
const tableType = reactive({ const tableType = reactive({
url: `/api/ggfwyth/pg/fwjgqdxq`, url: `/api/ggfwyth/pg/fwjgqdxq`,
url1: `/api/ggfwyth/pg/spypqyxq`,//
title: "服务详情", title: "服务详情",
name: "",
typeId: "", typeId: "",
data: [], data: [],
columns: [ columns: [
@ -570,16 +573,22 @@ const tableType = reactive({
], ],
// character: [], // character: [],
}); });
// //
const statusDetails = (val) => { const statusDetails = (val) => {
data.identNo = val.sfzhm; if (data.name == "许可证编号") {
if (data.identNo == null) { data.dxbm = val.dxbm;
ElMessage.warning({ getTable2(tableType);
message: `${val.xm}无id!`,
offset: 100, //
});
} else { } else {
getTable1(tableType); data.identNo = val.sfzhm;
if (data.identNo == null) {
ElMessage.warning({
message: `${val.xm}无id!`,
offset: 100, //
});
} else {
getTable1(tableType);
}
} }
}; };
// //
@ -620,9 +629,15 @@ const closePush = () => {
const openSf = () => { const openSf = () => {
http.get(`/api/ggfwyth/pg/sfljqd?xh=${routers.query.xh}`).then((res) => { http.get(`/api/ggfwyth/pg/sfljqd?xh=${routers.query.xh}`).then((res) => {
if (res.code == 200) { if (res.code == 200) {
sfType.title = routers.query.name; if (res.data == null) {
sfType.data = res.data; ElMessage.warning({
dialogShowSf.value = true; message: "暂无数据!",
});
} else {
sfType.title = routers.query.name;
sfType.data = res.data;
dialogShowSf.value = true;
}
} }
}); });
}; };
@ -667,6 +682,23 @@ const getTable1 = (pagination) => {
.then((res) => { .then((res) => {
if (res.code == 200) { if (res.code == 200) {
tableType.data = res.data; tableType.data = res.data;
tableType.name = data.name;
tableType.typeId = routers.query.id;
dialogShow.value = true;
} else {
ElMessage.warning({
message: res.message,
});
}
});
};
const getTable2 = (pagination) => {
http
.get(`${pagination.url1}?dxbm=${data.dxbm}&xh=${routers.query.xh}`)
.then((res) => {
if (res.code == 200) {
tableType.data = res.data;
tableType.name = data.name;
tableType.typeId = routers.query.id; tableType.typeId = routers.query.id;
dialogShow.value = true; dialogShow.value = true;
} else { } else {
@ -692,7 +724,6 @@ const getServiceList = async (pagination, sfxs) => {
if (sfxs) { if (sfxs) {
data.tableData = res.data; data.tableData = res.data;
pagination.total = res.count; pagination.total = res.count;
console.log(data.tableData2);
} else { } else {
data.tableData2 = res.data; data.tableData2 = res.data;
pagination2.total = res.count; pagination2.total = res.count;
@ -703,6 +734,9 @@ const getServiceList = async (pagination, sfxs) => {
// //
const handleRowClick = (row) => { const handleRowClick = (row) => {
console.log(row); // row console.log(row); // row
if (data.name == "许可证编号") {
return;
}
data.identNo = row.sfzhm; data.identNo = row.sfzhm;
if (data.identNo == null) { if (data.identNo == null) {
ElMessage.warning({ ElMessage.warning({
@ -786,7 +820,6 @@ onMounted(() => {
if (data.name == "食品安全监管" || data.name == "药品安全监管") { if (data.name == "食品安全监管" || data.name == "药品安全监管") {
data.columns = []; data.columns = [];
data.column_2 = []; data.column_2 = [];
data.columns = [ data.columns = [
{ {
label: "对象名称", label: "对象名称",
@ -806,6 +839,13 @@ onMounted(() => {
label: "对象名称", label: "对象名称",
property: "dxmc", property: "dxmc",
}, },
{
label: "状态",
property: "deng",
width: "90",
align: "center",
type: "slot",
},
{ {
label: "许可证编号", label: "许可证编号",
property: "dxbm", property: "dxbm",

View File

@ -377,7 +377,7 @@ const data = reactive({
id: "6", id: "6",
name: "弱有所扶", name: "弱有所扶",
img: icon7, img: icon7,
visible: true, visible: false,
son: [ son: [
{ {
id: "0", id: "0",

View File

@ -15,7 +15,7 @@ export default defineConfig({
// 第一个代理 // 第一个代理
"/api": { "/api": {
// 匹配到啥来进行方向代理 // 匹配到啥来进行方向代理
target: "http://10.0.0.19:8095/", //刘进 target: "http://10.0.0.35:8095/", //刘进
// target: "https://jzzf.longyou.gov.cn:998/", //线上 // target: "https://jzzf.longyou.gov.cn:998/", //线上
// target: "http://220.191.238.50:996/", //线上 // target: "http://220.191.238.50:996/", //线上
// target: "https://zzdyyfb.dsjj.qz.gov.cn/web/mgop/gov-open/zj/2002428903/reserved/", //线上 // target: "https://zzdyyfb.dsjj.qz.gov.cn/web/mgop/gov-open/zj/2002428903/reserved/", //线上